@fluid-topics/ft-search-selected-facets 2.2.4 → 2.2.5

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,17 +1,17 @@
1
- "use strict";(()=>{var id=Object.create;var is=Object.defineProperty;var nd=Object.getOwnPropertyDescriptor;var od=Object.getOwnPropertyNames;var sd=Object.getPrototypeOf,ad=Object.prototype.hasOwnProperty;var lr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var ld=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of od(e))!ad.call(t,o)&&o!==r&&is(t,o,{get:()=>e[o],enumerable:!(i=nd(e,o))||i.enumerable});return t};var d=(t,e,r)=>(r=t!=null?id(sd(t)):{},ld(e||!t||!t.__esModule?is(r,"default",{value:t,enumerable:!0}):r,t));var g=lr((Qp,ns)=>{ns.exports=ftGlobals.wcUtils});var R=lr((Xp,os)=>{os.exports=ftGlobals.lit});var F=lr((Jp,ss)=>{ss.exports=ftGlobals.litDecorators});var Vn=lr((Zp,as)=>{as.exports=ftGlobals.litRepeat});var Gt=lr((pg,ll)=>{ll.exports=ftGlobals.litClassMap});var ec=lr((Wg,Zl)=>{Zl.exports=ftGlobals.litUnsafeHTML});var ed=d(g());var ie=d(R()),Bn=d(F()),Fn=d(Vn()),W=d(g());var ls=d(R()),cs=d(g()),cd={spacing:cs.FtCssVariableFactory.create("--ft-search-selected-facets-spacing","","SIZE","8px")},us=ls.css`
1
+ "use strict";(()=>{var nd=Object.create;var io=Object.defineProperty;var sd=Object.getOwnPropertyDescriptor;var od=Object.getOwnPropertyNames;var ad=Object.getPrototypeOf,ld=Object.prototype.hasOwnProperty;var cr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var cd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of od(e))!ld.call(t,s)&&s!==r&&io(t,s,{get:()=>e[s],enumerable:!(i=sd(e,s))||i.enumerable});return t};var d=(t,e,r)=>(r=t!=null?nd(ad(t)):{},cd(e||!t||!t.__esModule?io(r,"default",{value:t,enumerable:!0}):r,t));var g=cr((Xp,no)=>{no.exports=ftGlobals.wcUtils});var R=cr((Jp,so)=>{so.exports=ftGlobals.lit});var U=cr((Zp,oo)=>{oo.exports=ftGlobals.litDecorators});var Hn=cr((ef,ao)=>{ao.exports=ftGlobals.litRepeat});var Yt=cr((fg,cl)=>{cl.exports=ftGlobals.litClassMap});var tc=cr((Gg,ec)=>{ec.exports=ftGlobals.litUnsafeHTML});var td=d(g());var ie=d(R()),Vn=d(U()),Bn=d(Hn()),W=d(g());var lo=d(R()),co=d(g()),ud={spacing:co.FtCssVariableFactory.create("--ft-search-selected-facets-spacing","","SIZE","8px")},uo=lo.css`
2
2
  .ft-search-selected-facets--container {
3
3
  display: flex;
4
4
  flex-wrap: wrap;
5
- gap: ${cd.spacing};
5
+ gap: ${ud.spacing};
6
6
  }
7
7
 
8
8
  .ft-search-selected-facets--container > * {
9
9
  min-width: 0;
10
10
  }
