@fluid-topics/ft-reader-feedback 2.1.22 → 2.1.24

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.
@@ -1,16 +1,7 @@
1
- "use strict";(()=>{var Hu=Object.create;var rs=Object.defineProperty;var ju=Object.getOwnPropertyDescriptor;var Vu=Object.getOwnPropertyNames;var zu=Object.getPrototypeOf,Wu=Object.prototype.hasOwnProperty;var mr=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Ku=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Vu(t))!Wu.call(e,n)&&n!==r&&rs(e,n,{get:()=>t[n],enumerable:!(i=ju(t,n))||i.enumerable});return e};var f=(e,t,r)=>(r=e!=null?Hu(zu(e)):{},Ku(t||!e||!e.__esModule?rs(r,"default",{value:e,enumerable:!0}):r,e));var b=mr((xp,is)=>{is.exports=ftGlobals.wcUtils});var D=mr((Sp,ns)=>{ns.exports=ftGlobals.lit});var B=mr((Ap,os)=>{os.exports=ftGlobals.litDecorators});var ye=mr((uf,wa)=>{wa.exports=ftGlobals.litClassMap});var Ic=mr(($y,kc)=>{kc.exports=ftGlobals.litUnsafeHTML});var Xo=mr((wx,lu)=>{lu.exports=ftGlobals.litRepeat});var Bu=f(b());var Mu=f(D()),te=f(B()),Et=f(b());var Ci=f(b()),as=f(B());var ss;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found"})(ss||(ss={}));var Te;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Te||(Te={}));var Gu=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},$n=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Mn=Symbol("registerInterval"),qu=(0,Ci.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Mn]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Mn]):this.dispatchEvent(new $n)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=Mn,Gu([(0,as.state)()],r.prototype,"stateManager",void 0),r}),gr=class extends qu(Ci.FtLitElementRedux){};var it=f(D()),nt=f(B()),Wr=f(b());var ls;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(ls||(ls={}));var cs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(cs||(cs={}));var us;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(us||(us={}));var ds;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ds||(ds={}));var ps;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ps||(ps={}));var fs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(fs||(fs={}));var hs;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(hs||(hs={}));var ms;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(ms||(ms={}));var gs;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(gs||(gs={}));var vs;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(vs||(vs={}));var ys;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(ys||(ys={}));var bs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(bs||(bs={}));var xs;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(xs||(xs={}));var Ss;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ss||(Ss={}));var q;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(q||(q={}));var As;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(As||(As={}));var Es;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Es||(Es={}));var ws;(function(e){e.ASC="ASC",e.DESC="DESC"})(ws||(ws={}));var Cs;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Cs||(Cs={}));var _s;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(_s||(_s={}));var Ts;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ts||(Ts={}));var Os;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Os||(Os={}));var Rs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Rs||(Rs={}));var Ls;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ls||(Ls={}));var Ps;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ps||(Ps={}));var ks;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ks||(ks={}));var Is;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Is||(Is={}));var st;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(st||(st={}));var zt;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(zt||(zt={}));var Ds;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(Ds||(Ds={}));var Ns;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Ns||(Ns={}));var Ms;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Ms||(Ms={}));var $s;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})($s||($s={}));var Us;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Us||(Us={}));var Fs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Fs||(Fs={}));var Bs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Bs||(Bs={}));var Hs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Hs||(Hs={}));var js;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(js||(js={}));var Vs;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Vs||(Vs={}));var zs;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(zs||(zs={}));var Ws;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ws||(Ws={}));var Yu={[st.PERSONAL_BOOK_SHARE_USER]:[st.PERSONAL_BOOK_USER],[st.HTML_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.PDF_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.KHUB_ADMIN]:[st.CONTENT_PUBLISHER],[st.ADMIN]:[st.KHUB_ADMIN,st.USERS_ADMIN,st.PORTAL_ADMIN,st.BEHAVIOR_DATA_USER],[st.GENERATIVE_AI_EXPORT_USER]:[st.GENERATIVE_AI_USER]};function Ks(e,t){return e===t||(Yu[e]??[]).some(r=>Ks(r,t))}function Gs(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(i=>Ks(i,t))}var zn=globalThis,qs=e=>e,_i=zn.trustedTypes,Ys=_i?_i.createPolicy("lit-html",{createHTML:e=>e}):void 0,ea="$lit$",Oe=`lit$${Math.random().toFixed(9).slice(2)}$`,ra="?"+Oe,Xu=`<${ra}>`,Ye=document,Ti=()=>Ye.createComment(""),Yr=e=>e===null||typeof e!="object"&&typeof e!="function",Wn=Array.isArray,Zu=e=>Wn(e)||typeof e?.[Symbol.iterator]=="function",Un=`[
2
- \f\r]`,qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xs=/-->/g,Zs=/>/g,Ge=RegExp(`>|${Un}(?:([^\\s"'>=/]+)(${Un}*=${Un}*(?:[^
3
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Js=/'/g,Qs=/"/g,ia=/^(?:script|style|textarea|title)$/i,Kn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),na=Kn(1),oa=Kn(2),sa=Kn(3),Xr=Symbol.for("lit-noChange"),at=Symbol.for("lit-nothing"),ta=new WeakMap,qe=Ye.createTreeWalker(Ye,129);function aa(e,t){if(!Wn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ys!==void 0?Ys.createHTML(t):t}var Ju=(e,t)=>{let r=e.length-1,i=[],n,o=t===2?"<svg>":t===3?"<math>":"",s=qr;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===qr?u[1]==="!--"?s=Xs:u[1]!==void 0?s=Zs:u[2]!==void 0?(ia.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Ge):u[3]!==void 0&&(s=Ge):s===Ge?u[0]===">"?(s=n??qr,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?Ge:u[3]==='"'?Qs:Js):s===Qs||s===Js?s=Ge:s===Xs||s===Zs?s=qr:(s=Ge,n=void 0);let h=s===Ge&&e[a+1].startsWith("/>")?" ":"";o+=s===qr?l+Xu:d>=0?(i.push(c),l.slice(0,d)+ea+l.slice(d)+Oe+h):l+Oe+(d===-2?a:h)}return[aa(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},Zr=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[c,u]=Ju(t,r);if(this.el=e.createElement(c,i),qe.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=qe.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(ea)){let p=u[s++],h=n.getAttribute(d).split(Oe),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?Bn:m[1]==="?"?Hn:m[1]==="@"?jn:yr}),n.removeAttribute(d)}else d.startsWith(Oe)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(ia.test(n.tagName)){let d=n.textContent.split(Oe),p=d.length-1;if(p>0){n.textContent=_i?_i.emptyScript:"";for(let h=0;h<p;h++)n.append(d[h],Ti()),qe.nextNode(),l.push({type:2,index:++o});n.append(d[p],Ti())}}}else if(n.nodeType===8)if(n.data===ra)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(Oe,d+1))!==-1;)l.push({type:7,index:o}),d+=Oe.length-1}o++}}static createElement(t,r){let i=Ye.createElement("template");return i.innerHTML=t,i}};function vr(e,t,r=e,i){if(t===Xr)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=Yr(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=vr(e,n._$AS(e,t.values),n,i)),t}var Fn=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??Ye).importNode(r,!0);qe.currentNode=n;let o=qe.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Oi(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new Vn(o,this,t)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=qe.nextNode(),s++)}return qe.currentNode=Ye,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Oi=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=at,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=vr(this,t,r),Yr(t)?t===at||t==null||t===""?(this._$AH!==at&&this._$AR(),this._$AH=at):t!==this._$AH&&t!==Xr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Zu(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==at&&Yr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ye.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Zr.createElement(aa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new Fn(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=ta.get(t.strings);return r===void 0&&ta.set(t.strings,r=new Zr(t)),r}k(t){Wn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of t)n===r.length?r.push(i=new e(this.O(Ti()),this.O(Ti()),this,this.options)):i=r[n],i._$AI(o),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let i=qs(t).nextSibling;qs(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},yr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,o){this.type=1,this._$AH=at,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=at}_$AI(t,r=this,i,n){let o=this.strings,s=!1;if(o===void 0)t=vr(this,t,r,0),s=!Yr(t)||t!==this._$AH&&t!==Xr,s&&(this._$AH=t);else{let a=t,l,c;for(t=o[0],l=0;l<o.length-1;l++)c=vr(this,a[i+l],r,l),c===Xr&&(c=this._$AH[l]),s||=!Yr(c)||c!==this._$AH[l],c===at?t=at:t!==at&&(t+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(t)}j(t){t===at?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Bn=class extends yr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===at?void 0:t}},Hn=class extends yr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==at)}},jn=class extends yr{constructor(t,r,i,n,o){super(t,r,i,n,o),this.type=5}_$AI(t,r=this){if((t=vr(this,t,r,0)??at)===Xr)return;let i=this._$AH,n=t===at&&i!==at||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==at&&(i===at||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},Vn=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){vr(this,t)}};var Qu=zn.litHtmlPolyfillSupport;Qu?.(Zr,Oi),(zn.litHtmlVersions??=[]).push("3.3.3");var ca=Symbol.for(""),td=e=>{if(e?.r===ca)return e?._$litStatic$},Gn=e=>({_$litStatic$:e,r:ca});var la=new Map,qn=e=>(t,...r)=>{let i=r.length,n,o,s=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(o=r[c],(n=td(o))!==void 0);)l+=n+t[++c],u=!0;c!==i&&a.push(o),s.push(l),c++}if(c===i&&s.push(t[i]),u){let d=s.join("$$lit$$");(t=la.get(d))===void 0&&(s.raw=s,la.set(d,t=s)),r=a}return e(t,...r)},Yn=qn(na),zp=qn(oa),Wp=qn(sa);var Xn=f(B()),Sa=f(b());var gt;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(gt||(gt={}));var Kt=f(D()),y=f(b()),ua=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),ve=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),w={fontFamily:ve,fontSize:y.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:y.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:y.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:y.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:y.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Re={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ua),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-font-size","",w.fontSize,"20px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",w.letterSpacing,"0.15px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-line-height","",w.lineHeight,"1.2"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",w.textTransform,"inherit")},Le={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ua),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",w.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",w.letterSpacing,"0.105px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",w.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",w.textTransform,"inherit")},br={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ve),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",w.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",w.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",w.letterSpacing,"0.144px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",w.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",w.textTransform,"inherit")},xr={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ve),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",w.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",w.letterSpacing,"0.098px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",w.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",w.textTransform,"inherit")},Wt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ve),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",w.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",w.letterSpacing,"0.496px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",w.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",w.textTransform,"inherit")},Sr={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ve),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",w.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",w.letterSpacing,"0.252px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",w.lineHeight,"1.4"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",w.textTransform,"inherit")},$t={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ve),fontSize:y.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",w.fontSize,"12px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",w.letterSpacing,"0.396px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",w.lineHeight,"1.33"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",w.textTransform,"inherit")},Ar={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ve),fontSize:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",w.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",w.letterSpacing,"0.33px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",w.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",w.textTransform,"inherit")},Er={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ve),fontSize:y.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",w.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",w.letterSpacing,"1.5px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",w.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",w.textTransform,"uppercase")},Ct={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ve),fontSize:y.FtCssVariableFactory.extend("--ft-typography-button-font-size","",w.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",w.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",w.letterSpacing,"1.246px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-button-line-height","",w.lineHeight,"1.15"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",w.textTransform,"uppercase")},da=Kt.css`
1
+ "use strict";(()=>{var Hu=Object.create;var rs=Object.defineProperty;var ju=Object.getOwnPropertyDescriptor;var Vu=Object.getOwnPropertyNames;var zu=Object.getPrototypeOf,Wu=Object.prototype.hasOwnProperty;var mr=(e,t)=>()=>{try{return t||e((t={exports:{}}).exports,t),t.exports}catch(r){throw t=0,r}};var Ku=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of Vu(t))!Wu.call(e,n)&&n!==r&&rs(e,n,{get:()=>t[n],enumerable:!(i=ju(t,n))||i.enumerable});return e};var f=(e,t,r)=>(r=e!=null?Hu(zu(e)):{},Ku(t||!e||!e.__esModule?rs(r,"default",{value:e,enumerable:!0}):r,e));var b=mr((xp,is)=>{is.exports=ftGlobals.wcUtils});var N=mr((Sp,ns)=>{ns.exports=ftGlobals.lit});var H=mr((Ap,os)=>{os.exports=ftGlobals.litDecorators});var be=mr((uf,wa)=>{wa.exports=ftGlobals.litClassMap});var Ic=mr(($y,Pc)=>{Pc.exports=ftGlobals.litUnsafeHTML});var Zo=mr((wx,lu)=>{lu.exports=ftGlobals.litRepeat});var Bu=f(b());var Mu=f(N()),Qt=f(H()),Et=f(b());var _i=f(b()),as=f(H());var ss;(function(e){e.clusteringHelperCreated="clustering-helper-created",e.mapAttachmentsUpdate="map-attachments-update",e.visibleTopicChange="visible-topic-change",e.requestedTopicNotFound="requested-topic-not-found"})(ss||(ss={}));var Oe;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Oe||(Oe={}));var Gu=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Un=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},$n=Symbol("registerInterval"),qu=(0,_i.applyMixinOnce)(Symbol("toFtReaderComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this[t]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[$n]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[$n]):this.dispatchEvent(new Un)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return t=$n,Gu([(0,as.state)()],r.prototype,"stateManager",void 0),r}),gr=class extends qu(_i.FtLitElementRedux){};var it=f(N()),nt=f(H()),Kr=f(b());var ls;(function(e){e.black="black",e.green="green",e.blue="blue",e.purple="purple",e.red="red",e.orange="orange",e.yellow="yellow"})(ls||(ls={}));var cs;(function(e){e.OFFICIAL="OFFICIAL",e.PERSONAL="PERSONAL",e.SHARED="SHARED"})(cs||(cs={}));var us;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(us||(us={}));var ds;(function(e){e.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",e.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",e.PERSONAL_BOOK="PERSONAL_BOOK",e.ATTACHMENT="ATTACHMENT",e.RESOURCE="RESOURCE",e.HTML_PACKAGE="HTML_PACKAGE"})(ds||(ds={}));var ps;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(ps||(ps={}));var fs;(function(e){e.VALUE="VALUE",e.DATE="DATE",e.RANGE="RANGE"})(fs||(fs={}));var hs;(function(e){e.OFFICIAL="OFFICIAL",e.AI="AI"})(hs||(hs={}));var ms;(function(e){e.BOOKMARK__CREATE="BOOKMARK__CREATE",e.BOOKMARK__DELETE="BOOKMARK__DELETE",e.CASE_DEFLECTION__START="CASE_DEFLECTION__START",e.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",e.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",e.CHATBOT__RATE="CHATBOT__RATE",e.COLLECTION__CREATE="COLLECTION__CREATE",e.COLLECTION__UPDATE="COLLECTION__UPDATE",e.COLLECTION__DELETE="COLLECTION__DELETE",e.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",e.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",e.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",e.DOCUMENT__PRINT="DOCUMENT__PRINT",e.DOCUMENT__PROCESS="DOCUMENT__PROCESS",e.DOCUMENT__RATE="DOCUMENT__RATE",e.DOCUMENT__SEARCH="DOCUMENT__SEARCH",e.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",e.DOCUMENT__UNRATE="DOCUMENT__UNRATE",e.FEEDBACK__SEND="FEEDBACK__SEND",e.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",e.AI__RATE="AI__RATE",e.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",e.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",e.KHUB__PROCESS="KHUB__PROCESS",e.KHUB__SEARCH="KHUB__SEARCH",e.LABELS__DOWNLOAD="LABELS__DOWNLOAD",e.LINK__SHARE="LINK__SHARE",e.PAGE__DISPLAY="PAGE__DISPLAY",e.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",e.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",e.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",e.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",e.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",e.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",e.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",e.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",e.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",e.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",e.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",e.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",e.TOPIC__RATE="TOPIC__RATE",e.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",e.TOPIC__UNRATE="TOPIC__UNRATE",e.USER__LOGIN="USER__LOGIN",e.USER__LOGOUT="USER__LOGOUT",e.HEARTBEAT="HEARTBEAT"})(ms||(ms={}));var gs;(function(e){e.STANDARD="STANDARD",e.STRUCTURAL="STRUCTURAL"})(gs||(gs={}));var vs;(function(e){e.THIRD_PARTY="THIRD_PARTY",e.OFF_THE_GRID="OFF_THE_GRID",e.CONTENT_PACKAGER="CONTENT_PACKAGER",e.PAGES="PAGES",e.DESIGNED_READER="DESIGNED_READER"})(vs||(vs={}));var ys;(function(e){e.HOMEPAGE="HOMEPAGE",e.CUSTOM="CUSTOM",e.HEADER="HEADER",e.READER="READER",e.TOPIC_TEMPLATE="TOPIC_TEMPLATE",e.SEARCH="SEARCH",e.SEARCH_RESULT="SEARCH_RESULT",e.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",e.LINK_PREVIEW="LINK_PREVIEW",e.UD_VIEWER="UD_VIEWER",e.ASSET_VIEWER="ASSET_VIEWER"})(ys||(ys={}));var bs;(function(e){e.CLASSIC="CLASSIC",e.CUSTOM="CUSTOM",e.DESIGNER="DESIGNER"})(bs||(bs={}));var xs;(function(e){e.AND="AND",e.OR="OR",e.MONOVALUED="MONOVALUED"})(xs||(xs={}));var Ss;(function(e){e.NONE="NONE",e.ALPHABET="ALPHABET",e.VERSION="VERSION"})(Ss||(Ss={}));var Y;(function(e){e.STARS="STARS",e.LIKE="LIKE",e.DICHOTOMOUS="DICHOTOMOUS",e.NO_RATING="NO_RATING"})(Y||(Y={}));var As;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR",e.CUSTOM="CUSTOM"})(As||(As={}));var Es;(function(e){e.OPTIONAL="OPTIONAL",e.MANDATORY="MANDATORY"})(Es||(Es={}));var ws;(function(e){e.ASC="ASC",e.DESC="DESC"})(ws||(ws={}));var Cs;(function(e){e.ALPHA="ALPHA",e.NATURAL="NATURAL"})(Cs||(Cs={}));var _s;(function(e){e.EVERYWHERE="EVERYWHERE",e.TITLE_ONLY="TITLE_ONLY",e.NONE="NONE"})(_s||(_s={}));var Ts;(function(e){e.ARTICLE="ARTICLE",e.BOOK="BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Ts||(Ts={}));var Os;(function(e){e.FLUIDTOPICS="FLUIDTOPICS",e.EXTERNAL="EXTERNAL"})(Os||(Os={}));var Rs;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.PERSONAL_BOOK="PERSONAL_BOOK",e.SHARED_BOOK="SHARED_BOOK",e.HTML_PACKAGE="HTML_PACKAGE"})(Rs||(Rs={}));var Ls;(function(e){e.LAST_WEEK="LAST_WEEK",e.LAST_MONTH="LAST_MONTH",e.LAST_QUARTER="LAST_QUARTER",e.LAST_YEAR="LAST_YEAR"})(Ls||(Ls={}));var ks;(function(e){e.MAP="MAP",e.DOCUMENT="DOCUMENT",e.TOPIC="TOPIC",e.HTML_PACKAGE="HTML_PACKAGE",e.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(ks||(ks={}));var Ps;(function(e){e.DEFAULT="DEFAULT",e.DOCUMENTS="DOCUMENTS",e.ALL_TOPICS="ALL_TOPICS",e.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ps||(Ps={}));var Is;(function(e){e.PLAIN_TEXT="PLAIN_TEXT",e.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",e.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Is||(Is={}));var st;(function(e){e.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",e.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",e.HTML_EXPORT_USER="HTML_EXPORT_USER",e.PDF_EXPORT_USER="PDF_EXPORT_USER",e.SAVED_SEARCH_USER="SAVED_SEARCH_USER",e.COLLECTION_USER="COLLECTION_USER",e.OFFLINE_USER="OFFLINE_USER",e.ANALYTICS_USER="ANALYTICS_USER",e.BETA_USER="BETA_USER",e.DEBUG_USER="DEBUG_USER",e.PRINT_USER="PRINT_USER",e.RATING_USER="RATING_USER",e.FEEDBACK_USER="FEEDBACK_USER",e.GENERATIVE_AI_USER="GENERATIVE_AI_USER",e.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",e.CONTENT_PUBLISHER="CONTENT_PUBLISHER",e.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",e.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",e.KHUB_ADMIN="KHUB_ADMIN",e.USERS_ADMIN="USERS_ADMIN",e.PORTAL_ADMIN="PORTAL_ADMIN",e.ADMIN="ADMIN"})(st||(st={}));var zt;(function(e){e.SEARCHES="SEARCHES",e.BOOKMARKS="BOOKMARKS",e.BOOKS="BOOKS",e.COLLECTIONS="COLLECTIONS"})(zt||(zt={}));var Ds;(function(e){e.UNAUTHENTICATED="UNAUTHENTICATED",e.USER_INCOMPLETE="USER_INCOMPLETE",e.MFA_REQUIRED="MFA_REQUIRED",e.AUTHENTICATED="AUTHENTICATED"})(Ds||(Ds={}));var Ns;(function(e){e.UNREACHABLE="UNREACHABLE",e.UNAUTHORIZED="UNAUTHORIZED",e.FORBIDDEN="FORBIDDEN",e.INCOMPATIBLE="INCOMPATIBLE",e.FAILED="FAILED",e.OK="OK"})(Ns||(Ns={}));var Ms;(function(e){e.VALID="VALID",e.INVALID="INVALID"})(Ms||(Ms={}));var $s;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SUMMARY="SUMMARY",e.SEMANTIC_SEARCH="SEMANTIC_SEARCH",e.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",e.DOCUMENTATION="DOCUMENTATION",e.OTHER="OTHER"})($s||($s={}));var Us;(function(e){e.INACCURATE="INACCURATE",e.INCOMPLETE="INCOMPLETE",e.OFF_TOPIC="OFF_TOPIC",e.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",e.SLOW="SLOW",e.OTHER="OTHER"})(Us||(Us={}));var Fs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Fs||(Fs={}));var Bs;(function(e){e.JSON="JSON",e.TEXT="TEXT"})(Bs||(Bs={}));var Hs;(function(e){e.TEXT="TEXT",e.HTML="HTML"})(Hs||(Hs={}));var js;(function(e){e.IN_PROGRESS="IN_PROGRESS",e.ERROR="ERROR",e.DONE="DONE"})(js||(js={}));var Vs;(function(e){e.HTML="HTML",e.MARKDOWN="MARKDOWN"})(Vs||(Vs={}));var zs;(function(e){e.SOURCES="SOURCES",e.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",e.VOCABULARIES="VOCABULARIES",e.METADATA="METADATA",e.PRETTY_URL="PRETTY_URL",e.ACCESS_RULE="ACCESS_RULE",e.DESIGNED_PAGES="DESIGNED_PAGES",e.THEME_STUDIO="THEME_STUDIO",e.PORTAL_GENERAL="PORTAL_GENERAL",e.ASSETS="ASSETS",e.CODE_LIBRARY="CODE_LIBRARY",e.THEME="THEME",e.CONTENT_STYLES="CONTENT_STYLES",e.HOMEPAGE="HOMEPAGE",e.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",e.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",e.PORTAL_METADATA="PORTAL_METADATA",e.LANGUAGES="LANGUAGES",e.PRINT_TEMPLATES="PRINT_TEMPLATES",e.OFFLINE="OFFLINE",e.CUSTOM_JS="CUSTOM_JS",e.CONFIDENTIALITY="CONFIDENTIALITY",e.NOTIFICATIONS="NOTIFICATIONS"})(zs||(zs={}));var Ws;(function(e){e.MAP="MAP",e.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ws||(Ws={}));var Yu={[st.PERSONAL_BOOK_SHARE_USER]:[st.PERSONAL_BOOK_USER],[st.HTML_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.PDF_EXPORT_USER]:[st.PERSONAL_BOOK_USER],[st.KHUB_ADMIN]:[st.CONTENT_PUBLISHER],[st.ADMIN]:[st.KHUB_ADMIN,st.USERS_ADMIN,st.PORTAL_ADMIN,st.BEHAVIOR_DATA_USER],[st.GENERATIVE_AI_EXPORT_USER]:[st.GENERATIVE_AI_USER]};function Ks(e,t){return e===t||(Yu[e]??[]).some(r=>Ks(r,t))}function Gs(e,t){return e==null?!1:(Array.isArray(e)?e:Array.isArray(e.roles)?e.roles:Array.isArray(e.profile?.roles)?e.profile.roles:[]).some(i=>Ks(i,t))}var Wn=globalThis,qs=e=>e,Ti=Wn.trustedTypes,Ys=Ti?Ti.createPolicy("lit-html",{createHTML:e=>e}):void 0,ea="$lit$",Re=`lit$${Math.random().toFixed(9).slice(2)}$`,ra="?"+Re,Xu=`<${ra}>`,Ye=document,Oi=()=>Ye.createComment(""),Xr=e=>e===null||typeof e!="object"&&typeof e!="function",Kn=Array.isArray,Zu=e=>Kn(e)||typeof e?.[Symbol.iterator]=="function",Fn=`[
2
+ \f\r]`,Yr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Xs=/-->/g,Zs=/>/g,Ge=RegExp(`>|${Fn}(?:([^\\s"'>=/]+)(${Fn}*=${Fn}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Js=/'/g,Qs=/"/g,ia=/^(?:script|style|textarea|title)$/i,Gn=e=>(t,...r)=>({_$litType$:e,strings:t,values:r}),na=Gn(1),oa=Gn(2),sa=Gn(3),Zr=Symbol.for("lit-noChange"),at=Symbol.for("lit-nothing"),ta=new WeakMap,qe=Ye.createTreeWalker(Ye,129);function aa(e,t){if(!Kn(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ys!==void 0?Ys.createHTML(t):t}var Ju=(e,t)=>{let r=e.length-1,i=[],n,o=t===2?"<svg>":t===3?"<math>":"",s=Yr;for(let a=0;a<r;a++){let l=e[a],c,u,d=-1,p=0;for(;p<l.length&&(s.lastIndex=p,u=s.exec(l),u!==null);)p=s.lastIndex,s===Yr?u[1]==="!--"?s=Xs:u[1]!==void 0?s=Zs:u[2]!==void 0?(ia.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Ge):u[3]!==void 0&&(s=Ge):s===Ge?u[0]===">"?(s=n??Yr,d=-1):u[1]===void 0?d=-2:(d=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?Ge:u[3]==='"'?Qs:Js):s===Qs||s===Js?s=Ge:s===Xs||s===Zs?s=Yr:(s=Ge,n=void 0);let h=s===Ge&&e[a+1].startsWith("/>")?" ":"";o+=s===Yr?l+Xu:d>=0?(i.push(c),l.slice(0,d)+ea+l.slice(d)+Re+h):l+Re+(d===-2?a:h)}return[aa(e,o+(e[r]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]},Jr=class e{constructor({strings:t,_$litType$:r},i){let n;this.parts=[];let o=0,s=0,a=t.length-1,l=this.parts,[c,u]=Ju(t,r);if(this.el=e.createElement(c,i),qe.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=qe.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(ea)){let p=u[s++],h=n.getAttribute(d).split(Re),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:h,ctor:m[1]==="."?Hn:m[1]==="?"?jn:m[1]==="@"?Vn:yr}),n.removeAttribute(d)}else d.startsWith(Re)&&(l.push({type:6,index:o}),n.removeAttribute(d));if(ia.test(n.tagName)){let d=n.textContent.split(Re),p=d.length-1;if(p>0){n.textContent=Ti?Ti.emptyScript:"";for(let h=0;h<p;h++)n.append(d[h],Oi()),qe.nextNode(),l.push({type:2,index:++o});n.append(d[p],Oi())}}}else if(n.nodeType===8)if(n.data===ra)l.push({type:2,index:o});else{let d=-1;for(;(d=n.data.indexOf(Re,d+1))!==-1;)l.push({type:7,index:o}),d+=Re.length-1}o++}}static createElement(t,r){let i=Ye.createElement("template");return i.innerHTML=t,i}};function vr(e,t,r=e,i){if(t===Zr)return t;let n=i!==void 0?r._$Co?.[i]:r._$Cl,o=Xr(t)?void 0:t._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(e),n._$AT(e,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(t=vr(e,n._$AS(e,t.values),n,i)),t}var Bn=class{constructor(t,r){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:r},parts:i}=this._$AD,n=(t?.creationScope??Ye).importNode(r,!0);qe.currentNode=n;let o=qe.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new Ri(o,o.nextSibling,this,t):l.type===1?c=new l.ctor(o,l.name,l.strings,this,t):l.type===6&&(c=new zn(o,this,t)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(o=qe.nextNode(),s++)}return qe.currentNode=Ye,n}p(t){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,r),r+=i.strings.length-2):i._$AI(t[r])),r++}},Ri=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,r,i,n){this.type=2,this._$AH=at,this._$AN=void 0,this._$AA=t,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,r=this._$AM;return r!==void 0&&t?.nodeType===11&&(t=r.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,r=this){t=vr(this,t,r),Xr(t)?t===at||t==null||t===""?(this._$AH!==at&&this._$AR(),this._$AH=at):t!==this._$AH&&t!==Zr&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Zu(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==at&&Xr(this._$AH)?this._$AA.nextSibling.data=t:this.T(Ye.createTextNode(t)),this._$AH=t}$(t){let{values:r,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Jr.createElement(aa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let o=new Bn(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(t){let r=ta.get(t.strings);return r===void 0&&ta.set(t.strings,r=new Jr(t)),r}k(t){Kn(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let o of t)n===r.length?r.push(i=new e(this.O(Oi()),this.O(Oi()),this,this.options)):i=r[n],i._$AI(o),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(t=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);t!==this._$AB;){let i=qs(t).nextSibling;qs(t).remove(),t=i}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},yr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,r,i,n,o){this.type=1,this._$AH=at,this._$AN=void 0,this.element=t,this.name=r,this._$AM=n,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=at}_$AI(t,r=this,i,n){let o=this.strings,s=!1;if(o===void 0)t=vr(this,t,r,0),s=!Xr(t)||t!==this._$AH&&t!==Zr,s&&(this._$AH=t);else{let a=t,l,c;for(t=o[0],l=0;l<o.length-1;l++)c=vr(this,a[i+l],r,l),c===Zr&&(c=this._$AH[l]),s||=!Xr(c)||c!==this._$AH[l],c===at?t=at:t!==at&&(t+=(c??"")+o[l+1]),this._$AH[l]=c}s&&!n&&this.j(t)}j(t){t===at?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Hn=class extends yr{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===at?void 0:t}},jn=class extends yr{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==at)}},Vn=class extends yr{constructor(t,r,i,n,o){super(t,r,i,n,o),this.type=5}_$AI(t,r=this){if((t=vr(this,t,r,0)??at)===Zr)return;let i=this._$AH,n=t===at&&i!==at||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==at&&(i===at||n);n&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},zn=class{constructor(t,r,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){vr(this,t)}};var Qu=Wn.litHtmlPolyfillSupport;Qu?.(Jr,Ri),(Wn.litHtmlVersions??=[]).push("3.3.3");var ca=Symbol.for(""),td=e=>{if(e?.r===ca)return e?._$litStatic$},qn=e=>({_$litStatic$:e,r:ca});var la=new Map,Yn=e=>(t,...r)=>{let i=r.length,n,o,s=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=t[c];c<i&&(o=r[c],(n=td(o))!==void 0);)l+=n+t[++c],u=!0;c!==i&&a.push(o),s.push(l),c++}if(c===i&&s.push(t[i]),u){let d=s.join("$$lit$$");(t=la.get(d))===void 0&&(s.raw=s,la.set(d,t=s)),r=a}return e(t,...r)},Xn=Yn(na),zp=Yn(oa),Wp=Yn(sa);var Zn=f(H()),Sa=f(b());var gt;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button"})(gt||(gt={}));var Kt=f(N()),y=f(b()),ua=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.titleFont),ye=y.FtCssVariableFactory.extend("--ft-typography-font-family","",y.designSystemVariables.contentFont),w={fontFamily:ye,fontSize:y.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:y.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:y.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:y.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:y.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Le={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-font-family","",ua),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-font-size","",w.fontSize,"20px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",w.letterSpacing,"0.15px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-line-height","",w.lineHeight,"1.2"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",w.textTransform,"inherit")},ke={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",ua),fontSize:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",w.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",w.letterSpacing,"0.105px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",w.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",w.textTransform,"inherit")},br={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",w.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",w.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",w.letterSpacing,"0.144px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",w.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",w.textTransform,"inherit")},xr={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",w.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",w.letterSpacing,"0.098px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",w.lineHeight,"1.7"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",w.textTransform,"inherit")},Wt={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",w.fontSize,"16px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",w.letterSpacing,"0.496px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",w.lineHeight,"1.5"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",w.textTransform,"inherit")},Sr={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",w.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",w.letterSpacing,"0.252px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",w.lineHeight,"1.4"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",w.textTransform,"inherit")},$t={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",w.fontSize,"12px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",w.letterSpacing,"0.396px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",w.lineHeight,"1.33"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",w.textTransform,"inherit")},Ar={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",w.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",w.letterSpacing,"0.33px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",w.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",w.textTransform,"inherit")},Er={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",w.fontSize,"10px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",w.fontWeight,"normal"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",w.letterSpacing,"1.5px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",w.lineHeight,"1.6"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",w.textTransform,"uppercase")},Ct={fontFamily:y.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ye),fontSize:y.FtCssVariableFactory.extend("--ft-typography-button-font-size","",w.fontSize,"14px"),fontWeight:y.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",w.fontWeight,"600"),letterSpacing:y.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",w.letterSpacing,"1.246px"),lineHeight:y.FtCssVariableFactory.extend("--ft-typography-button-line-height","",w.lineHeight,"1.15"),textTransform:y.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",w.textTransform,"uppercase")},da=Kt.css`
4
4
  .ft-typography--title {
5
- font-family: ${Re.fontFamily};
6
- font-size: ${Re.fontSize};
7
- font-weight: ${Re.fontWeight};
8
- letter-spacing: ${Re.letterSpacing};
9
- line-height: ${Re.lineHeight};
10
- text-transform: ${Re.textTransform};
11
- }
12
- `,pa=Kt.css`
13
- .ft-typography--title-dense {
14
5
  font-family: ${Le.fontFamily};
15
6
  font-size: ${Le.fontSize};
16
7
  font-weight: ${Le.fontWeight};
@@ -18,6 +9,15 @@
18
9
  line-height: ${Le.lineHeight};
19
10
  text-transform: ${Le.textTransform};
20
11
  }
12
+ `,pa=Kt.css`
13
+ .ft-typography--title-dense {
14
+ font-family: ${ke.fontFamily};
15
+ font-size: ${ke.fontSize};
16
+ font-weight: ${ke.fontWeight};
17
+ letter-spacing: ${ke.letterSpacing};
18
+ line-height: ${ke.lineHeight};
19
+ text-transform: ${ke.textTransform};
20
+ }
21
21
  `,fa=Kt.css`
22
22
  .ft-typography--subtitle1 {
23
23
  font-family: ${br.fontFamily};
@@ -55,7 +55,7 @@
55
55
  line-height: ${Sr.lineHeight};
56
56
  text-transform: ${Sr.textTransform};
57
57
  }
58
- `,Ri=Kt.css`
58
+ `,Li=Kt.css`
59
59
  .ft-typography--caption {
60
60
  font-family: ${$t.fontFamily};
61
61
  font-size: ${$t.fontSize};
@@ -95,15 +95,15 @@
95
95
  .ft-typography {
96
96
  vertical-align: inherit;
97
97
  }
98
- `;var xa=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Q=class extends Sa.FtLitElement{constructor(){super(...arguments),this.variant=gt.body1}render(){return this.element?Yn`
99
- <${Gn(this.element)}
98
+ `;var xa=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Q=class extends Sa.FtLitElement{constructor(){super(...arguments),this.variant=gt.body1}render(){return this.element?Xn`
99
+ <${qn(this.element)}
100
100
  part="text"
101
101
  class="ft-typography ft-typography--${this.variant}">
102
102
  <slot></slot>
103
- </${Gn(this.element)}>
104
- `:Yn`
103
+ </${qn(this.element)}>
104
+ `:Xn`
105
105
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
106
- `}};Q.styles=[da,pa,fa,ha,wr,ma,Ri,ga,va,ya,ba];xa([(0,Xn.property)()],Q.prototype,"element",void 0);xa([(0,Xn.property)()],Q.prototype,"variant",void 0);var Ea=f(b());var Aa={"ft-typography":Q};(0,Ea.customElements)(Aa);var vn=f(D()),he=f(B()),Hc=f(ye()),Ee=f(b());var jr=f(D()),Dt=f(B()),Vr=f(b());var ka=f(D()),vt=f(B()),Ia=f(ye()),Jr=f(b());var La=f(D()),ct=f(b()),Ca=ct.FtCssVariableFactory.extend("--ft-ripple-color","",ct.designSystemVariables.colorContent),lt={color:Ca,backgroundColor:ct.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ca),opacityContentOnSurfacePressed:ct.FtCssVariableFactory.external(ct.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ct.FtCssVariableFactory.external(ct.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ct.FtCssVariableFactory.external(ct.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ct.FtCssVariableFactory.external(ct.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ct.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},_a=ct.FtCssVariableFactory.extend("--ft-ripple-color","",ct.designSystemVariables.colorPrimary),Ta={color:_a,backgroundColor:ct.FtCssVariableFactory.extend("--ft-ripple-background-color","",_a)},Oa=ct.FtCssVariableFactory.extend("--ft-ripple-color","",ct.designSystemVariables.colorSecondary),Ra={color:Oa,backgroundColor:ct.FtCssVariableFactory.extend("--ft-ripple-background-color","",Oa)},Pa=La.css`
106
+ `}};Q.styles=[da,pa,fa,ha,wr,ma,Li,ga,va,ya,ba];xa([(0,Zn.property)()],Q.prototype,"element",void 0);xa([(0,Zn.property)()],Q.prototype,"variant",void 0);var Ea=f(b());var Aa={"ft-typography":Q};(0,Ea.customElements)(Aa);var vn=f(N()),pe=f(H()),Hc=f(be()),we=f(b());var Vr=f(N()),Dt=f(H()),zr=f(b());var Pa=f(N()),vt=f(H()),Ia=f(be()),Qr=f(b());var La=f(N()),ct=f(b()),Ca=ct.FtCssVariableFactory.extend("--ft-ripple-color","",ct.designSystemVariables.colorContent),lt={color:Ca,backgroundColor:ct.FtCssVariableFactory.extend("--ft-ripple-background-color","",Ca),opacityContentOnSurfacePressed:ct.FtCssVariableFactory.external(ct.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ct.FtCssVariableFactory.external(ct.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ct.FtCssVariableFactory.external(ct.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ct.FtCssVariableFactory.external(ct.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ct.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},_a=ct.FtCssVariableFactory.extend("--ft-ripple-color","",ct.designSystemVariables.colorPrimary),Ta={color:_a,backgroundColor:ct.FtCssVariableFactory.extend("--ft-ripple-background-color","",_a)},Oa=ct.FtCssVariableFactory.extend("--ft-ripple-color","",ct.designSystemVariables.colorSecondary),Ra={color:Oa,backgroundColor:ct.FtCssVariableFactory.extend("--ft-ripple-background-color","",Oa)},ka=La.css`
107
107
  :host {
108
108
  display: contents;
109
109
  }
@@ -215,7 +215,7 @@
215
215
  opacity: ${lt.opacityContentOnSurfacePressed};
216
216
  transform: translate(-50%, -50%) scale(1);
217
217
  }
218
- `;var Lt=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},$=class extends Jr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Jr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Jr.Debouncer(10),this.moveRipple=t=>{var r,i;let{x:n,y:o}=this.getCoordinates(t),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return ka.html`
218
+ `;var Lt=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},$=class extends Qr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Qr.Debouncer(1e3),this.onTransitionStart=t=>{t.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=t=>{t.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Qr.Debouncer(10),this.moveRipple=t=>{var r,i;let{x:n,y:o}=this.getCoordinates(t),s=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(t?.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Pa.html`
219
219
  <style>
220
220
  .ft-ripple .ft-ripple--effect {
221
221
  left: ${this.originX}px;
@@ -226,7 +226,7 @@
226
226
  <div class="ft-ripple--background"></div>
227
227
  <div class="ft-ripple--effect"></div>
228
228
  </div>
229
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",o,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",o,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,i=t,n,o;return r.x!=null?{x:n,y:o}=r:i.touches!=null&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};$.elementDefinitions={};$.styles=Pa;Lt([(0,vt.property)({type:Boolean})],$.prototype,"primary",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"secondary",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"unbounded",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"activated",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"selected",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"disabled",void 0);Lt([(0,vt.state)()],$.prototype,"hovered",void 0);Lt([(0,vt.state)()],$.prototype,"focused",void 0);Lt([(0,vt.state)()],$.prototype,"pressed",void 0);Lt([(0,vt.state)()],$.prototype,"rippling",void 0);Lt([(0,vt.state)()],$.prototype,"originX",void 0);Lt([(0,vt.state)()],$.prototype,"originY",void 0);Lt([(0,vt.query)(".ft-ripple")],$.prototype,"ripple",void 0);Lt([(0,vt.query)(".ft-ripple--effect")],$.prototype,"rippleEffect",void 0);var Na=f(b());var Da={"ft-ripple":$};(0,Na.customElements)(Da);var Bc=f(ye());var Tc=f(D()),Xt=f(B()),Yt=f(b());var Ma=f(D()),Pe=f(b()),Qr={distance:Pe.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Pe.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Pe.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Pe.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Pe.designSystemVariables.borderRadiusS),maxWidth:Pe.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},$a=Ma.css`
229
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var r,i;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),(r=this.target)===null||r===void 0||r.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var t,r;let i=(t=this.shadowRoot)===null||t===void 0?void 0:t.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var t;!((t=this.target)===null||t===void 0)&&t.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),n=r("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};t.addEventListener("mouseover",this.startHover,s),t.addEventListener("mousemove",this.moveRipple,s),t.addEventListener("mouseleave",this.endHover,s),t.addEventListener("mousedown",i,s),t.addEventListener("touchstart",n,s),t.addEventListener("touchmove",this.moveRipple,s),t.addEventListener("keydown",o,s),t.addEventListener("focus",this.startFocus,s),t.addEventListener("blur",this.endFocus,s),t.addEventListener("focusin",this.startFocus,s),t.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,s),t.removeEventListener("mousemove",this.moveRipple,s),t.removeEventListener("mouseleave",this.endHover,s),t.removeEventListener("mousedown",i,s),t.removeEventListener("touchstart",n,s),t.removeEventListener("touchmove",this.moveRipple,s),t.removeEventListener("keydown",o,s),t.removeEventListener("focus",this.startFocus,s),t.removeEventListener("blur",this.endFocus,s),t.removeEventListener("focusin",this.startFocus,s),t.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){let r=t,i=t,n,o;return r.x!=null?{x:n,y:o}=r:i.touches!=null&&(n=i.touches[0].clientX,o=i.touches[0].clientY),{x:n,y:o}}isFocusVisible(t){return t instanceof HTMLElement?t.matches(":focus-visible"):!0}isIgnored(t){if(this.disabled)return!0;if(t!=null)for(let r of t.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};$.elementDefinitions={};$.styles=ka;Lt([(0,vt.property)({type:Boolean})],$.prototype,"primary",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"secondary",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"unbounded",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"activated",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"selected",void 0);Lt([(0,vt.property)({type:Boolean})],$.prototype,"disabled",void 0);Lt([(0,vt.state)()],$.prototype,"hovered",void 0);Lt([(0,vt.state)()],$.prototype,"focused",void 0);Lt([(0,vt.state)()],$.prototype,"pressed",void 0);Lt([(0,vt.state)()],$.prototype,"rippling",void 0);Lt([(0,vt.state)()],$.prototype,"originX",void 0);Lt([(0,vt.state)()],$.prototype,"originY",void 0);Lt([(0,vt.query)(".ft-ripple")],$.prototype,"ripple",void 0);Lt([(0,vt.query)(".ft-ripple--effect")],$.prototype,"rippleEffect",void 0);var Na=f(b());var Da={"ft-ripple":$};(0,Na.customElements)(Da);var Bc=f(be());var Tc=f(N()),Xt=f(H()),Yt=f(b());var Ma=f(N()),Pe=f(b()),ti={distance:Pe.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Pe.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Pe.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Pe.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Pe.designSystemVariables.borderRadiusS),maxWidth:Pe.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},$a=Ma.css`
230
230
  .ft-tooltip--container {
231
231
  display: block;
232
232
  }
@@ -244,28 +244,28 @@
244
244
  box-sizing: border-box;
245
245
  overflow: hidden;
246
246
  width: max-content;
247
- max-width: ${Qr.maxWidth};
247
+ max-width: ${ti.maxWidth};
248
248
  text-align: center;
249
- padding: ${Qr.distance};
249
+ padding: ${ti.distance};
250
250
  }
251
251
 
252
252
  .ft-tooltip--content {
253
253
  padding: 4px 8px;
254
- border-radius: ${Qr.borderRadiusS};
255
- background-color: ${Qr.backgroundColor};
256
- color: ${Qr.color};
254
+ border-radius: ${ti.borderRadiusS};
255
+ background-color: ${ti.backgroundColor};
256
+ color: ${ti.color};
257
257
  position: relative;
258
258
  word-break: break-word;
259
259
  }
260
- `;var Fa=["top","right","bottom","left"],Ua=["start","end"],Jn=Fa.reduce((e,t)=>e.concat(t,t+"-"+Ua[0],t+"-"+Ua[1]),[]),ti=Math.min,ke=Math.max,ei=Math.round;var de=e=>({x:e,y:e}),ed={left:"right",right:"left",bottom:"top",top:"bottom"};function Ba(e,t,r){return ke(e,ti(t,r))}function Li(e,t){return typeof e=="function"?e(t):e}function ri(e){return e.split("-")[0]}function Ie(e){return e.split("-")[1]}function Qn(e){return e==="x"?"y":"x"}function to(e){return e==="y"?"height":"width"}function Pi(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function eo(e){return Qn(Pi(e))}function Ha(e,t,r){r===void 0&&(r=!1);let i=Ie(e),n=eo(e),o=to(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Zn(s)),[s,Zn(s)]}function ja(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Zn(e){let t=ri(e);return ed[t]+e.slice(t.length)}function rd(e){var t,r,i,n;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}}function Va(e){return typeof e!="number"?rd(e):{top:e,right:e,bottom:e,left:e}}function Xe(e){let{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function za(e,t,r){let{reference:i,floating:n}=e,o=Pi(t),s=eo(t),a=to(s),l=ri(t),c=o==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,h;switch(l){case"top":h={x:u,y:i.y-n.height};break;case"bottom":h={x:u,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-n.width,y:d};break;default:h={x:i.x,y:i.y}}let m=Ie(t);return m&&(h[s]+=p*(m==="end"?1:-1)*(r&&c?-1:1)),h}async function Wa(e,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=Li(t,e),m=Va(h),x=a[p?d==="floating"?"reference":"floating":d],S=Xe(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(x)))==null||r?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),A=d==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),L=await(o.isElement==null?void 0:o.isElement(O))&&await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1},dt=Xe(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:A,offsetParent:O,strategy:l}):A);return{top:(S.top-dt.top+m.top)/L.y,bottom:(dt.bottom-S.bottom+m.bottom)/L.y,left:(S.left-dt.left+m.left)/L.x,right:(dt.right-S.right+m.right)/L.x}}var id=50,Ka=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Wa},l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=za(c,i,l),p=i,h=0,m={};for(let g=0;g<o.length;g++){let x=o[g];if(!x)continue;let{name:S,fn:A}=x,{x:O,y:L,data:dt,reset:ot}=await A({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=O??u,d=L??d,m[S]={...m[S],...dt},ot&&h<id&&(h++,typeof ot=="object"&&(ot.placement&&(p=ot.placement),ot.rects&&(c=ot.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):ot.rects),{x:u,y:d}=za(c,p,l)),g=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:m}};function nd(e,t,r){return(e?[...r.filter(n=>Ie(n)===e),...r.filter(n=>Ie(n)!==e)]:r.filter(n=>ri(n)===n)).filter(n=>e?Ie(n)===e||(t?ja(n)!==n:!1):!0)}var Ga=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Jn,autoAlignment:h=!0,...m}=Li(e,t),g=d!==void 0||p===Jn?nd(d||null,h,p):p,x=((r=s.autoPlacement)==null?void 0:r.index)||0,S=g[x];if(S==null)return{};if(a!==S)return{reset:{placement:g[0]}};let A=await l.detectOverflow(t,m),O=Ha(S,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),L=[A[ri(S)],A[O[0]],A[O[1]]],dt=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:S,overflows:L}],ot=g[x+1];if(ot)return{data:{index:x+1,overflows:dt},reset:{placement:ot}};let Ce=dt.map(Nt=>{let Vt=Ie(Nt.placement);return[Nt.placement,Vt&&u?Nt.overflows.slice(0,2).reduce((Mt,Ke)=>Mt+Ke,0):Nt.overflows[0],Nt.overflows]}).sort((Nt,Vt)=>Nt[1]-Vt[1]),_e=((n=Ce.filter(Nt=>Nt[2].slice(0,Ie(Nt[0])?2:3).every(Vt=>Vt<=0))[0])==null?void 0:n[0])||Ce[0][0];return _e!==a?{data:{index:x+1,overflows:dt},reset:{placement:_e}}:{}}}};var qa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:n,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:A=>{let{x:O,y:L}=A;return{x:O,y:L}}},...c}=Li(e,t),u={x:r,y:i},d=await o.detectOverflow(t,c),p=Pi(n),h=Qn(p),m=u[h],g=u[p],x=(A,O)=>Ba(O+d[A==="y"?"top":"left"],O,O-d[A==="y"?"bottom":"right"]);s&&(m=x(h,m)),a&&(g=x(p,g));let S=l.fn({...t,[h]:m,[p]:g});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[h]:s,[p]:a}}}}}};function Ii(){return typeof window<"u"}function Je(e){return Xa(e)?(e.nodeName||"").toLowerCase():"#document"}function Pt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function be(e){var t;return(t=(Xa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xa(e){return Ii()?e instanceof Node||e instanceof Pt(e).Node:!1}function re(e){return Ii()?e instanceof Element||e instanceof Pt(e).Element:!1}function xe(e){return Ii()?e instanceof HTMLElement||e instanceof Pt(e).HTMLElement:!1}function Ya(e){return!Ii()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Pt(e).ShadowRoot}function ii(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=ie(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&n!=="inline"&&n!=="contents"}function Za(e){return/^(table|td|th)$/.test(Je(e))}function ni(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var od=/transform|translate|scale|rotate|perspective|filter/,sd=/paint|layout|strict|content/,Ze=e=>!!e&&e!=="none",ro;function Cr(e){let t=re(e)?ie(e):e;return Ze(t.transform)||Ze(t.translate)||Ze(t.scale)||Ze(t.rotate)||Ze(t.perspective)||!Di()&&(Ze(t.backdropFilter)||Ze(t.filter))||od.test(t.willChange||"")||sd.test(t.contain||"")}function Ja(e){let t=De(e);for(;xe(t)&&!_r(t);){if(Cr(t))return t;if(ni(t))return null;t=De(t)}return null}function Di(){return ro==null&&(ro=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),ro}function _r(e){return/^(html|body|#document)$/.test(Je(e))}function ie(e){return Pt(e).getComputedStyle(e)}function oi(e){return re(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function De(e){if(Je(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ya(e)&&e.host||be(e);return Ya(t)?t.host:t}function Qa(e){let t=De(e);return _r(t)?(e.ownerDocument||e).body:xe(t)&&ii(t)?t:Qa(t)}function ki(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=Qa(e),o=n===((i=e.ownerDocument)==null?void 0:i.body),s=Pt(n);if(o){let a=Ni(s);return t.concat(s,s.visualViewport||[],ii(n)?n:[],a&&r?ki(a):[])}else return t.concat(n,ki(n,[],r))}function Ni(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rl(e){let t=ie(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=xe(e),o=n?e.offsetWidth:r,s=n?e.offsetHeight:i,a=ei(r)!==o||ei(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function il(e){return re(e)?e:e.contextElement}function Tr(e){let t=il(e);if(!xe(t))return de(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:o}=rl(t),s=(o?ei(r.width):r.width)/i,a=(o?ei(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var ad=de(0);function nl(e){let t=Pt(e);return!Di()||!t.visualViewport?ad:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ld(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===Pt(e)}function si(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),o=il(e),s=de(1);t&&(i?re(i)&&(s=Tr(i)):s=Tr(e));let a=ld(o,r,i)?nl(o):de(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&&i){let p=Pt(o),h=re(i)?Pt(i):i,m=p,g=Ni(m);for(;g&&h!==m;){let x=Tr(g),S=g.getBoundingClientRect(),A=ie(g),O=S.left+(g.clientLeft+parseFloat(A.paddingLeft))*x.x,L=S.top+(g.clientTop+parseFloat(A.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=O,c+=L,m=Pt(g),g=Ni(m)}}return Xe({width:u,height:d,x:l,y:c})}function Mi(e,t){let r=oi(e).scrollLeft;return t?t.left+r:si(be(e)).left+r}function ol(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-Mi(e,r),n=r.top+t.scrollTop;return{x:i,y:n}}function cd(e){let{elements:t,rect:r,offsetParent:i,strategy:n}=e,o=n==="fixed",s=be(i),a=t?ni(t.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=de(1),u=de(0),d=xe(i);if((d||!o)&&((Je(i)!=="body"||ii(s))&&(l=oi(i)),d)){let h=si(i);c=Tr(i),u.x=h.x+i.clientLeft,u.y=h.y+i.clientTop}let p=s&&!d&&!o?ol(s,l):de(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function ud(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function dd(e){let t=oi(e),r=e.ownerDocument.body,i=ke(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=ke(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-t.scrollLeft+Mi(e),s=-t.scrollTop;return ie(r).direction==="rtl"&&(o+=ke(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var pd=25;function fd(e,t,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Pt(e),o=be(e),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!Di()||t==="fixed";i?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if(Mi(o)<=0){let p=o.ownerDocument,h=p.body,m=getComputedStyle(h),g=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(o.clientWidth-h.clientWidth-g),S=getComputedStyle(o).scrollbarGutter==="stable both-edges"?x/2:x;S<=pd&&(a-=S)}return{width:a,height:l,x:c,y:u}}function hd(e,t){let r=si(e,!0,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft,o=Tr(e),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function tl(e,t,r){let i;if(t==="viewport"||t==="layoutViewport")i=fd(e,r,t);else if(t==="document")i=dd(be(e));else if(re(t))i=hd(t,r);else{let n=nl(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Xe(i)}function md(e,t){let r=t.get(e);if(r)return r;let i=ki(e,[],!1).filter(a=>re(a)&&Je(a)!=="body"),n=null,o=ie(e).position==="fixed",s=o?De(e):e;for(;re(s)&&!_r(s);){let a=ie(s),l=Cr(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==s):n=a,s=De(s)}return t.set(e,i),i}function gd(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,s=[...r==="clippingAncestors"?ni(t)?[]:md(t,this._c):[].concat(r),i],a=tl(t,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let h=tl(t,s[p],n);l=ke(h.top,l),c=ti(h.right,c),u=ti(h.bottom,u),d=ke(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function vd(e){let{width:t,height:r}=rl(e);return{width:t,height:r}}function yd(e,t,r){let i=xe(t),n=be(t),o=r==="fixed",s=si(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=de(0);if((i||!o)&&((Je(t)!=="body"||ii(n))&&(a=oi(t)),i)){let p=si(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&n&&(l.x=Mi(n));let c=n&&!i&&!o?ol(n,a):de(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 io(e){return ie(e).position==="static"}function el(e,t){if(!xe(e)||ie(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return be(e)===r&&(r=r.ownerDocument.body),r}function sl(e,t){let r=Pt(e);if(ni(e))return r;if(!xe(e)){let n=De(e);for(;n&&!_r(n);){if(re(n)&&!io(n))return n;n=De(n)}return r}let i=el(e,t);for(;i&&Za(i)&&io(i);)i=el(i,t);return i&&_r(i)&&io(i)&&!Cr(i)?r:i||Ja(e)||r}var bd=async function(e){let t=this.getOffsetParent||sl,r=this.getDimensions,i=await r(e.floating);return{reference:yd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function xd(e){return ie(e).direction==="rtl"}var $i={convertOffsetParentRelativeRectToViewportRelativeRect:cd,getDocumentElement:be,getClippingRect:gd,getOffsetParent:sl,getElementRects:bd,getClientRects:ud,getDimensions:vd,getScale:Tr,isElement:re,isRTL:xd};var al=Ga,ll=qa;var cl=(e,t,r)=>{let i=new Map,n=r??{},o={...$i,...n.platform,_c:i};return Ka(e,t,{...n,platform:o})};function ul(e){return Sd(e)}function no(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Sd(e){for(let t=e;t;t=no(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=no(e);t;t=no(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Cr(r)||t.tagName==="BODY"))return t}return null}async function dl(e,t,r){let i;return typeof r=="object"?i=r:i={placement:r},cl(e,t,{strategy:i.strategy,platform:{...$i,getOffsetParent:n=>$i.getOffsetParent(n,ul)},middleware:[ll({crossAxis:!0}),al({allowedPlacements:[i.placement]})]})}var Hr=f(b());var Po=f(B());var pl=f(B(),1);var oo=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function fl(e,t){return(0,pl.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return ai(e);try{return JSON.parse(r)}catch{return ai(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:li,...t??{}})}function Ad(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Ui(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!Ui(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(e);if(r=o.length,r!==n(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!Ui(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Ui(e,t){try{return Ad(e,t)}catch{return!1}}function li(e,t){return!Ui(e,t)}function ai(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Fi(e,t){let r=i=>i[e]===!0;return i=>{if(r(i))return i;let n=t(i);return n[e]=!0,n}}var hl=f(B(),1);var so=e=>{let t=e??{};return(r,i)=>{var n;let o={hasChanged:li,attribute:!1,...t};(0,hl.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:(a=>a[i]),store:t.store})}};var Bi=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var Qe=f(B(),1);var Hi=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)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 gl=f(D(),1);var ji=globalThis,Ed=ji.ShadowRoot&&(ji.ShadyCSS===void 0||ji.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var ml=(e,t)=>{if(Ed)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),n=ji.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}};var Vi=class extends gl.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return ml(i,t.elementStyles),i}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(t,r){oo(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function vl(e,t,...r){var i;let n=e.querySelector(t);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var Rr=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Sl,yl=Symbol("constructorPrototype"),bl=Symbol("constructorName"),Al=Symbol("exportpartsDebouncer"),xl=Symbol("dynamicDependenciesLoaded"),Or=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Or.eventName="exportparts-updated";var pe=class extends Vi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Sl]=new Hi(5),this.scheduleExportpartsUpdate=()=>{var t,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Al].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[bl]=this.constructor.name,this[yl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[bl]&&Object.setPrototypeOf(this,this[yl])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[xl]||(r[xl]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Or.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Or.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Or)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=vl(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(t.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(t){var r,i,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let h=(o=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],g=[...h,...m].filter(l).map(x=>x.trim());for(let x of g)u.add(x)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(h=>`${p}:${h}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Sl=Al;Rr([(0,Qe.property)()],pe.prototype,"exportpartsPrefix",void 0);Rr([fl([])],pe.prototype,"exportpartsPrefixes",void 0);Rr([(0,Qe.property)({reflect:!0})],pe.prototype,"exportparts",void 0);Rr([(0,Qe.property)()],pe.prototype,"customStylesheet",void 0);Rr([(0,Qe.property)()],pe.prototype,"elementToFocus",void 0);Rr([(0,Qe.state)()],pe.prototype,"useAdoptedStyleSheets",void 0);function zi(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var ci=Symbol("internalReduxEventsUnsubscribers"),Ne=Symbol("internalStoresUnsubscribers"),tr=Symbol("internalStores"),wd=Fi(Symbol("withRedux"),function(e){var t,r,i;class n extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[tr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[tr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[tr].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[tr].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[tr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[tr].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[Ne].has(s.store):this[Ne].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[Ne].set(s,a.subscribe(()=>this.updateFromStores())),this[ci].set(s,[]),zi(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[ci].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Ne].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Ne].has(s)&&this[Ne].get(s)(),this[Ne].delete(s),(a=this[ci].get(s))===null||a===void 0||a.forEach(l=>l()),this[ci].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Ne,r=tr,i=ci,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),El=class extends wd(pe){};function Gt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(0)var n,o;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Se(e){return!!e&&!!e[z]}function ne(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===kd})(e)||Array.isArray(e)||!!e[Ll]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ll])||go(e)||vo(e))}function er(e,t,r){r===void 0&&(r=!1),kr(e)===0?(r?Object.keys:Pr)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,n){return t(n,i,e)}))}function kr(e){var t=e[z];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:go(e)?2:vo(e)?3:0}function Lr(e,t){return kr(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Cd(e,t){return kr(e)===2?e.get(t):e[t]}function Pl(e,t,r){var i=kr(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function kl(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function go(e){return Ld&&e instanceof Map}function vo(e){return Pd&&e instanceof Set}function Me(e){return e.o||e.t}function yo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Nl(e);delete t[z];for(var r=Pr(t),i=0;i<r.length;i++){var n=r[i],o=t[n];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[n]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function bo(e,t){return t===void 0&&(t=!1),xo(e)||Se(e)||!ne(e)||(kr(e)>1&&(e.set=e.add=e.clear=e.delete=_d),Object.freeze(e),t&&er(e,(function(r,i){return bo(i,!0)}),!0)),e}function _d(){Gt(2)}function xo(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function fe(e){var t=mo[e];return t||Gt(18,e),t}function Td(e,t){mo[e]||(mo[e]=t)}function po(){return di}function ao(e,t){t&&(fe("Patches"),e.u=[],e.s=[],e.v=t)}function Wi(e){fo(e),e.p.forEach(Od),e.p=null}function fo(e){e===di&&(di=e.l)}function wl(e){return di={p:[],l:di,h:e,m:!0,_:0}}function Od(e){var t=e[z];t.i===0||t.i===1?t.j():t.g=!0}function lo(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||fe("ES5").S(t,e,i),i?(r[z].P&&(Wi(t),Gt(4)),ne(e)&&(e=Ki(t,e),t.l||Gi(t,e)),t.u&&fe("Patches").M(r[z].t,e,t.u,t.s)):e=Ki(t,r,[]),Wi(t),t.u&&t.v(t.u,t.s),e!==Dl?e:void 0}function Ki(e,t,r){if(xo(t))return t;var i=t[z];if(!i)return er(t,(function(a,l){return Cl(e,i,t,a,l,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return Gi(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=yo(i.k):i.o,o=n,s=!1;i.i===3&&(o=new Set(n),n.clear(),s=!0),er(o,(function(a,l){return Cl(e,i,n,a,l,r,s)})),Gi(e,n,!1),r&&e.u&&fe("Patches").N(i,r,e.u,e.s)}return i.o}function Cl(e,t,r,i,n,o,s){if(Se(n)){var a=Ki(e,n,o&&t&&t.i!==3&&!Lr(t.R,i)?o.concat(i):void 0);if(Pl(r,i,a),!Se(a))return;e.m=!1}else s&&r.add(n);if(ne(n)&&!xo(n)){if(!e.h.D&&e._<1)return;Ki(e,n),t&&t.A.l||Gi(e,n)}}function Gi(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&bo(t,r)}function co(e,t){var r=e[z];return(r?Me(r):e)[t]}function _l(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function $e(e){e.P||(e.P=!0,e.l&&$e(e.l))}function uo(e){e.o||(e.o=yo(e.t))}function ho(e,t,r){var i=go(t)?fe("MapSet").F(t,r):vo(t)?fe("MapSet").T(t,r):e.O?(function(n,o){var s=Array.isArray(n),a={i:s?1:0,A:o?o.A:po(),P:!1,I:!1,R:{},l:o,t:n,k:null,o:null,j:null,C:!1},l=a,c=pi;s&&(l=[a],c=ui);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(t,r):fe("ES5").J(t,r);return(r?r.A:po()).p.push(i),i}function Rd(e){return Se(e)||Gt(22,e),(function t(r){if(!ne(r))return r;var i,n=r[z],o=kr(r);if(n){if(!n.P&&(n.i<4||!fe("ES5").K(n)))return n.t;n.I=!0,i=Tl(r,o),n.I=!1}else i=Tl(r,o);return er(i,(function(s,a){n&&Cd(n.t,s)===a||Pl(i,s,t(a))})),o===3?new Set(i):i})(e)}function Tl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return yo(e)}function Il(){function e(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[z];return pi.get(c,s)},set:function(c){var u=this[z];pi.set(u,s,c)}},l}function t(s){for(var a=s.length-1;a>=0;a--){var l=s[a][z];if(!l.P)switch(l.i){case 5:i(l)&&$e(l);break;case 4:r(l)&&$e(l)}}}function r(s){for(var a=s.t,l=s.k,c=Pr(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==z){var p=a[d];if(p===void 0&&!Lr(a,d))return!0;var h=l[d],m=h&&h[z];if(m?m.t!==p:!kl(h,p))return!0}}var g=!!a[z];return c.length!==Pr(a).length+(g?0:1)}function i(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function n(s){s.g&&Gt(3,JSON.stringify(Me(s)))}var o={};Td("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,p){if(d){for(var h=Array(p.length),m=0;m<p.length;m++)Object.defineProperty(h,""+m,e(m,!0));return h}var g=Nl(p);delete g[z];for(var x=Pr(g),S=0;S<x.length;S++){var A=x[S];g[A]=e(A,d||!!g[A].enumerable)}return Object.create(Object.getPrototypeOf(p),g)})(l,s),u={i:l?5:4,A:a?a.A:po(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,z,{value:u,writable:!0}),c},S:function(s,a,l){l?Se(a)&&a[z].A===s&&t(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[z];if(d){var p=d.t,h=d.k,m=d.R,g=d.i;if(g===4)er(h,(function(L){L!==z&&(p[L]!==void 0||Lr(p,L)?m[L]||c(h[L]):(m[L]=!0,$e(d)))})),er(p,(function(L){h[L]!==void 0||Lr(h,L)||(m[L]=!1,$e(d))}));else if(g===5){if(i(d)&&($e(d),m.length=!0),h.length<p.length)for(var x=h.length;x<p.length;x++)m[x]=!1;else for(var S=p.length;S<h.length;S++)m[S]=!0;for(var A=Math.min(h.length,p.length),O=0;O<A;O++)h.hasOwnProperty(O)||(m[O]=!0),m[O]===void 0&&c(h[O])}}}})(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Ol,di,So=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ld=typeof Map<"u",Pd=typeof Set<"u",Rl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Dl=So?Symbol.for("immer-nothing"):((Ol={})["immer-nothing"]=!0,Ol),Ll=So?Symbol.for("immer-draftable"):"__$immer_draftable",z=So?Symbol.for("immer-state"):"__$immer_state";var kd=""+Object.prototype.constructor,Pr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Nl=Object.getOwnPropertyDescriptors||function(e){var t={};return Pr(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},mo={},pi={get:function(e,t){if(t===z)return e;var r=Me(e);if(!Lr(r,t))return(function(n,o,s){var a,l=_l(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(n.k):void 0})(e,r,t);var i=r[t];return e.I||!ne(i)?i:i===co(e.t,t)?(uo(e),e.o[t]=ho(e.A.h,i,e)):i},has:function(e,t){return t in Me(e)},ownKeys:function(e){return Reflect.ownKeys(Me(e))},set:function(e,t,r){var i=_l(Me(e),t);if(i?.set)return i.set.call(e.k,r),!0;if(!e.P){var n=co(Me(e),t),o=n?.[z];if(o&&o.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(kl(r,n)&&(r!==void 0||Lr(e.t,t)))return!0;uo(e),$e(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return co(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,uo(e),$e(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=Me(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){Gt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Gt(12)}},ui={};er(pi,(function(e,t){ui[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),ui.deleteProperty=function(e,t){return ui.set.call(this,e,t,void 0)},ui.set=function(e,t,r){return pi.set.call(this,e[0],t,r,e[0])};var Id=(function(){function e(r){var i=this;this.O=Rl,this.D=!0,this.produce=function(n,o,s){if(typeof n=="function"&&typeof o!="function"){var a=o;o=n;var l=i;return function(g){var x=this;g===void 0&&(g=a);for(var S=arguments.length,A=Array(S>1?S-1:0),O=1;O<S;O++)A[O-1]=arguments[O];return l.produce(g,(function(L){var dt;return(dt=o).call.apply(dt,[x,L].concat(A))}))}}var c;if(typeof o!="function"&&Gt(6),s!==void 0&&typeof s!="function"&&Gt(7),ne(n)){var u=wl(i),d=ho(i,n,void 0),p=!0;try{c=o(d),p=!1}finally{p?Wi(u):fo(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(g){return ao(u,s),lo(g,u)}),(function(g){throw Wi(u),g})):(ao(u,s),lo(c,u))}if(!n||typeof n!="object"){if((c=o(n))===void 0&&(c=n),c===Dl&&(c=void 0),i.D&&bo(c,!0),s){var h=[],m=[];fe("Patches").M(n,c,h,m),s(h,m)}return c}Gt(21,n)},this.produceWithPatches=function(n,o){if(typeof n=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return i.produceWithPatches(c,(function(h){return n.apply(void 0,[h].concat(d))}))};var s,a,l=i.produce(n,o,(function(c,u){s=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ne(r)||Gt(8),Se(r)&&(r=Rd(r));var i=wl(this),n=ho(this,r,void 0);return n[z].C=!0,fo(i),n},t.finishDraft=function(r,i){var n=r&&r[z],o=n.A;return ao(o,i),lo(void 0,o)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Rl&&Gt(20),this.O=r},t.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var o=i[n];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}n>-1&&(i=i.slice(n+1));var s=fe("Patches").$;return Se(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},e})(),Ut=new Id,Dd=Ut.produce,bh=Ut.produceWithPatches.bind(Ut),xh=Ut.setAutoFreeze.bind(Ut),Sh=Ut.setUseProxies.bind(Ut),Ah=Ut.applyPatches.bind(Ut),Eh=Ut.createDraft.bind(Ut),wh=Ut.finishDraft.bind(Ut),qi=Dd;function rr(e){"@babel/helpers - typeof";return rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rr(e)}function Ml(e,t){if(rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(rr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $l(e){var t=Ml(e,"string");return rr(t)=="symbol"?t:t+""}function Ul(e,t,r){return(t=$l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Ao(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fl(Object(r),!0).forEach(function(i){Ul(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fl(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function At(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Bl=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),Eo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yi={INIT:"@@redux/INIT"+Eo(),REPLACE:"@@redux/REPLACE"+Eo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+Eo()}};function Nd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function wo(e,t,r){var i;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(At(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(At(1));return r(wo)(e,t)}if(typeof e!="function")throw new Error(At(2));var n=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(At(3));return o}function d(g){if(typeof g!="function")throw new Error(At(4));if(l)throw new Error(At(5));var x=!0;return c(),a.push(g),function(){if(x){if(l)throw new Error(At(6));x=!1,c();var A=a.indexOf(g);a.splice(A,1),s=null}}}function p(g){if(!Nd(g))throw new Error(At(7));if(typeof g.type>"u")throw new Error(At(8));if(l)throw new Error(At(9));try{l=!0,o=n(o,g)}finally{l=!1}for(var x=s=a,S=0;S<x.length;S++){var A=x[S];A()}return g}function h(g){if(typeof g!="function")throw new Error(At(10));n=g,p({type:Yi.REPLACE})}function m(){var g,x=d;return g={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(At(11));function O(){A.next&&A.next(u())}O();var L=x(O);return{unsubscribe:L}}},g[Bl]=function(){return this},g}return p({type:Yi.INIT}),i={dispatch:p,subscribe:d,getState:u,replaceReducer:h},i[Bl]=m,i}function Md(e){Object.keys(e).forEach(function(t){var r=e[t],i=r(void 0,{type:Yi.INIT});if(typeof i>"u")throw new Error(At(12));if(typeof r(void 0,{type:Yi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(At(13))})}function Hl(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i];typeof e[n]=="function"&&(r[n]=e[n])}var o=Object.keys(r),s,a;try{Md(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,h={},m=0;m<o.length;m++){var g=o[m],x=r[g],S=c[g],A=x(S,u);if(typeof A>"u"){var O=u&&u.type;throw new Error(At(14))}h[g]=A,p=p||A!==S}return p=p||o.length!==Object.keys(c).length,p?h:c}}function Ir(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function jl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),o=function(){throw new Error(At(15))},s={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(l){return l(s)});return o=Ir.apply(void 0,a)(n.dispatch),Ao(Ao({},n),{},{dispatch:o})}}}function Vl(e){var t=function(i){var n=i.dispatch,o=i.getState;return function(s){return function(a){return typeof a=="function"?a(n,o,e):s(a)}}};return t}var zl=Vl();zl.withExtraArgument=Vl;var Co=zl;var Yl=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),$d=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=c[0]&2?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],n=0}finally{i=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Dr=function(e,t){for(var r=0,i=t.length,n=e.length;r<i;r++,n++)e[n]=t[r];return e},Ud=Object.defineProperty,Fd=Object.defineProperties,Bd=Object.getOwnPropertyDescriptors,Wl=Object.getOwnPropertySymbols,Hd=Object.prototype.hasOwnProperty,jd=Object.prototype.propertyIsEnumerable,Kl=function(e,t,r){return t in e?Ud(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Ue=function(e,t){for(var r in t||(t={}))Hd.call(t,r)&&Kl(e,r,t[r]);if(Wl)for(var i=0,n=Wl(t);i<n.length;i++){var r=n[i];jd.call(t,r)&&Kl(e,r,t[r])}return e},_o=function(e,t){return Fd(e,Bd(t))},Vd=function(e,t,r){return new Promise(function(i,n){var o=function(l){try{a(r.next(l))}catch(c){n(c)}},s=function(l){try{a(r.throw(l))}catch(c){n(c)}},a=function(l){return l.done?i(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(e,t)).next())})};var zd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ir:Ir.apply(null,arguments)},jh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Wd(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Fe(e,t){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var o=t.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return Ue(Ue({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:i[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(i){return i.type===e},r}var Kd=(function(e){Yl(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=e.apply(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Dr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Dr([void 0],r.concat(this))))},t})(Array),Gd=(function(e){Yl(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=e.apply(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Dr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Dr([void 0],r.concat(this))))},t})(Array);function Ro(e){return ne(e)?qi(e,function(){}):e}function qd(e){return typeof e=="boolean"}function Yd(){return function(t){return Xd(t)}}function Xd(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,i=e.immutableCheck,n=i===void 0?!0:i,o=e.serializableCheck,s=o===void 0?!0:o,a=e.actionCreatorCheck,l=a===void 0?!0:a,c=new Kd;if(r&&(qd(r)?c.push(Co):c.push(Co.withExtraArgument(r.extraArgument))),0){if(n)var u;if(s)var d;if(l)var p}return c}var To=!0;function Xl(e){var t=Yd(),r=e||{},i=r.reducer,n=i===void 0?void 0:i,o=r.middleware,s=o===void 0?t():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,h;if(typeof n=="function")h=n;else if(Wd(n))h=Hl(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var m=s;if(typeof m=="function"&&(m=m(t),!To&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!To&&m.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=jl.apply(void 0,m),x=Ir;l&&(x=zd(Ue({trace:!To},typeof l=="object"&&l)));var S=new Gd(g),A=S;Array.isArray(p)?A=Dr([g],p):typeof p=="function"&&(A=p(S));var O=x.apply(void 0,A);return wo(h,u,O)}function Zl(e){var t={},r=[],i,n={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[a]=s,n},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase:function(o){return i=o,n}};return e(n),[t,r,i]}function Zd(e){return typeof e=="function"}function Jd(e,t,r,i){r===void 0&&(r=[]);var n=typeof t=="function"?Zl(t):[t,r,i],o=n[0],s=n[1],a=n[2],l;if(Zd(e))l=function(){return Ro(e())};else{var c=Ro(e);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=Dr([o[p.type]],s.filter(function(m){var g=m.matcher;return g(p)}).map(function(m){var g=m.reducer;return g}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,g){if(g)if(Se(m)){var x=m,S=g(x,p);return S===void 0?m:S}else{if(ne(m))return qi(m,function(A){return g(A,p)});var S=g(m,p);if(S===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}return m},d)}return u.getInitialState=l,u}function Qd(e,t){return e+"/"+t}function Jl(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Ro(e.initialState),i=e.reducers||{},n=Object.keys(i),o={},s={},a={};n.forEach(function(u){var d=i[u],p=Qd(t,u),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[u]=h,s[p]=h,a[u]=m?Fe(p,m):Fe(p)});function l(){var u=typeof e.extraReducers=="function"?Zl(e.extraReducers):[e.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],m=h===void 0?[]:h,g=u[2],x=g===void 0?void 0:g,S=Ue(Ue({},p),s);return Jd(r,function(A){for(var O in S)A.addCase(O,S[O]);for(var L=0,dt=m;L<dt.length;L++){var ot=dt[L];A.addMatcher(ot.matcher,ot.reducer)}x&&A.addDefaultCase(x)})}var c;return{name:t,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var tp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ep=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=tp[Math.random()*64|0];return t},rp=["name","message","stack","code"],Oo=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Gl=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),ip=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,i=rp;r<i.length;r++){var n=i[r];typeof e[n]=="string"&&(t[n]=e[n])}return t}return{message:String(e)}},Kh=(function(){function e(t,r,i){var n=Fe(t+"/fulfilled",function(u,d,p,h){return{payload:u,meta:_o(Ue({},h||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=Fe(t+"/pending",function(u,d,p){return{payload:void 0,meta:_o(Ue({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=Fe(t+"/rejected",function(u,d,p,h,m){return{payload:h,error:(i&&i.serializeError||ip)(u||"Rejected"),meta:_o(Ue({},m||{}),{arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,h){var m=i?.idGenerator?i.idGenerator(u):ep(),g=new l,x,S=!1;function A(L){x=L,g.abort()}var O=(function(){return Vd(this,null,function(){var L,dt,ot,Ce,Nn,_e,Nt;return $d(this,function(Vt){switch(Vt.label){case 0:return Vt.trys.push([0,4,,5]),Ce=(L=i?.condition)==null?void 0:L.call(i,u,{getState:p,extra:h}),op(Ce)?[4,Ce]:[3,2];case 1:Ce=Vt.sent(),Vt.label=2;case 2:if(Ce===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=!0,Nn=new Promise(function(Mt,Ke){return g.signal.addEventListener("abort",function(){return Ke({name:"AbortError",message:x||"Aborted"})})}),d(o(m,u,(dt=i?.getPendingMeta)==null?void 0:dt.call(i,{requestId:m,arg:u},{getState:p,extra:h}))),[4,Promise.race([Nn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:h,requestId:m,signal:g.signal,abort:A,rejectWithValue:function(Mt,Ke){return new Oo(Mt,Ke)},fulfillWithValue:function(Mt,Ke){return new Gl(Mt,Ke)}})).then(function(Mt){if(Mt instanceof Oo)throw Mt;return Mt instanceof Gl?n(Mt.payload,m,u,Mt.meta):n(Mt,m,u)})])];case 3:return ot=Vt.sent(),[3,5];case 4:return _e=Vt.sent(),ot=_e instanceof Oo?s(null,m,u,_e.payload,_e.meta):s(_e,m,u),[3,5];case 5:return Nt=i&&!i.dispatchConditionRejection&&s.match(ot)&&ot.meta.condition,Nt||d(ot),[2,ot]}})})})();return Object.assign(O,{abort:A,requestId:m,arg:u,unwrap:function(){return O.then(np)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:n,typePrefix:t})}return e.withTypes=function(){return e},e})();function np(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function op(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ql="listener",tc="completed",ec="cancelled",Gh="task-"+ec,qh="task-"+tc,Yh=Ql+"-"+ec,Xh=Ql+"-"+tc;var Lo="listenerMiddleware";var Zh=Fe(Lo+"/add"),Jh=Fe(Lo+"/removeAll"),Qh=Fe(Lo+"/remove");var ql,tm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(ql||(ql=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},sp=function(e){return function(t){setTimeout(t,e)}},em=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sp(10);Il();var ap=Fi(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Xi=class extends ap(Object){};window.ftReduxStores||(window.ftReduxStores={});var rc=class e extends Xi{static get(t){var r;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,o=window.ftReduxStores[i];if(zi(o))return o;if(n==null)return;let s=Jl({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Xl({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=ai(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 e(s,a,n.eventBus)}constructor(t,r,i){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Bi;let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{this.setState({[l]:n(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Zi=class{static format(t,r,i,n,o){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(t,r,i,n,!!o)}static getMomentDateFormat(t,r,i){return i?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,i,n,o){let s=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let t=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Ji=f(b()),lp="ft-app-info",Nr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Nr.eventName="authentication-change";var fi=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};fi.eventName="ui-locale-changed";var cp={session:(e,t)=>{(0,Ji.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>E.dispatchEvent(new Nr(t.payload)),0))}},E=Ji.FtReduxStore.get({name:lp,reducers:cp,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ic=f(b()),Qi=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Rm=(0,ic.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(E)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Zi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Qi([(0,Po.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Qi([(0,Po.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Qi([so({store:E.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],t.prototype,"metadataDescriptors",void 0),Qi([so({store:E.name})],t.prototype,"uiLocale",void 0),t});var on=f(b());var ko=f(b());var ir=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=E.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let n=E.subscribe(()=>{i=e.get(t),i&&(n(),r(i))})}})}};var Mr=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ir.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ir.await()}};var Ft=class extends Mr{constructor(t=!0,r){var i;super(r),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=(i=n.commonCache)!==null&&i!==void 0?i:new ko.CacheRegistry,this.cache=t?n.commonCache:new ko.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var tn=class extends Ft{async listMySearches(){let{session:t}=E.getState();return Gs(t,st.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var en=class extends Ft{async listMyBookmarks(){let t=E.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var rn=class extends Ft{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=E.getState().session;return!!t?.sessionAuthenticated}};var nn=class extends Ft{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=E.getState().session;return!!t?.sessionAuthenticated}};var up="ft-user-assets",dp={setAssetCount:(e,t)=>{let{userAssetType:r,count:i}=t.payload.assetCount;e.assetCounts.allAsset[r]=i},clearAssetCount:e=>{Object.values(zt).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:i,asset:n}=t.payload;Do(e,r,[...Io(e,r),n]),nc(e,r,1,i),oc(e,n)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;Do(e,r,Io(e,r).map(n=>n.id===i.id?i:n)),oc(e,i)},removeAsset:(e,t)=>{let{assetType:r,mapId:i,assetId:n}=t.payload;Do(e,r,Io(e,r).filter(o=>o.id!==n)),nc(e,r,-1,i)}},sc={[zt.SEARCHES]:"savedSearches",[zt.BOOKMARKS]:"bookmarks",[zt.BOOKS]:void 0,[zt.COLLECTIONS]:void 0},Io=(e,t)=>{var r;let i=sc[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},Do=(e,t,r)=>{let i=sc[t];i&&(e[i]=r)},nc=(e,t,r,i)=>{let n=e.assetCounts.allAsset[t];if(n!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,n+r),t===zt.BOOKMARKS&&i)){let o=e.assetCounts.bookmarkByMap[i];e.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},oc=(e,t)=>{let r=e.assetLabels.map(n=>n.title),i=t.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));e.assetLabels.push(...i)},_t=on.FtReduxStore.get({name:up,reducers:dp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(zt).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),No=class{constructor(t=new rn,r=new nn){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new en,this.savedSearchesService=new tn,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=E.getState();(0,on.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),_t.actions.clearAssetCount(),_t.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),_t.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),_t.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();_t.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();_t.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&_t.getState().assetCounts.allAsset[t]!==r.count&&_t.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&_t.getState().assetCounts.bookmarkByMap[t]!==r.count&&_t.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(_t.getState().assetCounts.bookmarkByMap).length!==0;t===zt.BOOKMARKS&&r&&_t.actions.clearBookmarkCountByMap(),_t.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;_t.actions.bookmarks(r)}}},pp=new No;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=pp);var Mo=class{addCommand(t,r=!1){E.commands.add(t,r)}consumeCommand(t){return E.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new Mo;var qt=f(b());var ac,$r=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},fp=Symbol("clearAfterUnitTest"),sn=class extends(0,qt.withEventBus)(Ft){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ac]=()=>{this.defaultMessages={},this.cache=new qt.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=E.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var i;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,qt.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,i;return this.fetchContext(t),(i=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,r){let i=t.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(t,r,...i){var n;let o=t.toLowerCase(),s=this.resolveContext(o);return new qt.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(t){let r=!this.cache.has(t),i;try{i=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(n){!(n instanceof qt.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new $r({loadedContexts:t})),this.dispatchEvent(new $r({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new $r({loadedContexts:[t]})),this.dispatchEvent(new $r({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(i=>(0,qt.delay)(0).then(()=>i()).catch(()=>null)))}};ac=fp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Ur=window.FluidTopicsI18nService,an=window.FluidTopicsCustomI18nService;var lc=f(b()),$o=class{highlightHtml(t,r,i){(0,lc.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new $o;var cc=f(b());var Uo=class{isDate(t){var r,i,n,o;return(o=(n=((i=(r=E.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(t,r){var i,n,o,s;if(t==null)return"";try{return cc.DateFormatter.format(t,(i=r?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new Uo;var uc=f(b());var hi=class{static get(t,r){var i,n,o,s;let a=E.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new uc.SearchPlaceConverter(a.baseUrl,t??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var Fo=class{urlToSearchRequest(t){return hi.get().parse(t)}searchRequestToUrl(t){return hi.get().serialize(t)}};window.FluidTopicsUrlService=new Fo;var Ae=f(b());var nr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};nr.eventName="change";var Bo=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},dc=new Bo;var ln=class e extends Ae.WithEventBus{static build(){return new e(window.history,dc,()=>window.location,!1)}constructor(t,r,i,n){var o,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(o=t.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(t,r=!1){let i=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Ae.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new nr(this.currentItem())),0)}installProxies(){let t=r=>(i,n,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let i={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(t){this.addEventListener(nr.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(nr.eventName,t)}currentItem(){return(0,Ae.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Ae.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Ae.deepCopy)(r.find(i=>t(i)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Ae.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let i=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!i)return t;let n=t,o=t+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var i;if(!this.hasState(t))return!1;let n=r??this.currentState.majorStateId,o=(i=this.states[t])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ln.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Fr=class{constructor(){this.storeListeners=[]}store(t,r){if(this.isAuthenticated())return;let i=JSON.stringify(r);window.localStorage.setItem(t,i),window.dispatchEvent(new StorageEvent("storage",{key:t,newValue:i,storageArea:window.localStorage}))}get(t){var r,i;if(!this.isAuthenticated())return(i=JSON.parse((r=window.localStorage.getItem(t))!==null&&r!==void 0?r:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(t,r){let i=n=>{n.key===t()&&!this.isAuthenticated()&&r()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(t=>window.removeEventListener("storage",t)),this.storeListeners.length=0}isAuthenticated(){let t=E.getState().session;return!!t?.sessionAuthenticated}};var pc=f(D());var fc=pc.css`
261
- `;var gc=f(D()),kt=f(B()),ar=f(b());var or=f(b());function hc(e,t){let{authenticationRequired:r,session:i}=E.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(t):e()}var cn=class extends Mr{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var Ho=class e extends or.FtStateManager{static build(t){return new e(E,t)}constructor(t,r){super(),this.store=t,this.cache=new or.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new cn,this.cleanSessionDebouncer=new or.Debouncer,this.reloadDebouncer=new or.Debouncer(500),this.apiProvider=r??(()=>ir.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(Nr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>hc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new fi(i)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},mc=Ho.build();var sr=class extends Event{constructor(t,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var mi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:o}of i){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new sr(t.context,s,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],i=t.callback,n=this.pendingContextRequests.get(t.context);n===void 0&&this.pendingContextRequests.set(t.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(r);o===void 0&&n.callbacks.set(r,o=new WeakSet),o.has(i)||(o.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var yt=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Y=class extends ar.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=mc,this.contextRoot=new mi}render(){return gc.html`
260
+ `;var Fa=["top","right","bottom","left"],Ua=["start","end"],Qn=Fa.reduce((e,t)=>e.concat(t,t+"-"+Ua[0],t+"-"+Ua[1]),[]),ei=Math.min,Ie=Math.max,ri=Math.round;var ce=e=>({x:e,y:e}),ed={left:"right",right:"left",bottom:"top",top:"bottom"};function Ba(e,t,r){return Ie(e,ei(t,r))}function ki(e,t){return typeof e=="function"?e(t):e}function ii(e){return e.split("-")[0]}function De(e){return e.split("-")[1]}function to(e){return e==="x"?"y":"x"}function eo(e){return e==="y"?"height":"width"}function Pi(e){let t=e[0];return t==="t"||t==="b"?"y":"x"}function ro(e){return to(Pi(e))}function Ha(e,t,r){r===void 0&&(r=!1);let i=De(e),n=ro(e),o=eo(n),s=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[o]>t.floating[o]&&(s=Jn(s)),[s,Jn(s)]}function ja(e){return e.includes("start")?e.replace("start","end"):e.replace("end","start")}function Jn(e){let t=ii(e);return ed[t]+e.slice(t.length)}function rd(e){var t,r,i,n;return{top:(t=e.top)!=null?t:0,right:(r=e.right)!=null?r:0,bottom:(i=e.bottom)!=null?i:0,left:(n=e.left)!=null?n:0}}function Va(e){return typeof e!="number"?rd(e):{top:e,right:e,bottom:e,left:e}}function Xe(e){let{x:t,y:r,width:i,height:n}=e;return{width:i,height:n,top:r,left:t,right:t+i,bottom:r+n,x:t,y:r}}function za(e,t,r){let{reference:i,floating:n}=e,o=Pi(t),s=ro(t),a=eo(s),l=ii(t),c=o==="y",u=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,p=i[a]/2-n[a]/2,h;switch(l){case"top":h={x:u,y:i.y-n.height};break;case"bottom":h={x:u,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:d};break;case"left":h={x:i.x-n.width,y:d};break;default:h={x:i.x,y:i.y}}let m=De(t);return m&&(h[s]+=p*(m==="end"?1:-1)*(r&&c?-1:1)),h}async function Wa(e,t){var r;t===void 0&&(t={});let{x:i,y:n,platform:o,rects:s,elements:a,strategy:l}=e,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:d="floating",altBoundary:p=!1,padding:h=0}=ki(t,e),m=Va(h),x=a[p?d==="floating"?"reference":"floating":d],S=Xe(await o.getClippingRect({element:(r=await(o.isElement==null?void 0:o.isElement(x)))==null||r?x:x.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),A=d==="floating"?{x:i,y:n,width:s.floating.width,height:s.floating.height}:s.reference,O=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),L=await(o.isElement==null?void 0:o.isElement(O))&&await(o.getScale==null?void 0:o.getScale(O))||{x:1,y:1},dt=Xe(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:A,offsetParent:O,strategy:l}):A);return{top:(S.top-dt.top+m.top)/L.y,bottom:(dt.bottom-S.bottom+m.bottom)/L.y,left:(S.left-dt.left+m.left)/L.x,right:(dt.right-S.right+m.right)/L.x}}var id=50,Ka=async(e,t,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:o=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:Wa},l=await(s.isRTL==null?void 0:s.isRTL(t)),c=await s.getElementRects({reference:e,floating:t,strategy:n}),{x:u,y:d}=za(c,i,l),p=i,h=0,m={};for(let g=0;g<o.length;g++){let x=o[g];if(!x)continue;let{name:S,fn:A}=x,{x:O,y:L,data:dt,reset:ot}=await A({x:u,y:d,initialPlacement:i,placement:p,strategy:n,middlewareData:m,rects:c,platform:a,elements:{reference:e,floating:t}});u=O??u,d=L??d,m[S]={...m[S],...dt},ot&&h<id&&(h++,typeof ot=="object"&&(ot.placement&&(p=ot.placement),ot.rects&&(c=ot.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:n}):ot.rects),{x:u,y:d}=za(c,p,l)),g=-1)}return{x:u,y:d,placement:p,strategy:n,middlewareData:m}};function nd(e,t,r){return(e?[...r.filter(n=>De(n)===e),...r.filter(n=>De(n)!==e)]:r.filter(n=>ii(n)===n)).filter(n=>e?De(n)===e||(t?ja(n)!==n:!1):!0)}var Ga=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,i,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:c}=t,{crossAxis:u=!1,alignment:d,allowedPlacements:p=Qn,autoAlignment:h=!0,...m}=ki(e,t),g=d!==void 0||p===Qn?nd(d||null,h,p):p,x=((r=s.autoPlacement)==null?void 0:r.index)||0,S=g[x];if(S==null)return{};if(a!==S)return{reset:{placement:g[0]}};let A=await l.detectOverflow(t,m),O=Ha(S,o,await(l.isRTL==null?void 0:l.isRTL(c.floating))),L=[A[ii(S)],A[O[0]],A[O[1]]],dt=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:S,overflows:L}],ot=g[x+1];if(ot)return{data:{index:x+1,overflows:dt},reset:{placement:ot}};let _e=dt.map(Nt=>{let Vt=De(Nt.placement);return[Nt.placement,Vt&&u?Nt.overflows.slice(0,2).reduce((Mt,Ke)=>Mt+Ke,0):Nt.overflows[0],Nt.overflows]}).sort((Nt,Vt)=>Nt[1]-Vt[1]),Te=((n=_e.filter(Nt=>Nt[2].slice(0,De(Nt[0])?2:3).every(Vt=>Vt<=0))[0])==null?void 0:n[0])||_e[0][0];return Te!==a?{data:{index:x+1,overflows:dt},reset:{placement:Te}}:{}}}};var qa=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){let{x:r,y:i,placement:n,platform:o}=t,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:A=>{let{x:O,y:L}=A;return{x:O,y:L}}},...c}=ki(e,t),u={x:r,y:i},d=await o.detectOverflow(t,c),p=Pi(n),h=to(p),m=u[h],g=u[p],x=(A,O)=>Ba(O+d[A==="y"?"top":"left"],O,O-d[A==="y"?"bottom":"right"]);s&&(m=x(h,m)),a&&(g=x(p,g));let S=l.fn({...t,[h]:m,[p]:g});return{...S,data:{x:S.x-r,y:S.y-i,enabled:{[h]:s,[p]:a}}}}}};function Di(){return typeof window<"u"}function Je(e){return Xa(e)?(e.nodeName||"").toLowerCase():"#document"}function kt(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function xe(e){var t;return(t=(Xa(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function Xa(e){return Di()?e instanceof Node||e instanceof kt(e).Node:!1}function ee(e){return Di()?e instanceof Element||e instanceof kt(e).Element:!1}function Se(e){return Di()?e instanceof HTMLElement||e instanceof kt(e).HTMLElement:!1}function Ya(e){return!Di()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof kt(e).ShadowRoot}function ni(e){let{overflow:t,overflowX:r,overflowY:i,display:n}=re(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&n!=="inline"&&n!=="contents"}function Za(e){return/^(table|td|th)$/.test(Je(e))}function oi(e){try{if(e.matches(":popover-open"))return!0}catch{}try{return e.matches(":modal")}catch{return!1}}var od=/transform|translate|scale|rotate|perspective|filter/,sd=/paint|layout|strict|content/,Ze=e=>!!e&&e!=="none",io;function Cr(e){let t=ee(e)?re(e):e;return Ze(t.transform)||Ze(t.translate)||Ze(t.scale)||Ze(t.rotate)||Ze(t.perspective)||!Ni()&&(Ze(t.backdropFilter)||Ze(t.filter))||od.test(t.willChange||"")||sd.test(t.contain||"")}function Ja(e){let t=Ne(e);for(;Se(t)&&!_r(t);){if(Cr(t))return t;if(oi(t))return null;t=Ne(t)}return null}function Ni(){return io==null&&(io=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),io}function _r(e){return/^(html|body|#document)$/.test(Je(e))}function re(e){return kt(e).getComputedStyle(e)}function si(e){return ee(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function Ne(e){if(Je(e)==="html")return e;let t=e.assignedSlot||e.parentNode||Ya(e)&&e.host||xe(e);return Ya(t)?t.host:t}function Qa(e){let t=Ne(e);return _r(t)?(e.ownerDocument||e).body:Se(t)&&ni(t)?t:Qa(t)}function Ii(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let n=Qa(e),o=n===((i=e.ownerDocument)==null?void 0:i.body),s=kt(n);if(o){let a=Mi(s);return t.concat(s,s.visualViewport||[],ni(n)?n:[],a&&r?Ii(a):[])}else return t.concat(n,Ii(n,[],r))}function Mi(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function rl(e){let t=re(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,n=Se(e),o=n?e.offsetWidth:r,s=n?e.offsetHeight:i,a=ri(r)!==o||ri(i)!==s;return a&&(r=o,i=s),{width:r,height:i,$:a}}function il(e){return ee(e)?e:e.contextElement}function Tr(e){let t=il(e);if(!Se(t))return ce(1);let r=t.getBoundingClientRect(),{width:i,height:n,$:o}=rl(t),s=(o?ri(r.width):r.width)/i,a=(o?ri(r.height):r.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var ad=ce(0);function nl(e){let t=kt(e);return!Ni()||!t.visualViewport?ad:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function ld(e,t,r){return t===void 0&&(t=!1),!!r&&t&&r===kt(e)}function ai(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let n=e.getBoundingClientRect(),o=il(e),s=ce(1);t&&(i?ee(i)&&(s=Tr(i)):s=Tr(e));let a=ld(o,r,i)?nl(o):ce(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&&i){let p=kt(o),h=ee(i)?kt(i):i,m=p,g=Mi(m);for(;g&&h!==m;){let x=Tr(g),S=g.getBoundingClientRect(),A=re(g),O=S.left+(g.clientLeft+parseFloat(A.paddingLeft))*x.x,L=S.top+(g.clientTop+parseFloat(A.paddingTop))*x.y;l*=x.x,c*=x.y,u*=x.x,d*=x.y,l+=O,c+=L,m=kt(g),g=Mi(m)}}return Xe({width:u,height:d,x:l,y:c})}function $i(e,t){let r=si(e).scrollLeft;return t?t.left+r:ai(xe(e)).left+r}function ol(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-$i(e,r),n=r.top+t.scrollTop;return{x:i,y:n}}function cd(e){let{elements:t,rect:r,offsetParent:i,strategy:n}=e,o=n==="fixed",s=xe(i),a=t?oi(t.floating):!1;if(i===s||a&&o)return r;let l={scrollLeft:0,scrollTop:0},c=ce(1),u=ce(0),d=Se(i);if((d||!o)&&((Je(i)!=="body"||ni(s))&&(l=si(i)),d)){let h=ai(i);c=Tr(i),u.x=h.x+i.clientLeft,u.y=h.y+i.clientTop}let p=s&&!d&&!o?ol(s,l):ce(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+p.x,y:r.y*c.y-l.scrollTop*c.y+u.y+p.y}}function ud(e){return e.getClientRects?Array.from(e.getClientRects()):[]}function dd(e){let t=si(e),r=e.ownerDocument.body,i=Ie(e.scrollWidth,e.clientWidth,r.scrollWidth,r.clientWidth),n=Ie(e.scrollHeight,e.clientHeight,r.scrollHeight,r.clientHeight),o=-t.scrollLeft+$i(e),s=-t.scrollTop;return re(r).direction==="rtl"&&(o+=Ie(e.clientWidth,r.clientWidth)-i),{width:i,height:n,x:o,y:s}}var pd=25;function fd(e,t,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=kt(e),o=xe(e),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,c=0,u=0;if(s){let p=!Ni()||t==="fixed";i?p||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,p&&(c=s.offsetLeft,u=s.offsetTop))}if($i(o)<=0){let p=o.ownerDocument,h=p.body,m=getComputedStyle(h),g=p.compatMode==="CSS1Compat"&&parseFloat(m.marginLeft)+parseFloat(m.marginRight)||0,x=Math.abs(o.clientWidth-h.clientWidth-g),S=getComputedStyle(o).scrollbarGutter==="stable both-edges"?x/2:x;S<=pd&&(a-=S)}return{width:a,height:l,x:c,y:u}}function hd(e,t){let r=ai(e,!0,t==="fixed"),i=r.top+e.clientTop,n=r.left+e.clientLeft,o=Tr(e),s=e.clientWidth*o.x,a=e.clientHeight*o.y,l=n*o.x,c=i*o.y;return{width:s,height:a,x:l,y:c}}function tl(e,t,r){let i;if(t==="viewport"||t==="layoutViewport")i=fd(e,r,t);else if(t==="document")i=dd(xe(e));else if(ee(t))i=hd(t,r);else{let n=nl(e);i={x:t.x-n.x,y:t.y-n.y,width:t.width,height:t.height}}return Xe(i)}function md(e,t){let r=t.get(e);if(r)return r;let i=Ii(e,[],!1).filter(a=>ee(a)&&Je(a)!=="body"),n=null,o=re(e).position==="fixed",s=o?Ne(e):e;for(;ee(s)&&!_r(s);){let a=re(s),l=Cr(s),c=n?n.position:o?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==s):n=a,s=Ne(s)}return t.set(e,i),i}function gd(e){let{element:t,boundary:r,rootBoundary:i,strategy:n}=e,s=[...r==="clippingAncestors"?oi(t)?[]:md(t,this._c):[].concat(r),i],a=tl(t,s[0],n),l=a.top,c=a.right,u=a.bottom,d=a.left;for(let p=1;p<s.length;p++){let h=tl(t,s[p],n);l=Ie(h.top,l),c=ei(h.right,c),u=ei(h.bottom,u),d=Ie(h.left,d)}return{width:c-d,height:u-l,x:d,y:l}}function vd(e){let{width:t,height:r}=rl(e);return{width:t,height:r}}function yd(e,t,r){let i=Se(t),n=xe(t),o=r==="fixed",s=ai(e,!0,o,t),a={scrollLeft:0,scrollTop:0},l=ce(0);if((i||!o)&&((Je(t)!=="body"||ni(n))&&(a=si(t)),i)){let p=ai(t,!0,o,t);l.x=p.x+t.clientLeft,l.y=p.y+t.clientTop}!i&&n&&(l.x=$i(n));let c=n&&!i&&!o?ol(n,a):ce(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 no(e){return re(e).position==="static"}function el(e,t){if(!Se(e)||re(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return xe(e)===r&&(r=r.ownerDocument.body),r}function sl(e,t){let r=kt(e);if(oi(e))return r;if(!Se(e)){let n=Ne(e);for(;n&&!_r(n);){if(ee(n)&&!no(n))return n;n=Ne(n)}return r}let i=el(e,t);for(;i&&Za(i)&&no(i);)i=el(i,t);return i&&_r(i)&&no(i)&&!Cr(i)?r:i||Ja(e)||r}var bd=async function(e){let t=this.getOffsetParent||sl,r=this.getDimensions,i=await r(e.floating);return{reference:yd(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function xd(e){return re(e).direction==="rtl"}var Ui={convertOffsetParentRelativeRectToViewportRelativeRect:cd,getDocumentElement:xe,getClippingRect:gd,getOffsetParent:sl,getElementRects:bd,getClientRects:ud,getDimensions:vd,getScale:Tr,isElement:ee,isRTL:xd};var al=Ga,ll=qa;var cl=(e,t,r)=>{let i=new Map,n=r??{},o={...Ui,...n.platform,_c:i};return Ka(e,t,{...n,platform:o})};function ul(e){return Sd(e)}function oo(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Sd(e){for(let t=e;t;t=oo(t))if(t instanceof Element&&getComputedStyle(t).display==="none")return null;for(let t=oo(e);t;t=oo(t)){if(!(t instanceof Element))continue;let r=getComputedStyle(t);if(r.display!=="contents"&&(r.position!=="static"||Cr(r)||t.tagName==="BODY"))return t}return null}async function dl(e,t,r){let i;return typeof r=="object"?i=r:i={placement:r},cl(e,t,{strategy:i.strategy,platform:{...Ui,getOffsetParent:n=>Ui.getOffsetParent(n,ul)},middleware:[ll({crossAxis:!0}),al({allowedPlacements:[i.placement]})]})}var jr=f(b());var Po=f(H());var pl=f(H(),1);var so=e=>t=>{window.customElements.get(e)||window.customElements.define(e,t)};function fl(e,t){return(0,pl.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return li(e);try{return JSON.parse(r)}catch{return li(e)}},toAttribute:r=>JSON.stringify(r)},hasChanged:ci,...t??{}})}function Ad(e,t){if(e===t)return!0;if(e&&t&&typeof e=="object"&&typeof t=="object"){if(e.constructor!==t.constructor)return!1;let r,i;if(Array.isArray(e)){if(r=e.length,r!=t.length)return!1;for(i=r;i--!==0;)if(!Or(e[i],t[i]))return!1;return!0}if(e instanceof Map&&t instanceof Map){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;for(i of e.entries())if(!Or(i[1],t.get(i[0])))return!1;return!0}if(e instanceof Set&&t instanceof Set){if(e.size!==t.size)return!1;for(i of e.entries())if(!t.has(i[0]))return!1;return!0}if(e.constructor===RegExp)return e.source===t.source&&e.flags===t.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===t.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(e);if(r=o.length,r!==n(t).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(t,o[i]))return!1;for(i=r;i--!==0;){let s=o[i];if(!Or(e[s],t[s]))return!1}return!0}return e!==e&&t!==t||e==null&&t==null}function Or(e,t){try{return Ad(e,t)}catch{return!1}}function ci(e,t){return!Or(e,t)}function li(e){return typeof window.structuredClone=="function"?structuredClone(e):e!=null?JSON.parse(JSON.stringify(e)):e}function Fi(e,t){let r=i=>i[e]===!0;return i=>{if(r(i))return i;let n=t(i);return n[e]=!0,n}}var hl=f(H(),1);var ao=e=>{let t=e??{};return(r,i)=>{var n;let o={hasChanged:ci,attribute:!1,...t};(0,hl.property)(o)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(n=t.selector)!==null&&n!==void 0?n:(a=>a[i]),store:t.store})}};var Bi=class{constructor(){this.queue=[]}add(t,r=!1){r&&this.clear(t.type),this.queue.push(t)}consume(t){let r=this.queue.find(i=>i.type===t);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(t){typeof t=="string"?this.queue=this.queue.filter(r=>r.type!==t):this.queue=this.queue.filter(r=>!t.test(r.type))}};var Qe=f(H(),1);var Hi=class{constructor(t=0){this.timeout=t,this.callbacks=[]}run(t,r){return this.callbacks=[t],this.debounce(r)}queue(t,r){return this.callbacks.push(t),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(t){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),t??this.timeout),this.promise}async runCallbacks(){var t,r;let i=[...this.callbacks];this.callbacks=[];let n=(t=this.rejectPromise)!==null&&t!==void 0?t:(()=>null),o=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)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 gl=f(N(),1);var ji=globalThis,Ed=ji.ShadowRoot&&(ji.ShadyCSS===void 0||ji.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var ml=(e,t)=>{if(Ed)e.adoptedStyleSheets=t.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of t){let i=document.createElement("style"),n=ji.litNonce;n!==void 0&&i.setAttribute("nonce",n),i.textContent=r.cssText,e.appendChild(i)}};var Vi=class extends gl.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let t=this.scopedRegistryConstructor;t.elementDefinitions&&!t.registry&&(t.registry=new CustomElementRegistry,t.defineScopedElements(t.elementDefinitions));let r={...t.shadowRootOptions,customElements:t.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return ml(i,t.elementStyles),i}static canDefineScopedElement(t){return!!this.registry&&!this.registry.get(t)}static defineScopedElements(t){Object.entries(t).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(t,r){so(t)(r),this.canDefineScopedElement(t)&&this.registry.define(t,r)}canDefineScopedElement(t){return this.scopedRegistryConstructor.canDefineScopedElement(t)}defineScopedElements(t){this.scopedRegistryConstructor.defineScopedElements(t)}defineScopedElement(t,r){this.scopedRegistryConstructor.defineScopedElement(t,r)}};function vl(e,t,...r){var i;let n=e.querySelector(t);for(let o of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(o);return n}var Lr=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Sl,yl=Symbol("constructorPrototype"),bl=Symbol("constructorName"),Al=Symbol("exportpartsDebouncer"),xl=Symbol("dynamicDependenciesLoaded"),Rr=class e extends CustomEvent{constructor(){super(e.eventName,{bubbles:!0})}};Rr.eventName="exportparts-updated";var ue=class extends Vi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Sl]=new Hi(5),this.scheduleExportpartsUpdate=()=>{var t,r,i;(!((t=this.exportpartsPrefix)===null||t===void 0)&&t.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[Al].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[bl]=this.constructor.name,this[yl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[bl]&&Object.setPrototypeOf(this,this[yl])}connectedCallback(){var t;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[xl]||(r[xl]=!0,this.importDynamicDependencies()),(t=this.shadowRoot)===null||t===void 0||t.addEventListener(Rr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this.shadowRoot)===null||t===void 0||t.removeEventListener(Rr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(t){super.updated(t),this.updateComplete.then(()=>{this.contentAvailableCallback(t),this.focusElementToFocus(t),this.applyCustomStylesheet(t),this.scheduleExportpartsUpdate(),t.has("exportparts")&&this.dispatchEvent(new Rr)})}contentAvailableCallback(t){}focusElementToFocus(t){if(t.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let o=[...n??[],i];r=vl(this.shadowRoot,...o)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(t){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(t.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(t){var r,i,n,o,s,a;let l=p=>p!=null&&p.trim().length>0,c=t.filter(l).map(p=>p.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let p of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let h=(o=(n=p.getAttribute("part"))===null||n===void 0?void 0:n.split(" "))!==null&&o!==void 0?o:[],m=(a=(s=p.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(x=>x.split(":")[1]))!==null&&a!==void 0?a:[],g=[...h,...m].filter(l).map(x=>x.trim());for(let x of g)u.add(x)}if(u.size===0){this.exportparts=void 0;return}let d=[...u.values()].flatMap(p=>c.map(h=>`${p}:${h}--${p}`));this.exportparts=[...this.part,...d].join(", ")}};Sl=Al;Lr([(0,Qe.property)()],ue.prototype,"exportpartsPrefix",void 0);Lr([fl([])],ue.prototype,"exportpartsPrefixes",void 0);Lr([(0,Qe.property)({reflect:!0})],ue.prototype,"exportparts",void 0);Lr([(0,Qe.property)()],ue.prototype,"customStylesheet",void 0);Lr([(0,Qe.property)()],ue.prototype,"elementToFocus",void 0);Lr([(0,Qe.state)()],ue.prototype,"useAdoptedStyleSheets",void 0);function zi(e){var t;return(t=e?.isFtReduxStore)!==null&&t!==void 0?t:!1}var ui=Symbol("internalReduxEventsUnsubscribers"),Me=Symbol("internalStoresUnsubscribers"),tr=Symbol("internalStores"),wd=Fi(Symbol("withRedux"),function(e){var t,r,i;class n extends e{constructor(){super(...arguments),this[t]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[tr].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[tr].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[tr].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[tr].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[tr].delete(a)}setupStores(){this.unsubscribeFromStores(),this[tr].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[Me].has(s.store):this[Me].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[Me].set(s,a.subscribe(()=>this.updateFromStores())),this[ui].set(s,[]),zi(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((c,u)=>{if(typeof this[u]=="function"&&(!c.store||a.name===c.store)){let d=p=>this[u](p);a.addEventListener(c.eventName,d),this[ui].get(s).push(()=>a.removeEventListener(c.eventName,d))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[Me].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[Me].has(s)&&this[Me].get(s)(),this[Me].delete(s),(a=this[ui].get(s))===null||a===void 0||a.forEach(l=>l()),this[ui].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return t=Me,r=tr,i=ui,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),El=class extends wd(ue){};function Gt(e){for(var t=arguments.length,r=Array(t>1?t-1:0),i=1;i<t;i++)r[i-1]=arguments[i];if(0)var n,o;throw Error("[Immer] minified error nr: "+e+(r.length?" "+r.map((function(s){return"'"+s+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function Ae(e){return!!e&&!!e[W]}function ie(e){var t;return!!e&&((function(r){if(!r||typeof r!="object")return!1;var i=Object.getPrototypeOf(r);if(i===null)return!0;var n=Object.hasOwnProperty.call(i,"constructor")&&i.constructor;return n===Object||typeof n=="function"&&Function.toString.call(n)===Pd})(e)||Array.isArray(e)||!!e[Ll]||!!(!((t=e.constructor)===null||t===void 0)&&t[Ll])||vo(e)||yo(e))}function er(e,t,r){r===void 0&&(r=!1),Ir(e)===0?(r?Object.keys:Pr)(e).forEach((function(i){r&&typeof i=="symbol"||t(i,e[i],e)})):e.forEach((function(i,n){return t(n,i,e)}))}function Ir(e){var t=e[W];return t?t.i>3?t.i-4:t.i:Array.isArray(e)?1:vo(e)?2:yo(e)?3:0}function kr(e,t){return Ir(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Cd(e,t){return Ir(e)===2?e.get(t):e[t]}function kl(e,t,r){var i=Ir(e);i===2?e.set(t,r):i===3?e.add(r):e[t]=r}function Pl(e,t){return e===t?e!==0||1/e==1/t:e!=e&&t!=t}function vo(e){return Ld&&e instanceof Map}function yo(e){return kd&&e instanceof Set}function $e(e){return e.o||e.t}function bo(e){if(Array.isArray(e))return Array.prototype.slice.call(e);var t=Nl(e);delete t[W];for(var r=Pr(t),i=0;i<r.length;i++){var n=r[i],o=t[n];o.writable===!1&&(o.writable=!0,o.configurable=!0),(o.get||o.set)&&(t[n]={configurable:!0,writable:!0,enumerable:o.enumerable,value:e[n]})}return Object.create(Object.getPrototypeOf(e),t)}function xo(e,t){return t===void 0&&(t=!1),So(e)||Ae(e)||!ie(e)||(Ir(e)>1&&(e.set=e.add=e.clear=e.delete=_d),Object.freeze(e),t&&er(e,(function(r,i){return xo(i,!0)}),!0)),e}function _d(){Gt(2)}function So(e){return e==null||typeof e!="object"||Object.isFrozen(e)}function de(e){var t=go[e];return t||Gt(18,e),t}function Td(e,t){go[e]||(go[e]=t)}function fo(){return pi}function lo(e,t){t&&(de("Patches"),e.u=[],e.s=[],e.v=t)}function Wi(e){ho(e),e.p.forEach(Od),e.p=null}function ho(e){e===pi&&(pi=e.l)}function wl(e){return pi={p:[],l:pi,h:e,m:!0,_:0}}function Od(e){var t=e[W];t.i===0||t.i===1?t.j():t.g=!0}function co(e,t){t._=t.p.length;var r=t.p[0],i=e!==void 0&&e!==r;return t.h.O||de("ES5").S(t,e,i),i?(r[W].P&&(Wi(t),Gt(4)),ie(e)&&(e=Ki(t,e),t.l||Gi(t,e)),t.u&&de("Patches").M(r[W].t,e,t.u,t.s)):e=Ki(t,r,[]),Wi(t),t.u&&t.v(t.u,t.s),e!==Dl?e:void 0}function Ki(e,t,r){if(So(t))return t;var i=t[W];if(!i)return er(t,(function(a,l){return Cl(e,i,t,a,l,r)}),!0),t;if(i.A!==e)return t;if(!i.P)return Gi(e,i.t,!0),i.t;if(!i.I){i.I=!0,i.A._--;var n=i.i===4||i.i===5?i.o=bo(i.k):i.o,o=n,s=!1;i.i===3&&(o=new Set(n),n.clear(),s=!0),er(o,(function(a,l){return Cl(e,i,n,a,l,r,s)})),Gi(e,n,!1),r&&e.u&&de("Patches").N(i,r,e.u,e.s)}return i.o}function Cl(e,t,r,i,n,o,s){if(Ae(n)){var a=Ki(e,n,o&&t&&t.i!==3&&!kr(t.R,i)?o.concat(i):void 0);if(kl(r,i,a),!Ae(a))return;e.m=!1}else s&&r.add(n);if(ie(n)&&!So(n)){if(!e.h.D&&e._<1)return;Ki(e,n),t&&t.A.l||Gi(e,n)}}function Gi(e,t,r){r===void 0&&(r=!1),!e.l&&e.h.D&&e.m&&xo(t,r)}function uo(e,t){var r=e[W];return(r?$e(r):e)[t]}function _l(e,t){if(t in e)for(var r=Object.getPrototypeOf(e);r;){var i=Object.getOwnPropertyDescriptor(r,t);if(i)return i;r=Object.getPrototypeOf(r)}}function Ue(e){e.P||(e.P=!0,e.l&&Ue(e.l))}function po(e){e.o||(e.o=bo(e.t))}function mo(e,t,r){var i=vo(t)?de("MapSet").F(t,r):yo(t)?de("MapSet").T(t,r):e.O?(function(n,o){var s=Array.isArray(n),a={i:s?1:0,A:o?o.A:fo(),P:!1,I:!1,R:{},l:o,t:n,k:null,o:null,j:null,C:!1},l=a,c=fi;s&&(l=[a],c=di);var u=Proxy.revocable(l,c),d=u.revoke,p=u.proxy;return a.k=p,a.j=d,p})(t,r):de("ES5").J(t,r);return(r?r.A:fo()).p.push(i),i}function Rd(e){return Ae(e)||Gt(22,e),(function t(r){if(!ie(r))return r;var i,n=r[W],o=Ir(r);if(n){if(!n.P&&(n.i<4||!de("ES5").K(n)))return n.t;n.I=!0,i=Tl(r,o),n.I=!1}else i=Tl(r,o);return er(i,(function(s,a){n&&Cd(n.t,s)===a||kl(i,s,t(a))})),o===3?new Set(i):i})(e)}function Tl(e,t){switch(t){case 2:return new Map(e);case 3:return Array.from(e)}return bo(e)}function Il(){function e(s,a){var l=o[s];return l?l.enumerable=a:o[s]=l={configurable:!0,enumerable:a,get:function(){var c=this[W];return fi.get(c,s)},set:function(c){var u=this[W];fi.set(u,s,c)}},l}function t(s){for(var a=s.length-1;a>=0;a--){var l=s[a][W];if(!l.P)switch(l.i){case 5:i(l)&&Ue(l);break;case 4:r(l)&&Ue(l)}}}function r(s){for(var a=s.t,l=s.k,c=Pr(l),u=c.length-1;u>=0;u--){var d=c[u];if(d!==W){var p=a[d];if(p===void 0&&!kr(a,d))return!0;var h=l[d],m=h&&h[W];if(m?m.t!==p:!Pl(h,p))return!0}}var g=!!a[W];return c.length!==Pr(a).length+(g?0:1)}function i(s){var a=s.k;if(a.length!==s.t.length)return!0;var l=Object.getOwnPropertyDescriptor(a,a.length-1);if(l&&!l.get)return!0;for(var c=0;c<a.length;c++)if(!a.hasOwnProperty(c))return!0;return!1}function n(s){s.g&&Gt(3,JSON.stringify($e(s)))}var o={};Td("ES5",{J:function(s,a){var l=Array.isArray(s),c=(function(d,p){if(d){for(var h=Array(p.length),m=0;m<p.length;m++)Object.defineProperty(h,""+m,e(m,!0));return h}var g=Nl(p);delete g[W];for(var x=Pr(g),S=0;S<x.length;S++){var A=x[S];g[A]=e(A,d||!!g[A].enumerable)}return Object.create(Object.getPrototypeOf(p),g)})(l,s),u={i:l?5:4,A:a?a.A:fo(),P:!1,I:!1,R:{},l:a,t:s,k:c,o:null,g:!1,C:!1};return Object.defineProperty(c,W,{value:u,writable:!0}),c},S:function(s,a,l){l?Ae(a)&&a[W].A===s&&t(s.p):(s.u&&(function c(u){if(u&&typeof u=="object"){var d=u[W];if(d){var p=d.t,h=d.k,m=d.R,g=d.i;if(g===4)er(h,(function(L){L!==W&&(p[L]!==void 0||kr(p,L)?m[L]||c(h[L]):(m[L]=!0,Ue(d)))})),er(p,(function(L){h[L]!==void 0||kr(h,L)||(m[L]=!1,Ue(d))}));else if(g===5){if(i(d)&&(Ue(d),m.length=!0),h.length<p.length)for(var x=h.length;x<p.length;x++)m[x]=!1;else for(var S=p.length;S<h.length;S++)m[S]=!0;for(var A=Math.min(h.length,p.length),O=0;O<A;O++)h.hasOwnProperty(O)||(m[O]=!0),m[O]===void 0&&c(h[O])}}}})(s.p[0]),t(s.p))},K:function(s){return s.i===4?r(s):i(s)}})}var Ol,pi,Ao=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ld=typeof Map<"u",kd=typeof Set<"u",Rl=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",Dl=Ao?Symbol.for("immer-nothing"):((Ol={})["immer-nothing"]=!0,Ol),Ll=Ao?Symbol.for("immer-draftable"):"__$immer_draftable",W=Ao?Symbol.for("immer-state"):"__$immer_state";var Pd=""+Object.prototype.constructor,Pr=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:Object.getOwnPropertyNames,Nl=Object.getOwnPropertyDescriptors||function(e){var t={};return Pr(e).forEach((function(r){t[r]=Object.getOwnPropertyDescriptor(e,r)})),t},go={},fi={get:function(e,t){if(t===W)return e;var r=$e(e);if(!kr(r,t))return(function(n,o,s){var a,l=_l(o,s);return l?"value"in l?l.value:(a=l.get)===null||a===void 0?void 0:a.call(n.k):void 0})(e,r,t);var i=r[t];return e.I||!ie(i)?i:i===uo(e.t,t)?(po(e),e.o[t]=mo(e.A.h,i,e)):i},has:function(e,t){return t in $e(e)},ownKeys:function(e){return Reflect.ownKeys($e(e))},set:function(e,t,r){var i=_l($e(e),t);if(i?.set)return i.set.call(e.k,r),!0;if(!e.P){var n=uo($e(e),t),o=n?.[W];if(o&&o.t===r)return e.o[t]=r,e.R[t]=!1,!0;if(Pl(r,n)&&(r!==void 0||kr(e.t,t)))return!0;po(e),Ue(e)}return e.o[t]===r&&(r!==void 0||t in e.o)||Number.isNaN(r)&&Number.isNaN(e.o[t])||(e.o[t]=r,e.R[t]=!0),!0},deleteProperty:function(e,t){return uo(e.t,t)!==void 0||t in e.t?(e.R[t]=!1,po(e),Ue(e)):delete e.R[t],e.o&&delete e.o[t],!0},getOwnPropertyDescriptor:function(e,t){var r=$e(e),i=Reflect.getOwnPropertyDescriptor(r,t);return i&&{writable:!0,configurable:e.i!==1||t!=="length",enumerable:i.enumerable,value:r[t]}},defineProperty:function(){Gt(11)},getPrototypeOf:function(e){return Object.getPrototypeOf(e.t)},setPrototypeOf:function(){Gt(12)}},di={};er(fi,(function(e,t){di[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}})),di.deleteProperty=function(e,t){return di.set.call(this,e,t,void 0)},di.set=function(e,t,r){return fi.set.call(this,e[0],t,r,e[0])};var Id=(function(){function e(r){var i=this;this.O=Rl,this.D=!0,this.produce=function(n,o,s){if(typeof n=="function"&&typeof o!="function"){var a=o;o=n;var l=i;return function(g){var x=this;g===void 0&&(g=a);for(var S=arguments.length,A=Array(S>1?S-1:0),O=1;O<S;O++)A[O-1]=arguments[O];return l.produce(g,(function(L){var dt;return(dt=o).call.apply(dt,[x,L].concat(A))}))}}var c;if(typeof o!="function"&&Gt(6),s!==void 0&&typeof s!="function"&&Gt(7),ie(n)){var u=wl(i),d=mo(i,n,void 0),p=!0;try{c=o(d),p=!1}finally{p?Wi(u):ho(u)}return typeof Promise<"u"&&c instanceof Promise?c.then((function(g){return lo(u,s),co(g,u)}),(function(g){throw Wi(u),g})):(lo(u,s),co(c,u))}if(!n||typeof n!="object"){if((c=o(n))===void 0&&(c=n),c===Dl&&(c=void 0),i.D&&xo(c,!0),s){var h=[],m=[];de("Patches").M(n,c,h,m),s(h,m)}return c}Gt(21,n)},this.produceWithPatches=function(n,o){if(typeof n=="function")return function(c){for(var u=arguments.length,d=Array(u>1?u-1:0),p=1;p<u;p++)d[p-1]=arguments[p];return i.produceWithPatches(c,(function(h){return n.apply(void 0,[h].concat(d))}))};var s,a,l=i.produce(n,o,(function(c,u){s=c,a=u}));return typeof Promise<"u"&&l instanceof Promise?l.then((function(c){return[c,s,a]})):[l,s,a]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var t=e.prototype;return t.createDraft=function(r){ie(r)||Gt(8),Ae(r)&&(r=Rd(r));var i=wl(this),n=mo(this,r,void 0);return n[W].C=!0,ho(i),n},t.finishDraft=function(r,i){var n=r&&r[W],o=n.A;return lo(o,i),co(void 0,o)},t.setAutoFreeze=function(r){this.D=r},t.setUseProxies=function(r){r&&!Rl&&Gt(20),this.O=r},t.applyPatches=function(r,i){var n;for(n=i.length-1;n>=0;n--){var o=i[n];if(o.path.length===0&&o.op==="replace"){r=o.value;break}}n>-1&&(i=i.slice(n+1));var s=de("Patches").$;return Ae(r)?s(r,i):this.produce(r,(function(a){return s(a,i)}))},e})(),Ut=new Id,Dd=Ut.produce,bh=Ut.produceWithPatches.bind(Ut),xh=Ut.setAutoFreeze.bind(Ut),Sh=Ut.setUseProxies.bind(Ut),Ah=Ut.applyPatches.bind(Ut),Eh=Ut.createDraft.bind(Ut),wh=Ut.finishDraft.bind(Ut),qi=Dd;function rr(e){"@babel/helpers - typeof";return rr=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},rr(e)}function Ml(e,t){if(rr(e)!="object"||!e)return e;var r=e[Symbol.toPrimitive];if(r!==void 0){var i=r.call(e,t||"default");if(rr(i)!="object")return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return(t==="string"?String:Number)(e)}function $l(e){var t=Ml(e,"string");return rr(t)=="symbol"?t:t+""}function Ul(e,t,r){return(t=$l(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Fl(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),r.push.apply(r,i)}return r}function Eo(e){for(var t=1;t<arguments.length;t++){var r=arguments[t]!=null?arguments[t]:{};t%2?Fl(Object(r),!0).forEach(function(i){Ul(e,i,r[i])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fl(Object(r)).forEach(function(i){Object.defineProperty(e,i,Object.getOwnPropertyDescriptor(r,i))})}return e}function At(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var Bl=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),wo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yi={INIT:"@@redux/INIT"+wo(),REPLACE:"@@redux/REPLACE"+wo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+wo()}};function Nd(e){if(typeof e!="object"||e===null)return!1;for(var t=e;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function Co(e,t,r){var i;if(typeof t=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(At(0));if(typeof t=="function"&&typeof r>"u"&&(r=t,t=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(At(1));return r(Co)(e,t)}if(typeof e!="function")throw new Error(At(2));var n=e,o=t,s=[],a=s,l=!1;function c(){a===s&&(a=s.slice())}function u(){if(l)throw new Error(At(3));return o}function d(g){if(typeof g!="function")throw new Error(At(4));if(l)throw new Error(At(5));var x=!0;return c(),a.push(g),function(){if(x){if(l)throw new Error(At(6));x=!1,c();var A=a.indexOf(g);a.splice(A,1),s=null}}}function p(g){if(!Nd(g))throw new Error(At(7));if(typeof g.type>"u")throw new Error(At(8));if(l)throw new Error(At(9));try{l=!0,o=n(o,g)}finally{l=!1}for(var x=s=a,S=0;S<x.length;S++){var A=x[S];A()}return g}function h(g){if(typeof g!="function")throw new Error(At(10));n=g,p({type:Yi.REPLACE})}function m(){var g,x=d;return g={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(At(11));function O(){A.next&&A.next(u())}O();var L=x(O);return{unsubscribe:L}}},g[Bl]=function(){return this},g}return p({type:Yi.INIT}),i={dispatch:p,subscribe:d,getState:u,replaceReducer:h},i[Bl]=m,i}function Md(e){Object.keys(e).forEach(function(t){var r=e[t],i=r(void 0,{type:Yi.INIT});if(typeof i>"u")throw new Error(At(12));if(typeof r(void 0,{type:Yi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(At(13))})}function Hl(e){for(var t=Object.keys(e),r={},i=0;i<t.length;i++){var n=t[i];typeof e[n]=="function"&&(r[n]=e[n])}var o=Object.keys(r),s,a;try{Md(r)}catch(l){a=l}return function(c,u){if(c===void 0&&(c={}),a)throw a;if(0)var d;for(var p=!1,h={},m=0;m<o.length;m++){var g=o[m],x=r[g],S=c[g],A=x(S,u);if(typeof A>"u"){var O=u&&u.type;throw new Error(At(14))}h[g]=A,p=p||A!==S}return p=p||o.length!==Object.keys(c).length,p?h:c}}function Dr(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.length===0?function(i){return i}:t.length===1?t[0]:t.reduce(function(i,n){return function(){return i(n.apply(void 0,arguments))}})}function jl(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(i){return function(){var n=i.apply(void 0,arguments),o=function(){throw new Error(At(15))},s={getState:n.getState,dispatch:function(){return o.apply(void 0,arguments)}},a=t.map(function(l){return l(s)});return o=Dr.apply(void 0,a)(n.dispatch),Eo(Eo({},n),{},{dispatch:o})}}}function Vl(e){var t=function(i){var n=i.dispatch,o=i.getState;return function(s){return function(a){return typeof a=="function"?a(n,o,e):s(a)}}};return t}var zl=Vl();zl.withExtraArgument=Vl;var _o=zl;var Yl=(function(){var e=function(t,r){return e=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(i,n){i.__proto__=n}||function(i,n){for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(i[o]=n[o])},e(t,r)};return function(t,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");e(t,r);function i(){this.constructor=t}t.prototype=r===null?Object.create(r):(i.prototype=r.prototype,new i)}})(),$d=function(e,t){var r={label:0,sent:function(){if(o[0]&1)throw o[1];return o[1]},trys:[],ops:[]},i,n,o,s;return s={next:a(0),throw:a(1),return:a(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function a(c){return function(u){return l([c,u])}}function l(c){if(i)throw new TypeError("Generator is already executing.");for(;r;)try{if(i=1,n&&(o=c[0]&2?n.return:c[0]?n.throw||((o=n.return)&&o.call(n),0):n.next)&&!(o=o.call(n,c[1])).done)return o;switch(n=0,o&&(c=[c[0]&2,o.value]),c[0]){case 0:case 1:o=c;break;case 4:return r.label++,{value:c[1],done:!1};case 5:r.label++,n=c[1],c=[0];continue;case 7:c=r.ops.pop(),r.trys.pop();continue;default:if(o=r.trys,!(o=o.length>0&&o[o.length-1])&&(c[0]===6||c[0]===2)){r=0;continue}if(c[0]===3&&(!o||c[1]>o[0]&&c[1]<o[3])){r.label=c[1];break}if(c[0]===6&&r.label<o[1]){r.label=o[1],o=c;break}if(o&&r.label<o[2]){r.label=o[2],r.ops.push(c);break}o[2]&&r.ops.pop(),r.trys.pop();continue}c=t.call(e,r)}catch(u){c=[6,u],n=0}finally{i=o=0}if(c[0]&5)throw c[1];return{value:c[0]?c[1]:void 0,done:!0}}},Nr=function(e,t){for(var r=0,i=t.length,n=e.length;r<i;r++,n++)e[n]=t[r];return e},Ud=Object.defineProperty,Fd=Object.defineProperties,Bd=Object.getOwnPropertyDescriptors,Wl=Object.getOwnPropertySymbols,Hd=Object.prototype.hasOwnProperty,jd=Object.prototype.propertyIsEnumerable,Kl=function(e,t,r){return t in e?Ud(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r},Fe=function(e,t){for(var r in t||(t={}))Hd.call(t,r)&&Kl(e,r,t[r]);if(Wl)for(var i=0,n=Wl(t);i<n.length;i++){var r=n[i];jd.call(t,r)&&Kl(e,r,t[r])}return e},To=function(e,t){return Fd(e,Bd(t))},Vd=function(e,t,r){return new Promise(function(i,n){var o=function(l){try{a(r.next(l))}catch(c){n(c)}},s=function(l){try{a(r.throw(l))}catch(c){n(c)}},a=function(l){return l.done?i(l.value):Promise.resolve(l.value).then(o,s)};a((r=r.apply(e,t)).next())})};var zd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Dr:Dr.apply(null,arguments)},jh=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(e){return e}};function Wd(e){if(typeof e!="object"||e===null)return!1;var t=Object.getPrototypeOf(e);if(t===null)return!0;for(var r=t;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return t===r}function Be(e,t){function r(){for(var i=[],n=0;n<arguments.length;n++)i[n]=arguments[n];if(t){var o=t.apply(void 0,i);if(!o)throw new Error("prepareAction did not return an object");return Fe(Fe({type:e,payload:o.payload},"meta"in o&&{meta:o.meta}),"error"in o&&{error:o.error})}return{type:e,payload:i[0]}}return r.toString=function(){return""+e},r.type=e,r.match=function(i){return i.type===e},r}var Kd=(function(e){Yl(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=e.apply(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Nr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Nr([void 0],r.concat(this))))},t})(Array),Gd=(function(e){Yl(t,e);function t(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];var n=e.apply(this,r)||this;return Object.setPrototypeOf(n,t.prototype),n}return Object.defineProperty(t,Symbol.species,{get:function(){return t},enumerable:!1,configurable:!0}),t.prototype.concat=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return e.prototype.concat.apply(this,r)},t.prototype.prepend=function(){for(var r=[],i=0;i<arguments.length;i++)r[i]=arguments[i];return r.length===1&&Array.isArray(r[0])?new(t.bind.apply(t,Nr([void 0],r[0].concat(this)))):new(t.bind.apply(t,Nr([void 0],r.concat(this))))},t})(Array);function Lo(e){return ie(e)?qi(e,function(){}):e}function qd(e){return typeof e=="boolean"}function Yd(){return function(t){return Xd(t)}}function Xd(e){e===void 0&&(e={});var t=e.thunk,r=t===void 0?!0:t,i=e.immutableCheck,n=i===void 0?!0:i,o=e.serializableCheck,s=o===void 0?!0:o,a=e.actionCreatorCheck,l=a===void 0?!0:a,c=new Kd;if(r&&(qd(r)?c.push(_o):c.push(_o.withExtraArgument(r.extraArgument))),0){if(n)var u;if(s)var d;if(l)var p}return c}var Oo=!0;function Xl(e){var t=Yd(),r=e||{},i=r.reducer,n=i===void 0?void 0:i,o=r.middleware,s=o===void 0?t():o,a=r.devTools,l=a===void 0?!0:a,c=r.preloadedState,u=c===void 0?void 0:c,d=r.enhancers,p=d===void 0?void 0:d,h;if(typeof n=="function")h=n;else if(Wd(n))h=Hl(n);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var m=s;if(typeof m=="function"&&(m=m(t),!Oo&&!Array.isArray(m)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!Oo&&m.some(function(L){return typeof L!="function"}))throw new Error("each middleware provided to configureStore must be a function");var g=jl.apply(void 0,m),x=Dr;l&&(x=zd(Fe({trace:!Oo},typeof l=="object"&&l)));var S=new Gd(g),A=S;Array.isArray(p)?A=Nr([g],p):typeof p=="function"&&(A=p(S));var O=x.apply(void 0,A);return Co(h,u,O)}function Zl(e){var t={},r=[],i,n={addCase:function(o,s){var a=typeof o=="string"?o:o.type;if(!a)throw new Error("`builder.addCase` cannot be called with an empty action type");if(a in t)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return t[a]=s,n},addMatcher:function(o,s){return r.push({matcher:o,reducer:s}),n},addDefaultCase:function(o){return i=o,n}};return e(n),[t,r,i]}function Zd(e){return typeof e=="function"}function Jd(e,t,r,i){r===void 0&&(r=[]);var n=typeof t=="function"?Zl(t):[t,r,i],o=n[0],s=n[1],a=n[2],l;if(Zd(e))l=function(){return Lo(e())};else{var c=Lo(e);l=function(){return c}}function u(d,p){d===void 0&&(d=l());var h=Nr([o[p.type]],s.filter(function(m){var g=m.matcher;return g(p)}).map(function(m){var g=m.reducer;return g}));return h.filter(function(m){return!!m}).length===0&&(h=[a]),h.reduce(function(m,g){if(g)if(Ae(m)){var x=m,S=g(x,p);return S===void 0?m:S}else{if(ie(m))return qi(m,function(A){return g(A,p)});var S=g(m,p);if(S===void 0){if(m===null)return m;throw Error("A case reducer on a non-draftable value must not return undefined")}return S}return m},d)}return u.getInitialState=l,u}function Qd(e,t){return e+"/"+t}function Jl(e){var t=e.name;if(!t)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof e.initialState=="function"?e.initialState:Lo(e.initialState),i=e.reducers||{},n=Object.keys(i),o={},s={},a={};n.forEach(function(u){var d=i[u],p=Qd(t,u),h,m;"reducer"in d?(h=d.reducer,m=d.prepare):h=d,o[u]=h,s[p]=h,a[u]=m?Be(p,m):Be(p)});function l(){var u=typeof e.extraReducers=="function"?Zl(e.extraReducers):[e.extraReducers],d=u[0],p=d===void 0?{}:d,h=u[1],m=h===void 0?[]:h,g=u[2],x=g===void 0?void 0:g,S=Fe(Fe({},p),s);return Jd(r,function(A){for(var O in S)A.addCase(O,S[O]);for(var L=0,dt=m;L<dt.length;L++){var ot=dt[L];A.addMatcher(ot.matcher,ot.reducer)}x&&A.addDefaultCase(x)})}var c;return{name:t,reducer:function(u,d){return c||(c=l()),c(u,d)},actions:a,caseReducers:o,getInitialState:function(){return c||(c=l()),c.getInitialState()}}}var tp="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",ep=function(e){e===void 0&&(e=21);for(var t="",r=e;r--;)t+=tp[Math.random()*64|0];return t},rp=["name","message","stack","code"],Ro=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),Gl=(function(){function e(t,r){this.payload=t,this.meta=r}return e})(),ip=function(e){if(typeof e=="object"&&e!==null){for(var t={},r=0,i=rp;r<i.length;r++){var n=i[r];typeof e[n]=="string"&&(t[n]=e[n])}return t}return{message:String(e)}},Kh=(function(){function e(t,r,i){var n=Be(t+"/fulfilled",function(u,d,p,h){return{payload:u,meta:To(Fe({},h||{}),{arg:p,requestId:d,requestStatus:"fulfilled"})}}),o=Be(t+"/pending",function(u,d,p){return{payload:void 0,meta:To(Fe({},p||{}),{arg:d,requestId:u,requestStatus:"pending"})}}),s=Be(t+"/rejected",function(u,d,p,h,m){return{payload:h,error:(i&&i.serializeError||ip)(u||"Rejected"),meta:To(Fe({},m||{}),{arg:p,requestId:d,rejectedWithValue:!!h,requestStatus:"rejected",aborted:u?.name==="AbortError",condition:u?.name==="ConditionError"})}}),a=!1,l=typeof AbortController<"u"?AbortController:(function(){function u(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return u.prototype.abort=function(){},u})();function c(u){return function(d,p,h){var m=i?.idGenerator?i.idGenerator(u):ep(),g=new l,x,S=!1;function A(L){x=L,g.abort()}var O=(function(){return Vd(this,null,function(){var L,dt,ot,_e,Mn,Te,Nt;return $d(this,function(Vt){switch(Vt.label){case 0:return Vt.trys.push([0,4,,5]),_e=(L=i?.condition)==null?void 0:L.call(i,u,{getState:p,extra:h}),op(_e)?[4,_e]:[3,2];case 1:_e=Vt.sent(),Vt.label=2;case 2:if(_e===!1||g.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return S=!0,Mn=new Promise(function(Mt,Ke){return g.signal.addEventListener("abort",function(){return Ke({name:"AbortError",message:x||"Aborted"})})}),d(o(m,u,(dt=i?.getPendingMeta)==null?void 0:dt.call(i,{requestId:m,arg:u},{getState:p,extra:h}))),[4,Promise.race([Mn,Promise.resolve(r(u,{dispatch:d,getState:p,extra:h,requestId:m,signal:g.signal,abort:A,rejectWithValue:function(Mt,Ke){return new Ro(Mt,Ke)},fulfillWithValue:function(Mt,Ke){return new Gl(Mt,Ke)}})).then(function(Mt){if(Mt instanceof Ro)throw Mt;return Mt instanceof Gl?n(Mt.payload,m,u,Mt.meta):n(Mt,m,u)})])];case 3:return ot=Vt.sent(),[3,5];case 4:return Te=Vt.sent(),ot=Te instanceof Ro?s(null,m,u,Te.payload,Te.meta):s(Te,m,u),[3,5];case 5:return Nt=i&&!i.dispatchConditionRejection&&s.match(ot)&&ot.meta.condition,Nt||d(ot),[2,ot]}})})})();return Object.assign(O,{abort:A,requestId:m,arg:u,unwrap:function(){return O.then(np)}})}}return Object.assign(c,{pending:o,rejected:s,fulfilled:n,typePrefix:t})}return e.withTypes=function(){return e},e})();function np(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function op(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Ql="listener",tc="completed",ec="cancelled",Gh="task-"+ec,qh="task-"+tc,Yh=Ql+"-"+ec,Xh=Ql+"-"+tc;var ko="listenerMiddleware";var Zh=Be(ko+"/add"),Jh=Be(ko+"/removeAll"),Qh=Be(ko+"/remove");var ql,tm=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(e){return(ql||(ql=Promise.resolve())).then(e).catch(function(t){return setTimeout(function(){throw t},0)})},sp=function(e){return function(t){setTimeout(t,e)}},em=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:sp(10);Il();var ap=Fi(Symbol("withEventBus"),function(e,t){return class extends e{constructor(){super(...arguments),this.eventBus=t??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),Xi=class extends ap(Object){};window.ftReduxStores||(window.ftReduxStores={});var rc=class e extends Xi{static get(t){var r;let i=typeof t=="string"?t:t.name,n=typeof t=="string"?void 0:t,o=window.ftReduxStores[i];if(zi(o))return o;if(n==null)return;let s=Jl({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Xl({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=li(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 e(s,a,n.eventBus)}constructor(t,r,i){super(),this.reduxSlice=t,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Bi;let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,c=o[l];return c?(...u)=>{let d=c(...u.map(n));return this.reduxStore.dispatch(d),d}:u=>{let d=l,p=this.getState()[d];Or(p,u)||this.setState({[d]:n(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...t){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:t})}setState(t){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(t).join("_"),overwrites:t})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(t){throw new Error("Not implemented yet.")}subscribe(t){return this.reduxStore.subscribe(t)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Zi=class{static format(t,r,i,n,o){return window.moment?window.moment(t).locale(r).format(this.getMomentDateFormat(i,n,!!o)):this.getIntlDateTime(t,r,i,n,!!o)}static getMomentDateFormat(t,r,i){return i?"LT":t?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(t,r,i,n,o){let s=typeof t=="string"?new Date(t):t,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let t=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${t(Math.abs(r)/60)}:${t(Math.abs(r)%60)}`}};var Ji=f(b()),lp="ft-app-info",Mr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};Mr.eventName="authentication-change";var hi=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:t})}};hi.eventName="ui-locale-changed";var cp={session:(e,t)=>{(0,Ji.deepEqual)(e.session,t.payload)||(e.session=t.payload,setTimeout(()=>E.dispatchEvent(new Mr(t.payload)),0))}},E=Ji.FtReduxStore.get({name:lp,reducers:cp,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ic=f(b()),Qi=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Rm=(0,ic.applyMixinOnce)(Symbol("withDateFormat"),function(e){class t extends e{constructor(...i){super(i),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(E)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>Zi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Qi([(0,Po.property)({type:Boolean})],t.prototype,"useLongDateFormat",void 0),Qi([(0,Po.property)({type:Boolean})],t.prototype,"useDateTimeFormat",void 0),Qi([ao({store:E.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],t.prototype,"metadataDescriptors",void 0),Qi([ao({store:E.name})],t.prototype,"uiLocale",void 0),t});var on=f(b());var Io=f(b());var ir=class e{static get(t){let{baseUrl:r,apiIntegrationIdentifier:i}=E.getState(),n=t??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(t){return new Promise(r=>{let i=e.get(t);if(i)r(i);else{let n=E.subscribe(()=>{i=e.get(t),i&&(n(),r(i))})}})}};var $r=class{constructor(t){this.overrideApi=t}get api(){var t;return(t=this.overrideApi)!==null&&t!==void 0?t:ir.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):ir.await()}};var Ft=class extends $r{constructor(t=!0,r){var i;super(r),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=(i=n.commonCache)!==null&&i!==void 0?i:new Io.CacheRegistry,this.cache=t?n.commonCache:new Io.CacheRegistry}clearCache(){this.cache.clearAll()}hash(t){return String(Array.from(JSON.stringify(t,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var tn=class extends Ft{async listMySearches(){let{session:t}=E.getState();return Gs(t,st.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(t.profile.userId),300*1e3):[]}};var en=class extends Ft{async listMyBookmarks(){let t=E.getState().session;return t?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId),300*1e3):[]}};var rn=class extends Ft{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(t){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${t}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(t){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${t}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${t}`),this.CACHE_DURATION)}isAuthenticated(){let t=E.getState().session;return!!t?.sessionAuthenticated}};var nn=class extends Ft{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let t=E.getState().session;return!!t?.sessionAuthenticated}};var up="ft-user-assets",dp={setAssetCount:(e,t)=>{let{userAssetType:r,count:i}=t.payload.assetCount;e.assetCounts.allAsset[r]=i},clearAssetCount:e=>{Object.values(zt).forEach(t=>{e.assetCounts.allAsset[t]=void 0})},setBookmarkCountByMap:(e,t)=>{let r=t.payload.mapId;e.assetCounts.bookmarkByMap[r]=t.payload.count},clearBookmarkCountByMap:e=>{e.assetCounts.bookmarkByMap={}},addAsset:(e,t)=>{let{assetType:r,mapId:i,asset:n}=t.payload;No(e,r,[...Do(e,r),n]),nc(e,r,1,i),oc(e,n)},editAsset:(e,t)=>{let{assetType:r,asset:i}=t.payload;No(e,r,Do(e,r).map(n=>n.id===i.id?i:n)),oc(e,i)},removeAsset:(e,t)=>{let{assetType:r,mapId:i,assetId:n}=t.payload;No(e,r,Do(e,r).filter(o=>o.id!==n)),nc(e,r,-1,i)}},sc={[zt.SEARCHES]:"savedSearches",[zt.BOOKMARKS]:"bookmarks",[zt.BOOKS]:void 0,[zt.COLLECTIONS]:void 0},Do=(e,t)=>{var r;let i=sc[t];return i?(r=e[i])!==null&&r!==void 0?r:[]:[]},No=(e,t,r)=>{let i=sc[t];i&&(e[i]=r)},nc=(e,t,r,i)=>{let n=e.assetCounts.allAsset[t];if(n!==void 0&&(e.assetCounts.allAsset[t]=Math.max(0,n+r),t===zt.BOOKMARKS&&i)){let o=e.assetCounts.bookmarkByMap[i];e.assetCounts.bookmarkByMap[i]=Math.max(0,o+r)}},oc=(e,t)=>{let r=e.assetLabels.map(n=>n.title),i=t.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));e.assetLabels.push(...i)},_t=on.FtReduxStore.get({name:up,reducers:dp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(zt).map(e=>[e,void 0])),bookmarkByMap:{}},assetLabels:[]}}),Mo=class{constructor(t=new rn,r=new nn){this.assetCountsService=t,this.assetLabelsService=r,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new en,this.savedSearchesService=new tn,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var t;let{session:r}=E.getState();(0,on.deepEqual)((t=this.currentSession)===null||t===void 0?void 0:t.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),_t.actions.clearAssetCount(),_t.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),_t.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),_t.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let t=await this.savedSearchesService.listMySearches();_t.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let t=await this.assetLabelsService.getUserAssetLabels();_t.actions.assetLabels(t)}async loadAssetCount(t){let r=await this.assetCountsService.getUserAssetCount(t);r&&_t.getState().assetCounts.allAsset[t]!==r.count&&_t.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(t){let r=await this.assetCountsService.getUserBookmarkCountByMap(t);r&&_t.getState().assetCounts.bookmarkByMap[t]!==r.count&&_t.actions.setBookmarkCountByMap({count:r.count,mapId:t})}async reloadAssetCount(t){this.assetCountsService.clearCache();let r=Object.keys(_t.getState().assetCounts.bookmarkByMap).length!==0;t===zt.BOOKMARKS&&r&&_t.actions.clearBookmarkCountByMap(),_t.getState().assetCounts.allAsset[t]!==void 0&&await this.loadAssetCount(t)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){let r=!((t=this.currentSession)===null||t===void 0)&&t.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;_t.actions.bookmarks(r)}}},pp=new Mo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=pp);var $o=class{addCommand(t,r=!1){E.commands.add(t,r)}consumeCommand(t){return E.commands.consume(t)}};window.FluidTopicsAppInfoStoreService=new $o;var qt=f(b());var ac,Ur=class extends CustomEvent{constructor(t){super("ft-i18n-context-loaded",{detail:t})}},fp=Symbol("clearAfterUnitTest"),sn=class extends(0,qt.withEventBus)(Ft){constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ac]=()=>{this.defaultMessages={},this.cache=new qt.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:t}=E.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){let r=t.name.toLowerCase();this.cache.setFinal(r,t),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,r){var i;if(t=t.toLowerCase(),r&&Object.keys(r).length>0){let n={...(i=this.defaultMessages[t])!==null&&i!==void 0?i:{},...r};(0,qt.deepEqual)(this.defaultMessages[t],n)||(this.defaultMessages[t]=n,await this.notify(t))}return this.fetchContext(t)}resolveContext(t){var r,i;return this.fetchContext(t),(i=(r=this.cache.getNow(t))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(t,r){let i=t.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(t,r,...i){var n;let o=t.toLowerCase(),s=this.resolveContext(o);return new qt.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(r,...i)}async fetchContext(t){let r=!this.cache.has(t),i;try{i=await this.cache.get(t,()=>this.messageContextProvider(this.currentUiLocale,t)),r&&await this.notify(t)}catch(n){!(n instanceof qt.CanceledPromiseError)&&r&&console.error(n)}return i}subscribe(t,r){var i;return t=t.toLowerCase(),this.listeners[t]=(i=this.listeners[t])!==null&&i!==void 0?i:new Set,this.listeners[t].add(r),()=>{var n;return(n=this.listeners[t])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let t=Object.keys(this.listeners);document.body.dispatchEvent(new Ur({loadedContexts:t})),this.dispatchEvent(new Ur({loadedContexts:t})),await Promise.all(t.map(r=>this.notify(r,!1)))}async notify(t,r=!0){r&&(document.body.dispatchEvent(new Ur({loadedContexts:[t]})),this.dispatchEvent(new Ur({loadedContexts:[t]}))),this.listeners[t]!=null&&await Promise.all([...this.listeners[t].values()].map(i=>(0,qt.delay)(0).then(()=>i()).catch(()=>null)))}};ac=fp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getFluidTopicsMessageContext(e,t))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends sn{constructor(){super(async(e,t)=>(await this.awaitApi).getCustomMessageContext(e,t))}});var Fr=window.FluidTopicsI18nService,an=window.FluidTopicsCustomI18nService;var lc=f(b()),Uo=class{highlightHtml(t,r,i){(0,lc.highlightHtml)(t,r,i)}};window.FluidTopicsHighlightHtmlService=new Uo;var cc=f(b());var Fo=class{isDate(t){var r,i,n,o;return(o=(n=((i=(r=E.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===t))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1}format(t,r){var i,n,o,s;if(t==null)return"";try{return cc.DateFormatter.format(t,(i=r?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(o=r?.withTime)!==null&&o!==void 0?o:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(t)} is not valid`,a),a}}};window.FluidTopicsDateService=new Fo;var uc=f(b());var mi=class{static get(t,r){var i,n,o,s;let a=E.getState(),{lang:l,region:c}=(o=(n=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&o!==void 0?o:{lang:"en",region:"US"};return new uc.SearchPlaceConverter(a.baseUrl,t??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var Bo=class{urlToSearchRequest(t){return mi.get().parse(t)}searchRequestToUrl(t){return mi.get().serialize(t)}};window.FluidTopicsUrlService=new Bo;var Ee=f(b());var nr=class e extends CustomEvent{constructor(t){super(e.eventName,{detail:{currentItem:t}})}};nr.eventName="change";var Ho=class{itemName(t){return`fluid-topics-history-item-${t}`}get(t){let r=sessionStorage.getItem(this.itemName(t));return r?JSON.parse(r):void 0}set(t,r){sessionStorage.setItem(this.itemName(t),JSON.stringify(r))}},dc=new Ho;var ln=class e extends Ee.WithEventBus{static build(){return new e(window.history,dc,()=>window.location,!1)}constructor(t,r,i,n){var o,s;super(),this.history=t,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=t.pushState,this.realReplaceState=t.replaceState,this.initialIndex=(s=(o=t.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:t.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(t,r=!1){let i=r&&this.currentIndex===t.index-1;this.currentState={...this.buildCurrentState(),...t},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,i&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Ee.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new nr(this.currentItem())),0)}installProxies(){let t=r=>(i,n,[o,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...o,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(n,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:t(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:t(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",t=>this.setCurrentState(t.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(t){for(let r=this.history.length-1;r>=0;r--)t?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(t){var r;let i={...this.buildCurrentState(),...t,index:this.currentIndex,title:(r=t?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(t){this.addEventListener(nr.eventName,t)}removeHistoryChangeListener(t){this.removeEventListener(nr.eventName,t)}currentItem(){return(0,Ee.deepCopy)(this.currentState)}back(){let t=this.previousDifferentMajorPosition();t>=0?this.history.go(t-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,Ee.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(t){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,Ee.deepCopy)(r.find(i=>t(i)))}previousDifferentMajorPosition(){let t=this.currentIndex>0?this.currentIndex-1:0;for(;t>0&&!this.isDifferentMajorState(t);)t--;return t}forward(){let t=this.nextMajorPosition();t&&t<this.states.length?this.history.go(t-this.currentIndex):this.history.forward()}forwardItem(){let t=this.nextMajorPosition();if(t)return(0,Ee.deepCopy)(this.states[t])}nextMajorPosition(){let t=this.currentIndex;if(!(t>=this.states.length)){do t++;while(t<this.states.length&&!this.isDifferentMajorState(t));return this.getHigherPositionInTheSameState(t)}}getHigherPositionInTheSameState(t){var r;let i=(r=this.states[t])===null||r===void 0?void 0:r.majorStateId;if(!i)return t;let n=t,o=t+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,i);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var t,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(t=this.history.state)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:document.title}}hasState(t){return this.states[t]!=null}isDifferentMajorState(t,r){var i;if(!this.hasState(t))return!1;let n=r??this.currentState.majorStateId,o=(i=this.states[t])===null||i===void 0?void 0:i.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=ln.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:e=>window.FluidTopicsInternalHistoryService.backwardItemMatching(e),addHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(e),removeHistoryChangeListener:e=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(e)});var Br=class{constructor(){this.storeListeners=[]}store(t,r){if(this.isAuthenticated())return;let i=JSON.stringify(r);window.localStorage.setItem(t,i),window.dispatchEvent(new StorageEvent("storage",{key:t,newValue:i,storageArea:window.localStorage}))}get(t){var r,i;if(!this.isAuthenticated())return(i=JSON.parse((r=window.localStorage.getItem(t))!==null&&r!==void 0?r:"null"))!==null&&i!==void 0?i:void 0}addStoreListener(t,r){let i=n=>{n.key===t()&&!this.isAuthenticated()&&r()};this.storeListeners.push(i),window.addEventListener("storage",i)}clearStoreListeners(){this.storeListeners.forEach(t=>window.removeEventListener("storage",t)),this.storeListeners.length=0}isAuthenticated(){let t=E.getState().session;return!!t?.sessionAuthenticated}};var pc=f(N());var fc=pc.css`
261
+ `;var gc=f(N()),Pt=f(H()),ar=f(b());var or=f(b());function hc(e,t){let{authenticationRequired:r,session:i}=E.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(t):e()}var cn=class extends $r{async updateUiLocale(t){return(await this.awaitApi).updateUiLocale(t)}};var jo=class e extends or.FtStateManager{static build(t){return new e(E,t)}constructor(t,r){super(),this.store=t,this.cache=new or.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new cn,this.cleanSessionDebouncer=new or.Debouncer,this.reloadDebouncer=new or.Debouncer(500),this.apiProvider=r??(()=>ir.get())}setWithManualResources(t){this.withManualResources=t,this.updateIfNeeded()}async initService(){this.store.addEventListener(Mr.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let t=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(t)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var t;let r=await this.cache.get("availableContentLocales",()=>hc(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((t=r.contentLocales)!==null&&t!==void 0?t:[])}reloadConfiguration(){var t;(t=this.cache)===null||t===void 0||t.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(t){this.store.actions.baseUrl(t),window.fluidTopicsBaseUrl=t}setTenantId(t){this.store.actions.tenantId(t)}setApiIntegrationIdentifier(t){this.store.actions.apiIntegrationIdentifier(t)}setApiIntegrationAppVersion(t){this.store.actions.apiIntegrationAppVersion(t)}setUiLocale(t){this.store.actions.uiLocale(t)}setLocalesConfiguration(t){this.store.actions.localesConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(t){this.store.actions.availableContentLocales(t),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(t,r){this.userLocaleService.updateUiLocale({uiLocale:t,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new hi(i)))}).catch(()=>{})}setMetadataConfiguration(t){this.store.actions.metadataConfiguration(t),setTimeout(()=>this.updateIfNeeded())}setNoCustom(t){this.store.actions.noCustom(t)}setEditorMode(t){this.store.actions.editorMode(t)}setNoCustomComponent(t){this.store.actions.noCustomComponent(t)}setSession(t){this.store.actions.session(t),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(t){this.store.actions.openExternalDocumentInNewTab(t)}setNavigatorOnline(t){this.store.actions.navigatorOnline(t)}setForcedOffline(t){this.store.actions.forcedOffline(t)}setAuthenticationRequired(t){this.store.actions.authenticationRequired(t)}},mc=jo.build();var sr=class extends Event{constructor(t,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=t,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var gi=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=t=>{let r=this.pendingContextRequests.get(t.context);if(r===void 0)return;this.pendingContextRequests.delete(t.context);let{requests:i}=r;for(let{elementRef:n,callbackRef:o}of i){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new sr(t.context,s,a,!0))}},this.onContextRequest=t=>{if(t.subscribe!==!0)return;let r=t.contextTarget??t.composedPath()[0],i=t.callback,n=this.pendingContextRequests.get(t.context);n===void 0&&this.pendingContextRequests.set(t.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(r);o===void 0&&n.callbacks.set(r,o=new WeakSet),o.has(i)||(o.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(t){t.addEventListener("context-request",this.onContextRequest),t.addEventListener("context-provider",this.onContextProvider)}detach(t){t.removeEventListener("context-request",this.onContextRequest),t.removeEventListener("context-provider",this.onContextProvider)}};var yt=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},X=class extends ar.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=mc,this.contextRoot=new gi}render(){return gc.html`
262
262
  <slot></slot>
263
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Ur.addContext(i)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};Y.elementDefinitions={};Y.styles=fc;yt([(0,kt.property)()],Y.prototype,"baseUrl",void 0);yt([(0,kt.property)()],Y.prototype,"tenantId",void 0);yt([(0,kt.property)()],Y.prototype,"apiIntegrationIdentifier",void 0);yt([(0,kt.property)()],Y.prototype,"apiIntegrationAppVersion",void 0);yt([(0,kt.property)()],Y.prototype,"uiLocale",void 0);yt([(0,ar.jsonProperty)(null)],Y.prototype,"availableUiLocales",void 0);yt([(0,ar.jsonProperty)(null)],Y.prototype,"metadataConfiguration",void 0);yt([(0,kt.property)({type:Boolean})],Y.prototype,"editorMode",void 0);yt([(0,kt.property)({type:Boolean})],Y.prototype,"noCustom",void 0);yt([(0,kt.property)({type:Boolean})],Y.prototype,"openExternalDocumentInNewTab",void 0);yt([(0,kt.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],Y.prototype,"noCustomComponent",void 0);yt([(0,kt.property)({type:Boolean})],Y.prototype,"withManualResources",void 0);yt([(0,kt.property)({type:Boolean})],Y.prototype,"navigatorOnline",void 0);yt([(0,kt.property)({type:Boolean})],Y.prototype,"forcedOffline",void 0);yt([(0,kt.property)({type:Boolean})],Y.prototype,"authenticationRequired",void 0);yt([(0,ar.jsonProperty)([])],Y.prototype,"messageContexts",void 0);yt([(0,ar.jsonProperty)(void 0)],Y.prototype,"session",void 0);var yc=f(b());var vc={"ft-app-context":Y};(0,yc.customElements)(vc);var bc=f(B());var jo=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,i]=t.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Br=new jo;var gp=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},vi=Symbol("i18nAttributes"),xc=Symbol("i18nListAttributes"),yi=Symbol("i18nProperties"),un=Symbol("i18nContexts"),gi=Symbol("i18nUnsubs"),Be=(0,Hr.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?an:Ur}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(Br.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[vi])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[xc])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(h=>c(u,d,h))})}updateI18nProperties(o){var s;(s=this[yi])===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[un].set(l,{isCustomContext:a}),this[gi].has(l)||this[gi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[un].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[un].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[gi].forEach(o=>o()),this[gi].clear()}}return t=un,r=gi,gp([(0,bc.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),dn=class extends Be(Hr.FtLitElement){},pn=class extends Be(Hr.FtLitElementRedux){};var Sc=f(b());var Vo=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(i=>typeof i=="string"?Br.fromAttribute(i):i):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},vp=new Vo;var Ac=(e,t)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Sc.hasChanged,converter:Br,...t}),r[vi]=(n=r[vi])!==null&&n!==void 0?n:new Map,r[vi].set(i,e??{})};var He=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?an:Ur}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(i,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:(i,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var fn=(e,t)=>(r,i)=>{var n,o;r.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...e,key:(n=e.key)!==null&&n!==void 0?n:i};r[yi]=(o=r[yi])!==null&&o!==void 0?o:new Map,r[yi].set(i,s)};var Ec=f(D());var wc=Ec.css`
264
- `;var hn=f(D()),mn=f(B()),gn=f(b());var bi=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},oe=class extends pn{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":hn.nothing:hn.html`
263
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(t){var r;super.update(t),t.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),t.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),t.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),t.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),t.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),t.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),t.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),t.has("session")&&this.stateManager.setSession(this.session),t.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>Fr.addContext(i)),t.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),t.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),t.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),t.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),t.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};X.elementDefinitions={};X.styles=fc;yt([(0,Pt.property)()],X.prototype,"baseUrl",void 0);yt([(0,Pt.property)()],X.prototype,"tenantId",void 0);yt([(0,Pt.property)()],X.prototype,"apiIntegrationIdentifier",void 0);yt([(0,Pt.property)()],X.prototype,"apiIntegrationAppVersion",void 0);yt([(0,Pt.property)()],X.prototype,"uiLocale",void 0);yt([(0,ar.jsonProperty)(null)],X.prototype,"availableUiLocales",void 0);yt([(0,ar.jsonProperty)(null)],X.prototype,"metadataConfiguration",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"editorMode",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"noCustom",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"openExternalDocumentInNewTab",void 0);yt([(0,Pt.property)({converter:{fromAttribute(e){return e==="false"?!1:e==="true"||(e??!1)}}})],X.prototype,"noCustomComponent",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"withManualResources",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"navigatorOnline",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"forcedOffline",void 0);yt([(0,Pt.property)({type:Boolean})],X.prototype,"authenticationRequired",void 0);yt([(0,ar.jsonProperty)([])],X.prototype,"messageContexts",void 0);yt([(0,ar.jsonProperty)(void 0)],X.prototype,"session",void 0);var yc=f(b());var vc={"ft-app-context":X};(0,yc.customElements)(vc);var bc=f(H());var Vo=class{fromLocalizableLabel(t){return t.type=="PLAIN_TEXT"?{message:t.text}:{key:t.key,custom:t.type=="LOCALIZED_CUSTOM",context:t.context,message:t.key}}fromAttribute(t){if(t!=null)try{return JSON.parse(t)}catch{if(this.isI18nKey(t)){let[r,i]=t.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:t}}}toAttribute(t){if(t!=null)return JSON.stringify(t)}isI18nKey(t){return t.match(/^[\w-]+\.[\w-]+$/)}},Hr=new Vo;var gp=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},yi=Symbol("i18nAttributes"),xc=Symbol("i18nListAttributes"),bi=Symbol("i18nProperties"),un=Symbol("i18nContexts"),vi=Symbol("i18nUnsubs"),He=(0,jr.applyMixinOnce)(Symbol("withI18n"),function(e){var t,r;class i extends e{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[t]=new Map,this[r]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?an:Fr}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(Hr.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[yi])===null||s===void 0||s.forEach((u,d)=>l[d]=c(u,d,l[d])),(a=this[xc])===null||a===void 0||a.forEach((u,d)=>{var p;return l[d]=(p=l[d])===null||p===void 0?void 0:p.map(h=>c(u,d,h))})}updateI18nProperties(o){var s;(s=this[bi])===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[un].set(l,{isCustomContext:a}),this[vi].has(l)||this[vi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[un].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[un].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[vi].forEach(o=>o()),this[vi].clear()}}return t=un,r=vi,gp([(0,bc.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),dn=class extends He(jr.FtLitElement){},pn=class extends He(jr.FtLitElementRedux){};var Sc=f(b());var zo=class{fromAttribute(t){if(!t)return[];try{let r=JSON.parse(t);return Array.isArray(r)?r.map(i=>typeof i=="string"?Hr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(t){if(t!=null)return JSON.stringify(t)}},vp=new zo;var Ac=(e,t)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Sc.hasChanged,converter:Hr,...t}),r[yi]=(n=r[yi])!==null&&n!==void 0?n:new Map,r[yi].set(i,e??{})};var je=class e{static build(t){return new e(t)}static buildCustom(t){return new e(t,!0)}static fromGwt(t){return new e(t)}get service(){return this.custom?an:Fr}constructor(t,r=!1){this.name=t,this.custom=r,this.properties=new Proxy({},{get:(i,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:(i,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var fn=(e,t)=>(r,i)=>{var n,o;r.constructor.createProperty(i,t??{attribute:!1,type:String});let s={...e,key:(n=e.key)!==null&&n!==void 0?n:i};r[bi]=(o=r[bi])!==null&&o!==void 0?o:new Map,r[bi].set(i,s)};var Ec=f(N());var wc=Ec.css`
264
+ `;var hn=f(N()),mn=f(H()),gn=f(b());var xi=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},ne=class extends pn{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":hn.nothing:hn.html`
265
265
  <span class="ft-i18n">
266
266
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
267
267
  </span>
268
- `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};oe.elementDefinitions={};oe.styles=wc;bi([(0,gn.redux)()],oe.prototype,"editorMode",void 0);bi([(0,mn.property)()],oe.prototype,"context",void 0);bi([(0,mn.property)()],oe.prototype,"key",void 0);bi([(0,gn.jsonProperty)([])],oe.prototype,"args",void 0);bi([(0,mn.property)()],oe.prototype,"defaultMessage",void 0);var _c=f(b());var Cc={"ft-i18n":oe};(0,_c.customElements)(Cc);var se=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},tt=class extends dn{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 Yt.Debouncer,this.revealDebouncer=new Yt.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return Tc.html`
268
+ `}update(t){var r;super.update(t),["context","key","defaultMessage"].some(i=>t.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};ne.elementDefinitions={};ne.styles=wc;xi([(0,gn.redux)()],ne.prototype,"editorMode",void 0);xi([(0,mn.property)()],ne.prototype,"context",void 0);xi([(0,mn.property)()],ne.prototype,"key",void 0);xi([(0,gn.jsonProperty)([])],ne.prototype,"args",void 0);xi([(0,mn.property)()],ne.prototype,"defaultMessage",void 0);var _c=f(b());var Cc={"ft-i18n":ne};(0,_c.customElements)(Cc);var oe=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},tt=class extends dn{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 Yt.Debouncer,this.revealDebouncer=new Yt.Debouncer,this.onTouch=t=>{this.isIgnored(t)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=t=>{this.isIgnored(t)?this.matchesIgnored(t)&&this.hide():this.show()},this.onFocusIn=t=>{!this.isIgnored(t)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=t=>{this.isIgnored(t)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var t,r;return Tc.html`
269
269
  <div part="container"
270
270
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
271
271
  <slot part="slot"></slot>
@@ -280,7 +280,7 @@
280
280
  </div>
281
281
  </div>
282
282
  </div>
283
- `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,i;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:t},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&dl(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Yt.designSystemVariables.transitionDuration}, left ${Yt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Yt.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};tt.elementDefinitions={"ft-typography":Q};tt.styles=$a;se([Ac()],tt.prototype,"text",void 0);se([(0,Xt.property)({type:Boolean})],tt.prototype,"manual",void 0);se([(0,Xt.property)({type:Boolean})],tt.prototype,"inline",void 0);se([(0,Yt.numberProperty)()],tt.prototype,"delay",void 0);se([(0,Xt.property)()],tt.prototype,"position",void 0);se([(0,Yt.jsonProperty)([])],tt.prototype,"ignoreMatchingElements",void 0);se([(0,Xt.queryAssignedNodes)()],tt.prototype,"slotNodes",void 0);se([(0,Xt.query)(".ft-tooltip--container")],tt.prototype,"container",void 0);se([(0,Xt.query)(".ft-tooltip")],tt.prototype,"tooltip",void 0);se([(0,Xt.query)(".ft-tooltip--content")],tt.prototype,"tooltipContent",void 0);se([(0,Xt.state)()],tt.prototype,"visible",void 0);var Rc=f(b());var Oc={"ft-tooltip":tt};(0,Rc.customElements)(Oc);var Lc=f(D()),ae=f(b()),Tt={size:ae.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:ae.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",ae.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:ae.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",ae.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:ae.FtCssVariableFactory.extend("--ft-icon-material-font-family","",ae.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:ae.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Pc=[Lc.css`
283
+ `}setupFor(t){this.eventsTarget!==t&&(this.removeHandlers(),this.eventsTarget=t,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(t){var r,i;t.has("visible")&&(this.visible?(this.resetTooltipContent(),(r=this.tooltip)===null||r===void 0||r.showPopover()):(i=this.tooltip)===null||i===void 0||i.hidePopover()),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some(r=>t.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(t){this.visible=!0,t!=null&&await this.hideDebounce.run(()=>{this.hide()},t)}async showTemporaryText(t,r){let i=this.manual;this.manual=!0;let n=this.text;this.text={message:t},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var t;return((t=this.slotNodes)!==null&&t!==void 0?t:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&dl(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:t,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${t}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Yt.designSystemVariables.transitionDuration}, left ${Yt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(t){return(0,Yt.eventPathContainsMatchingElement)(t,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(t){return this.manual||this.matchesIgnored(t)}};tt.elementDefinitions={"ft-typography":Q};tt.styles=$a;oe([Ac()],tt.prototype,"text",void 0);oe([(0,Xt.property)({type:Boolean})],tt.prototype,"manual",void 0);oe([(0,Xt.property)({type:Boolean})],tt.prototype,"inline",void 0);oe([(0,Yt.numberProperty)()],tt.prototype,"delay",void 0);oe([(0,Xt.property)()],tt.prototype,"position",void 0);oe([(0,Yt.jsonProperty)([])],tt.prototype,"ignoreMatchingElements",void 0);oe([(0,Xt.queryAssignedNodes)()],tt.prototype,"slotNodes",void 0);oe([(0,Xt.query)(".ft-tooltip--container")],tt.prototype,"container",void 0);oe([(0,Xt.query)(".ft-tooltip")],tt.prototype,"tooltip",void 0);oe([(0,Xt.query)(".ft-tooltip--content")],tt.prototype,"tooltipContent",void 0);oe([(0,Xt.state)()],tt.prototype,"visible",void 0);var Rc=f(b());var Oc={"ft-tooltip":tt};(0,Rc.customElements)(Oc);var Lc=f(N()),se=f(b()),Tt={size:se.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:se.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",se.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:se.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",se.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:se.FtCssVariableFactory.extend("--ft-icon-material-font-family","",se.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:se.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},kc=[Lc.css`
284
284
  :host, i.ft-icon {
285
285
  display: inline-flex;
286
286
  align-items: center;
@@ -328,12 +328,12 @@
328
328
  .ft-icon--material {
329
329
  font-family: ${Tt.materialFontFamily}, "Material Icons", sans-serif;
330
330
  }
331
- `,ae.noTextSelect];var It;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(It||(It={}));var xi=f(D()),je=f(B()),Dc=f(b()),Nc=f(Ic());var lr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(lr||(lr={}));var v;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(v||(v={}));var Uy=new Map([...["abw"].map(e=>[e,v.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,v.AUDIO]),...["avi"].map(e=>[e,v.AVI]),...["chm","xhs"].map(e=>[e,v.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,v.CODE]),...["csv"].map(e=>[e,v.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,v.DITA]),...["epub"].map(e=>[e,v.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,v.EXCEL]),...["flac"].map(e=>[e,v.FLAC]),...["gif"].map(e=>[e,v.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,v.GZIP]),...["html","htm","xhtml"].map(e=>[e,v.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,v.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,v.JPEG]),...["json"].map(e=>[e,v.JSON]),...["m4a","m4p"].map(e=>[e,v.M4A]),...["mov","qt"].map(e=>[e,v.MOV]),...["mp3"].map(e=>[e,v.MP3]),...["mp4","m4v"].map(e=>[e,v.MP4]),...["ogg","oga"].map(e=>[e,v.OGG]),...["pdf","ps"].map(e=>[e,v.PDF]),...["png"].map(e=>[e,v.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,v.POWERPOINT]),...["rar"].map(e=>[e,v.RAR]),...["stp"].map(e=>[e,v.STP]),...["txt","rtf","md","mdown"].map(e=>[e,v.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,v.VIDEO]),...["wav"].map(e=>[e,v.WAV]),...["wma"].map(e=>[e,v.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,v.WORD]),...["xml","xsl","rdf"].map(e=>[e,v.XML]),...["yaml","yml","x-yaml"].map(e=>[e,v.YAML]),...["zip"].map(e=>[e,v.ZIP])]);var Fy={[v.ABW]:"#91ABC6",[v.AUDIO]:"#1795E3",[v.AVI]:"#E63324",[v.CHM]:"#71C3EB",[v.CODE]:"#71C3EB",[v.CSV]:"#1F7345",[v.DITA]:"#71C3EB",[v.EPUB]:"#85B926",[v.EXCEL]:"#1F7345",[v.FLAC]:"#1795E3",[v.GIF]:"#59B031",[v.GZIP]:"#F8AB36",[v.HTML]:"#71C3EB",[v.IMAGE]:"#59B031",[v.JPEG]:"#59B031",[v.JSON]:"#71C3EB",[v.M4A]:"#1795E3",[v.MOV]:"#E63324",[v.MP3]:"#1795E3",[v.MP4]:"#E63324",[v.OGG]:"#1795E3",[v.PDF]:"#E44948",[v.PNG]:"#59B031",[v.POWERPOINT]:"#B54A2B",[v.RAR]:"#F8AB36",[v.STP]:"#3764B1",[v.TEXT]:"#3162AB",[v.UNKNOWN]:"#999999",[v.VIDEO]:"#E63324",[v.WAV]:"#1795E3",[v.WMA]:"#1795E3",[v.WORD]:"#3162AB",[v.XML]:"#71C3EB",[v.YAML]:"#71C3EB",[v.ZIP]:"#F8AB36"};var Si=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},et=class extends Dc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=xi.nothing}render(){let t=this.variant&&Object.values(It).includes(this.variant)?this.variant:It.fluid_topics,r=t!==It.material||!!this.value;return xi.html`
331
+ `,se.noTextSelect];var It;(function(e){e.fluid_topics="fluid-topics",e.file_format="file-format",e.material="material"})(It||(It={}));var Si=f(N()),Ve=f(H()),Dc=f(b()),Nc=f(Ic());var lr;(function(e){e.ADD_TO_PBK="&#xe800;",e.ALERT="&#xe801;",e.ADD_ALERT="&#xe802;",e.BACK_TO_SEARCH="&#xe803;",e.ADD_BOOKMARK="&#xe804;",e.BOOKMARK="&#xe805;",e.BOOKS="&#xe806;",e.MENU="&#xe807;",e.DOWNLOAD="&#xe808;",e.EDIT="&#xe809;",e.FEEDBACK="&#xe80a;",e.HOME="&#xe80b;",e.MODIFY_PBK="&#xe80c;",e.SCHEDULED="&#xe80d;",e.SEARCH="&#xe80e;",e.EXPORT="&#xe80f;",e.TOC="&#xe810;",e.WRITE_UGC="&#xe811;",e.TRASH="&#xe812;",e.USER="&#xe813;",e.EXTLINK="&#xe814;",e.CALENDAR="&#xe815;",e.OFFLINE="&#xe816;",e.BOOK="&#xe817;",e.DOWNLOAD_PLAIN="&#xe818;",e.CHECK="&#xe819;",e.STAR_PLAIN="&#xe900;",e.TOPICS="&#xe901;",e.DISC="&#xe902;",e.CIRCLE="&#xe903;",e.SHARED="&#xe904;",e.SORT_UNSORTED="&#xe905;",e.SORT_UP="&#xe906;",e.SORT_DOWN="&#xe907;",e.WORKING="&#xe908;",e.CLOSE="&#xe909;",e.ZOOM_OUT="&#xe90a;",e.ZOOM_IN="&#xe90b;",e.ZOOM_REALSIZE="&#xe90c;",e.ZOOM_FULLSCREEN="&#xe90d;",e.ADMIN_RESTRICTED="&#xe90e;",e.ADMIN="&#xe90f;",e.ADMIN_KHUB="&#xe910;",e.ADMIN_THEME="&#xe911;",e.ADMIN_USERS="&#xe912;",e.WARNING="&#xe913;",e.CONTEXT="&#xe914;",e.SEARCH_HOME="&#xe915;",e.STEPS="&#xe916;",e.ICON_EXPAND="&#xe917;",e.ICON_COLLAPSE="&#xe918;",e.INFO="&#xe919;",e.MINUS_PLAIN="&#xe91a;",e.PLUS_PLAIN="&#xe91b;",e.FACET_HAS_DESCENDANT="&#xe91c;",e.TRIANGLE_BOTTOM="&#xe91d;",e.TRIANGLE_LEFT="&#xe91e;",e.TRIANGLE_RIGHT="&#xe91f;",e.TRIANGLE_TOP="&#xe920;",e.THIN_ARROW="&#xe921;",e.SIGN_IN="&#xe922;",e.LOGOUT="&#xe923;",e.TRANSLATE="&#xe924;",e.CLOSE_PLAIN="&#xe925;",e.CHECK_PLAIN="&#xe926;",e.ARTICLE="&#xe927;",e.COLUMNS="&#xe928;",e.ANALYTICS="&#xe929;",e.COLLECTIONS="&#xe92a;",e.ARROW_DOWN="&#xe92b;",e.ARROW_LEFT="&#xe92c;",e.ARROW_RIGHT="&#xe92d;",e.ARROW_UP="&#xe92e;",e.SEARCH_IN_PUBLICATION="&#xe92f;",e.COPY_TO_CLIPBOARD="&#xe930;",e.SHARED_PBK="&#xe931;",e.ATTACHMENTS="&#xe932;",e.STRIPE_ARROW_LEFT="&#xe933;",e.STRIPE_ARROW_RIGHT="&#xe934;",e.FILTERS="&#xe935;",e.DOT="&#xe936;",e.MINUS="&#xe937;",e.PLUS="&#xe938;",e.MAILS_AND_NOTIFICATIONS="&#xe939;",e.SAVE="&#xe93a;",e.LOCKER="&#xe93b;",e.ADMIN_INTEGRATION="&#xe93c;",e.SYNC="&#xe93d;",e.TAG="&#xe93e;",e.BOOK_PLAIN="&#xe93f;",e.UPLOAD="&#xe940;",e.ONLINE="&#xe941;",e.TAG_PLAIN="&#xe942;",e.ACCOUNT_SETTINGS="&#xe943;",e.PRINT="&#xe944;",e.DEFAULT_ROLES="&#xe945;",e.SHORTCUT_MENU="&#xe946;",e.RELATIVES_PLAIN="&#xe947;",e.RELATIVES="&#xe948;",e.PAUSE="&#xe949;",e.PLAY="&#xe94a;",e.ADMIN_PORTAL="&#xe94b;",e.STAR="&#xe94c;",e.THUMBS_DOWN="&#xe94d;",e.THUMBS_DOWN_PLAIN="&#xe94e;",e.THUMBS_UP="&#xe94f;",e.THUMBS_UP_PLAIN="&#xe950;",e.FEEDBACK_PLAIN="&#xe951;",e.RATE_PLAIN="&#xe952;",e.RATE="&#xe953;",e.OFFLINE_SETTINGS="&#xe954;",e.MY_COLLECTIONS="&#xe955;",e.THIN_ARROW_LEFT="&#xe956;",e.THIN_ARROW_RIGHT="&#xe957;",e.RESET="&#xe958;",e.MY_LIBRARY="&#xe959;",e.UNSTRUCTURED_DOC="&#xe95a;",e.CONTEXTUAL="&#xe95b;",e.THIN_ARROW_UP="&#xe95c;",e.ARROW_RIGHT_TO_LINE="&#xe95d;",e.DESKTOP="&#xe95e;",e.TABLET_LANDSCAPE="&#xe95f;",e.TABLET_PORTRAIT="&#xe960;",e.MOBILE_LANDSCAPE="&#xe961;",e.MOBILE_PORTRAIT="&#xe962;",e.DIAGRAM_SUNBURST="&#xe963;",e.DIAGRAM_SANKEY="&#xe964;",e.COMMENT_QUESTION="&#xe965;",e.COMMENT_QUESTION_PLAIN="&#xe966;",e.MESSAGE_BOT="&#xe967;",e.CHART_SIMPLE="&#xe968;",e.BARS_PROGRESS="&#xe969;",e.BOOK_OPEN_GEAR="&#xe96a;",e.BOOK_OPEN_GEAR_SLASH="&#xe96b;",e.LINE_CHART="&#xe96c;",e.STACKED_CHART="&#xe96d;",e.CHART_BAR_STACKED="&#xe96e;",e.CHART_BAR_GROUPED="&#xe96f;",e.EYE_SLASH="&#xe970;",e.X_MARK="&#xe971;",e.EXPAND_WIDE="&#xe972;",e.PIP="&#xe973;",e.PIP_WIDE="&#xe974;",e.LIFE_RING="&#xe975;",e.GLOBE="&#xe976;",e.PIGGY_BANK="&#xe977;",e.EXTLINK_LIGHT="&#xe978;",e.CLONE="&#xe979;",e.CLONE_LINK_SIMPLE="&#xe97a;",e.CHART_BAR_NORMALIZED="&#xe97b;",e.CONSUMER="&#xe97c;",e.OCTAGON_XMARK="&#xe97d;",e.HOURGLASS_HALF="&#xe97e;",e.CLOCK="&#xe97f;",e.CLOCK_THREE="&#xe97f;",e.CALENDAR_DAY="&#xe980;",e.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",e.WAND_MAGIC_SPARKLES="&#xe982;",e.PAPER_PLANE="&#xe983;",e.CIRCLE_STOP="&#xe984;",e.ARROW_ROTATE_RIGHT="&#xe985;",e.ARROWS_ROTATE="&#xe986;",e.ALIGN_RIGHT="&#xe987;",e.FORMAT_CLEAR="&#xe988;",e.ALIGN_CENTER="&#xe989;",e.ALIGN_LEFT="&#xe98a;",e.PALETTE="&#xe98b;",e.BOLD="&#xe98c;",e.ITALIC="&#xe98d;",e.UNDERLINE="&#xe98e;",e.STRIKETHROUGH="&#xe98f;",e.LINK_SIMPLE_SLASH="&#xe990;",e.LINK_SIMPLE="&#xe991;",e.ROUTE="&#xe992;",e.CIRCLE_USER_SLASH="&#xe993;",e.CIRCLE_USER_CHECK="&#xe994;",e.LIST_MAGNIFYING_GLASS="&#xe995;",e.MEDAL="&#xe996;",e.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",e.ARROW_TURN_DOWN_RIGHT="&#xe998;",e.FLASK="&#xe999;",e.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",e.HOURGLASS_END="&#xe99b;",e.CIRCLE_QUESTION="&#xe99c;",e.GRIP_LINES_SOLID="&#xe99d;",e.TRANSLATE_SPARKLE_SOLID="&#xe99e;",e.CODE="&#xe99f;",e.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",e.PAPER_PLANE_SLASH="&#xe9a1;",e.COMPRESS="&#xe9a2;",e.EXPAND="&#xe9a3;",e.ARROW_ROTATE_LEFT="&#xe9a4;",e.MOBILE_SMALL="&#xe9a5;",e.SPARKLES="&#xe9a6;",e.HAND_SOLID="&#xe9a7;",e.CLOCK_SOLID="&#xe9a8;",e.CONTEXT_MENU_CURSOR="&#xe9a9;",e.LANGUAGE_SLASH="&#xe9aa;",e.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",e.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",e.BOOKMARK_SLASH="&#xe9ad;",e.CIRCLE_PAUSE="&#xe9ae;",e.CIRCLE_PLAY="&#xe9af;",e.CIRCLE_STOP_PLAIN="&#xe9b0;",e.CIRCLE_ARROW_DOWN="&#xe9b1;",e.SHARE_NODES="&#xe9b2;",e.BELL="&#xe9b3;",e.BELL_SLASH="&#xe9b4;",e.FILE="&#xe9b5;",e.HAND="&#xe9b6;",e.SQUARE_INFO_SOLID="&#xe9b7;",e.FILE_CODE="&#xe9b8;",e.BOX_CODE="&#xe9b9;",e.TOPICS_SOLID="&#xe9ba;",e.PHOTO_FILM="&#xe9bb;",e.HYPHEN_SOLID="&#xe9bc;",e.CROSSHAIRS="&#xe9bd;",e.PERSON_CHALKBOARD="&#xe9be;",e.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",e.BOOK_OPEN_COVER="&#xe9c0;",e.LIGHTBULB="&#xe9c1;",e.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",e.CHART_LINE_USER="&#xe9c3;",e.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",e.EYE="&#xf06e;",e.SHARE="&#xe80f1;"})(lr||(lr={}));var v;(function(e){e.UNKNOWN="&#xe90a;",e.ABW="&#xe900;",e.AUDIO="&#xe901;",e.AVI="&#xe902;",e.CHM="&#xe904;",e.CODE="&#xe905;",e.CSV="&#xe903;",e.DITA="&#xe906;",e.EPUB="&#xe907;",e.EXCEL="&#xe908;",e.FLAC="&#xe909;",e.GIF="&#xe90b;",e.GZIP="&#xe90c;",e.HTML="&#xe90d;",e.IMAGE="&#xe90e;",e.JPEG="&#xe90f;",e.JSON="&#xe910;",e.M4A="&#xe911;",e.MOV="&#xe912;",e.MP3="&#xe913;",e.MP4="&#xe914;",e.OGG="&#xe915;",e.PDF="&#xe916;",e.PNG="&#xe917;",e.POWERPOINT="&#xe918;",e.RAR="&#xe91a;",e.STP="&#xe91b;",e.TEXT="&#xe91c;",e.VIDEO="&#xe91e;",e.WAV="&#xe91f;",e.WMA="&#xe920;",e.WORD="&#xe921;",e.XML="&#xe922;",e.YAML="&#xe919;",e.ZIP="&#xe923;"})(v||(v={}));var Uy=new Map([...["abw"].map(e=>[e,v.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(e=>[e,v.AUDIO]),...["avi"].map(e=>[e,v.AVI]),...["chm","xhs"].map(e=>[e,v.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(e=>[e,v.CODE]),...["csv"].map(e=>[e,v.CSV]),...["dita","ditamap","ditaval"].map(e=>[e,v.DITA]),...["epub"].map(e=>[e,v.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(e=>[e,v.EXCEL]),...["flac"].map(e=>[e,v.FLAC]),...["gif"].map(e=>[e,v.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(e=>[e,v.GZIP]),...["html","htm","xhtml"].map(e=>[e,v.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(e=>[e,v.IMAGE]),...["jpeg","jpg","jpe"].map(e=>[e,v.JPEG]),...["json"].map(e=>[e,v.JSON]),...["m4a","m4p"].map(e=>[e,v.M4A]),...["mov","qt"].map(e=>[e,v.MOV]),...["mp3"].map(e=>[e,v.MP3]),...["mp4","m4v"].map(e=>[e,v.MP4]),...["ogg","oga"].map(e=>[e,v.OGG]),...["pdf","ps"].map(e=>[e,v.PDF]),...["png"].map(e=>[e,v.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(e=>[e,v.POWERPOINT]),...["rar"].map(e=>[e,v.RAR]),...["stp"].map(e=>[e,v.STP]),...["txt","rtf","md","mdown"].map(e=>[e,v.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(e=>[e,v.VIDEO]),...["wav"].map(e=>[e,v.WAV]),...["wma"].map(e=>[e,v.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(e=>[e,v.WORD]),...["xml","xsl","rdf"].map(e=>[e,v.XML]),...["yaml","yml","x-yaml"].map(e=>[e,v.YAML]),...["zip"].map(e=>[e,v.ZIP])]);var Fy={[v.ABW]:"#91ABC6",[v.AUDIO]:"#1795E3",[v.AVI]:"#E63324",[v.CHM]:"#71C3EB",[v.CODE]:"#71C3EB",[v.CSV]:"#1F7345",[v.DITA]:"#71C3EB",[v.EPUB]:"#85B926",[v.EXCEL]:"#1F7345",[v.FLAC]:"#1795E3",[v.GIF]:"#59B031",[v.GZIP]:"#F8AB36",[v.HTML]:"#71C3EB",[v.IMAGE]:"#59B031",[v.JPEG]:"#59B031",[v.JSON]:"#71C3EB",[v.M4A]:"#1795E3",[v.MOV]:"#E63324",[v.MP3]:"#1795E3",[v.MP4]:"#E63324",[v.OGG]:"#1795E3",[v.PDF]:"#E44948",[v.PNG]:"#59B031",[v.POWERPOINT]:"#B54A2B",[v.RAR]:"#F8AB36",[v.STP]:"#3764B1",[v.TEXT]:"#3162AB",[v.UNKNOWN]:"#999999",[v.VIDEO]:"#E63324",[v.WAV]:"#1795E3",[v.WMA]:"#1795E3",[v.WORD]:"#3162AB",[v.XML]:"#71C3EB",[v.YAML]:"#71C3EB",[v.ZIP]:"#F8AB36"};var Ai=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},et=class extends Dc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=Si.nothing}render(){let t=this.variant&&Object.values(It).includes(this.variant)?this.variant:It.fluid_topics,r=t!==It.material||!!this.value;return Si.html`
332
332
  <i class="ft-icon ft-icon--${t} ft-no-text-select" part="icon icon-${t}">
333
333
  ${(0,Nc.unsafeHTML)(this.resolvedIcon)}
334
334
  <slot ?hidden=${r}></slot>
335
335
  </i>
336
- `}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let i=this.value||this.getTextContent();switch(this.variant){case It.file_format:this.resolvedIcon=(t=v[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case It.material:this.resolvedIcon=this.value||xi.nothing;break;default:this.resolvedIcon=(r=lr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};et.elementDefinitions={};et.styles=Pc;Si([(0,je.property)()],et.prototype,"variant",void 0);Si([(0,je.property)()],et.prototype,"value",void 0);Si([(0,je.property)({reflect:!0,attribute:"aria-hidden"})],et.prototype,"ariaHidden",void 0);Si([(0,je.state)()],et.prototype,"resolvedIcon",void 0);Si([(0,je.query)("slot")],et.prototype,"slottedContent",void 0);var $c=f(b());var Mc={"ft-icon":et};(0,$c.customElements)(Mc);var Uc=f(D()),Ot=f(b());var Z=f(b());var J={textColor:Z.FtCssVariableFactory.extend("--ft-switch-text-color","",Z.designSystemVariables.colorOnSurfaceHigh),backgroundColor:Z.FtCssVariableFactory.extend("--ft-switch-background-color","",Z.designSystemVariables.colorSurface),selectedTextColor:Z.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",Z.designSystemVariables.colorPrimary),selectedBackgroundColor:Z.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",Z.designSystemVariables.colorPrimary),borderColor:Z.FtCssVariableFactory.extend("--ft-switch-border-color","",Z.designSystemVariables.colorOutline),borderRadius:Z.FtCssVariableFactory.extend("--ft-switch-border-radius","",Z.designSystemVariables.borderRadiusL),fontSize:Z.FtCssVariableFactory.extend("--ft-switch-font-size","",Ct.fontSize),iconSize:Z.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Z.FtCssVariableFactory.extend("--ft-switch-text-color","",Z.designSystemVariables.colorOnSurfaceMedium),rippleColor:Z.FtCssVariableFactory.extend("--ft-switch-ripple-color","",Z.designSystemVariables.colorPrimary),outlineColor:Z.FtCssVariableFactory.extend("--ft-switch-outline-color","",Z.designSystemVariables.colorPrimary)};var pt={borderRadiusLeft:Ot.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Ot.designSystemVariables.borderRadiusL),borderRadiusRight:Ot.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Ot.designSystemVariables.borderRadiusL),borderWidthLeft:Ot.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ot.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ot.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Fc=Uc.css`
336
+ `}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(t){super.update(t),["value","variant"].some(r=>t.has(r))&&this.resolveIcon()}resolveIcon(){var t,r;let i=this.value||this.getTextContent();switch(this.variant){case It.file_format:this.resolvedIcon=(t=v[i.replace("-","_").toUpperCase()])!==null&&t!==void 0?t:i;break;case It.material:this.resolvedIcon=this.value||Si.nothing;break;default:this.resolvedIcon=(r=lr[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(t){super.firstUpdated(t),setTimeout(()=>this.resolveIcon())}};et.elementDefinitions={};et.styles=kc;Ai([(0,Ve.property)()],et.prototype,"variant",void 0);Ai([(0,Ve.property)()],et.prototype,"value",void 0);Ai([(0,Ve.property)({reflect:!0,attribute:"aria-hidden"})],et.prototype,"ariaHidden",void 0);Ai([(0,Ve.state)()],et.prototype,"resolvedIcon",void 0);Ai([(0,Ve.query)("slot")],et.prototype,"slottedContent",void 0);var $c=f(b());var Mc={"ft-icon":et};(0,$c.customElements)(Mc);var Uc=f(N()),Ot=f(b());var Z=f(b());var J={textColor:Z.FtCssVariableFactory.extend("--ft-switch-text-color","",Z.designSystemVariables.colorOnSurfaceHigh),backgroundColor:Z.FtCssVariableFactory.extend("--ft-switch-background-color","",Z.designSystemVariables.colorSurface),selectedTextColor:Z.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",Z.designSystemVariables.colorPrimary),selectedBackgroundColor:Z.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",Z.designSystemVariables.colorPrimary),borderColor:Z.FtCssVariableFactory.extend("--ft-switch-border-color","",Z.designSystemVariables.colorOutline),borderRadius:Z.FtCssVariableFactory.extend("--ft-switch-border-radius","",Z.designSystemVariables.borderRadiusL),fontSize:Z.FtCssVariableFactory.extend("--ft-switch-font-size","",Ct.fontSize),iconSize:Z.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:Z.FtCssVariableFactory.extend("--ft-switch-text-color","",Z.designSystemVariables.colorOnSurfaceMedium),rippleColor:Z.FtCssVariableFactory.extend("--ft-switch-ripple-color","",Z.designSystemVariables.colorPrimary),outlineColor:Z.FtCssVariableFactory.extend("--ft-switch-outline-color","",Z.designSystemVariables.colorPrimary)};var pt={borderRadiusLeft:Ot.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Ot.designSystemVariables.borderRadiusL),borderRadiusRight:Ot.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Ot.designSystemVariables.borderRadiusL),borderWidthLeft:Ot.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ot.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ot.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Fc=Uc.css`
337
337
  .ft-switch-option {
338
338
  position: relative;
339
339
  display: inline-block;
@@ -421,14 +421,14 @@
421
421
  .ft-switch-option--selected ft-icon {
422
422
  color: ${J.selectedTextColor};
423
423
  }
424
- `;var le=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},zo=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},Wo=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},rt=class extends Vr.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Wo(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(jr.html`
424
+ `;var ae=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Wo=class extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}},Ko=class extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}},rt=class extends zr.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Ko(this.selected))}render(){let t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip(Vr.html`
425
425
  <label part="label" for="input" class="${(0,Bc.classMap)(t)}"
426
426
  @click=${this.onChange}>
427
427
  <div class="ft-switch-option--content">
428
428
  <ft-ripple part="ripple" class="ft-switch-option--ripple"></ft-ripple>
429
429
  <ft-typography part="text"
430
430
  variant="button"
431
- class="ft-switch-option--label ${Vr.isSafari?"ft-safari-ellipsis-fix":""}"
431
+ class="ft-switch-option--label ${zr.isSafari?"ft-safari-ellipsis-fix":""}"
432
432
  ?hidden=${!this.hasTextContent()}>
433
433
  <slot @slotchange=${this.onSlotchange}></slot>
434
434
  </ft-typography>
@@ -437,22 +437,22 @@
437
437
  </label>
438
438
  <input id="input" type="radio" class="ft-switch-option--input"
439
439
  .checked=${this.selected}>
440
- `)}addTooltip(t){return this.getLabel().trim().length===0?t:jr.html`
440
+ `)}addTooltip(t){return this.getLabel().trim().length===0?t:Vr.html`
441
441
  <ft-tooltip part="tooltip"
442
442
  text="${this.getLabel()}"
443
443
  position="${this.tooltipPosition}">
444
444
  ${t}
445
445
  </ft-tooltip>
446
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new zo(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?jr.html`
446
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new Wo(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?Vr.html`
447
447
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
448
- `:jr.nothing}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};rt.elementDefinitions={"ft-ripple":$,"ft-typography":Q,"ft-tooltip":tt,"ft-icon":et};rt.styles=[Vr.safariEllipsisFix,Fc];le([(0,Dt.property)()],rt.prototype,"value",void 0);le([(0,Dt.property)()],rt.prototype,"icon",void 0);le([(0,Dt.property)()],rt.prototype,"iconVariant",void 0);le([(0,Dt.property)()],rt.prototype,"label",void 0);le([(0,Dt.property)()],rt.prototype,"tooltipPosition",void 0);le([(0,Dt.property)({type:Boolean,reflect:!0})],rt.prototype,"selected",void 0);le([(0,Dt.property)({type:Boolean})],rt.prototype,"trailingIcon",void 0);le([(0,Dt.property)({type:Boolean})],rt.prototype,"unselectable",void 0);le([(0,Dt.query)(".ft-switch-option--content slot")],rt.prototype,"slottedContent",void 0);le([(0,Dt.query)(".ft-switch-option--input")],rt.prototype,"input",void 0);le([(0,Dt.state)()],rt.prototype,"isFocused",void 0);var cr=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Ko=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Rt=class extends Ee.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return vn.html`
448
+ `:Vr.nothing}getTextContent(){var t,r;return(r=(t=this.slottedContent)===null||t===void 0?void 0:t.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};rt.elementDefinitions={"ft-ripple":$,"ft-typography":Q,"ft-tooltip":tt,"ft-icon":et};rt.styles=[zr.safariEllipsisFix,Fc];ae([(0,Dt.property)()],rt.prototype,"value",void 0);ae([(0,Dt.property)()],rt.prototype,"icon",void 0);ae([(0,Dt.property)()],rt.prototype,"iconVariant",void 0);ae([(0,Dt.property)()],rt.prototype,"label",void 0);ae([(0,Dt.property)()],rt.prototype,"tooltipPosition",void 0);ae([(0,Dt.property)({type:Boolean,reflect:!0})],rt.prototype,"selected",void 0);ae([(0,Dt.property)({type:Boolean})],rt.prototype,"trailingIcon",void 0);ae([(0,Dt.property)({type:Boolean})],rt.prototype,"unselectable",void 0);ae([(0,Dt.query)(".ft-switch-option--content slot")],rt.prototype,"slottedContent",void 0);ae([(0,Dt.query)(".ft-switch-option--input")],rt.prototype,"input",void 0);ae([(0,Dt.state)()],rt.prototype,"isFocused",void 0);var cr=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Go=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Rt=class extends we.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var t;return(t=this.selectedOption)===null||t===void 0?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach(r=>r.unselectable=this.unselectable)}render(){let t={"ft-switch":!0,"ft-switch--dense":this.dense};return vn.html`
449
449
  <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,Hc.classMap)(t)}" role="radiogroup" aria-label="${this.label}">
450
450
  <slot @slotchange=${this.onSlotchange}
451
451
  @option-change=${this.onOptionChangeByScript}
452
452
  @option-change-by-user=${this.onOptionChangeByUser}
453
453
  ></slot>
454
454
  </div>
455
- `}onKeyDown(t){let r;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),t.key==" "&&(r=this.options.indexOf(t.target)),r!=null&&(t.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(r=>{r instanceof rt&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(t){var r;(r=t.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),t.setAttribute("tabindex","0"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let r=t.target;this.onOptionChange(r)}onOptionChangeByUser(t){var r;t.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(t.target),this.dispatchEvent(new Ko((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(t.isFocused=t===this.selectedOption)})}};Rt.elementDefinitions={};Rt.styles=vn.css`
455
+ `}onKeyDown(t){let r;(t.key=="ArrowDown"||t.key=="ArrowRight")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(t.key=="ArrowUp"||t.key=="ArrowLeft")&&(r=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),t.key==" "&&(r=this.options.indexOf(t.target)),r!=null&&(t.preventDefault(),this.options[this.fixIndex(r)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(r)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],(t=this.slottedContent)===null||t===void 0||t.assignedElements().forEach(r=>{r instanceof rt&&this.registerOption(r)}),this.selectedOption=this.options.find(r=>r.selected)}registerOption(t){var r;(r=t.shadowRoot)===null||r===void 0||r.querySelectorAll("input").forEach(i=>{i.setAttribute("tabindex","-1")}),t.setAttribute("tabindex","0"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let r=t.target;this.onOptionChange(r)}onOptionChangeByUser(t){var r;t.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(t.target),this.dispatchEvent(new Go((r=this.selectedOption)===null||r===void 0?void 0:r.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find(r=>r.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(t=>{t.selected=t===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(t.isFocused=t===this.selectedOption)})}};Rt.elementDefinitions={};Rt.styles=vn.css`
456
456
  :host {
457
457
  display: inline-block;
458
458
  }
@@ -468,25 +468,25 @@
468
468
  }
469
469
 
470
470
  .ft-switch slot::slotted(ft-switch-option) {
471
- ${(0,Ee.setVariable)(pt.borderRadiusLeft,"0")};
472
- ${(0,Ee.setVariable)(pt.borderRadiusRight,"0")};
473
- ${(0,Ee.setVariable)(pt.borderWidthLeft,"0")};
471
+ ${(0,we.setVariable)(pt.borderRadiusLeft,"0")};
472
+ ${(0,we.setVariable)(pt.borderRadiusRight,"0")};
473
+ ${(0,we.setVariable)(pt.borderWidthLeft,"0")};
474
474
  }
475
475
 
476
476
  .ft-switch slot::slotted(ft-switch-option:first-child) {
477
- ${(0,Ee.setVariable)(pt.borderRadiusLeft,J.borderRadius)};
478
- ${(0,Ee.setVariable)(pt.borderWidthLeft,"1px")};
477
+ ${(0,we.setVariable)(pt.borderRadiusLeft,J.borderRadius)};
478
+ ${(0,we.setVariable)(pt.borderWidthLeft,"1px")};
479
479
  }
480
480
 
481
481
  .ft-switch slot::slotted(ft-switch-option:last-child) {
482
- ${(0,Ee.setVariable)(pt.borderRadiusRight,J.borderRadius)};
482
+ ${(0,we.setVariable)(pt.borderRadiusRight,J.borderRadius)};
483
483
  }
484
484
 
485
485
  .ft-switch--dense slot::slotted(ft-switch-option) {
486
486
  --switch-internal-vertical-padding: 2px;
487
487
  --switch-internal-horizontal-padding: 4px;
488
488
  }
489
- `;cr([(0,he.property)({type:Boolean})],Rt.prototype,"dense",void 0);cr([(0,he.property)({type:Boolean})],Rt.prototype,"unselectable",void 0);cr([(0,he.property)()],Rt.prototype,"label",void 0);cr([(0,he.query)(".ft-switch slot")],Rt.prototype,"slottedContent",void 0);cr([(0,he.state)()],Rt.prototype,"selectedOption",void 0);cr([(0,he.state)()],Rt.prototype,"displayFocusWhenUsingKeyboard",void 0);cr([(0,he.query)(".ft-switch")],Rt.prototype,"ftSwitchDiv",void 0);var Vc=f(b());var jc={"ft-switch":Rt,"ft-switch-option":rt};(0,Vc.customElements)(jc);var Kc=f(D()),U=f(b());var zc=f(D()),j=f(b());var C={fontSize:j.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:j.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:j.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:j.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:j.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:j.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:j.FtCssVariableFactory.extend("--ft-input-label-border-color","",j.designSystemVariables.colorOutline),textColor:j.FtCssVariableFactory.extend("--ft-input-label-text-color","",j.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:j.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",j.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:j.FtCssVariableFactory.extend("--ft-input-label-background-color","",j.designSystemVariables.colorSurface),borderRadius:j.FtCssVariableFactory.extend("--ft-input-label-border-radius","",j.designSystemVariables.borderRadiusS),colorError:j.FtCssVariableFactory.external(j.designSystemVariables.colorError,"Design system")},Wc=zc.css`
489
+ `;cr([(0,pe.property)({type:Boolean})],Rt.prototype,"dense",void 0);cr([(0,pe.property)({type:Boolean})],Rt.prototype,"unselectable",void 0);cr([(0,pe.property)()],Rt.prototype,"label",void 0);cr([(0,pe.query)(".ft-switch slot")],Rt.prototype,"slottedContent",void 0);cr([(0,pe.state)()],Rt.prototype,"selectedOption",void 0);cr([(0,pe.state)()],Rt.prototype,"displayFocusWhenUsingKeyboard",void 0);cr([(0,pe.query)(".ft-switch")],Rt.prototype,"ftSwitchDiv",void 0);var Vc=f(b());var jc={"ft-switch":Rt,"ft-switch-option":rt};(0,Vc.customElements)(jc);var Kc=f(N()),U=f(b());var zc=f(N()),V=f(b());var C={fontSize:V.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:V.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:V.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:V.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:V.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:V.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:V.FtCssVariableFactory.extend("--ft-input-label-border-color","",V.designSystemVariables.colorOutline),textColor:V.FtCssVariableFactory.extend("--ft-input-label-text-color","",V.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:V.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",V.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:V.FtCssVariableFactory.extend("--ft-input-label-background-color","",V.designSystemVariables.colorSurface),borderRadius:V.FtCssVariableFactory.extend("--ft-input-label-border-radius","",V.designSystemVariables.borderRadiusS),colorError:V.FtCssVariableFactory.external(V.designSystemVariables.colorError,"Design system")},Wc=zc.css`
490
490
  .ft-input-label {
491
491
  position: absolute;
492
492
  inset: 0;
@@ -537,8 +537,8 @@
537
537
  transition: font-size 250ms, line-height 250ms, color 250ms;
538
538
  max-width: calc(${C.labelMaxWidth} - 2 * (${C.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
539
539
  text-overflow: ellipsis;
540
- ${(0,j.setVariable)($t.fontSize,C.fontSize)};
541
- ${(0,j.setVariable)($t.lineHeight,C.fontSize)};
540
+ ${(0,V.setVariable)($t.fontSize,C.fontSize)};
541
+ ${(0,V.setVariable)($t.lineHeight,C.fontSize)};
542
542
  }
543
543
 
544
544
  .ft-input-label--in-error .ft-input-label--text {
@@ -570,8 +570,8 @@
570
570
  }
571
571
 
572
572
  .ft-input-label--raised .ft-input-label--text {
573
- ${(0,j.setVariable)($t.fontSize,C.raisedFontSize)};
574
- ${(0,j.setVariable)($t.lineHeight,C.raisedFontSize)};
573
+ ${(0,V.setVariable)($t.fontSize,C.raisedFontSize)};
574
+ ${(0,V.setVariable)($t.lineHeight,C.raisedFontSize)};
575
575
  }
576
576
 
577
577
  .ft-input-label--raised .ft-input-label--floating-text {
@@ -608,7 +608,7 @@
608
608
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
609
609
  border-top: none;
610
610
  }
611
- `;var F={fontSize:U.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:U.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:U.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:U.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:U.FtCssVariableFactory.extend("--ft-text-area-helper-color","",U.designSystemVariables.colorOnSurfaceMedium),colorPrimary:U.FtCssVariableFactory.external(U.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:U.FtCssVariableFactory.external(U.designSystemVariables.borderRadiusS,"Design system"),colorError:U.FtCssVariableFactory.external(U.designSystemVariables.colorError,"Design system")},Gc=Kc.css`
611
+ `;var B={fontSize:U.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:U.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:U.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:U.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:U.FtCssVariableFactory.extend("--ft-text-area-helper-color","",U.designSystemVariables.colorOnSurfaceMedium),colorPrimary:U.FtCssVariableFactory.external(U.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:U.FtCssVariableFactory.external(U.designSystemVariables.borderRadiusS,"Design system"),colorError:U.FtCssVariableFactory.external(U.designSystemVariables.colorError,"Design system")},Gc=Kc.css`
612
612
  *:focus {
613
613
  outline: none;
614
614
  }
@@ -620,10 +620,10 @@
620
620
  }
621
621
 
622
622
  ft-input-label {
623
- ${(0,U.setVariable)(C.fontSize,F.fontSize)};
624
- ${(0,U.setVariable)(C.raisedFontSize,F.labelSize)};
625
- ${(0,U.setVariable)(C.verticalSpacing,F.verticalSpacing)};
626
- ${(0,U.setVariable)(C.horizontalSpacing,F.horizontalSpacing)};
623
+ ${(0,U.setVariable)(C.fontSize,B.fontSize)};
624
+ ${(0,U.setVariable)(C.raisedFontSize,B.labelSize)};
625
+ ${(0,U.setVariable)(C.verticalSpacing,B.verticalSpacing)};
626
+ ${(0,U.setVariable)(C.horizontalSpacing,B.horizontalSpacing)};
627
627
  }
628
628
 
629
629
  .ft-text-area--main-panel {
@@ -654,12 +654,12 @@
654
654
  align-self: stretch;
655
655
  resize: none;
656
656
 
657
- ${(0,U.setVariable)(Wt.fontSize,F.fontSize)};
658
- ${(0,U.setVariable)(Wt.lineHeight,F.fontSize)};
659
- color: ${F.colorOnSurface};
657
+ ${(0,U.setVariable)(Wt.fontSize,B.fontSize)};
658
+ ${(0,U.setVariable)(Wt.lineHeight,B.fontSize)};
659
+ color: ${B.colorOnSurface};
660
660
 
661
- padding: 0 ${F.horizontalSpacing};
662
- margin: calc(${F.verticalSpacing} + ${F.labelSize} / 2) 0 ${F.verticalSpacing} 0;
661
+ padding: 0 ${B.horizontalSpacing};
662
+ margin: calc(${B.verticalSpacing} + ${B.labelSize} / 2) 0 ${B.verticalSpacing} 0;
663
663
 
664
664
  border: none;
665
665
  background: none;
@@ -668,7 +668,7 @@
668
668
  }
669
669
 
670
670
  .ft-text-area--disabled .ft-text-area--input {
671
- color: ${F.colorOnSurfaceDisabled};
671
+ color: ${B.colorOnSurfaceDisabled};
672
672
  }
673
673
 
674
674
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -676,39 +676,39 @@
676
676
  }
677
677
 
678
678
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
679
- ${(0,U.setVariable)(C.borderColor,F.colorPrimary)};
680
- ${(0,U.setVariable)(C.textColor,F.colorPrimary)};
679
+ ${(0,U.setVariable)(C.borderColor,B.colorPrimary)};
680
+ ${(0,U.setVariable)(C.textColor,B.colorPrimary)};
681
681
  }
682
682
 
683
683
  .ft-text-area--filled .ft-text-area--input-panel {
684
- border-radius: ${F.borderRadiusS} ${F.borderRadiusS} 0 0;
684
+ border-radius: ${B.borderRadiusS} ${B.borderRadiusS} 0 0;
685
685
  }
686
686
 
687
687
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
688
688
  align-self: stretch;
689
- margin-bottom: ${F.verticalSpacing};
690
- margin-top: calc(${F.labelSize} + 2 * ${F.verticalSpacing});
689
+ margin-bottom: ${B.verticalSpacing};
690
+ margin-top: calc(${B.labelSize} + 2 * ${B.verticalSpacing});
691
691
  }
692
692
 
693
693
  .ft-text-area--outlined .ft-text-area--input-panel {
694
- border-radius: ${F.borderRadiusS};
694
+ border-radius: ${B.borderRadiusS};
695
695
  }
696
696
 
697
697
  .ft-text-area--helper-text {
698
- padding: 0 12px 0 ${F.horizontalSpacing};
699
- color: ${F.helperColor};
698
+ padding: 0 12px 0 ${B.horizontalSpacing};
699
+ color: ${B.helperColor};
700
700
  }
701
701
 
702
702
  .ft-text-area--in-error .ft-text-area--input,
703
703
  .ft-text-area--in-error .ft-text-area--helper-text {
704
- color: ${F.colorError};
704
+ color: ${B.colorError};
705
705
  }
706
706
 
707
707
  ft-resizer {
708
708
  position: absolute;
709
709
  bottom: 0;
710
710
  }
711
- `;var An=f(D()),ce=f(B()),ou=f(ye()),ge=f(b());var bn=f(D()),Bt=f(B()),xn=f(b());var Yc=f(D()),zr=f(b()),qc={colorOutline:zr.FtCssVariableFactory.external(zr.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:zr.FtCssVariableFactory.external(zr.designSystemVariables.colorOnSurfaceMedium,"Design system")},Xc=Yc.css`
711
+ `;var An=f(N()),le=f(H()),ou=f(be()),he=f(b());var bn=f(N()),Bt=f(H()),xn=f(b());var Yc=f(N()),Wr=f(b()),qc={colorOutline:Wr.FtCssVariableFactory.external(Wr.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:Wr.FtCssVariableFactory.external(Wr.designSystemVariables.colorOnSurfaceMedium,"Design system")},Xc=Yc.css`
712
712
  :host {
713
713
  display: block;
714
714
  }
@@ -727,7 +727,7 @@
727
727
  [role="button"][aria-pressed="true"] ft-icon{
728
728
  color: ${qc.colorOnSurfaceMedium};
729
729
  }
730
- `;var me=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},yn=class extends CustomEvent{constructor(t,r){super("resize",{detail:{width:t,height:r}})}},mt=class extends xn.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=It.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return bn.html`
730
+ `;var fe=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},yn=class extends CustomEvent{constructor(t,r){super("resize",{detail:{width:t,height:r}})}},mt=class extends xn.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=It.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return bn.html`
731
731
  <style>
732
732
  .ft-resizer {
733
733
  cursor: ${(0,bn.unsafeCSS)(this.cursor)}
@@ -742,19 +742,19 @@
742
742
  @keydown=${this.initKeydownPress}>
743
743
  <ft-icon .variant=${this.iconVariant} .value=${this.icon} focusable="false" aria-hidden="true"></ft-icon>
744
744
  </div>
745
- `}initDragFromMouse(t){t.detail>0&&this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initKeydownPress(t){let r=t.key;["Enter"," ","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(t.preventDefault(),t.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight;let n=t.currentTarget;r==="Enter"||r===" "?(this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())):r==="Escape"&&(this.isAriaPressed=!1,n.setAttribute("aria-pressed",this.isAriaPressed.toString())),this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&this.dispatchEvent(new yn(this.fixedWidth,this.fixedHeight)))}initDrag(t,r){this.dragging=!0,this.startX=t,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,r){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new yn(i,n))}};mt.elementDefinitions={"ft-icon":et};mt.styles=[xn.noTextSelect,Xc];me([(0,Bt.property)({type:Number})],mt.prototype,"initialWidth",void 0);me([(0,Bt.property)({type:Number})],mt.prototype,"initialHeight",void 0);me([(0,Bt.property)()],mt.prototype,"icon",void 0);me([(0,Bt.property)()],mt.prototype,"iconVariant",void 0);me([(0,Bt.property)()],mt.prototype,"cursor",void 0);me([(0,Bt.property)()],mt.prototype,"ariaLabel",void 0);me([(0,Bt.state)()],mt.prototype,"dragging",void 0);me([(0,Bt.state)()],mt.prototype,"isAriaPressed",void 0);me([(0,Bt.eventOptions)({passive:!0})],mt.prototype,"initDragFromMouse",null);me([(0,Bt.eventOptions)({passive:!0})],mt.prototype,"initDragFromTouch",null);var Jc=f(b());var Zc={"ft-resizer":mt};(0,Jc.customElements)(Zc);var Sn=f(B());var Go=f(D()),qo=f(B());function Qc(e,t,r){return e?t(e):r?.(e)}var eu=f(ye()),ru=f(b()),tu=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},ur=class extends ru.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return Go.html`
745
+ `}initDragFromMouse(t){t.detail>0&&this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initKeydownPress(t){let r=t.key;["Enter"," ","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&(t.preventDefault(),t.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight;let n=t.currentTarget;r==="Enter"||r===" "?(this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())):r==="Escape"&&(this.isAriaPressed=!1,n.setAttribute("aria-pressed",this.isAriaPressed.toString())),this.isAriaPressed&&(r==="ArrowLeft"?this.fixedWidth-=10:r==="ArrowRight"?this.fixedWidth+=10:r==="ArrowUp"?this.fixedHeight-=10:r==="ArrowDown"&&(this.fixedHeight+=10),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(r)&&this.dispatchEvent(new yn(this.fixedWidth,this.fixedHeight)))}initDrag(t,r){this.dragging=!0,this.startX=t,this.startY=r,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,r){let i=this.fixedWidth+t-this.startX,n=this.fixedHeight+r-this.startY;this.dispatchEvent(new yn(i,n))}};mt.elementDefinitions={"ft-icon":et};mt.styles=[xn.noTextSelect,Xc];fe([(0,Bt.property)({type:Number})],mt.prototype,"initialWidth",void 0);fe([(0,Bt.property)({type:Number})],mt.prototype,"initialHeight",void 0);fe([(0,Bt.property)()],mt.prototype,"icon",void 0);fe([(0,Bt.property)()],mt.prototype,"iconVariant",void 0);fe([(0,Bt.property)()],mt.prototype,"cursor",void 0);fe([(0,Bt.property)()],mt.prototype,"ariaLabel",void 0);fe([(0,Bt.state)()],mt.prototype,"dragging",void 0);fe([(0,Bt.state)()],mt.prototype,"isAriaPressed",void 0);fe([(0,Bt.eventOptions)({passive:!0})],mt.prototype,"initDragFromMouse",null);fe([(0,Bt.eventOptions)({passive:!0})],mt.prototype,"initDragFromTouch",null);var Jc=f(b());var Zc={"ft-resizer":mt};(0,Jc.customElements)(Zc);var Sn=f(H());var qo=f(N()),Yo=f(H());function Qc(e,t,r){return e?t(e):r?.(e)}var eu=f(be()),ru=f(b()),tu=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},ur=class extends ru.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return qo.html`
746
746
  <div class="${(0,eu.classMap)(this.inputLabelClasses)}">
747
- ${Qc(this.text,()=>Go.html`
747
+ ${Qc(this.text,()=>qo.html`
748
748
  <div class="ft-input-label--text ft-typography--caption">
749
749
  <label class="ft-input-label--floating-text">${this.text}</label>
750
750
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
751
751
  </div>
752
752
  `)}
753
753
  </div>
754
- `}};ur.elementDefinitions={};tu([(0,qo.property)({type:String})],ur.prototype,"text",void 0);tu([(0,qo.property)({type:Boolean})],ur.prototype,"raised",void 0);var Yo=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Ht=class extends ur{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Ht.elementDefinitions={};Ht.styles=[Ri,Wc];Yo([(0,Sn.property)({type:Boolean})],Ht.prototype,"outlined",void 0);Yo([(0,Sn.property)({type:Boolean})],Ht.prototype,"error",void 0);Yo([(0,Sn.property)({type:Boolean})],Ht.prototype,"disabled",void 0);var nu=f(b());var iu={"ft-input-label":Ht};(0,nu.customElements)(iu);var Zt=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},ut=class extends(0,ge.toFtFormComponent)(ge.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return An.html`
754
+ `}};ur.elementDefinitions={};tu([(0,Yo.property)({type:String})],ur.prototype,"text",void 0);tu([(0,Yo.property)({type:Boolean})],ur.prototype,"raised",void 0);var Xo=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Ht=class extends ur{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};Ht.elementDefinitions={};Ht.styles=[Li,Wc];Xo([(0,Sn.property)({type:Boolean})],Ht.prototype,"outlined",void 0);Xo([(0,Sn.property)({type:Boolean})],Ht.prototype,"error",void 0);Xo([(0,Sn.property)({type:Boolean})],Ht.prototype,"disabled",void 0);var nu=f(b());var iu={"ft-input-label":Ht};(0,nu.customElements)(iu);var Zt=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},ut=class extends(0,he.toFtFormComponent)(he.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return An.html`
755
755
  <style>
756
756
  .ft-text-area--main-panel {
757
- height: calc(4 * ${F.verticalSpacing} + ${F.labelSize} + ${F.fontSize} + ${this.height}px);
757
+ height: calc(4 * ${B.verticalSpacing} + ${B.labelSize} + ${B.fontSize} + ${this.height}px);
758
758
  }
759
759
 
760
760
  ft-resizer {
@@ -796,7 +796,7 @@
796
796
  ${this.helper}
797
797
  </ft-typography>`:void 0}
798
798
  </div>
799
- `}setValue(t,r=!1){this.value=t,this.setFormValue(t),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(!this.maxHeight||this.maxHeight>0&&t.detail.height<this.maxHeight)&&(this.height=t.detail.height)}};ut.elementDefinitions={"ft-input-label":Ht,"ft-resizer":mt,"ft-ripple":$,"ft-typography":Q};ut.styles=[wr,Gc];Zt([(0,ce.property)({type:String})],ut.prototype,"label",void 0);Zt([(0,ce.property)({reflect:!0})],ut.prototype,"value",void 0);Zt([(0,ce.property)({type:String})],ut.prototype,"helper",void 0);Zt([(0,ce.property)({type:Boolean})],ut.prototype,"outlined",void 0);Zt([(0,ce.property)({type:Boolean})],ut.prototype,"disabled",void 0);Zt([(0,ce.property)({type:Boolean})],ut.prototype,"error",void 0);Zt([(0,ge.numberProperty)({reflect:!0})],ut.prototype,"height",void 0);Zt([(0,ge.numberProperty)()],ut.prototype,"maxHeight",void 0);Zt([(0,ce.query)("textarea")],ut.prototype,"textarea",void 0);Zt([(0,ce.state)()],ut.prototype,"focused",void 0);Zt([(0,ge.ignoreComposingEvents)()],ut.prototype,"onKeyDown",null);Zt([(0,ge.ignoreComposingEvents)()],ut.prototype,"liveUpdateValueFromInputField",null);var au=f(b());var su={"ft-text-area":ut};(0,au.customElements)(su);var ku=f(Xo());var Jt=f(b());var cu=f(D()),Ai=f(b()),dr={color:Ai.FtCssVariableFactory.extend("--ft-loader-color","",Ai.designSystemVariables.colorPrimary),size:Ai.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},uu=cu.css`
799
+ `}setValue(t,r=!1){this.value=t,this.setFormValue(t),r&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){(t.key==="Enter"||t.key===" ")&&t.stopPropagation()}updateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=((t=this.textarea)===null||t===void 0?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(!this.maxHeight||this.maxHeight>0&&t.detail.height<this.maxHeight)&&(this.height=t.detail.height)}};ut.elementDefinitions={"ft-input-label":Ht,"ft-resizer":mt,"ft-ripple":$,"ft-typography":Q};ut.styles=[wr,Gc];Zt([(0,le.property)({type:String})],ut.prototype,"label",void 0);Zt([(0,le.property)({reflect:!0})],ut.prototype,"value",void 0);Zt([(0,le.property)({type:String})],ut.prototype,"helper",void 0);Zt([(0,le.property)({type:Boolean})],ut.prototype,"outlined",void 0);Zt([(0,le.property)({type:Boolean})],ut.prototype,"disabled",void 0);Zt([(0,le.property)({type:Boolean})],ut.prototype,"error",void 0);Zt([(0,he.numberProperty)({reflect:!0})],ut.prototype,"height",void 0);Zt([(0,he.numberProperty)()],ut.prototype,"maxHeight",void 0);Zt([(0,le.query)("textarea")],ut.prototype,"textarea",void 0);Zt([(0,le.state)()],ut.prototype,"focused",void 0);Zt([(0,he.ignoreComposingEvents)()],ut.prototype,"onKeyDown",null);Zt([(0,he.ignoreComposingEvents)()],ut.prototype,"liveUpdateValueFromInputField",null);var au=f(b());var su={"ft-text-area":ut};(0,au.customElements)(su);var Pu=f(Zo());var ve=f(b());var cu=f(N()),Ei=f(b()),dr={color:Ei.FtCssVariableFactory.extend("--ft-loader-color","",Ei.designSystemVariables.colorPrimary),size:Ei.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},uu=cu.css`
800
800
  :host {
801
801
  line-height: 0;
802
802
  }
@@ -865,14 +865,14 @@
865
865
  transform: translate(calc(0.35 * ${dr.size}), 0);
866
866
  }
867
867
  }
868
- `;var du=f(D()),pu=f(b());var pr=class extends pu.FtLitElement{render(){return du.html`
868
+ `;var du=f(N()),pu=f(b());var pr=class extends pu.FtLitElement{render(){return du.html`
869
869
  <div class="ft-loader">
870
870
  <div></div>
871
871
  <div></div>
872
872
  <div></div>
873
873
  <div></div>
874
874
  </div>
875
- `}};pr.styles=uu;var hu=f(b());var fu={"ft-loader":pr};(0,hu.customElements)(fu);var ze=f(D()),Jo=f(ye()),V=f(B());var Ve=e=>e??at;var vu=f(D()),R=f(b());var mu=R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorPrimary),H={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorSurface),borderRadius:R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusL),color:mu,fontSize:R.FtCssVariableFactory.extend("--ft-button-font-size","",Ct.fontSize),iconSize:R.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:R.FtCssVariableFactory.extend("--ft-button-ripple-color","",mu),verticalPadding:R.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:R.FtCssVariableFactory.external(R.designSystemVariables.colorOpacityDisabled,"Design system")},gu=R.FtCssVariableFactory.extend("--ft-button-primary-color","",R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorOnPrimary)),Zo={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-primary-background-color","",R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorPrimary)),color:gu,rippleColor:R.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",gu)},ue={borderRadius:R.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusM)),verticalPadding:R.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},yu=vu.css`
875
+ `}};pr.styles=uu;var hu=f(b());var fu={"ft-loader":pr};(0,hu.customElements)(fu);var ze=f(N()),En=f(be()),F=f(H());var me=e=>e??at;var vu=f(N()),R=f(b());var mu=R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorPrimary),j={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorSurface),borderRadius:R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusL),color:mu,fontSize:R.FtCssVariableFactory.extend("--ft-button-font-size","",Ct.fontSize),iconSize:R.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:R.FtCssVariableFactory.extend("--ft-button-ripple-color","",mu),verticalPadding:R.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:R.FtCssVariableFactory.external(R.designSystemVariables.colorOpacityDisabled,"Design system")},gu=R.FtCssVariableFactory.extend("--ft-button-primary-color","",R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorOnPrimary)),Jo={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-primary-background-color","",R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorPrimary)),color:gu,rippleColor:R.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",gu)},ge={borderRadius:R.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusM)),verticalPadding:R.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},yu=vu.css`
876
876
  :host {
877
877
  display: inline-block;
878
878
  max-width: 100%;
@@ -883,7 +883,7 @@
883
883
  box-shadow: 0px 0px 0px transparent;
884
884
  border: 0px solid transparent;
885
885
  text-shadow: 0px 0px 0px transparent;
886
- font-size: ${H.fontSize};
886
+ font-size: ${j.fontSize};
887
887
  text-decoration: none;
888
888
  }
889
889
 
@@ -917,32 +917,31 @@
917
917
  border: none;
918
918
  pointer-events: auto;
919
919
 
920
- --button-internal-line-height: max(calc(${H.fontSize} + 2px), ${H.iconSize});
921
- --button-internal-color: ${H.color};
922
- ${(0,R.setVariable)(Tt.size,H.iconSize)};
923
- ${(0,R.setVariable)(lt.color,H.rippleColor)};
924
- ${(0,R.setVariable)(lt.borderRadius,H.borderRadius)};
920
+ --button-internal-line-height: max(calc(${j.fontSize} + 2px), ${j.iconSize});
921
+ --button-internal-color: ${j.color};
922
+ ${(0,R.setVariable)(Tt.size,j.iconSize)};
923
+ ${(0,R.setVariable)(lt.color,j.rippleColor)};
924
+ ${(0,R.setVariable)(lt.borderRadius,j.borderRadius)};
925
925
 
926
- border-radius: ${H.borderRadius};
927
- padding: ${H.verticalPadding} ${H.horizontalPadding};
928
- background-color: ${H.backgroundColor};
926
+ border-radius: ${j.borderRadius};
927
+ padding: ${j.verticalPadding} ${j.horizontalPadding};
928
+ background-color: ${j.backgroundColor};
929
929
  color: var(--button-internal-color);
930
930
  }
931
931
 
932
932
  .ft-button.ft-button--outlined {
933
933
  border: 1px solid var(--button-internal-color);
934
- padding: calc(${H.verticalPadding} - 1px) calc(${H.horizontalPadding} - 1px);
934
+ padding: calc(${j.verticalPadding} - 1px) calc(${j.horizontalPadding} - 1px);
935
935
  }
936
936
 
937
937
  .ft-button.ft-button--dense {
938
- padding: ${ue.verticalPadding} ${ue.horizontalPadding};
939
- border-radius: ${ue.borderRadius};
940
- gap: ${ue.iconPadding};
941
- ${(0,R.setVariable)(lt.borderRadius,ue.borderRadius)};
938
+ padding: ${ge.verticalPadding} ${ge.horizontalPadding};
939
+ border-radius: ${ge.borderRadius};
940
+ ${(0,R.setVariable)(lt.borderRadius,ge.borderRadius)};
942
941
  }
943
942
 
944
943
  .ft-button.ft-button--dense.ft-button--outlined {
945
- padding: calc(${ue.verticalPadding} - 1px) calc(${ue.horizontalPadding} - 1px);
944
+ padding: calc(${ge.verticalPadding} - 1px) calc(${ge.horizontalPadding} - 1px);
946
945
  }
947
946
 
948
947
  .ft-button:not([disabled]):hover {
@@ -950,22 +949,22 @@
950
949
  }
951
950
 
952
951
  .ft-button--round {
953
- border-radius: calc(var(--button-internal-line-height) / 2 + ${H.verticalPadding});
952
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${j.verticalPadding});
954
953
  }
955
954
 
956
955
  .ft-button--round.ft-button--dense {
957
- border-radius: calc(var(--button-internal-line-height) / 2 + ${ue.verticalPadding});
956
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${ge.verticalPadding});
958
957
  }
959
958
 
960
959
  .ft-button[disabled] {
961
960
  filter: grayscale(1);
962
- opacity: ${H.opacityDisabled};
961
+ opacity: ${j.opacityDisabled};
963
962
  }
964
963
 
965
964
  .ft-button.ft-button--primary {
966
- background-color: ${Zo.backgroundColor};
967
- --button-internal-color: ${Zo.color};
968
- ${(0,R.setVariable)(lt.color,Zo.rippleColor)};
965
+ background-color: ${Jo.backgroundColor};
966
+ --button-internal-color: ${Jo.color};
967
+ ${(0,R.setVariable)(lt.color,Jo.rippleColor)};
969
968
  }
970
969
 
971
970
  .ft-button--label {
@@ -974,17 +973,17 @@
974
973
  white-space: nowrap;
975
974
  text-overflow: ellipsis;
976
975
  display: block;
977
- margin: 0 ${H.iconPadding};
976
+ margin: 0 ${j.iconPadding};
978
977
  ${(0,R.setVariable)(Ct.fontSize,"1em")};
979
978
  ${(0,R.setVariable)(Ct.lineHeight,"var(--button-internal-line-height)")};
980
979
  }
981
980
 
982
981
  .ft-button--dense .ft-button--label {
983
- margin: 0 ${ue.iconPadding};
982
+ margin: 0 ${ge.iconPadding};
984
983
  }
985
984
 
986
- .ft-button--label[hidden] {
987
- display: none;
985
+ .ft-button--label.ft-button--label-no-text {
986
+ margin: 0;
988
987
  }
989
988
 
990
989
  [part="icon"] {
@@ -993,13 +992,13 @@
993
992
  }
994
993
 
995
994
  .ft-button--label[hidden] + [part="icon"] {
996
- margin: 0 calc(${H.horizontalPadding} * -1);
997
- padding: 0 ${H.verticalPadding};
995
+ margin: 0 calc(${j.horizontalPadding} * -1);
996
+ padding: 0 ${j.verticalPadding};
998
997
  }
999
998
 
1000
999
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
1001
- margin: 0 calc(${ue.horizontalPadding} * -1);
1002
- padding: 0 ${ue.verticalPadding};
1000
+ margin: 0 calc(${ge.horizontalPadding} * -1);
1001
+ padding: 0 ${ge.verticalPadding};
1003
1002
  }
1004
1003
 
1005
1004
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -1007,10 +1006,10 @@
1007
1006
  }
1008
1007
 
1009
1008
  ft-loader {
1010
- ${(0,R.setVariable)(dr.size,H.iconSize)};
1009
+ ${(0,R.setVariable)(dr.size,j.iconSize)};
1011
1010
  ${(0,R.setVariable)(dr.color,"var(--button-internal-color)")};
1012
1011
  }
1013
- `;var X=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},M=class extends(0,Jt.toFtFormComponent)(Jt.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-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.label="",this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,i;let n=ze.html`
1012
+ `;var z=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},I=class e extends(0,ve.toFtFormComponent)(ve.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-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",t=>{var r;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var t,r,i;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":ve.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=ze.html`
1014
1013
  <ft-ripple part="ripple"
1015
1014
  ?disabled=${this.isDisabled()}
1016
1015
  ?activated=${this.activated}
@@ -1018,32 +1017,31 @@
1018
1017
  <ft-typography part="label"
1019
1018
  variant="${gt.button}"
1020
1019
  element="span"
1021
- class="ft-button--label ${Jt.isSafari?"ft-safari-ellipsis-fix":""}"
1022
- ?hidden=${!this.hasTextContent()}>
1023
- <slot @slotchange=${this.onSlotchange}></slot>
1020
+ class="${(0,En.classMap)(n)}">
1021
+ <slot></slot>
1024
1022
  </ft-typography>
1025
1023
  ${this.resolveIcon()}
1026
- `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?ze.html`
1027
- <a href="${o}"
1024
+ `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?ze.html`
1025
+ <a href="${s}"
1028
1026
  target="${(t=this.target)!==null&&t!==void 0?t:"_self"}"
1029
1027
  part="button"
1030
- class="${(0,Jo.classMap)(this.buttonClasses)}"
1031
- aria-label="${(r=this.ariaLabel)!==null&&r!==void 0?r:this.getLabel()}"
1028
+ class="${(0,En.classMap)(this.buttonClasses)}"
1029
+ aria-label="${me((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
1032
1030
  ?disabled=${this.isDisabled()}>
1033
- ${n}
1031
+ ${o}
1034
1032
  </a>
1035
1033
  `:ze.html`
1036
1034
  <button part="button"
1037
- class="${(0,Jo.classMap)(this.buttonClasses)}"
1038
- aria-label="${(i=this.ariaLabel)!==null&&i!==void 0?i:this.getLabel()}"
1039
- aria-haspopup="${Ve(this.ariaHasPopup)}"
1040
- aria-pressed="${Ve(this.ariaPressed)}"
1035
+ class="${(0,En.classMap)(this.buttonClasses)}"
1036
+ aria-label="${me((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
1037
+ aria-haspopup="${me(this.ariaHasPopup)}"
1038
+ aria-pressed="${me(this.ariaPressed)}"
1041
1039
  ?disabled=${this.isDisabled()}>
1042
- ${n}
1040
+ ${o}
1043
1041
  </button>
1044
- `)}addTooltipIfNeeded(t){return this.getLabel().trim().length>0&&(this.forceTooltip||!this.hasTextContent()&&!this.hideTooltip)?ze.html`
1042
+ `)}addTooltipIfNeeded(t){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?ze.html`
1045
1043
  <ft-tooltip part="tooltip"
1046
- text="${this.getLabel()}"
1044
+ text="${this.label}"
1047
1045
  position="${this.tooltipPosition}">
1048
1046
  ${t}
1049
1047
  </ft-tooltip>
@@ -1052,7 +1050,7 @@
1052
1050
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
1053
1051
  `:ze.html`
1054
1052
  <slot part="icon" name="icon"></slot>
1055
- `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Jt.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};M.elementDefinitions={"ft-ripple":$,"ft-tooltip":tt,"ft-icon":et,"ft-loader":pr,"ft-typography":Q};M.styles=[Jt.safariEllipsisFix,yu,Jt.noTextSelect];X([(0,V.property)({type:Boolean})],M.prototype,"primary",void 0);X([(0,V.property)({type:Boolean})],M.prototype,"outlined",void 0);X([(0,V.property)({type:Boolean})],M.prototype,"dense",void 0);X([(0,V.property)({type:Boolean})],M.prototype,"round",void 0);X([(0,V.property)({type:Boolean})],M.prototype,"disabled",void 0);X([(0,V.property)()],M.prototype,"icon",void 0);X([(0,V.property)()],M.prototype,"iconVariant",void 0);X([(0,V.property)({type:Boolean})],M.prototype,"trailingIcon",void 0);X([(0,V.property)()],M.prototype,"label",void 0);X([(0,V.property)()],M.prototype,"type",void 0);X([(0,V.property)()],M.prototype,"href",void 0);X([(0,V.property)()],M.prototype,"target",void 0);X([(0,V.property)({type:Boolean})],M.prototype,"loading",void 0);X([(0,V.property)({attribute:"aria-label"})],M.prototype,"ariaLabel",void 0);X([(0,V.property)()],M.prototype,"ariaHasPopup",void 0);X([(0,V.property)({attribute:"aria-pressed"})],M.prototype,"ariaPressed",void 0);X([(0,V.property)()],M.prototype,"tooltipPosition",void 0);X([(0,V.property)({type:Boolean})],M.prototype,"hideTooltip",void 0);X([(0,V.property)({type:Boolean})],M.prototype,"forceTooltip",void 0);X([(0,V.property)({type:Boolean})],M.prototype,"activated",void 0);X([(0,V.query)(".ft-button")],M.prototype,"button",void 0);X([(0,V.query)(".ft-button--label slot")],M.prototype,"slottedContent",void 0);X([(0,V.query)("[part=tooltip]")],M.prototype,"tooltip",void 0);var xu=f(b());var bu={"ft-button":M};(0,xu.customElements)(bu);var N=He.build("integratedFeedbackComponent"),Su={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review",viewerFeedbackMainTitle:"Send feedback",viewerRatingSectionTitle:"Rate this content",viewerDichotomousRatingSectionTitle:"Did this content solve your problem?",viewerFeedbackSectionTitle:"Write your review"};var En=class extends CustomEvent{constructor(t){super("live-change",{detail:t})}},wn=class extends CustomEvent{constructor(t){super("change",{detail:t})}},Cn=class extends CustomEvent{constructor(t){super("invalid",{detail:t})}};var Au=f(D()),_=f(b());var P={fontSize:_.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:_.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:_.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:_.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:_.FtCssVariableFactory.extend("--ft-text-field-helper-color","",_.designSystemVariables.colorOnSurfaceMedium),colorPrimary:_.FtCssVariableFactory.external(_.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:_.FtCssVariableFactory.external(_.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:_.FtCssVariableFactory.external(_.designSystemVariables.borderRadiusS,"Design system"),colorError:_.FtCssVariableFactory.external(_.designSystemVariables.colorError,"Design system"),prefixColor:_.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",_.designSystemVariables.colorOnSurfaceMedium),iconColor:_.FtCssVariableFactory.extend("--ft-text-field-icon-color","",_.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:_.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:_.FtCssVariableFactory.extend("--ft-text-field-background-color","",_.designSystemVariables.colorSurface),colorOutline:_.FtCssVariableFactory.external(_.designSystemVariables.colorOutline,"Design system"),elevation02:_.FtCssVariableFactory.external(_.designSystemVariables.elevation02,"Design system"),suggestSize:_.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Eu=Au.css`
1053
+ `}focus(){var t;(t=this.button)===null||t===void 0||t.focus()}showTooltip(){var t;(t=this.tooltip)===null||t===void 0||t.show()}showTemporaryTooltip(t,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(t,r)}setTooltipManual(t){this.tooltip&&(this.tooltip.manual=t)}click(){var t;(t=this.button)===null||t===void 0||t.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(t){super.contentAvailableCallback(t),this.labelContainer&&e.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&e.labelsObserver.unobserve(this.labelContainer)}};I.elementDefinitions={"ft-ripple":$,"ft-tooltip":tt,"ft-icon":et,"ft-loader":pr,"ft-typography":Q};I.styles=[ve.safariEllipsisFix,yu,ve.noTextSelect];I.labelsObserver=new IntersectionObserver(e=>{for(let t of e){let r=t.target.getRootNode();r.host?r.host.hasTextContent=t.boundingClientRect.width>0:I.labelsObserver.unobserve(t.target)}});z([(0,F.property)({type:Boolean})],I.prototype,"primary",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"outlined",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"dense",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"round",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"disabled",void 0);z([(0,F.property)()],I.prototype,"icon",void 0);z([(0,F.property)()],I.prototype,"iconVariant",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"trailingIcon",void 0);z([(0,F.property)()],I.prototype,"label",void 0);z([(0,F.property)()],I.prototype,"type",void 0);z([(0,F.property)()],I.prototype,"href",void 0);z([(0,F.property)()],I.prototype,"target",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"loading",void 0);z([(0,F.property)({attribute:"aria-label"})],I.prototype,"ariaLabel",void 0);z([(0,F.property)()],I.prototype,"ariaHasPopup",void 0);z([(0,F.property)({attribute:"aria-pressed"})],I.prototype,"ariaPressed",void 0);z([(0,F.property)()],I.prototype,"tooltipPosition",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"hideTooltip",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"forceTooltip",void 0);z([(0,F.property)({type:Boolean})],I.prototype,"activated",void 0);z([(0,F.query)(".ft-button")],I.prototype,"button",void 0);z([(0,F.query)(".ft-button--label")],I.prototype,"labelContainer",void 0);z([(0,F.state)()],I.prototype,"hasTextContent",void 0);z([(0,F.query)(".ft-button--label slot")],I.prototype,"slottedContent",void 0);z([(0,F.query)("[part=tooltip]")],I.prototype,"tooltip",void 0);var xu=f(b());var bu={"ft-button":I};(0,xu.customElements)(bu);var M=je.build("integratedFeedbackComponent"),Su={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review",viewerFeedbackMainTitle:"Send feedback",viewerRatingSectionTitle:"Rate this content",viewerDichotomousRatingSectionTitle:"Did this content solve your problem?",viewerFeedbackSectionTitle:"Write your review"};var wn=class extends CustomEvent{constructor(t){super("live-change",{detail:t})}},Cn=class extends CustomEvent{constructor(t){super("change",{detail:t})}},_n=class extends CustomEvent{constructor(t){super("invalid",{detail:t})}};var Au=f(N()),_=f(b());var k={fontSize:_.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:_.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:_.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:_.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:_.FtCssVariableFactory.extend("--ft-text-field-helper-color","",_.designSystemVariables.colorOnSurfaceMedium),colorPrimary:_.FtCssVariableFactory.external(_.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:_.FtCssVariableFactory.external(_.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:_.FtCssVariableFactory.external(_.designSystemVariables.borderRadiusS,"Design system"),colorError:_.FtCssVariableFactory.external(_.designSystemVariables.colorError,"Design system"),prefixColor:_.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",_.designSystemVariables.colorOnSurfaceMedium),iconColor:_.FtCssVariableFactory.extend("--ft-text-field-icon-color","",_.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:_.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:_.FtCssVariableFactory.extend("--ft-text-field-background-color","",_.designSystemVariables.colorSurface),colorOutline:_.FtCssVariableFactory.external(_.designSystemVariables.colorOutline,"Design system"),elevation02:_.FtCssVariableFactory.external(_.designSystemVariables.elevation02,"Design system"),suggestSize:_.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},Eu=Au.css`
1056
1054
  *:focus {
1057
1055
  outline: none;
1058
1056
  }
@@ -1062,21 +1060,21 @@
1062
1060
  flex-direction: column;
1063
1061
  align-items: stretch;
1064
1062
  position: relative;
1065
- --text-field-internal-suggest-size: ${P.suggestSize};
1063
+ --text-field-internal-suggest-size: ${k.suggestSize};
1066
1064
  }
1067
1065
 
1068
1066
  ft-input-label {
1069
- ${(0,_.setVariable)(C.fontSize,P.fontSize)};
1070
- ${(0,_.setVariable)(C.raisedFontSize,P.labelSize)};
1071
- ${(0,_.setVariable)(C.verticalSpacing,P.verticalSpacing)};
1072
- ${(0,_.setVariable)(C.horizontalSpacing,P.horizontalSpacing)};
1073
- ${(0,_.setVariable)(C.backgroundColor,P.backgroundColor)};
1067
+ ${(0,_.setVariable)(C.fontSize,k.fontSize)};
1068
+ ${(0,_.setVariable)(C.raisedFontSize,k.labelSize)};
1069
+ ${(0,_.setVariable)(C.verticalSpacing,k.verticalSpacing)};
1070
+ ${(0,_.setVariable)(C.horizontalSpacing,k.horizontalSpacing)};
1071
+ ${(0,_.setVariable)(C.backgroundColor,k.backgroundColor)};
1074
1072
  }
1075
1073
 
1076
1074
  .ft-text-field--main-panel {
1077
1075
  position: relative;
1078
1076
  display: flex;
1079
- height: calc(4 * ${P.verticalSpacing} + ${P.labelSize} + ${P.fontSize});
1077
+ height: calc(4 * ${k.verticalSpacing} + ${k.labelSize} + ${k.fontSize});
1080
1078
  }
1081
1079
 
1082
1080
  .ft-text-field--input-panel {
@@ -1085,10 +1083,10 @@
1085
1083
  display: flex;
1086
1084
  align-items: center;
1087
1085
  overflow: hidden;
1088
- padding: 0 ${P.horizontalSpacing};
1086
+ padding: 0 ${k.horizontalSpacing};
1089
1087
 
1090
- ${(0,_.setVariable)(Wt.fontSize,P.fontSize)};
1091
- ${(0,_.setVariable)(Wt.lineHeight,P.fontSize)};
1088
+ ${(0,_.setVariable)(Wt.fontSize,k.fontSize)};
1089
+ ${(0,_.setVariable)(Wt.lineHeight,k.fontSize)};
1092
1090
  }
1093
1091
 
1094
1092
  .ft-text-field--input-panel ft-ripple {
@@ -1098,11 +1096,11 @@
1098
1096
 
1099
1097
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1100
1098
  align-items: flex-end;
1101
- padding: 0 ${P.horizontalSpacing} ${P.verticalSpacing} ${P.horizontalSpacing};
1099
+ padding: 0 ${k.horizontalSpacing} ${k.verticalSpacing} ${k.horizontalSpacing};
1102
1100
  }
1103
1101
 
1104
1102
  .ft-text-field--prefix {
1105
- color: ${P.prefixColor};
1103
+ color: ${k.prefixColor};
1106
1104
  margin-right: 2px;
1107
1105
  flex-shrink: 1;
1108
1106
  overflow: hidden;
@@ -1121,22 +1119,22 @@
1121
1119
  flex-shrink: 1;
1122
1120
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1123
1121
 
1124
- color: ${P.colorOnSurface};
1125
- padding: calc(2 * ${P.verticalSpacing}) 0;
1122
+ color: ${k.colorOnSurface};
1123
+ padding: calc(2 * ${k.verticalSpacing}) 0;
1126
1124
  border: none;
1127
1125
  background: none;
1128
1126
 
1129
1127
  &:-webkit-autofill,
1130
1128
  &:-webkit-autofill:hover,
1131
1129
  &:-webkit-autofill:focus {
1132
- -webkit-text-fill-color: ${P.colorOnSurface};
1130
+ -webkit-text-fill-color: ${k.colorOnSurface};
1133
1131
  transition: background-color 50000000s ease-in-out 100000s;
1134
1132
  }
1135
1133
  }
1136
1134
 
1137
1135
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1138
1136
  padding-bottom: 0;
1139
- padding-top: calc(${P.labelSize} + 2 * ${P.verticalSpacing});
1137
+ padding-top: calc(${k.labelSize} + 2 * ${k.verticalSpacing});
1140
1138
  }
1141
1139
 
1142
1140
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1145,37 +1143,37 @@
1145
1143
  }
1146
1144
 
1147
1145
  .ft-text-field--disabled .ft-text-field--input {
1148
- color: ${P.colorOnSurfaceDisabled};
1146
+ color: ${k.colorOnSurfaceDisabled};
1149
1147
  }
1150
1148
 
1151
1149
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1152
- ${(0,_.setVariable)(C.borderColor,P.colorPrimary)};
1153
- ${(0,_.setVariable)(C.textColor,P.colorPrimary)};
1150
+ ${(0,_.setVariable)(C.borderColor,k.colorPrimary)};
1151
+ ${(0,_.setVariable)(C.textColor,k.colorPrimary)};
1154
1152
  }
1155
1153
 
1156
1154
  .ft-text-field--filled .ft-text-field--input-panel {
1157
- border-radius: ${P.borderRadiusS} ${P.borderRadiusS} 0 0;
1155
+ border-radius: ${k.borderRadiusS} ${k.borderRadiusS} 0 0;
1158
1156
  }
1159
1157
 
1160
1158
  .ft-text-field--outlined .ft-text-field--input-panel {
1161
- border-radius: ${P.borderRadiusS};
1159
+ border-radius: ${k.borderRadiusS};
1162
1160
  }
1163
1161
 
1164
1162
  .ft-text-field--helper-text {
1165
- padding: 0 12px 0 ${P.horizontalSpacing};
1166
- color: ${P.helperColor};
1163
+ padding: 0 12px 0 ${k.horizontalSpacing};
1164
+ color: ${k.helperColor};
1167
1165
  }
1168
1166
 
1169
1167
  .ft-text-field--in-error .ft-text-field--input,
1170
1168
  .ft-text-field--in-error .ft-text-field--helper-text,
1171
1169
  .ft-text-field--in-error .ft-text-field--prefix {
1172
- color: ${P.colorError};
1170
+ color: ${k.colorError};
1173
1171
  }
1174
1172
 
1175
1173
  .ft-text-field--icon {
1176
1174
  align-self: center;
1177
1175
  margin-left: 8px;
1178
- color: ${P.iconColor};
1176
+ color: ${k.iconColor};
1179
1177
  }
1180
1178
 
1181
1179
  .ft-text-field--container {
@@ -1186,11 +1184,11 @@
1186
1184
  display: none;
1187
1185
  flex-direction: column;
1188
1186
  position: absolute;
1189
- z-index: ${P.floatingZIndex};
1190
- background: ${P.backgroundColor};
1191
- border: 1px solid ${P.colorOutline};
1192
- border-radius: 0 0 ${P.borderRadiusS} ${P.borderRadiusS};
1193
- box-shadow: ${P.elevation02};
1187
+ z-index: ${k.floatingZIndex};
1188
+ background: ${k.backgroundColor};
1189
+ border: 1px solid ${k.colorOutline};
1190
+ border-radius: 0 0 ${k.borderRadiusS} ${k.borderRadiusS};
1191
+ box-shadow: ${k.elevation02};
1194
1192
  outline: none;
1195
1193
  max-height: var(--text-field-internal-suggest-size);
1196
1194
  overflow-y: auto;
@@ -1211,7 +1209,7 @@
1211
1209
  .ft-text-field--with-password ft-icon:hover {
1212
1210
  cursor: pointer;
1213
1211
  }
1214
- `;var ft=f(D()),k=f(B()),Ou=f(Xo()),Ru=f(ye());var jt=f(b());var _u=f(b()),Ei=f(D()),fr=f(B());var wu=f(D());var Cu=wu.css`
1212
+ `;var ft=f(N()),P=f(H()),Ou=f(Zo()),Ru=f(be());var jt=f(b());var _u=f(b()),wi=f(N()),fr=f(H());var wu=f(N());var Cu=wu.css`
1215
1213
  .ft-text-field-suggestion {
1216
1214
  position: relative;
1217
1215
  padding: 8px 16px;
@@ -1241,29 +1239,29 @@
1241
1239
  }
1242
1240
 
1243
1241
  .ft-text-field-suggestion--helper-text {
1244
- color: ${P.helperColor};
1242
+ color: ${k.helperColor};
1245
1243
  }
1246
1244
 
1247
1245
  slot {
1248
1246
  pointer-events: none;
1249
1247
  }
1250
- `;var Tu=f(ye()),_n=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Qo=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Qt=class extends _u.FtLitElement{render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return Ei.html`
1248
+ `;var Tu=f(be()),Tn=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},Qo=class extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}},Jt=class extends _u.FtLitElement{render(){let t={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return wi.html`
1251
1249
  <div class="${(0,Tu.classMap)(t)}"
1252
1250
  tabindex="-1"
1253
1251
  @keydown=${this.onKeyDown}
1254
1252
  @click=${this.confirmSuggestion}>
1255
1253
  <ft-ripple></ft-ripple>
1256
- ${this.helper?Ei.html`
1254
+ ${this.helper?wi.html`
1257
1255
  <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
1258
1256
  ${this.helper}
1259
- </ft-typography>`:Ei.nothing}
1257
+ </ft-typography>`:wi.nothing}
1260
1258
  <ft-typography part="label"
1261
1259
  variant="body1"
1262
1260
  class="ft-text-field-suggestion--label">
1263
1261
  <slot></slot>
1264
1262
  </ft-typography>
1265
1263
  </div>
1266
- `}focus(t){var r;(r=this.container)===null||r===void 0||r.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new Qo(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};Qt.elementDefinitions={"ft-ripple":$,"ft-typography":Q,"ft-icon":et};Qt.styles=Cu;_n([(0,fr.property)()],Qt.prototype,"value",void 0);_n([(0,fr.property)()],Qt.prototype,"helper",void 0);_n([(0,fr.query)(".ft-text-field-suggestion")],Qt.prototype,"container",void 0);_n([(0,fr.queryAssignedNodes)()],Qt.prototype,"assignedNodes",void 0);var I=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},T=class extends(0,jt.toFtFormComponent)(jt.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=lr.EYE_SLASH,this.passwordRevealedIcon=lr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let r=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}blur(){var t;(t=this.input)===null||t===void 0||t.blur()}render(){var t;let r={"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()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),o=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,s=this.inputValid?this.helper:(t=this.input)===null||t===void 0?void 0:t.validationMessage;return ft.html`
1264
+ `}focus(t){var r;(r=this.container)===null||r===void 0||r.focus(t)}click(){var t;(t=this.container)===null||t===void 0||t.click()}confirmSuggestion(){this.dispatchEvent(new Qo(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(t=>t.textContent).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}};Jt.elementDefinitions={"ft-ripple":$,"ft-typography":Q,"ft-icon":et};Jt.styles=Cu;Tn([(0,fr.property)()],Jt.prototype,"value",void 0);Tn([(0,fr.property)()],Jt.prototype,"helper",void 0);Tn([(0,fr.query)(".ft-text-field-suggestion")],Jt.prototype,"container",void 0);Tn([(0,fr.queryAssignedNodes)()],Jt.prototype,"assignedNodes",void 0);var D=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},T=class extends(0,jt.toFtFormComponent)(jt.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=lr.EYE_SLASH,this.passwordRevealedIcon=lr.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){let r=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",r)}focus(){var t;(t=this.input)===null||t===void 0||t.focus()}blur(){var t;(t=this.input)===null||t===void 0||t.blur()}render(){var t;let r={"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()},i=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),o=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||i,s=this.inputValid?this.helper:(t=this.input)===null||t===void 0?void 0:t.validationMessage;return ft.html`
1267
1265
  <div class="${(0,Ru.classMap)(r)}">
1268
1266
  <div class="ft-text-field--main-panel"
1269
1267
  @keydown=${this.handleKeyboardNavigation}
@@ -1283,12 +1281,12 @@
1283
1281
  </ft-typography>
1284
1282
  `:ft.nothing}
1285
1283
  <input type="${this.resolveInputType()}"
1286
- name="${Ve(this.name)}"
1287
- maxlength="${Ve(this.maxLength||void 0)}"
1284
+ name="${me(this.name)}"
1285
+ maxlength="${me(this.maxLength||void 0)}"
1288
1286
  aria-label="${this.label}"
1289
- aria-describedby="${Ve(this.helper?"helper":void 0)}"
1287
+ aria-describedby="${me(this.helper?"helper":void 0)}"
1290
1288
  aria-invalid="${this.error}"
1291
- autocomplete="${Ve(this.autocomplete)}"
1289
+ autocomplete="${me(this.autocomplete)}"
1292
1290
  class="ft-typography--body1 ft-text-field--input"
1293
1291
  part="input"
1294
1292
  ?disabled=${this.disabled}
@@ -1337,7 +1335,7 @@
1337
1335
  .variant=${this.iconVariant}
1338
1336
  .value=${this.icon}
1339
1337
  @click=${()=>{var t;return(t=this.input)===null||t===void 0?void 0:t.focus()}}></ft-icon>
1340
- `:ft.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions")||t.has("suggestionsProvider"))&&this.updateSuggestions(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),t.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),t.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var t;this.clearWatchAutofill(),((t=this.autocomplete)!==null&&t!==void 0?t:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(t,r=!1){var i,n;this.value!==t&&(this.inputValid=!0,this.setInternalValue(t),this.dispatchEvent(new En(t))),r&&this.dispatchedValue!==t&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=t,this.dispatchEvent(new wn(t))):this.dispatchEvent(new Cn(this.input.validationMessage)))}handleInput(t){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}catchComposingEvents(t){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(o=>o.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,r;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.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 t=["bottom","top"];(0,jt.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};T.elementDefinitions={"ft-input-label":Ht,"ft-ripple":$,"ft-typography":Q,"ft-icon":et,"ft-text-field-suggestion":Qt};T.styles=[wr,jt.noTextInputDefaultClearButton,Eu];I([(0,k.property)()],T.prototype,"label",void 0);I([(0,k.property)({noAccessor:!0})],T.prototype,"value",null);I([(0,k.state)()],T.prototype,"dispatchedValue",void 0);I([(0,k.property)()],T.prototype,"helper",void 0);I([(0,k.property)()],T.prototype,"suggestionsHelper",void 0);I([(0,k.property)({type:Boolean})],T.prototype,"outlined",void 0);I([(0,k.property)({type:Boolean})],T.prototype,"disabled",void 0);I([(0,k.property)({type:Boolean})],T.prototype,"error",void 0);I([(0,k.property)({type:Boolean})],T.prototype,"fixedMenuPosition",void 0);I([(0,k.property)()],T.prototype,"prefix",void 0);I([(0,k.property)()],T.prototype,"icon",void 0);I([(0,k.property)()],T.prototype,"name",void 0);I([(0,k.property)()],T.prototype,"type",void 0);I([(0,k.property)()],T.prototype,"passwordHiddenIcon",void 0);I([(0,k.property)()],T.prototype,"passwordRevealedIcon",void 0);I([(0,k.property)()],T.prototype,"iconVariant",void 0);I([(0,k.property)({type:Boolean})],T.prototype,"filterSuggestions",void 0);I([(0,jt.numberProperty)()],T.prototype,"maxLength",void 0);I([(0,k.property)({type:Boolean})],T.prototype,"password",void 0);I([(0,k.property)({type:String})],T.prototype,"autocomplete",void 0);I([(0,k.property)({attribute:!1})],T.prototype,"suggestionsProvider",void 0);I([(0,k.state)()],T.prototype,"focused",void 0);I([(0,k.state)()],T.prototype,"inputValid",void 0);I([(0,k.state)()],T.prototype,"hidePassword",void 0);I([(0,k.state)()],T.prototype,"hideSuggestions",void 0);I([(0,k.state)()],T.prototype,"visibleSuggestions",void 0);I([(0,k.state)()],T.prototype,"providedSuggestions",void 0);I([(0,k.query)(".ft-text-field--main-panel")],T.prototype,"mainPanel",void 0);I([(0,k.query)(".ft-text-field--input")],T.prototype,"input",void 0);I([(0,k.query)(".ft-text-field-suggestion--new-value")],T.prototype,"newValueSuggestion",void 0);I([(0,k.query)(".ft-text-field--suggestions")],T.prototype,"suggestionsContainer",void 0);I([(0,k.queryAll)("ft-text-field-suggestion")],T.prototype,"providedSuggestionsInDom",void 0);I([(0,k.queryAssignedElements)({selector:"ft-text-field-suggestion"})],T.prototype,"slottedSuggestions",void 0);I([(0,jt.ignoreComposingEvents)()],T.prototype,"handleInput",null);I([(0,jt.ignoreComposingEvents)()],T.prototype,"catchComposingEvents",null);var Pu=f(b());var Lu={"ft-text-field":T,"ft-text-field-suggestion":Qt};(0,Pu.customElements)(Lu);var Tn=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},On=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},Rn=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},Ln=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},Pn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var ht=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},W=class extends Be(Wr.FtLitElementRedux){constructor(){super(),this.hideTitle=!1,this.withMoreOptionsButton=!1,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.canAccessFeedback=!1,this.canRateThisContent=!1,this.from="",this.feedbackMessage="",this.addI18nContext(N,Su),this.addStore(E)}get configuredRatingType(){var t,r;return(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.type)!==null&&r!==void 0?r:q.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:q.NO_RATING}get ratingValue(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,r;let i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?(0,Wr.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?it.nothing:it.html`
1338
+ `:ft.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions")||t.has("suggestionsProvider"))&&this.updateSuggestions(),t.has("value")&&t.get("value")!=null&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&t.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){this.suggestionsProvider?this.providedSuggestions=await this.suggestionsProvider(this.value):this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(t=>!t.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),t.has("value")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),t.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var t;this.clearWatchAutofill(),((t=this.autocomplete)!==null&&t!==void 0?t:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var r,i,n;!((r=this.input)===null||r===void 0)&&r.matches(":autofill")&&this.dispatchedValue!==((i=this.input)===null||i===void 0?void 0:i.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(t,r=!1){var i,n;this.value!==t&&(this.inputValid=!0,this.setInternalValue(t),this.dispatchEvent(new wn(t))),r&&this.dispatchedValue!==t&&(this.inputValid=(n=(i=this.input)===null||i===void 0?void 0:i.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=t,this.dispatchEvent(new Cn(t))):this.dispatchEvent(new _n(this.input.validationMessage)))}handleInput(t){var r;let i=((r=this.input)===null||r===void 0?void 0:r.value)||"";this.setValue(i,t.key=="Escape"||t.key=="Enter")}catchComposingEvents(t){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var r;if(t.key==="ArrowDown"||t.key==="ArrowUp"){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;let i=this.visibleSuggestions.findIndex(o=>o.matches(":focus-within")),n;t.key==="ArrowDown"?n=i<this.visibleSuggestions.length-1?i+1:0:n=i>0?i-1:this.visibleSuggestions.length-1,(r=this.visibleSuggestions[n])===null||r===void 0||r.focus()}(t.key=="Escape"||t.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(t){var r;this.setValue(t.detail,!0),(r=this.input)===null||r===void 0||r.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,r;!((t=this.mainPanel)===null||t===void 0)&&t.matches(":focus-within")||(this.focused=!1,this.setValue(((r=this.input)===null||r===void 0?void 0:r.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 t=["bottom","top"];(0,jt.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",t,"fixed","--text-field-internal-suggest-size",0).then(({x:r,y:i})=>{this.suggestionsContainer.style.left=`${r}px`,this.suggestionsContainer.style.top=`${i}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};T.elementDefinitions={"ft-input-label":Ht,"ft-ripple":$,"ft-typography":Q,"ft-icon":et,"ft-text-field-suggestion":Jt};T.styles=[wr,jt.noTextInputDefaultClearButton,Eu];D([(0,P.property)()],T.prototype,"label",void 0);D([(0,P.property)({noAccessor:!0})],T.prototype,"value",null);D([(0,P.state)()],T.prototype,"dispatchedValue",void 0);D([(0,P.property)()],T.prototype,"helper",void 0);D([(0,P.property)()],T.prototype,"suggestionsHelper",void 0);D([(0,P.property)({type:Boolean})],T.prototype,"outlined",void 0);D([(0,P.property)({type:Boolean})],T.prototype,"disabled",void 0);D([(0,P.property)({type:Boolean})],T.prototype,"error",void 0);D([(0,P.property)({type:Boolean})],T.prototype,"fixedMenuPosition",void 0);D([(0,P.property)()],T.prototype,"prefix",void 0);D([(0,P.property)()],T.prototype,"icon",void 0);D([(0,P.property)()],T.prototype,"name",void 0);D([(0,P.property)()],T.prototype,"type",void 0);D([(0,P.property)()],T.prototype,"passwordHiddenIcon",void 0);D([(0,P.property)()],T.prototype,"passwordRevealedIcon",void 0);D([(0,P.property)()],T.prototype,"iconVariant",void 0);D([(0,P.property)({type:Boolean})],T.prototype,"filterSuggestions",void 0);D([(0,jt.numberProperty)()],T.prototype,"maxLength",void 0);D([(0,P.property)({type:Boolean})],T.prototype,"password",void 0);D([(0,P.property)({type:String})],T.prototype,"autocomplete",void 0);D([(0,P.property)({attribute:!1})],T.prototype,"suggestionsProvider",void 0);D([(0,P.state)()],T.prototype,"focused",void 0);D([(0,P.state)()],T.prototype,"inputValid",void 0);D([(0,P.state)()],T.prototype,"hidePassword",void 0);D([(0,P.state)()],T.prototype,"hideSuggestions",void 0);D([(0,P.state)()],T.prototype,"visibleSuggestions",void 0);D([(0,P.state)()],T.prototype,"providedSuggestions",void 0);D([(0,P.query)(".ft-text-field--main-panel")],T.prototype,"mainPanel",void 0);D([(0,P.query)(".ft-text-field--input")],T.prototype,"input",void 0);D([(0,P.query)(".ft-text-field-suggestion--new-value")],T.prototype,"newValueSuggestion",void 0);D([(0,P.query)(".ft-text-field--suggestions")],T.prototype,"suggestionsContainer",void 0);D([(0,P.queryAll)("ft-text-field-suggestion")],T.prototype,"providedSuggestionsInDom",void 0);D([(0,P.queryAssignedElements)({selector:"ft-text-field-suggestion"})],T.prototype,"slottedSuggestions",void 0);D([(0,jt.ignoreComposingEvents)()],T.prototype,"handleInput",null);D([(0,jt.ignoreComposingEvents)()],T.prototype,"catchComposingEvents",null);var ku=f(b());var Lu={"ft-text-field":T,"ft-text-field-suggestion":Jt};(0,ku.customElements)(Lu);var On=class extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}},Rn=class extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}},Ln=class extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}},kn=class extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}},Pn=class extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}};var ht=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},K=class extends He(Kr.FtLitElementRedux){constructor(){super(),this.hideTitle=!1,this.withMoreOptionsButton=!1,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.canAccessFeedback=!1,this.canRateThisContent=!1,this.from="",this.feedbackMessage="",this.addI18nContext(M,Su),this.addStore(E)}get configuredRatingType(){var t,r;return(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.type)!==null&&r!==void 0?r:Y.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.type)!==null&&i!==void 0?i:Y.NO_RATING}get ratingValue(){var t,r,i;return(i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.value)!==null&&i!==void 0?i:-1}get ratingDate(){var t,r;let i=(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.rating)===null||r===void 0?void 0:r.date;return typeof i=="string"?(0,Kr.parseDate)(i):i}render(){return!this.canAccessFeedback&&!this.canRateThisContent?it.nothing:it.html`
1341
1339
  <div part="container">
1342
1340
  ${this.hideTitle?it.nothing:it.html`
1343
1341
  <ft-typography variant="${gt.title}" part="main-title">
@@ -1350,18 +1348,18 @@
1350
1348
  `}renderRatingSection(){var t;return this.canRateThisContent?it.html`
1351
1349
  <div part="rating-container">
1352
1350
  <ft-typography variant="${gt.title_dense}" part="section-title">
1353
- ${this.i18n(((t=this.ratingSummary)===null||t===void 0?void 0:t.type)===q.DICHOTOMOUS?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
1351
+ ${this.i18n(((t=this.ratingSummary)===null||t===void 0?void 0:t.type)===Y.DICHOTOMOUS?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
1354
1352
  </ft-typography>
1355
1353
  ${this.renderRating()}
1356
1354
  <ft-typography variant="${gt.caption}" part="rating-date">
1357
1355
  ${this.renderRatingDate()}
1358
1356
  </ft-typography>
1359
1357
  </div>
1360
- `:it.nothing}renderRatingDate(){let t=this.ratingDate;if(t==null)return N.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return N.messages.ratedNow();let r=new Date().toLocaleDateString(),i=t.toLocaleDateString();return r===i?N.messages.ratedToday():N.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case q.STARS:return it.html`
1358
+ `:it.nothing}renderRatingDate(){let t=this.ratingDate;if(t==null)return M.messages.notRated();if(t.getTime()>new Date().getTime()-6e4)return M.messages.ratedNow();let r=new Date().toLocaleDateString(),i=t.toLocaleDateString();return r===i?M.messages.ratedToday():M.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case Y.STARS:return it.html`
1361
1359
  <div part="rating rating-stars">
1362
- ${(0,ku.repeat)(new Array(5),(t,r)=>r,(t,r)=>{let i=this.ratingTypeOfDoneRatingOfThisContent===q.STARS&&this.ratingValue>r,n=r+1;return it.html`
1360
+ ${(0,Pu.repeat)(new Array(5),(t,r)=>r,(t,r)=>{let i=this.ratingTypeOfDoneRatingOfThisContent===Y.STARS&&this.ratingValue>r,n=r+1;return it.html`
1363
1361
  <ft-button round part="rating-stars-${n}"
1364
- label="${N.messages.starsRating(n)}"
1362
+ label="${M.messages.starsRating(n)}"
1365
1363
  tooltipPosition="top"
1366
1364
  .iconVariant=${this.iconVariant}
1367
1365
  icon="${i?this.filledStarIcon:this.emptyStarIcon}"
@@ -1370,7 +1368,7 @@
1370
1368
  ></ft-button>
1371
1369
  `})}
1372
1370
  </div>
1373
- `;case q.LIKE:{let t=this.ratingTypeOfDoneRatingOfThisContent===q.LIKE&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===q.LIKE&&this.ratingValue===1;return it.html`
1371
+ `;case Y.LIKE:{let t=this.ratingTypeOfDoneRatingOfThisContent===Y.LIKE&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===Y.LIKE&&this.ratingValue===1;return it.html`
1374
1372
  <ft-switch unselectable
1375
1373
  @change=${i=>this.rate(i.detail)}
1376
1374
  part="rating rating-like"
@@ -1380,27 +1378,27 @@
1380
1378
  .iconVariant=${this.iconVariant}
1381
1379
  icon="${r?this.filledLikeIcon:this.emptyLikeIcon}"
1382
1380
  role="radio">
1383
- ${N.messages.like()}
1381
+ ${M.messages.like()}
1384
1382
  </ft-switch-option>
1385
1383
  <ft-switch-option .value=${0}
1386
1384
  ?selected=${t}
1387
1385
  .iconVariant=${this.iconVariant}
1388
1386
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}"
1389
1387
  role="radio">
1390
- ${N.messages.dislike()}
1388
+ ${M.messages.dislike()}
1391
1389
  </ft-switch-option>
1392
1390
  </ft-switch>
1393
- `}case q.DICHOTOMOUS:{let t=this.ratingTypeOfDoneRatingOfThisContent===q.DICHOTOMOUS&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===q.DICHOTOMOUS&&this.ratingValue===1;return it.html`
1391
+ `}case Y.DICHOTOMOUS:{let t=this.ratingTypeOfDoneRatingOfThisContent===Y.DICHOTOMOUS&&this.ratingValue===0,r=this.ratingTypeOfDoneRatingOfThisContent===Y.DICHOTOMOUS&&this.ratingValue===1;return it.html`
1394
1392
  <ft-switch unselectable
1395
1393
  @change=${i=>this.rate(i.detail)}
1396
1394
  part="rating rating-dichotomous">
1397
1395
  <ft-switch-option .value=${1}
1398
1396
  ?selected=${r}>
1399
- ${N.messages.dichotomousYes()}
1397
+ ${M.messages.dichotomousYes()}
1400
1398
  </ft-switch-option>
1401
1399
  <ft-switch-option .value=${0}
1402
1400
  ?selected=${t}>
1403
- ${N.messages.dichotomousNo()}
1401
+ ${M.messages.dichotomousNo()}
1404
1402
  </ft-switch-option>
1405
1403
  </ft-switch>
1406
1404
  `}}return it.nothing}rate(t){(t??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,r,i,n,o;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),a=it.html`
@@ -1408,7 +1406,7 @@
1408
1406
  type="submit" name="submit"
1409
1407
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1410
1408
  part="send-feedback">
1411
- ${N.messages.okButton()}
1409
+ ${M.messages.okButton()}
1412
1410
  </ft-button>
1413
1411
  `;s&&(a=it.html`
1414
1412
  <a part="send-feedback-link" href="${s}">
@@ -1419,7 +1417,7 @@
1419
1417
  type="button" name="more-options"
1420
1418
  @click=${this.onOpenMoreDetails}
1421
1419
  part="more-options">
1422
- ${N.messages.moreOptionsButton()}
1420
+ ${M.messages.moreOptionsButton()}
1423
1421
  </ft-button>
1424
1422
  `:it.nothing;return it.html`
1425
1423
  <form part="feedback-container" autocomplete="on"
@@ -1430,15 +1428,15 @@
1430
1428
  ${((n=(i=this.session)===null||i===void 0?void 0:i.profile)===null||n===void 0?void 0:n.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers)?it.html`
1431
1429
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1432
1430
  part="feedback-from-input"
1433
- label="${N.messages.feedbackfromEmail()}"
1431
+ label="${M.messages.feedbackfromEmail()}"
1434
1432
  @change=${c=>this.from=c.detail.trim()}
1435
1433
  ?error=${this.from&&!this.validFromEmail()}
1436
- helper="${this.from&&!this.validFromEmail()?N.messages.feedbackfromEmailInvalid():""}"
1434
+ helper="${this.from&&!this.validFromEmail()?M.messages.feedbackfromEmailInvalid():""}"
1437
1435
  ></ft-text-field>
1438
1436
  `:it.nothing}
1439
1437
  <ft-text-area outlined
1440
1438
  part="feedback-input"
1441
- label="${N.messages.feedbackInputLabel()}"
1439
+ label="${M.messages.feedbackInputLabel()}"
1442
1440
  @live-change=${c=>this.feedbackMessage=c.detail.trim()}
1443
1441
  ></ft-text-area>
1444
1442
  <div part="buttons-container">
@@ -1446,7 +1444,7 @@
1446
1444
  ${a}
1447
1445
  </div>
1448
1446
  </form>
1449
- `}return it.nothing}onFormSubmitEvent(t,r){t.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new Tn({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};W.elementDefinitions={"ft-button":M,"ft-typography":Q,"ft-switch":Rt,"ft-switch-option":rt,"ft-text-area":ut,"ft-text-field":T};ht([(0,nt.property)({type:Boolean})],W.prototype,"hideTitle",void 0);ht([(0,nt.property)({type:Boolean})],W.prototype,"withMoreOptionsButton",void 0);ht([(0,nt.property)()],W.prototype,"iconVariant",void 0);ht([(0,nt.property)()],W.prototype,"emptyStarIcon",void 0);ht([(0,nt.property)()],W.prototype,"filledStarIcon",void 0);ht([(0,nt.property)()],W.prototype,"emptyLikeIcon",void 0);ht([(0,nt.property)()],W.prototype,"filledLikeIcon",void 0);ht([(0,nt.property)()],W.prototype,"emptyDislikeIcon",void 0);ht([(0,nt.property)()],W.prototype,"filledDislikeIcon",void 0);ht([(0,nt.property)({type:Boolean})],W.prototype,"canAccessFeedback",void 0);ht([(0,nt.property)({type:Boolean})],W.prototype,"canRateThisContent",void 0);ht([(0,nt.property)({attribute:!1})],W.prototype,"i18nProperties",void 0);ht([(0,nt.property)({attribute:!1})],W.prototype,"ratingSummary",void 0);ht([(0,nt.property)()],W.prototype,"configuration",void 0);ht([(0,nt.property)()],W.prototype,"feedbackMailLinkBuilder",void 0);ht([(0,Wr.redux)({store:E.name})],W.prototype,"session",void 0);ht([(0,nt.query)("[part='feedback-input']")],W.prototype,"feedbackInput",void 0);ht([(0,nt.state)()],W.prototype,"from",void 0);ht([(0,nt.state)()],W.prototype,"feedbackMessage",void 0);var we=f(b()),Iu=f(D());function Du(e){return Iu.css`
1447
+ `}return it.nothing}onFormSubmitEvent(t,r){t.preventDefault(),r?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,r,i;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((r=(t=this.session)===null||t===void 0?void 0:t.profile)===null||r===void 0?void 0:r.userId)==null&&(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new On({message:this.feedbackInput.value,...((t=this.configuration)===null||t===void 0?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};K.elementDefinitions={"ft-button":I,"ft-typography":Q,"ft-switch":Rt,"ft-switch-option":rt,"ft-text-area":ut,"ft-text-field":T};ht([(0,nt.property)({type:Boolean})],K.prototype,"hideTitle",void 0);ht([(0,nt.property)({type:Boolean})],K.prototype,"withMoreOptionsButton",void 0);ht([(0,nt.property)()],K.prototype,"iconVariant",void 0);ht([(0,nt.property)()],K.prototype,"emptyStarIcon",void 0);ht([(0,nt.property)()],K.prototype,"filledStarIcon",void 0);ht([(0,nt.property)()],K.prototype,"emptyLikeIcon",void 0);ht([(0,nt.property)()],K.prototype,"filledLikeIcon",void 0);ht([(0,nt.property)()],K.prototype,"emptyDislikeIcon",void 0);ht([(0,nt.property)()],K.prototype,"filledDislikeIcon",void 0);ht([(0,nt.property)({type:Boolean})],K.prototype,"canAccessFeedback",void 0);ht([(0,nt.property)({type:Boolean})],K.prototype,"canRateThisContent",void 0);ht([(0,nt.property)({attribute:!1})],K.prototype,"i18nProperties",void 0);ht([(0,nt.property)({attribute:!1})],K.prototype,"ratingSummary",void 0);ht([(0,nt.property)()],K.prototype,"configuration",void 0);ht([(0,nt.property)()],K.prototype,"feedbackMailLinkBuilder",void 0);ht([(0,Kr.redux)({store:E.name})],K.prototype,"session",void 0);ht([(0,nt.query)("[part='feedback-input']")],K.prototype,"feedbackInput",void 0);ht([(0,nt.state)()],K.prototype,"from",void 0);ht([(0,nt.state)()],K.prototype,"feedbackMessage",void 0);var Ce=f(b()),Iu=f(N());function Du(e){return Iu.css`
1450
1448
  [part="container"] {
1451
1449
  box-sizing: border-box;
1452
1450
  display: flex;
@@ -1459,7 +1457,7 @@
1459
1457
  flex-direction: row;
1460
1458
  align-items: center;
1461
1459
  margin-left: -6px;
1462
- ${(0,we.setVariable)(H.backgroundColor,e.starsBackgroundColor)}
1460
+ ${(0,Ce.setVariable)(j.backgroundColor,e.starsBackgroundColor)}
1463
1461
  }
1464
1462
 
1465
1463
  [part="rating-container"],
@@ -1473,14 +1471,14 @@
1473
1471
  }
1474
1472
 
1475
1473
  [part="rating-container"] {
1476
- ${(0,we.setVariable)(H.color,e.emptyRatingColor)};
1477
- ${(0,we.setVariable)(H.rippleColor,e.filledRatingColor)};
1478
- ${(0,we.setVariable)(J.textColor,e.emptyRatingColor)};
1479
- ${(0,we.setVariable)(J.selectedTextColor,e.filledRatingColor)};
1474
+ ${(0,Ce.setVariable)(j.color,e.emptyRatingColor)};
1475
+ ${(0,Ce.setVariable)(j.rippleColor,e.filledRatingColor)};
1476
+ ${(0,Ce.setVariable)(J.textColor,e.emptyRatingColor)};
1477
+ ${(0,Ce.setVariable)(J.selectedTextColor,e.filledRatingColor)};
1480
1478
  }
1481
1479
 
1482
1480
  [part="rating-container"] .rating-stars--active {
1483
- ${(0,we.setVariable)(H.color,e.filledRatingColor)};
1481
+ ${(0,Ce.setVariable)(j.color,e.filledRatingColor)};
1484
1482
  }
1485
1483
 
1486
1484
  [part="feedback-container"] {
@@ -1498,14 +1496,14 @@
1498
1496
 
1499
1497
  [part="send-feedback"],
1500
1498
  [part="send-feedback-link"] {
1501
- ${(0,we.setVariable)(H.color,e.sendFeedbackColor)};
1502
- ${(0,we.setVariable)(H.backgroundColor,e.sendFeedbackBackgroundColor)};
1499
+ ${(0,Ce.setVariable)(j.color,e.sendFeedbackColor)};
1500
+ ${(0,Ce.setVariable)(j.backgroundColor,e.sendFeedbackBackgroundColor)};
1503
1501
  }
1504
1502
 
1505
1503
  [part="buttons-container"] {
1506
1504
  align-self: flex-end;
1507
1505
  }
1508
- `}var bt=f(b());var Nu={feedbackInputMinWidth:bt.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:bt.FtCssVariableFactory.external(bt.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:bt.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",bt.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:bt.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",bt.designSystemVariables.colorPrimary),filledRatingColor:bt.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",bt.designSystemVariables.colorPrimary),emptyRatingColor:bt.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",bt.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:bt.FtCssVariableFactory.external(Re.fontSize,"Typography"),sectionTitleFontSize:bt.FtCssVariableFactory.external(Le.fontSize,"Typography"),starsBackgroundColor:bt.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",bt.designSystemVariables.colorSurface)};var hr=class extends W{};hr.styles=Du(Nu);var Kr=He.fromGwt("server");var Gr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,r,i,n,o){var s;this.subject=t,this.url=r,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(a=>"["+a.values[a.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(a=>"["+a.values.join(", ")+"]").join(" ")}filterMetadata(t,r){return r.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,r;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var r;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1506
+ `}var bt=f(b());var Nu={feedbackInputMinWidth:bt.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:bt.FtCssVariableFactory.external(bt.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:bt.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",bt.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:bt.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",bt.designSystemVariables.colorPrimary),filledRatingColor:bt.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",bt.designSystemVariables.colorPrimary),emptyRatingColor:bt.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",bt.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:bt.FtCssVariableFactory.external(Le.fontSize,"Typography"),sectionTitleFontSize:bt.FtCssVariableFactory.external(ke.fontSize,"Typography"),starsBackgroundColor:bt.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",bt.designSystemVariables.colorSurface)};var hr=class extends K{};hr.styles=Du(Nu);var Gr=je.fromGwt("server");var qr=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,r,i,n,o){var s;this.subject=t,this.url=r,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=this.filterMetadata(i,n.subjectMetadataIds).map(a=>"["+a.values[a.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(i,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(a=>"["+a.values.join(", ")+"]").join(" ")}filterMetadata(t,r){return r.map(i=>t.find(n=>n.key===i)).filter(i=>i!=null&&i.values.length>0)}shouldUseMailer(){var t,r;let i=this.isAuthenticated&&!(!((t=this.configuration)===null||t===void 0)&&t.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers);return i||n}build(t){var r;if(t!=null&&t.length===0||!this.shouldUseMailer())return;let i=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1509
1507
  ${this.bodyMetadata}
1510
1508
  ${this.url}
1511
1509
  _________________________________________________________________
@@ -1513,7 +1511,7 @@ _________________________________________________________________
1513
1511
  ${t??""}
1514
1512
 
1515
1513
  _________________________________________________________________
1516
- ${Kr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var We=He.build("inDesignerFeedbackComponent"),kn={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var xt=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},K=class extends Be(gr){get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Te.FEEDBACK,{session:this.session})}get canRateThisContent(){var t;return((t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Te.RATING,{session:this.session}))&&this.configuredRatingType!=q.NO_RATING}get configuredRatingType(){var t,r;return(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.type)!==null&&r!==void 0?r:q.NO_RATING}constructor(t=new Fr){super(),this.guestStorage=t,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=It.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Gr,this.i18nProperties={feedbackMainTitle:N.properties.mapFeedbackMainTitle(),ratingSectionTitle:N.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:N.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:N.properties.mapFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-map-feedback-guest-rating-"+((r=this.map)===null||r===void 0?void 0:r.id)},this.sendRatingDebouncer=new Et.Debouncer(500),this.addStore(E)}render(){return Mu.html`
1514
+ ${Gr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configuration)===null||r===void 0?void 0:r.recipients.join(",")}?subject=${i}&body=${n}`}};var We=je.build("inDesignerFeedbackComponent"),In={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var xt=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},G=class extends He(gr){get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Oe.FEEDBACK,{session:this.session})}get canRateThisContent(){var t;return((t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Oe.RATING,{session:this.session}))&&this.configuredRatingType!=Y.NO_RATING}get configuredRatingType(){var t,r;return(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.type)!==null&&r!==void 0?r:Y.NO_RATING}constructor(t=new Br){super(),this.guestStorage=t,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=It.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new qr,this.i18nProperties={feedbackMainTitle:M.properties.mapFeedbackMainTitle(),ratingSectionTitle:M.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:M.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:M.properties.mapFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-map-feedback-guest-rating-"+((r=this.map)===null||r===void 0?void 0:r.id)},this.sendRatingDebouncer=new Et.Debouncer(500),this.addStore(E)}render(){return Mu.html`
1517
1515
  <ft-reader-feedback
1518
1516
  ?hideTitle=${this.hideTitle}
1519
1517
  ?withMoreOptionsButton=${this.withMoreOptionsButton}
@@ -1535,7 +1533,7 @@ ${Kr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1535
1533
  @mailer-feedback=${this.onMailerFeedbackSent}
1536
1534
  @open-more-options=${this.openMoreOptions}
1537
1535
  ></ft-reader-feedback>
1538
- `}willUpdate(t){var r,i,n,o,s;super.willUpdate(t),t.has("map")&&this.map&&((r=this.stateManager)===null||r===void 0||r.fetchMapRating()),t.has("editorMode")&&this.editorMode&&this.addI18nContext(We,kn),["map","configuration","session","mailSubject"].some(a=>t.has(a))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink())!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(o=this.session)===null||o===void 0?void 0:o.profile)===null||s===void 0?void 0:s.userId)!=null),["session","map"].some(a=>t.has(a))&&this.session&&this.map&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var t;await((t=this.stateManager)===null||t===void 0?void 0:t.fetchMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n,o;if(!this.editorMode&&this.ratingSummary){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Et.FtNotificationEvent({type:"error",message:N.messages.ratingFailure()}))}await((o=this.stateManager)===null||o===void 0?void 0:o.fetchMapRating())}else this.editorMode&&this.dispatchEvent(new Et.FtNotificationEvent({type:"info",message:We.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{this.editorMode?this.dispatchEvent(new Et.FtNotificationEvent({type:"info",message:We.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Et.FtNotificationEvent({type:"info",message:N.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Et.FtNotificationEvent({type:"error",message:N.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Pn)}openMoreOptions(){var t,r,i;this.dispatchEvent(new Rn({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||q.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};K.elementDefinitions={"ft-reader-feedback":hr};K.storedRatingIfAuthenticated=(e,t)=>{var r,i;return!((r=t.session)===null||r===void 0)&&r.sessionAuthenticated?e.mapRating:(i=t.ratingSummary)!==null&&i!==void 0?i:e.mapRating};xt([(0,Et.redux)({store:E.name})],K.prototype,"session",void 0);xt([(0,Et.redux)({store:"reader"})],K.prototype,"map",void 0);xt([(0,Et.redux)({store:E.name})],K.prototype,"editorMode",void 0);xt([(0,Et.redux)({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],K.prototype,"configuration",void 0);xt([(0,Et.redux)({store:"reader",selector:K.storedRatingIfAuthenticated})],K.prototype,"ratingSummary",void 0);xt([(0,te.property)({type:Boolean})],K.prototype,"hideTitle",void 0);xt([(0,te.property)({type:Boolean})],K.prototype,"withMoreOptionsButton",void 0);xt([(0,te.property)()],K.prototype,"iconVariant",void 0);xt([(0,te.property)()],K.prototype,"emptyStarIcon",void 0);xt([(0,te.property)()],K.prototype,"filledStarIcon",void 0);xt([(0,te.property)()],K.prototype,"emptyLikeIcon",void 0);xt([(0,te.property)()],K.prototype,"filledLikeIcon",void 0);xt([(0,te.property)()],K.prototype,"emptyDislikeIcon",void 0);xt([(0,te.property)()],K.prototype,"filledDislikeIcon",void 0);xt([(0,te.query)("ft-reader-feedback")],K.prototype,"readerFeedback",void 0);xt([fn(Kr.properties["mail.map_feedback.subject"](e=>{var t,r;return[(r=(t=e.map)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:""]}))],K.prototype,"mailSubject",void 0);xt([(0,Et.reduxEventListener)({eventName:"rating-changed"})],K.prototype,"fetchRatingSummary",null);var Uu=f(D()),ee=f(B()),wt=f(b());var wi=f(B()),$u=f(b());var In=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},es=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ts=Symbol("registerInterval"),yp=(0,$u.applyMixinOnce)(Symbol("toFtReaderTopicComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[t]=0}connectedCallback(){super.connectedCallback(),this[ts]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ts]):this.dispatchEvent(new es)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=ts,In([(0,wi.state)()],r.prototype,"tocNode",void 0),In([(0,wi.state)()],r.prototype,"disableContextInteractions",void 0),In([(0,wi.state)()],r.prototype,"headingLevelsShift",void 0),In([(0,wi.state)()],r.prototype,"headingStartLevel",void 0),r}),Dn=class extends yp(gr){};var St=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},G=class extends Be(Dn){get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Te.FEEDBACK,{session:this.session})}get canRateThisContent(){var t,r;return((t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Te.RATING,{session:this.session}))&&((r=this.tocNode)===null||r===void 0?void 0:r.hasRating)&&this.configuredRatingType!=q.NO_RATING}get configuredRatingType(){var t,r;return(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.type)!==null&&r!==void 0?r:q.NO_RATING}constructor(t=new Fr){super(),this.guestStorage=t,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=It.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Gr,this.i18nProperties={feedbackMainTitle:N.properties.topicFeedbackMainTitle(),ratingSectionTitle:N.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:N.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:N.properties.topicFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-topic-feedback-guest-rating-"+((r=this.tocNode)===null||r===void 0?void 0:r.tocId)},this.sendRatingDebouncer=new wt.Debouncer(500),this.addStore(E)}render(){return Uu.html`
1536
+ `}willUpdate(t){var r,i,n,o,s;super.willUpdate(t),t.has("map")&&this.map&&((r=this.stateManager)===null||r===void 0||r.fetchMapRating()),t.has("editorMode")&&this.editorMode&&this.addI18nContext(We,In),["map","configuration","session","mailSubject"].some(a=>t.has(a))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink())!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(o=this.session)===null||o===void 0?void 0:o.profile)===null||s===void 0?void 0:s.userId)!=null),["session","map"].some(a=>t.has(a))&&this.session&&this.map&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var t;await((t=this.stateManager)===null||t===void 0?void 0:t.fetchMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n,o;if(!this.editorMode&&this.ratingSummary){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateMap()):await((i=this.service)===null||i===void 0?void 0:i.rateMap((n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new Et.FtNotificationEvent({type:"error",message:M.messages.ratingFailure()}))}await((o=this.stateManager)===null||o===void 0?void 0:o.fetchMapRating())}else this.editorMode&&this.dispatchEvent(new Et.FtNotificationEvent({type:"info",message:We.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{this.editorMode?this.dispatchEvent(new Et.FtNotificationEvent({type:"info",message:We.messages.feedbackAndRatingDisabledInEditor()})):(await((r=this.service)===null||r===void 0?void 0:r.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new Et.FtNotificationEvent({type:"info",message:M.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Et.FtNotificationEvent({type:"error",message:M.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Pn)}openMoreOptions(){var t,r,i;this.dispatchEvent(new Ln({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:((t=this.map)===null||t===void 0?void 0:t.metadata)||[],ratingType:((r=this.ratingSummary)===null||r===void 0?void 0:r.type)||Y.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};G.elementDefinitions={"ft-reader-feedback":hr};G.storedRatingIfAuthenticated=(e,t)=>{var r,i;return!((r=t.session)===null||r===void 0)&&r.sessionAuthenticated?e.mapRating:(i=t.ratingSummary)!==null&&i!==void 0?i:e.mapRating};xt([(0,Et.redux)({store:E.name})],G.prototype,"session",void 0);xt([(0,Et.redux)({store:"reader"})],G.prototype,"map",void 0);xt([(0,Et.redux)({store:E.name})],G.prototype,"editorMode",void 0);xt([(0,Et.redux)({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],G.prototype,"configuration",void 0);xt([(0,Et.redux)({store:"reader",selector:G.storedRatingIfAuthenticated})],G.prototype,"ratingSummary",void 0);xt([(0,Qt.property)({type:Boolean})],G.prototype,"hideTitle",void 0);xt([(0,Qt.property)({type:Boolean})],G.prototype,"withMoreOptionsButton",void 0);xt([(0,Qt.property)()],G.prototype,"iconVariant",void 0);xt([(0,Qt.property)()],G.prototype,"emptyStarIcon",void 0);xt([(0,Qt.property)()],G.prototype,"filledStarIcon",void 0);xt([(0,Qt.property)()],G.prototype,"emptyLikeIcon",void 0);xt([(0,Qt.property)()],G.prototype,"filledLikeIcon",void 0);xt([(0,Qt.property)()],G.prototype,"emptyDislikeIcon",void 0);xt([(0,Qt.property)()],G.prototype,"filledDislikeIcon",void 0);xt([(0,Qt.query)("ft-reader-feedback")],G.prototype,"readerFeedback",void 0);xt([fn(Gr.properties["mail.map_feedback.subject"](e=>{var t,r;return[(r=(t=e.map)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:""]}))],G.prototype,"mailSubject",void 0);xt([(0,Et.reduxEventListener)({eventName:"rating-changed"})],G.prototype,"fetchRatingSummary",null);var Uu=f(N()),te=f(H()),wt=f(b());var Ci=f(H()),$u=f(b());var Dn=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},es=class extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}},ts=Symbol("registerInterval"),yp=(0,$u.applyMixinOnce)(Symbol("toFtReaderTopicComponent"),function(e){var t;class r extends e{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this[t]=0}connectedCallback(){super.connectedCallback(),this[ts]=window.setInterval(()=>this.tryToRegisterToTopicContext(),50)}tryToRegisterToTopicContext(){this.tocNode!=null?window.clearInterval(this[ts]):this.dispatchEvent(new es)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return t=ts,Dn([(0,Ci.state)()],r.prototype,"tocNode",void 0),Dn([(0,Ci.state)()],r.prototype,"disableContextInteractions",void 0),Dn([(0,Ci.state)()],r.prototype,"headingLevelsShift",void 0),Dn([(0,Ci.state)()],r.prototype,"headingStartLevel",void 0),r}),Nn=class extends yp(gr){};var St=function(e,t,r,i){var n=arguments.length,o=n<3?t:i===null?i=Object.getOwnPropertyDescriptor(t,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(e,t,r,i);else for(var a=e.length-1;a>=0;a--)(s=e[a])&&(o=(n<3?s(o):n>3?s(t,r,o):s(t,r))||o);return n>3&&o&&Object.defineProperty(t,r,o),o},q=class extends He(Nn){get canAccessFeedback(){var t;return(t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Oe.FEEDBACK,{session:this.session})}get canRateThisContent(){var t,r;return((t=this.service)===null||t===void 0?void 0:t.isFeatureAccessible(Oe.RATING,{session:this.session}))&&((r=this.tocNode)===null||r===void 0?void 0:r.hasRating)&&this.configuredRatingType!=Y.NO_RATING}get configuredRatingType(){var t,r;return(r=(t=this.ratingSummary)===null||t===void 0?void 0:t.type)!==null&&r!==void 0?r:Y.NO_RATING}constructor(t=new Br){super(),this.guestStorage=t,this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=It.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new qr,this.i18nProperties={feedbackMainTitle:M.properties.topicFeedbackMainTitle(),ratingSectionTitle:M.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:M.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:M.properties.topicFeedbackSectionTitle()},this.loadGuestRating=()=>{let r=this.guestStorage.get(this.guestRatingKey());r&&(this.ratingSummary=r)},this.guestRatingKey=()=>{var r;return"ft-reader-topic-feedback-guest-rating-"+((r=this.tocNode)===null||r===void 0?void 0:r.tocId)},this.sendRatingDebouncer=new wt.Debouncer(500),this.addStore(E)}render(){return Uu.html`
1539
1537
  <ft-reader-feedback
1540
1538
  ?hideTitle=${this.hideTitle}
1541
1539
  ?withMoreOptionsButton=${this.withMoreOptionsButton}
@@ -1557,7 +1555,7 @@ ${Kr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(r=this.configura
1557
1555
  @mailer-feedback=${this.onMailerFeedbackSent}
1558
1556
  @open-more-options=${this.openMoreOptions}
1559
1557
  ></ft-reader-feedback>
1560
- `}willUpdate(t){var r,i,n,o,s;super.willUpdate(t),["tocNode","user"].some(a=>t.has(a))&&this.tocNode&&((r=this.stateManager)===null||r===void 0||r.fetchTopicRating(this.tocNode.tocId)),t.has("editorMode")&&this.editorMode&&this.addI18nContext(We,kn),["map","tocNode","configuration","user","mailSubject"].some(a=>t.has(a))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink(this.tocNode.tocId))!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(o=this.session)===null||o===void 0?void 0:o.profile)===null||s===void 0?void 0:s.userId)!=null),["session","tocNode"].some(a=>t.has(a))&&this.session&&this.tocNode&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var t;await((t=this.stateManager)===null||t===void 0?void 0:t.fetchTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new wt.FtNotificationEvent({type:"error",message:N.messages.ratingFailure()}))}await((o=this.stateManager)===null||o===void 0?void 0:o.fetchTopicRating(this.tocNode.tocId))}else this.editorMode&&this.dispatchEvent(new wt.FtNotificationEvent({type:"info",message:We.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new wt.FtNotificationEvent({type:"info",message:N.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new wt.FtNotificationEvent({type:"info",message:We.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new wt.FtNotificationEvent({type:"error",message:N.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new Ln(t))}openMoreOptions(){var t,r,i,n,o,s,a,l;this.dispatchEvent(new On({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((o=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||o===void 0?void 0:o.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(a=this.ratingSummary)===null||a===void 0?void 0:a.type:q.NO_RATING)||q.NO_RATING,ratingValue:(l=this.ratingSummary)===null||l===void 0?void 0:l.rating}))}};G.elementDefinitions={"ft-reader-feedback":hr};G.storedRatingIfAuthenticated=(e,t)=>{var r,i,n,o;let s=e.topicsRating[(i=(r=t.tocNode)===null||r===void 0?void 0:r.tocId)!==null&&i!==void 0?i:""];return!((n=t.session)===null||n===void 0)&&n.sessionAuthenticated?s:(o=t.ratingSummary)!==null&&o!==void 0?o:s};St([(0,wt.redux)({store:E.name})],G.prototype,"session",void 0);St([(0,wt.redux)({store:"reader"})],G.prototype,"map",void 0);St([(0,wt.redux)({store:E.name})],G.prototype,"editorMode",void 0);St([(0,wt.redux)({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],G.prototype,"configuration",void 0);St([(0,wt.redux)({store:"reader",selector:G.storedRatingIfAuthenticated})],G.prototype,"ratingSummary",void 0);St([(0,ee.property)({type:Boolean})],G.prototype,"hideTitle",void 0);St([(0,ee.property)({type:Boolean})],G.prototype,"withMoreOptionsButton",void 0);St([(0,ee.property)()],G.prototype,"iconVariant",void 0);St([(0,ee.property)()],G.prototype,"emptyStarIcon",void 0);St([(0,ee.property)()],G.prototype,"filledStarIcon",void 0);St([(0,ee.property)()],G.prototype,"emptyLikeIcon",void 0);St([(0,ee.property)()],G.prototype,"filledLikeIcon",void 0);St([(0,ee.property)()],G.prototype,"emptyDislikeIcon",void 0);St([(0,ee.property)()],G.prototype,"filledDislikeIcon",void 0);St([(0,ee.query)("ft-reader-feedback")],G.prototype,"readerFeedback",void 0);St([fn(Kr.properties["mail.feedback.subject"](e=>{var t,r,i,n;return[(r=(t=e.tocNode)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:"",(n=(i=e.map)===null||i===void 0?void 0:i.title)!==null&&n!==void 0?n:""]}))],G.prototype,"mailSubject",void 0);St([(0,wt.reduxEventListener)({eventName:"rating-changed"})],G.prototype,"fetchRatingSummary",null);var Fu={"ft-reader-map-feedback":K,"ft-reader-topic-feedback":G};(0,Bu.customElements)(Fu);})();
1558
+ `}willUpdate(t){var r,i,n,o,s;super.willUpdate(t),["tocNode","user"].some(a=>t.has(a))&&this.tocNode&&((r=this.stateManager)===null||r===void 0||r.fetchTopicRating(this.tocNode.tocId)),t.has("editorMode")&&this.editorMode&&this.addI18nContext(We,In),["map","tocNode","configuration","user","mailSubject"].some(a=>t.has(a))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=(i=this.service)===null||i===void 0?void 0:i.getLink(this.tocNode.tocId))!==null&&n!==void 0?n:"",this.map.metadata,this.configuration,((s=(o=this.session)===null||o===void 0?void 0:o.profile)===null||s===void 0?void 0:s.userId)!=null),["session","tocNode"].some(a=>t.has(a))&&this.session&&this.tocNode&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}async fetchRatingSummary(){var t;await((t=this.stateManager)===null||t===void 0?void 0:t.fetchTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:t.detail==null?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(t.detail)))}async sendRating(t){var r,i,n,o;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{t==null?await((r=this.service)===null||r===void 0?void 0:r.unrateTopic(this.tocNode.tocId)):await((i=this.service)===null||i===void 0?void 0:i.rateTopic(this.tocNode.tocId,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,t))}catch{this.dispatchEvent(new wt.FtNotificationEvent({type:"error",message:M.messages.ratingFailure()}))}await((o=this.stateManager)===null||o===void 0?void 0:o.fetchTopicRating(this.tocNode.tocId))}else this.editorMode&&this.dispatchEvent(new wt.FtNotificationEvent({type:"info",message:We.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var r;try{!this.editorMode&&this.tocNode?(await((r=this.service)===null||r===void 0?void 0:r.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new wt.FtNotificationEvent({type:"info",message:M.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new wt.FtNotificationEvent({type:"info",message:We.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new wt.FtNotificationEvent({type:"error",message:M.messages.feedbackFailure()}))}}onMailerFeedbackSent(){let t=this.tocNode;this.dispatchEvent(new kn(t))}openMoreOptions(){var t,r,i,n,o,s,a,l;this.dispatchEvent(new Rn({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:(r=(t=this.service)===null||t===void 0?void 0:t.getLink(this.tocNode.tocId))!==null&&r!==void 0?r:"",mapMetadata:((i=this.map)===null||i===void 0?void 0:i.metadata)||[],breadcrumb:((o=(n=this.stateManager)===null||n===void 0?void 0:n.service)===null||o===void 0?void 0:o.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:(!((s=this.tocNode)===null||s===void 0)&&s.hasRating?(a=this.ratingSummary)===null||a===void 0?void 0:a.type:Y.NO_RATING)||Y.NO_RATING,ratingValue:(l=this.ratingSummary)===null||l===void 0?void 0:l.rating}))}};q.elementDefinitions={"ft-reader-feedback":hr};q.storedRatingIfAuthenticated=(e,t)=>{var r,i,n,o;let s=e.topicsRating[(i=(r=t.tocNode)===null||r===void 0?void 0:r.tocId)!==null&&i!==void 0?i:""];return!((n=t.session)===null||n===void 0)&&n.sessionAuthenticated?s:(o=t.ratingSummary)!==null&&o!==void 0?o:s};St([(0,wt.redux)({store:E.name})],q.prototype,"session",void 0);St([(0,wt.redux)({store:"reader"})],q.prototype,"map",void 0);St([(0,wt.redux)({store:E.name})],q.prototype,"editorMode",void 0);St([(0,wt.redux)({store:"reader",selector:e=>{var t;return(t=e.configuration)===null||t===void 0?void 0:t.feedback}})],q.prototype,"configuration",void 0);St([(0,wt.redux)({store:"reader",selector:q.storedRatingIfAuthenticated})],q.prototype,"ratingSummary",void 0);St([(0,te.property)({type:Boolean})],q.prototype,"hideTitle",void 0);St([(0,te.property)({type:Boolean})],q.prototype,"withMoreOptionsButton",void 0);St([(0,te.property)()],q.prototype,"iconVariant",void 0);St([(0,te.property)()],q.prototype,"emptyStarIcon",void 0);St([(0,te.property)()],q.prototype,"filledStarIcon",void 0);St([(0,te.property)()],q.prototype,"emptyLikeIcon",void 0);St([(0,te.property)()],q.prototype,"filledLikeIcon",void 0);St([(0,te.property)()],q.prototype,"emptyDislikeIcon",void 0);St([(0,te.property)()],q.prototype,"filledDislikeIcon",void 0);St([(0,te.query)("ft-reader-feedback")],q.prototype,"readerFeedback",void 0);St([fn(Gr.properties["mail.feedback.subject"](e=>{var t,r,i,n;return[(r=(t=e.tocNode)===null||t===void 0?void 0:t.title)!==null&&r!==void 0?r:"",(n=(i=e.map)===null||i===void 0?void 0:i.title)!==null&&n!==void 0?n:""]}))],q.prototype,"mailSubject",void 0);St([(0,wt.reduxEventListener)({eventName:"rating-changed"})],q.prototype,"fetchRatingSummary",null);var Fu={"ft-reader-map-feedback":G,"ft-reader-topic-feedback":q};(0,Bu.customElements)(Fu);})();
1561
1559
  /*! Bundled license information:
1562
1560
 
1563
1561
  lit-html/lit-html.js: