@fluid-topics/ft-combobox 2.2.37 → 2.2.39
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-combobox.light.js +39 -39
- package/build/ft-combobox.min.js +113 -113
- package/package.json +11 -11
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
"use strict";(()=>{var
|
|
1
|
+
"use strict";(()=>{var Yc=Object.create;var bo=Object.defineProperty;var Xc=Object.getOwnPropertyDescriptor;var Zc=Object.getOwnPropertyNames;var Jc=Object.getPrototypeOf,Qc=Object.prototype.hasOwnProperty;var Wt=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(i){throw e=0,i}};var eu=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of Zc(e))!Qc.call(t,n)&&n!==i&&bo(t,n,{get:()=>e[n],enumerable:!(r=Xc(e,n))||r.enumerable});return t};var f=(t,e,i)=>(i=t!=null?Yc(Jc(t)):{},eu(e||!t||!t.__esModule?bo(i,"default",{value:t,enumerable:!0}):i,t));var E=Wt(($d,xo)=>{xo.exports=ftGlobals.wcUtils});var j=Wt((Ud,vo)=>{vo.exports=ftGlobals.lit});var re=Wt((Fd,So)=>{So.exports=ftGlobals.litDecorators});var sn=Wt((Vd,Eo)=>{Eo.exports=ftGlobals.litRepeat});var lt=Wt((Bd,Ao)=>{Ao.exports=ftGlobals.litClassMap});var As=Wt((Zp,Es)=>{Es.exports=ftGlobals.litUnsafeHTML});var Kc=f(E());var fe=f(j()),F=f(re()),yo=f(sn()),on=f(lt());var fn=globalThis,_o=t=>t,qi=fn.trustedTypes,Co=qi?qi.createPolicy("lit-html",{createHTML:t=>t}):void 0,Po="$lit$",ct=`lit$${Math.random().toFixed(9).slice(2)}$`,ko="?"+ct,tu=`<${ko}>`,vt=document,Yi=()=>vt.createComment(""),mi=t=>t===null||typeof t!="object"&&typeof t!="function",hn=Array.isArray,iu=t=>hn(t)||typeof t?.[Symbol.iterator]=="function",an=`[
|
|
2
2
|
\f\r]`,hi=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wo=/-->/g,To=/>/g,bt=RegExp(`>|${an}(?:([^\\s"'>=/]+)(${an}*=${an}*(?:[^
|
|
3
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Oo=/'/g,Ro=/"/g,Do=/^(?:script|style|textarea|title)$/i,mn=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),No=mn(1),Io=mn(2),Mo=mn(3),gi=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Lo=new WeakMap,xt=vt.createTreeWalker(vt,129);function $o(t,e){if(!hn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Co!==void 0?Co.createHTML(e):e}var iu=(t,e)=>{let i=t.length-1,r=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=hi;for(let a=0;a<i;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===hi?u[1]==="!--"?s=wo:u[1]!==void 0?s=To:u[2]!==void 0?(Do.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=bt):u[3]!==void 0&&(s=bt):s===bt?u[0]===">"?(s=n??hi,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?bt:u[3]==='"'?Ro:Oo):s===Ro||s===Oo?s=bt:s===wo||s===To?s=hi:(s=bt,n=void 0);let g=s===bt&&t[a+1].startsWith("/>")?" ":"";o+=s===hi?l+eu:d>=0?(r.push(c),l.slice(0,d)+Po+l.slice(d)+ct+g):l+ct+(d===-2?a:g)}return[$o(t,o+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},yi=class t{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=iu(e,i);if(this.el=t.createElement(c,r),xt.currentNode=this.el.content,i===2||i===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=xt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(Po)){let p=u[s++],g=n.getAttribute(d).split(ct),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:x[2],strings:g,ctor:x[1]==="."?cn:x[1]==="?"?un:x[1]==="@"?dn:Gt}),n.removeAttribute(d)}else d.startsWith(ct)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Do.test(n.tagName)){let d=n.textContent.split(ct),p=d.length-1;if(p>0){n.textContent=qi?qi.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Yi()),xt.nextNode(),l.push({type:2,index:++o});n.append(d[p],Yi())}}}else if(n.nodeType===8)if(n.data===ko)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(ct,d+1))!==-1;)l.push({type:7,index:o}),d+=ct.length-1}o++}}static createElement(e,i){let r=vt.createElement("template");return r.innerHTML=e,r}};function Wt(t,e,i=t,r){if(e===gi)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,o=mi(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=Wt(t,n._$AS(t,e.values),n,r)),e}var ln=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??vt).importNode(i,!0);xt.currentNode=n;let o=xt.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Xi(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new pn(o,this,e)),this._$AV.push(c),l=r[++a]}s!==l?.index&&(o=xt.nextNode(),s++)}return xt.currentNode=vt,n}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},Xi=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Wt(this,e,i),mi(e)?e===J||e==null||e===""?(this._$AH!==J&&this._$AR(),this._$AH=J):e!==this._$AH&&e!==gi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):tu(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==J&&mi(this._$AH)?this._$AA.nextSibling.data=e:this.T(vt.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=yi.createElement($o(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{let o=new ln(n,this),s=o.u(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let i=Lo.get(e.strings);return i===void 0&&Lo.set(e.strings,i=new yi(e)),i}k(e){hn(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,n=0;for(let o of e)n===i.length?i.push(r=new t(this.O(Yi()),this.O(Yi()),this,this.options)):r=i[n],r._$AI(o),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=_o(e).nextSibling;_o(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,o){this.type=1,this._$AH=J,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=J}_$AI(e,i=this,r,n){let o=this.strings,s=!1;if(o===void 0)e=Wt(this,e,i,0),s=!mi(e)||e!==this._$AH&&e!==gi,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Wt(this,a[r+l],i,l),c===gi&&(c=this._$AH[l]),s||=!mi(c)||c!==this._$AH[l],c===J?e=J:e!==J&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},cn=class extends Gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===J?void 0:e}},un=class extends Gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==J)}},dn=class extends Gt{constructor(e,i,r,n,o){super(e,i,r,n,o),this.type=5}_$AI(e,i=this){if((e=Wt(this,e,i,0)??J)===gi)return;let r=this._$AH,n=e===J&&r!==J||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==J&&(r===J||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},pn=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Wt(this,e)}};var ru=fn.litHtmlPolyfillSupport;ru?.(yi,Xi),(fn.litHtmlVersions??=[]).push("3.3.3");var ce=t=>t??J;function bi(t,e,i){return t?e(t):i?.(t)}var Pe=f(E());var Nc=f(j()),ge=f(E());var qo=f(j()),W=f(E());var De=f(j()),h=f(E()),Uo=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),it=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:it,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")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Uo),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","",Uo),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")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",it),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")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",it),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")},qe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",it),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")},we={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",it),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")},Ee={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",it),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")},Ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",it),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")},wt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",it),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")},Be={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",it),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")},Fo=De.css`
|
|
3
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Oo=/'/g,Ro=/"/g,Do=/^(?:script|style|textarea|title)$/i,mn=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),No=mn(1),Io=mn(2),Mo=mn(3),gi=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),Lo=new WeakMap,xt=vt.createTreeWalker(vt,129);function $o(t,e){if(!hn(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Co!==void 0?Co.createHTML(e):e}var ru=(t,e)=>{let i=t.length-1,r=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=hi;for(let a=0;a<i;a++){let l=t[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===hi?u[1]==="!--"?s=wo:u[1]!==void 0?s=To:u[2]!==void 0?(Do.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=bt):u[3]!==void 0&&(s=bt):s===bt?u[0]===">"?(s=n??hi,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?bt:u[3]==='"'?Ro:Oo):s===Ro||s===Oo?s=bt:s===wo||s===To?s=hi:(s=bt,n=void 0);let g=s===bt&&t[a+1].startsWith("/>")?" ":"";o+=s===hi?l+tu:d>=0?(r.push(c),l.slice(0,d)+Po+l.slice(d)+ct+g):l+ct+(d===-2?a:g)}return[$o(t,o+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},yi=class t{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[c,u]=ru(e,i);if(this.el=t.createElement(c,r),xt.currentNode=this.el.content,i===2||i===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=xt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(Po)){let p=u[s++],g=n.getAttribute(d).split(ct),x=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:x[2],strings:g,ctor:x[1]==="."?cn:x[1]==="?"?un:x[1]==="@"?dn:Gt}),n.removeAttribute(d)}else d.startsWith(ct)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(Do.test(n.tagName)){let d=n.textContent.split(ct),p=d.length-1;if(p>0){n.textContent=qi?qi.emptyScript:"";for(let g=0;g<p;g++)n.append(d[g],Yi()),xt.nextNode(),l.push({type:2,index:++o});n.append(d[p],Yi())}}}else if(n.nodeType===8)if(n.data===ko)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(ct,d+1))!==-1;)l.push({type:7,index:o}),d+=ct.length-1}o++}}static createElement(e,i){let r=vt.createElement("template");return r.innerHTML=e,r}};function Kt(t,e,i=t,r){if(e===gi)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,o=mi(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=Kt(t,n._$AS(t,e.values),n,r)),e}var ln=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??vt).importNode(i,!0);xt.currentNode=n;let o=xt.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Xi(o,o.nextSibling,this,e):l.type===1?c=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(c=new pn(o,this,e)),this._$AV.push(c),l=r[++a]}s!==l?.index&&(o=xt.nextNode(),s++)}return xt.currentNode=vt,n}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},Xi=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Kt(this,e,i),mi(e)?e===J||e==null||e===""?(this._$AH!==J&&this._$AR(),this._$AH=J):e!==this._$AH&&e!==gi&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):iu(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==J&&mi(this._$AH)?this._$AA.nextSibling.data=e:this.T(vt.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=yi.createElement($o(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{let o=new ln(n,this),s=o.u(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let i=Lo.get(e.strings);return i===void 0&&Lo.set(e.strings,i=new yi(e)),i}k(e){hn(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,n=0;for(let o of e)n===i.length?i.push(r=new t(this.O(Yi()),this.O(Yi()),this,this.options)):r=i[n],r._$AI(o),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=_o(e).nextSibling;_o(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Gt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,o){this.type=1,this._$AH=J,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=J}_$AI(e,i=this,r,n){let o=this.strings,s=!1;if(o===void 0)e=Kt(this,e,i,0),s=!mi(e)||e!==this._$AH&&e!==gi,s&&(this._$AH=e);else{let a=e,l,c;for(e=o[0],l=0;l<o.length-1;l++)c=Kt(this,a[r+l],i,l),c===gi&&(c=this._$AH[l]),s||=!mi(c)||c!==this._$AH[l],c===J?e=J:e!==J&&(e+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(e)}j(e){e===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},cn=class extends Gt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===J?void 0:e}},un=class extends Gt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==J)}},dn=class extends Gt{constructor(e,i,r,n,o){super(e,i,r,n,o),this.type=5}_$AI(e,i=this){if((e=Kt(this,e,i,0)??J)===gi)return;let r=this._$AH,n=e===J&&r!==J||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==J&&(r===J||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},pn=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Kt(this,e)}};var nu=fn.litHtmlPolyfillSupport;nu?.(yi,Xi),(fn.litHtmlVersions??=[]).push("3.3.3");var ce=t=>t??J;function bi(t,e,i){return t?e(t):i?.(t)}var Pe=f(E());var Ic=f(j()),ge=f(E());var qo=f(j()),K=f(E());var De=f(j()),h=f(E()),Uo=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),it=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:it,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")},St={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Uo),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","",Uo),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")},At={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",it),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")},_t={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",it),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")},qe={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",it),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")},we={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",it),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")},Ee={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",it),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")},Ct={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",it),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")},wt={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",it),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")},Be={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",it),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")},Fo=De.css`
|
|
4
4
|
.ft-typography--title {
|
|
5
5
|
font-family: ${St.fontFamily};
|
|
6
6
|
font-size: ${St.fontSize};
|
|
@@ -81,7 +81,7 @@
|
|
|
81
81
|
text-transform: ${Ct.textTransform};
|
|
82
82
|
text-decoration: ${Ct.textDecoration};
|
|
83
83
|
}
|
|
84
|
-
`,
|
|
84
|
+
`,Wo=De.css`
|
|
85
85
|
.ft-typography--overline {
|
|
86
86
|
font-family: ${wt.fontFamily};
|
|
87
87
|
font-size: ${wt.fontSize};
|
|
@@ -91,7 +91,7 @@
|
|
|
91
91
|
text-transform: ${wt.textTransform};
|
|
92
92
|
text-decoration: ${wt.textDecoration};
|
|
93
93
|
}
|
|
94
|
-
`,
|
|
94
|
+
`,Ko=De.css`
|
|
95
95
|
.ft-typography--button {
|
|
96
96
|
font-family: ${Be.fontFamily};
|
|
97
97
|
font-size: ${Be.fontSize};
|
|
@@ -105,7 +105,7 @@
|
|
|
105
105
|
.ft-typography {
|
|
106
106
|
vertical-align: inherit;
|
|
107
107
|
}
|
|
108
|
-
`;var L={fontSize:
|
|
108
|
+
`;var L={fontSize:K.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:K.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:K.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:K.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:K.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:K.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:K.FtCssVariableFactory.extend("--ft-input-label-border-color","",K.designSystemVariables.colorOutline),textColor:K.FtCssVariableFactory.extend("--ft-input-label-text-color","",K.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:K.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",K.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:K.FtCssVariableFactory.extend("--ft-input-label-background-color","",K.designSystemVariables.colorSurface),borderRadius:K.FtCssVariableFactory.extend("--ft-input-label-border-radius","",K.designSystemVariables.borderRadiusS),colorError:K.FtCssVariableFactory.external(K.designSystemVariables.colorError,"Design system")},Yo=qo.css`
|
|
109
109
|
.ft-input-label {
|
|
110
110
|
position: absolute;
|
|
111
111
|
inset: 0;
|
|
@@ -151,8 +151,8 @@
|
|
|
151
151
|
transition: font-size 250ms, line-height 250ms, color 250ms;
|
|
152
152
|
max-width: calc(${L.labelMaxWidth} - 2 * (${L.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
|
|
153
153
|
text-overflow: ellipsis;
|
|
154
|
-
${(0,
|
|
155
|
-
${(0,
|
|
154
|
+
${(0,K.setVariable)(Ee.fontSize,L.fontSize)};
|
|
155
|
+
${(0,K.setVariable)(Ee.lineHeight,L.fontSize)};
|
|
156
156
|
}
|
|
157
157
|
|
|
158
158
|
.ft-input-label--in-error .ft-input-label--text {
|
|
@@ -184,8 +184,8 @@
|
|
|
184
184
|
}
|
|
185
185
|
|
|
186
186
|
.ft-input-label--raised .ft-input-label--text {
|
|
187
|
-
${(0,
|
|
188
|
-
${(0,
|
|
187
|
+
${(0,K.setVariable)(Ee.fontSize,L.raisedFontSize)};
|
|
188
|
+
${(0,K.setVariable)(Ee.lineHeight,L.raisedFontSize)};
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
.ft-input-label--raised .ft-input-label--floating-text {
|
|
@@ -538,7 +538,7 @@
|
|
|
538
538
|
.ft-text-field--with-password ft-icon:hover {
|
|
539
539
|
cursor: pointer;
|
|
540
540
|
}
|
|
541
|
-
`;var X=f(j()),k=f(re()),
|
|
541
|
+
`;var X=f(j()),k=f(re()),Pc=f(sn()),kc=f(lt());var pe=f(E());var ls=Symbol.for(""),ou=t=>{if(t?.r===ls)return t?._$litStatic$},gn=t=>({_$litStatic$:t,r:ls});var as=new Map,yn=t=>(e,...i)=>{let r=i.length,n,o,s=[],a=[],l,c=0,u=!1;for(;c<r;){for(l=e[c];c<r&&(o=i[c],(n=ou(o))!==void 0);)l+=n+e[++c],u=!0;c!==r&&a.push(o),s.push(l),c++}if(c===r&&s.push(e[r]),u){let d=s.join("$$lit$$");(e=as.get(d))===void 0&&(s.raw=s,as.set(d,e=s)),i=a}return t(e,...i)},bn=yn(No),lp=yn(Io),cp=yn(Mo);var xn=f(re()),us=f(E());var be;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(be||(be={}));var cs=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ne=class extends us.FtLitElement{constructor(){super(...arguments),this.variant=be.body1}render(){return this.element?bn`
|
|
542
542
|
<${gn(this.element)}
|
|
543
543
|
part="text"
|
|
544
544
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -546,7 +546,7 @@
|
|
|
546
546
|
</${gn(this.element)}>
|
|
547
547
|
`:bn`
|
|
548
548
|
<slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
|
|
549
|
-
`}};ne.styles=[Fo,Vo,Bo,Ho,qt,zo,Zi,jo,Ko,
|
|
549
|
+
`}};ne.styles=[Fo,Vo,Bo,Ho,qt,zo,Zi,jo,Wo,Ko,Go];cs([(0,xn.property)()],ne.prototype,"element",void 0);cs([(0,xn.property)()],ne.prototype,"variant",void 0);var ps=f(E());var ds={"ft-typography":ne};(0,ps.customElements)(ds);var tr=f(re());var vn=f(j()),Sn=f(re());var hs=f(lt()),ms=f(E()),fs=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Tt=class extends ms.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return vn.html`
|
|
550
550
|
<div class="${(0,hs.classMap)(this.inputLabelClasses)}">
|
|
551
551
|
${bi(this.text,()=>vn.html`
|
|
552
552
|
<div class="ft-input-label--text ft-typography--caption">
|
|
@@ -566,20 +566,20 @@
|
|
|
566
566
|
<div class="ft-ripple--background"></div>
|
|
567
567
|
<div class="ft-ripple--effect"></div>
|
|
568
568
|
</div>
|
|
569
|
-
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var i,r;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(i=this.target)===null||i===void 0||i.removeAttribute("data-is-ft-ripple-target")):(r=this.target)===null||r===void 0||r.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,i;let r=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;r&&this.setupFor((i=this.target)!==null&&i!==void 0?i:r)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let i=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},r=i("mouseup","contextmenu"),n=i("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&i("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",r,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",r,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let i=e,r=e,n,o;return i.x!=null?{x:n,y:o}=i:r.touches!=null&&(n=r.touches[0].clientX,o=r.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let i of e.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};B.elementDefinitions={};B.styles=is;Ae([(0,ue.property)({type:Boolean})],B.prototype,"primary",void 0);Ae([(0,ue.property)({type:Boolean})],B.prototype,"secondary",void 0);Ae([(0,ue.property)({type:Boolean})],B.prototype,"unbounded",void 0);Ae([(0,ue.property)({type:Boolean})],B.prototype,"activated",void 0);Ae([(0,ue.property)({type:Boolean})],B.prototype,"selected",void 0);Ae([(0,ue.property)({type:Boolean})],B.prototype,"disabled",void 0);Ae([(0,ue.state)()],B.prototype,"hovered",void 0);Ae([(0,ue.state)()],B.prototype,"focused",void 0);Ae([(0,ue.state)()],B.prototype,"pressed",void 0);Ae([(0,ue.state)()],B.prototype,"rippling",void 0);Ae([(0,ue.state)()],B.prototype,"originX",void 0);Ae([(0,ue.state)()],B.prototype,"originY",void 0);Ae([(0,ue.query)(".ft-ripple")],B.prototype,"ripple",void 0);Ae([(0,ue.query)(".ft-ripple--effect")],B.prototype,"rippleEffect",void 0);var Ss=f(E());var vs={"ft-ripple":B};(0,Ss.customElements)(vs);var Ne;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ne||(Ne={}));var vi=f(j()),ut=f(re()),_s=f(E()),Cs=f(As());var Ie;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(Ie||(Ie={}));var m;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(m||(m={}));var Zp=new Map([...["abw"].map(t=>[t,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(t=>[t,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,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(t=>[t,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,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(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,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(t=>[t,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]);var Jp={[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 Si=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Z=class extends _s.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=vi.nothing}render(){let e=this.variant&&Object.values(Ne).includes(this.variant)?this.variant:Ne.fluid_topics,i=e!==Ne.material||!!this.value;return vi.html`
|
|
569
|
+
`}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var i,r;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(i=this.target)===null||i===void 0||i.removeAttribute("data-is-ft-ripple-target")):(r=this.target)===null||r===void 0||r.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,i;let r=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;r&&this.setupFor((i=this.target)!==null&&i!==void 0?i:r)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let i=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},r=i("mouseup","contextmenu"),n=i("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&i("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",r,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",r,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let i=e,r=e,n,o;return i.x!=null?{x:n,y:o}=i:r.touches!=null&&(n=r.touches[0].clientX,o=r.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let i of e.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};B.elementDefinitions={};B.styles=is;Ae([(0,ue.property)({type:Boolean})],B.prototype,"primary",void 0);Ae([(0,ue.property)({type:Boolean})],B.prototype,"secondary",void 0);Ae([(0,ue.property)({type:Boolean})],B.prototype,"unbounded",void 0);Ae([(0,ue.property)({type:Boolean})],B.prototype,"activated",void 0);Ae([(0,ue.property)({type:Boolean})],B.prototype,"selected",void 0);Ae([(0,ue.property)({type:Boolean})],B.prototype,"disabled",void 0);Ae([(0,ue.state)()],B.prototype,"hovered",void 0);Ae([(0,ue.state)()],B.prototype,"focused",void 0);Ae([(0,ue.state)()],B.prototype,"pressed",void 0);Ae([(0,ue.state)()],B.prototype,"rippling",void 0);Ae([(0,ue.state)()],B.prototype,"originX",void 0);Ae([(0,ue.state)()],B.prototype,"originY",void 0);Ae([(0,ue.query)(".ft-ripple")],B.prototype,"ripple",void 0);Ae([(0,ue.query)(".ft-ripple--effect")],B.prototype,"rippleEffect",void 0);var Ss=f(E());var vs={"ft-ripple":B};(0,Ss.customElements)(vs);var Ne;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ne||(Ne={}));var vi=f(j()),ut=f(re()),_s=f(E()),Cs=f(As());var Ie;(function(t){t.ADD_TO_PBK="",t.ALERT="",t.ADD_ALERT="",t.BACK_TO_SEARCH="",t.ADD_BOOKMARK="",t.BOOKMARK="",t.BOOKS="",t.MENU="",t.DOWNLOAD="",t.EDIT="",t.FEEDBACK="",t.HOME="",t.MODIFY_PBK="",t.SCHEDULED="",t.SEARCH="",t.EXPORT="",t.TOC="",t.WRITE_UGC="",t.TRASH="",t.USER="",t.EXTLINK="",t.CALENDAR="",t.OFFLINE="",t.BOOK="",t.DOWNLOAD_PLAIN="",t.CHECK="",t.STAR_PLAIN="",t.TOPICS="",t.DISC="",t.CIRCLE="",t.SHARED="",t.SORT_UNSORTED="",t.SORT_UP="",t.SORT_DOWN="",t.WORKING="",t.CLOSE="",t.ZOOM_OUT="",t.ZOOM_IN="",t.ZOOM_REALSIZE="",t.ZOOM_FULLSCREEN="",t.ADMIN_RESTRICTED="",t.ADMIN="",t.ADMIN_KHUB="",t.ADMIN_THEME="",t.ADMIN_USERS="",t.WARNING="",t.CONTEXT="",t.SEARCH_HOME="",t.STEPS="",t.ICON_EXPAND="",t.ICON_COLLAPSE="",t.INFO="",t.MINUS_PLAIN="",t.PLUS_PLAIN="",t.FACET_HAS_DESCENDANT="",t.TRIANGLE_BOTTOM="",t.TRIANGLE_LEFT="",t.TRIANGLE_RIGHT="",t.TRIANGLE_TOP="",t.THIN_ARROW="",t.SIGN_IN="",t.LOGOUT="",t.TRANSLATE="",t.CLOSE_PLAIN="",t.CHECK_PLAIN="",t.ARTICLE="",t.COLUMNS="",t.ANALYTICS="",t.COLLECTIONS="",t.ARROW_DOWN="",t.ARROW_LEFT="",t.ARROW_RIGHT="",t.ARROW_UP="",t.SEARCH_IN_PUBLICATION="",t.COPY_TO_CLIPBOARD="",t.SHARED_PBK="",t.ATTACHMENTS="",t.STRIPE_ARROW_LEFT="",t.STRIPE_ARROW_RIGHT="",t.FILTERS="",t.DOT="",t.MINUS="",t.PLUS="",t.MAILS_AND_NOTIFICATIONS="",t.SAVE="",t.LOCKER="",t.ADMIN_INTEGRATION="",t.SYNC="",t.TAG="",t.BOOK_PLAIN="",t.UPLOAD="",t.ONLINE="",t.TAG_PLAIN="",t.ACCOUNT_SETTINGS="",t.PRINT="",t.DEFAULT_ROLES="",t.SHORTCUT_MENU="",t.RELATIVES_PLAIN="",t.RELATIVES="",t.PAUSE="",t.PLAY="",t.ADMIN_PORTAL="",t.STAR="",t.THUMBS_DOWN="",t.THUMBS_DOWN_PLAIN="",t.THUMBS_UP="",t.THUMBS_UP_PLAIN="",t.FEEDBACK_PLAIN="",t.RATE_PLAIN="",t.RATE="",t.OFFLINE_SETTINGS="",t.MY_COLLECTIONS="",t.THIN_ARROW_LEFT="",t.THIN_ARROW_RIGHT="",t.RESET="",t.MY_LIBRARY="",t.UNSTRUCTURED_DOC="",t.CONTEXTUAL="",t.THIN_ARROW_UP="",t.ARROW_RIGHT_TO_LINE="",t.DESKTOP="",t.TABLET_LANDSCAPE="",t.TABLET_PORTRAIT="",t.MOBILE_LANDSCAPE="",t.MOBILE_PORTRAIT="",t.DIAGRAM_SUNBURST="",t.DIAGRAM_SANKEY="",t.COMMENT_QUESTION="",t.COMMENT_QUESTION_PLAIN="",t.MESSAGE_BOT="",t.CHART_SIMPLE="",t.BARS_PROGRESS="",t.BOOK_OPEN_GEAR="",t.BOOK_OPEN_GEAR_SLASH="",t.LINE_CHART="",t.STACKED_CHART="",t.CHART_BAR_STACKED="",t.CHART_BAR_GROUPED="",t.EYE_SLASH="",t.X_MARK="",t.EXPAND_WIDE="",t.PIP="",t.PIP_WIDE="",t.LIFE_RING="",t.GLOBE="",t.PIGGY_BANK="",t.EXTLINK_LIGHT="",t.CLONE="",t.CLONE_LINK_SIMPLE="",t.CHART_BAR_NORMALIZED="",t.CONSUMER="",t.OCTAGON_XMARK="",t.HOURGLASS_HALF="",t.CLOCK="",t.CLOCK_THREE="",t.CALENDAR_DAY="",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="",t.WAND_MAGIC_SPARKLES="",t.PAPER_PLANE="",t.CIRCLE_STOP="",t.ARROW_ROTATE_RIGHT="",t.ARROWS_ROTATE="",t.ALIGN_RIGHT="",t.FORMAT_CLEAR="",t.ALIGN_CENTER="",t.ALIGN_LEFT="",t.PALETTE="",t.BOLD="",t.ITALIC="",t.UNDERLINE="",t.STRIKETHROUGH="",t.LINK_SIMPLE_SLASH="",t.LINK_SIMPLE="",t.ROUTE="",t.CIRCLE_USER_SLASH="",t.CIRCLE_USER_CHECK="",t.LIST_MAGNIFYING_GLASS="",t.MEDAL="",t.THUMBS_UP_THUMBS_DOWN_SOLID="",t.ARROW_TURN_DOWN_RIGHT="",t.FLASK="",t.LOCK_KEYHOLE_OPEN_SOLID="",t.HOURGLASS_END="",t.CIRCLE_QUESTION="",t.GRIP_LINES_SOLID="",t.TRANSLATE_SPARKLE_SOLID="",t.CODE="",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="",t.PAPER_PLANE_SLASH="",t.COMPRESS="",t.EXPAND="",t.ARROW_ROTATE_LEFT="",t.MOBILE_SMALL="",t.SPARKLES="",t.HAND_SOLID="",t.CLOCK_SOLID="",t.CONTEXT_MENU_CURSOR="",t.LANGUAGE_SLASH="",t.MAGNIFYING_GLASS_FLOPPY_DISK="",t.CABINET_FILING_FLOPPY_DISK="",t.BOOKMARK_SLASH="",t.CIRCLE_PAUSE="",t.CIRCLE_PLAY="",t.CIRCLE_STOP_PLAIN="",t.CIRCLE_ARROW_DOWN="",t.SHARE_NODES="",t.BELL="",t.BELL_SLASH="",t.FILE="",t.HAND="",t.SQUARE_INFO_SOLID="",t.FILE_CODE="",t.BOX_CODE="",t.TOPICS_SOLID="",t.PHOTO_FILM="",t.HYPHEN_SOLID="",t.CROSSHAIRS="",t.PERSON_CHALKBOARD="",t.CIRCLE_ARROW_DOWN_SLASH="",t.BOOK_OPEN_COVER="",t.LIGHTBULB="",t.MESSAGE_BOT_AGENTIC_SOLID="",t.CHART_LINE_USER="",t.SERVER_CIRCLE_ARROW_DOWN="",t.EYE="",t.SHARE="󨃱"})(Ie||(Ie={}));var m;(function(t){t.UNKNOWN="",t.ABW="",t.AUDIO="",t.AVI="",t.CHM="",t.CODE="",t.CSV="",t.DITA="",t.EPUB="",t.EXCEL="",t.FLAC="",t.GIF="",t.GZIP="",t.HTML="",t.IMAGE="",t.JPEG="",t.JSON="",t.M4A="",t.MOV="",t.MP3="",t.MP4="",t.OGG="",t.PDF="",t.PNG="",t.POWERPOINT="",t.RAR="",t.STP="",t.TEXT="",t.VIDEO="",t.WAV="",t.WMA="",t.WORD="",t.XML="",t.YAML="",t.ZIP=""})(m||(m={}));var Jp=new Map([...["abw"].map(t=>[t,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(t=>[t,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,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(t=>[t,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,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(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,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(t=>[t,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]);var Qp={[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 Si=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Z=class extends _s.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=vi.nothing}render(){let e=this.variant&&Object.values(Ne).includes(this.variant)?this.variant:Ne.fluid_topics,i=e!==Ne.material||!!this.value;return vi.html`
|
|
570
570
|
<i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
|
|
571
571
|
${(0,Cs.unsafeHTML)(this.resolvedIcon)}
|
|
572
572
|
<slot ?hidden=${i}></slot>
|
|
573
573
|
</i>
|
|
574
|
-
`}getTextContent(){var e,i;return(i=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(r=>r.textContent).join("").trim())!==null&&i!==void 0?i:""}update(e){super.update(e),["value","variant"].some(i=>e.has(i))&&this.resolveIcon()}resolveIcon(){var e,i;let r=this.value||this.getTextContent();switch(this.variant){case Ne.file_format:this.resolvedIcon=(e=m[r.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:r;break;case Ne.material:this.resolvedIcon=this.value||vi.nothing;break;default:this.resolvedIcon=(i=Ie[r.replace("-","_").toUpperCase()])!==null&&i!==void 0?i:r;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Z.elementDefinitions={};Z.styles=ns;Si([(0,ut.property)()],Z.prototype,"variant",void 0);Si([(0,ut.property)()],Z.prototype,"value",void 0);Si([(0,ut.property)({reflect:!0,attribute:"aria-hidden"})],Z.prototype,"ariaHidden",void 0);Si([(0,ut.state)()],Z.prototype,"resolvedIcon",void 0);Si([(0,ut.query)("slot")],Z.prototype,"slottedContent",void 0);var Ts=f(E());var ws={"ft-icon":Z};(0,Ts.customElements)(ws);var jn=f(re());var Os=f(re(),1);var An=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},ou=t=>({fromAttribute:e=>{if(e==null)return Ei(t);try{return JSON.parse(e)}catch{return Ei(t)}},toAttribute:e=>JSON.stringify(e)});function Rs(t,e){return(0,Os.property)({type:Object,converter:ou(t),hasChanged:Ai,...e??{}})}function su(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let i,r;if(Array.isArray(t)){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!Yt(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!Yt(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(i=o.length,i!==n(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;r--!==0;){let s=o[r];if(!Yt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Yt(t,e){try{return su(t,e)}catch{return!1}}function Ai(t,e){return!Yt(t,e)}function Ei(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ir(t,e){let i=r=>r[t]===!0;return r=>{if(i(r))return r;let n=e(r);return n[t]=!0,n}}var Ls=f(re(),1);var _n=t=>{let e=t??{};return(i,r)=>{var n;let o={hasChanged:Ai,attribute:!1,...e};(0,Ls.property)(o)(i,r);let s=i.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(r,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[r]),store:e.store})}};var rr=class{constructor(){this.queue=[]}add(e,i=!1){i&&this.clear(e.type),this.queue.push(e)}consume(e){let i=this.queue.find(r=>r.type===e);return i&&(this.queue=this.queue.filter(r=>r!==i)),i}clear(e){typeof e=="string"?this.queue=this.queue.filter(i=>i.type!==e):this.queue=this.queue.filter(i=>!e.test(i.type))}};var Ot=f(re(),1);var nr=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,i){return this.callbacks=[e],this.debounce(i)}queue(e,i){return this.callbacks.push(e),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((i,r)=>{this.resolvePromise=i,this.rejectPromise=r})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,i;let r=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(i=this.resolvePromise)!==null&&i!==void 0?i:(()=>null);this.clearPromise();for(let s of r)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var sr=f(j(),1);var or=class extends sr.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let i={...e.shadowRootOptions,customElements:e.registry},r=this.renderOptions.creationScope=this.attachShadow(i);return(0,sr.adoptStyles)(r,e.elementStyles),r}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([i,r])=>this.defineScopedElement(i,r))}static defineScopedElement(e,i){An(e)(i),this.canDefineScopedElement(e)&&this.registry.define(e,i)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,i){this.scopedRegistryConstructor.defineScopedElement(e,i)}};function Ps(t,e,...i){var r;let n=t.querySelector(e);for(let o of i)n=(r=n?.shadowRoot)===null||r===void 0?void 0:r.querySelector(o);return n}var Zt=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Is,ks=Symbol("constructorPrototype"),Ds=Symbol("constructorName"),Ms=Symbol("exportpartsDebouncer"),Ns=Symbol("dynamicDependenciesLoaded"),Xt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Xt.eventName="exportparts-updated";var Ye=class extends or{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Is]=new nr(5),this.scheduleExportpartsUpdate=()=>{var e,i,r;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(r=(i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)!==null&&r!==void 0&&r)&&this[Ms].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ds]=this.constructor.name,this[ks]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ds]&&Object.setPrototypeOf(this,this[ks])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let i=this.constructor;i[Ns]||(i[Ns]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Xt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Xt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Xt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:i,selector:r,shadowPath:n}=this.elementToFocus;if(r!=null){let o=[...n??[],r];i=Ps(this.shadowRoot,...o)}i?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||i?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var i,r,n;if(((r=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&r!==void 0?r:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var i,r,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(o=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let g=(s=(r=p.getAttribute("part"))===null||r===void 0?void 0:r.split(" "))!==null&&s!==void 0?s:[],x=(a=(n=p.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],T=[...g,...x].filter(l).map(b=>b.trim());for(let b of T)u.add(b)}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(", ")}};Is=Ms;Zt([(0,Ot.property)()],Ye.prototype,"exportpartsPrefix",void 0);Zt([Rs([])],Ye.prototype,"exportpartsPrefixes",void 0);Zt([(0,Ot.property)({reflect:!0})],Ye.prototype,"exportparts",void 0);Zt([(0,Ot.property)()],Ye.prototype,"customStylesheet",void 0);Zt([(0,Ot.property)()],Ye.prototype,"elementToFocus",void 0);Zt([(0,Ot.state)()],Ye.prototype,"useAdoptedStyleSheets",void 0);function ar(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var _i=Symbol("internalReduxEventsUnsubscribers"),dt=Symbol("internalStoresUnsubscribers"),Rt=Symbol("internalStores"),au=ir(Symbol("withRedux"),function(t){var e,i,r;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[i]=new Map,this[r]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Rt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Rt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Rt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Rt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Rt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Rt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[dt].has(s.store):this[dt].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l,c;this[dt].set(s,a.subscribe(()=>this.updateFromStores())),this[_i].set(s,[]),ar(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=g=>this[d](g);a.addEventListener(u.eventName,p),this[_i].get(s).push(()=>a.removeEventListener(u.eventName,p))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[dt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[dt].has(s)&&this[dt].get(s)(),this[dt].delete(s),(a=this[_i].get(s))===null||a===void 0||a.forEach(l=>l()),this[_i].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=dt,i=Rt,r=_i,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),$s=class extends au(Ye){};function de(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var lu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Us=lu,Cn=()=>Math.random().toString(36).substring(7).split("").join("."),cu={INIT:`@@redux/INIT${Cn()}`,REPLACE:`@@redux/REPLACE${Cn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Cn()}`},lr=cu;function cr(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function wn(t,e,i){if(typeof t!="function")throw new Error(de(2));if(typeof e=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(de(0));if(typeof e=="function"&&typeof i>"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(de(1));return i(wn)(t,e)}let r=t,n=e,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((b,R)=>{s.set(R,b)}))}function u(){if(l)throw new Error(de(3));return n}function d(b){if(typeof b!="function")throw new Error(de(4));if(l)throw new Error(de(5));let R=!0;c();let V=a++;return s.set(V,b),function(){if(R){if(l)throw new Error(de(6));R=!1,c(),s.delete(V),o=null}}}function p(b){if(!cr(b))throw new Error(de(7));if(typeof b.type>"u")throw new Error(de(8));if(typeof b.type!="string")throw new Error(de(17));if(l)throw new Error(de(9));try{l=!0,n=r(n,b)}finally{l=!1}return(o=s).forEach(V=>{V()}),b}function g(b){if(typeof b!="function")throw new Error(de(10));r=b,p({type:lr.REPLACE})}function x(){let b=d;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(de(11));function V(){let S=R;S.next&&S.next(u())}return V(),{unsubscribe:b(V)}},[Us](){return this}}}return p({type:lr.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[Us]:x}}function uu(t){Object.keys(t).forEach(e=>{let i=t[e];if(typeof i(void 0,{type:lr.INIT})>"u")throw new Error(de(12));if(typeof i(void 0,{type:lr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(de(13))})}function Tn(t){let e=Object.keys(t),i={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(i[a]=t[a])}let r=Object.keys(i),n,o;try{uu(i)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<r.length;d++){let p=r[d],g=i[p],x=a[p],T=g(x,l);if(typeof T>"u"){let b=l&&l.type;throw new Error(de(14))}u[p]=T,c=c||T!==x}return c=c||r.length!==Object.keys(a).length,c?u:a}}function Ci(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,i)=>(...r)=>e(i(...r)))}function Fs(...t){return e=>(i,r)=>{let n=e(i,r),o=()=>{throw new Error(de(15))},s={getState:n.getState,dispatch:(l,...c)=>o(l,...c)},a=t.map(l=>l(s));return o=Ci(...a)(n.dispatch),{...n,dispatch:o}}}function Vs(t){return cr(t)&&"type"in t&&typeof t.type=="string"}var Ys=Symbol.for("immer-nothing"),Bs=Symbol.for("immer-draftable"),me=Symbol.for("immer-state");function ze(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Oe=Object,Qt=Oe.getPrototypeOf,fr="constructor",xr="prototype",Pn="configurable",hr="enumerable",dr="writable",wi="value",Xe=t=>!!t&&!!t[me];function Re(t){return t?Xs(t)||Sr(t)||!!t[Bs]||!!t[fr]?.[Bs]||Er(t)||Li(t):!1}var du=Oe[xr][fr].toString(),Hs=new WeakMap;function Xs(t){if(!t||!Fn(t))return!1;let e=Qt(t);if(e===null||e===Oe[xr])return!0;let i=Oe.hasOwnProperty.call(e,fr)&&e[fr];if(i===Object)return!0;if(!Jt(i))return!1;let r=Hs.get(i);return r===void 0&&(r=Function.toString.call(i),Hs.set(i,r)),r===du}function vr(t,e,i=!0){Ri(t)===0?(i?Reflect.ownKeys(t):Oe.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((r,n)=>e(n,r,t))}function Ri(t){let e=t[me];return e?e.type_:Sr(t)?1:Er(t)?2:Li(t)?3:0}var On=(t,e,i=Ri(t))=>i===2?t.has(e):Oe[xr].hasOwnProperty.call(t,e),kn=(t,e,i=Ri(t))=>i===2?t.get(e):t[e],mr=(t,e,i,r=Ri(t))=>{r===2?t.set(e,i):r===3?t.add(i):t[e]=i};function pu(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Sr=Array.isArray,Er=t=>t instanceof Map,Li=t=>t instanceof Set,Fn=t=>typeof t=="object",Jt=t=>typeof t=="function",Rn=t=>typeof t=="boolean";function fu(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var rt=t=>t.copy_||t.base_;var Vn=t=>t.modified_?t.copy_:t.base_;function Dn(t,e){if(Er(t))return new Map(t);if(Li(t))return new Set(t);if(Sr(t))return Array[xr].slice.call(t);let i=Xs(t);if(e===!0||e==="class_only"&&!i){let r=Oe.getOwnPropertyDescriptors(t);delete r[me];let n=Reflect.ownKeys(r);for(let o=0;o<n.length;o++){let s=n[o],a=r[s];a[dr]===!1&&(a[dr]=!0,a[Pn]=!0),(a.get||a.set)&&(r[s]={[Pn]:!0,[dr]:!0,[hr]:a[hr],[wi]:t[s]})}return Oe.create(Qt(t),r)}else{let r=Qt(t);if(r!==null&&i)return{...t};let n=Oe.create(r);return Oe.assign(n,t)}}function Ar(t,e=!1){return _r(t)||Xe(t)||!Re(t)||(Ri(t)>1&&Oe.defineProperties(t,{set:ur,add:ur,clear:ur,delete:ur}),Oe.freeze(t),e&&vr(t,(i,r)=>{Ar(r,!0)},!1)),t}function hu(){ze(2)}var ur={[wi]:hu};function _r(t){return t===null||!Fn(t)?!0:Oe.isFrozen(t)}var gr="MapSet",Nn="Patches",zs="ArrayMethods",Zs={};function Lt(t){let e=Zs[t];return e||ze(0,t),e}var js=t=>!!Zs[t];var Ti,Js=()=>Ti,mu=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:js(gr)?Lt(gr):void 0,arrayMethodsPlugin_:js(zs)?Lt(zs):void 0});function Ks(t,e){e&&(t.patchPlugin_=Lt(Nn),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function In(t){Mn(t),t.drafts_.forEach(gu),t.drafts_=null}function Mn(t){t===Ti&&(Ti=t.parent_)}var Ws=t=>Ti=mu(Ti,t);function gu(t){let e=t[me];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Gs(t,e){e.unfinalizedDrafts_=e.drafts_.length;let i=e.drafts_[0];if(t!==void 0&&t!==i){i[me].modified_&&(In(e),ze(4)),Re(t)&&(t=qs(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(i[me].base_,t,e)}else t=qs(e,i);return yu(e,t,!0),In(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Ys?t:void 0}function qs(t,e){if(_r(e))return e;let i=e[me];if(!i)return yr(e,t.handledSet_,t);if(!Cr(i,t))return e;if(!i.modified_)return i.base_;if(!i.finalized_){let{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);ta(i,t)}return i.copy_}function yu(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ar(e,i)}function Qs(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Cr=(t,e)=>t.scope_===e,bu=[];function ea(t,e,i,r){let n=rt(t),o=t.type_;if(r!==void 0&&kn(n,r,o)===e){mr(n,r,i,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;vr(n,(l,c)=>{if(Xe(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=t.draftLocations_.get(e)??bu;for(let a of s)mr(n,a,i,o)}function xu(t,e,i){t.callbacks_.push(function(n){let o=e;if(!o||!Cr(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=Vn(o);ea(t,o.draft_??o,s,i),ta(o,n)})}function ta(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:r}=e;if(r){let n=r.getPath(t);n&&r.generatePatches_(t,n,e)}Qs(t)}}function vu(t,e,i){let{scope_:r}=t;if(Xe(i)){let n=i[me];Cr(n,r)&&n.callbacks_.push(function(){pr(t);let s=Vn(n);ea(t,i,s,e)})}else Re(i)&&t.callbacks_.push(function(){let o=rt(t);t.type_===3?o.has(i)&&yr(i,r.handledSet_,r):kn(o,e,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&yr(kn(t.copy_,e,t.type_),r.handledSet_,r)})}function yr(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||Xe(t)||e.has(t)||!Re(t)||_r(t)||(e.add(t),vr(t,(r,n)=>{if(Xe(n)){let o=n[me];if(Cr(o,i)){let s=Vn(o);mr(t,r,s,t.type_),Qs(o)}}else Re(n)&&yr(n,e,i)})),t}function Su(t,e){let i=Sr(t),r={type_:i?1:0,scope_:e?e.scope_:Js(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=r,o=br;i&&(n=[r],o=Oi);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return r.draft_=a,r.revoke_=s,[a,r]}var br={get(t,e){if(e===me)return t;let i=t.scope_.arrayMethodsPlugin_,r=t.type_===1&&typeof e=="string";if(r&&i?.isArrayOperationMethod(e))return i.createMethodInterceptor(t,e);let n=rt(t);if(!On(n,e,t.type_))return Au(t,n,e);let o=n[e];if(t.finalized_||!Re(o)||r&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&fu(e))return o;if(o===Ln(t.base_,e)||Eu(t,e,o)){pr(t);let s=t.type_===1?+e:e,a=Un(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in rt(t)},ownKeys(t){return Reflect.ownKeys(rt(t))},set(t,e,i){let r=ia(rt(t),e);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){let n=Ln(rt(t),e),o=n?.[me];if(o&&o.base_===i)return t.copy_[e]=i,t.assigned_.delete(e),!0;if(pu(i,n)&&(i!==void 0||On(t.base_,e,t.type_)))return!0;pr(t),$n(t)}return t.copy_[e]===i&&(i!==void 0||On(t.copy_,e,t.type_))||Number.isNaN(i)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=i,t.assigned_.set(e,!0),vu(t,e,i)),!0},deleteProperty(t,e){return pr(t),Ln(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),$n(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let i=rt(t),r=Reflect.getOwnPropertyDescriptor(i,e);return r&&{[dr]:!0,[Pn]:t.type_!==1||e!=="length",[hr]:r[hr],[wi]:i[e]}},defineProperty(){ze(11)},getPrototypeOf(t){return Qt(t.base_)},setPrototypeOf(){ze(12)}},Oi={};for(let t in br){let e=br[t];Oi[t]=function(){let i=arguments;return i[0]=i[0][0],e.apply(this,i)}}Oi.deleteProperty=function(t,e){return Oi.set.call(this,t,e,void 0)};Oi.set=function(t,e,i){return br.set.call(this,t[0],e,i,t[0])};function Ln(t,e){let i=t[me];return(i?rt(i):t)[e]}function Eu(t,e,i){return t.type_!==1||!t.allIndicesReassigned_||!Re(i)||i[me]?!1:t.baseRefs_.has(i)}function Au(t,e,i){let r=ia(e,i);return r?wi in r?r[wi]:r.get?.call(t.draft_):void 0}function ia(t,e){if(!(e in t))return;let i=Qt(t);for(;i;){let r=Object.getOwnPropertyDescriptor(i,e);if(r)return r;i=Qt(i)}}function $n(t){t.modified_||(t.modified_=!0,t.parent_&&$n(t.parent_))}function pr(t){t.copy_||(t.assigned_=new Map,t.copy_=Dn(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var _u=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,i,r)=>{if(Jt(e)&&!Jt(i)){let o=i;i=e;let s=this;return function(l=o,...c){return s.produce(l,u=>i.call(this,u,...c))}}Jt(i)||ze(6),r!==void 0&&!Jt(r)&&ze(7);let n;if(Re(e)){let o=Ws(this),s=Un(o,e,void 0),a=!0;try{n=i(s),a=!1}finally{a?In(o):Mn(o)}return Ks(o,r),Gs(n,o)}else if(!e||!Fn(e)){if(n=i(e),n===void 0&&(n=e),n===Ys&&(n=void 0),this.autoFreeze_&&Ar(n,!0),r){let o=[],s=[];Lt(Nn).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),r(o,s)}return n}else ze(1,e)},this.produceWithPatches=(e,i)=>{if(Jt(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,n;return[this.produce(e,i,(s,a)=>{r=s,n=a}),r,n]},Rn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Rn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Rn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Re(t)||ze(8),Xe(t)&&(t=ra(t));let e=Ws(this),i=Un(e,t,void 0);return i[me].isManual_=!0,Mn(e),i}finishDraft(t,e){let i=t&&t[me];(!i||!i.isManual_)&&ze(9);let{scope_:r}=i;return Ks(r,e),Gs(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let i;for(i=e.length-1;i>=0;i--){let n=e[i];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}i>-1&&(e=e.slice(i+1));let r=Lt(Nn).applyPatches_;return Xe(t)?r(t,e):this.produce(t,n=>r(n,e))}};function Un(t,e,i,r){let[n,o]=Er(e)?Lt(gr).proxyMap_(e,i):Li(e)?Lt(gr).proxySet_(e,i):Su(e,i);return(i?.scope_??Js()).drafts_.push(n),o.callbacks_=i?.callbacks_??[],o.key_=r,i&&r!==void 0?xu(i,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),n}function ra(t){return Xe(t)||ze(10,t),na(t)}function na(t){if(!Re(t)||_r(t))return t;let e=t[me],i,r=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=Dn(t,e.scope_.immer_.useStrictShallowCopy_),r=e.scope_.immer_.shouldUseStrictIteration()}else i=Dn(t,!0);let n=i;return Li(i)&&(i=new Set),vr(n,(o,s)=>{mr(i,o,na(s))},r),e&&(e.finalized_=!1),i}var Cu=globalThis.Iterator,$f=typeof Cu?.from=="function";var wu=new _u,Bn=wu.produce;function oa(t){return({dispatch:i,getState:r})=>n=>o=>typeof o=="function"?o(i,r,t):n(o)}var sa=oa(),aa=oa;var Tu=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ci:Ci.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Ou=t=>t&&typeof t.match=="function";function pt(t,e){function i(...r){if(e){let n=e(...r);if(!n)throw new Error(Ze(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>Vs(r)&&r.type===t,i}var pa=class Pi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Pi.prototype)}static get[Symbol.species](){return Pi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Pi(...e[0].concat(this)):new Pi(...e.concat(this))}};function la(t){return Re(t)?Bn(t,()=>{}):t}function wr(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}function Ru(t){return typeof t=="boolean"}var Lu=()=>function(e){let{thunk:i=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new pa;return i&&(Ru(i)?s.push(sa):s.push(aa(i.extraArgument))),s},Pu="RTK_autoBatch";var ca=t=>e=>{setTimeout(e,t)},ku=(t,e)=>i=>{let r=!1,n,o,s=()=>{r||(r=!0,cancelAnimationFrame(n),clearTimeout(o),i())};n=t(s),o=setTimeout(s,e)},Du=(t={type:"raf"})=>e=>(...i)=>{let r=e(...i),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?ku(window.requestAnimationFrame,100):ca(10):t.type==="callback"?t.queueNotification:ca(t.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){let d=()=>n&&u(),p=r.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Pu],o=!n,o&&(s||(s=!0,l(c))),r.dispatch(u)}finally{n=!0}}})},Nu=t=>function(i){let{autoBatch:r=!0}=i??{},n=new pa(t);return r&&n.push(Du(typeof r=="object"?r:void 0)),n};function fa(t){let e=Lu(),{reducer:i=void 0,middleware:r,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof i=="function")l=i;else if(cr(i))l=Tn(i);else throw new Error(Ze(1));let c;typeof r=="function"?c=r(e):c=e();let u=Ci;n&&(u=Tu({trace:!1,...typeof n=="object"&&n}));let d=Fs(...c),p=Nu(d),g=typeof a=="function"?a(p):p(),x=u(...g);return wn(l,s,x)}function ha(t){let e={},i=[],r,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Ze(28));if(a in e)throw new Error(Ze(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&i.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return i.push({matcher:o,reducer:s}),n},addDefaultCase(o){return r=o,n}};return t(n),[e,i,r]}function Iu(t){return typeof t=="function"}function Mu(t,e){let[i,r,n]=ha(e),o;if(Iu(t))o=()=>la(t());else{let a=la(t);o=()=>a}function s(a=o(),l){let c=[i[l.type],...r.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(Xe(u)){let p=d(u,l);return p===void 0?u:p}else{if(Re(u))return Bn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw new Error(Ze(9))}return p}}return u},a)}return s.getInitialState=o,s}var $u=(t,e)=>Ou(t)?t.match(e):t(e);function Uu(...t){return e=>t.some(i=>$u(i,e))}var Fu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Vu=(t=21)=>{let e="",i=t;for(;i--;)e+=Fu[Math.random()*64|0];return e},Bu=["name","message","stack","code"],Hn=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},ua=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Hu=t=>{if(typeof t=="object"&&t!==null){let e={};for(let i of Bu)typeof t[i]=="string"&&(e[i]=t[i]);return e}return{message:String(t)}},da="External signal was aborted",zu=(()=>{function t(e,i,r){let n=pt(e+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=pt(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=pt(e+"/rejected",(l,c,u,d,p)=>({payload:d,error:(r&&r.serializeError||Hu)(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=r?.idGenerator?r.idGenerator(l):Vu(),x=new AbortController,T,b;function R(v){b=v,x.abort()}c&&(c.aborted?R(da):c.addEventListener("abort",()=>R(da),{once:!0}));let V=(async function(){let v;try{let S=r?.condition?.(l,{getState:d,extra:p});if(Ku(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:b||"Aborted"};let z=new Promise((U,ie)=>{T=()=>{ie({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",T,{once:!0})});u(o(g,l,r?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),v=await Promise.race([z,Promise.resolve(i(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:x.signal,abort:R,rejectWithValue:((U,ie)=>new Hn(U,ie)),fulfillWithValue:((U,ie)=>new ua(U,ie))})).then(U=>{if(U instanceof Hn)throw U;return U instanceof ua?n(U.payload,g,l,U.meta):n(U,g,l)})])}catch(S){v=S instanceof Hn?s(null,g,l,S.payload,S.meta):s(S,g,l)}finally{T&&x.signal.removeEventListener("abort",T)}return r&&!r.dispatchConditionRejection&&s.match(v)&&v.meta.condition||u(v),v})();return Object.assign(V,{abort:R,requestId:g,arg:l,unwrap(){return V.then(ju)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:Uu(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function ju(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Ku(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ma=Symbol.for("rtk-slice-createasyncthunk"),Kf={[ma]:zu};function Wu(t,e){return`${t}/${e}`}function Gu({creators:t}={}){let e=t?.asyncThunk?.[ma];return function(r){let{name:n,reducerPath:o=n}=r;if(!n)throw new Error(Ze(11));typeof process<"u";let s=(typeof r.reducers=="function"?r.reducers(Yu()):r.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(v,S){let z=typeof v=="string"?v:v.type;if(!z)throw new Error(Ze(12));if(z in l.sliceCaseReducersByType)throw new Error(Ze(13));return l.sliceCaseReducersByType[z]=S,c},addMatcher(v,S){return l.sliceMatchers.push({matcher:v,reducer:S}),c},exposeAction(v,S){return l.actionCreators[v]=S,c},exposeCaseReducer(v,S){return l.sliceCaseReducersByName[v]=S,c}};a.forEach(v=>{let S=s[v],z={reducerName:v,type:Wu(n,v),createNotation:typeof r.reducers=="function"};Zu(S)?Qu(z,S,c,e):Xu(z,S,c)});function u(){let[v={},S=[],z=void 0]=typeof r.extraReducers=="function"?ha(r.extraReducers):[r.extraReducers],U={...v,...l.sliceCaseReducersByType};return Mu(r.initialState,ie=>{for(let he in U)ie.addCase(he,U[he]);for(let he of l.sliceMatchers)ie.addMatcher(he.matcher,he.reducer);for(let he of S)ie.addMatcher(he.matcher,he.reducer);z&&ie.addDefaultCase(z)})}let d=v=>v,p=new Map,g=new WeakMap,x;function T(v,S){return x||(x=u()),x(v,S)}function b(){return x||(x=u()),x.getInitialState()}function R(v,S=!1){function z(ie){let he=ie[v];return typeof he>"u"&&S&&(he=wr(g,z,b)),he}function U(ie=d){return wr(wr(p,S,()=>new WeakMap),ie,()=>{let he={};for(let[Gi,ke]of Object.entries(r.selectors??{}))he[Gi]=qu(ke,ie,()=>wr(g,ie,b),S);return he})}return{reducerPath:v,getSelectors:U,get selectors(){return U(z)},selectSlice:z}}let V={name:n,reducer:T,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...R(o),injectInto(v,{reducerPath:S,...z}={}){let U=S??o;return v.inject({reducerPath:U,reducer:T},z),{...V,...R(U,!0)}}};return V}}function qu(t,e,i,r){function n(o,...s){let a=e(o);return typeof a>"u"&&r&&(a=i()),t(a,...s)}return n.unwrapped=t,n}var ga=Gu();function Yu(){function t(e,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...i}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...i){return e(...i)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:i}},asyncThunk:t}}function Xu({type:t,reducerName:e,createNotation:i},r,n){let o,s;if("reducer"in r){if(i&&!Ju(r))throw new Error(Ze(17));o=r.reducer,s=r.prepare}else o=r;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?pt(t,s):pt(t))}function Zu(t){return t._reducerDefinitionType==="asyncThunk"}function Ju(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Qu({type:t,reducerName:e},i,r,n){if(!n)throw new Error(Ze(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=i,d=n(t,o,u);r.exposeAction(e,d),s&&r.addCase(d.fulfilled,s),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(e,{fulfilled:s||Tr,pending:a||Tr,rejected:l||Tr,settled:c||Tr})}function Tr(){}var ya="listener",ba="completed",xa="cancelled",Wf=`task-${xa}`,Gf=`task-${ba}`,qf=`${ya}-${xa}`,Yf=`${ya}-${ba}`;var{assign:va}=Object;var zn="listenerMiddleware";var ed=va(pt(`${zn}/add`),{withTypes:()=>ed}),Xf=pt(`${zn}/removeAll`),td=va(pt(`${zn}/remove`),{withTypes:()=>td});function Ze(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var id=ir(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(i,r,n){this.eventBus.addEventListener(i,r,n)}dispatchEvent(i){return this.eventBus.dispatchEvent(i)}removeEventListener(i,r,n){this.eventBus.removeEventListener(i,r,n)}}}),Or=class extends id(Object){};window.ftReduxStores||(window.ftReduxStores={});var Sa=class t extends Or{static get(e){var i;let r=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[r];if(ar(o))return o;if(n==null)return;let s=ga({...n,reducers:(i=n.reducers)!==null&&i!==void 0?i:{}}),a=fa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Ei(s.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 s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus,n.deprecatedKeys)}constructor(e,i,r,n){super(),this.reduxSlice=e,this.reduxStore=i,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new rr,this.injectInto=(s,a)=>this.reduxSlice.injectInto(s,a),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let o=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,l)=>{let c=a,u=s[c];return u?(...d)=>{let p=u(...d.map(o));return this.reduxStore.dispatch(p),p}:d=>{let p=c,g=this.getState()[p];Yt(g,d)||this.setState({[p]:o(d)})}}}),this.eventBus=r??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Rr=class{static format(e,i,r,n,o){return window.moment?window.moment(e).locale(i).format(this.getMomentDateFormat(r,n,!!o)):this.getIntlDateTime(e,i,r,n,!!o)}static getMomentDateFormat(e,i,r){return r?"LT":e?i?"lll":"ll":i?"L LT":"L"}static getIntlDateTime(e,i,r,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(i,{dateStyle:r?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(i,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=r=>String(Math.floor(r)).padStart(2,"0"),i=new Date().getTimezoneOffset();return`${i<0?"+":"-"}${e(Math.abs(i)/60)}:${e(Math.abs(i)%60)}`}};var Lr=f(E()),rd="ft-app-info",Pt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Pt.eventName="authentication-change";var ki=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ki.eventName="ui-locale-changed";var nd={session:(t,e)=>{(0,Lr.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Pt(e.payload)),0))}},P=Lr.FtReduxStore.get({name:rd,reducers:nd,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 Ea=f(E()),Pr=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},wh=(0,Ea.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...r){super(r),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(r){return r.has("metadataDescriptors")||r.has("useLongDateFormat")||r.has("useDateTimeFormat")||r.has("uiLocale")}getDateFormatter(r){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===r))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Rr.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Pr([(0,jn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Pr([(0,jn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Pr([_n({store:P.name,selector:i=>{var r,n;return(n=(r=i.metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Pr([_n({store:P.name})],e.prototype,"uiLocale",void 0),e});var Aa;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Aa||(Aa={}));var _a;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(_a||(_a={}));var Ca;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Ca||(Ca={}));var wa;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(wa||(wa={}));var Ta;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ta||(Ta={}));var Oa;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Oa||(Oa={}));var Ra;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Ra||(Ra={}));var La;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(La||(La={}));var Pa;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Pa||(Pa={}));var ka;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(ka||(ka={}));var Da;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(Da||(Da={}));var Na;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Na||(Na={}));var Ia;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ia||(Ia={}));var Ma;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ma||(Ma={}));var $a;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})($a||($a={}));var Ua;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ua||(Ua={}));var Fa;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Fa||(Fa={}));var Va;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Va||(Va={}));var Ba;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ba||(Ba={}));var Ha;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ha||(Ha={}));var za;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(za||(za={}));var ja;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(ja||(ja={}));var Ka;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ka||(Ka={}));var Wa;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Wa||(Wa={}));var Ga;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ga||(Ga={}));var qa;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(qa||(qa={}));var Ya;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ya||(Ya={}));var Xa;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Xa||(Xa={}));var te;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(te||(te={}));var Me;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Me||(Me={}));var Za;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Za||(Za={}));var Ja;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ja||(Ja={}));var Qa;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Qa||(Qa={}));var el;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(el||(el={}));var tl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(tl||(tl={}));var il;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(il||(il={}));var rl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(rl||(rl={}));var nl;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(nl||(nl={}));var ol;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(ol||(ol={}));var sl;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(sl||(sl={}));var al;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(al||(al={}));var ll;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ll||(ll={}));var od={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN,te.BEHAVIOR_DATA_USER],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function cl(t,e){return t===e||(od[t]??[]).some(i=>cl(i,e))}function Kn(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(r=>cl(r,e))}function ul(t,...e){return t==null?!1:e.some(i=>Kn(t,i))}var Mr=f(E());var Wn=f(E());var kt=class t{static get(e){let{baseUrl:i,apiIntegrationIdentifier:r}=P.getState(),n=e??r;if(i&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,n,!0)}static await(e){return new Promise(i=>{let r=t.get(e);if(r)i(r);else{let n=P.subscribe(()=>{r=t.get(e),r&&(n(),i(r))})}})}};var ei=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var Le=class extends ei{constructor(e=!0,i){var r;super(i),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(r=n.commonCache)!==null&&r!==void 0?r:new Wn.CacheRegistry,this.cache=e?n.commonCache:new Wn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((i,r)=>0|31*i+r.charCodeAt(0),0))}};var kr=class extends Le{async listMySearches(){let{session:e}=P.getState();return Kn(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Dr=class extends Le{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Nr=class extends Le{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var Ir=class extends Le{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var sd="ft-user-assets",ad={setAssetCount:(t,e)=>{let{userAssetType:i,count:r}=e.payload.assetCount;t.assetCounts.allAsset[i]=r},clearAssetCount:t=>{Object.values(Me).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let i=e.payload.mapId;t.assetCounts.bookmarkByMap[i]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:i,mapId:r,asset:n}=e.payload;qn(t,i,[...Gn(t,i),n]),dl(t,i,1,r),pl(t,n)},editAsset:(t,e)=>{let{assetType:i,asset:r}=e.payload;qn(t,i,Gn(t,i).map(n=>n.id===r.id?r:n)),pl(t,r)},removeAsset:(t,e)=>{let{assetType:i,mapId:r,assetId:n}=e.payload;qn(t,i,Gn(t,i).filter(o=>o.id!==n)),dl(t,i,-1,r)}},fl={[Me.SEARCHES]:"savedSearches",[Me.BOOKMARKS]:"bookmarks",[Me.BOOKS]:void 0,[Me.COLLECTIONS]:void 0},Gn=(t,e)=>{var i;let r=fl[e];return r?(i=t[r])!==null&&i!==void 0?i:[]:[]},qn=(t,e,i)=>{let r=fl[e];r&&(t[r]=i)},dl=(t,e,i,r)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+i),e===Me.BOOKMARKS&&r)){let o=t.assetCounts.bookmarkByMap[r];t.assetCounts.bookmarkByMap[r]=Math.max(0,o+i)}},pl=(t,e)=>{let i=t.assetLabels.map(n=>n.title),r=e.labels.filter(n=>!i.includes(n)).map(n=>({title:n}));t.assetLabels.push(...r)},xe=Mr.FtReduxStore.get({name:sd,reducers:ad,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Me).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Yn=class{constructor(e=new Nr,i=new Ir){this.assetCountsService=e,this.assetLabelsService=i,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Dr,this.savedSearchesService=new kr,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:i}=P.getState();(0,Mr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,i?.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),xe.actions.clearAssetCount(),xe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),xe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),xe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();xe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();xe.actions.assetLabels(e)}async loadAssetCount(e){let i=await this.assetCountsService.getUserAssetCount(e);i&&xe.getState().assetCounts.allAsset[e]!==i.count&&xe.actions.setAssetCount({assetCount:i})}async loadBookmarkByMapId(e){let i=await this.assetCountsService.getUserBookmarkCountByMap(e);i&&xe.getState().assetCounts.bookmarkByMap[e]!==i.count&&xe.actions.setBookmarkCountByMap({count:i.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let i=Object.keys(xe.getState().assetCounts.bookmarkByMap).length!==0;e===Me.BOOKMARKS&&i&&xe.actions.clearBookmarkCountByMap(),xe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let i=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;xe.actions.bookmarks(i)}}},ld=new Yn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ld);var Xn=class{addCommand(e,i=!1){P.commands.add(e,i)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Xn;var $e=f(E());var hl,ti=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},cd=Symbol("clearAfterUnitTest"),$r=class extends(0,$e.withEventBus)(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[hl]=()=>{this.defaultMessages={},this.cache=new $e.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let i=e.name.toLowerCase();this.cache.setFinal(i,e),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,i){var r;if(e=e.toLowerCase(),i&&Object.keys(i).length>0){let n={...(r=this.defaultMessages[e])!==null&&r!==void 0?r:{},...i};(0,$e.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var i,r;return this.fetchContext(e),(r=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&r!==void 0?r:{}}resolveRawMessage(e,i){let r=e.toLowerCase();return this.resolveContext(r)[i]}resolveMessage(e,i,...r){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new $e.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(i,...r)}async fetchContext(e){let i=!this.cache.has(e),r;try{r=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),i&&await this.notify(e)}catch(n){!(n instanceof $e.CanceledPromiseError)&&i&&console.error(n)}return r}subscribe(e,i){var r;return e=e.toLowerCase(),this.listeners[e]=(r=this.listeners[e])!==null&&r!==void 0?r:new Set,this.listeners[e].add(i),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(i)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ti({loadedContexts:e})),this.dispatchEvent(new ti({loadedContexts:e})),await Promise.all(e.map(i=>this.notify(i,!1)))}async notify(e,i=!0){i&&(document.body.dispatchEvent(new ti({loadedContexts:[e]})),this.dispatchEvent(new ti({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,$e.delay)(0).then(()=>r()).catch(()=>null)))}};hl=cd;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends $r{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends $r{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ii=window.FluidTopicsI18nService,Ur=window.FluidTopicsCustomI18nService;var ml=f(E()),Zn=class{highlightHtml(e,i,r){(0,ml.highlightHtml)(e,i,r)}};window.FluidTopicsHighlightHtmlService=new Zn;var gl=f(E());var Jn=class{isDate(e){var i,r,n,o;return(o=(r=((n=(i=P.getState().metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||r===void 0?void 0:r.date)!==null&&o!==void 0?o:!1}format(e,i){var r,n,o,s;if(e==null)return"";try{return gl.DateFormatter.format(e,(r=i?.locale)!==null&&r!==void 0?r:P.getState().uiLocale,(n=i?.longFormat)!==null&&n!==void 0?n:!1,(o=i?.withTime)!==null&&o!==void 0?o:!1,(s=i?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Jn;var yl=f(E());var Di=class{static get(e,i,{baseUrl:r,localesConfiguration:n,availableContentLocales:o}=P.getState()){var s;if(!i||o.length>0&&!o.some(a=>a.lang===i)){let a=n?.defaultLocales.defaultContentLocale;i=a?`${a.lang}-${a.region}`:(s=o[0])===null||s===void 0?void 0:s.lang}return new yl.SearchPlaceConverter(r,e??20,n?.allLanguagesAllowed,i,o)}};var Qn=class{urlToSearchRequest(e){return Di.get().parse(e)}searchRequestToUrl(e){return Di.get().serialize(e)}};window.FluidTopicsUrlService=new Qn;var nt=f(E());var Dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Dt.eventName="before-location-change";var Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Nt.eventName="change";var eo=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let i=sessionStorage.getItem(this.itemName(e));return i?JSON.parse(i):void 0}set(e,i){sessionStorage.setItem(this.itemName(e),JSON.stringify(i))}},bl=new eo;var Fr=class t extends nt.WithEventBus{static build(){return new t(window.history,bl,()=>window.location,!1)}constructor(e,i,r,n){var o,s;super(),this.history=e,this.historyStorage=i,this.windowLocation=r,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,i=!1){let r=i&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,r&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,nt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let e=i=>(r,n,[o,s,a])=>{let l=new Dt(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=i(),u={...c===this.currentIndex?this.currentState:void 0,...o,index:c,href:l.detail.nextLocation.href};r.apply(n,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let i=this.history.length-1;i>=0;i--)e?this.states[i]=this.historyStorage.get(i):setTimeout(()=>this.states[i]=this.historyStorage.get(i),this.history.length-i)}updateCurrentState(e){var i;let r={...this.buildCurrentState(),...e,index:this.currentIndex,title:(i=e?.title)!==null&&i!==void 0?i:this.currentState.title};this.setCurrentState(r)}addBeforeLocationChangeListener(e){this.addEventListener(Dt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Dt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Nt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Nt.eventName,e)}currentItem(){return(0,nt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,nt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let i=this.states.filter(r=>!!r).filter(r=>r.index<this.currentIndex).reverse();return(0,nt.deepCopy)(i.find(r=>e(r)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,nt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var i;let r=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;if(!r)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,r);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,i;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(i=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&i!==void 0?i:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,i){var r;if(!this.hasState(e))return!1;let n=i??this.currentState.majorStateId,o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Fr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var xl=f(j());var vl=xl.css`
|
|
575
|
-
`;var
|
|
574
|
+
`}getTextContent(){var e,i;return(i=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(r=>r.textContent).join("").trim())!==null&&i!==void 0?i:""}update(e){super.update(e),["value","variant"].some(i=>e.has(i))&&this.resolveIcon()}resolveIcon(){var e,i;let r=this.value||this.getTextContent();switch(this.variant){case Ne.file_format:this.resolvedIcon=(e=m[r.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:r;break;case Ne.material:this.resolvedIcon=this.value||vi.nothing;break;default:this.resolvedIcon=(i=Ie[r.replace("-","_").toUpperCase()])!==null&&i!==void 0?i:r;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};Z.elementDefinitions={};Z.styles=ns;Si([(0,ut.property)()],Z.prototype,"variant",void 0);Si([(0,ut.property)()],Z.prototype,"value",void 0);Si([(0,ut.property)({reflect:!0,attribute:"aria-hidden"})],Z.prototype,"ariaHidden",void 0);Si([(0,ut.state)()],Z.prototype,"resolvedIcon",void 0);Si([(0,ut.query)("slot")],Z.prototype,"slottedContent",void 0);var Ts=f(E());var ws={"ft-icon":Z};(0,Ts.customElements)(ws);var jn=f(re());var Os=f(re(),1);var An=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},su=t=>({fromAttribute:e=>{if(e==null)return Ei(t);try{return JSON.parse(e)}catch{return Ei(t)}},toAttribute:e=>JSON.stringify(e)});function Rs(t,e){return(0,Os.property)({type:Object,converter:su(t),hasChanged:Ai,...e??{}})}function au(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let i,r;if(Array.isArray(t)){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!Yt(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!Yt(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(i=o.length,i!==n(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;r--!==0;){let s=o[r];if(!Yt(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Yt(t,e){try{return au(t,e)}catch{return!1}}function Ai(t,e){return!Yt(t,e)}function Ei(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function ir(t,e){let i=r=>r[t]===!0;return r=>{if(i(r))return r;let n=e(r);return n[t]=!0,n}}var Ls=f(re(),1);var _n=t=>{let e=t??{};return(i,r)=>{var n;let o={hasChanged:Ai,attribute:!1,...e};(0,Ls.property)(o)(i,r);let s=i.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(r,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[r]),store:e.store})}};var rr=class{constructor(){this.queue=[]}add(e,i=!1){i&&this.clear(e.type),this.queue.push(e)}consume(e){let i=this.queue.find(r=>r.type===e);return i&&(this.queue=this.queue.filter(r=>r!==i)),i}clear(e){typeof e=="string"?this.queue=this.queue.filter(i=>i.type!==e):this.queue=this.queue.filter(i=>!e.test(i.type))}};var Ot=f(re(),1);var nr=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,i){return this.callbacks=[e],this.debounce(i)}queue(e,i){return this.callbacks.push(e),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((i,r)=>{this.resolvePromise=i,this.rejectPromise=r})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,i;let r=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(i=this.resolvePromise)!==null&&i!==void 0?i:(()=>null);this.clearPromise();for(let s of r)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var sr=f(j(),1);var or=class extends sr.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let i={...e.shadowRootOptions,customElements:e.registry},r=this.renderOptions.creationScope=this.attachShadow(i);return(0,sr.adoptStyles)(r,e.elementStyles),r}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([i,r])=>this.defineScopedElement(i,r))}static defineScopedElement(e,i){An(e)(i),this.canDefineScopedElement(e)&&this.registry.define(e,i)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,i){this.scopedRegistryConstructor.defineScopedElement(e,i)}};function Ps(t,e,...i){var r;let n=t.querySelector(e);for(let o of i)n=(r=n?.shadowRoot)===null||r===void 0?void 0:r.querySelector(o);return n}var Zt=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Is,ks=Symbol("constructorPrototype"),Ds=Symbol("constructorName"),Ms=Symbol("exportpartsDebouncer"),Ns=Symbol("dynamicDependenciesLoaded"),Xt=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Xt.eventName="exportparts-updated";var Ye=class extends or{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Is]=new nr(5),this.scheduleExportpartsUpdate=()=>{var e,i,r;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(r=(i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)!==null&&r!==void 0&&r)&&this[Ms].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Ds]=this.constructor.name,this[ks]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Ds]&&Object.setPrototypeOf(this,this[ks])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let i=this.constructor;i[Ns]||(i[Ns]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Xt.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Xt.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Xt)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:i,selector:r,shadowPath:n}=this.elementToFocus;if(r!=null){let o=[...n??[],r];i=Ps(this.shadowRoot,...o)}i?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||i?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var i,r,n;if(((r=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&r!==void 0?r:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var i,r,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=e.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(o=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let g=(s=(r=p.getAttribute("part"))===null||r===void 0?void 0:r.split(" "))!==null&&s!==void 0?s:[],x=(a=(n=p.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],T=[...g,...x].filter(l).map(b=>b.trim());for(let b of T)u.add(b)}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(", ")}};Is=Ms;Zt([(0,Ot.property)()],Ye.prototype,"exportpartsPrefix",void 0);Zt([Rs([])],Ye.prototype,"exportpartsPrefixes",void 0);Zt([(0,Ot.property)({reflect:!0})],Ye.prototype,"exportparts",void 0);Zt([(0,Ot.property)()],Ye.prototype,"customStylesheet",void 0);Zt([(0,Ot.property)()],Ye.prototype,"elementToFocus",void 0);Zt([(0,Ot.state)()],Ye.prototype,"useAdoptedStyleSheets",void 0);function ar(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var _i=Symbol("internalReduxEventsUnsubscribers"),dt=Symbol("internalStoresUnsubscribers"),Rt=Symbol("internalStores"),lu=ir(Symbol("withRedux"),function(t){var e,i,r;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[i]=new Map,this[r]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Rt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Rt].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Rt].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Rt].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Rt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Rt].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(s.store);c&&(s.store?this[dt].has(s.store):this[dt].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l,c;this[dt].set(s,a.subscribe(()=>this.updateFromStores())),this[_i].set(s,[]),ar(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=g=>this[d](g);a.addEventListener(u.eventName,p),this[_i].get(s).push(()=>a.removeEventListener(u.eventName,p))}}))),this.onStoreAvailable(s)}unsubscribeFromStores(){this[dt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[dt].has(s)&&this[dt].get(s)(),this[dt].delete(s),(a=this[_i].get(s))===null||a===void 0||a.forEach(l=>l()),this[_i].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=dt,i=Rt,r=_i,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),$s=class extends lu(Ye){};function de(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var cu=typeof Symbol=="function"&&Symbol.observable||"@@observable",Us=cu,Cn=()=>Math.random().toString(36).substring(7).split("").join("."),uu={INIT:`@@redux/INIT${Cn()}`,REPLACE:`@@redux/REPLACE${Cn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Cn()}`},lr=uu;function cr(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function wn(t,e,i){if(typeof t!="function")throw new Error(de(2));if(typeof e=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(de(0));if(typeof e=="function"&&typeof i>"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(de(1));return i(wn)(t,e)}let r=t,n=e,o=new Map,s=o,a=0,l=!1;function c(){s===o&&(s=new Map,o.forEach((b,R)=>{s.set(R,b)}))}function u(){if(l)throw new Error(de(3));return n}function d(b){if(typeof b!="function")throw new Error(de(4));if(l)throw new Error(de(5));let R=!0;c();let V=a++;return s.set(V,b),function(){if(R){if(l)throw new Error(de(6));R=!1,c(),s.delete(V),o=null}}}function p(b){if(!cr(b))throw new Error(de(7));if(typeof b.type>"u")throw new Error(de(8));if(typeof b.type!="string")throw new Error(de(17));if(l)throw new Error(de(9));try{l=!0,n=r(n,b)}finally{l=!1}return(o=s).forEach(V=>{V()}),b}function g(b){if(typeof b!="function")throw new Error(de(10));r=b,p({type:lr.REPLACE})}function x(){let b=d;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(de(11));function V(){let S=R;S.next&&S.next(u())}return V(),{unsubscribe:b(V)}},[Us](){return this}}}return p({type:lr.INIT}),{dispatch:p,subscribe:d,getState:u,replaceReducer:g,[Us]:x}}function du(t){Object.keys(t).forEach(e=>{let i=t[e];if(typeof i(void 0,{type:lr.INIT})>"u")throw new Error(de(12));if(typeof i(void 0,{type:lr.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(de(13))})}function Tn(t){let e=Object.keys(t),i={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(i[a]=t[a])}let r=Object.keys(i),n,o;try{du(i)}catch(s){o=s}return function(a={},l){if(o)throw o;let c=!1,u={};for(let d=0;d<r.length;d++){let p=r[d],g=i[p],x=a[p],T=g(x,l);if(typeof T>"u"){let b=l&&l.type;throw new Error(de(14))}u[p]=T,c=c||T!==x}return c=c||r.length!==Object.keys(a).length,c?u:a}}function Ci(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,i)=>(...r)=>e(i(...r)))}function Fs(...t){return e=>(i,r)=>{let n=e(i,r),o=()=>{throw new Error(de(15))},s={getState:n.getState,dispatch:(l,...c)=>o(l,...c)},a=t.map(l=>l(s));return o=Ci(...a)(n.dispatch),{...n,dispatch:o}}}function Vs(t){return cr(t)&&"type"in t&&typeof t.type=="string"}var Ys=Symbol.for("immer-nothing"),Bs=Symbol.for("immer-draftable"),me=Symbol.for("immer-state");function ze(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Oe=Object,Qt=Oe.getPrototypeOf,fr="constructor",xr="prototype",Pn="configurable",hr="enumerable",dr="writable",wi="value",Xe=t=>!!t&&!!t[me];function Re(t){return t?Xs(t)||Sr(t)||!!t[Bs]||!!t[fr]?.[Bs]||Er(t)||Li(t):!1}var pu=Oe[xr][fr].toString(),Hs=new WeakMap;function Xs(t){if(!t||!Fn(t))return!1;let e=Qt(t);if(e===null||e===Oe[xr])return!0;let i=Oe.hasOwnProperty.call(e,fr)&&e[fr];if(i===Object)return!0;if(!Jt(i))return!1;let r=Hs.get(i);return r===void 0&&(r=Function.toString.call(i),Hs.set(i,r)),r===pu}function vr(t,e,i=!0){Ri(t)===0?(i?Reflect.ownKeys(t):Oe.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((r,n)=>e(n,r,t))}function Ri(t){let e=t[me];return e?e.type_:Sr(t)?1:Er(t)?2:Li(t)?3:0}var On=(t,e,i=Ri(t))=>i===2?t.has(e):Oe[xr].hasOwnProperty.call(t,e),kn=(t,e,i=Ri(t))=>i===2?t.get(e):t[e],mr=(t,e,i,r=Ri(t))=>{r===2?t.set(e,i):r===3?t.add(i):t[e]=i};function fu(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Sr=Array.isArray,Er=t=>t instanceof Map,Li=t=>t instanceof Set,Fn=t=>typeof t=="object",Jt=t=>typeof t=="function",Rn=t=>typeof t=="boolean";function hu(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var rt=t=>t.copy_||t.base_;var Vn=t=>t.modified_?t.copy_:t.base_;function Dn(t,e){if(Er(t))return new Map(t);if(Li(t))return new Set(t);if(Sr(t))return Array[xr].slice.call(t);let i=Xs(t);if(e===!0||e==="class_only"&&!i){let r=Oe.getOwnPropertyDescriptors(t);delete r[me];let n=Reflect.ownKeys(r);for(let o=0;o<n.length;o++){let s=n[o],a=r[s];a[dr]===!1&&(a[dr]=!0,a[Pn]=!0),(a.get||a.set)&&(r[s]={[Pn]:!0,[dr]:!0,[hr]:a[hr],[wi]:t[s]})}return Oe.create(Qt(t),r)}else{let r=Qt(t);if(r!==null&&i)return{...t};let n=Oe.create(r);return Oe.assign(n,t)}}function Ar(t,e=!1){return _r(t)||Xe(t)||!Re(t)||(Ri(t)>1&&Oe.defineProperties(t,{set:ur,add:ur,clear:ur,delete:ur}),Oe.freeze(t),e&&vr(t,(i,r)=>{Ar(r,!0)},!1)),t}function mu(){ze(2)}var ur={[wi]:mu};function _r(t){return t===null||!Fn(t)?!0:Oe.isFrozen(t)}var gr="MapSet",Nn="Patches",zs="ArrayMethods",Zs={};function Lt(t){let e=Zs[t];return e||ze(0,t),e}var js=t=>!!Zs[t];var Ti,Js=()=>Ti,gu=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:js(gr)?Lt(gr):void 0,arrayMethodsPlugin_:js(zs)?Lt(zs):void 0});function Ws(t,e){e&&(t.patchPlugin_=Lt(Nn),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function In(t){Mn(t),t.drafts_.forEach(yu),t.drafts_=null}function Mn(t){t===Ti&&(Ti=t.parent_)}var Ks=t=>Ti=gu(Ti,t);function yu(t){let e=t[me];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Gs(t,e){e.unfinalizedDrafts_=e.drafts_.length;let i=e.drafts_[0];if(t!==void 0&&t!==i){i[me].modified_&&(In(e),ze(4)),Re(t)&&(t=qs(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(i[me].base_,t,e)}else t=qs(e,i);return bu(e,t,!0),In(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Ys?t:void 0}function qs(t,e){if(_r(e))return e;let i=e[me];if(!i)return yr(e,t.handledSet_,t);if(!Cr(i,t))return e;if(!i.modified_)return i.base_;if(!i.finalized_){let{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);ta(i,t)}return i.copy_}function bu(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ar(e,i)}function Qs(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Cr=(t,e)=>t.scope_===e,xu=[];function ea(t,e,i,r){let n=rt(t),o=t.type_;if(r!==void 0&&kn(n,r,o)===e){mr(n,r,i,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;vr(n,(l,c)=>{if(Xe(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=t.draftLocations_.get(e)??xu;for(let a of s)mr(n,a,i,o)}function vu(t,e,i){t.callbacks_.push(function(n){let o=e;if(!o||!Cr(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=Vn(o);ea(t,o.draft_??o,s,i),ta(o,n)})}function ta(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:r}=e;if(r){let n=r.getPath(t);n&&r.generatePatches_(t,n,e)}Qs(t)}}function Su(t,e,i){let{scope_:r}=t;if(Xe(i)){let n=i[me];Cr(n,r)&&n.callbacks_.push(function(){pr(t);let s=Vn(n);ea(t,i,s,e)})}else Re(i)&&t.callbacks_.push(function(){let o=rt(t);t.type_===3?o.has(i)&&yr(i,r.handledSet_,r):kn(o,e,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&yr(kn(t.copy_,e,t.type_),r.handledSet_,r)})}function yr(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||Xe(t)||e.has(t)||!Re(t)||_r(t)||(e.add(t),vr(t,(r,n)=>{if(Xe(n)){let o=n[me];if(Cr(o,i)){let s=Vn(o);mr(t,r,s,t.type_),Qs(o)}}else Re(n)&&yr(n,e,i)})),t}function Eu(t,e){let i=Sr(t),r={type_:i?1:0,scope_:e?e.scope_:Js(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=r,o=br;i&&(n=[r],o=Oi);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return r.draft_=a,r.revoke_=s,[a,r]}var br={get(t,e){if(e===me)return t;let i=t.scope_.arrayMethodsPlugin_,r=t.type_===1&&typeof e=="string";if(r&&i?.isArrayOperationMethod(e))return i.createMethodInterceptor(t,e);let n=rt(t);if(!On(n,e,t.type_))return _u(t,n,e);let o=n[e];if(t.finalized_||!Re(o)||r&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&hu(e))return o;if(o===Ln(t.base_,e)||Au(t,e,o)){pr(t);let s=t.type_===1?+e:e,a=Un(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in rt(t)},ownKeys(t){return Reflect.ownKeys(rt(t))},set(t,e,i){let r=ia(rt(t),e);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){let n=Ln(rt(t),e),o=n?.[me];if(o&&o.base_===i)return t.copy_[e]=i,t.assigned_.delete(e),!0;if(fu(i,n)&&(i!==void 0||On(t.base_,e,t.type_)))return!0;pr(t),$n(t)}return t.copy_[e]===i&&(i!==void 0||On(t.copy_,e,t.type_))||Number.isNaN(i)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=i,t.assigned_.set(e,!0),Su(t,e,i)),!0},deleteProperty(t,e){return pr(t),Ln(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),$n(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let i=rt(t),r=Reflect.getOwnPropertyDescriptor(i,e);return r&&{[dr]:!0,[Pn]:t.type_!==1||e!=="length",[hr]:r[hr],[wi]:i[e]}},defineProperty(){ze(11)},getPrototypeOf(t){return Qt(t.base_)},setPrototypeOf(){ze(12)}},Oi={};for(let t in br){let e=br[t];Oi[t]=function(){let i=arguments;return i[0]=i[0][0],e.apply(this,i)}}Oi.deleteProperty=function(t,e){return Oi.set.call(this,t,e,void 0)};Oi.set=function(t,e,i){return br.set.call(this,t[0],e,i,t[0])};function Ln(t,e){let i=t[me];return(i?rt(i):t)[e]}function Au(t,e,i){return t.type_!==1||!t.allIndicesReassigned_||!Re(i)||i[me]?!1:t.baseRefs_.has(i)}function _u(t,e,i){let r=ia(e,i);return r?wi in r?r[wi]:r.get?.call(t.draft_):void 0}function ia(t,e){if(!(e in t))return;let i=Qt(t);for(;i;){let r=Object.getOwnPropertyDescriptor(i,e);if(r)return r;i=Qt(i)}}function $n(t){t.modified_||(t.modified_=!0,t.parent_&&$n(t.parent_))}function pr(t){t.copy_||(t.assigned_=new Map,t.copy_=Dn(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Cu=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,i,r)=>{if(Jt(e)&&!Jt(i)){let o=i;i=e;let s=this;return function(l=o,...c){return s.produce(l,u=>i.call(this,u,...c))}}Jt(i)||ze(6),r!==void 0&&!Jt(r)&&ze(7);let n;if(Re(e)){let o=Ks(this),s=Un(o,e,void 0),a=!0;try{n=i(s),a=!1}finally{a?In(o):Mn(o)}return Ws(o,r),Gs(n,o)}else if(!e||!Fn(e)){if(n=i(e),n===void 0&&(n=e),n===Ys&&(n=void 0),this.autoFreeze_&&Ar(n,!0),r){let o=[],s=[];Lt(Nn).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),r(o,s)}return n}else ze(1,e)},this.produceWithPatches=(e,i)=>{if(Jt(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,n;return[this.produce(e,i,(s,a)=>{r=s,n=a}),r,n]},Rn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Rn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Rn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Re(t)||ze(8),Xe(t)&&(t=ra(t));let e=Ks(this),i=Un(e,t,void 0);return i[me].isManual_=!0,Mn(e),i}finishDraft(t,e){let i=t&&t[me];(!i||!i.isManual_)&&ze(9);let{scope_:r}=i;return Ws(r,e),Gs(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let i;for(i=e.length-1;i>=0;i--){let n=e[i];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}i>-1&&(e=e.slice(i+1));let r=Lt(Nn).applyPatches_;return Xe(t)?r(t,e):this.produce(t,n=>r(n,e))}};function Un(t,e,i,r){let[n,o]=Er(e)?Lt(gr).proxyMap_(e,i):Li(e)?Lt(gr).proxySet_(e,i):Eu(e,i);return(i?.scope_??Js()).drafts_.push(n),o.callbacks_=i?.callbacks_??[],o.key_=r,i&&r!==void 0?vu(i,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:c}=l;o.modified_&&c&&c.generatePatches_(o,[],l)}),n}function ra(t){return Xe(t)||ze(10,t),na(t)}function na(t){if(!Re(t)||_r(t))return t;let e=t[me],i,r=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=Dn(t,e.scope_.immer_.useStrictShallowCopy_),r=e.scope_.immer_.shouldUseStrictIteration()}else i=Dn(t,!0);let n=i;return Li(i)&&(i=new Set),vr(n,(o,s)=>{mr(i,o,na(s))},r),e&&(e.finalized_=!1),i}var wu=globalThis.Iterator,Uf=typeof wu?.from=="function";var Tu=new Cu,Bn=Tu.produce;function oa(t){return({dispatch:i,getState:r})=>n=>o=>typeof o=="function"?o(i,r,t):n(o)}var sa=oa(),aa=oa;var Ou=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ci:Ci.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Ru=t=>t&&typeof t.match=="function";function pt(t,e){function i(...r){if(e){let n=e(...r);if(!n)throw new Error(Ze(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>Vs(r)&&r.type===t,i}var pa=class Pi extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Pi.prototype)}static get[Symbol.species](){return Pi}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Pi(...e[0].concat(this)):new Pi(...e.concat(this))}};function la(t){return Re(t)?Bn(t,()=>{}):t}function wr(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}function Lu(t){return typeof t=="boolean"}var Pu=()=>function(e){let{thunk:i=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new pa;return i&&(Lu(i)?s.push(sa):s.push(aa(i.extraArgument))),s},ku="RTK_autoBatch";var ca=t=>e=>{setTimeout(e,t)},Du=(t,e)=>i=>{let r=!1,n,o,s=()=>{r||(r=!0,cancelAnimationFrame(n),clearTimeout(o),i())};n=t(s),o=setTimeout(s,e)},Nu=(t={type:"raf"})=>e=>(...i)=>{let r=e(...i),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Du(window.requestAnimationFrame,100):ca(10):t.type==="callback"?t.queueNotification:ca(t.timeout),c=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){let d=()=>n&&u(),p=r.subscribe(d);return a.add(u),()=>{p(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[ku],o=!n,o&&(s||(s=!0,l(c))),r.dispatch(u)}finally{n=!0}}})},Iu=t=>function(i){let{autoBatch:r=!0}=i??{},n=new pa(t);return r&&n.push(Nu(typeof r=="object"?r:void 0)),n};function fa(t){let e=Pu(),{reducer:i=void 0,middleware:r,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof i=="function")l=i;else if(cr(i))l=Tn(i);else throw new Error(Ze(1));let c;typeof r=="function"?c=r(e):c=e();let u=Ci;n&&(u=Ou({trace:!1,...typeof n=="object"&&n}));let d=Fs(...c),p=Iu(d),g=typeof a=="function"?a(p):p(),x=u(...g);return wn(l,s,x)}function ha(t){let e={},i=[],r,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Ze(28));if(a in e)throw new Error(Ze(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&i.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return i.push({matcher:o,reducer:s}),n},addDefaultCase(o){return r=o,n}};return t(n),[e,i,r]}function Mu(t){return typeof t=="function"}function $u(t,e){let[i,r,n]=ha(e),o;if(Mu(t))o=()=>la(t());else{let a=la(t);o=()=>a}function s(a=o(),l){let c=[i[l.type],...r.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(Xe(u)){let p=d(u,l);return p===void 0?u:p}else{if(Re(u))return Bn(u,p=>d(p,l));{let p=d(u,l);if(p===void 0){if(u===null)return u;throw new Error(Ze(9))}return p}}return u},a)}return s.getInitialState=o,s}var Uu=(t,e)=>Ru(t)?t.match(e):t(e);function Fu(...t){return e=>t.some(i=>Uu(i,e))}var Vu="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Bu=(t=21)=>{let e="",i=t;for(;i--;)e+=Vu[Math.random()*64|0];return e},Hu=["name","message","stack","code"],Hn=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},ua=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},zu=t=>{if(typeof t=="object"&&t!==null){let e={};for(let i of Hu)typeof t[i]=="string"&&(e[i]=t[i]);return e}return{message:String(t)}},da="External signal was aborted",ju=(()=>{function t(e,i,r){let n=pt(e+"/fulfilled",(l,c,u,d)=>({payload:l,meta:{...d||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),o=pt(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=pt(e+"/rejected",(l,c,u,d,p)=>({payload:d,error:(r&&r.serializeError||zu)(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=r?.idGenerator?r.idGenerator(l):Bu(),x=new AbortController,T,b;function R(v){b=v,x.abort()}c&&(c.aborted?R(da):c.addEventListener("abort",()=>R(da),{once:!0}));let V=(async function(){let v;try{let S=r?.condition?.(l,{getState:d,extra:p});if(Ku(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:b||"Aborted"};let z=new Promise((U,ie)=>{T=()=>{ie({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",T,{once:!0})});u(o(g,l,r?.getPendingMeta?.({requestId:g,arg:l},{getState:d,extra:p}))),v=await Promise.race([z,Promise.resolve(i(l,{dispatch:u,getState:d,extra:p,requestId:g,signal:x.signal,abort:R,rejectWithValue:((U,ie)=>new Hn(U,ie)),fulfillWithValue:((U,ie)=>new ua(U,ie))})).then(U=>{if(U instanceof Hn)throw U;return U instanceof ua?n(U.payload,g,l,U.meta):n(U,g,l)})])}catch(S){v=S instanceof Hn?s(null,g,l,S.payload,S.meta):s(S,g,l)}finally{T&&x.signal.removeEventListener("abort",T)}return r&&!r.dispatchConditionRejection&&s.match(v)&&v.meta.condition||u(v),v})();return Object.assign(V,{abort:R,requestId:g,arg:l,unwrap(){return V.then(Wu)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:Fu(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function Wu(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Ku(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var ma=Symbol.for("rtk-slice-createasyncthunk"),Kf={[ma]:ju};function Gu(t,e){return`${t}/${e}`}function qu({creators:t}={}){let e=t?.asyncThunk?.[ma];return function(r){let{name:n,reducerPath:o=n}=r;if(!n)throw new Error(Ze(11));typeof process<"u";let s=(typeof r.reducers=="function"?r.reducers(Xu()):r.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(v,S){let z=typeof v=="string"?v:v.type;if(!z)throw new Error(Ze(12));if(z in l.sliceCaseReducersByType)throw new Error(Ze(13));return l.sliceCaseReducersByType[z]=S,c},addMatcher(v,S){return l.sliceMatchers.push({matcher:v,reducer:S}),c},exposeAction(v,S){return l.actionCreators[v]=S,c},exposeCaseReducer(v,S){return l.sliceCaseReducersByName[v]=S,c}};a.forEach(v=>{let S=s[v],z={reducerName:v,type:Gu(n,v),createNotation:typeof r.reducers=="function"};Ju(S)?ed(z,S,c,e):Zu(z,S,c)});function u(){let[v={},S=[],z=void 0]=typeof r.extraReducers=="function"?ha(r.extraReducers):[r.extraReducers],U={...v,...l.sliceCaseReducersByType};return $u(r.initialState,ie=>{for(let he in U)ie.addCase(he,U[he]);for(let he of l.sliceMatchers)ie.addMatcher(he.matcher,he.reducer);for(let he of S)ie.addMatcher(he.matcher,he.reducer);z&&ie.addDefaultCase(z)})}let d=v=>v,p=new Map,g=new WeakMap,x;function T(v,S){return x||(x=u()),x(v,S)}function b(){return x||(x=u()),x.getInitialState()}function R(v,S=!1){function z(ie){let he=ie[v];return typeof he>"u"&&S&&(he=wr(g,z,b)),he}function U(ie=d){return wr(wr(p,S,()=>new WeakMap),ie,()=>{let he={};for(let[Gi,ke]of Object.entries(r.selectors??{}))he[Gi]=Yu(ke,ie,()=>wr(g,ie,b),S);return he})}return{reducerPath:v,getSelectors:U,get selectors(){return U(z)},selectSlice:z}}let V={name:n,reducer:T,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...R(o),injectInto(v,{reducerPath:S,...z}={}){let U=S??o;return v.inject({reducerPath:U,reducer:T},z),{...V,...R(U,!0)}}};return V}}function Yu(t,e,i,r){function n(o,...s){let a=e(o);return typeof a>"u"&&r&&(a=i()),t(a,...s)}return n.unwrapped=t,n}var ga=qu();function Xu(){function t(e,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...i}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...i){return e(...i)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:i}},asyncThunk:t}}function Zu({type:t,reducerName:e,createNotation:i},r,n){let o,s;if("reducer"in r){if(i&&!Qu(r))throw new Error(Ze(17));o=r.reducer,s=r.prepare}else o=r;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?pt(t,s):pt(t))}function Ju(t){return t._reducerDefinitionType==="asyncThunk"}function Qu(t){return t._reducerDefinitionType==="reducerWithPrepare"}function ed({type:t,reducerName:e},i,r,n){if(!n)throw new Error(Ze(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=i,d=n(t,o,u);r.exposeAction(e,d),s&&r.addCase(d.fulfilled,s),a&&r.addCase(d.pending,a),l&&r.addCase(d.rejected,l),c&&r.addMatcher(d.settled,c),r.exposeCaseReducer(e,{fulfilled:s||Tr,pending:a||Tr,rejected:l||Tr,settled:c||Tr})}function Tr(){}var ya="listener",ba="completed",xa="cancelled",Gf=`task-${xa}`,qf=`task-${ba}`,Yf=`${ya}-${xa}`,Xf=`${ya}-${ba}`;var{assign:va}=Object;var zn="listenerMiddleware";var td=va(pt(`${zn}/add`),{withTypes:()=>td}),Zf=pt(`${zn}/removeAll`),id=va(pt(`${zn}/remove`),{withTypes:()=>id});function Ze(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var rd=ir(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(i,r,n){this.eventBus.addEventListener(i,r,n)}dispatchEvent(i){return this.eventBus.dispatchEvent(i)}removeEventListener(i,r,n){this.eventBus.removeEventListener(i,r,n)}}}),Or=class extends rd(Object){};window.ftReduxStores||(window.ftReduxStores={});var Sa=class t extends Or{static get(e){var i;let r=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[r];if(ar(o))return o;if(n==null)return;let s=ga({...n,reducers:(i=n.reducers)!==null&&i!==void 0?i:{}}),a=fa({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Ei(s.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 s.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus,n.deprecatedKeys)}constructor(e,i,r,n){super(),this.reduxSlice=e,this.reduxStore=i,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new rr,this.injectInto=(s,a)=>this.reduxSlice.injectInto(s,a),this.selectSlice=s=>this.reduxSlice.selectSlice(s);let o=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,a,l)=>{let c=a,u=s[c];return u?(...d)=>{let p=u(...d.map(o));return this.reduxStore.dispatch(p),p}:d=>{let p=c,g=this.getState()[p];Yt(g,d)||this.setState({[p]:o(d)})}}}),this.eventBus=r??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Rr=class{static format(e,i,r,n,o){return window.moment?window.moment(e).locale(i).format(this.getMomentDateFormat(r,n,!!o)):this.getIntlDateTime(e,i,r,n,!!o)}static getMomentDateFormat(e,i,r){return r?"LT":e?i?"lll":"ll":i?"L LT":"L"}static getIntlDateTime(e,i,r,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(i,{dateStyle:r?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(i,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=r=>String(Math.floor(r)).padStart(2,"0"),i=new Date().getTimezoneOffset();return`${i<0?"+":"-"}${e(Math.abs(i)/60)}:${e(Math.abs(i)%60)}`}};var Lr=f(E()),nd="ft-app-info",Pt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Pt.eventName="authentication-change";var ki=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ki.eventName="ui-locale-changed";var od={session:(t,e)=>{(0,Lr.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>P.dispatchEvent(new Pt(e.payload)),0))}},P=Lr.FtReduxStore.get({name:nd,reducers:od,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 Ea=f(E()),Pr=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Th=(0,Ea.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...r){super(r),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(P)}dateFormatOptionsChanged(r){return r.has("metadataDescriptors")||r.has("useLongDateFormat")||r.has("useDateTimeFormat")||r.has("uiLocale")}getDateFormatter(r){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===r))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Rr.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Pr([(0,jn.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Pr([(0,jn.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Pr([_n({store:P.name,selector:i=>{var r,n;return(n=(r=i.metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),Pr([_n({store:P.name})],e.prototype,"uiLocale",void 0),e});var Aa;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(Aa||(Aa={}));var _a;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(_a||(_a={}));var Ca;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(Ca||(Ca={}));var wa;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(wa||(wa={}));var Ta;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ta||(Ta={}));var Oa;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Oa||(Oa={}));var Ra;(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(Ra||(Ra={}));var La;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(La||(La={}));var Pa;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Pa||(Pa={}));var ka;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(ka||(ka={}));var Da;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(Da||(Da={}));var Na;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Na||(Na={}));var Ia;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ia||(Ia={}));var Ma;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ma||(Ma={}));var $a;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})($a||($a={}));var Ua;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ua||(Ua={}));var Fa;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Fa||(Fa={}));var Va;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Va||(Va={}));var Ba;(function(t){t.ASC="ASC",t.DESC="DESC"})(Ba||(Ba={}));var Ha;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ha||(Ha={}));var za;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(za||(za={}));var ja;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(ja||(ja={}));var Wa;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Wa||(Wa={}));var Ka;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Ka||(Ka={}));var Ga;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ga||(Ga={}));var qa;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(qa||(qa={}));var Ya;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ya||(Ya={}));var Xa;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Xa||(Xa={}));var te;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(te||(te={}));var Me;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Me||(Me={}));var Za;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Za||(Za={}));var Ja;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ja||(Ja={}));var Qa;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Qa||(Qa={}));var el;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(el||(el={}));var tl;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(tl||(tl={}));var il;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(il||(il={}));var rl;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(rl||(rl={}));var nl;(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(nl||(nl={}));var ol;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(ol||(ol={}));var sl;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(sl||(sl={}));var al;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(al||(al={}));var ll;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(ll||(ll={}));var cl;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(cl||(cl={}));var sd={[te.PERSONAL_BOOK_SHARE_USER]:[te.PERSONAL_BOOK_USER],[te.HTML_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.PDF_EXPORT_USER]:[te.PERSONAL_BOOK_USER],[te.KHUB_ADMIN]:[te.CONTENT_PUBLISHER],[te.ADMIN]:[te.KHUB_ADMIN,te.USERS_ADMIN,te.PORTAL_ADMIN,te.BEHAVIOR_DATA_USER],[te.GENERATIVE_AI_EXPORT_USER]:[te.GENERATIVE_AI_USER]};function ul(t,e){return t===e||(sd[t]??[]).some(i=>ul(i,e))}function Wn(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(r=>ul(r,e))}function dl(t,...e){return t==null?!1:e.some(i=>Wn(t,i))}var Mr=f(E());var Kn=f(E());var kt=class t{static get(e){let{baseUrl:i,apiIntegrationIdentifier:r}=P.getState(),n=e??r;if(i&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,n,!0)}static await(e){return new Promise(i=>{let r=t.get(e);if(r)i(r);else{let n=P.subscribe(()=>{r=t.get(e),r&&(n(),i(r))})}})}};var ei=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:kt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):kt.await()}};var Le=class extends ei{constructor(e=!0,i){var r;super(i),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(r=n.commonCache)!==null&&r!==void 0?r:new Kn.CacheRegistry,this.cache=e?n.commonCache:new Kn.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((i,r)=>0|31*i+r.charCodeAt(0),0))}};var kr=class extends Le{async listMySearches(){let{session:e}=P.getState();return Wn(e,te.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var Dr=class extends Le{async listMyBookmarks(){let e=P.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var Nr=class extends Le{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var Ir=class extends Le{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=P.getState().session;return!!e?.sessionAuthenticated}};var ad="ft-user-assets",ld={setAssetCount:(t,e)=>{let{userAssetType:i,count:r}=e.payload.assetCount;t.assetCounts.allAsset[i]=r},clearAssetCount:t=>{Object.values(Me).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let i=e.payload.mapId;t.assetCounts.bookmarkByMap[i]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:i,mapId:r,asset:n}=e.payload;qn(t,i,[...Gn(t,i),n]),pl(t,i,1,r),fl(t,n)},editAsset:(t,e)=>{let{assetType:i,asset:r}=e.payload;qn(t,i,Gn(t,i).map(n=>n.id===r.id?r:n)),fl(t,r)},removeAsset:(t,e)=>{let{assetType:i,mapId:r,assetId:n}=e.payload;qn(t,i,Gn(t,i).filter(o=>o.id!==n)),pl(t,i,-1,r)}},hl={[Me.SEARCHES]:"savedSearches",[Me.BOOKMARKS]:"bookmarks",[Me.BOOKS]:void 0,[Me.COLLECTIONS]:void 0},Gn=(t,e)=>{var i;let r=hl[e];return r?(i=t[r])!==null&&i!==void 0?i:[]:[]},qn=(t,e,i)=>{let r=hl[e];r&&(t[r]=i)},pl=(t,e,i,r)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+i),e===Me.BOOKMARKS&&r)){let o=t.assetCounts.bookmarkByMap[r];t.assetCounts.bookmarkByMap[r]=Math.max(0,o+i)}},fl=(t,e)=>{let i=t.assetLabels.map(n=>n.title),r=e.labels.filter(n=>!i.includes(n)).map(n=>({title:n}));t.assetLabels.push(...r)},xe=Mr.FtReduxStore.get({name:ad,reducers:ld,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Me).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Yn=class{constructor(e=new Nr,i=new Ir){this.assetCountsService=e,this.assetLabelsService=i,this.currentSession=P.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new Dr,this.savedSearchesService=new kr,P.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:i}=P.getState();(0,Mr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,i?.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),xe.actions.clearAssetCount(),xe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),xe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),xe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();xe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();xe.actions.assetLabels(e)}async loadAssetCount(e){let i=await this.assetCountsService.getUserAssetCount(e);i&&xe.getState().assetCounts.allAsset[e]!==i.count&&xe.actions.setAssetCount({assetCount:i})}async loadBookmarkByMapId(e){let i=await this.assetCountsService.getUserBookmarkCountByMap(e);i&&xe.getState().assetCounts.bookmarkByMap[e]!==i.count&&xe.actions.setBookmarkCountByMap({count:i.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let i=Object.keys(xe.getState().assetCounts.bookmarkByMap).length!==0;e===Me.BOOKMARKS&&i&&xe.actions.clearBookmarkCountByMap(),xe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let i=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;xe.actions.bookmarks(i)}}},cd=new Yn;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=cd);var Xn=class{addCommand(e,i=!1){P.commands.add(e,i)}consumeCommand(e){return P.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new Xn;var $e=f(E());var ml,ti=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},ud=Symbol("clearAfterUnitTest"),$r=class extends(0,$e.withEventBus)(Le){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ml]=()=>{this.defaultMessages={},this.cache=new $e.CacheRegistry,this.listeners={}},this.currentUiLocale=P.getState().uiLocale,P.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=P.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let i=e.name.toLowerCase();this.cache.setFinal(i,e),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,i){var r;if(e=e.toLowerCase(),i&&Object.keys(i).length>0){let n={...(r=this.defaultMessages[e])!==null&&r!==void 0?r:{},...i};(0,$e.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var i,r;return this.fetchContext(e),(r=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&r!==void 0?r:{}}resolveRawMessage(e,i){let r=e.toLowerCase();return this.resolveContext(r)[i]}resolveMessage(e,i,...r){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new $e.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(i,...r)}async fetchContext(e){let i=!this.cache.has(e),r;try{r=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),i&&await this.notify(e)}catch(n){!(n instanceof $e.CanceledPromiseError)&&i&&console.error(n)}return r}subscribe(e,i){var r;return e=e.toLowerCase(),this.listeners[e]=(r=this.listeners[e])!==null&&r!==void 0?r:new Set,this.listeners[e].add(i),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(i)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new ti({loadedContexts:e})),this.dispatchEvent(new ti({loadedContexts:e})),await Promise.all(e.map(i=>this.notify(i,!1)))}async notify(e,i=!0){i&&(document.body.dispatchEvent(new ti({loadedContexts:[e]})),this.dispatchEvent(new ti({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,$e.delay)(0).then(()=>r()).catch(()=>null)))}};ml=ud;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends $r{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends $r{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var ii=window.FluidTopicsI18nService,Ur=window.FluidTopicsCustomI18nService;var gl=f(E()),Zn=class{highlightHtml(e,i,r){(0,gl.highlightHtml)(e,i,r)}};window.FluidTopicsHighlightHtmlService=new Zn;var yl=f(E());var Jn=class{isDate(e){var i,r,n,o;return(o=(r=((n=(i=P.getState().metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||r===void 0?void 0:r.date)!==null&&o!==void 0?o:!1}format(e,i){var r,n,o,s;if(e==null)return"";try{return yl.DateFormatter.format(e,(r=i?.locale)!==null&&r!==void 0?r:P.getState().uiLocale,(n=i?.longFormat)!==null&&n!==void 0?n:!1,(o=i?.withTime)!==null&&o!==void 0?o:!1,(s=i?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Jn;var bl=f(E());var Di=class{static get(e,i,{baseUrl:r,localesConfiguration:n,availableContentLocales:o}=P.getState()){var s;if(!i||o.length>0&&!o.some(a=>a.lang===i)){let a=n?.defaultLocales.defaultContentLocale;i=a?`${a.lang}-${a.region}`:(s=o[0])===null||s===void 0?void 0:s.lang}return new bl.SearchPlaceConverter(r,e??20,n?.allLanguagesAllowed,i,o)}};var Qn=class{urlToSearchRequest(e){return Di.get().parse(e)}searchRequestToUrl(e){return Di.get().serialize(e)}};window.FluidTopicsUrlService=new Qn;var nt=f(E());var Dt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Dt.eventName="before-location-change";var Nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Nt.eventName="change";var eo=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let i=sessionStorage.getItem(this.itemName(e));return i?JSON.parse(i):void 0}set(e,i){sessionStorage.setItem(this.itemName(e),JSON.stringify(i))}},xl=new eo;var Fr=class t extends nt.WithEventBus{static build(){return new t(window.history,xl,()=>window.location,!1)}constructor(e,i,r,n){var o,s;super(),this.history=e,this.historyStorage=i,this.windowLocation=r,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,i=!1){let r=i&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,r&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,nt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Nt(this.currentItem())),0)}installProxies(){let e=i=>(r,n,[o,s,a])=>{let l=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),c=new Dt(l);this.dispatchEvent(c);let u=i(),d={...u===this.currentIndex?this.currentState:void 0,...o,index:u,href:c.detail.nextLocation.href};r.apply(n,[d,s,d.href]),this.setCurrentState(d,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let i=this.history.length-1;i>=0;i--)e?this.states[i]=this.historyStorage.get(i):setTimeout(()=>this.states[i]=this.historyStorage.get(i),this.history.length-i)}updateCurrentState(e){var i;let r={...this.buildCurrentState(),...e,index:this.currentIndex,title:(i=e?.title)!==null&&i!==void 0?i:this.currentState.title};this.setCurrentState(r)}addBeforeLocationChangeListener(e){this.addEventListener(Dt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Dt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Nt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Nt.eventName,e)}currentItem(){return(0,nt.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,nt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let i=this.states.filter(r=>!!r).filter(r=>r.index<this.currentIndex).reverse();return(0,nt.deepCopy)(i.find(r=>e(r)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,nt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var i;let r=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;if(!r)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,r);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,i;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(i=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&i!==void 0?i:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,i){var r;if(!this.hasState(e))return!1;let n=i??this.currentState.majorStateId,o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=Fr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var vl=f(j());var Sl=vl.css`
|
|
575
|
+
`;var _l=f(j()),ve=f(re()),Mt=f(E());var Je=f(E());function El(t,e){let{authenticationRequired:i,session:r}=P.getState();return i&&!r?.sessionAuthenticated?Promise.resolve(e):t()}var Vr=class extends ei{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var to=class t extends Je.FtStateManager{static build(e){return new t(P,e)}constructor(e,i){super(),this.store=e,this.cache=new Je.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Vr,this.knownContexts=new Je.AbstractRegistry,this.knownCustomComponents=new Je.AbstractRegistry,this.cleanSessionDebouncer=new Je.Debouncer,this.reloadConfiguration=()=>{var r;(r=this.cache)===null||r===void 0||r.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Je.Debouncer(500),this.apiProvider=i??(()=>kt.get())}setWithManualResources(e){this.withManualResources=e,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 e=await this.cache.get("session",async()=>{let i=await this.apiProvider().getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},i.idleTimeoutInMillis),i});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let i=await this.cache.get("availableContentLocales",()=>El(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=i.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,i){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:i}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ki(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return dl(P.getState().session,...e)}},Al=to.build();var It=class extends Event{constructor(e,i,r,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=i,this.callback=r,this.subscribe=n??!1}};var Ni=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let i=this.pendingContextRequests.get(e.context);if(i===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:r}=i;for(let{elementRef:n,callbackRef:o}of r){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new It(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let i=e.contextTarget??e.composedPath()[0],r=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(i);o===void 0&&n.callbacks.set(i,o=new WeakSet),o.has(r)||(o.add(r),n.requests.push({elementRef:new WeakRef(i),callbackRef:new WeakRef(r)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ae=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},G=class extends Mt.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=Al,this.contextRoot=new Ni}render(){return _l.html`
|
|
576
576
|
<slot></slot>
|
|
577
|
-
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var i;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>ii.addContext(r)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((i=this.stateManager)===null||i===void 0||i.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};G.elementDefinitions={};G.styles=
|
|
578
|
-
`;var jr=f(j()),li=f(re()),
|
|
577
|
+
`}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var i;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>ii.addContext(r)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((i=this.stateManager)===null||i===void 0||i.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};G.elementDefinitions={};G.styles=Sl;ae([(0,ve.property)()],G.prototype,"baseUrl",void 0);ae([(0,ve.property)()],G.prototype,"tenantId",void 0);ae([(0,ve.property)()],G.prototype,"apiIntegrationIdentifier",void 0);ae([(0,ve.property)()],G.prototype,"apiIntegrationAppVersion",void 0);ae([(0,ve.property)()],G.prototype,"uiLocale",void 0);ae([(0,Mt.jsonProperty)(null)],G.prototype,"availableUiLocales",void 0);ae([(0,Mt.jsonProperty)(null)],G.prototype,"metadataConfiguration",void 0);ae([(0,ve.property)({type:Boolean})],G.prototype,"editorMode",void 0);ae([(0,ve.property)({type:Boolean})],G.prototype,"noCustom",void 0);ae([(0,ve.property)({type:Boolean})],G.prototype,"openExternalDocumentInNewTab",void 0);ae([(0,ve.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomComponent",void 0);ae([(0,ve.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],G.prototype,"noCustomCode",void 0);ae([(0,ve.property)({type:Boolean})],G.prototype,"withManualResources",void 0);ae([(0,ve.property)({type:Boolean})],G.prototype,"navigatorOnline",void 0);ae([(0,ve.property)({type:Boolean})],G.prototype,"forcedOffline",void 0);ae([(0,ve.property)({type:Boolean})],G.prototype,"authenticationRequired",void 0);ae([(0,Mt.jsonProperty)([])],G.prototype,"messageContexts",void 0);ae([(0,Mt.jsonProperty)(void 0)],G.prototype,"session",void 0);var wl=f(E());var Cl={"ft-app-context":G};(0,wl.customElements)(Cl);var ri=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?Ur:ii}constructor(e,i=!1){this.name=e,this.custom=i,this.properties=new Proxy({},{get:(r,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(r,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(r,n)=>()=>n}),this.attributes=new Proxy({},{get:(r,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var oi=f(E());var Tl=f(re());var io=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,r]=e.split(".");return{context:i,key:r,custom:i!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},ni=new io;var fd=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Mi=Symbol("i18nAttributes"),Ol=Symbol("i18nListAttributes"),Rl=Symbol("i18nProperties"),Br=Symbol("i18nContexts"),Ii=Symbol("i18nUnsubs"),si=(0,oi.applyMixinOnce)(Symbol("withI18n"),function(t){var e,i;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[i]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?Ur:ii}i18n(o){let{context:s,key:a,message:l}=o,{custom:c,args:u,argsProvider:d}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let p=u??(d?d(this):[]);return this.getI18nService(c).resolveMessage(s,a,...p)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(ni.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,c=(u,d,p)=>p?.context&&p.key&&o(u,d,p)?{...p,message:this.i18n({context:p.context,key:p.key,custom:p.custom,...u})}:p;(s=this[Mi])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[Ol])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(g=>c(u,d,g))})}updateI18nProperties(o){var s;(s=this[Rl])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Br].set(l,{isCustomContext:a}),this[Ii].has(l)||this[Ii].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Br].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Br].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[Ii].forEach(o=>o()),this[Ii].clear()}}return e=Br,i=Ii,fd([(0,Tl.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}),Hr=class extends si(oi.FtLitElement){},zr=class extends si(oi.FtLitElementRedux){};var Ll=f(j());var Pl=Ll.css`
|
|
578
|
+
`;var jr=f(j()),li=f(re()),Wr=f(E());var ai=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Ue=class extends zr{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(P)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:jr.nothing:jr.html`
|
|
579
579
|
<span class="ft-i18n">
|
|
580
580
|
${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
|
|
581
581
|
</span>
|
|
582
|
-
`}update(e){var i;super.update(e),["context","key","defaultMessage"].some(r=>e.has(r))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(i=this.defaultMessage)!==null&&i!==void 0?i:""})}};Ue.elementDefinitions={};Ue.styles=
|
|
582
|
+
`}update(e){var i;super.update(e),["context","key","defaultMessage"].some(r=>e.has(r))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(i=this.defaultMessage)!==null&&i!==void 0?i:""})}};Ue.elementDefinitions={};Ue.styles=Pl;ai([(0,Wr.redux)()],Ue.prototype,"editorMode",void 0);ai([(0,li.property)()],Ue.prototype,"context",void 0);ai([(0,li.property)()],Ue.prototype,"key",void 0);ai([(0,Wr.jsonProperty)([])],Ue.prototype,"args",void 0);ai([(0,li.property)()],Ue.prototype,"defaultMessage",void 0);ai([(0,li.state)()],Ue.prototype,"editorMessage",void 0);var Dl=f(E());var kl={"ft-i18n":Ue};(0,Dl.customElements)(kl);var Kr=ri.build("ftTextField"),Nl={clear:"Clear",cleared:"Input cleared"};var Rc=f(E()),Ht=f(j()),tt=f(re());var Il=f(j());var Ml=Il.css`
|
|
583
583
|
.ft-text-field-suggestion--suggestion {
|
|
584
584
|
position: relative;
|
|
585
585
|
padding: 8px 16px;
|
|
@@ -625,7 +625,7 @@
|
|
|
625
625
|
slot {
|
|
626
626
|
pointer-events: none;
|
|
627
627
|
}
|
|
628
|
-
`;var
|
|
628
|
+
`;var Lc=f(lt());var et=f(E());var mc=f(j()),Ve=f(re()),Fe=f(E());var $l=f(j()),ft=f(E()),$i={distance:ft.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:ft.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:ft.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:ft.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",ft.designSystemVariables.borderRadiusS),maxWidth:ft.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},Ul=$l.css`
|
|
629
629
|
.ft-tooltip--container {
|
|
630
630
|
display: block;
|
|
631
631
|
}
|
|
@@ -656,7 +656,7 @@
|
|
|
656
656
|
position: relative;
|
|
657
657
|
word-break: break-word;
|
|
658
658
|
}
|
|
659
|
-
`;var Fl=["top","right","bottom","left"],Ul=["start","end"],no=Fl.reduce((t,e)=>t.concat(e,e+"-"+Ul[0],e+"-"+Ul[1]),[]),Ui=Math.min,ht=Math.max,Fi=Math.round;var Qe=t=>({x:t,y:t}),fd={left:"right",right:"left",bottom:"top",top:"bottom"};function Vl(t,e,i){return ht(t,Ui(e,i))}function Gr(t,e){return typeof t=="function"?t(e):t}function Vi(t){return t.split("-")[0]}function mt(t){return t.split("-")[1]}function oo(t){return t==="x"?"y":"x"}function so(t){return t==="y"?"height":"width"}function qr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function ao(t){return oo(qr(t))}function Bl(t,e,i){i===void 0&&(i=!1);let r=mt(t),n=ao(t),o=so(n),s=n==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=ro(s)),[s,ro(s)]}function Hl(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ro(t){let e=Vi(t);return fd[e]+t.slice(e.length)}function hd(t){var e,i,r,n;return{top:(e=t.top)!=null?e:0,right:(i=t.right)!=null?i:0,bottom:(r=t.bottom)!=null?r:0,left:(n=t.left)!=null?n:0}}function zl(t){return typeof t!="number"?hd(t):{top:t,right:t,bottom:t,left:t}}function $t(t){let{x:e,y:i,width:r,height:n}=t;return{width:r,height:n,top:i,left:e,right:e+r,bottom:i+n,x:e,y:i}}function jl(t,e,i){let{reference:r,floating:n}=t,o=qr(e),s=ao(e),a=so(s),l=Vi(e),c=o==="y",u=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:r.y-n.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-n.width,y:d};break;default:g={x:r.x,y:r.y}}let x=mt(e);return x&&(g[s]+=p*(x==="end"?1:-1)*(i&&c?-1:1)),g}async function Kl(t,e){var i;e===void 0&&(e={});let{x:r,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Gr(e,t),x=zl(g),b=a[p?d==="floating"?"reference":"floating":d],R=$t(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(b)))==null||i?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),V=d==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(v))&&await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1},z=$t(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:V,offsetParent:v,strategy:l}):V);return{top:(R.top-z.top+x.top)/S.y,bottom:(z.bottom-R.bottom+x.bottom)/S.y,left:(R.left-z.left+x.left)/S.x,right:(z.right-R.right+x.right)/S.x}}var md=50,Wl=async(t,e,i)=>{let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:s}=i,a=s.detectOverflow?s:{...s,detectOverflow:Kl},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=jl(c,r,l),p=r,g=0,x={};for(let T=0;T<o.length;T++){let b=o[T];if(!b)continue;let{name:R,fn:V}=b,{x:v,y:S,data:z,reset:U}=await V({x:u,y:d,initialPlacement:r,placement:p,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=v??u,d=S??d,x[R]={...x[R],...z},U&&g<md&&(g++,typeof U=="object"&&(U.placement&&(p=U.placement),U.rects&&(c=U.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):U.rects),{x:u,y:d}=jl(c,p,l)),T=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:x}};function gd(t,e,i){return(t?[...i.filter(n=>mt(n)===t),...i.filter(n=>mt(n)!==t)]:i.filter(n=>Vi(n)===n)).filter(n=>t?mt(n)===t||(e?Hl(n)!==n:!1):!0)}var Gl=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,r,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=no,autoAlignment:g=!0,...x}=Gr(t,e),T=d!==void 0||p===no?gd(d||null,g,p):p,b=((i=s.autoPlacement)==null?void 0:i.index)||0,R=T[b];if(R==null)return{};if(a!==R)return{reset:{placement:T[0]}};let V=await l.detectOverflow(e,x),v=Bl(R,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),S=[V[Vi(R)],V[v[0]],V[v[1]]],z=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:R,overflows:S}],U=T[b+1];if(U)return{data:{index:b+1,overflows:z},reset:{placement:U}};let ie=z.map(ke=>{let fi=mt(ke.placement);return[ke.placement,fi&&u?ke.overflows.slice(0,2).reduce((Wc,Gc)=>Wc+Gc,0):ke.overflows[0],ke.overflows]}).sort((ke,fi)=>ke[1]-fi[1]),Gi=((n=ie.filter(ke=>ke[2].slice(0,mt(ke[0])?2:3).every(fi=>fi<=0))[0])==null?void 0:n[0])||ie[0][0];return Gi!==a?{data:{index:b+1,overflows:z},reset:{placement:Gi}}:{}}}};var ql=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:i,y:r,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:V=>{let{x:v,y:S}=V;return{x:v,y:S}}},...c}=Gr(t,e),u={x:i,y:r},d=await o.detectOverflow(e,c),p=qr(n),g=oo(p),x=u[g],T=u[p],b=(V,v)=>Vl(v+d[V==="y"?"top":"left"],v,v-d[V==="y"?"bottom":"right"]);s&&(x=b(g,x)),a&&(T=b(p,T));let R=l.fn({...e,[g]:x,[p]:T});return{...R,data:{x:R.x-i,y:R.y-r,enabled:{[g]:s,[p]:a}}}}}};function Xr(){return typeof window<"u"}function Ft(t){return Xl(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ot(t){var e;return(e=(Xl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Xl(t){return Xr()?t instanceof Node||t instanceof _e(t).Node:!1}function je(t){return Xr()?t instanceof Element||t instanceof _e(t).Element:!1}function st(t){return Xr()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function Yl(t){return!Xr()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function Bi(t){let{overflow:e,overflowX:i,overflowY:r,display:n}=Ke(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&n!=="inline"&&n!=="contents"}function Zl(t){return/^(table|td|th)$/.test(Ft(t))}function Hi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var yd=/transform|translate|scale|rotate|perspective|filter/,bd=/paint|layout|strict|content/,Ut=t=>!!t&&t!=="none",lo;function ci(t){let e=je(t)?Ke(t):t;return Ut(e.transform)||Ut(e.translate)||Ut(e.scale)||Ut(e.rotate)||Ut(e.perspective)||!Zr()&&(Ut(e.backdropFilter)||Ut(e.filter))||yd.test(e.willChange||"")||bd.test(e.contain||"")}function Jl(t){let e=gt(t);for(;st(e)&&!ui(e);){if(ci(e))return e;if(Hi(e))return null;e=gt(e)}return null}function Zr(){return lo==null&&(lo=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),lo}function ui(t){return/^(html|body|#document)$/.test(Ft(t))}function Ke(t){return _e(t).getComputedStyle(t)}function zi(t){return je(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function gt(t){if(Ft(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Yl(t)&&t.host||ot(t);return Yl(e)?e.host:e}function Ql(t){let e=gt(t);return ui(e)?(t.ownerDocument||t).body:st(e)&&Bi(e)?e:Ql(e)}function Yr(t,e,i){var r;e===void 0&&(e=[]),i===void 0&&(i=!0);let n=Ql(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=_e(n);if(o){let a=Jr(s);return e.concat(s,s.visualViewport||[],Bi(n)?n:[],a&&i?Yr(a):[])}else return e.concat(n,Yr(n,[],i))}function Jr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function ic(t){let e=Ke(t),i=parseFloat(e.width)||0,r=parseFloat(e.height)||0,n=st(t),o=n?t.offsetWidth:i,s=n?t.offsetHeight:r,a=Fi(i)!==o||Fi(r)!==s;return a&&(i=o,r=s),{width:i,height:r,$:a}}function rc(t){return je(t)?t:t.contextElement}function di(t){let e=rc(t);if(!st(e))return Qe(1);let i=e.getBoundingClientRect(),{width:r,height:n,$:o}=ic(e),s=(o?Fi(i.width):i.width)/r,a=(o?Fi(i.height):i.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var xd=Qe(0);function nc(t){let e=_e(t);return!Zr()||!e.visualViewport?xd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function vd(t,e,i){return e===void 0&&(e=!1),!!i&&e&&i===_e(t)}function ji(t,e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);let n=t.getBoundingClientRect(),o=rc(t),s=Qe(1);e&&(r?je(r)&&(s=di(r)):s=di(t));let a=vd(o,i,r)?nc(o):Qe(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&r){let p=_e(o),g=je(r)?_e(r):r,x=p,T=Jr(x);for(;T&&g!==x;){let b=di(T),R=T.getBoundingClientRect(),V=Ke(T),v=R.left+(T.clientLeft+parseFloat(V.paddingLeft))*b.x,S=R.top+(T.clientTop+parseFloat(V.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=v,c+=S,x=_e(T),T=Jr(x)}}return $t({width:u,height:d,x:l,y:c})}function Qr(t,e){let i=zi(t).scrollLeft;return e?e.left+i:ji(ot(t)).left+i}function oc(t,e){let i=t.getBoundingClientRect(),r=i.left+e.scrollLeft-Qr(t,i),n=i.top+e.scrollTop;return{x:r,y:n}}function Sd(t){let{elements:e,rect:i,offsetParent:r,strategy:n}=t,o=n==="fixed",s=ot(r),a=e?Hi(e.floating):!1;if(r===s||a&&o)return i;let l={scrollLeft:0,scrollTop:0},c=Qe(1),u=Qe(0),d=st(r);if((d||!o)&&((Ft(r)!=="body"||Bi(s))&&(l=zi(r)),d)){let g=ji(r);c=di(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}let p=s&&!d&&!o?oc(s,l):Qe(0);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:i.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Ed(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Ad(t){let e=zi(t),i=t.ownerDocument.body,r=ht(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),n=ht(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),o=-e.scrollLeft+Qr(t),s=-e.scrollTop;return Ke(i).direction==="rtl"&&(o+=ht(t.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:s}}var _d=25;function Cd(t,e,i){i===void 0&&(i="viewport");let r=i==="layoutViewport",n=_e(t),o=ot(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!Zr()||e==="fixed";r?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(Qr(o)<=0){let p=o.ownerDocument,g=p.body,x=getComputedStyle(g),T=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(o.clientWidth-g.clientWidth-T),R=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;R<=_d&&(a-=R)}return{width:a,height:l,x:c,y:u}}function wd(t,e){let i=ji(t,!0,e==="fixed"),r=i.top+t.clientTop,n=i.left+t.clientLeft,o=di(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function ec(t,e,i){let r;if(e==="viewport"||e==="layoutViewport")r=Cd(t,i,e);else if(e==="document")r=Ad(ot(t));else if(je(e))r=wd(e,i);else{let n=nc(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return $t(r)}function Td(t,e){let i=e.get(t);if(i)return i;let r=Yr(t,[],!1).filter(a=>je(a)&&Ft(a)!=="body"),n=null,o=Ke(t).position==="fixed",s=o?gt(t):t;for(;je(s)&&!ui(s);){let a=Ke(s),l=ci(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?r=r.filter(d=>d!==s):n=a,s=gt(s)}return e.set(t,r),r}function Od(t){let{element:e,boundary:i,rootBoundary:r,strategy:n}=t,s=[...i==="clippingAncestors"?Hi(e)?[]:Td(e,this._c):[].concat(i),r],a=ec(e,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let g=ec(e,s[p],n);l=ht(g.top,l),c=Ui(g.right,c),u=Ui(g.bottom,u),d=ht(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Rd(t){let{width:e,height:i}=ic(t);return{width:e,height:i}}function Ld(t,e,i){let r=st(e),n=ot(e),o=i==="fixed",s=ji(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Qe(0);if((r||!o)&&((Ft(e)!=="body"||Bi(n))&&(a=zi(e)),r)){let p=ji(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!r&&n&&(l.x=Qr(n));let c=n&&!r&&!o?oc(n,a):Qe(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function co(t){return Ke(t).position==="static"}function tc(t,e){if(!st(t)||Ke(t).position==="fixed")return null;if(e)return e(t);let i=t.offsetParent;return ot(t)===i&&(i=i.ownerDocument.body),i}function sc(t,e){let i=_e(t);if(Hi(t))return i;if(!st(t)){let n=gt(t);for(;n&&!ui(n);){if(je(n)&&!co(n))return n;n=gt(n)}return i}let r=tc(t,e);for(;r&&Zl(r)&&co(r);)r=tc(r,e);return r&&ui(r)&&co(r)&&!ci(r)?i:r||Jl(t)||i}var Pd=async function(t){let e=this.getOffsetParent||sc,i=this.getDimensions,r=await i(t.floating);return{reference:Ld(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function kd(t){return Ke(t).direction==="rtl"}var en={convertOffsetParentRelativeRectToViewportRelativeRect:Sd,getDocumentElement:ot,getClippingRect:Od,getOffsetParent:sc,getElementRects:Pd,getClientRects:Ed,getDimensions:Rd,getScale:di,isElement:je,isRTL:kd};var ac=Gl,lc=ql;var cc=(t,e,i)=>{let r=new Map,n=i??{},o={...en,...n.platform,_c:r};return Wl(t,e,{...n,platform:o})};function uc(t){return Dd(t)}function uo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Dd(t){for(let e=t;e;e=uo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=uo(t);e;e=uo(e)){if(!(e instanceof Element))continue;let i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||ci(i)||e.tagName==="BODY"))return e}return null}async function dc(t,e,i){let r;return typeof i=="object"?r=i:r={placement:i},cc(t,e,{strategy:r.strategy,platform:{...en,getOffsetParent:n=>en.getOffsetParent(n,uc)},middleware:[lc({crossAxis:!0}),ac({allowedPlacements:[r.placement]})]})}var pc=f(E());var po=class{fromAttribute(e){if(!e)return[];try{let i=JSON.parse(e);return Array.isArray(i)?i.map(r=>typeof r=="string"?ni.fromAttribute(r):r):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Nd=new po;var fc=(t,e)=>(i,r)=>{var n;i.constructor.createProperty(r,{type:Object,hasChanged:pc.hasChanged,converter:ni,...e}),i[Mi]=(n=i[Mi])!==null&&n!==void 0?n:new Map,i[Mi].set(r,t??{})};var We=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},oe=class extends Hr{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 Fe.Debouncer,this.revealDebouncer=new Fe.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",i=>{i.composedPath().includes(this.container)||this.onOut(i)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,i;return hc.html`
|
|
659
|
+
`;var Vl=["top","right","bottom","left"],Fl=["start","end"],no=Vl.reduce((t,e)=>t.concat(e,e+"-"+Fl[0],e+"-"+Fl[1]),[]),Ui=Math.min,ht=Math.max,Fi=Math.round;var Qe=t=>({x:t,y:t}),hd={left:"right",right:"left",bottom:"top",top:"bottom"};function Bl(t,e,i){return ht(t,Ui(e,i))}function Gr(t,e){return typeof t=="function"?t(e):t}function Vi(t){return t.split("-")[0]}function mt(t){return t.split("-")[1]}function oo(t){return t==="x"?"y":"x"}function so(t){return t==="y"?"height":"width"}function qr(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function ao(t){return oo(qr(t))}function Hl(t,e,i){i===void 0&&(i=!1);let r=mt(t),n=ao(t),o=so(n),s=n==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=ro(s)),[s,ro(s)]}function zl(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function ro(t){let e=Vi(t);return hd[e]+t.slice(e.length)}function md(t){var e,i,r,n;return{top:(e=t.top)!=null?e:0,right:(i=t.right)!=null?i:0,bottom:(r=t.bottom)!=null?r:0,left:(n=t.left)!=null?n:0}}function jl(t){return typeof t!="number"?md(t):{top:t,right:t,bottom:t,left:t}}function $t(t){let{x:e,y:i,width:r,height:n}=t;return{width:r,height:n,top:i,left:e,right:e+r,bottom:i+n,x:e,y:i}}function Wl(t,e,i){let{reference:r,floating:n}=t,o=qr(e),s=ao(e),a=so(s),l=Vi(e),c=o==="y",u=r.x+r.width/2-n.width/2,d=r.y+r.height/2-n.height/2,p=r[a]/2-n[a]/2,g;switch(l){case"top":g={x:u,y:r.y-n.height};break;case"bottom":g={x:u,y:r.y+r.height};break;case"right":g={x:r.x+r.width,y:d};break;case"left":g={x:r.x-n.width,y:d};break;default:g={x:r.x,y:r.y}}let x=mt(e);return x&&(g[s]+=p*(x==="end"?1:-1)*(i&&c?-1:1)),g}async function Kl(t,e){var i;e===void 0&&(e={});let{x:r,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:g=0}=Gr(e,t),x=jl(g),b=a[p?d==="floating"?"reference":"floating":d],R=$t(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(b)))==null||i?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),V=d==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,v=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),S=await(o.isElement==null?void 0:o.isElement(v))&&await(o.getScale==null?void 0:o.getScale(v))||{x:1,y:1},z=$t(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:V,offsetParent:v,strategy:l}):V);return{top:(R.top-z.top+x.top)/S.y,bottom:(z.bottom-R.bottom+x.bottom)/S.y,left:(R.left-z.left+x.left)/S.x,right:(z.right-R.right+x.right)/S.x}}var gd=50,Gl=async(t,e,i)=>{let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:s}=i,a=s.detectOverflow?s:{...s,detectOverflow:Kl},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:d}=Wl(c,r,l),p=r,g=0,x={};for(let T=0;T<o.length;T++){let b=o[T];if(!b)continue;let{name:R,fn:V}=b,{x:v,y:S,data:z,reset:U}=await V({x:u,y:d,initialPlacement:r,placement:p,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=v??u,d=S??d,x[R]={...x[R],...z},U&&g<gd&&(g++,typeof U=="object"&&(U.placement&&(p=U.placement),U.rects&&(c=U.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):U.rects),{x:u,y:d}=Wl(c,p,l)),T=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:x}};function yd(t,e,i){return(t?[...i.filter(n=>mt(n)===t),...i.filter(n=>mt(n)!==t)]:i.filter(n=>Vi(n)===n)).filter(n=>t?mt(n)===t||(e?zl(n)!==n:!1):!0)}var ql=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,r,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:d,allowedPlacements:p=no,autoAlignment:g=!0,...x}=Gr(t,e),T=d!==void 0||p===no?yd(d||null,g,p):p,b=((i=s.autoPlacement)==null?void 0:i.index)||0,R=T[b];if(R==null)return{};if(a!==R)return{reset:{placement:T[0]}};let V=await l.detectOverflow(e,x),v=Hl(R,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),S=[V[Vi(R)],V[v[0]],V[v[1]]],z=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:R,overflows:S}],U=T[b+1];if(U)return{data:{index:b+1,overflows:z},reset:{placement:U}};let ie=z.map(ke=>{let fi=mt(ke.placement);return[ke.placement,fi&&u?ke.overflows.slice(0,2).reduce((Gc,qc)=>Gc+qc,0):ke.overflows[0],ke.overflows]}).sort((ke,fi)=>ke[1]-fi[1]),Gi=((n=ie.filter(ke=>ke[2].slice(0,mt(ke[0])?2:3).every(fi=>fi<=0))[0])==null?void 0:n[0])||ie[0][0];return Gi!==a?{data:{index:b+1,overflows:z},reset:{placement:Gi}}:{}}}};var Yl=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:i,y:r,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:V=>{let{x:v,y:S}=V;return{x:v,y:S}}},...c}=Gr(t,e),u={x:i,y:r},d=await o.detectOverflow(e,c),p=qr(n),g=oo(p),x=u[g],T=u[p],b=(V,v)=>Bl(v+d[V==="y"?"top":"left"],v,v-d[V==="y"?"bottom":"right"]);s&&(x=b(g,x)),a&&(T=b(p,T));let R=l.fn({...e,[g]:x,[p]:T});return{...R,data:{x:R.x-i,y:R.y-r,enabled:{[g]:s,[p]:a}}}}}};function Xr(){return typeof window<"u"}function Ft(t){return Zl(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function ot(t){var e;return(e=(Zl(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Zl(t){return Xr()?t instanceof Node||t instanceof _e(t).Node:!1}function je(t){return Xr()?t instanceof Element||t instanceof _e(t).Element:!1}function st(t){return Xr()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function Xl(t){return!Xr()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function Bi(t){let{overflow:e,overflowX:i,overflowY:r,display:n}=We(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&n!=="inline"&&n!=="contents"}function Jl(t){return/^(table|td|th)$/.test(Ft(t))}function Hi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var bd=/transform|translate|scale|rotate|perspective|filter/,xd=/paint|layout|strict|content/,Ut=t=>!!t&&t!=="none",lo;function ci(t){let e=je(t)?We(t):t;return Ut(e.transform)||Ut(e.translate)||Ut(e.scale)||Ut(e.rotate)||Ut(e.perspective)||!Zr()&&(Ut(e.backdropFilter)||Ut(e.filter))||bd.test(e.willChange||"")||xd.test(e.contain||"")}function Ql(t){let e=gt(t);for(;st(e)&&!ui(e);){if(ci(e))return e;if(Hi(e))return null;e=gt(e)}return null}function Zr(){return lo==null&&(lo=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),lo}function ui(t){return/^(html|body|#document)$/.test(Ft(t))}function We(t){return _e(t).getComputedStyle(t)}function zi(t){return je(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function gt(t){if(Ft(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Xl(t)&&t.host||ot(t);return Xl(e)?e.host:e}function ec(t){let e=gt(t);return ui(e)?(t.ownerDocument||t).body:st(e)&&Bi(e)?e:ec(e)}function Yr(t,e,i){var r;e===void 0&&(e=[]),i===void 0&&(i=!0);let n=ec(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=_e(n);if(o){let a=Jr(s);return e.concat(s,s.visualViewport||[],Bi(n)?n:[],a&&i?Yr(a):[])}else return e.concat(n,Yr(n,[],i))}function Jr(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function rc(t){let e=We(t),i=parseFloat(e.width)||0,r=parseFloat(e.height)||0,n=st(t),o=n?t.offsetWidth:i,s=n?t.offsetHeight:r,a=Fi(i)!==o||Fi(r)!==s;return a&&(i=o,r=s),{width:i,height:r,$:a}}function nc(t){return je(t)?t:t.contextElement}function di(t){let e=nc(t);if(!st(e))return Qe(1);let i=e.getBoundingClientRect(),{width:r,height:n,$:o}=rc(e),s=(o?Fi(i.width):i.width)/r,a=(o?Fi(i.height):i.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var vd=Qe(0);function oc(t){let e=_e(t);return!Zr()||!e.visualViewport?vd:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Sd(t,e,i){return e===void 0&&(e=!1),!!i&&e&&i===_e(t)}function ji(t,e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);let n=t.getBoundingClientRect(),o=nc(t),s=Qe(1);e&&(r?je(r)&&(s=di(r)):s=di(t));let a=Sd(o,i,r)?oc(o):Qe(0),l=(n.left+a.x)/s.x,c=(n.top+a.y)/s.y,u=n.width/s.x,d=n.height/s.y;if(o&&r){let p=_e(o),g=je(r)?_e(r):r,x=p,T=Jr(x);for(;T&&g!==x;){let b=di(T),R=T.getBoundingClientRect(),V=We(T),v=R.left+(T.clientLeft+parseFloat(V.paddingLeft))*b.x,S=R.top+(T.clientTop+parseFloat(V.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,d*=b.y,l+=v,c+=S,x=_e(T),T=Jr(x)}}return $t({width:u,height:d,x:l,y:c})}function Qr(t,e){let i=zi(t).scrollLeft;return e?e.left+i:ji(ot(t)).left+i}function sc(t,e){let i=t.getBoundingClientRect(),r=i.left+e.scrollLeft-Qr(t,i),n=i.top+e.scrollTop;return{x:r,y:n}}function Ed(t){let{elements:e,rect:i,offsetParent:r,strategy:n}=t,o=n==="fixed",s=ot(r),a=e?Hi(e.floating):!1;if(r===s||a&&o)return i;let l={scrollLeft:0,scrollTop:0},c=Qe(1),u=Qe(0),d=st(r);if((d||!o)&&((Ft(r)!=="body"||Bi(s))&&(l=zi(r)),d)){let g=ji(r);c=di(r),u.x=g.x+r.clientLeft,u.y=g.y+r.clientTop}let p=s&&!d&&!o?sc(s,l):Qe(0);return{width:i.width*c.x,height:i.height*c.y,x:i.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:i.y*c.y-l.scrollTop*c.y+u.y+p.y}}function Ad(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function _d(t){let e=zi(t),i=t.ownerDocument.body,r=ht(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),n=ht(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),o=-e.scrollLeft+Qr(t),s=-e.scrollTop;return We(i).direction==="rtl"&&(o+=ht(t.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:s}}var Cd=25;function wd(t,e,i){i===void 0&&(i="viewport");let r=i==="layoutViewport",n=_e(t),o=ot(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!Zr()||e==="fixed";r?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(Qr(o)<=0){let p=o.ownerDocument,g=p.body,x=getComputedStyle(g),T=p.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(o.clientWidth-g.clientWidth-T),R=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;R<=Cd&&(a-=R)}return{width:a,height:l,x:c,y:u}}function Td(t,e){let i=ji(t,!0,e==="fixed"),r=i.top+t.clientTop,n=i.left+t.clientLeft,o=di(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,c=r*o.y;return{width:s,height:a,x:l,y:c}}function tc(t,e,i){let r;if(e==="viewport"||e==="layoutViewport")r=wd(t,i,e);else if(e==="document")r=_d(ot(t));else if(je(e))r=Td(e,i);else{let n=oc(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return $t(r)}function Od(t,e){let i=e.get(t);if(i)return i;let r=Yr(t,[],!1).filter(a=>je(a)&&Ft(a)!=="body"),n=null,o=We(t).position==="fixed",s=o?gt(t):t;for(;je(s)&&!ui(s);){let a=We(s),l=ci(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?r=r.filter(d=>d!==s):n=a,s=gt(s)}return e.set(t,r),r}function Rd(t){let{element:e,boundary:i,rootBoundary:r,strategy:n}=t,s=[...i==="clippingAncestors"?Hi(e)?[]:Od(e,this._c):[].concat(i),r],a=tc(e,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let g=tc(e,s[p],n);l=ht(g.top,l),c=Ui(g.right,c),u=Ui(g.bottom,u),d=ht(g.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function Ld(t){let{width:e,height:i}=rc(t);return{width:e,height:i}}function Pd(t,e,i){let r=st(e),n=ot(e),o=i==="fixed",s=ji(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Qe(0);if((r||!o)&&((Ft(e)!=="body"||Bi(n))&&(a=zi(e)),r)){let p=ji(e,!0,o,e);l.x=p.x+e.clientLeft,l.y=p.y+e.clientTop}!r&&n&&(l.x=Qr(n));let c=n&&!r&&!o?sc(n,a):Qe(0),u=s.left+a.scrollLeft-l.x-c.x,d=s.top+a.scrollTop-l.y-c.y;return{x:u,y:d,width:s.width,height:s.height}}function co(t){return We(t).position==="static"}function ic(t,e){if(!st(t)||We(t).position==="fixed")return null;if(e)return e(t);let i=t.offsetParent;return ot(t)===i&&(i=i.ownerDocument.body),i}function ac(t,e){let i=_e(t);if(Hi(t))return i;if(!st(t)){let n=gt(t);for(;n&&!ui(n);){if(je(n)&&!co(n))return n;n=gt(n)}return i}let r=ic(t,e);for(;r&&Jl(r)&&co(r);)r=ic(r,e);return r&&ui(r)&&co(r)&&!ci(r)?i:r||Ql(t)||i}var kd=async function(t){let e=this.getOffsetParent||ac,i=this.getDimensions,r=await i(t.floating);return{reference:Pd(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Dd(t){return We(t).direction==="rtl"}var en={convertOffsetParentRelativeRectToViewportRelativeRect:Ed,getDocumentElement:ot,getClippingRect:Rd,getOffsetParent:ac,getElementRects:kd,getClientRects:Ad,getDimensions:Ld,getScale:di,isElement:je,isRTL:Dd};var lc=ql,cc=Yl;var uc=(t,e,i)=>{let r=new Map,n=i??{},o={...en,...n.platform,_c:r};return Gl(t,e,{...n,platform:o})};function dc(t){return Nd(t)}function uo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Nd(t){for(let e=t;e;e=uo(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=uo(t);e;e=uo(e)){if(!(e instanceof Element))continue;let i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||ci(i)||e.tagName==="BODY"))return e}return null}async function pc(t,e,i){let r;return typeof i=="object"?r=i:r={placement:i},uc(t,e,{strategy:r.strategy,platform:{...en,getOffsetParent:n=>en.getOffsetParent(n,dc)},middleware:[cc({crossAxis:!0}),lc({allowedPlacements:[r.placement]})]})}var fc=f(E());var po=class{fromAttribute(e){if(!e)return[];try{let i=JSON.parse(e);return Array.isArray(i)?i.map(r=>typeof r=="string"?ni.fromAttribute(r):r):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Id=new po;var hc=(t,e)=>(i,r)=>{var n;i.constructor.createProperty(r,{type:Object,hasChanged:fc.hasChanged,converter:ni,...e}),i[Mi]=(n=i[Mi])!==null&&n!==void 0?n:new Map,i[Mi].set(r,t??{})};var Ke=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},oe=class extends Hr{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 Fe.Debouncer,this.revealDebouncer=new Fe.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",i=>{i.composedPath().includes(this.container)||this.onOut(i)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,i;return mc.html`
|
|
660
660
|
<div part="container"
|
|
661
661
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
|
|
662
662
|
<slot part="slot"></slot>
|
|
@@ -671,7 +671,7 @@
|
|
|
671
671
|
</div>
|
|
672
672
|
</div>
|
|
673
673
|
</div>
|
|
674
|
-
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,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(e){var i,r;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(i=this.tooltip)===null||i===void 0||i.showPopover()):(r=this.tooltip)===null||r===void 0||r.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(i=>e.has(i))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,i){let r=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(i),this.text=n,this.manual=r}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(i=>i.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&
|
|
674
|
+
`}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,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(e){var i,r;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(i=this.tooltip)===null||i===void 0||i.showPopover()):(r=this.tooltip)===null||r===void 0||r.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(i=>e.has(i))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,i){let r=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(i),this.text=n,this.manual=r}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(i=>i.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&pc(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:i})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${i}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Fe.designSystemVariables.transitionDuration}, left ${Fe.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,Fe.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};oe.elementDefinitions={"ft-typography":ne};oe.styles=Ul;Ke([hc()],oe.prototype,"text",void 0);Ke([(0,Ve.property)({type:Boolean})],oe.prototype,"manual",void 0);Ke([(0,Ve.property)({type:Boolean})],oe.prototype,"inline",void 0);Ke([(0,Fe.numberProperty)()],oe.prototype,"delay",void 0);Ke([(0,Ve.property)()],oe.prototype,"position",void 0);Ke([(0,Fe.jsonProperty)([])],oe.prototype,"ignoreMatchingElements",void 0);Ke([(0,Ve.queryAssignedNodes)()],oe.prototype,"slotNodes",void 0);Ke([(0,Ve.query)(".ft-tooltip--container")],oe.prototype,"container",void 0);Ke([(0,Ve.query)(".ft-tooltip")],oe.prototype,"tooltip",void 0);Ke([(0,Ve.query)(".ft-tooltip--content")],oe.prototype,"tooltipContent",void 0);Ke([(0,Ve.state)()],oe.prototype,"visible",void 0);var yc=f(E());var gc={"ft-tooltip":oe};(0,yc.customElements)(gc);var bc=f(j()),Wi=f(E()),Vt={color:Wi.FtCssVariableFactory.extend("--ft-loader-color","",Wi.designSystemVariables.colorPrimary),size:Wi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},xc=bc.css`
|
|
675
675
|
:host {
|
|
676
676
|
line-height: 0;
|
|
677
677
|
}
|
|
@@ -740,14 +740,14 @@
|
|
|
740
740
|
transform: translate(calc(0.35 * ${Vt.size}), 0);
|
|
741
741
|
}
|
|
742
742
|
}
|
|
743
|
-
`;var
|
|
743
|
+
`;var vc=f(j()),Sc=f(E());var Bt=class extends Sc.FtLitElement{render(){return vc.html`
|
|
744
744
|
<div class="ft-loader">
|
|
745
745
|
<div></div>
|
|
746
746
|
<div></div>
|
|
747
747
|
<div></div>
|
|
748
748
|
<div></div>
|
|
749
749
|
</div>
|
|
750
|
-
`}};Bt.styles=
|
|
750
|
+
`}};Bt.styles=xc;var Ac=f(E());var Ec={"ft-loader":Bt};(0,Ac.customElements)(Ec);var yt=f(j()),rn=f(lt()),H=f(re());var tn=f(j()),O=f(E());var _c=O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorPrimary),q={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorSurface),borderRadius:O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusL),color:_c,fontSize:O.FtCssVariableFactory.extend("--ft-button-font-size","",Be.fontSize),iconSize:O.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:O.FtCssVariableFactory.extend("--ft-button-ripple-color","",_c),verticalPadding:O.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:O.FtCssVariableFactory.external(O.designSystemVariables.colorOpacityDisabled,"Design system")},Cc=O.FtCssVariableFactory.extend("--ft-button-primary-color","",O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorOnPrimary)),fo={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-primary-background-color","",O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorPrimary)),color:Cc,rippleColor:O.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Cc)},Ge={borderRadius:O.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusM)),verticalPadding:O.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},wc=tn.css`
|
|
751
751
|
:host {
|
|
752
752
|
display: inline-block;
|
|
753
753
|
max-width: 100%;
|
|
@@ -889,7 +889,7 @@
|
|
|
889
889
|
${(0,O.setVariable)(Vt.size,q.iconSize)};
|
|
890
890
|
${(0,O.setVariable)(Vt.color,"var(--button-internal-color)")};
|
|
891
891
|
}
|
|
892
|
-
`;var
|
|
892
|
+
`;var W=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},I=class t extends(0,et.toFtFormComponent)(et.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.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var i;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((i=this.form)===null||i===void 0||i.requestSubmit())})}render(){var e,i,r;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":et.isSafari},o=yt.html`
|
|
893
893
|
<ft-ripple part="ripple"
|
|
894
894
|
?disabled=${this.isDisabled()}
|
|
895
895
|
?activated=${this.activated}
|
|
@@ -931,8 +931,8 @@
|
|
|
931
931
|
<ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
|
|
932
932
|
`:yt.html`
|
|
933
933
|
<slot part="icon" name="icon"></slot>
|
|
934
|
-
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,i){var r;return(r=this.tooltip)===null||r===void 0?void 0:r.showTemporaryText(e,i)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};I.elementDefinitions={"ft-ripple":B,"ft-tooltip":oe,"ft-icon":Z,"ft-loader":Bt,"ft-typography":ne};I.styles=[et.safariEllipsisFix,
|
|
935
|
-
<div class="${(0,
|
|
934
|
+
`}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,i){var r;return(r=this.tooltip)===null||r===void 0?void 0:r.showTemporaryText(e,i)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};I.elementDefinitions={"ft-ripple":B,"ft-tooltip":oe,"ft-icon":Z,"ft-loader":Bt,"ft-typography":ne};I.styles=[et.safariEllipsisFix,wc,et.noTextSelect];I.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let i=e.target.getRootNode();i instanceof ShadowRoot&&i.host?i.host.hasTextContent=e.boundingClientRect.width>0:I.labelsObserver.unobserve(e.target)}});W([(0,H.property)({type:Boolean})],I.prototype,"primary",void 0);W([(0,H.property)({type:Boolean})],I.prototype,"outlined",void 0);W([(0,H.property)({type:Boolean})],I.prototype,"dense",void 0);W([(0,H.property)({type:Boolean})],I.prototype,"round",void 0);W([(0,H.property)({type:Boolean})],I.prototype,"disabled",void 0);W([(0,H.property)()],I.prototype,"icon",void 0);W([(0,H.property)()],I.prototype,"iconVariant",void 0);W([(0,H.property)({type:Boolean})],I.prototype,"trailingIcon",void 0);W([(0,H.property)()],I.prototype,"label",void 0);W([(0,H.property)()],I.prototype,"type",void 0);W([(0,H.property)()],I.prototype,"href",void 0);W([(0,H.property)()],I.prototype,"target",void 0);W([(0,H.property)({type:Boolean})],I.prototype,"loading",void 0);W([(0,H.property)({attribute:"aria-label"})],I.prototype,"ariaLabel",void 0);W([(0,H.property)()],I.prototype,"ariaHasPopup",void 0);W([(0,H.property)({attribute:"aria-pressed"})],I.prototype,"ariaPressed",void 0);W([(0,H.property)({attribute:"aria-expanded"})],I.prototype,"ariaExpanded",void 0);W([(0,H.property)()],I.prototype,"tooltipPosition",void 0);W([(0,H.property)({type:Boolean})],I.prototype,"hideTooltip",void 0);W([(0,H.property)({type:Boolean})],I.prototype,"forceTooltip",void 0);W([(0,H.property)({type:Boolean})],I.prototype,"activated",void 0);W([(0,H.query)(".ft-button")],I.prototype,"button",void 0);W([(0,H.query)(".ft-button--label")],I.prototype,"labelContainer",void 0);W([(0,H.state)()],I.prototype,"hasTextContent",void 0);W([(0,H.query)(".ft-button--label slot")],I.prototype,"slottedContent",void 0);W([(0,H.query)("[part=tooltip]")],I.prototype,"tooltip",void 0);var Oc=f(E());var Tc={"ft-button":I};(0,Oc.customElements)(Tc);var zt=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ho=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},mo=class extends CustomEvent{constructor(e){super("suggestion-removed",{detail:e,bubbles:!0,composed:!0})}},Se=class extends Rc.FtLitElement{constructor(){super(...arguments),this.removable=!1}render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Ht.html`
|
|
935
|
+
<div class="${(0,Lc.classMap)(e)}">
|
|
936
936
|
<div
|
|
937
937
|
class="ft-text-field-suggestion--suggestion"
|
|
938
938
|
tabindex="-1"
|
|
@@ -963,8 +963,8 @@
|
|
|
963
963
|
</ft-button>
|
|
964
964
|
`:Ht.nothing}
|
|
965
965
|
</div>
|
|
966
|
-
`}focus(e,i){var r,n;i&&this.removable?(r=this.removeButton)===null||r===void 0||r.focus():(n=this.suggestion)===null||n===void 0||n.focus(e)}click(e){var i;(i=e?this.removeButton:this.suggestion)===null||i===void 0||i.click()}isRemoveButtonFocused(){var e,i;return(i=(e=this.removeButton)===null||e===void 0?void 0:e.matches(":focus-within"))!==null&&i!==void 0?i:!1}selectSuggestion(){this.dispatchEvent(new ho(this.getValue()))}removeSuggestion(){this.dispatchEvent(new mo(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}suggestionKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.selectSuggestion();break;case"ArrowRight":this.removable&&(e.preventDefault(),e.stopPropagation(),(i=this.removeButton)===null||i===void 0||i.focus());break}}removeButtonKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.removeSuggestion();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),(i=this.suggestion)===null||i===void 0||i.focus();break}}};Se.elementDefinitions={"ft-ripple":B,"ft-typography":ne,"ft-icon":Z,"ft-button":I};Se.styles=
|
|
967
|
-
<div class="${(0,
|
|
966
|
+
`}focus(e,i){var r,n;i&&this.removable?(r=this.removeButton)===null||r===void 0||r.focus():(n=this.suggestion)===null||n===void 0||n.focus(e)}click(e){var i;(i=e?this.removeButton:this.suggestion)===null||i===void 0||i.click()}isRemoveButtonFocused(){var e,i;return(i=(e=this.removeButton)===null||e===void 0?void 0:e.matches(":focus-within"))!==null&&i!==void 0?i:!1}selectSuggestion(){this.dispatchEvent(new ho(this.getValue()))}removeSuggestion(){this.dispatchEvent(new mo(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}suggestionKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.selectSuggestion();break;case"ArrowRight":this.removable&&(e.preventDefault(),e.stopPropagation(),(i=this.removeButton)===null||i===void 0||i.focus());break}}removeButtonKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.removeSuggestion();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),(i=this.suggestion)===null||i===void 0||i.focus();break}}};Se.elementDefinitions={"ft-ripple":B,"ft-typography":ne,"ft-icon":Z,"ft-button":I};Se.styles=Ml;zt([(0,tt.property)()],Se.prototype,"value",void 0);zt([(0,tt.property)()],Se.prototype,"helper",void 0);zt([(0,tt.property)({type:Boolean})],Se.prototype,"removable",void 0);zt([(0,tt.property)()],Se.prototype,"removeButtonLabel",void 0);zt([(0,tt.query)(".ft-text-field-suggestion--suggestion")],Se.prototype,"suggestion",void 0);zt([(0,tt.query)(".ft-text-field-suggestion--remove")],Se.prototype,"removeButton",void 0);zt([(0,tt.queryAssignedNodes)()],Se.prototype,"assignedNodes",void 0);var M=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},C=class extends si((0,pe.toFtFormComponent)(pe.FtLitElement)){get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let i=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",i)}focusWithoutSuggestions(){this.showSuggestionsOnFocus=!1,this.focus(),this.showSuggestionsOnFocus=!0}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let i={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},r=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),o=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||r,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return X.html`
|
|
967
|
+
<div class="${(0,kc.classMap)(i)}">
|
|
968
968
|
<div class="ft-text-field--main-panel"
|
|
969
969
|
@keydown=${this.handleKeyboardNavigation}
|
|
970
970
|
@focusout=${this.onMainPanelBlur}>
|
|
@@ -1026,7 +1026,7 @@
|
|
|
1026
1026
|
`:X.nothing}
|
|
1027
1027
|
</div>
|
|
1028
1028
|
`}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?X.html`
|
|
1029
|
-
${(0,
|
|
1029
|
+
${(0,Pc.repeat)(this.providedSuggestions,e=>{var i,r;return X.html`
|
|
1030
1030
|
<ft-text-field-suggestion part="suggestion"
|
|
1031
1031
|
value="${e.value}"
|
|
1032
1032
|
?removable=${e.removable} }
|
|
@@ -1044,13 +1044,13 @@
|
|
|
1044
1044
|
<button type="button"
|
|
1045
1045
|
class="ft-text-field--clear-button"
|
|
1046
1046
|
part="clear-button"
|
|
1047
|
-
aria-label="${
|
|
1047
|
+
aria-label="${Kr.messages.clear()}"
|
|
1048
1048
|
@pointerdown=${e=>e.preventDefault()}
|
|
1049
1049
|
@click=${this.onClearClick}>
|
|
1050
1050
|
<ft-icon .variant=${Ne.fluid_topics}
|
|
1051
1051
|
.value=${Ie.CLOSE}></ft-icon>
|
|
1052
1052
|
</button>
|
|
1053
|
-
`:X.nothing}onClearClick(){var e;this.setValue("",!0),this.clearedAnnouncement=
|
|
1053
|
+
`:X.nothing}onClearClick(){var e;this.setValue("",!0),this.clearedAnnouncement=Kr.messages.cleared(),(e=this.input)===null||e===void 0||e.focus()}renderPasswordIcon(){return X.html`
|
|
1054
1054
|
<ft-icon class="ft-text-field--icon"
|
|
1055
1055
|
.variant=${this.iconVariant}
|
|
1056
1056
|
.value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
|
|
@@ -1060,7 +1060,7 @@
|
|
|
1060
1060
|
.variant=${this.iconVariant}
|
|
1061
1061
|
.value=${this.icon}
|
|
1062
1062
|
@click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
|
|
1063
|
-
`:X.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&this.value&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&(this.hideSuggestions=!0)}async updateSuggestions(){var e;if(this.suggestionsProvider){(e=this.cancelableSuggest)===null||e===void 0||e.cancel();let i=this.suggestionsProvider(this.value);i instanceof Promise?(this.cancelableSuggest=(0,pe.cancelable)(i),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=i)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion])}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("providedSuggestions")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var i,r,n;!((i=this.input)===null||i===void 0)&&i.matches(":autofill")&&this.dispatchedValue!==((r=this.input)===null||r===void 0?void 0:r.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}constructor(){super(),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Ie.EYE_SLASH,this.passwordRevealedIcon=Ie.EYE,this.filterSuggestions=!1,this.clearable=!1,this.clearedAnnouncement="",this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!0,this.visibleSuggestions=[],this.providedSuggestions=[],this.showSuggestionsOnFocus=!0,this.addI18nContext(
|
|
1063
|
+
`:X.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&this.value&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&(this.hideSuggestions=!0)}async updateSuggestions(){var e;if(this.suggestionsProvider){(e=this.cancelableSuggest)===null||e===void 0||e.cancel();let i=this.suggestionsProvider(this.value);i instanceof Promise?(this.cancelableSuggest=(0,pe.cancelable)(i),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=i)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion])}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("providedSuggestions")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var i,r,n;!((i=this.input)===null||i===void 0)&&i.matches(":autofill")&&this.dispatchedValue!==((r=this.input)===null||r===void 0?void 0:r.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}constructor(){super(),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Ie.EYE_SLASH,this.passwordRevealedIcon=Ie.EYE,this.filterSuggestions=!1,this.clearable=!1,this.clearedAnnouncement="",this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!0,this.visibleSuggestions=[],this.providedSuggestions=[],this.showSuggestionsOnFocus=!0,this.addI18nContext(Kr,Nl)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,i=!1){var r,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new Ji(e))),i&&this.dispatchedValue!==e&&(this.inputValid=(n=(r=this.input)===null||r===void 0?void 0:r.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new Qi(e))):this.dispatchEvent(new er(this.input.validationMessage)))}handleInput(e){var i;let r=((i=this.input)===null||i===void 0?void 0:i.value)||"";this.setValue(r,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var i,r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(s=>s.matches(":focus-within")),o;e.key==="ArrowDown"?o=n<this.visibleSuggestions.length-1?n+1:0:o=n>0?n-1:this.visibleSuggestions.length-1,(i=this.visibleSuggestions[o])===null||i===void 0||i.focus(void 0,(r=this.visibleSuggestions[n])===null||r===void 0?void 0:r.isRemoveButtonFocused())}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){this.setValue(e.detail,!0),this.focusWithoutSuggestions(),this.hideSuggestions=!0}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.showSuggestionsOnFocus&&(this.hideSuggestions=!1)}keepFocusOnSuggestionsScrollbar(e){e.target===e.currentTarget&&e.preventDefault()}onMainPanelBlur(){var e,i;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((i=this.input)===null||i===void 0?void 0:i.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,pe.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:i,y:r})=>{this.suggestionsContainer.style.left=`${i}px`,this.suggestionsContainer.style.top=`${r}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};C.elementDefinitions={"ft-input-label":Te,"ft-ripple":B,"ft-typography":ne,"ft-icon":Z,"ft-text-field-suggestion":Se};C.styles=[qt,pe.noTextInputDefaultClearButton,ss,pe.screenReaderStyles];M([(0,k.property)()],C.prototype,"label",void 0);M([(0,k.property)({noAccessor:!0})],C.prototype,"value",null);M([(0,k.state)()],C.prototype,"dispatchedValue",void 0);M([(0,k.property)()],C.prototype,"helper",void 0);M([(0,k.property)()],C.prototype,"suggestionsHelper",void 0);M([(0,k.property)({type:Boolean})],C.prototype,"outlined",void 0);M([(0,k.property)({type:Boolean})],C.prototype,"disabled",void 0);M([(0,k.property)({type:Boolean})],C.prototype,"error",void 0);M([(0,k.property)({type:Boolean})],C.prototype,"fixedMenuPosition",void 0);M([(0,k.property)()],C.prototype,"prefix",void 0);M([(0,k.property)()],C.prototype,"icon",void 0);M([(0,k.property)()],C.prototype,"name",void 0);M([(0,k.property)()],C.prototype,"type",void 0);M([(0,k.property)()],C.prototype,"passwordHiddenIcon",void 0);M([(0,k.property)()],C.prototype,"passwordRevealedIcon",void 0);M([(0,k.property)()],C.prototype,"iconVariant",void 0);M([(0,k.property)({type:Boolean})],C.prototype,"filterSuggestions",void 0);M([(0,k.property)({type:Boolean})],C.prototype,"clearable",void 0);M([(0,k.state)()],C.prototype,"clearedAnnouncement",void 0);M([(0,pe.numberProperty)()],C.prototype,"maxLength",void 0);M([(0,k.property)({type:Boolean})],C.prototype,"password",void 0);M([(0,k.property)({type:String})],C.prototype,"autocomplete",void 0);M([(0,k.property)({attribute:!1})],C.prototype,"suggestionsProvider",void 0);M([(0,k.property)({type:Boolean})],C.prototype,"hideCurrentValueSuggestion",void 0);M([(0,k.state)()],C.prototype,"focused",void 0);M([(0,k.state)()],C.prototype,"inputValid",void 0);M([(0,k.state)()],C.prototype,"hidePassword",void 0);M([(0,k.state)()],C.prototype,"hideSuggestions",void 0);M([(0,k.state)()],C.prototype,"visibleSuggestions",void 0);M([(0,k.state)()],C.prototype,"providedSuggestions",void 0);M([(0,k.query)(".ft-text-field--main-panel")],C.prototype,"mainPanel",void 0);M([(0,k.query)(".ft-text-field--input")],C.prototype,"input",void 0);M([(0,k.query)(".ft-text-field-suggestion--new-value")],C.prototype,"newValueSuggestion",void 0);M([(0,k.query)(".ft-text-field--suggestions")],C.prototype,"suggestionsContainer",void 0);M([(0,k.queryAll)("ft-text-field-suggestion")],C.prototype,"providedSuggestionsInDom",void 0);M([(0,k.queryAssignedElements)({selector:"ft-text-field-suggestion"})],C.prototype,"slottedSuggestions",void 0);M([(0,pe.ignoreComposingEvents)()],C.prototype,"handleInput",null);M([(0,pe.ignoreComposingEvents)()],C.prototype,"catchComposingEvents",null);var Nc=f(E());var Dc={"ft-text-field":C,"ft-text-field-suggestion":Se};(0,Nc.customElements)(Dc);var w={...A,chipGap:ge.FtCssVariableFactory.extend("--ft-combobox-chip-gap","",ge.foundation.spacing1),chipsMarginTop:ge.FtCssVariableFactory.extend("--ft-combobox-chips-margin-top","",ge.foundation.spacing2),suggestSize:ge.FtCssVariableFactory.create("--ft-combobox-suggest-size","","SIZE","370px")},Mc=Ic.css`
|
|
1064
1064
|
*:focus {
|
|
1065
1065
|
outline: none;
|
|
1066
1066
|
}
|
|
@@ -1269,7 +1269,7 @@
|
|
|
1269
1269
|
.ft-combobox--chips-container ft-chip {
|
|
1270
1270
|
flex-shrink: 0;
|
|
1271
1271
|
}
|
|
1272
|
-
`;var jt=f(j()),le=f(re()),
|
|
1272
|
+
`;var jt=f(j()),le=f(re()),Bc=f(lt()),pi=f(E());var Ki=f(j()),D=f(E());var $c=D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnSurface),Ce={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorSurface),color:$c,fontSize:D.FtCssVariableFactory.extend("--ft-chip-font-size","",we.fontSize),fontWeight:D.FtCssVariableFactory.extend("--ft-chip-font-weight","",we.fontWeight),iconSize:D.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:D.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:D.FtCssVariableFactory.extend("--ft-chip-ripple-color","",$c),horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:D.FtCssVariableFactory.extend("--ft-chip-border-color","",D.designSystemVariables.colorOutline),opacityDisabled:D.FtCssVariableFactory.external(D.designSystemVariables.colorOpacityDisabled,"Design system")},Uc=D.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",D.FtCssVariableFactory.extend("--ft-chip-color","",D.designSystemVariables.colorOnPrimary)),go={backgroundColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",D.FtCssVariableFactory.extend("--ft-chip-background-color","",D.designSystemVariables.colorPrimary)),color:Uc,rippleColor:D.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Uc)},Fc={horizontalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:D.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Vc=[D.noTextSelect,Ki.css`
|
|
1273
1273
|
:host {
|
|
1274
1274
|
display: inline-block;
|
|
1275
1275
|
max-width: 100%;
|
|
@@ -1297,7 +1297,7 @@
|
|
|
1297
1297
|
border: 1px solid ${Ce.borderColor};
|
|
1298
1298
|
color: ${Ce.color};
|
|
1299
1299
|
${(0,D.setVariable)(Q.color,Ce.rippleColor)};
|
|
1300
|
-
border-radius: var(${(0,
|
|
1300
|
+
border-radius: var(${(0,Ki.unsafeCSS)(Ce.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
|
|
1301
1301
|
padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
|
|
1302
1302
|
background-color: ${Ce.backgroundColor};
|
|
1303
1303
|
line-height: var(--chip-internal-content-height);
|
|
@@ -1309,13 +1309,13 @@
|
|
|
1309
1309
|
|
|
1310
1310
|
.ft-chip--dense {
|
|
1311
1311
|
--chip-internal-icon-padding: 3px;
|
|
1312
|
-
--chip-internal-vertical-padding: ${
|
|
1313
|
-
--chip-internal-horizontal-padding: ${
|
|
1312
|
+
--chip-internal-vertical-padding: ${Fc.verticalPadding};
|
|
1313
|
+
--chip-internal-horizontal-padding: ${Fc.horizontalPadding};
|
|
1314
1314
|
--chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
|
|
1315
1315
|
}
|
|
1316
1316
|
|
|
1317
1317
|
.ft-chip--no-content {
|
|
1318
|
-
--chip-internal-horizontal-padding: ${Ce.horizontalPadding.get(
|
|
1318
|
+
--chip-internal-horizontal-padding: ${Ce.horizontalPadding.get(Ki.css`var(--chip-internal-vertical-padding)`)};
|
|
1319
1319
|
}
|
|
1320
1320
|
|
|
1321
1321
|
.ft-chip--disabled {
|
|
@@ -1410,7 +1410,7 @@
|
|
|
1410
1410
|
order: -1;
|
|
1411
1411
|
}
|
|
1412
1412
|
`];var ye=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},nn=class extends CustomEvent{constructor(){super("icon-click")}},Y=class extends pi.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let i={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":pi.isSafari};return jt.html`
|
|
1413
|
-
<div class="${(0,
|
|
1413
|
+
<div class="${(0,Bc.classMap)(i)}"
|
|
1414
1414
|
aria-label="${this.labelOnIconOnly?jt.nothing:this.getLabel()}"
|
|
1415
1415
|
tabindex="${this.interactionsOnChip?0:-1}"
|
|
1416
1416
|
@keyup=${this.onKeyUp}
|
|
@@ -1437,7 +1437,7 @@
|
|
|
1437
1437
|
<div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
|
|
1438
1438
|
<ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
|
|
1439
1439
|
</div>
|
|
1440
|
-
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new nn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new nn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,pi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Y.elementDefinitions={"ft-ripple":B,"ft-typography":ne,"ft-icon":Z,"ft-button":I};Y.styles=
|
|
1440
|
+
`}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new nn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new nn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,pi.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};Y.elementDefinitions={"ft-ripple":B,"ft-typography":ne,"ft-icon":Z,"ft-button":I};Y.styles=Vc;ye([(0,le.property)({type:Boolean})],Y.prototype,"highlighted",void 0);ye([(0,le.property)({type:Boolean})],Y.prototype,"removable",void 0);ye([(0,le.property)({type:Boolean})],Y.prototype,"disabled",void 0);ye([(0,le.property)({type:Boolean})],Y.prototype,"clickable",void 0);ye([(0,le.property)({type:Boolean})],Y.prototype,"iconClickable",void 0);ye([(0,le.property)({type:Boolean})],Y.prototype,"dense",void 0);ye([(0,le.property)({type:Boolean})],Y.prototype,"multiLine",void 0);ye([(0,le.property)()],Y.prototype,"label",void 0);ye([(0,le.property)()],Y.prototype,"iconLabel",void 0);ye([(0,le.property)({type:Boolean})],Y.prototype,"hideIconTooltip",void 0);ye([(0,le.property)({type:Boolean})],Y.prototype,"accessibleLabelOnIcon",void 0);ye([(0,le.property)()],Y.prototype,"icon",void 0);ye([(0,le.property)()],Y.prototype,"iconVariant",void 0);ye([(0,le.property)({type:Boolean})],Y.prototype,"trailingIcon",void 0);ye([(0,le.property)()],Y.prototype,"typographyVariant",void 0);ye([(0,le.query)("ft-typography slot")],Y.prototype,"slottedContent",void 0);var zc=f(E());var Hc={"ft-chip":Y};(0,zc.customElements)(Hc);var at=ri.build("ftCombobox"),jc={ariaLiveOptions:"{0} options","ariaLiveOptions[\\=1]":"1 option",valueAdded:"{0} added",valueRemoved:"{0} removed",maxValuesReached:"Maximum {0} values allowed","maxValuesReached[\\=1]":"Maximum 1 value allowed",removeValueLabel:"Remove {0}",clear:"Clear",cleared:"Input cleared"};var $=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},N=class extends si(Pe.FtLitElement){get value(){return this._value||""}set value(e){let i=this._value;this._value=e||"",this.filter=this._value,this.requestUpdate("value",i)}constructor(){super(),this.error=!1,this.filterSuggestions=!1,this.disabled=!1,this.outlined=!1,this.suggestionsProvider=()=>[],this._value="",this.canOfferNewValue=!0,this.multiValued=!1,this.clearable=!1,this.labels=[],this.labelsToValues=new Map,this.filter="",this.isOpen=!1,this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1,this.providedSuggestions=[],this.visibleSuggestions=[],this.activeIndex=-1,this.ariaLiveMessage="",this.onClearClick=()=>{var e;this.setValue(""),this.closeListbox(!0),this.ariaLiveMessage=at.messages.cleared(),(e=this.input)===null||e===void 0||e.focus()},this.onComboboxInput=async()=>{let e=this.input.value,i=this._value!==""||this.multiValued&&this.labels.length>0;this.filter=e,this.activeIndex=-1,!this.multiValued&&i&&e===""&&(this._value="",this.dispatchChangeEvent()),this.ariaLiveMessage="",await this.updateSuggestions(),this.getTotalSuggestionsCount()>0?this.openListbox():this.closeListbox(!0)},this.onComboboxClick=()=>{this.isOpen?this.closeListbox(!0):this.openListbox()},this.onComboboxFocus=()=>{this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox(),this.activeIndex=-1},this.onComboboxBlur=()=>{this.removeVisualFocusAll()},this.backgroundListenerInstalled=!1,this.onBackgroundPointerUp=e=>{e.composedPath().includes(this)||(this.removeVisualFocusAll(),setTimeout(()=>this.closeListbox(!0),300))},this.onSuggestionClick=e=>{var i;e.kind==="new"?this.setValue(((i=this.input)===null||i===void 0?void 0:i.value)||this.value):this.setValue(e.label),this.multiValued||this.closeListbox(!0)},this.addI18nContext(at,jc)}willUpdate(e){e.has("suggestionsProviderDebouncerTimeout")&&(this._suggestionsProviderDebouncer=this.suggestionsProviderDebouncerTimeout&&this.suggestionsProviderDebouncerTimeout>0?new Pe.Debouncer(this.suggestionsProviderDebouncerTimeout):void 0),(e.has("suggestionsProvider")||e.has("filter"))&&this.updateSuggestions()}render(){let e={"ft-combobox":!0,"ft-combobox--filled":!this.outlined,"ft-combobox--outlined":this.outlined,"ft-combobox--disabled":this.disabled,"ft-combobox--with-label":!!this.label,"ft-combobox--with-icon":!!this.icon,"ft-combobox--in-error":this.error,"ft-combobox--raised-label":this.comboboxHasVisualFocus||!!this.filter},i={"ft-combobox--listbox":!0,focus:this.listboxHasVisualFocus};return fe.html`
|
|
1441
1441
|
<div class="${(0,on.classMap)(e)}">
|
|
1442
1442
|
<div class="ft-combobox--main-panel"
|
|
1443
1443
|
@focusout=${this.onComboboxBlur}>
|
|
@@ -1557,7 +1557,7 @@
|
|
|
1557
1557
|
</ft-typography>
|
|
1558
1558
|
</div>
|
|
1559
1559
|
</li>
|
|
1560
|
-
`}get activeSuggestion(){return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length?this.visibleSuggestions[this.activeIndex]:null}shouldOfferNew(){var e;let i=((e=this.input)===null||e===void 0?void 0:e.value)||this.value||"",r=this.multiValued&&this.labels.includes(i);return i!==""&&!this.providedSuggestions.some(n=>n.label===i)&&!r&&this.canOfferNewValue}getTotalSuggestionsCount(){return this.visibleSuggestions.length}isNewValueSuggestionSelected(){var e;return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length&&((e=this.visibleSuggestions[this.activeIndex])===null||e===void 0?void 0:e.kind)==="new"}renderLiveText(){let e=this.getTotalSuggestionsCount();return this.isOpen&&e>0?at.messages.ariaLiveOptions(e):""}getActiveDescendantId(){return this.activeIndex<0?"":this.isNewValueSuggestionSelected()?"option-new-value":`option-${this.activeIndex}`}async updateSuggestions(){var e;this._suggestionsProviderDebouncer?await((e=this._suggestionsProviderDebouncer)===null||e===void 0?void 0:e.run(()=>this.updateSuggestionsWithoutDebounce())):await this.updateSuggestionsWithoutDebounce()}async updateSuggestionsWithoutDebounce(){var e;if(this.suggestionsProvider){this.providedSuggestions=await this.suggestionsProvider(this.filter);let i=(this.filterSuggestions?this.providedSuggestions.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase())):this.providedSuggestions).map((r,n)=>({id:`regular-${n}`,label:r.label,kind:"regular"}));this.visibleSuggestions=[...i,...this.shouldOfferNew()?[{id:"new",label:((e=this.input)===null||e===void 0?void 0:e.value)||this.value,kind:"new"}]:[]]}}setActiveSuggestion(e,i=!1){var r,n;let o=this.getTotalSuggestionsCount();if(e<0||e>=o)return;this.activeIndex=e;let s=this.visibleSuggestions[e];if(s){if(i){let a=s.kind==="new"?((r=this.input)===null||r===void 0?void 0:r.value)||this.value:s.label,l=this.filter.length;(n=this.input)===null||n===void 0||n.setSelectionRange(l,a.length)}this.scrollSuggestionIntoView(e)}}scrollSuggestionIntoView(e){requestAnimationFrame(()=>{var i,r;let n;this.isNewValueSuggestionSelected()?n=(i=this.listbox)===null||i===void 0?void 0:i.querySelector("#option-new-value"):n=(r=this.listbox)===null||r===void 0?void 0:r.querySelector(`#option-${e}`),n&&this.listbox&&(this.listbox.scrollTop+this.listbox.offsetHeight<n.offsetTop+n.offsetHeight?this.listbox.scrollTop=n.offsetTop+n.offsetHeight-this.listbox.offsetHeight:this.listbox.scrollTop>n.offsetTop+2&&(this.listbox.scrollTop=n.offsetTop))})}openListbox(){this.isOpen=!0}closeListbox(e=!1){(e||!this.comboboxHasVisualFocus&&!this.listboxHasVisualFocus)&&(this.isOpen=!1)}setVisualFocusCombobox(){this.comboboxHasVisualFocus=!0,this.listboxHasVisualFocus=!1}setVisualFocusListbox(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!0}removeVisualFocusAll(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1}setValue(e){this.multiValued?this.addToSelection(e):(this.filter=e,this._value=e,this.input.value=e,this.input.setSelectionRange(e.length,e.length),this.updateSuggestions(),this.dispatchChangeEvent())}dispatchChangeEvent(){var e,i;let r=(i=(e=this.providedSuggestions.find(n=>this._value===n.label))===null||e===void 0?void 0:e.value)!==null&&i!==void 0?i:this._value;this.dispatchEvent(new CustomEvent("change",{detail:r,bubbles:!0,composed:!0}))}addToSelection(e){var i,r;if(e.trim().length===0){this.clearInput(),this.closeListbox(!0);return}if(this.labels.includes(e)){this.removeFromSelection(e),this.closeListbox(!0);return}if(this.maxValues&&this.labels.length>=this.maxValues){this.ariaLiveMessage=at.messages.maxValuesReached((i=this.maxValues)!==null&&i!==void 0?i:0),this.closeListbox(!0);return}this.labels=[...this.labels,e];let a=this.providedSuggestions.find(l=>l.label===e);this.labelsToValues.set(e,(r=a?.value)!==null&&r!==void 0?r:e),this.ariaLiveMessage=at.messages.valueAdded(e),this.dispatchMultiValueChangeEvent(),this.clearInput(),this.closeListbox(!0)}clearInput(){this.filter="",this.input.value="",this.input.setSelectionRange(0,0),this.updateSuggestions(),this.input.focus()}removeFromSelection(e){this.labels=this.labels.filter(i=>i!==e),this.labelsToValues.delete(e),this.updateSuggestions(),this.ariaLiveMessage=at.messages.valueRemoved(e),this.dispatchMultiValueChangeEvent(),this.input.focus()}dispatchMultiValueChangeEvent(){let e=this.labels.map(i=>{var r;return(r=this.labelsToValues.get(i))!==null&&r!==void 0?r:i});this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,composed:!0}))}isPrintableCharacter(e){return e.length===1&&e.match(/\S| /)!==null}commitSelectionFromEnter(){var e,i;this.isOpen&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion?this.setValue(this.activeSuggestion.label):(((i=this.input)===null||i===void 0?void 0:i.value)||"").length>0&&this.setValue(this.input.value)),this.multiValued?this.activeIndex=-1:(this.setVisualFocusCombobox(),this.closeListbox(!0))}moveFocusToNextSuggestion(e){let i=this.getTotalSuggestionsCount();if(!(i<=0)&&(this.openListbox(),!e.altKey))if(this.listboxHasVisualFocus){let r=this.activeIndex<i-1?this.activeIndex+1:0;this.setActiveSuggestion(r)}else this.setActiveSuggestion(0,!0),this.setVisualFocusListbox()}moveFocusToPreviousSuggestion(e){let i=this.getTotalSuggestionsCount();if(!(i<=0))if(this.listboxHasVisualFocus){let r=this.activeIndex>0?this.activeIndex-1:i-1;this.setActiveSuggestion(r)}else this.openListbox(),e.altKey||(this.setActiveSuggestion(i-1,!0),this.setVisualFocusListbox())}handleEscapeKey(){this.isOpen?(this.closeListbox(!0),this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox()):this.setValue(""),this.activeIndex=-1}handleTabKey(){var e;this.closeListbox(!0),this.listboxHasVisualFocus&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion&&this.setValue(this.activeSuggestion.label))}moveCaretToHome(){this.input.setSelectionRange(0,0)}moveCaretToEnd(){let e=this.input.value.length;this.input.setSelectionRange(e,e)}onComboboxKeyDown(e){if(e.ctrlKey||e.shiftKey)return;let i=!1;switch(e.key){case"Enter":this.commitSelectionFromEnter(),i=!0;break;case"ArrowDown":case"Down":{this.moveFocusToNextSuggestion(e),i=!0;break}case"ArrowUp":case"Up":{this.moveFocusToPreviousSuggestion(e),i=!0;break}case"Escape":case"Esc":this.handleEscapeKey(),i=!0;break;case"Tab":this.handleTabKey();break;case"Home":this.moveCaretToHome(),i=!0;break;case"End":{this.moveCaretToEnd(),i=!0;break}}i&&(e.stopPropagation(),e.preventDefault())}onComboboxKeyUp(e){if(e.key==="Escape"||e.key==="Esc")return;let i=!1;switch(e.key){case"Backspace":this.setVisualFocusCombobox(),i=!0;break;case"ArrowDown":case"Down":case"ArrowUp":case"Up":i=!0;break;case"ArrowLeft":case"Enter":case"Left":case"ArrowRight":case"Right":case"Home":case"End":this.setVisualFocusCombobox(),i=!0;break;default:this.isPrintableCharacter(e.key)&&this.input.value.length&&this.setVisualFocusCombobox();break}i&&(e.stopPropagation(),e.preventDefault())}contentAvailableCallback(e){super.contentAvailableCallback(e),(e.has("comboboxHasVisualFocus")||e.has("listboxHasVisualFocus")||e.has("isOpen"))&&(this.comboboxHasVisualFocus||this.listboxHasVisualFocus||this.isOpen?this.backgroundListenerInstalled||(document.body.addEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!0):this.backgroundListenerInstalled&&(document.body.removeEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!1))}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}};N.styles=[qt,Pe.screenReaderStyles,
|
|
1560
|
+
`}get activeSuggestion(){return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length?this.visibleSuggestions[this.activeIndex]:null}shouldOfferNew(){var e;let i=((e=this.input)===null||e===void 0?void 0:e.value)||this.value||"",r=this.multiValued&&this.labels.includes(i);return i!==""&&!this.providedSuggestions.some(n=>n.label===i)&&!r&&this.canOfferNewValue}getTotalSuggestionsCount(){return this.visibleSuggestions.length}isNewValueSuggestionSelected(){var e;return this.activeIndex>=0&&this.activeIndex<this.visibleSuggestions.length&&((e=this.visibleSuggestions[this.activeIndex])===null||e===void 0?void 0:e.kind)==="new"}renderLiveText(){let e=this.getTotalSuggestionsCount();return this.isOpen&&e>0?at.messages.ariaLiveOptions(e):""}getActiveDescendantId(){return this.activeIndex<0?"":this.isNewValueSuggestionSelected()?"option-new-value":`option-${this.activeIndex}`}async updateSuggestions(){var e;this._suggestionsProviderDebouncer?await((e=this._suggestionsProviderDebouncer)===null||e===void 0?void 0:e.run(()=>this.updateSuggestionsWithoutDebounce())):await this.updateSuggestionsWithoutDebounce()}async updateSuggestionsWithoutDebounce(){var e;if(this.suggestionsProvider){this.providedSuggestions=await this.suggestionsProvider(this.filter);let i=(this.filterSuggestions?this.providedSuggestions.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase())):this.providedSuggestions).map((r,n)=>({id:`regular-${n}`,label:r.label,kind:"regular"}));this.visibleSuggestions=[...i,...this.shouldOfferNew()?[{id:"new",label:((e=this.input)===null||e===void 0?void 0:e.value)||this.value,kind:"new"}]:[]]}}setActiveSuggestion(e,i=!1){var r,n;let o=this.getTotalSuggestionsCount();if(e<0||e>=o)return;this.activeIndex=e;let s=this.visibleSuggestions[e];if(s){if(i){let a=s.kind==="new"?((r=this.input)===null||r===void 0?void 0:r.value)||this.value:s.label,l=this.filter.length;(n=this.input)===null||n===void 0||n.setSelectionRange(l,a.length)}this.scrollSuggestionIntoView(e)}}scrollSuggestionIntoView(e){requestAnimationFrame(()=>{var i,r;let n;this.isNewValueSuggestionSelected()?n=(i=this.listbox)===null||i===void 0?void 0:i.querySelector("#option-new-value"):n=(r=this.listbox)===null||r===void 0?void 0:r.querySelector(`#option-${e}`),n&&this.listbox&&(this.listbox.scrollTop+this.listbox.offsetHeight<n.offsetTop+n.offsetHeight?this.listbox.scrollTop=n.offsetTop+n.offsetHeight-this.listbox.offsetHeight:this.listbox.scrollTop>n.offsetTop+2&&(this.listbox.scrollTop=n.offsetTop))})}openListbox(){this.isOpen=!0}closeListbox(e=!1){(e||!this.comboboxHasVisualFocus&&!this.listboxHasVisualFocus)&&(this.isOpen=!1)}setVisualFocusCombobox(){this.comboboxHasVisualFocus=!0,this.listboxHasVisualFocus=!1}setVisualFocusListbox(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!0}removeVisualFocusAll(){this.comboboxHasVisualFocus=!1,this.listboxHasVisualFocus=!1}setValue(e){this.multiValued?this.addToSelection(e):(this.filter=e,this._value=e,this.input.value=e,this.input.setSelectionRange(e.length,e.length),this.updateSuggestions(),this.dispatchChangeEvent())}dispatchChangeEvent(){var e,i;let r=(i=(e=this.providedSuggestions.find(n=>this._value===n.label))===null||e===void 0?void 0:e.value)!==null&&i!==void 0?i:this._value;this.dispatchEvent(new CustomEvent("change",{detail:r,bubbles:!0,composed:!0}))}addToSelection(e){var i,r;if(e.trim().length===0){this.clearInput(),this.closeListbox(!0);return}if(this.labels.includes(e)){this.removeFromSelection(e),this.closeListbox(!0);return}if(this.maxValues&&this.labels.length>=this.maxValues){this.ariaLiveMessage=at.messages.maxValuesReached((i=this.maxValues)!==null&&i!==void 0?i:0),this.closeListbox(!0);return}this.labels=[...this.labels,e];let a=this.providedSuggestions.find(l=>l.label===e);this.labelsToValues.set(e,(r=a?.value)!==null&&r!==void 0?r:e),this.ariaLiveMessage=at.messages.valueAdded(e),this.dispatchMultiValueChangeEvent(),this.clearInput(),this.closeListbox(!0)}clearInput(){this.filter="",this.input.value="",this.input.setSelectionRange(0,0),this.updateSuggestions(),this.input.focus()}removeFromSelection(e){this.labels=this.labels.filter(i=>i!==e),this.labelsToValues.delete(e),this.updateSuggestions(),this.ariaLiveMessage=at.messages.valueRemoved(e),this.dispatchMultiValueChangeEvent(),this.input.focus()}dispatchMultiValueChangeEvent(){let e=this.labels.map(i=>{var r;return(r=this.labelsToValues.get(i))!==null&&r!==void 0?r:i});this.dispatchEvent(new CustomEvent("change",{detail:e,bubbles:!0,composed:!0}))}isPrintableCharacter(e){return e.length===1&&e.match(/\S| /)!==null}commitSelectionFromEnter(){var e,i;this.isOpen&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion?this.setValue(this.activeSuggestion.label):(((i=this.input)===null||i===void 0?void 0:i.value)||"").length>0&&this.setValue(this.input.value)),this.multiValued?this.activeIndex=-1:(this.setVisualFocusCombobox(),this.closeListbox(!0))}moveFocusToNextSuggestion(e){let i=this.getTotalSuggestionsCount();if(!(i<=0)&&(this.openListbox(),!e.altKey))if(this.listboxHasVisualFocus){let r=this.activeIndex<i-1?this.activeIndex+1:0;this.setActiveSuggestion(r)}else this.setActiveSuggestion(0,!0),this.setVisualFocusListbox()}moveFocusToPreviousSuggestion(e){let i=this.getTotalSuggestionsCount();if(!(i<=0))if(this.listboxHasVisualFocus){let r=this.activeIndex>0?this.activeIndex-1:i-1;this.setActiveSuggestion(r)}else this.openListbox(),e.altKey||(this.setActiveSuggestion(i-1,!0),this.setVisualFocusListbox())}handleEscapeKey(){this.isOpen?(this.closeListbox(!0),this.filter=this.input.value,this.updateSuggestions(),this.setVisualFocusCombobox()):this.setValue(""),this.activeIndex=-1}handleTabKey(){var e;this.closeListbox(!0),this.listboxHasVisualFocus&&(this.isNewValueSuggestionSelected()?this.setValue(((e=this.input)===null||e===void 0?void 0:e.value)||this.value):this.activeSuggestion&&this.setValue(this.activeSuggestion.label))}moveCaretToHome(){this.input.setSelectionRange(0,0)}moveCaretToEnd(){let e=this.input.value.length;this.input.setSelectionRange(e,e)}onComboboxKeyDown(e){if(e.ctrlKey||e.shiftKey)return;let i=!1;switch(e.key){case"Enter":this.commitSelectionFromEnter(),i=!0;break;case"ArrowDown":case"Down":{this.moveFocusToNextSuggestion(e),i=!0;break}case"ArrowUp":case"Up":{this.moveFocusToPreviousSuggestion(e),i=!0;break}case"Escape":case"Esc":this.handleEscapeKey(),i=!0;break;case"Tab":this.handleTabKey();break;case"Home":this.moveCaretToHome(),i=!0;break;case"End":{this.moveCaretToEnd(),i=!0;break}}i&&(e.stopPropagation(),e.preventDefault())}onComboboxKeyUp(e){if(e.key==="Escape"||e.key==="Esc")return;let i=!1;switch(e.key){case"Backspace":this.setVisualFocusCombobox(),i=!0;break;case"ArrowDown":case"Down":case"ArrowUp":case"Up":i=!0;break;case"ArrowLeft":case"Enter":case"Left":case"ArrowRight":case"Right":case"Home":case"End":this.setVisualFocusCombobox(),i=!0;break;default:this.isPrintableCharacter(e.key)&&this.input.value.length&&this.setVisualFocusCombobox();break}i&&(e.stopPropagation(),e.preventDefault())}contentAvailableCallback(e){super.contentAvailableCallback(e),(e.has("comboboxHasVisualFocus")||e.has("listboxHasVisualFocus")||e.has("isOpen"))&&(this.comboboxHasVisualFocus||this.listboxHasVisualFocus||this.isOpen?this.backgroundListenerInstalled||(document.body.addEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!0):this.backgroundListenerInstalled&&(document.body.removeEventListener("pointerup",this.onBackgroundPointerUp),this.backgroundListenerInstalled=!1))}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}};N.styles=[qt,Pe.screenReaderStyles,Mc];N.elementDefinitions={"ft-input-label":Te,"ft-ripple":B,"ft-typography":ne,"ft-icon":Z,"ft-chip":Y};$([(0,F.property)()],N.prototype,"label",void 0);$([(0,F.property)()],N.prototype,"icon",void 0);$([(0,F.property)()],N.prototype,"iconVariant",void 0);$([(0,F.property)()],N.prototype,"name",void 0);$([(0,F.property)({type:Boolean})],N.prototype,"error",void 0);$([(0,F.property)({type:Boolean})],N.prototype,"filterSuggestions",void 0);$([(0,F.property)()],N.prototype,"helper",void 0);$([(0,F.property)({type:Boolean})],N.prototype,"disabled",void 0);$([(0,F.property)({type:Boolean})],N.prototype,"outlined",void 0);$([(0,F.property)()],N.prototype,"placeholder",void 0);$([(0,F.property)()],N.prototype,"suggestionsHelper",void 0);$([(0,F.property)({attribute:!1})],N.prototype,"suggestionsProvider",void 0);$([(0,Pe.numberProperty)()],N.prototype,"suggestionsProviderDebouncerTimeout",void 0);$([(0,F.property)({noAccessor:!0})],N.prototype,"value",null);$([(0,F.property)({type:Boolean})],N.prototype,"canOfferNewValue",void 0);$([(0,F.property)({type:Boolean})],N.prototype,"multiValued",void 0);$([(0,F.property)({type:Boolean})],N.prototype,"clearable",void 0);$([(0,Pe.numberProperty)()],N.prototype,"maxValues",void 0);$([(0,Pe.numberProperty)()],N.prototype,"maxLength",void 0);$([(0,F.property)()],N.prototype,"labels",void 0);$([(0,F.state)()],N.prototype,"labelsToValues",void 0);$([(0,F.state)()],N.prototype,"filter",void 0);$([(0,F.state)()],N.prototype,"isOpen",void 0);$([(0,F.state)()],N.prototype,"comboboxHasVisualFocus",void 0);$([(0,F.state)()],N.prototype,"listboxHasVisualFocus",void 0);$([(0,F.state)()],N.prototype,"providedSuggestions",void 0);$([(0,F.state)()],N.prototype,"visibleSuggestions",void 0);$([(0,F.state)()],N.prototype,"activeIndex",void 0);$([(0,F.state)()],N.prototype,"ariaLiveMessage",void 0);$([(0,F.query)(".ft-combobox--input")],N.prototype,"input",void 0);$([(0,F.query)(".ft-combobox--listbox")],N.prototype,"listbox",void 0);$([(0,Pe.ignoreComposingEvents)()],N.prototype,"onComboboxKeyDown",null);$([(0,Pe.ignoreComposingEvents)()],N.prototype,"onComboboxKeyUp",null);var Wc={"ft-combobox":N};(0,Kc.customElements)(Wc);})();
|
|
1561
1561
|
/*! Bundled license information:
|
|
1562
1562
|
|
|
1563
1563
|
.store/lit-html-npm-3.3.3-0f054b825a/package/lit-html.js:
|