11
- `;var gr=d(g()),_o=d(F());var Ir;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Ir||(Ir={}));var Wt=d(g());var ud=d(g());var ds;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(ds||(ds={}));var ps;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(ps||(ps={}));var fs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(fs||(fs={}));var hs;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(hs||(hs={}));var ms;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(ms||(ms={}));var ys;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(ys||(ys={}));var gs;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(gs||(gs={}));var vs;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(vs||(vs={}));var bs;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(bs||(bs={}));var xs;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(xs||(xs={}));var Ss;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Ss||(Ss={}));var Es;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Es||(Es={}));var As;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(As||(As={}));var _s;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(_s||(_s={}));var Cs;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Cs||(Cs={}));var ws;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(ws||(ws={}));var dt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(dt||(dt={}));var Os;(function(t){t.ASC="ASC",t.DESC="DESC"})(Os||(Os={}));var Ts;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ts||(Ts={}));var xi;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(xi||(xi={}));var Rs;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Rs||(Rs={}));var Ls;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Ls||(Ls={}));var ks;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(ks||(ks={}));var Si;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Si||(Si={}));var Ds;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Ds||(Ds={}));var Ei;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Ei||(Ei={}));var Ps;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Ps||(Ps={}));var Q;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Q||(Q={}));var Ue;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ue||(Ue={}));var Ns;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Ns||(Ns={}));var Ms;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ms||(Ms={}));var Is;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Is||(Is={}));var $s;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})($s||($s={}));var Us;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Us||(Us={}));var Fs;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Fs||(Fs={}));var Bs;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Bs||(Bs={}));var Vs;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Vs||(Vs={}));var Hs;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Hs||(Hs={}));var zs;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(zs||(zs={}));var js;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(js||(js={}));var qs;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(qs||(qs={}));var dd={[Q.PERSONAL_BOOK_SHARE_USER]:[Q.PERSONAL_BOOK_USER],[Q.HTML_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.PDF_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.KHUB_ADMIN]:[Q.CONTENT_PUBLISHER],[Q.ADMIN]:[Q.KHUB_ADMIN,Q.USERS_ADMIN,Q.PORTAL_ADMIN,Q.BEHAVIOR_DATA_USER],[Q.GENERATIVE_AI_EXPORT_USER]:[Q.GENERATIVE_AI_USER]};function Ks(t,e){return t===e||(dd[t]??[]).some(r=>Ks(r,e))}function Hn(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Ks(i,e))}var uo=d(F());var Ws=d(F(),1);var zn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Gs(t,e){return(0,Ws.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return $r(t);try{return JSON.parse(r)}catch{return $r(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Ur,...e??{}})}function pd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!cr(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!cr(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let o=s=>Object.keys(s).filter(a=>s[a]!=null),n=o(t);if(r=n.length,r!==o(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let s=n[i];if(!cr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function cr(t,e){try{return pd(t,e)}catch{return!1}}function Ur(t,e){return!cr(t,e)}function $r(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Ai(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let o=e(i);return o[t]=!0,o}}var Ys=d(F(),1);var jn=t=>{let e=t??{};return(r,i)=>{var o;let n={hasChanged:Ur,attribute:!1,...e};(0,Ys.property)(n)(r,i);let s=r.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(i,{selector:(o=e.selector)!==null&&o!==void 0?o:(a=>a[i]),store:e.store})}};var _i=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Ut=d(F(),1);var Ci=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let o=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let s of i)try{await s()}catch(a){o(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Xs=d(R(),1);var wi=globalThis,fd=wi.ShadowRoot&&(wi.ShadyCSS===void 0||wi.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Qs=(t,e)=>{if(fd)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),o=wi.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=r.cssText,t.appendChild(i)}};var Oi=class extends Xs.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Qs(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){zn(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Js(t,e,...r){var i;let o=t.querySelector(e);for(let n of r)o=(i=o?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return o}var dr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ra,Zs=Symbol("constructorPrototype"),ea=Symbol("constructorName"),ia=Symbol("exportpartsDebouncer"),ta=Symbol("dynamicDependenciesLoaded"),ur=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};ur.eventName="exportparts-updated";var tt=class extends Oi{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ra]=new Ci(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[ia].run(()=>{var o,n;!((o=this.exportpartsPrefix)===null||o===void 0)&&o.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ea]=this.constructor.name,this[Zs]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ea]&&Object.setPrototypeOf(this,this[Zs])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[ta]||(r[ta]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(ur.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(ur.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new ur)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:o}=this.elementToFocus;if(i!=null){let n=[...o??[],i];r=Js(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,o;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((o=this.customStylesheet)!==null&&o!==void 0?o:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,o,n,s,a;let l=f=>f!=null&&f.trim().length>0,c=e.filter(l).map(f=>f.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let y=(n=(o=f.getAttribute("part"))===null||o===void 0?void 0:o.split(" "))!==null&&n!==void 0?n:[],x=(a=(s=f.getAttribute("exportparts"))===null||s===void 0?void 0:s.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],A=[...y,...x].filter(l).map(b=>b.trim());for(let b of A)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>c.map(y=>`${f}:${y}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};ra=ia;dr([(0,Ut.property)()],tt.prototype,"exportpartsPrefix",void 0);dr([Gs([])],tt.prototype,"exportpartsPrefixes",void 0);dr([(0,Ut.property)({reflect:!0})],tt.prototype,"exportparts",void 0);dr([(0,Ut.property)()],tt.prototype,"customStylesheet",void 0);dr([(0,Ut.property)()],tt.prototype,"elementToFocus",void 0);dr([(0,Ut.state)()],tt.prototype,"useAdoptedStyleSheets",void 0);function Ti(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Fr=Symbol("internalReduxEventsUnsubscribers"),bt=Symbol("internalStoresUnsubscribers"),Ft=Symbol("internalStores"),hd=Ai(Symbol("withRedux"),function(t){var e,r,i;class o extends t{constructor(){super(...arguments),this[e]=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[Ft].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ft].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ft].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ft].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Ft].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ft].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[bt].has(s.store):this[bt].size>0)&&(this[a]=s.selector(c.getState(),this))}})}subscribeToStore(s,a){var l;this[bt].set(s,a.subscribe(()=>this.updateFromStores())),this[Fr].set(s,[]),Ti(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 p=f=>this[u](f);a.addEventListener(c.eventName,p),this[Fr].get(s).push(()=>a.removeEventListener(c.eventName,p))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[bt].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[bt].has(s)&&this[bt].get(s)(),this[bt].delete(s),(a=this[Fr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Fr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=bt,r=Ft,i=Fr,o.reduxProperties=new Map,o.reduxReactiveProperties=new Set,o.reduxEventListeners=new Map,o}),na=class extends hd(tt){};function ae(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var md=typeof Symbol=="function"&&Symbol.observable||"@@observable",oa=md,qn=()=>Math.random().toString(36).substring(7).split("").join("."),yd={INIT:`@@redux/INIT${qn()}`,REPLACE:`@@redux/REPLACE${qn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${qn()}`},Ri=yd;function Li(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Kn(t,e,r){if(typeof t!="function")throw new Error(ae(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ae(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ae(1));return r(Kn)(t,e)}let i=t,o=e,n=new Map,s=n,a=0,l=!1;function c(){s===n&&(s=new Map,n.forEach((b,_)=>{s.set(_,b)}))}function u(){if(l)throw new Error(ae(3));return o}function p(b){if(typeof b!="function")throw new Error(ae(4));if(l)throw new Error(ae(5));let _=!0;c();let P=a++;return s.set(P,b),function(){if(_){if(l)throw new Error(ae(6));_=!1,c(),s.delete(P),n=null}}}function f(b){if(!Li(b))throw new Error(ae(7));if(typeof b.type>"u")throw new Error(ae(8));if(typeof b.type!="string")throw new Error(ae(17));if(l)throw new Error(ae(9));try{l=!0,o=i(o,b)}finally{l=!1}return(n=s).forEach(P=>{P()}),b}function y(b){if(typeof b!="function")throw new Error(ae(10));i=b,f({type:Ri.REPLACE})}function x(){let b=p;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(ae(11));function P(){let O=_;O.next&&O.next(u())}return P(),{unsubscribe:b(P)}},[oa](){return this}}}return f({type:Ri.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:y,[oa]:x}}function gd(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Ri.INIT})>"u")throw new Error(ae(12));if(typeof r(void 0,{type:Ri.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ae(13))})}function sa(t){let e=Object.keys(t),r={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),o,n;try{gd(r)}catch(s){n=s}return function(a={},l){if(n)throw n;let c=!1,u={};for(let p=0;p<i.length;p++){let f=i[p],y=r[f],x=a[f],A=y(x,l);if(typeof A>"u"){let b=l&&l.type;throw new Error(ae(14))}u[f]=A,c=c||A!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Br(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function aa(...t){return e=>(r,i)=>{let o=e(r,i),n=()=>{throw new Error(ae(15))},s={getState:o.getState,dispatch:(l,...c)=>n(l,...c)},a=t.map(l=>l(s));return n=Br(...a)(o.dispatch),{...o,dispatch:n}}}function la(t){return Li(t)&&"type"in t&&typeof t.type=="string"}var ga=Symbol.for("immer-nothing"),ca=Symbol.for("immer-draftable"),ye=Symbol.for("immer-state");function ze(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Le=Object,fr=Le.getPrototypeOf,Ni="constructor",Bi="prototype",Qn="configurable",Mi="enumerable",Di="writable",Vr="value",rt=t=>!!t&&!!t[ye];function ke(t){return t?va(t)||Hi(t)||!!t[ca]||!!t[Ni]?.[ca]||zi(t)||ji(t):!1}var vd=Le[Bi][Ni].toString(),ua=new WeakMap;function va(t){if(!t||!no(t))return!1;let e=fr(t);if(e===null||e===Le[Bi])return!0;let r=Le.hasOwnProperty.call(e,Ni)&&e[Ni];if(r===Object)return!0;if(!pr(r))return!1;let i=ua.get(r);return i===void 0&&(i=Function.toString.call(r),ua.set(r,i)),i===vd}function Vi(t,e,r=!0){jr(t)===0?(r?Reflect.ownKeys(t):Le.keys(t)).forEach(o=>{e(o,t[o],t)}):t.forEach((i,o)=>e(o,i,t))}function jr(t){let e=t[ye];return e?e.type_:Hi(t)?1:zi(t)?2:ji(t)?3:0}var Wn=(t,e,r=jr(t))=>r===2?t.has(e):Le[Bi].hasOwnProperty.call(t,e),Xn=(t,e,r=jr(t))=>r===2?t.get(e):t[e],Ii=(t,e,r,i=jr(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function bd(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Hi=Array.isArray,zi=t=>t instanceof Map,ji=t=>t instanceof Set,no=t=>typeof t=="object",pr=t=>typeof t=="function",Gn=t=>typeof t=="boolean";function xd(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var pt=t=>t.copy_||t.base_;var oo=t=>t.modified_?t.copy_:t.base_;function Jn(t,e){if(zi(t))return new Map(t);if(ji(t))return new Set(t);if(Hi(t))return Array[Bi].slice.call(t);let r=va(t);if(e===!0||e==="class_only"&&!r){let i=Le.getOwnPropertyDescriptors(t);delete i[ye];let o=Reflect.ownKeys(i);for(let n=0;n<o.length;n++){let s=o[n],a=i[s];a[Di]===!1&&(a[Di]=!0,a[Qn]=!0),(a.get||a.set)&&(i[s]={[Qn]:!0,[Di]:!0,[Mi]:a[Mi],[Vr]:t[s]})}return Le.create(fr(t),i)}else{let i=fr(t);if(i!==null&&r)return{...t};let o=Le.create(i);return Le.assign(o,t)}}function so(t,e=!1){return qi(t)||rt(t)||!ke(t)||(jr(t)>1&&Le.defineProperties(t,{set:ki,add:ki,clear:ki,delete:ki}),Le.freeze(t),e&&Vi(t,(r,i)=>{so(i,!0)},!1)),t}function Sd(){ze(2)}var ki={[Vr]:Sd};function qi(t){return t===null||!no(t)?!0:Le.isFrozen(t)}var $i="MapSet",Zn="Patches",da="ArrayMethods",ba={};function Bt(t){let e=ba[t];return e||ze(0,t),e}var pa=t=>!!ba[t];var Hr,xa=()=>Hr,Ed=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:pa($i)?Bt($i):void 0,arrayMethodsPlugin_:pa(da)?Bt(da):void 0});function fa(t,e){e&&(t.patchPlugin_=Bt(Zn),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function eo(t){to(t),t.drafts_.forEach(Ad),t.drafts_=null}function to(t){t===Hr&&(Hr=t.parent_)}var ha=t=>Hr=Ed(Hr,t);function Ad(t){let e=t[ye];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function ma(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ye].modified_&&(eo(e),ze(4)),ke(t)&&(t=ya(e,t));let{patchPlugin_:o}=e;o&&o.generateReplacementPatches_(r[ye].base_,t,e)}else t=ya(e,r);return _d(e,t,!0),eo(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==ga?t:void 0}function ya(t,e){if(qi(e))return e;let r=e[ye];if(!r)return Ui(e,t.handledSet_,t);if(!Ki(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);Aa(r,t)}return r.copy_}function _d(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&so(e,r)}function Sa(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Ki=(t,e)=>t.scope_===e,Cd=[];function Ea(t,e,r,i){let o=pt(t),n=t.type_;if(i!==void 0&&Xn(o,i,n)===e){Ii(o,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Vi(o,(l,c)=>{if(rt(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let s=t.draftLocations_.get(e)??Cd;for(let a of s)Ii(o,a,r,n)}function wd(t,e,r){t.callbacks_.push(function(o){let n=e;if(!n||!Ki(n,o))return;o.mapSetPlugin_?.fixSetContents(n);let s=oo(n);Ea(t,n.draft_??n,s,r),Aa(n,o)})}function Aa(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let o=i.getPath(t);o&&i.generatePatches_(t,o,e)}Sa(t)}}function Od(t,e,r){let{scope_:i}=t;if(rt(r)){let o=r[ye];Ki(o,i)&&o.callbacks_.push(function(){Pi(t);let s=oo(o);Ea(t,r,s,e)})}else ke(r)&&t.callbacks_.push(function(){let n=pt(t);t.type_===3?n.has(r)&&Ui(r,i.handledSet_,i):Xn(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Ui(Xn(t.copy_,e,t.type_),i.handledSet_,i)})}function Ui(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||rt(t)||e.has(t)||!ke(t)||qi(t)||(e.add(t),Vi(t,(i,o)=>{if(rt(o)){let n=o[ye];if(Ki(n,r)){let s=oo(n);Ii(t,i,s,t.type_),Sa(n)}}else ke(o)&&Ui(o,e,r)})),t}function Td(t,e){let r=Hi(t),i={type_:r?1:0,scope_:e?e.scope_:xa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},o=i,n=Fi;r&&(o=[i],n=zr);let{revoke:s,proxy:a}=Proxy.revocable(o,n);return i.draft_=a,i.revoke_=s,[a,i]}var Fi={get(t,e){if(e===ye)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let o=pt(t);if(!Wn(o,e,t.type_))return Ld(t,o,e);let n=o[e];if(t.finalized_||!ke(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&xd(e))return n;if(n===Yn(t.base_,e)||Rd(t,e,n)){Pi(t);let s=t.type_===1?+e:e,a=io(t.scope_,n,t,s);return t.copy_[s]=a}return n},has(t,e){return e in pt(t)},ownKeys(t){return Reflect.ownKeys(pt(t))},set(t,e,r){let i=_a(pt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let o=Yn(pt(t),e),n=o?.[ye];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(bd(r,o)&&(r!==void 0||Wn(t.base_,e,t.type_)))return!0;Pi(t),ro(t)}return t.copy_[e]===r&&(r!==void 0||Wn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Od(t,e,r)),!0},deleteProperty(t,e){return Pi(t),Yn(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ro(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=pt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Di]:!0,[Qn]:t.type_!==1||e!=="length",[Mi]:i[Mi],[Vr]:r[e]}},defineProperty(){ze(11)},getPrototypeOf(t){return fr(t.base_)},setPrototypeOf(){ze(12)}},zr={};for(let t in Fi){let e=Fi[t];zr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}zr.deleteProperty=function(t,e){return zr.set.call(this,t,e,void 0)};zr.set=function(t,e,r){return Fi.set.call(this,t[0],e,r,t[0])};function Yn(t,e){let r=t[ye];return(r?pt(r):t)[e]}function Rd(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!ke(r)||r[ye]?!1:t.baseRefs_.has(r)}function Ld(t,e,r){let i=_a(e,r);return i?Vr in i?i[Vr]:i.get?.call(t.draft_):void 0}function _a(t,e){if(!(e in t))return;let r=fr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=fr(r)}}function ro(t){t.modified_||(t.modified_=!0,t.parent_&&ro(t.parent_))}function Pi(t){t.copy_||(t.assigned_=new Map,t.copy_=Jn(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var kd=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(pr(e)&&!pr(r)){let n=r;r=e;let s=this;return function(l=n,...c){return s.produce(l,u=>r.call(this,u,...c))}}pr(r)||ze(6),i!==void 0&&!pr(i)&&ze(7);let o;if(ke(e)){let n=ha(this),s=io(n,e,void 0),a=!0;try{o=r(s),a=!1}finally{a?eo(n):to(n)}return fa(n,i),ma(o,n)}else if(!e||!no(e)){if(o=r(e),o===void 0&&(o=e),o===ga&&(o=void 0),this.autoFreeze_&&so(o,!0),i){let n=[],s=[];Bt(Zn).generateReplacementPatches_(e,o,{patches_:n,inversePatches_:s}),i(n,s)}return o}else ze(1,e)},this.produceWithPatches=(e,r)=>{if(pr(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let i,o;return[this.produce(e,r,(s,a)=>{i=s,o=a}),i,o]},Gn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Gn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Gn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ke(t)||ze(8),rt(t)&&(t=Ca(t));let e=ha(this),r=io(e,t,void 0);return r[ye].isManual_=!0,to(e),r}finishDraft(t,e){let r=t&&t[ye];(!r||!r.isManual_)&&ze(9);let{scope_:i}=r;return fa(i,e),ma(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let o=e[r];if(o.path.length===0&&o.op==="replace"){t=o.value;break}}r>-1&&(e=e.slice(r+1));let i=Bt(Zn).applyPatches_;return rt(t)?i(t,e):this.produce(t,o=>i(o,e))}};function io(t,e,r,i){let[o,n]=zi(e)?Bt($i).proxyMap_(e,r):ji(e)?Bt($i).proxySet_(e,r):Td(e,r);return(r?.scope_??xa()).drafts_.push(o),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?wd(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:c}=l;n.modified_&&c&&c.generatePatches_(n,[],l)}),o}function Ca(t){return rt(t)||ze(10,t),wa(t)}function wa(t){if(!ke(t)||qi(t))return t;let e=t[ye],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Jn(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Jn(t,!0);return Vi(r,(o,n)=>{Ii(r,o,wa(n))},i),e&&(e.finalized_=!1),r}var Dd=globalThis.Iterator,qf=typeof Dd?.from=="function";var Pd=new kd,ao=Pd.produce;function Oa(t){return({dispatch:r,getState:i})=>o=>n=>typeof n=="function"?n(r,i,t):o(n)}var Ta=Oa(),Ra=Oa;var Nd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Br:Br.apply(null,arguments)},Jf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Md=t=>t&&typeof t.match=="function";function xt(t,e){function r(...i){if(e){let o=e(...i);if(!o)throw new Error(ft(0));return{type:t,payload:o.payload,..."meta"in o&&{meta:o.meta},..."error"in o&&{error:o.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>la(i)&&i.type===t,r}var Na=class qr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,qr.prototype)}static get[Symbol.species](){return qr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new qr(...e[0].concat(this)):new qr(...e.concat(this))}};function La(t){return ke(t)?ao(t,()=>{}):t}function Wi(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Id(t){return typeof t=="boolean"}var $d=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:o=!0,actionCreatorCheck:n=!0}=e??{},s=new Na;return r&&(Id(r)?s.push(Ta):s.push(Ra(r.extraArgument))),s},Ud="RTK_autoBatch";var ka=t=>e=>{setTimeout(e,t)},Fd=(t,e)=>r=>{let i=!1,o=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())},n=t(o),s=setTimeout(o,e)},Bd=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),o=!0,n=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Fd(window.requestAnimationFrame,100):ka(10):t.type==="callback"?t.queueNotification:ka(t.timeout),c=()=>{s=!1,n&&(n=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let p=()=>o&&u(),f=i.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return o=!u?.meta?.[Ud],n=!o,n&&(s||(s=!0,l(c))),i.dispatch(u)}finally{o=!0}}})},Vd=t=>function(r){let{autoBatch:i=!0}=r??{},o=new Na(t);return i&&o.push(Bd(typeof i=="object"?i:void 0)),o};function Ma(t){let e=$d(),{reducer:r=void 0,middleware:i,devTools:o=!0,duplicateMiddlewareCheck:n=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(Li(r))l=sa(r);else throw new Error(ft(1));let c;typeof i=="function"?c=i(e):c=e();let u=Br;o&&(u=Nd({trace:!1,...typeof o=="object"&&o}));let p=aa(...c),f=Vd(p),y=typeof a=="function"?a(f):f(),x=u(...y);return Kn(l,s,x)}function Ia(t){let e={},r=[],i,o={addCase(n,s){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(ft(28));if(a in e)throw new Error(ft(29));return e[a]=s,o},addAsyncThunk(n,s){return s.pending&&(e[n.pending.type]=s.pending),s.rejected&&(e[n.rejected.type]=s.rejected),s.fulfilled&&(e[n.fulfilled.type]=s.fulfilled),s.settled&&r.push({matcher:n.settled,reducer:s.settled}),o},addMatcher(n,s){return r.push({matcher:n,reducer:s}),o},addDefaultCase(n){return i=n,o}};return t(o),[e,r,i]}function Hd(t){return typeof t=="function"}function zd(t,e){let[r,i,o]=Ia(e),n;if(Hd(t))n=()=>La(t());else{let a=La(t);n=()=>a}function s(a=n(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[o]),c.reduce((u,p)=>{if(p)if(rt(u)){let y=p(u,l);return y===void 0?u:y}else{if(ke(u))return ao(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},a)}return s.getInitialState=n,s}var jd=(t,e)=>Md(t)?t.match(e):t(e);function qd(...t){return e=>t.some(r=>jd(r,e))}var Kd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Wd=(t=21)=>{let e="",r=t;for(;r--;)e+=Kd[Math.random()*64|0];return e},Gd=["name","message","stack","code"],lo=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Da=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Yd=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Gd)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Pa="External signal was aborted",Qd=(()=>{function t(e,r,i){let o=xt(e+"/fulfilled",(l,c,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),n=xt(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),s=xt(e+"/rejected",(l,c,u,p,f)=>({payload:p,error:(i&&i.serializeError||Yd)(l||"Rejected"),meta:{...f||{},arg:u,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,p,f)=>{let y=i?.idGenerator?i.idGenerator(l):Wd(),x=new AbortController,A,b;function _(S){b=S,x.abort()}c&&(c.aborted?_(Pa):c.addEventListener("abort",()=>_(Pa),{once:!0}));let P=(async function(){let S;try{let L=i?.condition?.(l,{getState:p,extra:f});if(Jd(L)&&(L=await L),L===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let G=new Promise((U,Y)=>{A=()=>{Y({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",A,{once:!0})});u(n(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:f}))),S=await Promise.race([G,Promise.resolve(r(l,{dispatch:u,getState:p,extra:f,requestId:y,signal:x.signal,abort:_,rejectWithValue:((U,Y)=>new lo(U,Y)),fulfillWithValue:((U,Y)=>new Da(U,Y))})).then(U=>{if(U instanceof lo)throw U;return U instanceof Da?o(U.payload,y,l,U.meta):o(U,y,l)})])}catch(L){S=L instanceof lo?s(null,y,l,L.payload,L.meta):s(L,y,l)}finally{A&&x.signal.removeEventListener("abort",A)}return i&&!i.dispatchConditionRejection&&s.match(S)&&S.meta.condition||u(S),S})();return Object.assign(P,{abort:_,requestId:y,arg:l,unwrap(){return P.then(Xd)}})}}return Object.assign(a,{pending:n,rejected:s,fulfilled:o,settled:qd(s,o),typePrefix:e})}return t.withTypes=()=>t,t})();function Xd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Jd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var $a=Symbol.for("rtk-slice-createasyncthunk"),eh={[$a]:Qd};function Zd(t,e){return`${t}/${e}`}function ep({creators:t}={}){let e=t?.asyncThunk?.[$a];return function(i){let{name:o,reducerPath:n=o}=i;if(!o)throw new Error(ft(11));typeof process<"u";let s=(typeof i.reducers=="function"?i.reducers(rp()):i.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(S,O){let L=typeof S=="string"?S:S.type;if(!L)throw new Error(ft(12));if(L in l.sliceCaseReducersByType)throw new Error(ft(13));return l.sliceCaseReducersByType[L]=O,c},addMatcher(S,O){return l.sliceMatchers.push({matcher:S,reducer:O}),c},exposeAction(S,O){return l.actionCreators[S]=O,c},exposeCaseReducer(S,O){return l.sliceCaseReducersByName[S]=O,c}};a.forEach(S=>{let O=s[S],L={reducerName:S,type:Zd(o,S),createNotation:typeof i.reducers=="function"};np(O)?sp(L,O,c,e):ip(L,O,c)});function u(){let[S={},O=[],L=void 0]=typeof i.extraReducers=="function"?Ia(i.extraReducers):[i.extraReducers],G={...S,...l.sliceCaseReducersByType};return zd(i.initialState,U=>{for(let Y in G)U.addCase(Y,G[Y]);for(let Y of l.sliceMatchers)U.addMatcher(Y.matcher,Y.reducer);for(let Y of O)U.addMatcher(Y.matcher,Y.reducer);L&&U.addDefaultCase(L)})}let p=S=>S,f=new Map,y=new WeakMap,x;function A(S,O){return x||(x=u()),x(S,O)}function b(){return x||(x=u()),x.getInitialState()}function _(S,O=!1){function L(U){let Y=U[S];return typeof Y>"u"&&O&&(Y=Wi(y,L,b)),Y}function G(U=p){let Y=Wi(f,O,()=>new WeakMap);return Wi(Y,U,()=>{let Mr={};for(let[$e,$t]of Object.entries(i.selectors??{}))Mr[$e]=tp($t,U,()=>Wi(y,U,b),O);return Mr})}return{reducerPath:S,getSelectors:G,get selectors(){return G(L)},selectSlice:L}}let P={name:o,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,..._(n),injectInto(S,{reducerPath:O,...L}={}){let G=O??n;return S.inject({reducerPath:G,reducer:A},L),{...P,..._(G,!0)}}};return P}}function tp(t,e,r,i){function o(n,...s){let a=e(n);return typeof a>"u"&&i&&(a=r()),t(a,...s)}return o.unwrapped=t,o}var Ua=ep();function rp(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function ip({type:t,reducerName:e,createNotation:r},i,o){let n,s;if("reducer"in i){if(r&&!op(i))throw new Error(ft(17));n=i.reducer,s=i.prepare}else n=i;o.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,s?xt(t,s):xt(t))}function np(t){return t._reducerDefinitionType==="asyncThunk"}function op(t){return t._reducerDefinitionType==="reducerWithPrepare"}function sp({type:t,reducerName:e},r,i,o){if(!o)throw new Error(ft(18));let{payloadCreator:n,fulfilled:s,pending:a,rejected:l,settled:c,options:u}=r,p=o(t,n,u);i.exposeAction(e,p),s&&i.addCase(p.fulfilled,s),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),c&&i.addMatcher(p.settled,c),i.exposeCaseReducer(e,{fulfilled:s||Gi,pending:a||Gi,rejected:l||Gi,settled:c||Gi})}function Gi(){}var Fa="listener",Ba="completed",Va="cancelled",th=`task-${Va}`,rh=`task-${Ba}`,ih=`${Fa}-${Va}`,nh=`${Fa}-${Ba}`;var{assign:Ha}=Object;var co="listenerMiddleware";var ap=Ha(xt(`${co}/add`),{withTypes:()=>ap}),oh=xt(`${co}/removeAll`),lp=Ha(xt(`${co}/remove`),{withTypes:()=>lp});function ft(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var cp=Ai(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,o){this.eventBus.addEventListener(r,i,o)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,o){this.eventBus.removeEventListener(r,i,o)}}}),Yi=class extends cp(Object){};window.ftReduxStores||(window.ftReduxStores={});var za=class t extends Yi{static get(e){var r;let i=typeof e=="string"?e:e.name,o=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(Ti(n))return n;if(o==null)return;let s=Ua({...o,reducers:(r=o.reducers)!==null&&r!==void 0?r:{}}),a=Ma({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=$r(s.getInitialState());for(let p of c.keeping)u[p]=(l??u)[p];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[o.name]=new t(s,a,o.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new _i,this.injectInto=(n,s)=>this.reduxSlice.injectInto(n,s),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let o=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,s,a)=>{let l=s,c=n[l];return c?(...u)=>{let p=c(...u.map(o));return this.reduxStore.dispatch(p),p}:u=>{let p=l,f=this.getState()[p];cr(f,u)||this.setState({[p]:o(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Qi=class{static format(e,r,i,o,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,o,!!n)):this.getIntlDateTime(e,r,i,o,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,o,n){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(s);return n?l:o?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Xi=d(g()),up="ft-app-info",Vt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Vt.eventName="authentication-change";var Kr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Kr.eventName="ui-locale-changed";var dp={session:(t,e)=>{(0,Xi.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>E.dispatchEvent(new Vt(e.payload)),0))}},E=Xi.FtReduxStore.get({name:up,reducers:dp,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var ja=d(g()),Ji=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},qa=(0,ja.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{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 o,n;return((n=(o=this.metadataDescriptors.find(a=>a.key===i))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1)?a=>Qi.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return Ji([(0,uo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),Ji([(0,uo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),Ji([jn({store:E.name,selector:r=>{var i,o;return(o=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&o!==void 0?o:[]}})],e.prototype,"metadataDescriptors",void 0),Ji([jn({store:E.name})],e.prototype,"uiLocale",void 0),e});var nn=d(g());var po=d(g());var Ht=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=E.getState(),o=e??i;if(r&&o&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,o,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let o=E.subscribe(()=>{i=t.get(e),i&&(o(),r(i))})}})}};var hr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ht.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ht.await()}};var Ee=class extends hr{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let o=this.constructor;o.commonCache=(i=o.commonCache)!==null&&i!==void 0?i:new po.CacheRegistry,this.cache=e?o.commonCache:new po.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var Zi=class extends Ee{async listMySearches(){let{session:e}=E.getState();return Hn(e,Q.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var en=class extends Ee{async listMyBookmarks(){let e=E.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var tn=class extends Ee{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var rn=class extends Ee{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var pp="ft-user-assets",fp={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Ue).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:o}=e.payload;ho(t,r,[...fo(t,r),o]),Ka(t,r,1,i),Wa(t,o)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;ho(t,r,fo(t,r).map(o=>o.id===i.id?i:o)),Wa(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:o}=e.payload;ho(t,r,fo(t,r).filter(n=>n.id!==o)),Ka(t,r,-1,i)}},Ga={[Ue.SEARCHES]:"savedSearches",[Ue.BOOKMARKS]:"bookmarks",[Ue.BOOKS]:void 0,[Ue.COLLECTIONS]:void 0},fo=(t,e)=>{var r;let i=Ga[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},ho=(t,e,r)=>{let i=Ga[e];i&&(t[i]=r)},Ka=(t,e,r,i)=>{let o=t.assetCounts.allAsset[e];if(o!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,o+r),e===Ue.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},Wa=(t,e)=>{let r=t.assetLabels.map(o=>o.title),i=e.labels.filter(o=>!r.includes(o)).map(o=>({title:o}));t.assetLabels.push(...i)},be=nn.FtReduxStore.get({name:pp,reducers:fp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ue).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),mo=class{constructor(e=new tn,r=new rn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new en,this.savedSearchesService=new Zi,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=E.getState();(0,nn.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),be.actions.clearAssetCount(),be.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),be.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),be.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();be.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();be.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&be.getState().assetCounts.allAsset[e]!==r.count&&be.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&be.getState().assetCounts.bookmarkByMap[e]!==r.count&&be.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(be.getState().assetCounts.bookmarkByMap).length!==0;e===Ue.BOOKMARKS&&r&&be.actions.clearBookmarkCountByMap(),be.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;be.actions.bookmarks(r)}}},hp=new mo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=hp);var yo=class{addCommand(e,r=!1){E.commands.add(e,r)}consumeCommand(e){return E.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new yo;var Fe=d(g());var Ya,mr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},mp=Symbol("clearAfterUnitTest"),on=class extends(0,Fe.withEventBus)(Ee){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ya]=()=>{this.defaultMessages={},this.cache=new Fe.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=E.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let o={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Fe.deepEqual)(this.defaultMessages[e],o)||(this.defaultMessages[e]=o,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var o;let n=e.toLowerCase(),s=this.resolveContext(n);return new Fe.ParametrizedLabelResolver((o=this.defaultMessages[n])!==null&&o!==void 0?o:{},s).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(o){!(o instanceof Fe.CanceledPromiseError)&&r&&console.error(o)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var o;return(o=this.listeners[e])===null||o===void 0?void 0:o.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new mr({loadedContexts:e})),this.dispatchEvent(new mr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new mr({loadedContexts:[e]})),this.dispatchEvent(new mr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Fe.delay)(0).then(()=>i()).catch(()=>null)))}};Ya=mp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends on{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends on{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var yr=window.FluidTopicsI18nService,sn=window.FluidTopicsCustomI18nService;var Qa=d(g()),go=class{highlightHtml(e,r,i){(0,Qa.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new go;var Xa=d(g());var vo=class{isDate(e){var r,i,o,n;return(n=(o=((i=(r=E.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||o===void 0?void 0:o.date)!==null&&n!==void 0?n:!1}format(e,r){var i,o,n,s;if(e==null)return"";try{return Xa.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(o=r?.longFormat)!==null&&o!==void 0?o:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(s=r?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new vo;var Ja=d(g());var Wr=class{static get(e,r){var i,o,n,s;let a=E.getState(),{lang:l,region:c}=(n=(o=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||o===void 0?void 0:o.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Ja.SearchPlaceConverter(a.baseUrl,e??20,(s=a.localesConfiguration)===null||s===void 0?void 0:s.allLanguagesAllowed,r??`${l}-${c}`)}};var bo=class{urlToSearchRequest(e){return Wr.get().parse(e)}searchRequestToUrl(e){return Wr.get().serialize(e)}};window.FluidTopicsUrlService=new bo;var ht=d(g());var zt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};zt.eventName="change";var xo=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Za=new xo;var an=class t extends ht.WithEventBus{static build(){return new t(window.history,Za,()=>window.location,!1)}constructor(e,r,i,o){var n,s;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(o)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,ht.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new zt(this.currentItem())),0)}installProxies(){let e=r=>(i,o,[n,s,a])=>{let l=r(),c={...l===this.currentIndex?this.currentState:void 0,...n,index:l,href:typeof a=="string"?a:(a??this.windowLocation()).href};i.apply(o,[c,s,a]),this.setCurrentState(c,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addHistoryChangeListener(e){this.addEventListener(zt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(zt.eventName,e)}currentItem(){return(0,ht.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ht.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,ht.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,ht.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let o=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(o=n),n++;return o}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let o=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=o}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=an.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t)});var el=d(R());var tl=el.css`
12
- `;var il=d(R()),xe=d(F()),Kt=d(g());var jt=d(g());function rl(t,e){let{authenticationRequired:r,session:i}=E.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var ln=class extends hr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var So=class t extends jt.FtStateManager{static build(e){return new t(E,e)}constructor(e,r){super(),this.store=e,this.cache=new jt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new ln,this.cleanSessionDebouncer=new jt.Debouncer,this.reloadDebouncer=new jt.Debouncer(500),this.apiProvider=r??(()=>Ht.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(Vt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>rl(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Kr(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Eo=So.build();var qt=class extends Event{constructor(e,r,i,o){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=o??!1}};var Gr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:o,callbackRef:n}of i){let s=o.deref(),a=n.deref();s===void 0||a===void 0||s.dispatchEvent(new qt(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,o=this.pendingContextRequests.get(e.context);o===void 0&&this.pendingContextRequests.set(e.context,o={callbacks:new WeakMap,requests:[]});let n=o.callbacks.get(r);n===void 0&&o.callbacks.set(r,n=new WeakSet),n.has(i)||(n.add(i),o.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ne=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},z=class extends Kt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Eo,this.contextRoot=new Gr}render(){return il.html`
11
+ `;var vr=d(g()),_s=d(U());var Ur;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Ur||(Ur={}));var Gt=d(g());var dd=d(g());var po;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(po||(po={}));var fo;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(fo||(fo={}));var ho;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(ho||(ho={}));var mo;(function(t){t.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",t.PERSONAL_BOOK="PERSONAL_BOOK",t.ATTACHMENT="ATTACHMENT",t.RESOURCE="RESOURCE",t.HTML_PACKAGE="HTML_PACKAGE"})(mo||(mo={}));var yo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(yo||(yo={}));var go;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(go||(go={}));var vo;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(vo||(vo={}));var bo;(function(t){t.BOOKMARK__CREATE="BOOKMARK__CREATE",t.BOOKMARK__DELETE="BOOKMARK__DELETE",t.CASE_DEFLECTION__START="CASE_DEFLECTION__START",t.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",t.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",t.CHATBOT__RATE="CHATBOT__RATE",t.COLLECTION__CREATE="COLLECTION__CREATE",t.COLLECTION__UPDATE="COLLECTION__UPDATE",t.COLLECTION__DELETE="COLLECTION__DELETE",t.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",t.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",t.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",t.DOCUMENT__PRINT="DOCUMENT__PRINT",t.DOCUMENT__PROCESS="DOCUMENT__PROCESS",t.DOCUMENT__RATE="DOCUMENT__RATE",t.DOCUMENT__SEARCH="DOCUMENT__SEARCH",t.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",t.DOCUMENT__UNRATE="DOCUMENT__UNRATE",t.FEEDBACK__SEND="FEEDBACK__SEND",t.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",t.AI__RATE="AI__RATE",t.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",t.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",t.KHUB__PROCESS="KHUB__PROCESS",t.KHUB__SEARCH="KHUB__SEARCH",t.LABELS__DOWNLOAD="LABELS__DOWNLOAD",t.LINK__SHARE="LINK__SHARE",t.PAGE__DISPLAY="PAGE__DISPLAY",t.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",t.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",t.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",t.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",t.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",t.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",t.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",t.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",t.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",t.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",t.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",t.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",t.TOPIC__RATE="TOPIC__RATE",t.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",t.TOPIC__UNRATE="TOPIC__UNRATE",t.USER__LOGIN="USER__LOGIN",t.USER__LOGOUT="USER__LOGOUT",t.HEARTBEAT="HEARTBEAT"})(bo||(bo={}));var xo;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(xo||(xo={}));var So;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER"})(So||(So={}));var Eo;(function(t){t.HOMEPAGE="HOMEPAGE",t.CUSTOM="CUSTOM",t.HEADER="HEADER",t.READER="READER",t.TOPIC_TEMPLATE="TOPIC_TEMPLATE",t.SEARCH="SEARCH",t.SEARCH_RESULT="SEARCH_RESULT",t.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",t.LINK_PREVIEW="LINK_PREVIEW",t.UD_VIEWER="UD_VIEWER",t.ASSET_VIEWER="ASSET_VIEWER"})(Eo||(Eo={}));var Ao;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Ao||(Ao={}));var _o;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(_o||(_o={}));var Co;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Co||(Co={}));var wo;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(wo||(wo={}));var Oo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"})(Oo||(Oo={}));var dt;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(dt||(dt={}));var To;(function(t){t.ASC="ASC",t.DESC="DESC"})(To||(To={}));var Ro;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Ro||(Ro={}));var Ei;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ei||(Ei={}));var Lo;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Lo||(Lo={}));var ko;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(ko||(ko={}));var Do;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Do||(Do={}));var Ai;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ai||(Ai={}));var Po;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Po||(Po={}));var _i;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(_i||(_i={}));var No;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(No||(No={}));var Q;(function(t){t.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",t.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",t.HTML_EXPORT_USER="HTML_EXPORT_USER",t.PDF_EXPORT_USER="PDF_EXPORT_USER",t.SAVED_SEARCH_USER="SAVED_SEARCH_USER",t.COLLECTION_USER="COLLECTION_USER",t.OFFLINE_USER="OFFLINE_USER",t.ANALYTICS_USER="ANALYTICS_USER",t.BETA_USER="BETA_USER",t.DEBUG_USER="DEBUG_USER",t.PRINT_USER="PRINT_USER",t.RATING_USER="RATING_USER",t.FEEDBACK_USER="FEEDBACK_USER",t.GENERATIVE_AI_USER="GENERATIVE_AI_USER",t.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",t.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",t.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN"})(Q||(Q={}));var Fe;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Fe||(Fe={}));var Mo;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Mo||(Mo={}));var Io;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Io||(Io={}));var $o;(function(t){t.VALID="VALID",t.INVALID="INVALID"})($o||($o={}));var Fo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SUMMARY="SUMMARY",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(Fo||(Fo={}));var Uo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Uo||(Uo={}));var Bo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Bo||(Bo={}));var Vo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Vo||(Vo={}));var Ho;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ho||(Ho={}));var zo;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(zo||(zo={}));var jo;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(jo||(jo={}));var qo;(function(t){t.SOURCES="SOURCES",t.ENRICH_AND_CLEAN="ENRICH_AND_CLEAN",t.VOCABULARIES="VOCABULARIES",t.METADATA="METADATA",t.PRETTY_URL="PRETTY_URL",t.ACCESS_RULE="ACCESS_RULE",t.DESIGNED_PAGES="DESIGNED_PAGES",t.THEME_STUDIO="THEME_STUDIO",t.PORTAL_GENERAL="PORTAL_GENERAL",t.ASSETS="ASSETS",t.CODE_LIBRARY="CODE_LIBRARY",t.THEME="THEME",t.CONTENT_STYLES="CONTENT_STYLES",t.HOMEPAGE="HOMEPAGE",t.CLASSIC_SEARCH_PAGE="CLASSIC_SEARCH_PAGE",t.CLASSIC_READER_PAGE="CLASSIC_READER_PAGE",t.PORTAL_METADATA="PORTAL_METADATA",t.LANGUAGES="LANGUAGES",t.PRINT_TEMPLATES="PRINT_TEMPLATES",t.OFFLINE="OFFLINE",t.CUSTOM_JS="CUSTOM_JS",t.CONFIDENTIALITY="CONFIDENTIALITY",t.NOTIFICATIONS="NOTIFICATIONS"})(qo||(qo={}));var Ko;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Ko||(Ko={}));var pd={[Q.PERSONAL_BOOK_SHARE_USER]:[Q.PERSONAL_BOOK_USER],[Q.HTML_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.PDF_EXPORT_USER]:[Q.PERSONAL_BOOK_USER],[Q.KHUB_ADMIN]:[Q.CONTENT_PUBLISHER],[Q.ADMIN]:[Q.KHUB_ADMIN,Q.USERS_ADMIN,Q.PORTAL_ADMIN,Q.BEHAVIOR_DATA_USER],[Q.GENERATIVE_AI_EXPORT_USER]:[Q.GENERATIVE_AI_USER]};function Wo(t,e){return t===e||(pd[t]??[]).some(r=>Wo(r,e))}function zn(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(i=>Wo(i,e))}var ds=d(U());var Go=d(U(),1);var jn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)};function Yo(t,e){return(0,Go.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return Br(t);try{return JSON.parse(r)}catch{return Br(t)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Vr,...e??{}})}function fd(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let r,i;if(Array.isArray(t)){if(r=t.length,r!=e.length)return!1;for(i=r;i--!==0;)if(!ur(t[i],e[i]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;for(i of t.entries())if(!ur(i[1],e.get(i[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(i of t.entries())if(!e.has(i[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let s=o=>Object.keys(o).filter(a=>o[a]!=null),n=s(t);if(r=n.length,r!==s(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,n[i]))return!1;for(i=r;i--!==0;){let o=n[i];if(!ur(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function ur(t,e){try{return fd(t,e)}catch{return!1}}function Vr(t,e){return!ur(t,e)}function Br(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Ci(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let s=e(i);return s[t]=!0,s}}var Qo=d(U(),1);var qn=t=>{let e=t??{};return(r,i)=>{var s;let n={hasChanged:Vr,attribute:!1,...e};(0,Qo.property)(n)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(s=e.selector)!==null&&s!==void 0?s:(a=>a[i]),store:e.store})}};var wi=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(i=>i.type===e);return r&&(this.queue=this.queue.filter(i=>i!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Ut=d(U(),1);var Oi=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,i)=>{this.resolvePromise=r,this.rejectPromise=i})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let i=[...this.callbacks];this.callbacks=[];let s=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),n=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){s(a);return}n(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Jo=d(R(),1);var Ti=globalThis,hd=Ti.ShadowRoot&&(Ti.ShadyCSS===void 0||Ti.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Xo=(t,e)=>{if(hd)t.adoptedStyleSheets=e.map(r=>r instanceof CSSStyleSheet?r:r.styleSheet);else for(let r of e){let i=document.createElement("style"),s=Ti.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=r.cssText,t.appendChild(i)}};var Ri=class extends Jo.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},i=this.renderOptions.creationScope=this.attachShadow(r);return Xo(i,e.elementStyles),i}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,i])=>this.defineScopedElement(r,i))}static defineScopedElement(e,r){jn(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Zo(t,e,...r){var i;let s=t.querySelector(e);for(let n of r)s=(i=s?.shadowRoot)===null||i===void 0?void 0:i.querySelector(n);return s}var pr=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ia,ea=Symbol("constructorPrototype"),ta=Symbol("constructorName"),na=Symbol("exportpartsDebouncer"),ra=Symbol("dynamicDependenciesLoaded"),dr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};dr.eventName="exportparts-updated";var tt=class extends Ri{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ia]=new Oi(5),this.scheduleExportpartsUpdate=()=>{var e,r,i;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(i=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&i!==void 0&&i)&&this[na].run(()=>{var s,n;!((s=this.exportpartsPrefix)===null||s===void 0)&&s.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((n=this.exportpartsPrefixes)===null||n===void 0?void 0:n.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ta]=this.constructor.name,this[ea]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ta]&&Object.setPrototypeOf(this,this[ea])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(i){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",i)}let r=this.constructor;r[ra]||(r[ra]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(dr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(dr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new dr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:s}=this.elementToFocus;if(i!=null){let n=[...s??[],i];r=Zo(this.shadowRoot,...n)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,s;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(n=>n.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((s=this.customStylesheet)!==null&&s!==void 0?s:"")}catch(n){console.error(n,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let n=document.createElement("style");n.classList.add("ft-lit-element--custom-stylesheet"),n.innerHTML=this.customStylesheet,this.shadowRoot.append(n)}}setExportpartsAttribute(e){var r,i,s,n,o,a;let l=f=>f!=null&&f.trim().length>0,c=e.filter(l).map(f=>f.trim());if(c.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&i!==void 0?i:[]){let y=(n=(s=f.getAttribute("part"))===null||s===void 0?void 0:s.split(" "))!==null&&n!==void 0?n:[],x=(a=(o=f.getAttribute("exportparts"))===null||o===void 0?void 0:o.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],A=[...y,...x].filter(l).map(b=>b.trim());for(let b of A)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>c.map(y=>`${f}:${y}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};ia=na;pr([(0,Ut.property)()],tt.prototype,"exportpartsPrefix",void 0);pr([Yo([])],tt.prototype,"exportpartsPrefixes",void 0);pr([(0,Ut.property)({reflect:!0})],tt.prototype,"exportparts",void 0);pr([(0,Ut.property)()],tt.prototype,"customStylesheet",void 0);pr([(0,Ut.property)()],tt.prototype,"elementToFocus",void 0);pr([(0,Ut.state)()],tt.prototype,"useAdoptedStyleSheets",void 0);function Li(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Hr=Symbol("internalReduxEventsUnsubscribers"),bt=Symbol("internalStoresUnsubscribers"),Bt=Symbol("internalStores"),md=Ci(Symbol("withRedux"),function(t){var e,r,i;class s extends t{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[i]=new Map}get reduxConstructor(){return this.constructor}willUpdate(o){super.willUpdate(o),[...this.reduxConstructor.reduxReactiveProperties].some(a=>o.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Bt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Bt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[Bt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Bt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[Bt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Bt].forEach((o,a)=>this.subscribeToStore(a,o)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((o,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let c=this.getStore(o.store);c&&(o.store?this[bt].has(o.store):this[bt].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l;this[bt].set(o,a.subscribe(()=>this.updateFromStores())),this[Hr].set(o,[]),Li(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 p=f=>this[u](f);a.addEventListener(c.eventName,p),this[Hr].get(o).push(()=>a.removeEventListener(c.eventName,p))}})),this.onStoreAvailable(o)}unsubscribeFromStores(){this[bt].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[bt].has(o)&&this[bt].get(o)(),this[bt].delete(o),(a=this[Hr].get(o))===null||a===void 0||a.forEach(l=>l()),this[Hr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=bt,r=Bt,i=Hr,s.reduxProperties=new Map,s.reduxReactiveProperties=new Set,s.reduxEventListeners=new Map,s}),sa=class extends md(tt){};function ae(t){return`Minified Redux error #${t}; visit https://redux.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var yd=typeof Symbol=="function"&&Symbol.observable||"@@observable",oa=yd,Kn=()=>Math.random().toString(36).substring(7).split("").join("."),gd={INIT:`@@redux/INIT${Kn()}`,REPLACE:`@@redux/REPLACE${Kn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Kn()}`},ki=gd;function Di(t){if(typeof t!="object"||t===null)return!1;let e=t;for(;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(t)===e||Object.getPrototypeOf(t)===null}function Wn(t,e,r){if(typeof t!="function")throw new Error(ae(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ae(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ae(1));return r(Wn)(t,e)}let i=t,s=e,n=new Map,o=n,a=0,l=!1;function c(){o===n&&(o=new Map,n.forEach((b,_)=>{o.set(_,b)}))}function u(){if(l)throw new Error(ae(3));return s}function p(b){if(typeof b!="function")throw new Error(ae(4));if(l)throw new Error(ae(5));let _=!0;c();let P=a++;return o.set(P,b),function(){if(_){if(l)throw new Error(ae(6));_=!1,c(),o.delete(P),n=null}}}function f(b){if(!Di(b))throw new Error(ae(7));if(typeof b.type>"u")throw new Error(ae(8));if(typeof b.type!="string")throw new Error(ae(17));if(l)throw new Error(ae(9));try{l=!0,s=i(s,b)}finally{l=!1}return(n=o).forEach(P=>{P()}),b}function y(b){if(typeof b!="function")throw new Error(ae(10));i=b,f({type:ki.REPLACE})}function x(){let b=p;return{subscribe(_){if(typeof _!="object"||_===null)throw new Error(ae(11));function P(){let O=_;O.next&&O.next(u())}return P(),{unsubscribe:b(P)}},[oa](){return this}}}return f({type:ki.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:y,[oa]:x}}function vd(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:ki.INIT})>"u")throw new Error(ae(12));if(typeof r(void 0,{type:ki.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ae(13))})}function aa(t){let e=Object.keys(t),r={};for(let o=0;o<e.length;o++){let a=e[o];typeof t[a]=="function"&&(r[a]=t[a])}let i=Object.keys(r),s,n;try{vd(r)}catch(o){n=o}return function(a={},l){if(n)throw n;let c=!1,u={};for(let p=0;p<i.length;p++){let f=i[p],y=r[f],x=a[f],A=y(x,l);if(typeof A>"u"){let b=l&&l.type;throw new Error(ae(14))}u[f]=A,c=c||A!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function zr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function la(...t){return e=>(r,i)=>{let s=e(r,i),n=()=>{throw new Error(ae(15))},o={getState:s.getState,dispatch:(l,...c)=>n(l,...c)},a=t.map(l=>l(o));return n=zr(...a)(s.dispatch),{...s,dispatch:n}}}function ca(t){return Di(t)&&"type"in t&&typeof t.type=="string"}var va=Symbol.for("immer-nothing"),ua=Symbol.for("immer-draftable"),ye=Symbol.for("immer-state");function je(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var Le=Object,hr=Le.getPrototypeOf,Ii="constructor",Hi="prototype",Xn="configurable",$i="enumerable",Ni="writable",jr="value",rt=t=>!!t&&!!t[ye];function ke(t){return t?ba(t)||ji(t)||!!t[ua]||!!t[Ii]?.[ua]||qi(t)||Ki(t):!1}var bd=Le[Hi][Ii].toString(),da=new WeakMap;function ba(t){if(!t||!ss(t))return!1;let e=hr(t);if(e===null||e===Le[Hi])return!0;let r=Le.hasOwnProperty.call(e,Ii)&&e[Ii];if(r===Object)return!0;if(!fr(r))return!1;let i=da.get(r);return i===void 0&&(i=Function.toString.call(r),da.set(r,i)),i===bd}function zi(t,e,r=!0){Wr(t)===0?(r?Reflect.ownKeys(t):Le.keys(t)).forEach(s=>{e(s,t[s],t)}):t.forEach((i,s)=>e(s,i,t))}function Wr(t){let e=t[ye];return e?e.type_:ji(t)?1:qi(t)?2:Ki(t)?3:0}var Gn=(t,e,r=Wr(t))=>r===2?t.has(e):Le[Hi].hasOwnProperty.call(t,e),Jn=(t,e,r=Wr(t))=>r===2?t.get(e):t[e],Fi=(t,e,r,i=Wr(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function xd(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var ji=Array.isArray,qi=t=>t instanceof Map,Ki=t=>t instanceof Set,ss=t=>typeof t=="object",fr=t=>typeof t=="function",Yn=t=>typeof t=="boolean";function Sd(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var pt=t=>t.copy_||t.base_;var os=t=>t.modified_?t.copy_:t.base_;function Zn(t,e){if(qi(t))return new Map(t);if(Ki(t))return new Set(t);if(ji(t))return Array[Hi].slice.call(t);let r=ba(t);if(e===!0||e==="class_only"&&!r){let i=Le.getOwnPropertyDescriptors(t);delete i[ye];let s=Reflect.ownKeys(i);for(let n=0;n<s.length;n++){let o=s[n],a=i[o];a[Ni]===!1&&(a[Ni]=!0,a[Xn]=!0),(a.get||a.set)&&(i[o]={[Xn]:!0,[Ni]:!0,[$i]:a[$i],[jr]:t[o]})}return Le.create(hr(t),i)}else{let i=hr(t);if(i!==null&&r)return{...t};let s=Le.create(i);return Le.assign(s,t)}}function as(t,e=!1){return Wi(t)||rt(t)||!ke(t)||(Wr(t)>1&&Le.defineProperties(t,{set:Pi,add:Pi,clear:Pi,delete:Pi}),Le.freeze(t),e&&zi(t,(r,i)=>{as(i,!0)},!1)),t}function Ed(){je(2)}var Pi={[jr]:Ed};function Wi(t){return t===null||!ss(t)?!0:Le.isFrozen(t)}var Ui="MapSet",es="Patches",pa="ArrayMethods",xa={};function Vt(t){let e=xa[t];return e||je(0,t),e}var fa=t=>!!xa[t];var qr,Sa=()=>qr,Ad=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:fa(Ui)?Vt(Ui):void 0,arrayMethodsPlugin_:fa(pa)?Vt(pa):void 0});function ha(t,e){e&&(t.patchPlugin_=Vt(es),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ts(t){rs(t),t.drafts_.forEach(_d),t.drafts_=null}function rs(t){t===qr&&(qr=t.parent_)}var ma=t=>qr=Ad(qr,t);function _d(t){let e=t[ye];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function ya(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ye].modified_&&(ts(e),je(4)),ke(t)&&(t=ga(e,t));let{patchPlugin_:s}=e;s&&s.generateReplacementPatches_(r[ye].base_,t,e)}else t=ga(e,r);return Cd(e,t,!0),ts(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==va?t:void 0}function ga(t,e){if(Wi(e))return e;let r=e[ye];if(!r)return Bi(e,t.handledSet_,t);if(!Gi(r,t))return e;if(!r.modified_)return r.base_;if(!r.finalized_){let{callbacks_:i}=r;if(i)for(;i.length>0;)i.pop()(t);_a(r,t)}return r.copy_}function Cd(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&as(e,r)}function Ea(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var Gi=(t,e)=>t.scope_===e,wd=[];function Aa(t,e,r,i){let s=pt(t),n=t.type_;if(i!==void 0&&Jn(s,i,n)===e){Fi(s,i,r,n);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;zi(s,(l,c)=>{if(rt(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=t.draftLocations_.get(e)??wd;for(let a of o)Fi(s,a,r,n)}function Od(t,e,r){t.callbacks_.push(function(s){let n=e;if(!n||!Gi(n,s))return;s.mapSetPlugin_?.fixSetContents(n);let o=os(n);Aa(t,n.draft_??n,o,r),_a(n,s)})}function _a(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let s=i.getPath(t);s&&i.generatePatches_(t,s,e)}Ea(t)}}function Td(t,e,r){let{scope_:i}=t;if(rt(r)){let s=r[ye];Gi(s,i)&&s.callbacks_.push(function(){Mi(t);let o=os(s);Aa(t,r,o,e)})}else ke(r)&&t.callbacks_.push(function(){let n=pt(t);t.type_===3?n.has(r)&&Bi(r,i.handledSet_,i):Jn(n,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Bi(Jn(t.copy_,e,t.type_),i.handledSet_,i)})}function Bi(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||rt(t)||e.has(t)||!ke(t)||Wi(t)||(e.add(t),zi(t,(i,s)=>{if(rt(s)){let n=s[ye];if(Gi(n,r)){let o=os(n);Fi(t,i,o,t.type_),Ea(n)}}else ke(s)&&Bi(s,e,r)})),t}function Rd(t,e){let r=ji(t),i={type_:r?1:0,scope_:e?e.scope_:Sa(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},s=i,n=Vi;r&&(s=[i],n=Kr);let{revoke:o,proxy:a}=Proxy.revocable(s,n);return i.draft_=a,i.revoke_=o,[a,i]}var Vi={get(t,e){if(e===ye)return t;let r=t.scope_.arrayMethodsPlugin_,i=t.type_===1&&typeof e=="string";if(i&&r?.isArrayOperationMethod(e))return r.createMethodInterceptor(t,e);let s=pt(t);if(!Gn(s,e,t.type_))return kd(t,s,e);let n=s[e];if(t.finalized_||!ke(n)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Sd(e))return n;if(n===Qn(t.base_,e)||Ld(t,e,n)){Mi(t);let o=t.type_===1?+e:e,a=ns(t.scope_,n,t,o);return t.copy_[o]=a}return n},has(t,e){return e in pt(t)},ownKeys(t){return Reflect.ownKeys(pt(t))},set(t,e,r){let i=Ca(pt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let s=Qn(pt(t),e),n=s?.[ye];if(n&&n.base_===r)return t.copy_[e]=r,t.assigned_.set(e,!1),!0;if(xd(r,s)&&(r!==void 0||Gn(t.base_,e,t.type_)))return!0;Mi(t),is(t)}return t.copy_[e]===r&&(r!==void 0||Gn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),Td(t,e,r)),!0},deleteProperty(t,e){return Mi(t),Qn(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),is(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=pt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Ni]:!0,[Xn]:t.type_!==1||e!=="length",[$i]:i[$i],[jr]:r[e]}},defineProperty(){je(11)},getPrototypeOf(t){return hr(t.base_)},setPrototypeOf(){je(12)}},Kr={};for(let t in Vi){let e=Vi[t];Kr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Kr.deleteProperty=function(t,e){return Kr.set.call(this,t,e,void 0)};Kr.set=function(t,e,r){return Vi.set.call(this,t[0],e,r,t[0])};function Qn(t,e){let r=t[ye];return(r?pt(r):t)[e]}function Ld(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!ke(r)||r[ye]?!1:t.baseRefs_.has(r)}function kd(t,e,r){let i=Ca(e,r);return i?jr in i?i[jr]:i.get?.call(t.draft_):void 0}function Ca(t,e){if(!(e in t))return;let r=hr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=hr(r)}}function is(t){t.modified_||(t.modified_=!0,t.parent_&&is(t.parent_))}function Mi(t){t.copy_||(t.assigned_=new Map,t.copy_=Zn(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Dd=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(fr(e)&&!fr(r)){let n=r;r=e;let o=this;return function(l=n,...c){return o.produce(l,u=>r.call(this,u,...c))}}fr(r)||je(6),i!==void 0&&!fr(i)&&je(7);let s;if(ke(e)){let n=ma(this),o=ns(n,e,void 0),a=!0;try{s=r(o),a=!1}finally{a?ts(n):rs(n)}return ha(n,i),ya(s,n)}else if(!e||!ss(e)){if(s=r(e),s===void 0&&(s=e),s===va&&(s=void 0),this.autoFreeze_&&as(s,!0),i){let n=[],o=[];Vt(es).generateReplacementPatches_(e,s,{patches_:n,inversePatches_:o}),i(n,o)}return s}else je(1,e)},this.produceWithPatches=(e,r)=>{if(fr(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,s;return[this.produce(e,r,(o,a)=>{i=o,s=a}),i,s]},Yn(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Yn(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Yn(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){ke(t)||je(8),rt(t)&&(t=wa(t));let e=ma(this),r=ns(e,t,void 0);return r[ye].isManual_=!0,rs(e),r}finishDraft(t,e){let r=t&&t[ye];(!r||!r.isManual_)&&je(9);let{scope_:i}=r;return ha(i,e),ya(void 0,i)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let r;for(r=e.length-1;r>=0;r--){let s=e[r];if(s.path.length===0&&s.op==="replace"){t=s.value;break}}r>-1&&(e=e.slice(r+1));let i=Vt(es).applyPatches_;return rt(t)?i(t,e):this.produce(t,s=>i(s,e))}};function ns(t,e,r,i){let[s,n]=qi(e)?Vt(Ui).proxyMap_(e,r):Ki(e)?Vt(Ui).proxySet_(e,r):Rd(e,r);return(r?.scope_??Sa()).drafts_.push(s),n.callbacks_=r?.callbacks_??[],n.key_=i,r&&i!==void 0?Od(r,n,i):n.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(n);let{patchPlugin_:c}=l;n.modified_&&c&&c.generatePatches_(n,[],l)}),s}function wa(t){return rt(t)||je(10,t),Oa(t)}function Oa(t){if(!ke(t)||Wi(t))return t;let e=t[ye],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=Zn(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=Zn(t,!0);return zi(r,(s,n)=>{Fi(r,s,Oa(n))},i),e&&(e.finalized_=!1),r}var Pd=globalThis.Iterator,Kf=typeof Pd?.from=="function";var Nd=new Dd,ls=Nd.produce;function Ta(t){return({dispatch:r,getState:i})=>s=>n=>typeof n=="function"?n(r,i,t):s(n)}var Ra=Ta(),La=Ta;var Md=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?zr:zr.apply(null,arguments)},Zf=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Id=t=>t&&typeof t.match=="function";function xt(t,e){function r(...i){if(e){let s=e(...i);if(!s)throw new Error(ft(0));return{type:t,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>ca(i)&&i.type===t,r}var Ma=class Gr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Gr.prototype)}static get[Symbol.species](){return Gr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Gr(...e[0].concat(this)):new Gr(...e.concat(this))}};function ka(t){return ke(t)?ls(t,()=>{}):t}function Yi(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function $d(t){return typeof t=="boolean"}var Fd=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:n=!0}=e??{},o=new Ma;return r&&($d(r)?o.push(Ra):o.push(La(r.extraArgument))),o},Ud="RTK_autoBatch";var Da=t=>e=>{setTimeout(e,t)},Bd=(t,e)=>r=>{let i=!1,s=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(o),r())},n=t(s),o=setTimeout(s,e)},Vd=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),s=!0,n=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Bd(window.requestAnimationFrame,100):Da(10):t.type==="callback"?t.queueNotification:Da(t.timeout),c=()=>{o=!1,n&&(n=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let p=()=>s&&u(),f=i.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Ud],n=!s,n&&(o||(o=!0,l(c))),i.dispatch(u)}finally{s=!0}}})},Hd=t=>function(r){let{autoBatch:i=!0}=r??{},s=new Ma(t);return i&&s.push(Vd(typeof i=="object"?i:void 0)),s};function Ia(t){let e=Fd(),{reducer:r=void 0,middleware:i,devTools:s=!0,duplicateMiddlewareCheck:n=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(Di(r))l=aa(r);else throw new Error(ft(1));let c;typeof i=="function"?c=i(e):c=e();let u=zr;s&&(u=Md({trace:!1,...typeof s=="object"&&s}));let p=la(...c),f=Hd(p),y=typeof a=="function"?a(f):f(),x=u(...y);return Wn(l,o,x)}function $a(t){let e={},r=[],i,s={addCase(n,o){let a=typeof n=="string"?n:n.type;if(!a)throw new Error(ft(28));if(a in e)throw new Error(ft(29));return e[a]=o,s},addAsyncThunk(n,o){return o.pending&&(e[n.pending.type]=o.pending),o.rejected&&(e[n.rejected.type]=o.rejected),o.fulfilled&&(e[n.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:n.settled,reducer:o.settled}),s},addMatcher(n,o){return r.push({matcher:n,reducer:o}),s},addDefaultCase(n){return i=n,s}};return t(s),[e,r,i]}function zd(t){return typeof t=="function"}function jd(t,e){let[r,i,s]=$a(e),n;if(zd(t))n=()=>ka(t());else{let a=ka(t);n=()=>a}function o(a=n(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[s]),c.reduce((u,p)=>{if(p)if(rt(u)){let y=p(u,l);return y===void 0?u:y}else{if(ke(u))return ls(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},a)}return o.getInitialState=n,o}var qd=(t,e)=>Id(t)?t.match(e):t(e);function Kd(...t){return e=>t.some(r=>qd(r,e))}var Wd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Gd=(t=21)=>{let e="",r=t;for(;r--;)e+=Wd[Math.random()*64|0];return e},Yd=["name","message","stack","code"],cs=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Pa=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Qd=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Yd)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Na="External signal was aborted",Xd=(()=>{function t(e,r,i){let s=xt(e+"/fulfilled",(l,c,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),n=xt(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=xt(e+"/rejected",(l,c,u,p,f)=>({payload:p,error:(i&&i.serializeError||Qd)(l||"Rejected"),meta:{...f||{},arg:u,requestId:c,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:c}={}){return(u,p,f)=>{let y=i?.idGenerator?i.idGenerator(l):Gd(),x=new AbortController,A,b;function _(S){b=S,x.abort()}c&&(c.aborted?_(Na):c.addEventListener("abort",()=>_(Na),{once:!0}));let P=(async function(){let S;try{let L=i?.condition?.(l,{getState:p,extra:f});if(Zd(L)&&(L=await L),L===!1||x.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let G=new Promise((F,Y)=>{A=()=>{Y({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",A,{once:!0})});u(n(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:f}))),S=await Promise.race([G,Promise.resolve(r(l,{dispatch:u,getState:p,extra:f,requestId:y,signal:x.signal,abort:_,rejectWithValue:((F,Y)=>new cs(F,Y)),fulfillWithValue:((F,Y)=>new Pa(F,Y))})).then(F=>{if(F instanceof cs)throw F;return F instanceof Pa?s(F.payload,y,l,F.meta):s(F,y,l)})])}catch(L){S=L instanceof cs?o(null,y,l,L.payload,L.meta):o(L,y,l)}finally{A&&x.signal.removeEventListener("abort",A)}return i&&!i.dispatchConditionRejection&&o.match(S)&&S.meta.condition||u(S),S})();return Object.assign(P,{abort:_,requestId:y,arg:l,unwrap(){return P.then(Jd)}})}}return Object.assign(a,{pending:n,rejected:o,fulfilled:s,settled:Kd(o,s),typePrefix:e})}return t.withTypes=()=>t,t})();function Jd(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function Zd(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Fa=Symbol.for("rtk-slice-createasyncthunk"),th={[Fa]:Xd};function ep(t,e){return`${t}/${e}`}function tp({creators:t}={}){let e=t?.asyncThunk?.[Fa];return function(i){let{name:s,reducerPath:n=s}=i;if(!s)throw new Error(ft(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(ip()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(S,O){let L=typeof S=="string"?S:S.type;if(!L)throw new Error(ft(12));if(L in l.sliceCaseReducersByType)throw new Error(ft(13));return l.sliceCaseReducersByType[L]=O,c},addMatcher(S,O){return l.sliceMatchers.push({matcher:S,reducer:O}),c},exposeAction(S,O){return l.actionCreators[S]=O,c},exposeCaseReducer(S,O){return l.sliceCaseReducersByName[S]=O,c}};a.forEach(S=>{let O=o[S],L={reducerName:S,type:ep(s,S),createNotation:typeof i.reducers=="function"};sp(O)?ap(L,O,c,e):np(L,O,c)});function u(){let[S={},O=[],L=void 0]=typeof i.extraReducers=="function"?$a(i.extraReducers):[i.extraReducers],G={...S,...l.sliceCaseReducersByType};return jd(i.initialState,F=>{for(let Y in G)F.addCase(Y,G[Y]);for(let Y of l.sliceMatchers)F.addMatcher(Y.matcher,Y.reducer);for(let Y of O)F.addMatcher(Y.matcher,Y.reducer);L&&F.addDefaultCase(L)})}let p=S=>S,f=new Map,y=new WeakMap,x;function A(S,O){return x||(x=u()),x(S,O)}function b(){return x||(x=u()),x.getInitialState()}function _(S,O=!1){function L(F){let Y=F[S];return typeof Y>"u"&&O&&(Y=Yi(y,L,b)),Y}function G(F=p){let Y=Yi(f,O,()=>new WeakMap);return Yi(Y,F,()=>{let Fr={};for(let[$e,Ft]of Object.entries(i.selectors??{}))Fr[$e]=rp(Ft,F,()=>Yi(y,F,b),O);return Fr})}return{reducerPath:S,getSelectors:G,get selectors(){return G(L)},selectSlice:L}}let P={name:s,reducer:A,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,..._(n),injectInto(S,{reducerPath:O,...L}={}){let G=O??n;return S.inject({reducerPath:G,reducer:A},L),{...P,..._(G,!0)}}};return P}}function rp(t,e,r,i){function s(n,...o){let a=e(n);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return s.unwrapped=t,s}var Ua=tp();function ip(){function t(e,r){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...r}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...r){return e(...r)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,r){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:r}},asyncThunk:t}}function np({type:t,reducerName:e,createNotation:r},i,s){let n,o;if("reducer"in i){if(r&&!op(i))throw new Error(ft(17));n=i.reducer,o=i.prepare}else n=i;s.addCase(t,n).exposeCaseReducer(e,n).exposeAction(e,o?xt(t,o):xt(t))}function sp(t){return t._reducerDefinitionType==="asyncThunk"}function op(t){return t._reducerDefinitionType==="reducerWithPrepare"}function ap({type:t,reducerName:e},r,i,s){if(!s)throw new Error(ft(18));let{payloadCreator:n,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,p=s(t,n,u);i.exposeAction(e,p),o&&i.addCase(p.fulfilled,o),a&&i.addCase(p.pending,a),l&&i.addCase(p.rejected,l),c&&i.addMatcher(p.settled,c),i.exposeCaseReducer(e,{fulfilled:o||Qi,pending:a||Qi,rejected:l||Qi,settled:c||Qi})}function Qi(){}var Ba="listener",Va="completed",Ha="cancelled",rh=`task-${Ha}`,ih=`task-${Va}`,nh=`${Ba}-${Ha}`,sh=`${Ba}-${Va}`;var{assign:za}=Object;var us="listenerMiddleware";var lp=za(xt(`${us}/add`),{withTypes:()=>lp}),oh=xt(`${us}/removeAll`),cp=za(xt(`${us}/remove`),{withTypes:()=>cp});function ft(t){return`Minified Redux Toolkit error #${t}; visit https://redux-toolkit.js.org/Errors?code=${t} for the full message or use the non-minified dev environment for full errors. `}var up=Ci(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,s){this.eventBus.addEventListener(r,i,s)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,s){this.eventBus.removeEventListener(r,i,s)}}}),Xi=class extends up(Object){};window.ftReduxStores||(window.ftReduxStores={});var ja=class t extends Xi{static get(e){var r;let i=typeof e=="string"?e:e.name,s=typeof e=="string"?void 0:e,n=window.ftReduxStores[i];if(Li(n))return n;if(s==null)return;let o=Ua({...s,reducers:(r=s.reducers)!==null&&r!==void 0?r:{}}),a=Ia({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=Br(o.getInitialState());for(let p of c.keeping)u[p]=(l??u)[p];return u}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[s.name]=new t(o,a,s.eventBus)}constructor(e,r,i){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new wi,this.injectInto=(n,o)=>this.reduxSlice.injectInto(n,o),this.selectSlice=n=>this.reduxSlice.selectSlice(n);let s=n=>n!=null?JSON.parse(JSON.stringify(n)):n;this.actions=new Proxy(this.reduxSlice.actions,{get:(n,o,a)=>{let l=o,c=n[l];return c?(...u)=>{let p=c(...u.map(s));return this.reduxStore.dispatch(p),p}:u=>{let p=l,f=this.getState()[p];ur(f,u)||this.setState({[p]:s(u)})}}}),this.eventBus=i??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var Ji=class{static format(e,r,i,s,n){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,s,!!n)):this.getIntlDateTime(e,r,i,s,!!n)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,s,n){let o=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(r,{dateStyle:i?"medium":"short"}).format(o),l=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(o);return n?l:s?`${a} ${l}`:a}static getTimezoneAsString(){let e=i=>String(Math.floor(i)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Zi=d(g()),dp="ft-app-info",St=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};St.eventName="authentication-change";var Yr=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Yr.eventName="ui-locale-changed";var pp={session:(t,e)=>{(0,Zi.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>E.dispatchEvent(new St(e.payload)),0))}},E=Zi.FtReduxStore.get({name:dp,reducers:pp,initialState:{baseUrl:void 0,tenantId:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableContentLocales:[],localesConfiguration:void 0,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,noCustomCode:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1,stickyFilters:void 0}});var qa=d(g()),en=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ka=(0,qa.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{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 s,n;return((n=(s=this.metadataDescriptors.find(a=>a.key===i))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1)?a=>Ji.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return en([(0,ds.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),en([(0,ds.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),en([qn({store:E.name,selector:r=>{var i,s;return(s=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&s!==void 0?s:[]}})],e.prototype,"metadataDescriptors",void 0),en([qn({store:E.name})],e.prototype,"uiLocale",void 0),e});var on=d(g());var ps=d(g());var Ht=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=E.getState(),s=e??i;if(r&&s&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,s,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let s=E.subscribe(()=>{i=t.get(e),i&&(s(),r(i))})}})}};var mr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ht.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ht.await()}};var Ee=class extends mr{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(n,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let s=this.constructor;s.commonCache=(i=s.commonCache)!==null&&i!==void 0?i:new ps.CacheRegistry,this.cache=e?s.commonCache:new ps.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,i)=>0|31*r+i.charCodeAt(0),0))}};var tn=class extends Ee{async listMySearches(){let{session:e}=E.getState();return zn(e,Q.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var rn=class extends Ee{async listMyBookmarks(){let e=E.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var nn=class extends Ee{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var sn=class extends Ee{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var fp="ft-user-assets",hp={setAssetCount:(t,e)=>{let{userAssetType:r,count:i}=e.payload.assetCount;t.assetCounts.allAsset[r]=i},clearAssetCount:t=>{Object.values(Fe).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let r=e.payload.mapId;t.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:r,mapId:i,asset:s}=e.payload;hs(t,r,[...fs(t,r),s]),Wa(t,r,1,i),Ga(t,s)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;hs(t,r,fs(t,r).map(s=>s.id===i.id?i:s)),Ga(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:s}=e.payload;hs(t,r,fs(t,r).filter(n=>n.id!==s)),Wa(t,r,-1,i)}},Ya={[Fe.SEARCHES]:"savedSearches",[Fe.BOOKMARKS]:"bookmarks",[Fe.BOOKS]:void 0,[Fe.COLLECTIONS]:void 0},fs=(t,e)=>{var r;let i=Ya[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},hs=(t,e,r)=>{let i=Ya[e];i&&(t[i]=r)},Wa=(t,e,r,i)=>{let s=t.assetCounts.allAsset[e];if(s!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,s+r),e===Fe.BOOKMARKS&&i)){let n=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,n+r)}},Ga=(t,e)=>{let r=t.assetLabels.map(s=>s.title),i=e.labels.filter(s=>!r.includes(s)).map(s=>({title:s}));t.assetLabels.push(...i)},be=on.FtReduxStore.get({name:fp,reducers:hp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Fe).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ms=class{constructor(e=new nn,r=new sn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rn,this.savedSearchesService=new tn,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=E.getState();(0,on.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),be.actions.clearAssetCount(),be.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),be.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),be.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();be.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();be.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&be.getState().assetCounts.allAsset[e]!==r.count&&be.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&be.getState().assetCounts.bookmarkByMap[e]!==r.count&&be.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(be.getState().assetCounts.bookmarkByMap).length!==0;e===Fe.BOOKMARKS&&r&&be.actions.clearBookmarkCountByMap(),be.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;be.actions.bookmarks(r)}}},mp=new ms;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=mp);var ys=class{addCommand(e,r=!1){E.commands.add(e,r)}consumeCommand(e){return E.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ys;var Ue=d(g());var Qa,yr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},yp=Symbol("clearAfterUnitTest"),an=class extends(0,Ue.withEventBus)(Ee){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Qa]=()=>{this.defaultMessages={},this.cache=new Ue.CacheRegistry,this.listeners={}},this.currentUiLocale=E.getState().uiLocale,E.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=E.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var i;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let s={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Ue.deepEqual)(this.defaultMessages[e],s)||(this.defaultMessages[e]=s,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,i;return this.fetchContext(e),(i=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&i!==void 0?i:{}}resolveRawMessage(e,r){let i=e.toLowerCase();return this.resolveContext(i)[r]}resolveMessage(e,r,...i){var s;let n=e.toLowerCase(),o=this.resolveContext(n);return new Ue.ParametrizedLabelResolver((s=this.defaultMessages[n])!==null&&s!==void 0?s:{},o).resolve(r,...i)}async fetchContext(e){let r=!this.cache.has(e),i;try{i=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(s){!(s instanceof Ue.CanceledPromiseError)&&r&&console.error(s)}return i}subscribe(e,r){var i;return e=e.toLowerCase(),this.listeners[e]=(i=this.listeners[e])!==null&&i!==void 0?i:new Set,this.listeners[e].add(r),()=>{var s;return(s=this.listeners[e])===null||s===void 0?void 0:s.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new yr({loadedContexts:e})),this.dispatchEvent(new yr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new yr({loadedContexts:[e]})),this.dispatchEvent(new yr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Ue.delay)(0).then(()=>i()).catch(()=>null)))}};Qa=yp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends an{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends an{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var gr=window.FluidTopicsI18nService,ln=window.FluidTopicsCustomI18nService;var Xa=d(g()),gs=class{highlightHtml(e,r,i){(0,Xa.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new gs;var Ja=d(g());var vs=class{isDate(e){var r,i,s,n;return(n=(s=((i=(r=E.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&i!==void 0?i:[]).find(a=>a.key===e))===null||s===void 0?void 0:s.date)!==null&&n!==void 0?n:!1}format(e,r){var i,s,n,o;if(e==null)return"";try{return Ja.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(s=r?.longFormat)!==null&&s!==void 0?s:!1,(n=r?.withTime)!==null&&n!==void 0?n:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new vs;var Za=d(g());var Qr=class{static get(e,r){var i,s,n,o;let a=E.getState(),{lang:l,region:c}=(n=(s=(i=a.localesConfiguration)===null||i===void 0?void 0:i.defaultLocales)===null||s===void 0?void 0:s.defaultContentLocale)!==null&&n!==void 0?n:{lang:"en",region:"US"};return new Za.SearchPlaceConverter(a.baseUrl,e??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,r??`${l}-${c}`)}};var bs=class{urlToSearchRequest(e){return Qr.get().parse(e)}searchRequestToUrl(e){return Qr.get().serialize(e)}};window.FluidTopicsUrlService=new bs;var ht=d(g());var zt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};zt.eventName="before-location-change";var jt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};jt.eventName="change";var xs=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},el=new xs;var cn=class t extends ht.WithEventBus{static build(){return new t(window.history,el,()=>window.location,!1)}constructor(e,r,i,s){var n,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(n=e.state)===null||n===void 0?void 0:n.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(s)}setCurrentState(e,r=!1){let i=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},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,ht.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new jt(this.currentItem())),0)}installProxies(){let e=r=>(i,s,[n,o,a])=>{let l=new zt(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let c=r(),u={...c===this.currentIndex?this.currentState:void 0,...n,index:c,href:l.detail.nextLocation.href};i.apply(s,[u,o,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let i={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(i)}addBeforeLocationChangeListener(e){this.addEventListener(zt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(zt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(jt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(jt.eventName,e)}currentItem(){return(0,ht.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,ht.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,ht.deepCopy)(r.find(i=>e(i)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,ht.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let i=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!i)return e;let s=e,n=e+1;for(;this.states.length>n&&!this.isDifferentMajorState(n,i);)this.hasState(n)&&(s=n),n++;return s}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var i;if(!this.hasState(e))return!1;let s=r??this.currentState.majorStateId,n=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return n==null||n!=s}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=cn.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:t=>window.FluidTopicsInternalHistoryService.backwardItemMatching(t),addHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(t),removeHistoryChangeListener:t=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(t),addBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.addBeforeLocationChangeListener(t),removeBeforeLocationChangeListener:t=>window.FluidTopicsInternalHistoryService.removeBeforeLocationChangeListener(t)});var tl=d(R());var rl=tl.css`
12
+ `;var nl=d(R()),xe=d(U()),Wt=d(g());var qt=d(g());function il(t,e){let{authenticationRequired:r,session:i}=E.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var un=class extends mr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Ss=class t extends qt.FtStateManager{static build(e){return new t(E,e)}constructor(e,r){super(),this.store=e,this.cache=new qt.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new un,this.cleanSessionDebouncer=new qt.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new qt.Debouncer(500),this.apiProvider=r??(()=>Ht.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(St.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(St.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>il(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,r){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:r}).then(i=>{i.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Yr(i)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Es=Ss.build();var Kt=class extends Event{constructor(e,r,i,s){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=s??!1}};var Xr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:i}=r;for(let{elementRef:s,callbackRef:n}of i){let o=s.deref(),a=n.deref();o===void 0||a===void 0||o.dispatchEvent(new Kt(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,s=this.pendingContextRequests.get(e.context);s===void 0&&this.pendingContextRequests.set(e.context,s={callbacks:new WeakMap,requests:[]});let n=s.callbacks.get(r);n===void 0&&s.callbacks.set(r,n=new WeakSet),n.has(i)||(n.add(i),s.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var ne=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},z=class extends Wt.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.noCustomCode=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Es,this.contextRoot=new Xr}render(){return nl.html`
13
13
  <slot></slot>
14
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>yr.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};z.elementDefinitions={};z.styles=tl;ne([(0,xe.property)()],z.prototype,"baseUrl",void 0);ne([(0,xe.property)()],z.prototype,"tenantId",void 0);ne([(0,xe.property)()],z.prototype,"apiIntegrationIdentifier",void 0);ne([(0,xe.property)()],z.prototype,"apiIntegrationAppVersion",void 0);ne([(0,xe.property)()],z.prototype,"uiLocale",void 0);ne([(0,Kt.jsonProperty)(null)],z.prototype,"availableUiLocales",void 0);ne([(0,Kt.jsonProperty)(null)],z.prototype,"metadataConfiguration",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"editorMode",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"noCustom",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"openExternalDocumentInNewTab",void 0);ne([(0,xe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],z.prototype,"noCustomComponent",void 0);ne([(0,xe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],z.prototype,"noCustomCode",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"withManualResources",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"navigatorOnline",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"forcedOffline",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"authenticationRequired",void 0);ne([(0,Kt.jsonProperty)([])],z.prototype,"messageContexts",void 0);ne([(0,Kt.jsonProperty)(void 0)],z.prototype,"session",void 0);var ol=d(g());var nl={"ft-app-context":z};(0,ol.customElements)(nl);var cn=class t extends Event{constructor(){super(t.eventName)}};cn.eventName="search-context-clear-all-filters";var un=t=>t.request.virtualField===xi.TITLE_ONLY&&t.request.scope===Ei.DOCUMENTS,dn=t=>t.request.keywordMatch==dt.MANDATORY;var sl=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Co=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},al=Symbol("registerInterval"),Ao=Symbol("registerAttempts"),vp=40,bp=(0,gr.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var o,n,s;super.willUpdate(i),i.has("neededSearchRequests")&&((o=this.stateManager)===null||o===void 0||o.unregisterComponent(this,(n=i.get("neededSearchRequests"))!==null&&n!==void 0?n:[]),(s=this.stateManager)===null||s===void 0||s.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[Ao]=0,this.tryToRegisterToContext(),this[al]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ao]>vp?window.clearInterval(this[al]):(this[Ao]++,this.dispatchEvent(new Co))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return sl([(0,_o.state)()],e.prototype,"stateManager",void 0),sl([(0,_o.state)({hasChanged:gr.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),St=class extends bp(gr.FtLitElementRedux){};var Dn=d(R()),pe=d(F()),cu=d(Gt()),Pr=d(g());var yl=d(R()),ce=d(F()),gl=d(Gt()),Yr=d(g());var hl=d(R()),Z=d(g()),cl=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorContent),le={color:cl,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",cl),opacityContentOnSurfacePressed:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Z.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ul=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorPrimary),dl={color:ul,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",ul)},pl=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorSecondary),fl={color:pl,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",pl)},ml=hl.css`
14
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(i=>gr.addContext(i)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};z.elementDefinitions={};z.styles=rl;ne([(0,xe.property)()],z.prototype,"baseUrl",void 0);ne([(0,xe.property)()],z.prototype,"tenantId",void 0);ne([(0,xe.property)()],z.prototype,"apiIntegrationIdentifier",void 0);ne([(0,xe.property)()],z.prototype,"apiIntegrationAppVersion",void 0);ne([(0,xe.property)()],z.prototype,"uiLocale",void 0);ne([(0,Wt.jsonProperty)(null)],z.prototype,"availableUiLocales",void 0);ne([(0,Wt.jsonProperty)(null)],z.prototype,"metadataConfiguration",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"editorMode",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"noCustom",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"openExternalDocumentInNewTab",void 0);ne([(0,xe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],z.prototype,"noCustomComponent",void 0);ne([(0,xe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],z.prototype,"noCustomCode",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"withManualResources",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"navigatorOnline",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"forcedOffline",void 0);ne([(0,xe.property)({type:Boolean})],z.prototype,"authenticationRequired",void 0);ne([(0,Wt.jsonProperty)([])],z.prototype,"messageContexts",void 0);ne([(0,Wt.jsonProperty)(void 0)],z.prototype,"session",void 0);var ol=d(g());var sl={"ft-app-context":z};(0,ol.customElements)(sl);var dn=class t extends Event{constructor(){super(t.eventName)}};dn.eventName="search-context-clear-all-filters";var pn=t=>t.request.virtualField===Ei.TITLE_ONLY&&t.request.scope===_i.DOCUMENTS,fn=t=>t.request.keywordMatch==dt.MANDATORY;var al=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Cs=class extends Event{constructor(){super("register-ft-search-component",{bubbles:!0,composed:!0})}},ll=Symbol("registerInterval"),As=Symbol("registerAttempts"),bp=40,xp=(0,vr.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var s,n,o;super.willUpdate(i),i.has("neededSearchRequests")&&((s=this.stateManager)===null||s===void 0||s.unregisterComponent(this,(n=i.get("neededSearchRequests"))!==null&&n!==void 0?n:[]),(o=this.stateManager)===null||o===void 0||o.registerComponent(this,this.neededSearchRequests))}setSearchStateManager(i){this.clearStateManager(),this.stateManager=i,this.stateManager.registerComponent(this,this.neededSearchRequests),this.addStore(i.store,"search")}clearStateManager(){this.stateManager&&(this.stateManager.unregisterComponent(this,this.neededSearchRequests),this.removeStore(this.stateManager.store),this.stateManager=void 0)}connectedCallback(){super.connectedCallback(),this[As]=0,this.tryToRegisterToContext(),this[ll]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[As]>bp?window.clearInterval(this[ll]):(this[As]++,this.dispatchEvent(new Cs))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return al([(0,_s.state)()],e.prototype,"stateManager",void 0),al([(0,_s.state)({hasChanged:vr.hasChanged})],e.prototype,"neededSearchRequests",void 0),e}),Et=class extends xp(vr.FtLitElementRedux){};var Pn=d(R()),pe=d(U()),uu=d(Yt()),Ir=d(g());var gl=d(R()),ce=d(U()),vl=d(Yt()),Jr=d(g());var ml=d(R()),Z=d(g()),ul=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorContent),le={color:ul,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",ul),opacityContentOnSurfacePressed:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Z.FtCssVariableFactory.external(Z.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Z.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},dl=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorPrimary),pl={color:dl,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",dl)},fl=Z.FtCssVariableFactory.extend("--ft-ripple-color","",Z.designSystemVariables.colorSecondary),hl={color:fl,backgroundColor:Z.FtCssVariableFactory.extend("--ft-ripple-background-color","",fl)},yl=ml.css`
15
15
  :host {
16
16
  display: contents;
17
17
  }
@@ -66,19 +66,19 @@
66
66
  }
67
67
 
68
68
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
69
- background-color: ${fl.backgroundColor};
69
+ background-color: ${hl.backgroundColor};
70
70
  }
71
71
 
72
72
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
73
- background-color: ${fl.color};
73
+ background-color: ${hl.color};
74
74
  }
75
75
 
76
76
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
77
- background-color: ${dl.backgroundColor};
77
+ background-color: ${pl.backgroundColor};
78
78
  }
79
79
 
80
80
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
81
- background-color: ${dl.color};
81
+ background-color: ${pl.color};
82
82
  }
83
83
 
84
84
  .ft-ripple .ft-ripple--background {
@@ -123,30 +123,21 @@
123
123
  opacity: ${le.opacityContentOnSurfacePressed};
124
124
  transform: translate(-50%, -50%) scale(1);
125
125
  }
126
- `;var Ae=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},N=class extends Yr.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new Yr.Debouncer(1e3),this.onTransitionStart=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Yr.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:o,y:n}=this.getCoordinates(e),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(o!=null?o-s.x:s.width/2),this.originY=Math.round(n!=null?n-s.y:s.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 yl.html`
126
+ `;var Ae=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},N=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=e=>{e.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=e=>{e.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new Jr.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:s,y:n}=this.getCoordinates(e),o=(i=(r=this.ripple)===null||r===void 0?void 0:r.getBoundingClientRect())!==null&&i!==void 0?i:{x:0,y:0,width:0,height:0};this.originX=Math.round(s!=null?s-o.x:o.width/2),this.originY=Math.round(n!=null?n-o.y:o.height/2)},this.startPress=e=>{this.moveRipple(e),this.pressed=!this.isIgnored(e)},this.endPress=()=>{this.pressed=!1},this.startHover=e=>{this.hovered=!this.isIgnored(e)},this.endHover=()=>{this.hovered=!1},this.startFocus=e=>{this.focused=this.isFocusVisible(e?.target)&&!this.isIgnored(e)},this.endFocus=()=>{this.focused=!1}}render(){let e={"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 gl.html`
127
127
  <style>
128
128
  .ft-ripple .ft-ripple--effect {
129
129
  left: ${this.originX}px;
130
130
  top: ${this.originY}px;
131
131
  }
132
132
  </style>
133
- <div class="${(0,gl.classMap)(e)}">
133
+ <div class="${(0,vl.classMap)(e)}">
134
134
  <div class="ft-ripple--background"></div>
135
135
  <div class="ft-ripple--effect"></div>
136
136
  </div>
137
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.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 e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),o=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",i,s),e.addEventListener("touchstart",o,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",n,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",i,s),e.removeEventListener("touchstart",o,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",n,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,o,n;return r.x!=null?{x:o,y:n}=r:i.touches!=null&&(o=i.touches[0].clientX,n=i.touches[0].clientY),{x:o,y:n}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};N.elementDefinitions={};N.styles=ml;Ae([(0,ce.property)({type:Boolean})],N.prototype,"primary",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"secondary",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"unbounded",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"activated",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"selected",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"disabled",void 0);Ae([(0,ce.state)()],N.prototype,"hovered",void 0);Ae([(0,ce.state)()],N.prototype,"focused",void 0);Ae([(0,ce.state)()],N.prototype,"pressed",void 0);Ae([(0,ce.state)()],N.prototype,"rippling",void 0);Ae([(0,ce.state)()],N.prototype,"originX",void 0);Ae([(0,ce.state)()],N.prototype,"originY",void 0);Ae([(0,ce.query)(".ft-ripple")],N.prototype,"ripple",void 0);Ae([(0,ce.query)(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0);var bl=d(g());var vl={"ft-ripple":N};(0,bl.customElements)(vl);var Do=globalThis,xl=t=>t,pn=Do.trustedTypes,Sl=pn?pn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ol="$lit$",Et=`lit$${Math.random().toFixed(9).slice(2)}$`,Tl="?"+Et,xp=`<${Tl}>`,Xt=document,fn=()=>Xt.createComment(""),Xr=t=>t===null||typeof t!="object"&&typeof t!="function",Po=Array.isArray,Sp=t=>Po(t)||typeof t?.[Symbol.iterator]=="function",wo=`[
138
- \f\r]`,Qr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,El=/-->/g,Al=/>/g,Yt=RegExp(`>|${wo}(?:([^\\s"'>=/]+)(${wo}*=${wo}*(?:[^
139
- \f\r"'\`<>=]|("|')|))|$)`,"g"),_l=/'/g,Cl=/"/g,Rl=/^(?:script|style|textarea|title)$/i,No=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Ll=No(1),kl=No(2),Dl=No(3),Jr=Symbol.for("lit-noChange"),ee=Symbol.for("lit-nothing"),wl=new WeakMap,Qt=Xt.createTreeWalker(Xt,129);function Pl(t,e){if(!Po(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Sl!==void 0?Sl.createHTML(e):e}var Ep=(t,e)=>{let r=t.length-1,i=[],o,n=e===2?"<svg>":e===3?"<math>":"",s=Qr;for(let a=0;a<r;a++){let l=t[a],c,u,p=-1,f=0;for(;f<l.length&&(s.lastIndex=f,u=s.exec(l),u!==null);)f=s.lastIndex,s===Qr?u[1]==="!--"?s=El:u[1]!==void 0?s=Al:u[2]!==void 0?(Rl.test(u[2])&&(o=RegExp("</"+u[2],"g")),s=Yt):u[3]!==void 0&&(s=Yt):s===Yt?u[0]===">"?(s=o??Qr,p=-1):u[1]===void 0?p=-2:(p=s.lastIndex-u[2].length,c=u[1],s=u[3]===void 0?Yt:u[3]==='"'?Cl:_l):s===Cl||s===_l?s=Yt:s===El||s===Al?s=Qr:(s=Yt,o=void 0);let y=s===Yt&&t[a+1].startsWith("/>")?" ":"";n+=s===Qr?l+xp:p>=0?(i.push(c),l.slice(0,p)+Ol+l.slice(p)+Et+y):l+Et+(p===-2?a:y)}return[Pl(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},Zr=class t{constructor({strings:e,_$litType$:r},i){let o;this.parts=[];let n=0,s=0,a=e.length-1,l=this.parts,[c,u]=Ep(e,r);if(this.el=t.createElement(c,i),Qt.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(o=Qt.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(let p of o.getAttributeNames())if(p.endsWith(Ol)){let f=u[s++],y=o.getAttribute(p).split(Et),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:n,name:x[2],strings:y,ctor:x[1]==="."?To:x[1]==="?"?Ro:x[1]==="@"?Lo:br}),o.removeAttribute(p)}else p.startsWith(Et)&&(l.push({type:6,index:n}),o.removeAttribute(p));if(Rl.test(o.tagName)){let p=o.textContent.split(Et),f=p.length-1;if(f>0){o.textContent=pn?pn.emptyScript:"";for(let y=0;y<f;y++)o.append(p[y],fn()),Qt.nextNode(),l.push({type:2,index:++n});o.append(p[f],fn())}}}else if(o.nodeType===8)if(o.data===Tl)l.push({type:2,index:n});else{let p=-1;for(;(p=o.data.indexOf(Et,p+1))!==-1;)l.push({type:7,index:n}),p+=Et.length-1}n++}}static createElement(e,r){let i=Xt.createElement("template");return i.innerHTML=e,i}};function vr(t,e,r=t,i){if(e===Jr)return e;let o=i!==void 0?r._$Co?.[i]:r._$Cl,n=Xr(e)?void 0:e._$litDirective$;return o?.constructor!==n&&(o?._$AO?.(!1),n===void 0?o=void 0:(o=new n(t),o._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=o:r._$Cl=o),o!==void 0&&(e=vr(t,o._$AS(t,e.values),o,i)),e}var Oo=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,o=(e?.creationScope??Xt).importNode(r,!0);Qt.currentNode=o;let n=Qt.nextNode(),s=0,a=0,l=i[0];for(;l!==void 0;){if(s===l.index){let c;l.type===2?c=new hn(n,n.nextSibling,this,e):l.type===1?c=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(c=new ko(n,this,e)),this._$AV.push(c),l=i[++a]}s!==l?.index&&(n=Qt.nextNode(),s++)}return Qt.currentNode=Xt,o}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},hn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,o){this.type=2,this._$AH=ee,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=o,this._$Cv=o?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=vr(this,e,r),Xr(e)?e===ee||e==null||e===""?(this._$AH!==ee&&this._$AR(),this._$AH=ee):e!==this._$AH&&e!==Jr&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Sp(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ee&&Xr(this._$AH)?this._$AA.nextSibling.data=e:this.T(Xt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,o=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=Zr.createElement(Pl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===o)this._$AH.p(r);else{let n=new Oo(o,this),s=n.u(this.options);n.p(r),this.T(s),this._$AH=n}}_$AC(e){let r=wl.get(e.strings);return r===void 0&&wl.set(e.strings,r=new Zr(e)),r}k(e){Po(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,o=0;for(let n of e)o===r.length?r.push(i=new t(this.O(fn()),this.O(fn()),this,this.options)):i=r[o],i._$AI(n),o++;o<r.length&&(this._$AR(i&&i._$AB.nextSibling,o),r.length=o)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=xl(e).nextSibling;xl(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},br=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,o,n){this.type=1,this._$AH=ee,this._$AN=void 0,this.element=e,this.name=r,this._$AM=o,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ee}_$AI(e,r=this,i,o){let n=this.strings,s=!1;if(n===void 0)e=vr(this,e,r,0),s=!Xr(e)||e!==this._$AH&&e!==Jr,s&&(this._$AH=e);else{let a=e,l,c;for(e=n[0],l=0;l<n.length-1;l++)c=vr(this,a[i+l],r,l),c===Jr&&(c=this._$AH[l]),s||=!Xr(c)||c!==this._$AH[l],c===ee?e=ee:e!==ee&&(e+=(c??"")+n[l+1]),this._$AH[l]=c}s&&!o&&this.j(e)}j(e){e===ee?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},To=class extends br{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ee?void 0:e}},Ro=class extends br{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ee)}},Lo=class extends br{constructor(e,r,i,o,n){super(e,r,i,o,n),this.type=5}_$AI(e,r=this){if((e=vr(this,e,r,0)??ee)===Jr)return;let i=this._$AH,o=e===ee&&i!==ee||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==ee&&(i===ee||o);o&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ko=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){vr(this,e)}};var Ap=Do.litHtmlPolyfillSupport;Ap?.(Zr,hn),(Do.litHtmlVersions??=[]).push("3.3.3");var Ml=Symbol.for(""),_p=t=>{if(t?.r===Ml)return t?._$litStatic$},Mo=t=>({_$litStatic$:t,r:Ml});var Nl=new Map,Io=t=>(e,...r)=>{let i=r.length,o,n,s=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(n=r[c],(o=_p(n))!==void 0);)l+=o+e[++c],u=!0;c!==i&&a.push(n),s.push(l),c++}if(c===i&&s.push(e[i]),u){let p=s.join("$$lit$$");(e=Nl.get(p))===void 0&&(s.raw=s,Nl.set(p,e=s)),r=a}return t(e,...r)},$o=Io(Ll),wg=Io(kl),Og=Io(Dl);var Uo=d(F()),Gl=d(g());var ue;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ue||(ue={}));var Be=d(R()),m=d(g()),Il=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),mt=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),v={fontFamily:mt,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},xr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Il),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",v.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",v.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",v.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",v.textTransform,"inherit")},Sr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Il),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",v.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",v.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",v.textTransform,"inherit")},Er={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",v.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",v.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",v.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",v.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",v.textTransform,"inherit")},Ar={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",v.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",v.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",v.textTransform,"inherit")},_r={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",v.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",v.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",v.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",v.textTransform,"inherit")},te={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",v.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",v.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",v.textTransform,"inherit")},Cr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",v.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",v.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",v.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",v.textTransform,"inherit")},wr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",v.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",v.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",v.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",v.textTransform,"inherit")},Or={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",v.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",v.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",v.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",v.textTransform,"uppercase")},it={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",v.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",v.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",v.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",v.textTransform,"uppercase")},$l=Be.css`
137
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var r,i;super.update(e),e.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 e,r;let i=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;i&&this.setupFor((r=this.target)!==null&&r!==void 0?r:i)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let r=(...a)=>l=>{a.forEach(c=>window.addEventListener(c,this.endPress,{once:!0})),this.startPress(l)},i=r("mouseup","contextmenu"),s=r("touchend","touchcancel"),n=a=>{["Enter"," "].includes(a.key)&&r("keyup")(a)},o={passive:!0};e.addEventListener("mouseover",this.startHover,o),e.addEventListener("mousemove",this.moveRipple,o),e.addEventListener("mouseleave",this.endHover,o),e.addEventListener("mousedown",i,o),e.addEventListener("touchstart",s,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",n,o),e.addEventListener("focus",this.startFocus,o),e.addEventListener("blur",this.endFocus,o),e.addEventListener("focusin",this.startFocus,o),e.addEventListener("focusout",this.endFocus,o),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,o),e.removeEventListener("mousemove",this.moveRipple,o),e.removeEventListener("mouseleave",this.endHover,o),e.removeEventListener("mousedown",i,o),e.removeEventListener("touchstart",s,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",n,o),e.removeEventListener("focus",this.startFocus,o),e.removeEventListener("blur",this.endFocus,o),e.removeEventListener("focusin",this.startFocus,o),e.removeEventListener("focusout",this.endFocus,o),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let r=e,i=e,s,n;return r.x!=null?{x:s,y:n}=r:i.touches!=null&&(s=i.touches[0].clientX,n=i.touches[0].clientY),{x:s,y:n}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let r of e.composedPath()){if(r===this.target)break;if("hasAttribute"in r&&r.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};N.elementDefinitions={};N.styles=yl;Ae([(0,ce.property)({type:Boolean})],N.prototype,"primary",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"secondary",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"unbounded",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"activated",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"selected",void 0);Ae([(0,ce.property)({type:Boolean})],N.prototype,"disabled",void 0);Ae([(0,ce.state)()],N.prototype,"hovered",void 0);Ae([(0,ce.state)()],N.prototype,"focused",void 0);Ae([(0,ce.state)()],N.prototype,"pressed",void 0);Ae([(0,ce.state)()],N.prototype,"rippling",void 0);Ae([(0,ce.state)()],N.prototype,"originX",void 0);Ae([(0,ce.state)()],N.prototype,"originY",void 0);Ae([(0,ce.query)(".ft-ripple")],N.prototype,"ripple",void 0);Ae([(0,ce.query)(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0);var xl=d(g());var bl={"ft-ripple":N};(0,xl.customElements)(bl);var Ds=globalThis,Sl=t=>t,hn=Ds.trustedTypes,El=hn?hn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Tl="$lit$",At=`lit$${Math.random().toFixed(9).slice(2)}$`,Rl="?"+At,Sp=`<${Rl}>`,Jt=document,mn=()=>Jt.createComment(""),ei=t=>t===null||typeof t!="object"&&typeof t!="function",Ps=Array.isArray,Ep=t=>Ps(t)||typeof t?.[Symbol.iterator]=="function",ws=`[
138
+ \f\r]`,Zr=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Al=/-->/g,_l=/>/g,Qt=RegExp(`>|${ws}(?:([^\\s"'>=/]+)(${ws}*=${ws}*(?:[^
139
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Cl=/'/g,wl=/"/g,Ll=/^(?:script|style|textarea|title)$/i,Ns=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),kl=Ns(1),Dl=Ns(2),Pl=Ns(3),ti=Symbol.for("lit-noChange"),ee=Symbol.for("lit-nothing"),Ol=new WeakMap,Xt=Jt.createTreeWalker(Jt,129);function Nl(t,e){if(!Ps(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return El!==void 0?El.createHTML(e):e}var Ap=(t,e)=>{let r=t.length-1,i=[],s,n=e===2?"<svg>":e===3?"<math>":"",o=Zr;for(let a=0;a<r;a++){let l=t[a],c,u,p=-1,f=0;for(;f<l.length&&(o.lastIndex=f,u=o.exec(l),u!==null);)f=o.lastIndex,o===Zr?u[1]==="!--"?o=Al:u[1]!==void 0?o=_l:u[2]!==void 0?(Ll.test(u[2])&&(s=RegExp("</"+u[2],"g")),o=Qt):u[3]!==void 0&&(o=Qt):o===Qt?u[0]===">"?(o=s??Zr,p=-1):u[1]===void 0?p=-2:(p=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?Qt:u[3]==='"'?wl:Cl):o===wl||o===Cl?o=Qt:o===Al||o===_l?o=Zr:(o=Qt,s=void 0);let y=o===Qt&&t[a+1].startsWith("/>")?" ":"";n+=o===Zr?l+Sp:p>=0?(i.push(c),l.slice(0,p)+Tl+l.slice(p)+At+y):l+At+(p===-2?a:y)}return[Nl(t,n+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},ri=class t{constructor({strings:e,_$litType$:r},i){let s;this.parts=[];let n=0,o=0,a=e.length-1,l=this.parts,[c,u]=Ap(e,r);if(this.el=t.createElement(c,i),Xt.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(s=Xt.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(let p of s.getAttributeNames())if(p.endsWith(Tl)){let f=u[o++],y=s.getAttribute(p).split(At),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:n,name:x[2],strings:y,ctor:x[1]==="."?Ts:x[1]==="?"?Rs:x[1]==="@"?Ls:xr}),s.removeAttribute(p)}else p.startsWith(At)&&(l.push({type:6,index:n}),s.removeAttribute(p));if(Ll.test(s.tagName)){let p=s.textContent.split(At),f=p.length-1;if(f>0){s.textContent=hn?hn.emptyScript:"";for(let y=0;y<f;y++)s.append(p[y],mn()),Xt.nextNode(),l.push({type:2,index:++n});s.append(p[f],mn())}}}else if(s.nodeType===8)if(s.data===Rl)l.push({type:2,index:n});else{let p=-1;for(;(p=s.data.indexOf(At,p+1))!==-1;)l.push({type:7,index:n}),p+=At.length-1}n++}}static createElement(e,r){let i=Jt.createElement("template");return i.innerHTML=e,i}};function br(t,e,r=t,i){if(e===ti)return e;let s=i!==void 0?r._$Co?.[i]:r._$Cl,n=ei(e)?void 0:e._$litDirective$;return s?.constructor!==n&&(s?._$AO?.(!1),n===void 0?s=void 0:(s=new n(t),s._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=s:r._$Cl=s),s!==void 0&&(e=br(t,s._$AS(t,e.values),s,i)),e}var Os=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:i}=this._$AD,s=(e?.creationScope??Jt).importNode(r,!0);Xt.currentNode=s;let n=Xt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new yn(n,n.nextSibling,this,e):l.type===1?c=new l.ctor(n,l.name,l.strings,this,e):l.type===6&&(c=new ks(n,this,e)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(n=Xt.nextNode(),o++)}return Xt.currentNode=Jt,s}p(e){let r=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,r),r+=i.strings.length-2):i._$AI(e[r])),r++}},yn=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,s){this.type=2,this._$AH=ee,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=s,this._$Cv=s?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=br(this,e,r),ei(e)?e===ee||e==null||e===""?(this._$AH!==ee&&this._$AR(),this._$AH=ee):e!==this._$AH&&e!==ti&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):Ep(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==ee&&ei(this._$AH)?this._$AA.nextSibling.data=e:this.T(Jt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,s=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=ri.createElement(Nl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===s)this._$AH.p(r);else{let n=new Os(s,this),o=n.u(this.options);n.p(r),this.T(o),this._$AH=n}}_$AC(e){let r=Ol.get(e.strings);return r===void 0&&Ol.set(e.strings,r=new ri(e)),r}k(e){Ps(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,s=0;for(let n of e)s===r.length?r.push(i=new t(this.O(mn()),this.O(mn()),this,this.options)):i=r[s],i._$AI(n),s++;s<r.length&&(this._$AR(i&&i._$AB.nextSibling,s),r.length=s)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=Sl(e).nextSibling;Sl(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},xr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,s,n){this.type=1,this._$AH=ee,this._$AN=void 0,this.element=e,this.name=r,this._$AM=s,this.options=n,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=ee}_$AI(e,r=this,i,s){let n=this.strings,o=!1;if(n===void 0)e=br(this,e,r,0),o=!ei(e)||e!==this._$AH&&e!==ti,o&&(this._$AH=e);else{let a=e,l,c;for(e=n[0],l=0;l<n.length-1;l++)c=br(this,a[i+l],r,l),c===ti&&(c=this._$AH[l]),o||=!ei(c)||c!==this._$AH[l],c===ee?e=ee:e!==ee&&(e+=(c??"")+n[l+1]),this._$AH[l]=c}o&&!s&&this.j(e)}j(e){e===ee?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ts=class extends xr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===ee?void 0:e}},Rs=class extends xr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==ee)}},Ls=class extends xr{constructor(e,r,i,s,n){super(e,r,i,s,n),this.type=5}_$AI(e,r=this){if((e=br(this,e,r,0)??ee)===ti)return;let i=this._$AH,s=e===ee&&i!==ee||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,n=e!==ee&&(i===ee||s);s&&this.element.removeEventListener(this.name,this,i),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},ks=class{constructor(e,r,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){br(this,e)}};var _p=Ds.litHtmlPolyfillSupport;_p?.(ri,yn),(Ds.litHtmlVersions??=[]).push("3.3.3");var Il=Symbol.for(""),Cp=t=>{if(t?.r===Il)return t?._$litStatic$},Ms=t=>({_$litStatic$:t,r:Il});var Ml=new Map,Is=t=>(e,...r)=>{let i=r.length,s,n,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(n=r[c],(s=Cp(n))!==void 0);)l+=s+e[++c],u=!0;c!==i&&a.push(n),o.push(l),c++}if(c===i&&o.push(e[i]),u){let p=o.join("$$lit$$");(e=Ml.get(p))===void 0&&(o.raw=o,Ml.set(p,e=o)),r=a}return t(e,...r)},$s=Is(kl),Og=Is(Dl),Tg=Is(Pl);var Fs=d(U()),Yl=d(g());var ue;(function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"})(ue||(ue={}));var Be=d(R()),m=d(g()),$l=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),mt=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),v={fontFamily:mt,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},Sr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",$l),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",v.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",v.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",v.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",v.textTransform,"inherit")},Er={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",$l),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",v.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",v.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",v.textTransform,"inherit")},Ar={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",v.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",v.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",v.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",v.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",v.textTransform,"inherit")},_r={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",v.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",v.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",v.textTransform,"inherit")},Cr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",v.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",v.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",v.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",v.textTransform,"inherit")},te={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",v.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",v.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",v.textTransform,"inherit")},wr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",v.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",v.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",v.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",v.textTransform,"inherit")},Or={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",v.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",v.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",v.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",v.textTransform,"inherit")},Tr={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",v.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",v.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",v.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",v.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",v.textTransform,"uppercase")},it={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",mt),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",v.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",v.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",v.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",v.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",v.textTransform,"uppercase")},Fl=Be.css`
140
140
  .ft-typography--title {
141
- font-family: ${xr.fontFamily};
142
- font-size: ${xr.fontSize};
143
- font-weight: ${xr.fontWeight};
144
- letter-spacing: ${xr.letterSpacing};
145
- line-height: ${xr.lineHeight};
146
- text-transform: ${xr.textTransform};
147
- }
148
- `,Ul=Be.css`
149
- .ft-typography--title-dense {
150
141
  font-family: ${Sr.fontFamily};
151
142
  font-size: ${Sr.fontSize};
152
143
  font-weight: ${Sr.fontWeight};
@@ -154,8 +145,8 @@
154
145
  line-height: ${Sr.lineHeight};
155
146
  text-transform: ${Sr.textTransform};
156
147
  }
157
- `,Fl=Be.css`
158
- .ft-typography--subtitle1 {
148
+ `,Ul=Be.css`
149
+ .ft-typography--title-dense {
159
150
  font-family: ${Er.fontFamily};
160
151
  font-size: ${Er.fontSize};
161
152
  font-weight: ${Er.fontWeight};
@@ -164,7 +155,7 @@
164
155
  text-transform: ${Er.textTransform};
165
156
  }
166
157
  `,Bl=Be.css`
167
- .ft-typography--subtitle2 {
158
+ .ft-typography--subtitle1 {
168
159
  font-family: ${Ar.fontFamily};
169
160
  font-size: ${Ar.fontSize};
170
161
  font-weight: ${Ar.fontWeight};
@@ -172,9 +163,8 @@
172
163
  line-height: ${Ar.lineHeight};
173
164
  text-transform: ${Ar.textTransform};
174
165
  }
175
-
176
166
  `,Vl=Be.css`
177
- .ft-typography--body1 {
167
+ .ft-typography--subtitle2 {
178
168
  font-family: ${_r.fontFamily};
179
169
  font-size: ${_r.fontSize};
180
170
  font-weight: ${_r.fontWeight};
@@ -182,7 +172,17 @@
182
172
  line-height: ${_r.lineHeight};
183
173
  text-transform: ${_r.textTransform};
184
174
  }
175
+
185
176
  `,Hl=Be.css`
177
+ .ft-typography--body1 {
178
+ font-family: ${Cr.fontFamily};
179
+ font-size: ${Cr.fontSize};
180
+ font-weight: ${Cr.fontWeight};
181
+ letter-spacing: ${Cr.letterSpacing};
182
+ line-height: ${Cr.lineHeight};
183
+ text-transform: ${Cr.textTransform};
184
+ }
185
+ `,zl=Be.css`
186
186
  .ft-typography--body2 {
187
187
  font-family: ${te.fontFamily};
188
188
  font-size: ${te.fontSize};
@@ -191,17 +191,8 @@
191
191
  line-height: ${te.lineHeight};
192
192
  text-transform: ${te.textTransform};
193
193
  }
194
- `,mn=Be.css`
194
+ `,gn=Be.css`
195
195
  .ft-typography--caption {
196
- font-family: ${Cr.fontFamily};
197
- font-size: ${Cr.fontSize};
198
- font-weight: ${Cr.fontWeight};
199
- letter-spacing: ${Cr.letterSpacing};
200
- line-height: ${Cr.lineHeight};
201
- text-transform: ${Cr.textTransform};
202
- }
203
- `,zl=Be.css`
204
- .ft-typography--breadcrumb {
205
196
  font-family: ${wr.fontFamily};
206
197
  font-size: ${wr.fontSize};
207
198
  font-weight: ${wr.fontWeight};
@@ -210,7 +201,7 @@
210
201
  text-transform: ${wr.textTransform};
211
202
  }
212
203
  `,jl=Be.css`
213
- .ft-typography--overline {
204
+ .ft-typography--breadcrumb {
214
205
  font-family: ${Or.fontFamily};
215
206
  font-size: ${Or.fontSize};
216
207
  font-weight: ${Or.fontWeight};
@@ -219,6 +210,15 @@
219
210
  text-transform: ${Or.textTransform};
220
211
  }
221
212
  `,ql=Be.css`
213
+ .ft-typography--overline {
214
+ font-family: ${Tr.fontFamily};
215
+ font-size: ${Tr.fontSize};
216
+ font-weight: ${Tr.fontWeight};
217
+ letter-spacing: ${Tr.letterSpacing};
218
+ line-height: ${Tr.lineHeight};
219
+ text-transform: ${Tr.textTransform};
220
+ }
221
+ `,Kl=Be.css`
222
222
  .ft-typography--button {
223
223
  font-family: ${it.fontFamily};
224
224
  font-size: ${it.fontSize};
@@ -227,19 +227,19 @@
227
227
  line-height: ${it.lineHeight};
228
228
  text-transform: ${it.textTransform};
229
229
  }
230
- `,Kl=Be.css`
230
+ `,Wl=Be.css`
231
231
  .ft-typography {
232
232
  vertical-align: inherit;
233
233
  }
234
- `;var Wl=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},j=class extends Gl.FtLitElement{constructor(){super(...arguments),this.variant=ue.body1}render(){return this.element?$o`
235
- <${Mo(this.element)}
234
+ `;var Gl=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},j=class extends Yl.FtLitElement{constructor(){super(...arguments),this.variant=ue.body1}render(){return this.element?$s`
235
+ <${Ms(this.element)}
236
236
  part="text"
237
237
  class="ft-typography ft-typography--${this.variant}">
238
238
  <slot></slot>
239
- </${Mo(this.element)}>
240
- `:$o`
239
+ </${Ms(this.element)}>
240
+ `:$s`
241
241
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
242
- `}};j.styles=[$l,Ul,Fl,Bl,Vl,Hl,mn,zl,jl,ql,Kl];Wl([(0,Uo.property)()],j.prototype,"element",void 0);Wl([(0,Uo.property)()],j.prototype,"variant",void 0);var Ql=d(g());var Yl={"ft-typography":j};(0,Ql.customElements)(Yl);var Xl=d(R()),je=d(g()),De={size:je.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:je.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",je.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:je.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",je.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:je.FtCssVariableFactory.extend("--ft-icon-material-font-family","",je.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:je.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Jl=[Xl.css`
242
+ `}};j.styles=[Fl,Ul,Bl,Vl,Hl,zl,gn,jl,ql,Kl,Wl];Gl([(0,Fs.property)()],j.prototype,"element",void 0);Gl([(0,Fs.property)()],j.prototype,"variant",void 0);var Xl=d(g());var Ql={"ft-typography":j};(0,Xl.customElements)(Ql);var Jl=d(R()),qe=d(g()),De={size:qe.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:qe.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",qe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:qe.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",qe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:qe.FtCssVariableFactory.extend("--ft-icon-material-font-family","",qe.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:qe.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Zl=[Jl.css`
243
243
  :host, i.ft-icon {
244
244
  display: inline-flex;
245
245
  align-items: center;
@@ -287,12 +287,12 @@
287
287
  .ft-icon--material {
288
288
  font-family: ${De.materialFontFamily}, "Material Icons", sans-serif;
289
289
  }
290
- `,je.noTextSelect];var At;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(At||(At={}));var ei=d(R()),_t=d(F()),tc=d(g()),rc=d(ec());var yn;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(yn||(yn={}));var h;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(h||(h={}));var Gg=new Map([...["abw"].map(t=>[t,h.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,h.AUDIO]),...["avi"].map(t=>[t,h.AVI]),...["chm","xhs"].map(t=>[t,h.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,h.CODE]),...["csv"].map(t=>[t,h.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,h.DITA]),...["epub"].map(t=>[t,h.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,h.EXCEL]),...["flac"].map(t=>[t,h.FLAC]),...["gif"].map(t=>[t,h.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,h.GZIP]),...["html","htm","xhtml"].map(t=>[t,h.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,h.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,h.JPEG]),...["json"].map(t=>[t,h.JSON]),...["m4a","m4p"].map(t=>[t,h.M4A]),...["mov","qt"].map(t=>[t,h.MOV]),...["mp3"].map(t=>[t,h.MP3]),...["mp4","m4v"].map(t=>[t,h.MP4]),...["ogg","oga"].map(t=>[t,h.OGG]),...["pdf","ps"].map(t=>[t,h.PDF]),...["png"].map(t=>[t,h.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,h.POWERPOINT]),...["rar"].map(t=>[t,h.RAR]),...["stp"].map(t=>[t,h.STP]),...["txt","rtf","md","mdown"].map(t=>[t,h.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,h.VIDEO]),...["wav"].map(t=>[t,h.WAV]),...["wma"].map(t=>[t,h.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,h.WORD]),...["xml","xsl","rdf"].map(t=>[t,h.XML]),...["yaml","yml","x-yaml"].map(t=>[t,h.YAML]),...["zip"].map(t=>[t,h.ZIP])]);var Yg={[h.ABW]:"#91ABC6",[h.AUDIO]:"#1795E3",[h.AVI]:"#E63324",[h.CHM]:"#71C3EB",[h.CODE]:"#71C3EB",[h.CSV]:"#1F7345",[h.DITA]:"#71C3EB",[h.EPUB]:"#85B926",[h.EXCEL]:"#1F7345",[h.FLAC]:"#1795E3",[h.GIF]:"#59B031",[h.GZIP]:"#F8AB36",[h.HTML]:"#71C3EB",[h.IMAGE]:"#59B031",[h.JPEG]:"#59B031",[h.JSON]:"#71C3EB",[h.M4A]:"#1795E3",[h.MOV]:"#E63324",[h.MP3]:"#1795E3",[h.MP4]:"#E63324",[h.OGG]:"#1795E3",[h.PDF]:"#E44948",[h.PNG]:"#59B031",[h.POWERPOINT]:"#B54A2B",[h.RAR]:"#F8AB36",[h.STP]:"#3764B1",[h.TEXT]:"#3162AB",[h.UNKNOWN]:"#999999",[h.VIDEO]:"#E63324",[h.WAV]:"#1795E3",[h.WMA]:"#1795E3",[h.WORD]:"#3162AB",[h.XML]:"#71C3EB",[h.YAML]:"#71C3EB",[h.ZIP]:"#F8AB36"};var ti=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},de=class extends tc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ei.nothing}render(){let e=this.variant&&Object.values(At).includes(this.variant)?this.variant:At.fluid_topics,r=e!==At.material||!!this.value;return ei.html`
290
+ `,qe.noTextSelect];var _t;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(_t||(_t={}));var ii=d(R()),Ct=d(U()),rc=d(g()),ic=d(tc());var vn;(function(t){t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.BOOKS="&#xe806;",t.MENU="&#xe807;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.HOME="&#xe80b;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.EXPORT="&#xe80f;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.USER="&#xe813;",t.EXTLINK="&#xe814;",t.CALENDAR="&#xe815;",t.OFFLINE="&#xe816;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.STAR_PLAIN="&#xe900;",t.TOPICS="&#xe901;",t.DISC="&#xe902;",t.CIRCLE="&#xe903;",t.SHARED="&#xe904;",t.SORT_UNSORTED="&#xe905;",t.SORT_UP="&#xe906;",t.SORT_DOWN="&#xe907;",t.WORKING="&#xe908;",t.CLOSE="&#xe909;",t.ZOOM_OUT="&#xe90a;",t.ZOOM_IN="&#xe90b;",t.ZOOM_REALSIZE="&#xe90c;",t.ZOOM_FULLSCREEN="&#xe90d;",t.ADMIN_RESTRICTED="&#xe90e;",t.ADMIN="&#xe90f;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_THEME="&#xe911;",t.ADMIN_USERS="&#xe912;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.INFO="&#xe919;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.THIN_ARROW="&#xe921;",t.SIGN_IN="&#xe922;",t.LOGOUT="&#xe923;",t.TRANSLATE="&#xe924;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.ARTICLE="&#xe927;",t.COLUMNS="&#xe928;",t.ANALYTICS="&#xe929;",t.COLLECTIONS="&#xe92a;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.COPY_TO_CLIPBOARD="&#xe930;",t.SHARED_PBK="&#xe931;",t.ATTACHMENTS="&#xe932;",t.STRIPE_ARROW_LEFT="&#xe933;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.FILTERS="&#xe935;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.SAVE="&#xe93a;",t.LOCKER="&#xe93b;",t.ADMIN_INTEGRATION="&#xe93c;",t.SYNC="&#xe93d;",t.TAG="&#xe93e;",t.BOOK_PLAIN="&#xe93f;",t.UPLOAD="&#xe940;",t.ONLINE="&#xe941;",t.TAG_PLAIN="&#xe942;",t.ACCOUNT_SETTINGS="&#xe943;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.SHORTCUT_MENU="&#xe946;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.ADMIN_PORTAL="&#xe94b;",t.STAR="&#xe94c;",t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.FEEDBACK_PLAIN="&#xe951;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_COLLECTIONS="&#xe955;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.RESET="&#xe958;",t.MY_LIBRARY="&#xe959;",t.UNSTRUCTURED_DOC="&#xe95a;",t.CONTEXTUAL="&#xe95b;",t.THIN_ARROW_UP="&#xe95c;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.DESKTOP="&#xe95e;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_STACKED="&#xe96e;",t.CHART_BAR_GROUPED="&#xe96f;",t.EYE_SLASH="&#xe970;",t.X_MARK="&#xe971;",t.EXPAND_WIDE="&#xe972;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.EXTLINK_LIGHT="&#xe978;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.CONSUMER="&#xe97c;",t.OCTAGON_XMARK="&#xe97d;",t.HOURGLASS_HALF="&#xe97e;",t.CLOCK="&#xe97f;",t.CLOCK_THREE="&#xe97f;",t.CALENDAR_DAY="&#xe980;",t.COMPUTER_MOUSE_MAGNIFYING_GLASS="&#xe981;",t.WAND_MAGIC_SPARKLES="&#xe982;",t.PAPER_PLANE="&#xe983;",t.CIRCLE_STOP="&#xe984;",t.ARROW_ROTATE_RIGHT="&#xe985;",t.ARROWS_ROTATE="&#xe986;",t.ALIGN_RIGHT="&#xe987;",t.FORMAT_CLEAR="&#xe988;",t.ALIGN_CENTER="&#xe989;",t.ALIGN_LEFT="&#xe98a;",t.PALETTE="&#xe98b;",t.BOLD="&#xe98c;",t.ITALIC="&#xe98d;",t.UNDERLINE="&#xe98e;",t.STRIKETHROUGH="&#xe98f;",t.LINK_SIMPLE_SLASH="&#xe990;",t.LINK_SIMPLE="&#xe991;",t.ROUTE="&#xe992;",t.CIRCLE_USER_SLASH="&#xe993;",t.CIRCLE_USER_CHECK="&#xe994;",t.LIST_MAGNIFYING_GLASS="&#xe995;",t.MEDAL="&#xe996;",t.THUMBS_UP_THUMBS_DOWN_SOLID="&#xe997;",t.ARROW_TURN_DOWN_RIGHT="&#xe998;",t.FLASK="&#xe999;",t.LOCK_KEYHOLE_OPEN_SOLID="&#xe99a;",t.HOURGLASS_END="&#xe99b;",t.CIRCLE_QUESTION="&#xe99c;",t.GRIP_LINES_SOLID="&#xe99d;",t.TRANSLATE_SPARKLE_SOLID="&#xe99e;",t.CODE="&#xe99f;",t.ARROW_UP_RIGHT_AND_ARROW_DOWN_LEFT_FROM_CENTER="&#xe9a0;",t.PAPER_PLANE_SLASH="&#xe9a1;",t.COMPRESS="&#xe9a2;",t.EXPAND="&#xe9a3;",t.ARROW_ROTATE_LEFT="&#xe9a4;",t.MOBILE_SMALL="&#xe9a5;",t.SPARKLES="&#xe9a6;",t.HAND_SOLID="&#xe9a7;",t.CLOCK_SOLID="&#xe9a8;",t.CONTEXT_MENU_CURSOR="&#xe9a9;",t.LANGUAGE_SLASH="&#xe9aa;",t.MAGNIFYING_GLASS_FLOPPY_DISK="&#xe9ab;",t.CABINET_FILING_FLOPPY_DISK="&#xe9ac;",t.BOOKMARK_SLASH="&#xe9ad;",t.CIRCLE_PAUSE="&#xe9ae;",t.CIRCLE_PLAY="&#xe9af;",t.CIRCLE_STOP_PLAIN="&#xe9b0;",t.CIRCLE_ARROW_DOWN="&#xe9b1;",t.SHARE_NODES="&#xe9b2;",t.BELL="&#xe9b3;",t.BELL_SLASH="&#xe9b4;",t.FILE="&#xe9b5;",t.HAND="&#xe9b6;",t.SQUARE_INFO_SOLID="&#xe9b7;",t.FILE_CODE="&#xe9b8;",t.BOX_CODE="&#xe9b9;",t.TOPICS_SOLID="&#xe9ba;",t.PHOTO_FILM="&#xe9bb;",t.HYPHEN_SOLID="&#xe9bc;",t.CROSSHAIRS="&#xe9bd;",t.PERSON_CHALKBOARD="&#xe9be;",t.CIRCLE_ARROW_DOWN_SLASH="&#xe9bf;",t.BOOK_OPEN_COVER="&#xe9c0;",t.LIGHTBULB="&#xe9c1;",t.MESSAGE_BOT_AGENTIC_SOLID="&#xe9c2;",t.CHART_LINE_USER="&#xe9c3;",t.SERVER_CIRCLE_ARROW_DOWN="&#xe9c4;",t.EYE="&#xf06e;",t.SHARE="&#xe80f1;"})(vn||(vn={}));var h;(function(t){t.UNKNOWN="&#xe90a;",t.ABW="&#xe900;",t.AUDIO="&#xe901;",t.AVI="&#xe902;",t.CHM="&#xe904;",t.CODE="&#xe905;",t.CSV="&#xe903;",t.DITA="&#xe906;",t.EPUB="&#xe907;",t.EXCEL="&#xe908;",t.FLAC="&#xe909;",t.GIF="&#xe90b;",t.GZIP="&#xe90c;",t.HTML="&#xe90d;",t.IMAGE="&#xe90e;",t.JPEG="&#xe90f;",t.JSON="&#xe910;",t.M4A="&#xe911;",t.MOV="&#xe912;",t.MP3="&#xe913;",t.MP4="&#xe914;",t.OGG="&#xe915;",t.PDF="&#xe916;",t.PNG="&#xe917;",t.POWERPOINT="&#xe918;",t.RAR="&#xe91a;",t.STP="&#xe91b;",t.TEXT="&#xe91c;",t.VIDEO="&#xe91e;",t.WAV="&#xe91f;",t.WMA="&#xe920;",t.WORD="&#xe921;",t.XML="&#xe922;",t.YAML="&#xe919;",t.ZIP="&#xe923;"})(h||(h={}));var Yg=new Map([...["abw"].map(t=>[t,h.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,h.AUDIO]),...["avi"].map(t=>[t,h.AVI]),...["chm","xhs"].map(t=>[t,h.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,h.CODE]),...["csv"].map(t=>[t,h.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,h.DITA]),...["epub"].map(t=>[t,h.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,h.EXCEL]),...["flac"].map(t=>[t,h.FLAC]),...["gif"].map(t=>[t,h.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,h.GZIP]),...["html","htm","xhtml"].map(t=>[t,h.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,h.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,h.JPEG]),...["json"].map(t=>[t,h.JSON]),...["m4a","m4p"].map(t=>[t,h.M4A]),...["mov","qt"].map(t=>[t,h.MOV]),...["mp3"].map(t=>[t,h.MP3]),...["mp4","m4v"].map(t=>[t,h.MP4]),...["ogg","oga"].map(t=>[t,h.OGG]),...["pdf","ps"].map(t=>[t,h.PDF]),...["png"].map(t=>[t,h.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,h.POWERPOINT]),...["rar"].map(t=>[t,h.RAR]),...["stp"].map(t=>[t,h.STP]),...["txt","rtf","md","mdown"].map(t=>[t,h.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,h.VIDEO]),...["wav"].map(t=>[t,h.WAV]),...["wma"].map(t=>[t,h.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,h.WORD]),...["xml","xsl","rdf"].map(t=>[t,h.XML]),...["yaml","yml","x-yaml"].map(t=>[t,h.YAML]),...["zip"].map(t=>[t,h.ZIP])]);var Qg={[h.ABW]:"#91ABC6",[h.AUDIO]:"#1795E3",[h.AVI]:"#E63324",[h.CHM]:"#71C3EB",[h.CODE]:"#71C3EB",[h.CSV]:"#1F7345",[h.DITA]:"#71C3EB",[h.EPUB]:"#85B926",[h.EXCEL]:"#1F7345",[h.FLAC]:"#1795E3",[h.GIF]:"#59B031",[h.GZIP]:"#F8AB36",[h.HTML]:"#71C3EB",[h.IMAGE]:"#59B031",[h.JPEG]:"#59B031",[h.JSON]:"#71C3EB",[h.M4A]:"#1795E3",[h.MOV]:"#E63324",[h.MP3]:"#1795E3",[h.MP4]:"#E63324",[h.OGG]:"#1795E3",[h.PDF]:"#E44948",[h.PNG]:"#59B031",[h.POWERPOINT]:"#B54A2B",[h.RAR]:"#F8AB36",[h.STP]:"#3764B1",[h.TEXT]:"#3162AB",[h.UNKNOWN]:"#999999",[h.VIDEO]:"#E63324",[h.WAV]:"#1795E3",[h.WMA]:"#1795E3",[h.WORD]:"#3162AB",[h.XML]:"#71C3EB",[h.YAML]:"#71C3EB",[h.ZIP]:"#F8AB36"};var ni=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},de=class extends rc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ii.nothing}render(){let e=this.variant&&Object.values(_t).includes(this.variant)?this.variant:_t.fluid_topics,r=e!==_t.material||!!this.value;return ii.html`
291
291
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
292
- ${(0,rc.unsafeHTML)(this.resolvedIcon)}
292
+ ${(0,ic.unsafeHTML)(this.resolvedIcon)}
293
293
  <slot ?hidden=${r}></slot>
294
294
  </i>
295
- `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case At.file_format:this.resolvedIcon=(e=h[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case At.material:this.resolvedIcon=this.value||ei.nothing;break;default:this.resolvedIcon=(r=yn[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};de.elementDefinitions={};de.styles=Jl;ti([(0,_t.property)()],de.prototype,"variant",void 0);ti([(0,_t.property)()],de.prototype,"value",void 0);ti([(0,_t.property)({reflect:!0,attribute:"aria-hidden"})],de.prototype,"ariaHidden",void 0);ti([(0,_t.state)()],de.prototype,"resolvedIcon",void 0);ti([(0,_t.query)("slot")],de.prototype,"slottedContent",void 0);var nc=d(g());var ic={"ft-icon":de};(0,nc.customElements)(ic);var mi=d(R()),T=d(g());var at=d(g());var jc=d(R()),He=d(F()),Ve=d(g());var oc=d(R()),Ct=d(g()),ri={distance:Ct.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Ct.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Ct.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Ct.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Ct.designSystemVariables.borderRadiusS),maxWidth:Ct.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},sc=oc.css`
295
+ `}getTextContent(){var e,r;return(r=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(i=>i.textContent).join("").trim())!==null&&r!==void 0?r:""}update(e){super.update(e),["value","variant"].some(r=>e.has(r))&&this.resolveIcon()}resolveIcon(){var e,r;let i=this.value||this.getTextContent();switch(this.variant){case _t.file_format:this.resolvedIcon=(e=h[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case _t.material:this.resolvedIcon=this.value||ii.nothing;break;default:this.resolvedIcon=(r=vn[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};de.elementDefinitions={};de.styles=Zl;ni([(0,Ct.property)()],de.prototype,"variant",void 0);ni([(0,Ct.property)()],de.prototype,"value",void 0);ni([(0,Ct.property)({reflect:!0,attribute:"aria-hidden"})],de.prototype,"ariaHidden",void 0);ni([(0,Ct.state)()],de.prototype,"resolvedIcon",void 0);ni([(0,Ct.query)("slot")],de.prototype,"slottedContent",void 0);var sc=d(g());var nc={"ft-icon":de};(0,sc.customElements)(nc);var gi=d(R()),T=d(g());var at=d(g());var qc=d(R()),ze=d(U()),He=d(g());var oc=d(R()),wt=d(g()),si={distance:wt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:wt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:wt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:wt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",wt.designSystemVariables.borderRadiusS),maxWidth:wt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},ac=oc.css`
296
296
  .ft-tooltip--container {
297
297
  display: block;
298
298
  }
@@ -310,25 +310,25 @@
310
310
  box-sizing: border-box;
311
311
  overflow: hidden;
312
312
  width: max-content;
313
- max-width: ${ri.maxWidth};
313
+ max-width: ${si.maxWidth};
314
314
  text-align: center;
315
- padding: ${ri.distance};
315
+ padding: ${si.distance};
316
316
  }
317
317
 
318
318
  .ft-tooltip--content {
319
319
  padding: 4px 8px;
320
- border-radius: ${ri.borderRadiusS};
321
- background-color: ${ri.backgroundColor};
322
- color: ${ri.color};
320
+ border-radius: ${si.borderRadiusS};
321
+ background-color: ${si.backgroundColor};
322
+ color: ${si.color};
323
323
  position: relative;
324
324
  word-break: break-word;
325
325
  }
326
- `;var lc=["top","right","bottom","left"],ac=["start","end"],Bo=lc.reduce((t,e)=>t.concat(e,e+"-"+ac[0],e+"-"+ac[1]),[]),ii=Math.min,wt=Math.max,ni=Math.round;var nt=t=>({x:t,y:t}),Cp={left:"right",right:"left",bottom:"top",top:"bottom"};function cc(t,e,r){return wt(t,ii(e,r))}function gn(t,e){return typeof t=="function"?t(e):t}function oi(t){return t.split("-")[0]}function Ot(t){return t.split("-")[1]}function Vo(t){return t==="x"?"y":"x"}function Ho(t){return t==="y"?"height":"width"}function vn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function zo(t){return Vo(vn(t))}function uc(t,e,r){r===void 0&&(r=!1);let i=Ot(t),o=zo(t),n=Ho(o),s=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(s=Fo(s)),[s,Fo(s)]}function dc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Fo(t){let e=oi(t);return Cp[e]+t.slice(e.length)}function wp(t){var e,r,i,o;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(o=t.left)!=null?o:0}}function pc(t){return typeof t!="number"?wp(t):{top:t,right:t,bottom:t,left:t}}function Jt(t){let{x:e,y:r,width:i,height:o}=t;return{width:i,height:o,top:r,left:e,right:e+i,bottom:r+o,x:e,y:r}}function fc(t,e,r){let{reference:i,floating:o}=t,n=vn(e),s=zo(e),a=Ho(s),l=oi(e),c=n==="y",u=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,f=i[a]/2-o[a]/2,y;switch(l){case"top":y={x:u,y:i.y-o.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-o.width,y:p};break;default:y={x:i.x,y:i.y}}let x=Ot(e);return x&&(y[s]+=f*(x==="end"?1:-1)*(r&&c?-1:1)),y}async function hc(t,e){var r;e===void 0&&(e={});let{x:i,y:o,platform:n,rects:s,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=gn(e,t),x=pc(y),b=a[f?p==="floating"?"reference":"floating":p],_=Jt(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(b)))==null||r?b:b.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),P=p==="floating"?{x:i,y:o,width:s.floating.width,height:s.floating.height}:s.reference,S=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),O=await(n.isElement==null?void 0:n.isElement(S))&&await(n.getScale==null?void 0:n.getScale(S))||{x:1,y:1},L=Jt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:S,strategy:l}):P);return{top:(_.top-L.top+x.top)/O.y,bottom:(L.bottom-_.bottom+x.bottom)/O.y,left:(_.left-L.left+x.left)/O.x,right:(L.right-_.right+x.right)/O.x}}var Op=50,mc=async(t,e,r)=>{let{placement:i="bottom",strategy:o="absolute",middleware:n=[],platform:s}=r,a=s.detectOverflow?s:{...s,detectOverflow:hc},l=await(s.isRTL==null?void 0:s.isRTL(e)),c=await s.getElementRects({reference:t,floating:e,strategy:o}),{x:u,y:p}=fc(c,i,l),f=i,y=0,x={};for(let A=0;A<n.length;A++){let b=n[A];if(!b)continue;let{name:_,fn:P}=b,{x:S,y:O,data:L,reset:G}=await P({x:u,y:p,initialPlacement:i,placement:f,strategy:o,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=S??u,p=O??p,x[_]={...x[_],...L},G&&y<Op&&(y++,typeof G=="object"&&(G.placement&&(f=G.placement),G.rects&&(c=G.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:o}):G.rects),{x:u,y:p}=fc(c,f,l)),A=-1)}return{x:u,y:p,placement:f,strategy:o,middlewareData:x}};function Tp(t,e,r){return(t?[...r.filter(o=>Ot(o)===t),...r.filter(o=>Ot(o)!==t)]:r.filter(o=>oi(o)===o)).filter(o=>t?Ot(o)===t||(e?dc(o)!==o:!1):!0)}var yc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,o;let{rects:n,middlewareData:s,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=Bo,autoAlignment:y=!0,...x}=gn(t,e),A=p!==void 0||f===Bo?Tp(p||null,y,f):f,b=((r=s.autoPlacement)==null?void 0:r.index)||0,_=A[b];if(_==null)return{};if(a!==_)return{reset:{placement:A[0]}};let P=await l.detectOverflow(e,x),S=uc(_,n,await(l.isRTL==null?void 0:l.isRTL(c.floating))),O=[P[oi(_)],P[S[0]],P[S[1]]],L=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:_,overflows:O}],G=A[b+1];if(G)return{data:{index:b+1,overflows:L},reset:{placement:G}};let U=L.map($e=>{let $t=Ot($e.placement);return[$e.placement,$t&&u?$e.overflows.slice(0,2).reduce((td,rd)=>td+rd,0):$e.overflows[0],$e.overflows]}).sort(($e,$t)=>$e[1]-$t[1]),Mr=((o=U.filter($e=>$e[2].slice(0,Ot($e[0])?2:3).every($t=>$t<=0))[0])==null?void 0:o[0])||U[0][0];return Mr!==a?{data:{index:b+1,overflows:L},reset:{placement:Mr}}:{}}}};var gc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:o,platform:n}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:P=>{let{x:S,y:O}=P;return{x:S,y:O}}},...c}=gn(t,e),u={x:r,y:i},p=await n.detectOverflow(e,c),f=vn(o),y=Vo(f),x=u[y],A=u[f],b=(P,S)=>cc(S+p[P==="y"?"top":"left"],S,S-p[P==="y"?"bottom":"right"]);s&&(x=b(y,x)),a&&(A=b(f,A));let _=l.fn({...e,[y]:x,[f]:A});return{..._,data:{x:_.x-r,y:_.y-i,enabled:{[y]:s,[f]:a}}}}}};function xn(){return typeof window<"u"}function er(t){return bc(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function yt(t){var e;return(e=(bc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function bc(t){return xn()?t instanceof Node||t instanceof _e(t).Node:!1}function qe(t){return xn()?t instanceof Element||t instanceof _e(t).Element:!1}function gt(t){return xn()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function vc(t){return!xn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function si(t){let{overflow:e,overflowX:r,overflowY:i,display:o}=Ke(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&o!=="inline"&&o!=="contents"}function xc(t){return/^(table|td|th)$/.test(er(t))}function ai(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Rp=/transform|translate|scale|rotate|perspective|filter/,Lp=/paint|layout|strict|content/,Zt=t=>!!t&&t!=="none",jo;function Tr(t){let e=qe(t)?Ke(t):t;return Zt(e.transform)||Zt(e.translate)||Zt(e.scale)||Zt(e.rotate)||Zt(e.perspective)||!Sn()&&(Zt(e.backdropFilter)||Zt(e.filter))||Rp.test(e.willChange||"")||Lp.test(e.contain||"")}function Sc(t){let e=Tt(t);for(;gt(e)&&!Rr(e);){if(Tr(e))return e;if(ai(e))return null;e=Tt(e)}return null}function Sn(){return jo==null&&(jo=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),jo}function Rr(t){return/^(html|body|#document)$/.test(er(t))}function Ke(t){return _e(t).getComputedStyle(t)}function li(t){return qe(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Tt(t){if(er(t)==="html")return t;let e=t.assignedSlot||t.parentNode||vc(t)&&t.host||yt(t);return vc(e)?e.host:e}function Ec(t){let e=Tt(t);return Rr(e)?(t.ownerDocument||t).body:gt(e)&&si(e)?e:Ec(e)}function bn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let o=Ec(t),n=o===((i=t.ownerDocument)==null?void 0:i.body),s=_e(o);if(n){let a=En(s);return e.concat(s,s.visualViewport||[],si(o)?o:[],a&&r?bn(a):[])}else return e.concat(o,bn(o,[],r))}function En(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Cc(t){let e=Ke(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,o=gt(t),n=o?t.offsetWidth:r,s=o?t.offsetHeight:i,a=ni(r)!==n||ni(i)!==s;return a&&(r=n,i=s),{width:r,height:i,$:a}}function wc(t){return qe(t)?t:t.contextElement}function Lr(t){let e=wc(t);if(!gt(e))return nt(1);let r=e.getBoundingClientRect(),{width:i,height:o,$:n}=Cc(e),s=(n?ni(r.width):r.width)/i,a=(n?ni(r.height):r.height)/o;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var kp=nt(0);function Oc(t){let e=_e(t);return!Sn()||!e.visualViewport?kp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Dp(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===_e(t)}function ci(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let o=t.getBoundingClientRect(),n=wc(t),s=nt(1);e&&(i?qe(i)&&(s=Lr(i)):s=Lr(t));let a=Dp(n,r,i)?Oc(n):nt(0),l=(o.left+a.x)/s.x,c=(o.top+a.y)/s.y,u=o.width/s.x,p=o.height/s.y;if(n&&i){let f=_e(n),y=qe(i)?_e(i):i,x=f,A=En(x);for(;A&&y!==x;){let b=Lr(A),_=A.getBoundingClientRect(),P=Ke(A),S=_.left+(A.clientLeft+parseFloat(P.paddingLeft))*b.x,O=_.top+(A.clientTop+parseFloat(P.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,p*=b.y,l+=S,c+=O,x=_e(A),A=En(x)}}return Jt({width:u,height:p,x:l,y:c})}function An(t,e){let r=li(t).scrollLeft;return e?e.left+r:ci(yt(t)).left+r}function Tc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-An(t,r),o=r.top+e.scrollTop;return{x:i,y:o}}function Pp(t){let{elements:e,rect:r,offsetParent:i,strategy:o}=t,n=o==="fixed",s=yt(i),a=e?ai(e.floating):!1;if(i===s||a&&n)return r;let l={scrollLeft:0,scrollTop:0},c=nt(1),u=nt(0),p=gt(i);if((p||!n)&&((er(i)!=="body"||si(s))&&(l=li(i)),p)){let y=ci(i);c=Lr(i),u.x=y.x+i.clientLeft,u.y=y.y+i.clientTop}let f=s&&!p&&!n?Tc(s,l):nt(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function Np(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Mp(t){let e=li(t),r=t.ownerDocument.body,i=wt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),o=wt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+An(t),s=-e.scrollTop;return Ke(r).direction==="rtl"&&(n+=wt(t.clientWidth,r.clientWidth)-i),{width:i,height:o,x:n,y:s}}var Ip=25;function $p(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",o=_e(t),n=yt(t),s=o.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,u=0;if(s){let f=!Sn()||e==="fixed";i?f||(c=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,f&&(c=s.offsetLeft,u=s.offsetTop))}if(An(n)<=0){let f=n.ownerDocument,y=f.body,x=getComputedStyle(y),A=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(n.clientWidth-y.clientWidth-A),_=getComputedStyle(n).scrollbarGutter==="stable both-edges"?b/2:b;_<=Ip&&(a-=_)}return{width:a,height:l,x:c,y:u}}function Up(t,e){let r=ci(t,!0,e==="fixed"),i=r.top+t.clientTop,o=r.left+t.clientLeft,n=Lr(t),s=t.clientWidth*n.x,a=t.clientHeight*n.y,l=o*n.x,c=i*n.y;return{width:s,height:a,x:l,y:c}}function Ac(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=$p(t,r,e);else if(e==="document")i=Mp(yt(t));else if(qe(e))i=Up(e,r);else{let o=Oc(t);i={x:e.x-o.x,y:e.y-o.y,width:e.width,height:e.height}}return Jt(i)}function Fp(t,e){let r=e.get(t);if(r)return r;let i=bn(t,[],!1).filter(a=>qe(a)&&er(a)!=="body"),o=null,n=Ke(t).position==="fixed",s=n?Tt(t):t;for(;qe(s)&&!Rr(s);){let a=Ke(s),l=Tr(s),c=o?o.position:n?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(p=>p!==s):o=a,s=Tt(s)}return e.set(t,i),i}function Bp(t){let{element:e,boundary:r,rootBoundary:i,strategy:o}=t,s=[...r==="clippingAncestors"?ai(e)?[]:Fp(e,this._c):[].concat(r),i],a=Ac(e,s[0],o),l=a.top,c=a.right,u=a.bottom,p=a.left;for(let f=1;f<s.length;f++){let y=Ac(e,s[f],o);l=wt(y.top,l),c=ii(y.right,c),u=ii(y.bottom,u),p=wt(y.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function Vp(t){let{width:e,height:r}=Cc(t);return{width:e,height:r}}function Hp(t,e,r){let i=gt(e),o=yt(e),n=r==="fixed",s=ci(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=nt(0);if((i||!n)&&((er(e)!=="body"||si(o))&&(a=li(e)),i)){let f=ci(e,!0,n,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&o&&(l.x=An(o));let c=o&&!i&&!n?Tc(o,a):nt(0),u=s.left+a.scrollLeft-l.x-c.x,p=s.top+a.scrollTop-l.y-c.y;return{x:u,y:p,width:s.width,height:s.height}}function qo(t){return Ke(t).position==="static"}function _c(t,e){if(!gt(t)||Ke(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return yt(t)===r&&(r=r.ownerDocument.body),r}function Rc(t,e){let r=_e(t);if(ai(t))return r;if(!gt(t)){let o=Tt(t);for(;o&&!Rr(o);){if(qe(o)&&!qo(o))return o;o=Tt(o)}return r}let i=_c(t,e);for(;i&&xc(i)&&qo(i);)i=_c(i,e);return i&&Rr(i)&&qo(i)&&!Tr(i)?r:i||Sc(t)||r}var zp=async function(t){let e=this.getOffsetParent||Rc,r=this.getDimensions,i=await r(t.floating);return{reference:Hp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function jp(t){return Ke(t).direction==="rtl"}var _n={convertOffsetParentRelativeRectToViewportRelativeRect:Pp,getDocumentElement:yt,getClippingRect:Bp,getOffsetParent:Rc,getElementRects:zp,getClientRects:Np,getDimensions:Vp,getScale:Lr,isElement:qe,isRTL:jp};var Lc=yc,kc=gc;var Dc=(t,e,r)=>{let i=new Map,o=r??{},n={..._n,...o.platform,_c:i};return mc(t,e,{...o,platform:n})};function Pc(t){return qp(t)}function Ko(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function qp(t){for(let e=t;e;e=Ko(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ko(t);e;e=Ko(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Tr(r)||e.tagName==="BODY"))return e}return null}async function Nc(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Dc(t,e,{strategy:i.strategy,platform:{..._n,getOffsetParent:o=>_n.getOffsetParent(o,Pc)},middleware:[kc({crossAxis:!0}),Lc({allowedPlacements:[i.placement]})]})}var Dr=d(g());var Mc=d(F());var Wo=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},kr=new Wo;var Kp=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},di=Symbol("i18nAttributes"),Ic=Symbol("i18nListAttributes"),$c=Symbol("i18nProperties"),Cn=Symbol("i18nContexts"),ui=Symbol("i18nUnsubs"),ot=(0,Dr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(n){return n??this.useCustomMessageContexts?sn:yr}i18n(n){let{context:s,key:a,message:l}=n,{custom:c,args:u,argsProvider:p}=n;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,c);let f=u??(p?p(this):[]);return this.getI18nService(c).resolveMessage(s,a,...f)}return l}async awaitI18n(n){let{context:s,custom:a}=n;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(n)}customI18n(n,s){if(kr.isI18nKey(n)){let[a,l]=n.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||n}return n}firstUpdated(n){super.firstUpdated(n),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(n){super.update(n),this.updateI18nAttributes((s,a,l)=>n.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(n){this.updateI18nAttributes((s,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===n}),this.updateI18nProperties(s=>s.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var s,a;let l=this,c=(u,p,f)=>f?.context&&f.key&&n(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(s=this[di])===null||s===void 0||s.forEach((u,p)=>l[p]=c(u,p,l[p])),(a=this[Ic])===null||a===void 0||a.forEach((u,p)=>{var f;return l[p]=(f=l[p])===null||f===void 0?void 0:f.map(y=>c(u,p,y))})}updateI18nProperties(n){var s;(s=this[$c])===null||s===void 0||s.forEach((a,l)=>{n(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(n,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(n,s,a)}addI18nContext(n,s,a){let l=(typeof n=="string"?n:n.name).toLowerCase();a=typeof n=="string"?a:n.custom,this[Cn].set(l,{isCustomContext:a}),this[ui].has(l)||this[ui].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(n){return this[Cn].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Cn].forEach((n,s)=>this.addI18nContext(s,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[ui].forEach(n=>n()),this[ui].clear()}}return e=Cn,r=ui,Kp([(0,Mc.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),wn=class extends ot(Dr.FtLitElement){},On=class extends ot(Dr.FtLitElementRedux){};var Uc=d(g());var Go=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?kr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Wp=new Go;var Fc=(t,e)=>(r,i)=>{var o;r.constructor.createProperty(i,{type:Object,hasChanged:Uc.hasChanged,converter:kr,...e}),r[di]=(o=r[di])!==null&&o!==void 0?o:new Map,r[di].set(i,t??{})};var Rt=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?sn:yr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,o)=>{let n=o;return s=>({context:this.name,key:n,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(i,o)=>(...n)=>this.service.resolveMessage(this.name,o,...n)}),this.rawMessages=new Proxy({},{get:(i,o)=>this.service.resolveRawMessage(this.name,o)}),this.keys=new Proxy({},{get:(i,o)=>()=>o}),this.attributes=new Proxy({},{get:(i,o)=>()=>({context:this.name,key:o,message:this.service.resolveRawMessage(this.name,o)})})}};var Bc=d(R());var Vc=Bc.css`
327
- `;var Tn=d(R()),Rn=d(F()),Ln=d(g());var pi=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},We=class extends On{constructor(){super(),this.editorMode=!1,this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?"Select a context and a label key.":Tn.nothing:Tn.html`
326
+ `;var cc=["top","right","bottom","left"],lc=["start","end"],Bs=cc.reduce((t,e)=>t.concat(e,e+"-"+lc[0],e+"-"+lc[1]),[]),oi=Math.min,Ot=Math.max,ai=Math.round;var nt=t=>({x:t,y:t}),wp={left:"right",right:"left",bottom:"top",top:"bottom"};function uc(t,e,r){return Ot(t,oi(e,r))}function bn(t,e){return typeof t=="function"?t(e):t}function li(t){return t.split("-")[0]}function Tt(t){return t.split("-")[1]}function Vs(t){return t==="x"?"y":"x"}function Hs(t){return t==="y"?"height":"width"}function xn(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function zs(t){return Vs(xn(t))}function dc(t,e,r){r===void 0&&(r=!1);let i=Tt(t),s=zs(t),n=Hs(s),o=s==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[n]>e.floating[n]&&(o=Us(o)),[o,Us(o)]}function pc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Us(t){let e=li(t);return wp[e]+t.slice(e.length)}function Op(t){var e,r,i,s;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(s=t.left)!=null?s:0}}function fc(t){return typeof t!="number"?Op(t):{top:t,right:t,bottom:t,left:t}}function Zt(t){let{x:e,y:r,width:i,height:s}=t;return{width:i,height:s,top:r,left:e,right:e+i,bottom:r+s,x:e,y:r}}function hc(t,e,r){let{reference:i,floating:s}=t,n=xn(e),o=zs(e),a=Hs(o),l=li(e),c=n==="y",u=i.x+i.width/2-s.width/2,p=i.y+i.height/2-s.height/2,f=i[a]/2-s[a]/2,y;switch(l){case"top":y={x:u,y:i.y-s.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-s.width,y:p};break;default:y={x:i.x,y:i.y}}let x=Tt(e);return x&&(y[o]+=f*(x==="end"?1:-1)*(r&&c?-1:1)),y}async function mc(t,e){var r;e===void 0&&(e={});let{x:i,y:s,platform:n,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=bn(e,t),x=fc(y),b=a[f?p==="floating"?"reference":"floating":p],_=Zt(await n.getClippingRect({element:(r=await(n.isElement==null?void 0:n.isElement(b)))==null||r?b:b.contextElement||await(n.getDocumentElement==null?void 0:n.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),P=p==="floating"?{x:i,y:s,width:o.floating.width,height:o.floating.height}:o.reference,S=await(n.getOffsetParent==null?void 0:n.getOffsetParent(a.floating)),O=await(n.isElement==null?void 0:n.isElement(S))&&await(n.getScale==null?void 0:n.getScale(S))||{x:1,y:1},L=Zt(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:S,strategy:l}):P);return{top:(_.top-L.top+x.top)/O.y,bottom:(L.bottom-_.bottom+x.bottom)/O.y,left:(_.left-L.left+x.left)/O.x,right:(L.right-_.right+x.right)/O.x}}var Tp=50,yc=async(t,e,r)=>{let{placement:i="bottom",strategy:s="absolute",middleware:n=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:mc},l=await(o.isRTL==null?void 0:o.isRTL(e)),c=await o.getElementRects({reference:t,floating:e,strategy:s}),{x:u,y:p}=hc(c,i,l),f=i,y=0,x={};for(let A=0;A<n.length;A++){let b=n[A];if(!b)continue;let{name:_,fn:P}=b,{x:S,y:O,data:L,reset:G}=await P({x:u,y:p,initialPlacement:i,placement:f,strategy:s,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=S??u,p=O??p,x[_]={...x[_],...L},G&&y<Tp&&(y++,typeof G=="object"&&(G.placement&&(f=G.placement),G.rects&&(c=G.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:s}):G.rects),{x:u,y:p}=hc(c,f,l)),A=-1)}return{x:u,y:p,placement:f,strategy:s,middlewareData:x}};function Rp(t,e,r){return(t?[...r.filter(s=>Tt(s)===t),...r.filter(s=>Tt(s)!==t)]:r.filter(s=>li(s)===s)).filter(s=>t?Tt(s)===t||(e?pc(s)!==s:!1):!0)}var gc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,s;let{rects:n,middlewareData:o,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=Bs,autoAlignment:y=!0,...x}=bn(t,e),A=p!==void 0||f===Bs?Rp(p||null,y,f):f,b=((r=o.autoPlacement)==null?void 0:r.index)||0,_=A[b];if(_==null)return{};if(a!==_)return{reset:{placement:A[0]}};let P=await l.detectOverflow(e,x),S=dc(_,n,await(l.isRTL==null?void 0:l.isRTL(c.floating))),O=[P[li(_)],P[S[0]],P[S[1]]],L=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:_,overflows:O}],G=A[b+1];if(G)return{data:{index:b+1,overflows:L},reset:{placement:G}};let F=L.map($e=>{let Ft=Tt($e.placement);return[$e.placement,Ft&&u?$e.overflows.slice(0,2).reduce((rd,id)=>rd+id,0):$e.overflows[0],$e.overflows]}).sort(($e,Ft)=>$e[1]-Ft[1]),Fr=((s=F.filter($e=>$e[2].slice(0,Tt($e[0])?2:3).every(Ft=>Ft<=0))[0])==null?void 0:s[0])||F[0][0];return Fr!==a?{data:{index:b+1,overflows:L},reset:{placement:Fr}}:{}}}};var vc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:s,platform:n}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:P=>{let{x:S,y:O}=P;return{x:S,y:O}}},...c}=bn(t,e),u={x:r,y:i},p=await n.detectOverflow(e,c),f=xn(s),y=Vs(f),x=u[y],A=u[f],b=(P,S)=>uc(S+p[P==="y"?"top":"left"],S,S-p[P==="y"?"bottom":"right"]);o&&(x=b(y,x)),a&&(A=b(f,A));let _=l.fn({...e,[y]:x,[f]:A});return{..._,data:{x:_.x-r,y:_.y-i,enabled:{[y]:o,[f]:a}}}}}};function En(){return typeof window<"u"}function tr(t){return xc(t)?(t.nodeName||"").toLowerCase():"#document"}function _e(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function yt(t){var e;return(e=(xc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function xc(t){return En()?t instanceof Node||t instanceof _e(t).Node:!1}function Ke(t){return En()?t instanceof Element||t instanceof _e(t).Element:!1}function gt(t){return En()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function bc(t){return!En()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function ci(t){let{overflow:e,overflowX:r,overflowY:i,display:s}=We(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&s!=="inline"&&s!=="contents"}function Sc(t){return/^(table|td|th)$/.test(tr(t))}function ui(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Lp=/transform|translate|scale|rotate|perspective|filter/,kp=/paint|layout|strict|content/,er=t=>!!t&&t!=="none",js;function Rr(t){let e=Ke(t)?We(t):t;return er(e.transform)||er(e.translate)||er(e.scale)||er(e.rotate)||er(e.perspective)||!An()&&(er(e.backdropFilter)||er(e.filter))||Lp.test(e.willChange||"")||kp.test(e.contain||"")}function Ec(t){let e=Rt(t);for(;gt(e)&&!Lr(e);){if(Rr(e))return e;if(ui(e))return null;e=Rt(e)}return null}function An(){return js==null&&(js=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),js}function Lr(t){return/^(html|body|#document)$/.test(tr(t))}function We(t){return _e(t).getComputedStyle(t)}function di(t){return Ke(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Rt(t){if(tr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||bc(t)&&t.host||yt(t);return bc(e)?e.host:e}function Ac(t){let e=Rt(t);return Lr(e)?(t.ownerDocument||t).body:gt(e)&&ci(e)?e:Ac(e)}function Sn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let s=Ac(t),n=s===((i=t.ownerDocument)==null?void 0:i.body),o=_e(s);if(n){let a=_n(o);return e.concat(o,o.visualViewport||[],ci(s)?s:[],a&&r?Sn(a):[])}else return e.concat(s,Sn(s,[],r))}function _n(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function wc(t){let e=We(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,s=gt(t),n=s?t.offsetWidth:r,o=s?t.offsetHeight:i,a=ai(r)!==n||ai(i)!==o;return a&&(r=n,i=o),{width:r,height:i,$:a}}function Oc(t){return Ke(t)?t:t.contextElement}function kr(t){let e=Oc(t);if(!gt(e))return nt(1);let r=e.getBoundingClientRect(),{width:i,height:s,$:n}=wc(e),o=(n?ai(r.width):r.width)/i,a=(n?ai(r.height):r.height)/s;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Dp=nt(0);function Tc(t){let e=_e(t);return!An()||!e.visualViewport?Dp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Pp(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===_e(t)}function pi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let s=t.getBoundingClientRect(),n=Oc(t),o=nt(1);e&&(i?Ke(i)&&(o=kr(i)):o=kr(t));let a=Pp(n,r,i)?Tc(n):nt(0),l=(s.left+a.x)/o.x,c=(s.top+a.y)/o.y,u=s.width/o.x,p=s.height/o.y;if(n&&i){let f=_e(n),y=Ke(i)?_e(i):i,x=f,A=_n(x);for(;A&&y!==x;){let b=kr(A),_=A.getBoundingClientRect(),P=We(A),S=_.left+(A.clientLeft+parseFloat(P.paddingLeft))*b.x,O=_.top+(A.clientTop+parseFloat(P.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,p*=b.y,l+=S,c+=O,x=_e(A),A=_n(x)}}return Zt({width:u,height:p,x:l,y:c})}function Cn(t,e){let r=di(t).scrollLeft;return e?e.left+r:pi(yt(t)).left+r}function Rc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Cn(t,r),s=r.top+e.scrollTop;return{x:i,y:s}}function Np(t){let{elements:e,rect:r,offsetParent:i,strategy:s}=t,n=s==="fixed",o=yt(i),a=e?ui(e.floating):!1;if(i===o||a&&n)return r;let l={scrollLeft:0,scrollTop:0},c=nt(1),u=nt(0),p=gt(i);if((p||!n)&&((tr(i)!=="body"||ci(o))&&(l=di(i)),p)){let y=pi(i);c=kr(i),u.x=y.x+i.clientLeft,u.y=y.y+i.clientTop}let f=o&&!p&&!n?Rc(o,l):nt(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+u.x+f.x,y:r.y*c.y-l.scrollTop*c.y+u.y+f.y}}function Mp(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Ip(t){let e=di(t),r=t.ownerDocument.body,i=Ot(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),s=Ot(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),n=-e.scrollLeft+Cn(t),o=-e.scrollTop;return We(r).direction==="rtl"&&(n+=Ot(t.clientWidth,r.clientWidth)-i),{width:i,height:s,x:n,y:o}}var $p=25;function Fp(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",s=_e(t),n=yt(t),o=s.visualViewport,a=n.clientWidth,l=n.clientHeight,c=0,u=0;if(o){let f=!An()||e==="fixed";i?f||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,f&&(c=o.offsetLeft,u=o.offsetTop))}if(Cn(n)<=0){let f=n.ownerDocument,y=f.body,x=getComputedStyle(y),A=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(n.clientWidth-y.clientWidth-A),_=getComputedStyle(n).scrollbarGutter==="stable both-edges"?b/2:b;_<=$p&&(a-=_)}return{width:a,height:l,x:c,y:u}}function Up(t,e){let r=pi(t,!0,e==="fixed"),i=r.top+t.clientTop,s=r.left+t.clientLeft,n=kr(t),o=t.clientWidth*n.x,a=t.clientHeight*n.y,l=s*n.x,c=i*n.y;return{width:o,height:a,x:l,y:c}}function _c(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Fp(t,r,e);else if(e==="document")i=Ip(yt(t));else if(Ke(e))i=Up(e,r);else{let s=Tc(t);i={x:e.x-s.x,y:e.y-s.y,width:e.width,height:e.height}}return Zt(i)}function Bp(t,e){let r=e.get(t);if(r)return r;let i=Sn(t,[],!1).filter(a=>Ke(a)&&tr(a)!=="body"),s=null,n=We(t).position==="fixed",o=n?Rt(t):t;for(;Ke(o)&&!Lr(o);){let a=We(o),l=Rr(o),c=s?s.position:n?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):s=a,o=Rt(o)}return e.set(t,i),i}function Vp(t){let{element:e,boundary:r,rootBoundary:i,strategy:s}=t,o=[...r==="clippingAncestors"?ui(e)?[]:Bp(e,this._c):[].concat(r),i],a=_c(e,o[0],s),l=a.top,c=a.right,u=a.bottom,p=a.left;for(let f=1;f<o.length;f++){let y=_c(e,o[f],s);l=Ot(y.top,l),c=oi(y.right,c),u=oi(y.bottom,u),p=Ot(y.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function Hp(t){let{width:e,height:r}=wc(t);return{width:e,height:r}}function zp(t,e,r){let i=gt(e),s=yt(e),n=r==="fixed",o=pi(t,!0,n,e),a={scrollLeft:0,scrollTop:0},l=nt(0);if((i||!n)&&((tr(e)!=="body"||ci(s))&&(a=di(e)),i)){let f=pi(e,!0,n,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&s&&(l.x=Cn(s));let c=s&&!i&&!n?Rc(s,a):nt(0),u=o.left+a.scrollLeft-l.x-c.x,p=o.top+a.scrollTop-l.y-c.y;return{x:u,y:p,width:o.width,height:o.height}}function qs(t){return We(t).position==="static"}function Cc(t,e){if(!gt(t)||We(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return yt(t)===r&&(r=r.ownerDocument.body),r}function Lc(t,e){let r=_e(t);if(ui(t))return r;if(!gt(t)){let s=Rt(t);for(;s&&!Lr(s);){if(Ke(s)&&!qs(s))return s;s=Rt(s)}return r}let i=Cc(t,e);for(;i&&Sc(i)&&qs(i);)i=Cc(i,e);return i&&Lr(i)&&qs(i)&&!Rr(i)?r:i||Ec(t)||r}var jp=async function(t){let e=this.getOffsetParent||Lc,r=this.getDimensions,i=await r(t.floating);return{reference:zp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function qp(t){return We(t).direction==="rtl"}var wn={convertOffsetParentRelativeRectToViewportRelativeRect:Np,getDocumentElement:yt,getClippingRect:Vp,getOffsetParent:Lc,getElementRects:jp,getClientRects:Mp,getDimensions:Hp,getScale:kr,isElement:Ke,isRTL:qp};var kc=gc,Dc=vc;var Pc=(t,e,r)=>{let i=new Map,s=r??{},n={...wn,...s.platform,_c:i};return yc(t,e,{...s,platform:n})};function Nc(t){return Kp(t)}function Ks(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Kp(t){for(let e=t;e;e=Ks(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ks(t);e;e=Ks(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Rr(r)||e.tagName==="BODY"))return e}return null}async function Mc(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Pc(t,e,{strategy:i.strategy,platform:{...wn,getOffsetParent:s=>wn.getOffsetParent(s,Nc)},middleware:[Dc({crossAxis:!0}),kc({allowedPlacements:[i.placement]})]})}var Pr=d(g());var Ic=d(U());var Ws=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[r,i]=e.split(".");return{context:r,key:i,custom:r!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Dr=new Ws;var Wp=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},hi=Symbol("i18nAttributes"),$c=Symbol("i18nListAttributes"),Fc=Symbol("i18nProperties"),On=Symbol("i18nContexts"),fi=Symbol("i18nUnsubs"),st=(0,Pr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,r;class i extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[r]=new Map}getI18nService(n){return n??this.useCustomMessageContexts?ln:gr}i18n(n){let{context:o,key:a,message:l}=n,{custom:c,args:u,argsProvider:p}=n;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let f=u??(p?p(this):[]);return this.getI18nService(c).resolveMessage(o,a,...f)}return l}async awaitI18n(n){let{context:o,custom:a}=n;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(n)}customI18n(n,o){if(Dr.isI18nKey(n)){let[a,l]=n.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||n}return n}firstUpdated(n){super.firstUpdated(n),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(n){super.update(n),this.updateI18nAttributes((o,a,l)=>n.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(n){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===n}),this.updateI18nProperties(o=>o.context.toLowerCase()===n),this.requestUpdate()}updateI18nAttributes(n){var o,a;let l=this,c=(u,p,f)=>f?.context&&f.key&&n(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(o=this[hi])===null||o===void 0||o.forEach((u,p)=>l[p]=c(u,p,l[p])),(a=this[$c])===null||a===void 0||a.forEach((u,p)=>{var f;return l[p]=(f=l[p])===null||f===void 0?void 0:f.map(y=>c(u,p,y))})}updateI18nProperties(n){var o;(o=this[Fc])===null||o===void 0||o.forEach((a,l)=>{n(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(n,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(n,o,a)}addI18nContext(n,o,a){let l=(typeof n=="string"?n:n.name).toLowerCase();a=typeof n=="string"?a:n.custom,this[On].set(l,{isCustomContext:a}),this[fi].has(l)||this[fi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(n){return this[On].has(n.toLowerCase())}connectedCallback(){super.connectedCallback(),this[On].forEach((n,o)=>this.addI18nContext(o,void 0,n.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[fi].forEach(n=>n()),this[fi].clear()}}return e=On,r=fi,Wp([(0,Ic.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),Tn=class extends st(Pr.FtLitElement){},Rn=class extends st(Pr.FtLitElementRedux){};var Uc=d(g());var Gs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Dr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Gp=new Gs;var Bc=(t,e)=>(r,i)=>{var s;r.constructor.createProperty(i,{type:Object,hasChanged:Uc.hasChanged,converter:Dr,...e}),r[hi]=(s=r[hi])!==null&&s!==void 0?s:new Map,r[hi].set(i,t??{})};var Lt=class t{static build(e){return new t(e)}static buildCustom(e){return new t(e,!0)}static fromGwt(e){return new t(e)}get service(){return this.custom?ln:gr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,s)=>{let n=s;return o=>({context:this.name,key:n,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,s)=>(...n)=>this.service.resolveMessage(this.name,s,...n)}),this.rawMessages=new Proxy({},{get:(i,s)=>this.service.resolveRawMessage(this.name,s)}),this.keys=new Proxy({},{get:(i,s)=>()=>s}),this.attributes=new Proxy({},{get:(i,s)=>()=>({context:this.name,key:s,message:this.service.resolveRawMessage(this.name,s)})})}};var Vc=d(R());var Hc=Vc.css`
327
+ `;var Ln=d(R()),Mr=d(U()),kn=d(g());var Nr=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ve=class extends Rn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(E)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:Ln.nothing:Ln.html`
328
328
  <span class="ft-i18n">
329
329
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
330
330
  </span>
331
- `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};We.elementDefinitions={};We.styles=Vc;pi([(0,Ln.redux)()],We.prototype,"editorMode",void 0);pi([(0,Rn.property)()],We.prototype,"context",void 0);pi([(0,Rn.property)()],We.prototype,"key",void 0);pi([(0,Ln.jsonProperty)([])],We.prototype,"args",void 0);pi([(0,Rn.property)()],We.prototype,"defaultMessage",void 0);var zc=d(g());var Hc={"ft-i18n":We};(0,zc.customElements)(Hc);var Ge=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},X=class extends wn{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 Ve.Debouncer,this.revealDebouncer=new Ve.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return jc.html`
331
+ `}update(e){var r;super.update(e),["context","key","defaultMessage"].some(i=>e.has(i))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(r=this.defaultMessage)!==null&&r!==void 0?r:""})}};Ve.elementDefinitions={};Ve.styles=Hc;Nr([(0,kn.redux)()],Ve.prototype,"editorMode",void 0);Nr([(0,Mr.property)()],Ve.prototype,"context",void 0);Nr([(0,Mr.property)()],Ve.prototype,"key",void 0);Nr([(0,kn.jsonProperty)([])],Ve.prototype,"args",void 0);Nr([(0,Mr.property)()],Ve.prototype,"defaultMessage",void 0);Nr([(0,Mr.state)()],Ve.prototype,"editorMessage",void 0);var jc=d(g());var zc={"ft-i18n":Ve};(0,jc.customElements)(zc);var Ge=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},X=class extends Tn{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 He.Debouncer,this.revealDebouncer=new He.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",r=>{r.composedPath().includes(this.container)||this.onOut(r)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,r;return qc.html`
332
332
  <div part="container"
333
333
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
334
334
  <slot part="slot"></slot>
@@ -343,7 +343,7 @@
343
343
  </div>
344
344
  </div>
345
345
  </div>
346
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.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(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let o=this.text;this.text={message:e},await this.show(r),this.text=o,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Nc(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${Ve.designSystemVariables.transitionDuration}, left ${Ve.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,Ve.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};X.elementDefinitions={"ft-typography":j};X.styles=sc;Ge([Fc()],X.prototype,"text",void 0);Ge([(0,He.property)({type:Boolean})],X.prototype,"manual",void 0);Ge([(0,He.property)({type:Boolean})],X.prototype,"inline",void 0);Ge([(0,Ve.numberProperty)()],X.prototype,"delay",void 0);Ge([(0,He.property)()],X.prototype,"position",void 0);Ge([(0,Ve.jsonProperty)([])],X.prototype,"ignoreMatchingElements",void 0);Ge([(0,He.queryAssignedNodes)()],X.prototype,"slotNodes",void 0);Ge([(0,He.query)(".ft-tooltip--container")],X.prototype,"container",void 0);Ge([(0,He.query)(".ft-tooltip")],X.prototype,"tooltip",void 0);Ge([(0,He.query)(".ft-tooltip--content")],X.prototype,"tooltipContent",void 0);Ge([(0,He.state)()],X.prototype,"visible",void 0);var Kc=d(g());var qc={"ft-tooltip":X};(0,Kc.customElements)(qc);var Wc=d(R()),fi=d(g()),tr={color:fi.FtCssVariableFactory.extend("--ft-loader-color","",fi.designSystemVariables.colorPrimary),size:fi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Gc=Wc.css`
346
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var r,i;e.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(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(r=>e.has(r))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,r){let i=this.manual;this.manual=!0;let s=this.text;this.text={message:e},await this.show(r),this.text=s,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(r=>r.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Mc(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:r})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${r}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${He.designSystemVariables.transitionDuration}, left ${He.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,He.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};X.elementDefinitions={"ft-typography":j};X.styles=ac;Ge([Bc()],X.prototype,"text",void 0);Ge([(0,ze.property)({type:Boolean})],X.prototype,"manual",void 0);Ge([(0,ze.property)({type:Boolean})],X.prototype,"inline",void 0);Ge([(0,He.numberProperty)()],X.prototype,"delay",void 0);Ge([(0,ze.property)()],X.prototype,"position",void 0);Ge([(0,He.jsonProperty)([])],X.prototype,"ignoreMatchingElements",void 0);Ge([(0,ze.queryAssignedNodes)()],X.prototype,"slotNodes",void 0);Ge([(0,ze.query)(".ft-tooltip--container")],X.prototype,"container",void 0);Ge([(0,ze.query)(".ft-tooltip")],X.prototype,"tooltip",void 0);Ge([(0,ze.query)(".ft-tooltip--content")],X.prototype,"tooltipContent",void 0);Ge([(0,ze.state)()],X.prototype,"visible",void 0);var Wc=d(g());var Kc={"ft-tooltip":X};(0,Wc.customElements)(Kc);var Gc=d(R()),mi=d(g()),rr={color:mi.FtCssVariableFactory.extend("--ft-loader-color","",mi.designSystemVariables.colorPrimary),size:mi.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Yc=Gc.css`
347
347
  :host {
348
348
  line-height: 0;
349
349
  }
@@ -352,8 +352,8 @@
352
352
  display: inline-block;
353
353
  position: relative;
354
354
 
355
- width: ${tr.size};
356
- height: ${tr.size};
355
+ width: ${rr.size};
356
+ height: ${rr.size};
357
357
  }
358
358
 
359
359
  .ft-loader div {
@@ -362,7 +362,7 @@
362
362
  width: 25%;
363
363
  height: 25%;
364
364
  border-radius: 50%;
365
- background: ${tr.color};
365
+ background: ${rr.color};
366
366
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
367
367
  }
368
368
 
@@ -409,17 +409,17 @@
409
409
  transform: translate(0, 0);
410
410
  }
411
411
  100% {
412
- transform: translate(calc(0.35 * ${tr.size}), 0);
412
+ transform: translate(calc(0.35 * ${rr.size}), 0);
413
413
  }
414
414
  }
415
- `;var Yc=d(R()),Qc=d(g());var rr=class extends Qc.FtLitElement{render(){return Yc.html`
415
+ `;var Qc=d(R()),Xc=d(g());var ir=class extends Xc.FtLitElement{render(){return Qc.html`
416
416
  <div class="ft-loader">
417
417
  <div></div>
418
418
  <div></div>
419
419
  <div></div>
420
420
  <div></div>
421
421
  </div>
422
- `}};rr.styles=Gc;var Jc=d(g());var Xc={"ft-loader":rr};(0,Jc.customElements)(Xc);var Lt=d(R()),kn=d(Gt()),M=d(F());var hi=t=>t??ee;var tu=d(R()),w=d(g());var Zc=w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorPrimary),D={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorSurface),borderRadius:w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusL),color:Zc,fontSize:w.FtCssVariableFactory.extend("--ft-button-font-size","",it.fontSize),iconSize:w.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:w.FtCssVariableFactory.extend("--ft-button-ripple-color","",Zc),verticalPadding:w.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:w.FtCssVariableFactory.external(w.designSystemVariables.colorOpacityDisabled,"Design system")},eu=w.FtCssVariableFactory.extend("--ft-button-primary-color","",w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorOnPrimary)),Yo={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-primary-background-color","",w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorPrimary)),color:eu,rippleColor:w.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",eu)},st={borderRadius:w.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusM)),verticalPadding:w.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},ru=tu.css`
422
+ `}};ir.styles=Yc;var Zc=d(g());var Jc={"ft-loader":ir};(0,Zc.customElements)(Jc);var kt=d(R()),Dn=d(Yt()),M=d(U());var yi=t=>t??ee;var ru=d(R()),w=d(g());var eu=w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorPrimary),D={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorSurface),borderRadius:w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusL),color:eu,fontSize:w.FtCssVariableFactory.extend("--ft-button-font-size","",it.fontSize),iconSize:w.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:w.FtCssVariableFactory.extend("--ft-button-ripple-color","",eu),verticalPadding:w.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:w.FtCssVariableFactory.external(w.designSystemVariables.colorOpacityDisabled,"Design system")},tu=w.FtCssVariableFactory.extend("--ft-button-primary-color","",w.FtCssVariableFactory.extend("--ft-button-color","",w.designSystemVariables.colorOnPrimary)),Ys={backgroundColor:w.FtCssVariableFactory.extend("--ft-button-primary-background-color","",w.FtCssVariableFactory.extend("--ft-button-background-color","",w.designSystemVariables.colorPrimary)),color:tu,rippleColor:w.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",tu)},ot={borderRadius:w.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",w.FtCssVariableFactory.extend("--ft-button-border-radius","",w.designSystemVariables.borderRadiusM)),verticalPadding:w.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:w.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:w.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},iu=ru.css`
423
423
  :host {
424
424
  display: inline-block;
425
425
  max-width: 100%;
@@ -482,13 +482,13 @@
482
482
  }
483
483
 
484
484
  .ft-button.ft-button--dense {
485
- padding: ${st.verticalPadding} ${st.horizontalPadding};
486
- border-radius: ${st.borderRadius};
487
- ${(0,w.setVariable)(le.borderRadius,st.borderRadius)};
485
+ padding: ${ot.verticalPadding} ${ot.horizontalPadding};
486
+ border-radius: ${ot.borderRadius};
487
+ ${(0,w.setVariable)(le.borderRadius,ot.borderRadius)};
488
488
  }
489
489
 
490
490
  .ft-button.ft-button--dense.ft-button--outlined {
491
- padding: calc(${st.verticalPadding} - 1px) calc(${st.horizontalPadding} - 1px);
491
+ padding: calc(${ot.verticalPadding} - 1px) calc(${ot.horizontalPadding} - 1px);
492
492
  }
493
493
 
494
494
  .ft-button:not([disabled]):hover {
@@ -500,7 +500,7 @@
500
500
  }
501
501
 
502
502
  .ft-button--round.ft-button--dense {
503
- border-radius: calc(var(--button-internal-line-height) / 2 + ${st.verticalPadding});
503
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${ot.verticalPadding});
504
504
  }
505
505
 
506
506
  .ft-button[disabled] {
@@ -509,9 +509,9 @@
509
509
  }
510
510
 
511
511
  .ft-button.ft-button--primary {
512
- background-color: ${Yo.backgroundColor};
513
- --button-internal-color: ${Yo.color};
514
- ${(0,w.setVariable)(le.color,Yo.rippleColor)};
512
+ background-color: ${Ys.backgroundColor};
513
+ --button-internal-color: ${Ys.color};
514
+ ${(0,w.setVariable)(le.color,Ys.rippleColor)};
515
515
  }
516
516
 
517
517
  .ft-button--label {
@@ -526,7 +526,7 @@
526
526
  }
527
527
 
528
528
  .ft-button--dense .ft-button--label {
529
- margin: 0 ${st.iconPadding};
529
+ margin: 0 ${ot.iconPadding};
530
530
  }
531
531
 
532
532
  .ft-button--label.ft-button--label-no-text {
@@ -544,8 +544,8 @@
544
544
  }
545
545
 
546
546
  .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
547
- margin: 0 calc(${st.horizontalPadding} * -1);
548
- padding: 0 ${st.verticalPadding};
547
+ margin: 0 calc(${ot.horizontalPadding} * -1);
548
+ padding: 0 ${ot.verticalPadding};
549
549
  }
550
550
 
551
551
  .ft-button:not(.ft-button--trailing-icon) [part="label"] {
@@ -553,10 +553,10 @@
553
553
  }
554
554
 
555
555
  ft-loader {
556
- ${(0,w.setVariable)(tr.size,D.iconSize)};
557
- ${(0,w.setVariable)(tr.color,"var(--button-internal-color)")};
556
+ ${(0,w.setVariable)(rr.size,D.iconSize)};
557
+ ${(0,w.setVariable)(rr.color,"var(--button-internal-color)")};
558
558
  }
559
- `;var B=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},C=class t extends(0,at.toFtFormComponent)(at.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",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let o={"ft-button--label":!0,"ft-safari-ellipsis-fix":at.isSafari,"ft-button--label-no-text":!this.hasTextContent},n=Lt.html`
559
+ `;var B=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},C=class t extends(0,at.toFtFormComponent)(at.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",e=>{var r;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((r=this.form)===null||r===void 0||r.requestSubmit())})}render(){var e,r,i;let s={"ft-button--label":!0,"ft-safari-ellipsis-fix":at.isSafari,"ft-button--label-no-text":!this.hasTextContent},n=kt.html`
560
560
  <ft-ripple part="ripple"
561
561
  ?disabled=${this.isDisabled()}
562
562
  ?activated=${this.activated}
@@ -564,40 +564,40 @@
564
564
  <ft-typography part="label"
565
565
  variant="${ue.button}"
566
566
  element="span"
567
- class="${(0,kn.classMap)(o)}">
567
+ class="${(0,Dn.classMap)(s)}">
568
568
  <slot></slot>
569
569
  </ft-typography>
570
570
  ${this.resolveIcon()}
571
- `,s=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(s?Lt.html`
572
- <a href="${s}"
571
+ `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?kt.html`
572
+ <a href="${o}"
573
573
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
574
574
  part="button"
575
- class="${(0,kn.classMap)(this.buttonClasses)}"
576
- aria-label="${hi((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
575
+ class="${(0,Dn.classMap)(this.buttonClasses)}"
576
+ aria-label="${yi((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
577
577
  ?disabled=${this.isDisabled()}>
578
578
  ${n}
579
579
  </a>
580
- `:Lt.html`
580
+ `:kt.html`
581
581
  <button part="button"
582
- class="${(0,kn.classMap)(this.buttonClasses)}"
583
- aria-label="${hi((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
584
- aria-haspopup="${hi(this.ariaHasPopup)}"
585
- aria-pressed="${hi(this.ariaPressed)}"
582
+ class="${(0,Dn.classMap)(this.buttonClasses)}"
583
+ aria-label="${yi((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
584
+ aria-haspopup="${yi(this.ariaHasPopup)}"
585
+ aria-pressed="${yi(this.ariaPressed)}"
586
586
  ?disabled=${this.isDisabled()}>
587
587
  ${n}
588
588
  </button>
589
- `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Lt.html`
589
+ `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?kt.html`
590
590
  <ft-tooltip part="tooltip"
591
591
  text="${this.label}"
592
592
  position="${this.tooltipPosition}">
593
593
  ${e}
594
594
  </ft-tooltip>
595
- `:e}resolveIcon(){return this.loading?Lt.html`
596
- <ft-loader part="loader icon"></ft-loader> `:this.icon?Lt.html`
595
+ `:e}resolveIcon(){return this.loading?kt.html`
596
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?kt.html`
597
597
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
598
- `:Lt.html`
598
+ `:kt.html`
599
599
  <slot part="icon" name="icon"></slot>
600
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};C.elementDefinitions={"ft-ripple":N,"ft-tooltip":X,"ft-icon":de,"ft-loader":rr,"ft-typography":j};C.styles=[at.safariEllipsisFix,ru,at.noTextSelect];C.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:C.labelsObserver.unobserve(e.target)}});B([(0,M.property)({type:Boolean})],C.prototype,"primary",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"outlined",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"dense",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"round",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"disabled",void 0);B([(0,M.property)()],C.prototype,"icon",void 0);B([(0,M.property)()],C.prototype,"iconVariant",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"trailingIcon",void 0);B([(0,M.property)()],C.prototype,"label",void 0);B([(0,M.property)()],C.prototype,"type",void 0);B([(0,M.property)()],C.prototype,"href",void 0);B([(0,M.property)()],C.prototype,"target",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"loading",void 0);B([(0,M.property)({attribute:"aria-label"})],C.prototype,"ariaLabel",void 0);B([(0,M.property)()],C.prototype,"ariaHasPopup",void 0);B([(0,M.property)({attribute:"aria-pressed"})],C.prototype,"ariaPressed",void 0);B([(0,M.property)()],C.prototype,"tooltipPosition",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"hideTooltip",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"forceTooltip",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"activated",void 0);B([(0,M.query)(".ft-button")],C.prototype,"button",void 0);B([(0,M.query)(".ft-button--label")],C.prototype,"labelContainer",void 0);B([(0,M.state)()],C.prototype,"hasTextContent",void 0);B([(0,M.query)(".ft-button--label slot")],C.prototype,"slottedContent",void 0);B([(0,M.query)("[part=tooltip]")],C.prototype,"tooltip",void 0);var nu=d(g());var iu={"ft-button":C};(0,nu.customElements)(iu);var ou=T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnSurface),Ce={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorSurface),color:ou,fontSize:T.FtCssVariableFactory.extend("--ft-chip-font-size","",te.fontSize),fontWeight:T.FtCssVariableFactory.extend("--ft-chip-font-weight","",te.fontWeight),iconSize:T.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:T.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:T.FtCssVariableFactory.extend("--ft-chip-ripple-color","",ou),horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:T.FtCssVariableFactory.extend("--ft-chip-border-color","",T.designSystemVariables.colorOutline),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},su=T.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnPrimary)),Qo={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorPrimary)),color:su,rippleColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",su)},au={horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},lu=[T.noTextSelect,mi.css`
600
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,r){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(e,r)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};C.elementDefinitions={"ft-ripple":N,"ft-tooltip":X,"ft-icon":de,"ft-loader":ir,"ft-typography":j};C.styles=[at.safariEllipsisFix,iu,at.noTextSelect];C.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r.host?r.host.hasTextContent=e.boundingClientRect.width>0:C.labelsObserver.unobserve(e.target)}});B([(0,M.property)({type:Boolean})],C.prototype,"primary",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"outlined",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"dense",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"round",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"disabled",void 0);B([(0,M.property)()],C.prototype,"icon",void 0);B([(0,M.property)()],C.prototype,"iconVariant",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"trailingIcon",void 0);B([(0,M.property)()],C.prototype,"label",void 0);B([(0,M.property)()],C.prototype,"type",void 0);B([(0,M.property)()],C.prototype,"href",void 0);B([(0,M.property)()],C.prototype,"target",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"loading",void 0);B([(0,M.property)({attribute:"aria-label"})],C.prototype,"ariaLabel",void 0);B([(0,M.property)()],C.prototype,"ariaHasPopup",void 0);B([(0,M.property)({attribute:"aria-pressed"})],C.prototype,"ariaPressed",void 0);B([(0,M.property)()],C.prototype,"tooltipPosition",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"hideTooltip",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"forceTooltip",void 0);B([(0,M.property)({type:Boolean})],C.prototype,"activated",void 0);B([(0,M.query)(".ft-button")],C.prototype,"button",void 0);B([(0,M.query)(".ft-button--label")],C.prototype,"labelContainer",void 0);B([(0,M.state)()],C.prototype,"hasTextContent",void 0);B([(0,M.query)(".ft-button--label slot")],C.prototype,"slottedContent",void 0);B([(0,M.query)("[part=tooltip]")],C.prototype,"tooltip",void 0);var su=d(g());var nu={"ft-button":C};(0,su.customElements)(nu);var ou=T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnSurface),Ce={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorSurface),color:ou,fontSize:T.FtCssVariableFactory.extend("--ft-chip-font-size","",te.fontSize),fontWeight:T.FtCssVariableFactory.extend("--ft-chip-font-weight","",te.fontWeight),iconSize:T.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:T.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:T.FtCssVariableFactory.extend("--ft-chip-ripple-color","",ou),horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:T.FtCssVariableFactory.extend("--ft-chip-border-color","",T.designSystemVariables.colorOutline),opacityDisabled:T.FtCssVariableFactory.external(T.designSystemVariables.colorOpacityDisabled,"Design system")},au=T.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnPrimary)),Qs={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorPrimary)),color:au,rippleColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",au)},lu={horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},cu=[T.noTextSelect,gi.css`
601
601
  :host {
602
602
  display: inline-block;
603
603
  max-width: 100%;
@@ -625,7 +625,7 @@
625
625
  border: 1px solid ${Ce.borderColor};
626
626
  color: ${Ce.color};
627
627
  ${(0,T.setVariable)(le.color,Ce.rippleColor)};
628
- border-radius: var(${(0,mi.unsafeCSS)(Ce.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
628
+ border-radius: var(${(0,gi.unsafeCSS)(Ce.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
629
629
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
630
630
  background-color: ${Ce.backgroundColor};
631
631
  line-height: var(--chip-internal-content-height);
@@ -637,13 +637,13 @@
637
637
 
638
638
  .ft-chip--dense {
639
639
  --chip-internal-icon-padding: 3px;
640
- --chip-internal-vertical-padding: ${au.verticalPadding};
641
- --chip-internal-horizontal-padding: ${au.horizontalPadding};
640
+ --chip-internal-vertical-padding: ${lu.verticalPadding};
641
+ --chip-internal-horizontal-padding: ${lu.horizontalPadding};
642
642
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
643
643
  }
644
644
 
645
645
  .ft-chip--no-content {
646
- --chip-internal-horizontal-padding: ${Ce.horizontalPadding.get(mi.css`var(--chip-internal-vertical-padding)`)};
646
+ --chip-internal-horizontal-padding: ${Ce.horizontalPadding.get(gi.css`var(--chip-internal-vertical-padding)`)};
647
647
  }
648
648
 
649
649
  .ft-chip--disabled {
@@ -656,9 +656,9 @@
656
656
  .ft-chip--highlighted {
657
657
  border: none;
658
658
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
659
- background-color: ${Qo.backgroundColor};
660
- ${(0,T.setVariable)(le.color,Qo.rippleColor)};
661
- color: ${Qo.color};
659
+ background-color: ${Qs.backgroundColor};
660
+ ${(0,T.setVariable)(le.color,Qs.rippleColor)};
661
+ color: ${Qs.color};
662
662
  }
663
663
 
664
664
  .ft-chip--clickable {
@@ -737,8 +737,8 @@
737
737
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
738
738
  order: -1;
739
739
  }
740
- `];var Se=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Pn=class extends CustomEvent{constructor(){super("icon-click")}},q=class extends Pr.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Pr.isSafari};return Dn.html`
741
- <div class="${(0,cu.classMap)(r)}"
740
+ `];var Se=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Nn=class extends CustomEvent{constructor(){super("icon-click")}},q=class extends Ir.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let r={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Ir.isSafari};return Pn.html`
741
+ <div class="${(0,uu.classMap)(r)}"
742
742
  aria-label="${this.getLabel()}"
743
743
  tabindex="${this.interactionsOnChip?0:-1}"
744
744
  @keyup=${this.onKeyUp}
@@ -749,7 +749,7 @@
749
749
  </ft-typography>
750
750
  ${this.internalIcon?this.renderIcon():null}
751
751
  </div>
752
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Dn.html`
752
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Pn.html`
753
753
  <ft-button round
754
754
  class="ft-chip--icon-button"
755
755
  @click=${this.onIconClick}
@@ -760,12 +760,12 @@
760
760
  part="icon-button"
761
761
  ?hideTooltip=${this.hideIconTooltip}
762
762
  ></ft-button>
763
- `:Dn.html`
763
+ `:Pn.html`
764
764
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
765
765
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
766
766
  </div>
767
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Pn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Pn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Pr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};q.elementDefinitions={"ft-ripple":N,"ft-typography":j,"ft-icon":de,"ft-button":C};q.styles=lu;Se([(0,pe.property)({type:Boolean})],q.prototype,"highlighted",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"removable",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"disabled",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"clickable",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"iconClickable",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"dense",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"multiLine",void 0);Se([(0,pe.property)()],q.prototype,"label",void 0);Se([(0,pe.property)()],q.prototype,"iconLabel",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"hideIconTooltip",void 0);Se([(0,pe.property)()],q.prototype,"icon",void 0);Se([(0,pe.property)()],q.prototype,"iconVariant",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"trailingIcon",void 0);Se([(0,pe.property)()],q.prototype,"typographyVariant",void 0);Se([(0,pe.query)("ft-typography slot")],q.prototype,"slottedContent",void 0);var du=d(g());var uu={"ft-chip":q};(0,du.customElements)(uu);var pu=d(R());var fu=pu.css`
768
- `;var qu=d(R()),ts=d(g());var hu=d(R()),I=d(g());var yi={buttonMoreColor:I.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",I.designSystemVariables.colorOnSurface),borderRadiusM:I.FtCssVariableFactory.external(I.designSystemVariables.borderRadiusM,"Design system"),colorOutline:I.FtCssVariableFactory.external(I.designSystemVariables.colorOutline,"Design system"),colorOnSurface:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:I.FtCssVariableFactory.external(I.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:I.FtCssVariableFactory.external(te.fontFamily,"Body2 typography"),fontSize:I.FtCssVariableFactory.external(te.fontSize,"Body2 typography"),fontWeight:I.FtCssVariableFactory.external(te.fontWeight,"Body2 typography"),letterSpacing:I.FtCssVariableFactory.external(te.letterSpacing,"Body2 typography"),lineHeight:I.FtCssVariableFactory.external(te.lineHeight,"Body2 typography"),textTransform:I.FtCssVariableFactory.external(te.textTransform,"Body2 typography")},mu=hu.css`
767
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Nn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Nn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Ir.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};q.elementDefinitions={"ft-ripple":N,"ft-typography":j,"ft-icon":de,"ft-button":C};q.styles=cu;Se([(0,pe.property)({type:Boolean})],q.prototype,"highlighted",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"removable",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"disabled",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"clickable",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"iconClickable",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"dense",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"multiLine",void 0);Se([(0,pe.property)()],q.prototype,"label",void 0);Se([(0,pe.property)()],q.prototype,"iconLabel",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"hideIconTooltip",void 0);Se([(0,pe.property)()],q.prototype,"icon",void 0);Se([(0,pe.property)()],q.prototype,"iconVariant",void 0);Se([(0,pe.property)({type:Boolean})],q.prototype,"trailingIcon",void 0);Se([(0,pe.property)()],q.prototype,"typographyVariant",void 0);Se([(0,pe.query)("ft-typography slot")],q.prototype,"slottedContent",void 0);var pu=d(g());var du={"ft-chip":q};(0,pu.customElements)(du);var fu=d(R());var hu=fu.css`
768
+ `;var Ku=d(R()),to=d(g());var mu=d(R()),I=d(g());var vi={buttonMoreColor:I.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",I.designSystemVariables.colorOnSurface),borderRadiusM:I.FtCssVariableFactory.external(I.designSystemVariables.borderRadiusM,"Design system"),colorOutline:I.FtCssVariableFactory.external(I.designSystemVariables.colorOutline,"Design system"),colorOnSurface:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:I.FtCssVariableFactory.external(I.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:I.FtCssVariableFactory.external(I.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:I.FtCssVariableFactory.external(te.fontFamily,"Body2 typography"),fontSize:I.FtCssVariableFactory.external(te.fontSize,"Body2 typography"),fontWeight:I.FtCssVariableFactory.external(te.fontWeight,"Body2 typography"),letterSpacing:I.FtCssVariableFactory.external(te.letterSpacing,"Body2 typography"),lineHeight:I.FtCssVariableFactory.external(te.lineHeight,"Body2 typography"),textTransform:I.FtCssVariableFactory.external(te.textTransform,"Body2 typography")},yu=mu.css`
769
769
  .ft-filter-level--container {
770
770
  display: flex;
771
771
  flex-direction: column;
@@ -780,14 +780,14 @@
780
780
  flex-shrink: 0;
781
781
  text-decoration: none;
782
782
  position: relative;
783
- border-radius: ${yi.borderRadiusM};
783
+ border-radius: ${vi.borderRadiusM};
784
784
  overflow: hidden;
785
785
  display: flex;
786
786
  align-items: center;
787
787
  padding: 4px 4px;
788
788
  gap: 4px;
789
789
  cursor: pointer;
790
- color: ${yi.colorOnSurface};
790
+ color: ${vi.colorOnSurface};
791
791
  }
792
792
 
793
793
  .ft-filter-level--go-back:focus {
@@ -816,11 +816,11 @@
816
816
  }
817
817
 
818
818
  ft-button {
819
- ${(0,I.setVariable)(D.color,yi.colorOnSurface)};
819
+ ${(0,I.setVariable)(D.color,vi.colorOnSurface)};
820
820
  }
821
821
 
822
822
  ft-button.ft-filter-level--display-more {
823
- ${(0,I.setVariable)(D.color,yi.buttonMoreColor)};
823
+ ${(0,I.setVariable)(D.color,vi.buttonMoreColor)};
824
824
  }
825
825
 
826
826
  ft-radio, ft-checkbox {
@@ -834,9 +834,9 @@
834
834
 
835
835
  .ft-filter-level--no-values {
836
836
  margin: 10px 0;
837
- color: ${yi.colorOnSurfaceMedium};
837
+ color: ${vi.colorOnSurfaceMedium};
838
838
  }
839
- `;var nr=d(R()),$=d(F()),J=d(g());var Me=d(R()),re=d(F()),Pu=d(Vn()),Oe=d(g());var Nn=d(R()),Ye=d(F()),vu=d(g()),bu=d(Gt());var fe=d(g()),yu=d(R());var Pe={textColor:fe.FtCssVariableFactory.extend("--ft-checkbox-text-color","",fe.designSystemVariables.colorOnSurfaceHigh),fontSize:fe.FtCssVariableFactory.extend("--ft-checkbox-font-size","",v.fontSize),activeColor:fe.FtCssVariableFactory.extend("--ft-checkbox-active-color","",fe.designSystemVariables.colorPrimary),checkColor:fe.FtCssVariableFactory.extend("--ft-checkbox-check-color","",fe.designSystemVariables.colorOnPrimary),borderColor:fe.FtCssVariableFactory.extend("--ft-checkbox-border-color","",fe.designSystemVariables.colorOnSurfaceMedium),disabledColor:fe.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",fe.designSystemVariables.colorOnSurfaceDisabled),errorColor:fe.FtCssVariableFactory.extend("--ft-checkbox-error-color","",fe.designSystemVariables.colorError)},gu=yu.css`
839
+ `;var sr=d(R()),$=d(U()),J=d(g());var Me=d(R()),re=d(U()),Nu=d(Hn()),Oe=d(g());var Mn=d(R()),Ye=d(U()),bu=d(g()),xu=d(Yt());var fe=d(g()),gu=d(R());var Pe={textColor:fe.FtCssVariableFactory.extend("--ft-checkbox-text-color","",fe.designSystemVariables.colorOnSurfaceHigh),fontSize:fe.FtCssVariableFactory.extend("--ft-checkbox-font-size","",v.fontSize),activeColor:fe.FtCssVariableFactory.extend("--ft-checkbox-active-color","",fe.designSystemVariables.colorPrimary),checkColor:fe.FtCssVariableFactory.extend("--ft-checkbox-check-color","",fe.designSystemVariables.colorOnPrimary),borderColor:fe.FtCssVariableFactory.extend("--ft-checkbox-border-color","",fe.designSystemVariables.colorOnSurfaceMedium),disabledColor:fe.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",fe.designSystemVariables.colorOnSurfaceDisabled),errorColor:fe.FtCssVariableFactory.extend("--ft-checkbox-error-color","",fe.designSystemVariables.colorError)},vu=gu.css`
840
840
  * {
841
841
  box-sizing: border-box;
842
842
  }
@@ -929,7 +929,7 @@
929
929
  }
930
930
  }
931
931
  }
932
- `;var vt=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Xo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},he=class extends vu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return Nn.html`
932
+ `;var vt=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Xs=class extends CustomEvent{constructor(e){super("change",{detail:e})}},he=class extends bu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1}get checkboxClasses(){return{"ft-checkbox":!0,"ft-checkbox--error":this.error,"ft-checkbox--checked":this.indeterminate?!1:this.checked,"ft-checkbox--indeterminate":this.indeterminate,"ft-checkbox--disabled":this.disabled}}renderBoxContainer(){return Mn.html`
933
933
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
934
934
  <ft-ripple part="checkbox-ripple"
935
935
  ?disabled=${this.disabled}
@@ -951,27 +951,27 @@
951
951
  @change=${this.onChange}
952
952
  >
953
953
  </div>
954
- `}render(){return Nn.html`
955
- <label class="${(0,bu.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
954
+ `}render(){return Mn.html`
955
+ <label class="${(0,xu.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
956
956
  ${this.renderBoxContainer()}
957
957
  <ft-typography variant="${ue.body2}" part="checkbox-body">
958
958
  <slot @slotchange=${this.onSlotchange}></slot>
959
959
  </ft-typography>
960
960
  </label>
961
- `}renderBoxIcon(){return Nn.html`
961
+ `}renderBoxIcon(){return Mn.html`
962
962
  <svg class="ft-checkbox--checkmark" viewBox="0 0 24 24" part="checkbox-check" aria-hidden="true">
963
963
  <path class="ft-checkbox--checkmark-path" fill="none"
964
964
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
965
965
  </svg>
966
- `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Xo(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};he.elementDefinitions={"ft-ripple":N,"ft-typography":j};he.styles=gu;vt([(0,Ye.property)()],he.prototype,"name",void 0);vt([(0,Ye.property)()],he.prototype,"value",void 0);vt([(0,Ye.property)({type:Boolean,reflect:!0})],he.prototype,"checked",void 0);vt([(0,Ye.property)({type:Boolean})],he.prototype,"indeterminate",void 0);vt([(0,Ye.property)({type:Boolean})],he.prototype,"disabled",void 0);vt([(0,Ye.property)({type:Boolean})],he.prototype,"error",void 0);vt([(0,Ye.query)(".ft-checkbox")],he.prototype,"container",void 0);vt([(0,Ye.query)("ft-ripple")],he.prototype,"ripple",void 0);vt([(0,Ye.query)("input")],he.prototype,"input",void 0);var Su=d(g());var xu={"ft-checkbox":he};(0,Su.customElements)(xu);var _u=d(R()),lt=d(F()),Cu=d(g()),wu=d(Gt());var Eu=d(R()),we=d(g());var kt={textColor:we.FtCssVariableFactory.extend("--ft-radio-text-color","",we.designSystemVariables.colorOnSurfaceHigh),fontSize:we.FtCssVariableFactory.extend("--ft-radio-font-size","",v.fontSize),colorPrimary:we.FtCssVariableFactory.external(we.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:we.FtCssVariableFactory.external(we.designSystemVariables.colorOnPrimary,"Design system"),borderColor:we.FtCssVariableFactory.extend("--ft-radio-border-color","",we.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:we.FtCssVariableFactory.external(we.designSystemVariables.colorOnSurfaceDisabled,"Design system")},Au=Eu.css`
966
+ `}onSlotchange(){this.requestUpdate()}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.indeterminate=!1,this.dispatchEvent(new Xs(this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}click(){this.input.click()}focus(){this.input.focus(),setTimeout(()=>{var e;(e=this.ripple)===null||e===void 0||e.forceFocusUpdate()},0)}};he.elementDefinitions={"ft-ripple":N,"ft-typography":j};he.styles=vu;vt([(0,Ye.property)()],he.prototype,"name",void 0);vt([(0,Ye.property)()],he.prototype,"value",void 0);vt([(0,Ye.property)({type:Boolean,reflect:!0})],he.prototype,"checked",void 0);vt([(0,Ye.property)({type:Boolean})],he.prototype,"indeterminate",void 0);vt([(0,Ye.property)({type:Boolean})],he.prototype,"disabled",void 0);vt([(0,Ye.property)({type:Boolean})],he.prototype,"error",void 0);vt([(0,Ye.query)(".ft-checkbox")],he.prototype,"container",void 0);vt([(0,Ye.query)("ft-ripple")],he.prototype,"ripple",void 0);vt([(0,Ye.query)("input")],he.prototype,"input",void 0);var Eu=d(g());var Su={"ft-checkbox":he};(0,Eu.customElements)(Su);var Cu=d(R()),lt=d(U()),wu=d(g()),Ou=d(Yt());var Au=d(R()),we=d(g());var Dt={textColor:we.FtCssVariableFactory.extend("--ft-radio-text-color","",we.designSystemVariables.colorOnSurfaceHigh),fontSize:we.FtCssVariableFactory.extend("--ft-radio-font-size","",v.fontSize),colorPrimary:we.FtCssVariableFactory.external(we.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:we.FtCssVariableFactory.external(we.designSystemVariables.colorOnPrimary,"Design system"),borderColor:we.FtCssVariableFactory.extend("--ft-radio-border-color","",we.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:we.FtCssVariableFactory.external(we.designSystemVariables.colorOnSurfaceDisabled,"Design system")},_u=Au.css`
967
967
  * {
968
968
  box-sizing: border-box;
969
969
  }
970
970
 
971
971
  .ft-radio {
972
972
  box-sizing: border-box;
973
- color: ${kt.textColor};
974
- font-size: ${kt.fontSize};
973
+ color: ${Dt.textColor};
974
+ font-size: ${Dt.fontSize};
975
975
 
976
976
  display: inline-flex;
977
977
  align-items: center;
@@ -979,7 +979,7 @@
979
979
  }
980
980
 
981
981
  .ft-radio--disabled {
982
- color: ${kt.colorOnSurfaceDisabled};
982
+ color: ${Dt.colorOnSurfaceDisabled};
983
983
  }
984
984
 
985
985
  input {
@@ -1002,7 +1002,7 @@
1002
1002
  }
1003
1003
 
1004
1004
  .ft-radio--box {
1005
- border: 2px solid ${kt.borderColor};
1005
+ border: 2px solid ${Dt.borderColor};
1006
1006
  border-radius: 50%;
1007
1007
 
1008
1008
  display: flex;
@@ -1015,7 +1015,7 @@
1015
1015
 
1016
1016
  .ft-radio--box:after {
1017
1017
  content: " ";
1018
- background-color: ${kt.colorPrimary};
1018
+ background-color: ${Dt.colorPrimary};
1019
1019
 
1020
1020
  border-radius: 50%;
1021
1021
 
@@ -1027,7 +1027,7 @@
1027
1027
  }
1028
1028
 
1029
1029
  .ft-radio--checked .ft-radio--box {
1030
- border-color: ${kt.colorPrimary};
1030
+ border-color: ${Dt.colorPrimary};
1031
1031
  }
1032
1032
 
1033
1033
 
@@ -1036,12 +1036,12 @@
1036
1036
  }
1037
1037
 
1038
1038
  .ft-radio--disabled .ft-radio--box {
1039
- border-color: ${kt.colorOnSurfaceDisabled};
1039
+ border-color: ${Dt.colorOnSurfaceDisabled};
1040
1040
  background-color: transparent;
1041
1041
  }
1042
1042
 
1043
1043
  .ft-radio--disabled .ft-radio--box:after {
1044
- background-color: ${kt.colorOnSurfaceDisabled};
1044
+ background-color: ${Dt.colorOnSurfaceDisabled};
1045
1045
  }
1046
1046
 
1047
1047
  .ft-radio:has(:focus-visible) {
@@ -1052,8 +1052,8 @@
1052
1052
  .ft-radio ft-typography {
1053
1053
  padding-right: 2px;
1054
1054
  }
1055
- `;var Dt=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Mn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},oe=class extends Cu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return _u.html`
1056
- <div class="${(0,wu.classMap)(this.radioClasses)}"
1055
+ `;var Pt=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},In=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},se=class extends wu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.ariaChecked="false",this.disabled=!1}get radioClasses(){return{"ft-radio":!0,"ft-radio--checked":this.checked,"ft-radio--disabled":this.disabled}}render(){return Cu.html`
1056
+ <div class="${(0,Ou.classMap)(this.radioClasses)}"
1057
1057
  @click=${this.onClick}>
1058
1058
  <div class="ft-radio--box-container">
1059
1059
  <ft-ripple
@@ -1078,7 +1078,7 @@
1078
1078
  </ft-typography>
1079
1079
  </label>
1080
1080
  </div>
1081
- `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new Mn(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new Mn(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};oe.elementDefinitions={"ft-ripple":N,"ft-typography":j};oe.styles=Au;Dt([(0,lt.property)()],oe.prototype,"name",void 0);Dt([(0,lt.property)()],oe.prototype,"value",void 0);Dt([(0,lt.property)({type:Boolean,reflect:!0})],oe.prototype,"checked",void 0);Dt([(0,lt.property)({attribute:"aria-checked",reflect:!0})],oe.prototype,"ariaChecked",void 0);Dt([(0,lt.property)({type:Boolean})],oe.prototype,"disabled",void 0);Dt([(0,lt.query)(".ft-radio")],oe.prototype,"container",void 0);Dt([(0,lt.query)("ft-ripple")],oe.prototype,"ripple",void 0);Dt([(0,lt.query)("input")],oe.prototype,"input",void 0);var Ru=d(g()),Pt=d(F()),Lu=d(R());var Ou=d(R());var Tu=Ou.css`
1081
+ `}willUpdate(e){super.willUpdate(e),e.has("checked")&&(this.ariaChecked=this.checked?"true":"false")}onChange(e){e.stopPropagation(),this.checked=e.target.checked,this.dispatchEvent(new In(this.value,this.checked))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),(r=this.ripple)===null||r===void 0||r.setupFor(this.container)}select(){this.checked=!0,this.dispatchEvent(new In(this.value,this.checked))}setInputTabIndex(e){this.input&&(this.input.tabIndex=e)}focus(){var e;(e=this.input)===null||e===void 0||e.focus(),setTimeout(()=>{var r;return(r=this.ripple)===null||r===void 0?void 0:r.forceFocusUpdate()},0)}onClick(e){var r;e.target!==this.input&&(e.stopPropagation(),e.preventDefault(),(r=this.input)===null||r===void 0||r.click())}};se.elementDefinitions={"ft-ripple":N,"ft-typography":j};se.styles=_u;Pt([(0,lt.property)()],se.prototype,"name",void 0);Pt([(0,lt.property)()],se.prototype,"value",void 0);Pt([(0,lt.property)({type:Boolean,reflect:!0})],se.prototype,"checked",void 0);Pt([(0,lt.property)({attribute:"aria-checked",reflect:!0})],se.prototype,"ariaChecked",void 0);Pt([(0,lt.property)({type:Boolean})],se.prototype,"disabled",void 0);Pt([(0,lt.query)(".ft-radio")],se.prototype,"container",void 0);Pt([(0,lt.query)("ft-ripple")],se.prototype,"ripple",void 0);Pt([(0,lt.query)("input")],se.prototype,"input",void 0);var Lu=d(g()),Nt=d(U()),ku=d(R());var Tu=d(R());var Ru=Tu.css`
1082
1082
  :host {
1083
1083
  display: block;
1084
1084
  }
@@ -1086,12 +1086,12 @@
1086
1086
  :host(:focus-visible) {
1087
1087
  outline: none;
1088
1088
  }
1089
- `;var gi=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Ne=class extends Ru.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return Lu.html`
1089
+ `;var bi=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ne=class extends Lu.FtLitElement{constructor(){super(...arguments),this.name="",this.role="radiogroup",this.ariaLabelledBy="",this.currentSelectedIndex=0,this.onFocus=()=>{setTimeout(()=>this.focusCurrentChecked(),100)}}get radioButtons(){var e,r;return(r=(e=this.assignedElements)===null||e===void 0?void 0:e.flatMap(i=>i.matches("ft-radio,ftds-radio")?[i]:[...i.querySelectorAll("ft-radio,ftds-radio")]))!==null&&r!==void 0?r:[]}render(){return ku.html`
1090
1090
  <slot @slotchange=${this.onSlotChange}
1091
1091
  @change=${this.onChange}
1092
1092
  @keydown=${this.onKeyDown}
1093
1093
  ></slot>
1094
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ne.elementDefinitions={};Ne.styles=Tu;gi([(0,Pt.property)()],Ne.prototype,"name",void 0);gi([(0,Pt.property)({reflect:!0,attribute:"role"})],Ne.prototype,"role",void 0);gi([(0,Pt.property)({reflect:!0,attribute:"aria-labelledby"})],Ne.prototype,"ariaLabelledBy",void 0);gi([(0,Pt.queryAssignedElements)()],Ne.prototype,"assignedElements",void 0);gi([(0,Pt.state)()],Ne.prototype,"currentSelectedIndex",void 0);var Du=d(g());var ku={"ft-radio":oe,"ft-radio-group":Ne};(0,Du.customElements)(ku);var me=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Jo={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},K=class extends(0,Oe.withAnalytics)(ot((0,Oe.withAriaNotification)(Oe.FtLitElement)),Jo){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Oe.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return Me.html`
1094
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focus",this.onFocus)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focus",this.onFocus)}onSlotChange(){this.radioButtons.forEach(e=>e.name=this.name)}contentAvailableCallback(e){super.contentAvailableCallback(e),this.radioButtons.forEach(r=>r.setInputTabIndex(-1)),this.resolveCurrentSelectedIndex()}onChange(e){e.stopPropagation(),this.radioButtons.forEach(r=>r.checked=e.detail.value===r.value),this.dispatchEvent(new CustomEvent("change",{detail:e.detail.value})),this.resolveCurrentSelectedIndex()}onKeyDown(e){let r=!1;switch(e.key){case"ArrowUp":case"ArrowLeft":{r=!0;let i=this.currentSelectedIndex-1;this.radioButtons[i<0?this.radioButtons.length-1:i].select(),this.radioButtons[i<0?this.radioButtons.length-1:i].focus();break}case"ArrowDown":case"ArrowRight":{r=!0;let i=this.currentSelectedIndex+1;this.radioButtons[i>this.radioButtons.length-1?0:i].select(),this.radioButtons[i>this.radioButtons.length-1?0:i].focus();break}case"Enter":this.radioButtons[this.currentSelectedIndex].select()}r&&(e.stopPropagation(),e.preventDefault())}resolveCurrentSelectedIndex(){let e=this.radioButtons.findIndex(r=>r.checked);e==-1?(this.currentSelectedIndex=0,this.radioButtons[0].select()):this.currentSelectedIndex=e,this.radioButtons[this.currentSelectedIndex].setInputTabIndex(0)}focusCurrentChecked(){this.radioButtons[this.currentSelectedIndex].focus()}};Ne.elementDefinitions={};Ne.styles=Ru;bi([(0,Nt.property)()],Ne.prototype,"name",void 0);bi([(0,Nt.property)({reflect:!0,attribute:"role"})],Ne.prototype,"role",void 0);bi([(0,Nt.property)({reflect:!0,attribute:"aria-labelledby"})],Ne.prototype,"ariaLabelledBy",void 0);bi([(0,Nt.queryAssignedElements)()],Ne.prototype,"assignedElements",void 0);bi([(0,Nt.state)()],Ne.prototype,"currentSelectedIndex",void 0);var Pu=d(g());var Du={"ft-radio":se,"ft-radio-group":Ne};(0,Pu.customElements)(Du);var me=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Js={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"}},K=class extends(0,Oe.withAnalytics)(st((0,Oe.withAriaNotification)(Oe.FtLitElement)),Js){constructor(){super(...arguments),this.filterId="",this.options=[],this.multivalued=!1,this.disabled=!1,this.hideSelectedOptions=!1,this.displayCount=!1,this.preventNavigation=!1,this.filter="",this.moreValuesButtonLabel="More",this.displayedValuesLimit=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Oe.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesLimit>0?this.displayedPages*this.displayedValuesLimit:void 0}get height(){var e,r;return(r=(e=this.container)===null||e===void 0?void 0:e.scrollHeight)!==null&&r!==void 0?r:0}focusOnBackButton(){this.elementToFocus={selector:".ft-filter-level--go-back"}}focusOnExpandButton(e){this.elementToFocus={selector:`.ft-filter-level--option ft-button[part="controls navigate-hierarchy"][data-value="${e}"]`}}focusOnFirstOption(){this.elementToFocus={selector:'.ft-filter-level--option [part~="option"]'}}willUpdate(e){super.willUpdate(e),(e.has("options")||e.has("hideSelectedOptions")||e.has("filter"))&&this.updateFilteredOptions()}updateFilteredOptions(){let e=[...this.options];this.hideSelectedOptions&&(e=e.filter(r=>!r.selected)),this.filter&&(e=e.filter(r=>r.label.toLowerCase().includes(this.filter.toLowerCase()))),this.filteredOptions=e}render(){let e=this.filteredOptions.slice(0,this.limit);return Me.html`
1095
1095
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1096
1096
  ${this.parent==null?null:Me.html`
1097
1097
  <div tabindex="0"
@@ -1112,7 +1112,7 @@
1112
1112
  ${this.noValuesLabel}
1113
1113
  </ft-typography>
1114
1114
  `:Me.nothing}
1115
- ${(0,Pu.repeat)(e,r=>r.value,r=>{var i;return Me.html`
1115
+ ${(0,Nu.repeat)(e,r=>r.value,r=>{var i;return Me.html`
1116
1116
  <div class="ft-filter-level--option" part="options" tabindex="-1">
1117
1117
  ${this.multivalued?this.buildMultiValuedOption(r):this.buildMonoValuedOption(r)}
1118
1118
  ${this.preventNavigation||r.selected||((i=r.subOptions)!==null&&i!==void 0?i:[]).length===0?Me.nothing:Me.html`
@@ -1144,7 +1144,7 @@
1144
1144
  data-value="${e.value}"
1145
1145
  .checked=${e.selected}
1146
1146
  .disabled=${this.disabled}
1147
- .indeterminate=${(0,Oe.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var o;return(o=i.subOptions)!==null&&o!==void 0?o:[]}).some(i=>i.selected)}
1147
+ .indeterminate=${(0,Oe.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var s;return(s=i.subOptions)!==null&&s!==void 0?s:[]}).some(i=>i.selected)}
1148
1148
  @change=${i=>this.optionsChanged(i,e)}>
1149
1149
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1150
1150
  </ft-checkbox>
@@ -1159,7 +1159,7 @@
1159
1159
  @change=${r=>this.optionsChanged(r,e)}>
1160
1160
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1161
1161
  </ft-radio>
1162
- `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};K.elementDefinitions={"ft-button":C,"ft-ripple":N,"ft-typography":j,"ft-checkbox":he,"ft-icon":de,"ft-radio":oe};K.styles=mu;me([(0,re.property)({type:String})],K.prototype,"filterId",void 0);me([(0,re.property)({type:Object})],K.prototype,"parent",void 0);me([(0,re.property)({type:Array,hasChanged:Oe.hasChanged})],K.prototype,"options",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"multivalued",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"disabled",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"hideSelectedOptions",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"displayCount",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"preventNavigation",void 0);me([(0,re.property)({type:String})],K.prototype,"filter",void 0);me([(0,re.property)({type:String})],K.prototype,"moreValuesButtonLabel",void 0);me([(0,re.property)({type:String})],K.prototype,"noValuesLabel",void 0);me([(0,re.property)()],K.prototype,"filteredOptionsNumberAriaNotification",void 0);me([(0,Oe.numberProperty)()],K.prototype,"displayedValuesLimit",void 0);me([(0,re.query)(".ft-filter-level--container")],K.prototype,"container",void 0);me([(0,re.state)()],K.prototype,"radios",void 0);me([(0,re.state)()],K.prototype,"displayedPages",void 0);me([(0,re.state)()],K.prototype,"filteredOptions",void 0);var Iu=d(R()),Ie=d(F()),ir=d(g());var $u=d(Gt());var Nu=d(R()),Qe=d(g());var Nt={buttonsColor:Qe.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Qe.designSystemVariables.colorPrimary),buttonsZIndex:Qe.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Qe.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Qe.FtCssVariableFactory.external(Qe.designSystemVariables.colorSurface,"Design system")},Mu=Nu.css`
1162
+ `}onRadioKeyDown(e,r){e.stopPropagation(),(e.key===" "||e.key==="Enter")&&(e.preventDefault(),this.optionsChanged(e,r))}optionsChanged(e,r){e.stopPropagation(),this.dispatchEvent(new CustomEvent("change",{detail:r}))}displayLevel(e){this.dispatchEvent(new CustomEvent("display-level",{detail:e}))}updated(e){super.updated(e),e.has("filter")&&e.has("filteredOptions")&&e.get("filteredOptions")!==void 0&&e.get("filter")!==void 0&&this.ariaNotificationDebouncer.run(async()=>{if(this.filteredOptionsNumberAriaNotification==null)return;let r=await this.awaitI18n({...this.filteredOptionsNumberAriaNotification,args:[this.filteredOptions.length]});this.sendAriaNotification(r)})}};K.elementDefinitions={"ft-button":C,"ft-ripple":N,"ft-typography":j,"ft-checkbox":he,"ft-icon":de,"ft-radio":se};K.styles=yu;me([(0,re.property)({type:String})],K.prototype,"filterId",void 0);me([(0,re.property)({type:Object})],K.prototype,"parent",void 0);me([(0,re.property)({type:Array,hasChanged:Oe.hasChanged})],K.prototype,"options",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"multivalued",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"disabled",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"hideSelectedOptions",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"displayCount",void 0);me([(0,re.property)({type:Boolean})],K.prototype,"preventNavigation",void 0);me([(0,re.property)({type:String})],K.prototype,"filter",void 0);me([(0,re.property)({type:String})],K.prototype,"moreValuesButtonLabel",void 0);me([(0,re.property)({type:String})],K.prototype,"noValuesLabel",void 0);me([(0,re.property)()],K.prototype,"filteredOptionsNumberAriaNotification",void 0);me([(0,Oe.numberProperty)()],K.prototype,"displayedValuesLimit",void 0);me([(0,re.query)(".ft-filter-level--container")],K.prototype,"container",void 0);me([(0,re.state)()],K.prototype,"radios",void 0);me([(0,re.state)()],K.prototype,"displayedPages",void 0);me([(0,re.state)()],K.prototype,"filteredOptions",void 0);var $u=d(R()),Ie=d(U()),nr=d(g());var Fu=d(Yt());var Mu=d(R()),Qe=d(g());var Mt={buttonsColor:Qe.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Qe.designSystemVariables.colorPrimary),buttonsZIndex:Qe.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Qe.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Qe.FtCssVariableFactory.external(Qe.designSystemVariables.colorSurface,"Design system")},Iu=Mu.css`
1163
1163
  .ft-snap-scroll {
1164
1164
  box-sizing: border-box;
1165
1165
  position: relative;
@@ -1194,7 +1194,7 @@
1194
1194
  flex-wrap: nowrap;
1195
1195
  align-items: flex-start;
1196
1196
  justify-content: flex-start;
1197
- gap: ${Nt.gap};
1197
+ gap: ${Mt.gap};
1198
1198
  }
1199
1199
 
1200
1200
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1237,11 +1237,11 @@
1237
1237
  .ft-snap-scroll--next {
1238
1238
  position: absolute;
1239
1239
  display: flex;
1240
- z-index: ${Nt.buttonsZIndex};
1240
+ z-index: ${Mt.buttonsZIndex};
1241
1241
  opacity: 1;
1242
1242
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1243
1243
  ${(0,Qe.setVariable)(D.backgroundColor,"transparent")};
1244
- ${(0,Qe.setVariable)(D.color,Nt.buttonsColor)};
1244
+ ${(0,Qe.setVariable)(D.color,Mt.buttonsColor)};
1245
1245
  }
1246
1246
 
1247
1247
  .ft-snap-scroll--previous[hidden],
@@ -1254,37 +1254,37 @@
1254
1254
  top: 0;
1255
1255
  left: -1px;
1256
1256
  bottom: 0;
1257
- background: linear-gradient(to right, ${Nt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1257
+ background: linear-gradient(to right, ${Mt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1258
1258
  }
1259
1259
 
1260
1260
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1261
1261
  top: -1px;
1262
1262
  left: 0;
1263
1263
  right: 0;
1264
- background: linear-gradient(to bottom, ${Nt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1264
+ background: linear-gradient(to bottom, ${Mt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1265
1265
  }
1266
1266
 
1267
1267
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1268
1268
  top: 0;
1269
1269
  right: -1px;
1270
1270
  bottom: 0;
1271
- background: linear-gradient(to left, ${Nt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1271
+ background: linear-gradient(to left, ${Mt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1272
1272
  }
1273
1273
 
1274
1274
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1275
1275
  left: 0;
1276
1276
  right: 0;
1277
1277
  bottom: -1px;
1278
- background: linear-gradient(to top, ${Nt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1278
+ background: linear-gradient(to top, ${Mt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1279
1279
  }
1280
1280
 
1281
1281
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1282
1282
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1283
1283
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1284
1284
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1285
- background-color: ${Nt.colorSurface};
1285
+ background-color: ${Mt.colorSurface};
1286
1286
  }
1287
- `;var ct=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Zo=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},se=class extends ir.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new ir.Debouncer(200),this.updateScrollDebouncer=new ir.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,o=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<o||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,$u.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":ir.isSafari}),r=this.controls&&this.withScroll;return Iu.html`
1287
+ `;var ct=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Zs=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},oe=class extends nr.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new nr.Debouncer(200),this.updateScrollDebouncer=new nr.Debouncer(100)}scrollToIndex(e){this.scrollToElement(this.elements[e])}scrollIndexIntoView(e){let r=this.elements[e];if(r){let i=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,s=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<s||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Fu.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":nr.isSafari}),r=this.controls&&this.withScroll;return $u.html`
1288
1288
  <div part="container" class="${e}">
1289
1289
  <ft-button
1290
1290
  class="ft-snap-scroll--previous"
@@ -1308,7 +1308,7 @@
1308
1308
  @click=${this.next}
1309
1309
  ></ft-button>
1310
1310
  </div>
1311
- `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Zo(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};se.elementDefinitions={"ft-button":C};se.styles=Mu;ct([(0,Ie.property)({type:Boolean})],se.prototype,"horizontal",void 0);ct([(0,Ie.property)({type:Boolean})],se.prototype,"hideScrollbar",void 0);ct([(0,Ie.property)({type:Boolean})],se.prototype,"controls",void 0);ct([(0,Ie.property)({type:Boolean})],se.prototype,"limitSize",void 0);ct([(0,Ie.state)()],se.prototype,"elements",void 0);ct([(0,Ie.state)()],se.prototype,"currentElement",void 0);ct([(0,Ie.state)()],se.prototype,"withScroll",void 0);ct([(0,Ie.state)()],se.prototype,"startReached",void 0);ct([(0,Ie.state)()],se.prototype,"endReached",void 0);ct([(0,Ie.query)(".ft-snap-scroll--content")],se.prototype,"contentSlot",void 0);var Fu=d(g());var Uu={"ft-snap-scroll":se};(0,Fu.customElements)(Uu);var Bu=d(R()),V=d(g());var Te={colorOutline:V.FtCssVariableFactory.external(V.designSystemVariables.colorOutline,"Design system"),colorOnSurface:V.FtCssVariableFactory.external(V.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:V.FtCssVariableFactory.external(V.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:V.FtCssVariableFactory.external(V.designSystemVariables.colorPrimary,"Design system"),colorSurface:V.FtCssVariableFactory.external(V.designSystemVariables.colorSurface,"Design system"),transitionDuration:V.FtCssVariableFactory.external(V.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:V.FtCssVariableFactory.external(V.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:V.FtCssVariableFactory.extend("--ft-filter-label-color","",V.designSystemVariables.colorOnSurface),labelFontSize:V.FtCssVariableFactory.extend("--ft-filter-label-font-size","",v.fontSize,"16px")},Vu=[mn,V.noTextInputDefaultClearButton,Bu.css`
1311
+ `}update(e){super.update(e),e.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),e.has("currentElement")&&this.dispatchEvent(new Zs(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(e){var r;super.contentAvailableCallback(e),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(r=this.listenedContainer)===null||r===void 0||r.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let e=this.closestElementFromStart();if(e!=null){let r=this.getDistanceFromStart(e);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<r&&(e=this.lastElement),this.scrollToElement(e)}}scrollToElement(e){var r,i;e&&(this.horizontal?(r=this.contentSlot)===null||r===void 0||r.scrollTo({left:this.getOffset(e)-this.controlsSize,behavior:"smooth"}):(i=this.contentSlot)===null||i===void 0||i.scrollTo({top:this.getOffset(e)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(e))}onSlotChange(){var e,r;this.elements=(r=(e=this.contentSlot)===null||e===void 0?void 0:e.assignedElements().map(i=>i))!==null&&r!==void 0?r:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let e=-1;for(let r=0;r<this.elements.length;r++)(e<0||this.getDistanceFromStart(this.elements[r])<this.getDistanceFromStart(this.elements[e]))&&(e=r);return e}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let e=this.elements[0];return e?e[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(e){return e[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(e){let r=e===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(e)-this.contentSlot[this.scrollAttribute]-r)}};oe.elementDefinitions={"ft-button":C};oe.styles=Iu;ct([(0,Ie.property)({type:Boolean})],oe.prototype,"horizontal",void 0);ct([(0,Ie.property)({type:Boolean})],oe.prototype,"hideScrollbar",void 0);ct([(0,Ie.property)({type:Boolean})],oe.prototype,"controls",void 0);ct([(0,Ie.property)({type:Boolean})],oe.prototype,"limitSize",void 0);ct([(0,Ie.state)()],oe.prototype,"elements",void 0);ct([(0,Ie.state)()],oe.prototype,"currentElement",void 0);ct([(0,Ie.state)()],oe.prototype,"withScroll",void 0);ct([(0,Ie.state)()],oe.prototype,"startReached",void 0);ct([(0,Ie.state)()],oe.prototype,"endReached",void 0);ct([(0,Ie.query)(".ft-snap-scroll--content")],oe.prototype,"contentSlot",void 0);var Bu=d(g());var Uu={"ft-snap-scroll":oe};(0,Bu.customElements)(Uu);var Vu=d(R()),V=d(g());var Te={colorOutline:V.FtCssVariableFactory.external(V.designSystemVariables.colorOutline,"Design system"),colorOnSurface:V.FtCssVariableFactory.external(V.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:V.FtCssVariableFactory.external(V.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:V.FtCssVariableFactory.external(V.designSystemVariables.colorPrimary,"Design system"),colorSurface:V.FtCssVariableFactory.external(V.designSystemVariables.colorSurface,"Design system"),transitionDuration:V.FtCssVariableFactory.external(V.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:V.FtCssVariableFactory.external(V.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:V.FtCssVariableFactory.extend("--ft-filter-label-color","",V.designSystemVariables.colorOnSurface),labelFontSize:V.FtCssVariableFactory.extend("--ft-filter-label-font-size","",v.fontSize,"16px")},Hu=[gn,V.noTextInputDefaultClearButton,Vu.css`
1312
1312
  :host {
1313
1313
  display: flex;
1314
1314
  max-height: 100%;
@@ -1425,10 +1425,10 @@
1425
1425
  slot:not([name]) {
1426
1426
  display: none;
1427
1427
  }
1428
- `];var H=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},es=class extends CustomEvent{constructor(e){super("change",{detail:e})}},k=class extends(0,J.withAnalytics)(J.FtLitElement,Jo){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new J.Debouncer(300),this.changeDebouncer=new J.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,J.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,J.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(o=>o.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return nr.html`
1428
+ `];var H=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},eo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},k=class extends(0,J.withAnalytics)(J.FtLitElement,Js){constructor(){super(...arguments),this.id="",this.label="",this.filterPlaceHolder="Filter {0}",this.clearButtonLabel="Clear",this.moreValuesButtonLabel="More",this.noValuesLabel="No values available",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesLimit=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new J.Debouncer(300),this.changeDebouncer=new J.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,J.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,J.flatDeep)(this.options,e=>{var r;return e.selected?[]:(r=e.subOptions)!==null&&r!==void 0?r:[]})}get selectedValues(){return this.childrenFilteredFlatOptions.filter(e=>e.selected).map(e=>e.value)}render(){let e=this.flatOptions.some(s=>s.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=this.filterPlaceHolder.replace("{0}",this.label);return sr.html`
1429
1429
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1430
1430
  part="container">
1431
- ${!this.label&&!e?null:nr.html`
1431
+ ${!this.label&&!e?null:sr.html`
1432
1432
 
1433
1433
  <div class="ft-filter--header" part="header">
1434
1434
  <div class="filter-label" id="id-group-${this.id}">
@@ -1437,7 +1437,7 @@
1437
1437
  </ft-typography>
1438
1438
  <slot name="label"></slot>
1439
1439
  </div>
1440
- ${e&&!this.hideClearButton?nr.html`
1440
+ ${e&&!this.hideClearButton?sr.html`
1441
1441
  <ft-button icon="close"
1442
1442
  aria-label="${this.clearButtonLabel+" "+this.label}"
1443
1443
  dense
@@ -1465,8 +1465,8 @@
1465
1465
  @slotchange=${this.updateOptionsFromSlot}
1466
1466
  @option-change=${this.optionsChanged}></slot>
1467
1467
  </div>
1468
- `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,o,n,s,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((o=this.levelsContainer)===null||o===void 0||o.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(s=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||s===void 0?void 0:s.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(n=>n.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,o=i<0?"ft-filter--level-center":"ft-filter--level-left";return nr.html`
1469
- ${this.raiseSelectedOptions&&r.length>0?nr.html`
1468
+ `}update(e){if(super.update(e),e.has("options")){let r=new Set(this.flatOptions.map(i=>i.value));this.displayedLevels=this.displayedLevels.filter(i=>r.has(i)),this.lastDispatchedValues=this.selectedValues}}contentAvailableCallback(e){var r,i,s,n,o,a;super.contentAvailableCallback(e),this.valuesContainer&&this.scrollResizeObserver.observe(this.valuesContainer),this.container&&this.scrollResizeObserver.observe(this.container),e.has("options")&&(this.updateScroll(),(r=this.levelsContainer)===null||r===void 0||r.scrollToIndex(this.displayedLevels.length)),e.has("slideIn")&&this.slideIn&&((i=this.levelsContainer)===null||i===void 0||i.next(),setTimeout(()=>{this.slideIn=void 0},300)),e.has("slideOut")&&this.slideOut&&((s=this.levelsContainer)===null||s===void 0||s.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(n=this.shadowRoot)===null||n===void 0?void 0:n.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(n=>n.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,s=i<0?"ft-filter--level-center":"ft-filter--level-left";return sr.html`
1469
+ ${this.raiseSelectedOptions&&r.length>0?sr.html`
1470
1470
  <ft-filter-level
1471
1471
  filterId="${this.id}"
1472
1472
  ?multivalued=${this.multivalued}
@@ -1484,10 +1484,10 @@
1484
1484
  <ft-snap-scroll horizontal hideScrollbar
1485
1485
  class="ft-filter--levels"
1486
1486
  @current-element-change=${n=>this.levelsScrollDebouncer.run(()=>{for(;n.detail.index<this.displayedLevels.length;)this.displayedLevels.pop();this.requestUpdate()})}>
1487
- ${this.renderLevel(o,this.options)}
1488
- ${this.displayedLevels.map(n=>e.find(s=>s.value===n)).map((n,s)=>{var a;let l=n?.value===this.slideIn||n?.value===this.slideOut?"ft-filter--level-right":s===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=n?.subOptions)!==null&&a!==void 0?a:[],n)})}
1487
+ ${this.renderLevel(s,this.options)}
1488
+ ${this.displayedLevels.map(n=>e.find(o=>o.value===n)).map((n,o)=>{var a;let l=n?.value===this.slideIn||n?.value===this.slideOut?"ft-filter--level-right":o===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=n?.subOptions)!==null&&a!==void 0?a:[],n)})}
1489
1489
  </ft-snap-scroll>
1490
- `}renderLevel(e,r,i){return nr.html`
1490
+ `}renderLevel(e,r,i){return sr.html`
1491
1491
  <ft-filter-level
1492
1492
  class="${e}"
1493
1493
  filterId="${this.id}"
@@ -1509,9 +1509,9 @@
1509
1509
  noValuesLabel="${this.noValuesLabel}"
1510
1510
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1511
1511
  ></ft-filter-level>
1512
- `}goBack(e){this.slideOut=e.detail.value,(0,J.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,J.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,J.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(n=>n.value===e.detail.value);i.selected=!i.selected;let o=n=>{var s;n!==i&&(n.selected=!1),(s=n.subOptions)===null||s===void 0||s.forEach(o)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(o):this.options.forEach(o),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,J.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new es(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};k.elementDefinitions={"ft-button":C,"ft-filter-level":K,"ft-snap-scroll":se,"ft-typography":j};k.styles=Vu;H([(0,$.property)({type:String})],k.prototype,"id",void 0);H([(0,$.property)({type:String})],k.prototype,"label",void 0);H([(0,$.property)({type:String})],k.prototype,"filterPlaceHolder",void 0);H([(0,$.property)({type:String})],k.prototype,"clearButtonLabel",void 0);H([(0,$.property)({type:String})],k.prototype,"moreValuesButtonLabel",void 0);H([(0,$.property)({type:String})],k.prototype,"noValuesLabel",void 0);H([(0,J.jsonProperty)([])],k.prototype,"options",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"multivalued",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"disabled",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"raiseSelectedOptions",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"displayCount",void 0);H([(0,J.numberProperty)()],k.prototype,"displayedValuesLimit",void 0);H([(0,J.jsonProperty)(void 0)],k.prototype,"filteredOptionsNumberAriaNotification",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"hideClearButton",void 0);H([(0,$.query)(".ft-filter--slot")],k.prototype,"slotElement",void 0);H([(0,$.query)(".ft-filter--container")],k.prototype,"container",void 0);H([(0,$.query)(".ft-filter--values")],k.prototype,"valuesContainer",void 0);H([(0,$.query)(".ft-filter--levels")],k.prototype,"levelsContainer",void 0);H([(0,$.state)()],k.prototype,"lastLevelHasHiddenvalues",void 0);H([(0,$.query)(".ft-filter--filter input")],k.prototype,"filterInput",void 0);H([(0,$.queryAll)(".ft-filter--levels ft-filter-level")],k.prototype,"levels",void 0);H([(0,$.state)()],k.prototype,"withScroll",void 0);H([(0,$.state)()],k.prototype,"filter",void 0);H([(0,$.state)()],k.prototype,"slideIn",void 0);H([(0,$.state)()],k.prototype,"slideOut",void 0);var In=d(g()),or=d(F()),Hu=d(R()),Nr=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Xe=class extends In.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Hu.html`
1512
+ `}goBack(e){this.slideOut=e.detail.value,(0,J.waitUntil)(()=>this.slideOut===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnExpandButton(e.detail.value)})}onDisplayLevel(e){this.displayedLevels.push(e.detail.value),this.slideIn=e.detail.value,(0,J.waitUntil)(()=>this.slideIn===void 0).then(()=>{var r;let i=(r=this.levelsContainer)===null||r===void 0?void 0:r.querySelector(".ft-filter--level-center");i?.focusOnBackButton()})}focusOnFirstOption(){(0,J.waitUntil)(()=>this.slideOut===void 0).then(()=>{var e;let r=(e=this.levelsContainer)===null||e===void 0?void 0:e.querySelector(".ft-filter--level-center");r?.focusOnFirstOption()})}clear(){if(this.flatOptions.forEach(e=>e.selected=!1),this.displayedLevels.length>0){let e=this.displayedLevels[this.displayedLevels.length-1];this.displayedLevels=[e],this.slideOut=e}this.optionsChanged()}onChange(e){var r;e.stopPropagation();let i=this.flatOptions.find(n=>n.value===e.detail.value);i.selected=!i.selected;let s=n=>{var o;n!==i&&(n.selected=!1),(o=n.subOptions)===null||o===void 0||o.forEach(s)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(s):this.options.forEach(s),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,J.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new eo(e)),this.lastDispatchedValues=e)}updateOptionsFromSlot(e){e.stopPropagation(),this.options=this.slotElement.assignedElements().map(r=>r),this.optionsChanged()}onFilterChange(){var e,r;this.filter=(r=(e=this.filterInput)===null||e===void 0?void 0:e.value)!==null&&r!==void 0?r:""}updateScroll(){this.valuesContainer&&(this.withScroll=this.valuesContainer.scrollHeight>this.valuesContainer.clientHeight)}};k.elementDefinitions={"ft-button":C,"ft-filter-level":K,"ft-snap-scroll":oe,"ft-typography":j};k.styles=Hu;H([(0,$.property)({type:String})],k.prototype,"id",void 0);H([(0,$.property)({type:String})],k.prototype,"label",void 0);H([(0,$.property)({type:String})],k.prototype,"filterPlaceHolder",void 0);H([(0,$.property)({type:String})],k.prototype,"clearButtonLabel",void 0);H([(0,$.property)({type:String})],k.prototype,"moreValuesButtonLabel",void 0);H([(0,$.property)({type:String})],k.prototype,"noValuesLabel",void 0);H([(0,J.jsonProperty)([])],k.prototype,"options",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"multivalued",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"disabled",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"raiseSelectedOptions",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"displayCount",void 0);H([(0,J.numberProperty)()],k.prototype,"displayedValuesLimit",void 0);H([(0,J.jsonProperty)(void 0)],k.prototype,"filteredOptionsNumberAriaNotification",void 0);H([(0,$.property)({type:Boolean})],k.prototype,"hideClearButton",void 0);H([(0,$.query)(".ft-filter--slot")],k.prototype,"slotElement",void 0);H([(0,$.query)(".ft-filter--container")],k.prototype,"container",void 0);H([(0,$.query)(".ft-filter--values")],k.prototype,"valuesContainer",void 0);H([(0,$.query)(".ft-filter--levels")],k.prototype,"levelsContainer",void 0);H([(0,$.state)()],k.prototype,"lastLevelHasHiddenvalues",void 0);H([(0,$.query)(".ft-filter--filter input")],k.prototype,"filterInput",void 0);H([(0,$.queryAll)(".ft-filter--levels ft-filter-level")],k.prototype,"levels",void 0);H([(0,$.state)()],k.prototype,"withScroll",void 0);H([(0,$.state)()],k.prototype,"filter",void 0);H([(0,$.state)()],k.prototype,"slideIn",void 0);H([(0,$.state)()],k.prototype,"slideOut",void 0);var $n=d(g()),or=d(U()),zu=d(R()),$r=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Xe=class extends $n.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return zu.html`
1513
1513
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1514
- `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Xe.elementDefinitions={};Nr([(0,or.property)({type:String})],Xe.prototype,"label",void 0);Nr([(0,or.property)({type:Object,converter:t=>t})],Xe.prototype,"value",void 0);Nr([(0,or.property)({type:Boolean,reflect:!0})],Xe.prototype,"selected",void 0);Nr([(0,or.property)({type:Object})],Xe.prototype,"subOptions",void 0);Nr([(0,In.jsonProperty)({})],Xe.prototype,"renderOption",void 0);Nr([(0,or.query)(".ft-filter-option--slot")],Xe.prototype,"slotElement",void 0);var ju=d(g());var zu={"ft-filter":k,"ft-filter-option":Xe};(0,ju.customElements)(zu);var Je=Rt.build("designedSearchType"),$n={label:"Search scope",documentTitlesOnly:"Search in document titles only",matchAllKeywords:"Match all search terms",clear:"Clear",noFilterValuesAvailable:"No values available"};var bi=d(F());var vi=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Ze=class extends ot(St){constructor(){super(),this.options={searchInDocumentTitlesOnly:{label:()=>Je.messages.documentTitlesOnly(),selected:()=>!!this.searchInDocumentTitlesOnly,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setSearchInDocumentTitlesOnly(e)},display:()=>!this.hideSearchInDocumentTitlesOnly},matchAllKeywords:{label:()=>Je.messages.matchAllKeywords(),selected:()=>!!this.matchAllKeywords,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setKeywordMatch(e?dt.MANDATORY:dt.OPTIONAL)},display:()=>!!this.displayMatchAllKeywords}},this.addI18nContext(Je,$n)}render(){let e=Object.keys(this.options).filter(r=>this.options[r].display()).map(r=>({value:r,label:this.options[r].label(),selected:this.options[r].selected()}));return qu.html`
1514
+ `}updateSubOptionsFromSlot(e){e.stopPropagation(),this.subOptions=this.slotElement.assignedElements().map(r=>r)}update(e){super.update(e),this.dispatchEvent(new CustomEvent("option-change",{detail:this,bubbles:!0}))}};Xe.elementDefinitions={};$r([(0,or.property)({type:String})],Xe.prototype,"label",void 0);$r([(0,or.property)({type:Object,converter:t=>t})],Xe.prototype,"value",void 0);$r([(0,or.property)({type:Boolean,reflect:!0})],Xe.prototype,"selected",void 0);$r([(0,or.property)({type:Object})],Xe.prototype,"subOptions",void 0);$r([(0,$n.jsonProperty)({})],Xe.prototype,"renderOption",void 0);$r([(0,or.query)(".ft-filter-option--slot")],Xe.prototype,"slotElement",void 0);var qu=d(g());var ju={"ft-filter":k,"ft-filter-option":Xe};(0,qu.customElements)(ju);var Je=Lt.build("designedSearchType"),Fn={label:"Search scope",documentTitlesOnly:"Search in document titles only",matchAllKeywords:"Match all search terms",clear:"Clear",noFilterValuesAvailable:"No values available"};var Si=d(U());var xi=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Ze=class extends st(Et){constructor(){super(),this.options={searchInDocumentTitlesOnly:{label:()=>Je.messages.documentTitlesOnly(),selected:()=>!!this.searchInDocumentTitlesOnly,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setSearchInDocumentTitlesOnly(e)},display:()=>!this.hideSearchInDocumentTitlesOnly},matchAllKeywords:{label:()=>Je.messages.matchAllKeywords(),selected:()=>!!this.matchAllKeywords,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setKeywordMatch(e?dt.MANDATORY:dt.OPTIONAL)},display:()=>!!this.displayMatchAllKeywords}},this.addI18nContext(Je,Fn)}render(){let e=Object.keys(this.options).filter(r=>this.options[r].display()).map(r=>({value:r,label:this.options[r].label(),selected:this.options[r].selected()}));return Ku.html`
1515
1515
  <ft-filter
1516
1516
  label="${Je.messages.label()}"
1517
1517
  clearButtonLabel="${Je.messages.clear()}"
@@ -1522,7 +1522,7 @@
1522
1522
  multivalued
1523
1523
  @change=${()=>this.onSelectionChange()}
1524
1524
  ></ft-filter>
1525
- `}onSelectionChange(){var e;(e=this.filter)===null||e===void 0||e.options.forEach(r=>this.options[r.value].onChange(!!r.selected))}};Ze.elementDefinitions={"ft-filter":k};Ze.styles=fu;vi([(0,ts.redux)({selector:un})],Ze.prototype,"searchInDocumentTitlesOnly",void 0);vi([(0,bi.property)({type:Boolean})],Ze.prototype,"hideSearchInDocumentTitlesOnly",void 0);vi([(0,ts.redux)({selector:dn})],Ze.prototype,"matchAllKeywords",void 0);vi([(0,bi.property)({type:Boolean})],Ze.prototype,"displayMatchAllKeywords",void 0);vi([(0,bi.query)("ft-filter")],Ze.prototype,"filter",void 0);var Wu=d(g());var Ku={"ft-search-type":Ze};(0,Wu.customElements)(Ku);var Gu=d(R()),sr=d(g());var Gp={headerColor:sr.FtCssVariableFactory.extend("--ft-search-period-filter-header-color","",sr.designSystemVariables.colorOnSurface)},Yu=Gu.css`
1525
+ `}onSelectionChange(){var e;(e=this.filter)===null||e===void 0||e.options.forEach(r=>this.options[r.value].onChange(!!r.selected))}};Ze.elementDefinitions={"ft-filter":k};Ze.styles=hu;xi([(0,to.redux)({selector:pn})],Ze.prototype,"searchInDocumentTitlesOnly",void 0);xi([(0,Si.property)({type:Boolean})],Ze.prototype,"hideSearchInDocumentTitlesOnly",void 0);xi([(0,to.redux)({selector:fn})],Ze.prototype,"matchAllKeywords",void 0);xi([(0,Si.property)({type:Boolean})],Ze.prototype,"displayMatchAllKeywords",void 0);xi([(0,Si.query)("ft-filter")],Ze.prototype,"filter",void 0);var Gu=d(g());var Wu={"ft-search-type":Ze};(0,Gu.customElements)(Wu);var Yu=d(R()),ar=d(g());var Yp={headerColor:ar.FtCssVariableFactory.extend("--ft-search-period-filter-header-color","",ar.designSystemVariables.colorOnSurface)},Qu=Yu.css`
1526
1526
  [part="container"] {
1527
1527
  flex-grow: 1;
1528
1528
  display: flex;
@@ -1537,7 +1537,7 @@
1537
1537
  overflow: auto;
1538
1538
  display: flex;
1539
1539
  flex-direction: column;
1540
- ${(0,sr.setVariable)(v.lineHeight,"22px")};
1540
+ ${(0,ar.setVariable)(v.lineHeight,"22px")};
1541
1541
  }
1542
1542
 
1543
1543
  [part="header"] {
@@ -1547,7 +1547,7 @@
1547
1547
  flex-shrink: 0;
1548
1548
  padding: 0 10px;
1549
1549
  margin-bottom: 8px;
1550
- color: ${Gp.headerColor};
1550
+ color: ${Yp.headerColor};
1551
1551
  }
1552
1552
 
1553
1553
  [part="label"] {
@@ -1556,10 +1556,10 @@
1556
1556
  flex-grow: 1;
1557
1557
  word-break: break-word;
1558
1558
  font-size: ${Te.labelFontSize};
1559
- ${(0,sr.setVariable)(v.fontWeight,"bold")};
1559
+ ${(0,ar.setVariable)(v.fontWeight,"bold")};
1560
1560
  }
1561
1561
 
1562
- `;var et=d(R());var rs=d(g());var ge=Rt.build("designedSearchPeriodFilter"),Un={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var ar=d(F());var Mt=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},Re=class extends ot(St){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(ge,Un),this.addStore(E)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var r;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(r=this.filters)===null||r===void 0?void 0:r.filter(i=>i.key===this.metadataKey).filter(i=>i.dateFilter).map(i=>i.dateFilter).find(Boolean))}render(){var e,r,i,o;return et.html`
1562
+ `;var et=d(R());var ro=d(g());var ge=Lt.build("designedSearchPeriodFilter"),Un={label:"Last update",anyTime:"Any time",LAST_WEEK:"Less than a week",LAST_MONTH:"Less than a month",LAST_QUARTER:"Less than a quarter",LAST_YEAR:"Less than a year",CUSTOM:"Custom period",customPeriod:"From {0} to {1}",period:"Period: {0}"};var lr=d(U());var It=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},Re=class extends st(Et){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(ge,Un),this.addStore(E)}get metadataKey(){var e;return(e=this.key)!==null&&e!==void 0?e:"ft:lastEdition"}update(e){var r;super.update(e),(e.has("filters")||e.has("key"))&&(this.dateFilter=(r=this.filters)===null||r===void 0?void 0:r.filter(i=>i.key===this.metadataKey).filter(i=>i.dateFilter).map(i=>i.dateFilter).find(Boolean))}render(){var e,r,i,s;return et.html`
1563
1563
  <div part="container">
1564
1564
  <div part="header">
1565
1565
  <ft-typography variant="overline" part="label" id="label">
@@ -1581,36 +1581,36 @@
1581
1581
  ${ge.messages.LAST_QUARTER()}
1582
1582
  </ft-radio>`:et.nothing}
1583
1583
  ${this.lessThanAYear?et.html`
1584
- <ft-radio ?checked=${((o=this.dateFilter)===null||o===void 0?void 0:o.type)=="LAST_YEAR"} value="LAST_YEAR">${ge.messages.LAST_YEAR()}
1584
+ <ft-radio ?checked=${((s=this.dateFilter)===null||s===void 0?void 0:s.type)=="LAST_YEAR"} value="LAST_YEAR">${ge.messages.LAST_YEAR()}
1585
1585
  </ft-radio>`:et.nothing}
1586
1586
  </ft-radio-group>
1587
- </div>`}setPeriodFilter(e){var r,i;let o=Si[e.detail];o?(r=this.stateManager)===null||r===void 0||r.setDateFilter(this.metadataKey,o):(i=this.stateManager)===null||i===void 0||i.removeDateFilter(this.metadataKey)}header(){var e,r,i;return this.metadataKey==="ft:lastEdition"?ge.messages.label():(i=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(o=>o.key==this.metadataKey))===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:this.metadataKey}};Re.elementDefinitions={"ft-radio-group":Ne,"ft-radio":oe,"ft-typography":j};Re.styles=Yu;Mt([(0,ar.property)({type:String})],Re.prototype,"key",void 0);Mt([(0,ar.property)({type:Boolean})],Re.prototype,"lessThanAWeek",void 0);Mt([(0,ar.property)({type:Boolean})],Re.prototype,"lessThanAMonth",void 0);Mt([(0,ar.property)({type:Boolean})],Re.prototype,"lessThanAQuarter",void 0);Mt([(0,ar.property)({type:Boolean})],Re.prototype,"lessThanAYear",void 0);Mt([(0,rs.redux)({store:"search",selector:t=>t.request.metadataFilters})],Re.prototype,"filters",void 0);Mt([(0,rs.redux)({store:E.name,selector:t=>{var e,r;return(r=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[]}})],Re.prototype,"metadataDescriptors",void 0);Mt([(0,ar.property)({attribute:!1})],Re.prototype,"dateFilter",void 0);var Xu=d(g());var Qu={"ft-search-period-filter":Re};(0,Xu.customElements)(Qu);var It=Rt.build("designedSearchSelectedFacets"),Ju={filterGroupLabel:"Filters enabled",removeFilterLabel:"Remove filter"};var ut=function(t,e,r,i){var o=arguments.length,n=o<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(n=(o<3?s(n):o>3?s(e,r,n):s(e,r))||n);return o>3&&n&&Object.defineProperty(e,r,n),n},ve=class extends(0,W.withAriaNotification)(qa(ot(St))){get hasSomethingToDisplay(){var e,r;return this.searchInDocumentTitlesOnly||this.keywordMatch||((e=this.facets)===null||e===void 0?void 0:e.some(i=>this.getSelectedValues(i).length>0))||((r=this.filters)===null||r===void 0?void 0:r.some(i=>i.dateFilter||i.rangeFilter))}get numberOfChips(){return(0,W.shadowQuerySelectorAll)(this.shadowRoot,"ft-chip").length}constructor(){super(),this.displayLabel=!1,this.forceTooltip=!1,this.multiLine=!1,this.hierarchicalValueTruncatingLevel=3,this.selectedFacetsAriaNotification={context:"officialContext",key:"searchSelectedFacetsAriaNotification",message:""},this.neededSearchRequests=[Ir.CLUSTERED_SEARCH],this.ariaNotificationDebouncer=new W.Debouncer(100),this.addI18nContext(Je,$n),this.addI18nContext(It,Ju),this.addI18nContext(ge,Un)}render(){var e,r;return this.hasSomethingToDisplay?ie.html`
1588
- <div role="group" class="ft-search-selected-facets--container" aria-label="${It.messages.filterGroupLabel()}">
1589
- ${(0,Fn.repeat)(this.facets||[],i=>i.key,i=>{let o=this.getSelectedValues(i);return(0,Fn.repeat)(o,n=>i.key+"-"+n,n=>this.renderFacet(i.key,i.label,o,n))})}
1587
+ </div>`}setPeriodFilter(e){var r,i;let s=Ai[e.detail];s?(r=this.stateManager)===null||r===void 0||r.setDateFilter(this.metadataKey,s):(i=this.stateManager)===null||i===void 0||i.removeDateFilter(this.metadataKey)}header(){var e,r,i;return this.metadataKey==="ft:lastEdition"?ge.messages.label():(i=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(s=>s.key==this.metadataKey))===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:this.metadataKey}};Re.elementDefinitions={"ft-radio-group":Ne,"ft-radio":se,"ft-typography":j};Re.styles=Qu;It([(0,lr.property)({type:String})],Re.prototype,"key",void 0);It([(0,lr.property)({type:Boolean})],Re.prototype,"lessThanAWeek",void 0);It([(0,lr.property)({type:Boolean})],Re.prototype,"lessThanAMonth",void 0);It([(0,lr.property)({type:Boolean})],Re.prototype,"lessThanAQuarter",void 0);It([(0,lr.property)({type:Boolean})],Re.prototype,"lessThanAYear",void 0);It([(0,ro.redux)({store:"search",selector:t=>t.request.metadataFilters})],Re.prototype,"filters",void 0);It([(0,ro.redux)({store:E.name,selector:t=>{var e,r;return(r=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[]}})],Re.prototype,"metadataDescriptors",void 0);It([(0,lr.property)({attribute:!1})],Re.prototype,"dateFilter",void 0);var Ju=d(g());var Xu={"ft-search-period-filter":Re};(0,Ju.customElements)(Xu);var $t=Lt.build("designedSearchSelectedFacets"),Zu={filterGroupLabel:"Filters enabled",removeFilterLabel:"Remove filter"};var ut=function(t,e,r,i){var s=arguments.length,n=s<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")n=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(n=(s<3?o(n):s>3?o(e,r,n):o(e,r))||n);return s>3&&n&&Object.defineProperty(e,r,n),n},ve=class extends(0,W.withAriaNotification)(Ka(st(Et))){get hasSomethingToDisplay(){var e,r;return this.searchInDocumentTitlesOnly||this.keywordMatch||((e=this.facets)===null||e===void 0?void 0:e.some(i=>this.getSelectedValues(i).length>0))||((r=this.filters)===null||r===void 0?void 0:r.some(i=>i.dateFilter||i.rangeFilter))}get numberOfChips(){return(0,W.shadowQuerySelectorAll)(this.shadowRoot,"ft-chip").length}constructor(){super(),this.displayLabel=!1,this.forceTooltip=!1,this.multiLine=!1,this.hierarchicalValueTruncatingLevel=3,this.selectedFacetsAriaNotification={context:"officialContext",key:"searchSelectedFacetsAriaNotification",message:""},this.neededSearchRequests=[Ur.CLUSTERED_SEARCH],this.ariaNotificationDebouncer=new W.Debouncer(100),this.addI18nContext(Je,Fn),this.addI18nContext($t,Zu),this.addI18nContext(ge,Un)}render(){var e,r;return this.hasSomethingToDisplay?ie.html`
1588
+ <div role="group" class="ft-search-selected-facets--container" aria-label="${$t.messages.filterGroupLabel()}">
1589
+ ${(0,Bn.repeat)(this.facets||[],i=>i.key,i=>{let s=this.getSelectedValues(i);return(0,Bn.repeat)(s,n=>i.key+"-"+n,n=>this.renderFacet(i.key,i.label,s,n))})}
1590
1590
  ${this.renderSearchScope()}
1591
- ${(0,Fn.repeat)((r=(e=this.filters)===null||e===void 0?void 0:e.filter(i=>i.dateFilter||i.rangeFilter))!==null&&r!==void 0?r:[],i=>i.key,i=>this.renderPeriodFilter(i))}
1591
+ ${(0,Bn.repeat)((r=(e=this.filters)===null||e===void 0?void 0:e.filter(i=>i.dateFilter||i.rangeFilter))!==null&&r!==void 0?r:[],i=>i.key,i=>this.renderPeriodFilter(i))}
1592
1592
  </div>
1593
- `:ie.nothing}renderFacet(e,r,i,o){if(e==="ft:publicationId")return ie.nothing;let n=e.replace(":","-"),s=this.getLabelFromValue(e,o),a=this.getBreadcrumbFromValue(e,o),l=r+": "+a,c=!this.forceTooltip&&this.displayLabel&&a==s,u=ie.html`
1593
+ `:ie.nothing}renderFacet(e,r,i,s){if(e==="ft:publicationId")return ie.nothing;let n=e.replace(":","-"),o=this.getLabelFromValue(e,s),a=this.getBreadcrumbFromValue(e,s),l=r+": "+a,c=!this.forceTooltip&&this.displayLabel&&a==o,u=ie.html`
1594
1594
  <ft-chip
1595
1595
  part="ft-search-selected-facets ft-search-selected-facet-${n}"
1596
1596
  removable hideIconTooltip
1597
- iconLabel="${It.messages.removeFilterLabel()}"
1597
+ iconLabel="${$t.messages.removeFilterLabel()}"
1598
1598
  label="${l}"
1599
- @icon-click=${p=>{var f;(f=this.stateManager)===null||f===void 0||f.setValueFilter(e,i.filter(y=>y!==o)),this.determineAndApplyFocus(p)}}
1599
+ @icon-click=${p=>{var f;(f=this.stateManager)===null||f===void 0||f.setValueFilter(e,i.filter(y=>y!==s)),this.determineAndApplyFocus(p)}}
1600
1600
  ?multiLine=${this.multiLine}
1601
1601
  data-key="${e}"
1602
- data-value="${o}">
1602
+ data-value="${s}">
1603
1603
  ${this.displayLabel?ie.html`
1604
1604
  <span part="label">${r}: </span>`:ie.nothing}
1605
1605
  <span part="values">
1606
- ${s}
1606
+ ${o}
1607
1607
  </span>
1608
1608
  </ft-chip>`;return c?u:ie.html`
1609
1609
  <ft-tooltip inline text="${l}"
1610
1610
  part="tooltips tooltip-${n}">
1611
1611
  ${u}
1612
1612
  </ft-tooltip>
1613
- `}getNextChipToFocusOn(e){let r=(0,W.shadowQuerySelectorAll)(this.shadowRoot,"ft-chip"),i=r.indexOf(e);return i===-1||r.length<=1?null:i<r.length-1?r[i+1]:r[i-1]}determineAndApplyFocus(e){let r=e.currentTarget,i=this.getNextChipToFocusOn(r);i?i.elementToFocus={selector:"ft-button"}:this.dispatchEvent(new W.FocusMainContentEvent)}getSelectedValues(e){return(0,W.flatDeep)(e.rootNodes,r=>r.selected?[]:r.childNodes).filter(r=>r.selected).map(r=>r.value)}getLabelFromValue(e,r){return this.readAndFormatValueFromFacet(e,r,this.hierarchicalValueTruncatingLevel)}getBreadcrumbFromValue(e,r){return this.readAndFormatValueFromFacet(e,r)}readAndFormatValueFromFacet(e,r,i){let o=this.getDateFormatter(e);return o?o(r):(0,W.formatHierarchicalValues)(this.unquote(r).split("|"),i)}unquote(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}renderSearchScope(){return ie.html`
1613
+ `}getNextChipToFocusOn(e){let r=(0,W.shadowQuerySelectorAll)(this.shadowRoot,"ft-chip"),i=r.indexOf(e);return i===-1||r.length<=1?null:i<r.length-1?r[i+1]:r[i-1]}determineAndApplyFocus(e){let r=e.currentTarget,i=this.getNextChipToFocusOn(r);i?i.elementToFocus={selector:"ft-button"}:this.dispatchEvent(new W.FocusMainContentEvent)}getSelectedValues(e){return(0,W.flatDeep)(e.rootNodes,r=>r.selected?[]:r.childNodes).filter(r=>r.selected).map(r=>r.value)}getLabelFromValue(e,r){return this.readAndFormatValueFromFacet(e,r,this.hierarchicalValueTruncatingLevel)}getBreadcrumbFromValue(e,r){return this.readAndFormatValueFromFacet(e,r)}readAndFormatValueFromFacet(e,r,i){let s=this.getDateFormatter(e);return s?s(r):(0,W.formatHierarchicalValues)(this.unquote(r).split("|"),i)}unquote(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}renderSearchScope(){return ie.html`
1614
1614
  ${this.renderSearchInDocumentTitlesOnly()}
1615
1615
  ${this.renderKeywordMatch()}
1616
1616
  `}renderSearchInDocumentTitlesOnly(){if(!this.searchInDocumentTitlesOnly)return ie.nothing;let e=Je.messages.documentTitlesOnly(),r=ie.html`
@@ -1619,8 +1619,8 @@
1619
1619
  label="${e}"
1620
1620
  removable
1621
1621
  hideIconTooltip
1622
- iconLabel="${It.messages.removeFilterLabel()}"
1623
- @icon-click=${i=>{var o;(o=this.stateManager)===null||o===void 0||o.setSearchInDocumentTitlesOnly(!1),this.determineAndApplyFocus(i)}}
1622
+ iconLabel="${$t.messages.removeFilterLabel()}"
1623
+ @icon-click=${i=>{var s;(s=this.stateManager)===null||s===void 0||s.setSearchInDocumentTitlesOnly(!1),this.determineAndApplyFocus(i)}}
1624
1624
  ?multiLine=${this.multiLine}>
1625
1625
  <span part="values">
1626
1626
  ${e}
@@ -1635,8 +1635,8 @@
1635
1635
  label="${e}"
1636
1636
  removable
1637
1637
  hideIconTooltip
1638
- iconLabel="${It.messages.removeFilterLabel()}"
1639
- @icon-click=${i=>{var o;(o=this.stateManager)===null||o===void 0||o.setKeywordMatch(dt.OPTIONAL),this.determineAndApplyFocus(i)}}
1638
+ iconLabel="${$t.messages.removeFilterLabel()}"
1639
+ @icon-click=${i=>{var s;(s=this.stateManager)===null||s===void 0||s.setKeywordMatch(dt.OPTIONAL),this.determineAndApplyFocus(i)}}
1640
1640
  ?multiLine=${this.multiLine}>
1641
1641
  <span part="values">
1642
1642
  ${e}
@@ -1653,8 +1653,8 @@
1653
1653
  removable
1654
1654
  hideIconTooltip
1655
1655
  label="${i}"
1656
- iconLabel="${It.messages.removeFilterLabel()}"
1657
- @icon-click=${o=>{var n;(n=this.stateManager)===null||n===void 0||n.removeDateFilter(e),this.determineAndApplyFocus(o)}}
1656
+ iconLabel="${$t.messages.removeFilterLabel()}"
1657
+ @icon-click=${s=>{var n;(n=this.stateManager)===null||n===void 0||n.removeDateFilter(e),this.determineAndApplyFocus(s)}}
1658
1658
  ?multiLine=${this.multiLine}>
1659
1659
  <span part="values">
1660
1660
  ${ge.messages[r.type]()}
@@ -1667,14 +1667,14 @@
1667
1667
  label="${i}"
1668
1668
  removable
1669
1669
  hideIconTooltip
1670
- iconLabel="${It.messages.removeFilterLabel()}"
1671
- @icon-click=${o=>{var n;(n=this.stateManager)===null||n===void 0||n.removeRangeFilter(e),this.determineAndApplyFocus(o)}}
1670
+ iconLabel="${$t.messages.removeFilterLabel()}"
1671
+ @icon-click=${s=>{var n;(n=this.stateManager)===null||n===void 0||n.removeRangeFilter(e),this.determineAndApplyFocus(s)}}
1672
1672
  ?multiLine=${this.multiLine}>
1673
1673
  <span part="values">
1674
1674
  ${ge.messages.CUSTOM()}
1675
1675
  </span>
1676
1676
  </ft-chip>
1677
- </ft-tooltip>`}updated(e){var r,i,o,n;if(super.updated(e),e.get("filters")){let s=(i=(r=this.filters)===null||r===void 0?void 0:r.filter(l=>l.dateFilter||l.rangeFilter).length)!==null&&i!==void 0?i:0,a=e.get("filters").filter(l=>l.dateFilter||l.rangeFilter).length;(s-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.get("facets")){let s=(n=(o=this.facets)===null||o===void 0?void 0:o.filter(l=>this.getSelectedValues(l).length>0).length)!==null&&n!==void 0?n:0,a=e.get("facets").filter(l=>this.getSelectedValues(l).length>0).length;(s-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("searchInDocumentTitlesOnly")){let s=e.get("searchInDocumentTitlesOnly");(!s&&this.searchInDocumentTitlesOnly||s&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("keywordMatch")){let s=e.get("keywordMatch");(!s&&this.keywordMatch||s&&!this.hasSomethingToDisplay)&&this.announceFilters()}}announceFilters(){this.ariaNotificationDebouncer.run(async()=>{let e=await this.awaitI18n({...this.selectedFacetsAriaNotification,args:[this.numberOfChips]});this.sendAriaNotification(e,{checkVisibility:this.numberOfChips!=0})})}};ve.elementDefinitions={"ft-chip":q,"ft-tooltip":X};ve.styles=us;ut([(0,Bn.property)({type:Boolean})],ve.prototype,"displayLabel",void 0);ut([(0,Bn.property)({type:Boolean})],ve.prototype,"forceTooltip",void 0);ut([(0,Bn.property)({type:Boolean})],ve.prototype,"multiLine",void 0);ut([(0,W.numberProperty)()],ve.prototype,"hierarchicalValueTruncatingLevel",void 0);ut([(0,W.redux)({store:"search"})],ve.prototype,"facets",void 0);ut([(0,W.redux)({store:"search",selector:un})],ve.prototype,"searchInDocumentTitlesOnly",void 0);ut([(0,W.redux)({store:"search",selector:dn})],ve.prototype,"keywordMatch",void 0);ut([(0,W.redux)({store:"search",selector:t=>t.request.metadataFilters})],ve.prototype,"filters",void 0);ut([(0,W.redux)({store:"search",selector:t=>t.request.scope})],ve.prototype,"scope",void 0);ut([(0,W.jsonProperty)({context:"officialContext",key:"searchSelectedFacetsAriaNotification"})],ve.prototype,"selectedFacetsAriaNotification",void 0);var Zu={"ft-search-selected-facets":ve};(0,ed.customElements)(Zu);})();
1677
+ </ft-tooltip>`}updated(e){var r,i,s,n;if(super.updated(e),e.get("filters")){let o=(i=(r=this.filters)===null||r===void 0?void 0:r.filter(l=>l.dateFilter||l.rangeFilter).length)!==null&&i!==void 0?i:0,a=e.get("filters").filter(l=>l.dateFilter||l.rangeFilter).length;(o-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.get("facets")){let o=(n=(s=this.facets)===null||s===void 0?void 0:s.filter(l=>this.getSelectedValues(l).length>0).length)!==null&&n!==void 0?n:0,a=e.get("facets").filter(l=>this.getSelectedValues(l).length>0).length;(o-a==1||a>0&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("searchInDocumentTitlesOnly")){let o=e.get("searchInDocumentTitlesOnly");(!o&&this.searchInDocumentTitlesOnly||o&&!this.hasSomethingToDisplay)&&this.announceFilters()}if(e.has("keywordMatch")){let o=e.get("keywordMatch");(!o&&this.keywordMatch||o&&!this.hasSomethingToDisplay)&&this.announceFilters()}}announceFilters(){this.ariaNotificationDebouncer.run(async()=>{let e=await this.awaitI18n({...this.selectedFacetsAriaNotification,args:[this.numberOfChips]});this.sendAriaNotification(e,{checkVisibility:this.numberOfChips!=0})})}};ve.elementDefinitions={"ft-chip":q,"ft-tooltip":X};ve.styles=uo;ut([(0,Vn.property)({type:Boolean})],ve.prototype,"displayLabel",void 0);ut([(0,Vn.property)({type:Boolean})],ve.prototype,"forceTooltip",void 0);ut([(0,Vn.property)({type:Boolean})],ve.prototype,"multiLine",void 0);ut([(0,W.numberProperty)()],ve.prototype,"hierarchicalValueTruncatingLevel",void 0);ut([(0,W.redux)({store:"search"})],ve.prototype,"facets",void 0);ut([(0,W.redux)({store:"search",selector:pn})],ve.prototype,"searchInDocumentTitlesOnly",void 0);ut([(0,W.redux)({store:"search",selector:fn})],ve.prototype,"keywordMatch",void 0);ut([(0,W.redux)({store:"search",selector:t=>t.request.metadataFilters})],ve.prototype,"filters",void 0);ut([(0,W.redux)({store:"search",selector:t=>t.request.scope})],ve.prototype,"scope",void 0);ut([(0,W.jsonProperty)({context:"officialContext",key:"searchSelectedFacetsAriaNotification"})],ve.prototype,"selectedFacetsAriaNotification",void 0);var ed={"ft-search-selected-facets":ve};(0,td.customElements)(ed);})();
1678
1678
  /*! Bundled license information:
1679
1679
 
1680
1680
  @lit/reactive-element/css-tag.js: