@fluid-topics/ft-search-selected-facets 2.2.47 → 2.2.49

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 od=Object.create;var ao=Object.defineProperty;var ad=Object.getOwnPropertyDescriptor;var ld=Object.getOwnPropertyNames;var cd=Object.getPrototypeOf,ud=Object.prototype.hasOwnProperty;var Sr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var dd=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ld(e))!ud.call(t,n)&&n!==r&&ao(t,n,{get:()=>e[n],enumerable:!(i=ad(e,n))||i.enumerable});return t};var d=(t,e,r)=>(r=t!=null?od(cd(t)):{},dd(e||!t||!t.__esModule?ao(r,"default",{value:t,enumerable:!0}):r,t));var v=Sr((Jp,lo)=>{lo.exports=ftGlobals.wcUtils});var R=Sr((ef,co)=>{co.exports=ftGlobals.lit});var U=Sr((tf,uo)=>{uo.exports=ftGlobals.litDecorators});var Kn=Sr((rf,po)=>{po.exports=ftGlobals.litRepeat});var Qt=Sr((fg,pl)=>{pl.exports=ftGlobals.litClassMap});var nc=Sr((Gg,ic)=>{ic.exports=ftGlobals.litUnsafeHTML});var id=d(v());var ie=d(R()),xr=d(U()),Hr=d(Kn()),z=d(v());var fo=d(R()),ho=d(v()),pd={spacing:ho.FtCssVariableFactory.create("--ft-search-selected-facets-spacing","","SIZE","8px")},mo=fo.css`
1
+ "use strict";(()=>{var rd=Object.create;var oo=Object.defineProperty;var id=Object.getOwnPropertyDescriptor;var nd=Object.getOwnPropertyNames;var sd=Object.getPrototypeOf,od=Object.prototype.hasOwnProperty;var xr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var ad=(t,e,r,i)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of nd(e))!od.call(t,n)&&n!==r&&oo(t,n,{get:()=>e[n],enumerable:!(i=id(e,n))||i.enumerable});return t};var u=(t,e,r)=>(r=t!=null?rd(sd(t)):{},ad(e||!t||!t.__esModule?oo(r,"default",{value:t,enumerable:!0}):r,t));var v=xr((Bp,ao)=>{ao.exports=ftGlobals.wcUtils});var O=xr((Hp,lo)=>{lo.exports=ftGlobals.lit});var F=xr((Vp,co)=>{co.exports=ftGlobals.litDecorators});var Kn=xr((zp,uo)=>{uo.exports=ftGlobals.litRepeat});var Xt=xr((Qy,ll)=>{ll.exports=ftGlobals.litClassMap});var ec=xr((Dg,Jl)=>{Jl.exports=ftGlobals.litUnsafeHTML});var Ju=u(v());var re=u(O()),br=u(F()),Br=u(Kn()),V=u(v());var po=u(O()),fo=u(v()),ld={spacing:fo.FtCssVariableFactory.create("--ft-search-selected-facets-spacing","","SIZE","8px")},ho=po.css`
2
2
  .ft-search-selected-facets--container {
3
3
  display: flex;
4
4
  flex-wrap: wrap;
5
- gap: ${pd.spacing};
5
+ gap: ${ld.spacing};
6
6
  }
7
7
 
8
8
  .ft-search-selected-facets--container > * {
9
9
  min-width: 0;
10
10
  }
11
- `;var wt=d(v()),ii=d(U());var zr;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(zr||(zr={}));var _t=d(v());var fd=d(v());var yo;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(yo||(yo={}));var go;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(go||(go={}));var vo;(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"})(vo||(vo={}));var bo;(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"})(bo||(bo={}));var xo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(xo||(xo={}));var So;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(So||(So={}));var Eo;(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(Eo||(Eo={}));var Ao;(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"})(Ao||(Ao={}));var _o;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(_o||(_o={}));var Co;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Co||(Co={}));var wo;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(wo||(wo={}));var Oo;(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"})(Oo||(Oo={}));var To;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(To||(To={}));var Ro;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Ro||(Ro={}));var ko;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(ko||(ko={}));var Lo;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Lo||(Lo={}));var Do;(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"})(Do||(Do={}));var ht;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ht||(ht={}));var No;(function(t){t.ASC="ASC",t.DESC="DESC"})(No||(No={}));var Po;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Po||(Po={}));var Ti;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ti||(Ti={}));var Io;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Io||(Io={}));var Mo;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Mo||(Mo={}));var $o;(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"})($o||($o={}));var Ri;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ri||(Ri={}));var Fo;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Fo||(Fo={}));var ki;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ki||(ki={}));var Uo;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Uo||(Uo={}));var W;(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"})(W||(W={}));var Ue;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(Ue||(Ue={}));var Bo;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Bo||(Bo={}));var Ho;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Ho||(Ho={}));var Vo;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Vo||(Vo={}));var zo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(zo||(zo={}));var jo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(jo||(jo={}));var qo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(qo||(qo={}));var Wo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Wo||(Wo={}));var Ko;(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(Ko||(Ko={}));var Go;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Go||(Go={}));var Yo;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Yo||(Yo={}));var Xo;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Xo||(Xo={}));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 Zo;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Zo||(Zo={}));var hd={[W.PERSONAL_BOOK_SHARE_USER]:[W.PERSONAL_BOOK_USER],[W.HTML_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.PDF_EXPORT_USER]:[W.PERSONAL_BOOK_USER],[W.KHUB_ADMIN]:[W.CONTENT_PUBLISHER],[W.ADMIN]:[W.KHUB_ADMIN,W.USERS_ADMIN,W.PORTAL_ADMIN,W.BEHAVIOR_DATA_USER],[W.GENERATIVE_AI_EXPORT_USER]:[W.GENERATIVE_AI_USER]};function Jo(t,e){return t===e||(hd[t]??[]).some(r=>Jo(r,e))}function Li(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=>Jo(i,e))}function ea(t,...e){return t==null?!1:e.some(r=>Li(t,r))}var ms=d(U());var ta=d(U(),1);var Gn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},md=t=>({fromAttribute:e=>{if(e==null)return jr(t);try{return JSON.parse(e)}catch{return jr(t)}},toAttribute:e=>JSON.stringify(e)});function ra(t,e){return(0,ta.property)({type:Object,converter:md(t),hasChanged:qr,...e??{}})}function yd(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(!Er(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(!Er(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 n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!Er(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Er(t,e){try{return yd(t,e)}catch{return!1}}function qr(t,e){return!Er(t,e)}function jr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Di(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var ia=d(U(),1);var Yn=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:qr,attribute:!1,...e};(0,ia.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var Ni=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 zt=d(U(),1);var Pi=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 n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){n(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Mi=d(R(),1);var Ii=class extends Mi.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(0,Mi.adoptStyles)(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){Gn(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 na(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var _r=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},la,sa=Symbol("constructorPrototype"),oa=Symbol("constructorName"),ca=Symbol("exportpartsDebouncer"),aa=Symbol("dynamicDependenciesLoaded"),Ar=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Ar.eventName="exportparts-updated";var it=class extends Ii{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[la]=new Pi(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[ca].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[oa]=this.constructor.name,this[sa]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[oa]&&Object.setPrototypeOf(this,this[sa])}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[aa]||(r[aa]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ar.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ar.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 Ar)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=na(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,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(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let y=(o=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],x=(a=(n=f.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],_=[...y,...x].filter(l).map(b=>b.trim());for(let b of _)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(", ")}};la=ca;_r([(0,zt.property)()],it.prototype,"exportpartsPrefix",void 0);_r([ra([])],it.prototype,"exportpartsPrefixes",void 0);_r([(0,zt.property)({reflect:!0})],it.prototype,"exportparts",void 0);_r([(0,zt.property)()],it.prototype,"customStylesheet",void 0);_r([(0,zt.property)()],it.prototype,"elementToFocus",void 0);_r([(0,zt.state)()],it.prototype,"useAdoptedStyleSheets",void 0);function $i(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Wr=Symbol("internalReduxEventsUnsubscribers"),St=Symbol("internalStoresUnsubscribers"),jt=Symbol("internalStores"),gd=Di(Symbol("withRedux"),function(t){var e,r,i;class n 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[jt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[jt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[jt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[jt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[jt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[jt].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[St].has(o.store):this[St].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l,c;this[St].set(o,a.subscribe(()=>this.updateFromStores())),this[Wr].set(o,[]),$i(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((u,p)=>{this.getStore(u.store)===a&&a.deprecatedKeys.includes(p)&&console.warn("Element",this,"is subscribed to deprecated key",p,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((u,p)=>{if(typeof this[p]=="function"&&(!u.store||a.name===u.store)){let f=y=>this[p](y);a.addEventListener(u.eventName,f),this[Wr].get(o).push(()=>a.removeEventListener(u.eventName,f))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[St].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[St].has(o)&&this[St].get(o)(),this[St].delete(o),(a=this[Wr].get(o))===null||a===void 0||a.forEach(l=>l()),this[Wr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=St,r=jt,i=Wr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ua=class extends gd(it){};function ue(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 vd=typeof Symbol=="function"&&Symbol.observable||"@@observable",da=vd,Xn=()=>Math.random().toString(36).substring(7).split("").join("."),bd={INIT:`@@redux/INIT${Xn()}`,REPLACE:`@@redux/REPLACE${Xn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xn()}`},Fi=bd;function Ui(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 Qn(t,e,r){if(typeof t!="function")throw new Error(ue(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ue(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ue(1));return r(Qn)(t,e)}let i=t,n=e,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((b,O)=>{o.set(O,b)}))}function u(){if(l)throw new Error(ue(3));return n}function p(b){if(typeof b!="function")throw new Error(ue(4));if(l)throw new Error(ue(5));let O=!0;c();let D=a++;return o.set(D,b),function(){if(O){if(l)throw new Error(ue(6));O=!1,c(),o.delete(D),s=null}}}function f(b){if(!Ui(b))throw new Error(ue(7));if(typeof b.type>"u")throw new Error(ue(8));if(typeof b.type!="string")throw new Error(ue(17));if(l)throw new Error(ue(9));try{l=!0,n=i(n,b)}finally{l=!1}return(s=o).forEach(D=>{D()}),b}function y(b){if(typeof b!="function")throw new Error(ue(10));i=b,f({type:Fi.REPLACE})}function x(){let b=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(ue(11));function D(){let E=O;E.next&&E.next(u())}return D(),{unsubscribe:b(D)}},[da](){return this}}}return f({type:Fi.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:y,[da]:x}}function xd(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Fi.INIT})>"u")throw new Error(ue(12));if(typeof r(void 0,{type:Fi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ue(13))})}function Zn(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),n,s;try{xd(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,u={};for(let p=0;p<i.length;p++){let f=i[p],y=r[f],x=a[f],_=y(x,l);if(typeof _>"u"){let b=l&&l.type;throw new Error(ue(14))}u[f]=_,c=c||_!==x}return c=c||i.length!==Object.keys(a).length,c?u:a}}function Kr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function pa(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(ue(15))},o={getState:n.getState,dispatch:(l,...c)=>s(l,...c)},a=t.map(l=>l(o));return s=Kr(...a)(n.dispatch),{...n,dispatch:s}}}function fa(t){return Ui(t)&&"type"in t&&typeof t.type=="string"}var Ea=Symbol.for("immer-nothing"),ha=Symbol.for("immer-draftable"),ge=Symbol.for("immer-state");function We(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var De=Object,wr=De.getPrototypeOf,zi="constructor",Yi="prototype",rs="configurable",ji="enumerable",Hi="writable",Gr="value",nt=t=>!!t&&!!t[ge];function Ne(t){return t?Aa(t)||Qi(t)||!!t[ha]||!!t[zi]?.[ha]||Zi(t)||Zr(t):!1}var Sd=De[Yi][zi].toString(),ma=new WeakMap;function Aa(t){if(!t||!us(t))return!1;let e=wr(t);if(e===null||e===De[Yi])return!0;let r=De.hasOwnProperty.call(e,zi)&&e[zi];if(r===Object)return!0;if(!Cr(r))return!1;let i=ma.get(r);return i===void 0&&(i=Function.toString.call(r),ma.set(r,i)),i===Sd}function Xi(t,e,r=!0){Qr(t)===0?(r?Reflect.ownKeys(t):De.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Qr(t){let e=t[ge];return e?e.type_:Qi(t)?1:Zi(t)?2:Zr(t)?3:0}var Jn=(t,e,r=Qr(t))=>r===2?t.has(e):De[Yi].hasOwnProperty.call(t,e),is=(t,e,r=Qr(t))=>r===2?t.get(e):t[e],qi=(t,e,r,i=Qr(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function Ed(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Qi=Array.isArray,Zi=t=>t instanceof Map,Zr=t=>t instanceof Set,us=t=>typeof t=="object",Cr=t=>typeof t=="function",es=t=>typeof t=="boolean";function Ad(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var mt=t=>t.copy_||t.base_;var ds=t=>t.modified_?t.copy_:t.base_;function ns(t,e){if(Zi(t))return new Map(t);if(Zr(t))return new Set(t);if(Qi(t))return Array[Yi].slice.call(t);let r=Aa(t);if(e===!0||e==="class_only"&&!r){let i=De.getOwnPropertyDescriptors(t);delete i[ge];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[Hi]===!1&&(a[Hi]=!0,a[rs]=!0),(a.get||a.set)&&(i[o]={[rs]:!0,[Hi]:!0,[ji]:a[ji],[Gr]:t[o]})}return De.create(wr(t),i)}else{let i=wr(t);if(i!==null&&r)return{...t};let n=De.create(i);return De.assign(n,t)}}function Ji(t,e=!1){return en(t)||nt(t)||!Ne(t)||(Qr(t)>1&&De.defineProperties(t,{set:Bi,add:Bi,clear:Bi,delete:Bi}),De.freeze(t),e&&Xi(t,(r,i)=>{Ji(i,!0)},!1)),t}function _d(){We(2)}var Bi={[Gr]:_d};function en(t){return t===null||!us(t)?!0:De.isFrozen(t)}var Wi="MapSet",ss="Patches",ya="ArrayMethods",_a={};function qt(t){let e=_a[t];return e||We(0,t),e}var ga=t=>!!_a[t];var Yr,Ca=()=>Yr,Cd=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ga(Wi)?qt(Wi):void 0,arrayMethodsPlugin_:ga(ya)?qt(ya):void 0});function va(t,e){e&&(t.patchPlugin_=qt(ss),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function os(t){as(t),t.drafts_.forEach(wd),t.drafts_=null}function as(t){t===Yr&&(Yr=t.parent_)}var ba=t=>Yr=Cd(Yr,t);function wd(t){let e=t[ge];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function xa(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ge].modified_&&(os(e),We(4)),Ne(t)&&(t=Sa(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[ge].base_,t,e)}else t=Sa(e,r);return Od(e,t,!0),os(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Ea?t:void 0}function Sa(t,e){if(en(e))return e;let r=e[ge];if(!r)return Ki(e,t.handledSet_,t);if(!tn(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);Ta(r,t)}return r.copy_}function Od(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ji(e,r)}function wa(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var tn=(t,e)=>t.scope_===e,Td=[];function Oa(t,e,r,i){let n=mt(t),s=t.type_;if(i!==void 0&&is(n,i,s)===e){qi(n,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Xi(n,(l,c)=>{if(nt(c)){let u=a.get(c)||[];u.push(l),a.set(c,u)}})}let o=t.draftLocations_.get(e)??Td;for(let a of o)qi(n,a,r,s)}function Rd(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!tn(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=ds(s);Oa(t,s.draft_??s,o,r),Ta(s,n)})}function Ta(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:i}=e;if(i){let n=i.getPath(t);n&&i.generatePatches_(t,n,e)}wa(t)}}function kd(t,e,r){let{scope_:i}=t;if(nt(r)){let n=r[ge];tn(n,i)&&n.callbacks_.push(function(){Vi(t);let o=ds(n);Oa(t,r,o,e)})}else Ne(r)&&t.callbacks_.push(function(){let s=mt(t);t.type_===3?s.has(r)&&Ki(r,i.handledSet_,i):is(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Ki(is(t.copy_,e,t.type_),i.handledSet_,i)})}function Ki(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||nt(t)||e.has(t)||!Ne(t)||en(t)||(e.add(t),Xi(t,(i,n)=>{if(nt(n)){let s=n[ge];if(tn(s,r)){let o=ds(s);qi(t,i,o,t.type_),wa(s)}}else Ne(n)&&Ki(n,e,r)})),t}function Ld(t,e){let r=Qi(t),i={type_:r?1:0,scope_:e?e.scope_:Ca(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Gi;r&&(n=[i],s=Xr);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Gi={get(t,e){if(e===ge)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 n=mt(t);if(!Jn(n,e,t.type_))return Nd(t,n,e);let s=n[e];if(t.finalized_||!Ne(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&Ad(e))return s;if(s===ts(t.base_,e)||Dd(t,e,s)){Vi(t);let o=t.type_===1?+e:e,a=cs(t.scope_,s,t,o);return t.copy_[o]=a}return s},has(t,e){return e in mt(t)},ownKeys(t){return Reflect.ownKeys(mt(t))},set(t,e,r){let i=Ra(mt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=ts(mt(t),e),s=n?.[ge];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(Ed(r,n)&&(r!==void 0||Jn(t.base_,e,t.type_)))return!0;Vi(t),ls(t)}return t.copy_[e]===r&&(r!==void 0||Jn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),kd(t,e,r)),!0},deleteProperty(t,e){return Vi(t),ts(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ls(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=mt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Hi]:!0,[rs]:t.type_!==1||e!=="length",[ji]:i[ji],[Gr]:r[e]}},defineProperty(){We(11)},getPrototypeOf(t){return wr(t.base_)},setPrototypeOf(){We(12)}},Xr={};for(let t in Gi){let e=Gi[t];Xr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Xr.deleteProperty=function(t,e){return Xr.set.call(this,t,e,void 0)};Xr.set=function(t,e,r){return Gi.set.call(this,t[0],e,r,t[0])};function ts(t,e){let r=t[ge];return(r?mt(r):t)[e]}function Dd(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!Ne(r)||r[ge]?!1:t.baseRefs_.has(r)}function Nd(t,e,r){let i=Ra(e,r);return i?Gr in i?i[Gr]:i.get?.call(t.draft_):void 0}function Ra(t,e){if(!(e in t))return;let r=wr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=wr(r)}}function ls(t){t.modified_||(t.modified_=!0,t.parent_&&ls(t.parent_))}function Vi(t){t.copy_||(t.assigned_=new Map,t.copy_=ns(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Pd=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,r,i)=>{if(Cr(e)&&!Cr(r)){let s=r;r=e;let o=this;return function(l=s,...c){return o.produce(l,u=>r.call(this,u,...c))}}Cr(r)||We(6),i!==void 0&&!Cr(i)&&We(7);let n;if(Ne(e)){let s=ba(this),o=cs(s,e,void 0),a=!0;try{n=r(o),a=!1}finally{a?os(s):as(s)}return va(s,i),xa(n,s)}else if(!e||!us(e)){if(n=r(e),n===void 0&&(n=e),n===Ea&&(n=void 0),this.autoFreeze_&&Ji(n,!0),i){let s=[],o=[];qt(ss).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else We(1,e)},this.produceWithPatches=(e,r)=>{if(Cr(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,n;return[this.produce(e,r,(o,a)=>{i=o,n=a}),i,n]},es(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),es(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),es(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ne(t)||We(8),nt(t)&&(t=ka(t));let e=ba(this),r=cs(e,t,void 0);return r[ge].isManual_=!0,as(e),r}finishDraft(t,e){let r=t&&t[ge];(!r||!r.isManual_)&&We(9);let{scope_:i}=r;return va(i,e),xa(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 n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=qt(ss).applyPatches_;return nt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function cs(t,e,r,i){let[n,s]=Zi(e)?qt(Wi).proxyMap_(e,r):Zr(e)?qt(Wi).proxySet_(e,r):Ld(e,r);return(r?.scope_??Ca()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?Rd(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),n}function ka(t){return nt(t)||We(10,t),La(t)}function La(t){if(!Ne(t)||en(t))return t;let e=t[ge],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=ns(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=ns(t,!0);let n=r;return Zr(r)&&(r=new Set),Xi(n,(s,o)=>{qi(r,s,La(o))},i),e&&(e.finalized_=!1),r}var Id=globalThis.Iterator,Wf=typeof Id?.from=="function";var Md=new Pd,ps=Md.produce;function Da(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var Na=Da(),Pa=Da;var $d=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Kr:Kr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Fd=t=>t&&typeof t.match=="function";function Et(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(st(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>fa(i)&&i.type===t,r}var Ua=class Jr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Jr.prototype)}static get[Symbol.species](){return Jr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Jr(...e[0].concat(this)):new Jr(...e.concat(this))}};function Ia(t){return Ne(t)?ps(t,()=>{}):t}function rn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Ud(t){return typeof t=="boolean"}var Bd=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new Ua;return r&&(Ud(r)?o.push(Na):o.push(Pa(r.extraArgument))),o},Hd="RTK_autoBatch";var Ma=t=>e=>{setTimeout(e,t)},Vd=(t,e)=>r=>{let i=!1,n,s,o=()=>{i||(i=!0,cancelAnimationFrame(n),clearTimeout(s),r())};n=t(o),s=setTimeout(o,e)},zd=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Vd(window.requestAnimationFrame,100):Ma(10):t.type==="callback"?t.queueNotification:Ma(t.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){let p=()=>n&&u(),f=i.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Hd],s=!n,s&&(o||(o=!0,l(c))),i.dispatch(u)}finally{n=!0}}})},jd=t=>function(r){let{autoBatch:i=!0}=r??{},n=new Ua(t);return i&&n.push(zd(typeof i=="object"?i:void 0)),n};function Ba(t){let e=Bd(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(Ui(r))l=Zn(r);else throw new Error(st(1));let c;typeof i=="function"?c=i(e):c=e();let u=Kr;n&&(u=$d({trace:!1,...typeof n=="object"&&n}));let p=pa(...c),f=jd(p),y=typeof a=="function"?a(f):f(),x=u(...y);return Qn(l,o,x)}function Ha(t){let e={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(st(28));if(a in e)throw new Error(st(29));return e[a]=o,n},addAsyncThunk(s,o){return o.pending&&(e[s.pending.type]=o.pending),o.rejected&&(e[s.rejected.type]=o.rejected),o.fulfilled&&(e[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return t(n),[e,r,i]}function qd(t){return typeof t=="function"}function Wd(t,e){let[r,i,n]=Ha(e),s;if(qd(t))s=()=>Ia(t());else{let a=Ia(t);s=()=>a}function o(a=s(),l){let c=[r[l.type],...i.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return c.filter(u=>!!u).length===0&&(c=[n]),c.reduce((u,p)=>{if(p)if(nt(u)){let f=p(u,l);return f===void 0?u:f}else{if(Ne(u))return ps(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw new Error(st(9))}return f}}return u},a)}return o.getInitialState=s,o}var Kd=(t,e)=>Fd(t)?t.match(e):t(e);function Gd(...t){return e=>t.some(r=>Kd(r,e))}var Yd="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Xd=(t=21)=>{let e="",r=t;for(;r--;)e+=Yd[Math.random()*64|0];return e},Qd=["name","message","stack","code"],fs=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},$a=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Zd=t=>{if(typeof t=="object"&&t!==null){let e={};for(let r of Qd)typeof t[r]=="string"&&(e[r]=t[r]);return e}return{message:String(t)}},Fa="External signal was aborted",Jd=(()=>{function t(e,r,i){let n=Et(e+"/fulfilled",(l,c,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:c,requestStatus:"fulfilled"}})),s=Et(e+"/pending",(l,c,u)=>({payload:void 0,meta:{...u||{},arg:c,requestId:l,requestStatus:"pending"}})),o=Et(e+"/rejected",(l,c,u,p,f)=>({payload:p,error:(i&&i.serializeError||Zd)(l||"Rejected"),meta:{...f||{},arg:u,requestId:c,rejectedWithValue:p!==void 0,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):Xd(),x=new AbortController,_,b;function O(S){b=S,x.abort()}c&&(c.aborted?O(Fa):c.addEventListener("abort",()=>O(Fa),{once:!0}));let D=(async function(){let S;try{let E=i?.condition?.(l,{getState:p,extra:f});if(tp(E)&&(E=await E),E===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(x.signal.aborted)throw{name:"AbortError",message:b||"Aborted"};let M=new Promise((L,te)=>{_=()=>{te({name:"AbortError",message:b||"Aborted"})},x.signal.addEventListener("abort",_,{once:!0})});u(s(y,l,i?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:f}))),S=await Promise.race([M,Promise.resolve(r(l,{dispatch:u,getState:p,extra:f,requestId:y,signal:x.signal,abort:O,rejectWithValue:((L,te)=>new fs(L,te)),fulfillWithValue:((L,te)=>new $a(L,te))})).then(L=>{if(L instanceof fs)throw L;return L instanceof $a?n(L.payload,y,l,L.meta):n(L,y,l)})])}catch(E){S=E instanceof fs?o(null,y,l,E.payload,E.meta):o(E,y,l)}finally{_&&x.signal.removeEventListener("abort",_)}return i&&!i.dispatchConditionRejection&&o.match(S)&&S.meta.condition||u(S),S})();return Object.assign(D,{abort:O,requestId:y,arg:l,unwrap(){return D.then(ep)}})}}return Object.assign(a,{pending:s,rejected:o,fulfilled:n,settled:Gd(o,n),typePrefix:e})}return t.withTypes=()=>t,t})();function ep(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function tp(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var Va=Symbol.for("rtk-slice-createasyncthunk"),eh={[Va]:Jd};function rp(t,e){return`${t}/${e}`}function ip({creators:t}={}){let e=t?.asyncThunk?.[Va];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(st(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(sp()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(S,E){let M=typeof S=="string"?S:S.type;if(!M)throw new Error(st(12));if(M in l.sliceCaseReducersByType)throw new Error(st(13));return l.sliceCaseReducersByType[M]=E,c},addMatcher(S,E){return l.sliceMatchers.push({matcher:S,reducer:E}),c},exposeAction(S,E){return l.actionCreators[S]=E,c},exposeCaseReducer(S,E){return l.sliceCaseReducersByName[S]=E,c}};a.forEach(S=>{let E=o[S],M={reducerName:S,type:rp(n,S),createNotation:typeof i.reducers=="function"};ap(E)?cp(M,E,c,e):op(M,E,c)});function u(){let[S={},E=[],M=void 0]=typeof i.extraReducers=="function"?Ha(i.extraReducers):[i.extraReducers],L={...S,...l.sliceCaseReducersByType};return Wd(i.initialState,te=>{for(let ye in L)te.addCase(ye,L[ye]);for(let ye of l.sliceMatchers)te.addMatcher(ye.matcher,ye.reducer);for(let ye of E)te.addMatcher(ye.matcher,ye.reducer);M&&te.addDefaultCase(M)})}let p=S=>S,f=new Map,y=new WeakMap,x;function _(S,E){return x||(x=u()),x(S,E)}function b(){return x||(x=u()),x.getInitialState()}function O(S,E=!1){function M(te){let ye=te[S];return typeof ye>"u"&&E&&(ye=rn(y,M,b)),ye}function L(te=p){return rn(rn(f,E,()=>new WeakMap),te,()=>{let ye={};for(let[Oi,Fe]of Object.entries(i.selectors??{}))ye[Oi]=np(Fe,te,()=>rn(y,te,b),E);return ye})}return{reducerPath:S,getSelectors:L,get selectors(){return L(M)},selectSlice:M}}let D={name:n,reducer:_,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...O(s),injectInto(S,{reducerPath:E,...M}={}){let L=E??s;return S.inject({reducerPath:L,reducer:_},M),{...D,...O(L,!0)}}};return D}}function np(t,e,r,i){function n(s,...o){let a=e(s);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return n.unwrapped=t,n}var za=ip();function sp(){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 op({type:t,reducerName:e,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!lp(i))throw new Error(st(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,o?Et(t,o):Et(t))}function ap(t){return t._reducerDefinitionType==="asyncThunk"}function lp(t){return t._reducerDefinitionType==="reducerWithPrepare"}function cp({type:t,reducerName:e},r,i,n){if(!n)throw new Error(st(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:u}=r,p=n(t,s,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||nn,pending:a||nn,rejected:l||nn,settled:c||nn})}function nn(){}var ja="listener",qa="completed",Wa="cancelled",th=`task-${Wa}`,rh=`task-${qa}`,ih=`${ja}-${Wa}`,nh=`${ja}-${qa}`;var{assign:Ka}=Object;var hs="listenerMiddleware";var up=Ka(Et(`${hs}/add`),{withTypes:()=>up}),sh=Et(`${hs}/removeAll`),dp=Ka(Et(`${hs}/remove`),{withTypes:()=>dp});function st(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 pp=Di(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),sn=class extends pp(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ga=class t extends sn{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if($i(s))return s;if(n==null)return;let o=za({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=Ba({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let u=jr(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[n.name]=new t(o,a,n.eventBus,n.deprecatedKeys)}constructor(e,r,i,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new Ni,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let c=a,u=o[c];return u?(...p)=>{let f=u(...p.map(s));return this.reduxStore.dispatch(f),f}:p=>{let f=c,y=this.getState()[f];Er(y,p)||this.setState({[f]:s(p)})}}}),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 on=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){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 s?l:n?`${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 an=d(v()),fp="ft-app-info",At=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};At.eventName="authentication-change";var ei=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ei.eventName="ui-locale-changed";var hp={session:(t,e)=>{(0,an.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>A.dispatchEvent(new At(e.payload)),0))}},A=an.FtReduxStore.get({name:fp,reducers:hp,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 Ya=d(v()),ln=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Xa=(0,Ya.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(A)}dateFormatOptionsChanged(i){return i.has("metadataDescriptors")||i.has("useLongDateFormat")||i.has("useDateTimeFormat")||i.has("uiLocale")}getDateFormatter(i){var n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>on.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ln([(0,ms.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ln([(0,ms.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ln([Yn({store:A.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),ln([Yn({store:A.name})],e.prototype,"uiLocale",void 0),e});var fn=d(v());var ys=d(v());var Wt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=A.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=A.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var Or=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Wt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Wt.await()}};var Ae=class extends Or{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ys.CacheRegistry,this.cache=e?n.commonCache:new ys.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 cn=class extends Ae{async listMySearches(){let{session:e}=A.getState();return Li(e,W.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var un=class extends Ae{async listMyBookmarks(){let e=A.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var dn=class extends Ae{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=A.getState().session;return!!e?.sessionAuthenticated}};var pn=class extends Ae{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=A.getState().session;return!!e?.sessionAuthenticated}};var mp="ft-user-assets",yp={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:n}=e.payload;vs(t,r,[...gs(t,r),n]),Qa(t,r,1,i),Za(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;vs(t,r,gs(t,r).map(n=>n.id===i.id?i:n)),Za(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;vs(t,r,gs(t,r).filter(s=>s.id!==n)),Qa(t,r,-1,i)}},Ja={[Ue.SEARCHES]:"savedSearches",[Ue.BOOKMARKS]:"bookmarks",[Ue.BOOKS]:void 0,[Ue.COLLECTIONS]:void 0},gs=(t,e)=>{var r;let i=Ja[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},vs=(t,e,r)=>{let i=Ja[e];i&&(t[i]=r)},Qa=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Ue.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},Za=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},xe=fn.FtReduxStore.get({name:mp,reducers:yp,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ue).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),bs=class{constructor(e=new dn,r=new pn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=A.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new un,this.savedSearchesService=new cn,A.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=A.getState();(0,fn.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(),xe.actions.clearAssetCount(),xe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),xe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),xe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();xe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();xe.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&xe.getState().assetCounts.allAsset[e]!==r.count&&xe.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&xe.getState().assetCounts.bookmarkByMap[e]!==r.count&&xe.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(xe.getState().assetCounts.bookmarkByMap).length!==0;e===Ue.BOOKMARKS&&r&&xe.actions.clearBookmarkCountByMap(),xe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;xe.actions.bookmarks(r)}}},gp=new bs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=gp);var xs=class{addCommand(e,r=!1){A.commands.add(e,r)}consumeCommand(e){return A.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new xs;var Be=d(v());var el,Tr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},vp=Symbol("clearAfterUnitTest"),hn=class extends(0,Be.withEventBus)(Ae){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[el]=()=>{this.defaultMessages={},this.cache=new Be.CacheRegistry,this.listeners={}},this.currentUiLocale=A.getState().uiLocale,A.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=A.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 n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Be.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,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 n;let s=e.toLowerCase(),o=this.resolveContext(s);return new Be.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},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(n){!(n instanceof Be.CanceledPromiseError)&&r&&console.error(n)}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 n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Tr({loadedContexts:e})),this.dispatchEvent(new Tr({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Tr({loadedContexts:[e]})),this.dispatchEvent(new Tr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Be.delay)(0).then(()=>i()).catch(()=>null)))}};el=vp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends hn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends hn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Rr=window.FluidTopicsI18nService,mn=window.FluidTopicsCustomI18nService;var tl=d(v()),Ss=class{highlightHtml(e,r,i){(0,tl.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new Ss;var rl=d(v());var Es=class{isDate(e){var r,i,n,s;return(s=(i=((n=(r=A.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,o;if(e==null)return"";try{return rl.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:A.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Es;var il=d(v());var ti=class{static get(e,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=A.getState()){var o;if(r==="all"&&n?.allLanguagesAllowed)r=void 0;else if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=n?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=s[0])===null||o===void 0?void 0:o.lang}return new il.SearchPlaceConverter(i,e??20,n?.allLanguagesAllowed,r,s)}};var As=class{urlToSearchRequest(e){return ti.get().parse(e)}searchRequestToUrl(e){return ti.get().serialize(e)}};window.FluidTopicsUrlService=new As;var yt=d(v());var Kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Kt.eventName="before-location-change";var Gt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Gt.eventName="change";var _s=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))}},nl=new _s;var yn=class t extends yt.WithEventBus{static build(){return new t(window.history,nl,()=>window.location,!1)}constructor(e,r,i,n){var s,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}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,yt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Gt(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,o,a])=>{let l=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),c=new Kt(l);this.dispatchEvent(c);let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:c.detail.nextLocation.href};i.apply(n,[p,o,p.href]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let 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(Kt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Kt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Gt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Gt.eventName,e)}currentItem(){return(0,yt.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,yt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,yt.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,yt.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 n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}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 n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=yn.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 sl=d(R());var ol=sl.css`
12
- `;var ll=d(R()),Se=d(U()),Xt=d(v());var ot=d(v());function al(t,e){let{authenticationRequired:r,session:i}=A.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var gn=class extends Or{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Cs=class t extends ot.FtStateManager{static build(e){return new t(A,e)}constructor(e,r){super(),this.store=e,this.cache=new ot.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new gn,this.knownContexts=new ot.AbstractRegistry,this.knownCustomComponents=new ot.AbstractRegistry,this.cleanSessionDebouncer=new ot.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new ot.Debouncer(500),this.apiProvider=r??(()=>Wt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(At.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(At.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",()=>al(()=>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 ei(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)}userHasAnyRole(...e){return ea(A.getState().session,...e)}},ws=Cs.build();var Yt=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var ri=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:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Yt(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(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 n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},H=class extends Xt.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=ws,this.contextRoot=new ri}render(){return ll.html`
11
+ `;var Ct=u(v()),ii=u(F());var Vr;(function(t){t.CLUSTERED_SEARCH="CLUSTERED_SEARCH"})(Vr||(Vr={}));var At=u(v());var cd=u(v());var mo;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(mo||(mo={}));var yo;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(yo||(yo={}));var go;(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"})(go||(go={}));var vo;(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"})(vo||(vo={}));var bo;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(bo||(bo={}));var xo;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(xo||(xo={}));var So;(function(t){t.PUBLISHED="PUBLISHED",t.AI="AI"})(So||(So={}));var Eo;(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"})(Eo||(Eo={}));var Ao;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Ao||(Ao={}));var _o;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(_o||(_o={}));var Co;(function(t){t.THIRD_PARTY="THIRD_PARTY",t.OFF_THE_GRID="OFF_THE_GRID",t.CONTENT_PACKAGER="CONTENT_PACKAGER",t.PAGES="PAGES",t.DESIGNED_READER="DESIGNED_READER",t.DOC_DIFF="DOC_DIFF"})(Co||(Co={}));var wo;(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"})(wo||(wo={}));var Oo;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Oo||(Oo={}));var To;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(To||(To={}));var Ro;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ro||(Ro={}));var ko;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(ko||(ko={}));var Lo;(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"})(Lo||(Lo={}));var ht;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(ht||(ht={}));var Do;(function(t){t.ASC="ASC",t.DESC="DESC"})(Do||(Do={}));var No;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(No||(No={}));var Ti;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Ti||(Ti={}));var Po;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Po||(Po={}));var Io;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(Io||(Io={}));var Mo;(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"})(Mo||(Mo={}));var Ri;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ri||(Ri={}));var $o;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})($o||($o={}));var ki;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(ki||(ki={}));var Fo;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Fo||(Fo={}));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 Uo;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Uo||(Uo={}));var Bo;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Bo||(Bo={}));var Ho;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Ho||(Ho={}));var Vo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Vo||(Vo={}));var zo;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(zo||(zo={}));var jo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.SEMANTIC_SEARCH="SEMANTIC_SEARCH",t.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",t.DOCUMENTATION="DOCUMENTATION",t.OTHER="OTHER"})(jo||(jo={}));var qo;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(qo||(qo={}));var Wo;(function(t){t.CHAT="CHAT",t.COMPLETION="COMPLETION",t.RAG="RAG",t.AGENT="AGENT"})(Wo||(Wo={}));var Ko;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Ko||(Ko={}));var Go;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Go||(Go={}));var Yo;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Yo||(Yo={}));var Xo;(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"})(Xo||(Xo={}));var Qo;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Qo||(Qo={}));var ud={[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 Zo(t,e){return t===e||(ud[t]??[]).some(r=>Zo(r,e))}function Li(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=>Zo(i,e))}function Jo(t,...e){return t==null?!1:e.some(r=>Li(t,r))}var hs=u(F());var ea=u(F(),1);var Gn=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},dd=t=>({fromAttribute:e=>{if(e==null)return zr(t);try{return JSON.parse(e)}catch{return zr(t)}},toAttribute:e=>JSON.stringify(e)});function ta(t,e){return(0,ea.property)({type:Object,converter:dd(t),hasChanged:jr,...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(!Sr(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(!Sr(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 n=o=>Object.keys(o).filter(a=>o[a]!=null),s=n(t);if(r=s.length,r!==n(e).length)return!1;for(i=r;i--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[i]))return!1;for(i=r;i--!==0;){let o=s[i];if(!Sr(t[o],e[o]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function Sr(t,e){try{return pd(t,e)}catch{return!1}}function jr(t,e){return!Sr(t,e)}function zr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Di(t,e){let r=i=>i[t]===!0;return i=>{if(r(i))return i;let n=e(i);return n[t]=!0,n}}var ra=u(F(),1);var Yn=t=>{let e=t??{};return(r,i)=>{var n;let s={hasChanged:jr,attribute:!1,...e};(0,ra.property)(s)(r,i);let o=r.constructor;o.reduxProperties=new Map(o.reduxProperties),o.reduxProperties.set(i,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[i]),store:e.store})}};var Ni=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 Vt=u(F(),1);var Pi=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 n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let o of i)try{await o()}catch(a){n(a);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Mi=u(O(),1);var Ii=class extends Mi.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(0,Mi.adoptStyles)(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){Gn(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 ia(t,e,...r){var i;let n=t.querySelector(e);for(let s of r)n=(i=n?.shadowRoot)===null||i===void 0?void 0:i.querySelector(s);return n}var Ar=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},aa,na=Symbol("constructorPrototype"),sa=Symbol("constructorName"),la=Symbol("exportpartsDebouncer"),oa=Symbol("dynamicDependenciesLoaded"),Er=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};Er.eventName="exportparts-updated";var it=class extends Ii{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[aa]=new Pi(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[la].run(()=>{var n,s;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[sa]=this.constructor.name,this[na]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[sa]&&Object.setPrototypeOf(this,this[na])}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[oa]||(r[oa]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Er.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Er.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 Er)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:i,shadowPath:n}=this.elementToFocus;if(i!=null){let s=[...n??[],i];r=ia(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,i,n;if(((i=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&i!==void 0?i:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,i,n,s,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 p=new Set;for(let f of(s=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&s!==void 0?s:[]){let g=(o=(i=f.getAttribute("part"))===null||i===void 0?void 0:i.split(" "))!==null&&o!==void 0?o:[],x=(a=(n=f.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],T=[...g,...x].filter(l).map(b=>b.trim());for(let b of T)p.add(b)}if(p.size===0){this.exportparts=void 0;return}let d=[...p.values()].flatMap(f=>c.map(g=>`${f}:${g}--${f}`));this.exportparts=[...this.part,...d].join(", ")}};aa=la;Ar([(0,Vt.property)()],it.prototype,"exportpartsPrefix",void 0);Ar([ta([])],it.prototype,"exportpartsPrefixes",void 0);Ar([(0,Vt.property)({reflect:!0})],it.prototype,"exportparts",void 0);Ar([(0,Vt.property)()],it.prototype,"customStylesheet",void 0);Ar([(0,Vt.property)()],it.prototype,"elementToFocus",void 0);Ar([(0,Vt.state)()],it.prototype,"useAdoptedStyleSheets",void 0);function $i(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var qr=Symbol("internalReduxEventsUnsubscribers"),St=Symbol("internalStoresUnsubscribers"),zt=Symbol("internalStores"),fd=Di(Symbol("withRedux"),function(t){var e,r,i;class n 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[zt].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[zt].values()][0]}getStore(o){return o==null?this.getUnnamedStore():this[zt].get(o)}addStore(o,a){var l;a=(l=a??o.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[zt].set(a,o),this.subscribeToStore(a,o),this.updateFromStores()}removeStore(o){let a=typeof o=="string"?o:o.name;this.unsubscribeFromStore(a),this[zt].delete(a)}setupStores(){this.unsubscribeFromStores(),this[zt].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[St].has(o.store):this[St].size>0)&&(this[a]=o.selector(c.getState(),this))}})}subscribeToStore(o,a){var l,c;this[St].set(o,a.subscribe(()=>this.updateFromStores())),this[qr].set(o,[]),$i(a)&&(!((l=a.deprecatedKeys)===null||l===void 0)&&l.length&&this.reduxConstructor.reduxProperties.forEach((p,d)=>{this.getStore(p.store)===a&&a.deprecatedKeys.includes(d)&&console.warn("Element",this,"is subscribed to deprecated key",d,"in store",a.name)}),a.eventBus&&((c=this.reduxConstructor.reduxEventListeners)===null||c===void 0||c.forEach((p,d)=>{if(typeof this[d]=="function"&&(!p.store||a.name===p.store)){let f=g=>this[d](g);a.addEventListener(p.eventName,f),this[qr].get(o).push(()=>a.removeEventListener(p.eventName,f))}}))),this.onStoreAvailable(o)}unsubscribeFromStores(){this[St].forEach((o,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(o){var a;this[St].has(o)&&this[St].get(o)(),this[St].delete(o),(a=this[qr].get(o))===null||a===void 0||a.forEach(l=>l()),this[qr].delete(o)}onStoreAvailable(o){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=St,r=zt,i=qr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),ca=class extends fd(it){};function ce(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 hd=typeof Symbol=="function"&&Symbol.observable||"@@observable",ua=hd,Xn=()=>Math.random().toString(36).substring(7).split("").join("."),md={INIT:`@@redux/INIT${Xn()}`,REPLACE:`@@redux/REPLACE${Xn()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Xn()}`},Fi=md;function Ui(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 Qn(t,e,r){if(typeof t!="function")throw new Error(ce(2));if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(ce(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(ce(1));return r(Qn)(t,e)}let i=t,n=e,s=new Map,o=s,a=0,l=!1;function c(){o===s&&(o=new Map,s.forEach((b,R)=>{o.set(R,b)}))}function p(){if(l)throw new Error(ce(3));return n}function d(b){if(typeof b!="function")throw new Error(ce(4));if(l)throw new Error(ce(5));let R=!0;c();let P=a++;return o.set(P,b),function(){if(R){if(l)throw new Error(ce(6));R=!1,c(),o.delete(P),s=null}}}function f(b){if(!Ui(b))throw new Error(ce(7));if(typeof b.type>"u")throw new Error(ce(8));if(typeof b.type!="string")throw new Error(ce(17));if(l)throw new Error(ce(9));try{l=!0,n=i(n,b)}finally{l=!1}return(s=o).forEach(P=>{P()}),b}function g(b){if(typeof b!="function")throw new Error(ce(10));i=b,f({type:Fi.REPLACE})}function x(){let b=d;return{subscribe(R){if(typeof R!="object"||R===null)throw new Error(ce(11));function P(){let w=R;w.next&&w.next(p())}return P(),{unsubscribe:b(P)}},[ua](){return this}}}return f({type:Fi.INIT}),{dispatch:f,subscribe:d,getState:p,replaceReducer:g,[ua]:x}}function yd(t){Object.keys(t).forEach(e=>{let r=t[e];if(typeof r(void 0,{type:Fi.INIT})>"u")throw new Error(ce(12));if(typeof r(void 0,{type:Fi.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ce(13))})}function Zn(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),n,s;try{yd(r)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1,p={};for(let d=0;d<i.length;d++){let f=i[d],g=r[f],x=a[f],T=g(x,l);if(typeof T>"u"){let b=l&&l.type;throw new Error(ce(14))}p[f]=T,c=c||T!==x}return c=c||i.length!==Object.keys(a).length,c?p:a}}function Wr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,r)=>(...i)=>e(r(...i)))}function da(...t){return e=>(r,i)=>{let n=e(r,i),s=()=>{throw new Error(ce(15))},o={getState:n.getState,dispatch:(l,...c)=>s(l,...c)},a=t.map(l=>l(o));return s=Wr(...a)(n.dispatch),{...n,dispatch:s}}}function pa(t){return Ui(t)&&"type"in t&&typeof t.type=="string"}var Sa=Symbol.for("immer-nothing"),fa=Symbol.for("immer-draftable"),ye=Symbol.for("immer-state");function We(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var De=Object,Cr=De.getPrototypeOf,zi="constructor",Yi="prototype",rs="configurable",ji="enumerable",Hi="writable",Kr="value",nt=t=>!!t&&!!t[ye];function Ne(t){return t?Ea(t)||Qi(t)||!!t[fa]||!!t[zi]?.[fa]||Zi(t)||Qr(t):!1}var gd=De[Yi][zi].toString(),ha=new WeakMap;function Ea(t){if(!t||!us(t))return!1;let e=Cr(t);if(e===null||e===De[Yi])return!0;let r=De.hasOwnProperty.call(e,zi)&&e[zi];if(r===Object)return!0;if(!_r(r))return!1;let i=ha.get(r);return i===void 0&&(i=Function.toString.call(r),ha.set(r,i)),i===gd}function Xi(t,e,r=!0){Xr(t)===0?(r?Reflect.ownKeys(t):De.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((i,n)=>e(n,i,t))}function Xr(t){let e=t[ye];return e?e.type_:Qi(t)?1:Zi(t)?2:Qr(t)?3:0}var Jn=(t,e,r=Xr(t))=>r===2?t.has(e):De[Yi].hasOwnProperty.call(t,e),is=(t,e,r=Xr(t))=>r===2?t.get(e):t[e],qi=(t,e,r,i=Xr(t))=>{i===2?t.set(e,r):i===3?t.add(r):t[e]=r};function vd(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Qi=Array.isArray,Zi=t=>t instanceof Map,Qr=t=>t instanceof Set,us=t=>typeof t=="object",_r=t=>typeof t=="function",es=t=>typeof t=="boolean";function bd(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var mt=t=>t.copy_||t.base_;var ds=t=>t.modified_?t.copy_:t.base_;function ns(t,e){if(Zi(t))return new Map(t);if(Qr(t))return new Set(t);if(Qi(t))return Array[Yi].slice.call(t);let r=Ea(t);if(e===!0||e==="class_only"&&!r){let i=De.getOwnPropertyDescriptors(t);delete i[ye];let n=Reflect.ownKeys(i);for(let s=0;s<n.length;s++){let o=n[s],a=i[o];a[Hi]===!1&&(a[Hi]=!0,a[rs]=!0),(a.get||a.set)&&(i[o]={[rs]:!0,[Hi]:!0,[ji]:a[ji],[Kr]:t[o]})}return De.create(Cr(t),i)}else{let i=Cr(t);if(i!==null&&r)return{...t};let n=De.create(i);return De.assign(n,t)}}function Ji(t,e=!1){return en(t)||nt(t)||!Ne(t)||(Xr(t)>1&&De.defineProperties(t,{set:Bi,add:Bi,clear:Bi,delete:Bi}),De.freeze(t),e&&Xi(t,(r,i)=>{Ji(i,!0)},!1)),t}function xd(){We(2)}var Bi={[Kr]:xd};function en(t){return t===null||!us(t)?!0:De.isFrozen(t)}var Wi="MapSet",ss="Patches",ma="ArrayMethods",Aa={};function jt(t){let e=Aa[t];return e||We(0,t),e}var ya=t=>!!Aa[t];var Gr,_a=()=>Gr,Sd=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:ya(Wi)?jt(Wi):void 0,arrayMethodsPlugin_:ya(ma)?jt(ma):void 0});function ga(t,e){e&&(t.patchPlugin_=jt(ss),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function os(t){as(t),t.drafts_.forEach(Ed),t.drafts_=null}function as(t){t===Gr&&(Gr=t.parent_)}var va=t=>Gr=Sd(Gr,t);function Ed(t){let e=t[ye];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function ba(t,e){e.unfinalizedDrafts_=e.drafts_.length;let r=e.drafts_[0];if(t!==void 0&&t!==r){r[ye].modified_&&(os(e),We(4)),Ne(t)&&(t=xa(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(r[ye].base_,t,e)}else t=xa(e,r);return Ad(e,t,!0),os(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==Sa?t:void 0}function xa(t,e){if(en(e))return e;let r=e[ye];if(!r)return Ki(e,t.handledSet_,t);if(!tn(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);Oa(r,t)}return r.copy_}function Ad(t,e,r=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&Ji(e,r)}function Ca(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var tn=(t,e)=>t.scope_===e,_d=[];function wa(t,e,r,i){let n=mt(t),s=t.type_;if(i!==void 0&&is(n,i,s)===e){qi(n,i,r,s);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Xi(n,(l,c)=>{if(nt(c)){let p=a.get(c)||[];p.push(l),a.set(c,p)}})}let o=t.draftLocations_.get(e)??_d;for(let a of o)qi(n,a,r,s)}function Cd(t,e,r){t.callbacks_.push(function(n){let s=e;if(!s||!tn(s,n))return;n.mapSetPlugin_?.fixSetContents(s);let o=ds(s);wa(t,s.draft_??s,o,r),Oa(s,n)})}function Oa(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 n=i.getPath(t);n&&i.generatePatches_(t,n,e)}Ca(t)}}function wd(t,e,r){let{scope_:i}=t;if(nt(r)){let n=r[ye];tn(n,i)&&n.callbacks_.push(function(){Vi(t);let o=ds(n);wa(t,r,o,e)})}else Ne(r)&&t.callbacks_.push(function(){let s=mt(t);t.type_===3?s.has(r)&&Ki(r,i.handledSet_,i):is(s,e,t.type_)===r&&i.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Ki(is(t.copy_,e,t.type_),i.handledSet_,i)})}function Ki(t,e,r){return!r.immer_.autoFreeze_&&r.unfinalizedDrafts_<1||nt(t)||e.has(t)||!Ne(t)||en(t)||(e.add(t),Xi(t,(i,n)=>{if(nt(n)){let s=n[ye];if(tn(s,r)){let o=ds(s);qi(t,i,o,t.type_),Ca(s)}}else Ne(n)&&Ki(n,e,r)})),t}function Od(t,e){let r=Qi(t),i={type_:r?1:0,scope_:e?e.scope_:_a(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=i,s=Gi;r&&(n=[i],s=Yr);let{revoke:o,proxy:a}=Proxy.revocable(n,s);return i.draft_=a,i.revoke_=o,[a,i]}var Gi={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 n=mt(t);if(!Jn(n,e,t.type_))return Rd(t,n,e);let s=n[e];if(t.finalized_||!Ne(s)||i&&t.operationMethod&&r?.isMutatingArrayMethod(t.operationMethod)&&bd(e))return s;if(s===ts(t.base_,e)||Td(t,e,s)){Vi(t);let o=t.type_===1?+e:e,a=cs(t.scope_,s,t,o);return t.copy_[o]=a}return s},has(t,e){return e in mt(t)},ownKeys(t){return Reflect.ownKeys(mt(t))},set(t,e,r){let i=Ta(mt(t),e);if(i?.set)return i.set.call(t.draft_,r),!0;if(!t.modified_){let n=ts(mt(t),e),s=n?.[ye];if(s&&s.base_===r)return t.copy_[e]=r,t.assigned_.delete(e),!0;if(vd(r,n)&&(r!==void 0||Jn(t.base_,e,t.type_)))return!0;Vi(t),ls(t)}return t.copy_[e]===r&&(r!==void 0||Jn(t.copy_,e,t.type_))||Number.isNaN(r)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=r,t.assigned_.set(e,!0),wd(t,e,r)),!0},deleteProperty(t,e){return Vi(t),ts(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),ls(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let r=mt(t),i=Reflect.getOwnPropertyDescriptor(r,e);return i&&{[Hi]:!0,[rs]:t.type_!==1||e!=="length",[ji]:i[ji],[Kr]:r[e]}},defineProperty(){We(11)},getPrototypeOf(t){return Cr(t.base_)},setPrototypeOf(){We(12)}},Yr={};for(let t in Gi){let e=Gi[t];Yr[t]=function(){let r=arguments;return r[0]=r[0][0],e.apply(this,r)}}Yr.deleteProperty=function(t,e){return Yr.set.call(this,t,e,void 0)};Yr.set=function(t,e,r){return Gi.set.call(this,t[0],e,r,t[0])};function ts(t,e){let r=t[ye];return(r?mt(r):t)[e]}function Td(t,e,r){return t.type_!==1||!t.allIndicesReassigned_||!Ne(r)||r[ye]?!1:t.baseRefs_.has(r)}function Rd(t,e,r){let i=Ta(e,r);return i?Kr in i?i[Kr]:i.get?.call(t.draft_):void 0}function Ta(t,e){if(!(e in t))return;let r=Cr(t);for(;r;){let i=Object.getOwnPropertyDescriptor(r,e);if(i)return i;r=Cr(r)}}function ls(t){t.modified_||(t.modified_=!0,t.parent_&&ls(t.parent_))}function Vi(t){t.copy_||(t.assigned_=new Map,t.copy_=ns(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(_r(e)&&!_r(r)){let s=r;r=e;let o=this;return function(l=s,...c){return o.produce(l,p=>r.call(this,p,...c))}}_r(r)||We(6),i!==void 0&&!_r(i)&&We(7);let n;if(Ne(e)){let s=va(this),o=cs(s,e,void 0),a=!0;try{n=r(o),a=!1}finally{a?os(s):as(s)}return ga(s,i),ba(n,s)}else if(!e||!us(e)){if(n=r(e),n===void 0&&(n=e),n===Sa&&(n=void 0),this.autoFreeze_&&Ji(n,!0),i){let s=[],o=[];jt(ss).generateReplacementPatches_(e,n,{patches_:s,inversePatches_:o}),i(s,o)}return n}else We(1,e)},this.produceWithPatches=(e,r)=>{if(_r(e))return(o,...a)=>this.produceWithPatches(o,l=>e(l,...a));let i,n;return[this.produce(e,r,(o,a)=>{i=o,n=a}),i,n]},es(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),es(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),es(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){Ne(t)||We(8),nt(t)&&(t=Ra(t));let e=va(this),r=cs(e,t,void 0);return r[ye].isManual_=!0,as(e),r}finishDraft(t,e){let r=t&&t[ye];(!r||!r.isManual_)&&We(9);let{scope_:i}=r;return ga(i,e),ba(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 n=e[r];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}r>-1&&(e=e.slice(r+1));let i=jt(ss).applyPatches_;return nt(t)?i(t,e):this.produce(t,n=>i(n,e))}};function cs(t,e,r,i){let[n,s]=Zi(e)?jt(Wi).proxyMap_(e,r):Qr(e)?jt(Wi).proxySet_(e,r):Od(e,r);return(r?.scope_??_a()).drafts_.push(n),s.callbacks_=r?.callbacks_??[],s.key_=i,r&&i!==void 0?Cd(r,s,i):s.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(s);let{patchPlugin_:c}=l;s.modified_&&c&&c.generatePatches_(s,[],l)}),n}function Ra(t){return nt(t)||We(10,t),ka(t)}function ka(t){if(!Ne(t)||en(t))return t;let e=t[ye],r,i=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,r=ns(t,e.scope_.immer_.useStrictShallowCopy_),i=e.scope_.immer_.shouldUseStrictIteration()}else r=ns(t,!0);let n=r;return Qr(r)&&(r=new Set),Xi(n,(s,o)=>{qi(r,s,ka(o))},i),e&&(e.finalized_=!1),r}var Ld=globalThis.Iterator,Nf=typeof Ld?.from=="function";var Dd=new kd,ps=Dd.produce;function La(t){return({dispatch:r,getState:i})=>n=>s=>typeof s=="function"?s(r,i,t):n(s)}var Da=La(),Na=La;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"?Wr:Wr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;function Jr(t,e){function r(...i){if(e){let n=e(...i);if(!n)throw new Error(st(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:i[0]}}return r.toString=()=>`${t}`,r.type=t,r.match=i=>i!=null&&i.type===t&&pa(i),r}var Ma=class Zr extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,Zr.prototype)}static get[Symbol.species](){return Zr}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new Zr(...e[0].concat(this)):new Zr(...e.concat(this))}};function Pa(t){return Ne(t)?ps(t,()=>{}):t}function rn(t,e,r){return t.has(e)?t.get(e):t.set(e,r(e)).get(e)}function Pd(t){return typeof t=="boolean"}var Id=()=>function(e){let{thunk:r=!0,immutableCheck:i=!0,serializableCheck:n=!0,actionCreatorCheck:s=!0}=e??{},o=new Ma;return r&&(Pd(r)?o.push(Da):o.push(Na(r.extraArgument))),o},Md="RTK_autoBatch";var Ia=t=>e=>{setTimeout(e,t)},$d=(t,e,r)=>i=>{let n=!1,s,o,a=()=>{n||(n=!0,e?.(s),clearTimeout(o),i())};s=t(a),o=setTimeout(a,r)},Fd=(t={type:"raf"})=>e=>(...r)=>{let i=e(...r),n=!0,s=!1,o=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?$d(window.requestAnimationFrame,window.cancelAnimationFrame,100):Ia(10):t.type==="callback"?t.queueNotification:Ia(t.timeout),c=()=>{o=!1,s&&(s=!1,a.forEach(p=>p()))};return Object.assign({},i,{subscribe(p){let d=()=>n&&p(),f=i.subscribe(d);return a.add(p),()=>{f(),a.delete(p)}},dispatch(p){try{return n=!p?.meta?.[Md],s=!n,s&&(o||(o=!0,l(c))),i.dispatch(p)}finally{n=!0}}})},Ud=t=>function(r){let{autoBatch:i=!0}=r??{},n=new Ma(t);return i&&n.push(Fd(typeof i=="object"?i:void 0)),n};function $a(t){let e=Id(),{reducer:r=void 0,middleware:i,devTools:n=!0,duplicateMiddlewareCheck:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=t||{},l;if(typeof r=="function")l=r;else if(Ui(r))l=Zn(r);else throw new Error(st(1));let c;typeof i=="function"?c=i(e):c=e();let p=Wr;n&&(p=Nd({trace:!1,...typeof n=="object"&&n}));let d=da(...c),f=Ud(d),g=typeof a=="function"?a(f):f(),x=p(...g);return Qn(l,o,x)}function Fa(t){let e={},r=[],i,n={addCase(s,o){let a=typeof s=="string"?s:s.type;if(!a)throw new Error(st(28));if(a in e)throw new Error(st(29));return e[a]=o,n},addAsyncThunk(s,o){return o.pending&&(e[s.pending.type]=o.pending),o.rejected&&(e[s.rejected.type]=o.rejected),o.fulfilled&&(e[s.fulfilled.type]=o.fulfilled),o.settled&&r.push({matcher:s.settled,reducer:o.settled}),n},addMatcher(s,o){return r.push({matcher:s,reducer:o}),n},addDefaultCase(s){return i=s,n}};return t(n),[e,r,i]}function Bd(t){return typeof t=="function"}function Hd(t,e){let[r,i,n]=Fa(e),s;if(Bd(t))s=()=>Pa(t());else{let l=Pa(t);s=()=>l}function o(l,c,p){if(nt(l)){let d=c(l,p);return d===void 0?l:d}else{if(Ne(l))return ps(l,d=>c(d,p));{let d=c(l,p);if(d===void 0){if(l===null)return l;throw new Error(st(9))}return d}}}function a(l=s(),c){let p=r[c.type],d;for(let{matcher:f,reducer:g}of i)f(c)&&g&&(d??=[]).push(g);if(!p&&!d)return n?o(l,n,c):l;if(p&&(l=o(l,p,c)),d)for(let f of d)l=o(l,f,c);return l}return a.getInitialState=s,a}var Vd=Symbol.for("rtk-slice-createasyncthunk");function zd(t,e){return`${t}/${e}`}function jd({creators:t}={}){let e=t?.asyncThunk?.[Vd];return function(i){let{name:n,reducerPath:s=n}=i;if(!n)throw new Error(st(11));typeof process<"u";let o=(typeof i.reducers=="function"?i.reducers(Wd()):i.reducers)||{},a=Object.keys(o),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(S,w){let M=typeof S=="string"?S:S.type;if(!M)throw new Error(st(12));if(M in l.sliceCaseReducersByType)throw new Error(st(13));return l.sliceCaseReducersByType[M]=w,c},addMatcher(S,w){return l.sliceMatchers.push({matcher:S,reducer:w}),c},exposeAction(S,w){return l.actionCreators[S]=w,c},exposeCaseReducer(S,w){return l.sliceCaseReducersByName[S]=w,c}};a.forEach(S=>{let w=o[S],M={reducerName:S,type:zd(n,S),createNotation:typeof i.reducers=="function"};Gd(w)?Xd(M,w,c,e):Kd(M,w,c)});function p(){let[S={},w=[],M=void 0]=typeof i.extraReducers=="function"?Fa(i.extraReducers):[i.extraReducers],ee={...S,...l.sliceCaseReducersByType};return Hd(i.initialState,Le=>{for(let me in ee)Le.addCase(me,ee[me]);for(let me of l.sliceMatchers)Le.addMatcher(me.matcher,me.reducer);for(let me of w)Le.addMatcher(me.matcher,me.reducer);M&&Le.addDefaultCase(M)})}let d=S=>S,f=new Map,g=new WeakMap,x;function T(S,w){return x||(x=p()),x(S,w)}function b(){return x||(x=p()),x.getInitialState()}function R(S,w=!1){function M(Le){let me=Le[S];return typeof me>"u"&&w&&(me=rn(g,M,b)),me}function ee(Le=d){return rn(rn(f,w,()=>new WeakMap),Le,()=>{let me={};for(let[Oi,Fe]of Object.entries(i.selectors??{}))me[Oi]=qd(Fe,Le,()=>rn(g,Le,b),w);return me})}return{reducerPath:S,getSelectors:ee,get selectors(){return ee(M)},selectSlice:M}}let P={name:n,reducer:T,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...R(s),injectInto(S,{reducerPath:w,...M}={}){let ee=w??s;return S.inject({reducerPath:ee,reducer:T},M),{...P,...R(ee,!0)}}};return P}}function qd(t,e,r,i){function n(s,...o){let a=e(s);return typeof a>"u"&&i&&(a=r()),t(a,...o)}return n.unwrapped=t,n}var Ua=jd();function Wd(){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 Kd({type:t,reducerName:e,createNotation:r},i,n){let s,o;if("reducer"in i){if(r&&!Yd(i))throw new Error(st(17));s=i.reducer,o=i.prepare}else s=i;n.addCase(t,s).exposeCaseReducer(e,s).exposeAction(e,o?Jr(t,o):Jr(t))}function Gd(t){return t._reducerDefinitionType==="asyncThunk"}function Yd(t){return t._reducerDefinitionType==="reducerWithPrepare"}function Xd({type:t,reducerName:e},r,i,n){if(!n)throw new Error(st(18));let{payloadCreator:s,fulfilled:o,pending:a,rejected:l,settled:c,options:p}=r,d=n(t,s,p);i.exposeAction(e,d),o&&i.addCase(d.fulfilled,o),a&&i.addCase(d.pending,a),l&&i.addCase(d.rejected,l),c&&i.addMatcher(d.settled,c),i.exposeCaseReducer(e,{fulfilled:o||nn,pending:a||nn,rejected:l||nn,settled:c||nn})}function nn(){}var Ba="listener",Ha="completed",Va="cancelled",Hf=`task-${Va}`,Vf=`task-${Ha}`,zf=`${Ba}-${Va}`,jf=`${Ba}-${Ha}`;var{assign:za}=Object;var fs="listenerMiddleware";var Qd=za(Jr(`${fs}/add`),{withTypes:()=>Qd}),qf=Jr(`${fs}/removeAll`),Zd=za(Jr(`${fs}/remove`),{withTypes:()=>Zd});function st(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 Jd=Di(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,i,n){this.eventBus.addEventListener(r,i,n)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,i,n){this.eventBus.removeEventListener(r,i,n)}}}),sn=class extends Jd(Object){};window.ftReduxStores||(window.ftReduxStores={});var ja=class t extends sn{static get(e){var r;let i=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,s=window.ftReduxStores[i];if($i(s))return s;if(n==null)return;let o=Ua({...n,reducers:(r=n.reducers)!==null&&r!==void 0?r:{}}),a=$a({reducer:(l,c)=>{if(c.type==="CLEAR_FT_REDUX_STORE"){let p=zr(o.getInitialState());for(let d of c.keeping)p[d]=(l??p)[d];return p}else if(typeof c.type=="string"&&c.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...c.overwrites};return o.reducer(l,c)}});return window.ftReduxStores[n.name]=new t(o,a,n.eventBus,n.deprecatedKeys)}constructor(e,r,i,n){super(),this.reduxSlice=e,this.reduxStore=r,this.deprecatedKeys=n,this.isFtReduxStore=!0,this.commands=new Ni,this.injectInto=(o,a)=>this.reduxSlice.injectInto(o,a),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let s=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,a,l)=>{let c=a,p=o[c];return p?(...d)=>{let f=p(...d.map(s));return this.reduxStore.dispatch(f),f}:d=>{let f=c,g=this.getState()[f];Sr(g,d)||this.setState({[f]:s(d)})}}}),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 on=class{static format(e,r,i,n,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(i,n,!!s)):this.getIntlDateTime(e,r,i,n,!!s)}static getMomentDateFormat(e,r,i){return i?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,i,n,s){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 s?l:n?`${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 an=u(v()),ep="ft-app-info",Et=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Et.eventName="authentication-change";var ei=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ei.eventName="ui-locale-changed";var tp={session:(t,e)=>{(0,an.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>E.dispatchEvent(new Et(e.payload)),0))}},E=an.FtReduxStore.get({name:ep,reducers:tp,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=u(v()),ln=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Wa=(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 n,s;return((s=(n=this.metadataDescriptors.find(a=>a.key===i))===null||n===void 0?void 0:n.date)!==null&&s!==void 0?s:!1)?a=>on.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return ln([(0,hs.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),ln([(0,hs.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),ln([Yn({store:E.name,selector:r=>{var i,n;return(n=(i=r.metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),ln([Yn({store:E.name})],e.prototype,"uiLocale",void 0),e});var fn=u(v());var ms=u(v());var qt=class t{static get(e){let{baseUrl:r,apiIntegrationIdentifier:i}=E.getState(),n=e??i;if(r&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,n,!0)}static await(e){return new Promise(r=>{let i=t.get(e);if(i)r(i);else{let n=E.subscribe(()=>{i=t.get(e),i&&(n(),r(i))})}})}};var wr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:qt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):qt.await()}};var Ee=class extends wr{constructor(e=!0,r){var i;super(r),this.sortObjectFields=(s,o)=>typeof o!="object"||o==null||Array.isArray(o)?o:Object.fromEntries(Object.entries(o).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(i=n.commonCache)!==null&&i!==void 0?i:new ms.CacheRegistry,this.cache=e?n.commonCache:new ms.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 cn=class extends Ee{async listMySearches(){let{session:e}=E.getState();return Li(e,q.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var un=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 dn=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(`/api/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(`/api/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var pn=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("/api/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=E.getState().session;return!!e?.sessionAuthenticated}};var rp="ft-user-assets",ip={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:n}=e.payload;gs(t,r,[...ys(t,r),n]),Ka(t,r,1,i),Ga(t,n)},editAsset:(t,e)=>{let{assetType:r,asset:i}=e.payload;gs(t,r,ys(t,r).map(n=>n.id===i.id?i:n)),Ga(t,i)},removeAsset:(t,e)=>{let{assetType:r,mapId:i,assetId:n}=e.payload;gs(t,r,ys(t,r).filter(s=>s.id!==n)),Ka(t,r,-1,i)}},Ya={[Ue.SEARCHES]:"savedSearches",[Ue.BOOKMARKS]:"bookmarks",[Ue.BOOKS]:void 0,[Ue.COLLECTIONS]:void 0},ys=(t,e)=>{var r;let i=Ya[e];return i?(r=t[i])!==null&&r!==void 0?r:[]:[]},gs=(t,e,r)=>{let i=Ya[e];i&&(t[i]=r)},Ka=(t,e,r,i)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+r),e===Ue.BOOKMARKS&&i)){let s=t.assetCounts.bookmarkByMap[i];t.assetCounts.bookmarkByMap[i]=Math.max(0,s+r)}},Ga=(t,e)=>{let r=t.assetLabels.map(n=>n.title),i=e.labels.filter(n=>!r.includes(n)).map(n=>({title:n}));t.assetLabels.push(...i)},be=fn.FtReduxStore.get({name:rp,reducers:ip,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(Ue).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),vs=class{constructor(e=new dn,r=new pn){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=E.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new un,this.savedSearchesService=new cn,E.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=E.getState();(0,fn.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)}}},np=new vs;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=np);var bs=class{addCommand(e,r=!1){E.commands.add(e,r)}consumeCommand(e){return E.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new bs;var Be=u(v());var Xa,Or=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},sp=Symbol("clearAfterUnitTest"),hn=class extends(0,Be.withEventBus)(Ee){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Xa]=()=>{this.defaultMessages={},this.cache=new Be.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 n={...(i=this.defaultMessages[e])!==null&&i!==void 0?i:{},...r};(0,Be.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,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 n;let s=e.toLowerCase(),o=this.resolveContext(s);return new Be.ParametrizedLabelResolver((n=this.defaultMessages[s])!==null&&n!==void 0?n:{},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(n){!(n instanceof Be.CanceledPromiseError)&&r&&console.error(n)}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 n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Or({loadedContexts:e})),this.dispatchEvent(new Or({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Or({loadedContexts:[e]})),this.dispatchEvent(new Or({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(i=>(0,Be.delay)(0).then(()=>i()).catch(()=>null)))}};Xa=sp;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends hn{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends hn{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var Tr=window.FluidTopicsI18nService,mn=window.FluidTopicsCustomI18nService;var Qa=u(v()),xs=class{highlightHtml(e,r,i){(0,Qa.highlightHtml)(e,r,i)}};window.FluidTopicsHighlightHtmlService=new xs;var Za=u(v());var Ss=class{isDate(e){var r,i,n,s;return(s=(i=((n=(r=E.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||i===void 0?void 0:i.date)!==null&&s!==void 0?s:!1}format(e,r){var i,n,s,o;if(e==null)return"";try{return Za.DateFormatter.format(e,(i=r?.locale)!==null&&i!==void 0?i:E.getState().uiLocale,(n=r?.longFormat)!==null&&n!==void 0?n:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(o=r?.onlyTime)!==null&&o!==void 0?o:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new Ss;var Ja=u(v());var ti=class{static get(e,r,{baseUrl:i,localesConfiguration:n,availableContentLocales:s}=E.getState()){var o;if(r==="all"&&n?.allLanguagesAllowed)r=void 0;else if(!r||s.length>0&&!s.some(a=>a.lang===r)){let a=n?.defaultLocales.defaultContentLocale;r=a?`${a.lang}-${a.region}`:(o=s[0])===null||o===void 0?void 0:o.lang}return new Ja.SearchPlaceConverter(i,e??20,n?.allLanguagesAllowed,r,s)}};var Es=class{urlToSearchRequest(e){return ti.get().parse(e)}searchRequestToUrl(e){return ti.get().serialize(e)}};window.FluidTopicsUrlService=new Es;var yt=u(v());var Wt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Wt.eventName="before-location-change";var Kt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Kt.eventName="change";var As=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 As;var yn=class t extends yt.WithEventBus{static build(){return new t(window.history,el,()=>window.location,!1)}constructor(e,r,i,n){var s,o;super(),this.history=e,this.historyStorage=r,this.windowLocation=i,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(o=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&o!==void 0?o:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}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,yt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Kt(this.currentItem())),0)}installProxies(){let e=r=>(i,n,[s,o,a])=>{let l=new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin!=="null"?window.location.origin:void 0),c=new Wt(l);this.dispatchEvent(c);let p=r(),d={...p===this.currentIndex?this.currentState:void 0,...s,index:p,href:c.detail.nextLocation.href};i.apply(n,[d,o,d.href]),this.setCurrentState(d,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let 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(Wt.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Wt.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Kt.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Kt.eventName,e)}currentItem(){return(0,yt.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,yt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(i=>!!i).filter(i=>i.index<this.currentIndex).reverse();return(0,yt.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,yt.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 n=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,i);)this.hasState(s)&&(n=s),s++;return n}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 n=r??this.currentState.majorStateId,s=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;return s==null||s!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=yn.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=u(O());var rl=tl.css`
12
+ `;var nl=u(O()),xe=u(F()),Yt=u(v());var ot=u(v());function il(t,e){let{authenticationRequired:r,session:i}=E.getState();return r&&!i?.sessionAuthenticated?Promise.resolve(e):t()}var gn=class extends wr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var _s=class t extends ot.FtStateManager{static build(e){return new t(E,e)}constructor(e,r){super(),this.store=e,this.cache=new ot.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new gn,this.knownContexts=new ot.AbstractRegistry,this.knownCustomComponents=new ot.AbstractRegistry,this.cleanSessionDebouncer=new ot.Debouncer,this.reloadConfiguration=()=>{var i;(i=this.cache)===null||i===void 0||i.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new ot.Debouncer(500),this.apiProvider=r??(()=>qt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(Et.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(Et.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 ei(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)}userHasAnyRole(...e){return Jo(E.getState().session,...e)}},Cs=_s.build();var Gt=class extends Event{constructor(e,r,i,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=i,this.subscribe=n??!1}};var ri=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:n,callbackRef:s}of i){let o=n.deref(),a=s.deref();o===void 0||a===void 0||o.dispatchEvent(new Gt(e.context,o,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],i=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let s=n.callbacks.get(r);s===void 0&&n.callbacks.set(r,s=new WeakSet),s.has(i)||(s.add(i),n.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(i)}))}}attach(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 ie=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},B=class extends Yt.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=Cs,this.contextRoot=new ri}render(){return nl.html`
13
13
  <slot></slot>
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=>Rr.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())}};H.elementDefinitions={};H.styles=ol;ne([(0,Se.property)()],H.prototype,"baseUrl",void 0);ne([(0,Se.property)()],H.prototype,"tenantId",void 0);ne([(0,Se.property)()],H.prototype,"apiIntegrationIdentifier",void 0);ne([(0,Se.property)()],H.prototype,"apiIntegrationAppVersion",void 0);ne([(0,Se.property)()],H.prototype,"uiLocale",void 0);ne([(0,Xt.jsonProperty)(null)],H.prototype,"availableUiLocales",void 0);ne([(0,Xt.jsonProperty)(null)],H.prototype,"metadataConfiguration",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"editorMode",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"noCustom",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"openExternalDocumentInNewTab",void 0);ne([(0,Se.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],H.prototype,"noCustomComponent",void 0);ne([(0,Se.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],H.prototype,"noCustomCode",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"withManualResources",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"navigatorOnline",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"forcedOffline",void 0);ne([(0,Se.property)({type:Boolean})],H.prototype,"authenticationRequired",void 0);ne([(0,Xt.jsonProperty)([])],H.prototype,"messageContexts",void 0);ne([(0,Xt.jsonProperty)(void 0)],H.prototype,"session",void 0);var ul=d(v());var cl={"ft-app-context":H};(0,ul.customElements)(cl);var vn=class t extends Event{constructor(){super(t.eventName)}};vn.eventName="search-context-clear-all-filters";var bn=t=>t.request.virtualField===Ti.TITLE_ONLY&&t.request.scope===ki.DOCUMENTS,xn=t=>t.request.keywordMatch==ht.MANDATORY;var Os=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Rs=class extends wt.FtContextRegistrationEvent{constructor(e){super("register-ft-search-component",e)}},dl=Symbol("registerInterval"),Ts=Symbol("registerAttempts"),Sp=40,Ep=(0,wt.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,o;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(o=i.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(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[Ts]=0,this.tryToRegisterToContext(),this[dl]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Ts]>Sp?window.clearInterval(this[dl]):(this[Ts]++,this.dispatchEvent(new Rs({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return Os([(0,ii.state)()],e.prototype,"stateManager",void 0),Os([(0,ii.state)({hasChanged:wt.hasChanged})],e.prototype,"neededSearchRequests",void 0),Os([(0,ii.property)()],e.prototype,"searchRegistrationId",void 0),e}),Ct=class extends Ep(wt.FtLitElementRedux){};var hr=d(R()),se=d(U()),pu=d(Qt()),Ur=d(v());var xl=d(R()),de=d(U()),Sl=d(Qt()),ni=d(v());var vl=d(R()),Q=d(v()),fl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorContent),re={color:fl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",fl),opacityContentOnSurfacePressed:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:Q.FtCssVariableFactory.external(Q.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:Q.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},hl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorPrimary),ml={color:hl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",hl)},yl=Q.FtCssVariableFactory.extend("--ft-ripple-color","",Q.designSystemVariables.colorSecondary),gl={color:yl,backgroundColor:Q.FtCssVariableFactory.extend("--ft-ripple-background-color","",yl)},bl=vl.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=>Tr.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())}};B.elementDefinitions={};B.styles=rl;ie([(0,xe.property)()],B.prototype,"baseUrl",void 0);ie([(0,xe.property)()],B.prototype,"tenantId",void 0);ie([(0,xe.property)()],B.prototype,"apiIntegrationIdentifier",void 0);ie([(0,xe.property)()],B.prototype,"apiIntegrationAppVersion",void 0);ie([(0,xe.property)()],B.prototype,"uiLocale",void 0);ie([(0,Yt.jsonProperty)(null)],B.prototype,"availableUiLocales",void 0);ie([(0,Yt.jsonProperty)(null)],B.prototype,"metadataConfiguration",void 0);ie([(0,xe.property)({type:Boolean})],B.prototype,"editorMode",void 0);ie([(0,xe.property)({type:Boolean})],B.prototype,"noCustom",void 0);ie([(0,xe.property)({type:Boolean})],B.prototype,"openExternalDocumentInNewTab",void 0);ie([(0,xe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],B.prototype,"noCustomComponent",void 0);ie([(0,xe.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],B.prototype,"noCustomCode",void 0);ie([(0,xe.property)({type:Boolean})],B.prototype,"withManualResources",void 0);ie([(0,xe.property)({type:Boolean})],B.prototype,"navigatorOnline",void 0);ie([(0,xe.property)({type:Boolean})],B.prototype,"forcedOffline",void 0);ie([(0,xe.property)({type:Boolean})],B.prototype,"authenticationRequired",void 0);ie([(0,Yt.jsonProperty)([])],B.prototype,"messageContexts",void 0);ie([(0,Yt.jsonProperty)(void 0)],B.prototype,"session",void 0);var ol=u(v());var sl={"ft-app-context":B};(0,ol.customElements)(sl);var vn=class t extends Event{constructor(){super(t.eventName)}};vn.eventName="search-context-clear-all-filters";var bn=t=>t.request.virtualField===Ti.TITLE_ONLY&&t.request.scope===ki.DOCUMENTS,xn=t=>t.request.keywordMatch==ht.MANDATORY;var ws=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ts=class extends Ct.FtContextRegistrationEvent{constructor(e){super("register-ft-search-component",e)}},al=Symbol("registerInterval"),Os=Symbol("registerAttempts"),lp=40,cp=(0,Ct.applyMixinOnce)(Symbol("toFtSearchComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededSearchRequests=[]}willUpdate(i){var n,s,o;super.willUpdate(i),i.has("neededSearchRequests")&&((n=this.stateManager)===null||n===void 0||n.unregisterComponent(this,(o=i.get("neededSearchRequests"))!==null&&o!==void 0?o:[]),(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[Os]=0,this.tryToRegisterToContext(),this[al]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null||this[Os]>lp?window.clearInterval(this[al]):(this[Os]++,this.dispatchEvent(new Ts({target:this,registrationId:this.searchRegistrationId})))}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return ws([(0,ii.state)()],e.prototype,"stateManager",void 0),ws([(0,ii.state)({hasChanged:Ct.hasChanged})],e.prototype,"neededSearchRequests",void 0),ws([(0,ii.property)()],e.prototype,"searchRegistrationId",void 0),e}),_t=class extends cp(Ct.FtLitElementRedux){};var fr=u(O()),ne=u(F()),lu=u(Xt()),Fr=u(v());var yl=u(O()),ue=u(F()),gl=u(Xt()),ni=u(v());var hl=u(O()),X=u(v()),cl=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorContent),te={color:cl,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",cl),opacityContentOnSurfacePressed:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:X.FtCssVariableFactory.external(X.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:X.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},ul=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorPrimary),dl={color:ul,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",ul)},pl=X.FtCssVariableFactory.extend("--ft-ripple-color","",X.designSystemVariables.colorSecondary),fl={color:pl,backgroundColor:X.FtCssVariableFactory.extend("--ft-ripple-background-color","",pl)},ml=hl.css`
15
15
  :host {
16
16
  display: contents;
17
17
  /* Chrome 153+ UA stylesheet hides [unbounded]:not(:unbounded) elements (crbug.com/579043456) */
@@ -26,7 +26,7 @@
26
26
 
27
27
  .ft-ripple:not(.ft-ripple--unbounded) {
28
28
  overflow: hidden;
29
- border-radius: ${re.borderRadius};
29
+ border-radius: ${te.borderRadius};
30
30
  }
31
31
 
32
32
  .ft-ripple .ft-ripple--background,
@@ -60,27 +60,27 @@
60
60
  }
61
61
 
62
62
  .ft-ripple .ft-ripple--background {
63
- background-color: ${re.backgroundColor};
63
+ background-color: ${te.backgroundColor};
64
64
  }
65
65
 
66
66
  .ft-ripple .ft-ripple--effect {
67
- background-color: ${re.color};
67
+ background-color: ${te.color};
68
68
  }
69
69
 
70
70
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
71
- background-color: ${gl.backgroundColor};
71
+ background-color: ${fl.backgroundColor};
72
72
  }
73
73
 
74
74
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
75
- background-color: ${gl.color};
75
+ background-color: ${fl.color};
76
76
  }
77
77
 
78
78
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
79
- background-color: ${ml.backgroundColor};
79
+ background-color: ${dl.backgroundColor};
80
80
  }
81
81
 
82
82
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
83
- background-color: ${ml.color};
83
+ background-color: ${dl.color};
84
84
  }
85
85
 
86
86
  .ft-ripple .ft-ripple--background {
@@ -110,36 +110,46 @@
110
110
  }
111
111
 
112
112
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
113
- opacity: ${re.opacityContentOnSurfaceHover};
113
+ opacity: ${te.opacityContentOnSurfaceHover};
114
114
  }
115
115
 
116
116
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
117
- opacity: ${re.opacityContentOnSurfaceSelected};
117
+ opacity: ${te.opacityContentOnSurfaceSelected};
118
118
  }
119
119
 
120
120
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
121
- opacity: ${re.opacityContentOnSurfaceFocused};
121
+ opacity: ${te.opacityContentOnSurfaceFocused};
122
122
  }
123
123
 
124
124
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
125
- opacity: ${re.opacityContentOnSurfacePressed};
125
+ opacity: ${te.opacityContentOnSurfacePressed};
126
126
  transform: translate(-50%, -50%) scale(1);
127
127
  }
128
- `;var _e=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},N=class extends ni.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 ni.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 ni.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:s}=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(n!=null?n-o.x:o.width/2),this.originY=Math.round(s!=null?s-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 xl.html`
128
+ `;var Ae=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},L=class extends ni.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 ni.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 ni.Debouncer(10),this.moveRipple=e=>{var r,i;let{x:n,y:s}=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(n!=null?n-o.x:o.width/2),this.originY=Math.round(s!=null?s-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 yl.html`
129
129
  <style>
130
130
  .ft-ripple .ft-ripple--effect {
131
131
  left: ${this.originX}px;
132
132
  top: ${this.originY}px;
133
133
  }
134
134
  </style>
135
- <div class="${(0,Sl.classMap)(e)}">
135
+ <div class="${(0,gl.classMap)(e)}">
136
136
  <div class="ft-ripple--background"></div>
137
137
  <div class="ft-ripple--effect"></div>
138
138
  </div>
139
- `}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"),n=r("touchend","touchcancel"),s=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",n,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",s,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",n,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",s,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,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(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=bl;_e([(0,de.property)({type:Boolean})],N.prototype,"primary",void 0);_e([(0,de.property)({type:Boolean})],N.prototype,"secondary",void 0);_e([(0,de.property)({type:Boolean})],N.prototype,"unbounded",void 0);_e([(0,de.property)({type:Boolean})],N.prototype,"activated",void 0);_e([(0,de.property)({type:Boolean})],N.prototype,"selected",void 0);_e([(0,de.property)({type:Boolean})],N.prototype,"disabled",void 0);_e([(0,de.state)()],N.prototype,"hovered",void 0);_e([(0,de.state)()],N.prototype,"focused",void 0);_e([(0,de.state)()],N.prototype,"pressed",void 0);_e([(0,de.state)()],N.prototype,"rippling",void 0);_e([(0,de.state)()],N.prototype,"originX",void 0);_e([(0,de.state)()],N.prototype,"originY",void 0);_e([(0,de.query)(".ft-ripple")],N.prototype,"ripple",void 0);_e([(0,de.query)(".ft-ripple--effect")],N.prototype,"rippleEffect",void 0);var Al=d(v());var El={"ft-ripple":N};(0,Al.customElements)(El);var Ms=globalThis,_l=t=>t,Sn=Ms.trustedTypes,Cl=Sn?Sn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ll="$lit$",Ot=`lit$${Math.random().toFixed(9).slice(2)}$`,Dl="?"+Ot,Ap=`<${Dl}>`,er=document,En=()=>er.createComment(""),oi=t=>t===null||typeof t!="object"&&typeof t!="function",$s=Array.isArray,_p=t=>$s(t)||typeof t?.[Symbol.iterator]=="function",ks=`[
140
- \f\r]`,si=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wl=/-->/g,Ol=/>/g,Zt=RegExp(`>|${ks}(?:([^\\s"'>=/]+)(${ks}*=${ks}*(?:[^
141
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Tl=/'/g,Rl=/"/g,Nl=/^(?:script|style|textarea|title)$/i,Fs=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),Pl=Fs(1),Il=Fs(2),Ml=Fs(3),ai=Symbol.for("lit-noChange"),Z=Symbol.for("lit-nothing"),kl=new WeakMap,Jt=er.createTreeWalker(er,129);function $l(t,e){if(!$s(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Cl!==void 0?Cl.createHTML(e):e}var Cp=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=si;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===si?u[1]==="!--"?o=wl:u[1]!==void 0?o=Ol:u[2]!==void 0?(Nl.test(u[2])&&(n=RegExp("</"+u[2],"g")),o=Zt):u[3]!==void 0&&(o=Zt):o===Zt?u[0]===">"?(o=n??si,p=-1):u[1]===void 0?p=-2:(p=o.lastIndex-u[2].length,c=u[1],o=u[3]===void 0?Zt:u[3]==='"'?Rl:Tl):o===Rl||o===Tl?o=Zt:o===wl||o===Ol?o=si:(o=Zt,n=void 0);let y=o===Zt&&t[a+1].startsWith("/>")?" ":"";s+=o===si?l+Ap:p>=0?(i.push(c),l.slice(0,p)+Ll+l.slice(p)+Ot+y):l+Ot+(p===-2?a:y)}return[$l(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},li=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[c,u]=Cp(e,r);if(this.el=t.createElement(c,i),Jt.currentNode=this.el.content,r===2||r===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=Jt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(Ll)){let f=u[o++],y=n.getAttribute(p).split(Ot),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:x[2],strings:y,ctor:x[1]==="."?Ds:x[1]==="?"?Ns:x[1]==="@"?Ps:Lr}),n.removeAttribute(p)}else p.startsWith(Ot)&&(l.push({type:6,index:s}),n.removeAttribute(p));if(Nl.test(n.tagName)){let p=n.textContent.split(Ot),f=p.length-1;if(f>0){n.textContent=Sn?Sn.emptyScript:"";for(let y=0;y<f;y++)n.append(p[y],En()),Jt.nextNode(),l.push({type:2,index:++s});n.append(p[f],En())}}}else if(n.nodeType===8)if(n.data===Dl)l.push({type:2,index:s});else{let p=-1;for(;(p=n.data.indexOf(Ot,p+1))!==-1;)l.push({type:7,index:s}),p+=Ot.length-1}s++}}static createElement(e,r){let i=er.createElement("template");return i.innerHTML=e,i}};function kr(t,e,r=t,i){if(e===ai)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=oi(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=kr(t,n._$AS(t,e.values),n,i)),e}var Ls=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,n=(e?.creationScope??er).importNode(r,!0);Jt.currentNode=n;let s=Jt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new An(s,s.nextSibling,this,e):l.type===1?c=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(c=new Is(s,this,e)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=Jt.nextNode(),o++)}return Jt.currentNode=er,n}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++}},An=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Z,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.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=kr(this,e,r),oi(e)?e===Z||e==null||e===""?(this._$AH!==Z&&this._$AR(),this._$AH=Z):e!==this._$AH&&e!==ai&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):_p(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!==Z&&oi(this._$AH)?this._$AA.nextSibling.data=e:this.T(er.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=li.createElement($l(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new Ls(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=kl.get(e.strings);return r===void 0&&kl.set(e.strings,r=new li(e)),r}k(e){$s(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(En()),this.O(En()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e!==this._$AB;){let i=_l(e).nextSibling;_l(e).remove(),e=i}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},Lr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=Z,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Z}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=kr(this,e,r,0),o=!oi(e)||e!==this._$AH&&e!==ai,o&&(this._$AH=e);else{let a=e,l,c;for(e=s[0],l=0;l<s.length-1;l++)c=kr(this,a[i+l],r,l),c===ai&&(c=this._$AH[l]),o||=!oi(c)||c!==this._$AH[l],c===Z?e=Z:e!==Z&&(e+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(e)}j(e){e===Z?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ds=class extends Lr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Z?void 0:e}},Ns=class extends Lr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Z)}},Ps=class extends Lr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=kr(this,e,r,0)??Z)===ai)return;let i=this._$AH,n=e===Z&&i!==Z||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==Z&&(i===Z||n);n&&this.element.removeEventListener(this.name,this,i),s&&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)}},Is=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){kr(this,e)}};var wp=Ms.litHtmlPolyfillSupport;wp?.(li,An),(Ms.litHtmlVersions??=[]).push("3.3.3");var Ul=Symbol.for(""),Op=t=>{if(t?.r===Ul)return t?._$litStatic$},Us=t=>({_$litStatic$:t,r:Ul});var Fl=new Map,Bs=t=>(e,...r)=>{let i=r.length,n,s,o=[],a=[],l,c=0,u=!1;for(;c<i;){for(l=e[c];c<i&&(s=r[c],(n=Op(s))!==void 0);)l+=n+e[++c],u=!0;c!==i&&a.push(s),o.push(l),c++}if(c===i&&o.push(e[i]),u){let p=o.join("$$lit$$");(e=Fl.get(p))===void 0&&(o.raw=o,Fl.set(p,e=o)),r=a}return t(e,...r)},Hs=Bs(Pl),Og=Bs(Il),Tg=Bs(Ml);var Vs=d(U()),Zl=d(v());var pe;(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"})(pe||(pe={}));var He=d(R()),h=d(v()),Bl=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),gt=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),g={fontFamily:gt,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},tr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Bl),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",g.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",g.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",g.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",g.textDecoration,"inherit")},rr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Bl),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",g.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",g.textDecoration,"inherit")},ir={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",g.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",g.textDecoration,"inherit")},nr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",g.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",g.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",g.textDecoration,"inherit")},sr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",g.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",g.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",g.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",g.textDecoration,"inherit")},J={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",g.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",g.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",g.textDecoration,"inherit")},or={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",g.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",g.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",g.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",g.textDecoration,"inherit")},ar={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",g.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",g.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",g.textDecoration,"inherit")},lr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",g.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",g.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",g.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",g.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",g.textDecoration,"inherit")},Ke={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",g.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",g.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",g.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",g.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",g.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",g.textDecoration,"inherit")},Hl=He.css`
139
+ `}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"),n=r("touchend","touchcancel"),s=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",n,o),e.addEventListener("touchmove",this.moveRipple,o),e.addEventListener("keydown",s,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",n,o),e.removeEventListener("touchmove",this.moveRipple,o),e.removeEventListener("keydown",s,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,n,s;return r.x!=null?{x:n,y:s}=r:i.touches!=null&&(n=i.touches[0].clientX,s=i.touches[0].clientY),{x:n,y:s}}isFocusVisible(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()}};L.elementDefinitions={};L.styles=ml;Ae([(0,ue.property)({type:Boolean})],L.prototype,"primary",void 0);Ae([(0,ue.property)({type:Boolean})],L.prototype,"secondary",void 0);Ae([(0,ue.property)({type:Boolean})],L.prototype,"unbounded",void 0);Ae([(0,ue.property)({type:Boolean})],L.prototype,"activated",void 0);Ae([(0,ue.property)({type:Boolean})],L.prototype,"selected",void 0);Ae([(0,ue.property)({type:Boolean})],L.prototype,"disabled",void 0);Ae([(0,ue.state)()],L.prototype,"hovered",void 0);Ae([(0,ue.state)()],L.prototype,"focused",void 0);Ae([(0,ue.state)()],L.prototype,"pressed",void 0);Ae([(0,ue.state)()],L.prototype,"rippling",void 0);Ae([(0,ue.state)()],L.prototype,"originX",void 0);Ae([(0,ue.state)()],L.prototype,"originY",void 0);Ae([(0,ue.query)(".ft-ripple")],L.prototype,"ripple",void 0);Ae([(0,ue.query)(".ft-ripple--effect")],L.prototype,"rippleEffect",void 0);var bl=u(v());var vl={"ft-ripple":L};(0,bl.customElements)(vl);var Is=globalThis,xl=t=>t,Sn=Is.trustedTypes,Sl=Sn?Sn.createPolicy("lit-html",{createHTML:t=>t}):void 0,Ol="$lit$",wt=`lit$${Math.random().toFixed(9).slice(2)}$`,Tl="?"+wt,up=`<${Tl}>`,Jt=document,En=()=>Jt.createComment(""),oi=t=>t===null||typeof t!="object"&&typeof t!="function",Ms=Array.isArray,dp=t=>Ms(t)||typeof t?.[Symbol.iterator]=="function",Rs=`[
140
+ \f\r]`,si=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,El=/-->/g,Al=/>/g,Qt=RegExp(`>|${Rs}(?:([^\\s"'>=/]+)(${Rs}*=${Rs}*(?:[^
141
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),_l=/'/g,Cl=/"/g,Rl=/^(?:script|style|textarea|title)$/i,$s=t=>(e,...r)=>({_$litType$:t,strings:e,values:r}),kl=$s(1),Ll=$s(2),Dl=$s(3),ai=Symbol.for("lit-noChange"),Q=Symbol.for("lit-nothing"),wl=new WeakMap,Zt=Jt.createTreeWalker(Jt,129);function Nl(t,e){if(!Ms(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Sl!==void 0?Sl.createHTML(e):e}var pp=(t,e)=>{let r=t.length-1,i=[],n,s=e===2?"<svg>":e===3?"<math>":"",o=si;for(let a=0;a<r;a++){let l=t[a],c,p,d=-1,f=0;for(;f<l.length&&(o.lastIndex=f,p=o.exec(l),p!==null);)f=o.lastIndex,o===si?p[1]==="!--"?o=El:p[1]!==void 0?o=Al:p[2]!==void 0?(Rl.test(p[2])&&(n=RegExp("</"+p[2],"g")),o=Qt):p[3]!==void 0&&(o=Qt):o===Qt?p[0]===">"?(o=n??si,d=-1):p[1]===void 0?d=-2:(d=o.lastIndex-p[2].length,c=p[1],o=p[3]===void 0?Qt:p[3]==='"'?Cl:_l):o===Cl||o===_l?o=Qt:o===El||o===Al?o=si:(o=Qt,n=void 0);let g=o===Qt&&t[a+1].startsWith("/>")?" ":"";s+=o===si?l+up:d>=0?(i.push(c),l.slice(0,d)+Ol+l.slice(d)+wt+g):l+wt+(d===-2?a:g)}return[Nl(t,s+(t[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]},li=class t{constructor({strings:e,_$litType$:r},i){let n;this.parts=[];let s=0,o=0,a=e.length-1,l=this.parts,[c,p]=pp(e,r);if(this.el=t.createElement(c,i),Zt.currentNode=this.el.content,r===2||r===3){let d=this.el.content.firstChild;d.replaceWith(...d.childNodes)}for(;(n=Zt.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let d of n.getAttributeNames())if(d.endsWith(Ol)){let f=p[o++],g=n.getAttribute(d).split(wt),x=/([.?@])?(.*)/.exec(f);l.push({type:1,index:s,name:x[2],strings:g,ctor:x[1]==="."?Ls:x[1]==="?"?Ds:x[1]==="@"?Ns:kr}),n.removeAttribute(d)}else d.startsWith(wt)&&(l.push({type:6,index:s}),n.removeAttribute(d));if(Rl.test(n.tagName)){let d=n.textContent.split(wt),f=d.length-1;if(f>0){n.textContent=Sn?Sn.emptyScript:"";for(let g=0;g<f;g++)n.append(d[g],En()),Zt.nextNode(),l.push({type:2,index:++s});n.append(d[f],En())}}}else if(n.nodeType===8)if(n.data===Tl)l.push({type:2,index:s});else{let d=-1;for(;(d=n.data.indexOf(wt,d+1))!==-1;)l.push({type:7,index:s}),d+=wt.length-1}s++}}static createElement(e,r){let i=Jt.createElement("template");return i.innerHTML=e,i}};function Rr(t,e,r=t,i){if(e===ai)return e;let n=i!==void 0?r._$Co?.[i]:r._$Cl,s=oi(e)?void 0:e._$litDirective$;return n?.constructor!==s&&(n?._$AO?.(!1),s===void 0?n=void 0:(n=new s(t),n._$AT(t,r,i)),i!==void 0?(r._$Co??=[])[i]=n:r._$Cl=n),n!==void 0&&(e=Rr(t,n._$AS(t,e.values),n,i)),e}var ks=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,n=(e?.creationScope??Jt).importNode(r,!0);Zt.currentNode=n;let s=Zt.nextNode(),o=0,a=0,l=i[0];for(;l!==void 0;){if(o===l.index){let c;l.type===2?c=new An(s,s.nextSibling,this,e):l.type===1?c=new l.ctor(s,l.name,l.strings,this,e):l.type===6&&(c=new Ps(s,this,e)),this._$AV.push(c),l=i[++a]}o!==l?.index&&(s=Zt.nextNode(),o++)}return Zt.currentNode=Jt,n}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++}},An=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,i,n){this.type=2,this._$AH=Q,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=i,this.options=n,this._$Cv=n?.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=Rr(this,e,r),oi(e)?e===Q||e==null||e===""?(this._$AH!==Q&&this._$AR(),this._$AH=Q):e!==this._$AH&&e!==ai&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):dp(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!==Q&&oi(this._$AH)?this._$AA.nextSibling.data=e:this.T(Jt.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:i}=e,n=typeof i=="number"?this._$AC(e):(i.el===void 0&&(i.el=li.createElement(Nl(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===n)this._$AH.p(r);else{let s=new ks(n,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let r=wl.get(e.strings);return r===void 0&&wl.set(e.strings,r=new li(e)),r}k(e){Ms(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,i,n=0;for(let s of e)n===r.length?r.push(i=new t(this.O(En()),this.O(En()),this,this.options)):i=r[n],i._$AI(s),n++;n<r.length&&(this._$AR(i&&i._$AB.nextSibling,n),r.length=n)}_$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))}},kr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,i,n,s){this.type=1,this._$AH=Q,this._$AN=void 0,this.element=e,this.name=r,this._$AM=n,this.options=s,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Q}_$AI(e,r=this,i,n){let s=this.strings,o=!1;if(s===void 0)e=Rr(this,e,r,0),o=!oi(e)||e!==this._$AH&&e!==ai,o&&(this._$AH=e);else{let a=e,l,c;for(e=s[0],l=0;l<s.length-1;l++)c=Rr(this,a[i+l],r,l),c===ai&&(c=this._$AH[l]),o||=!oi(c)||c!==this._$AH[l],c===Q?e=Q:e!==Q&&(e+=(c??"")+s[l+1]),this._$AH[l]=c}o&&!n&&this.j(e)}j(e){e===Q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ls=class extends kr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Q?void 0:e}},Ds=class extends kr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Q)}},Ns=class extends kr{constructor(e,r,i,n,s){super(e,r,i,n,s),this.type=5}_$AI(e,r=this){if((e=Rr(this,e,r,0)??Q)===ai)return;let i=this._$AH,n=e===Q&&i!==Q||e.capture!==i.capture||e.once!==i.once||e.passive!==i.passive,s=e!==Q&&(i===Q||n);n&&this.element.removeEventListener(this.name,this,i),s&&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)}},Ps=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){Rr(this,e)}};var fp=Is.litHtmlPolyfillSupport;fp?.(li,An),(Is.litHtmlVersions??=[]).push("3.3.3");var Il=Symbol.for(""),hp=t=>{if(t?.r===Il)return t?._$litStatic$},Fs=t=>({_$litStatic$:t,r:Il});var Pl=new Map,Us=t=>(e,...r)=>{let i=r.length,n,s,o=[],a=[],l,c=0,p=!1;for(;c<i;){for(l=e[c];c<i&&(s=r[c],(n=hp(s))!==void 0);)l+=n+e[++c],p=!0;c!==i&&a.push(s),o.push(l),c++}if(c===i&&o.push(e[i]),p){let d=o.join("$$lit$$");(e=Pl.get(d))===void 0&&(o.raw=o,Pl.set(d,e=o)),r=a}return t(e,...r)},Bs=Us(kl),dg=Us(Ll),pg=Us(Dl);var Hs=u(F()),Gl=u(v());var de;(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"})(de||(de={}));var He=u(O()),h=u(v()),Ml=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.titleFont),gt=h.FtCssVariableFactory.extend("--ft-typography-font-family","",h.designSystemVariables.contentFont),y={fontFamily:gt,fontSize:h.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:h.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:h.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:h.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:h.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:h.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},er={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Ml),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-font-size","",y.fontSize,"20px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",y.letterSpacing,"0.15px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-line-height","",y.lineHeight,"1.2"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",y.textDecoration,"inherit")},tr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Ml),fontSize:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",y.letterSpacing,"0.105px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",y.textDecoration,"inherit")},rr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",y.letterSpacing,"0.144px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",y.textDecoration,"inherit")},ir={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",y.letterSpacing,"0.098px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",y.lineHeight,"1.7"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",y.textDecoration,"inherit")},nr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",y.fontSize,"16px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",y.letterSpacing,"0.496px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",y.lineHeight,"1.5"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",y.textDecoration,"inherit")},Z={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",y.letterSpacing,"0.252px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",y.lineHeight,"1.4"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",y.textDecoration,"inherit")},sr={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",y.fontSize,"12px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",y.letterSpacing,"0.396px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",y.lineHeight,"1.33"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",y.textDecoration,"inherit")},or={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",y.letterSpacing,"0.33px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",y.textTransform,"inherit"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",y.textDecoration,"inherit")},ar={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",y.fontSize,"10px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",y.fontWeight,"normal"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",y.letterSpacing,"1.5px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",y.lineHeight,"1.6"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",y.textDecoration,"inherit")},Ke={fontFamily:h.FtCssVariableFactory.extend("--ft-typography-button-font-family","",gt),fontSize:h.FtCssVariableFactory.extend("--ft-typography-button-font-size","",y.fontSize,"14px"),fontWeight:h.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",y.fontWeight,"600"),letterSpacing:h.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",y.letterSpacing,"1.246px"),lineHeight:h.FtCssVariableFactory.extend("--ft-typography-button-line-height","",y.lineHeight,"1.15"),textTransform:h.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",y.textTransform,"uppercase"),textDecoration:h.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",y.textDecoration,"inherit")},$l=He.css`
142
142
  .ft-typography--title {
143
+ font-family: ${er.fontFamily};
144
+ font-size: ${er.fontSize};
145
+ font-weight: ${er.fontWeight};
146
+ letter-spacing: ${er.letterSpacing};
147
+ line-height: ${er.lineHeight};
148
+ text-transform: ${er.textTransform};
149
+ text-decoration: ${er.textDecoration};
150
+ }
151
+ `,Fl=He.css`
152
+ .ft-typography--title-dense {
143
153
  font-family: ${tr.fontFamily};
144
154
  font-size: ${tr.fontSize};
145
155
  font-weight: ${tr.fontWeight};
@@ -148,8 +158,8 @@
148
158
  text-transform: ${tr.textTransform};
149
159
  text-decoration: ${tr.textDecoration};
150
160
  }
151
- `,Vl=He.css`
152
- .ft-typography--title-dense {
161
+ `,Ul=He.css`
162
+ .ft-typography--subtitle1 {
153
163
  font-family: ${rr.fontFamily};
154
164
  font-size: ${rr.fontSize};
155
165
  font-weight: ${rr.fontWeight};
@@ -158,8 +168,8 @@
158
168
  text-transform: ${rr.textTransform};
159
169
  text-decoration: ${rr.textDecoration};
160
170
  }
161
- `,zl=He.css`
162
- .ft-typography--subtitle1 {
171
+ `,Bl=He.css`
172
+ .ft-typography--subtitle2 {
163
173
  font-family: ${ir.fontFamily};
164
174
  font-size: ${ir.fontSize};
165
175
  font-weight: ${ir.fontWeight};
@@ -168,8 +178,9 @@
168
178
  text-transform: ${ir.textTransform};
169
179
  text-decoration: ${ir.textDecoration};
170
180
  }
171
- `,jl=He.css`
172
- .ft-typography--subtitle2 {
181
+
182
+ `,Hl=He.css`
183
+ .ft-typography--body1 {
173
184
  font-family: ${nr.fontFamily};
174
185
  font-size: ${nr.fontSize};
175
186
  font-weight: ${nr.fontWeight};
@@ -178,9 +189,18 @@
178
189
  text-transform: ${nr.textTransform};
179
190
  text-decoration: ${nr.textDecoration};
180
191
  }
181
-
182
- `,ql=He.css`
183
- .ft-typography--body1 {
192
+ `,Vl=He.css`
193
+ .ft-typography--body2 {
194
+ font-family: ${Z.fontFamily};
195
+ font-size: ${Z.fontSize};
196
+ font-weight: ${Z.fontWeight};
197
+ letter-spacing: ${Z.letterSpacing};
198
+ line-height: ${Z.lineHeight};
199
+ text-transform: ${Z.textTransform};
200
+ text-decoration: ${Z.textDecoration};
201
+ }
202
+ `,_n=He.css`
203
+ .ft-typography--caption {
184
204
  font-family: ${sr.fontFamily};
185
205
  font-size: ${sr.fontSize};
186
206
  font-weight: ${sr.fontWeight};
@@ -189,18 +209,8 @@
189
209
  text-transform: ${sr.textTransform};
190
210
  text-decoration: ${sr.textDecoration};
191
211
  }
192
- `,Wl=He.css`
193
- .ft-typography--body2 {
194
- font-family: ${J.fontFamily};
195
- font-size: ${J.fontSize};
196
- font-weight: ${J.fontWeight};
197
- letter-spacing: ${J.letterSpacing};
198
- line-height: ${J.lineHeight};
199
- text-transform: ${J.textTransform};
200
- text-decoration: ${J.textDecoration};
201
- }
202
- `,_n=He.css`
203
- .ft-typography--caption {
212
+ `,zl=He.css`
213
+ .ft-typography--breadcrumb {
204
214
  font-family: ${or.fontFamily};
205
215
  font-size: ${or.fontSize};
206
216
  font-weight: ${or.fontWeight};
@@ -209,8 +219,8 @@
209
219
  text-transform: ${or.textTransform};
210
220
  text-decoration: ${or.textDecoration};
211
221
  }
212
- `,Kl=He.css`
213
- .ft-typography--breadcrumb {
222
+ `,jl=He.css`
223
+ .ft-typography--overline {
214
224
  font-family: ${ar.fontFamily};
215
225
  font-size: ${ar.fontSize};
216
226
  font-weight: ${ar.fontWeight};
@@ -219,17 +229,7 @@
219
229
  text-transform: ${ar.textTransform};
220
230
  text-decoration: ${ar.textDecoration};
221
231
  }
222
- `,Gl=He.css`
223
- .ft-typography--overline {
224
- font-family: ${lr.fontFamily};
225
- font-size: ${lr.fontSize};
226
- font-weight: ${lr.fontWeight};
227
- letter-spacing: ${lr.letterSpacing};
228
- line-height: ${lr.lineHeight};
229
- text-transform: ${lr.textTransform};
230
- text-decoration: ${lr.textDecoration};
231
- }
232
- `,Yl=He.css`
232
+ `,ql=He.css`
233
233
  .ft-typography--button {
234
234
  font-family: ${Ke.fontFamily};
235
235
  font-size: ${Ke.fontSize};
@@ -239,19 +239,19 @@
239
239
  text-transform: ${Ke.textTransform};
240
240
  text-decoration: ${Ke.textDecoration};
241
241
  }
242
- `,Xl=He.css`
242
+ `,Wl=He.css`
243
243
  .ft-typography {
244
244
  vertical-align: inherit;
245
245
  }
246
- `;var Ql=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},j=class extends Zl.FtLitElement{constructor(){super(...arguments),this.variant=pe.body1}render(){return this.element?Hs`
247
- <${Us(this.element)}
246
+ `;var Kl=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},z=class extends Gl.FtLitElement{constructor(){super(...arguments),this.variant=de.body1}render(){return this.element?Bs`
247
+ <${Fs(this.element)}
248
248
  part="text"
249
249
  class="ft-typography ft-typography--${this.variant}">
250
250
  <slot></slot>
251
- </${Us(this.element)}>
252
- `:Hs`
251
+ </${Fs(this.element)}>
252
+ `:Bs`
253
253
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
254
- `}};j.styles=[Hl,Vl,zl,jl,ql,Wl,_n,Kl,Gl,Yl,Xl];Ql([(0,Vs.property)()],j.prototype,"element",void 0);Ql([(0,Vs.property)()],j.prototype,"variant",void 0);var ec=d(v());var Jl={"ft-typography":j};(0,ec.customElements)(Jl);var tc=d(R()),Ge=d(v()),Pe={size:Ge.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ge.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ge.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ge.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ge.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ge.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ge.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ge.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},rc=[tc.css`
254
+ `}};z.styles=[$l,Fl,Ul,Bl,Hl,Vl,_n,zl,jl,ql,Wl];Kl([(0,Hs.property)()],z.prototype,"element",void 0);Kl([(0,Hs.property)()],z.prototype,"variant",void 0);var Xl=u(v());var Yl={"ft-typography":z};(0,Xl.customElements)(Yl);var Ql=u(O()),Ge=u(v()),Pe={size:Ge.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ge.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ge.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ge.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ge.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ge.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ge.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ge.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},Zl=[Ql.css`
255
255
  :host, i.ft-icon {
256
256
  display: inline-flex;
257
257
  align-items: center;
@@ -299,12 +299,12 @@
299
299
  .ft-icon--material {
300
300
  font-family: ${Pe.materialFontFamily}, "Material Icons", sans-serif;
301
301
  }
302
- `,Ge.noTextSelect];var Tt;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Tt||(Tt={}));var ci=d(R()),Rt=d(U()),sc=d(v()),oc=d(nc());var Cn;(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;"})(Cn||(Cn={}));var m;(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;"})(m||(m={}));var Yg=new Map([...["abw"].map(t=>[t,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]);var Xg={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var ui=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},fe=class extends sc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ci.nothing}render(){let e=this.variant&&Object.values(Tt).includes(this.variant)?this.variant:Tt.fluid_topics,r=e!==Tt.material||!!this.value;return ci.html`
302
+ `,Ge.noTextSelect];var Ot;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Ot||(Ot={}));var ci=u(O()),Tt=u(F()),tc=u(v()),rc=u(ec());var Cn;(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;"})(Cn||(Cn={}));var m;(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;"})(m||(m={}));var Ng=new Map([...["abw"].map(t=>[t,m.ABW]),...["3gp","act","aiff","aac","amr","au","awb","dct","dss","dvf","gsm","iklax","ivs","mmf","mpc","msv","opus","ra","rm","raw","sln","tta","vox","wv"].map(t=>[t,m.AUDIO]),...["avi"].map(t=>[t,m.AVI]),...["chm","xhs"].map(t=>[t,m.CHM]),...["java","py","php","php3","php4","php5","js","javascript","rb","rbw","c","cpp","cxx","h","hh","hpp","hxx","sh","bash","zsh","tcsh","ksh","csh","vb","scala","pl","prl","perl","groovy","ceylon","aspx","jsp","scpt","applescript","bas","bat","lua","jsp","mk","cmake","css","sass","less","m","mm","xcodeproj"].map(t=>[t,m.CODE]),...["csv"].map(t=>[t,m.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,m.DITA]),...["epub"].map(t=>[t,m.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,m.EXCEL]),...["flac"].map(t=>[t,m.FLAC]),...["gif"].map(t=>[t,m.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,m.GZIP]),...["html","htm","xhtml"].map(t=>[t,m.HTML]),...["ai","vml","xps","img","cpt","psd","psp","xcf","svg","svg+xml","bmp","bpg","ppm","pgm","pbm","pnm","rif","tif","tiff","webp","wmf","ico"].map(t=>[t,m.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,m.JPEG]),...["json"].map(t=>[t,m.JSON]),...["m4a","m4p"].map(t=>[t,m.M4A]),...["mov","qt"].map(t=>[t,m.MOV]),...["mp3"].map(t=>[t,m.MP3]),...["mp4","m4v"].map(t=>[t,m.MP4]),...["ogg","oga"].map(t=>[t,m.OGG]),...["pdf","ps"].map(t=>[t,m.PDF]),...["png"].map(t=>[t,m.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,m.POWERPOINT]),...["rar"].map(t=>[t,m.RAR]),...["stp"].map(t=>[t,m.STP]),...["txt","rtf","md","mdown"].map(t=>[t,m.TEXT]),...["webm","mkv","flv","vob","ogv","ogg","drc","mng","wmv","yuv","rm","rmvb","asf","mpg","mp2","mpeg","mpe","mpv","m2v","svi","3gp","3g2","mxf","roq","nsv"].map(t=>[t,m.VIDEO]),...["wav"].map(t=>[t,m.WAV]),...["wma"].map(t=>[t,m.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,m.WORD]),...["xml","xsl","rdf"].map(t=>[t,m.XML]),...["yaml","yml","x-yaml"].map(t=>[t,m.YAML]),...["zip"].map(t=>[t,m.ZIP])]);var Pg={[m.ABW]:"#91ABC6",[m.AUDIO]:"#1795E3",[m.AVI]:"#E63324",[m.CHM]:"#71C3EB",[m.CODE]:"#71C3EB",[m.CSV]:"#1F7345",[m.DITA]:"#71C3EB",[m.EPUB]:"#85B926",[m.EXCEL]:"#1F7345",[m.FLAC]:"#1795E3",[m.GIF]:"#59B031",[m.GZIP]:"#F8AB36",[m.HTML]:"#71C3EB",[m.IMAGE]:"#59B031",[m.JPEG]:"#59B031",[m.JSON]:"#71C3EB",[m.M4A]:"#1795E3",[m.MOV]:"#E63324",[m.MP3]:"#1795E3",[m.MP4]:"#E63324",[m.OGG]:"#1795E3",[m.PDF]:"#E44948",[m.PNG]:"#59B031",[m.POWERPOINT]:"#B54A2B",[m.RAR]:"#F8AB36",[m.STP]:"#3764B1",[m.TEXT]:"#3162AB",[m.UNKNOWN]:"#999999",[m.VIDEO]:"#E63324",[m.WAV]:"#1795E3",[m.WMA]:"#1795E3",[m.WORD]:"#3162AB",[m.XML]:"#71C3EB",[m.YAML]:"#71C3EB",[m.ZIP]:"#F8AB36"};var ui=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},pe=class extends tc.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=ci.nothing}render(){let e=this.variant&&Object.values(Ot).includes(this.variant)?this.variant:Ot.fluid_topics,r=e!==Ot.material||!!this.value;return ci.html`
303
303
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
304
- ${(0,oc.unsafeHTML)(this.resolvedIcon)}
304
+ ${(0,rc.unsafeHTML)(this.resolvedIcon)}
305
305
  <slot ?hidden=${r}></slot>
306
306
  </i>
307
- `}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 Tt.file_format:this.resolvedIcon=(e=m[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Tt.material:this.resolvedIcon=this.value||ci.nothing;break;default:this.resolvedIcon=(r=Cn[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};fe.elementDefinitions={};fe.styles=rc;ui([(0,Rt.property)()],fe.prototype,"variant",void 0);ui([(0,Rt.property)()],fe.prototype,"value",void 0);ui([(0,Rt.property)({reflect:!0,attribute:"aria-hidden"})],fe.prototype,"ariaHidden",void 0);ui([(0,Rt.state)()],fe.prototype,"resolvedIcon",void 0);ui([(0,Rt.query)("slot")],fe.prototype,"slottedContent",void 0);var lc=d(v());var ac={"ft-icon":fe};(0,lc.customElements)(ac);var Ei=d(R()),T=d(v());var ut=d(v());var Gc=d(R()),je=d(U()),ze=d(v());var cc=d(R()),kt=d(v()),di={distance:kt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:kt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:kt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:kt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",kt.designSystemVariables.borderRadiusS),maxWidth:kt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},uc=cc.css`
307
+ `}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 Ot.file_format:this.resolvedIcon=(e=m[i.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:i;break;case Ot.material:this.resolvedIcon=this.value||ci.nothing;break;default:this.resolvedIcon=(r=Cn[i.replace("-","_").toUpperCase()])!==null&&r!==void 0?r:i;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};pe.elementDefinitions={};pe.styles=Zl;ui([(0,Tt.property)()],pe.prototype,"variant",void 0);ui([(0,Tt.property)()],pe.prototype,"value",void 0);ui([(0,Tt.property)({reflect:!0,attribute:"aria-hidden"})],pe.prototype,"ariaHidden",void 0);ui([(0,Tt.state)()],pe.prototype,"resolvedIcon",void 0);ui([(0,Tt.query)("slot")],pe.prototype,"slottedContent",void 0);var nc=u(v());var ic={"ft-icon":pe};(0,nc.customElements)(ic);var Ei=u(O()),C=u(v());var ut=u(v());var jc=u(O()),je=u(F()),ze=u(v());var sc=u(O()),Rt=u(v()),di={distance:Rt.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:Rt.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:Rt.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:Rt.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",Rt.designSystemVariables.borderRadiusS),maxWidth:Rt.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},oc=sc.css`
308
308
  .ft-tooltip--container {
309
309
  display: block;
310
310
  }
@@ -335,12 +335,12 @@
335
335
  position: relative;
336
336
  word-break: break-word;
337
337
  }
338
- `;var pc=["top","right","bottom","left"],dc=["start","end"],js=pc.reduce((t,e)=>t.concat(e,e+"-"+dc[0],e+"-"+dc[1]),[]),pi=Math.min,Lt=Math.max,fi=Math.round;var at=t=>({x:t,y:t}),Tp={left:"right",right:"left",bottom:"top",top:"bottom"};function fc(t,e,r){return Lt(t,pi(e,r))}function wn(t,e){return typeof t=="function"?t(e):t}function hi(t){return t.split("-")[0]}function Dt(t){return t.split("-")[1]}function qs(t){return t==="x"?"y":"x"}function Ws(t){return t==="y"?"height":"width"}function On(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ks(t){return qs(On(t))}function hc(t,e,r){r===void 0&&(r=!1);let i=Dt(t),n=Ks(t),s=Ws(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=zs(o)),[o,zs(o)]}function mc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function zs(t){let e=hi(t);return Tp[e]+t.slice(e.length)}function Rp(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function yc(t){return typeof t!="number"?Rp(t):{top:t,right:t,bottom:t,left:t}}function cr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function gc(t,e,r){let{reference:i,floating:n}=t,s=On(e),o=Ks(e),a=Ws(o),l=hi(e),c=s==="y",u=i.x+i.width/2-n.width/2,p=i.y+i.height/2-n.height/2,f=i[a]/2-n[a]/2,y;switch(l){case"top":y={x:u,y:i.y-n.height};break;case"bottom":y={x:u,y:i.y+i.height};break;case"right":y={x:i.x+i.width,y:p};break;case"left":y={x:i.x-n.width,y:p};break;default:y={x:i.x,y:i.y}}let x=Dt(e);return x&&(y[o]+=f*(x==="end"?1:-1)*(r&&c?-1:1)),y}async function vc(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=wn(e,t),x=yc(y),b=a[f?p==="floating"?"reference":"floating":p],O=cr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:u,strategy:l})),D=p==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),E=await(s.isElement==null?void 0:s.isElement(S))&&await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1},M=cr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:D,offsetParent:S,strategy:l}):D);return{top:(O.top-M.top+x.top)/E.y,bottom:(M.bottom-O.bottom+x.bottom)/E.y,left:(O.left-M.left+x.left)/E.x,right:(M.right-O.right+x.right)/E.x}}var kp=50,bc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:vc},l=await(o.isRTL==null?void 0:o.isRTL(e)),c=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:p}=gc(c,i,l),f=i,y=0,x={};for(let _=0;_<s.length;_++){let b=s[_];if(!b)continue;let{name:O,fn:D}=b,{x:S,y:E,data:M,reset:L}=await D({x:u,y:p,initialPlacement:i,placement:f,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});u=S??u,p=E??p,x[O]={...x[O],...M},L&&y<kp&&(y++,typeof L=="object"&&(L.placement&&(f=L.placement),L.rects&&(c=L.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):L.rects),{x:u,y:p}=gc(c,f,l)),_=-1)}return{x:u,y:p,placement:f,strategy:n,middlewareData:x}};function Lp(t,e,r){return(t?[...r.filter(n=>Dt(n)===t),...r.filter(n=>Dt(n)!==t)]:r.filter(n=>hi(n)===n)).filter(n=>t?Dt(n)===t||(e?mc(n)!==n:!1):!0)}var xc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=js,autoAlignment:y=!0,...x}=wn(t,e),_=p!==void 0||f===js?Lp(p||null,y,f):f,b=((r=o.autoPlacement)==null?void 0:r.index)||0,O=_[b];if(O==null)return{};if(a!==O)return{reset:{placement:_[0]}};let D=await l.detectOverflow(e,x),S=hc(O,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),E=[D[hi(O)],D[S[0]],D[S[1]]],M=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:O,overflows:E}],L=_[b+1];if(L)return{data:{index:b+1,overflows:M},reset:{placement:L}};let te=M.map(Fe=>{let Vr=Dt(Fe.placement);return[Fe.placement,Vr&&u?Fe.overflows.slice(0,2).reduce((nd,sd)=>nd+sd,0):Fe.overflows[0],Fe.overflows]}).sort((Fe,Vr)=>Fe[1]-Vr[1]),Oi=((n=te.filter(Fe=>Fe[2].slice(0,Dt(Fe[0])?2:3).every(Vr=>Vr<=0))[0])==null?void 0:n[0])||te[0][0];return Oi!==a?{data:{index:b+1,overflows:M},reset:{placement:Oi}}:{}}}};var Sc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:D=>{let{x:S,y:E}=D;return{x:S,y:E}}},...c}=wn(t,e),u={x:r,y:i},p=await s.detectOverflow(e,c),f=On(n),y=qs(f),x=u[y],_=u[f],b=(D,S)=>fc(S+p[D==="y"?"top":"left"],S,S-p[D==="y"?"bottom":"right"]);o&&(x=b(y,x)),a&&(_=b(f,_));let O=l.fn({...e,[y]:x,[f]:_});return{...O,data:{x:O.x-r,y:O.y-i,enabled:{[y]:o,[f]:a}}}}}};function Rn(){return typeof window<"u"}function dr(t){return Ac(t)?(t.nodeName||"").toLowerCase():"#document"}function Ce(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function vt(t){var e;return(e=(Ac(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function Ac(t){return Rn()?t instanceof Node||t instanceof Ce(t).Node:!1}function Ye(t){return Rn()?t instanceof Element||t instanceof Ce(t).Element:!1}function bt(t){return Rn()?t instanceof HTMLElement||t instanceof Ce(t).HTMLElement:!1}function Ec(t){return!Rn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Ce(t).ShadowRoot}function mi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Xe(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function _c(t){return/^(table|td|th)$/.test(dr(t))}function yi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var Dp=/transform|translate|scale|rotate|perspective|filter/,Np=/paint|layout|strict|content/,ur=t=>!!t&&t!=="none",Gs;function Dr(t){let e=Ye(t)?Xe(t):t;return ur(e.transform)||ur(e.translate)||ur(e.scale)||ur(e.rotate)||ur(e.perspective)||!kn()&&(ur(e.backdropFilter)||ur(e.filter))||Dp.test(e.willChange||"")||Np.test(e.contain||"")}function Cc(t){let e=Nt(t);for(;bt(e)&&!Nr(e);){if(Dr(e))return e;if(yi(e))return null;e=Nt(e)}return null}function kn(){return Gs==null&&(Gs=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Gs}function Nr(t){return/^(html|body|#document)$/.test(dr(t))}function Xe(t){return Ce(t).getComputedStyle(t)}function gi(t){return Ye(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Nt(t){if(dr(t)==="html")return t;let e=t.assignedSlot||t.parentNode||Ec(t)&&t.host||vt(t);return Ec(e)?e.host:e}function wc(t){let e=Nt(t);return Nr(e)?(t.ownerDocument||t).body:bt(e)&&mi(e)?e:wc(e)}function Tn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=wc(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=Ce(n);if(s){let a=Ln(o);return e.concat(o,o.visualViewport||[],mi(n)?n:[],a&&r?Tn(a):[])}else return e.concat(n,Tn(n,[],r))}function Ln(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Rc(t){let e=Xe(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=bt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=fi(r)!==s||fi(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function kc(t){return Ye(t)?t:t.contextElement}function Pr(t){let e=kc(t);if(!bt(e))return at(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Rc(e),o=(s?fi(r.width):r.width)/i,a=(s?fi(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Pp=at(0);function Lc(t){let e=Ce(t);return!kn()||!e.visualViewport?Pp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ip(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===Ce(t)}function vi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=kc(t),o=at(1);e&&(i?Ye(i)&&(o=Pr(i)):o=Pr(t));let a=Ip(s,r,i)?Lc(s):at(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,u=n.width/o.x,p=n.height/o.y;if(s&&i){let f=Ce(s),y=Ye(i)?Ce(i):i,x=f,_=Ln(x);for(;_&&y!==x;){let b=Pr(_),O=_.getBoundingClientRect(),D=Xe(_),S=O.left+(_.clientLeft+parseFloat(D.paddingLeft))*b.x,E=O.top+(_.clientTop+parseFloat(D.paddingTop))*b.y;l*=b.x,c*=b.y,u*=b.x,p*=b.y,l+=S,c+=E,x=Ce(_),_=Ln(x)}}return cr({width:u,height:p,x:l,y:c})}function Dn(t,e){let r=gi(t).scrollLeft;return e?e.left+r:vi(vt(t)).left+r}function Dc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Dn(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Mp(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=vt(i),a=e?yi(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=at(1),u=at(0),p=bt(i);if((p||!s)&&((dr(i)!=="body"||mi(o))&&(l=gi(i)),p)){let y=vi(i);c=Pr(i),u.x=y.x+i.clientLeft,u.y=y.y+i.clientTop}let f=o&&!p&&!s?Dc(o,l):at(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 $p(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Fp(t){let e=gi(t),r=t.ownerDocument.body,i=Lt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=Lt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Dn(t),o=-e.scrollTop;return Xe(r).direction==="rtl"&&(s+=Lt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var Up=25;function Bp(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=Ce(t),s=vt(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,u=0;if(o){let f=!kn()||e==="fixed";i?f||(c=-o.offsetLeft,u=-o.offsetTop):(a=o.width,l=o.height,f&&(c=o.offsetLeft,u=o.offsetTop))}if(Dn(s)<=0){let f=s.ownerDocument,y=f.body,x=getComputedStyle(y),_=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(s.clientWidth-y.clientWidth-_),O=getComputedStyle(s).scrollbarGutter==="stable both-edges"?b/2:b;O<=Up&&(a-=O)}return{width:a,height:l,x:c,y:u}}function Hp(t,e){let r=vi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=Pr(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Oc(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Bp(t,r,e);else if(e==="document")i=Fp(vt(t));else if(Ye(e))i=Hp(e,r);else{let n=Lc(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return cr(i)}function Vp(t,e){let r=e.get(t);if(r)return r;let i=Tn(t,[],!1).filter(a=>Ye(a)&&dr(a)!=="body"),n=null,s=Xe(t).position==="fixed",o=s?Nt(t):t;for(;Ye(o)&&!Nr(o);){let a=Xe(o),l=Dr(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(p=>p!==o):n=a,o=Nt(o)}return e.set(t,i),i}function zp(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?yi(e)?[]:Vp(e,this._c):[].concat(r),i],a=Oc(e,o[0],n),l=a.top,c=a.right,u=a.bottom,p=a.left;for(let f=1;f<o.length;f++){let y=Oc(e,o[f],n);l=Lt(y.top,l),c=pi(y.right,c),u=pi(y.bottom,u),p=Lt(y.left,p)}return{width:c-p,height:u-l,x:p,y:l}}function jp(t){let{width:e,height:r}=Rc(t);return{width:e,height:r}}function qp(t,e,r){let i=bt(e),n=vt(e),s=r==="fixed",o=vi(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=at(0);if((i||!s)&&((dr(e)!=="body"||mi(n))&&(a=gi(e)),i)){let f=vi(e,!0,s,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&n&&(l.x=Dn(n));let c=n&&!i&&!s?Dc(n,a):at(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 Ys(t){return Xe(t).position==="static"}function Tc(t,e){if(!bt(t)||Xe(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return vt(t)===r&&(r=r.ownerDocument.body),r}function Nc(t,e){let r=Ce(t);if(yi(t))return r;if(!bt(t)){let n=Nt(t);for(;n&&!Nr(n);){if(Ye(n)&&!Ys(n))return n;n=Nt(n)}return r}let i=Tc(t,e);for(;i&&_c(i)&&Ys(i);)i=Tc(i,e);return i&&Nr(i)&&Ys(i)&&!Dr(i)?r:i||Cc(t)||r}var Wp=async function(t){let e=this.getOffsetParent||Nc,r=this.getDimensions,i=await r(t.floating);return{reference:qp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Kp(t){return Xe(t).direction==="rtl"}var Nn={convertOffsetParentRelativeRectToViewportRelativeRect:Mp,getDocumentElement:vt,getClippingRect:zp,getOffsetParent:Nc,getElementRects:Wp,getClientRects:$p,getDimensions:jp,getScale:Pr,isElement:Ye,isRTL:Kp};var Pc=xc,Ic=Sc;var Mc=(t,e,r)=>{let i=new Map,n=r??{},s={...Nn,...n.platform,_c:i};return bc(t,e,{...n,platform:s})};function $c(t){return Gp(t)}function Xs(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Gp(t){for(let e=t;e;e=Xs(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Xs(t);e;e=Xs(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Dr(r)||e.tagName==="BODY"))return e}return null}async function Fc(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Mc(t,e,{strategy:i.strategy,platform:{...Nn,getOffsetParent:n=>Nn.getOffsetParent(n,$c)},middleware:[Ic({crossAxis:!0}),Pc({allowedPlacements:[i.placement]})]})}var Mr=d(v());var Uc=d(U());var Qs=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-]+$/)}},Ir=new Qs;var Yp=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},xi=Symbol("i18nAttributes"),Bc=Symbol("i18nListAttributes"),Hc=Symbol("i18nProperties"),Pn=Symbol("i18nContexts"),bi=Symbol("i18nUnsubs"),lt=(0,Mr.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(s){return s??this.useCustomMessageContexts?mn:Rr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:u,argsProvider:p}=s;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(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Ir.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(u,p,f)=>f?.context&&f.key&&s(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(o=this[xi])===null||o===void 0||o.forEach((u,p)=>l[p]=c(u,p,l[p])),(a=this[Bc])===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(s){var o;(o=this[Hc])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Pn].set(l,{isCustomContext:a}),this[bi].has(l)||this[bi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Pn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Pn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[bi].forEach(s=>s()),this[bi].clear()}}return e=Pn,r=bi,Yp([(0,Uc.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),In=class extends lt(Mr.FtLitElement){},Mn=class extends lt(Mr.FtLitElementRedux){};var Vc=d(v());var Zs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Ir.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},Xp=new Zs;var zc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Vc.hasChanged,converter:Ir,...e}),r[xi]=(n=r[xi])!==null&&n!==void 0?n:new Map,r[xi].set(i,t??{})};var ct=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?mn:Rr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var jc=d(R());var qc=jc.css`
339
- `;var $n=d(R()),Fr=d(U()),Fn=d(v());var $r=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ve=class extends Mn{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(A)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:$n.nothing:$n.html`
338
+ `;var lc=["top","right","bottom","left"],ac=["start","end"],zs=lc.reduce((t,e)=>t.concat(e,e+"-"+ac[0],e+"-"+ac[1]),[]),pi=Math.min,kt=Math.max,fi=Math.round;var at=t=>({x:t,y:t}),mp={left:"right",right:"left",bottom:"top",top:"bottom"};function cc(t,e,r){return kt(t,pi(e,r))}function wn(t,e){return typeof t=="function"?t(e):t}function hi(t){return t.split("-")[0]}function Lt(t){return t.split("-")[1]}function js(t){return t==="x"?"y":"x"}function qs(t){return t==="y"?"height":"width"}function On(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Ws(t){return js(On(t))}function uc(t,e,r){r===void 0&&(r=!1);let i=Lt(t),n=Ws(t),s=qs(n),o=n==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return e.reference[s]>e.floating[s]&&(o=Vs(o)),[o,Vs(o)]}function dc(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Vs(t){let e=hi(t);return mp[e]+t.slice(e.length)}function yp(t){var e,r,i,n;return{top:(e=t.top)!=null?e:0,right:(r=t.right)!=null?r:0,bottom:(i=t.bottom)!=null?i:0,left:(n=t.left)!=null?n:0}}function pc(t){return typeof t!="number"?yp(t):{top:t,right:t,bottom:t,left:t}}function lr(t){let{x:e,y:r,width:i,height:n}=t;return{width:i,height:n,top:r,left:e,right:e+i,bottom:r+n,x:e,y:r}}function fc(t,e,r){let{reference:i,floating:n}=t,s=On(e),o=Ws(e),a=qs(o),l=hi(e),c=s==="y",p=i.x+i.width/2-n.width/2,d=i.y+i.height/2-n.height/2,f=i[a]/2-n[a]/2,g;switch(l){case"top":g={x:p,y:i.y-n.height};break;case"bottom":g={x:p,y:i.y+i.height};break;case"right":g={x:i.x+i.width,y:d};break;case"left":g={x:i.x-n.width,y:d};break;default:g={x:i.x,y:i.y}}let x=Lt(e);return x&&(g[o]+=f*(x==="end"?1:-1)*(r&&c?-1:1)),g}async function hc(t,e){var r;e===void 0&&(e={});let{x:i,y:n,platform:s,rects:o,elements:a,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:p="viewport",elementContext:d="floating",altBoundary:f=!1,padding:g=0}=wn(e,t),x=pc(g),b=a[f?d==="floating"?"reference":"floating":d],R=lr(await s.getClippingRect({element:(r=await(s.isElement==null?void 0:s.isElement(b)))==null||r?b:b.contextElement||await(s.getDocumentElement==null?void 0:s.getDocumentElement(a.floating)),boundary:c,rootBoundary:p,strategy:l})),P=d==="floating"?{x:i,y:n,width:o.floating.width,height:o.floating.height}:o.reference,S=await(s.getOffsetParent==null?void 0:s.getOffsetParent(a.floating)),w=await(s.isElement==null?void 0:s.isElement(S))&&await(s.getScale==null?void 0:s.getScale(S))||{x:1,y:1},M=lr(s.convertOffsetParentRelativeRectToViewportRelativeRect?await s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:P,offsetParent:S,strategy:l}):P);return{top:(R.top-M.top+x.top)/w.y,bottom:(M.bottom-R.bottom+x.bottom)/w.y,left:(R.left-M.left+x.left)/w.x,right:(M.right-R.right+x.right)/w.x}}var gp=50,mc=async(t,e,r)=>{let{placement:i="bottom",strategy:n="absolute",middleware:s=[],platform:o}=r,a=o.detectOverflow?o:{...o,detectOverflow:hc},l=await(o.isRTL==null?void 0:o.isRTL(e)),c=await o.getElementRects({reference:t,floating:e,strategy:n}),{x:p,y:d}=fc(c,i,l),f=i,g=0,x={};for(let T=0;T<s.length;T++){let b=s[T];if(!b)continue;let{name:R,fn:P}=b,{x:S,y:w,data:M,reset:ee}=await P({x:p,y:d,initialPlacement:i,placement:f,strategy:n,middlewareData:x,rects:c,platform:a,elements:{reference:t,floating:e}});p=S??p,d=w??d,x[R]={...x[R],...M},ee&&g<gp&&(g++,typeof ee=="object"&&(ee.placement&&(f=ee.placement),ee.rects&&(c=ee.rects===!0?await o.getElementRects({reference:t,floating:e,strategy:n}):ee.rects),{x:p,y:d}=fc(c,f,l)),T=-1)}return{x:p,y:d,placement:f,strategy:n,middlewareData:x}};function vp(t,e,r){return(t?[...r.filter(n=>Lt(n)===t),...r.filter(n=>Lt(n)!==t)]:r.filter(n=>hi(n)===n)).filter(n=>t?Lt(n)===t||(e?dc(n)!==n:!1):!0)}var yc=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var r,i,n;let{rects:s,middlewareData:o,placement:a,platform:l,elements:c}=e,{crossAxis:p=!1,alignment:d,allowedPlacements:f=zs,autoAlignment:g=!0,...x}=wn(t,e),T=d!==void 0||f===zs?vp(d||null,g,f):f,b=((r=o.autoPlacement)==null?void 0:r.index)||0,R=T[b];if(R==null)return{};if(a!==R)return{reset:{placement:T[0]}};let P=await l.detectOverflow(e,x),S=uc(R,s,await(l.isRTL==null?void 0:l.isRTL(c.floating))),w=[P[hi(R)],P[S[0]],P[S[1]]],M=[...((i=o.autoPlacement)==null?void 0:i.overflows)||[],{placement:R,overflows:w}],ee=T[b+1];if(ee)return{data:{index:b+1,overflows:M},reset:{placement:ee}};let Le=M.map(Fe=>{let Hr=Lt(Fe.placement);return[Fe.placement,Hr&&p?Fe.overflows.slice(0,2).reduce((ed,td)=>ed+td,0):Fe.overflows[0],Fe.overflows]}).sort((Fe,Hr)=>Fe[1]-Hr[1]),Oi=((n=Le.filter(Fe=>Fe[2].slice(0,Lt(Fe[0])?2:3).every(Hr=>Hr<=0))[0])==null?void 0:n[0])||Le[0][0];return Oi!==a?{data:{index:b+1,overflows:M},reset:{placement:Oi}}:{}}}};var gc=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:r,y:i,placement:n,platform:s}=e,{mainAxis:o=!0,crossAxis:a=!1,limiter:l={fn:P=>{let{x:S,y:w}=P;return{x:S,y:w}}},...c}=wn(t,e),p={x:r,y:i},d=await s.detectOverflow(e,c),f=On(n),g=js(f),x=p[g],T=p[f],b=(P,S)=>cc(S+d[P==="y"?"top":"left"],S,S-d[P==="y"?"bottom":"right"]);o&&(x=b(g,x)),a&&(T=b(f,T));let R=l.fn({...e,[g]:x,[f]:T});return{...R,data:{x:R.x-r,y:R.y-i,enabled:{[g]:o,[f]:a}}}}}};function Rn(){return typeof window<"u"}function ur(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 vt(t){var e;return(e=(bc(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function bc(t){return Rn()?t instanceof Node||t instanceof _e(t).Node:!1}function Ye(t){return Rn()?t instanceof Element||t instanceof _e(t).Element:!1}function bt(t){return Rn()?t instanceof HTMLElement||t instanceof _e(t).HTMLElement:!1}function vc(t){return!Rn()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof _e(t).ShadowRoot}function mi(t){let{overflow:e,overflowX:r,overflowY:i,display:n}=Xe(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+r)&&n!=="inline"&&n!=="contents"}function xc(t){return/^(table|td|th)$/.test(ur(t))}function yi(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var bp=/transform|translate|scale|rotate|perspective|filter/,xp=/paint|layout|strict|content/,cr=t=>!!t&&t!=="none",Ks;function Lr(t){let e=Ye(t)?Xe(t):t;return cr(e.transform)||cr(e.translate)||cr(e.scale)||cr(e.rotate)||cr(e.perspective)||!kn()&&(cr(e.backdropFilter)||cr(e.filter))||bp.test(e.willChange||"")||xp.test(e.contain||"")}function Sc(t){let e=Dt(t);for(;bt(e)&&!Dr(e);){if(Lr(e))return e;if(yi(e))return null;e=Dt(e)}return null}function kn(){return Ks==null&&(Ks=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ks}function Dr(t){return/^(html|body|#document)$/.test(ur(t))}function Xe(t){return _e(t).getComputedStyle(t)}function gi(t){return Ye(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function Dt(t){if(ur(t)==="html")return t;let e=t.assignedSlot||t.parentNode||vc(t)&&t.host||vt(t);return vc(e)?e.host:e}function Ec(t){let e=Dt(t);return Dr(e)?(t.ownerDocument||t).body:bt(e)&&mi(e)?e:Ec(e)}function Tn(t,e,r){var i;e===void 0&&(e=[]),r===void 0&&(r=!0);let n=Ec(t),s=n===((i=t.ownerDocument)==null?void 0:i.body),o=_e(n);if(s){let a=Ln(o);return e.concat(o,o.visualViewport||[],mi(n)?n:[],a&&r?Tn(a):[])}else return e.concat(n,Tn(n,[],r))}function Ln(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Cc(t){let e=Xe(t),r=parseFloat(e.width)||0,i=parseFloat(e.height)||0,n=bt(t),s=n?t.offsetWidth:r,o=n?t.offsetHeight:i,a=fi(r)!==s||fi(i)!==o;return a&&(r=s,i=o),{width:r,height:i,$:a}}function wc(t){return Ye(t)?t:t.contextElement}function Nr(t){let e=wc(t);if(!bt(e))return at(1);let r=e.getBoundingClientRect(),{width:i,height:n,$:s}=Cc(e),o=(s?fi(r.width):r.width)/i,a=(s?fi(r.height):r.height)/n;return(!o||!Number.isFinite(o))&&(o=1),(!a||!Number.isFinite(a))&&(a=1),{x:o,y:a}}var Sp=at(0);function Oc(t){let e=_e(t);return!kn()||!e.visualViewport?Sp:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Ep(t,e,r){return e===void 0&&(e=!1),!!r&&e&&r===_e(t)}function vi(t,e,r,i){e===void 0&&(e=!1),r===void 0&&(r=!1);let n=t.getBoundingClientRect(),s=wc(t),o=at(1);e&&(i?Ye(i)&&(o=Nr(i)):o=Nr(t));let a=Ep(s,r,i)?Oc(s):at(0),l=(n.left+a.x)/o.x,c=(n.top+a.y)/o.y,p=n.width/o.x,d=n.height/o.y;if(s&&i){let f=_e(s),g=Ye(i)?_e(i):i,x=f,T=Ln(x);for(;T&&g!==x;){let b=Nr(T),R=T.getBoundingClientRect(),P=Xe(T),S=R.left+(T.clientLeft+parseFloat(P.paddingLeft))*b.x,w=R.top+(T.clientTop+parseFloat(P.paddingTop))*b.y;l*=b.x,c*=b.y,p*=b.x,d*=b.y,l+=S,c+=w,x=_e(T),T=Ln(x)}}return lr({width:p,height:d,x:l,y:c})}function Dn(t,e){let r=gi(t).scrollLeft;return e?e.left+r:vi(vt(t)).left+r}function Tc(t,e){let r=t.getBoundingClientRect(),i=r.left+e.scrollLeft-Dn(t,r),n=r.top+e.scrollTop;return{x:i,y:n}}function Ap(t){let{elements:e,rect:r,offsetParent:i,strategy:n}=t,s=n==="fixed",o=vt(i),a=e?yi(e.floating):!1;if(i===o||a&&s)return r;let l={scrollLeft:0,scrollTop:0},c=at(1),p=at(0),d=bt(i);if((d||!s)&&((ur(i)!=="body"||mi(o))&&(l=gi(i)),d)){let g=vi(i);c=Nr(i),p.x=g.x+i.clientLeft,p.y=g.y+i.clientTop}let f=o&&!d&&!s?Tc(o,l):at(0);return{width:r.width*c.x,height:r.height*c.y,x:r.x*c.x-l.scrollLeft*c.x+p.x+f.x,y:r.y*c.y-l.scrollTop*c.y+p.y+f.y}}function _p(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function Cp(t){let e=gi(t),r=t.ownerDocument.body,i=kt(t.scrollWidth,t.clientWidth,r.scrollWidth,r.clientWidth),n=kt(t.scrollHeight,t.clientHeight,r.scrollHeight,r.clientHeight),s=-e.scrollLeft+Dn(t),o=-e.scrollTop;return Xe(r).direction==="rtl"&&(s+=kt(t.clientWidth,r.clientWidth)-i),{width:i,height:n,x:s,y:o}}var wp=25;function Op(t,e,r){r===void 0&&(r="viewport");let i=r==="layoutViewport",n=_e(t),s=vt(t),o=n.visualViewport,a=s.clientWidth,l=s.clientHeight,c=0,p=0;if(o){let f=!kn()||e==="fixed";i?f||(c=-o.offsetLeft,p=-o.offsetTop):(a=o.width,l=o.height,f&&(c=o.offsetLeft,p=o.offsetTop))}if(Dn(s)<=0){let f=s.ownerDocument,g=f.body,x=getComputedStyle(g),T=f.compatMode==="CSS1Compat"&&parseFloat(x.marginLeft)+parseFloat(x.marginRight)||0,b=Math.abs(s.clientWidth-g.clientWidth-T),R=getComputedStyle(s).scrollbarGutter==="stable both-edges"?b/2:b;R<=wp&&(a-=R)}return{width:a,height:l,x:c,y:p}}function Tp(t,e){let r=vi(t,!0,e==="fixed"),i=r.top+t.clientTop,n=r.left+t.clientLeft,s=Nr(t),o=t.clientWidth*s.x,a=t.clientHeight*s.y,l=n*s.x,c=i*s.y;return{width:o,height:a,x:l,y:c}}function Ac(t,e,r){let i;if(e==="viewport"||e==="layoutViewport")i=Op(t,r,e);else if(e==="document")i=Cp(vt(t));else if(Ye(e))i=Tp(e,r);else{let n=Oc(t);i={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return lr(i)}function Rp(t,e){let r=e.get(t);if(r)return r;let i=Tn(t,[],!1).filter(a=>Ye(a)&&ur(a)!=="body"),n=null,s=Xe(t).position==="fixed",o=s?Dt(t):t;for(;Ye(o)&&!Dr(o);){let a=Xe(o),l=Lr(o),c=n?n.position:s?"fixed":"";!l&&(c==="fixed"||c==="absolute"&&a.position==="static")?i=i.filter(d=>d!==o):n=a,o=Dt(o)}return e.set(t,i),i}function kp(t){let{element:e,boundary:r,rootBoundary:i,strategy:n}=t,o=[...r==="clippingAncestors"?yi(e)?[]:Rp(e,this._c):[].concat(r),i],a=Ac(e,o[0],n),l=a.top,c=a.right,p=a.bottom,d=a.left;for(let f=1;f<o.length;f++){let g=Ac(e,o[f],n);l=kt(g.top,l),c=pi(g.right,c),p=pi(g.bottom,p),d=kt(g.left,d)}return{width:c-d,height:p-l,x:d,y:l}}function Lp(t){let{width:e,height:r}=Cc(t);return{width:e,height:r}}function Dp(t,e,r){let i=bt(e),n=vt(e),s=r==="fixed",o=vi(t,!0,s,e),a={scrollLeft:0,scrollTop:0},l=at(0);if((i||!s)&&((ur(e)!=="body"||mi(n))&&(a=gi(e)),i)){let f=vi(e,!0,s,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!i&&n&&(l.x=Dn(n));let c=n&&!i&&!s?Tc(n,a):at(0),p=o.left+a.scrollLeft-l.x-c.x,d=o.top+a.scrollTop-l.y-c.y;return{x:p,y:d,width:o.width,height:o.height}}function Gs(t){return Xe(t).position==="static"}function _c(t,e){if(!bt(t)||Xe(t).position==="fixed")return null;if(e)return e(t);let r=t.offsetParent;return vt(t)===r&&(r=r.ownerDocument.body),r}function Rc(t,e){let r=_e(t);if(yi(t))return r;if(!bt(t)){let n=Dt(t);for(;n&&!Dr(n);){if(Ye(n)&&!Gs(n))return n;n=Dt(n)}return r}let i=_c(t,e);for(;i&&xc(i)&&Gs(i);)i=_c(i,e);return i&&Dr(i)&&Gs(i)&&!Lr(i)?r:i||Sc(t)||r}var Np=async function(t){let e=this.getOffsetParent||Rc,r=this.getDimensions,i=await r(t.floating);return{reference:Dp(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}};function Pp(t){return Xe(t).direction==="rtl"}var Nn={convertOffsetParentRelativeRectToViewportRelativeRect:Ap,getDocumentElement:vt,getClippingRect:kp,getOffsetParent:Rc,getElementRects:Np,getClientRects:_p,getDimensions:Lp,getScale:Nr,isElement:Ye,isRTL:Pp};var kc=yc,Lc=gc;var Dc=(t,e,r)=>{let i=new Map,n=r??{},s={...Nn,...n.platform,_c:i};return mc(t,e,{...n,platform:s})};function Nc(t){return Ip(t)}function Ys(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Ip(t){for(let e=t;e;e=Ys(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=Ys(t);e;e=Ys(e)){if(!(e instanceof Element))continue;let r=getComputedStyle(e);if(r.display!=="contents"&&(r.position!=="static"||Lr(r)||e.tagName==="BODY"))return e}return null}async function Pc(t,e,r){let i;return typeof r=="object"?i=r:i={placement:r},Dc(t,e,{strategy:i.strategy,platform:{...Nn,getOffsetParent:n=>Nn.getOffsetParent(n,Nc)},middleware:[Lc({crossAxis:!0}),kc({allowedPlacements:[i.placement]})]})}var Ir=u(v());var Ic=u(F());var Xs=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-]+$/)}},Pr=new Xs;var Mp=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},xi=Symbol("i18nAttributes"),Mc=Symbol("i18nListAttributes"),$c=Symbol("i18nProperties"),Pn=Symbol("i18nContexts"),bi=Symbol("i18nUnsubs"),lt=(0,Ir.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(s){return s??this.useCustomMessageContexts?mn:Tr}i18n(s){let{context:o,key:a,message:l}=s,{custom:c,args:p,argsProvider:d}=s;if(o&&a){this.hasI18nContext(o)||this.addI18nContext(o,void 0,c);let f=p??(d?d(this):[]);return this.getI18nService(c).resolveMessage(o,a,...f)}return l}async awaitI18n(s){let{context:o,custom:a}=s;return o&&await this.getI18nService(a).prepareContext(o),this.i18n(s)}customI18n(s,o){if(Pr.isI18nKey(s)){let[a,l]=s.split(".");return this.i18n({custom:!0,context:a,key:l,...o})||s}return s}firstUpdated(s){super.firstUpdated(s),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(s){super.update(s),this.updateI18nAttributes((o,a,l)=>s.has(a)||typeof o.argsProvider=="function"),this.updateI18nProperties(o=>typeof o.argsProvider=="function")}onI18nUpdate(s){this.updateI18nAttributes((o,a,l)=>{var c;return((c=l?.context)===null||c===void 0?void 0:c.toLowerCase())===s}),this.updateI18nProperties(o=>o.context.toLowerCase()===s),this.requestUpdate()}updateI18nAttributes(s){var o,a;let l=this,c=(p,d,f)=>f?.context&&f.key&&s(p,d,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...p})}:f;(o=this[xi])===null||o===void 0||o.forEach((p,d)=>l[d]=c(p,d,l[d])),(a=this[Mc])===null||a===void 0||a.forEach((p,d)=>{var f;return l[d]=(f=l[d])===null||f===void 0?void 0:f.map(g=>c(p,d,g))})}updateI18nProperties(s){var o;(o=this[$c])===null||o===void 0||o.forEach((a,l)=>{s(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(s,o,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(s,o,a)}addI18nContext(s,o,a){let l=(typeof s=="string"?s:s.name).toLowerCase();a=typeof s=="string"?a:s.custom,this[Pn].set(l,{isCustomContext:a}),this[bi].has(l)||this[bi].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,o)}hasI18nContext(s){return this[Pn].has(s.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Pn].forEach((s,o)=>this.addI18nContext(o,void 0,s.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[bi].forEach(s=>s()),this[bi].clear()}}return e=Pn,r=bi,Mp([(0,Ic.property)({type:Boolean})],i.prototype,"useCustomMessageContexts",void 0),i}),In=class extends lt(Ir.FtLitElement){},Mn=class extends lt(Ir.FtLitElementRedux){};var Fc=u(v());var Qs=class{fromAttribute(e){if(!e)return[];try{let r=JSON.parse(e);return Array.isArray(r)?r.map(i=>typeof i=="string"?Pr.fromAttribute(i):i):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},$p=new Qs;var Uc=(t,e)=>(r,i)=>{var n;r.constructor.createProperty(i,{type:Object,hasChanged:Fc.hasChanged,converter:Pr,...e}),r[xi]=(n=r[xi])!==null&&n!==void 0?n:new Map,r[xi].set(i,t??{})};var ct=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?mn:Tr}constructor(e,r=!1){this.name=e,this.custom=r,this.properties=new Proxy({},{get:(i,n)=>{let s=n;return o=>({context:this.name,key:s,custom:this.custom,args:typeof o=="function"?void 0:o,argsProvider:typeof o=="function"?o:void 0})}}),this.messages=new Proxy({},{get:(i,n)=>(...s)=>this.service.resolveMessage(this.name,n,...s)}),this.rawMessages=new Proxy({},{get:(i,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(i,n)=>()=>n}),this.attributes=new Proxy({},{get:(i,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Bc=u(O());var Hc=Bc.css`
339
+ `;var $n=u(O()),$r=u(F()),Fn=u(v());var Mr=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Ve=class extends Mn{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:$n.nothing:$n.html`
340
340
  <span class="ft-i18n">
341
341
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
342
342
  </span>
343
- `}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=qc;$r([(0,Fn.redux)()],Ve.prototype,"editorMode",void 0);$r([(0,Fr.property)()],Ve.prototype,"context",void 0);$r([(0,Fr.property)()],Ve.prototype,"key",void 0);$r([(0,Fn.jsonProperty)([])],Ve.prototype,"args",void 0);$r([(0,Fr.property)()],Ve.prototype,"defaultMessage",void 0);$r([(0,Fr.state)()],Ve.prototype,"editorMessage",void 0);var Kc=d(v());var Wc={"ft-i18n":Ve};(0,Kc.customElements)(Wc);var Qe=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},K=class extends In{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 ze.Debouncer,this.revealDebouncer=new ze.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 Gc.html`
343
+ `}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;Mr([(0,Fn.redux)()],Ve.prototype,"editorMode",void 0);Mr([(0,$r.property)()],Ve.prototype,"context",void 0);Mr([(0,$r.property)()],Ve.prototype,"key",void 0);Mr([(0,Fn.jsonProperty)([])],Ve.prototype,"args",void 0);Mr([(0,$r.property)()],Ve.prototype,"defaultMessage",void 0);Mr([(0,$r.state)()],Ve.prototype,"editorMessage",void 0);var zc=u(v());var Vc={"ft-i18n":Ve};(0,zc.customElements)(Vc);var Qe=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},W=class extends In{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 ze.Debouncer,this.revealDebouncer=new ze.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`
344
344
  <div part="container"
345
345
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
346
346
  <slot part="slot"></slot>
@@ -349,13 +349,13 @@
349
349
  popover="manual">
350
350
  <div part="tooltip-content" class="ft-tooltip--content">
351
351
  <slot name="text"></slot>
352
- <ft-typography variant="${pe.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
352
+ <ft-typography variant="${de.caption}" ?hidden=${!(!((e=this.text)===null||e===void 0)&&e.message)}>
353
353
  ${(r=this.text)===null||r===void 0?void 0:r.message}
354
354
  </ft-typography>
355
355
  </div>
356
356
  </div>
357
357
  </div>
358
- `}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 n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var 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&&Fc(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 ${ze.designSystemVariables.transitionDuration}, left ${ze.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,ze.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};K.elementDefinitions={"ft-typography":j};K.styles=uc;Qe([zc()],K.prototype,"text",void 0);Qe([(0,je.property)({type:Boolean})],K.prototype,"manual",void 0);Qe([(0,je.property)({type:Boolean})],K.prototype,"inline",void 0);Qe([(0,ze.numberProperty)()],K.prototype,"delay",void 0);Qe([(0,je.property)()],K.prototype,"position",void 0);Qe([(0,ze.jsonProperty)([])],K.prototype,"ignoreMatchingElements",void 0);Qe([(0,je.queryAssignedNodes)()],K.prototype,"slotNodes",void 0);Qe([(0,je.query)(".ft-tooltip--container")],K.prototype,"container",void 0);Qe([(0,je.query)(".ft-tooltip")],K.prototype,"tooltip",void 0);Qe([(0,je.query)(".ft-tooltip--content")],K.prototype,"tooltipContent",void 0);Qe([(0,je.state)()],K.prototype,"visible",void 0);var Xc=d(v());var Yc={"ft-tooltip":K};(0,Xc.customElements)(Yc);var Qc=d(R()),Si=d(v()),pr={color:Si.FtCssVariableFactory.extend("--ft-loader-color","",Si.designSystemVariables.colorPrimary),size:Si.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Zc=Qc.css`
358
+ `}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 n=this.text;this.text={message:e},await this.show(r),this.text=n,this.manual=i}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var 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&&Pc(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 ${ze.designSystemVariables.transitionDuration}, left ${ze.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,ze.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};W.elementDefinitions={"ft-typography":z};W.styles=oc;Qe([Uc()],W.prototype,"text",void 0);Qe([(0,je.property)({type:Boolean})],W.prototype,"manual",void 0);Qe([(0,je.property)({type:Boolean})],W.prototype,"inline",void 0);Qe([(0,ze.numberProperty)()],W.prototype,"delay",void 0);Qe([(0,je.property)()],W.prototype,"position",void 0);Qe([(0,ze.jsonProperty)([])],W.prototype,"ignoreMatchingElements",void 0);Qe([(0,je.queryAssignedNodes)()],W.prototype,"slotNodes",void 0);Qe([(0,je.query)(".ft-tooltip--container")],W.prototype,"container",void 0);Qe([(0,je.query)(".ft-tooltip")],W.prototype,"tooltip",void 0);Qe([(0,je.query)(".ft-tooltip--content")],W.prototype,"tooltipContent",void 0);Qe([(0,je.state)()],W.prototype,"visible",void 0);var Wc=u(v());var qc={"ft-tooltip":W};(0,Wc.customElements)(qc);var Kc=u(O()),Si=u(v()),dr={color:Si.FtCssVariableFactory.extend("--ft-loader-color","",Si.designSystemVariables.colorPrimary),size:Si.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Gc=Kc.css`
359
359
  :host {
360
360
  line-height: 0;
361
361
  }
@@ -364,8 +364,8 @@
364
364
  display: inline-block;
365
365
  position: relative;
366
366
 
367
- width: ${pr.size};
368
- height: ${pr.size};
367
+ width: ${dr.size};
368
+ height: ${dr.size};
369
369
  }
370
370
 
371
371
  .ft-loader div {
@@ -374,7 +374,7 @@
374
374
  width: 25%;
375
375
  height: 25%;
376
376
  border-radius: 50%;
377
- background: ${pr.color};
377
+ background: ${dr.color};
378
378
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
379
379
  }
380
380
 
@@ -421,17 +421,17 @@
421
421
  transform: translate(0, 0);
422
422
  }
423
423
  100% {
424
- transform: translate(calc(0.35 * ${pr.size}), 0);
424
+ transform: translate(calc(0.35 * ${dr.size}), 0);
425
425
  }
426
426
  }
427
- `;var Jc=d(R()),eu=d(v());var fr=class extends eu.FtLitElement{render(){return Jc.html`
427
+ `;var Yc=u(O()),Xc=u(v());var pr=class extends Xc.FtLitElement{render(){return Yc.html`
428
428
  <div class="ft-loader">
429
429
  <div></div>
430
430
  <div></div>
431
431
  <div></div>
432
432
  <div></div>
433
433
  </div>
434
- `}};fr.styles=Zc;var ru=d(v());var tu={"ft-loader":fr};(0,ru.customElements)(tu);var It=d(R()),Bn=d(Qt()),P=d(U());var Pt=t=>t??Z;var Un=d(R()),C=d(v());var iu=C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorPrimary),k={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorSurface),borderRadius:C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusL),color:iu,fontSize:C.FtCssVariableFactory.extend("--ft-button-font-size","",Ke.fontSize),iconSize:C.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:C.FtCssVariableFactory.extend("--ft-button-ripple-color","",iu),verticalPadding:C.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:C.FtCssVariableFactory.external(C.designSystemVariables.colorOpacityDisabled,"Design system")},nu=C.FtCssVariableFactory.extend("--ft-button-primary-color","",C.FtCssVariableFactory.extend("--ft-button-color","",C.designSystemVariables.colorOnPrimary)),Js={backgroundColor:C.FtCssVariableFactory.extend("--ft-button-primary-background-color","",C.FtCssVariableFactory.extend("--ft-button-background-color","",C.designSystemVariables.colorPrimary)),color:nu,rippleColor:C.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",nu)},Ze={borderRadius:C.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",C.FtCssVariableFactory.extend("--ft-button-border-radius","",C.designSystemVariables.borderRadiusM)),verticalPadding:C.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:C.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:C.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},su=Un.css`
434
+ `}};pr.styles=Gc;var Zc=u(v());var Qc={"ft-loader":pr};(0,Zc.customElements)(Qc);var Pt=u(O()),Bn=u(Xt()),D=u(F());var Nt=t=>t??Q;var Un=u(O()),A=u(v());var Jc=A.FtCssVariableFactory.extend("--ft-button-color","",A.designSystemVariables.colorPrimary),k={backgroundColor:A.FtCssVariableFactory.extend("--ft-button-background-color","",A.designSystemVariables.colorSurface),borderRadius:A.FtCssVariableFactory.extend("--ft-button-border-radius","",A.designSystemVariables.borderRadiusL),color:Jc,fontSize:A.FtCssVariableFactory.extend("--ft-button-font-size","",Ke.fontSize),iconSize:A.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:A.FtCssVariableFactory.extend("--ft-button-ripple-color","",Jc),verticalPadding:A.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:A.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:A.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:A.FtCssVariableFactory.external(A.designSystemVariables.colorOpacityDisabled,"Design system")},eu=A.FtCssVariableFactory.extend("--ft-button-primary-color","",A.FtCssVariableFactory.extend("--ft-button-color","",A.designSystemVariables.colorOnPrimary)),Zs={backgroundColor:A.FtCssVariableFactory.extend("--ft-button-primary-background-color","",A.FtCssVariableFactory.extend("--ft-button-background-color","",A.designSystemVariables.colorPrimary)),color:eu,rippleColor:A.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",eu)},Ze={borderRadius:A.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",A.FtCssVariableFactory.extend("--ft-button-border-radius","",A.designSystemVariables.borderRadiusM)),verticalPadding:A.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:A.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:A.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},tu=Un.css`
435
435
  :host {
436
436
  display: inline-block;
437
437
  max-width: 100%;
@@ -454,9 +454,9 @@
454
454
 
455
455
  --button-internal-line-height: max(calc(${k.fontSize} + 2px), ${k.iconSize});
456
456
  --button-internal-color: ${k.color};
457
- ${(0,C.setVariable)(Pe.size,k.iconSize)};
458
- ${(0,C.setVariable)(re.color,k.rippleColor)};
459
- ${(0,C.setVariable)(re.borderRadius,k.borderRadius)};
457
+ ${(0,A.setVariable)(Pe.size,k.iconSize)};
458
+ ${(0,A.setVariable)(te.color,k.rippleColor)};
459
+ ${(0,A.setVariable)(te.borderRadius,k.borderRadius)};
460
460
 
461
461
  border-radius: ${k.borderRadius};
462
462
  padding: ${k.verticalPadding} ${k.horizontalPadding};
@@ -470,8 +470,8 @@
470
470
  text-overflow: ellipsis;
471
471
  display: block;
472
472
  margin: 0 ${k.iconPadding};
473
- ${(0,C.setVariable)(Ke.fontSize,"1em")};
474
- ${(0,C.setVariable)(Ke.lineHeight,"var(--button-internal-line-height)")};
473
+ ${(0,A.setVariable)(Ke.fontSize,"1em")};
474
+ ${(0,A.setVariable)(Ke.lineHeight,"var(--button-internal-line-height)")};
475
475
  }
476
476
 
477
477
  [part="icon"] {
@@ -500,7 +500,7 @@
500
500
  }
501
501
 
502
502
  &:focus-visible {
503
- outline: 2px solid ${C.designSystemVariables.colorPrimary};
503
+ outline: 2px solid ${A.designSystemVariables.colorPrimary};
504
504
  outline-offset: 2px;
505
505
  }
506
506
 
@@ -510,9 +510,9 @@
510
510
  }
511
511
 
512
512
  &.ft-button--primary {
513
- background-color: ${Js.backgroundColor};
514
- --button-internal-color: ${Js.color};
515
- ${(0,C.setVariable)(re.color,Js.rippleColor)};
513
+ background-color: ${Zs.backgroundColor};
514
+ --button-internal-color: ${Zs.color};
515
+ ${(0,A.setVariable)(te.color,Zs.rippleColor)};
516
516
  }
517
517
 
518
518
  &.ft-button--outlined {
@@ -523,7 +523,7 @@
523
523
  &.ft-button--dense {
524
524
  padding: ${Ze.verticalPadding} ${Ze.horizontalPadding};
525
525
  border-radius: ${Ze.borderRadius};
526
- ${(0,C.setVariable)(re.borderRadius,Ze.borderRadius)};
526
+ ${(0,A.setVariable)(te.borderRadius,Ze.borderRadius)};
527
527
 
528
528
  .ft-button--label {
529
529
  margin: 0 ${Ze.iconPadding};
@@ -536,12 +536,12 @@
536
536
 
537
537
  &.ft-button--round {
538
538
  border-radius: calc(var(--button-internal-line-height) / 2 + ${k.verticalPadding});
539
- ${(0,C.setVariable)(re.borderRadius,Un.css`calc(var(--button-internal-line-height) / 2 + ${k.verticalPadding})`)};
539
+ ${(0,A.setVariable)(te.borderRadius,Un.css`calc(var(--button-internal-line-height) / 2 + ${k.verticalPadding})`)};
540
540
  }
541
541
 
542
542
  &.ft-button--round.ft-button--dense {
543
543
  border-radius: calc(var(--button-internal-line-height) / 2 + ${Ze.verticalPadding});
544
- ${(0,C.setVariable)(re.borderRadius,Un.css`calc(var(--button-internal-line-height) / 2 + ${Ze.verticalPadding})`)};
544
+ ${(0,A.setVariable)(te.borderRadius,Un.css`calc(var(--button-internal-line-height) / 2 + ${Ze.verticalPadding})`)};
545
545
  }
546
546
 
547
547
  &.ft-button--no-text {
@@ -570,52 +570,52 @@
570
570
  }
571
571
 
572
572
  ft-loader {
573
- ${(0,C.setVariable)(pr.size,k.iconSize)};
574
- ${(0,C.setVariable)(pr.color,"var(--button-internal-color)")};
573
+ ${(0,A.setVariable)(dr.size,k.iconSize)};
574
+ ${(0,A.setVariable)(dr.color,"var(--button-internal-color)")};
575
575
  }
576
- `;var F=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},w=class t extends(0,ut.toFtFormComponent)(ut.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var 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 n={"ft-button--label":!0,"ft-safari-ellipsis-fix":ut.isSafari},s=It.html`
576
+ `;var $=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},_=class t extends(0,ut.toFtFormComponent)(ut.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.ariaExpanded=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var 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 n={"ft-button--label":!0,"ft-safari-ellipsis-fix":ut.isSafari},s=Pt.html`
577
577
  <ft-ripple part="ripple"
578
578
  ?disabled=${this.isDisabled()}
579
579
  ?activated=${this.activated}
580
580
  ></ft-ripple>
581
581
  <ft-typography part="label"
582
- variant="${pe.button}"
582
+ variant="${de.button}"
583
583
  element="span"
584
584
  class="${(0,Bn.classMap)(n)}">
585
585
  <slot></slot>
586
586
  </ft-typography>
587
587
  ${this.resolveIcon()}
588
- `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?It.html`
588
+ `,o=this.href!=null&&this.href.trim().length>0?this.href:void 0;return this.addTooltipIfNeeded(o?Pt.html`
589
589
  <a href="${o}"
590
590
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
591
591
  part="button"
592
592
  class="${(0,Bn.classMap)(this.buttonClasses)}"
593
- aria-label="${Pt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
593
+ aria-label="${Nt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
594
594
  ?disabled=${this.isDisabled()}>
595
595
  ${s}
596
596
  </a>
597
- `:It.html`
597
+ `:Pt.html`
598
598
  <button part="button"
599
599
  class="${(0,Bn.classMap)(this.buttonClasses)}"
600
- aria-label="${Pt((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
601
- aria-haspopup="${Pt(this.ariaHasPopup)}"
602
- aria-pressed="${Pt(this.ariaPressed)}"
603
- aria-expanded="${Pt(this.ariaExpanded)}"
600
+ aria-label="${Nt((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
601
+ aria-haspopup="${Nt(this.ariaHasPopup)}"
602
+ aria-pressed="${Nt(this.ariaPressed)}"
603
+ aria-expanded="${Nt(this.ariaExpanded)}"
604
604
  ?disabled=${this.isDisabled()}>
605
605
  ${s}
606
606
  </button>
607
- `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?It.html`
607
+ `)}addTooltipIfNeeded(e){return this.label&&this.label.trim().length>0&&(this.forceTooltip||!this.hasTextContent&&!this.hideTooltip)?Pt.html`
608
608
  <ft-tooltip part="tooltip"
609
609
  text="${this.label}"
610
610
  position="${this.tooltipPosition}">
611
611
  ${e}
612
612
  </ft-tooltip>
613
- `:e}resolveIcon(){return this.loading?It.html`
614
- <ft-loader part="loader icon"></ft-loader> `:this.icon?It.html`
613
+ `:e}resolveIcon(){return this.loading?Pt.html`
614
+ <ft-loader part="loader icon"></ft-loader> `:this.icon?Pt.html`
615
615
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
616
- `:It.html`
616
+ `:Pt.html`
617
617
  <slot part="icon" name="icon"></slot>
618
- `}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)}};w.elementDefinitions={"ft-ripple":N,"ft-tooltip":K,"ft-icon":fe,"ft-loader":fr,"ft-typography":j};w.styles=[ut.safariEllipsisFix,su,ut.noTextSelect];w.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:w.labelsObserver.unobserve(e.target)}});F([(0,P.property)({type:Boolean})],w.prototype,"primary",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"outlined",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"dense",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"round",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"disabled",void 0);F([(0,P.property)()],w.prototype,"icon",void 0);F([(0,P.property)()],w.prototype,"iconVariant",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"trailingIcon",void 0);F([(0,P.property)()],w.prototype,"label",void 0);F([(0,P.property)()],w.prototype,"type",void 0);F([(0,P.property)()],w.prototype,"href",void 0);F([(0,P.property)()],w.prototype,"target",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"loading",void 0);F([(0,P.property)({attribute:"aria-label"})],w.prototype,"ariaLabel",void 0);F([(0,P.property)()],w.prototype,"ariaHasPopup",void 0);F([(0,P.property)({attribute:"aria-pressed"})],w.prototype,"ariaPressed",void 0);F([(0,P.property)({attribute:"aria-expanded"})],w.prototype,"ariaExpanded",void 0);F([(0,P.property)()],w.prototype,"tooltipPosition",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"hideTooltip",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"forceTooltip",void 0);F([(0,P.property)({type:Boolean})],w.prototype,"activated",void 0);F([(0,P.query)(".ft-button")],w.prototype,"button",void 0);F([(0,P.query)(".ft-button--label")],w.prototype,"labelContainer",void 0);F([(0,P.state)()],w.prototype,"hasTextContent",void 0);F([(0,P.query)(".ft-button--label slot")],w.prototype,"slottedContent",void 0);F([(0,P.query)("[part=tooltip]")],w.prototype,"tooltip",void 0);var au=d(v());var ou={"ft-button":w};(0,au.customElements)(ou);var lu=T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnSurface),we={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorSurface),color:lu,fontSize:T.FtCssVariableFactory.extend("--ft-chip-font-size","",J.fontSize),fontWeight:T.FtCssVariableFactory.extend("--ft-chip-font-weight","",J.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","",lu),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")},cu=T.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",T.FtCssVariableFactory.extend("--ft-chip-color","",T.designSystemVariables.colorOnPrimary)),eo={backgroundColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",T.FtCssVariableFactory.extend("--ft-chip-background-color","",T.designSystemVariables.colorPrimary)),color:cu,rippleColor:T.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",cu)},uu={horizontalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:T.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},du=[T.noTextSelect,Ei.css`
618
+ `}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)}};_.elementDefinitions={"ft-ripple":L,"ft-tooltip":W,"ft-icon":pe,"ft-loader":pr,"ft-typography":z};_.styles=[ut.safariEllipsisFix,tu,ut.noTextSelect];_.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let r=e.target.getRootNode();r instanceof ShadowRoot&&r.host?r.host.hasTextContent=e.boundingClientRect.width>0:_.labelsObserver.unobserve(e.target)}});$([(0,D.property)({type:Boolean})],_.prototype,"primary",void 0);$([(0,D.property)({type:Boolean})],_.prototype,"outlined",void 0);$([(0,D.property)({type:Boolean})],_.prototype,"dense",void 0);$([(0,D.property)({type:Boolean})],_.prototype,"round",void 0);$([(0,D.property)({type:Boolean})],_.prototype,"disabled",void 0);$([(0,D.property)()],_.prototype,"icon",void 0);$([(0,D.property)()],_.prototype,"iconVariant",void 0);$([(0,D.property)({type:Boolean})],_.prototype,"trailingIcon",void 0);$([(0,D.property)()],_.prototype,"label",void 0);$([(0,D.property)()],_.prototype,"type",void 0);$([(0,D.property)()],_.prototype,"href",void 0);$([(0,D.property)()],_.prototype,"target",void 0);$([(0,D.property)({type:Boolean})],_.prototype,"loading",void 0);$([(0,D.property)({attribute:"aria-label"})],_.prototype,"ariaLabel",void 0);$([(0,D.property)()],_.prototype,"ariaHasPopup",void 0);$([(0,D.property)({attribute:"aria-pressed"})],_.prototype,"ariaPressed",void 0);$([(0,D.property)({attribute:"aria-expanded"})],_.prototype,"ariaExpanded",void 0);$([(0,D.property)()],_.prototype,"tooltipPosition",void 0);$([(0,D.property)({type:Boolean})],_.prototype,"hideTooltip",void 0);$([(0,D.property)({type:Boolean})],_.prototype,"forceTooltip",void 0);$([(0,D.property)({type:Boolean})],_.prototype,"activated",void 0);$([(0,D.query)(".ft-button")],_.prototype,"button",void 0);$([(0,D.query)(".ft-button--label")],_.prototype,"labelContainer",void 0);$([(0,D.state)()],_.prototype,"hasTextContent",void 0);$([(0,D.query)(".ft-button--label slot")],_.prototype,"slottedContent",void 0);$([(0,D.query)("[part=tooltip]")],_.prototype,"tooltip",void 0);var iu=u(v());var ru={"ft-button":_};(0,iu.customElements)(ru);var nu=C.FtCssVariableFactory.extend("--ft-chip-color","",C.designSystemVariables.colorOnSurface),Ce={backgroundColor:C.FtCssVariableFactory.extend("--ft-chip-background-color","",C.designSystemVariables.colorSurface),color:nu,fontSize:C.FtCssVariableFactory.extend("--ft-chip-font-size","",Z.fontSize),fontWeight:C.FtCssVariableFactory.extend("--ft-chip-font-weight","",Z.fontWeight),iconSize:C.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:C.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:C.FtCssVariableFactory.extend("--ft-chip-ripple-color","",nu),horizontalPadding:C.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:C.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:C.FtCssVariableFactory.extend("--ft-chip-border-color","",C.designSystemVariables.colorOutline),opacityDisabled:C.FtCssVariableFactory.external(C.designSystemVariables.colorOpacityDisabled,"Design system")},su=C.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",C.FtCssVariableFactory.extend("--ft-chip-color","",C.designSystemVariables.colorOnPrimary)),Js={backgroundColor:C.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",C.FtCssVariableFactory.extend("--ft-chip-background-color","",C.designSystemVariables.colorPrimary)),color:su,rippleColor:C.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",su)},ou={horizontalPadding:C.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:C.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},au=[C.noTextSelect,Ei.css`
619
619
  :host {
620
620
  display: inline-block;
621
621
  max-width: 100%;
@@ -631,21 +631,21 @@
631
631
  box-sizing: border-box;
632
632
  pointer-events: auto;
633
633
 
634
- --chip-internal-font-size: ${we.fontSize};
635
- --chip-internal-font-weight: ${we.fontWeight};
634
+ --chip-internal-font-size: ${Ce.fontSize};
635
+ --chip-internal-font-weight: ${Ce.fontWeight};
636
636
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
637
- ${(0,T.setVariable)(Pe.size,we.iconSize)};
638
- --chip-internal-vertical-padding: ${we.verticalPadding};
639
- --chip-internal-horizontal-padding: ${we.horizontalPadding};
637
+ ${(0,C.setVariable)(Pe.size,Ce.iconSize)};
638
+ --chip-internal-vertical-padding: ${Ce.verticalPadding};
639
+ --chip-internal-horizontal-padding: ${Ce.horizontalPadding};
640
640
  --chip-internal-icon-padding: 3px;
641
- --chip-internal-content-height: max(var(--chip-internal-line-height), ${we.iconSize});
641
+ --chip-internal-content-height: max(var(--chip-internal-line-height), ${Ce.iconSize});
642
642
 
643
- border: 1px solid ${we.borderColor};
644
- color: ${we.color};
645
- ${(0,T.setVariable)(re.color,we.rippleColor)};
646
- border-radius: var(${(0,Ei.unsafeCSS)(we.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
643
+ border: 1px solid ${Ce.borderColor};
644
+ color: ${Ce.color};
645
+ ${(0,C.setVariable)(te.color,Ce.rippleColor)};
646
+ border-radius: var(${(0,Ei.unsafeCSS)(Ce.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
647
647
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
648
- background-color: ${we.backgroundColor};
648
+ background-color: ${Ce.backgroundColor};
649
649
  line-height: var(--chip-internal-content-height);
650
650
  }
651
651
 
@@ -655,28 +655,28 @@
655
655
 
656
656
  .ft-chip--dense {
657
657
  --chip-internal-icon-padding: 3px;
658
- --chip-internal-vertical-padding: ${uu.verticalPadding};
659
- --chip-internal-horizontal-padding: ${uu.horizontalPadding};
658
+ --chip-internal-vertical-padding: ${ou.verticalPadding};
659
+ --chip-internal-horizontal-padding: ${ou.horizontalPadding};
660
660
  --chip-internal-line-height: max(16px, calc(var(--chip-internal-font-size) + 2px));
661
661
  }
662
662
 
663
663
  .ft-chip--no-content {
664
- --chip-internal-horizontal-padding: ${we.horizontalPadding.get(Ei.css`var(--chip-internal-vertical-padding)`)};
664
+ --chip-internal-horizontal-padding: ${Ce.horizontalPadding.get(Ei.css`var(--chip-internal-vertical-padding)`)};
665
665
  }
666
666
 
667
667
  .ft-chip--disabled {
668
668
  cursor: default;
669
669
  pointer-events: none;
670
670
  filter: grayscale(1);
671
- opacity: ${we.opacityDisabled};
671
+ opacity: ${Ce.opacityDisabled};
672
672
  }
673
673
 
674
674
  .ft-chip--highlighted {
675
675
  border: none;
676
676
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
677
- background-color: ${eo.backgroundColor};
678
- ${(0,T.setVariable)(re.color,eo.rippleColor)};
679
- color: ${eo.color};
677
+ background-color: ${Js.backgroundColor};
678
+ ${(0,C.setVariable)(te.color,Js.rippleColor)};
679
+ color: ${Js.color};
680
680
  }
681
681
 
682
682
  .ft-chip--clickable {
@@ -685,7 +685,7 @@
685
685
  }
686
686
 
687
687
  .ft-chip:focus {
688
- outline: 2px solid ${T.designSystemVariables.colorPrimary};
688
+ outline: 2px solid ${C.designSystemVariables.colorPrimary};
689
689
  outline-offset: 2px;
690
690
  }
691
691
 
@@ -707,9 +707,9 @@
707
707
  }
708
708
 
709
709
  .ft-chip--icon-button {
710
- ${(0,T.setVariable)(k.iconSize,we.iconSize)};
711
- ${(0,T.setVariable)(k.horizontalPadding,"var(--chip-internal-icon-padding)")};
712
- ${(0,T.setVariable)(k.verticalPadding,"var(--chip-internal-icon-padding)")};
710
+ ${(0,C.setVariable)(k.iconSize,Ce.iconSize)};
711
+ ${(0,C.setVariable)(k.horizontalPadding,"var(--chip-internal-icon-padding)")};
712
+ ${(0,C.setVariable)(k.verticalPadding,"var(--chip-internal-icon-padding)")};
713
713
  margin: calc((-1) * var(--chip-internal-icon-padding));
714
714
  }
715
715
 
@@ -717,9 +717,9 @@
717
717
  vertical-align: bottom;
718
718
  display: block;
719
719
  margin: 0 var(--chip-internal-horizontal-padding);
720
- ${(0,T.setVariable)(J.fontSize,"var(--chip-internal-font-size)")};
721
- ${(0,T.setVariable)(J.fontWeight,"var(--chip-internal-font-weight)")};
722
- ${(0,T.setVariable)(J.lineHeight,"var(--chip-internal-content-height)")};
720
+ ${(0,C.setVariable)(Z.fontSize,"var(--chip-internal-font-size)")};
721
+ ${(0,C.setVariable)(Z.fontWeight,"var(--chip-internal-font-weight)")};
722
+ ${(0,C.setVariable)(Z.lineHeight,"var(--chip-internal-content-height)")};
723
723
  }
724
724
 
725
725
  .ft-chip--safari-fix .ft-chip--label {
@@ -755,20 +755,20 @@
755
755
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
756
756
  order: -1;
757
757
  }
758
- `];var ve=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Hn=class extends CustomEvent{constructor(){super("icon-click")}},V=class extends Ur.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let 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":Ur.isSafari};return hr.html`
759
- <div class="${(0,pu.classMap)(r)}"
760
- aria-label="${this.labelOnIconOnly?hr.nothing:this.getLabel()}"
758
+ `];var ge=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Hn=class extends CustomEvent{constructor(){super("icon-click")}},H=class extends Fr.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let 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":Fr.isSafari};return fr.html`
759
+ <div class="${(0,lu.classMap)(r)}"
760
+ aria-label="${this.labelOnIconOnly?fr.nothing:this.getLabel()}"
761
761
  tabindex="${this.interactionsOnChip?0:-1}"
762
762
  @keyup=${this.onKeyUp}
763
763
  part="chip">
764
764
  <ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
765
765
  <ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
766
- aria-hidden="${this.labelOnIconOnly?"true":hr.nothing}">
766
+ aria-hidden="${this.labelOnIconOnly?"true":fr.nothing}">
767
767
  <slot @slotchange=${this.onSlotchange}></slot>
768
768
  </ft-typography>
769
769
  ${this.internalIcon?this.renderIcon():null}
770
770
  </div>
771
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}get labelOnIconOnly(){return this.accessibleLabelOnIcon&&this.interactionsOnIcon}renderIcon(){return this.interactionsOnIcon?hr.html`
771
+ `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}get labelOnIconOnly(){return this.accessibleLabelOnIcon&&this.interactionsOnIcon}renderIcon(){return this.interactionsOnIcon?fr.html`
772
772
  <ft-button round
773
773
  class="ft-chip--icon-button"
774
774
  @click=${this.onIconClick}
@@ -779,12 +779,12 @@
779
779
  part="icon-button"
780
780
  ?hideTooltip=${this.hideIconTooltip}
781
781
  ></ft-button>
782
- `:hr.html`
782
+ `:fr.html`
783
783
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
784
784
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
785
785
  </div>
786
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Hn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Hn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Ur.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};V.elementDefinitions={"ft-ripple":N,"ft-typography":j,"ft-icon":fe,"ft-button":w};V.styles=du;ve([(0,se.property)({type:Boolean})],V.prototype,"highlighted",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"removable",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"disabled",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"clickable",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"iconClickable",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"dense",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"multiLine",void 0);ve([(0,se.property)()],V.prototype,"label",void 0);ve([(0,se.property)()],V.prototype,"iconLabel",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"hideIconTooltip",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"accessibleLabelOnIcon",void 0);ve([(0,se.property)()],V.prototype,"icon",void 0);ve([(0,se.property)()],V.prototype,"iconVariant",void 0);ve([(0,se.property)({type:Boolean})],V.prototype,"trailingIcon",void 0);ve([(0,se.property)()],V.prototype,"typographyVariant",void 0);ve([(0,se.query)("ft-typography slot")],V.prototype,"slottedContent",void 0);var hu=d(v());var fu={"ft-chip":V};(0,hu.customElements)(fu);var mu=d(R());var yu=mu.css`
787
- `;var Gu=d(R()),so=d(v());var gu=d(R()),$=d(v());var Ai={buttonMoreColor:$.FtCssVariableFactory.extend("--ft-filter-level-button-more-color","",$.designSystemVariables.colorOnSurface),borderRadiusM:$.FtCssVariableFactory.external($.designSystemVariables.borderRadiusM,"Design system"),colorOutline:$.FtCssVariableFactory.external($.designSystemVariables.colorOutline,"Design system"),colorOnSurface:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorOnSurfaceDisabled:$.FtCssVariableFactory.external($.designSystemVariables.colorOnSurfaceDisabled,"Design system"),colorPrimary:$.FtCssVariableFactory.external($.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:$.FtCssVariableFactory.external($.designSystemVariables.colorOnPrimary,"Design system"),fontFamily:$.FtCssVariableFactory.external(J.fontFamily,"Body2 typography"),fontSize:$.FtCssVariableFactory.external(J.fontSize,"Body2 typography"),fontWeight:$.FtCssVariableFactory.external(J.fontWeight,"Body2 typography"),letterSpacing:$.FtCssVariableFactory.external(J.letterSpacing,"Body2 typography"),lineHeight:$.FtCssVariableFactory.external(J.lineHeight,"Body2 typography"),textTransform:$.FtCssVariableFactory.external(J.textTransform,"Body2 typography")},vu=gu.css`
786
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Hn))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Hn))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Fr.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};H.elementDefinitions={"ft-ripple":L,"ft-typography":z,"ft-icon":pe,"ft-button":_};H.styles=au;ge([(0,ne.property)({type:Boolean})],H.prototype,"highlighted",void 0);ge([(0,ne.property)({type:Boolean})],H.prototype,"removable",void 0);ge([(0,ne.property)({type:Boolean})],H.prototype,"disabled",void 0);ge([(0,ne.property)({type:Boolean})],H.prototype,"clickable",void 0);ge([(0,ne.property)({type:Boolean})],H.prototype,"iconClickable",void 0);ge([(0,ne.property)({type:Boolean})],H.prototype,"dense",void 0);ge([(0,ne.property)({type:Boolean})],H.prototype,"multiLine",void 0);ge([(0,ne.property)()],H.prototype,"label",void 0);ge([(0,ne.property)()],H.prototype,"iconLabel",void 0);ge([(0,ne.property)({type:Boolean})],H.prototype,"hideIconTooltip",void 0);ge([(0,ne.property)({type:Boolean})],H.prototype,"accessibleLabelOnIcon",void 0);ge([(0,ne.property)()],H.prototype,"icon",void 0);ge([(0,ne.property)()],H.prototype,"iconVariant",void 0);ge([(0,ne.property)({type:Boolean})],H.prototype,"trailingIcon",void 0);ge([(0,ne.property)()],H.prototype,"typographyVariant",void 0);ge([(0,ne.query)("ft-typography slot")],H.prototype,"slottedContent",void 0);var uu=u(v());var cu={"ft-chip":H};(0,uu.customElements)(cu);var du=u(O());var pu=du.css`
787
+ `;var ju=u(O()),no=u(v());var fu=u(O()),I=u(v());var Ai={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(Z.fontFamily,"Body2 typography"),fontSize:I.FtCssVariableFactory.external(Z.fontSize,"Body2 typography"),fontWeight:I.FtCssVariableFactory.external(Z.fontWeight,"Body2 typography"),letterSpacing:I.FtCssVariableFactory.external(Z.letterSpacing,"Body2 typography"),lineHeight:I.FtCssVariableFactory.external(Z.lineHeight,"Body2 typography"),textTransform:I.FtCssVariableFactory.external(Z.textTransform,"Body2 typography")},hu=fu.css`
788
788
  .ft-filter-level--container {
789
789
  display: flex;
790
790
  flex-direction: column;
@@ -835,7 +835,7 @@
835
835
  }
836
836
 
837
837
  ft-button {
838
- ${(0,$.setVariable)(k.color,Ai.colorOnSurface)};
838
+ ${(0,I.setVariable)(k.color,Ai.colorOnSurface)};
839
839
  }
840
840
 
841
841
  .ft-filter-level--display-buttons {
@@ -847,7 +847,7 @@
847
847
  ft-button.ft-filter-level--display-less {
848
848
  flex: 1 1 0;
849
849
  min-width: 0;
850
- ${(0,$.setVariable)(k.color,Ai.buttonMoreColor)};
850
+ ${(0,I.setVariable)(k.color,Ai.buttonMoreColor)};
851
851
  }
852
852
 
853
853
  ft-radio, ft-checkbox {
@@ -863,7 +863,7 @@
863
863
  margin: 10px 0;
864
864
  color: ${Ai.colorOnSurfaceMedium};
865
865
  }
866
- `;var yr=d(R()),q=d(U()),Y=d(v());var he=d(R()),me=d(U()),Mu=d(Kn()),Te=d(v());var Vn=d(R()),qe=d(U()),Su=d(v()),Eu=d(Qt());var oe=d(v()),bu=d(R());var Ie={textColor:oe.FtCssVariableFactory.extend("--ft-checkbox-text-color","",oe.designSystemVariables.colorOnSurfaceHigh),fontSize:oe.FtCssVariableFactory.extend("--ft-checkbox-font-size","",g.fontSize),activeColor:oe.FtCssVariableFactory.extend("--ft-checkbox-active-color","",oe.designSystemVariables.colorPrimary),checkColor:oe.FtCssVariableFactory.extend("--ft-checkbox-check-color","",oe.designSystemVariables.colorOnPrimary),borderColor:oe.FtCssVariableFactory.extend("--ft-checkbox-border-color","",oe.designSystemVariables.colorOnSurfaceMedium),disabledColor:oe.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",oe.designSystemVariables.colorOnSurfaceDisabled),errorColor:oe.FtCssVariableFactory.extend("--ft-checkbox-error-color","",oe.designSystemVariables.colorError)},xu=bu.css`
866
+ `;var mr=u(O()),j=u(F()),G=u(v());var fe=u(O()),he=u(F()),Du=u(Kn()),Oe=u(v());var Vn=u(O()),qe=u(F()),gu=u(v()),vu=u(Xt());var se=u(v()),mu=u(O());var Ie={textColor:se.FtCssVariableFactory.extend("--ft-checkbox-text-color","",se.designSystemVariables.colorOnSurfaceHigh),fontSize:se.FtCssVariableFactory.extend("--ft-checkbox-font-size","",y.fontSize),activeColor:se.FtCssVariableFactory.extend("--ft-checkbox-active-color","",se.designSystemVariables.colorPrimary),checkColor:se.FtCssVariableFactory.extend("--ft-checkbox-check-color","",se.designSystemVariables.colorOnPrimary),borderColor:se.FtCssVariableFactory.extend("--ft-checkbox-border-color","",se.designSystemVariables.colorOnSurfaceMedium),disabledColor:se.FtCssVariableFactory.extend("--ft-checkbox-disabled-color","",se.designSystemVariables.colorOnSurfaceDisabled),errorColor:se.FtCssVariableFactory.extend("--ft-checkbox-error-color","",se.designSystemVariables.colorError)},yu=mu.css`
867
867
  * {
868
868
  box-sizing: border-box;
869
869
  }
@@ -944,7 +944,7 @@
944
944
 
945
945
  .ft-checkbox.ft-checkbox--error {
946
946
  color: ${Ie.errorColor};
947
- ${(0,oe.setVariable)(re.color,Ie.errorColor)};
947
+ ${(0,se.setVariable)(te.color,Ie.errorColor)};
948
948
 
949
949
  .ft-checkbox--box {
950
950
  border-color: ${Ie.errorColor};
@@ -958,14 +958,14 @@
958
958
  }
959
959
 
960
960
  .ft-checkbox:has(:focus-visible) {
961
- outline: 2px solid ${oe.designSystemVariables.colorPrimary};
961
+ outline: 2px solid ${se.designSystemVariables.colorPrimary};
962
962
  outline-offset: -2px;
963
963
  }
964
964
 
965
965
  .ft-checkbox ft-typography {
966
966
  padding-right: 2px;
967
967
  }
968
- `;var dt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},to=class extends CustomEvent{constructor(e){super("change",{detail:e})}},ae=class extends Su.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1,this.ariaLabel=null}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 Vn.html`
968
+ `;var dt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},eo=class extends CustomEvent{constructor(e){super("change",{detail:e})}},oe=class extends gu.FtLitElement{constructor(){super(...arguments),this.name="",this.value="",this.checked=!1,this.indeterminate=!1,this.disabled=!1,this.error=!1,this.ariaLabel=null}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 Vn.html`
969
969
  <div class="ft-checkbox--box-container" part="checkbox-box-container">
970
970
  <ft-ripple part="checkbox-ripple"
971
971
  ?disabled=${this.disabled}
@@ -981,7 +981,7 @@
981
981
  name="${this.name}"
982
982
  aria-checked="${this.indeterminate?"mixed":this.checked?"true":"false"}"
983
983
  role="checkbox"
984
- aria-label="${Pt(this.ariaLabel)}"
984
+ aria-label="${Nt(this.ariaLabel)}"
985
985
  .checked=${this.indeterminate?!1:this.checked}
986
986
  .indeterminate=${this.indeterminate}
987
987
  .disabled=${this.disabled}
@@ -989,9 +989,9 @@
989
989
  >
990
990
  </div>
991
991
  `}render(){return Vn.html`
992
- <label class="${(0,Eu.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
992
+ <label class="${(0,vu.classMap)(this.checkboxClasses)}" for="checkbox-input" part="checkbox-label">
993
993
  ${this.renderBoxContainer()}
994
- <ft-typography variant="${pe.body2}" part="checkbox-body">
994
+ <ft-typography variant="${de.body2}" part="checkbox-body">
995
995
  <slot @slotchange=${this.onSlotchange}></slot>
996
996
  </ft-typography>
997
997
  </label>
@@ -1000,15 +1000,15 @@
1000
1000
  <path class="ft-checkbox--checkmark-path" fill="none"
1001
1001
  d="${this.indeterminate&&!this.checked?"M2,12 22,12":"M1.73,12.91 8.1,19.28 22.79,4.59"}"></path>
1002
1002
  </svg>
1003
- `}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 to(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)}};ae.elementDefinitions={"ft-ripple":N,"ft-typography":j};ae.styles=xu;dt([(0,qe.property)()],ae.prototype,"name",void 0);dt([(0,qe.property)()],ae.prototype,"value",void 0);dt([(0,qe.property)({type:Boolean,reflect:!0})],ae.prototype,"checked",void 0);dt([(0,qe.property)({type:Boolean})],ae.prototype,"indeterminate",void 0);dt([(0,qe.property)({type:Boolean})],ae.prototype,"disabled",void 0);dt([(0,qe.property)({type:Boolean})],ae.prototype,"error",void 0);dt([(0,qe.property)({attribute:"aria-label"})],ae.prototype,"ariaLabel",void 0);dt([(0,qe.query)(".ft-checkbox")],ae.prototype,"container",void 0);dt([(0,qe.query)("ft-ripple")],ae.prototype,"ripple",void 0);dt([(0,qe.query)("input")],ae.prototype,"input",void 0);var _u=d(v());var Au={"ft-checkbox":ae};(0,_u.customElements)(Au);var Ou=d(R()),pt=d(U()),Tu=d(v()),Ru=d(Qt());var Cu=d(R()),Oe=d(v());var Mt={textColor:Oe.FtCssVariableFactory.extend("--ft-radio-text-color","",Oe.designSystemVariables.colorOnSurfaceHigh),fontSize:Oe.FtCssVariableFactory.extend("--ft-radio-font-size","",g.fontSize),colorPrimary:Oe.FtCssVariableFactory.external(Oe.designSystemVariables.colorPrimary,"Design system"),colorOnPrimary:Oe.FtCssVariableFactory.external(Oe.designSystemVariables.colorOnPrimary,"Design system"),borderColor:Oe.FtCssVariableFactory.extend("--ft-radio-border-color","",Oe.designSystemVariables.colorOnSurfaceMedium),colorOnSurfaceDisabled:Oe.FtCssVariableFactory.external(Oe.designSystemVariables.colorOnSurfaceDisabled,"Design system")},wu=Cu.css`
1003
+ `}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 eo(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)}};oe.elementDefinitions={"ft-ripple":L,"ft-typography":z};oe.styles=yu;dt([(0,qe.property)()],oe.prototype,"name",void 0);dt([(0,qe.property)()],oe.prototype,"value",void 0);dt([(0,qe.property)({type:Boolean,reflect:!0})],oe.prototype,"checked",void 0);dt([(0,qe.property)({type:Boolean})],oe.prototype,"indeterminate",void 0);dt([(0,qe.property)({type:Boolean})],oe.prototype,"disabled",void 0);dt([(0,qe.property)({type:Boolean})],oe.prototype,"error",void 0);dt([(0,qe.property)({attribute:"aria-label"})],oe.prototype,"ariaLabel",void 0);dt([(0,qe.query)(".ft-checkbox")],oe.prototype,"container",void 0);dt([(0,qe.query)("ft-ripple")],oe.prototype,"ripple",void 0);dt([(0,qe.query)("input")],oe.prototype,"input",void 0);var xu=u(v());var bu={"ft-checkbox":oe};(0,xu.customElements)(bu);var Au=u(O()),pt=u(F()),_u=u(v()),Cu=u(Xt());var Su=u(O()),we=u(v());var It={textColor:we.FtCssVariableFactory.extend("--ft-radio-text-color","",we.designSystemVariables.colorOnSurfaceHigh),fontSize:we.FtCssVariableFactory.extend("--ft-radio-font-size","",y.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")},Eu=Su.css`
1004
1004
  * {
1005
1005
  box-sizing: border-box;
1006
1006
  }
1007
1007
 
1008
1008
  .ft-radio {
1009
1009
  box-sizing: border-box;
1010
- color: ${Mt.textColor};
1011
- font-size: ${Mt.fontSize};
1010
+ color: ${It.textColor};
1011
+ font-size: ${It.fontSize};
1012
1012
 
1013
1013
  display: inline-flex;
1014
1014
  align-items: center;
@@ -1016,7 +1016,7 @@
1016
1016
  }
1017
1017
 
1018
1018
  .ft-radio--disabled {
1019
- color: ${Mt.colorOnSurfaceDisabled};
1019
+ color: ${It.colorOnSurfaceDisabled};
1020
1020
  }
1021
1021
 
1022
1022
  input {
@@ -1039,7 +1039,7 @@
1039
1039
  }
1040
1040
 
1041
1041
  .ft-radio--box {
1042
- border: 2px solid ${Mt.borderColor};
1042
+ border: 2px solid ${It.borderColor};
1043
1043
  border-radius: 50%;
1044
1044
 
1045
1045
  display: flex;
@@ -1052,7 +1052,7 @@
1052
1052
 
1053
1053
  .ft-radio--box:after {
1054
1054
  content: " ";
1055
- background-color: ${Mt.colorPrimary};
1055
+ background-color: ${It.colorPrimary};
1056
1056
 
1057
1057
  border-radius: 50%;
1058
1058
 
@@ -1064,7 +1064,7 @@
1064
1064
  }
1065
1065
 
1066
1066
  .ft-radio--checked .ft-radio--box {
1067
- border-color: ${Mt.colorPrimary};
1067
+ border-color: ${It.colorPrimary};
1068
1068
  }
1069
1069
 
1070
1070
 
@@ -1073,24 +1073,24 @@
1073
1073
  }
1074
1074
 
1075
1075
  .ft-radio--disabled .ft-radio--box {
1076
- border-color: ${Mt.colorOnSurfaceDisabled};
1076
+ border-color: ${It.colorOnSurfaceDisabled};
1077
1077
  background-color: transparent;
1078
1078
  }
1079
1079
 
1080
1080
  .ft-radio--disabled .ft-radio--box:after {
1081
- background-color: ${Mt.colorOnSurfaceDisabled};
1081
+ background-color: ${It.colorOnSurfaceDisabled};
1082
1082
  }
1083
1083
 
1084
1084
  .ft-radio:has(:focus-visible) {
1085
- outline: 2px solid ${Oe.designSystemVariables.colorPrimary};
1085
+ outline: 2px solid ${we.designSystemVariables.colorPrimary};
1086
1086
  outline-offset: -2px;
1087
1087
  }
1088
1088
 
1089
1089
  .ft-radio ft-typography {
1090
1090
  padding-right: 2px;
1091
1091
  }
1092
- `;var $t=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},zn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},le=class extends Tu.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 Ou.html`
1093
- <div class="${(0,Ru.classMap)(this.radioClasses)}"
1092
+ `;var Mt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},zn=class extends CustomEvent{constructor(e,r){super("change",{detail:{value:e,checked:r},bubbles:!0,composed:!0})}},ae=class extends _u.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 Au.html`
1093
+ <div class="${(0,Cu.classMap)(this.radioClasses)}"
1094
1094
  @click=${this.onClick}>
1095
1095
  <div class="ft-radio--box-container">
1096
1096
  <ft-ripple
@@ -1110,12 +1110,12 @@
1110
1110
  >
1111
1111
  </div>
1112
1112
  <label for="radio-button" inert>
1113
- <ft-typography variant="${pe.body2}">
1113
+ <ft-typography variant="${de.body2}">
1114
1114
  <slot></slot>
1115
1115
  </ft-typography>
1116
1116
  </label>
1117
1117
  </div>
1118
- `}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 zn(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 zn(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())}};le.elementDefinitions={"ft-ripple":N,"ft-typography":j};le.styles=wu;$t([(0,pt.property)()],le.prototype,"name",void 0);$t([(0,pt.property)()],le.prototype,"value",void 0);$t([(0,pt.property)({type:Boolean,reflect:!0})],le.prototype,"checked",void 0);$t([(0,pt.property)({attribute:"aria-checked",reflect:!0})],le.prototype,"ariaChecked",void 0);$t([(0,pt.property)({type:Boolean})],le.prototype,"disabled",void 0);$t([(0,pt.query)(".ft-radio")],le.prototype,"container",void 0);$t([(0,pt.query)("ft-ripple")],le.prototype,"ripple",void 0);$t([(0,pt.query)("input")],le.prototype,"input",void 0);var Du=d(v()),Ft=d(U()),Nu=d(R());var ku=d(R());var Lu=ku.css`
1118
+ `}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 zn(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 zn(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())}};ae.elementDefinitions={"ft-ripple":L,"ft-typography":z};ae.styles=Eu;Mt([(0,pt.property)()],ae.prototype,"name",void 0);Mt([(0,pt.property)()],ae.prototype,"value",void 0);Mt([(0,pt.property)({type:Boolean,reflect:!0})],ae.prototype,"checked",void 0);Mt([(0,pt.property)({attribute:"aria-checked",reflect:!0})],ae.prototype,"ariaChecked",void 0);Mt([(0,pt.property)({type:Boolean})],ae.prototype,"disabled",void 0);Mt([(0,pt.query)(".ft-radio")],ae.prototype,"container",void 0);Mt([(0,pt.query)("ft-ripple")],ae.prototype,"ripple",void 0);Mt([(0,pt.query)("input")],ae.prototype,"input",void 0);var Tu=u(v()),$t=u(F()),Ru=u(O());var wu=u(O());var Ou=wu.css`
1119
1119
  :host {
1120
1120
  display: block;
1121
1121
  }
@@ -1123,14 +1123,14 @@
1123
1123
  :host(:focus-visible) {
1124
1124
  outline: none;
1125
1125
  }
1126
- `;var _i=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Me=class extends Du.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 Nu.html`
1126
+ `;var _i=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Me=class extends Tu.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 Ru.html`
1127
1127
  <slot @slotchange=${this.onSlotChange}
1128
1128
  @change=${this.onChange}
1129
1129
  @keydown=${this.onKeyDown}
1130
1130
  ></slot>
1131
- `}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()}};Me.elementDefinitions={};Me.styles=Lu;_i([(0,Ft.property)()],Me.prototype,"name",void 0);_i([(0,Ft.property)({reflect:!0,attribute:"role"})],Me.prototype,"role",void 0);_i([(0,Ft.property)({reflect:!0,attribute:"aria-labelledby"})],Me.prototype,"ariaLabelledBy",void 0);_i([(0,Ft.queryAssignedElements)()],Me.prototype,"assignedElements",void 0);_i([(0,Ft.state)()],Me.prototype,"currentSelectedIndex",void 0);var Iu=d(v());var Pu={"ft-radio":le,"ft-radio-group":Me};(0,Iu.customElements)(Pu);var Ut=ct.build("designedFilterComponent");var Ee=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ro={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"},"less-filters-button-pressed":{label:"Revealing less filters",defaultEventName:"filters-click_see_less",defaultComponentId:"ft-filter-level"}},G=class extends(0,Te.withAnalytics)(lt((0,Te.withAriaNotification)(Te.FtLitElement)),ro){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.displayedValuesMinimum=0,this.displayedPages=1,this.filteredOptions=[],this.ariaNotificationDebouncer=new Te.Debouncer(500)}get hasHiddenValues(){let e=this.limit;return e!=null&&e<this.options.length}get limit(){return this.displayedValuesMinimum>0?this.displayedPages*this.displayedValuesMinimum: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),r=e.length<this.filteredOptions.length,i=this.displayedValuesMinimum>0&&e.length>this.displayedValuesMinimum;return he.html`
1131
+ `}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()}};Me.elementDefinitions={};Me.styles=Ou;_i([(0,$t.property)()],Me.prototype,"name",void 0);_i([(0,$t.property)({reflect:!0,attribute:"role"})],Me.prototype,"role",void 0);_i([(0,$t.property)({reflect:!0,attribute:"aria-labelledby"})],Me.prototype,"ariaLabelledBy",void 0);_i([(0,$t.queryAssignedElements)()],Me.prototype,"assignedElements",void 0);_i([(0,$t.state)()],Me.prototype,"currentSelectedIndex",void 0);var Lu=u(v());var ku={"ft-radio":ae,"ft-radio-group":Me};(0,Lu.customElements)(ku);var Ft=ct.build("designedFilterComponent");var Se=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},to={"more-filters-button-pressed":{label:"Revealing more filters",defaultEventName:"filters-click_see_more",defaultComponentId:"ft-filter-level"},"less-filters-button-pressed":{label:"Revealing less filters",defaultEventName:"filters-click_see_less",defaultComponentId:"ft-filter-level"}},K=class extends(0,Oe.withAnalytics)(lt((0,Oe.withAriaNotification)(Oe.FtLitElement)),to){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.displayedValuesMinimum=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.displayedValuesMinimum>0?this.displayedPages*this.displayedValuesMinimum: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),r=e.length<this.filteredOptions.length,i=this.displayedValuesMinimum>0&&e.length>this.displayedValuesMinimum;return fe.html`
1132
1132
  <div class="ft-filter-level--container ${this.disabled?"ft-filter--disabled":""}">
1133
- ${this.parent==null?null:he.html`
1133
+ ${this.parent==null?null:fe.html`
1134
1134
  <div tabindex="0"
1135
1135
  part="controls go-back"
1136
1136
  class="ft-filter-level--go-back"
@@ -1141,18 +1141,18 @@
1141
1141
  @click=${this.goBackOnClick}>
1142
1142
  <ft-ripple></ft-ripple>
1143
1143
  <ft-icon>thin_arrow_left</ft-icon>
1144
- <ft-typography variant="${pe.body2}">${this.parent.label}</ft-typography>
1144
+ <ft-typography variant="${de.body2}">${this.parent.label}</ft-typography>
1145
1145
  </div>
1146
1146
  `}
1147
- ${this.filteredOptions.length===0?he.html`
1148
- <ft-typography class="ft-filter-level--no-values" element="span" variant="${pe.body2}">
1149
- ${Ut.messages.noFilterValuesAvailable()}
1147
+ ${this.filteredOptions.length===0?fe.html`
1148
+ <ft-typography class="ft-filter-level--no-values" element="span" variant="${de.body2}">
1149
+ ${Ft.messages.noFilterValuesAvailable()}
1150
1150
  </ft-typography>
1151
- `:he.nothing}
1152
- ${(0,Mu.repeat)(e,n=>n.value,n=>{var s;return he.html`
1151
+ `:fe.nothing}
1152
+ ${(0,Du.repeat)(e,n=>n.value,n=>{var s;return fe.html`
1153
1153
  <div class="ft-filter-level--option" part="options" tabindex="-1">
1154
1154
  ${this.multivalued?this.buildMultiValuedOption(n):this.buildMonoValuedOption(n)}
1155
- ${this.preventNavigation||n.selected||((s=n.subOptions)!==null&&s!==void 0?s:[]).length===0?he.nothing:he.html`
1155
+ ${this.preventNavigation||n.selected||((s=n.subOptions)!==null&&s!==void 0?s:[]).length===0?fe.nothing:fe.html`
1156
1156
  <ft-button icon="thin_arrow_right"
1157
1157
  part="controls navigate-hierarchy"
1158
1158
  aria-label="Expand node"
@@ -1163,43 +1163,43 @@
1163
1163
  `}
1164
1164
  </div>
1165
1165
  `})}
1166
- ${r||i?he.html`
1166
+ ${r||i?fe.html`
1167
1167
  <div class="ft-filter-level--display-buttons" part="controls-container">
1168
- ${i?he.html`
1168
+ ${i?fe.html`
1169
1169
  <ft-button
1170
1170
  class="ft-filter-level--display-less"
1171
1171
  icon="thin_arrow_up"
1172
1172
  dense trailingIcon
1173
1173
  part="controls display-less"
1174
1174
  @click=${()=>{this.emitAnalyticsAction("less-filters-button-pressed",{}),this.displayLess()}}>
1175
- ${Ut.messages.displayLessFilterValuesButton()}
1175
+ ${Ft.messages.displayLessFilterValuesButton()}
1176
1176
  </ft-button>
1177
- `:he.nothing}
1178
- ${r?he.html`
1177
+ `:fe.nothing}
1178
+ ${r?fe.html`
1179
1179
  <ft-button
1180
1180
  class="ft-filter-level--display-more"
1181
1181
  icon="thin_arrow"
1182
1182
  dense trailingIcon
1183
1183
  part="controls display-more"
1184
1184
  @click=${()=>{this.emitAnalyticsAction("more-filters-button-pressed",{}),this.displayMore()}}>
1185
- ${Ut.messages.displayMoreFilterValuesButton()}
1185
+ ${Ft.messages.displayMoreFilterValuesButton()}
1186
1186
  </ft-button>
1187
- `:he.nothing}
1187
+ `:fe.nothing}
1188
1188
  </div>
1189
- `:he.nothing}
1189
+ `:fe.nothing}
1190
1190
  </div>
1191
- `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}displayLess(){this.displayedPages=1,this.elementToFocus={selector:".ft-filter-level--display-more"}}buildMultiValuedOption(e){var r;return he.html`
1191
+ `}goBackOnKeyPress(e){(e.key==="Enter"||e.key===" ")&&this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}goBackOnClick(e){e.stopPropagation(),e.preventDefault(),this.dispatchEvent(new CustomEvent("go-back",{detail:this.parent}))}displayMore(){var e;let r=(e=this.limit)!==null&&e!==void 0?e:0,i=this.parent!=null;this.displayedPages++,this.elementToFocus={selector:`.ft-filter-level--option:nth-child(${r+(i?2:1)}) [part~="option"]`}}displayLess(){this.displayedPages=1,this.elementToFocus={selector:".ft-filter-level--display-more"}}buildMultiValuedOption(e){var r;return fe.html`
1192
1192
  <ft-checkbox name="${this.filterId}"
1193
1193
  part="multivalued-option option"
1194
1194
  .exportpartsPrefixes=${["multivalued-option","option"]}
1195
1195
  data-value="${e.value}"
1196
1196
  .checked=${e.selected}
1197
1197
  .disabled=${this.disabled}
1198
- .indeterminate=${(0,Te.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
1198
+ .indeterminate=${(0,Oe.flatDeep)((r=e.subOptions)!==null&&r!==void 0?r:[],i=>{var n;return(n=i.subOptions)!==null&&n!==void 0?n:[]}).some(i=>i.selected)}
1199
1199
  @change=${i=>this.optionsChanged(i,e)}>
1200
1200
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1201
1201
  </ft-checkbox>
1202
- `}buildMonoValuedOption(e){return he.html`
1202
+ `}buildMonoValuedOption(e){return fe.html`
1203
1203
  <ft-radio name="${this.filterId+Math.round(Math.random()*1e6)}"
1204
1204
  part="monovalued-option option"
1205
1205
  data-value="${e.value}"
@@ -1210,7 +1210,7 @@
1210
1210
  @change=${r=>this.optionsChanged(r,e)}>
1211
1211
  ${e.renderOption?e.renderOption:e.label}${this.displayCount?` (${e.count})`:""}
1212
1212
  </ft-radio>
1213
- `}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)})}};G.elementDefinitions={"ft-button":w,"ft-ripple":N,"ft-typography":j,"ft-checkbox":ae,"ft-icon":fe,"ft-radio":le};G.styles=vu;Ee([(0,me.property)({type:String})],G.prototype,"filterId",void 0);Ee([(0,me.property)({type:Object})],G.prototype,"parent",void 0);Ee([(0,me.property)({type:Array,hasChanged:Te.hasChanged})],G.prototype,"options",void 0);Ee([(0,me.property)({type:Boolean})],G.prototype,"multivalued",void 0);Ee([(0,me.property)({type:Boolean})],G.prototype,"disabled",void 0);Ee([(0,me.property)({type:Boolean})],G.prototype,"hideSelectedOptions",void 0);Ee([(0,me.property)({type:Boolean})],G.prototype,"displayCount",void 0);Ee([(0,me.property)({type:Boolean})],G.prototype,"preventNavigation",void 0);Ee([(0,me.property)({type:String})],G.prototype,"filter",void 0);Ee([(0,me.property)()],G.prototype,"filteredOptionsNumberAriaNotification",void 0);Ee([(0,Te.numberProperty)()],G.prototype,"displayedValuesMinimum",void 0);Ee([(0,me.query)(".ft-filter-level--container")],G.prototype,"container",void 0);Ee([(0,me.state)()],G.prototype,"radios",void 0);Ee([(0,me.state)()],G.prototype,"displayedPages",void 0);Ee([(0,me.state)()],G.prototype,"filteredOptions",void 0);var Uu=d(R()),$e=d(U()),mr=d(v());var Bu=d(Qt());var $u=d(R()),Je=d(v());var Bt={buttonsColor:Je.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Je.designSystemVariables.colorPrimary),buttonsZIndex:Je.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Je.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Je.FtCssVariableFactory.external(Je.designSystemVariables.colorSurface,"Design system")},Fu=$u.css`
1213
+ `}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":_,"ft-ripple":L,"ft-typography":z,"ft-checkbox":oe,"ft-icon":pe,"ft-radio":ae};K.styles=hu;Se([(0,he.property)({type:String})],K.prototype,"filterId",void 0);Se([(0,he.property)({type:Object})],K.prototype,"parent",void 0);Se([(0,he.property)({type:Array,hasChanged:Oe.hasChanged})],K.prototype,"options",void 0);Se([(0,he.property)({type:Boolean})],K.prototype,"multivalued",void 0);Se([(0,he.property)({type:Boolean})],K.prototype,"disabled",void 0);Se([(0,he.property)({type:Boolean})],K.prototype,"hideSelectedOptions",void 0);Se([(0,he.property)({type:Boolean})],K.prototype,"displayCount",void 0);Se([(0,he.property)({type:Boolean})],K.prototype,"preventNavigation",void 0);Se([(0,he.property)({type:String})],K.prototype,"filter",void 0);Se([(0,he.property)()],K.prototype,"filteredOptionsNumberAriaNotification",void 0);Se([(0,Oe.numberProperty)()],K.prototype,"displayedValuesMinimum",void 0);Se([(0,he.query)(".ft-filter-level--container")],K.prototype,"container",void 0);Se([(0,he.state)()],K.prototype,"radios",void 0);Se([(0,he.state)()],K.prototype,"displayedPages",void 0);Se([(0,he.state)()],K.prototype,"filteredOptions",void 0);var Iu=u(O()),$e=u(F()),hr=u(v());var Mu=u(Xt());var Nu=u(O()),Je=u(v());var Ut={buttonsColor:Je.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",Je.designSystemVariables.colorPrimary),buttonsZIndex:Je.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:Je.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:Je.FtCssVariableFactory.external(Je.designSystemVariables.colorSurface,"Design system")},Pu=Nu.css`
1214
1214
  .ft-snap-scroll {
1215
1215
  box-sizing: border-box;
1216
1216
  position: relative;
@@ -1245,7 +1245,7 @@
1245
1245
  flex-wrap: nowrap;
1246
1246
  align-items: flex-start;
1247
1247
  justify-content: flex-start;
1248
- gap: ${Bt.gap};
1248
+ gap: ${Ut.gap};
1249
1249
  }
1250
1250
 
1251
1251
  .ft-snap-scroll--hide-scrollbar .ft-snap-scroll--content::-webkit-scrollbar {
@@ -1288,11 +1288,11 @@
1288
1288
  .ft-snap-scroll--next {
1289
1289
  position: absolute;
1290
1290
  display: flex;
1291
- z-index: ${Bt.buttonsZIndex};
1291
+ z-index: ${Ut.buttonsZIndex};
1292
1292
  opacity: 1;
1293
1293
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
1294
1294
  ${(0,Je.setVariable)(k.backgroundColor,"transparent")};
1295
- ${(0,Je.setVariable)(k.color,Bt.buttonsColor)};
1295
+ ${(0,Je.setVariable)(k.color,Ut.buttonsColor)};
1296
1296
  }
1297
1297
 
1298
1298
  .ft-snap-scroll--previous[hidden],
@@ -1305,37 +1305,37 @@
1305
1305
  top: 0;
1306
1306
  left: -1px;
1307
1307
  bottom: 0;
1308
- background: linear-gradient(to right, ${Bt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1308
+ background: linear-gradient(to right, ${Ut.colorSurface} 50%, var(--snap-scroll-transparent-color));
1309
1309
  }
1310
1310
 
1311
1311
  .ft-snap-scroll--vertical .ft-snap-scroll--previous {
1312
1312
  top: -1px;
1313
1313
  left: 0;
1314
1314
  right: 0;
1315
- background: linear-gradient(to bottom, ${Bt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1315
+ background: linear-gradient(to bottom, ${Ut.colorSurface} 50%, var(--snap-scroll-transparent-color));
1316
1316
  }
1317
1317
 
1318
1318
  .ft-snap-scroll--horizontal .ft-snap-scroll--next {
1319
1319
  top: 0;
1320
1320
  right: -1px;
1321
1321
  bottom: 0;
1322
- background: linear-gradient(to left, ${Bt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1322
+ background: linear-gradient(to left, ${Ut.colorSurface} 50%, var(--snap-scroll-transparent-color));
1323
1323
  }
1324
1324
 
1325
1325
  .ft-snap-scroll--vertical .ft-snap-scroll--next {
1326
1326
  left: 0;
1327
1327
  right: 0;
1328
1328
  bottom: -1px;
1329
- background: linear-gradient(to top, ${Bt.colorSurface} 50%, var(--snap-scroll-transparent-color));
1329
+ background: linear-gradient(to top, ${Ut.colorSurface} 50%, var(--snap-scroll-transparent-color));
1330
1330
  }
1331
1331
 
1332
1332
  .ft-snap-scroll--horizontal .ft-snap-scroll--previous:hover,
1333
1333
  .ft-snap-scroll--horizontal .ft-snap-scroll--next:hover,
1334
1334
  .ft-snap-scroll--vertical .ft-snap-scroll--previous:hover,
1335
1335
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
1336
- background-color: ${Bt.colorSurface};
1336
+ background-color: ${Ut.colorSurface};
1337
1337
  }
1338
- `;var ft=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},io=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},ce=class extends mr.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 mr.Debouncer(200),this.updateScrollDebouncer=new mr.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,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Bu.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":mr.isSafari}),r=this.controls&&this.withScroll;return Uu.html`
1338
+ `;var ft=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ro=class extends CustomEvent{constructor(e,r){super("current-element-change",{detail:{index:e,element:r}})}},le=class extends hr.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 hr.Debouncer(200),this.updateScrollDebouncer=new hr.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,n=this.contentSlot[this.scrollAttribute]+this.prevSize;(r[this.offsetAttribute]<n||r[this.offsetAttribute]+r[this.sizeAttribute]>i)&&this.scrollToElement(r)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let e=(0,Mu.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":hr.isSafari}),r=this.controls&&this.withScroll;return Iu.html`
1339
1339
  <div part="container" class="${e}">
1340
1340
  <ft-button
1341
1341
  class="ft-snap-scroll--previous"
@@ -1359,7 +1359,7 @@
1359
1359
  @click=${this.next}
1360
1360
  ></ft-button>
1361
1361
  </div>
1362
- `}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 io(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)}};ce.elementDefinitions={"ft-button":w};ce.styles=Fu;ft([(0,$e.property)({type:Boolean})],ce.prototype,"horizontal",void 0);ft([(0,$e.property)({type:Boolean})],ce.prototype,"hideScrollbar",void 0);ft([(0,$e.property)({type:Boolean})],ce.prototype,"controls",void 0);ft([(0,$e.property)({type:Boolean})],ce.prototype,"limitSize",void 0);ft([(0,$e.state)()],ce.prototype,"elements",void 0);ft([(0,$e.state)()],ce.prototype,"currentElement",void 0);ft([(0,$e.state)()],ce.prototype,"withScroll",void 0);ft([(0,$e.state)()],ce.prototype,"startReached",void 0);ft([(0,$e.state)()],ce.prototype,"endReached",void 0);ft([(0,$e.query)(".ft-snap-scroll--content")],ce.prototype,"contentSlot",void 0);var Vu=d(v());var Hu={"ft-snap-scroll":ce};(0,Vu.customElements)(Hu);var zu=d(R()),B=d(v());var Re={colorOutline:B.FtCssVariableFactory.external(B.designSystemVariables.colorOutline,"Design system"),colorOnSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:B.FtCssVariableFactory.external(B.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:B.FtCssVariableFactory.external(B.designSystemVariables.colorPrimary,"Design system"),colorSurface:B.FtCssVariableFactory.external(B.designSystemVariables.colorSurface,"Design system"),transitionDuration:B.FtCssVariableFactory.external(B.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:B.FtCssVariableFactory.external(B.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:B.FtCssVariableFactory.extend("--ft-filter-label-color","",B.designSystemVariables.colorOnSurface),labelFontSize:B.FtCssVariableFactory.extend("--ft-filter-label-font-size","",g.fontSize,"16px")},ju=[_n,B.noTextInputDefaultClearButton,zu.css`
1362
+ `}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 ro(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)}};le.elementDefinitions={"ft-button":_};le.styles=Pu;ft([(0,$e.property)({type:Boolean})],le.prototype,"horizontal",void 0);ft([(0,$e.property)({type:Boolean})],le.prototype,"hideScrollbar",void 0);ft([(0,$e.property)({type:Boolean})],le.prototype,"controls",void 0);ft([(0,$e.property)({type:Boolean})],le.prototype,"limitSize",void 0);ft([(0,$e.state)()],le.prototype,"elements",void 0);ft([(0,$e.state)()],le.prototype,"currentElement",void 0);ft([(0,$e.state)()],le.prototype,"withScroll",void 0);ft([(0,$e.state)()],le.prototype,"startReached",void 0);ft([(0,$e.state)()],le.prototype,"endReached",void 0);ft([(0,$e.query)(".ft-snap-scroll--content")],le.prototype,"contentSlot",void 0);var Fu=u(v());var $u={"ft-snap-scroll":le};(0,Fu.customElements)($u);var Uu=u(O()),U=u(v());var Te={colorOutline:U.FtCssVariableFactory.external(U.designSystemVariables.colorOutline,"Design system"),colorOnSurface:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceMedium:U.FtCssVariableFactory.external(U.designSystemVariables.colorOnSurfaceMedium,"Design system"),colorPrimary:U.FtCssVariableFactory.external(U.designSystemVariables.colorPrimary,"Design system"),colorSurface:U.FtCssVariableFactory.external(U.designSystemVariables.colorSurface,"Design system"),transitionDuration:U.FtCssVariableFactory.external(U.designSystemVariables.transitionDuration,"Design system"),transitionTimingFunction:U.FtCssVariableFactory.external(U.designSystemVariables.transitionTimingFunction,"Design system"),labelColor:U.FtCssVariableFactory.extend("--ft-filter-label-color","",U.designSystemVariables.colorOnSurface),labelFontSize:U.FtCssVariableFactory.extend("--ft-filter-label-font-size","",y.fontSize,"16px")},Bu=[_n,U.noTextInputDefaultClearButton,Uu.css`
1363
1363
  :host {
1364
1364
  display: flex;
1365
1365
  max-height: 100%;
@@ -1387,7 +1387,7 @@
1387
1387
  .ft-filter--header ft-button {
1388
1388
  flex-shrink: 0;
1389
1389
  margin-left: auto;
1390
- ${(0,B.setVariable)(k.iconSize,"18px")};
1390
+ ${(0,U.setVariable)(k.iconSize,"18px")};
1391
1391
  }
1392
1392
 
1393
1393
  .filter-label {
@@ -1399,10 +1399,10 @@
1399
1399
  flex-shrink: 1;
1400
1400
  flex-grow: 1;
1401
1401
  word-break: break-word;
1402
- color: ${Re.labelColor};
1403
- font-size: ${Re.labelFontSize};
1404
- ${(0,B.setVariable)(g.lineHeight,"22px")};
1405
- ${(0,B.setVariable)(g.fontWeight,"bold")};
1402
+ color: ${Te.labelColor};
1403
+ font-size: ${Te.labelFontSize};
1404
+ ${(0,U.setVariable)(y.lineHeight,"22px")};
1405
+ ${(0,U.setVariable)(y.fontWeight,"bold")};
1406
1406
  }
1407
1407
 
1408
1408
  .ft-filter--filter {
@@ -1413,8 +1413,8 @@
1413
1413
  padding: 0 10px;
1414
1414
  overflow: hidden;
1415
1415
  height: 32px;
1416
- transition: height ${Re.transitionDuration} ${Re.transitionTimingFunction},
1417
- margin ${Re.transitionDuration} ${Re.transitionTimingFunction};
1416
+ transition: height ${Te.transitionDuration} ${Te.transitionTimingFunction},
1417
+ margin ${Te.transitionDuration} ${Te.transitionTimingFunction};
1418
1418
  transition-delay: 500ms;
1419
1419
  }
1420
1420
 
@@ -1427,15 +1427,15 @@
1427
1427
  display: block;
1428
1428
  width: 100%;
1429
1429
  border-radius: 4px;
1430
- border: 1px solid ${Re.colorOutline};
1430
+ border: 1px solid ${Te.colorOutline};
1431
1431
  padding: 4px;
1432
- background-color: ${Re.colorSurface};
1433
- color: ${Re.colorOnSurface};
1434
- outline-color: ${Re.colorPrimary};
1432
+ background-color: ${Te.colorSurface};
1433
+ color: ${Te.colorOnSurface};
1434
+ outline-color: ${Te.colorPrimary};
1435
1435
  }
1436
1436
 
1437
1437
  input::placeholder {
1438
- color: ${Re.colorOnSurfaceMedium};
1438
+ color: ${Te.colorOnSurfaceMedium};
1439
1439
  }
1440
1440
 
1441
1441
  input:placeholder-shown {
@@ -1451,7 +1451,7 @@
1451
1451
  }
1452
1452
 
1453
1453
  .ft-filter--separator {
1454
- border-top: 1px solid ${Re.colorOutline};
1454
+ border-top: 1px solid ${Te.colorOutline};
1455
1455
  margin: 4px 10px;
1456
1456
  }
1457
1457
 
@@ -1476,25 +1476,25 @@
1476
1476
  slot:not([name]) {
1477
1477
  display: none;
1478
1478
  }
1479
- `];var X=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},no=class extends CustomEvent{constructor(e){super("change",{detail:e})}},I=class extends(0,Y.withAnalytics)(Y.FtLitElement,ro){constructor(){super(...arguments),this.id="",this.label="",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesMinimum=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new Y.Debouncer(300),this.changeDebouncer=new Y.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,Y.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,Y.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(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=Ut.messages.filterInputPlaceHolder(this.label);return yr.html`
1479
+ `];var Y=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},io=class extends CustomEvent{constructor(e){super("change",{detail:e})}},N=class extends(0,G.withAnalytics)(G.FtLitElement,to){constructor(){super(...arguments),this.id="",this.label="",this.options=[],this.multivalued=!1,this.disabled=!1,this.raiseSelectedOptions=!1,this.displayCount=!1,this.displayedValuesMinimum=0,this.hideClearButton=!1,this.lastLevelHasHiddenvalues=!1,this.withScroll=!1,this.filter="",this.displayedLevels=[],this.scrollResizeObserver=new ResizeObserver(()=>this.updateScroll()),this.levelsScrollDebouncer=new G.Debouncer(300),this.changeDebouncer=new G.Debouncer(10),this.lastDispatchedValues=[]}get flatOptions(){return(0,G.flatDeep)(this.options,e=>{var r;return(r=e.subOptions)!==null&&r!==void 0?r:[]})}get childrenFilteredFlatOptions(){return(0,G.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(n=>n.selected),r=this.withScroll||this.filter||this.lastLevelHasHiddenvalues,i=Ft.messages.filterInputPlaceHolder(this.label);return mr.html`
1480
1480
  <div class="ft-filter--container ${this.disabled?"ft-filter--disabled":""}"
1481
1481
  part="container">
1482
- ${!this.label&&!e?null:yr.html`
1482
+ ${!this.label&&!e?null:mr.html`
1483
1483
 
1484
1484
  <div class="ft-filter--header" part="header">
1485
1485
  <div class="filter-label" id="id-group-${this.id}">
1486
- <ft-typography class="ft-filter--label" variant="${pe.overline}" part="label">
1486
+ <ft-typography class="ft-filter--label" variant="${de.overline}" part="label">
1487
1487
  ${this.label}
1488
1488
  </ft-typography>
1489
1489
  <slot name="label"></slot>
1490
1490
  </div>
1491
- ${e&&!this.hideClearButton?yr.html`
1491
+ ${e&&!this.hideClearButton?mr.html`
1492
1492
  <ft-button icon="close"
1493
- aria-label="${Ut.messages.clearFilterButton()+" "+this.label}"
1493
+ aria-label="${Ft.messages.clearFilterButton()+" "+this.label}"
1494
1494
  dense
1495
1495
  @click=${()=>{this.clear(),this.focusOnFirstOption()}}
1496
1496
  part="clear-button">
1497
- ${Ut.messages.clearFilterButton()}
1497
+ ${Ft.messages.clearFilterButton()}
1498
1498
  </ft-button>
1499
1499
  `:null}
1500
1500
  </div>
@@ -1517,8 +1517,8 @@
1517
1517
  @slotchange=${this.updateOptionsFromSlot}
1518
1518
  @option-change=${this.optionsChanged}></slot>
1519
1519
  </div>
1520
- `}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,n,s,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&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(s=>s.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return yr.html`
1521
- ${this.raiseSelectedOptions&&r.length>0?yr.html`
1520
+ `}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,n,s,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&&((n=this.levelsContainer)===null||n===void 0||n.previous(),setTimeout(()=>{this.displayedLevels.pop(),this.slideOut=void 0},300)),this.lastLevelHasHiddenvalues=(a=(o=(s=this.shadowRoot)===null||s===void 0?void 0:s.querySelector(".ft-filter--levels ft-filter-level:last-child"))===null||o===void 0?void 0:o.hasHiddenValues)!==null&&a!==void 0?a:!1}renderLevels(){let e=this.flatOptions,r=e.filter(s=>s.selected),i=this.slideIn||this.slideOut?this.displayedLevels.length-2:this.displayedLevels.length-1,n=i<0?"ft-filter--level-center":"ft-filter--level-left";return mr.html`
1521
+ ${this.raiseSelectedOptions&&r.length>0?mr.html`
1522
1522
  <ft-filter-level
1523
1523
  filterId="${this.id}"
1524
1524
  ?multivalued=${this.multivalued}
@@ -1539,7 +1539,7 @@
1539
1539
  ${this.renderLevel(n,this.options)}
1540
1540
  ${this.displayedLevels.map(s=>e.find(o=>o.value===s)).map((s,o)=>{var a;let l=s?.value===this.slideIn||s?.value===this.slideOut?"ft-filter--level-right":o===i?"ft-filter--level-center":"ft-filter--level-left";return this.renderLevel(l,(a=s?.subOptions)!==null&&a!==void 0?a:[],s)})}
1541
1541
  </ft-snap-scroll>
1542
- `}renderLevel(e,r,i){return yr.html`
1542
+ `}renderLevel(e,r,i){return mr.html`
1543
1543
  <ft-filter-level
1544
1544
  class="${e}"
1545
1545
  filterId="${this.id}"
@@ -1559,9 +1559,9 @@
1559
1559
  .exportpartsPrefixes=${["values","available-values"]}
1560
1560
  .filteredOptionsNumberAriaNotification=${this.filteredOptionsNumberAriaNotification}
1561
1561
  ></ft-filter-level>
1562
- `}goBack(e){this.slideOut=e.detail.value,(0,Y.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,Y.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,Y.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(s=>s.value===e.detail.value);i.selected=!i.selected;let n=s=>{var o;s!==i&&(s.selected=!1),(o=s.subOptions)===null||o===void 0||o.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,Y.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new no(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)}};I.elementDefinitions={"ft-button":w,"ft-filter-level":G,"ft-snap-scroll":ce,"ft-typography":j};I.styles=ju;X([(0,q.property)({type:String})],I.prototype,"id",void 0);X([(0,q.property)({type:String})],I.prototype,"label",void 0);X([(0,Y.jsonProperty)([])],I.prototype,"options",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"multivalued",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"disabled",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"raiseSelectedOptions",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"displayCount",void 0);X([(0,Y.numberProperty)()],I.prototype,"displayedValuesMinimum",void 0);X([(0,Y.jsonProperty)(void 0)],I.prototype,"filteredOptionsNumberAriaNotification",void 0);X([(0,q.property)({type:Boolean})],I.prototype,"hideClearButton",void 0);X([(0,q.query)(".ft-filter--slot")],I.prototype,"slotElement",void 0);X([(0,q.query)(".ft-filter--container")],I.prototype,"container",void 0);X([(0,q.query)(".ft-filter--values")],I.prototype,"valuesContainer",void 0);X([(0,q.query)(".ft-filter--levels")],I.prototype,"levelsContainer",void 0);X([(0,q.state)()],I.prototype,"lastLevelHasHiddenvalues",void 0);X([(0,q.query)(".ft-filter--filter input")],I.prototype,"filterInput",void 0);X([(0,q.queryAll)(".ft-filter--levels ft-filter-level")],I.prototype,"levels",void 0);X([(0,q.state)()],I.prototype,"withScroll",void 0);X([(0,q.state)()],I.prototype,"filter",void 0);X([(0,q.state)()],I.prototype,"slideIn",void 0);X([(0,q.state)()],I.prototype,"slideOut",void 0);var jn=d(v()),gr=d(U()),qu=d(R()),Br=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},et=class extends jn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return qu.html`
1562
+ `}goBack(e){this.slideOut=e.detail.value,(0,G.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,G.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,G.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(s=>s.value===e.detail.value);i.selected=!i.selected;let n=s=>{var o;s!==i&&(s.selected=!1),(o=s.subOptions)===null||o===void 0||o.forEach(n)};this.multivalued?(r=i.subOptions)===null||r===void 0||r.forEach(n):this.options.forEach(n),this.optionsChanged()}optionsChanged(){this.changeDebouncer.run(()=>{var e;this.sendEventIfValuesChanged(),this.requestUpdate(),(e=this.levels)===null||e===void 0||e.forEach(r=>r.updateFilteredOptions())})}sendEventIfValuesChanged(){let e=this.selectedValues;(0,G.deepEqual)(this.lastDispatchedValues,e)||(this.dispatchEvent(new io(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)}};N.elementDefinitions={"ft-button":_,"ft-filter-level":K,"ft-snap-scroll":le,"ft-typography":z};N.styles=Bu;Y([(0,j.property)({type:String})],N.prototype,"id",void 0);Y([(0,j.property)({type:String})],N.prototype,"label",void 0);Y([(0,G.jsonProperty)([])],N.prototype,"options",void 0);Y([(0,j.property)({type:Boolean})],N.prototype,"multivalued",void 0);Y([(0,j.property)({type:Boolean})],N.prototype,"disabled",void 0);Y([(0,j.property)({type:Boolean})],N.prototype,"raiseSelectedOptions",void 0);Y([(0,j.property)({type:Boolean})],N.prototype,"displayCount",void 0);Y([(0,G.numberProperty)()],N.prototype,"displayedValuesMinimum",void 0);Y([(0,G.jsonProperty)(void 0)],N.prototype,"filteredOptionsNumberAriaNotification",void 0);Y([(0,j.property)({type:Boolean})],N.prototype,"hideClearButton",void 0);Y([(0,j.query)(".ft-filter--slot")],N.prototype,"slotElement",void 0);Y([(0,j.query)(".ft-filter--container")],N.prototype,"container",void 0);Y([(0,j.query)(".ft-filter--values")],N.prototype,"valuesContainer",void 0);Y([(0,j.query)(".ft-filter--levels")],N.prototype,"levelsContainer",void 0);Y([(0,j.state)()],N.prototype,"lastLevelHasHiddenvalues",void 0);Y([(0,j.query)(".ft-filter--filter input")],N.prototype,"filterInput",void 0);Y([(0,j.queryAll)(".ft-filter--levels ft-filter-level")],N.prototype,"levels",void 0);Y([(0,j.state)()],N.prototype,"withScroll",void 0);Y([(0,j.state)()],N.prototype,"filter",void 0);Y([(0,j.state)()],N.prototype,"slideIn",void 0);Y([(0,j.state)()],N.prototype,"slideOut",void 0);var jn=u(v()),yr=u(F()),Hu=u(O()),Ur=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},et=class extends jn.FtLitElement{constructor(){super(...arguments),this.label="",this.value=null,this.selected=!1,this.subOptions=[]}render(){return Hu.html`
1563
1563
  <slot class="ft-filter-option--slot" @slotchange=${this.updateSubOptionsFromSlot}></slot>
1564
- `}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}))}};et.elementDefinitions={};Br([(0,gr.property)({type:String})],et.prototype,"label",void 0);Br([(0,gr.property)({type:Object,converter:t=>t})],et.prototype,"value",void 0);Br([(0,gr.property)({type:Boolean,reflect:!0})],et.prototype,"selected",void 0);Br([(0,gr.property)({type:Object})],et.prototype,"subOptions",void 0);Br([(0,jn.jsonProperty)({})],et.prototype,"renderOption",void 0);Br([(0,gr.query)(".ft-filter-option--slot")],et.prototype,"slotElement",void 0);var Ku=d(v());var Wu={"ft-filter":I,"ft-filter-option":et};(0,Ku.customElements)(Wu);var xt=ct.build("designedSearchType"),qn={label:"Search scope",documentTitlesOnly:"Search in document titles only",matchAllKeywords:"Match all search terms"};var wi=d(U());var Ci=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},tt=class extends lt(Ct){constructor(){super(),this.options={searchInDocumentTitlesOnly:{label:()=>xt.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:()=>xt.messages.matchAllKeywords(),selected:()=>!!this.matchAllKeywords,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setKeywordMatch(e?ht.MANDATORY:ht.OPTIONAL)},display:()=>!!this.displayMatchAllKeywords}},this.addI18nContext(xt,qn)}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 Gu.html`
1564
+ `}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}))}};et.elementDefinitions={};Ur([(0,yr.property)({type:String})],et.prototype,"label",void 0);Ur([(0,yr.property)({type:Object,converter:t=>t})],et.prototype,"value",void 0);Ur([(0,yr.property)({type:Boolean,reflect:!0})],et.prototype,"selected",void 0);Ur([(0,yr.property)({type:Object})],et.prototype,"subOptions",void 0);Ur([(0,jn.jsonProperty)({})],et.prototype,"renderOption",void 0);Ur([(0,yr.query)(".ft-filter-option--slot")],et.prototype,"slotElement",void 0);var zu=u(v());var Vu={"ft-filter":N,"ft-filter-option":et};(0,zu.customElements)(Vu);var xt=ct.build("designedSearchType"),qn={label:"Search scope",documentTitlesOnly:"Search in document titles only",matchAllKeywords:"Match all search terms"};var wi=u(F());var Ci=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},tt=class extends lt(_t){constructor(){super(),this.options={searchInDocumentTitlesOnly:{label:()=>xt.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:()=>xt.messages.matchAllKeywords(),selected:()=>!!this.matchAllKeywords,onChange:e=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setKeywordMatch(e?ht.MANDATORY:ht.OPTIONAL)},display:()=>!!this.displayMatchAllKeywords}},this.addI18nContext(xt,qn)}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 ju.html`
1565
1565
  <ft-filter
1566
1566
  label="${xt.messages.label()}"
1567
1567
  .options=${e}
@@ -1570,7 +1570,7 @@
1570
1570
  multivalued
1571
1571
  @change=${()=>this.onSelectionChange()}
1572
1572
  ></ft-filter>
1573
- `}onSelectionChange(){var e;(e=this.filter)===null||e===void 0||e.options.forEach(r=>this.options[r.value].onChange(!!r.selected))}};tt.elementDefinitions={"ft-filter":I};tt.styles=yu;Ci([(0,so.redux)({selector:bn})],tt.prototype,"searchInDocumentTitlesOnly",void 0);Ci([(0,wi.property)({type:Boolean})],tt.prototype,"hideSearchInDocumentTitlesOnly",void 0);Ci([(0,so.redux)({selector:xn})],tt.prototype,"matchAllKeywords",void 0);Ci([(0,wi.property)({type:Boolean})],tt.prototype,"displayMatchAllKeywords",void 0);Ci([(0,wi.query)("ft-filter")],tt.prototype,"filter",void 0);var Xu=d(v());var Yu={"ft-search-type":tt};(0,Xu.customElements)(Yu);var Qu=d(R()),vr=d(v());var Qp={headerColor:vr.FtCssVariableFactory.extend("--ft-search-period-filter-header-color","",vr.designSystemVariables.colorOnSurface)},Zu=Qu.css`
1573
+ `}onSelectionChange(){var e;(e=this.filter)===null||e===void 0||e.options.forEach(r=>this.options[r.value].onChange(!!r.selected))}};tt.elementDefinitions={"ft-filter":N};tt.styles=pu;Ci([(0,no.redux)({selector:bn})],tt.prototype,"searchInDocumentTitlesOnly",void 0);Ci([(0,wi.property)({type:Boolean})],tt.prototype,"hideSearchInDocumentTitlesOnly",void 0);Ci([(0,no.redux)({selector:xn})],tt.prototype,"matchAllKeywords",void 0);Ci([(0,wi.property)({type:Boolean})],tt.prototype,"displayMatchAllKeywords",void 0);Ci([(0,wi.query)("ft-filter")],tt.prototype,"filter",void 0);var Wu=u(v());var qu={"ft-search-type":tt};(0,Wu.customElements)(qu);var Ku=u(O()),gr=u(v());var Fp={headerColor:gr.FtCssVariableFactory.extend("--ft-search-period-filter-header-color","",gr.designSystemVariables.colorOnSurface)},Gu=Ku.css`
1574
1574
  [part="container"] {
1575
1575
  flex-grow: 1;
1576
1576
  display: flex;
@@ -1585,7 +1585,7 @@
1585
1585
  overflow: auto;
1586
1586
  display: flex;
1587
1587
  flex-direction: column;
1588
- ${(0,vr.setVariable)(g.lineHeight,"22px")};
1588
+ ${(0,gr.setVariable)(y.lineHeight,"22px")};
1589
1589
  }
1590
1590
 
1591
1591
  [part="header"] {
@@ -1595,7 +1595,7 @@
1595
1595
  flex-shrink: 0;
1596
1596
  padding: 0 10px;
1597
1597
  margin-bottom: 8px;
1598
- color: ${Qp.headerColor};
1598
+ color: ${Fp.headerColor};
1599
1599
  }
1600
1600
 
1601
1601
  [part="label"] {
@@ -1603,11 +1603,11 @@
1603
1603
  flex-shrink: 1;
1604
1604
  flex-grow: 1;
1605
1605
  word-break: break-word;
1606
- font-size: ${Re.labelFontSize};
1607
- ${(0,vr.setVariable)(g.fontWeight,"bold")};
1606
+ font-size: ${Te.labelFontSize};
1607
+ ${(0,gr.setVariable)(y.fontWeight,"bold")};
1608
1608
  }
1609
1609
 
1610
- `;var rt=d(R());var oo=d(v());var be=ct.build("designedSearchPeriodFilter"),Wn={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 br=d(U());var Ht=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ke=class extends lt(Ct){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(be,Wn),this.addStore(A)}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,n;return rt.html`
1610
+ `;var rt=u(O());var so=u(v());var ve=ct.build("designedSearchPeriodFilter"),Wn={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 vr=u(F());var Bt=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},Re=class extends lt(_t){constructor(){super(),this.metadataDescriptors=[],this.dateFilter=void 0,this.addI18nContext(ve,Wn),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,n;return rt.html`
1611
1611
  <div part="container">
1612
1612
  <div part="header">
1613
1613
  <ft-typography variant="overline" part="label" id="label">
@@ -1616,88 +1616,88 @@
1616
1616
  </div>
1617
1617
  <ft-radio-group @change=${s=>this.setPeriodFilter(s)} aria-labelledby="label">
1618
1618
  <ft-radio value="anyTime" ?checked=${this.dateFilter===void 0||this.dateFilter.type===void 0}>
1619
- ${be.messages.anyTime()}
1619
+ ${ve.messages.anyTime()}
1620
1620
  </ft-radio>
1621
1621
  ${this.lessThanAWeek?rt.html`
1622
- <ft-radio ?checked=${((e=this.dateFilter)===null||e===void 0?void 0:e.type)=="LAST_WEEK"} value="LAST_WEEK">${be.messages.LAST_WEEK()}
1622
+ <ft-radio ?checked=${((e=this.dateFilter)===null||e===void 0?void 0:e.type)=="LAST_WEEK"} value="LAST_WEEK">${ve.messages.LAST_WEEK()}
1623
1623
  </ft-radio>`:rt.nothing}
1624
1624
  ${this.lessThanAMonth?rt.html`
1625
- <ft-radio ?checked=${((r=this.dateFilter)===null||r===void 0?void 0:r.type)=="LAST_MONTH"} value="LAST_MONTH">${be.messages.LAST_MONTH()}
1625
+ <ft-radio ?checked=${((r=this.dateFilter)===null||r===void 0?void 0:r.type)=="LAST_MONTH"} value="LAST_MONTH">${ve.messages.LAST_MONTH()}
1626
1626
  </ft-radio>`:rt.nothing}
1627
1627
  ${this.lessThanAQuarter?rt.html`
1628
1628
  <ft-radio ?checked=${((i=this.dateFilter)===null||i===void 0?void 0:i.type)=="LAST_QUARTER"} value="LAST_QUARTER">
1629
- ${be.messages.LAST_QUARTER()}
1629
+ ${ve.messages.LAST_QUARTER()}
1630
1630
  </ft-radio>`:rt.nothing}
1631
1631
  ${this.lessThanAYear?rt.html`
1632
- <ft-radio ?checked=${((n=this.dateFilter)===null||n===void 0?void 0:n.type)=="LAST_YEAR"} value="LAST_YEAR">${be.messages.LAST_YEAR()}
1632
+ <ft-radio ?checked=${((n=this.dateFilter)===null||n===void 0?void 0:n.type)=="LAST_YEAR"} value="LAST_YEAR">${ve.messages.LAST_YEAR()}
1633
1633
  </ft-radio>`:rt.nothing}
1634
1634
  </ft-radio-group>
1635
- </div>`}setPeriodFilter(e){var r,i;let n=Ri[e.detail];n?(r=this.stateManager)===null||r===void 0||r.setDateFilter(this.metadataKey,n):(i=this.stateManager)===null||i===void 0||i.removeDateFilter(this.metadataKey)}header(){var e,r,i;return this.metadataKey==="ft:lastEdition"?be.messages.label():(i=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(n=>n.key==this.metadataKey))===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:this.metadataKey}};ke.elementDefinitions={"ft-radio-group":Me,"ft-radio":le,"ft-typography":j};ke.styles=Zu;Ht([(0,br.property)({type:String})],ke.prototype,"key",void 0);Ht([(0,br.property)({type:Boolean})],ke.prototype,"lessThanAWeek",void 0);Ht([(0,br.property)({type:Boolean})],ke.prototype,"lessThanAMonth",void 0);Ht([(0,br.property)({type:Boolean})],ke.prototype,"lessThanAQuarter",void 0);Ht([(0,br.property)({type:Boolean})],ke.prototype,"lessThanAYear",void 0);Ht([(0,oo.redux)({store:"search",selector:t=>t.request.metadataFilters})],ke.prototype,"filters",void 0);Ht([(0,oo.redux)({store:A.name,selector:t=>{var e,r;return(r=(e=t.metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[]}})],ke.prototype,"metadataDescriptors",void 0);Ht([(0,br.property)({attribute:!1})],ke.prototype,"dateFilter",void 0);var ed=d(v());var Ju={"ft-search-period-filter":ke};(0,ed.customElements)(Ju);var Vt=ct.build("designedSearchSelectedFacets"),td={filterGroupLabel:"Filters enabled",removeNamedFilterLabel:"Remove filter: {0}"};var Le=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},ee=class extends(0,z.withAriaNotification)(Xa(lt(Ct))){get hasSomethingToDisplay(){var e,r;return this.searchInDocumentTitlesOnly||this.keywordMatch||((e=this.filters)===null||e===void 0?void 0:e.some(i=>this.displayAllFilers||i.dateFilter||i.rangeFilter))||((r=this.facets)===null||r===void 0?void 0:r.some(i=>this.getSelectedValues(i).length>0))}get numberOfChips(){return(0,z.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.nothingToDisplayMessage={message:""},this.readOnly=!1,this.dense=!1,this.displayAllFilers=!1,this.neededSearchRequests=[zr.CLUSTERED_SEARCH],this.ariaNotificationDebouncer=new z.Debouncer(100),this.addI18nContext(xt,qn),this.addI18nContext(Vt,td),this.addI18nContext(be,Wn)}render(){var e,r;return this.hasSomethingToDisplay?ie.html`
1636
- <div role="group" class="ft-search-selected-facets--container" aria-label="${Vt.messages.filterGroupLabel()}">
1635
+ </div>`}setPeriodFilter(e){var r,i;let n=Ri[e.detail];n?(r=this.stateManager)===null||r===void 0||r.setDateFilter(this.metadataKey,n):(i=this.stateManager)===null||i===void 0||i.removeDateFilter(this.metadataKey)}header(){var e,r,i;return this.metadataKey==="ft:lastEdition"?ve.messages.label():(i=(r=(e=this.metadataDescriptors)===null||e===void 0?void 0:e.find(n=>n.key==this.metadataKey))===null||r===void 0?void 0:r.label)!==null&&i!==void 0?i:this.metadataKey}};Re.elementDefinitions={"ft-radio-group":Me,"ft-radio":ae,"ft-typography":z};Re.styles=Gu;Bt([(0,vr.property)({type:String})],Re.prototype,"key",void 0);Bt([(0,vr.property)({type:Boolean})],Re.prototype,"lessThanAWeek",void 0);Bt([(0,vr.property)({type:Boolean})],Re.prototype,"lessThanAMonth",void 0);Bt([(0,vr.property)({type:Boolean})],Re.prototype,"lessThanAQuarter",void 0);Bt([(0,vr.property)({type:Boolean})],Re.prototype,"lessThanAYear",void 0);Bt([(0,so.redux)({store:"search",selector:t=>t.request.metadataFilters})],Re.prototype,"filters",void 0);Bt([(0,so.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);Bt([(0,vr.property)({attribute:!1})],Re.prototype,"dateFilter",void 0);var Xu=u(v());var Yu={"ft-search-period-filter":Re};(0,Xu.customElements)(Yu);var Ht=ct.build("designedSearchSelectedFacets"),Qu={filterGroupLabel:"Filters enabled",removeNamedFilterLabel:"Remove filter: {0}"};var ke=function(t,e,r,i){var n=arguments.length,s=n<3?e:i===null?i=Object.getOwnPropertyDescriptor(e,r):i,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(t,e,r,i);else for(var a=t.length-1;a>=0;a--)(o=t[a])&&(s=(n<3?o(s):n>3?o(e,r,s):o(e,r))||s);return n>3&&s&&Object.defineProperty(e,r,s),s},J=class extends(0,V.withAriaNotification)(Wa(lt(_t))){get hasSomethingToDisplay(){var e,r;return this.searchInDocumentTitlesOnly||this.keywordMatch||((e=this.filters)===null||e===void 0?void 0:e.some(i=>this.displayAllFilers||i.dateFilter||i.rangeFilter))||((r=this.facets)===null||r===void 0?void 0:r.some(i=>this.getSelectedValues(i).length>0))}get numberOfChips(){return(0,V.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.nothingToDisplayMessage={message:""},this.readOnly=!1,this.dense=!1,this.displayAllFilers=!1,this.neededSearchRequests=[Vr.CLUSTERED_SEARCH],this.ariaNotificationDebouncer=new V.Debouncer(100),this.addI18nContext(xt,qn),this.addI18nContext(Ht,Qu),this.addI18nContext(ve,Wn)}render(){var e,r;return this.hasSomethingToDisplay?re.html`
1636
+ <div role="group" class="ft-search-selected-facets--container" aria-label="${Ht.messages.filterGroupLabel()}">
1637
1637
  ${this.displayAllFilers?this.renderAllValueFilters():this.renderFacets()}
1638
1638
  ${this.renderSearchScope()}
1639
- ${(0,Hr.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))}
1639
+ ${(0,Br.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))}
1640
1640
  </div>
1641
- `:this.nothingToDisplayMessage.message}renderAllValueFilters(){return(0,Hr.repeat)((this.filters||[]).filter(e=>!!e.valueFilter),e=>e.key,e=>(0,Hr.repeat)(e.valueFilter.values,r=>e.key+"-"+r,r=>this.renderFacet(e.key,e.key,e.valueFilter.values,r)))}renderFacets(){return(0,Hr.repeat)(this.facets||[],e=>e.key,e=>{let r=this.getSelectedValues(e);return(0,Hr.repeat)(r,i=>e.key+"-"+i,i=>this.renderFacet(e.key,e.label,r,i))})}isFacetNegative(e,r){var i,n;return(n=(i=this.filters)===null||i===void 0?void 0:i.some(s=>{var o,a;return s.key===e&&((o=s.valueFilter)===null||o===void 0?void 0:o.negative)===!0&&((a=s.valueFilter.values)===null||a===void 0?void 0:a.includes(r))}))!==null&&n!==void 0?n:!1}renderFacet(e,r,i,n){if(e==="ft:publicationId"&&!this.displayAllFilers)return ie.nothing;let s=e.replace(":","-"),o=this.getLabelFromValue(e,n),a=this.getBreadcrumbFromValue(e,n),l=r+": "+(this.isFacetNegative(e,n)?"NOT ":"")+a,c=!this.forceTooltip&&this.displayLabel&&a==o,u=ie.html`
1641
+ `:this.nothingToDisplayMessage.message}renderAllValueFilters(){return(0,Br.repeat)((this.filters||[]).filter(e=>!!e.valueFilter),e=>e.key,e=>(0,Br.repeat)(e.valueFilter.values,r=>e.key+"-"+r,r=>this.renderFacet(e.key,e.key,e.valueFilter.values,r)))}renderFacets(){return(0,Br.repeat)(this.facets||[],e=>e.key,e=>{let r=this.getSelectedValues(e);return(0,Br.repeat)(r,i=>e.key+"-"+i,i=>this.renderFacet(e.key,e.label,r,i))})}isFacetNegative(e,r){var i,n;return(n=(i=this.filters)===null||i===void 0?void 0:i.some(s=>{var o,a;return s.key===e&&((o=s.valueFilter)===null||o===void 0?void 0:o.negative)===!0&&((a=s.valueFilter.values)===null||a===void 0?void 0:a.includes(r))}))!==null&&n!==void 0?n:!1}renderFacet(e,r,i,n){if(e==="ft:publicationId"&&!this.displayAllFilers)return re.nothing;let s=e.replace(":","-"),o=this.getLabelFromValue(e,n),a=this.getBreadcrumbFromValue(e,n),l=r+": "+(this.isFacetNegative(e,n)?"NOT ":"")+a,c=!this.forceTooltip&&this.displayLabel&&a==o,p=re.html`
1642
1642
  <ft-chip
1643
1643
  part="ft-search-selected-facets ft-search-selected-facet-${s}"
1644
1644
  ?dense=${this.dense}
1645
1645
  ?removable=${!this.readOnly}
1646
1646
  hideIconTooltip accessibleLabelOnIcon
1647
- iconLabel="${Vt.messages.removeNamedFilterLabel(l)}"
1647
+ iconLabel="${Ht.messages.removeNamedFilterLabel(l)}"
1648
1648
  label="${l}"
1649
- @icon-click=${p=>{var f;(f=this.stateManager)===null||f===void 0||f.setValueFilter(e,i.filter(y=>y!==n)),this.determineAndApplyFocus(p)}}
1649
+ @icon-click=${d=>{var f;(f=this.stateManager)===null||f===void 0||f.setValueFilter(e,i.filter(g=>g!==n)),this.determineAndApplyFocus(d)}}
1650
1650
  ?multiLine=${this.multiLine}
1651
1651
  data-key="${e}"
1652
1652
  data-value="${n}">
1653
- ${this.displayLabel?ie.html`
1654
- <span part="label">${r}: </span>`:ie.nothing}
1653
+ ${this.displayLabel?re.html`
1654
+ <span part="label">${r}: </span>`:re.nothing}
1655
1655
  <span part="values">
1656
- ${this.isFacetNegative(e,n)?ie.html`<strong>NOT</strong> ${o}`:o}
1656
+ ${this.isFacetNegative(e,n)?re.html`<strong>NOT</strong> ${o}`:o}
1657
1657
  </span>
1658
- </ft-chip>`;return c?u:ie.html`
1658
+ </ft-chip>`;return c?p:re.html`
1659
1659
  <ft-tooltip inline text="${l}"
1660
1660
  part="tooltips tooltip-${s}">
1661
- ${u}
1661
+ ${p}
1662
1662
  </ft-tooltip>
1663
- `}getNextChipToFocusOn(e){let r=(0,z.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 z.FocusMainContentEvent)}getSelectedValues(e){return(0,z.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 n=this.getDateFormatter(e);return n?n(r):(0,z.formatHierarchicalValues)(this.unquote(r).split("|"),i)}unquote(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}renderSearchScope(){return ie.html`
1663
+ `}getNextChipToFocusOn(e){let r=(0,V.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 V.FocusMainContentEvent)}getSelectedValues(e){return(0,V.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 n=this.getDateFormatter(e);return n?n(r):(0,V.formatHierarchicalValues)(this.unquote(r).split("|"),i)}unquote(e){return e.startsWith('"')&&e.endsWith('"')?e.replace(/(^"+)|("+$)/g,""):e}renderSearchScope(){return re.html`
1664
1664
  ${this.renderSearchInDocumentTitlesOnly()}
1665
1665
  ${this.renderKeywordMatch()}
1666
- `}renderSearchInDocumentTitlesOnly(){if(!this.searchInDocumentTitlesOnly)return ie.nothing;let e=xt.messages.documentTitlesOnly(),r=ie.html`
1666
+ `}renderSearchInDocumentTitlesOnly(){if(!this.searchInDocumentTitlesOnly)return re.nothing;let e=xt.messages.documentTitlesOnly(),r=re.html`
1667
1667
  <ft-chip
1668
1668
  part="ft-search-selected-facets ft-search-selected-facet-search-in-document-titles-only"
1669
1669
  label="${e}"
1670
1670
  ?dense=${this.dense}
1671
1671
  ?removable=${!this.readOnly}
1672
1672
  hideIconTooltip accessibleLabelOnIcon
1673
- iconLabel="${Vt.messages.removeNamedFilterLabel(e)}"
1673
+ iconLabel="${Ht.messages.removeNamedFilterLabel(e)}"
1674
1674
  @icon-click=${i=>{var n;(n=this.stateManager)===null||n===void 0||n.setSearchInDocumentTitlesOnly(!1),this.determineAndApplyFocus(i)}}
1675
1675
  ?multiLine=${this.multiLine}>
1676
1676
  <span part="values">
1677
1677
  ${e}
1678
1678
  </span>
1679
- </ft-chip>`;return this.forceTooltip?ie.html`
1679
+ </ft-chip>`;return this.forceTooltip?re.html`
1680
1680
  <ft-tooltip inline text="${e}"
1681
1681
  part="tooltips tooltip-search-in-document-titles-only">
1682
1682
  ${r}
1683
- </ft-tooltip>`:r}renderKeywordMatch(){if(!this.keywordMatch)return ie.nothing;let e=xt.messages.matchAllKeywords(),r=ie.html`
1683
+ </ft-tooltip>`:r}renderKeywordMatch(){if(!this.keywordMatch)return re.nothing;let e=xt.messages.matchAllKeywords(),r=re.html`
1684
1684
  <ft-chip
1685
1685
  part="ft-search-selected-facets ft-search-selected-facet-match-all-keywords"
1686
1686
  label="${e}"
1687
1687
  ?dense=${this.dense}
1688
1688
  ?removable=${!this.readOnly}
1689
1689
  hideIconTooltip accessibleLabelOnIcon
1690
- iconLabel="${Vt.messages.removeNamedFilterLabel(e)}"
1690
+ iconLabel="${Ht.messages.removeNamedFilterLabel(e)}"
1691
1691
  @icon-click=${i=>{var n;(n=this.stateManager)===null||n===void 0||n.setKeywordMatch(ht.OPTIONAL),this.determineAndApplyFocus(i)}}
1692
1692
  ?multiLine=${this.multiLine}>
1693
1693
  <span part="values">
1694
1694
  ${e}
1695
1695
  </span>
1696
- </ft-chip>`;return this.forceTooltip?ie.html`
1696
+ </ft-chip>`;return this.forceTooltip?re.html`
1697
1697
  <ft-tooltip inline text="${e}"
1698
1698
  part="tooltips tooltip-match-all-keywords">
1699
1699
  ${r}
1700
- </ft-tooltip>`:r}renderPeriodFilter(e){return e.dateFilter?this.renderDateFilter(e.key,e.dateFilter):e.rangeFilter?this.renderRangeFilter(e.key,e.rangeFilter):ie.nothing}renderDateFilter(e,r){let i=be.messages.period(be.messages[r.type]());return ie.html`
1700
+ </ft-tooltip>`:r}renderPeriodFilter(e){return e.dateFilter?this.renderDateFilter(e.key,e.dateFilter):e.rangeFilter?this.renderRangeFilter(e.key,e.rangeFilter):re.nothing}renderDateFilter(e,r){let i=ve.messages.period(ve.messages[r.type]());return re.html`
1701
1701
  <ft-tooltip inline text="${i}"
1702
1702
  part=" tooltips tooltip-search-period-filter">
1703
1703
  <ft-chip
@@ -1706,14 +1706,14 @@
1706
1706
  ?removable=${!this.readOnly}
1707
1707
  hideIconTooltip accessibleLabelOnIcon
1708
1708
  label="${i}"
1709
- iconLabel="${Vt.messages.removeNamedFilterLabel(i)}"
1709
+ iconLabel="${Ht.messages.removeNamedFilterLabel(i)}"
1710
1710
  @icon-click=${n=>{var s;(s=this.stateManager)===null||s===void 0||s.removeDateFilter(e),this.determineAndApplyFocus(n)}}
1711
1711
  ?multiLine=${this.multiLine}>
1712
1712
  <span part="values">
1713
- ${be.messages[r.type]()}
1713
+ ${ve.messages[r.type]()}
1714
1714
  </span>
1715
1715
  </ft-chip>
1716
- </ft-tooltip>`}renderRangeFilter(e,r){let i=be.messages.period(be.messages.customPeriod(r.from,r.to));return ie.html`
1716
+ </ft-tooltip>`}renderRangeFilter(e,r){let i=ve.messages.period(ve.messages.customPeriod(r.from,r.to));return re.html`
1717
1717
  <ft-tooltip inline text="${i}" part=" tooltips tooltip-search-period-filter">
1718
1718
  <ft-chip
1719
1719
  part="ft-search-selected-facets ft-search-selected-facet-period-filter"
@@ -1721,14 +1721,14 @@
1721
1721
  ?dense=${this.dense}
1722
1722
  ?removable=${!this.readOnly}
1723
1723
  hideIconTooltip accessibleLabelOnIcon
1724
- iconLabel="${Vt.messages.removeNamedFilterLabel(i)}"
1724
+ iconLabel="${Ht.messages.removeNamedFilterLabel(i)}"
1725
1725
  @icon-click=${n=>{var s;(s=this.stateManager)===null||s===void 0||s.removeRangeFilter(e),this.determineAndApplyFocus(n)}}
1726
1726
  ?multiLine=${this.multiLine}>
1727
1727
  <span part="values">
1728
- ${be.messages.CUSTOM()}
1728
+ ${ve.messages.CUSTOM()}
1729
1729
  </span>
1730
1730
  </ft-chip>
1731
- </ft-tooltip>`}updated(e){var r,i,n,s;if(super.updated(e),e.get("filters")){let o=(n=(r=this.filters)===null||r===void 0?void 0:r.filter(l=>l.dateFilter||l.rangeFilter).length)!==null&&n!==void 0?n: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=(s=(i=this.facets)===null||i===void 0?void 0:i.filter(l=>this.getSelectedValues(l).length>0).length)!==null&&s!==void 0?s: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})})}};ee.elementDefinitions={"ft-chip":V,"ft-tooltip":K};ee.styles=mo;Le([(0,xr.property)({type:Boolean})],ee.prototype,"displayLabel",void 0);Le([(0,xr.property)({type:Boolean})],ee.prototype,"forceTooltip",void 0);Le([(0,xr.property)({type:Boolean})],ee.prototype,"multiLine",void 0);Le([(0,z.numberProperty)()],ee.prototype,"hierarchicalValueTruncatingLevel",void 0);Le([(0,z.redux)({store:"search"})],ee.prototype,"facets",void 0);Le([(0,z.redux)({store:"search",selector:bn})],ee.prototype,"searchInDocumentTitlesOnly",void 0);Le([(0,z.redux)({store:"search",selector:xn})],ee.prototype,"keywordMatch",void 0);Le([(0,z.redux)({store:"search",selector:t=>t.request.metadataFilters})],ee.prototype,"filters",void 0);Le([(0,z.redux)({store:"search",selector:t=>t.request.scope})],ee.prototype,"scope",void 0);Le([(0,z.jsonProperty)({context:"officialContext",key:"searchSelectedFacetsAriaNotification"})],ee.prototype,"selectedFacetsAriaNotification",void 0);Le([(0,z.jsonProperty)({message:""})],ee.prototype,"nothingToDisplayMessage",void 0);Le([(0,xr.property)({type:Boolean})],ee.prototype,"readOnly",void 0);Le([(0,xr.property)({type:Boolean})],ee.prototype,"dense",void 0);Le([(0,xr.property)({type:Boolean})],ee.prototype,"displayAllFilers",void 0);var rd={"ft-search-selected-facets":ee};(0,id.customElements)(rd);})();
1731
+ </ft-tooltip>`}updated(e){var r,i,n,s;if(super.updated(e),e.get("filters")){let o=(n=(r=this.filters)===null||r===void 0?void 0:r.filter(l=>l.dateFilter||l.rangeFilter).length)!==null&&n!==void 0?n: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=(s=(i=this.facets)===null||i===void 0?void 0:i.filter(l=>this.getSelectedValues(l).length>0).length)!==null&&s!==void 0?s: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})})}};J.elementDefinitions={"ft-chip":H,"ft-tooltip":W};J.styles=ho;ke([(0,br.property)({type:Boolean})],J.prototype,"displayLabel",void 0);ke([(0,br.property)({type:Boolean})],J.prototype,"forceTooltip",void 0);ke([(0,br.property)({type:Boolean})],J.prototype,"multiLine",void 0);ke([(0,V.numberProperty)()],J.prototype,"hierarchicalValueTruncatingLevel",void 0);ke([(0,V.redux)({store:"search"})],J.prototype,"facets",void 0);ke([(0,V.redux)({store:"search",selector:bn})],J.prototype,"searchInDocumentTitlesOnly",void 0);ke([(0,V.redux)({store:"search",selector:xn})],J.prototype,"keywordMatch",void 0);ke([(0,V.redux)({store:"search",selector:t=>t.request.metadataFilters})],J.prototype,"filters",void 0);ke([(0,V.redux)({store:"search",selector:t=>t.request.scope})],J.prototype,"scope",void 0);ke([(0,V.jsonProperty)({context:"officialContext",key:"searchSelectedFacetsAriaNotification"})],J.prototype,"selectedFacetsAriaNotification",void 0);ke([(0,V.jsonProperty)({message:""})],J.prototype,"nothingToDisplayMessage",void 0);ke([(0,br.property)({type:Boolean})],J.prototype,"readOnly",void 0);ke([(0,br.property)({type:Boolean})],J.prototype,"dense",void 0);ke([(0,br.property)({type:Boolean})],J.prototype,"displayAllFilers",void 0);var Zu={"ft-search-selected-facets":J};(0,Ju.customElements)(Zu);})();
1732
1732
  /*! Bundled license information:
1733
1733
 
1734
1734
  .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-request-event.js: