@fluid-topics/ft-viewer 2.2.24 → 2.2.26

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,9 +1,9 @@
1
- "use strict";(()=>{var ah=Object.create;var fl=Object.defineProperty;var lh=Object.getOwnPropertyDescriptor;var ch=Object.getOwnPropertyNames;var dh=Object.getPrototypeOf,uh=Object.prototype.hasOwnProperty;var sr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(i){throw e=0,i}};var ph=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ch(e))!uh.call(t,n)&&n!==i&&fl(t,n,{get:()=>e[n],enumerable:!(r=lh(e,n))||r.enumerable});return t};var c=(t,e,i)=>(i=t!=null?ah(dh(t)):{},ph(e||!t||!t.__esModule?fl(i,"default",{value:t,enumerable:!0}):i,t));var h=sr((og,hl)=>{hl.exports=ftGlobals.wcUtils});var F=sr((sg,ml)=>{ml.exports=ftGlobals.litDecorators});var S=sr((Dg,xl)=>{xl.exports=ftGlobals.lit});var br=sr((vb,_d)=>{_d.exports=ftGlobals.litRepeat});var $a=sr((Xb,su)=>{su.exports=ftGlobals.litUnsafeHTML});var lt=sr((dE,Iu)=>{Iu.exports=ftGlobals.litClassMap});var nh=c(h());var yl=c(h()),vl=c(F());var Gt=class extends Event{constructor(e,i,r,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=i,this.callback=r,this.subscribe=n??!1}};var ar=class{constructor(e,i,r,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,s)),this.unsubscribe=s},this.host=e,i.context!==void 0){let o=i;this.context=o.context,this.callback=o.callback,this.subscribe=o.subscribe??!1}else this.context=i,this.callback=r,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new Gt(this.context,this.host,this.t,this.subscribe))}};var Ln=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,i=!1){let r=i||!Object.is(e,this.o);this.o=e,r&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[i,{disposer:r}]of this.subscriptions)i(this.o,r)},e!==void 0&&(this.value=e)}addCallback(e,i,r){if(!r)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:i});let{disposer:n}=this.subscriptions.get(e);e(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var js=class extends Event{constructor(e,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=i}},lr=class extends Ln{constructor(e,i,r){super(i.context!==void 0?i.initialValue:r),this.onContextRequest=n=>{if(n.context!==this.context)return;let o=n.contextTarget??n.composedPath()[0];o!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,o,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let o=new Set;for(let[s,{consumerHost:a}]of this.subscriptions)o.has(s)||(o.add(s),a.dispatchEvent(new Gt(this.context,a,s,!0)));n.stopPropagation()},this.host=e,i.context!==void 0?this.context=i.context:this.context=i,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new js(this.context,this.host))}};var Kr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let i=this.pendingContextRequests.get(e.context);if(i===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:r}=i;for(let{elementRef:n,callbackRef:o}of r){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new Gt(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let i=e.contextTarget??e.composedPath()[0],r=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(i);o===void 0&&n.callbacks.set(i,o=new WeakSet),o.has(r)||(o.add(r),n.requests.push({elementRef:new WeakRef(i),callbackRef:new WeakRef(r)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};function Gr({context:t}){return(e,i)=>{let r=new WeakMap;if(typeof i=="object")return{get(){return e.get.call(this)},set(n){return r.get(this).setValue(n),e.set.call(this,n)},init(n){return r.set(this,new lr(this,{context:t,initialValue:n})),n}};{e.constructor.addInitializer((s=>{r.set(s,new lr(s,{context:t}))}));let n=Object.getOwnPropertyDescriptor(e,i),o;if(n===void 0){let s=new WeakMap;o={get(){return s.get(this)},set(a){r.get(this).setValue(a),s.set(this,a)},configurable:!0,enumerable:!0}}else{let s=n.set;o={...n,set(a){r.get(this).setValue(a),s?.call(this,a)}}}return void Object.defineProperty(e,i,o)}}}function qr({context:t,subscribe:e}){return(i,r)=>{typeof r=="object"?r.addInitializer((function(){new ar(this,{context:t,callback:n=>{i.set.call(this,n)},subscribe:e})})):i.constructor.addInitializer((n=>{new ar(n,{context:t,callback:o=>{n[r]=o},subscribe:e})}))}}var fh=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Ws="asset-viewer-state-manager",Nt=(0,yl.applyMixinOnce)(Symbol("toFtAssetViewerComponent"),function(t){class e extends t{willUpdate(r){super.willUpdate(r),r.has("viewerStateManager")&&(this.viewerStateManager?this.addStore(this.viewerStateManager.store,"viewer"):this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.viewerStateManager&&this.addStore(this.viewerStateManager.store,"viewer")}disconnectedCallback(){super.disconnectedCallback(),this.removeStore("viewer")}get service(){var r;return(r=this.viewerStateManager)===null||r===void 0?void 0:r.service}}return fh([qr({context:Ws,subscribe:!0}),(0,vl.state)()],e.prototype,"viewerStateManager",void 0),e});var bd=c(S()),xr=c(h());var bl=c(h()),hh={setZoom:(t,e)=>{t.contentModifiers.zoom=e.payload},setRotation:(t,e)=>{t.contentModifiers.rotation=e.payload}},In=t=>bl.FtReduxStore.get({name:"ft-viewer-"+t,initialState:{documentId:void 0,unstructuredDocument:void 0,document:void 0,assetId:void 0,origin:void 0,descriptor:void 0,contentModifiers:{zoom:void 0,rotation:0},watermark:void 0,configuration:void 0,documentRating:void 0,assetRating:void 0,relatives:void 0},reducers:hh});var yd=c(h());var fa=c(F());var Sl=c(F(),1);var Ks=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},mh=t=>({fromAttribute:e=>{if(e==null)return Yr(t);try{return JSON.parse(e)}catch{return Yr(t)}},toAttribute:e=>JSON.stringify(e)});function wl(t,e){return(0,Sl.property)({type:Object,converter:mh(t),hasChanged:Zr,...e??{}})}function gh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let i,r;if(Array.isArray(t)){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!cr(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!cr(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(i=o.length,i!==n(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;r--!==0;){let s=o[r];if(!cr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function cr(t,e){try{return gh(t,e)}catch{return!1}}function Zr(t,e){return!cr(t,e)}function Yr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Pn(t,e){let i=r=>r[t]===!0;return r=>{if(i(r))return r;let n=e(r);return n[t]=!0,n}}var El=c(F(),1);var Gs=t=>{let e=t??{};return(i,r)=>{var n;let o={hasChanged:Zr,attribute:!1,...e};(0,El.property)(o)(i,r);let s=i.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(r,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[r]),store:e.store})}};var Mn=class{constructor(){this.queue=[]}add(e,i=!1){i&&this.clear(e.type),this.queue.push(e)}consume(e){let i=this.queue.find(r=>r.type===e);return i&&(this.queue=this.queue.filter(r=>r!==i)),i}clear(e){typeof e=="string"?this.queue=this.queue.filter(i=>i.type!==e):this.queue=this.queue.filter(i=>!e.test(i.type))}};var Ti=c(F(),1);var Nn=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,i){return this.callbacks=[e],this.debounce(i)}queue(e,i){return this.callbacks.push(e),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((i,r)=>{this.resolvePromise=i,this.rejectPromise=r})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,i;let r=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(i=this.resolvePromise)!==null&&i!==void 0?i:(()=>null);this.clearPromise();for(let s of r)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Fn=c(S(),1);var $n=class extends Fn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let i={...e.shadowRootOptions,customElements:e.registry},r=this.renderOptions.creationScope=this.attachShadow(i);return(0,Fn.adoptStyles)(r,e.elementStyles),r}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([i,r])=>this.defineScopedElement(i,r))}static defineScopedElement(e,i){Ks(e)(i),this.canDefineScopedElement(e)&&this.registry.define(e,i)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,i){this.scopedRegistryConstructor.defineScopedElement(e,i)}};function Al(t,e,...i){var r;let n=t.querySelector(e);for(let o of i)n=(r=n?.shadowRoot)===null||r===void 0?void 0:r.querySelector(o);return n}var ur=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Rl,_l=Symbol("constructorPrototype"),Cl=Symbol("constructorName"),Ol=Symbol("exportpartsDebouncer"),Tl=Symbol("dynamicDependenciesLoaded"),dr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};dr.eventName="exportparts-updated";var $t=class extends $n{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[Rl]=new Nn(5),this.scheduleExportpartsUpdate=()=>{var e,i,r;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(r=(i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)!==null&&r!==void 0&&r)&&this[Ol].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Cl]=this.constructor.name,this[_l]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Cl]&&Object.setPrototypeOf(this,this[_l])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let i=this.constructor;i[Tl]||(i[Tl]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(dr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(dr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new dr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:i,selector:r,shadowPath:n}=this.elementToFocus;if(r!=null){let o=[...n??[],r];i=Al(this.shadowRoot,...o)}i?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||i?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var i,r,n;if(((r=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&r!==void 0?r:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var i,r,n,o,s,a;let l=f=>f!=null&&f.trim().length>0,d=e.filter(l).map(f=>f.trim());if(d.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(o=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let y=(s=(r=f.getAttribute("part"))===null||r===void 0?void 0:r.split(" "))!==null&&s!==void 0?s:[],w=(a=(n=f.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],C=[...y,...w].filter(l).map(b=>b.trim());for(let b of C)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>d.map(y=>`${f}:${y}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};Rl=Ol;ur([(0,Ti.property)()],$t.prototype,"exportpartsPrefix",void 0);ur([wl([])],$t.prototype,"exportpartsPrefixes",void 0);ur([(0,Ti.property)({reflect:!0})],$t.prototype,"exportparts",void 0);ur([(0,Ti.property)()],$t.prototype,"customStylesheet",void 0);ur([(0,Ti.property)()],$t.prototype,"elementToFocus",void 0);ur([(0,Ti.state)()],$t.prototype,"useAdoptedStyleSheets",void 0);function Un(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Xr=Symbol("internalReduxEventsUnsubscribers"),di=Symbol("internalStoresUnsubscribers"),Ri=Symbol("internalStores"),yh=Pn(Symbol("withRedux"),function(t){var e,i,r;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[i]=new Map,this[r]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ri].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ri].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ri].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ri].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Ri].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ri].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let d=this.getStore(s.store);d&&(s.store?this[di].has(s.store):this[di].size>0)&&(this[a]=s.selector(d.getState(),this))}})}subscribeToStore(s,a){var l;this[di].set(s,a.subscribe(()=>this.updateFromStores())),this[Xr].set(s,[]),Un(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((d,u)=>{if(typeof this[u]=="function"&&(!d.store||a.name===d.store)){let p=f=>this[u](f);a.addEventListener(d.eventName,p),this[Xr].get(s).push(()=>a.removeEventListener(d.eventName,p))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[di].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[di].has(s)&&this[di].get(s)(),this[di].delete(s),(a=this[Xr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Xr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=di,i=Ri,r=Xr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),kl=class extends yh($t){};function Te(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 vh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Dl=vh,qs=()=>Math.random().toString(36).substring(7).split("").join("."),xh={INIT:`@@redux/INIT${qs()}`,REPLACE:`@@redux/REPLACE${qs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${qs()}`},Vn=xh;function Bn(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 Ys(t,e,i){if(typeof t!="function")throw new Error(Te(2));if(typeof e=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof e=="function"&&typeof i>"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Te(1));return i(Ys)(t,e)}let r=t,n=e,o=new Map,s=o,a=0,l=!1;function d(){s===o&&(s=new Map,o.forEach((b,T)=>{s.set(T,b)}))}function u(){if(l)throw new Error(Te(3));return n}function p(b){if(typeof b!="function")throw new Error(Te(4));if(l)throw new Error(Te(5));let T=!0;d();let B=a++;return s.set(B,b),function(){if(T){if(l)throw new Error(Te(6));T=!1,d(),s.delete(B),o=null}}}function f(b){if(!Bn(b))throw new Error(Te(7));if(typeof b.type>"u")throw new Error(Te(8));if(typeof b.type!="string")throw new Error(Te(17));if(l)throw new Error(Te(9));try{l=!0,n=r(n,b)}finally{l=!1}return(o=s).forEach(B=>{B()}),b}function y(b){if(typeof b!="function")throw new Error(Te(10));r=b,f({type:Vn.REPLACE})}function w(){let b=p;return{subscribe(T){if(typeof T!="object"||T===null)throw new Error(Te(11));function B(){let k=T;k.next&&k.next(u())}return B(),{unsubscribe:b(B)}},[Dl](){return this}}}return f({type:Vn.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:y,[Dl]:w}}function bh(t){Object.keys(t).forEach(e=>{let i=t[e];if(typeof i(void 0,{type:Vn.INIT})>"u")throw new Error(Te(12));if(typeof i(void 0,{type:Vn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function Ll(t){let e=Object.keys(t),i={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(i[a]=t[a])}let r=Object.keys(i),n,o;try{bh(i)}catch(s){o=s}return function(a={},l){if(o)throw o;let d=!1,u={};for(let p=0;p<r.length;p++){let f=r[p],y=i[f],w=a[f],C=y(w,l);if(typeof C>"u"){let b=l&&l.type;throw new Error(Te(14))}u[f]=C,d=d||C!==w}return d=d||r.length!==Object.keys(a).length,d?u:a}}function Jr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,i)=>(...r)=>e(i(...r)))}function Il(...t){return e=>(i,r)=>{let n=e(i,r),o=()=>{throw new Error(Te(15))},s={getState:n.getState,dispatch:(l,...d)=>o(l,...d)},a=t.map(l=>l(s));return o=Jr(...a)(n.dispatch),{...n,dispatch:o}}}function Pl(t){return Bn(t)&&"type"in t&&typeof t.type=="string"}var zl=Symbol.for("immer-nothing"),Ml=Symbol.for("immer-draftable"),Le=Symbol.for("immer-state");function wt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var it=Object,fr=it.getPrototypeOf,Wn="constructor",Xn="prototype",Qs="configurable",Kn="enumerable",zn="writable",Qr="value",Ft=t=>!!t&&!!t[Le];function rt(t){return t?jl(t)||Qn(t)||!!t[Ml]||!!t[Wn]?.[Ml]||eo(t)||to(t):!1}var Sh=it[Xn][Wn].toString(),Nl=new WeakMap;function jl(t){if(!t||!aa(t))return!1;let e=fr(t);if(e===null||e===it[Xn])return!0;let i=it.hasOwnProperty.call(e,Wn)&&e[Wn];if(i===Object)return!0;if(!pr(i))return!1;let r=Nl.get(i);return r===void 0&&(r=Function.toString.call(i),Nl.set(i,r)),r===Sh}function Jn(t,e,i=!0){rn(t)===0?(i?Reflect.ownKeys(t):it.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((r,n)=>e(n,r,t))}function rn(t){let e=t[Le];return e?e.type_:Qn(t)?1:eo(t)?2:to(t)?3:0}var Zs=(t,e,i=rn(t))=>i===2?t.has(e):it[Xn].hasOwnProperty.call(t,e),ea=(t,e,i=rn(t))=>i===2?t.get(e):t[e],Gn=(t,e,i,r=rn(t))=>{r===2?t.set(e,i):r===3?t.add(i):t[e]=i};function wh(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var Qn=Array.isArray,eo=t=>t instanceof Map,to=t=>t instanceof Set,aa=t=>typeof t=="object",pr=t=>typeof t=="function",Xs=t=>typeof t=="boolean";function Eh(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var qt=t=>t.copy_||t.base_;var la=t=>t.modified_?t.copy_:t.base_;function ta(t,e){if(eo(t))return new Map(t);if(to(t))return new Set(t);if(Qn(t))return Array[Xn].slice.call(t);let i=jl(t);if(e===!0||e==="class_only"&&!i){let r=it.getOwnPropertyDescriptors(t);delete r[Le];let n=Reflect.ownKeys(r);for(let o=0;o<n.length;o++){let s=n[o],a=r[s];a[zn]===!1&&(a[zn]=!0,a[Qs]=!0),(a.get||a.set)&&(r[s]={[Qs]:!0,[zn]:!0,[Kn]:a[Kn],[Qr]:t[s]})}return it.create(fr(t),r)}else{let r=fr(t);if(r!==null&&i)return{...t};let n=it.create(r);return it.assign(n,t)}}function ca(t,e=!1){return io(t)||Ft(t)||!rt(t)||(rn(t)>1&&it.defineProperties(t,{set:Hn,add:Hn,clear:Hn,delete:Hn}),it.freeze(t),e&&Jn(t,(i,r)=>{ca(r,!0)},!1)),t}function Ah(){wt(2)}var Hn={[Qr]:Ah};function io(t){return t===null||!aa(t)?!0:it.isFrozen(t)}var qn="MapSet",ia="Patches",$l="ArrayMethods",Wl={};function Oi(t){let e=Wl[t];return e||wt(0,t),e}var Fl=t=>!!Wl[t];var en,Kl=()=>en,_h=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Fl(qn)?Oi(qn):void 0,arrayMethodsPlugin_:Fl($l)?Oi($l):void 0});function Ul(t,e){e&&(t.patchPlugin_=Oi(ia),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function ra(t){na(t),t.drafts_.forEach(Ch),t.drafts_=null}function na(t){t===en&&(en=t.parent_)}var Vl=t=>en=_h(en,t);function Ch(t){let e=t[Le];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Bl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let i=e.drafts_[0];if(t!==void 0&&t!==i){i[Le].modified_&&(ra(e),wt(4)),rt(t)&&(t=Hl(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(i[Le].base_,t,e)}else t=Hl(e,i);return Th(e,t,!0),ra(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==zl?t:void 0}function Hl(t,e){if(io(e))return e;let i=e[Le];if(!i)return Yn(e,t.handledSet_,t);if(!ro(i,t))return e;if(!i.modified_)return i.base_;if(!i.finalized_){let{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);Yl(i,t)}return i.copy_}function Th(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ca(e,i)}function Gl(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var ro=(t,e)=>t.scope_===e,Rh=[];function ql(t,e,i,r){let n=qt(t),o=t.type_;if(r!==void 0&&ea(n,r,o)===e){Gn(n,r,i,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Jn(n,(l,d)=>{if(Ft(d)){let u=a.get(d)||[];u.push(l),a.set(d,u)}})}let s=t.draftLocations_.get(e)??Rh;for(let a of s)Gn(n,a,i,o)}function Oh(t,e,i){t.callbacks_.push(function(n){let o=e;if(!o||!ro(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=la(o);ql(t,o.draft_??o,s,i),Yl(o,n)})}function Yl(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:r}=e;if(r){let n=r.getPath(t);n&&r.generatePatches_(t,n,e)}Gl(t)}}function kh(t,e,i){let{scope_:r}=t;if(Ft(i)){let n=i[Le];ro(n,r)&&n.callbacks_.push(function(){jn(t);let s=la(n);ql(t,i,s,e)})}else rt(i)&&t.callbacks_.push(function(){let o=qt(t);t.type_===3?o.has(i)&&Yn(i,r.handledSet_,r):ea(o,e,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Yn(ea(t.copy_,e,t.type_),r.handledSet_,r)})}function Yn(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||Ft(t)||e.has(t)||!rt(t)||io(t)||(e.add(t),Jn(t,(r,n)=>{if(Ft(n)){let o=n[Le];if(ro(o,i)){let s=la(o);Gn(t,r,s,t.type_),Gl(o)}}else rt(n)&&Yn(n,e,i)})),t}function Dh(t,e){let i=Qn(t),r={type_:i?1:0,scope_:e?e.scope_:Kl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=r,o=Zn;i&&(n=[r],o=tn);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return r.draft_=a,r.revoke_=s,[a,r]}var Zn={get(t,e){if(e===Le)return t;let i=t.scope_.arrayMethodsPlugin_,r=t.type_===1&&typeof e=="string";if(r&&i?.isArrayOperationMethod(e))return i.createMethodInterceptor(t,e);let n=qt(t);if(!Zs(n,e,t.type_))return Ih(t,n,e);let o=n[e];if(t.finalized_||!rt(o)||r&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&Eh(e))return o;if(o===Js(t.base_,e)||Lh(t,e,o)){jn(t);let s=t.type_===1?+e:e,a=sa(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in qt(t)},ownKeys(t){return Reflect.ownKeys(qt(t))},set(t,e,i){let r=Zl(qt(t),e);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){let n=Js(qt(t),e),o=n?.[Le];if(o&&o.base_===i)return t.copy_[e]=i,t.assigned_.set(e,!1),!0;if(wh(i,n)&&(i!==void 0||Zs(t.base_,e,t.type_)))return!0;jn(t),oa(t)}return t.copy_[e]===i&&(i!==void 0||Zs(t.copy_,e,t.type_))||Number.isNaN(i)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=i,t.assigned_.set(e,!0),kh(t,e,i)),!0},deleteProperty(t,e){return jn(t),Js(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),oa(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let i=qt(t),r=Reflect.getOwnPropertyDescriptor(i,e);return r&&{[zn]:!0,[Qs]:t.type_!==1||e!=="length",[Kn]:r[Kn],[Qr]:i[e]}},defineProperty(){wt(11)},getPrototypeOf(t){return fr(t.base_)},setPrototypeOf(){wt(12)}},tn={};for(let t in Zn){let e=Zn[t];tn[t]=function(){let i=arguments;return i[0]=i[0][0],e.apply(this,i)}}tn.deleteProperty=function(t,e){return tn.set.call(this,t,e,void 0)};tn.set=function(t,e,i){return Zn.set.call(this,t[0],e,i,t[0])};function Js(t,e){let i=t[Le];return(i?qt(i):t)[e]}function Lh(t,e,i){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!rt(i)||i[Le]?!1:t.baseRefs_.has(i)}function Ih(t,e,i){let r=Zl(e,i);return r?Qr in r?r[Qr]:r.get?.call(t.draft_):void 0}function Zl(t,e){if(!(e in t))return;let i=fr(t);for(;i;){let r=Object.getOwnPropertyDescriptor(i,e);if(r)return r;i=fr(i)}}function oa(t){t.modified_||(t.modified_=!0,t.parent_&&oa(t.parent_))}function jn(t){t.copy_||(t.assigned_=new Map,t.copy_=ta(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Ph=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,i,r)=>{if(pr(e)&&!pr(i)){let o=i;i=e;let s=this;return function(l=o,...d){return s.produce(l,u=>i.call(this,u,...d))}}pr(i)||wt(6),r!==void 0&&!pr(r)&&wt(7);let n;if(rt(e)){let o=Vl(this),s=sa(o,e,void 0),a=!0;try{n=i(s),a=!1}finally{a?ra(o):na(o)}return Ul(o,r),Bl(n,o)}else if(!e||!aa(e)){if(n=i(e),n===void 0&&(n=e),n===zl&&(n=void 0),this.autoFreeze_&&ca(n,!0),r){let o=[],s=[];Oi(ia).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),r(o,s)}return n}else wt(1,e)},this.produceWithPatches=(e,i)=>{if(pr(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,n;return[this.produce(e,i,(s,a)=>{r=s,n=a}),r,n]},Xs(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),Xs(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),Xs(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){rt(t)||wt(8),Ft(t)&&(t=Xl(t));let e=Vl(this),i=sa(e,t,void 0);return i[Le].isManual_=!0,na(e),i}finishDraft(t,e){let i=t&&t[Le];(!i||!i.isManual_)&&wt(9);let{scope_:r}=i;return Ul(r,e),Bl(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let i;for(i=e.length-1;i>=0;i--){let n=e[i];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}i>-1&&(e=e.slice(i+1));let r=Oi(ia).applyPatches_;return Ft(t)?r(t,e):this.produce(t,n=>r(n,e))}};function sa(t,e,i,r){let[n,o]=eo(e)?Oi(qn).proxyMap_(e,i):to(e)?Oi(qn).proxySet_(e,i):Dh(e,i);return(i?.scope_??Kl()).drafts_.push(n),o.callbacks_=i?.callbacks_??[],o.key_=r,i&&r!==void 0?Oh(i,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:d}=l;o.modified_&&d&&d.generatePatches_(o,[],l)}),n}function Xl(t){return Ft(t)||wt(10,t),Jl(t)}function Jl(t){if(!rt(t)||io(t))return t;let e=t[Le],i,r=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=ta(t,e.scope_.immer_.useStrictShallowCopy_),r=e.scope_.immer_.shouldUseStrictIteration()}else i=ta(t,!0);return Jn(i,(n,o)=>{Gn(i,n,Jl(o))},r),e&&(e.finalized_=!1),i}var Mh=globalThis.Iterator,iy=typeof Mh?.from=="function";var Nh=new Ph,da=Nh.produce;function Ql(t){return({dispatch:i,getState:r})=>n=>o=>typeof o=="function"?o(i,r,t):n(o)}var ec=Ql(),tc=Ql;var $h=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Jr:Jr.apply(null,arguments)},cy=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(t){return t}},Fh=t=>t&&typeof t.match=="function";function ui(t,e){function i(...r){if(e){let n=e(...r);if(!n)throw new Error(Yt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>Pl(r)&&r.type===t,i}var sc=class nn extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,nn.prototype)}static get[Symbol.species](){return nn}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new nn(...e[0].concat(this)):new nn(...e.concat(this))}};function ic(t){return rt(t)?da(t,()=>{}):t}function no(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}function Uh(t){return typeof t=="boolean"}var Vh=()=>function(e){let{thunk:i=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new sc;return i&&(Uh(i)?s.push(ec):s.push(tc(i.extraArgument))),s},Bh="RTK_autoBatch";var rc=t=>e=>{setTimeout(e,t)},Hh=(t,e)=>i=>{let r=!1,n=()=>{r||(r=!0,cancelAnimationFrame(o),clearTimeout(s),i())},o=t(n),s=setTimeout(n,e)},zh=(t={type:"raf"})=>e=>(...i)=>{let r=e(...i),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Hh(window.requestAnimationFrame,100):rc(10):t.type==="callback"?t.queueNotification:rc(t.timeout),d=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){let p=()=>n&&u(),f=r.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Bh],o=!n,o&&(s||(s=!0,l(d))),r.dispatch(u)}finally{n=!0}}})},jh=t=>function(i){let{autoBatch:r=!0}=i??{},n=new sc(t);return r&&n.push(zh(typeof r=="object"?r:void 0)),n};function ac(t){let e=Vh(),{reducer:i=void 0,middleware:r,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof i=="function")l=i;else if(Bn(i))l=Ll(i);else throw new Error(Yt(1));let d;typeof r=="function"?d=r(e):d=e();let u=Jr;n&&(u=$h({trace:!1,...typeof n=="object"&&n}));let p=Il(...d),f=jh(p),y=typeof a=="function"?a(f):f(),w=u(...y);return Ys(l,s,w)}function lc(t){let e={},i=[],r,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Yt(28));if(a in e)throw new Error(Yt(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&i.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return i.push({matcher:o,reducer:s}),n},addDefaultCase(o){return r=o,n}};return t(n),[e,i,r]}function Wh(t){return typeof t=="function"}function Kh(t,e){let[i,r,n]=lc(e),o;if(Wh(t))o=()=>ic(t());else{let a=ic(t);o=()=>a}function s(a=o(),l){let d=[i[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return d.filter(u=>!!u).length===0&&(d=[n]),d.reduce((u,p)=>{if(p)if(Ft(u)){let y=p(u,l);return y===void 0?u:y}else{if(rt(u))return da(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return f}}return u},a)}return s.getInitialState=o,s}var Gh=(t,e)=>Fh(t)?t.match(e):t(e);function qh(...t){return e=>t.some(i=>Gh(i,e))}var Yh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Zh=(t=21)=>{let e="",i=t;for(;i--;)e+=Yh[Math.random()*64|0];return e},Xh=["name","message","stack","code"],ua=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},nc=class{constructor(t,e){this.payload=t,this.meta=e}payload;meta;_type},Jh=t=>{if(typeof t=="object"&&t!==null){let e={};for(let i of Xh)typeof t[i]=="string"&&(e[i]=t[i]);return e}return{message:String(t)}},oc="External signal was aborted",Qh=(()=>{function t(e,i,r){let n=ui(e+"/fulfilled",(l,d,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:d,requestStatus:"fulfilled"}})),o=ui(e+"/pending",(l,d,u)=>({payload:void 0,meta:{...u||{},arg:d,requestId:l,requestStatus:"pending"}})),s=ui(e+"/rejected",(l,d,u,p,f)=>({payload:p,error:(r&&r.serializeError||Jh)(l||"Rejected"),meta:{...f||{},arg:u,requestId:d,rejectedWithValue:!!p,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:d}={}){return(u,p,f)=>{let y=r?.idGenerator?r.idGenerator(l):Zh(),w=new AbortController,C,b;function T(E){b=E,w.abort()}d&&(d.aborted?T(oc):d.addEventListener("abort",()=>T(oc),{once:!0}));let B=(async function(){let E;try{let N=r?.condition?.(l,{getState:p,extra:f});if(tm(N)&&(N=await N),N===!1||w.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};let ae=new Promise((q,le)=>{C=()=>{le({name:"AbortError",message:b||"Aborted"})},w.signal.addEventListener("abort",C,{once:!0})});u(o(y,l,r?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:f}))),E=await Promise.race([ae,Promise.resolve(i(l,{dispatch:u,getState:p,extra:f,requestId:y,signal:w.signal,abort:T,rejectWithValue:((q,le)=>new ua(q,le)),fulfillWithValue:((q,le)=>new nc(q,le))})).then(q=>{if(q instanceof ua)throw q;return q instanceof nc?n(q.payload,y,l,q.meta):n(q,y,l)})])}catch(N){E=N instanceof ua?s(null,y,l,N.payload,N.meta):s(N,y,l)}finally{C&&w.signal.removeEventListener("abort",C)}return r&&!r.dispatchConditionRejection&&s.match(E)&&E.meta.condition||u(E),E})();return Object.assign(B,{abort:T,requestId:y,arg:l,unwrap(){return B.then(em)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:qh(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function em(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function tm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var cc=Symbol.for("rtk-slice-createasyncthunk"),uy={[cc]:Qh};function im(t,e){return`${t}/${e}`}function rm({creators:t}={}){let e=t?.asyncThunk?.[cc];return function(r){let{name:n,reducerPath:o=n}=r;if(!n)throw new Error(Yt(11));typeof process<"u";let s=(typeof r.reducers=="function"?r.reducers(om()):r.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(E,k){let N=typeof E=="string"?E:E.type;if(!N)throw new Error(Yt(12));if(N in l.sliceCaseReducersByType)throw new Error(Yt(13));return l.sliceCaseReducersByType[N]=k,d},addMatcher(E,k){return l.sliceMatchers.push({matcher:E,reducer:k}),d},exposeAction(E,k){return l.actionCreators[E]=k,d},exposeCaseReducer(E,k){return l.sliceCaseReducersByName[E]=k,d}};a.forEach(E=>{let k=s[E],N={reducerName:E,type:im(n,E),createNotation:typeof r.reducers=="function"};am(k)?cm(N,k,d,e):sm(N,k,d)});function u(){let[E={},k=[],N=void 0]=typeof r.extraReducers=="function"?lc(r.extraReducers):[r.extraReducers],ae={...E,...l.sliceCaseReducersByType};return Kh(r.initialState,q=>{for(let le in ae)q.addCase(le,ae[le]);for(let le of l.sliceMatchers)q.addMatcher(le.matcher,le.reducer);for(let le of k)q.addMatcher(le.matcher,le.reducer);N&&q.addDefaultCase(N)})}let p=E=>E,f=new Map,y=new WeakMap,w;function C(E,k){return w||(w=u()),w(E,k)}function b(){return w||(w=u()),w.getInitialState()}function T(E,k=!1){function N(q){let le=q[E];return typeof le>"u"&&k&&(le=no(y,N,b)),le}function ae(q=p){let le=no(f,k,()=>new WeakMap);return no(le,q,()=>{let Wr={};for(let[pt,Ci]of Object.entries(r.selectors??{}))Wr[pt]=nm(Ci,q,()=>no(y,q,b),k);return Wr})}return{reducerPath:E,getSelectors:ae,get selectors(){return ae(N)},selectSlice:N}}let B={name:n,reducer:C,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...T(o),injectInto(E,{reducerPath:k,...N}={}){let ae=k??o;return E.inject({reducerPath:ae,reducer:C},N),{...B,...T(ae,!0)}}};return B}}function nm(t,e,i,r){function n(o,...s){let a=e(o);return typeof a>"u"&&r&&(a=i()),t(a,...s)}return n.unwrapped=t,n}var dc=rm();function om(){function t(e,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...i}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...i){return e(...i)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:i}},asyncThunk:t}}function sm({type:t,reducerName:e,createNotation:i},r,n){let o,s;if("reducer"in r){if(i&&!lm(r))throw new Error(Yt(17));o=r.reducer,s=r.prepare}else o=r;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?ui(t,s):ui(t))}function am(t){return t._reducerDefinitionType==="asyncThunk"}function lm(t){return t._reducerDefinitionType==="reducerWithPrepare"}function cm({type:t,reducerName:e},i,r,n){if(!n)throw new Error(Yt(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:d,options:u}=i,p=n(t,o,u);r.exposeAction(e,p),s&&r.addCase(p.fulfilled,s),a&&r.addCase(p.pending,a),l&&r.addCase(p.rejected,l),d&&r.addMatcher(p.settled,d),r.exposeCaseReducer(e,{fulfilled:s||oo,pending:a||oo,rejected:l||oo,settled:d||oo})}function oo(){}var uc="listener",pc="completed",fc="cancelled",py=`task-${fc}`,fy=`task-${pc}`,hy=`${uc}-${fc}`,my=`${uc}-${pc}`;var{assign:hc}=Object;var pa="listenerMiddleware";var dm=hc(ui(`${pa}/add`),{withTypes:()=>dm}),gy=ui(`${pa}/removeAll`),um=hc(ui(`${pa}/remove`),{withTypes:()=>um});function Yt(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 pm=Pn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(i,r,n){this.eventBus.addEventListener(i,r,n)}dispatchEvent(i){return this.eventBus.dispatchEvent(i)}removeEventListener(i,r,n){this.eventBus.removeEventListener(i,r,n)}}}),so=class extends pm(Object){};window.ftReduxStores||(window.ftReduxStores={});var mc=class t extends so{static get(e){var i;let r=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[r];if(Un(o))return o;if(n==null)return;let s=dc({...n,reducers:(i=n.reducers)!==null&&i!==void 0?i:{}}),a=ac({reducer:(l,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let u=Yr(s.getInitialState());for(let p of d.keeping)u[p]=(l??u)[p];return u}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...d.overwrites};return s.reducer(l,d)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,i,r){super(),this.reduxSlice=e,this.reduxStore=i,this.isFtReduxStore=!0,this.commands=new Mn,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,d=o[l];return d?(...u)=>{let p=d(...u.map(n));return this.reduxStore.dispatch(p),p}:u=>{let p=l,f=this.getState()[p];cr(f,u)||this.setState({[p]:n(u)})}}}),this.eventBus=r??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var ao=class{static format(e,i,r,n,o){return window.moment?window.moment(e).locale(i).format(this.getMomentDateFormat(r,n,!!o)):this.getIntlDateTime(e,i,r,n,!!o)}static getMomentDateFormat(e,i,r){return r?"LT":e?i?"lll":"ll":i?"L LT":"L"}static getIntlDateTime(e,i,r,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(i,{dateStyle:r?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(i,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=r=>String(Math.floor(r)).padStart(2,"0"),i=new Date().getTimezoneOffset();return`${i<0?"+":"-"}${e(Math.abs(i)/60)}:${e(Math.abs(i)%60)}`}};var lo=c(h()),fm="ft-app-info",nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};nt.eventName="authentication-change";var ki=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};ki.eventName="ui-locale-changed";var hm={session:(t,e)=>{(0,lo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>v.dispatchEvent(new nt(e.payload)),0))}},v=lo.FtReduxStore.get({name:fm,reducers:hm,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 gc=c(h()),co=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},yc=(0,gc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...r){super(r),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(v)}dateFormatOptionsChanged(r){return r.has("metadataDescriptors")||r.has("useLongDateFormat")||r.has("useDateTimeFormat")||r.has("uiLocale")}getDateFormatter(r){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===r))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>ao.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return co([(0,fa.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),co([(0,fa.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),co([Gs({store:v.name,selector:i=>{var r,n;return(n=(r=i.metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),co([Gs({store:v.name})],e.prototype,"uiLocale",void 0),e});var vc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(vc||(vc={}));var xc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(xc||(xc={}));var bc;(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"})(bc||(bc={}));var Sc;(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"})(Sc||(Sc={}));var wc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(wc||(wc={}));var Ec;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ec||(Ec={}));var Ac;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(Ac||(Ac={}));var _c;(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"})(_c||(_c={}));var Cc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Cc||(Cc={}));var Tc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Tc||(Tc={}));var Rc;(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"})(Rc||(Rc={}));var Oc;(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"})(Oc||(Oc={}));var kc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(kc||(kc={}));var Dc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Dc||(Dc={}));var Lc;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Lc||(Lc={}));var Ae;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ae||(Ae={}));var Ic;(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"})(Ic||(Ic={}));var Pc;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Pc||(Pc={}));var Mc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Mc||(Mc={}));var Nc;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})(Nc||(Nc={}));var $c;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})($c||($c={}));var Fc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Fc||(Fc={}));var uo;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(uo||(uo={}));var Uc;(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"})(Uc||(Uc={}));var Vc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Vc||(Vc={}));var Bc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Bc||(Bc={}));var Hc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Hc||(Hc={}));var zc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(zc||(zc={}));var ie;(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"})(ie||(ie={}));var ft;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ft||(ft={}));var jc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(jc||(jc={}));var Wc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Wc||(Wc={}));var Kc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Kc||(Kc={}));var Gc;(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"})(Gc||(Gc={}));var qc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(qc||(qc={}));var Yc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Yc||(Yc={}));var Zc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Zc||(Zc={}));var Xc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Xc||(Xc={}));var Jc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Jc||(Jc={}));var Qc;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(Qc||(Qc={}));var ed;(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"})(ed||(ed={}));var po;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(po||(po={}));var mm={[ie.PERSONAL_BOOK_SHARE_USER]:[ie.PERSONAL_BOOK_USER],[ie.HTML_EXPORT_USER]:[ie.PERSONAL_BOOK_USER],[ie.PDF_EXPORT_USER]:[ie.PERSONAL_BOOK_USER],[ie.KHUB_ADMIN]:[ie.CONTENT_PUBLISHER],[ie.ADMIN]:[ie.KHUB_ADMIN,ie.USERS_ADMIN,ie.PORTAL_ADMIN,ie.BEHAVIOR_DATA_USER],[ie.GENERATIVE_AI_EXPORT_USER]:[ie.GENERATIVE_AI_USER]};function td(t,e){return t===e||(mm[t]??[]).some(i=>td(i,e))}function hr(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(r=>td(r,e))}function id(t,...e){return t==null?!1:e.some(i=>hr(t,i))}var yo=c(h());var ha=c(h());var Ut=class t{static get(e){let{baseUrl:i,apiIntegrationIdentifier:r}=v.getState(),n=e??r;if(i&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,n,!0)}static await(e){return new Promise(i=>{let r=t.get(e);if(r)i(r);else{let n=v.subscribe(()=>{r=t.get(e),r&&(n(),i(r))})}})}};var mr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Ut.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Ut.await()}};var Re=class extends mr{constructor(e=!0,i){var r;super(i),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(r=n.commonCache)!==null&&r!==void 0?r:new ha.CacheRegistry,this.cache=e?n.commonCache:new ha.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((i,r)=>0|31*i+r.charCodeAt(0),0))}};var fo=class extends Re{async listMySearches(){let{session:e}=v.getState();return hr(e,ie.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var ho=class extends Re{async listMyBookmarks(){let e=v.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var mo=class extends Re{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=v.getState().session;return!!e?.sessionAuthenticated}};var go=class extends Re{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=v.getState().session;return!!e?.sessionAuthenticated}};var gm="ft-user-assets",ym={setAssetCount:(t,e)=>{let{userAssetType:i,count:r}=e.payload.assetCount;t.assetCounts.allAsset[i]=r},clearAssetCount:t=>{Object.values(ft).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let i=e.payload.mapId;t.assetCounts.bookmarkByMap[i]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:i,mapId:r,asset:n}=e.payload;ga(t,i,[...ma(t,i),n]),rd(t,i,1,r),nd(t,n)},editAsset:(t,e)=>{let{assetType:i,asset:r}=e.payload;ga(t,i,ma(t,i).map(n=>n.id===r.id?r:n)),nd(t,r)},removeAsset:(t,e)=>{let{assetType:i,mapId:r,assetId:n}=e.payload;ga(t,i,ma(t,i).filter(o=>o.id!==n)),rd(t,i,-1,r)}},od={[ft.SEARCHES]:"savedSearches",[ft.BOOKMARKS]:"bookmarks",[ft.BOOKS]:void 0,[ft.COLLECTIONS]:void 0},ma=(t,e)=>{var i;let r=od[e];return r?(i=t[r])!==null&&i!==void 0?i:[]:[]},ga=(t,e,i)=>{let r=od[e];r&&(t[r]=i)},rd=(t,e,i,r)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+i),e===ft.BOOKMARKS&&r)){let o=t.assetCounts.bookmarkByMap[r];t.assetCounts.bookmarkByMap[r]=Math.max(0,o+i)}},nd=(t,e)=>{let i=t.assetLabels.map(n=>n.title),r=e.labels.filter(n=>!i.includes(n)).map(n=>({title:n}));t.assetLabels.push(...r)},Fe=yo.FtReduxStore.get({name:gm,reducers:ym,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ft).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),ya=class{constructor(e=new mo,i=new go){this.assetCountsService=e,this.assetLabelsService=i,this.currentSession=v.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new ho,this.savedSearchesService=new fo,v.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:i}=v.getState();(0,yo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,i?.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Fe.actions.clearAssetCount(),Fe.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Fe.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Fe.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Fe.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Fe.actions.assetLabels(e)}async loadAssetCount(e){let i=await this.assetCountsService.getUserAssetCount(e);i&&Fe.getState().assetCounts.allAsset[e]!==i.count&&Fe.actions.setAssetCount({assetCount:i})}async loadBookmarkByMapId(e){let i=await this.assetCountsService.getUserBookmarkCountByMap(e);i&&Fe.getState().assetCounts.bookmarkByMap[e]!==i.count&&Fe.actions.setBookmarkCountByMap({count:i.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let i=Object.keys(Fe.getState().assetCounts.bookmarkByMap).length!==0;e===ft.BOOKMARKS&&i&&Fe.actions.clearBookmarkCountByMap(),Fe.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let i=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Fe.actions.bookmarks(i)}}},vm=new ya;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=vm);var va=class{addCommand(e,i=!1){v.commands.add(e,i)}consumeCommand(e){return v.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new va;var ht=c(h());var sd,gr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},xm=Symbol("clearAfterUnitTest"),vo=class extends(0,ht.withEventBus)(Re){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[sd]=()=>{this.defaultMessages={},this.cache=new ht.CacheRegistry,this.listeners={}},this.currentUiLocale=v.getState().uiLocale,v.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=v.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let i=e.name.toLowerCase();this.cache.setFinal(i,e),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,i){var r;if(e=e.toLowerCase(),i&&Object.keys(i).length>0){let n={...(r=this.defaultMessages[e])!==null&&r!==void 0?r:{},...i};(0,ht.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var i,r;return this.fetchContext(e),(r=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&r!==void 0?r:{}}resolveRawMessage(e,i){let r=e.toLowerCase();return this.resolveContext(r)[i]}resolveMessage(e,i,...r){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new ht.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(i,...r)}async fetchContext(e){let i=!this.cache.has(e),r;try{r=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),i&&await this.notify(e)}catch(n){!(n instanceof ht.CanceledPromiseError)&&i&&console.error(n)}return r}subscribe(e,i){var r;return e=e.toLowerCase(),this.listeners[e]=(r=this.listeners[e])!==null&&r!==void 0?r:new Set,this.listeners[e].add(i),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(i)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new gr({loadedContexts:e})),this.dispatchEvent(new gr({loadedContexts:e})),await Promise.all(e.map(i=>this.notify(i,!1)))}async notify(e,i=!0){i&&(document.body.dispatchEvent(new gr({loadedContexts:[e]})),this.dispatchEvent(new gr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,ht.delay)(0).then(()=>r()).catch(()=>null)))}};sd=xm;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends vo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends vo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var yr=window.FluidTopicsI18nService,xo=window.FluidTopicsCustomI18nService;var ad=c(h()),xa=class{highlightHtml(e,i,r){(0,ad.highlightHtml)(e,i,r)}};window.FluidTopicsHighlightHtmlService=new xa;var ld=c(h());var ba=class{isDate(e){var i,r,n,o;return(o=(r=((n=(i=v.getState().metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||r===void 0?void 0:r.date)!==null&&o!==void 0?o:!1}format(e,i){var r,n,o,s;if(e==null)return"";try{return ld.DateFormatter.format(e,(r=i?.locale)!==null&&r!==void 0?r:v.getState().uiLocale,(n=i?.longFormat)!==null&&n!==void 0?n:!1,(o=i?.withTime)!==null&&o!==void 0?o:!1,(s=i?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new ba;var cd=c(h());var on=class{static get(e,i){var r,n,o,s;let a=v.getState(),{lang:l,region:d}=(s=(n=(r=a.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new cd.SearchPlaceConverter(a.baseUrl,e??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,i??`${l}-${d}`)}};var Sa=class{urlToSearchRequest(e){return on.get().parse(e)}searchRequestToUrl(e){return on.get().serialize(e)}};window.FluidTopicsUrlService=new Sa;var Zt=c(h());var Di=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};Di.eventName="before-location-change";var Li=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Li.eventName="change";var wa=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let i=sessionStorage.getItem(this.itemName(e));return i?JSON.parse(i):void 0}set(e,i){sessionStorage.setItem(this.itemName(e),JSON.stringify(i))}},dd=new wa;var bo=class t extends Zt.WithEventBus{static build(){return new t(window.history,dd,()=>window.location,!1)}constructor(e,i,r,n){var o,s;super(),this.history=e,this.historyStorage=i,this.windowLocation=r,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,i=!1){let r=i&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,r&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Zt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Li(this.currentItem())),0)}installProxies(){let e=i=>(r,n,[o,s,a])=>{let l=new Di(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let d=i(),u={...d===this.currentIndex?this.currentState:void 0,...o,index:d,href:l.detail.nextLocation.href};r.apply(n,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let i=this.history.length-1;i>=0;i--)e?this.states[i]=this.historyStorage.get(i):setTimeout(()=>this.states[i]=this.historyStorage.get(i),this.history.length-i)}updateCurrentState(e){var i;let r={...this.buildCurrentState(),...e,index:this.currentIndex,title:(i=e?.title)!==null&&i!==void 0?i:this.currentState.title};this.setCurrentState(r)}addBeforeLocationChangeListener(e){this.addEventListener(Di.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(Di.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Li.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Li.eventName,e)}currentItem(){return(0,Zt.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,Zt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let i=this.states.filter(r=>!!r).filter(r=>r.index<this.currentIndex).reverse();return(0,Zt.deepCopy)(i.find(r=>e(r)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Zt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var i;let r=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;if(!r)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,r);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,i;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(i=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&i!==void 0?i:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,i){var r;if(!this.hasState(e))return!1;let n=i??this.currentState.majorStateId,o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=bo.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 So=class{constructor(){this.storeListeners=[]}store(e,i){if(this.isAuthenticated())return;let r=JSON.stringify(i);window.localStorage.setItem(e,r),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:r,storageArea:window.localStorage}))}get(e){var i,r;if(!this.isAuthenticated())return(r=JSON.parse((i=window.localStorage.getItem(e))!==null&&i!==void 0?i:"null"))!==null&&r!==void 0?r:void 0}addStoreListener(e,i){let r=n=>{n.key===e()&&!this.isAuthenticated()&&i()};this.storeListeners.push(r),window.addEventListener("storage",r)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=v.getState().session;return!!e?.sessionAuthenticated}};var ud=c(S());var pd=ud.css`
2
- `;var hd=c(S()),Ue=c(F()),Pi=c(h());var Ii=c(h());function fd(t,e){let{authenticationRequired:i,session:r}=v.getState();return i&&!r?.sessionAuthenticated?Promise.resolve(e):t()}var wo=class extends mr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Ea=class t extends Ii.FtStateManager{static build(e){return new t(v,e)}constructor(e,i){super(),this.store=e,this.cache=new Ii.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new wo,this.cleanSessionDebouncer=new Ii.Debouncer,this.reloadConfiguration=()=>{var r;(r=this.cache)===null||r===void 0||r.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Ii.Debouncer(500),this.apiProvider=i??(()=>Ut.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(nt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(nt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let i=await this.apiProvider().getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},i.idleTimeoutInMillis),i});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let i=await this.cache.get("availableContentLocales",()=>fd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=i.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,i){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:i}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new ki(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return id(v.getState().session,...e)}},pi=Ea.build();var _e=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},X=class extends Pi.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=pi,this.contextRoot=new Kr}render(){return hd.html`
1
+ "use strict";(()=>{var ah=Object.create;var ml=Object.defineProperty;var lh=Object.getOwnPropertyDescriptor;var ch=Object.getOwnPropertyNames;var dh=Object.getPrototypeOf,uh=Object.prototype.hasOwnProperty;var sr=(t,e)=>()=>{try{return e||t((e={exports:{}}).exports,e),e.exports}catch(i){throw e=0,i}};var ph=(t,e,i,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ch(e))!uh.call(t,n)&&n!==i&&ml(t,n,{get:()=>e[n],enumerable:!(r=lh(e,n))||r.enumerable});return t};var c=(t,e,i)=>(i=t!=null?ah(dh(t)):{},ph(e||!t||!t.__esModule?ml(i,"default",{value:t,enumerable:!0}):i,t));var h=sr((og,gl)=>{gl.exports=ftGlobals.wcUtils});var $=sr((sg,yl)=>{yl.exports=ftGlobals.litDecorators});var S=sr((Dg,Sl)=>{Sl.exports=ftGlobals.lit});var br=sr((yb,Cd)=>{Cd.exports=ftGlobals.litRepeat});var Ua=sr((Zb,au)=>{au.exports=ftGlobals.litUnsafeHTML});var lt=sr((cE,Pu)=>{Pu.exports=ftGlobals.litClassMap});var nh=c(h());var xl=c(h()),bl=c($());var qt=class extends Event{constructor(e,i,r,n){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=i,this.callback=r,this.subscribe=n??!1}};var ar=class{constructor(e,i,r,n){if(this.subscribe=!1,this.provided=!1,this.value=void 0,this.t=(o,s)=>{this.unsubscribe&&(this.unsubscribe!==s&&(this.provided=!1,this.unsubscribe()),this.subscribe||this.unsubscribe()),this.value=o,this.host.requestUpdate(),this.provided&&!this.subscribe||(this.provided=!0,this.callback&&this.callback(o,s)),this.unsubscribe=s},this.host=e,i.context!==void 0){let o=i;this.context=o.context,this.callback=o.callback,this.subscribe=o.subscribe??!1}else this.context=i,this.callback=r,this.subscribe=n??!1;this.host.addController(this)}hostConnected(){this.dispatchRequest()}hostDisconnected(){this.unsubscribe&&(this.unsubscribe(),this.unsubscribe=void 0)}dispatchRequest(){this.host.dispatchEvent(new qt(this.context,this.host,this.t,this.subscribe))}};var In=class{get value(){return this.o}set value(e){this.setValue(e)}setValue(e,i=!1){let r=i||!Object.is(e,this.o);this.o=e,r&&this.updateObservers()}constructor(e){this.subscriptions=new Map,this.updateObservers=()=>{for(let[i,{disposer:r}]of this.subscriptions)i(this.o,r)},e!==void 0&&(this.value=e)}addCallback(e,i,r){if(!r)return void e(this.value);this.subscriptions.has(e)||this.subscriptions.set(e,{disposer:()=>{this.subscriptions.delete(e)},consumerHost:i});let{disposer:n}=this.subscriptions.get(e);e(this.value,n)}clearCallbacks(){this.subscriptions.clear()}};var Ks=class extends Event{constructor(e,i){super("context-provider",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=i}},lr=class extends In{constructor(e,i,r){super(i.context!==void 0?i.initialValue:r),this.onContextRequest=n=>{if(n.context!==this.context)return;let o=n.contextTarget??n.composedPath()[0];o!==this.host&&(n.stopPropagation(),this.addCallback(n.callback,o,n.subscribe))},this.onProviderRequest=n=>{if(n.context!==this.context||(n.contextTarget??n.composedPath()[0])===this.host)return;let o=new Set;for(let[s,{consumerHost:a}]of this.subscriptions)o.has(s)||(o.add(s),a.dispatchEvent(new qt(this.context,a,s,!0)));n.stopPropagation()},this.host=e,i.context!==void 0?this.context=i.context:this.context=i,this.attachListeners(),this.host.addController?.(this)}attachListeners(){this.host.addEventListener("context-request",this.onContextRequest),this.host.addEventListener("context-provider",this.onProviderRequest)}hostConnected(){this.host.dispatchEvent(new Ks(this.context,this.host))}};var Kr=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let i=this.pendingContextRequests.get(e.context);if(i===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:r}=i;for(let{elementRef:n,callbackRef:o}of r){let s=n.deref(),a=o.deref();s===void 0||a===void 0||s.dispatchEvent(new qt(e.context,s,a,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let i=e.contextTarget??e.composedPath()[0],r=e.callback,n=this.pendingContextRequests.get(e.context);n===void 0&&this.pendingContextRequests.set(e.context,n={callbacks:new WeakMap,requests:[]});let o=n.callbacks.get(i);o===void 0&&n.callbacks.set(i,o=new WeakSet),o.has(r)||(o.add(r),n.requests.push({elementRef:new WeakRef(i),callbackRef:new WeakRef(r)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};function Gr({context:t}){return(e,i)=>{let r=new WeakMap;if(typeof i=="object")return{get(){return e.get.call(this)},set(n){return r.get(this).setValue(n),e.set.call(this,n)},init(n){return r.set(this,new lr(this,{context:t,initialValue:n})),n}};{e.constructor.addInitializer((s=>{r.set(s,new lr(s,{context:t}))}));let n=Object.getOwnPropertyDescriptor(e,i),o;if(n===void 0){let s=new WeakMap;o={get(){return s.get(this)},set(a){r.get(this).setValue(a),s.set(this,a)},configurable:!0,enumerable:!0}}else{let s=n.set;o={...n,set(a){r.get(this).setValue(a),s?.call(this,a)}}}return void Object.defineProperty(e,i,o)}}}function qr({context:t,subscribe:e}){return(i,r)=>{typeof r=="object"?r.addInitializer((function(){new ar(this,{context:t,callback:n=>{i.set.call(this,n)},subscribe:e})})):i.constructor.addInitializer((n=>{new ar(n,{context:t,callback:o=>{n[r]=o},subscribe:e})}))}}var fh=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Gs="asset-viewer-state-manager",$t=(0,xl.applyMixinOnce)(Symbol("toFtAssetViewerComponent"),function(t){class e extends t{willUpdate(r){super.willUpdate(r),r.has("viewerStateManager")&&(this.viewerStateManager?this.addStore(this.viewerStateManager.store,"viewer"):this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.viewerStateManager&&this.addStore(this.viewerStateManager.store,"viewer")}disconnectedCallback(){super.disconnectedCallback(),this.removeStore("viewer")}get service(){var r;return(r=this.viewerStateManager)===null||r===void 0?void 0:r.service}}return fh([qr({context:Gs,subscribe:!0}),(0,bl.state)()],e.prototype,"viewerStateManager",void 0),e});var Sd=c(S()),xr=c(h());var wl=c(h()),hh={setZoom:(t,e)=>{t.contentModifiers.zoom=e.payload},setRotation:(t,e)=>{t.contentModifiers.rotation=e.payload}},Pn=t=>wl.FtReduxStore.get({name:"ft-viewer-"+t,initialState:{documentId:void 0,unstructuredDocument:void 0,document:void 0,assetId:void 0,origin:void 0,descriptor:void 0,contentModifiers:{zoom:void 0,rotation:0},watermark:void 0,configuration:void 0,documentRating:void 0,assetRating:void 0,relatives:void 0},reducers:hh});var vd=c(h());var ma=c($());var El=c($(),1);var qs=t=>e=>{window.customElements.get(t)||window.customElements.define(t,e)},mh=t=>({fromAttribute:e=>{if(e==null)return Yr(t);try{return JSON.parse(e)}catch{return Yr(t)}},toAttribute:e=>JSON.stringify(e)});function Al(t,e){return(0,El.property)({type:Object,converter:mh(t),hasChanged:Zr,...e??{}})}function gh(t,e){if(t===e)return!0;if(t&&e&&typeof t=="object"&&typeof e=="object"){if(t.constructor!==e.constructor)return!1;let i,r;if(Array.isArray(t)){if(i=t.length,i!=e.length)return!1;for(r=i;r--!==0;)if(!cr(t[r],e[r]))return!1;return!0}if(t instanceof Map&&e instanceof Map){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;for(r of t.entries())if(!cr(r[1],e.get(r[0])))return!1;return!0}if(t instanceof Set&&e instanceof Set){if(t.size!==e.size)return!1;for(r of t.entries())if(!e.has(r[0]))return!1;return!0}if(t.constructor===RegExp)return t.source===e.source&&t.flags===e.flags;if(t.valueOf!==Object.prototype.valueOf)return t.valueOf()===e.valueOf();let n=s=>Object.keys(s).filter(a=>s[a]!=null),o=n(t);if(i=o.length,i!==n(e).length)return!1;for(r=i;r--!==0;)if(!Object.prototype.hasOwnProperty.call(e,o[r]))return!1;for(r=i;r--!==0;){let s=o[r];if(!cr(t[s],e[s]))return!1}return!0}return t!==t&&e!==e||t==null&&e==null}function cr(t,e){try{return gh(t,e)}catch{return!1}}function Zr(t,e){return!cr(t,e)}function Yr(t){return typeof window.structuredClone=="function"?structuredClone(t):t!=null?JSON.parse(JSON.stringify(t)):t}function Mn(t,e){let i=r=>r[t]===!0;return r=>{if(i(r))return r;let n=e(r);return n[t]=!0,n}}var _l=c($(),1);var Ys=t=>{let e=t??{};return(i,r)=>{var n;let o={hasChanged:Zr,attribute:!1,...e};(0,_l.property)(o)(i,r);let s=i.constructor;s.reduxProperties=new Map(s.reduxProperties),s.reduxProperties.set(r,{selector:(n=e.selector)!==null&&n!==void 0?n:(a=>a[r]),store:e.store})}};var Nn=class{constructor(){this.queue=[]}add(e,i=!1){i&&this.clear(e.type),this.queue.push(e)}consume(e){let i=this.queue.find(r=>r.type===e);return i&&(this.queue=this.queue.filter(r=>r!==i)),i}clear(e){typeof e=="string"?this.queue=this.queue.filter(i=>i.type!==e):this.queue=this.queue.filter(i=>!e.test(i.type))}};var Ci=c($(),1);var $n=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,i){return this.callbacks=[e],this.debounce(i)}queue(e,i){return this.callbacks.push(e),this.debounce(i)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((i,r)=>{this.resolvePromise=i,this.rejectPromise=r})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,i;let r=[...this.callbacks];this.callbacks=[];let n=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),o=(i=this.resolvePromise)!==null&&i!==void 0?i:(()=>null);this.clearPromise();for(let s of r)try{await s()}catch(a){n(a);return}o(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Un=c(S(),1);var Fn=class extends Un.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let i={...e.shadowRootOptions,customElements:e.registry},r=this.renderOptions.creationScope=this.attachShadow(i);return(0,Un.adoptStyles)(r,e.elementStyles),r}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([i,r])=>this.defineScopedElement(i,r))}static defineScopedElement(e,i){qs(e)(i),this.canDefineScopedElement(e)&&this.registry.define(e,i)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,i){this.scopedRegistryConstructor.defineScopedElement(e,i)}};function Cl(t,e,...i){var r;let n=t.querySelector(e);for(let o of i)n=(r=n?.shadowRoot)===null||r===void 0?void 0:r.querySelector(o);return n}var ur=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},kl,Tl=Symbol("constructorPrototype"),Rl=Symbol("constructorName"),Dl=Symbol("exportpartsDebouncer"),Ol=Symbol("dynamicDependenciesLoaded"),dr=class t extends CustomEvent{constructor(){super(t.eventName,{bubbles:!0})}};dr.eventName="exportparts-updated";var Ft=class extends Fn{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[kl]=new $n(5),this.scheduleExportpartsUpdate=()=>{var e,i,r;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(r=(i=this.exportpartsPrefixes)===null||i===void 0?void 0:i.length)!==null&&r!==void 0&&r)&&this[Dl].run(()=>{var n,o;!((n=this.exportpartsPrefix)===null||n===void 0)&&n.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((o=this.exportpartsPrefixes)===null||o===void 0?void 0:o.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Rl]=this.constructor.name,this[Tl]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Rl]&&Object.setPrototypeOf(this,this[Tl])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(r){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",r)}let i=this.constructor;i[Ol]||(i[Ol]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(dr.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(dr.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new dr)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:i,selector:r,shadowPath:n}=this.elementToFocus;if(r!=null){let o=[...n??[],r];i=Cl(this.shadowRoot,...o)}i?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||i?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var i,r,n;if(((r=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&r!==void 0?r:[]).forEach(o=>o.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((n=this.customStylesheet)!==null&&n!==void 0?n:"")}catch(o){console.error(o,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let o=document.createElement("style");o.classList.add("ft-lit-element--custom-stylesheet"),o.innerHTML=this.customStylesheet,this.shadowRoot.append(o)}}setExportpartsAttribute(e){var i,r,n,o,s,a;let l=f=>f!=null&&f.trim().length>0,d=e.filter(l).map(f=>f.trim());if(d.length===0){this.exportparts=void 0;return}let u=new Set;for(let f of(o=(i=this.shadowRoot)===null||i===void 0?void 0:i.querySelectorAll("[part],[exportparts]"))!==null&&o!==void 0?o:[]){let y=(s=(r=f.getAttribute("part"))===null||r===void 0?void 0:r.split(" "))!==null&&s!==void 0?s:[],w=(a=(n=f.getAttribute("exportparts"))===null||n===void 0?void 0:n.split(",").map(b=>b.split(":")[1]))!==null&&a!==void 0?a:[],T=[...y,...w].filter(l).map(b=>b.trim());for(let b of T)u.add(b)}if(u.size===0){this.exportparts=void 0;return}let p=[...u.values()].flatMap(f=>d.map(y=>`${f}:${y}--${f}`));this.exportparts=[...this.part,...p].join(", ")}};kl=Dl;ur([(0,Ci.property)()],Ft.prototype,"exportpartsPrefix",void 0);ur([Al([])],Ft.prototype,"exportpartsPrefixes",void 0);ur([(0,Ci.property)({reflect:!0})],Ft.prototype,"exportparts",void 0);ur([(0,Ci.property)()],Ft.prototype,"customStylesheet",void 0);ur([(0,Ci.property)()],Ft.prototype,"elementToFocus",void 0);ur([(0,Ci.state)()],Ft.prototype,"useAdoptedStyleSheets",void 0);function Vn(t){var e;return(e=t?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Xr=Symbol("internalReduxEventsUnsubscribers"),di=Symbol("internalStoresUnsubscribers"),Ti=Symbol("internalStores"),yh=Mn(Symbol("withRedux"),function(t){var e,i,r;class n extends t{constructor(){super(...arguments),this[e]=new Map,this[i]=new Map,this[r]=new Map}get reduxConstructor(){return this.constructor}willUpdate(s){super.willUpdate(s),[...this.reduxConstructor.reduxReactiveProperties].some(a=>s.has(a))&&this.updateFromStores()}getUnnamedStore(){if(this[Ti].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ti].values()][0]}getStore(s){return s==null?this.getUnnamedStore():this[Ti].get(s)}addStore(s,a){var l;a=(l=a??s.name)!==null&&l!==void 0?l:"default-store",this.unsubscribeFromStore(a),this[Ti].set(a,s),this.subscribeToStore(a,s),this.updateFromStores()}removeStore(s){let a=typeof s=="string"?s:s.name;this.unsubscribeFromStore(a),this[Ti].delete(a)}setupStores(){this.unsubscribeFromStores(),this[Ti].forEach((s,a)=>this.subscribeToStore(a,s)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((s,a)=>{let l=this.constructor.getPropertyOptions(a);if(!l?.attribute||!this.hasAttribute(typeof l?.attribute=="string"?l.attribute:a)){let d=this.getStore(s.store);d&&(s.store?this[di].has(s.store):this[di].size>0)&&(this[a]=s.selector(d.getState(),this))}})}subscribeToStore(s,a){var l;this[di].set(s,a.subscribe(()=>this.updateFromStores())),this[Xr].set(s,[]),Vn(a)&&a.eventBus&&((l=this.reduxConstructor.reduxEventListeners)===null||l===void 0||l.forEach((d,u)=>{if(typeof this[u]=="function"&&(!d.store||a.name===d.store)){let p=f=>this[u](f);a.addEventListener(d.eventName,p),this[Xr].get(s).push(()=>a.removeEventListener(d.eventName,p))}})),this.onStoreAvailable(s)}unsubscribeFromStores(){this[di].forEach((s,a)=>this.unsubscribeFromStore(a))}unsubscribeFromStore(s){var a;this[di].has(s)&&this[di].get(s)(),this[di].delete(s),(a=this[Xr].get(s))===null||a===void 0||a.forEach(l=>l()),this[Xr].delete(s)}onStoreAvailable(s){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=di,i=Ti,r=Xr,n.reduxProperties=new Map,n.reduxReactiveProperties=new Set,n.reduxEventListeners=new Map,n}),Ll=class extends yh(Ft){};function Te(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 vh=typeof Symbol=="function"&&Symbol.observable||"@@observable",Il=vh,Zs=()=>Math.random().toString(36).substring(7).split("").join("."),xh={INIT:`@@redux/INIT${Zs()}`,REPLACE:`@@redux/REPLACE${Zs()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${Zs()}`},Bn=xh;function Hn(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 Xs(t,e,i){if(typeof t!="function")throw new Error(Te(2));if(typeof e=="function"&&typeof i=="function"||typeof i=="function"&&typeof arguments[3]=="function")throw new Error(Te(0));if(typeof e=="function"&&typeof i>"u"&&(i=e,e=void 0),typeof i<"u"){if(typeof i!="function")throw new Error(Te(1));return i(Xs)(t,e)}let r=t,n=e,o=new Map,s=o,a=0,l=!1;function d(){s===o&&(s=new Map,o.forEach((b,O)=>{s.set(O,b)}))}function u(){if(l)throw new Error(Te(3));return n}function p(b){if(typeof b!="function")throw new Error(Te(4));if(l)throw new Error(Te(5));let O=!0;d();let H=a++;return s.set(H,b),function(){if(O){if(l)throw new Error(Te(6));O=!1,d(),s.delete(H),o=null}}}function f(b){if(!Hn(b))throw new Error(Te(7));if(typeof b.type>"u")throw new Error(Te(8));if(typeof b.type!="string")throw new Error(Te(17));if(l)throw new Error(Te(9));try{l=!0,n=r(n,b)}finally{l=!1}return(o=s).forEach(H=>{H()}),b}function y(b){if(typeof b!="function")throw new Error(Te(10));r=b,f({type:Bn.REPLACE})}function w(){let b=p;return{subscribe(O){if(typeof O!="object"||O===null)throw new Error(Te(11));function H(){let A=O;A.next&&A.next(u())}return H(),{unsubscribe:b(H)}},[Il](){return this}}}return f({type:Bn.INIT}),{dispatch:f,subscribe:p,getState:u,replaceReducer:y,[Il]:w}}function bh(t){Object.keys(t).forEach(e=>{let i=t[e];if(typeof i(void 0,{type:Bn.INIT})>"u")throw new Error(Te(12));if(typeof i(void 0,{type:Bn.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Te(13))})}function Js(t){let e=Object.keys(t),i={};for(let s=0;s<e.length;s++){let a=e[s];typeof t[a]=="function"&&(i[a]=t[a])}let r=Object.keys(i),n,o;try{bh(i)}catch(s){o=s}return function(a={},l){if(o)throw o;let d=!1,u={};for(let p=0;p<r.length;p++){let f=r[p],y=i[f],w=a[f],T=y(w,l);if(typeof T>"u"){let b=l&&l.type;throw new Error(Te(14))}u[f]=T,d=d||T!==w}return d=d||r.length!==Object.keys(a).length,d?u:a}}function Jr(...t){return t.length===0?e=>e:t.length===1?t[0]:t.reduce((e,i)=>(...r)=>e(i(...r)))}function Pl(...t){return e=>(i,r)=>{let n=e(i,r),o=()=>{throw new Error(Te(15))},s={getState:n.getState,dispatch:(l,...d)=>o(l,...d)},a=t.map(l=>l(s));return o=Jr(...a)(n.dispatch),{...n,dispatch:o}}}function Ml(t){return Hn(t)&&"type"in t&&typeof t.type=="string"}var jl=Symbol.for("immer-nothing"),Nl=Symbol.for("immer-draftable"),Le=Symbol.for("immer-state");function wt(t,...e){throw new Error(`[Immer] minified error nr: ${t}. Full error at: https://bit.ly/3cXEKWf`)}var it=Object,fr=it.getPrototypeOf,Kn="constructor",Jn="prototype",ia="configurable",Gn="enumerable",jn="writable",Qr="value",Ut=t=>!!t&&!!t[Le];function rt(t){return t?Wl(t)||eo(t)||!!t[Nl]||!!t[Kn]?.[Nl]||to(t)||io(t):!1}var Sh=it[Jn][Kn].toString(),$l=new WeakMap;function Wl(t){if(!t||!da(t))return!1;let e=fr(t);if(e===null||e===it[Jn])return!0;let i=it.hasOwnProperty.call(e,Kn)&&e[Kn];if(i===Object)return!0;if(!pr(i))return!1;let r=$l.get(i);return r===void 0&&(r=Function.toString.call(i),$l.set(i,r)),r===Sh}function Qn(t,e,i=!0){rn(t)===0?(i?Reflect.ownKeys(t):it.keys(t)).forEach(n=>{e(n,t[n],t)}):t.forEach((r,n)=>e(n,r,t))}function rn(t){let e=t[Le];return e?e.type_:eo(t)?1:to(t)?2:io(t)?3:0}var Qs=(t,e,i=rn(t))=>i===2?t.has(e):it[Jn].hasOwnProperty.call(t,e),ra=(t,e,i=rn(t))=>i===2?t.get(e):t[e],qn=(t,e,i,r=rn(t))=>{r===2?t.set(e,i):r===3?t.add(i):t[e]=i};function wh(t,e){return t===e?t!==0||1/t===1/e:t!==t&&e!==e}var eo=Array.isArray,to=t=>t instanceof Map,io=t=>t instanceof Set,da=t=>typeof t=="object",pr=t=>typeof t=="function",ea=t=>typeof t=="boolean";function Eh(t){let e=+t;return Number.isInteger(e)&&String(e)===t}var Yt=t=>t.copy_||t.base_;var ua=t=>t.modified_?t.copy_:t.base_;function na(t,e){if(to(t))return new Map(t);if(io(t))return new Set(t);if(eo(t))return Array[Jn].slice.call(t);let i=Wl(t);if(e===!0||e==="class_only"&&!i){let r=it.getOwnPropertyDescriptors(t);delete r[Le];let n=Reflect.ownKeys(r);for(let o=0;o<n.length;o++){let s=n[o],a=r[s];a[jn]===!1&&(a[jn]=!0,a[ia]=!0),(a.get||a.set)&&(r[s]={[ia]:!0,[jn]:!0,[Gn]:a[Gn],[Qr]:t[s]})}return it.create(fr(t),r)}else{let r=fr(t);if(r!==null&&i)return{...t};let n=it.create(r);return it.assign(n,t)}}function ro(t,e=!1){return no(t)||Ut(t)||!rt(t)||(rn(t)>1&&it.defineProperties(t,{set:zn,add:zn,clear:zn,delete:zn}),it.freeze(t),e&&Qn(t,(i,r)=>{ro(r,!0)},!1)),t}function Ah(){wt(2)}var zn={[Qr]:Ah};function no(t){return t===null||!da(t)?!0:it.isFrozen(t)}var Yn="MapSet",oa="Patches",Fl="ArrayMethods",Kl={};function Ri(t){let e=Kl[t];return e||wt(0,t),e}var Ul=t=>!!Kl[t];var en,Gl=()=>en,_h=(t,e)=>({drafts_:[],parent_:t,immer_:e,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:Ul(Yn)?Ri(Yn):void 0,arrayMethodsPlugin_:Ul(Fl)?Ri(Fl):void 0});function Vl(t,e){e&&(t.patchPlugin_=Ri(oa),t.patches_=[],t.inversePatches_=[],t.patchListener_=e)}function sa(t){aa(t),t.drafts_.forEach(Ch),t.drafts_=null}function aa(t){t===en&&(en=t.parent_)}var Bl=t=>en=_h(en,t);function Ch(t){let e=t[Le];e.type_===0||e.type_===1?e.revoke_():e.revoked_=!0}function Hl(t,e){e.unfinalizedDrafts_=e.drafts_.length;let i=e.drafts_[0];if(t!==void 0&&t!==i){i[Le].modified_&&(sa(e),wt(4)),rt(t)&&(t=zl(e,t));let{patchPlugin_:n}=e;n&&n.generateReplacementPatches_(i[Le].base_,t,e)}else t=zl(e,i);return Th(e,t,!0),sa(e),e.patches_&&e.patchListener_(e.patches_,e.inversePatches_),t!==jl?t:void 0}function zl(t,e){if(no(e))return e;let i=e[Le];if(!i)return Zn(e,t.handledSet_,t);if(!oo(i,t))return e;if(!i.modified_)return i.base_;if(!i.finalized_){let{callbacks_:r}=i;if(r)for(;r.length>0;)r.pop()(t);Zl(i,t)}return i.copy_}function Th(t,e,i=!1){!t.parent_&&t.immer_.autoFreeze_&&t.canAutoFreeze_&&ro(e,i)}function ql(t){t.finalized_=!0,t.scope_.unfinalizedDrafts_--}var oo=(t,e)=>t.scope_===e,Rh=[];function Yl(t,e,i,r){let n=Yt(t),o=t.type_;if(r!==void 0&&ra(n,r,o)===e){qn(n,r,i,o);return}if(!t.draftLocations_){let a=t.draftLocations_=new Map;Qn(n,(l,d)=>{if(Ut(d)){let u=a.get(d)||[];u.push(l),a.set(d,u)}})}let s=t.draftLocations_.get(e)??Rh;for(let a of s)qn(n,a,i,o)}function Oh(t,e,i){t.callbacks_.push(function(n){let o=e;if(!o||!oo(o,n))return;n.mapSetPlugin_?.fixSetContents(o);let s=ua(o);Yl(t,o.draft_??o,s,i),Zl(o,n)})}function Zl(t,e){if(t.modified_&&!t.finalized_&&(t.type_===3||t.type_===1&&t.allIndicesReassigned_||(t.assigned_?.size??0)>0)){let{patchPlugin_:r}=e;if(r){let n=r.getPath(t);n&&r.generatePatches_(t,n,e)}ql(t)}}function kh(t,e,i){let{scope_:r}=t;if(Ut(i)){let n=i[Le];oo(n,r)&&n.callbacks_.push(function(){Wn(t);let s=ua(n);Yl(t,i,s,e)})}else rt(i)&&t.callbacks_.push(function(){let o=Yt(t);t.type_===3?o.has(i)&&Zn(i,r.handledSet_,r):ra(o,e,t.type_)===i&&r.drafts_.length>1&&(t.assigned_.get(e)??!1)===!0&&t.copy_&&Zn(ra(t.copy_,e,t.type_),r.handledSet_,r)})}function Zn(t,e,i){return!i.immer_.autoFreeze_&&i.unfinalizedDrafts_<1||Ut(t)||e.has(t)||!rt(t)||no(t)||(e.add(t),Qn(t,(r,n)=>{if(Ut(n)){let o=n[Le];if(oo(o,i)){let s=ua(o);qn(t,r,s,t.type_),ql(o)}}else rt(n)&&Zn(n,e,i)})),t}function Dh(t,e){let i=eo(t),r={type_:i?1:0,scope_:e?e.scope_:Gl(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:e,base_:t,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0},n=r,o=Xn;i&&(n=[r],o=tn);let{revoke:s,proxy:a}=Proxy.revocable(n,o);return r.draft_=a,r.revoke_=s,[a,r]}var Xn={get(t,e){if(e===Le)return t;let i=t.scope_.arrayMethodsPlugin_,r=t.type_===1&&typeof e=="string";if(r&&i?.isArrayOperationMethod(e))return i.createMethodInterceptor(t,e);let n=Yt(t);if(!Qs(n,e,t.type_))return Ih(t,n,e);let o=n[e];if(t.finalized_||!rt(o)||r&&t.operationMethod&&i?.isMutatingArrayMethod(t.operationMethod)&&Eh(e))return o;if(o===ta(t.base_,e)||Lh(t,e,o)){Wn(t);let s=t.type_===1?+e:e,a=ca(t.scope_,o,t,s);return t.copy_[s]=a}return o},has(t,e){return e in Yt(t)},ownKeys(t){return Reflect.ownKeys(Yt(t))},set(t,e,i){let r=Xl(Yt(t),e);if(r?.set)return r.set.call(t.draft_,i),!0;if(!t.modified_){let n=ta(Yt(t),e),o=n?.[Le];if(o&&o.base_===i)return t.copy_[e]=i,t.assigned_.delete(e),!0;if(wh(i,n)&&(i!==void 0||Qs(t.base_,e,t.type_)))return!0;Wn(t),la(t)}return t.copy_[e]===i&&(i!==void 0||Qs(t.copy_,e,t.type_))||Number.isNaN(i)&&Number.isNaN(t.copy_[e])||(t.copy_[e]=i,t.assigned_.set(e,!0),kh(t,e,i)),!0},deleteProperty(t,e){return Wn(t),ta(t.base_,e)!==void 0||e in t.base_?(t.assigned_.set(e,!1),la(t)):t.assigned_.delete(e),t.copy_&&delete t.copy_[e],!0},getOwnPropertyDescriptor(t,e){let i=Yt(t),r=Reflect.getOwnPropertyDescriptor(i,e);return r&&{[jn]:!0,[ia]:t.type_!==1||e!=="length",[Gn]:r[Gn],[Qr]:i[e]}},defineProperty(){wt(11)},getPrototypeOf(t){return fr(t.base_)},setPrototypeOf(){wt(12)}},tn={};for(let t in Xn){let e=Xn[t];tn[t]=function(){let i=arguments;return i[0]=i[0][0],e.apply(this,i)}}tn.deleteProperty=function(t,e){return tn.set.call(this,t,e,void 0)};tn.set=function(t,e,i){return Xn.set.call(this,t[0],e,i,t[0])};function ta(t,e){let i=t[Le];return(i?Yt(i):t)[e]}function Lh(t,e,i){return t.type_!==1||!t.allIndicesReassigned_||t.assigned_?.get(e)||!rt(i)||i[Le]?!1:t.baseRefs_.has(i)}function Ih(t,e,i){let r=Xl(e,i);return r?Qr in r?r[Qr]:r.get?.call(t.draft_):void 0}function Xl(t,e){if(!(e in t))return;let i=fr(t);for(;i;){let r=Object.getOwnPropertyDescriptor(i,e);if(r)return r;i=fr(i)}}function la(t){t.modified_||(t.modified_=!0,t.parent_&&la(t.parent_))}function Wn(t){t.copy_||(t.assigned_=new Map,t.copy_=na(t.base_,t.scope_.immer_.useStrictShallowCopy_))}var Ph=class{constructor(t){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(e,i,r)=>{if(pr(e)&&!pr(i)){let o=i;i=e;let s=this;return function(l=o,...d){return s.produce(l,u=>i.call(this,u,...d))}}pr(i)||wt(6),r!==void 0&&!pr(r)&&wt(7);let n;if(rt(e)){let o=Bl(this),s=ca(o,e,void 0),a=!0;try{n=i(s),a=!1}finally{a?sa(o):aa(o)}return Vl(o,r),Hl(n,o)}else if(!e||!da(e)){if(n=i(e),n===void 0&&(n=e),n===jl&&(n=void 0),this.autoFreeze_&&ro(n,!0),r){let o=[],s=[];Ri(oa).generateReplacementPatches_(e,n,{patches_:o,inversePatches_:s}),r(o,s)}return n}else wt(1,e)},this.produceWithPatches=(e,i)=>{if(pr(e))return(s,...a)=>this.produceWithPatches(s,l=>e(l,...a));let r,n;return[this.produce(e,i,(s,a)=>{r=s,n=a}),r,n]},ea(t?.autoFreeze)&&this.setAutoFreeze(t.autoFreeze),ea(t?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(t.useStrictShallowCopy),ea(t?.useStrictIteration)&&this.setUseStrictIteration(t.useStrictIteration)}createDraft(t){rt(t)||wt(8),Ut(t)&&(t=Jl(t));let e=Bl(this),i=ca(e,t,void 0);return i[Le].isManual_=!0,aa(e),i}finishDraft(t,e){let i=t&&t[Le];(!i||!i.isManual_)&&wt(9);let{scope_:r}=i;return Vl(r,e),Hl(void 0,r)}setAutoFreeze(t){this.autoFreeze_=t}setUseStrictShallowCopy(t){this.useStrictShallowCopy_=t}setUseStrictIteration(t){this.useStrictIteration_=t}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(t,e){let i;for(i=e.length-1;i>=0;i--){let n=e[i];if(n.path.length===0&&n.op==="replace"){t=n.value;break}}i>-1&&(e=e.slice(i+1));let r=Ri(oa).applyPatches_;return Ut(t)?r(t,e):this.produce(t,n=>r(n,e))}};function ca(t,e,i,r){let[n,o]=to(e)?Ri(Yn).proxyMap_(e,i):io(e)?Ri(Yn).proxySet_(e,i):Dh(e,i);return(i?.scope_??Gl()).drafts_.push(n),o.callbacks_=i?.callbacks_??[],o.key_=r,i&&r!==void 0?Oh(i,o,r):o.callbacks_.push(function(l){l.mapSetPlugin_?.fixSetContents(o);let{patchPlugin_:d}=l;o.modified_&&d&&d.generatePatches_(o,[],l)}),n}function Jl(t){return Ut(t)||wt(10,t),Ql(t)}function Ql(t){if(!rt(t)||no(t))return t;let e=t[Le],i,r=!0;if(e){if(!e.modified_)return e.base_;e.finalized_=!0,i=na(t,e.scope_.immer_.useStrictShallowCopy_),r=e.scope_.immer_.shouldUseStrictIteration()}else i=na(t,!0);return Qn(i,(n,o)=>{qn(i,n,Ql(o))},r),e&&(e.finalized_=!1),i}var Mh=globalThis.Iterator,iy=typeof Mh?.from=="function";var Nh=new Ph,pa=Nh.produce;function ec(t){return({dispatch:i,getState:r})=>n=>o=>typeof o=="function"?o(i,r,t):n(o)}var tc=ec(),ic=ec;var $h=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Jr:Jr.apply(null,arguments)};typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__&&window.__REDUX_DEVTOOLS_EXTENSION__;var Fh=t=>t&&typeof t.match=="function";function ui(t,e){function i(...r){if(e){let n=e(...r);if(!n)throw new Error(Vt(0));return{type:t,payload:n.payload,..."meta"in n&&{meta:n.meta},..."error"in n&&{error:n.error}}}return{type:t,payload:r[0]}}return i.toString=()=>`${t}`,i.type=t,i.match=r=>Ml(r)&&r.type===t,i}var ac=class nn extends Array{constructor(...e){super(...e),Object.setPrototypeOf(this,nn.prototype)}static get[Symbol.species](){return nn}concat(...e){return super.concat.apply(this,e)}prepend(...e){return e.length===1&&Array.isArray(e[0])?new nn(...e[0].concat(this)):new nn(...e.concat(this))}};function rc(t){return rt(t)?pa(t,()=>{}):t}function so(t,e,i){return t.has(e)?t.get(e):t.set(e,i(e)).get(e)}function Uh(t){return typeof t=="boolean"}var Vh=()=>function(e){let{thunk:i=!0,immutableCheck:r=!0,serializableCheck:n=!0,actionCreatorCheck:o=!0}=e??{},s=new ac;return i&&(Uh(i)?s.push(tc):s.push(ic(i.extraArgument))),s},Bh="RTK_autoBatch";var nc=t=>e=>{setTimeout(e,t)},Hh=(t,e)=>i=>{let r=!1,n,o,s=()=>{r||(r=!0,cancelAnimationFrame(n),clearTimeout(o),i())};n=t(s),o=setTimeout(s,e)},zh=(t={type:"raf"})=>e=>(...i)=>{let r=e(...i),n=!0,o=!1,s=!1,a=new Set,l=t.type==="tick"?queueMicrotask:t.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?Hh(window.requestAnimationFrame,100):nc(10):t.type==="callback"?t.queueNotification:nc(t.timeout),d=()=>{s=!1,o&&(o=!1,a.forEach(u=>u()))};return Object.assign({},r,{subscribe(u){let p=()=>n&&u(),f=r.subscribe(p);return a.add(u),()=>{f(),a.delete(u)}},dispatch(u){try{return n=!u?.meta?.[Bh],o=!n,o&&(s||(s=!0,l(d))),r.dispatch(u)}finally{n=!0}}})},jh=t=>function(i){let{autoBatch:r=!0}=i??{},n=new ac(t);return r&&n.push(zh(typeof r=="object"?r:void 0)),n};function lc(t){let e=Vh(),{reducer:i=void 0,middleware:r,devTools:n=!0,duplicateMiddlewareCheck:o=!0,preloadedState:s=void 0,enhancers:a=void 0}=t||{},l;if(typeof i=="function")l=i;else if(Hn(i))l=Js(i);else throw new Error(Vt(1));let d;typeof r=="function"?d=r(e):d=e();let u=Jr;n&&(u=$h({trace:!1,...typeof n=="object"&&n}));let p=Pl(...d),f=jh(p),y=typeof a=="function"?a(f):f(),w=u(...y);return Xs(l,s,w)}function cc(t){let e={},i=[],r,n={addCase(o,s){let a=typeof o=="string"?o:o.type;if(!a)throw new Error(Vt(28));if(a in e)throw new Error(Vt(29));return e[a]=s,n},addAsyncThunk(o,s){return s.pending&&(e[o.pending.type]=s.pending),s.rejected&&(e[o.rejected.type]=s.rejected),s.fulfilled&&(e[o.fulfilled.type]=s.fulfilled),s.settled&&i.push({matcher:o.settled,reducer:s.settled}),n},addMatcher(o,s){return i.push({matcher:o,reducer:s}),n},addDefaultCase(o){return r=o,n}};return t(n),[e,i,r]}function Wh(t){return typeof t=="function"}function Kh(t,e){let[i,r,n]=cc(e),o;if(Wh(t))o=()=>rc(t());else{let a=rc(t);o=()=>a}function s(a=o(),l){let d=[i[l.type],...r.filter(({matcher:u})=>u(l)).map(({reducer:u})=>u)];return d.filter(u=>!!u).length===0&&(d=[n]),d.reduce((u,p)=>{if(p)if(Ut(u)){let f=p(u,l);return f===void 0?u:f}else{if(rt(u))return pa(u,f=>p(f,l));{let f=p(u,l);if(f===void 0){if(u===null)return u;throw new Error(Vt(9))}return f}}return u},a)}return s.getInitialState=o,s}var Gh=(t,e)=>Fh(t)?t.match(e):t(e);function qh(...t){return e=>t.some(i=>Gh(i,e))}var Yh="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Zh=(t=21)=>{let e="",i=t;for(;i--;)e+=Yh[Math.random()*64|0];return e},Xh=["name","message","stack","code"],fa=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},oc=class{payload;meta;_type;constructor(t,e){this.payload=t,this.meta=e}},Jh=t=>{if(typeof t=="object"&&t!==null){let e={};for(let i of Xh)typeof t[i]=="string"&&(e[i]=t[i]);return e}return{message:String(t)}},sc="External signal was aborted",Qh=(()=>{function t(e,i,r){let n=ui(e+"/fulfilled",(l,d,u,p)=>({payload:l,meta:{...p||{},arg:u,requestId:d,requestStatus:"fulfilled"}})),o=ui(e+"/pending",(l,d,u)=>({payload:void 0,meta:{...u||{},arg:d,requestId:l,requestStatus:"pending"}})),s=ui(e+"/rejected",(l,d,u,p,f)=>({payload:p,error:(r&&r.serializeError||Jh)(l||"Rejected"),meta:{...f||{},arg:u,requestId:d,rejectedWithValue:p!==void 0,requestStatus:"rejected",aborted:l?.name==="AbortError",condition:l?.name==="ConditionError"}}));function a(l,{signal:d}={}){return(u,p,f)=>{let y=r?.idGenerator?r.idGenerator(l):Zh(),w=new AbortController,T,b;function O(E){b=E,w.abort()}d&&(d.aborted?O(sc):d.addEventListener("abort",()=>O(sc),{once:!0}));let H=(async function(){let E;try{let A=r?.condition?.(l,{getState:p,extra:f});if(tm(A)&&(A=await A),A===!1)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};if(w.signal.aborted)throw{name:"AbortError",message:b||"Aborted"};let W=new Promise((U,ye)=>{T=()=>{ye({name:"AbortError",message:b||"Aborted"})},w.signal.addEventListener("abort",T,{once:!0})});u(o(y,l,r?.getPendingMeta?.({requestId:y,arg:l},{getState:p,extra:f}))),E=await Promise.race([W,Promise.resolve(i(l,{dispatch:u,getState:p,extra:f,requestId:y,signal:w.signal,abort:O,rejectWithValue:((U,ye)=>new fa(U,ye)),fulfillWithValue:((U,ye)=>new oc(U,ye))})).then(U=>{if(U instanceof fa)throw U;return U instanceof oc?n(U.payload,y,l,U.meta):n(U,y,l)})])}catch(A){E=A instanceof fa?s(null,y,l,A.payload,A.meta):s(A,y,l)}finally{T&&w.signal.removeEventListener("abort",T)}return r&&!r.dispatchConditionRejection&&s.match(E)&&E.meta.condition||u(E),E})();return Object.assign(H,{abort:O,requestId:y,arg:l,unwrap(){return H.then(em)}})}}return Object.assign(a,{pending:o,rejected:s,fulfilled:n,settled:qh(s,n),typePrefix:e})}return t.withTypes=()=>t,t})();function em(t){if(t.meta&&t.meta.rejectedWithValue)throw t.payload;if(t.error)throw t.error;return t.payload}function tm(t){return t!==null&&typeof t=="object"&&typeof t.then=="function"}var dc=Symbol.for("rtk-slice-createasyncthunk"),dy={[dc]:Qh};function im(t,e){return`${t}/${e}`}function rm({creators:t}={}){let e=t?.asyncThunk?.[dc];return function(r){let{name:n,reducerPath:o=n}=r;if(!n)throw new Error(Vt(11));typeof process<"u";let s=(typeof r.reducers=="function"?r.reducers(om()):r.reducers)||{},a=Object.keys(s),l={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(E,A){let W=typeof E=="string"?E:E.type;if(!W)throw new Error(Vt(12));if(W in l.sliceCaseReducersByType)throw new Error(Vt(13));return l.sliceCaseReducersByType[W]=A,d},addMatcher(E,A){return l.sliceMatchers.push({matcher:E,reducer:A}),d},exposeAction(E,A){return l.actionCreators[E]=A,d},exposeCaseReducer(E,A){return l.sliceCaseReducersByName[E]=A,d}};a.forEach(E=>{let A=s[E],W={reducerName:E,type:im(n,E),createNotation:typeof r.reducers=="function"};am(A)?cm(W,A,d,e):sm(W,A,d)});function u(){let[E={},A=[],W=void 0]=typeof r.extraReducers=="function"?cc(r.extraReducers):[r.extraReducers],U={...E,...l.sliceCaseReducersByType};return Kh(r.initialState,ye=>{for(let De in U)ye.addCase(De,U[De]);for(let De of l.sliceMatchers)ye.addMatcher(De.matcher,De.reducer);for(let De of A)ye.addMatcher(De.matcher,De.reducer);W&&ye.addDefaultCase(W)})}let p=E=>E,f=new Map,y=new WeakMap,w;function T(E,A){return w||(w=u()),w(E,A)}function b(){return w||(w=u()),w.getInitialState()}function O(E,A=!1){function W(ye){let De=ye[E];return typeof De>"u"&&A&&(De=so(y,W,b)),De}function U(ye=p){return so(so(f,A,()=>new WeakMap),ye,()=>{let De={};for(let[Ln,pt]of Object.entries(r.selectors??{}))De[Ln]=nm(pt,ye,()=>so(y,ye,b),A);return De})}return{reducerPath:E,getSelectors:U,get selectors(){return U(W)},selectSlice:W}}let H={name:n,reducer:T,actions:l.actionCreators,caseReducers:l.sliceCaseReducersByName,getInitialState:b,...O(o),injectInto(E,{reducerPath:A,...W}={}){let U=A??o;return E.inject({reducerPath:U,reducer:T},W),{...H,...O(U,!0)}}};return H}}function nm(t,e,i,r){function n(o,...s){let a=e(o);return typeof a>"u"&&r&&(a=i()),t(a,...s)}return n.unwrapped=t,n}var uc=rm();function om(){function t(e,i){return{_reducerDefinitionType:"asyncThunk",payloadCreator:e,...i}}return t.withTypes=()=>t,{reducer(e){return Object.assign({[e.name](...i){return e(...i)}}[e.name],{_reducerDefinitionType:"reducer"})},preparedReducer(e,i){return{_reducerDefinitionType:"reducerWithPrepare",prepare:e,reducer:i}},asyncThunk:t}}function sm({type:t,reducerName:e,createNotation:i},r,n){let o,s;if("reducer"in r){if(i&&!lm(r))throw new Error(Vt(17));o=r.reducer,s=r.prepare}else o=r;n.addCase(t,o).exposeCaseReducer(e,o).exposeAction(e,s?ui(t,s):ui(t))}function am(t){return t._reducerDefinitionType==="asyncThunk"}function lm(t){return t._reducerDefinitionType==="reducerWithPrepare"}function cm({type:t,reducerName:e},i,r,n){if(!n)throw new Error(Vt(18));let{payloadCreator:o,fulfilled:s,pending:a,rejected:l,settled:d,options:u}=i,p=n(t,o,u);r.exposeAction(e,p),s&&r.addCase(p.fulfilled,s),a&&r.addCase(p.pending,a),l&&r.addCase(p.rejected,l),d&&r.addMatcher(p.settled,d),r.exposeCaseReducer(e,{fulfilled:s||ao,pending:a||ao,rejected:l||ao,settled:d||ao})}function ao(){}var pc="listener",fc="completed",hc="cancelled",uy=`task-${hc}`,py=`task-${fc}`,fy=`${pc}-${hc}`,hy=`${pc}-${fc}`;var{assign:mc}=Object;var ha="listenerMiddleware";var dm=mc(ui(`${ha}/add`),{withTypes:()=>dm}),my=ui(`${ha}/removeAll`),um=mc(ui(`${ha}/remove`),{withTypes:()=>um});function Vt(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 pm=Mn(Symbol("withEventBus"),function(t,e){return class extends t{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(i,r,n){this.eventBus.addEventListener(i,r,n)}dispatchEvent(i){return this.eventBus.dispatchEvent(i)}removeEventListener(i,r,n){this.eventBus.removeEventListener(i,r,n)}}}),lo=class extends pm(Object){};window.ftReduxStores||(window.ftReduxStores={});var gc=class t extends lo{static get(e){var i;let r=typeof e=="string"?e:e.name,n=typeof e=="string"?void 0:e,o=window.ftReduxStores[r];if(Vn(o))return o;if(n==null)return;let s=uc({...n,reducers:(i=n.reducers)!==null&&i!==void 0?i:{}}),a=lc({reducer:(l,d)=>{if(d.type==="CLEAR_FT_REDUX_STORE"){let u=Yr(s.getInitialState());for(let p of d.keeping)u[p]=(l??u)[p];return u}else if(typeof d.type=="string"&&d.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...l,...d.overwrites};return s.reducer(l,d)}});return window.ftReduxStores[n.name]=new t(s,a,n.eventBus)}constructor(e,i,r){super(),this.reduxSlice=e,this.reduxStore=i,this.isFtReduxStore=!0,this.commands=new Nn,this.injectInto=(o,s)=>this.reduxSlice.injectInto(o,s),this.selectSlice=o=>this.reduxSlice.selectSlice(o);let n=o=>o!=null?JSON.parse(JSON.stringify(o)):o;this.actions=new Proxy(this.reduxSlice.actions,{get:(o,s,a)=>{let l=s,d=o[l];return d?(...u)=>{let p=d(...u.map(n));return this.reduxStore.dispatch(p),p}:u=>{let p=l,f=this.getState()[p];cr(f,u)||this.setState({[p]:n(u)})}}}),this.eventBus=r??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}get selectors(){return this.reduxSlice.selectors}get reducerPath(){return this.reduxSlice.reducerPath}getSelectors(){return this.reduxSlice.getSelectors()}};var co=class{static format(e,i,r,n,o){return window.moment?window.moment(e).locale(i).format(this.getMomentDateFormat(r,n,!!o)):this.getIntlDateTime(e,i,r,n,!!o)}static getMomentDateFormat(e,i,r){return r?"LT":e?i?"lll":"ll":i?"L LT":"L"}static getIntlDateTime(e,i,r,n,o){let s=typeof e=="string"?new Date(e):e,a=new Intl.DateTimeFormat(i,{dateStyle:r?"medium":"short"}).format(s),l=new Intl.DateTimeFormat(i,{timeStyle:"short"}).format(s);return o?l:n?`${a} ${l}`:a}static getTimezoneAsString(){let e=r=>String(Math.floor(r)).padStart(2,"0"),i=new Date().getTimezoneOffset();return`${i<0?"+":"-"}${e(Math.abs(i)/60)}:${e(Math.abs(i)%60)}`}};var uo=c(h()),fm="ft-app-info",nt=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};nt.eventName="authentication-change";var Oi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e})}};Oi.eventName="ui-locale-changed";var hm={session:(t,e)=>{(0,uo.deepEqual)(t.session,e.payload)||(t.session=e.payload,setTimeout(()=>v.dispatchEvent(new nt(e.payload)),0))}},v=uo.FtReduxStore.get({name:fm,reducers:hm,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 yc=c(h()),po=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},vc=(0,yc.applyMixinOnce)(Symbol("withDateFormat"),function(t){class e extends t{constructor(...r){super(r),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(v)}dateFormatOptionsChanged(r){return r.has("metadataDescriptors")||r.has("useLongDateFormat")||r.has("useDateTimeFormat")||r.has("uiLocale")}getDateFormatter(r){var n,o;return((o=(n=this.metadataDescriptors.find(a=>a.key===r))===null||n===void 0?void 0:n.date)!==null&&o!==void 0?o:!1)?a=>co.format(a,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return po([(0,ma.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),po([(0,ma.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),po([Ys({store:v.name,selector:i=>{var r,n;return(n=(r=i.metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]}})],e.prototype,"metadataDescriptors",void 0),po([Ys({store:v.name})],e.prototype,"uiLocale",void 0),e});var xc;(function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"})(xc||(xc={}));var bc;(function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"})(bc||(bc={}));var Sc;(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"})(Sc||(Sc={}));var wc;(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"})(wc||(wc={}));var Ec;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Ec||(Ec={}));var Ac;(function(t){t.VALUE="VALUE",t.DATE="DATE",t.RANGE="RANGE"})(Ac||(Ac={}));var _c;(function(t){t.OFFICIAL="OFFICIAL",t.AI="AI"})(_c||(_c={}));var Cc;(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"})(Cc||(Cc={}));var Tc;(function(t){t.STANDARD="STANDARD",t.STRUCTURAL="STRUCTURAL"})(Tc||(Tc={}));var Rc;(function(t){t.METADATA_FILTER="METADATA_FILTER",t.ACCESS_RIGHTS_FILTER="ACCESS_RIGHTS_FILTER"})(Rc||(Rc={}));var Oc;(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"})(Oc||(Oc={}));var kc;(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"})(kc||(kc={}));var Dc;(function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"})(Dc||(Dc={}));var Lc;(function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"})(Lc||(Lc={}));var Ic;(function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"})(Ic||(Ic={}));var Ee;(function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"})(Ee||(Ee={}));var Pc;(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"})(Pc||(Pc={}));var Mc;(function(t){t.OPTIONAL="OPTIONAL",t.MANDATORY="MANDATORY"})(Mc||(Mc={}));var Nc;(function(t){t.ASC="ASC",t.DESC="DESC"})(Nc||(Nc={}));var $c;(function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"})($c||($c={}));var Fc;(function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"})(Fc||(Fc={}));var Uc;(function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK",t.HTML_PACKAGE="HTML_PACKAGE"})(Uc||(Uc={}));var fo;(function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"})(fo||(fo={}));var Vc;(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"})(Vc||(Vc={}));var Bc;(function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_QUARTER="LAST_QUARTER",t.LAST_YEAR="LAST_YEAR"})(Bc||(Bc={}));var Hc;(function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.HTML_PACKAGE="HTML_PACKAGE",t.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Hc||(Hc={}));var zc;(function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS",t.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(zc||(zc={}));var jc;(function(t){t.PLAIN_TEXT="PLAIN_TEXT",t.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",t.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(jc||(jc={}));var re;(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"})(re||(re={}));var ft;(function(t){t.SEARCHES="SEARCHES",t.BOOKMARKS="BOOKMARKS",t.BOOKS="BOOKS",t.COLLECTIONS="COLLECTIONS"})(ft||(ft={}));var Wc;(function(t){t.UNAUTHENTICATED="UNAUTHENTICATED",t.USER_INCOMPLETE="USER_INCOMPLETE",t.MFA_REQUIRED="MFA_REQUIRED",t.AUTHENTICATED="AUTHENTICATED"})(Wc||(Wc={}));var Kc;(function(t){t.UNREACHABLE="UNREACHABLE",t.UNAUTHORIZED="UNAUTHORIZED",t.FORBIDDEN="FORBIDDEN",t.INCOMPATIBLE="INCOMPATIBLE",t.FAILED="FAILED",t.OK="OK"})(Kc||(Kc={}));var Gc;(function(t){t.VALID="VALID",t.INVALID="INVALID"})(Gc||(Gc={}));var qc;(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"})(qc||(qc={}));var Yc;(function(t){t.INACCURATE="INACCURATE",t.INCOMPLETE="INCOMPLETE",t.OFF_TOPIC="OFF_TOPIC",t.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",t.SLOW="SLOW",t.OTHER="OTHER"})(Yc||(Yc={}));var Zc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Zc||(Zc={}));var Xc;(function(t){t.JSON="JSON",t.TEXT="TEXT"})(Xc||(Xc={}));var Jc;(function(t){t.TEXT="TEXT",t.HTML="HTML"})(Jc||(Jc={}));var Qc;(function(t){t.IN_PROGRESS="IN_PROGRESS",t.ERROR="ERROR",t.DONE="DONE"})(Qc||(Qc={}));var ed;(function(t){t.HTML="HTML",t.MARKDOWN="MARKDOWN"})(ed||(ed={}));var td;(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"})(td||(td={}));var ho;(function(t){t.MAP="MAP",t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(ho||(ho={}));var mm={[re.PERSONAL_BOOK_SHARE_USER]:[re.PERSONAL_BOOK_USER],[re.HTML_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.PDF_EXPORT_USER]:[re.PERSONAL_BOOK_USER],[re.KHUB_ADMIN]:[re.CONTENT_PUBLISHER],[re.ADMIN]:[re.KHUB_ADMIN,re.USERS_ADMIN,re.PORTAL_ADMIN,re.BEHAVIOR_DATA_USER],[re.GENERATIVE_AI_EXPORT_USER]:[re.GENERATIVE_AI_USER]};function id(t,e){return t===e||(mm[t]??[]).some(i=>id(i,e))}function hr(t,e){return t==null?!1:(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some(r=>id(r,e))}function rd(t,...e){return t==null?!1:e.some(i=>hr(t,i))}var xo=c(h());var ga=c(h());var Bt=class t{static get(e){let{baseUrl:i,apiIntegrationIdentifier:r}=v.getState(),n=e??r;if(i&&n&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(i,n,!0)}static await(e){return new Promise(i=>{let r=t.get(e);if(r)i(r);else{let n=v.subscribe(()=>{r=t.get(e),r&&(n(),i(r))})}})}};var mr=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Bt.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Bt.await()}};var Re=class extends mr{constructor(e=!0,i){var r;super(i),this.sortObjectFields=(o,s)=>typeof s!="object"||s==null||Array.isArray(s)?s:Object.fromEntries(Object.entries(s).sort(([a],[l])=>a.localeCompare(l)));let n=this.constructor;n.commonCache=(r=n.commonCache)!==null&&r!==void 0?r:new ga.CacheRegistry,this.cache=e?n.commonCache:new ga.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((i,r)=>0|31*i+r.charCodeAt(0),0))}};var mo=class extends Re{async listMySearches(){let{session:e}=v.getState();return hr(e,re.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var go=class extends Re{async listMyBookmarks(){let e=v.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var yo=class extends Re{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=v.getState().session;return!!e?.sessionAuthenticated}};var vo=class extends Re{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=v.getState().session;return!!e?.sessionAuthenticated}};var gm="ft-user-assets",ym={setAssetCount:(t,e)=>{let{userAssetType:i,count:r}=e.payload.assetCount;t.assetCounts.allAsset[i]=r},clearAssetCount:t=>{Object.values(ft).forEach(e=>{t.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(t,e)=>{let i=e.payload.mapId;t.assetCounts.bookmarkByMap[i]=e.payload.count},clearBookmarkCountByMap:t=>{t.assetCounts.bookmarkByMap={}},addAsset:(t,e)=>{let{assetType:i,mapId:r,asset:n}=e.payload;va(t,i,[...ya(t,i),n]),nd(t,i,1,r),od(t,n)},editAsset:(t,e)=>{let{assetType:i,asset:r}=e.payload;va(t,i,ya(t,i).map(n=>n.id===r.id?r:n)),od(t,r)},removeAsset:(t,e)=>{let{assetType:i,mapId:r,assetId:n}=e.payload;va(t,i,ya(t,i).filter(o=>o.id!==n)),nd(t,i,-1,r)}},sd={[ft.SEARCHES]:"savedSearches",[ft.BOOKMARKS]:"bookmarks",[ft.BOOKS]:void 0,[ft.COLLECTIONS]:void 0},ya=(t,e)=>{var i;let r=sd[e];return r?(i=t[r])!==null&&i!==void 0?i:[]:[]},va=(t,e,i)=>{let r=sd[e];r&&(t[r]=i)},nd=(t,e,i,r)=>{let n=t.assetCounts.allAsset[e];if(n!==void 0&&(t.assetCounts.allAsset[e]=Math.max(0,n+i),e===ft.BOOKMARKS&&r)){let o=t.assetCounts.bookmarkByMap[r];t.assetCounts.bookmarkByMap[r]=Math.max(0,o+i)}},od=(t,e)=>{let i=t.assetLabels.map(n=>n.title),r=e.labels.filter(n=>!i.includes(n)).map(n=>({title:n}));t.assetLabels.push(...r)},Ue=xo.FtReduxStore.get({name:gm,reducers:ym,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(ft).map(t=>[t,void 0])),bookmarkByMap:{}},assetLabels:[]}}),xa=class{constructor(e=new yo,i=new vo){this.assetCountsService=e,this.assetLabelsService=i,this.currentSession=v.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new go,this.savedSearchesService=new mo,v.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:i}=v.getState();(0,xo.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,i?.profile)||(this.currentSession=i,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),Ue.actions.clearAssetCount(),Ue.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Ue.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Ue.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();Ue.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();Ue.actions.assetLabels(e)}async loadAssetCount(e){let i=await this.assetCountsService.getUserAssetCount(e);i&&Ue.getState().assetCounts.allAsset[e]!==i.count&&Ue.actions.setAssetCount({assetCount:i})}async loadBookmarkByMapId(e){let i=await this.assetCountsService.getUserBookmarkCountByMap(e);i&&Ue.getState().assetCounts.bookmarkByMap[e]!==i.count&&Ue.actions.setBookmarkCountByMap({count:i.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let i=Object.keys(Ue.getState().assetCounts.bookmarkByMap).length!==0;e===ft.BOOKMARKS&&i&&Ue.actions.clearBookmarkCountByMap(),Ue.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let i=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;Ue.actions.bookmarks(i)}}},vm=new xa;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=vm);var ba=class{addCommand(e,i=!1){v.commands.add(e,i)}consumeCommand(e){return v.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new ba;var ht=c(h());var ad,gr=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},xm=Symbol("clearAfterUnitTest"),bo=class extends(0,ht.withEventBus)(Re){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[ad]=()=>{this.defaultMessages={},this.cache=new ht.CacheRegistry,this.listeners={}},this.currentUiLocale=v.getState().uiLocale,v.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=v.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let i=e.name.toLowerCase();this.cache.setFinal(i,e),this.notify(i)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,i){var r;if(e=e.toLowerCase(),i&&Object.keys(i).length>0){let n={...(r=this.defaultMessages[e])!==null&&r!==void 0?r:{},...i};(0,ht.deepEqual)(this.defaultMessages[e],n)||(this.defaultMessages[e]=n,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var i,r;return this.fetchContext(e),(r=(i=this.cache.getNow(e))===null||i===void 0?void 0:i.messages)!==null&&r!==void 0?r:{}}resolveRawMessage(e,i){let r=e.toLowerCase();return this.resolveContext(r)[i]}resolveMessage(e,i,...r){var n;let o=e.toLowerCase(),s=this.resolveContext(o);return new ht.ParametrizedLabelResolver((n=this.defaultMessages[o])!==null&&n!==void 0?n:{},s).resolve(i,...r)}async fetchContext(e){let i=!this.cache.has(e),r;try{r=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),i&&await this.notify(e)}catch(n){!(n instanceof ht.CanceledPromiseError)&&i&&console.error(n)}return r}subscribe(e,i){var r;return e=e.toLowerCase(),this.listeners[e]=(r=this.listeners[e])!==null&&r!==void 0?r:new Set,this.listeners[e].add(i),()=>{var n;return(n=this.listeners[e])===null||n===void 0?void 0:n.delete(i)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new gr({loadedContexts:e})),this.dispatchEvent(new gr({loadedContexts:e})),await Promise.all(e.map(i=>this.notify(i,!1)))}async notify(e,i=!0){i&&(document.body.dispatchEvent(new gr({loadedContexts:[e]})),this.dispatchEvent(new gr({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(r=>(0,ht.delay)(0).then(()=>r()).catch(()=>null)))}};ad=xm;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends bo{constructor(){super(async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends bo{constructor(){super(async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e))}});var yr=window.FluidTopicsI18nService,So=window.FluidTopicsCustomI18nService;var ld=c(h()),Sa=class{highlightHtml(e,i,r){(0,ld.highlightHtml)(e,i,r)}};window.FluidTopicsHighlightHtmlService=new Sa;var cd=c(h());var wa=class{isDate(e){var i,r,n,o;return(o=(r=((n=(i=v.getState().metadataConfiguration)===null||i===void 0?void 0:i.descriptors)!==null&&n!==void 0?n:[]).find(a=>a.key===e))===null||r===void 0?void 0:r.date)!==null&&o!==void 0?o:!1}format(e,i){var r,n,o,s;if(e==null)return"";try{return cd.DateFormatter.format(e,(r=i?.locale)!==null&&r!==void 0?r:v.getState().uiLocale,(n=i?.longFormat)!==null&&n!==void 0?n:!1,(o=i?.withTime)!==null&&o!==void 0?o:!1,(s=i?.onlyTime)!==null&&s!==void 0?s:!1)}catch(a){throw console.error(`Date ${JSON.stringify(e)} is not valid`,a),a}}};window.FluidTopicsDateService=new wa;var dd=c(h());var on=class{static get(e,i){var r,n,o,s;let a=v.getState(),{lang:l,region:d}=(s=(n=(r=a.localesConfiguration)===null||r===void 0?void 0:r.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&s!==void 0?s:{lang:"en",region:"US"};return new dd.SearchPlaceConverter(a.baseUrl,e??20,(o=a.localesConfiguration)===null||o===void 0?void 0:o.allLanguagesAllowed,i??`${l}-${d}`)}};var Ea=class{urlToSearchRequest(e){return on.get().parse(e)}searchRequestToUrl(e){return on.get().serialize(e)}};window.FluidTopicsUrlService=new Ea;var Zt=c(h());var ki=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{nextLocation:e}})}};ki.eventName="before-location-change";var Di=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:{currentItem:e}})}};Di.eventName="change";var Aa=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let i=sessionStorage.getItem(this.itemName(e));return i?JSON.parse(i):void 0}set(e,i){sessionStorage.setItem(this.itemName(e),JSON.stringify(i))}},ud=new Aa;var wo=class t extends Zt.WithEventBus{static build(){return new t(window.history,ud,()=>window.location,!1)}constructor(e,i,r,n){var o,s;super(),this.history=e,this.historyStorage=i,this.windowLocation=r,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(s=(o=e.state)===null||o===void 0?void 0:o.index)!==null&&s!==void 0?s:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(n)}setCurrentState(e,i=!1){let r=i&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,r&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,Zt.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,this.windowLocation().href]),setTimeout(()=>this.dispatchEvent(new Di(this.currentItem())),0)}installProxies(){let e=i=>(r,n,[o,s,a])=>{let l=new ki(new URL(typeof a=="string"?a:(a??this.windowLocation()).href,window.location.origin));this.dispatchEvent(l);let d=i(),u={...d===this.currentIndex?this.currentState:void 0,...o,index:d,href:l.detail.nextLocation.href};r.apply(n,[u,s,u.href]),this.setCurrentState(u,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let i=this.history.length-1;i>=0;i--)e?this.states[i]=this.historyStorage.get(i):setTimeout(()=>this.states[i]=this.historyStorage.get(i),this.history.length-i)}updateCurrentState(e){var i;let r={...this.buildCurrentState(),...e,index:this.currentIndex,title:(i=e?.title)!==null&&i!==void 0?i:this.currentState.title};this.setCurrentState(r)}addBeforeLocationChangeListener(e){this.addEventListener(ki.eventName,e)}removeBeforeLocationChangeListener(e){this.removeEventListener(ki.eventName,e)}addHistoryChangeListener(e){this.addEventListener(Di.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(Di.eventName,e)}currentItem(){return(0,Zt.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,Zt.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let i=this.states.filter(r=>!!r).filter(r=>r.index<this.currentIndex).reverse();return(0,Zt.deepCopy)(i.find(r=>e(r)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,Zt.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var i;let r=(i=this.states[e])===null||i===void 0?void 0:i.majorStateId;if(!r)return e;let n=e,o=e+1;for(;this.states.length>o&&!this.isDifferentMajorState(o,r);)this.hasState(o)&&(n=o),o++;return n}buildCurrentState(){var e,i;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(i=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&i!==void 0?i:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,i){var r;if(!this.hasState(e))return!1;let n=i??this.currentState.majorStateId,o=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;return o==null||o!=n}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=wo.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 Eo=class{constructor(){this.storeListeners=[]}store(e,i){if(this.isAuthenticated())return;let r=JSON.stringify(i);window.localStorage.setItem(e,r),window.dispatchEvent(new StorageEvent("storage",{key:e,newValue:r,storageArea:window.localStorage}))}get(e){var i,r;if(!this.isAuthenticated())return(r=JSON.parse((i=window.localStorage.getItem(e))!==null&&i!==void 0?i:"null"))!==null&&r!==void 0?r:void 0}addStoreListener(e,i){let r=n=>{n.key===e()&&!this.isAuthenticated()&&i()};this.storeListeners.push(r),window.addEventListener("storage",r)}clearStoreListeners(){this.storeListeners.forEach(e=>window.removeEventListener("storage",e)),this.storeListeners.length=0}isAuthenticated(){let e=v.getState().session;return!!e?.sessionAuthenticated}};var pd=c(S());var fd=pd.css`
2
+ `;var md=c(S()),Ve=c($()),Ii=c(h());var Li=c(h());function hd(t,e){let{authenticationRequired:i,session:r}=v.getState();return i&&!r?.sessionAuthenticated?Promise.resolve(e):t()}var Ao=class extends mr{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var _a=class t extends Li.FtStateManager{static build(e){return new t(v,e)}constructor(e,i){super(),this.store=e,this.cache=new Li.CacheRegistry,this.withManualResources=!0,this.userLocaleService=new Ao,this.cleanSessionDebouncer=new Li.Debouncer,this.reloadConfiguration=()=>{var r;(r=this.cache)===null||r===void 0||r.clear("availableContentLocales"),this.updateAvailableContentLocales()},this.reloadDebouncer=new Li.Debouncer(500),this.apiProvider=i??(()=>Bt.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}addListeners(){this.store.addEventListener(nt.eventName,this.reloadConfiguration)}removeListeners(){this.store.removeEventListener(nt.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.store.getState().localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let i=await this.apiProvider().getCurrentSession();return i.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},i.idleTimeoutInMillis),i});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let i=await this.cache.get("availableContentLocales",()=>hd(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=i.contentLocales)!==null&&e!==void 0?e:[])}setStickyFilters(e){this.store.actions.stickyFilters(e)}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setTenantId(e){this.store.actions.tenantId(e)}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){this.store.actions.localesConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e,i){this.userLocaleService.updateUiLocale({uiLocale:e,contentLocale:i}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new Oi(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setNoCustomCode(e){this.store.actions.noCustomCode(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}userHasAnyRole(...e){return rd(v.getState().session,...e)}},pi=_a.build();var Ae=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},X=class extends Ii.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=pi,this.contextRoot=new Kr}render(){return md.html`
3
3
  <slot></slot>
4
- `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var i;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>yr.addContext(r)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((i=this.stateManager)===null||i===void 0||i.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};X.elementDefinitions={};X.styles=pd;_e([(0,Ue.property)()],X.prototype,"baseUrl",void 0);_e([(0,Ue.property)()],X.prototype,"tenantId",void 0);_e([(0,Ue.property)()],X.prototype,"apiIntegrationIdentifier",void 0);_e([(0,Ue.property)()],X.prototype,"apiIntegrationAppVersion",void 0);_e([(0,Ue.property)()],X.prototype,"uiLocale",void 0);_e([(0,Pi.jsonProperty)(null)],X.prototype,"availableUiLocales",void 0);_e([(0,Pi.jsonProperty)(null)],X.prototype,"metadataConfiguration",void 0);_e([(0,Ue.property)({type:Boolean})],X.prototype,"editorMode",void 0);_e([(0,Ue.property)({type:Boolean})],X.prototype,"noCustom",void 0);_e([(0,Ue.property)({type:Boolean})],X.prototype,"openExternalDocumentInNewTab",void 0);_e([(0,Ue.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],X.prototype,"noCustomComponent",void 0);_e([(0,Ue.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],X.prototype,"noCustomCode",void 0);_e([(0,Ue.property)({type:Boolean})],X.prototype,"withManualResources",void 0);_e([(0,Ue.property)({type:Boolean})],X.prototype,"navigatorOnline",void 0);_e([(0,Ue.property)({type:Boolean})],X.prototype,"forcedOffline",void 0);_e([(0,Ue.property)({type:Boolean})],X.prototype,"authenticationRequired",void 0);_e([(0,Pi.jsonProperty)([])],X.prototype,"messageContexts",void 0);_e([(0,Pi.jsonProperty)(void 0)],X.prototype,"session",void 0);var gd=c(h());var md={"ft-app-context":X};(0,gd.customElements)(md);var vr=class extends yd.FtStateManager{constructor(e,i){super(),this.store=e,this.service=i,v.addEventListener(nt.eventName,()=>{i.clearCache(),this.clear()})}setZoom(e){this.store.actions.setZoom(e)}setRotation(e){this.store.actions.setRotation(e)}};var xd=c(h()),fi;(function(t){t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.UD_ATTACHMENT="UD_ATTACHMENT",t.RESOURCE="RESOURCE"})(fi||(fi={}));var vd;(function(t){t.FIT_TO_CONTAINER="fit-to-container",t.ZOOM_REAL_SIZE="zoom-real-size",t.ZOOM_IN="zoom-in",t.ZOOM_OUT="zoom-out",t.ROTATE_LEFT="rotate-left",t.ROTATE_RIGHT="rotate-right"})(vd||(vd={}));var Mi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:(0,xd.deepCopy)(e),composed:!0,bubbles:!0})}};Mi.eventName="ft-viewer-loaded";var Eo=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};Eo.eventName="ft-viewer-not-found";var Ao=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};Ao.eventName="ft-viewer-unauthorized";var _o=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};_o.eventName="ft-viewer-forbidden";var Co=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e,composed:!0,bubbles:!0})}};Co.eventName="ft-viewer-load-error";function To(t,e){let i=e;i.status===401?t.dispatchEvent(new Ao):i.status===403?t.dispatchEvent(new _o):i.status===404?t.dispatchEvent(new Eo):t.dispatchEvent(new Co(e))}var Ro=class extends Re{getAsset(e,i,r){let n={[fi.MAP_ATTACHMENT]:()=>this.api.getMapAttachment(e,i),[fi.UD_ATTACHMENT]:()=>this.api.getUdAttachment(e,i),[fi.RESOURCE]:()=>this.api.getMapResource(e,i)};return this.cache.get(i,n[r])}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Oo=class t extends vr{static build(e){return new t(In(e),new Ro)}constructor(e,i){super(e,i),this.store=e,this.service=i}async load(){let{documentId:e,assetId:i,origin:r}=this.store.getState();if(e&&i&&r){let n=await this.service.getAsset(e,i,r);this.store.actions.document(n.holder),this.store.actions.descriptor({id:n.id,portalUrl:n.portalUrl,filename:n.filename,fingerprint:n.fingerprint,displayName:n.displayName,alt:n.displayName,mimeType:n.mimeType,size:n.size,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:n.contentUrl}),this.store.actions.watermark(n.watermark)}}clear(){this.store.clearKeeping("documentId","assetId","origin")}reload(){return this.clear(),this.load()}async init(e,i,r){return this.store.actions.documentId(e),this.store.actions.assetId(i),this.store.actions.origin(r),await this.reload(),this.store.getState()}};var ko=c(F());var sn=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Xt=class extends xr.FtLitElementRedux{constructor(){super(...arguments),this.viewerStateManager=Oo.build(this.id||(0,xr.randomId)(6))}render(){return bd.html`
4
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.addListeners(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.stateManager.removeListeners(),this.contextRoot.detach(document.body)}update(e){var i;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("tenantId")&&this.stateManager.setTenantId(this.tenantId),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("noCustomCode")&&this.stateManager.setNoCustomCode(this.noCustomCode),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(r=>yr.addContext(r)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((i=this.stateManager)===null||i===void 0||i.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};X.elementDefinitions={};X.styles=fd;Ae([(0,Ve.property)()],X.prototype,"baseUrl",void 0);Ae([(0,Ve.property)()],X.prototype,"tenantId",void 0);Ae([(0,Ve.property)()],X.prototype,"apiIntegrationIdentifier",void 0);Ae([(0,Ve.property)()],X.prototype,"apiIntegrationAppVersion",void 0);Ae([(0,Ve.property)()],X.prototype,"uiLocale",void 0);Ae([(0,Ii.jsonProperty)(null)],X.prototype,"availableUiLocales",void 0);Ae([(0,Ii.jsonProperty)(null)],X.prototype,"metadataConfiguration",void 0);Ae([(0,Ve.property)({type:Boolean})],X.prototype,"editorMode",void 0);Ae([(0,Ve.property)({type:Boolean})],X.prototype,"noCustom",void 0);Ae([(0,Ve.property)({type:Boolean})],X.prototype,"openExternalDocumentInNewTab",void 0);Ae([(0,Ve.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],X.prototype,"noCustomComponent",void 0);Ae([(0,Ve.property)({converter:{fromAttribute(t){return t==="false"?!1:t==="true"||(t??!1)}}})],X.prototype,"noCustomCode",void 0);Ae([(0,Ve.property)({type:Boolean})],X.prototype,"withManualResources",void 0);Ae([(0,Ve.property)({type:Boolean})],X.prototype,"navigatorOnline",void 0);Ae([(0,Ve.property)({type:Boolean})],X.prototype,"forcedOffline",void 0);Ae([(0,Ve.property)({type:Boolean})],X.prototype,"authenticationRequired",void 0);Ae([(0,Ii.jsonProperty)([])],X.prototype,"messageContexts",void 0);Ae([(0,Ii.jsonProperty)(void 0)],X.prototype,"session",void 0);var yd=c(h());var gd={"ft-app-context":X};(0,yd.customElements)(gd);var vr=class extends vd.FtStateManager{constructor(e,i){super(),this.store=e,this.service=i,v.addEventListener(nt.eventName,()=>{i.clearCache(),this.clear()})}setZoom(e){this.store.actions.setZoom(e)}setRotation(e){this.store.actions.setRotation(e)}};var bd=c(h()),fi;(function(t){t.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",t.MAP_ATTACHMENT="MAP_ATTACHMENT",t.UD_ATTACHMENT="UD_ATTACHMENT",t.RESOURCE="RESOURCE"})(fi||(fi={}));var xd;(function(t){t.FIT_TO_CONTAINER="fit-to-container",t.ZOOM_REAL_SIZE="zoom-real-size",t.ZOOM_IN="zoom-in",t.ZOOM_OUT="zoom-out",t.ROTATE_LEFT="rotate-left",t.ROTATE_RIGHT="rotate-right"})(xd||(xd={}));var Pi=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:(0,bd.deepCopy)(e),composed:!0,bubbles:!0})}};Pi.eventName="ft-viewer-loaded";var _o=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};_o.eventName="ft-viewer-not-found";var Co=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};Co.eventName="ft-viewer-unauthorized";var To=class t extends Event{constructor(){super(t.eventName,{composed:!0,bubbles:!0})}};To.eventName="ft-viewer-forbidden";var Ro=class t extends CustomEvent{constructor(e){super(t.eventName,{detail:e,composed:!0,bubbles:!0})}};Ro.eventName="ft-viewer-load-error";function Oo(t,e){let i=e;i.status===401?t.dispatchEvent(new Co):i.status===403?t.dispatchEvent(new To):i.status===404?t.dispatchEvent(new _o):t.dispatchEvent(new Ro(e))}var ko=class extends Re{getAsset(e,i,r){let n={[fi.MAP_ATTACHMENT]:()=>this.api.getMapAttachment(e,i),[fi.UD_ATTACHMENT]:()=>this.api.getUdAttachment(e,i),[fi.RESOURCE]:()=>this.api.getMapResource(e,i)};return this.cache.get(i,n[r])}makeAbsolute(e){return this.api.makeAbsolute(e)}};var Do=class t extends vr{static build(e){return new t(Pn(e),new ko)}constructor(e,i){super(e,i),this.store=e,this.service=i}async load(){let{documentId:e,assetId:i,origin:r}=this.store.getState();if(e&&i&&r){let n=await this.service.getAsset(e,i,r);this.store.actions.document(n.holder),this.store.actions.descriptor({id:n.id,portalUrl:n.portalUrl,filename:n.filename,fingerprint:n.fingerprint,displayName:n.displayName,alt:n.displayName,mimeType:n.mimeType,size:n.size,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:n.contentUrl}),this.store.actions.watermark(n.watermark)}}clear(){this.store.clearKeeping("documentId","assetId","origin")}reload(){return this.clear(),this.load()}async init(e,i,r){return this.store.actions.documentId(e),this.store.actions.assetId(i),this.store.actions.origin(r),await this.reload(),this.store.getState()}};var Lo=c($());var sn=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Xt=class extends xr.FtLitElementRedux{constructor(){super(...arguments),this.viewerStateManager=Do.build(this.id||(0,xr.randomId)(6))}render(){return Sd.html`
5
5
  <slot></slot>
6
- `}willUpdate(e){super.willUpdate(e),(e.has("documentId")||e.has("assetId")||e.has("origin"))&&this.load()}async load(){try{let e=await this.viewerStateManager.init(this.documentId,this.assetId,this.origin);this.documentId&&this.assetId&&this.origin&&this.dispatchEvent(new Mi(e))}catch(e){To(this,e)}}connectedCallback(){super.connectedCallback(),this.addStore(v),this.load()}onAuthenticationChange(){this.viewerStateManager.reload()}};sn([(0,ko.property)()],Xt.prototype,"documentId",void 0);sn([(0,ko.property)()],Xt.prototype,"assetId",void 0);sn([(0,ko.property)()],Xt.prototype,"origin",void 0);sn([Gr({context:Ws})],Xt.prototype,"viewerStateManager",void 0);sn([(0,xr.reduxEventListener)({eventName:nt.eventName})],Xt.prototype,"onAuthenticationChange",null);var Sd=c(h()),Ge=class extends Sd.FtLitElementRedux{};var At=c(S()),ji=c(h()),_t=c(F());var wd=c(S()),Ed=c(h()),bm={position:Ed.FtCssVariableFactory.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},Ad=wd.css`
6
+ `}willUpdate(e){super.willUpdate(e),(e.has("documentId")||e.has("assetId")||e.has("origin"))&&this.load()}async load(){try{let e=await this.viewerStateManager.init(this.documentId,this.assetId,this.origin);this.documentId&&this.assetId&&this.origin&&this.dispatchEvent(new Pi(e))}catch(e){Oo(this,e)}}connectedCallback(){super.connectedCallback(),this.addStore(v),this.load()}onAuthenticationChange(){this.viewerStateManager.reload()}};sn([(0,Lo.property)()],Xt.prototype,"documentId",void 0);sn([(0,Lo.property)()],Xt.prototype,"assetId",void 0);sn([(0,Lo.property)()],Xt.prototype,"origin",void 0);sn([Gr({context:Gs})],Xt.prototype,"viewerStateManager",void 0);sn([(0,xr.reduxEventListener)({eventName:nt.eventName})],Xt.prototype,"onAuthenticationChange",null);var wd=c(h()),Ge=class extends wd.FtLitElementRedux{};var At=c(S()),zi=c(h()),_t=c($());var Ed=c(S()),Ad=c(h()),bm={position:Ad.FtCssVariableFactory.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},_d=Ed.css`
7
7
  :host {
8
8
  position: absolute;
9
9
  top: 0;
@@ -22,9 +22,9 @@
22
22
  .ft-watermark {
23
23
  z-index: 79;
24
24
  }
25
- `;var Er=c(S()),zi=c(F());var iu=c(br()),ru=c(h());var ka=globalThis,Cd=t=>t,Do=ka.trustedTypes,Td=Do?Do.createPolicy("lit-html",{createHTML:t=>t}):void 0,Id="$lit$",hi=`lit$${Math.random().toFixed(9).slice(2)}$`,Pd="?"+hi,Sm=`<${Pd}>`,Fi=document,Lo=()=>Fi.createComment(""),ln=t=>t===null||typeof t!="object"&&typeof t!="function",Da=Array.isArray,wm=t=>Da(t)||typeof t?.[Symbol.iterator]=="function",Aa=`[
26
- \f\r]`,an=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Rd=/-->/g,Od=/>/g,Ni=RegExp(`>|${Aa}(?:([^\\s"'>=/]+)(${Aa}*=${Aa}*(?:[^
27
- \f\r"'\`<>=]|("|')|))|$)`,"g"),kd=/'/g,Dd=/"/g,Md=/^(?:script|style|textarea|title)$/i,La=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),Nd=La(1),$d=La(2),Fd=La(3),cn=Symbol.for("lit-noChange"),me=Symbol.for("lit-nothing"),Ld=new WeakMap,$i=Fi.createTreeWalker(Fi,129);function Ud(t,e){if(!Da(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Td!==void 0?Td.createHTML(e):e}var Em=(t,e)=>{let i=t.length-1,r=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=an;for(let a=0;a<i;a++){let l=t[a],d,u,p=-1,f=0;for(;f<l.length&&(s.lastIndex=f,u=s.exec(l),u!==null);)f=s.lastIndex,s===an?u[1]==="!--"?s=Rd:u[1]!==void 0?s=Od:u[2]!==void 0?(Md.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Ni):u[3]!==void 0&&(s=Ni):s===Ni?u[0]===">"?(s=n??an,p=-1):u[1]===void 0?p=-2:(p=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?Ni:u[3]==='"'?Dd:kd):s===Dd||s===kd?s=Ni:s===Rd||s===Od?s=an:(s=Ni,n=void 0);let y=s===Ni&&t[a+1].startsWith("/>")?" ":"";o+=s===an?l+Sm:p>=0?(r.push(d),l.slice(0,p)+Id+l.slice(p)+hi+y):l+hi+(p===-2?a:y)}return[Ud(t,o+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},dn=class t{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[d,u]=Em(e,i);if(this.el=t.createElement(d,r),$i.currentNode=this.el.content,i===2||i===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=$i.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(Id)){let f=u[s++],y=n.getAttribute(p).split(hi),w=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:w[2],strings:y,ctor:w[1]==="."?Ca:w[1]==="?"?Ta:w[1]==="@"?Ra:wr}),n.removeAttribute(p)}else p.startsWith(hi)&&(l.push({type:6,index:o}),n.removeAttribute(p));if(Md.test(n.tagName)){let p=n.textContent.split(hi),f=p.length-1;if(f>0){n.textContent=Do?Do.emptyScript:"";for(let y=0;y<f;y++)n.append(p[y],Lo()),$i.nextNode(),l.push({type:2,index:++o});n.append(p[f],Lo())}}}else if(n.nodeType===8)if(n.data===Pd)l.push({type:2,index:o});else{let p=-1;for(;(p=n.data.indexOf(hi,p+1))!==-1;)l.push({type:7,index:o}),p+=hi.length-1}o++}}static createElement(e,i){let r=Fi.createElement("template");return r.innerHTML=e,r}};function Sr(t,e,i=t,r){if(e===cn)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,o=ln(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=Sr(t,n._$AS(t,e.values),n,r)),e}var _a=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??Fi).importNode(i,!0);$i.currentNode=n;let o=$i.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new Io(o,o.nextSibling,this,e):l.type===1?d=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(d=new Oa(o,this,e)),this._$AV.push(d),l=r[++a]}s!==l?.index&&(o=$i.nextNode(),s++)}return $i.currentNode=Fi,n}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},Io=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=me,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Sr(this,e,i),ln(e)?e===me||e==null||e===""?(this._$AH!==me&&this._$AR(),this._$AH=me):e!==this._$AH&&e!==cn&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wm(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!==me&&ln(this._$AH)?this._$AA.nextSibling.data=e:this.T(Fi.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=dn.createElement(Ud(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{let o=new _a(n,this),s=o.u(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let i=Ld.get(e.strings);return i===void 0&&Ld.set(e.strings,i=new dn(e)),i}k(e){Da(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,n=0;for(let o of e)n===i.length?i.push(r=new t(this.O(Lo()),this.O(Lo()),this,this.options)):r=i[n],r._$AI(o),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=Cd(e).nextSibling;Cd(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},wr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,o){this.type=1,this._$AH=me,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=me}_$AI(e,i=this,r,n){let o=this.strings,s=!1;if(o===void 0)e=Sr(this,e,i,0),s=!ln(e)||e!==this._$AH&&e!==cn,s&&(this._$AH=e);else{let a=e,l,d;for(e=o[0],l=0;l<o.length-1;l++)d=Sr(this,a[r+l],i,l),d===cn&&(d=this._$AH[l]),s||=!ln(d)||d!==this._$AH[l],d===me?e=me:e!==me&&(e+=(d??"")+o[l+1]),this._$AH[l]=d}s&&!n&&this.j(e)}j(e){e===me?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ca=class extends wr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===me?void 0:e}},Ta=class extends wr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==me)}},Ra=class extends wr{constructor(e,i,r,n,o){super(e,i,r,n,o),this.type=5}_$AI(e,i=this){if((e=Sr(this,e,i,0)??me)===cn)return;let r=this._$AH,n=e===me&&r!==me||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==me&&(r===me||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Oa=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Sr(this,e)}};var Am=ka.litHtmlPolyfillSupport;Am?.(dn,Io),(ka.litHtmlVersions??=[]).push("3.3.3");var Bd=Symbol.for(""),_m=t=>{if(t?.r===Bd)return t?._$litStatic$},Ia=t=>({_$litStatic$:t,r:Bd});var Vd=new Map,Pa=t=>(e,...i)=>{let r=i.length,n,o,s=[],a=[],l,d=0,u=!1;for(;d<r;){for(l=e[d];d<r&&(o=i[d],(n=_m(o))!==void 0);)l+=n+e[++d],u=!0;d!==r&&a.push(o),s.push(l),d++}if(d===r&&s.push(e[r]),u){let p=s.join("$$lit$$");(e=Vd.get(p))===void 0&&(s.raw=s,Vd.set(p,e=s)),i=a}return t(e,...i)},Ma=Pa(Nd),Sb=Pa($d),wb=Pa(Fd);var Na=c(F()),Qd=c(h());var V;(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"})(V||(V={}));var mt=c(S()),m=c(h()),Hd=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),ei=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),x={fontFamily:ei,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:m.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Jt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Hd),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",x.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",x.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",x.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",x.textDecoration,"inherit")},Qt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Hd),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",x.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",x.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",x.textDecoration,"inherit")},Ui={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",x.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",x.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",x.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",x.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",x.textDecoration,"inherit")},Vi={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",x.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",x.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",x.textDecoration,"inherit")},ot={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",x.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",x.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",x.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",x.textDecoration,"inherit")},st={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",x.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",x.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",x.textDecoration,"inherit")},qe={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",x.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",x.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",x.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",x.textDecoration,"inherit")},Bi={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",x.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",x.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",x.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",x.textDecoration,"inherit")},Hi={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",x.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",x.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",x.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",x.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",x.textDecoration,"inherit")},Ie={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",x.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",x.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",x.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",x.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",x.textDecoration,"inherit")},zd=mt.css`
25
+ `;var Er=c(S()),Hi=c($());var ru=c(br()),nu=c(h());var La=globalThis,Td=t=>t,Io=La.trustedTypes,Rd=Io?Io.createPolicy("lit-html",{createHTML:t=>t}):void 0,Pd="$lit$",hi=`lit$${Math.random().toFixed(9).slice(2)}$`,Md="?"+hi,Sm=`<${Md}>`,$i=document,Po=()=>$i.createComment(""),ln=t=>t===null||typeof t!="object"&&typeof t!="function",Ia=Array.isArray,wm=t=>Ia(t)||typeof t?.[Symbol.iterator]=="function",Ca=`[
26
+ \f\r]`,an=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Od=/-->/g,kd=/>/g,Mi=RegExp(`>|${Ca}(?:([^\\s"'>=/]+)(${Ca}*=${Ca}*(?:[^
27
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Dd=/'/g,Ld=/"/g,Nd=/^(?:script|style|textarea|title)$/i,Pa=t=>(e,...i)=>({_$litType$:t,strings:e,values:i}),$d=Pa(1),Fd=Pa(2),Ud=Pa(3),cn=Symbol.for("lit-noChange"),fe=Symbol.for("lit-nothing"),Id=new WeakMap,Ni=$i.createTreeWalker($i,129);function Vd(t,e){if(!Ia(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return Rd!==void 0?Rd.createHTML(e):e}var Em=(t,e)=>{let i=t.length-1,r=[],n,o=e===2?"<svg>":e===3?"<math>":"",s=an;for(let a=0;a<i;a++){let l=t[a],d,u,p=-1,f=0;for(;f<l.length&&(s.lastIndex=f,u=s.exec(l),u!==null);)f=s.lastIndex,s===an?u[1]==="!--"?s=Od:u[1]!==void 0?s=kd:u[2]!==void 0?(Nd.test(u[2])&&(n=RegExp("</"+u[2],"g")),s=Mi):u[3]!==void 0&&(s=Mi):s===Mi?u[0]===">"?(s=n??an,p=-1):u[1]===void 0?p=-2:(p=s.lastIndex-u[2].length,d=u[1],s=u[3]===void 0?Mi:u[3]==='"'?Ld:Dd):s===Ld||s===Dd?s=Mi:s===Od||s===kd?s=an:(s=Mi,n=void 0);let y=s===Mi&&t[a+1].startsWith("/>")?" ":"";o+=s===an?l+Sm:p>=0?(r.push(d),l.slice(0,p)+Pd+l.slice(p)+hi+y):l+hi+(p===-2?a:y)}return[Vd(t,o+(t[i]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]},dn=class t{constructor({strings:e,_$litType$:i},r){let n;this.parts=[];let o=0,s=0,a=e.length-1,l=this.parts,[d,u]=Em(e,i);if(this.el=t.createElement(d,r),Ni.currentNode=this.el.content,i===2||i===3){let p=this.el.content.firstChild;p.replaceWith(...p.childNodes)}for(;(n=Ni.nextNode())!==null&&l.length<a;){if(n.nodeType===1){if(n.hasAttributes())for(let p of n.getAttributeNames())if(p.endsWith(Pd)){let f=u[s++],y=n.getAttribute(p).split(hi),w=/([.?@])?(.*)/.exec(f);l.push({type:1,index:o,name:w[2],strings:y,ctor:w[1]==="."?Ra:w[1]==="?"?Oa:w[1]==="@"?ka:wr}),n.removeAttribute(p)}else p.startsWith(hi)&&(l.push({type:6,index:o}),n.removeAttribute(p));if(Nd.test(n.tagName)){let p=n.textContent.split(hi),f=p.length-1;if(f>0){n.textContent=Io?Io.emptyScript:"";for(let y=0;y<f;y++)n.append(p[y],Po()),Ni.nextNode(),l.push({type:2,index:++o});n.append(p[f],Po())}}}else if(n.nodeType===8)if(n.data===Md)l.push({type:2,index:o});else{let p=-1;for(;(p=n.data.indexOf(hi,p+1))!==-1;)l.push({type:7,index:o}),p+=hi.length-1}o++}}static createElement(e,i){let r=$i.createElement("template");return r.innerHTML=e,r}};function Sr(t,e,i=t,r){if(e===cn)return e;let n=r!==void 0?i._$Co?.[r]:i._$Cl,o=ln(e)?void 0:e._$litDirective$;return n?.constructor!==o&&(n?._$AO?.(!1),o===void 0?n=void 0:(n=new o(t),n._$AT(t,i,r)),r!==void 0?(i._$Co??=[])[r]=n:i._$Cl=n),n!==void 0&&(e=Sr(t,n._$AS(t,e.values),n,r)),e}var Ta=class{constructor(e,i){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:i},parts:r}=this._$AD,n=(e?.creationScope??$i).importNode(i,!0);Ni.currentNode=n;let o=Ni.nextNode(),s=0,a=0,l=r[0];for(;l!==void 0;){if(s===l.index){let d;l.type===2?d=new Mo(o,o.nextSibling,this,e):l.type===1?d=new l.ctor(o,l.name,l.strings,this,e):l.type===6&&(d=new Da(o,this,e)),this._$AV.push(d),l=r[++a]}s!==l?.index&&(o=Ni.nextNode(),s++)}return Ni.currentNode=$i,n}p(e){let i=0;for(let r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,i),i+=r.strings.length-2):r._$AI(e[i])),i++}},Mo=class t{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,i,r,n){this.type=2,this._$AH=fe,this._$AN=void 0,this._$AA=e,this._$AB=i,this._$AM=r,this.options=n,this._$Cv=n?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,i=this._$AM;return i!==void 0&&e?.nodeType===11&&(e=i.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,i=this){e=Sr(this,e,i),ln(e)?e===fe||e==null||e===""?(this._$AH!==fe&&this._$AR(),this._$AH=fe):e!==this._$AH&&e!==cn&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):wm(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!==fe&&ln(this._$AH)?this._$AA.nextSibling.data=e:this.T($i.createTextNode(e)),this._$AH=e}$(e){let{values:i,_$litType$:r}=e,n=typeof r=="number"?this._$AC(e):(r.el===void 0&&(r.el=dn.createElement(Vd(r.h,r.h[0]),this.options)),r);if(this._$AH?._$AD===n)this._$AH.p(i);else{let o=new Ta(n,this),s=o.u(this.options);o.p(i),this.T(s),this._$AH=o}}_$AC(e){let i=Id.get(e.strings);return i===void 0&&Id.set(e.strings,i=new dn(e)),i}k(e){Ia(this._$AH)||(this._$AH=[],this._$AR());let i=this._$AH,r,n=0;for(let o of e)n===i.length?i.push(r=new t(this.O(Po()),this.O(Po()),this,this.options)):r=i[n],r._$AI(o),n++;n<i.length&&(this._$AR(r&&r._$AB.nextSibling,n),i.length=n)}_$AR(e=this._$AA.nextSibling,i){for(this._$AP?.(!1,!0,i);e!==this._$AB;){let r=Td(e).nextSibling;Td(e).remove(),e=r}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},wr=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,i,r,n,o){this.type=1,this._$AH=fe,this._$AN=void 0,this.element=e,this.name=i,this._$AM=n,this.options=o,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=fe}_$AI(e,i=this,r,n){let o=this.strings,s=!1;if(o===void 0)e=Sr(this,e,i,0),s=!ln(e)||e!==this._$AH&&e!==cn,s&&(this._$AH=e);else{let a=e,l,d;for(e=o[0],l=0;l<o.length-1;l++)d=Sr(this,a[r+l],i,l),d===cn&&(d=this._$AH[l]),s||=!ln(d)||d!==this._$AH[l],d===fe?e=fe:e!==fe&&(e+=(d??"")+o[l+1]),this._$AH[l]=d}s&&!n&&this.j(e)}j(e){e===fe?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ra=class extends wr{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===fe?void 0:e}},Oa=class extends wr{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==fe)}},ka=class extends wr{constructor(e,i,r,n,o){super(e,i,r,n,o),this.type=5}_$AI(e,i=this){if((e=Sr(this,e,i,0)??fe)===cn)return;let r=this._$AH,n=e===fe&&r!==fe||e.capture!==r.capture||e.once!==r.once||e.passive!==r.passive,o=e!==fe&&(r===fe||n);n&&this.element.removeEventListener(this.name,this,r),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Da=class{constructor(e,i,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=i,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Sr(this,e)}};var Am=La.litHtmlPolyfillSupport;Am?.(dn,Mo),(La.litHtmlVersions??=[]).push("3.3.3");var Hd=Symbol.for(""),_m=t=>{if(t?.r===Hd)return t?._$litStatic$},Ma=t=>({_$litStatic$:t,r:Hd});var Bd=new Map,Na=t=>(e,...i)=>{let r=i.length,n,o,s=[],a=[],l,d=0,u=!1;for(;d<r;){for(l=e[d];d<r&&(o=i[d],(n=_m(o))!==void 0);)l+=n+e[++d],u=!0;d!==r&&a.push(o),s.push(l),d++}if(d===r&&s.push(e[r]),u){let p=s.join("$$lit$$");(e=Bd.get(p))===void 0&&(s.raw=s,Bd.set(p,e=s)),i=a}return t(e,...i)},$a=Na($d),bb=Na(Fd),Sb=Na(Ud);var Fa=c($()),eu=c(h());var V;(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"})(V||(V={}));var mt=c(S()),m=c(h()),zd=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.titleFont),ei=m.FtCssVariableFactory.extend("--ft-typography-font-family","",m.designSystemVariables.contentFont),x={fontFamily:ei,fontSize:m.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:m.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:m.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:m.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:m.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit"),textDecoration:m.FtCssVariableFactory.create("--ft-typography-text-decoration","","UNKNOWN","inherit")},Jt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-font-family","",zd),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-font-size","",x.fontSize,"20px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",x.letterSpacing,"0.15px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-line-height","",x.lineHeight,"1.2"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-text-decoration","",x.textDecoration,"inherit")},Qt={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",zd),fontSize:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",x.letterSpacing,"0.105px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",x.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-title-dense-text-decoration","",x.textDecoration,"inherit")},Fi={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",x.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",x.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",x.letterSpacing,"0.144px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",x.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-decoration","",x.textDecoration,"inherit")},Ui={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",x.letterSpacing,"0.098px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",x.lineHeight,"1.7"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-decoration","",x.textDecoration,"inherit")},ot={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",x.fontSize,"16px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",x.letterSpacing,"0.496px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",x.lineHeight,"1.5"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body1-text-decoration","",x.textDecoration,"inherit")},st={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",x.letterSpacing,"0.252px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",x.lineHeight,"1.4"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-body2-text-decoration","",x.textDecoration,"inherit")},qe={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",x.fontSize,"12px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",x.letterSpacing,"0.396px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",x.lineHeight,"1.33"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-caption-text-decoration","",x.textDecoration,"inherit")},Vi={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",x.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",x.letterSpacing,"0.33px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",x.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",x.textTransform,"inherit"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-decoration","",x.textDecoration,"inherit")},Bi={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",x.fontSize,"10px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",x.fontWeight,"normal"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",x.letterSpacing,"1.5px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",x.lineHeight,"1.6"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",x.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-overline-text-decoration","",x.textDecoration,"inherit")},Ie={fontFamily:m.FtCssVariableFactory.extend("--ft-typography-button-font-family","",ei),fontSize:m.FtCssVariableFactory.extend("--ft-typography-button-font-size","",x.fontSize,"14px"),fontWeight:m.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",x.fontWeight,"600"),letterSpacing:m.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",x.letterSpacing,"1.246px"),lineHeight:m.FtCssVariableFactory.extend("--ft-typography-button-line-height","",x.lineHeight,"1.15"),textTransform:m.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",x.textTransform,"uppercase"),textDecoration:m.FtCssVariableFactory.extend("--ft-typography-button-text-decoration","",x.textDecoration,"inherit")},jd=mt.css`
28
28
  .ft-typography--title {
29
29
  font-family: ${Jt.fontFamily};
30
30
  font-size: ${Jt.fontSize};
@@ -34,7 +34,7 @@
34
34
  text-transform: ${Jt.textTransform};
35
35
  text-decoration: ${Jt.textDecoration};
36
36
  }
37
- `,jd=mt.css`
37
+ `,Wd=mt.css`
38
38
  .ft-typography--title-dense {
39
39
  font-family: ${Qt.fontFamily};
40
40
  font-size: ${Qt.fontSize};
@@ -44,8 +44,18 @@
44
44
  text-transform: ${Qt.textTransform};
45
45
  text-decoration: ${Qt.textDecoration};
46
46
  }
47
- `,Wd=mt.css`
47
+ `,Kd=mt.css`
48
48
  .ft-typography--subtitle1 {
49
+ font-family: ${Fi.fontFamily};
50
+ font-size: ${Fi.fontSize};
51
+ font-weight: ${Fi.fontWeight};
52
+ letter-spacing: ${Fi.letterSpacing};
53
+ line-height: ${Fi.lineHeight};
54
+ text-transform: ${Fi.textTransform};
55
+ text-decoration: ${Fi.textDecoration};
56
+ }
57
+ `,Gd=mt.css`
58
+ .ft-typography--subtitle2 {
49
59
  font-family: ${Ui.fontFamily};
50
60
  font-size: ${Ui.fontSize};
51
61
  font-weight: ${Ui.fontWeight};
@@ -54,16 +64,6 @@
54
64
  text-transform: ${Ui.textTransform};
55
65
  text-decoration: ${Ui.textDecoration};
56
66
  }
57
- `,Kd=mt.css`
58
- .ft-typography--subtitle2 {
59
- font-family: ${Vi.fontFamily};
60
- font-size: ${Vi.fontSize};
61
- font-weight: ${Vi.fontWeight};
62
- letter-spacing: ${Vi.letterSpacing};
63
- line-height: ${Vi.lineHeight};
64
- text-transform: ${Vi.textTransform};
65
- text-decoration: ${Vi.textDecoration};
66
- }
67
67
 
68
68
  `,mi=mt.css`
69
69
  .ft-typography--body1 {
@@ -75,7 +75,7 @@
75
75
  text-transform: ${ot.textTransform};
76
76
  text-decoration: ${ot.textDecoration};
77
77
  }
78
- `,Gd=mt.css`
78
+ `,qd=mt.css`
79
79
  .ft-typography--body2 {
80
80
  font-family: ${st.fontFamily};
81
81
  font-size: ${st.fontSize};
@@ -85,7 +85,7 @@
85
85
  text-transform: ${st.textTransform};
86
86
  text-decoration: ${st.textDecoration};
87
87
  }
88
- `,Po=mt.css`
88
+ `,No=mt.css`
89
89
  .ft-typography--caption {
90
90
  font-family: ${qe.fontFamily};
91
91
  font-size: ${qe.fontSize};
@@ -95,8 +95,18 @@
95
95
  text-transform: ${qe.textTransform};
96
96
  text-decoration: ${qe.textDecoration};
97
97
  }
98
- `,qd=mt.css`
98
+ `,Yd=mt.css`
99
99
  .ft-typography--breadcrumb {
100
+ font-family: ${Vi.fontFamily};
101
+ font-size: ${Vi.fontSize};
102
+ font-weight: ${Vi.fontWeight};
103
+ letter-spacing: ${Vi.letterSpacing};
104
+ line-height: ${Vi.lineHeight};
105
+ text-transform: ${Vi.textTransform};
106
+ text-decoration: ${Vi.textDecoration};
107
+ }
108
+ `,Zd=mt.css`
109
+ .ft-typography--overline {
100
110
  font-family: ${Bi.fontFamily};
101
111
  font-size: ${Bi.fontSize};
102
112
  font-weight: ${Bi.fontWeight};
@@ -105,17 +115,7 @@
105
115
  text-transform: ${Bi.textTransform};
106
116
  text-decoration: ${Bi.textDecoration};
107
117
  }
108
- `,Yd=mt.css`
109
- .ft-typography--overline {
110
- font-family: ${Hi.fontFamily};
111
- font-size: ${Hi.fontSize};
112
- font-weight: ${Hi.fontWeight};
113
- letter-spacing: ${Hi.letterSpacing};
114
- line-height: ${Hi.lineHeight};
115
- text-transform: ${Hi.textTransform};
116
- text-decoration: ${Hi.textDecoration};
117
- }
118
- `,Zd=mt.css`
118
+ `,Xd=mt.css`
119
119
  .ft-typography--button {
120
120
  font-family: ${Ie.fontFamily};
121
121
  font-size: ${Ie.fontSize};
@@ -125,19 +125,19 @@
125
125
  text-transform: ${Ie.textTransform};
126
126
  text-decoration: ${Ie.textDecoration};
127
127
  }
128
- `,Xd=mt.css`
128
+ `,Jd=mt.css`
129
129
  .ft-typography {
130
130
  vertical-align: inherit;
131
131
  }
132
- `;var Jd=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},U=class extends Qd.FtLitElement{constructor(){super(...arguments),this.variant=V.body1}render(){return this.element?Ma`
133
- <${Ia(this.element)}
132
+ `;var Qd=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},F=class extends eu.FtLitElement{constructor(){super(...arguments),this.variant=V.body1}render(){return this.element?$a`
133
+ <${Ma(this.element)}
134
134
  part="text"
135
135
  class="ft-typography ft-typography--${this.variant}">
136
136
  <slot></slot>
137
- </${Ia(this.element)}>
138
- `:Ma`
137
+ </${Ma(this.element)}>
138
+ `:$a`
139
139
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
140
- `}};U.styles=[zd,jd,Wd,Kd,mi,Gd,Po,qd,Yd,Zd,Xd];Jd([(0,Na.property)()],U.prototype,"element",void 0);Jd([(0,Na.property)()],U.prototype,"variant",void 0);var tu=c(h());var eu={"ft-typography":U};(0,tu.customElements)(eu);var Mo=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Et=class extends ru.FtLitElement{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,i,r;return this.watermark?Er.html`
140
+ `}};F.styles=[jd,Wd,Kd,Gd,mi,qd,No,Yd,Zd,Xd,Jd];Qd([(0,Fa.property)()],F.prototype,"element",void 0);Qd([(0,Fa.property)()],F.prototype,"variant",void 0);var iu=c(h());var tu={"ft-typography":F};(0,iu.customElements)(tu);var $o=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Et=class extends nu.FtLitElement{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,i,r;return this.watermark?Er.html`
141
141
  <style>
142
142
  .ft-watermark {
143
143
  height: ${this.height}px;
@@ -152,11 +152,11 @@
152
152
  transform="rotate(-45)"
153
153
  fill="${(e=this.watermark)===null||e===void 0?void 0:e.color}"
154
154
  fill-opacity="${(i=this.watermark)===null||i===void 0?void 0:i.opacity}%">
155
- ${(0,iu.repeat)(((r=this.watermark)===null||r===void 0?void 0:r.text)||[],n=>Er.svg`<tspan x="0" dy="1.2em">${n}</tspan>`)}
155
+ ${(0,ru.repeat)(((r=this.watermark)===null||r===void 0?void 0:r.text)||[],n=>Er.svg`<tspan x="0" dy="1.2em">${n}</tspan>`)}
156
156
  </text>
157
157
  </svg>
158
158
  </div>
159
- `:Er.nothing}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let i=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",i.x+" "+i.y+" "+i.width+" "+i.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};Et.styles=[Ad,mi];Mo([(0,zi.query)(".ft-watermark")],Et.prototype,"svg",void 0);Mo([(0,zi.property)({attribute:!1})],Et.prototype,"watermark",void 0);Mo([(0,zi.property)({attribute:!1})],Et.prototype,"heightReference",void 0);Mo([(0,zi.state)()],Et.prototype,"height",void 0);var ou=c(h());var nu={"ft-content-watermark":Et};(0,ou.customElements)(nu);var au=c($a()),at=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ce=class extends(0,ji.withConditionalVisibility)(Ge){constructor(){super(...arguments),this.viewerType="none",this.inlineSvgAllowed=!1}render(){return At.html`
159
+ `:Er.nothing}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let i=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",i.x+" "+i.y+" "+i.width+" "+i.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};Et.styles=[_d,mi];$o([(0,Hi.query)(".ft-watermark")],Et.prototype,"svg",void 0);$o([(0,Hi.property)({attribute:!1})],Et.prototype,"watermark",void 0);$o([(0,Hi.property)({attribute:!1})],Et.prototype,"heightReference",void 0);$o([(0,Hi.state)()],Et.prototype,"height",void 0);var su=c(h());var ou={"ft-content-watermark":Et};(0,su.customElements)(ou);var lu=c(Ua()),at=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ae=class extends(0,zi.withConditionalVisibility)(Ge){constructor(){super(...arguments),this.viewerType="none",this.inlineSvgAllowed=!1}render(){return At.html`
160
160
  ${this.renderContent()}
161
161
  <ft-content-watermark part="watermark"
162
162
  .watermark=${this.watermark}
@@ -171,7 +171,7 @@
171
171
  alt="${(i=this.descriptor)===null||i===void 0?void 0:i.alt}"
172
172
  @load=${this.onImageLoad}>
173
173
  `:At.html`
174
- ${(0,au.unsafeHTML)(this.svgContent)}
174
+ ${(0,lu.unsafeHTML)(this.svgContent)}
175
175
  `}
176
176
 
177
177
  </div>
@@ -179,11 +179,11 @@
179
179
  </div>
180
180
  `}onImageLoad(){var e;this.initialImageHeight=this.image.naturalHeight===0?this.image.clientHeight:this.image.naturalHeight,this.initialImageWidth=this.image.naturalWidth===0?this.image.clientWidth:this.image.naturalWidth,(e=this.viewerStateManager)===null||e===void 0||e.setZoom(Math.min(1,this.getImageToViewerRatio()))}onSvgLoad(){var e;(this.svg.clientWidth===0||this.svg.clientHeight===0)&&(this.svg.style.width="90vw",this.svg.style.height="90vh"),this.initialImageHeight=this.svg.viewBox.baseVal.height===0?this.svg.clientHeight:this.svg.viewBox.baseVal.height,this.initialImageWidth=this.svg.viewBox.baseVal.width===0?this.svg.clientWidth:this.svg.viewBox.baseVal.width,(e=this.viewerStateManager)===null||e===void 0||e.setZoom(Math.min(1,this.getImageToViewerRatio()))}getImageToViewerRatio(){if(this.initialImageHeight!=null&&this.initialImageWidth!=null){let e=this.initialImageHeight/this.initialImageWidth,i=this.clientHeight/this.clientWidth;return e>i?this.clientHeight/this.initialImageHeight:this.clientWidth/this.initialImageWidth}}renderVideoViewer(){var e;return At.html`
181
181
  <video src="${(e=this.descriptor)===null||e===void 0?void 0:e.contentUrl}" controls></video>
182
- `}renderPdfViewer(){var e;let i=new URLSearchParams({file:this.descriptor.contentUrl});return this.renderIframeViewer(`${(e=Ut.get())===null||e===void 0?void 0:e.makeAbsolute("/pdf-viewer")}?${i}`)}renderIframeViewer(e){var i;return At.html`
182
+ `}renderPdfViewer(){var e;let i=new URLSearchParams({file:this.descriptor.contentUrl});return this.renderIframeViewer(`${(e=Bt.get())===null||e===void 0?void 0:e.makeAbsolute("/pdf-viewer")}?${i}`)}renderIframeViewer(e){var i;return At.html`
183
183
  <iframe src="${e}"
184
184
  title="${(i=this.descriptor)===null||i===void 0?void 0:i.alt}"
185
185
  ></iframe>
186
- `}willUpdate(e){var i,r,n;super.willUpdate(e),e.has("descriptor")&&(this.isVisible=!!(!((i=this.descriptor)===null||i===void 0)&&i.viewableInCurrentBrowser),this.initialImageHeight=void 0,this.initialImageWidth=void 0,this.imageHeight=void 0,this.imageWidth=void 0,(r=this.viewerStateManager)===null||r===void 0||r.setZoom(void 0),(n=this.viewerStateManager)===null||n===void 0||n.setRotation(0),this.svgContent=void 0),e.has("zoom")&&(this.imageHeight=this.zoom&&this.initialImageHeight?this.initialImageHeight*this.zoom:void 0,this.imageWidth=this.zoom&&this.initialImageWidth?this.initialImageWidth*this.zoom:void 0)}updated(e){var i,r,n,o,s,a;super.updated(e),!(!((i=this.descriptor)===null||i===void 0)&&i.viewableInCurrentBrowser)||!(!((r=this.descriptor)===null||r===void 0)&&r.contentUrl)?this.viewerType="none":this.inlineSvgAllowed&&(!((n=this.descriptor)===null||n===void 0)&&n.mimeType.startsWith("image/svg"))?this.viewerType="inline-svg":!((o=this.descriptor)===null||o===void 0)&&o.mimeType.startsWith("image/")?this.viewerType="image":!((s=this.descriptor)===null||s===void 0)&&s.mimeType.startsWith("video/")?this.viewerType="video":((a=this.descriptor)===null||a===void 0?void 0:a.mimeType)==="application/pdf"?this.viewerType="pdf":this.viewerType="iframe"}contentAvailableCallback(e){var i,r,n,o;if(super.contentAvailableCallback(e),(this.viewerType==="image"||this.viewerType==="inline-svg")&&(e.has("zoom")&&this.zoom==null&&((i=this.viewerStateManager)===null||i===void 0||i.setZoom(this.getImageToViewerRatio())),e.has("zoom")||e.has("rotation"))){let s=this.image||this.svg;if(s&&(s.style.transform=`scaleX(${this.zoom}) scaleY(${this.zoom}) rotate(${this.rotation}deg)`),this.imageViewer&&this.imageContainer&&s){let a=(this.imageViewer.scrollTop+this.imageViewer.clientHeight/2)/this.imageViewer.scrollHeight,l=(this.imageViewer.scrollLeft+this.imageViewer.clientWidth/2)/this.imageViewer.scrollWidth,{height:d,width:u}=s.getClientRects()[0];this.imageContainer.style.height=`${d}px`,this.imageContainer.style.width=`${u}px`,this.imageViewer.scrollTop=a*this.imageViewer.scrollHeight-this.imageViewer.clientHeight/2,this.imageViewer.scrollLeft=l*this.imageViewer.scrollWidth-this.imageViewer.clientWidth/2}}this.viewerType==="inline-svg"&&(e.has("descriptor")&&(!((r=this.descriptor)===null||r===void 0)&&r.contentUrl)&&((n=Ut.get())===null||n===void 0||n.fetch((o=this.descriptor)===null||o===void 0?void 0:o.contentUrl).then(s=>s.text()).then(s=>this.svgContent=s)),e.has("svgContent")&&this.svgContent&&this.onSvgLoad())}};ce.elementDefinitions={"ft-content-watermark":Et};ce.styles=At.css`
186
+ `}willUpdate(e){var i,r,n;super.willUpdate(e),e.has("descriptor")&&(this.isVisible=!!(!((i=this.descriptor)===null||i===void 0)&&i.viewableInCurrentBrowser),this.initialImageHeight=void 0,this.initialImageWidth=void 0,this.imageHeight=void 0,this.imageWidth=void 0,(r=this.viewerStateManager)===null||r===void 0||r.setZoom(void 0),(n=this.viewerStateManager)===null||n===void 0||n.setRotation(0),this.svgContent=void 0),e.has("zoom")&&(this.imageHeight=this.zoom&&this.initialImageHeight?this.initialImageHeight*this.zoom:void 0,this.imageWidth=this.zoom&&this.initialImageWidth?this.initialImageWidth*this.zoom:void 0)}updated(e){var i,r,n,o,s,a;super.updated(e),!(!((i=this.descriptor)===null||i===void 0)&&i.viewableInCurrentBrowser)||!(!((r=this.descriptor)===null||r===void 0)&&r.contentUrl)?this.viewerType="none":this.inlineSvgAllowed&&(!((n=this.descriptor)===null||n===void 0)&&n.mimeType.startsWith("image/svg"))?this.viewerType="inline-svg":!((o=this.descriptor)===null||o===void 0)&&o.mimeType.startsWith("image/")?this.viewerType="image":!((s=this.descriptor)===null||s===void 0)&&s.mimeType.startsWith("video/")?this.viewerType="video":((a=this.descriptor)===null||a===void 0?void 0:a.mimeType)==="application/pdf"?this.viewerType="pdf":this.viewerType="iframe"}contentAvailableCallback(e){var i,r,n,o;if(super.contentAvailableCallback(e),(this.viewerType==="image"||this.viewerType==="inline-svg")&&(e.has("zoom")&&this.zoom==null&&((i=this.viewerStateManager)===null||i===void 0||i.setZoom(this.getImageToViewerRatio())),e.has("zoom")||e.has("rotation"))){let s=this.image||this.svg;if(s&&(s.style.transform=`scaleX(${this.zoom}) scaleY(${this.zoom}) rotate(${this.rotation}deg)`),this.imageViewer&&this.imageContainer&&s){let a=(this.imageViewer.scrollTop+this.imageViewer.clientHeight/2)/this.imageViewer.scrollHeight,l=(this.imageViewer.scrollLeft+this.imageViewer.clientWidth/2)/this.imageViewer.scrollWidth,{height:d,width:u}=s.getClientRects()[0];this.imageContainer.style.height=`${d}px`,this.imageContainer.style.width=`${u}px`,this.imageViewer.scrollTop=a*this.imageViewer.scrollHeight-this.imageViewer.clientHeight/2,this.imageViewer.scrollLeft=l*this.imageViewer.scrollWidth-this.imageViewer.clientWidth/2}}this.viewerType==="inline-svg"&&(e.has("descriptor")&&(!((r=this.descriptor)===null||r===void 0)&&r.contentUrl)&&((n=Bt.get())===null||n===void 0||n.fetch((o=this.descriptor)===null||o===void 0?void 0:o.contentUrl).then(s=>s.text()).then(s=>this.svgContent=s)),e.has("svgContent")&&this.svgContent&&this.onSvgLoad())}};ae.elementDefinitions={"ft-content-watermark":Et};ae.styles=At.css`
187
187
  :host {
188
188
  display: block;
189
189
  min-height: 100px;
@@ -225,23 +225,23 @@
225
225
  max-height: 100%;
226
226
  border: none;
227
227
  }
228
- `;at([(0,ji.redux)({store:"viewer"})],ce.prototype,"descriptor",void 0);at([(0,_t.state)()],ce.prototype,"viewerType",void 0);at([(0,_t.state)()],ce.prototype,"inlineSvgAllowed",void 0);at([(0,ji.redux)({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],ce.prototype,"zoom",void 0);at([(0,ji.redux)({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],ce.prototype,"rotation",void 0);at([(0,ji.redux)({store:"viewer"})],ce.prototype,"watermark",void 0);at([(0,_t.query)("img")],ce.prototype,"image",void 0);at([(0,_t.query)("svg")],ce.prototype,"svg",void 0);at([(0,_t.query)(".image-viewer")],ce.prototype,"imageViewer",void 0);at([(0,_t.query)(".image-container")],ce.prototype,"imageContainer",void 0);at([(0,_t.state)()],ce.prototype,"imageHeight",void 0);at([(0,_t.state)()],ce.prototype,"imageWidth",void 0);at([(0,_t.state)()],ce.prototype,"svgContent",void 0);var No=class extends Nt(ce){};var lu=c(h()),Ar=c(S());var Cm=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ti=class extends Ge{render(){return this.filename?Ar.html`
228
+ `;at([(0,zi.redux)({store:"viewer"})],ae.prototype,"descriptor",void 0);at([(0,_t.state)()],ae.prototype,"viewerType",void 0);at([(0,_t.state)()],ae.prototype,"inlineSvgAllowed",void 0);at([(0,zi.redux)({store:"viewer",selector:({contentModifiers:t})=>t.zoom})],ae.prototype,"zoom",void 0);at([(0,zi.redux)({store:"viewer",selector:({contentModifiers:t})=>t.rotation})],ae.prototype,"rotation",void 0);at([(0,zi.redux)({store:"viewer"})],ae.prototype,"watermark",void 0);at([(0,_t.query)("img")],ae.prototype,"image",void 0);at([(0,_t.query)("svg")],ae.prototype,"svg",void 0);at([(0,_t.query)(".image-viewer")],ae.prototype,"imageViewer",void 0);at([(0,_t.query)(".image-container")],ae.prototype,"imageContainer",void 0);at([(0,_t.state)()],ae.prototype,"imageHeight",void 0);at([(0,_t.state)()],ae.prototype,"imageWidth",void 0);at([(0,_t.state)()],ae.prototype,"svgContent",void 0);var Fo=class extends $t(ae){};var cu=c(h()),Ar=c(S());var Cm=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ti=class extends Ge{render(){return this.filename?Ar.html`
229
229
  <ft-typography variant="${V.body1}" part="filename">
230
230
  ${this.filename}
231
231
  </ft-typography>
232
- `:Ar.nothing}};ti.elementDefinitions={"ft-typography":U};ti.styles=Ar.css`
232
+ `:Ar.nothing}};ti.elementDefinitions={"ft-typography":F};ti.styles=Ar.css`
233
233
  [part="filename"]::part(text) {
234
234
  margin: unset;
235
235
  }
236
- `;Cm([(0,lu.redux)({store:"viewer",selector:({descriptor:t})=>t?.filename})],ti.prototype,"filename",void 0);var $o=class extends Nt(ti){};var cu=c(h()),_r=c(S());var Tm=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Wi=class extends Ge{render(){return this.displayName?_r.html`
236
+ `;Cm([(0,cu.redux)({store:"viewer",selector:({descriptor:t})=>t?.filename})],ti.prototype,"filename",void 0);var Uo=class extends $t(ti){};var du=c(h()),_r=c(S());var Tm=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ji=class extends Ge{render(){return this.displayName?_r.html`
237
237
  <ft-typography variant="${V.title}" part="display-name" element="h2">
238
238
  ${this.displayName}
239
239
  </ft-typography>
240
- `:_r.nothing}};Wi.elementDefinitions={"ft-typography":U};Wi.styles=_r.css`
240
+ `:_r.nothing}};ji.elementDefinitions={"ft-typography":F};ji.styles=_r.css`
241
241
  [part="display-name"]::part(text) {
242
242
  margin: unset;
243
243
  }
244
- `;Tm([(0,cu.redux)({store:"viewer",selector:({descriptor:t})=>t?.displayName})],Wi.prototype,"displayName",void 0);var Fo=class extends Nt(Wi){};var fn=c(h()),Vo=c(S());var du=c(S()),Ct=c(h()),ge={size:Ct.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ct.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},uu=[du.css`
244
+ `;Tm([(0,du.redux)({store:"viewer",selector:({descriptor:t})=>t?.displayName})],ji.prototype,"displayName",void 0);var Vo=class extends $t(ji){};var fn=c(h()),Ho=c(S());var uu=c(S()),Ct=c(h()),he={size:Ct.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:Ct.FtCssVariableFactory.extend("--ft-icon-material-font-family","",Ct.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:Ct.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},pu=[uu.css`
245
245
  :host, i.ft-icon {
246
246
  display: inline-flex;
247
247
  align-items: center;
@@ -250,14 +250,14 @@
250
250
  }
251
251
 
252
252
  :host {
253
- width: ${ge.size};
254
- height: ${ge.size};
253
+ width: ${he.size};
254
+ height: ${he.size};
255
255
  }
256
256
 
257
257
  i.ft-icon {
258
258
  width: 100%;
259
259
  height: 100%;
260
- font-size: ${ge.size};
260
+ font-size: ${he.size};
261
261
  line-height: 1;
262
262
  font-weight: normal;
263
263
  text-transform: none;
@@ -268,52 +268,52 @@
268
268
  text-rendering: auto;
269
269
  -webkit-font-smoothing: antialiased;
270
270
  -moz-osx-font-smoothing: grayscale;
271
- vertical-align: ${ge.verticalAlign};
271
+ vertical-align: ${he.verticalAlign};
272
272
  }
273
273
 
274
274
  i.ft-icon.ft-icon--fluid-topics {
275
- font-family: ${ge.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
275
+ font-family: ${he.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
276
276
 
277
277
  /* Ugly fix because font is broken */
278
- font-size: calc(0.75 * ${ge.size});
279
- line-height: ${ge.size};
278
+ font-size: calc(0.75 * ${he.size});
279
+ line-height: ${he.size};
280
280
  position: relative;
281
281
  top: -4%;
282
282
  justify-content: center;
283
283
  }
284
284
 
285
285
  .ft-icon--file-format {
286
- font-family: ${ge.fileFormatFontFamily}, ft-mime, sans-serif;
286
+ font-family: ${he.fileFormatFontFamily}, ft-mime, sans-serif;
287
287
  }
288
288
 
289
289
  .ft-icon--material {
290
- font-family: ${ge.materialFontFamily}, "Material Icons", sans-serif;
290
+ font-family: ${he.materialFontFamily}, "Material Icons", sans-serif;
291
291
  }
292
- `,Ct.noTextSelect];var Pe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Pe||(Pe={}));var un=c(S()),gi=c(F()),pu=c(h()),fu=c($a());var ii;(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;"})(ii||(ii={}));var g;(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;"})(g||(g={}));var Fa=new Map([...["abw"].map(t=>[t,g.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,g.AUDIO]),...["avi"].map(t=>[t,g.AVI]),...["chm","xhs"].map(t=>[t,g.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,g.CODE]),...["csv"].map(t=>[t,g.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,g.DITA]),...["epub"].map(t=>[t,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,g.EXCEL]),...["flac"].map(t=>[t,g.FLAC]),...["gif"].map(t=>[t,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,g.GZIP]),...["html","htm","xhtml"].map(t=>[t,g.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,g.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,g.JPEG]),...["json"].map(t=>[t,g.JSON]),...["m4a","m4p"].map(t=>[t,g.M4A]),...["mov","qt"].map(t=>[t,g.MOV]),...["mp3"].map(t=>[t,g.MP3]),...["mp4","m4v"].map(t=>[t,g.MP4]),...["ogg","oga"].map(t=>[t,g.OGG]),...["pdf","ps"].map(t=>[t,g.PDF]),...["png"].map(t=>[t,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,g.POWERPOINT]),...["rar"].map(t=>[t,g.RAR]),...["stp"].map(t=>[t,g.STP]),...["txt","rtf","md","mdown"].map(t=>[t,g.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,g.VIDEO]),...["wav"].map(t=>[t,g.WAV]),...["wma"].map(t=>[t,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,g.WORD]),...["xml","xsl","rdf"].map(t=>[t,g.XML]),...["yaml","yml","x-yaml"].map(t=>[t,g.YAML]),...["zip"].map(t=>[t,g.ZIP])]),Rm=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Uo(t,e){var i,r,n,o;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((i=Rm.get(t))!==null&&i!==void 0?i:t)+"/").split("/");return(o=(n=(r=Fa.get(a))!==null&&r!==void 0?r:Fa.get(e))!==null&&n!==void 0?n:Fa.get(s))!==null&&o!==void 0?o:g.UNKNOWN}var Ua={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var pn=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},z=class extends pu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=un.nothing}render(){let e=this.variant&&Object.values(Pe).includes(this.variant)?this.variant:Pe.fluid_topics,i=e!==Pe.material||!!this.value;return un.html`
292
+ `,Ct.noTextSelect];var Pe;(function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"})(Pe||(Pe={}));var un=c(S()),gi=c($()),fu=c(h()),hu=c(Ua());var ii;(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;"})(ii||(ii={}));var g;(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;"})(g||(g={}));var Va=new Map([...["abw"].map(t=>[t,g.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,g.AUDIO]),...["avi"].map(t=>[t,g.AVI]),...["chm","xhs"].map(t=>[t,g.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,g.CODE]),...["csv"].map(t=>[t,g.CSV]),...["dita","ditamap","ditaval"].map(t=>[t,g.DITA]),...["epub"].map(t=>[t,g.EPUB]),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map(t=>[t,g.EXCEL]),...["flac"].map(t=>[t,g.FLAC]),...["gif"].map(t=>[t,g.GIF]),...["gzip","x-gzip","giz","gz","tgz"].map(t=>[t,g.GZIP]),...["html","htm","xhtml"].map(t=>[t,g.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,g.IMAGE]),...["jpeg","jpg","jpe"].map(t=>[t,g.JPEG]),...["json"].map(t=>[t,g.JSON]),...["m4a","m4p"].map(t=>[t,g.M4A]),...["mov","qt"].map(t=>[t,g.MOV]),...["mp3"].map(t=>[t,g.MP3]),...["mp4","m4v"].map(t=>[t,g.MP4]),...["ogg","oga"].map(t=>[t,g.OGG]),...["pdf","ps"].map(t=>[t,g.PDF]),...["png"].map(t=>[t,g.PNG]),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map(t=>[t,g.POWERPOINT]),...["rar"].map(t=>[t,g.RAR]),...["stp"].map(t=>[t,g.STP]),...["txt","rtf","md","mdown"].map(t=>[t,g.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,g.VIDEO]),...["wav"].map(t=>[t,g.WAV]),...["wma"].map(t=>[t,g.WMA]),...["doc","dot","docx","docm","dotx","dotm","docb"].map(t=>[t,g.WORD]),...["xml","xsl","rdf"].map(t=>[t,g.XML]),...["yaml","yml","x-yaml"].map(t=>[t,g.YAML]),...["zip"].map(t=>[t,g.ZIP])]),Rm=new Map([["application/msword","application/doc"],["application/vnd.openxmlformats-officedocument.wordprocessingml.document","application/docx"],["application/vnd.openxmlformats-officedocument.wordprocessingml.template","application/dotx"],["application/vnd.ms-word.document.macroEnabled.12","application/docm"],["application/vnd.ms-word.template.macroEnabled.12","application/dotm"],["application/vnd.ms-excel","application/xls"],["application/vnd.openxmlformats-officedocument.spreadsheetml.sheet","application/xlsx"],["application/vnd.openxmlformats-officedocument.spreadsheetml.template","application/xltx"],["application/vnd.ms-excel.sheet.macroEnabled.12","application/xlsm"],["application/vnd.ms-excel.template.macroEnabled.12","application/xltm"],["application/vnd.ms-excel.addin.macroEnabled.12","application/xlam"],["application/vnd.ms-excel.sheet.binary.macroEnabled.12","application/xlsb"],["application/vnd.ms-powerpoint","application/ppt"],["application/vnd.openxmlformats-officedocument.presentationml.presentation","application/pptx"],["application/vnd.openxmlformats-officedocument.presentationml.template","application/potx"],["application/vnd.openxmlformats-officedocument.presentationml.slideshow","application/ppsx"],["application/vnd.ms-powerpoint.addin.macroEnabled.12","application/ppam"],["application/vnd.ms-powerpoint.presentation.macroEnabled.12","application/pptm"],["application/vnd.ms-powerpoint.template.macroEnabled.12","application/potm"],["application/vnd.ms-powerpoint.slideshow.macroEnabled.12","application/ppsm"],["application/vnd.ms-access","application/mdb"]]);function Bo(t,e){var i,r,n,o;t=(t??"").toLowerCase(),e=(e??"").toLowerCase();let[s,a]=(((i=Rm.get(t))!==null&&i!==void 0?i:t)+"/").split("/");return(o=(n=(r=Va.get(a))!==null&&r!==void 0?r:Va.get(e))!==null&&n!==void 0?n:Va.get(s))!==null&&o!==void 0?o:g.UNKNOWN}var Ba={[g.ABW]:"#91ABC6",[g.AUDIO]:"#1795E3",[g.AVI]:"#E63324",[g.CHM]:"#71C3EB",[g.CODE]:"#71C3EB",[g.CSV]:"#1F7345",[g.DITA]:"#71C3EB",[g.EPUB]:"#85B926",[g.EXCEL]:"#1F7345",[g.FLAC]:"#1795E3",[g.GIF]:"#59B031",[g.GZIP]:"#F8AB36",[g.HTML]:"#71C3EB",[g.IMAGE]:"#59B031",[g.JPEG]:"#59B031",[g.JSON]:"#71C3EB",[g.M4A]:"#1795E3",[g.MOV]:"#E63324",[g.MP3]:"#1795E3",[g.MP4]:"#E63324",[g.OGG]:"#1795E3",[g.PDF]:"#E44948",[g.PNG]:"#59B031",[g.POWERPOINT]:"#B54A2B",[g.RAR]:"#F8AB36",[g.STP]:"#3764B1",[g.TEXT]:"#3162AB",[g.UNKNOWN]:"#999999",[g.VIDEO]:"#E63324",[g.WAV]:"#1795E3",[g.WMA]:"#1795E3",[g.WORD]:"#3162AB",[g.XML]:"#71C3EB",[g.YAML]:"#71C3EB",[g.ZIP]:"#F8AB36"};var pn=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},z=class extends fu.FtLitElement{constructor(){super(...arguments),this.ariaHidden="true",this.resolvedIcon=un.nothing}render(){let e=this.variant&&Object.values(Pe).includes(this.variant)?this.variant:Pe.fluid_topics,i=e!==Pe.material||!!this.value;return un.html`
293
293
  <i class="ft-icon ft-icon--${e} ft-no-text-select" part="icon icon-${e}">
294
- ${(0,fu.unsafeHTML)(this.resolvedIcon)}
294
+ ${(0,hu.unsafeHTML)(this.resolvedIcon)}
295
295
  <slot ?hidden=${i}></slot>
296
296
  </i>
297
- `}getTextContent(){var e,i;return(i=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(r=>r.textContent).join("").trim())!==null&&i!==void 0?i:""}update(e){super.update(e),["value","variant"].some(i=>e.has(i))&&this.resolveIcon()}resolveIcon(){var e,i;let r=this.value||this.getTextContent();switch(this.variant){case Pe.file_format:this.resolvedIcon=(e=g[r.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:r;break;case Pe.material:this.resolvedIcon=this.value||un.nothing;break;default:this.resolvedIcon=(i=ii[r.replace("-","_").toUpperCase()])!==null&&i!==void 0?i:r;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};z.elementDefinitions={};z.styles=uu;pn([(0,gi.property)()],z.prototype,"variant",void 0);pn([(0,gi.property)()],z.prototype,"value",void 0);pn([(0,gi.property)({reflect:!0,attribute:"aria-hidden"})],z.prototype,"ariaHidden",void 0);pn([(0,gi.state)()],z.prototype,"resolvedIcon",void 0);pn([(0,gi.query)("slot")],z.prototype,"slottedContent",void 0);var mu=c(h());var hu={"ft-icon":z};(0,mu.customElements)(hu);var gu=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ri=class extends Ge{render(){var e,i;return this.mimeType?Vo.html`
297
+ `}getTextContent(){var e,i;return(i=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(r=>r.textContent).join("").trim())!==null&&i!==void 0?i:""}update(e){super.update(e),["value","variant"].some(i=>e.has(i))&&this.resolveIcon()}resolveIcon(){var e,i;let r=this.value||this.getTextContent();switch(this.variant){case Pe.file_format:this.resolvedIcon=(e=g[r.replace("-","_").toUpperCase()])!==null&&e!==void 0?e:r;break;case Pe.material:this.resolvedIcon=this.value||un.nothing;break;default:this.resolvedIcon=(i=ii[r.replace("-","_").toUpperCase()])!==null&&i!==void 0?i:r;break}}firstUpdated(e){super.firstUpdated(e),setTimeout(()=>this.resolveIcon())}};z.elementDefinitions={};z.styles=pu;pn([(0,gi.property)()],z.prototype,"variant",void 0);pn([(0,gi.property)()],z.prototype,"value",void 0);pn([(0,gi.property)({reflect:!0,attribute:"aria-hidden"})],z.prototype,"ariaHidden",void 0);pn([(0,gi.state)()],z.prototype,"resolvedIcon",void 0);pn([(0,gi.query)("slot")],z.prototype,"slottedContent",void 0);var gu=c(h());var mu={"ft-icon":z};(0,gu.customElements)(mu);var yu=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ri=class extends Ge{render(){var e,i;return this.mimeType?Ho.html`
298
298
  <ft-icon part="icon"
299
299
  variant="${Pe.file_format}"
300
- value="${Uo(this.mimeType,(0,fn.last)((i=(e=this.filename)===null||e===void 0?void 0:e.split("."))!==null&&i!==void 0?i:[]))}"></ft-icon>
301
- `:Vo.nothing}};ri.elementDefinitions={"ft-icon":z};gu([(0,fn.redux)({store:"viewer",selector:({descriptor:t})=>t?.mimeType})],ri.prototype,"mimeType",void 0);gu([(0,fn.redux)({store:"viewer",selector:({descriptor:t})=>t?.filename})],ri.prototype,"filename",void 0);var Bo=class extends Nt(ri){};var yu=c(h()),Cr=c(S());var Om=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ni=class extends Ge{render(){return this.documentTitle?Cr.html`
300
+ value="${Bo(this.mimeType,(0,fn.last)((i=(e=this.filename)===null||e===void 0?void 0:e.split("."))!==null&&i!==void 0?i:[]))}"></ft-icon>
301
+ `:Ho.nothing}};ri.elementDefinitions={"ft-icon":z};yu([(0,fn.redux)({store:"viewer",selector:({descriptor:t})=>t?.mimeType})],ri.prototype,"mimeType",void 0);yu([(0,fn.redux)({store:"viewer",selector:({descriptor:t})=>t?.filename})],ri.prototype,"filename",void 0);var zo=class extends $t(ri){};var vu=c(h()),Cr=c(S());var Om=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ni=class extends Ge{render(){return this.documentTitle?Cr.html`
302
302
  <ft-typography variant="${V.title}" part="title" element="h1">
303
303
  ${this.documentTitle}
304
304
  </ft-typography>
305
- `:Cr.nothing}};ni.elementDefinitions={"ft-typography":U};ni.styles=Cr.css`
305
+ `:Cr.nothing}};ni.elementDefinitions={"ft-typography":F};ni.styles=Cr.css`
306
306
  [part="title"]::part(text) {
307
307
  margin: unset;
308
308
  }
309
- `;Om([(0,yu.redux)({store:"viewer",selector:({document:t})=>t?.title})],ni.prototype,"documentTitle",void 0);var Ho=class extends Nt(ni){};var bu=c(S()),Su=c(F());var Gi=c(h());var vu;(function(t){t.RATING="RATING"})(vu||(vu={}));var oi;(function(t){t.udAttachmentsUpdate="ud-attachments-update",t.udRatingUpdate="ud-rating-update",t.clusteringHelperCreated="clustering-helper-created"})(oi||(oi={}));var yi;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING"})(yi||(yi={}));var zo=class extends Re{getDocument(e){return this.cache.get(e,()=>this.api.getUnstructuredDocument(e))}getAttachments(e){return this.cache.get(`${e}-attachments`,()=>this.api.getUdAttachments(e))}clearAttachments(e){this.cache.clear(`${e}-attachments`)}getAttachmentDownloadLink(e,i){return this.makeAbsolute(`${this.api.endpoints.khub.documents.documentId(e).attachments.attachmentId(i).content}?download=true&locationValue=viewer`)}makeAbsolute(e){return this.api.makeAbsolute(e)}async awaitMakeAbsolute(e){return(await this.awaitApi).makeAbsolute(e)}async getDocumentRating(e){return(await this.api.getDocumentRating(e)).publication}async rateDocument(e,i,r){return this.api.rateDocument(e,i,r)}async unrateDocument(e){return this.api.unrateDocument(e)}async sendDocumentFeedback(e,i,r){return this.api.sendDocumentFeedback(e,i,r)}isFeatureAccessible(e,{session:i}){switch(e){case yi.FEEDBACK:return hr(i??[],ie.FEEDBACK_USER);case yi.RATING:return hr(i??[],ie.RATING_USER);default:return!1}}getConfiguration(){return this.cache.get("configuration",()=>this.api.getViewerConfiguration())}fetchRelativesForDocument(e,i){let r={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:i}}],sort:[],facets:[]};return this.api.search(r)}getRelativesForDocument(e,i){return this.cache.get("document-relatives-"+e+"-"+i.join("-"),()=>this.fetchRelativesForDocument(e,i))}};var Ki=c(h());var jo=class t extends vr{static build(e){return new t(In(e),new zo)}constructor(e,i,r){super(e,i),this.store=e,this.service=i,this.clusteringHelperProvider=r,this.metadataForSwitchToRelatives=new Set,e.actions.origin(fi.UNSTRUCTURED_DOCUMENT)}async load(){var e,i;let{documentId:r}=this.store.getState();if(r){let[n]=await Promise.all([this.service.getDocument(r),this.loadConfiguration()]);this.store.actions.unstructuredDocument(n),this.store.actions.document({type:po.UNSTRUCTURED_DOCUMENT,id:n.id,lang:(e=n.lang)!==null&&e!==void 0?e:"en-US",title:n.title,metadata:n.metadata,portalUrl:n.viewerUrl});let o=await this.service.awaitMakeAbsolute(n.contentApiEndpoint);this.store.actions.descriptor({id:n.id,portalUrl:n.viewerUrl,filename:n.filename,fingerprint:n.lastEdition,displayName:n.title,alt:(i=n.description)!==null&&i!==void 0?i:n.title,mimeType:n.mimeType,size:0,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:o}),this.store.actions.watermark(n.watermark),this.fetchMapRating(),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}return this.store.getState()}async fetchMapRating(){var e;let{documentId:i}=this.store.getState();i&&pi.userHasAnyRole("RATING_USER")&&this.store.actions.documentRating(await((e=this.service)===null||e===void 0?void 0:e.getDocumentRating(i)))}clear(){this.store.clearKeeping("documentId","origin")}reload(){return this.clear(),this.load()}setDocumentId(e){return this.store.actions.documentId(e),this.reload()}async loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(i=>this.store.actions.configuration(i))}async fetchRelatives(){var e;let{document:i,configuration:r}=this.store.getState(),n=i?.metadata.filter(o=>o.key==r?.relativePivotMetadata).flatMap(o=>o.values);if(n!==void 0&&n.length>0){let o=await((e=this.service)===null||e===void 0?void 0:e.getRelativesForDocument(r.relativePivotMetadata,n)),s=o?.results.flatMap(a=>a.entries);this.store.actions.relatives(s)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(oi.clusteringHelperCreated))}createClusteringHelper(){var e,i;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let{relatives:r,documentId:n}=this.store.getState();if(r){let o=r.find(a=>(0,Ki.accessResultId)(a)==n),s=(i=(e=v.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&i!==void 0?i:[];return new Ki.ClusteringHelper(r,o,this.metadataForSwitchToRelatives,s)}}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}async getRelativeDocumentUrlForLocale(e){var i;this.store.getState().relatives==null&&await this.fetchRelatives();let r=Ki.ClusteringHelper.findResultWithMetadataValue((i=this.store.getState().relatives)!==null&&i!==void 0?i:[],"ft:locale",e);return(0,Ki.accessResultUrl)(r)}onUdAttachmentsUpdate(){var e;let{documentId:i}=this.store.getState();i&&((e=this.service)===null||e===void 0||e.clearAttachments(i),this.store.dispatchEvent(new Event(oi.udAttachmentsUpdate)))}};var Wo=c(h()),Va=c(F());var xu=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Ba="ud-viewer-state-manager",Ye=(0,Wo.applyMixinOnce)(Symbol("toFtUdViewerComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededUdvRequests=[]}get service(){var r;return(r=this.viewerStateManager)===null||r===void 0?void 0:r.service}willUpdate(r){var n,o,s;super.willUpdate(r),r.has("viewerStateManager")&&(this.unregisterFromUdvStateManager(r.get("viewerStateManager")),this.registerToUdvStateManager(this.viewerStateManager)),r.has("neededUdvRequests")&&((n=this.viewerStateManager)===null||n===void 0||n.unregisterComponent(this,(s=r.get("neededUdvRequests"))!==null&&s!==void 0?s:[]),(o=this.viewerStateManager)===null||o===void 0||o.registerComponent(this,this.neededUdvRequests))}setUdvStateManager(r){this.clearStateManager(),this.viewerStateManager=r,this.addStore(r.store,"viewer")}clearStateManager(){this.viewerStateManager&&(this.removeStore("viewer"),this.viewerStateManager=void 0)}registerToUdvStateManager(r){r&&(r.registerComponent(this,this.neededUdvRequests),this.addStore(r.store,"viewer"))}unregisterFromUdvStateManager(r){r&&(r.unregisterComponent(this,this.neededUdvRequests),this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.registerToUdvStateManager(this.viewerStateManager)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterFromUdvStateManager(this.viewerStateManager)}}return xu([qr({context:Ba,subscribe:!0}),(0,Va.state)()],e.prototype,"viewerStateManager",void 0),xu([(0,Va.state)({hasChanged:Wo.hasChanged})],e.prototype,"neededUdvRequests",void 0),e});var Ko=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},vi=class extends Gi.FtLitElementRedux{constructor(){super(...arguments),this.viewerStateManager=jo.build(this.id||(0,Gi.randomId)(6))}render(){return bu.html`
309
+ `;Om([(0,vu.redux)({store:"viewer",selector:({document:t})=>t?.title})],ni.prototype,"documentTitle",void 0);var jo=class extends $t(ni){};var Su=c(S()),wu=c($());var Ki=c(h());var xu;(function(t){t.RATING="RATING"})(xu||(xu={}));var oi;(function(t){t.udAttachmentsUpdate="ud-attachments-update",t.udRatingUpdate="ud-rating-update",t.clusteringHelperCreated="clustering-helper-created"})(oi||(oi={}));var yi;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING"})(yi||(yi={}));var Wo=class extends Re{getDocument(e){return this.cache.get(e,()=>this.api.getUnstructuredDocument(e))}getAttachments(e){return this.cache.get(`${e}-attachments`,()=>this.api.getUdAttachments(e))}clearAttachments(e){this.cache.clear(`${e}-attachments`)}getAttachmentDownloadLink(e,i){return this.makeAbsolute(`${this.api.endpoints.khub.documents.documentId(e).attachments.attachmentId(i).content}?download=true&locationValue=viewer`)}makeAbsolute(e){return this.api.makeAbsolute(e)}async awaitMakeAbsolute(e){return(await this.awaitApi).makeAbsolute(e)}async getDocumentRating(e){return(await this.api.getDocumentRating(e)).publication}async rateDocument(e,i,r){return this.api.rateDocument(e,i,r)}async unrateDocument(e){return this.api.unrateDocument(e)}async sendDocumentFeedback(e,i,r){return this.api.sendDocumentFeedback(e,i,r)}isFeatureAccessible(e,{session:i}){switch(e){case yi.FEEDBACK:return hr(i??[],re.FEEDBACK_USER);case yi.RATING:return hr(i??[],re.RATING_USER);default:return!1}}getConfiguration(){return this.cache.get("configuration",()=>this.api.getViewerConfiguration())}fetchRelativesForDocument(e,i){let r={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:i}}],sort:[],facets:[]};return this.api.search(r)}getRelativesForDocument(e,i){return this.cache.get("document-relatives-"+e+"-"+i.join("-"),()=>this.fetchRelativesForDocument(e,i))}};var Wi=c(h());var Ko=class t extends vr{static build(e){return new t(Pn(e),new Wo)}constructor(e,i,r){super(e,i),this.store=e,this.service=i,this.clusteringHelperProvider=r,this.metadataForSwitchToRelatives=new Set,e.actions.origin(fi.UNSTRUCTURED_DOCUMENT)}async load(){var e,i;let{documentId:r}=this.store.getState();if(r){let[n]=await Promise.all([this.service.getDocument(r),this.loadConfiguration()]);this.store.actions.unstructuredDocument(n),this.store.actions.document({type:ho.UNSTRUCTURED_DOCUMENT,id:n.id,lang:(e=n.lang)!==null&&e!==void 0?e:"en-US",title:n.title,metadata:n.metadata,portalUrl:n.viewerUrl});let o=await this.service.awaitMakeAbsolute(n.contentApiEndpoint);this.store.actions.descriptor({id:n.id,portalUrl:n.viewerUrl,filename:n.filename,fingerprint:n.lastEdition,displayName:n.title,alt:(i=n.description)!==null&&i!==void 0?i:n.title,mimeType:n.mimeType,size:0,viewableInCurrentBrowser:n.viewableInCurrentBrowser,contentUrl:o}),this.store.actions.watermark(n.watermark),this.fetchMapRating(),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}return this.store.getState()}async fetchMapRating(){var e;let{documentId:i}=this.store.getState();i&&pi.userHasAnyRole("RATING_USER")&&this.store.actions.documentRating(await((e=this.service)===null||e===void 0?void 0:e.getDocumentRating(i)))}clear(){this.store.clearKeeping("documentId","origin")}reload(){return this.clear(),this.load()}setDocumentId(e){return this.store.actions.documentId(e),this.reload()}async loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(i=>this.store.actions.configuration(i))}async fetchRelatives(){var e;let{document:i,configuration:r}=this.store.getState(),n=i?.metadata.filter(o=>o.key==r?.relativePivotMetadata).flatMap(o=>o.values);if(n!==void 0&&n.length>0){let o=await((e=this.service)===null||e===void 0?void 0:e.getRelativesForDocument(r.relativePivotMetadata,n)),s=o?.results.flatMap(a=>a.entries);this.store.actions.relatives(s)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(oi.clusteringHelperCreated))}createClusteringHelper(){var e,i;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let{relatives:r,documentId:n}=this.store.getState();if(r){let o=r.find(a=>(0,Wi.accessResultId)(a)==n),s=(i=(e=v.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&i!==void 0?i:[];return new Wi.ClusteringHelper(r,o,this.metadataForSwitchToRelatives,s)}}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}async getRelativeDocumentUrlForLocale(e){var i;this.store.getState().relatives==null&&await this.fetchRelatives();let r=Wi.ClusteringHelper.findResultWithMetadataValue((i=this.store.getState().relatives)!==null&&i!==void 0?i:[],"ft:locale",e);return(0,Wi.accessResultUrl)(r)}onUdAttachmentsUpdate(){var e;let{documentId:i}=this.store.getState();i&&((e=this.service)===null||e===void 0||e.clearAttachments(i),this.store.dispatchEvent(new Event(oi.udAttachmentsUpdate)))}};var Go=c(h()),Ha=c($());var bu=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},za="ud-viewer-state-manager",Ye=(0,Go.applyMixinOnce)(Symbol("toFtUdViewerComponent"),function(t){class e extends t{constructor(){super(...arguments),this.neededUdvRequests=[]}get service(){var r;return(r=this.viewerStateManager)===null||r===void 0?void 0:r.service}willUpdate(r){var n,o,s;super.willUpdate(r),r.has("viewerStateManager")&&(this.unregisterFromUdvStateManager(r.get("viewerStateManager")),this.registerToUdvStateManager(this.viewerStateManager)),r.has("neededUdvRequests")&&((n=this.viewerStateManager)===null||n===void 0||n.unregisterComponent(this,(s=r.get("neededUdvRequests"))!==null&&s!==void 0?s:[]),(o=this.viewerStateManager)===null||o===void 0||o.registerComponent(this,this.neededUdvRequests))}setUdvStateManager(r){this.clearStateManager(),this.viewerStateManager=r,this.addStore(r.store,"viewer")}clearStateManager(){this.viewerStateManager&&(this.removeStore("viewer"),this.viewerStateManager=void 0)}registerToUdvStateManager(r){r&&(r.registerComponent(this,this.neededUdvRequests),this.addStore(r.store,"viewer"))}unregisterFromUdvStateManager(r){r&&(r.unregisterComponent(this,this.neededUdvRequests),this.removeStore("viewer"))}connectedCallback(){super.connectedCallback(),this.registerToUdvStateManager(this.viewerStateManager)}disconnectedCallback(){super.disconnectedCallback(),this.unregisterFromUdvStateManager(this.viewerStateManager)}}return bu([qr({context:za,subscribe:!0}),(0,Ha.state)()],e.prototype,"viewerStateManager",void 0),bu([(0,Ha.state)({hasChanged:Go.hasChanged})],e.prototype,"neededUdvRequests",void 0),e});var qo=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},vi=class extends Ki.FtLitElementRedux{constructor(){super(...arguments),this.viewerStateManager=Ko.build(this.id||(0,Ki.randomId)(6))}render(){return Su.html`
310
310
  <slot></slot>
311
- `}willUpdate(e){super.willUpdate(e),e.has("documentId")&&this.load()}async load(){try{let e=await this.viewerStateManager.setDocumentId(this.documentId);this.documentId&&this.dispatchEvent(new Mi(e))}catch(e){To(this,e)}}connectedCallback(){super.connectedCallback(),this.addStore(v),this.load()}onAuthenticationChange(){this.viewerStateManager.reload()}async reactToUiLocaleChanged(e){var i;if(!((i=v.getState().localesConfiguration)===null||i===void 0)&&i.uiLanguageSetsReaderLanguage){pi===null||pi===void 0||pi.stopReloadDebouncer();let r=await this.viewerStateManager.getRelativeDocumentUrlForLocale(e.detail.uiLocale);r?window.location.assign(r):window.location.reload()}}};Ko([(0,Su.property)()],vi.prototype,"documentId",void 0);Ko([Gr({context:Ba})],vi.prototype,"viewerStateManager",void 0);Ko([(0,Gi.reduxEventListener)({eventName:nt.eventName})],vi.prototype,"onAuthenticationChange",null);Ko([(0,Gi.reduxEventListener)({store:v.name,eventName:ki.eventName})],vi.prototype,"reactToUiLocaleChanged",null);var Go=class extends Ye(ce){};var qo=class extends Ye(ti){};var Yo=class extends Ye(ni){};var Zo=class extends Ye(ri){};var ls=c(h());var gt=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?xo:yr}constructor(e,i=!1){this.name=e,this.custom=i,this.properties=new Proxy({},{get:(r,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(r,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(r,n)=>()=>n}),this.attributes=new Proxy({},{get:(r,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Rr=c(h());var wu=c(F());var Ha=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,r]=e.split(".");return{context:i,key:r,custom:i!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Tr=new Ha;var km=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},mn=Symbol("i18nAttributes"),Eu=Symbol("i18nListAttributes"),gn=Symbol("i18nProperties"),Xo=Symbol("i18nContexts"),hn=Symbol("i18nUnsubs"),yt=(0,Rr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,i;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[i]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?xo:yr}i18n(o){let{context:s,key:a,message:l}=o,{custom:d,args:u,argsProvider:p}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,d);let f=u??(p?p(this):[]);return this.getI18nService(d).resolveMessage(s,a,...f)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(Tr.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var d;return((d=l?.context)===null||d===void 0?void 0:d.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,d=(u,p,f)=>f?.context&&f.key&&o(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(s=this[mn])===null||s===void 0||s.forEach((u,p)=>l[p]=d(u,p,l[p])),(a=this[Eu])===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=>d(u,p,y))})}updateI18nProperties(o){var s;(s=this[gn])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Xo].set(l,{isCustomContext:a}),this[hn].has(l)||this[hn].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Xo].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Xo].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[hn].forEach(o=>o()),this[hn].clear()}}return e=Xo,i=hn,km([(0,wu.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}),Jo=class extends yt(Rr.FtLitElement){},Qo=class extends yt(Rr.FtLitElementRedux){};var es=(t,e)=>(i,r)=>{var n,o;i.constructor.createProperty(r,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:r};i[gn]=(o=i[gn])!==null&&o!==void 0?o:new Map,i[gn].set(r,s)};var Au=c(S());var _u=Au.css`
312
- `;var ts=c(S()),kr=c(F()),is=c(h());var Or=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},vt=class extends Qo{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(v)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:ts.nothing:ts.html`
311
+ `}willUpdate(e){super.willUpdate(e),e.has("documentId")&&this.load()}async load(){try{let e=await this.viewerStateManager.setDocumentId(this.documentId);this.documentId&&this.dispatchEvent(new Pi(e))}catch(e){Oo(this,e)}}connectedCallback(){super.connectedCallback(),this.addStore(v),this.load()}onAuthenticationChange(){this.viewerStateManager.reload()}async reactToUiLocaleChanged(e){var i;if(!((i=v.getState().localesConfiguration)===null||i===void 0)&&i.uiLanguageSetsReaderLanguage){pi===null||pi===void 0||pi.stopReloadDebouncer();let r=await this.viewerStateManager.getRelativeDocumentUrlForLocale(e.detail.uiLocale);r?window.location.assign(r):window.location.reload()}}};qo([(0,wu.property)()],vi.prototype,"documentId",void 0);qo([Gr({context:za})],vi.prototype,"viewerStateManager",void 0);qo([(0,Ki.reduxEventListener)({eventName:nt.eventName})],vi.prototype,"onAuthenticationChange",null);qo([(0,Ki.reduxEventListener)({store:v.name,eventName:Oi.eventName})],vi.prototype,"reactToUiLocaleChanged",null);var Yo=class extends Ye(ae){};var Zo=class extends Ye(ti){};var Xo=class extends Ye(ni){};var Jo=class extends Ye(ri){};var ds=c(h());var gt=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?So:yr}constructor(e,i=!1){this.name=e,this.custom=i,this.properties=new Proxy({},{get:(r,n)=>{let o=n;return s=>({context:this.name,key:o,custom:this.custom,args:typeof s=="function"?void 0:s,argsProvider:typeof s=="function"?s:void 0})}}),this.messages=new Proxy({},{get:(r,n)=>(...o)=>this.service.resolveMessage(this.name,n,...o)}),this.rawMessages=new Proxy({},{get:(r,n)=>this.service.resolveRawMessage(this.name,n)}),this.keys=new Proxy({},{get:(r,n)=>()=>n}),this.attributes=new Proxy({},{get:(r,n)=>()=>({context:this.name,key:n,message:this.service.resolveRawMessage(this.name,n)})})}};var Rr=c(h());var Eu=c($());var ja=class{fromLocalizableLabel(e){return e.type=="PLAIN_TEXT"?{message:e.text}:{key:e.key,custom:e.type=="LOCALIZED_CUSTOM",context:e.context,message:e.key}}fromAttribute(e){if(e!=null)try{return JSON.parse(e)}catch{if(this.isI18nKey(e)){let[i,r]=e.split(".");return{context:i,key:r,custom:i!=="officialContext",message:""}}return{message:e}}}toAttribute(e){if(e!=null)return JSON.stringify(e)}isI18nKey(e){return e.match(/^[\w-]+\.[\w-]+$/)}},Tr=new ja;var km=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},mn=Symbol("i18nAttributes"),Au=Symbol("i18nListAttributes"),gn=Symbol("i18nProperties"),Qo=Symbol("i18nContexts"),hn=Symbol("i18nUnsubs"),yt=(0,Rr.applyMixinOnce)(Symbol("withI18n"),function(t){var e,i;class r extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map,this[i]=new Map}getI18nService(o){return o??this.useCustomMessageContexts?So:yr}i18n(o){let{context:s,key:a,message:l}=o,{custom:d,args:u,argsProvider:p}=o;if(s&&a){this.hasI18nContext(s)||this.addI18nContext(s,void 0,d);let f=u??(p?p(this):[]);return this.getI18nService(d).resolveMessage(s,a,...f)}return l}async awaitI18n(o){let{context:s,custom:a}=o;return s&&await this.getI18nService(a).prepareContext(s),this.i18n(o)}customI18n(o,s){if(Tr.isI18nKey(o)){let[a,l]=o.split(".");return this.i18n({custom:!0,context:a,key:l,...s})||o}return o}firstUpdated(o){super.firstUpdated(o),this.updateI18nAttributes(()=>!0),this.updateI18nProperties(()=>!0)}update(o){super.update(o),this.updateI18nAttributes((s,a,l)=>o.has(a)||typeof s.argsProvider=="function"),this.updateI18nProperties(s=>typeof s.argsProvider=="function")}onI18nUpdate(o){this.updateI18nAttributes((s,a,l)=>{var d;return((d=l?.context)===null||d===void 0?void 0:d.toLowerCase())===o}),this.updateI18nProperties(s=>s.context.toLowerCase()===o),this.requestUpdate()}updateI18nAttributes(o){var s,a;let l=this,d=(u,p,f)=>f?.context&&f.key&&o(u,p,f)?{...f,message:this.i18n({context:f.context,key:f.key,custom:f.custom,...u})}:f;(s=this[mn])===null||s===void 0||s.forEach((u,p)=>l[p]=d(u,p,l[p])),(a=this[Au])===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=>d(u,p,y))})}updateI18nProperties(o){var s;(s=this[gn])===null||s===void 0||s.forEach((a,l)=>{o(a,l)&&(this[l]=this.i18n(a))})}addI18nMessages(o,s,a){console.warn('Deprecated usage of method "addI18nMessages", use "addI18nContext" instead.'),this.addI18nContext(o,s,a)}addI18nContext(o,s,a){let l=(typeof o=="string"?o:o.name).toLowerCase();a=typeof o=="string"?a:o.custom,this[Qo].set(l,{isCustomContext:a}),this[hn].has(l)||this[hn].set(l,this.getI18nService(a).subscribe(l,()=>this.onI18nUpdate(l))),this.getI18nService(a).prepareContext(l,s)}hasI18nContext(o){return this[Qo].has(o.toLowerCase())}connectedCallback(){super.connectedCallback(),this[Qo].forEach((o,s)=>this.addI18nContext(s,void 0,o.isCustomContext))}disconnectedCallback(){super.disconnectedCallback(),this[hn].forEach(o=>o()),this[hn].clear()}}return e=Qo,i=hn,km([(0,Eu.property)({type:Boolean})],r.prototype,"useCustomMessageContexts",void 0),r}),es=class extends yt(Rr.FtLitElement){},ts=class extends yt(Rr.FtLitElementRedux){};var is=(t,e)=>(i,r)=>{var n,o;i.constructor.createProperty(r,e??{attribute:!1,type:String});let s={...t,key:(n=t.key)!==null&&n!==void 0?n:r};i[gn]=(o=i[gn])!==null&&o!==void 0?o:new Map,i[gn].set(r,s)};var _u=c(S());var Cu=_u.css`
312
+ `;var rs=c(S()),kr=c($()),ns=c(h());var Or=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},vt=class extends ts{constructor(){super(),this.editorMode=!1,this.editorMessage="Select a context and a label key.",this.addStore(v)}render(){return!this.key||!this.context?this.editorMode?this.editorMessage:rs.nothing:rs.html`
313
313
  <span class="ft-i18n">
314
314
  ${this.i18n({context:this.context,key:this.key,args:Array.isArray(this.args)?this.args:[]})}
315
315
  </span>
316
- `}update(e){var i;super.update(e),["context","key","defaultMessage"].some(r=>e.has(r))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(i=this.defaultMessage)!==null&&i!==void 0?i:""})}};vt.elementDefinitions={};vt.styles=_u;Or([(0,is.redux)()],vt.prototype,"editorMode",void 0);Or([(0,kr.property)()],vt.prototype,"context",void 0);Or([(0,kr.property)()],vt.prototype,"key",void 0);Or([(0,is.jsonProperty)([])],vt.prototype,"args",void 0);Or([(0,kr.property)()],vt.prototype,"defaultMessage",void 0);Or([(0,kr.state)()],vt.prototype,"editorMessage",void 0);var Tu=c(h());var Cu={"ft-i18n":vt};(0,Tu.customElements)(Cu);var xe=c(h()),Ru={itemsGap:xe.FtCssVariableFactory.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:xe.FtCssVariableFactory.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:xe.FtCssVariableFactory.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:xe.FtCssVariableFactory.extend("--ft-reader-attachments-item-border-color","",xe.designSystemVariables.colorOutline),itemBorderRadius:xe.FtCssVariableFactory.extend("--ft-reader-attachments-item-border-radius","",xe.designSystemVariables.borderRadiusS),itemBackgroundColor:xe.FtCssVariableFactory.extend("--ft-reader-attachments-item-background-color","",xe.designSystemVariables.colorSurface),itemTextColor:xe.FtCssVariableFactory.extend("--ft-reader-attachments-item-text-color","",xe.designSystemVariables.colorOnSurfaceMedium),itemHoverBackgroundColor:xe.FtCssVariableFactory.extend("--ft-reader-attachments-item-hover-background-color","",xe.designSystemVariables.colorPrimary),itemHoverTextColor:xe.FtCssVariableFactory.extend("--ft-reader-attachments-item-hover-text-color","",xe.designSystemVariables.colorOnSurfaceHigh),fileFormatIconSize:xe.FtCssVariableFactory.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:xe.FtCssVariableFactory.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")};var as=c(h());var ns=c(h()),Du=c(F());var rs;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found",t.requestedTopicFiltered="requested-topic-filtered"})(rs||(rs={}));var Ou;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Ou||(Ou={}));var Dm=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ja=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},za=Symbol("registerInterval"),Wa=(0,ns.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[za]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[za]):this.dispatchEvent(new ja)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=za,Dm([(0,Du.state)()],i.prototype,"stateManager",void 0),i}),ku=class extends Wa(ns.FtLitElementRedux){};var Ka=gt.build("designedReaderAttachments"),Lu={download:"Download \u201C{0}\u201D"};var qi=c(S()),Dr=c(F()),Lr=c(h()),Wu=c(br());var Ku=c(lt());var Bu=c(S()),Oe=c(F()),Hu=c(lt()),yn=c(h());var Uu=c(S()),ye=c(h()),Pu=ye.FtCssVariableFactory.extend("--ft-ripple-color","",ye.designSystemVariables.colorContent),G={color:Pu,backgroundColor:ye.FtCssVariableFactory.extend("--ft-ripple-background-color","",Pu),opacityContentOnSurfacePressed:ye.FtCssVariableFactory.external(ye.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:ye.FtCssVariableFactory.external(ye.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:ye.FtCssVariableFactory.external(ye.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:ye.FtCssVariableFactory.external(ye.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:ye.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Mu=ye.FtCssVariableFactory.extend("--ft-ripple-color","",ye.designSystemVariables.colorPrimary),Nu={color:Mu,backgroundColor:ye.FtCssVariableFactory.extend("--ft-ripple-background-color","",Mu)},$u=ye.FtCssVariableFactory.extend("--ft-ripple-color","",ye.designSystemVariables.colorSecondary),Fu={color:$u,backgroundColor:ye.FtCssVariableFactory.extend("--ft-ripple-background-color","",$u)},Vu=Uu.css`
316
+ `}update(e){var i;super.update(e),["context","key","defaultMessage"].some(r=>e.has(r))&&this.context&&this.key&&this.addI18nContext(this.context,{[this.key]:(i=this.defaultMessage)!==null&&i!==void 0?i:""})}};vt.elementDefinitions={};vt.styles=Cu;Or([(0,ns.redux)()],vt.prototype,"editorMode",void 0);Or([(0,kr.property)()],vt.prototype,"context",void 0);Or([(0,kr.property)()],vt.prototype,"key",void 0);Or([(0,ns.jsonProperty)([])],vt.prototype,"args",void 0);Or([(0,kr.property)()],vt.prototype,"defaultMessage",void 0);Or([(0,kr.state)()],vt.prototype,"editorMessage",void 0);var Ru=c(h());var Tu={"ft-i18n":vt};(0,Ru.customElements)(Tu);var ve=c(h()),Ou={itemsGap:ve.FtCssVariableFactory.create("--ft-reader-attachments-items-gap","","SIZE","8px"),itemPadding:ve.FtCssVariableFactory.create("--ft-reader-attachments-item-padding","","SIZE","8px"),itemBorderWidth:ve.FtCssVariableFactory.create("--ft-reader-attachments-item-border-width","","SIZE","1px"),itemBorderColor:ve.FtCssVariableFactory.extend("--ft-reader-attachments-item-border-color","",ve.designSystemVariables.colorOutline),itemBorderRadius:ve.FtCssVariableFactory.extend("--ft-reader-attachments-item-border-radius","",ve.designSystemVariables.borderRadiusS),itemBackgroundColor:ve.FtCssVariableFactory.extend("--ft-reader-attachments-item-background-color","",ve.designSystemVariables.colorSurface),itemTextColor:ve.FtCssVariableFactory.extend("--ft-reader-attachments-item-text-color","",ve.designSystemVariables.colorOnSurfaceMedium),itemHoverBackgroundColor:ve.FtCssVariableFactory.extend("--ft-reader-attachments-item-hover-background-color","",ve.designSystemVariables.colorPrimary),itemHoverTextColor:ve.FtCssVariableFactory.extend("--ft-reader-attachments-item-hover-text-color","",ve.designSystemVariables.colorOnSurfaceHigh),fileFormatIconSize:ve.FtCssVariableFactory.create("--ft-reader-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:ve.FtCssVariableFactory.create("--ft-reader-attachments-down-icon-size","","SIZE","20px")};var cs=c(h());var ss=c(h()),Lu=c($());var os;(function(t){t.clusteringHelperCreated="clustering-helper-created",t.mapAttachmentsUpdate="map-attachments-update",t.visibleTopicChange="visible-topic-change",t.requestedTopicNotFound="requested-topic-not-found",t.requestedTopicFiltered="requested-topic-filtered"})(os||(os={}));var ku;(function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"})(ku||(ku={}));var Dm=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Ka=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Wa=Symbol("registerInterval"),Ga=(0,ss.applyMixinOnce)(Symbol("toFtReaderComponent"),function(t){var e;class i extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(n){this.clearStateManager(),this.stateManager=n,this.addStore(n.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var n;return(n=this.stateManager)===null||n===void 0?void 0:n.service}connectedCallback(){super.connectedCallback(),this[Wa]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Wa]):this.dispatchEvent(new Ka)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Wa,Dm([(0,Lu.state)()],i.prototype,"stateManager",void 0),i}),Du=class extends Ga(ss.FtLitElementRedux){};var qa=gt.build("designedReaderAttachments"),Iu={download:"Download \u201C{0}\u201D"};var Gi=c(S()),Dr=c($()),Lr=c(h()),Ku=c(br());var Gu=c(lt());var Hu=c(S()),Oe=c($()),zu=c(lt()),yn=c(h());var Vu=c(S()),me=c(h()),Mu=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorContent),K={color:Mu,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",Mu),opacityContentOnSurfacePressed:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:me.FtCssVariableFactory.external(me.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:me.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Nu=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorPrimary),$u={color:Nu,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",Nu)},Fu=me.FtCssVariableFactory.extend("--ft-ripple-color","",me.designSystemVariables.colorSecondary),Uu={color:Fu,backgroundColor:me.FtCssVariableFactory.extend("--ft-ripple-background-color","",Fu)},Bu=Vu.css`
317
317
  :host {
318
318
  display: contents;
319
319
  }
@@ -326,7 +326,7 @@
326
326
 
327
327
  .ft-ripple:not(.ft-ripple--unbounded) {
328
328
  overflow: hidden;
329
- border-radius: ${G.borderRadius};
329
+ border-radius: ${K.borderRadius};
330
330
  }
331
331
 
332
332
  .ft-ripple .ft-ripple--background,
@@ -360,27 +360,27 @@
360
360
  }
361
361
 
362
362
  .ft-ripple .ft-ripple--background {
363
- background-color: ${G.backgroundColor};
363
+ background-color: ${K.backgroundColor};
364
364
  }
365
365
 
366
366
  .ft-ripple .ft-ripple--effect {
367
- background-color: ${G.color};
367
+ background-color: ${K.color};
368
368
  }
369
369
 
370
370
  .ft-ripple.ft-ripple--secondary .ft-ripple--background {
371
- background-color: ${Fu.backgroundColor};
371
+ background-color: ${Uu.backgroundColor};
372
372
  }
373
373
 
374
374
  .ft-ripple.ft-ripple--secondary .ft-ripple--effect {
375
- background-color: ${Fu.color};
375
+ background-color: ${Uu.color};
376
376
  }
377
377
 
378
378
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
379
- background-color: ${Nu.backgroundColor};
379
+ background-color: ${$u.backgroundColor};
380
380
  }
381
381
 
382
382
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
383
- background-color: ${Nu.color};
383
+ background-color: ${$u.color};
384
384
  }
385
385
 
386
386
  .ft-ripple .ft-ripple--background {
@@ -410,35 +410,35 @@
410
410
  }
411
411
 
412
412
  .ft-ripple.ft-ripple--hovered .ft-ripple--background {
413
- opacity: ${G.opacityContentOnSurfaceHover};
413
+ opacity: ${K.opacityContentOnSurfaceHover};
414
414
  }
415
415
 
416
416
  .ft-ripple.ft-ripple--selected .ft-ripple--background {
417
- opacity: ${G.opacityContentOnSurfaceSelected};
417
+ opacity: ${K.opacityContentOnSurfaceSelected};
418
418
  }
419
419
 
420
420
  .ft-ripple.ft-ripple--focused .ft-ripple--background {
421
- opacity: ${G.opacityContentOnSurfaceFocused};
421
+ opacity: ${K.opacityContentOnSurfaceFocused};
422
422
  }
423
423
 
424
424
  .ft-ripple.ft-ripple--pressed .ft-ripple--effect {
425
- opacity: ${G.opacityContentOnSurfacePressed};
425
+ opacity: ${K.opacityContentOnSurfacePressed};
426
426
  transform: translate(-50%, -50%) scale(1);
427
427
  }
428
- `;var Ze=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},P=class extends yn.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 yn.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 yn.Debouncer(10),this.moveRipple=e=>{var i,r;let{x:n,y:o}=this.getCoordinates(e),s=(r=(i=this.ripple)===null||i===void 0?void 0:i.getBoundingClientRect())!==null&&r!==void 0?r:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=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 Bu.html`
428
+ `;var Ze=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},P=class extends yn.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 yn.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 yn.Debouncer(10),this.moveRipple=e=>{var i,r;let{x:n,y:o}=this.getCoordinates(e),s=(r=(i=this.ripple)===null||i===void 0?void 0:i.getBoundingClientRect())!==null&&r!==void 0?r:{x:0,y:0,width:0,height:0};this.originX=Math.round(n!=null?n-s.x:s.width/2),this.originY=Math.round(o!=null?o-s.y:s.height/2)},this.startPress=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 Hu.html`
429
429
  <style>
430
430
  .ft-ripple .ft-ripple--effect {
431
431
  left: ${this.originX}px;
432
432
  top: ${this.originY}px;
433
433
  }
434
434
  </style>
435
- <div class="${(0,Hu.classMap)(e)}">
435
+ <div class="${(0,zu.classMap)(e)}">
436
436
  <div class="ft-ripple--background"></div>
437
437
  <div class="ft-ripple--effect"></div>
438
438
  </div>
439
- `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var i,r;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(i=this.target)===null||i===void 0||i.removeAttribute("data-is-ft-ripple-target")):(r=this.target)===null||r===void 0||r.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,i;let r=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;r&&this.setupFor((i=this.target)!==null&&i!==void 0?i:r)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let i=(...a)=>l=>{a.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(l)},r=i("mouseup","contextmenu"),n=i("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&i("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",r,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",r,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let i=e,r=e,n,o;return i.x!=null?{x:n,y:o}=i:r.touches!=null&&(n=r.touches[0].clientX,o=r.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let i of e.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};P.elementDefinitions={};P.styles=Vu;Ze([(0,Oe.property)({type:Boolean})],P.prototype,"primary",void 0);Ze([(0,Oe.property)({type:Boolean})],P.prototype,"secondary",void 0);Ze([(0,Oe.property)({type:Boolean})],P.prototype,"unbounded",void 0);Ze([(0,Oe.property)({type:Boolean})],P.prototype,"activated",void 0);Ze([(0,Oe.property)({type:Boolean})],P.prototype,"selected",void 0);Ze([(0,Oe.property)({type:Boolean})],P.prototype,"disabled",void 0);Ze([(0,Oe.state)()],P.prototype,"hovered",void 0);Ze([(0,Oe.state)()],P.prototype,"focused",void 0);Ze([(0,Oe.state)()],P.prototype,"pressed",void 0);Ze([(0,Oe.state)()],P.prototype,"rippling",void 0);Ze([(0,Oe.state)()],P.prototype,"originX",void 0);Ze([(0,Oe.state)()],P.prototype,"originY",void 0);Ze([(0,Oe.query)(".ft-ripple")],P.prototype,"ripple",void 0);Ze([(0,Oe.query)(".ft-ripple--effect")],P.prototype,"rippleEffect",void 0);var ju=c(h());var zu={"ft-ripple":P};(0,ju.customElements)(zu);var os=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Lm={"attachment-viewed":{label:"Opening attachment",defaultEventName:"attachment-open",defaultComponentId:"ft-reader-attachments"},"attachment-downloaded":{label:"Downloading attachment",defaultEventName:"attachment-download",defaultComponentId:"ft-reader-attachments"}},Tt=class extends(0,Lr.withAnalytics)(Lr.FtLitElementRedux,Lm){constructor(){super(...arguments),this.hideFileFormatIcon=!1,this.hideFilename=!1,this.hideDownloadIcon=!1}render(){if(this.canRender()){let e={"hide-file-format-icon":this.hideFileFormatIcon,"hide-filename":this.hideFilename,"hide-download-icon":this.hideDownloadIcon};return qi.html`
440
- <div part="container" class="${(0,Ku.classMap)(e)}">
441
- ${(0,Wu.repeat)(this.attachments,i=>i.id,i=>{var r;let n=Uo(i.mimeType,(0,Lr.last)(i.file.split(".")));return qi.html`
439
+ `}contentAvailableCallback(e){super.contentAvailableCallback(e),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(e){var i,r;super.update(e),e.has("disabled")&&(this.disabled?(this.endRipple(),(i=this.target)===null||i===void 0||i.removeAttribute("data-is-ft-ripple-target")):(r=this.target)===null||r===void 0||r.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var e,i;let r=(e=this.shadowRoot)===null||e===void 0?void 0:e.host.parentElement;r&&this.setupFor((i=this.target)!==null&&i!==void 0?i:r)}forceFocusUpdate(){var e;!((e=this.target)===null||e===void 0)&&e.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(e){if(this.setupDebouncer.cancel(),this.target===e)return;this.onDisconnect&&this.onDisconnect(),this.target=e,e.setAttribute("data-is-ft-ripple-target","true");let i=(...a)=>l=>{a.forEach(d=>window.addEventListener(d,this.endPress,{once:!0})),this.startPress(l)},r=i("mouseup","contextmenu"),n=i("touchend","touchcancel"),o=a=>{["Enter"," "].includes(a.key)&&i("keyup")(a)},s={passive:!0};e.addEventListener("mouseover",this.startHover,s),e.addEventListener("mousemove",this.moveRipple,s),e.addEventListener("mouseleave",this.endHover,s),e.addEventListener("mousedown",r,s),e.addEventListener("touchstart",n,s),e.addEventListener("touchmove",this.moveRipple,s),e.addEventListener("keydown",o,s),e.addEventListener("focus",this.startFocus,s),e.addEventListener("blur",this.endFocus,s),e.addEventListener("focusin",this.startFocus,s),e.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{e.removeAttribute("data-is-ft-ripple-target"),e.removeEventListener("mouseover",this.startHover,s),e.removeEventListener("mousemove",this.moveRipple,s),e.removeEventListener("mouseleave",this.endHover,s),e.removeEventListener("mousedown",r,s),e.removeEventListener("touchstart",n,s),e.removeEventListener("touchmove",this.moveRipple,s),e.removeEventListener("keydown",o,s),e.removeEventListener("focus",this.startFocus,s),e.removeEventListener("blur",this.endFocus,s),e.removeEventListener("focusin",this.startFocus,s),e.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(e){let i=e,r=e,n,o;return i.x!=null?{x:n,y:o}=i:r.touches!=null&&(n=r.touches[0].clientX,o=r.touches[0].clientY),{x:n,y:o}}isFocusVisible(e){return e instanceof HTMLElement?e.matches(":focus-visible"):!0}isIgnored(e){if(this.disabled)return!0;if(e!=null)for(let i of e.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};P.elementDefinitions={};P.styles=Bu;Ze([(0,Oe.property)({type:Boolean})],P.prototype,"primary",void 0);Ze([(0,Oe.property)({type:Boolean})],P.prototype,"secondary",void 0);Ze([(0,Oe.property)({type:Boolean})],P.prototype,"unbounded",void 0);Ze([(0,Oe.property)({type:Boolean})],P.prototype,"activated",void 0);Ze([(0,Oe.property)({type:Boolean})],P.prototype,"selected",void 0);Ze([(0,Oe.property)({type:Boolean})],P.prototype,"disabled",void 0);Ze([(0,Oe.state)()],P.prototype,"hovered",void 0);Ze([(0,Oe.state)()],P.prototype,"focused",void 0);Ze([(0,Oe.state)()],P.prototype,"pressed",void 0);Ze([(0,Oe.state)()],P.prototype,"rippling",void 0);Ze([(0,Oe.state)()],P.prototype,"originX",void 0);Ze([(0,Oe.state)()],P.prototype,"originY",void 0);Ze([(0,Oe.query)(".ft-ripple")],P.prototype,"ripple",void 0);Ze([(0,Oe.query)(".ft-ripple--effect")],P.prototype,"rippleEffect",void 0);var Wu=c(h());var ju={"ft-ripple":P};(0,Wu.customElements)(ju);var as=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Lm={"attachment-viewed":{label:"Opening attachment",defaultEventName:"attachment-open",defaultComponentId:"ft-reader-attachments"},"attachment-downloaded":{label:"Downloading attachment",defaultEventName:"attachment-download",defaultComponentId:"ft-reader-attachments"}},Tt=class extends(0,Lr.withAnalytics)(Lr.FtLitElementRedux,Lm){constructor(){super(...arguments),this.hideFileFormatIcon=!1,this.hideFilename=!1,this.hideDownloadIcon=!1}render(){if(this.canRender()){let e={"hide-file-format-icon":this.hideFileFormatIcon,"hide-filename":this.hideFilename,"hide-download-icon":this.hideDownloadIcon};return Gi.html`
440
+ <div part="container" class="${(0,Gu.classMap)(e)}">
441
+ ${(0,Ku.repeat)(this.attachments,i=>i.id,i=>{var r;let n=Bo(i.mimeType,(0,Lr.last)(i.file.split(".")));return Gi.html`
442
442
  <div part="attachment">
443
443
  <a part="viewer-link" href="${this.getAttachmentViewerLink(i)}"
444
444
  aria-label="${this.getAttachmentAriaLabel(i)}"
@@ -447,10 +447,10 @@
447
447
  <ft-icon part="file-format-icon"
448
448
  variant="file-format"
449
449
  value="${n}"
450
- style="color: ${(r=Ua[n])!==null&&r!==void 0?r:Ua[g.UNKNOWN]}"></ft-icon>
450
+ style="color: ${(r=Ba[n])!==null&&r!==void 0?r:Ba[g.UNKNOWN]}"></ft-icon>
451
451
  <ft-typography part="name" variant="${V.body2}">${i.name}</ft-typography>
452
452
  </a>
453
- ${i.externalLink?qi.nothing:qi.html`
453
+ ${i.externalLink?Gi.nothing:Gi.html`
454
454
  <a part="download-link"
455
455
  target="_blank"
456
456
  href="${this.getAttachmentDownloadLink(i)}"
@@ -463,7 +463,7 @@
463
463
  </div>
464
464
  `})}
465
465
  </div>
466
- `}return qi.nothing}getAttachmentAriaLabel(e){var i;let r=e.name,n=e.file;if(r===n)return n;let o=(i=n.includes(".")?n.split(".").pop():e.mimeType)!==null&&i!==void 0?i:"";return r+" "+o}canRender(){var e,i;return((i=(e=this.attachments)===null||e===void 0?void 0:e.length)!==null&&i!==void 0?i:0)>0}getAttachmentDownloadLink(e){throw new Error("Not implemented")}getAttachmentDownloadLinkAriaLabel(e){throw new Error("Not implemented")}getAttachmentViewerLink(e){throw new Error("Not implemented")}};Tt.elementDefinitions={"ft-icon":z,"ft-ripple":P,"ft-typography":U};os([(0,Dr.property)({type:Boolean})],Tt.prototype,"hideFileFormatIcon",void 0);os([(0,Dr.property)({type:Boolean})],Tt.prototype,"hideFilename",void 0);os([(0,Dr.property)({type:Boolean})],Tt.prototype,"hideDownloadIcon",void 0);os([(0,Dr.state)()],Tt.prototype,"attachments",void 0);var Gu=c(S()),vn=c(h());function ss(t){return Gu.css`
466
+ `}return Gi.nothing}getAttachmentAriaLabel(e){var i;let r=e.name,n=e.file;if(r===n)return n;let o=(i=n.includes(".")?n.split(".").pop():e.mimeType)!==null&&i!==void 0?i:"";return r+" "+o}canRender(){var e,i;return((i=(e=this.attachments)===null||e===void 0?void 0:e.length)!==null&&i!==void 0?i:0)>0}getAttachmentDownloadLink(e){throw new Error("Not implemented")}getAttachmentDownloadLinkAriaLabel(e){throw new Error("Not implemented")}getAttachmentViewerLink(e){throw new Error("Not implemented")}};Tt.elementDefinitions={"ft-icon":z,"ft-ripple":P,"ft-typography":F};as([(0,Dr.property)({type:Boolean})],Tt.prototype,"hideFileFormatIcon",void 0);as([(0,Dr.property)({type:Boolean})],Tt.prototype,"hideFilename",void 0);as([(0,Dr.property)({type:Boolean})],Tt.prototype,"hideDownloadIcon",void 0);as([(0,Dr.state)()],Tt.prototype,"attachments",void 0);var qu=c(S()),vn=c(h());function ls(t){return qu.css`
467
467
  [part="container"] {
468
468
  display: flex;
469
469
  flex-direction: column;
@@ -507,16 +507,16 @@
507
507
  }
508
508
 
509
509
  [part~="ripple"] {
510
- ${(0,vn.setVariable)(G.color,t.itemHoverBackgroundColor)};
511
- ${(0,vn.setVariable)(G.borderRadius,t.itemBorderRadius)};
510
+ ${(0,vn.setVariable)(K.color,t.itemHoverBackgroundColor)};
511
+ ${(0,vn.setVariable)(K.borderRadius,t.itemBorderRadius)};
512
512
  }
513
513
 
514
514
  [part="file-format-icon"] {
515
- ${(0,vn.setVariable)(ge.size,t.fileFormatIconSize)};
515
+ ${(0,vn.setVariable)(he.size,t.fileFormatIconSize)};
516
516
  }
517
517
 
518
518
  [part="download-icon"] {
519
- ${(0,vn.setVariable)(ge.size,t.downloadIconSize)};
519
+ ${(0,vn.setVariable)(he.size,t.downloadIconSize)};
520
520
  }
521
521
 
522
522
  .hide-file-format-icon [part="file-format-icon"] {
@@ -530,7 +530,7 @@
530
530
  .hide-download-icon [part="download-link"] {
531
531
  display: none;
532
532
  }
533
- `}var qu=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Yi=class extends Wa(yt(Tt)){constructor(){super(),this.addI18nContext(Ka,Lu)}update(e){super.update(e),e.has("map")&&this.updateAttachments()}updateAttachments(){var e;this.map?(e=this.service)===null||e===void 0||e.getAttachments().then(i=>this.attachments=i):this.attachments=void 0}getAttachmentDownloadLink(e){var i,r;return(r=(i=this.service)===null||i===void 0?void 0:i.getAttachmentDownloadLink(e.id))!==null&&r!==void 0?r:""}getAttachmentDownloadLinkAriaLabel(e){return Ka.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var i,r;return e.externalLink?e.viewerUrl:(i=this.service)===null||i===void 0?void 0:i.makeAbsolute((r=e.viewerUrl)!==null&&r!==void 0?r:"")}};Yi.styles=ss(Ru);qu([(0,as.redux)({store:"reader"})],Yi.prototype,"map",void 0);qu([(0,as.reduxEventListener)({eventName:rs.mapAttachmentsUpdate})],Yi.prototype,"updateAttachments",null);var Zu=c(h());var Yu={"ft-reader-attachments":Yi};(0,Zu.customElements)(Yu);var be=c(h()),Xu={itemsGap:be.FtCssVariableFactory.create("--ft-ud-viewer-attachments-items-gap","","SIZE","8px"),itemPadding:be.FtCssVariableFactory.create("--ft-ud-viewer-attachments-item-padding","","SIZE","8px"),itemBorderWidth:be.FtCssVariableFactory.create("--ft-ud-viewer-attachments-item-border-width","","SIZE","1px"),itemBorderColor:be.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-border-color","",be.designSystemVariables.colorOutline),itemBorderRadius:be.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-border-radius","",be.designSystemVariables.borderRadiusS),itemBackgroundColor:be.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-background-color","",be.designSystemVariables.colorSurface),itemTextColor:be.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-text-color","",be.designSystemVariables.colorOnSurfaceMedium),itemHoverBackgroundColor:be.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-hover-background-color","",be.designSystemVariables.colorPrimary),itemHoverTextColor:be.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-hover-text-color","",be.designSystemVariables.colorOnSurfaceHigh),fileFormatIconSize:be.FtCssVariableFactory.create("--ft-ud-viewer-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:be.FtCssVariableFactory.create("--ft-ud-viewer-attachments-down-icon-size","","SIZE","20px")};var Ir=gt.build("designedUdViewer"),Ju={download:"Download {0}",itemWithNoValueForSwitchToRelatives:"No value"};var Qu=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Zi=class extends Ye(yt(Tt)){constructor(){super(),this.addI18nContext(Ir,Ju)}update(e){super.update(e),e.has("document")&&this.updateAttachments()}updateAttachments(){var e;this.document?(e=this.service)===null||e===void 0||e.getAttachments(this.document.id).then(i=>this.attachments=i):this.attachments=void 0}canRender(){return!!this.document&&super.canRender()}getAttachmentDownloadLink(e){var i,r;return(r=(i=this.service)===null||i===void 0?void 0:i.getAttachmentDownloadLink(this.document.id,e.id))!==null&&r!==void 0?r:""}getAttachmentDownloadLinkAriaLabel(e){return Ir.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var i,r;return e.externalLink?e.viewerUrl:(i=this.service)===null||i===void 0?void 0:i.makeAbsolute((r=e.viewerUrl)!==null&&r!==void 0?r:"")}};Zi.styles=ss(Xu);Qu([(0,ls.redux)({store:"viewer"})],Zi.prototype,"document",void 0);Qu([(0,ls.reduxEventListener)({eventName:oi.udAttachmentsUpdate})],Zi.prototype,"updateAttachments",null);var Df=c(S()),Pt=c(F()),Qe=c(h());var cs=class extends CustomEvent{constructor(e){super("ft-ud-viewer-feedback",{composed:!0,bubbles:!0,detail:e})}},ds=class extends CustomEvent{constructor(){super("ft-viewer-mailer-ud-feedback",{composed:!0,bubbles:!0})}};var Ht=c(h());var Dp=c(S()),bt=c(F()),xt=c(h());var ep=c(S()),xi=c(h()),xn={distance:xi.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:xi.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:xi.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:xi.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",xi.designSystemVariables.borderRadiusS),maxWidth:xi.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},tp=ep.css`
533
+ `}var Yu=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},qi=class extends Ga(yt(Tt)){constructor(){super(),this.addI18nContext(qa,Iu)}update(e){super.update(e),e.has("map")&&this.updateAttachments()}updateAttachments(){var e;this.map?(e=this.service)===null||e===void 0||e.getAttachments().then(i=>this.attachments=i):this.attachments=void 0}getAttachmentDownloadLink(e){var i,r;return(r=(i=this.service)===null||i===void 0?void 0:i.getAttachmentDownloadLink(e.id))!==null&&r!==void 0?r:""}getAttachmentDownloadLinkAriaLabel(e){return qa.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var i,r;return e.externalLink?e.viewerUrl:(i=this.service)===null||i===void 0?void 0:i.makeAbsolute((r=e.viewerUrl)!==null&&r!==void 0?r:"")}};qi.styles=ls(Ou);Yu([(0,cs.redux)({store:"reader"})],qi.prototype,"map",void 0);Yu([(0,cs.reduxEventListener)({eventName:os.mapAttachmentsUpdate})],qi.prototype,"updateAttachments",null);var Xu=c(h());var Zu={"ft-reader-attachments":qi};(0,Xu.customElements)(Zu);var xe=c(h()),Ju={itemsGap:xe.FtCssVariableFactory.create("--ft-ud-viewer-attachments-items-gap","","SIZE","8px"),itemPadding:xe.FtCssVariableFactory.create("--ft-ud-viewer-attachments-item-padding","","SIZE","8px"),itemBorderWidth:xe.FtCssVariableFactory.create("--ft-ud-viewer-attachments-item-border-width","","SIZE","1px"),itemBorderColor:xe.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-border-color","",xe.designSystemVariables.colorOutline),itemBorderRadius:xe.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-border-radius","",xe.designSystemVariables.borderRadiusS),itemBackgroundColor:xe.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-background-color","",xe.designSystemVariables.colorSurface),itemTextColor:xe.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-text-color","",xe.designSystemVariables.colorOnSurfaceMedium),itemHoverBackgroundColor:xe.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-hover-background-color","",xe.designSystemVariables.colorPrimary),itemHoverTextColor:xe.FtCssVariableFactory.extend("--ft-ud-viewer-attachments-item-hover-text-color","",xe.designSystemVariables.colorOnSurfaceHigh),fileFormatIconSize:xe.FtCssVariableFactory.create("--ft-ud-viewer-attachments-file-format-icon-size","","SIZE","30px"),downloadIconSize:xe.FtCssVariableFactory.create("--ft-ud-viewer-attachments-down-icon-size","","SIZE","20px")};var Ir=gt.build("designedUdViewer"),Qu={download:"Download {0}",itemWithNoValueForSwitchToRelatives:"No value"};var ep=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Yi=class extends Ye(yt(Tt)){constructor(){super(),this.addI18nContext(Ir,Qu)}update(e){super.update(e),e.has("document")&&this.updateAttachments()}updateAttachments(){var e;this.document?(e=this.service)===null||e===void 0||e.getAttachments(this.document.id).then(i=>this.attachments=i):this.attachments=void 0}canRender(){return!!this.document&&super.canRender()}getAttachmentDownloadLink(e){var i,r;return(r=(i=this.service)===null||i===void 0?void 0:i.getAttachmentDownloadLink(this.document.id,e.id))!==null&&r!==void 0?r:""}getAttachmentDownloadLinkAriaLabel(e){return Ir.messages.download(this.getAttachmentAriaLabel(e))}getAttachmentViewerLink(e){var i,r;return e.externalLink?e.viewerUrl:(i=this.service)===null||i===void 0?void 0:i.makeAbsolute((r=e.viewerUrl)!==null&&r!==void 0?r:"")}};Yi.styles=ls(Ju);ep([(0,ds.redux)({store:"viewer"})],Yi.prototype,"document",void 0);ep([(0,ds.reduxEventListener)({eventName:oi.udAttachmentsUpdate})],Yi.prototype,"updateAttachments",null);var Df=c(S()),Mt=c($()),Qe=c(h());var us=class extends CustomEvent{constructor(e){super("ft-ud-viewer-feedback",{composed:!0,bubbles:!0,detail:e})}},ps=class extends CustomEvent{constructor(){super("ft-viewer-mailer-ud-feedback",{composed:!0,bubbles:!0})}};var zt=c(h());var Lp=c(S()),bt=c($()),xt=c(h());var tp=c(S()),xi=c(h()),xn={distance:xi.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),color:xi.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),backgroundColor:xi.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),borderRadiusS:xi.FtCssVariableFactory.extend("--ft-tooltip-border-radius","",xi.designSystemVariables.borderRadiusS),maxWidth:xi.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px")},ip=tp.css`
534
534
  .ft-tooltip--container {
535
535
  display: block;
536
536
  }
@@ -561,7 +561,7 @@
561
561
  position: relative;
562
562
  word-break: break-word;
563
563
  }
564
- `;var rp=["top","right","bottom","left"],ip=["start","end"],qa=rp.reduce((t,e)=>t.concat(e,e+"-"+ip[0],e+"-"+ip[1]),[]),bn=Math.min,bi=Math.max,Sn=Math.round;var Vt=t=>({x:t,y:t}),Im={left:"right",right:"left",bottom:"top",top:"bottom"};function np(t,e,i){return bi(t,bn(e,i))}function us(t,e){return typeof t=="function"?t(e):t}function wn(t){return t.split("-")[0]}function Si(t){return t.split("-")[1]}function Ya(t){return t==="x"?"y":"x"}function Za(t){return t==="y"?"height":"width"}function ps(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Xa(t){return Ya(ps(t))}function op(t,e,i){i===void 0&&(i=!1);let r=Si(t),n=Xa(t),o=Za(n),s=n==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=Ga(s)),[s,Ga(s)]}function sp(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ga(t){let e=wn(t);return Im[e]+t.slice(e.length)}function Pm(t){var e,i,r,n;return{top:(e=t.top)!=null?e:0,right:(i=t.right)!=null?i:0,bottom:(r=t.bottom)!=null?r:0,left:(n=t.left)!=null?n:0}}function ap(t){return typeof t!="number"?Pm(t):{top:t,right:t,bottom:t,left:t}}function Xi(t){let{x:e,y:i,width:r,height:n}=t;return{width:r,height:n,top:i,left:e,right:e+r,bottom:i+n,x:e,y:i}}function lp(t,e,i){let{reference:r,floating:n}=t,o=ps(e),s=Xa(e),a=Za(s),l=wn(e),d=o==="y",u=r.x+r.width/2-n.width/2,p=r.y+r.height/2-n.height/2,f=r[a]/2-n[a]/2,y;switch(l){case"top":y={x:u,y:r.y-n.height};break;case"bottom":y={x:u,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-n.width,y:p};break;default:y={x:r.x,y:r.y}}let w=Si(e);return w&&(y[s]+=f*(w==="end"?1:-1)*(i&&d?-1:1)),y}async function cp(t,e){var i;e===void 0&&(e={});let{x:r,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=us(e,t),w=ap(y),b=a[f?p==="floating"?"reference":"floating":p],T=Xi(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(b)))==null||i?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:d,rootBoundary:u,strategy:l})),B=p==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),k=await(o.isElement==null?void 0:o.isElement(E))&&await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1},N=Xi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:B,offsetParent:E,strategy:l}):B);return{top:(T.top-N.top+w.top)/k.y,bottom:(N.bottom-T.bottom+w.bottom)/k.y,left:(T.left-N.left+w.left)/k.x,right:(N.right-T.right+w.right)/k.x}}var Mm=50,dp=async(t,e,i)=>{let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:s}=i,a=s.detectOverflow?s:{...s,detectOverflow:cp},l=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:p}=lp(d,r,l),f=r,y=0,w={};for(let C=0;C<o.length;C++){let b=o[C];if(!b)continue;let{name:T,fn:B}=b,{x:E,y:k,data:N,reset:ae}=await B({x:u,y:p,initialPlacement:r,placement:f,strategy:n,middlewareData:w,rects:d,platform:a,elements:{reference:t,floating:e}});u=E??u,p=k??p,w[T]={...w[T],...N},ae&&y<Mm&&(y++,typeof ae=="object"&&(ae.placement&&(f=ae.placement),ae.rects&&(d=ae.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):ae.rects),{x:u,y:p}=lp(d,f,l)),C=-1)}return{x:u,y:p,placement:f,strategy:n,middlewareData:w}};function Nm(t,e,i){return(t?[...i.filter(n=>Si(n)===t),...i.filter(n=>Si(n)!==t)]:i.filter(n=>wn(n)===n)).filter(n=>t?Si(n)===t||(e?sp(n)!==n:!1):!0)}var up=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,r,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:d}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=qa,autoAlignment:y=!0,...w}=us(t,e),C=p!==void 0||f===qa?Nm(p||null,y,f):f,b=((i=s.autoPlacement)==null?void 0:i.index)||0,T=C[b];if(T==null)return{};if(a!==T)return{reset:{placement:C[0]}};let B=await l.detectOverflow(e,w),E=op(T,o,await(l.isRTL==null?void 0:l.isRTL(d.floating))),k=[B[wn(T)],B[E[0]],B[E[1]]],N=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:T,overflows:k}],ae=C[b+1];if(ae)return{data:{index:b+1,overflows:N},reset:{placement:ae}};let q=N.map(pt=>{let Ci=Si(pt.placement);return[pt.placement,Ci&&u?pt.overflows.slice(0,2).reduce((oh,sh)=>oh+sh,0):pt.overflows[0],pt.overflows]}).sort((pt,Ci)=>pt[1]-Ci[1]),Wr=((n=q.filter(pt=>pt[2].slice(0,Si(pt[0])?2:3).every(Ci=>Ci<=0))[0])==null?void 0:n[0])||q[0][0];return Wr!==a?{data:{index:b+1,overflows:N},reset:{placement:Wr}}:{}}}};var pp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:i,y:r,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:B=>{let{x:E,y:k}=B;return{x:E,y:k}}},...d}=us(t,e),u={x:i,y:r},p=await o.detectOverflow(e,d),f=ps(n),y=Ya(f),w=u[y],C=u[f],b=(B,E)=>np(E+p[B==="y"?"top":"left"],E,E-p[B==="y"?"bottom":"right"]);s&&(w=b(y,w)),a&&(C=b(f,C));let T=l.fn({...e,[y]:w,[f]:C});return{...T,data:{x:T.x-i,y:T.y-r,enabled:{[y]:s,[f]:a}}}}}};function hs(){return typeof window<"u"}function Qi(t){return hp(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function si(t){var e;return(e=(hp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function hp(t){return hs()?t instanceof Node||t instanceof Xe(t).Node:!1}function Rt(t){return hs()?t instanceof Element||t instanceof Xe(t).Element:!1}function ai(t){return hs()?t instanceof HTMLElement||t instanceof Xe(t).HTMLElement:!1}function fp(t){return!hs()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function En(t){let{overflow:e,overflowX:i,overflowY:r,display:n}=Ot(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&n!=="inline"&&n!=="contents"}function mp(t){return/^(table|td|th)$/.test(Qi(t))}function An(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var $m=/transform|translate|scale|rotate|perspective|filter/,Fm=/paint|layout|strict|content/,Ji=t=>!!t&&t!=="none",Ja;function Pr(t){let e=Rt(t)?Ot(t):t;return Ji(e.transform)||Ji(e.translate)||Ji(e.scale)||Ji(e.rotate)||Ji(e.perspective)||!ms()&&(Ji(e.backdropFilter)||Ji(e.filter))||$m.test(e.willChange||"")||Fm.test(e.contain||"")}function gp(t){let e=wi(t);for(;ai(e)&&!Mr(e);){if(Pr(e))return e;if(An(e))return null;e=wi(e)}return null}function ms(){return Ja==null&&(Ja=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),Ja}function Mr(t){return/^(html|body|#document)$/.test(Qi(t))}function Ot(t){return Xe(t).getComputedStyle(t)}function _n(t){return Rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function wi(t){if(Qi(t)==="html")return t;let e=t.assignedSlot||t.parentNode||fp(t)&&t.host||si(t);return fp(e)?e.host:e}function yp(t){let e=wi(t);return Mr(e)?(t.ownerDocument||t).body:ai(e)&&En(e)?e:yp(e)}function fs(t,e,i){var r;e===void 0&&(e=[]),i===void 0&&(i=!0);let n=yp(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=Xe(n);if(o){let a=gs(s);return e.concat(s,s.visualViewport||[],En(n)?n:[],a&&i?fs(a):[])}else return e.concat(n,fs(n,[],i))}function gs(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function bp(t){let e=Ot(t),i=parseFloat(e.width)||0,r=parseFloat(e.height)||0,n=ai(t),o=n?t.offsetWidth:i,s=n?t.offsetHeight:r,a=Sn(i)!==o||Sn(r)!==s;return a&&(i=o,r=s),{width:i,height:r,$:a}}function Sp(t){return Rt(t)?t:t.contextElement}function Nr(t){let e=Sp(t);if(!ai(e))return Vt(1);let i=e.getBoundingClientRect(),{width:r,height:n,$:o}=bp(e),s=(o?Sn(i.width):i.width)/r,a=(o?Sn(i.height):i.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Um=Vt(0);function wp(t){let e=Xe(t);return!ms()||!e.visualViewport?Um:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Vm(t,e,i){return e===void 0&&(e=!1),!!i&&e&&i===Xe(t)}function Cn(t,e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);let n=t.getBoundingClientRect(),o=Sp(t),s=Vt(1);e&&(r?Rt(r)&&(s=Nr(r)):s=Nr(t));let a=Vm(o,i,r)?wp(o):Vt(0),l=(n.left+a.x)/s.x,d=(n.top+a.y)/s.y,u=n.width/s.x,p=n.height/s.y;if(o&&r){let f=Xe(o),y=Rt(r)?Xe(r):r,w=f,C=gs(w);for(;C&&y!==w;){let b=Nr(C),T=C.getBoundingClientRect(),B=Ot(C),E=T.left+(C.clientLeft+parseFloat(B.paddingLeft))*b.x,k=T.top+(C.clientTop+parseFloat(B.paddingTop))*b.y;l*=b.x,d*=b.y,u*=b.x,p*=b.y,l+=E,d+=k,w=Xe(C),C=gs(w)}}return Xi({width:u,height:p,x:l,y:d})}function ys(t,e){let i=_n(t).scrollLeft;return e?e.left+i:Cn(si(t)).left+i}function Ep(t,e){let i=t.getBoundingClientRect(),r=i.left+e.scrollLeft-ys(t,i),n=i.top+e.scrollTop;return{x:r,y:n}}function Bm(t){let{elements:e,rect:i,offsetParent:r,strategy:n}=t,o=n==="fixed",s=si(r),a=e?An(e.floating):!1;if(r===s||a&&o)return i;let l={scrollLeft:0,scrollTop:0},d=Vt(1),u=Vt(0),p=ai(r);if((p||!o)&&((Qi(r)!=="body"||En(s))&&(l=_n(r)),p)){let y=Cn(r);d=Nr(r),u.x=y.x+r.clientLeft,u.y=y.y+r.clientTop}let f=s&&!p&&!o?Ep(s,l):Vt(0);return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-l.scrollLeft*d.x+u.x+f.x,y:i.y*d.y-l.scrollTop*d.y+u.y+f.y}}function Hm(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function zm(t){let e=_n(t),i=t.ownerDocument.body,r=bi(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),n=bi(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),o=-e.scrollLeft+ys(t),s=-e.scrollTop;return Ot(i).direction==="rtl"&&(o+=bi(t.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:s}}var jm=25;function Wm(t,e,i){i===void 0&&(i="viewport");let r=i==="layoutViewport",n=Xe(t),o=si(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,d=0,u=0;if(s){let f=!ms()||e==="fixed";r?f||(d=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,f&&(d=s.offsetLeft,u=s.offsetTop))}if(ys(o)<=0){let f=o.ownerDocument,y=f.body,w=getComputedStyle(y),C=f.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,b=Math.abs(o.clientWidth-y.clientWidth-C),T=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;T<=jm&&(a-=T)}return{width:a,height:l,x:d,y:u}}function Km(t,e){let i=Cn(t,!0,e==="fixed"),r=i.top+t.clientTop,n=i.left+t.clientLeft,o=Nr(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,d=r*o.y;return{width:s,height:a,x:l,y:d}}function vp(t,e,i){let r;if(e==="viewport"||e==="layoutViewport")r=Wm(t,i,e);else if(e==="document")r=zm(si(t));else if(Rt(e))r=Km(e,i);else{let n=wp(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Xi(r)}function Gm(t,e){let i=e.get(t);if(i)return i;let r=fs(t,[],!1).filter(a=>Rt(a)&&Qi(a)!=="body"),n=null,o=Ot(t).position==="fixed",s=o?wi(t):t;for(;Rt(s)&&!Mr(s);){let a=Ot(s),l=Pr(s),d=n?n.position:o?"fixed":"";!l&&(d==="fixed"||d==="absolute"&&a.position==="static")?r=r.filter(p=>p!==s):n=a,s=wi(s)}return e.set(t,r),r}function qm(t){let{element:e,boundary:i,rootBoundary:r,strategy:n}=t,s=[...i==="clippingAncestors"?An(e)?[]:Gm(e,this._c):[].concat(i),r],a=vp(e,s[0],n),l=a.top,d=a.right,u=a.bottom,p=a.left;for(let f=1;f<s.length;f++){let y=vp(e,s[f],n);l=bi(y.top,l),d=bn(y.right,d),u=bn(y.bottom,u),p=bi(y.left,p)}return{width:d-p,height:u-l,x:p,y:l}}function Ym(t){let{width:e,height:i}=bp(t);return{width:e,height:i}}function Zm(t,e,i){let r=ai(e),n=si(e),o=i==="fixed",s=Cn(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Vt(0);if((r||!o)&&((Qi(e)!=="body"||En(n))&&(a=_n(e)),r)){let f=Cn(e,!0,o,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!r&&n&&(l.x=ys(n));let d=n&&!r&&!o?Ep(n,a):Vt(0),u=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:u,y:p,width:s.width,height:s.height}}function Qa(t){return Ot(t).position==="static"}function xp(t,e){if(!ai(t)||Ot(t).position==="fixed")return null;if(e)return e(t);let i=t.offsetParent;return si(t)===i&&(i=i.ownerDocument.body),i}function Ap(t,e){let i=Xe(t);if(An(t))return i;if(!ai(t)){let n=wi(t);for(;n&&!Mr(n);){if(Rt(n)&&!Qa(n))return n;n=wi(n)}return i}let r=xp(t,e);for(;r&&mp(r)&&Qa(r);)r=xp(r,e);return r&&Mr(r)&&Qa(r)&&!Pr(r)?i:r||gp(t)||i}var Xm=async function(t){let e=this.getOffsetParent||Ap,i=this.getDimensions,r=await i(t.floating);return{reference:Zm(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Jm(t){return Ot(t).direction==="rtl"}var vs={convertOffsetParentRelativeRectToViewportRelativeRect:Bm,getDocumentElement:si,getClippingRect:qm,getOffsetParent:Ap,getElementRects:Xm,getClientRects:Hm,getDimensions:Ym,getScale:Nr,isElement:Rt,isRTL:Jm};var _p=up,Cp=pp;var Tp=(t,e,i)=>{let r=new Map,n=i??{},o={...vs,...n.platform,_c:r};return dp(t,e,{...n,platform:o})};function Rp(t){return Qm(t)}function el(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Qm(t){for(let e=t;e;e=el(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=el(t);e;e=el(e)){if(!(e instanceof Element))continue;let i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||Pr(i)||e.tagName==="BODY"))return e}return null}async function xs(t,e,i){let r;return typeof i=="object"?r=i:r={placement:i},Tp(t,e,{strategy:r.strategy,platform:{...vs,getOffsetParent:n=>vs.getOffsetParent(n,Rp)},middleware:[Cp({crossAxis:!0}),_p({allowedPlacements:[r.placement]})]})}var Op=c(h());var tl=class{fromAttribute(e){if(!e)return[];try{let i=JSON.parse(e);return Array.isArray(i)?i.map(r=>typeof r=="string"?Tr.fromAttribute(r):r):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},eg=new tl;var kp=(t,e)=>(i,r)=>{var n;i.constructor.createProperty(r,{type:Object,hasChanged:Op.hasChanged,converter:Tr,...e}),i[mn]=(n=i[mn])!==null&&n!==void 0?n:new Map,i[mn].set(r,t??{})};var kt=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},re=class extends Jo{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 xt.Debouncer,this.revealDebouncer=new xt.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",i=>{i.composedPath().includes(this.container)||this.onOut(i)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,i;return Dp.html`
564
+ `;var np=["top","right","bottom","left"],rp=["start","end"],Za=np.reduce((t,e)=>t.concat(e,e+"-"+rp[0],e+"-"+rp[1]),[]),bn=Math.min,bi=Math.max,Sn=Math.round;var Ht=t=>({x:t,y:t}),Im={left:"right",right:"left",bottom:"top",top:"bottom"};function op(t,e,i){return bi(t,bn(e,i))}function fs(t,e){return typeof t=="function"?t(e):t}function wn(t){return t.split("-")[0]}function Si(t){return t.split("-")[1]}function Xa(t){return t==="x"?"y":"x"}function Ja(t){return t==="y"?"height":"width"}function hs(t){let e=t[0];return e==="t"||e==="b"?"y":"x"}function Qa(t){return Xa(hs(t))}function sp(t,e,i){i===void 0&&(i=!1);let r=Si(t),n=Qa(t),o=Ja(n),s=n==="x"?r===(i?"end":"start")?"right":"left":r==="start"?"bottom":"top";return e.reference[o]>e.floating[o]&&(s=Ya(s)),[s,Ya(s)]}function ap(t){return t.includes("start")?t.replace("start","end"):t.replace("end","start")}function Ya(t){let e=wn(t);return Im[e]+t.slice(e.length)}function Pm(t){var e,i,r,n;return{top:(e=t.top)!=null?e:0,right:(i=t.right)!=null?i:0,bottom:(r=t.bottom)!=null?r:0,left:(n=t.left)!=null?n:0}}function lp(t){return typeof t!="number"?Pm(t):{top:t,right:t,bottom:t,left:t}}function Zi(t){let{x:e,y:i,width:r,height:n}=t;return{width:r,height:n,top:i,left:e,right:e+r,bottom:i+n,x:e,y:i}}function cp(t,e,i){let{reference:r,floating:n}=t,o=hs(e),s=Qa(e),a=Ja(s),l=wn(e),d=o==="y",u=r.x+r.width/2-n.width/2,p=r.y+r.height/2-n.height/2,f=r[a]/2-n[a]/2,y;switch(l){case"top":y={x:u,y:r.y-n.height};break;case"bottom":y={x:u,y:r.y+r.height};break;case"right":y={x:r.x+r.width,y:p};break;case"left":y={x:r.x-n.width,y:p};break;default:y={x:r.x,y:r.y}}let w=Si(e);return w&&(y[s]+=f*(w==="end"?1:-1)*(i&&d?-1:1)),y}async function dp(t,e){var i;e===void 0&&(e={});let{x:r,y:n,platform:o,rects:s,elements:a,strategy:l}=t,{boundary:d="clippingAncestors",rootBoundary:u="viewport",elementContext:p="floating",altBoundary:f=!1,padding:y=0}=fs(e,t),w=lp(y),b=a[f?p==="floating"?"reference":"floating":p],O=Zi(await o.getClippingRect({element:(i=await(o.isElement==null?void 0:o.isElement(b)))==null||i?b:b.contextElement||await(o.getDocumentElement==null?void 0:o.getDocumentElement(a.floating)),boundary:d,rootBoundary:u,strategy:l})),H=p==="floating"?{x:r,y:n,width:s.floating.width,height:s.floating.height}:s.reference,E=await(o.getOffsetParent==null?void 0:o.getOffsetParent(a.floating)),A=await(o.isElement==null?void 0:o.isElement(E))&&await(o.getScale==null?void 0:o.getScale(E))||{x:1,y:1},W=Zi(o.convertOffsetParentRelativeRectToViewportRelativeRect?await o.convertOffsetParentRelativeRectToViewportRelativeRect({elements:a,rect:H,offsetParent:E,strategy:l}):H);return{top:(O.top-W.top+w.top)/A.y,bottom:(W.bottom-O.bottom+w.bottom)/A.y,left:(O.left-W.left+w.left)/A.x,right:(W.right-O.right+w.right)/A.x}}var Mm=50,up=async(t,e,i)=>{let{placement:r="bottom",strategy:n="absolute",middleware:o=[],platform:s}=i,a=s.detectOverflow?s:{...s,detectOverflow:dp},l=await(s.isRTL==null?void 0:s.isRTL(e)),d=await s.getElementRects({reference:t,floating:e,strategy:n}),{x:u,y:p}=cp(d,r,l),f=r,y=0,w={};for(let T=0;T<o.length;T++){let b=o[T];if(!b)continue;let{name:O,fn:H}=b,{x:E,y:A,data:W,reset:U}=await H({x:u,y:p,initialPlacement:r,placement:f,strategy:n,middlewareData:w,rects:d,platform:a,elements:{reference:t,floating:e}});u=E??u,p=A??p,w[O]={...w[O],...W},U&&y<Mm&&(y++,typeof U=="object"&&(U.placement&&(f=U.placement),U.rects&&(d=U.rects===!0?await s.getElementRects({reference:t,floating:e,strategy:n}):U.rects),{x:u,y:p}=cp(d,f,l)),T=-1)}return{x:u,y:p,placement:f,strategy:n,middlewareData:w}};function Nm(t,e,i){return(t?[...i.filter(n=>Si(n)===t),...i.filter(n=>Si(n)!==t)]:i.filter(n=>wn(n)===n)).filter(n=>t?Si(n)===t||(e?ap(n)!==n:!1):!0)}var pp=function(t){return t===void 0&&(t={}),{name:"autoPlacement",options:t,async fn(e){var i,r,n;let{rects:o,middlewareData:s,placement:a,platform:l,elements:d}=e,{crossAxis:u=!1,alignment:p,allowedPlacements:f=Za,autoAlignment:y=!0,...w}=fs(t,e),T=p!==void 0||f===Za?Nm(p||null,y,f):f,b=((i=s.autoPlacement)==null?void 0:i.index)||0,O=T[b];if(O==null)return{};if(a!==O)return{reset:{placement:T[0]}};let H=await l.detectOverflow(e,w),E=sp(O,o,await(l.isRTL==null?void 0:l.isRTL(d.floating))),A=[H[wn(O)],H[E[0]],H[E[1]]],W=[...((r=s.autoPlacement)==null?void 0:r.overflows)||[],{placement:O,overflows:A}],U=T[b+1];if(U)return{data:{index:b+1,overflows:W},reset:{placement:U}};let ye=W.map(pt=>{let Wr=Si(pt.placement);return[pt.placement,Wr&&u?pt.overflows.slice(0,2).reduce((oh,sh)=>oh+sh,0):pt.overflows[0],pt.overflows]}).sort((pt,Wr)=>pt[1]-Wr[1]),Ln=((n=ye.filter(pt=>pt[2].slice(0,Si(pt[0])?2:3).every(Wr=>Wr<=0))[0])==null?void 0:n[0])||ye[0][0];return Ln!==a?{data:{index:b+1,overflows:W},reset:{placement:Ln}}:{}}}};var fp=function(t){return t===void 0&&(t={}),{name:"shift",options:t,async fn(e){let{x:i,y:r,placement:n,platform:o}=e,{mainAxis:s=!0,crossAxis:a=!1,limiter:l={fn:H=>{let{x:E,y:A}=H;return{x:E,y:A}}},...d}=fs(t,e),u={x:i,y:r},p=await o.detectOverflow(e,d),f=hs(n),y=Xa(f),w=u[y],T=u[f],b=(H,E)=>op(E+p[H==="y"?"top":"left"],E,E-p[H==="y"?"bottom":"right"]);s&&(w=b(y,w)),a&&(T=b(f,T));let O=l.fn({...e,[y]:w,[f]:T});return{...O,data:{x:O.x-i,y:O.y-r,enabled:{[y]:s,[f]:a}}}}}};function gs(){return typeof window<"u"}function Ji(t){return mp(t)?(t.nodeName||"").toLowerCase():"#document"}function Xe(t){var e;return(t==null||(e=t.ownerDocument)==null?void 0:e.defaultView)||window}function si(t){var e;return(e=(mp(t)?t.ownerDocument:t.document)||window.document)==null?void 0:e.documentElement}function mp(t){return gs()?t instanceof Node||t instanceof Xe(t).Node:!1}function Rt(t){return gs()?t instanceof Element||t instanceof Xe(t).Element:!1}function ai(t){return gs()?t instanceof HTMLElement||t instanceof Xe(t).HTMLElement:!1}function hp(t){return!gs()||typeof ShadowRoot>"u"?!1:t instanceof ShadowRoot||t instanceof Xe(t).ShadowRoot}function En(t){let{overflow:e,overflowX:i,overflowY:r,display:n}=Ot(t);return/auto|scroll|overlay|hidden|clip/.test(e+r+i)&&n!=="inline"&&n!=="contents"}function gp(t){return/^(table|td|th)$/.test(Ji(t))}function An(t){try{if(t.matches(":popover-open"))return!0}catch{}try{return t.matches(":modal")}catch{return!1}}var $m=/transform|translate|scale|rotate|perspective|filter/,Fm=/paint|layout|strict|content/,Xi=t=>!!t&&t!=="none",el;function Pr(t){let e=Rt(t)?Ot(t):t;return Xi(e.transform)||Xi(e.translate)||Xi(e.scale)||Xi(e.rotate)||Xi(e.perspective)||!ys()&&(Xi(e.backdropFilter)||Xi(e.filter))||$m.test(e.willChange||"")||Fm.test(e.contain||"")}function yp(t){let e=wi(t);for(;ai(e)&&!Mr(e);){if(Pr(e))return e;if(An(e))return null;e=wi(e)}return null}function ys(){return el==null&&(el=typeof CSS<"u"&&CSS.supports&&CSS.supports("-webkit-backdrop-filter","none")),el}function Mr(t){return/^(html|body|#document)$/.test(Ji(t))}function Ot(t){return Xe(t).getComputedStyle(t)}function _n(t){return Rt(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.scrollX,scrollTop:t.scrollY}}function wi(t){if(Ji(t)==="html")return t;let e=t.assignedSlot||t.parentNode||hp(t)&&t.host||si(t);return hp(e)?e.host:e}function vp(t){let e=wi(t);return Mr(e)?(t.ownerDocument||t).body:ai(e)&&En(e)?e:vp(e)}function ms(t,e,i){var r;e===void 0&&(e=[]),i===void 0&&(i=!0);let n=vp(t),o=n===((r=t.ownerDocument)==null?void 0:r.body),s=Xe(n);if(o){let a=vs(s);return e.concat(s,s.visualViewport||[],En(n)?n:[],a&&i?ms(a):[])}else return e.concat(n,ms(n,[],i))}function vs(t){return t.parent&&Object.getPrototypeOf(t.parent)?t.frameElement:null}function Sp(t){let e=Ot(t),i=parseFloat(e.width)||0,r=parseFloat(e.height)||0,n=ai(t),o=n?t.offsetWidth:i,s=n?t.offsetHeight:r,a=Sn(i)!==o||Sn(r)!==s;return a&&(i=o,r=s),{width:i,height:r,$:a}}function wp(t){return Rt(t)?t:t.contextElement}function Nr(t){let e=wp(t);if(!ai(e))return Ht(1);let i=e.getBoundingClientRect(),{width:r,height:n,$:o}=Sp(e),s=(o?Sn(i.width):i.width)/r,a=(o?Sn(i.height):i.height)/n;return(!s||!Number.isFinite(s))&&(s=1),(!a||!Number.isFinite(a))&&(a=1),{x:s,y:a}}var Um=Ht(0);function Ep(t){let e=Xe(t);return!ys()||!e.visualViewport?Um:{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}}function Vm(t,e,i){return e===void 0&&(e=!1),!!i&&e&&i===Xe(t)}function Cn(t,e,i,r){e===void 0&&(e=!1),i===void 0&&(i=!1);let n=t.getBoundingClientRect(),o=wp(t),s=Ht(1);e&&(r?Rt(r)&&(s=Nr(r)):s=Nr(t));let a=Vm(o,i,r)?Ep(o):Ht(0),l=(n.left+a.x)/s.x,d=(n.top+a.y)/s.y,u=n.width/s.x,p=n.height/s.y;if(o&&r){let f=Xe(o),y=Rt(r)?Xe(r):r,w=f,T=vs(w);for(;T&&y!==w;){let b=Nr(T),O=T.getBoundingClientRect(),H=Ot(T),E=O.left+(T.clientLeft+parseFloat(H.paddingLeft))*b.x,A=O.top+(T.clientTop+parseFloat(H.paddingTop))*b.y;l*=b.x,d*=b.y,u*=b.x,p*=b.y,l+=E,d+=A,w=Xe(T),T=vs(w)}}return Zi({width:u,height:p,x:l,y:d})}function xs(t,e){let i=_n(t).scrollLeft;return e?e.left+i:Cn(si(t)).left+i}function Ap(t,e){let i=t.getBoundingClientRect(),r=i.left+e.scrollLeft-xs(t,i),n=i.top+e.scrollTop;return{x:r,y:n}}function Bm(t){let{elements:e,rect:i,offsetParent:r,strategy:n}=t,o=n==="fixed",s=si(r),a=e?An(e.floating):!1;if(r===s||a&&o)return i;let l={scrollLeft:0,scrollTop:0},d=Ht(1),u=Ht(0),p=ai(r);if((p||!o)&&((Ji(r)!=="body"||En(s))&&(l=_n(r)),p)){let y=Cn(r);d=Nr(r),u.x=y.x+r.clientLeft,u.y=y.y+r.clientTop}let f=s&&!p&&!o?Ap(s,l):Ht(0);return{width:i.width*d.x,height:i.height*d.y,x:i.x*d.x-l.scrollLeft*d.x+u.x+f.x,y:i.y*d.y-l.scrollTop*d.y+u.y+f.y}}function Hm(t){return t.getClientRects?Array.from(t.getClientRects()):[]}function zm(t){let e=_n(t),i=t.ownerDocument.body,r=bi(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),n=bi(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),o=-e.scrollLeft+xs(t),s=-e.scrollTop;return Ot(i).direction==="rtl"&&(o+=bi(t.clientWidth,i.clientWidth)-r),{width:r,height:n,x:o,y:s}}var jm=25;function Wm(t,e,i){i===void 0&&(i="viewport");let r=i==="layoutViewport",n=Xe(t),o=si(t),s=n.visualViewport,a=o.clientWidth,l=o.clientHeight,d=0,u=0;if(s){let f=!ys()||e==="fixed";r?f||(d=-s.offsetLeft,u=-s.offsetTop):(a=s.width,l=s.height,f&&(d=s.offsetLeft,u=s.offsetTop))}if(xs(o)<=0){let f=o.ownerDocument,y=f.body,w=getComputedStyle(y),T=f.compatMode==="CSS1Compat"&&parseFloat(w.marginLeft)+parseFloat(w.marginRight)||0,b=Math.abs(o.clientWidth-y.clientWidth-T),O=getComputedStyle(o).scrollbarGutter==="stable both-edges"?b/2:b;O<=jm&&(a-=O)}return{width:a,height:l,x:d,y:u}}function Km(t,e){let i=Cn(t,!0,e==="fixed"),r=i.top+t.clientTop,n=i.left+t.clientLeft,o=Nr(t),s=t.clientWidth*o.x,a=t.clientHeight*o.y,l=n*o.x,d=r*o.y;return{width:s,height:a,x:l,y:d}}function xp(t,e,i){let r;if(e==="viewport"||e==="layoutViewport")r=Wm(t,i,e);else if(e==="document")r=zm(si(t));else if(Rt(e))r=Km(e,i);else{let n=Ep(t);r={x:e.x-n.x,y:e.y-n.y,width:e.width,height:e.height}}return Zi(r)}function Gm(t,e){let i=e.get(t);if(i)return i;let r=ms(t,[],!1).filter(a=>Rt(a)&&Ji(a)!=="body"),n=null,o=Ot(t).position==="fixed",s=o?wi(t):t;for(;Rt(s)&&!Mr(s);){let a=Ot(s),l=Pr(s),d=n?n.position:o?"fixed":"";!l&&(d==="fixed"||d==="absolute"&&a.position==="static")?r=r.filter(p=>p!==s):n=a,s=wi(s)}return e.set(t,r),r}function qm(t){let{element:e,boundary:i,rootBoundary:r,strategy:n}=t,s=[...i==="clippingAncestors"?An(e)?[]:Gm(e,this._c):[].concat(i),r],a=xp(e,s[0],n),l=a.top,d=a.right,u=a.bottom,p=a.left;for(let f=1;f<s.length;f++){let y=xp(e,s[f],n);l=bi(y.top,l),d=bn(y.right,d),u=bn(y.bottom,u),p=bi(y.left,p)}return{width:d-p,height:u-l,x:p,y:l}}function Ym(t){let{width:e,height:i}=Sp(t);return{width:e,height:i}}function Zm(t,e,i){let r=ai(e),n=si(e),o=i==="fixed",s=Cn(t,!0,o,e),a={scrollLeft:0,scrollTop:0},l=Ht(0);if((r||!o)&&((Ji(e)!=="body"||En(n))&&(a=_n(e)),r)){let f=Cn(e,!0,o,e);l.x=f.x+e.clientLeft,l.y=f.y+e.clientTop}!r&&n&&(l.x=xs(n));let d=n&&!r&&!o?Ap(n,a):Ht(0),u=s.left+a.scrollLeft-l.x-d.x,p=s.top+a.scrollTop-l.y-d.y;return{x:u,y:p,width:s.width,height:s.height}}function tl(t){return Ot(t).position==="static"}function bp(t,e){if(!ai(t)||Ot(t).position==="fixed")return null;if(e)return e(t);let i=t.offsetParent;return si(t)===i&&(i=i.ownerDocument.body),i}function _p(t,e){let i=Xe(t);if(An(t))return i;if(!ai(t)){let n=wi(t);for(;n&&!Mr(n);){if(Rt(n)&&!tl(n))return n;n=wi(n)}return i}let r=bp(t,e);for(;r&&gp(r)&&tl(r);)r=bp(r,e);return r&&Mr(r)&&tl(r)&&!Pr(r)?i:r||yp(t)||i}var Xm=async function(t){let e=this.getOffsetParent||_p,i=this.getDimensions,r=await i(t.floating);return{reference:Zm(t.reference,await e(t.floating),t.strategy),floating:{x:0,y:0,width:r.width,height:r.height}}};function Jm(t){return Ot(t).direction==="rtl"}var bs={convertOffsetParentRelativeRectToViewportRelativeRect:Bm,getDocumentElement:si,getClippingRect:qm,getOffsetParent:_p,getElementRects:Xm,getClientRects:Hm,getDimensions:Ym,getScale:Nr,isElement:Rt,isRTL:Jm};var Cp=pp,Tp=fp;var Rp=(t,e,i)=>{let r=new Map,n=i??{},o={...bs,...n.platform,_c:r};return up(t,e,{...n,platform:o})};function Op(t){return Qm(t)}function il(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}function Qm(t){for(let e=t;e;e=il(e))if(e instanceof Element&&getComputedStyle(e).display==="none")return null;for(let e=il(t);e;e=il(e)){if(!(e instanceof Element))continue;let i=getComputedStyle(e);if(i.display!=="contents"&&(i.position!=="static"||Pr(i)||e.tagName==="BODY"))return e}return null}async function Ss(t,e,i){let r;return typeof i=="object"?r=i:r={placement:i},Rp(t,e,{strategy:r.strategy,platform:{...bs,getOffsetParent:n=>bs.getOffsetParent(n,Op)},middleware:[Tp({crossAxis:!0}),Cp({allowedPlacements:[r.placement]})]})}var kp=c(h());var rl=class{fromAttribute(e){if(!e)return[];try{let i=JSON.parse(e);return Array.isArray(i)?i.map(r=>typeof r=="string"?Tr.fromAttribute(r):r):[]}catch{return[]}}toAttribute(e){if(e!=null)return JSON.stringify(e)}},eg=new rl;var Dp=(t,e)=>(i,r)=>{var n;i.constructor.createProperty(r,{type:Object,hasChanged:kp.hasChanged,converter:Tr,...e}),i[mn]=(n=i[mn])!==null&&n!==void 0?n:new Map,i[mn].set(r,t??{})};var kt=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ne=class extends es{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 xt.Debouncer,this.revealDebouncer=new xt.Debouncer,this.onTouch=e=>{this.isIgnored(e)||(this.show(),setTimeout(()=>window.addEventListener("touchstart",i=>{i.composedPath().includes(this.container)||this.onOut(i)},{once:!0}),100))},this.onHover=e=>{this.isIgnored(e)?this.matchesIgnored(e)&&this.hide():this.show()},this.onFocusIn=e=>{!this.isIgnored(e)&&window.FluidTopicsA11yHints.isKeyboardNavigation&&window.FluidTopicsA11yHints.lastPressedKey==="Tab"&&this.show()},this.onOut=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())},this.onClick=e=>{this.isIgnored(e)||(this.revealDebouncer.cancel(),this.hide())}}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){var e,i;return Lp.html`
565
565
  <div part="container"
566
566
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}">
567
567
  <slot part="slot"></slot>
@@ -576,7 +576,7 @@
576
576
  </div>
577
577
  </div>
578
578
  </div>
579
- `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var i,r;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(i=this.tooltip)===null||i===void 0||i.showPopover()):(r=this.tooltip)===null||r===void 0||r.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(i=>e.has(i))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,i){let r=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(i),this.text=n,this.manual=r}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(i=>i.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&xs(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:i})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${i}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${xt.designSystemVariables.transitionDuration}, left ${xt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,xt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};re.elementDefinitions={"ft-typography":U};re.styles=tp;kt([kp()],re.prototype,"text",void 0);kt([(0,bt.property)({type:Boolean})],re.prototype,"manual",void 0);kt([(0,bt.property)({type:Boolean})],re.prototype,"inline",void 0);kt([(0,xt.numberProperty)()],re.prototype,"delay",void 0);kt([(0,bt.property)()],re.prototype,"position",void 0);kt([(0,xt.jsonProperty)([])],re.prototype,"ignoreMatchingElements",void 0);kt([(0,bt.queryAssignedNodes)()],re.prototype,"slotNodes",void 0);kt([(0,bt.query)(".ft-tooltip--container")],re.prototype,"container",void 0);kt([(0,bt.query)(".ft-tooltip")],re.prototype,"tooltip",void 0);kt([(0,bt.query)(".ft-tooltip--content")],re.prototype,"tooltipContent",void 0);kt([(0,bt.state)()],re.prototype,"visible",void 0);var Ip=c(h());var Lp={"ft-tooltip":re};(0,Ip.customElements)(Lp);var Pp=c(S()),Tn=c(h()),er={color:Tn.FtCssVariableFactory.extend("--ft-loader-color","",Tn.designSystemVariables.colorPrimary),size:Tn.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Mp=Pp.css`
579
+ `}setupFor(e){this.eventsTarget!==e&&(this.removeHandlers(),this.eventsTarget=e,this.eventsTarget.addEventListener("mouseover",this.onHover,{passive:!0}),this.eventsTarget.addEventListener("mouseleave",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("focusin",this.onFocusIn,{passive:!0}),this.eventsTarget.addEventListener("focusout",this.onOut,{passive:!0}),this.eventsTarget.addEventListener("touchstart",this.onTouch,{passive:!0}),this.eventsTarget.addEventListener("click",this.onClick,{passive:!0}))}removeHandlers(){this.eventsTarget&&(this.eventsTarget.removeEventListener("mouseover",this.onHover),this.eventsTarget.removeEventListener("mouseleave",this.onOut),this.eventsTarget.removeEventListener("focusin",this.onFocusIn),this.eventsTarget.removeEventListener("focusout",this.onOut),this.eventsTarget.removeEventListener("touchstart",this.onTouch),this.eventsTarget.removeEventListener("click",this.onClick),this.eventsTarget=void 0)}defaultSetup(){this.container&&this.setupFor(this.container)}updated(e){var i,r;e.has("visible")&&(this.visible?(this.resetTooltipContent(),(i=this.tooltip)===null||i===void 0||i.showPopover()):(r=this.tooltip)===null||r===void 0||r.hidePopover()),super.updated(e)}contentAvailableCallback(e){super.contentAvailableCallback(e),["visible","text"].some(i=>e.has(i))&&this.visible&&this.positionTooltip()}connectedCallback(){super.connectedCallback(),this.updateComplete.then(()=>{this.eventsTarget==null&&this.defaultSetup()})}disconnectedCallback(){super.disconnectedCallback(),this.removeHandlers()}async show(e){this.visible=!0,e!=null&&await this.hideDebounce.run(()=>{this.hide()},e)}async showTemporaryText(e,i){let r=this.manual;this.manual=!0;let n=this.text;this.text={message:e},await this.show(i),this.text=n,this.manual=r}hide(){this.visible=!1}toggle(){this.visible=!this.visible}isVisible(){return this.visible}get slottedElement(){var e;return((e=this.slotNodes)!==null&&e!==void 0?e:[]).filter(i=>i.nodeType==Node.ELEMENT_NODE)[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){let e=this.tooltipContent.style;switch(e.transition="none",this.validPosition){case"top":e.top=this.tooltip.clientHeight+"px",e.left="0";break;case"bottom":e.top=-this.tooltip.clientHeight+"px",e.left="0";break;case"left":e.top="0",e.left=this.tooltip.clientWidth+"px";break;case"right":e.top="0",e.left=-this.tooltip.clientWidth+"px";break}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&Ss(this.slottedElement,this.tooltip,{placement:this.position,strategy:"fixed"}).then(({x:e,y:i})=>{this.tooltip&&(this.tooltip.style.transform=`translate(${e}px,${i}px)`)}),this.revealDebouncer.run(()=>{this.tooltipContent&&(this.tooltipContent.style.transition=`top ${xt.designSystemVariables.transitionDuration}, left ${xt.designSystemVariables.transitionDuration}`,this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")},this.manual?0:this.delay)}matchesIgnored(e){return(0,xt.eventPathContainsMatchingElement)(e,this.ignoreMatchingElements,this.eventsTarget)}isIgnored(e){return this.manual||this.matchesIgnored(e)}};ne.elementDefinitions={"ft-typography":F};ne.styles=ip;kt([Dp()],ne.prototype,"text",void 0);kt([(0,bt.property)({type:Boolean})],ne.prototype,"manual",void 0);kt([(0,bt.property)({type:Boolean})],ne.prototype,"inline",void 0);kt([(0,xt.numberProperty)()],ne.prototype,"delay",void 0);kt([(0,bt.property)()],ne.prototype,"position",void 0);kt([(0,xt.jsonProperty)([])],ne.prototype,"ignoreMatchingElements",void 0);kt([(0,bt.queryAssignedNodes)()],ne.prototype,"slotNodes",void 0);kt([(0,bt.query)(".ft-tooltip--container")],ne.prototype,"container",void 0);kt([(0,bt.query)(".ft-tooltip")],ne.prototype,"tooltip",void 0);kt([(0,bt.query)(".ft-tooltip--content")],ne.prototype,"tooltipContent",void 0);kt([(0,bt.state)()],ne.prototype,"visible",void 0);var Pp=c(h());var Ip={"ft-tooltip":ne};(0,Pp.customElements)(Ip);var Mp=c(S()),Tn=c(h()),Qi={color:Tn.FtCssVariableFactory.extend("--ft-loader-color","",Tn.designSystemVariables.colorPrimary),size:Tn.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Np=Mp.css`
580
580
  :host {
581
581
  line-height: 0;
582
582
  }
@@ -585,8 +585,8 @@
585
585
  display: inline-block;
586
586
  position: relative;
587
587
 
588
- width: ${er.size};
589
- height: ${er.size};
588
+ width: ${Qi.size};
589
+ height: ${Qi.size};
590
590
  }
591
591
 
592
592
  .ft-loader div {
@@ -595,7 +595,7 @@
595
595
  width: 25%;
596
596
  height: 25%;
597
597
  border-radius: 50%;
598
- background: ${er.color};
598
+ background: ${Qi.color};
599
599
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
600
600
  }
601
601
 
@@ -642,17 +642,17 @@
642
642
  transform: translate(0, 0);
643
643
  }
644
644
  100% {
645
- transform: translate(calc(0.35 * ${er.size}), 0);
645
+ transform: translate(calc(0.35 * ${Qi.size}), 0);
646
646
  }
647
647
  }
648
- `;var Np=c(S()),$p=c(h());var tr=class extends $p.FtLitElement{render(){return Np.html`
648
+ `;var $p=c(S()),Fp=c(h());var er=class extends Fp.FtLitElement{render(){return $p.html`
649
649
  <div class="ft-loader">
650
650
  <div></div>
651
651
  <div></div>
652
652
  <div></div>
653
653
  <div></div>
654
654
  </div>
655
- `}};tr.styles=Mp;var Up=c(h());var Fp={"ft-loader":tr};(0,Up.customElements)(Fp);var Ei=c(S()),bs=c(lt()),W=c(F());var Dt=t=>t??me;var Hp=c(S()),O=c(h());var Vp=O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorPrimary),H={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorSurface),borderRadius:O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusL),color:Vp,fontSize:O.FtCssVariableFactory.extend("--ft-button-font-size","",Ie.fontSize),iconSize:O.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:O.FtCssVariableFactory.extend("--ft-button-ripple-color","",Vp),verticalPadding:O.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:O.FtCssVariableFactory.external(O.designSystemVariables.colorOpacityDisabled,"Design system")},Bp=O.FtCssVariableFactory.extend("--ft-button-primary-color","",O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorOnPrimary)),il={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-primary-background-color","",O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorPrimary)),color:Bp,rippleColor:O.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Bp)},Bt={borderRadius:O.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusM)),verticalPadding:O.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},zp=Hp.css`
655
+ `}};er.styles=Np;var Vp=c(h());var Up={"ft-loader":er};(0,Vp.customElements)(Up);var Ei=c(S()),Es=c(lt()),G=c($());var Dt=t=>t??fe;var ws=c(S()),R=c(h());var Bp=R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorPrimary),B={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorSurface),borderRadius:R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusL),color:Bp,fontSize:R.FtCssVariableFactory.extend("--ft-button-font-size","",Ie.fontSize),iconSize:R.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:R.FtCssVariableFactory.extend("--ft-button-ripple-color","",Bp),verticalPadding:R.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:R.FtCssVariableFactory.external(R.designSystemVariables.colorOpacityDisabled,"Design system")},Hp=R.FtCssVariableFactory.extend("--ft-button-primary-color","",R.FtCssVariableFactory.extend("--ft-button-color","",R.designSystemVariables.colorOnPrimary)),nl={backgroundColor:R.FtCssVariableFactory.extend("--ft-button-primary-background-color","",R.FtCssVariableFactory.extend("--ft-button-background-color","",R.designSystemVariables.colorPrimary)),color:Hp,rippleColor:R.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Hp)},Lt={borderRadius:R.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",R.FtCssVariableFactory.extend("--ft-button-border-radius","",R.designSystemVariables.borderRadiusM)),verticalPadding:R.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:R.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:R.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},zp=ws.css`
656
656
  :host {
657
657
  display: inline-block;
658
658
  max-width: 100%;
@@ -661,33 +661,9 @@
661
661
 
662
662
  .ft-button {
663
663
  box-shadow: 0px 0px 0px transparent;
664
- border: 0px solid transparent;
665
664
  text-shadow: 0px 0px 0px transparent;
666
- font-size: ${H.fontSize};
665
+ font-size: ${B.fontSize};
667
666
  text-decoration: none;
668
- }
669
-
670
- .ft-button:hover {
671
- box-shadow: 0px 0px 0px transparent;
672
- border: 0px solid transparent;
673
- text-shadow: 0px 0px 0px transparent;
674
- }
675
-
676
- .ft-button:active {
677
- outline: none;
678
- border: none;
679
- }
680
-
681
- .ft-button:focus {
682
- outline: none;
683
- }
684
-
685
- .ft-button:focus-visible {
686
- outline: 2px solid ${O.designSystemVariables.colorPrimary};
687
- outline-offset: 2px;
688
- }
689
-
690
- .ft-button {
691
667
  position: relative;
692
668
  display: flex;
693
669
  justify-content: center;
@@ -697,99 +673,128 @@
697
673
  border: none;
698
674
  pointer-events: auto;
699
675
 
700
- --button-internal-line-height: max(calc(${H.fontSize} + 2px), ${H.iconSize});
701
- --button-internal-color: ${H.color};
702
- ${(0,O.setVariable)(ge.size,H.iconSize)};
703
- ${(0,O.setVariable)(G.color,H.rippleColor)};
704
- ${(0,O.setVariable)(G.borderRadius,H.borderRadius)};
676
+ --button-internal-line-height: max(calc(${B.fontSize} + 2px), ${B.iconSize});
677
+ --button-internal-color: ${B.color};
678
+ ${(0,R.setVariable)(he.size,B.iconSize)};
679
+ ${(0,R.setVariable)(K.color,B.rippleColor)};
680
+ ${(0,R.setVariable)(K.borderRadius,B.borderRadius)};
705
681
 
706
- border-radius: ${H.borderRadius};
707
- padding: ${H.verticalPadding} ${H.horizontalPadding};
708
- background-color: ${H.backgroundColor};
682
+ border-radius: ${B.borderRadius};
683
+ padding: ${B.verticalPadding} ${B.horizontalPadding};
684
+ background-color: ${B.backgroundColor};
709
685
  color: var(--button-internal-color);
710
- }
711
686
 
712
- .ft-button.ft-button--outlined {
713
- border: 1px solid var(--button-internal-color);
714
- padding: calc(${H.verticalPadding} - 1px) calc(${H.horizontalPadding} - 1px);
715
- }
687
+ .ft-button--label {
688
+ position: relative;
689
+ overflow: hidden;
690
+ white-space: nowrap;
691
+ text-overflow: ellipsis;
692
+ display: block;
693
+ margin: 0 ${B.iconPadding};
694
+ ${(0,R.setVariable)(Ie.fontSize,"1em")};
695
+ ${(0,R.setVariable)(Ie.lineHeight,"var(--button-internal-line-height)")};
696
+ }
716
697
 
717
- .ft-button.ft-button--dense {
718
- padding: ${Bt.verticalPadding} ${Bt.horizontalPadding};
719
- border-radius: ${Bt.borderRadius};
720
- ${(0,O.setVariable)(G.borderRadius,Bt.borderRadius)};
721
- }
698
+ [part="icon"] {
699
+ flex-shrink: 0;
700
+ position: relative;
701
+ }
722
702
 
723
- .ft-button.ft-button--dense.ft-button--outlined {
724
- padding: calc(${Bt.verticalPadding} - 1px) calc(${Bt.horizontalPadding} - 1px);
725
- }
703
+ &:hover {
704
+ box-shadow: 0px 0px 0px transparent;
705
+ border: 0px solid transparent;
706
+ text-shadow: 0px 0px 0px transparent;
726
707
 
727
- .ft-button:not([disabled]):hover {
728
- cursor: pointer;
729
- }
730
708
 
731
- .ft-button--round {
732
- border-radius: calc(var(--button-internal-line-height) / 2 + ${H.verticalPadding});
733
- }
709
+ &:not([disabled]) {
710
+ cursor: pointer;
711
+ }
712
+ }
734
713
 
735
- .ft-button--round.ft-button--dense {
736
- border-radius: calc(var(--button-internal-line-height) / 2 + ${Bt.verticalPadding});
737
- }
714
+ &:active {
715
+ outline: none;
716
+ border: none;
717
+ }
738
718
 
739
- .ft-button[disabled] {
740
- filter: grayscale(1);
741
- opacity: ${H.opacityDisabled};
742
- }
719
+ &:focus {
720
+ outline: none;
721
+ }
743
722
 
744
- .ft-button.ft-button--primary {
745
- background-color: ${il.backgroundColor};
746
- --button-internal-color: ${il.color};
747
- ${(0,O.setVariable)(G.color,il.rippleColor)};
748
- }
723
+ &:focus-visible {
724
+ outline: 2px solid ${R.designSystemVariables.colorPrimary};
725
+ outline-offset: 2px;
726
+ }
749
727
 
750
- .ft-button--label {
751
- position: relative;
752
- overflow: hidden;
753
- white-space: nowrap;
754
- text-overflow: ellipsis;
755
- display: block;
756
- margin: 0 ${H.iconPadding};
757
- ${(0,O.setVariable)(Ie.fontSize,"1em")};
758
- ${(0,O.setVariable)(Ie.lineHeight,"var(--button-internal-line-height)")};
759
- }
728
+ &[disabled] {
729
+ filter: grayscale(1);
730
+ opacity: ${B.opacityDisabled};
731
+ }
760
732
 
761
- .ft-button--dense .ft-button--label {
762
- margin: 0 ${Bt.iconPadding};
763
- }
733
+ &.ft-button--primary {
734
+ background-color: ${nl.backgroundColor};
735
+ --button-internal-color: ${nl.color};
736
+ ${(0,R.setVariable)(K.color,nl.rippleColor)};
737
+ }
764
738
 
765
- .ft-button--label.ft-button--label-no-text {
766
- margin: 0;
767
- }
739
+ &.ft-button--outlined {
740
+ border: 1px solid var(--button-internal-color);
741
+ padding: calc(${B.verticalPadding} - 1px) calc(${B.horizontalPadding} - 1px);
742
+ }
768
743
 
769
- [part="icon"] {
770
- flex-shrink: 0;
771
- position: relative;
772
- }
744
+ &.ft-button--dense {
745
+ padding: ${Lt.verticalPadding} ${Lt.horizontalPadding};
746
+ border-radius: ${Lt.borderRadius};
747
+ ${(0,R.setVariable)(K.borderRadius,Lt.borderRadius)};
773
748
 
774
- .ft-button--label[hidden] + [part="icon"] {
775
- margin: 0 calc(${H.horizontalPadding} * -1);
776
- padding: 0 ${H.verticalPadding};
777
- }
749
+ .ft-button--label {
750
+ margin: 0 ${Lt.iconPadding};
751
+ }
752
+ }
778
753
 
779
- .ft-button--dense .ft-button--label[hidden] + [part="icon"] {
780
- margin: 0 calc(${Bt.horizontalPadding} * -1);
781
- padding: 0 ${Bt.verticalPadding};
782
- }
754
+ &.ft-button--dense.ft-button--outlined {
755
+ padding: calc(${Lt.verticalPadding} - 1px) calc(${Lt.horizontalPadding} - 1px);
756
+ }
757
+
758
+ &.ft-button--round {
759
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${B.verticalPadding});
760
+ ${(0,R.setVariable)(K.borderRadius,ws.css`calc(var(--button-internal-line-height) / 2 + ${B.verticalPadding})`)};
761
+ }
762
+
763
+ &.ft-button--round.ft-button--dense {
764
+ border-radius: calc(var(--button-internal-line-height) / 2 + ${Lt.verticalPadding});
765
+ ${(0,R.setVariable)(K.borderRadius,ws.css`calc(var(--button-internal-line-height) / 2 + ${Lt.verticalPadding})`)};
766
+ }
767
+
768
+ &.ft-button--no-text {
769
+ .ft-button--label {
770
+ margin: 0;
771
+ }
783
772
 
784
- .ft-button:not(.ft-button--trailing-icon) [part="label"] {
785
- order: 2;
773
+ padding: ${B.verticalPadding};
774
+
775
+ &.ft-button--dense {
776
+ padding: ${Lt.verticalPadding};
777
+ }
778
+
779
+ &.ft-button--outlined {
780
+ padding: calc(${B.verticalPadding} - 1px);
781
+ }
782
+
783
+ &.ft-button--outlined.ft-button--dense {
784
+ padding: calc(${Lt.verticalPadding} - 1px);
785
+ }
786
+ }
787
+
788
+ &:not(.ft-button--trailing-icon) [part="label"] {
789
+ order: 2;
790
+ }
786
791
  }
787
792
 
788
793
  ft-loader {
789
- ${(0,O.setVariable)(er.size,H.iconSize)};
790
- ${(0,O.setVariable)(er.color,"var(--button-internal-color)")};
794
+ ${(0,R.setVariable)(Qi.size,B.iconSize)};
795
+ ${(0,R.setVariable)(Qi.color,"var(--button-internal-color)")};
791
796
  }
792
- `;var Y=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},R=class t extends(0,Ht.toFtFormComponent)(Ht.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var i;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((i=this.form)===null||i===void 0||i.requestSubmit())})}render(){var e,i,r;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":Ht.isSafari,"ft-button--label-no-text":!this.hasTextContent},o=Ei.html`
797
+ `;var Y=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},k=class t extends(0,zt.toFtFormComponent)(zt.FtLitElement){get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-button--no-text":!this.hasTextContent,"ft-no-text-select":!0}}constructor(){super(),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1,this.disabled=!1,this.icon=void 0,this.trailingIcon=!1,this.type="button",this.href=void 0,this.target=void 0,this.loading=!1,this.ariaLabel=null,this.ariaHasPopup=null,this.ariaPressed=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.activated=!1,this.hasTextContent=!1,this.addEventListener("click",e=>{var i;this.isDisabled()?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.type=="submit"&&((i=this.form)===null||i===void 0||i.requestSubmit())})}render(){var e,i,r;let n={"ft-button--label":!0,"ft-safari-ellipsis-fix":zt.isSafari},o=Ei.html`
793
798
  <ft-ripple part="ripple"
794
799
  ?disabled=${this.isDisabled()}
795
800
  ?activated=${this.activated}
@@ -797,7 +802,7 @@
797
802
  <ft-typography part="label"
798
803
  variant="${V.button}"
799
804
  element="span"
800
- class="${(0,bs.classMap)(n)}">
805
+ class="${(0,Es.classMap)(n)}">
801
806
  <slot></slot>
802
807
  </ft-typography>
803
808
  ${this.resolveIcon()}
@@ -805,14 +810,14 @@
805
810
  <a href="${s}"
806
811
  target="${(e=this.target)!==null&&e!==void 0?e:"_self"}"
807
812
  part="button"
808
- class="${(0,bs.classMap)(this.buttonClasses)}"
813
+ class="${(0,Es.classMap)(this.buttonClasses)}"
809
814
  aria-label="${Dt((i=this.ariaLabel)!==null&&i!==void 0?i:this.label)}"
810
815
  ?disabled=${this.isDisabled()}>
811
816
  ${o}
812
817
  </a>
813
818
  `:Ei.html`
814
819
  <button part="button"
815
- class="${(0,bs.classMap)(this.buttonClasses)}"
820
+ class="${(0,Es.classMap)(this.buttonClasses)}"
816
821
  aria-label="${Dt((r=this.ariaLabel)!==null&&r!==void 0?r:this.label)}"
817
822
  aria-haspopup="${Dt(this.ariaHasPopup)}"
818
823
  aria-pressed="${Dt(this.ariaPressed)}"
@@ -830,7 +835,7 @@
830
835
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
831
836
  `:Ei.html`
832
837
  <slot part="icon" name="icon"></slot>
833
- `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,i){var r;return(r=this.tooltip)===null||r===void 0?void 0:r.showTemporaryText(e,i)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};R.elementDefinitions={"ft-ripple":P,"ft-tooltip":re,"ft-icon":z,"ft-loader":tr,"ft-typography":U};R.styles=[Ht.safariEllipsisFix,zp,Ht.noTextSelect];R.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let i=e.target.getRootNode();i instanceof ShadowRoot&&i.host?i.host.hasTextContent=e.boundingClientRect.width>0:R.labelsObserver.unobserve(e.target)}});Y([(0,W.property)({type:Boolean})],R.prototype,"primary",void 0);Y([(0,W.property)({type:Boolean})],R.prototype,"outlined",void 0);Y([(0,W.property)({type:Boolean})],R.prototype,"dense",void 0);Y([(0,W.property)({type:Boolean})],R.prototype,"round",void 0);Y([(0,W.property)({type:Boolean})],R.prototype,"disabled",void 0);Y([(0,W.property)()],R.prototype,"icon",void 0);Y([(0,W.property)()],R.prototype,"iconVariant",void 0);Y([(0,W.property)({type:Boolean})],R.prototype,"trailingIcon",void 0);Y([(0,W.property)()],R.prototype,"label",void 0);Y([(0,W.property)()],R.prototype,"type",void 0);Y([(0,W.property)()],R.prototype,"href",void 0);Y([(0,W.property)()],R.prototype,"target",void 0);Y([(0,W.property)({type:Boolean})],R.prototype,"loading",void 0);Y([(0,W.property)({attribute:"aria-label"})],R.prototype,"ariaLabel",void 0);Y([(0,W.property)()],R.prototype,"ariaHasPopup",void 0);Y([(0,W.property)({attribute:"aria-pressed"})],R.prototype,"ariaPressed",void 0);Y([(0,W.property)()],R.prototype,"tooltipPosition",void 0);Y([(0,W.property)({type:Boolean})],R.prototype,"hideTooltip",void 0);Y([(0,W.property)({type:Boolean})],R.prototype,"forceTooltip",void 0);Y([(0,W.property)({type:Boolean})],R.prototype,"activated",void 0);Y([(0,W.query)(".ft-button")],R.prototype,"button",void 0);Y([(0,W.query)(".ft-button--label")],R.prototype,"labelContainer",void 0);Y([(0,W.state)()],R.prototype,"hasTextContent",void 0);Y([(0,W.query)(".ft-button--label slot")],R.prototype,"slottedContent",void 0);Y([(0,W.query)("[part=tooltip]")],R.prototype,"tooltip",void 0);var Wp=c(h());var jp={"ft-button":R};(0,Wp.customElements)(jp);var Ss=c(S()),zt=c(F()),Yp=c(lt()),li=c(h());var $r=c(S()),Je=c(F()),Fr=c(h());var qp=c(lt());var Kp=c(S()),Ve=c(h());var oe=c(h());var se={textColor:oe.FtCssVariableFactory.extend("--ft-switch-text-color","",oe.designSystemVariables.colorOnSurfaceHigh),backgroundColor:oe.FtCssVariableFactory.extend("--ft-switch-background-color","",oe.designSystemVariables.colorSurface),selectedTextColor:oe.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",oe.designSystemVariables.colorPrimary),selectedBackgroundColor:oe.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",oe.designSystemVariables.colorPrimary),borderColor:oe.FtCssVariableFactory.extend("--ft-switch-border-color","",oe.designSystemVariables.colorOutline),borderRadius:oe.FtCssVariableFactory.extend("--ft-switch-border-radius","",oe.designSystemVariables.borderRadiusL),fontSize:oe.FtCssVariableFactory.extend("--ft-switch-font-size","",Ie.fontSize),iconSize:oe.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:oe.FtCssVariableFactory.extend("--ft-switch-text-color","",oe.designSystemVariables.colorOnSurfaceMedium),rippleColor:oe.FtCssVariableFactory.extend("--ft-switch-ripple-color","",oe.designSystemVariables.colorPrimary),outlineColor:oe.FtCssVariableFactory.extend("--ft-switch-outline-color","",oe.designSystemVariables.colorPrimary)};var Se={borderRadiusLeft:Ve.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Ve.designSystemVariables.borderRadiusL),borderRadiusRight:Ve.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Ve.designSystemVariables.borderRadiusL),borderWidthLeft:Ve.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Ve.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Ve.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Gp=Kp.css`
838
+ `}focus(){var e;(e=this.button)===null||e===void 0||e.focus()}showTooltip(){var e;(e=this.tooltip)===null||e===void 0||e.show()}showTemporaryTooltip(e,i){var r;return(r=this.tooltip)===null||r===void 0?void 0:r.showTemporaryText(e,i)}setTooltipManual(e){this.tooltip&&(this.tooltip.manual=e)}click(){var e;(e=this.button)===null||e===void 0||e.click()}isDisabled(){return this.disabled||this.loading}contentAvailableCallback(e){super.contentAvailableCallback(e),this.labelContainer&&t.labelsObserver.observe(this.labelContainer)}disconnectedCallback(){super.disconnectedCallback(),this.labelContainer&&t.labelsObserver.unobserve(this.labelContainer)}};k.elementDefinitions={"ft-ripple":P,"ft-tooltip":ne,"ft-icon":z,"ft-loader":er,"ft-typography":F};k.styles=[zt.safariEllipsisFix,zp,zt.noTextSelect];k.labelsObserver=new IntersectionObserver(t=>{for(let e of t){let i=e.target.getRootNode();i instanceof ShadowRoot&&i.host?i.host.hasTextContent=e.boundingClientRect.width>0:k.labelsObserver.unobserve(e.target)}});Y([(0,G.property)({type:Boolean})],k.prototype,"primary",void 0);Y([(0,G.property)({type:Boolean})],k.prototype,"outlined",void 0);Y([(0,G.property)({type:Boolean})],k.prototype,"dense",void 0);Y([(0,G.property)({type:Boolean})],k.prototype,"round",void 0);Y([(0,G.property)({type:Boolean})],k.prototype,"disabled",void 0);Y([(0,G.property)()],k.prototype,"icon",void 0);Y([(0,G.property)()],k.prototype,"iconVariant",void 0);Y([(0,G.property)({type:Boolean})],k.prototype,"trailingIcon",void 0);Y([(0,G.property)()],k.prototype,"label",void 0);Y([(0,G.property)()],k.prototype,"type",void 0);Y([(0,G.property)()],k.prototype,"href",void 0);Y([(0,G.property)()],k.prototype,"target",void 0);Y([(0,G.property)({type:Boolean})],k.prototype,"loading",void 0);Y([(0,G.property)({attribute:"aria-label"})],k.prototype,"ariaLabel",void 0);Y([(0,G.property)()],k.prototype,"ariaHasPopup",void 0);Y([(0,G.property)({attribute:"aria-pressed"})],k.prototype,"ariaPressed",void 0);Y([(0,G.property)()],k.prototype,"tooltipPosition",void 0);Y([(0,G.property)({type:Boolean})],k.prototype,"hideTooltip",void 0);Y([(0,G.property)({type:Boolean})],k.prototype,"forceTooltip",void 0);Y([(0,G.property)({type:Boolean})],k.prototype,"activated",void 0);Y([(0,G.query)(".ft-button")],k.prototype,"button",void 0);Y([(0,G.query)(".ft-button--label")],k.prototype,"labelContainer",void 0);Y([(0,G.state)()],k.prototype,"hasTextContent",void 0);Y([(0,G.query)(".ft-button--label slot")],k.prototype,"slottedContent",void 0);Y([(0,G.query)("[part=tooltip]")],k.prototype,"tooltip",void 0);var Wp=c(h());var jp={"ft-button":k};(0,Wp.customElements)(jp);var As=c(S()),jt=c($()),Yp=c(lt()),li=c(h());var $r=c(S()),Je=c($()),Fr=c(h());var qp=c(lt());var Kp=c(S()),Be=c(h());var oe=c(h());var se={textColor:oe.FtCssVariableFactory.extend("--ft-switch-text-color","",oe.designSystemVariables.colorOnSurfaceHigh),backgroundColor:oe.FtCssVariableFactory.extend("--ft-switch-background-color","",oe.designSystemVariables.colorSurface),selectedTextColor:oe.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",oe.designSystemVariables.colorPrimary),selectedBackgroundColor:oe.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",oe.designSystemVariables.colorPrimary),borderColor:oe.FtCssVariableFactory.extend("--ft-switch-border-color","",oe.designSystemVariables.colorOutline),borderRadius:oe.FtCssVariableFactory.extend("--ft-switch-border-radius","",oe.designSystemVariables.borderRadiusL),fontSize:oe.FtCssVariableFactory.extend("--ft-switch-font-size","",Ie.fontSize),iconSize:oe.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:oe.FtCssVariableFactory.extend("--ft-switch-text-color","",oe.designSystemVariables.colorOnSurfaceMedium),rippleColor:oe.FtCssVariableFactory.extend("--ft-switch-ripple-color","",oe.designSystemVariables.colorPrimary),outlineColor:oe.FtCssVariableFactory.extend("--ft-switch-outline-color","",oe.designSystemVariables.colorPrimary)};var be={borderRadiusLeft:Be.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",Be.designSystemVariables.borderRadiusL),borderRadiusRight:Be.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",Be.designSystemVariables.borderRadiusL),borderWidthLeft:Be.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:Be.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:Be.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Gp=Kp.css`
834
839
  .ft-switch-option {
835
840
  position: relative;
836
841
  display: inline-block;
@@ -849,13 +854,13 @@
849
854
 
850
855
  border-style: solid;
851
856
  border-color: ${se.borderColor};
852
- border-width: ${Se.borderWidthVertical} ${Se.borderWidthRight} ${Se.borderWidthVertical} ${Se.borderWidthLeft};
853
- border-radius: ${Se.borderRadiusLeft} ${Se.borderRadiusRight} ${Se.borderRadiusRight} ${Se.borderRadiusLeft};
857
+ border-width: ${be.borderWidthVertical} ${be.borderWidthRight} ${be.borderWidthVertical} ${be.borderWidthLeft};
858
+ border-radius: ${be.borderRadiusLeft} ${be.borderRadiusRight} ${be.borderRadiusRight} ${be.borderRadiusLeft};
854
859
  display: flex;
855
860
  align-items: center;
856
861
  justify-content: center;
857
862
  overflow: hidden;
858
- ${(0,Ve.setVariable)(ge.size,se.iconSize)};
863
+ ${(0,Be.setVariable)(he.size,se.iconSize)};
859
864
  padding: var(--switch-internal-vertical-padding, 6px) var(--switch-internal-horizontal-padding, 8px);
860
865
  background-color: ${se.backgroundColor};
861
866
  -webkit-mask-image: radial-gradient(white, black);
@@ -867,12 +872,12 @@
867
872
 
868
873
  .ft-switch-option--selected .ft-switch-option--content:before {
869
874
  background-color: ${se.selectedBackgroundColor};
870
- border-radius: ${Se.borderRadiusLeft} ${Se.borderRadiusRight} ${Se.borderRadiusRight} ${Se.borderRadiusLeft};
875
+ border-radius: ${be.borderRadiusLeft} ${be.borderRadiusRight} ${be.borderRadiusRight} ${be.borderRadiusLeft};
871
876
  position: absolute;
872
877
  inset: 0;
873
878
  content: "";
874
879
  z-index: 1;
875
- opacity: ${Ve.designSystemVariables.opacityPrimaryOnSurfaceSelected};
880
+ opacity: ${Be.designSystemVariables.opacityPrimaryOnSurfaceSelected};
876
881
  }
877
882
 
878
883
  .ft-switch-option--label {
@@ -882,8 +887,8 @@
882
887
  text-overflow: ellipsis;
883
888
  display: block;
884
889
  margin: 0 8px;
885
- ${(0,Ve.setVariable)(Ie.fontSize,se.fontSize)};
886
- ${(0,Ve.setVariable)(Ie.lineHeight,"var(--switch-option-internal-content-height)")}
890
+ ${(0,Be.setVariable)(Ie.fontSize,se.fontSize)};
891
+ ${(0,Be.setVariable)(Ie.lineHeight,"var(--switch-option-internal-content-height)")}
887
892
  }
888
893
 
889
894
  .ft-switch-option--selected .ft-switch-option--label {
@@ -899,7 +904,7 @@
899
904
  }
900
905
 
901
906
  .ft-switch-option--ripple {
902
- ${(0,Ve.setVariable)(G.color,se.rippleColor)};
907
+ ${(0,Be.setVariable)(K.color,se.rippleColor)};
903
908
  }
904
909
 
905
910
  ft-icon, ft-ripple, ft-typography {
@@ -918,7 +923,7 @@
918
923
  .ft-switch-option--selected ft-icon {
919
924
  color: ${se.selectedTextColor};
920
925
  }
921
- `;var Lt=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},rl=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},nl=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},de=class extends Fr.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new nl(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip($r.html`
926
+ `;var It=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ol=class extends CustomEvent{constructor(e){super("option-change-by-user",{detail:e,bubbles:!0,composed:!0})}},sl=class extends CustomEvent{constructor(e){super("option-change",{detail:e,bubbles:!0,composed:!0})}},le=class extends Fr.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1,this.isFocused=!1}focus(){this.input.focus()}update(e){super.update(e),e.has("selected")&&this.dispatchEvent(new sl(this.selected))}render(){let e={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected,"ft-switch-option--focused":this.isFocused};return this.addTooltip($r.html`
922
927
  <label part="label" for="input" class="${(0,qp.classMap)(e)}"
923
928
  @click=${this.onChange}>
924
929
  <div class="ft-switch-option--content">
@@ -940,16 +945,16 @@
940
945
  position="${this.tooltipPosition}">
941
946
  ${e}
942
947
  </ft-tooltip>
943
- `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new rl(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?$r.html`
948
+ `}connectedCallback(){super.connectedCallback(),this.addEventListener("focusout",this.onFocusout)}disconnectedCallback(){super.disconnectedCallback(),this.removeEventListener("focusout",this.onFocusout)}onFocusout(){this.isFocused=!1}onChange(){this.selected=this.unselectable?!this.selected:!0,this.dispatchEvent(new ol(this.selected))}getLabel(){return this.label||this.getTextContent()}resolveIcon(){return this.icon?$r.html`
944
949
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
945
- `:$r.nothing}getTextContent(){var e,i;return(i=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(r=>r.textContent).join("").trim())!==null&&i!==void 0?i:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};de.elementDefinitions={"ft-ripple":P,"ft-typography":U,"ft-tooltip":re,"ft-icon":z};de.styles=[Fr.safariEllipsisFix,Gp];Lt([(0,Je.property)()],de.prototype,"value",void 0);Lt([(0,Je.property)()],de.prototype,"icon",void 0);Lt([(0,Je.property)()],de.prototype,"iconVariant",void 0);Lt([(0,Je.property)()],de.prototype,"label",void 0);Lt([(0,Je.property)()],de.prototype,"tooltipPosition",void 0);Lt([(0,Je.property)({type:Boolean,reflect:!0})],de.prototype,"selected",void 0);Lt([(0,Je.property)({type:Boolean})],de.prototype,"trailingIcon",void 0);Lt([(0,Je.property)({type:Boolean})],de.prototype,"unselectable",void 0);Lt([(0,Je.query)(".ft-switch-option--content slot")],de.prototype,"slottedContent",void 0);Lt([(0,Je.query)(".ft-switch-option--input")],de.prototype,"input",void 0);Lt([(0,Je.state)()],de.prototype,"isFocused",void 0);var ir=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ol=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Be=class extends li.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(i=>i.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return Ss.html`
950
+ `:$r.nothing}getTextContent(){var e,i;return(i=(e=this.slottedContent)===null||e===void 0?void 0:e.assignedNodes().map(r=>r.textContent).join("").trim())!==null&&i!==void 0?i:""}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}};le.elementDefinitions={"ft-ripple":P,"ft-typography":F,"ft-tooltip":ne,"ft-icon":z};le.styles=[Fr.safariEllipsisFix,Gp];It([(0,Je.property)()],le.prototype,"value",void 0);It([(0,Je.property)()],le.prototype,"icon",void 0);It([(0,Je.property)()],le.prototype,"iconVariant",void 0);It([(0,Je.property)()],le.prototype,"label",void 0);It([(0,Je.property)()],le.prototype,"tooltipPosition",void 0);It([(0,Je.property)({type:Boolean,reflect:!0})],le.prototype,"selected",void 0);It([(0,Je.property)({type:Boolean})],le.prototype,"trailingIcon",void 0);It([(0,Je.property)({type:Boolean})],le.prototype,"unselectable",void 0);It([(0,Je.query)(".ft-switch-option--content slot")],le.prototype,"slottedContent",void 0);It([(0,Je.query)(".ft-switch-option--input")],le.prototype,"input",void 0);It([(0,Je.state)()],le.prototype,"isFocused",void 0);var tr=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},al=class extends CustomEvent{constructor(e){super("change",{detail:e})}},He=class extends li.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.displayFocusWhenUsingKeyboard=!1,this.options=[]}get value(){var e;return(e=this.selectedOption)===null||e===void 0?void 0:e.value}update(e){super.update(e),e.has("selectedOption")&&this.updateOptions(),e.has("unselectable")&&this.options.forEach(i=>i.unselectable=this.unselectable)}render(){let e={"ft-switch":!0,"ft-switch--dense":this.dense};return As.html`
946
951
  <div @keydown=${this.onKeyDown} tabindex="-1" class="${(0,Yp.classMap)(e)}" role="radiogroup" aria-label="${this.label}">
947
952
  <slot @slotchange=${this.onSlotchange}
948
953
  @option-change=${this.onOptionChangeByScript}
949
954
  @option-change-by-user=${this.onOptionChangeByUser}
950
955
  ></slot>
951
956
  </div>
952
- `}onKeyDown(e){let i;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(i=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(i=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.key==" "&&(i=this.options.indexOf(e.target)),i!=null&&(e.preventDefault(),this.options[this.fixIndex(i)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(i)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(i=>{i instanceof de&&this.registerOption(i)}),this.selectedOption=this.options.find(i=>i.selected)}registerOption(e){var i;(i=e.shadowRoot)===null||i===void 0||i.querySelectorAll("input").forEach(r=>{r.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let i=e.target;this.onOptionChange(i)}onOptionChangeByUser(e){var i;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new ol((i=this.selectedOption)===null||i===void 0?void 0:i.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(i=>i.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(i=>i.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};Be.elementDefinitions={};Be.styles=Ss.css`
957
+ `}onKeyDown(e){let i;(e.key=="ArrowDown"||e.key=="ArrowRight")&&(i=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),(e.key=="ArrowUp"||e.key=="ArrowLeft")&&(i=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),e.key==" "&&(i=this.options.indexOf(e.target)),i!=null&&(e.preventDefault(),this.options[this.fixIndex(i)].focus(),this.displayFocusWhenUsingKeyboard=!0,this.options[this.fixIndex(i)].selected=!0)}fixIndex(e){return e<0?this.options.length-1:e>this.options.length-1?0:e}onSlotchange(){var e;this.options=[],(e=this.slottedContent)===null||e===void 0||e.assignedElements().forEach(i=>{i instanceof le&&this.registerOption(i)}),this.selectedOption=this.options.find(i=>i.selected)}registerOption(e){var i;(i=e.shadowRoot)===null||i===void 0||i.querySelectorAll("input").forEach(r=>{r.setAttribute("tabindex","-1")}),e.setAttribute("tabindex","0"),e.unselectable=this.unselectable,this.options.push(e)}onOptionChangeByScript(e){e.stopPropagation();let i=e.target;this.onOptionChange(i)}onOptionChangeByUser(e){var i;e.stopPropagation(),this.displayFocusWhenUsingKeyboard=!1,this.onOptionChange(e.target),this.dispatchEvent(new al((i=this.selectedOption)===null||i===void 0?void 0:i.value))}onOptionChange(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(i=>i.selected)}private(e){e.selected?this.selectedOption=e:this.selectedOption=this.options.find(i=>i.selected)}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach(e=>{e.selected=e===this.selectedOption,this.displayFocusWhenUsingKeyboard&&(e.isFocused=e===this.selectedOption)})}};He.elementDefinitions={};He.styles=As.css`
953
958
  :host {
954
959
  display: inline-block;
955
960
  }
@@ -965,25 +970,25 @@
965
970
  }
966
971
 
967
972
  .ft-switch slot::slotted(ft-switch-option) {
968
- ${(0,li.setVariable)(Se.borderRadiusLeft,"0")};
969
- ${(0,li.setVariable)(Se.borderRadiusRight,"0")};
970
- ${(0,li.setVariable)(Se.borderWidthLeft,"0")};
973
+ ${(0,li.setVariable)(be.borderRadiusLeft,"0")};
974
+ ${(0,li.setVariable)(be.borderRadiusRight,"0")};
975
+ ${(0,li.setVariable)(be.borderWidthLeft,"0")};
971
976
  }
972
977
 
973
978
  .ft-switch slot::slotted(ft-switch-option:first-child) {
974
- ${(0,li.setVariable)(Se.borderRadiusLeft,se.borderRadius)};
975
- ${(0,li.setVariable)(Se.borderWidthLeft,"1px")};
979
+ ${(0,li.setVariable)(be.borderRadiusLeft,se.borderRadius)};
980
+ ${(0,li.setVariable)(be.borderWidthLeft,"1px")};
976
981
  }
977
982
 
978
983
  .ft-switch slot::slotted(ft-switch-option:last-child) {
979
- ${(0,li.setVariable)(Se.borderRadiusRight,se.borderRadius)};
984
+ ${(0,li.setVariable)(be.borderRadiusRight,se.borderRadius)};
980
985
  }
981
986
 
982
987
  .ft-switch--dense slot::slotted(ft-switch-option) {
983
988
  --switch-internal-vertical-padding: 2px;
984
989
  --switch-internal-horizontal-padding: 4px;
985
990
  }
986
- `;ir([(0,zt.property)({type:Boolean})],Be.prototype,"dense",void 0);ir([(0,zt.property)({type:Boolean})],Be.prototype,"unselectable",void 0);ir([(0,zt.property)()],Be.prototype,"label",void 0);ir([(0,zt.query)(".ft-switch slot")],Be.prototype,"slottedContent",void 0);ir([(0,zt.state)()],Be.prototype,"selectedOption",void 0);ir([(0,zt.state)()],Be.prototype,"displayFocusWhenUsingKeyboard",void 0);ir([(0,zt.query)(".ft-switch")],Be.prototype,"ftSwitchDiv",void 0);var Xp=c(h());var Zp={"ft-switch":Be,"ft-switch-option":de};(0,Xp.customElements)(Zp);var ci=c(h()),Jp=c(S());function ws(t){return Jp.css`
991
+ `;tr([(0,jt.property)({type:Boolean})],He.prototype,"dense",void 0);tr([(0,jt.property)({type:Boolean})],He.prototype,"unselectable",void 0);tr([(0,jt.property)()],He.prototype,"label",void 0);tr([(0,jt.query)(".ft-switch slot")],He.prototype,"slottedContent",void 0);tr([(0,jt.state)()],He.prototype,"selectedOption",void 0);tr([(0,jt.state)()],He.prototype,"displayFocusWhenUsingKeyboard",void 0);tr([(0,jt.query)(".ft-switch")],He.prototype,"ftSwitchDiv",void 0);var Xp=c(h());var Zp={"ft-switch":He,"ft-switch-option":le};(0,Xp.customElements)(Zp);var ci=c(h()),Jp=c(S());function _s(t){return Jp.css`
987
992
  [part="container"] {
988
993
  box-sizing: border-box;
989
994
  display: flex;
@@ -996,7 +1001,7 @@
996
1001
  flex-direction: row;
997
1002
  align-items: center;
998
1003
  margin-left: -6px;
999
- ${(0,ci.setVariable)(H.backgroundColor,t.starsBackgroundColor)}
1004
+ ${(0,ci.setVariable)(B.backgroundColor,t.starsBackgroundColor)}
1000
1005
  }
1001
1006
 
1002
1007
  [part="rating-container"],
@@ -1010,14 +1015,14 @@
1010
1015
  }
1011
1016
 
1012
1017
  [part="rating-container"] {
1013
- ${(0,ci.setVariable)(H.color,t.emptyRatingColor)};
1014
- ${(0,ci.setVariable)(H.rippleColor,t.filledRatingColor)};
1018
+ ${(0,ci.setVariable)(B.color,t.emptyRatingColor)};
1019
+ ${(0,ci.setVariable)(B.rippleColor,t.filledRatingColor)};
1015
1020
  ${(0,ci.setVariable)(se.textColor,t.emptyRatingColor)};
1016
1021
  ${(0,ci.setVariable)(se.selectedTextColor,t.filledRatingColor)};
1017
1022
  }
1018
1023
 
1019
1024
  [part="rating-container"] .rating-stars--active {
1020
- ${(0,ci.setVariable)(H.color,t.filledRatingColor)};
1025
+ ${(0,ci.setVariable)(B.color,t.filledRatingColor)};
1021
1026
  }
1022
1027
 
1023
1028
  [part="feedback-container"] {
@@ -1035,14 +1040,14 @@
1035
1040
 
1036
1041
  [part="send-feedback"],
1037
1042
  [part="send-feedback-link"] {
1038
- ${(0,ci.setVariable)(H.color,t.sendFeedbackColor)};
1039
- ${(0,ci.setVariable)(H.backgroundColor,t.sendFeedbackBackgroundColor)};
1043
+ ${(0,ci.setVariable)(B.color,t.sendFeedbackColor)};
1044
+ ${(0,ci.setVariable)(B.backgroundColor,t.sendFeedbackBackgroundColor)};
1040
1045
  }
1041
1046
 
1042
1047
  [part="buttons-container"] {
1043
1048
  align-self: flex-end;
1044
1049
  }
1045
- `}var ke=c(h());var Es={feedbackInputMinWidth:ke.FtCssVariableFactory.create("--ft-viewer-feedback-input-min-width","","SIZE","300px"),ratedDateColor:ke.FtCssVariableFactory.external(ke.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:ke.FtCssVariableFactory.extend("--ft-viewer-feedback-send-feedback-color","",ke.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:ke.FtCssVariableFactory.extend("--ft-viewer-feedback-send-feedback-background-color","",ke.designSystemVariables.colorPrimary),filledRatingColor:ke.FtCssVariableFactory.extend("--ft-viewer-feedback-filled-rating-color","",ke.designSystemVariables.colorPrimary),emptyRatingColor:ke.FtCssVariableFactory.extend("--ft-viewer-feedback-empty-rating-color","",ke.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:ke.FtCssVariableFactory.external(Jt.fontSize,"Typography"),sectionTitleFontSize:ke.FtCssVariableFactory.external(Qt.fontSize,"Typography"),starsBackgroundColor:ke.FtCssVariableFactory.create("--ft-viewer-feedback-stars-background-color","","COLOR",ke.designSystemVariables.colorSurface)};var pe=c(S()),fe=c(F()),Vr=c(h());var tf=c(S()),j=c(h());var Qp=c(S()),Z=c(h());var D={fontSize:Z.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Z.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Z.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Z.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Z.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Z.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Z.FtCssVariableFactory.extend("--ft-input-label-border-color","",Z.designSystemVariables.colorOutline),textColor:Z.FtCssVariableFactory.extend("--ft-input-label-text-color","",Z.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:Z.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",Z.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:Z.FtCssVariableFactory.extend("--ft-input-label-background-color","",Z.designSystemVariables.colorSurface),borderRadius:Z.FtCssVariableFactory.extend("--ft-input-label-border-radius","",Z.designSystemVariables.borderRadiusS),colorError:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorError,"Design system")},ef=Qp.css`
1050
+ `}var ke=c(h());var Cs={feedbackInputMinWidth:ke.FtCssVariableFactory.create("--ft-viewer-feedback-input-min-width","","SIZE","300px"),ratedDateColor:ke.FtCssVariableFactory.external(ke.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:ke.FtCssVariableFactory.extend("--ft-viewer-feedback-send-feedback-color","",ke.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:ke.FtCssVariableFactory.extend("--ft-viewer-feedback-send-feedback-background-color","",ke.designSystemVariables.colorPrimary),filledRatingColor:ke.FtCssVariableFactory.extend("--ft-viewer-feedback-filled-rating-color","",ke.designSystemVariables.colorPrimary),emptyRatingColor:ke.FtCssVariableFactory.extend("--ft-viewer-feedback-empty-rating-color","",ke.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:ke.FtCssVariableFactory.external(Jt.fontSize,"Typography"),sectionTitleFontSize:ke.FtCssVariableFactory.external(Qt.fontSize,"Typography"),starsBackgroundColor:ke.FtCssVariableFactory.create("--ft-viewer-feedback-stars-background-color","","COLOR",ke.designSystemVariables.colorSurface)};var de=c(S()),ue=c($()),Vr=c(h());var tf=c(S()),j=c(h());var Qp=c(S()),Z=c(h());var D={fontSize:Z.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:Z.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:Z.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:Z.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:Z.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:Z.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:Z.FtCssVariableFactory.extend("--ft-input-label-border-color","",Z.designSystemVariables.colorOutline),textColor:Z.FtCssVariableFactory.extend("--ft-input-label-text-color","",Z.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:Z.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",Z.designSystemVariables.colorOnSurfaceDisabled),backgroundColor:Z.FtCssVariableFactory.extend("--ft-input-label-background-color","",Z.designSystemVariables.colorSurface),borderRadius:Z.FtCssVariableFactory.extend("--ft-input-label-border-radius","",Z.designSystemVariables.borderRadiusS),colorError:Z.FtCssVariableFactory.external(Z.designSystemVariables.colorError,"Design system")},ef=Qp.css`
1046
1051
  .ft-input-label {
1047
1052
  position: absolute;
1048
1053
  inset: 0;
@@ -1136,7 +1141,7 @@
1136
1141
  border-radius: ${D.borderRadius};
1137
1142
  top: calc((${qe.lineHeight} / -2) + 2px);
1138
1143
  }
1139
- `;var K={fontSize:j.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:j.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:j.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:j.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:j.FtCssVariableFactory.extend("--ft-text-area-helper-color","",j.designSystemVariables.colorOnSurfaceMedium),colorPrimary:j.FtCssVariableFactory.external(j.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:j.FtCssVariableFactory.external(j.designSystemVariables.borderRadiusS,"Design system"),colorError:j.FtCssVariableFactory.external(j.designSystemVariables.colorError,"Design system")},rf=tf.css`
1144
+ `;var q={fontSize:j.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:j.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:j.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:j.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:j.FtCssVariableFactory.extend("--ft-text-area-helper-color","",j.designSystemVariables.colorOnSurfaceMedium),colorPrimary:j.FtCssVariableFactory.external(j.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:j.FtCssVariableFactory.external(j.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:j.FtCssVariableFactory.external(j.designSystemVariables.borderRadiusS,"Design system"),colorError:j.FtCssVariableFactory.external(j.designSystemVariables.colorError,"Design system")},rf=tf.css`
1140
1145
  *:focus {
1141
1146
  outline: none;
1142
1147
  }
@@ -1148,10 +1153,10 @@
1148
1153
  }
1149
1154
 
1150
1155
  ft-input-label {
1151
- ${(0,j.setVariable)(D.fontSize,K.fontSize)};
1152
- ${(0,j.setVariable)(D.raisedFontSize,K.labelSize)};
1153
- ${(0,j.setVariable)(D.verticalSpacing,K.verticalSpacing)};
1154
- ${(0,j.setVariable)(D.horizontalSpacing,K.horizontalSpacing)};
1156
+ ${(0,j.setVariable)(D.fontSize,q.fontSize)};
1157
+ ${(0,j.setVariable)(D.raisedFontSize,q.labelSize)};
1158
+ ${(0,j.setVariable)(D.verticalSpacing,q.verticalSpacing)};
1159
+ ${(0,j.setVariable)(D.horizontalSpacing,q.horizontalSpacing)};
1155
1160
  }
1156
1161
 
1157
1162
  .ft-text-area--main-panel {
@@ -1169,8 +1174,8 @@
1169
1174
  }
1170
1175
 
1171
1176
  .ft-text-area--input-panel ft-ripple {
1172
- ${(0,j.setVariable)(G.opacityContentOnSurfaceHover,"0.08")};
1173
- ${(0,j.setVariable)(G.opacityContentOnSurfacePressed,"0.04")};
1177
+ ${(0,j.setVariable)(K.opacityContentOnSurfaceHover,"0.08")};
1178
+ ${(0,j.setVariable)(K.opacityContentOnSurfacePressed,"0.04")};
1174
1179
  }
1175
1180
 
1176
1181
  .ft-text-area--input {
@@ -1182,12 +1187,12 @@
1182
1187
  align-self: stretch;
1183
1188
  resize: none;
1184
1189
 
1185
- ${(0,j.setVariable)(ot.fontSize,K.fontSize)};
1186
- ${(0,j.setVariable)(ot.lineHeight,K.fontSize)};
1187
- color: ${K.colorOnSurface};
1190
+ ${(0,j.setVariable)(ot.fontSize,q.fontSize)};
1191
+ ${(0,j.setVariable)(ot.lineHeight,q.fontSize)};
1192
+ color: ${q.colorOnSurface};
1188
1193
 
1189
- padding: 0 ${K.horizontalSpacing};
1190
- margin: calc(${K.verticalSpacing} + ${K.labelSize} / 2) 0 ${K.verticalSpacing} 0;
1194
+ padding: 0 ${q.horizontalSpacing};
1195
+ margin: calc(${q.verticalSpacing} + ${q.labelSize} / 2) 0 ${q.verticalSpacing} 0;
1191
1196
 
1192
1197
  border: none;
1193
1198
  background: none;
@@ -1196,7 +1201,7 @@
1196
1201
  }
1197
1202
 
1198
1203
  .ft-text-area--disabled .ft-text-area--input {
1199
- color: ${K.colorOnSurfaceDisabled};
1204
+ color: ${q.colorOnSurfaceDisabled};
1200
1205
  }
1201
1206
 
1202
1207
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -1204,39 +1209,39 @@
1204
1209
  }
1205
1210
 
1206
1211
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
1207
- ${(0,j.setVariable)(D.borderColor,K.colorPrimary)};
1208
- ${(0,j.setVariable)(D.textColor,K.colorPrimary)};
1212
+ ${(0,j.setVariable)(D.borderColor,q.colorPrimary)};
1213
+ ${(0,j.setVariable)(D.textColor,q.colorPrimary)};
1209
1214
  }
1210
1215
 
1211
1216
  .ft-text-area--filled .ft-text-area--input-panel {
1212
- border-radius: ${K.borderRadiusS} ${K.borderRadiusS} 0 0;
1217
+ border-radius: ${q.borderRadiusS} ${q.borderRadiusS} 0 0;
1213
1218
  }
1214
1219
 
1215
1220
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
1216
1221
  align-self: stretch;
1217
- margin-bottom: ${K.verticalSpacing};
1218
- margin-top: calc(${K.labelSize} + 2 * ${K.verticalSpacing});
1222
+ margin-bottom: ${q.verticalSpacing};
1223
+ margin-top: calc(${q.labelSize} + 2 * ${q.verticalSpacing});
1219
1224
  }
1220
1225
 
1221
1226
  .ft-text-area--outlined .ft-text-area--input-panel {
1222
- border-radius: ${K.borderRadiusS};
1227
+ border-radius: ${q.borderRadiusS};
1223
1228
  }
1224
1229
 
1225
1230
  .ft-text-area--helper-text {
1226
- padding: 0 12px 0 ${K.horizontalSpacing};
1227
- color: ${K.helperColor};
1231
+ padding: 0 12px 0 ${q.horizontalSpacing};
1232
+ color: ${q.helperColor};
1228
1233
  }
1229
1234
 
1230
1235
  .ft-text-area--in-error .ft-text-area--input,
1231
1236
  .ft-text-area--in-error .ft-text-area--helper-text {
1232
- color: ${K.colorError};
1237
+ color: ${q.colorError};
1233
1238
  }
1234
1239
 
1235
1240
  ft-resizer {
1236
1241
  position: absolute;
1237
1242
  bottom: 0;
1238
1243
  }
1239
- `;var Rs=c(S()),It=c(F()),mf=c(lt()),Wt=c(h());var _s=c(S()),ct=c(F()),Cs=c(h());var of=c(S()),Ur=c(h()),nf={colorOutline:Ur.FtCssVariableFactory.external(Ur.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:Ur.FtCssVariableFactory.external(Ur.designSystemVariables.colorOnSurfaceMedium,"Design system")},sf=of.css`
1244
+ `;var Ds=c(S()),Pt=c($()),mf=c(lt()),Kt=c(h());var Rs=c(S()),ct=c($()),Os=c(h());var of=c(S()),Ur=c(h()),nf={colorOutline:Ur.FtCssVariableFactory.external(Ur.designSystemVariables.colorOutline,"Design system"),colorOnSurfaceMedium:Ur.FtCssVariableFactory.external(Ur.designSystemVariables.colorOnSurfaceMedium,"Design system")},sf=of.css`
1240
1245
  :host {
1241
1246
  display: block;
1242
1247
  }
@@ -1255,10 +1260,10 @@
1255
1260
  [role="button"][aria-pressed="true"] ft-icon{
1256
1261
  color: ${nf.colorOnSurfaceMedium};
1257
1262
  }
1258
- `;var jt=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},As=class extends CustomEvent{constructor(e,i){super("resize",{detail:{width:e,height:i}})}},Ce=class extends Cs.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Pe.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return _s.html`
1263
+ `;var Wt=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Ts=class extends CustomEvent{constructor(e,i){super("resize",{detail:{width:e,height:i}})}},_e=class extends Os.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Pe.material,this.cursor="nwse-resize",this.ariaLabel="",this.dragging=!1,this.isAriaPressed=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=e=>this.doDrag(e.clientX,e.clientY),this.doDragFromTouch=e=>this.doDrag(e.touches[0].clientX,e.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return Rs.html`
1259
1264
  <style>
1260
1265
  .ft-resizer {
1261
- cursor: ${(0,_s.unsafeCSS)(this.cursor)}
1266
+ cursor: ${(0,Rs.unsafeCSS)(this.cursor)}
1262
1267
  }
1263
1268
  </style>
1264
1269
  <div class="ft-resizer ft-no-text-select ${this.dragging?"ft-resizer--dragging":""}"
@@ -1270,19 +1275,19 @@
1270
1275
  @keydown=${this.initKeydownPress}>
1271
1276
  <ft-icon .variant=${this.iconVariant} .value=${this.icon} focusable="false" aria-hidden="true"></ft-icon>
1272
1277
  </div>
1273
- `}initDragFromMouse(e){e.detail>0&&this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let i=e.key;["Enter"," ","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(i)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight;let n=e.currentTarget;i==="Enter"||i===" "?(this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())):i==="Escape"&&(this.isAriaPressed=!1,n.setAttribute("aria-pressed",this.isAriaPressed.toString())),this.isAriaPressed&&(i==="ArrowLeft"?this.fixedWidth-=10:i==="ArrowRight"?this.fixedWidth+=10:i==="ArrowUp"?this.fixedHeight-=10:i==="ArrowDown"&&(this.fixedHeight+=10),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(i)&&this.dispatchEvent(new As(this.fixedWidth,this.fixedHeight)))}initDrag(e,i){this.dragging=!0,this.startX=e,this.startY=i,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,i){let r=this.fixedWidth+e-this.startX,n=this.fixedHeight+i-this.startY;this.dispatchEvent(new As(r,n))}};Ce.elementDefinitions={"ft-icon":z};Ce.styles=[Cs.noTextSelect,sf];jt([(0,ct.property)({type:Number})],Ce.prototype,"initialWidth",void 0);jt([(0,ct.property)({type:Number})],Ce.prototype,"initialHeight",void 0);jt([(0,ct.property)()],Ce.prototype,"icon",void 0);jt([(0,ct.property)()],Ce.prototype,"iconVariant",void 0);jt([(0,ct.property)()],Ce.prototype,"cursor",void 0);jt([(0,ct.property)()],Ce.prototype,"ariaLabel",void 0);jt([(0,ct.state)()],Ce.prototype,"dragging",void 0);jt([(0,ct.state)()],Ce.prototype,"isAriaPressed",void 0);jt([(0,ct.eventOptions)({passive:!0})],Ce.prototype,"initDragFromMouse",null);jt([(0,ct.eventOptions)({passive:!0})],Ce.prototype,"initDragFromTouch",null);var lf=c(h());var af={"ft-resizer":Ce};(0,lf.customElements)(af);var Ts=c(F());var sl=c(S()),al=c(F());function cf(t,e,i){return t?e(t):i?.(t)}var uf=c(lt()),pf=c(h()),df=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},rr=class extends pf.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return sl.html`
1278
+ `}initDragFromMouse(e){e.detail>0&&this.initDrag(e.clientX,e.clientY)}initDragFromTouch(e){e.preventDefault(),e.stopPropagation(),this.initDrag(e.touches[0].clientX,e.touches[0].clientY)}initKeydownPress(e){let i=e.key;["Enter"," ","Escape","ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(i)&&(e.preventDefault(),e.stopPropagation()),this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight;let n=e.currentTarget;i==="Enter"||i===" "?(this.isAriaPressed=!this.isAriaPressed,n.setAttribute("aria-pressed",this.isAriaPressed.toString())):i==="Escape"&&(this.isAriaPressed=!1,n.setAttribute("aria-pressed",this.isAriaPressed.toString())),this.isAriaPressed&&(i==="ArrowLeft"?this.fixedWidth-=10:i==="ArrowRight"?this.fixedWidth+=10:i==="ArrowUp"?this.fixedHeight-=10:i==="ArrowDown"&&(this.fixedHeight+=10),["ArrowLeft","ArrowRight","ArrowUp","ArrowDown"].includes(i)&&this.dispatchEvent(new Ts(this.fixedWidth,this.fixedHeight)))}initDrag(e,i){this.dragging=!0,this.startX=e,this.startY=i,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(e,i){let r=this.fixedWidth+e-this.startX,n=this.fixedHeight+i-this.startY;this.dispatchEvent(new Ts(r,n))}};_e.elementDefinitions={"ft-icon":z};_e.styles=[Os.noTextSelect,sf];Wt([(0,ct.property)({type:Number})],_e.prototype,"initialWidth",void 0);Wt([(0,ct.property)({type:Number})],_e.prototype,"initialHeight",void 0);Wt([(0,ct.property)()],_e.prototype,"icon",void 0);Wt([(0,ct.property)()],_e.prototype,"iconVariant",void 0);Wt([(0,ct.property)()],_e.prototype,"cursor",void 0);Wt([(0,ct.property)()],_e.prototype,"ariaLabel",void 0);Wt([(0,ct.state)()],_e.prototype,"dragging",void 0);Wt([(0,ct.state)()],_e.prototype,"isAriaPressed",void 0);Wt([(0,ct.eventOptions)({passive:!0})],_e.prototype,"initDragFromMouse",null);Wt([(0,ct.eventOptions)({passive:!0})],_e.prototype,"initDragFromTouch",null);var lf=c(h());var af={"ft-resizer":_e};(0,lf.customElements)(af);var ks=c($());var ll=c(S()),cl=c($());function cf(t,e,i){return t?e(t):i?.(t)}var uf=c(lt()),pf=c(h()),df=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ir=class extends pf.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1}get inputLabelClasses(){return{}}render(){return ll.html`
1274
1279
  <div class="${(0,uf.classMap)(this.inputLabelClasses)}">
1275
- ${cf(this.text,()=>sl.html`
1280
+ ${cf(this.text,()=>ll.html`
1276
1281
  <div class="ft-input-label--text ft-typography--caption">
1277
1282
  <label class="ft-input-label--floating-text">${this.text}</label>
1278
1283
  <span class="ft-input-label--hidden-text" aria-hidden="true">${this.text}</span>
1279
1284
  </div>
1280
1285
  `)}
1281
1286
  </div>
1282
- `}};rr.elementDefinitions={};df([(0,al.property)({type:String})],rr.prototype,"text",void 0);df([(0,al.property)({type:Boolean})],rr.prototype,"raised",void 0);var ll=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},dt=class extends rr{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};dt.elementDefinitions={};dt.styles=[Po,ef];ll([(0,Ts.property)({type:Boolean})],dt.prototype,"outlined",void 0);ll([(0,Ts.property)({type:Boolean})],dt.prototype,"error",void 0);ll([(0,Ts.property)({type:Boolean})],dt.prototype,"disabled",void 0);var hf=c(h());var ff={"ft-input-label":dt};(0,hf.customElements)(ff);var St=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ve=class extends(0,Wt.toFtFormComponent)(Wt.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return Rs.html`
1287
+ `}};ir.elementDefinitions={};df([(0,cl.property)({type:String})],ir.prototype,"text",void 0);df([(0,cl.property)({type:Boolean})],ir.prototype,"raised",void 0);var dl=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},dt=class extends ir{constructor(){super(...arguments),this.outlined=!1,this.error=!1,this.disabled=!1}get inputLabelClasses(){return{"ft-input-label":!0,"ft-input-label--raised":this.raised,"ft-input-label--outlined":this.outlined,"ft-input-label--disabled":this.disabled,"ft-input-label--in-error":this.error}}};dt.elementDefinitions={};dt.styles=[No,ef];dl([(0,ks.property)({type:Boolean})],dt.prototype,"outlined",void 0);dl([(0,ks.property)({type:Boolean})],dt.prototype,"error",void 0);dl([(0,ks.property)({type:Boolean})],dt.prototype,"disabled",void 0);var hf=c(h());var ff={"ft-input-label":dt};(0,hf.customElements)(ff);var St=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ge=class extends(0,Kt.toFtFormComponent)(Kt.FtLitElement){constructor(){super(...arguments),this.label="",this.value="",this.helper="",this.outlined=!1,this.disabled=!1,this.error=!1,this.height=50,this.focused=!1}render(){let e={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return Ds.html`
1283
1288
  <style>
1284
1289
  .ft-text-area--main-panel {
1285
- height: calc(4 * ${K.verticalSpacing} + ${K.labelSize} + ${K.fontSize} + ${this.height}px);
1290
+ height: calc(4 * ${q.verticalSpacing} + ${q.labelSize} + ${q.fontSize} + ${this.height}px);
1286
1291
  }
1287
1292
 
1288
1293
  ft-resizer {
@@ -1299,7 +1304,7 @@
1299
1304
  aria-hidden="true"
1300
1305
  ></ft-input-label>
1301
1306
  <div class="ft-text-area--input-panel">
1302
- ${this.outlined?null:Rs.html`
1307
+ ${this.outlined?null:Ds.html`
1303
1308
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1304
1309
  `}
1305
1310
  <textarea
@@ -1319,12 +1324,12 @@
1319
1324
  cursor="ns-resize"
1320
1325
  ariaLabel="Resize text area"></ft-resizer>
1321
1326
  </div>
1322
- ${this.helper?Rs.html`
1327
+ ${this.helper?Ds.html`
1323
1328
  <ft-typography class="ft-text-area--helper-text" variant="${V.caption}">
1324
1329
  ${this.helper}
1325
1330
  </ft-typography>`:void 0}
1326
1331
  </div>
1327
- `}setValue(e,i=!1){this.value=e,this.setFormValue(e),i&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(!this.maxHeight||this.maxHeight>0&&e.detail.height<this.maxHeight)&&(this.height=e.detail.height)}};ve.elementDefinitions={"ft-input-label":dt,"ft-resizer":Ce,"ft-ripple":P,"ft-typography":U};ve.styles=[mi,rf];St([(0,It.property)({type:String})],ve.prototype,"label",void 0);St([(0,It.property)({reflect:!0})],ve.prototype,"value",void 0);St([(0,It.property)({type:String})],ve.prototype,"helper",void 0);St([(0,It.property)({type:Boolean})],ve.prototype,"outlined",void 0);St([(0,It.property)({type:Boolean})],ve.prototype,"disabled",void 0);St([(0,It.property)({type:Boolean})],ve.prototype,"error",void 0);St([(0,Wt.numberProperty)({reflect:!0})],ve.prototype,"height",void 0);St([(0,Wt.numberProperty)()],ve.prototype,"maxHeight",void 0);St([(0,It.query)("textarea")],ve.prototype,"textarea",void 0);St([(0,It.state)()],ve.prototype,"focused",void 0);St([(0,Wt.ignoreComposingEvents)()],ve.prototype,"onKeyDown",null);St([(0,Wt.ignoreComposingEvents)()],ve.prototype,"liveUpdateValueFromInputField",null);var yf=c(h());var gf={"ft-text-area":ve};(0,yf.customElements)(gf);var Of=c(br());var J=gt.build("integratedFeedbackComponent"),vf={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review",viewerFeedbackMainTitle:"Send feedback",viewerRatingSectionTitle:"Rate this content",viewerDichotomousRatingSectionTitle:"Did this content solve your problem?",viewerFeedbackSectionTitle:"Write your review"};var Os=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},ks=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ds=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var xf=c(S()),_=c(h());var L={fontSize:_.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:_.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:_.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:_.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:_.FtCssVariableFactory.extend("--ft-text-field-helper-color","",_.designSystemVariables.colorOnSurfaceMedium),colorPrimary:_.FtCssVariableFactory.external(_.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:_.FtCssVariableFactory.external(_.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:_.FtCssVariableFactory.external(_.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:_.FtCssVariableFactory.external(_.designSystemVariables.borderRadiusS,"Design system"),colorError:_.FtCssVariableFactory.external(_.designSystemVariables.colorError,"Design system"),prefixColor:_.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",_.designSystemVariables.colorOnSurfaceMedium),iconColor:_.FtCssVariableFactory.extend("--ft-text-field-icon-color","",_.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:_.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:_.FtCssVariableFactory.extend("--ft-text-field-background-color","",_.designSystemVariables.colorSurface),colorOutline:_.FtCssVariableFactory.external(_.designSystemVariables.colorOutline,"Design system"),elevation02:_.FtCssVariableFactory.external(_.designSystemVariables.elevation02,"Design system"),suggestSize:_.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},bf=xf.css`
1332
+ `}setValue(e,i=!1){this.value=e,this.setFormValue(e),i&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(e){(e.key==="Enter"||e.key===" ")&&e.stopPropagation()}updateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var e;this.value=((e=this.textarea)===null||e===void 0?void 0:e.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(e){e.detail.height>=50&&(!this.maxHeight||this.maxHeight>0&&e.detail.height<this.maxHeight)&&(this.height=e.detail.height)}};ge.elementDefinitions={"ft-input-label":dt,"ft-resizer":_e,"ft-ripple":P,"ft-typography":F};ge.styles=[mi,rf];St([(0,Pt.property)({type:String})],ge.prototype,"label",void 0);St([(0,Pt.property)({reflect:!0})],ge.prototype,"value",void 0);St([(0,Pt.property)({type:String})],ge.prototype,"helper",void 0);St([(0,Pt.property)({type:Boolean})],ge.prototype,"outlined",void 0);St([(0,Pt.property)({type:Boolean})],ge.prototype,"disabled",void 0);St([(0,Pt.property)({type:Boolean})],ge.prototype,"error",void 0);St([(0,Kt.numberProperty)({reflect:!0})],ge.prototype,"height",void 0);St([(0,Kt.numberProperty)()],ge.prototype,"maxHeight",void 0);St([(0,Pt.query)("textarea")],ge.prototype,"textarea",void 0);St([(0,Pt.state)()],ge.prototype,"focused",void 0);St([(0,Kt.ignoreComposingEvents)()],ge.prototype,"onKeyDown",null);St([(0,Kt.ignoreComposingEvents)()],ge.prototype,"liveUpdateValueFromInputField",null);var yf=c(h());var gf={"ft-text-area":ge};(0,yf.customElements)(gf);var Of=c(br());var J=gt.build("integratedFeedbackComponent"),vf={starsRating:"{0} stars","starsRating[\\=1]":"1 star",like:"Like",dislike:"Dislike",dichotomousYes:"Yes",dichotomousNo:"No",notRated:"Not rated",ratedNow:"Rated now",ratedToday:"Rated today",ratedOn:"Rated on {0, date}",feedbackInputLabel:"How can we improve it?",feedbackfromEmail:"Your email",feedbackfromEmailInvalid:"Please enter a valid email address",okButton:"Send feedback",cancelButton:"Cancel",moreOptionsButton:"More options",feedbackSuccess:"Feedback successfully sent. Thank you!",feedbackFailure:"Failed to send feedback. Please try again later.",ratingSuccess:"Rating successfully sent. Thank you!",ratingFailure:"Failed to send rating. Please try again later.",mapFeedbackMainTitle:"Send feedback",mapRatingSectionTitle:"Rate this document",mapDichotomousRatingSectionTitle:"Did it solve your problem?",mapFeedbackSectionTitle:"Write your review",topicFeedbackMainTitle:"Send feedback",topicRatingSectionTitle:"Rate this content",topicDichotomousRatingSectionTitle:"Did this content solve your problem?",topicFeedbackSectionTitle:"Write your review",viewerFeedbackMainTitle:"Send feedback",viewerRatingSectionTitle:"Rate this content",viewerDichotomousRatingSectionTitle:"Did this content solve your problem?",viewerFeedbackSectionTitle:"Write your review"};var Ls=class extends CustomEvent{constructor(e){super("live-change",{detail:e})}},Is=class extends CustomEvent{constructor(e){super("change",{detail:e})}},Ps=class extends CustomEvent{constructor(e){super("invalid",{detail:e})}};var xf=c(S()),C=c(h());var L={fontSize:C.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:C.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:C.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:C.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:C.FtCssVariableFactory.extend("--ft-text-field-helper-color","",C.designSystemVariables.colorOnSurfaceMedium),colorPrimary:C.FtCssVariableFactory.external(C.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:C.FtCssVariableFactory.external(C.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:C.FtCssVariableFactory.external(C.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:C.FtCssVariableFactory.external(C.designSystemVariables.borderRadiusS,"Design system"),colorError:C.FtCssVariableFactory.external(C.designSystemVariables.colorError,"Design system"),prefixColor:C.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",C.designSystemVariables.colorOnSurfaceMedium),iconColor:C.FtCssVariableFactory.extend("--ft-text-field-icon-color","",C.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:C.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),backgroundColor:C.FtCssVariableFactory.extend("--ft-text-field-background-color","",C.designSystemVariables.colorSurface),colorOutline:C.FtCssVariableFactory.external(C.designSystemVariables.colorOutline,"Design system"),elevation02:C.FtCssVariableFactory.external(C.designSystemVariables.elevation02,"Design system"),suggestSize:C.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},bf=xf.css`
1328
1333
  *:focus {
1329
1334
  outline: none;
1330
1335
  }
@@ -1338,11 +1343,11 @@
1338
1343
  }
1339
1344
 
1340
1345
  ft-input-label {
1341
- ${(0,_.setVariable)(D.fontSize,L.fontSize)};
1342
- ${(0,_.setVariable)(D.raisedFontSize,L.labelSize)};
1343
- ${(0,_.setVariable)(D.verticalSpacing,L.verticalSpacing)};
1344
- ${(0,_.setVariable)(D.horizontalSpacing,L.horizontalSpacing)};
1345
- ${(0,_.setVariable)(D.backgroundColor,L.backgroundColor)};
1346
+ ${(0,C.setVariable)(D.fontSize,L.fontSize)};
1347
+ ${(0,C.setVariable)(D.raisedFontSize,L.labelSize)};
1348
+ ${(0,C.setVariable)(D.verticalSpacing,L.verticalSpacing)};
1349
+ ${(0,C.setVariable)(D.horizontalSpacing,L.horizontalSpacing)};
1350
+ ${(0,C.setVariable)(D.backgroundColor,L.backgroundColor)};
1346
1351
  }
1347
1352
 
1348
1353
  .ft-text-field--main-panel {
@@ -1359,13 +1364,13 @@
1359
1364
  overflow: hidden;
1360
1365
  padding: 0 ${L.horizontalSpacing};
1361
1366
 
1362
- ${(0,_.setVariable)(ot.fontSize,L.fontSize)};
1363
- ${(0,_.setVariable)(ot.lineHeight,L.fontSize)};
1367
+ ${(0,C.setVariable)(ot.fontSize,L.fontSize)};
1368
+ ${(0,C.setVariable)(ot.lineHeight,L.fontSize)};
1364
1369
  }
1365
1370
 
1366
1371
  .ft-text-field--input-panel ft-ripple {
1367
- ${(0,_.setVariable)(G.opacityContentOnSurfaceHover,"0.08")};
1368
- ${(0,_.setVariable)(G.opacityContentOnSurfacePressed,"0.04")};
1372
+ ${(0,C.setVariable)(K.opacityContentOnSurfaceHover,"0.08")};
1373
+ ${(0,C.setVariable)(K.opacityContentOnSurfacePressed,"0.04")};
1369
1374
  }
1370
1375
 
1371
1376
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
@@ -1421,8 +1426,8 @@
1421
1426
  }
1422
1427
 
1423
1428
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1424
- ${(0,_.setVariable)(D.borderColor,L.colorPrimary)};
1425
- ${(0,_.setVariable)(D.textColor,L.colorPrimary)};
1429
+ ${(0,C.setVariable)(D.borderColor,L.colorPrimary)};
1430
+ ${(0,C.setVariable)(D.textColor,L.colorPrimary)};
1426
1431
  }
1427
1432
 
1428
1433
  .ft-text-field--filled .ft-text-field--input-panel {
@@ -1477,13 +1482,13 @@
1477
1482
  }
1478
1483
 
1479
1484
  .ft-text-field--with-icon {
1480
- ${(0,_.setVariable)(D.labelMaxWidth,`calc(100% - ${ge.size} - ${D.horizontalSpacing})`)};
1485
+ ${(0,C.setVariable)(D.labelMaxWidth,`calc(100% - ${he.size} - ${D.horizontalSpacing})`)};
1481
1486
  }
1482
1487
 
1483
1488
  .ft-text-field--with-password ft-icon:hover {
1484
1489
  cursor: pointer;
1485
1490
  }
1486
- `;var ue=c(S()),M=c(F()),_f=c(br()),Cf=c(lt());var ze=c(h());var Ef=c(h()),nr=c(S()),Kt=c(F());var Sf=c(S());var wf=Sf.css`
1491
+ `;var ce=c(S()),M=c($()),_f=c(br()),Cf=c(lt());var je=c(h());var Ef=c(h()),rr=c(S()),Gt=c($());var Sf=c(S());var wf=Sf.css`
1487
1492
  .ft-text-field-suggestion--suggestion {
1488
1493
  position: relative;
1489
1494
  padding: 8px 16px;
@@ -1529,7 +1534,7 @@
1529
1534
  slot {
1530
1535
  pointer-events: none;
1531
1536
  }
1532
- `;var Af=c(lt());var or=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},cl=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},dl=class extends CustomEvent{constructor(e){super("suggestion-removed",{detail:e,bubbles:!0,composed:!0})}},He=class extends Ef.FtLitElement{constructor(){super(...arguments),this.removable=!1}render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return nr.html`
1537
+ `;var Af=c(lt());var nr=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ul=class extends CustomEvent{constructor(e){super("suggestion-selected",{detail:e,bubbles:!0,composed:!0})}},pl=class extends CustomEvent{constructor(e){super("suggestion-removed",{detail:e,bubbles:!0,composed:!0})}},ze=class extends Ef.FtLitElement{constructor(){super(...arguments),this.removable=!1}render(){let e={"ft-text-field-suggestion":!0,"ft-text-field-suggestion--with-helper":!!this.helper};return rr.html`
1533
1538
  <div class="${(0,Af.classMap)(e)}">
1534
1539
  <div
1535
1540
  class="ft-text-field-suggestion--suggestion"
@@ -1538,17 +1543,17 @@
1538
1543
  @click=${this.selectSuggestion}
1539
1544
  >
1540
1545
  <ft-ripple></ft-ripple>
1541
- ${this.helper?nr.html`
1546
+ ${this.helper?rr.html`
1542
1547
  <ft-typography class="ft-text-field-suggestion--helper-text" variant="caption">
1543
1548
  ${this.helper}
1544
- </ft-typography>`:nr.nothing}
1549
+ </ft-typography>`:rr.nothing}
1545
1550
  <ft-typography part="label"
1546
1551
  variant="${V.body1}"
1547
1552
  class="ft-text-field-suggestion--label">
1548
1553
  <slot></slot>
1549
1554
  </ft-typography>
1550
1555
  </div>
1551
- ${this.removable?nr.html`
1556
+ ${this.removable?rr.html`
1552
1557
  <ft-button icon="${ii.CLOSE}"
1553
1558
  part="remove-button"
1554
1559
  class="ft-text-field-suggestion--remove"
@@ -1559,9 +1564,9 @@
1559
1564
  @keydown=${this.removeButtonKeyDown}
1560
1565
  @click=${this.removeSuggestion}>
1561
1566
  </ft-button>
1562
- `:nr.nothing}
1567
+ `:rr.nothing}
1563
1568
  </div>
1564
- `}focus(e,i){var r,n;i&&this.removable?(r=this.removeButton)===null||r===void 0||r.focus():(n=this.suggestion)===null||n===void 0||n.focus(e)}click(e){var i;(i=e?this.removeButton:this.suggestion)===null||i===void 0||i.click()}isRemoveButtonFocused(){var e,i;return(i=(e=this.removeButton)===null||e===void 0?void 0:e.matches(":focus-within"))!==null&&i!==void 0?i:!1}selectSuggestion(){this.dispatchEvent(new cl(this.getValue()))}removeSuggestion(){this.dispatchEvent(new dl(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}suggestionKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.selectSuggestion();break;case"ArrowRight":this.removable&&(e.preventDefault(),e.stopPropagation(),(i=this.removeButton)===null||i===void 0||i.focus());break}}removeButtonKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.removeSuggestion();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),(i=this.suggestion)===null||i===void 0||i.focus();break}}};He.elementDefinitions={"ft-ripple":P,"ft-typography":U,"ft-icon":z,"ft-button":R};He.styles=wf;or([(0,Kt.property)()],He.prototype,"value",void 0);or([(0,Kt.property)()],He.prototype,"helper",void 0);or([(0,Kt.property)({type:Boolean})],He.prototype,"removable",void 0);or([(0,Kt.property)()],He.prototype,"removeButtonLabel",void 0);or([(0,Kt.query)(".ft-text-field-suggestion--suggestion")],He.prototype,"suggestion",void 0);or([(0,Kt.query)(".ft-text-field-suggestion--remove")],He.prototype,"removeButton",void 0);or([(0,Kt.queryAssignedNodes)()],He.prototype,"assignedNodes",void 0);var $=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},A=class extends(0,ze.toFtFormComponent)(ze.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=ii.EYE_SLASH,this.passwordRevealedIcon=ii.EYE,this.filterSuggestions=!1,this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[],this.providedSuggestions=[]}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let i=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",i)}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let i={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},r=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),o=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||r,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return ue.html`
1569
+ `}focus(e,i){var r,n;i&&this.removable?(r=this.removeButton)===null||r===void 0||r.focus():(n=this.suggestion)===null||n===void 0||n.focus(e)}click(e){var i;(i=e?this.removeButton:this.suggestion)===null||i===void 0||i.click()}isRemoveButtonFocused(){var e,i;return(i=(e=this.removeButton)===null||e===void 0?void 0:e.matches(":focus-within"))!==null&&i!==void 0?i:!1}selectSuggestion(){this.dispatchEvent(new ul(this.getValue()))}removeSuggestion(){this.dispatchEvent(new pl(this.getValue()))}getValue(){return this.value||this.getTextContent()}getTextContent(){return this.assignedNodes.map(e=>e.textContent).join("").trim()}suggestionKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.selectSuggestion();break;case"ArrowRight":this.removable&&(e.preventDefault(),e.stopPropagation(),(i=this.removeButton)===null||i===void 0||i.focus());break}}removeButtonKeyDown(e){var i;switch(e.key){case"Enter":case" ":e.preventDefault(),e.stopPropagation(),this.removeSuggestion();break;case"ArrowLeft":e.preventDefault(),e.stopPropagation(),(i=this.suggestion)===null||i===void 0||i.focus();break}}};ze.elementDefinitions={"ft-ripple":P,"ft-typography":F,"ft-icon":z,"ft-button":k};ze.styles=wf;nr([(0,Gt.property)()],ze.prototype,"value",void 0);nr([(0,Gt.property)()],ze.prototype,"helper",void 0);nr([(0,Gt.property)({type:Boolean})],ze.prototype,"removable",void 0);nr([(0,Gt.property)()],ze.prototype,"removeButtonLabel",void 0);nr([(0,Gt.query)(".ft-text-field-suggestion--suggestion")],ze.prototype,"suggestion",void 0);nr([(0,Gt.query)(".ft-text-field-suggestion--remove")],ze.prototype,"removeButton",void 0);nr([(0,Gt.queryAssignedNodes)()],ze.prototype,"assignedNodes",void 0);var N=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},_=class extends(0,je.toFtFormComponent)(je.FtLitElement){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=ii.EYE_SLASH,this.passwordRevealedIcon=ii.EYE,this.filterSuggestions=!1,this.password=!1,this.hideCurrentValueSuggestion=!1,this.focused=!1,this.inputValid=!0,this.hidePassword=!0,this.hideSuggestions=!0,this.visibleSuggestions=[],this.providedSuggestions=[],this.showSuggestionsOnFocus=!0}get value(){return this._value||""}set value(e){this.setInternalValue(e||""),this.dispatchedValue=e||""}setInternalValue(e){let i=this._value;this._value=e||"",this.setFormValue(this._value),this.requestUpdate("value",i)}focusWithoutSuggestions(){this.showSuggestionsOnFocus=!1,this.focus(),this.showSuggestionsOnFocus=!0}focus(){var e;(e=this.input)===null||e===void 0||e.focus()}blur(){var e;(e=this.input)===null||e===void 0||e.blur()}render(){var e;let i={"ft-text-field":!0,"ft-text-field--filled":!this.outlined,"ft-text-field--outlined":this.outlined,"ft-text-field--disabled":this.disabled,"ft-text-field--has-value":!!this.value,"ft-text-field--with-label":!!this.label,"ft-text-field--in-error":!this.inputValid||this.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":!this.suggestionsShouldBeDisplayed(),"ft-text-field--raised-label":this.focused||this.value!="","ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.isPasswordField()},r=this.suggestionsProvider&&this.value&&this.value!=""&&!this.providedSuggestions.map(a=>a.label).includes(this.value),o=!this.suggestionsProvider&&this.filterSuggestions&&this.value&&this.value!=""||r,s=this.inputValid?this.helper:(e=this.input)===null||e===void 0?void 0:e.validationMessage;return ce.html`
1565
1570
  <div class="${(0,Cf.classMap)(i)}">
1566
1571
  <div class="ft-text-field--main-panel"
1567
1572
  @keydown=${this.handleKeyboardNavigation}
@@ -1572,14 +1577,14 @@
1572
1577
  ?raised=${this.focused||this.value!=""}
1573
1578
  ?error=${!this.inputValid||this.error}></ft-input-label>
1574
1579
  <div class="ft-text-field--input-panel">
1575
- ${this.outlined?ue.nothing:ue.html`
1580
+ ${this.outlined?ce.nothing:ce.html`
1576
1581
  <ft-ripple ?disabled=${this.disabled} activated></ft-ripple>
1577
1582
  `}
1578
- ${this.prefix?ue.html`
1583
+ ${this.prefix?ce.html`
1579
1584
  <ft-typography class="ft-text-field--prefix" variant="body1">
1580
1585
  ${this.prefix}
1581
1586
  </ft-typography>
1582
- `:ue.nothing}
1587
+ `:ce.nothing}
1583
1588
  <input type="${this.resolveInputType()}"
1584
1589
  name="${Dt(this.name)}"
1585
1590
  maxlength="${Dt(this.maxLength||void 0)}"
@@ -1604,50 +1609,50 @@
1604
1609
  @suggestion-removed=${this.onSuggestionRemoved}
1605
1610
  >
1606
1611
  ${this.renderSuggestions()}
1607
- ${!this.hideCurrentValueSuggestion&&o?ue.html`
1612
+ ${!this.hideCurrentValueSuggestion&&o?ce.html`
1608
1613
  <ft-text-field-suggestion
1609
1614
  class="ft-text-field-suggestion--new-value"
1610
1615
  part="suggestion current-value-suggestion"
1611
1616
  helper="${this.suggestionsHelper}">
1612
1617
  ${this.value}
1613
1618
  </ft-text-field-suggestion>
1614
- `:ue.nothing}
1619
+ `:ce.nothing}
1615
1620
  </div>
1616
1621
  </div>
1617
- ${s?ue.html`
1622
+ ${s?ce.html`
1618
1623
  <ft-typography class="ft-text-field--helper-text" variant="${V.caption}" id="helper" role="alert">
1619
1624
  ${s}
1620
1625
  </ft-typography>
1621
- `:ue.nothing}
1626
+ `:ce.nothing}
1622
1627
  </div>
1623
- `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?ue.html`
1624
- ${(0,_f.repeat)(this.providedSuggestions,e=>{var i,r;return ue.html`
1628
+ `}resolveInputType(){var e;return this.isPasswordField()?this.hidePassword?"password":"text":(e=this.type)!==null&&e!==void 0?e:"text"}renderSuggestions(){return this.suggestionsProvider?ce.html`
1629
+ ${(0,_f.repeat)(this.providedSuggestions,e=>{var i,r;return ce.html`
1625
1630
  <ft-text-field-suggestion part="suggestion"
1626
1631
  value="${e.value}"
1627
1632
  ?removable=${e.removable} }
1628
- removeButtonLabel="${(i=e.removeButtonLabel)!==null&&i!==void 0?i:ue.nothing}"
1629
- @suggestion-selected=${(r=e.selectedHandler)!==null&&r!==void 0?r:ue.nothing}
1633
+ removeButtonLabel="${(i=e.removeButtonLabel)!==null&&i!==void 0?i:ce.nothing}"
1634
+ @suggestion-selected=${(r=e.selectedHandler)!==null&&r!==void 0?r:ce.nothing}
1630
1635
  >
1631
- ${e.icon?ue.html`
1632
- <ft-icon .value=${e.icon}></ft-icon>`:ue.nothing}
1636
+ ${e.icon?ce.html`
1637
+ <ft-icon .value=${e.icon}></ft-icon>`:ce.nothing}
1633
1638
  ${e.label}
1634
1639
  </ft-text-field-suggestion>
1635
1640
  `})}
1636
- `:ue.html`
1641
+ `:ce.html`
1637
1642
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1638
- `}renderPasswordIcon(){return ue.html`
1643
+ `}renderPasswordIcon(){return ce.html`
1639
1644
  <ft-icon class="ft-text-field--icon"
1640
1645
  .variant=${this.iconVariant}
1641
1646
  .value=${this.hidePassword?this.passwordHiddenIcon:this.passwordRevealedIcon}
1642
1647
  @click=${()=>this.togglePasswordVisibility()}></ft-icon>
1643
- `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?ue.html`
1648
+ `}renderIcon(){return this.isPasswordField()?this.renderPasswordIcon():this.icon?ce.html`
1644
1649
  <ft-icon class="ft-text-field--icon"
1645
1650
  .variant=${this.iconVariant}
1646
1651
  .value=${this.icon}
1647
1652
  @click=${()=>{var e;return(e=this.input)===null||e===void 0?void 0:e.focus()}}></ft-icon>
1648
- `:ue.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&e.get("value")!=null&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&e.get("dispatchedValue")!=null&&(this.hideSuggestions=!0)}async updateSuggestions(){var e;if(this.suggestionsProvider){(e=this.cancelableSuggest)===null||e===void 0||e.cancel();let i=this.suggestionsProvider(this.value);i instanceof Promise?(this.cancelableSuggest=(0,ze.cancelable)(i),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=i)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion]),this.hideSuggestions=this.visibleSuggestions.length<=0}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&this.setSuggestionPosition(),e.has("providedSuggestions")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var i,r,n;!((i=this.input)===null||i===void 0)&&i.matches(":autofill")&&this.dispatchedValue!==((r=this.input)===null||r===void 0?void 0:r.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,i=!1){var r,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new Os(e))),i&&this.dispatchedValue!==e&&(this.inputValid=(n=(r=this.input)===null||r===void 0?void 0:r.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new ks(e))):this.dispatchEvent(new Ds(this.input.validationMessage)))}handleInput(e){var i;let r=((i=this.input)===null||i===void 0?void 0:i.value)||"";this.setValue(r,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var i,r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(s=>s.matches(":focus-within")),o;e.key==="ArrowDown"?o=n<this.visibleSuggestions.length-1?n+1:0:o=n>0?n-1:this.visibleSuggestions.length-1,(i=this.visibleSuggestions[o])===null||i===void 0||i.focus(void 0,(r=this.visibleSuggestions[n])===null||r===void 0?void 0:r.isRemoveButtonFocused())}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){var i;this.setValue(e.detail,!0),(i=this.input)===null||i===void 0||i.focus(),setTimeout(()=>this.hideSuggestions=!0,0)}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var e,i;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((i=this.input)===null||i===void 0?void 0:i.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,ze.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:i,y:r})=>{this.suggestionsContainer.style.left=`${i}px`,this.suggestionsContainer.style.top=`${r}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};A.elementDefinitions={"ft-input-label":dt,"ft-ripple":P,"ft-typography":U,"ft-icon":z,"ft-text-field-suggestion":He};A.styles=[mi,ze.noTextInputDefaultClearButton,bf];$([(0,M.property)()],A.prototype,"label",void 0);$([(0,M.property)({noAccessor:!0})],A.prototype,"value",null);$([(0,M.state)()],A.prototype,"dispatchedValue",void 0);$([(0,M.property)()],A.prototype,"helper",void 0);$([(0,M.property)()],A.prototype,"suggestionsHelper",void 0);$([(0,M.property)({type:Boolean})],A.prototype,"outlined",void 0);$([(0,M.property)({type:Boolean})],A.prototype,"disabled",void 0);$([(0,M.property)({type:Boolean})],A.prototype,"error",void 0);$([(0,M.property)({type:Boolean})],A.prototype,"fixedMenuPosition",void 0);$([(0,M.property)()],A.prototype,"prefix",void 0);$([(0,M.property)()],A.prototype,"icon",void 0);$([(0,M.property)()],A.prototype,"name",void 0);$([(0,M.property)()],A.prototype,"type",void 0);$([(0,M.property)()],A.prototype,"passwordHiddenIcon",void 0);$([(0,M.property)()],A.prototype,"passwordRevealedIcon",void 0);$([(0,M.property)()],A.prototype,"iconVariant",void 0);$([(0,M.property)({type:Boolean})],A.prototype,"filterSuggestions",void 0);$([(0,ze.numberProperty)()],A.prototype,"maxLength",void 0);$([(0,M.property)({type:Boolean})],A.prototype,"password",void 0);$([(0,M.property)({type:String})],A.prototype,"autocomplete",void 0);$([(0,M.property)({attribute:!1})],A.prototype,"suggestionsProvider",void 0);$([(0,M.property)({type:Boolean})],A.prototype,"hideCurrentValueSuggestion",void 0);$([(0,M.state)()],A.prototype,"focused",void 0);$([(0,M.state)()],A.prototype,"inputValid",void 0);$([(0,M.state)()],A.prototype,"hidePassword",void 0);$([(0,M.state)()],A.prototype,"hideSuggestions",void 0);$([(0,M.state)()],A.prototype,"visibleSuggestions",void 0);$([(0,M.state)()],A.prototype,"providedSuggestions",void 0);$([(0,M.query)(".ft-text-field--main-panel")],A.prototype,"mainPanel",void 0);$([(0,M.query)(".ft-text-field--input")],A.prototype,"input",void 0);$([(0,M.query)(".ft-text-field-suggestion--new-value")],A.prototype,"newValueSuggestion",void 0);$([(0,M.query)(".ft-text-field--suggestions")],A.prototype,"suggestionsContainer",void 0);$([(0,M.queryAll)("ft-text-field-suggestion")],A.prototype,"providedSuggestionsInDom",void 0);$([(0,M.queryAssignedElements)({selector:"ft-text-field-suggestion"})],A.prototype,"slottedSuggestions",void 0);$([(0,ze.ignoreComposingEvents)()],A.prototype,"handleInput",null);$([(0,ze.ignoreComposingEvents)()],A.prototype,"catchComposingEvents",null);var Rf=c(h());var Tf={"ft-text-field":A,"ft-text-field-suggestion":He};(0,Rf.customElements)(Tf);var Ls=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}};var we=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Q=class extends yt(Vr.FtLitElementRedux){constructor(){super(),this.hideTitle=!1,this.withMoreOptionsButton=!1,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.canAccessFeedback=!1,this.canRateThisContent=!1,this.from="",this.feedbackMessage="",this.addI18nContext(J,vf),this.addStore(v)}get configuredRatingType(){var e,i;return(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&i!==void 0?i:Ae.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,i,r;return(r=(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||i===void 0?void 0:i.type)!==null&&r!==void 0?r:Ae.NO_RATING}get ratingValue(){var e,i,r;return(r=(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||i===void 0?void 0:i.value)!==null&&r!==void 0?r:-1}get ratingDate(){var e,i;let r=(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||i===void 0?void 0:i.date;return typeof r=="string"?(0,Vr.parseDate)(r):r}render(){return!this.canAccessFeedback&&!this.canRateThisContent?pe.nothing:pe.html`
1653
+ `:ce.nothing}update(e){super.update(e),(e.has("value")||e.has("filterSuggestions")||e.has("suggestionsProvider"))&&this.updateSuggestions(),e.has("value")&&this.value&&(this.hideSuggestions=!1),e.has("dispatchedValue")&&(this.hideSuggestions=!0)}async updateSuggestions(){var e;if(this.suggestionsProvider){(e=this.cancelableSuggest)===null||e===void 0||e.cancel();let i=this.suggestionsProvider(this.value);i instanceof Promise?(this.cancelableSuggest=(0,je.cancelable)(i),this.providedSuggestions=await this.cancelableSuggest):(this.cancelableSuggest=void 0,this.providedSuggestions=i)}else this.filterSuggestionsIfNeeded()}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.slottedSuggestions.forEach(e=>e.hidden=!e.getValue().toLowerCase().includes(this.value.toLowerCase())),this.visibleSuggestions=this.slottedSuggestions.filter(e=>!e.hidden)):this.visibleSuggestions=this.slottedSuggestions,this.newValueSuggestion&&(this.visibleSuggestions=[...this.visibleSuggestions,this.newValueSuggestion])}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("providedSuggestions")&&this.suggestionsProvider&&(this.visibleSuggestions=[...this.providedSuggestionsInDom]),e.has("autocomplete")&&this.setupWatchAutofill(),this.suggestionsShouldBeDisplayed()&&this.setSuggestionPosition()}setupWatchAutofill(){var e;this.clearWatchAutofill(),((e=this.autocomplete)!==null&&e!==void 0?e:"off")!=="off"&&(this.watchAutofillInterval=setInterval(()=>{var i,r,n;!((i=this.input)===null||i===void 0)&&i.matches(":autofill")&&this.dispatchedValue!==((r=this.input)===null||r===void 0?void 0:r.value)&&this.setValue((n=this.input)===null||n===void 0?void 0:n.value,!0)},200))}clearWatchAutofill(){this.watchAutofillInterval&&clearInterval(this.watchAutofillInterval)}connectedCallback(){super.connectedCallback(),this.setupWatchAutofill()}disconnectedCallback(){super.disconnectedCallback(),this.clearWatchAutofill()}setValue(e,i=!1){var r,n;this.value!==e&&(this.inputValid=!0,this.setInternalValue(e),this.dispatchEvent(new Ls(e))),i&&this.dispatchedValue!==e&&(this.inputValid=(n=(r=this.input)===null||r===void 0?void 0:r.checkValidity())!==null&&n!==void 0?n:!0,this.inputValid?(this.dispatchedValue=e,this.dispatchEvent(new Is(e))):this.dispatchEvent(new Ps(this.input.validationMessage)))}handleInput(e){var i;let r=((i=this.input)===null||i===void 0?void 0:i.value)||"";this.setValue(r,e.key=="Escape"||e.key=="Enter")}catchComposingEvents(e){}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(e){var i,r;if(e.key==="ArrowDown"||e.key==="ArrowUp"){e.preventDefault(),e.stopPropagation(),this.hideSuggestions=!1;let n=this.visibleSuggestions.findIndex(s=>s.matches(":focus-within")),o;e.key==="ArrowDown"?o=n<this.visibleSuggestions.length-1?n+1:0:o=n>0?n-1:this.visibleSuggestions.length-1,(i=this.visibleSuggestions[o])===null||i===void 0||i.focus(void 0,(r=this.visibleSuggestions[n])===null||r===void 0?void 0:r.isRemoveButtonFocused())}(e.key=="Escape"||e.key=="Enter")&&(this.hideSuggestions=!0)}onSuggestionSelected(e){this.setValue(e.detail,!0),this.focusWithoutSuggestions(),this.hideSuggestions=!0}onSuggestionRemoved(){setTimeout(()=>this.updateSuggestions())}onFocus(){this.focused=!0,this.showSuggestionsOnFocus&&(this.hideSuggestions=!1)}onMainPanelBlur(){var e,i;!((e=this.mainPanel)===null||e===void 0)&&e.matches(":focus-within")||(this.focused=!1,this.setValue(((i=this.input)===null||i===void 0?void 0:i.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}isPasswordField(){return this.password||this.type==="password"}setSuggestionPosition(){this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px";let e=["bottom","top"];(0,je.computeOffsetAutoPosition)(this.mainPanel,this.suggestionsContainer,"bottom",e,"fixed","--text-field-internal-suggest-size",0).then(({x:i,y:r})=>{this.suggestionsContainer.style.left=`${i}px`,this.suggestionsContainer.style.top=`${r}px`})}suggestionsShouldBeDisplayed(){return!this.hideSuggestions&&(this.visibleSuggestions.length||this.providedSuggestions.length)}};_.elementDefinitions={"ft-input-label":dt,"ft-ripple":P,"ft-typography":F,"ft-icon":z,"ft-text-field-suggestion":ze};_.styles=[mi,je.noTextInputDefaultClearButton,bf];N([(0,M.property)()],_.prototype,"label",void 0);N([(0,M.property)({noAccessor:!0})],_.prototype,"value",null);N([(0,M.state)()],_.prototype,"dispatchedValue",void 0);N([(0,M.property)()],_.prototype,"helper",void 0);N([(0,M.property)()],_.prototype,"suggestionsHelper",void 0);N([(0,M.property)({type:Boolean})],_.prototype,"outlined",void 0);N([(0,M.property)({type:Boolean})],_.prototype,"disabled",void 0);N([(0,M.property)({type:Boolean})],_.prototype,"error",void 0);N([(0,M.property)({type:Boolean})],_.prototype,"fixedMenuPosition",void 0);N([(0,M.property)()],_.prototype,"prefix",void 0);N([(0,M.property)()],_.prototype,"icon",void 0);N([(0,M.property)()],_.prototype,"name",void 0);N([(0,M.property)()],_.prototype,"type",void 0);N([(0,M.property)()],_.prototype,"passwordHiddenIcon",void 0);N([(0,M.property)()],_.prototype,"passwordRevealedIcon",void 0);N([(0,M.property)()],_.prototype,"iconVariant",void 0);N([(0,M.property)({type:Boolean})],_.prototype,"filterSuggestions",void 0);N([(0,je.numberProperty)()],_.prototype,"maxLength",void 0);N([(0,M.property)({type:Boolean})],_.prototype,"password",void 0);N([(0,M.property)({type:String})],_.prototype,"autocomplete",void 0);N([(0,M.property)({attribute:!1})],_.prototype,"suggestionsProvider",void 0);N([(0,M.property)({type:Boolean})],_.prototype,"hideCurrentValueSuggestion",void 0);N([(0,M.state)()],_.prototype,"focused",void 0);N([(0,M.state)()],_.prototype,"inputValid",void 0);N([(0,M.state)()],_.prototype,"hidePassword",void 0);N([(0,M.state)()],_.prototype,"hideSuggestions",void 0);N([(0,M.state)()],_.prototype,"visibleSuggestions",void 0);N([(0,M.state)()],_.prototype,"providedSuggestions",void 0);N([(0,M.query)(".ft-text-field--main-panel")],_.prototype,"mainPanel",void 0);N([(0,M.query)(".ft-text-field--input")],_.prototype,"input",void 0);N([(0,M.query)(".ft-text-field-suggestion--new-value")],_.prototype,"newValueSuggestion",void 0);N([(0,M.query)(".ft-text-field--suggestions")],_.prototype,"suggestionsContainer",void 0);N([(0,M.queryAll)("ft-text-field-suggestion")],_.prototype,"providedSuggestionsInDom",void 0);N([(0,M.queryAssignedElements)({selector:"ft-text-field-suggestion"})],_.prototype,"slottedSuggestions",void 0);N([(0,je.ignoreComposingEvents)()],_.prototype,"handleInput",null);N([(0,je.ignoreComposingEvents)()],_.prototype,"catchComposingEvents",null);var Rf=c(h());var Tf={"ft-text-field":_,"ft-text-field-suggestion":ze};(0,Rf.customElements)(Tf);var Ms=class extends CustomEvent{constructor(e){super("send-feedback",{detail:e})}};var Se=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Q=class extends yt(Vr.FtLitElementRedux){constructor(){super(),this.hideTitle=!1,this.withMoreOptionsButton=!1,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.canAccessFeedback=!1,this.canRateThisContent=!1,this.from="",this.feedbackMessage="",this.addI18nContext(J,vf),this.addStore(v)}get configuredRatingType(){var e,i;return(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&i!==void 0?i:Ee.NO_RATING}get ratingTypeOfDoneRatingOfThisContent(){var e,i,r;return(r=(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||i===void 0?void 0:i.type)!==null&&r!==void 0?r:Ee.NO_RATING}get ratingValue(){var e,i,r;return(r=(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||i===void 0?void 0:i.value)!==null&&r!==void 0?r:-1}get ratingDate(){var e,i;let r=(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.rating)===null||i===void 0?void 0:i.date;return typeof r=="string"?(0,Vr.parseDate)(r):r}render(){return!this.canAccessFeedback&&!this.canRateThisContent?de.nothing:de.html`
1649
1654
  <div part="container">
1650
- ${this.hideTitle?pe.nothing:pe.html`
1655
+ ${this.hideTitle?de.nothing:de.html`
1651
1656
  <ft-typography variant="${V.title}" part="main-title">
1652
1657
  ${this.i18n(this.i18nProperties.feedbackMainTitle)}
1653
1658
  </ft-typography>
@@ -1655,19 +1660,19 @@
1655
1660
  ${this.renderRatingSection()}
1656
1661
  ${this.renderFeedbackSection()}
1657
1662
  </div>
1658
- `}renderRatingSection(){var e;return this.canRateThisContent?pe.html`
1663
+ `}renderRatingSection(){var e;return this.canRateThisContent?de.html`
1659
1664
  <div part="rating-container">
1660
1665
  <ft-typography variant="${V.title_dense}" part="section-title">
1661
- ${this.i18n(((e=this.ratingSummary)===null||e===void 0?void 0:e.type)===Ae.DICHOTOMOUS?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
1666
+ ${this.i18n(((e=this.ratingSummary)===null||e===void 0?void 0:e.type)===Ee.DICHOTOMOUS?this.i18nProperties.dichotomousRatingSectionTitle:this.i18nProperties.ratingSectionTitle)}
1662
1667
  </ft-typography>
1663
1668
  ${this.renderRating()}
1664
1669
  <ft-typography variant="${V.caption}" part="rating-date">
1665
1670
  ${this.renderRatingDate()}
1666
1671
  </ft-typography>
1667
1672
  </div>
1668
- `:pe.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return J.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return J.messages.ratedNow();let i=new Date().toLocaleDateString(),r=e.toLocaleDateString();return i===r?J.messages.ratedToday():J.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case Ae.STARS:return pe.html`
1673
+ `:de.nothing}renderRatingDate(){let e=this.ratingDate;if(e==null)return J.messages.notRated();if(e.getTime()>new Date().getTime()-6e4)return J.messages.ratedNow();let i=new Date().toLocaleDateString(),r=e.toLocaleDateString();return i===r?J.messages.ratedToday():J.messages.ratedOn(e)}renderRating(){switch(this.configuredRatingType){case Ee.STARS:return de.html`
1669
1674
  <div part="rating rating-stars">
1670
- ${(0,Of.repeat)(new Array(5),(e,i)=>i,(e,i)=>{let r=this.ratingTypeOfDoneRatingOfThisContent===Ae.STARS&&this.ratingValue>i,n=i+1;return pe.html`
1675
+ ${(0,Of.repeat)(new Array(5),(e,i)=>i,(e,i)=>{let r=this.ratingTypeOfDoneRatingOfThisContent===Ee.STARS&&this.ratingValue>i,n=i+1;return de.html`
1671
1676
  <ft-button round part="rating-stars-${n}"
1672
1677
  label="${J.messages.starsRating(n)}"
1673
1678
  tooltipPosition="top"
@@ -1678,7 +1683,7 @@
1678
1683
  ></ft-button>
1679
1684
  `})}
1680
1685
  </div>
1681
- `;case Ae.LIKE:{let e=this.ratingTypeOfDoneRatingOfThisContent===Ae.LIKE&&this.ratingValue===0,i=this.ratingTypeOfDoneRatingOfThisContent===Ae.LIKE&&this.ratingValue===1;return pe.html`
1686
+ `;case Ee.LIKE:{let e=this.ratingTypeOfDoneRatingOfThisContent===Ee.LIKE&&this.ratingValue===0,i=this.ratingTypeOfDoneRatingOfThisContent===Ee.LIKE&&this.ratingValue===1;return de.html`
1682
1687
  <ft-switch unselectable
1683
1688
  @change=${r=>this.rate(r.detail)}
1684
1689
  part="rating rating-like"
@@ -1698,7 +1703,7 @@
1698
1703
  ${J.messages.dislike()}
1699
1704
  </ft-switch-option>
1700
1705
  </ft-switch>
1701
- `}case Ae.DICHOTOMOUS:{let e=this.ratingTypeOfDoneRatingOfThisContent===Ae.DICHOTOMOUS&&this.ratingValue===0,i=this.ratingTypeOfDoneRatingOfThisContent===Ae.DICHOTOMOUS&&this.ratingValue===1;return pe.html`
1706
+ `}case Ee.DICHOTOMOUS:{let e=this.ratingTypeOfDoneRatingOfThisContent===Ee.DICHOTOMOUS&&this.ratingValue===0,i=this.ratingTypeOfDoneRatingOfThisContent===Ee.DICHOTOMOUS&&this.ratingValue===1;return de.html`
1702
1707
  <ft-switch unselectable
1703
1708
  @change=${r=>this.rate(r.detail)}
1704
1709
  part="rating rating-dichotomous">
@@ -1711,31 +1716,31 @@
1711
1716
  ${J.messages.dichotomousNo()}
1712
1717
  </ft-switch-option>
1713
1718
  </ft-switch>
1714
- `}}return pe.nothing}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,i,r,n,o;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),a=pe.html`
1719
+ `}}return de.nothing}rate(e){(e??-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:e}))}renderFeedbackSection(){var e,i,r,n,o;if(this.canAccessFeedback){let s=this.feedbackMailLinkBuilder(this.feedbackMessage),a=de.html`
1715
1720
  <ft-button primary
1716
1721
  type="submit" name="submit"
1717
1722
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1718
1723
  part="send-feedback">
1719
1724
  ${J.messages.okButton()}
1720
1725
  </ft-button>
1721
- `;s&&(a=pe.html`
1726
+ `;s&&(a=de.html`
1722
1727
  <a part="send-feedback-link" href="${s}">
1723
1728
  ${a}
1724
1729
  </a>
1725
- `);let l=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers)?pe.html`
1730
+ `);let l=this.withMoreOptionsButton&&(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics||!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers)?de.html`
1726
1731
  <ft-button outlined
1727
1732
  type="button" name="more-options"
1728
1733
  @click=${this.onOpenMoreDetails}
1729
1734
  part="more-options">
1730
1735
  ${J.messages.moreOptionsButton()}
1731
1736
  </ft-button>
1732
- `:pe.nothing;return pe.html`
1737
+ `:de.nothing;return de.html`
1733
1738
  <form part="feedback-container" autocomplete="on"
1734
1739
  @submit=${d=>this.onFormSubmitEvent(d,!!s)}>
1735
1740
  <ft-typography variant="${V.title_dense}" part="section-title">
1736
1741
  ${this.i18n(this.i18nProperties.feedbackSectionTitle)}
1737
1742
  </ft-typography>
1738
- ${((n=(r=this.session)===null||r===void 0?void 0:r.profile)===null||n===void 0?void 0:n.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers)?pe.html`
1743
+ ${((n=(r=this.session)===null||r===void 0?void 0:r.profile)===null||n===void 0?void 0:n.userId)==null&&(!((o=this.configuration)===null||o===void 0)&&o.mailsSentByFluidTopicsForUnauthenticatedUsers)?de.html`
1739
1744
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1740
1745
  part="feedback-from-input"
1741
1746
  label="${J.messages.feedbackfromEmail()}"
@@ -1743,7 +1748,7 @@
1743
1748
  ?error=${this.from&&!this.validFromEmail()}
1744
1749
  helper="${this.from&&!this.validFromEmail()?J.messages.feedbackfromEmailInvalid():""}"
1745
1750
  ></ft-text-field>
1746
- `:pe.nothing}
1751
+ `:de.nothing}
1747
1752
  <ft-text-area outlined
1748
1753
  part="feedback-input"
1749
1754
  label="${J.messages.feedbackInputLabel()}"
@@ -1754,7 +1759,7 @@
1754
1759
  ${a}
1755
1760
  </div>
1756
1761
  </form>
1757
- `}return pe.nothing}onFormSubmitEvent(e,i){e.preventDefault(),i?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,i,r;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((i=(e=this.session)===null||e===void 0?void 0:e.profile)===null||i===void 0?void 0:i.userId)==null&&(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new Ls({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};Q.elementDefinitions={"ft-button":R,"ft-typography":U,"ft-switch":Be,"ft-switch-option":de,"ft-text-area":ve,"ft-text-field":A};we([(0,fe.property)({type:Boolean})],Q.prototype,"hideTitle",void 0);we([(0,fe.property)({type:Boolean})],Q.prototype,"withMoreOptionsButton",void 0);we([(0,fe.property)()],Q.prototype,"iconVariant",void 0);we([(0,fe.property)()],Q.prototype,"emptyStarIcon",void 0);we([(0,fe.property)()],Q.prototype,"filledStarIcon",void 0);we([(0,fe.property)()],Q.prototype,"emptyLikeIcon",void 0);we([(0,fe.property)()],Q.prototype,"filledLikeIcon",void 0);we([(0,fe.property)()],Q.prototype,"emptyDislikeIcon",void 0);we([(0,fe.property)()],Q.prototype,"filledDislikeIcon",void 0);we([(0,fe.property)({type:Boolean})],Q.prototype,"canAccessFeedback",void 0);we([(0,fe.property)({type:Boolean})],Q.prototype,"canRateThisContent",void 0);we([(0,fe.property)({attribute:!1})],Q.prototype,"i18nProperties",void 0);we([(0,fe.property)({attribute:!1})],Q.prototype,"ratingSummary",void 0);we([(0,fe.property)()],Q.prototype,"configuration",void 0);we([(0,fe.property)()],Q.prototype,"feedbackMailLinkBuilder",void 0);we([(0,Vr.redux)({store:v.name})],Q.prototype,"session",void 0);we([(0,fe.query)("[part='feedback-input']")],Q.prototype,"feedbackInput",void 0);we([(0,fe.state)()],Q.prototype,"from",void 0);we([(0,fe.state)()],Q.prototype,"feedbackMessage",void 0);var Rn=class extends Q{};Rn.styles=ws(Es);var ul=gt.build("inDesignerFeedbackComponent"),kf={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Is=gt.fromGwt("server");var Ps=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,i,r,n,o){var s;this.subject=e,this.url=i,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=this.filterMetadata(r,n.subjectMetadataIds).map(a=>"["+a.values[a.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(r,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(a=>"["+a.values.join(", ")+"]").join(" ")}filterMetadata(e,i){return i.map(r=>e.find(n=>n.key===r)).filter(r=>r!=null&&r.values.length>0)}shouldUseMailer(){var e,i;let r=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers);return r||n}build(e){var i;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1762
+ `}return de.nothing}onFormSubmitEvent(e,i){e.preventDefault(),i?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var e,i,r;let n=/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/;return!(((i=(e=this.session)===null||e===void 0?void 0:e.profile)===null||i===void 0?void 0:i.userId)==null&&(!((r=this.configuration)===null||r===void 0)&&r.mailsSentByFluidTopicsForUnauthenticatedUsers))||n.test(this.from)}sendFeedback(){var e;this.dispatchEvent(new Ms({message:this.feedbackInput.value,...((e=this.configuration)===null||e===void 0?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout(()=>this.feedbackInput.setValue("",!0),0)}};Q.elementDefinitions={"ft-button":k,"ft-typography":F,"ft-switch":He,"ft-switch-option":le,"ft-text-area":ge,"ft-text-field":_};Se([(0,ue.property)({type:Boolean})],Q.prototype,"hideTitle",void 0);Se([(0,ue.property)({type:Boolean})],Q.prototype,"withMoreOptionsButton",void 0);Se([(0,ue.property)()],Q.prototype,"iconVariant",void 0);Se([(0,ue.property)()],Q.prototype,"emptyStarIcon",void 0);Se([(0,ue.property)()],Q.prototype,"filledStarIcon",void 0);Se([(0,ue.property)()],Q.prototype,"emptyLikeIcon",void 0);Se([(0,ue.property)()],Q.prototype,"filledLikeIcon",void 0);Se([(0,ue.property)()],Q.prototype,"emptyDislikeIcon",void 0);Se([(0,ue.property)()],Q.prototype,"filledDislikeIcon",void 0);Se([(0,ue.property)({type:Boolean})],Q.prototype,"canAccessFeedback",void 0);Se([(0,ue.property)({type:Boolean})],Q.prototype,"canRateThisContent",void 0);Se([(0,ue.property)({attribute:!1})],Q.prototype,"i18nProperties",void 0);Se([(0,ue.property)({attribute:!1})],Q.prototype,"ratingSummary",void 0);Se([(0,ue.property)()],Q.prototype,"configuration",void 0);Se([(0,ue.property)()],Q.prototype,"feedbackMailLinkBuilder",void 0);Se([(0,Vr.redux)({store:v.name})],Q.prototype,"session",void 0);Se([(0,ue.query)("[part='feedback-input']")],Q.prototype,"feedbackInput",void 0);Se([(0,ue.state)()],Q.prototype,"from",void 0);Se([(0,ue.state)()],Q.prototype,"feedbackMessage",void 0);var Rn=class extends Q{};Rn.styles=_s(Cs);var fl=gt.build("inDesignerFeedbackComponent"),kf={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var Ns=gt.fromGwt("server");var $s=class{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(e,i,r,n,o){var s;this.subject=e,this.url=i,this.configuration=n,this.isAuthenticated=o,this.subjectMetadata=this.filterMetadata(r,n.subjectMetadataIds).map(a=>"["+a.values[a.values.length-1]+"]").join(""),this.bodyMetadata=this.filterMetadata(r,(s=n.bodyMetadataIds)!==null&&s!==void 0?s:[]).map(a=>"["+a.values.join(", ")+"]").join(" ")}filterMetadata(e,i){return i.map(r=>e.find(n=>n.key===r)).filter(r=>r!=null&&r.values.length>0)}shouldUseMailer(){var e,i;let r=this.isAuthenticated&&!(!((e=this.configuration)===null||e===void 0)&&e.mailsSentByFluidTopics),n=!this.isAuthenticated&&!(!((i=this.configuration)===null||i===void 0)&&i.mailsSentByFluidTopicsForUnauthenticatedUsers);return r||n}build(e){var i;if(e!=null&&e.length===0||!this.shouldUseMailer())return;let r=encodeURIComponent(this.subject+" "+this.subjectMetadata),n=encodeURIComponent(`
1758
1763
  ${this.bodyMetadata}
1759
1764
  ${this.url}
1760
1765
  _________________________________________________________________
@@ -1762,7 +1767,7 @@ _________________________________________________________________
1762
1767
  ${e??""}
1763
1768
 
1764
1769
  _________________________________________________________________
1765
- ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configuration)===null||i===void 0?void 0:i.recipients.join(",")}?subject=${r}&body=${n}`}};var Me=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ee=class extends Ye(yt(Ge)){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(yi.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(yi.RATING,{session:this.session}))&&this.configuredRatingType!=Ae.NO_RATING}get configuredRatingType(){var e,i;return(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&i!==void 0?i:Ae.NO_RATING}constructor(e=new So){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Pe.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new Ps,this.i18nProperties={feedbackMainTitle:J.properties.viewerFeedbackMainTitle(),ratingSectionTitle:J.properties.viewerRatingSectionTitle(),dichotomousRatingSectionTitle:J.properties.viewerDichotomousRatingSectionTitle(),feedbackSectionTitle:J.properties.viewerFeedbackSectionTitle()},this.loadGuestRating=()=>{let i=this.guestStorage.get(this.guestRatingKey());i&&(this.ratingSummary=i)},this.guestRatingKey=()=>{var i;return"ft-viewer-document-feedback-guest-rating-"+((i=this.document)===null||i===void 0?void 0:i.id)},this.sendRatingDebouncer=new Qe.Debouncer(500),this.addStore(v)}render(){return Df.html`
1770
+ ${Ns.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configuration)===null||i===void 0?void 0:i.recipients.join(",")}?subject=${r}&body=${n}`}};var Me=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},ee=class extends Ye(yt(Ge)){get canAccessFeedback(){var e;return(e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(yi.FEEDBACK,{session:this.session})}get canRateThisContent(){var e;return((e=this.service)===null||e===void 0?void 0:e.isFeatureAccessible(yi.RATING,{session:this.session}))&&this.configuredRatingType!=Ee.NO_RATING}get configuredRatingType(){var e,i;return(i=(e=this.ratingSummary)===null||e===void 0?void 0:e.type)!==null&&i!==void 0?i:Ee.NO_RATING}constructor(e=new Eo){super(),this.guestStorage=e,this.editorMode=!1,this.hideTitle=!1,this.iconVariant=Pe.fluid_topics,this.emptyStarIcon="STAR",this.filledStarIcon="STAR_PLAIN",this.emptyLikeIcon="THUMBS_UP",this.filledLikeIcon="THUMBS_UP_PLAIN",this.emptyDislikeIcon="THUMBS_DOWN",this.filledDislikeIcon="THUMBS_DOWN_PLAIN",this.feedbackLinkBuilder=new $s,this.i18nProperties={feedbackMainTitle:J.properties.viewerFeedbackMainTitle(),ratingSectionTitle:J.properties.viewerRatingSectionTitle(),dichotomousRatingSectionTitle:J.properties.viewerDichotomousRatingSectionTitle(),feedbackSectionTitle:J.properties.viewerFeedbackSectionTitle()},this.loadGuestRating=()=>{let i=this.guestStorage.get(this.guestRatingKey());i&&(this.ratingSummary=i)},this.guestRatingKey=()=>{var i;return"ft-viewer-document-feedback-guest-rating-"+((i=this.document)===null||i===void 0?void 0:i.id)},this.sendRatingDebouncer=new Qe.Debouncer(500),this.addStore(v)}render(){return Df.html`
1766
1771
  <ft-viewer-feedback
1767
1772
  ?hideTitle=${this.hideTitle}
1768
1773
  iconVariant="${this.iconVariant}"
@@ -1783,7 +1788,7 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
1783
1788
  @mailer-feedback=${this.onMailerFeedbackSent}
1784
1789
  @open-more-options=${this.openMoreOptions}
1785
1790
  ></ft-viewer-feedback>
1786
- `}willUpdate(e){var i,r,n;super.willUpdate(e),e.has("editorMode")&&this.editorMode&&this.addI18nContext(ul,kf),["document","configuration","user","mailSubject"].some(o=>e.has(o))&&this.document&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=this.document.prettyUrl)!==null&&n!==void 0?n:"",this.document.metadata,this.configuration,((r=(i=this.session)===null||i===void 0?void 0:i.profile)===null||r===void 0?void 0:r.userId)!=null),["session","document"].some(o=>e.has(o))&&this.session&&this.document&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var i,r,n;if(!this.editorMode&&this.ratingSummary)try{e==null?await((i=this.service)===null||i===void 0?void 0:i.unrateDocument(this.document.id)):await((r=this.service)===null||r===void 0?void 0:r.rateDocument(this.document.id,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Qe.FtNotificationEvent({type:"error",message:J.messages.ratingFailure()}))}}async sendFeedback(e){var i;try{this.editorMode?this.dispatchEvent(new Qe.FtNotificationEvent({type:"info",message:ul.messages.feedbackAndRatingDisabledInEditor()})):(await((i=this.service)===null||i===void 0?void 0:i.sendDocumentFeedback(this.document.id,e.detail.message,e.detail.from)),this.dispatchEvent(new Qe.FtNotificationEvent({type:"info",message:J.messages.feedbackSuccess()}))),this.viewerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Qe.FtNotificationEvent({type:"error",message:J.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new ds)}openMoreOptions(){var e,i;this.dispatchEvent(new cs({documentId:this.document.id,documentTitle:this.displayName||"",ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||Ae.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};ee.styles=ws(Es);ee.elementDefinitions={"ft-viewer-feedback":Rn};ee.storedRatingIfAuthenticated=(t,e)=>{var i,r;return!((i=e.session)===null||i===void 0)&&i.sessionAuthenticated?t.documentRating:(r=e.ratingSummary)!==null&&r!==void 0?r:t.documentRating};Me([(0,Qe.redux)({store:v.name})],ee.prototype,"session",void 0);Me([(0,Qe.redux)({store:"viewer"})],ee.prototype,"document",void 0);Me([(0,Qe.redux)({store:v.name})],ee.prototype,"editorMode",void 0);Me([(0,Qe.redux)({store:"viewer",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ee.prototype,"configuration",void 0);Me([(0,Qe.redux)({store:"viewer",selector:ee.storedRatingIfAuthenticated})],ee.prototype,"ratingSummary",void 0);Me([(0,Pt.property)({type:Boolean})],ee.prototype,"hideTitle",void 0);Me([(0,Pt.property)()],ee.prototype,"iconVariant",void 0);Me([(0,Pt.property)()],ee.prototype,"emptyStarIcon",void 0);Me([(0,Pt.property)()],ee.prototype,"filledStarIcon",void 0);Me([(0,Pt.property)()],ee.prototype,"emptyLikeIcon",void 0);Me([(0,Pt.property)()],ee.prototype,"filledLikeIcon",void 0);Me([(0,Pt.property)()],ee.prototype,"emptyDislikeIcon",void 0);Me([(0,Pt.property)()],ee.prototype,"filledDislikeIcon",void 0);Me([(0,Pt.query)("ft-viewer-feedback")],ee.prototype,"viewerFeedback",void 0);Me([es(Is.properties["mail.file_feedback.subject"](t=>{var e,i;return[((e=t.document)===null||e===void 0?void 0:e.title)||"Document",((i=t.document)===null||i===void 0?void 0:i.filename)||"Filename"]}))],ee.prototype,"mailSubject",void 0);Me([(0,Qe.redux)({store:"viewer",selector:({descriptor:t})=>t?.displayName})],ee.prototype,"displayName",void 0);var Lf=c(h());var Ms=class extends Ye(Lf.FtLitElementRedux){};var We=c(h()),Mt=c(F());var If=c(S());var Pf=If.css`
1791
+ `}willUpdate(e){var i,r,n;super.willUpdate(e),e.has("editorMode")&&this.editorMode&&this.addI18nContext(fl,kf),["document","configuration","user","mailSubject"].some(o=>e.has(o))&&this.document&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,(n=this.document.prettyUrl)!==null&&n!==void 0?n:"",this.document.metadata,this.configuration,((r=(i=this.session)===null||i===void 0?void 0:i.profile)===null||r===void 0?void 0:r.userId)!=null),["session","document"].some(o=>e.has(o))&&this.session&&this.document&&this.loadGuestRating()}connectedCallback(){super.connectedCallback(),this.guestStorage.addStoreListener(this.guestRatingKey,this.loadGuestRating)}disconnectedCallback(){super.disconnectedCallback(),this.guestStorage.clearStoreListeners()}rate(e){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:e.detail==null?void 0:{type:this.ratingSummary.type,value:e.detail,date:new Date}},this.guestStorage.store(this.guestRatingKey(),this.ratingSummary),this.sendRatingDebouncer.run(()=>this.sendRating(e.detail)))}async sendRating(e){var i,r,n;if(!this.editorMode&&this.ratingSummary)try{e==null?await((i=this.service)===null||i===void 0?void 0:i.unrateDocument(this.document.id)):await((r=this.service)===null||r===void 0?void 0:r.rateDocument(this.document.id,(n=this.ratingSummary)===null||n===void 0?void 0:n.type,e))}catch{this.dispatchEvent(new Qe.FtNotificationEvent({type:"error",message:J.messages.ratingFailure()}))}}async sendFeedback(e){var i;try{this.editorMode?this.dispatchEvent(new Qe.FtNotificationEvent({type:"info",message:fl.messages.feedbackAndRatingDisabledInEditor()})):(await((i=this.service)===null||i===void 0?void 0:i.sendDocumentFeedback(this.document.id,e.detail.message,e.detail.from)),this.dispatchEvent(new Qe.FtNotificationEvent({type:"info",message:J.messages.feedbackSuccess()}))),this.viewerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new Qe.FtNotificationEvent({type:"error",message:J.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new ps)}openMoreOptions(){var e,i;this.dispatchEvent(new us({documentId:this.document.id,documentTitle:this.displayName||"",ratingType:((e=this.ratingSummary)===null||e===void 0?void 0:e.type)||Ee.NO_RATING,ratingValue:(i=this.ratingSummary)===null||i===void 0?void 0:i.rating}))}};ee.styles=_s(Cs);ee.elementDefinitions={"ft-viewer-feedback":Rn};ee.storedRatingIfAuthenticated=(t,e)=>{var i,r;return!((i=e.session)===null||i===void 0)&&i.sessionAuthenticated?t.documentRating:(r=e.ratingSummary)!==null&&r!==void 0?r:t.documentRating};Me([(0,Qe.redux)({store:v.name})],ee.prototype,"session",void 0);Me([(0,Qe.redux)({store:"viewer"})],ee.prototype,"document",void 0);Me([(0,Qe.redux)({store:v.name})],ee.prototype,"editorMode",void 0);Me([(0,Qe.redux)({store:"viewer",selector:t=>{var e;return(e=t.configuration)===null||e===void 0?void 0:e.feedback}})],ee.prototype,"configuration",void 0);Me([(0,Qe.redux)({store:"viewer",selector:ee.storedRatingIfAuthenticated})],ee.prototype,"ratingSummary",void 0);Me([(0,Mt.property)({type:Boolean})],ee.prototype,"hideTitle",void 0);Me([(0,Mt.property)()],ee.prototype,"iconVariant",void 0);Me([(0,Mt.property)()],ee.prototype,"emptyStarIcon",void 0);Me([(0,Mt.property)()],ee.prototype,"filledStarIcon",void 0);Me([(0,Mt.property)()],ee.prototype,"emptyLikeIcon",void 0);Me([(0,Mt.property)()],ee.prototype,"filledLikeIcon",void 0);Me([(0,Mt.property)()],ee.prototype,"emptyDislikeIcon",void 0);Me([(0,Mt.property)()],ee.prototype,"filledDislikeIcon",void 0);Me([(0,Mt.query)("ft-viewer-feedback")],ee.prototype,"viewerFeedback",void 0);Me([is(Ns.properties["mail.file_feedback.subject"](t=>{var e,i;return[((e=t.document)===null||e===void 0?void 0:e.title)||"Document",((i=t.document)===null||i===void 0?void 0:i.filename)||"Filename"]}))],ee.prototype,"mailSubject",void 0);Me([(0,Qe.redux)({store:"viewer",selector:({descriptor:t})=>t?.displayName})],ee.prototype,"displayName",void 0);var Lf=c(h());var Fs=class extends Ye(Lf.FtLitElementRedux){};var We=c(h()),Nt=c($());var If=c(S());var Pf=If.css`
1787
1792
  :host {
1788
1793
  display: inline-block;
1789
1794
  }
@@ -1803,7 +1808,7 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
1803
1808
  all: unset;
1804
1809
  position: relative;
1805
1810
  }
1806
- `;var Ns=c(S()),De=c(F()),Uf=c(lt()),Br=c(h());var On=c(S()),I=c(h());var Mf=I.FtCssVariableFactory.extend("--ft-chip-color","",I.designSystemVariables.colorOnSurface),et={backgroundColor:I.FtCssVariableFactory.extend("--ft-chip-background-color","",I.designSystemVariables.colorSurface),color:Mf,fontSize:I.FtCssVariableFactory.extend("--ft-chip-font-size","",st.fontSize),fontWeight:I.FtCssVariableFactory.extend("--ft-chip-font-weight","",st.fontWeight),iconSize:I.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:I.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:I.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Mf),horizontalPadding:I.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:I.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:I.FtCssVariableFactory.extend("--ft-chip-border-color","",I.designSystemVariables.colorOutline),opacityDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOpacityDisabled,"Design system")},Nf=I.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",I.FtCssVariableFactory.extend("--ft-chip-color","",I.designSystemVariables.colorOnPrimary)),pl={backgroundColor:I.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",I.FtCssVariableFactory.extend("--ft-chip-background-color","",I.designSystemVariables.colorPrimary)),color:Nf,rippleColor:I.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Nf)},$f={horizontalPadding:I.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:I.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Ff=[I.noTextSelect,On.css`
1811
+ `;var or=c(S()),Ce=c($()),Uf=c(lt()),Br=c(h());var On=c(S()),I=c(h());var Mf=I.FtCssVariableFactory.extend("--ft-chip-color","",I.designSystemVariables.colorOnSurface),et={backgroundColor:I.FtCssVariableFactory.extend("--ft-chip-background-color","",I.designSystemVariables.colorSurface),color:Mf,fontSize:I.FtCssVariableFactory.extend("--ft-chip-font-size","",st.fontSize),fontWeight:I.FtCssVariableFactory.extend("--ft-chip-font-weight","",st.fontWeight),iconSize:I.FtCssVariableFactory.create("--ft-chip-icon-size","","SIZE","18px"),borderRadius:I.FtCssVariableFactory.create("--ft-chip-border-radius","","SIZE",""),rippleColor:I.FtCssVariableFactory.extend("--ft-chip-ripple-color","",Mf),horizontalPadding:I.FtCssVariableFactory.create("--ft-chip-horizontal-padding","","SIZE","6px"),verticalPadding:I.FtCssVariableFactory.create("--ft-chip-vertical-padding","","SIZE","6px"),borderColor:I.FtCssVariableFactory.extend("--ft-chip-border-color","",I.designSystemVariables.colorOutline),opacityDisabled:I.FtCssVariableFactory.external(I.designSystemVariables.colorOpacityDisabled,"Design system")},Nf=I.FtCssVariableFactory.extend("--ft-chip-highlighted-color","",I.FtCssVariableFactory.extend("--ft-chip-color","",I.designSystemVariables.colorOnPrimary)),hl={backgroundColor:I.FtCssVariableFactory.extend("--ft-chip-highlighted-background-color","",I.FtCssVariableFactory.extend("--ft-chip-background-color","",I.designSystemVariables.colorPrimary)),color:Nf,rippleColor:I.FtCssVariableFactory.extend("--ft-chip-highlighted-ripple-color","",Nf)},$f={horizontalPadding:I.FtCssVariableFactory.create("--ft-chip-dense-horizontal-padding","","SIZE","4px"),verticalPadding:I.FtCssVariableFactory.create("--ft-chip-dense-vertical-padding","","SIZE","4px")},Ff=[I.noTextSelect,On.css`
1807
1812
  :host {
1808
1813
  display: inline-block;
1809
1814
  max-width: 100%;
@@ -1822,7 +1827,7 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
1822
1827
  --chip-internal-font-size: ${et.fontSize};
1823
1828
  --chip-internal-font-weight: ${et.fontWeight};
1824
1829
  --chip-internal-line-height: max(20px, calc(var(--chip-internal-font-size) + 2px));
1825
- ${(0,I.setVariable)(ge.size,et.iconSize)};
1830
+ ${(0,I.setVariable)(he.size,et.iconSize)};
1826
1831
  --chip-internal-vertical-padding: ${et.verticalPadding};
1827
1832
  --chip-internal-horizontal-padding: ${et.horizontalPadding};
1828
1833
  --chip-internal-icon-padding: 3px;
@@ -1830,7 +1835,7 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
1830
1835
 
1831
1836
  border: 1px solid ${et.borderColor};
1832
1837
  color: ${et.color};
1833
- ${(0,I.setVariable)(G.color,et.rippleColor)};
1838
+ ${(0,I.setVariable)(K.color,et.rippleColor)};
1834
1839
  border-radius: var(${(0,On.unsafeCSS)(et.borderRadius.name)}, calc(var(--chip-internal-content-height) / 2 + var(--chip-internal-vertical-padding)));
1835
1840
  padding: calc(var(--chip-internal-vertical-padding) - 1px) calc(var(--chip-internal-horizontal-padding) - 1px);
1836
1841
  background-color: ${et.backgroundColor};
@@ -1862,9 +1867,9 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
1862
1867
  .ft-chip--highlighted {
1863
1868
  border: none;
1864
1869
  padding: var(--chip-internal-vertical-padding) var(--chip-internal-horizontal-padding);
1865
- background-color: ${pl.backgroundColor};
1866
- ${(0,I.setVariable)(G.color,pl.rippleColor)};
1867
- color: ${pl.color};
1870
+ background-color: ${hl.backgroundColor};
1871
+ ${(0,I.setVariable)(K.color,hl.rippleColor)};
1872
+ color: ${hl.color};
1868
1873
  }
1869
1874
 
1870
1875
  .ft-chip--clickable {
@@ -1895,9 +1900,9 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
1895
1900
  }
1896
1901
 
1897
1902
  .ft-chip--icon-button {
1898
- ${(0,I.setVariable)(H.iconSize,et.iconSize)};
1899
- ${(0,I.setVariable)(H.horizontalPadding,"var(--chip-internal-icon-padding)")};
1900
- ${(0,I.setVariable)(H.verticalPadding,"var(--chip-internal-icon-padding)")};
1903
+ ${(0,I.setVariable)(B.iconSize,et.iconSize)};
1904
+ ${(0,I.setVariable)(B.horizontalPadding,"var(--chip-internal-icon-padding)")};
1905
+ ${(0,I.setVariable)(B.verticalPadding,"var(--chip-internal-icon-padding)")};
1901
1906
  margin: calc((-1) * var(--chip-internal-icon-padding));
1902
1907
  }
1903
1908
 
@@ -1943,19 +1948,20 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
1943
1948
  .ft-chip:not(.ft-chip--trailing-icon) .ft-chip--icon-button {
1944
1949
  order: -1;
1945
1950
  }
1946
- `];var je=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},$s=class extends CustomEvent{constructor(){super("icon-click")}},ne=class extends Br.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let i={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Br.isSafari};return Ns.html`
1951
+ `];var Ne=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Us=class extends CustomEvent{constructor(){super("icon-click")}},te=class extends Br.FtLitElement{constructor(){super(...arguments),this.highlighted=!1,this.removable=!1,this.disabled=!1,this.clickable=!1,this.iconClickable=!1,this.dense=!1,this.multiLine=!1,this.label="",this.iconLabel="",this.hideIconTooltip=!1,this.accessibleLabelOnIcon=!1,this.icon=void 0,this.trailingIcon=!1}render(){var e;let i={"ft-chip":!0,"ft-chip--highlighted":this.highlighted,"ft-chip--disabled":this.disabled,"ft-chip--clickable":this.interactionsOnChip,"ft-chip--trailing-icon":this.trailingIcon||this.removable,"ft-chip--no-content":!this.hasTextContent(),"ft-chip--dense":this.dense,"ft-chip--multi-line":this.multiLine,"ft-chip--safari-fix":Br.isSafari};return or.html`
1947
1952
  <div class="${(0,Uf.classMap)(i)}"
1948
- aria-label="${this.getLabel()}"
1953
+ aria-label="${this.labelOnIconOnly?or.nothing:this.getLabel()}"
1949
1954
  tabindex="${this.interactionsOnChip?0:-1}"
1950
1955
  @keyup=${this.onKeyUp}
1951
1956
  part="chip">
1952
1957
  <ft-ripple ?disabled=${!this.interactionsOnChip}></ft-ripple>
1953
- <ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label">
1958
+ <ft-typography variant="${(e=this.typographyVariant)!==null&&e!==void 0?e:"body2"}" element="span" class="ft-chip--label" part="label"
1959
+ aria-hidden="${this.labelOnIconOnly?"true":or.nothing}">
1954
1960
  <slot @slotchange=${this.onSlotchange}></slot>
1955
1961
  </ft-typography>
1956
1962
  ${this.internalIcon?this.renderIcon():null}
1957
1963
  </div>
1958
- `}get interactionsOnChip(){return this.clickable&&!this.disabled}get interactionsOnIcon(){return(this.iconClickable||this.removable)&&!this.disabled}renderIcon(){return this.interactionsOnIcon?Ns.html`
1964
+ `}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?or.html`
1959
1965
  <ft-button round
1960
1966
  class="ft-chip--icon-button"
1961
1967
  @click=${this.onIconClick}
@@ -1966,11 +1972,11 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
1966
1972
  part="icon-button"
1967
1973
  ?hideTooltip=${this.hideIconTooltip}
1968
1974
  ></ft-button>
1969
- `:Ns.html`
1975
+ `:or.html`
1970
1976
  <div class="ft-chip--icon-container ft-no-text-select" part="icon-container">
1971
1977
  <ft-icon .variant=${this.iconVariant} .value=${this.internalIcon} part="icon"></ft-icon>
1972
1978
  </div>
1973
- `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new $s))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new $s))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Br.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};ne.elementDefinitions={"ft-ripple":P,"ft-typography":U,"ft-icon":z,"ft-button":R};ne.styles=Ff;je([(0,De.property)({type:Boolean})],ne.prototype,"highlighted",void 0);je([(0,De.property)({type:Boolean})],ne.prototype,"removable",void 0);je([(0,De.property)({type:Boolean})],ne.prototype,"disabled",void 0);je([(0,De.property)({type:Boolean})],ne.prototype,"clickable",void 0);je([(0,De.property)({type:Boolean})],ne.prototype,"iconClickable",void 0);je([(0,De.property)({type:Boolean})],ne.prototype,"dense",void 0);je([(0,De.property)({type:Boolean})],ne.prototype,"multiLine",void 0);je([(0,De.property)()],ne.prototype,"label",void 0);je([(0,De.property)()],ne.prototype,"iconLabel",void 0);je([(0,De.property)({type:Boolean})],ne.prototype,"hideIconTooltip",void 0);je([(0,De.property)()],ne.prototype,"icon",void 0);je([(0,De.property)()],ne.prototype,"iconVariant",void 0);je([(0,De.property)({type:Boolean})],ne.prototype,"trailingIcon",void 0);je([(0,De.property)()],ne.prototype,"typographyVariant",void 0);je([(0,De.query)("ft-typography slot")],ne.prototype,"slottedContent",void 0);var Bf=c(h());var Vf={"ft-chip":ne};(0,Bf.customElements)(Vf);var Gf=c(S()),Ee=c(F()),jr=c(h());var qf=c(lt());var kn=c(S()),zr=c(F()),Vs=c(h());var Hf=c(S()),Fs=c(h()),tg={iconColor:Fs.FtCssVariableFactory.extend("--ft-floating-menu-icon-color","",Fs.designSystemVariables.colorOnSurfaceMedium)},zf=Hf.css`
1979
+ `}onKeyUp(e){this.interactionsOnChip&&["Enter"," "].includes(e.key)&&e.target.click()}onIconKeyUp(e){this.interactionsOnIcon&&["Enter"," "].includes(e.key)&&(e.stopPropagation(),this.dispatchEvent(new Us))}onIconClick(e){this.interactionsOnIcon&&(e.stopPropagation(),this.dispatchEvent(new Us))}getLabel(){return this.label||this.getTextContent()}getTextContent(){return(0,Br.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.getTextContent().length>0}onSlotchange(){this.requestUpdate()}get internalIcon(){return this.icon||(this.removable?"close":void 0)}};te.elementDefinitions={"ft-ripple":P,"ft-typography":F,"ft-icon":z,"ft-button":k};te.styles=Ff;Ne([(0,Ce.property)({type:Boolean})],te.prototype,"highlighted",void 0);Ne([(0,Ce.property)({type:Boolean})],te.prototype,"removable",void 0);Ne([(0,Ce.property)({type:Boolean})],te.prototype,"disabled",void 0);Ne([(0,Ce.property)({type:Boolean})],te.prototype,"clickable",void 0);Ne([(0,Ce.property)({type:Boolean})],te.prototype,"iconClickable",void 0);Ne([(0,Ce.property)({type:Boolean})],te.prototype,"dense",void 0);Ne([(0,Ce.property)({type:Boolean})],te.prototype,"multiLine",void 0);Ne([(0,Ce.property)()],te.prototype,"label",void 0);Ne([(0,Ce.property)()],te.prototype,"iconLabel",void 0);Ne([(0,Ce.property)({type:Boolean})],te.prototype,"hideIconTooltip",void 0);Ne([(0,Ce.property)({type:Boolean})],te.prototype,"accessibleLabelOnIcon",void 0);Ne([(0,Ce.property)()],te.prototype,"icon",void 0);Ne([(0,Ce.property)()],te.prototype,"iconVariant",void 0);Ne([(0,Ce.property)({type:Boolean})],te.prototype,"trailingIcon",void 0);Ne([(0,Ce.property)()],te.prototype,"typographyVariant",void 0);Ne([(0,Ce.query)("ft-typography slot")],te.prototype,"slottedContent",void 0);var Bf=c(h());var Vf={"ft-chip":te};(0,Bf.customElements)(Vf);var Gf=c(S()),we=c($()),jr=c(h());var qf=c(lt());var kn=c(S()),zr=c($()),Hs=c(h());var Hf=c(S()),Vs=c(h()),tg={iconColor:Vs.FtCssVariableFactory.extend("--ft-floating-menu-icon-color","",Vs.designSystemVariables.colorOnSurfaceMedium)},zf=Hf.css`
1974
1980
  .ft-floating-menu-item {
1975
1981
  cursor: pointer;
1976
1982
  display: flex;
@@ -2005,7 +2011,7 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
2005
2011
  word-break: break-word;
2006
2012
  hyphens: auto;
2007
2013
  }
2008
- `;var jf=c(lt()),Hr=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Us=class extends CustomEvent{constructor(e){super("ft-floating-menu-item-select",{detail:e,bubbles:!0,composed:!0})}},Ne=class extends Vs.FtLitElement{constructor(){super(...arguments),this.value="",this.notFocusable=!1,this.disabled=!1}get floatingClasses(){return{"ft-floating-menu-item":!0,"ft-floating-menu-item--disabled":this.disabled}}render(){return kn.html`
2014
+ `;var jf=c(lt()),Hr=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Bs=class extends CustomEvent{constructor(e){super("ft-floating-menu-item-select",{detail:e,bubbles:!0,composed:!0})}},$e=class extends Hs.FtLitElement{constructor(){super(...arguments),this.value="",this.notFocusable=!1,this.disabled=!1}get floatingClasses(){return{"ft-floating-menu-item":!0,"ft-floating-menu-item--disabled":this.disabled}}render(){return kn.html`
2009
2015
  <div class="${(0,jf.classMap)(this.floatingClasses)}"
2010
2016
  tabindex="${this.notFocusable||this.disabled?"-1":"0"}"
2011
2017
  aria-disabled="${this.disabled}"
@@ -2021,7 +2027,7 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
2021
2027
  <slot></slot>
2022
2028
  </ft-typography>
2023
2029
  </div>
2024
- `}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new Us(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new Us(this.value)))}};Ne.elementDefinitions={"ft-icon":z,"ft-ripple":P,"ft-typography":U};Ne.styles=zf;Hr([(0,zr.property)()],Ne.prototype,"iconVariant",void 0);Hr([(0,zr.property)()],Ne.prototype,"icon",void 0);Hr([(0,zr.property)()],Ne.prototype,"value",void 0);Hr([(0,zr.property)({type:Boolean})],Ne.prototype,"notFocusable",void 0);Hr([(0,zr.property)({type:Boolean})],Ne.prototype,"disabled",void 0);Hr([(0,Vs.ignoreComposingEvents)()],Ne.prototype,"onKeyDown",null);var Wf=c(S()),ut=c(h()),Ai={zIndex:ut.FtCssVariableFactory.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:ut.FtCssVariableFactory.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:ut.FtCssVariableFactory.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:ut.FtCssVariableFactory.extend("--ft-floating-menu-text-color","",ut.designSystemVariables.colorOnSurfaceHigh),colorSurface:ut.FtCssVariableFactory.external(ut.designSystemVariables.colorSurface,"Design system"),menuElevation:ut.FtCssVariableFactory.external(ut.designSystemVariables.elevation02,"Design system"),borderRadiusS:ut.FtCssVariableFactory.external(ut.designSystemVariables.borderRadiusS,"Design system")},Kf=Wf.css`
2030
+ `}onClick(e){this.disabled?(e.preventDefault(),e.stopPropagation(),e.stopImmediatePropagation()):this.dispatchEvent(new Bs(this.value))}onKeyDown(e){(e.key=="Enter"||e.key==" ")&&(e.preventDefault(),this.dispatchEvent(new Bs(this.value)))}};$e.elementDefinitions={"ft-icon":z,"ft-ripple":P,"ft-typography":F};$e.styles=zf;Hr([(0,zr.property)()],$e.prototype,"iconVariant",void 0);Hr([(0,zr.property)()],$e.prototype,"icon",void 0);Hr([(0,zr.property)()],$e.prototype,"value",void 0);Hr([(0,zr.property)({type:Boolean})],$e.prototype,"notFocusable",void 0);Hr([(0,zr.property)({type:Boolean})],$e.prototype,"disabled",void 0);Hr([(0,Hs.ignoreComposingEvents)()],$e.prototype,"onKeyDown",null);var Wf=c(S()),ut=c(h()),Ai={zIndex:ut.FtCssVariableFactory.create("--ft-floating-menu-z-index","","NUMBER","8"),maxWidth:ut.FtCssVariableFactory.create("--ft-floating-menu-max-width","","SIZE","300px"),maxHeight:ut.FtCssVariableFactory.create("--ft-floating-menu-max-height","","SIZE","500px"),textColor:ut.FtCssVariableFactory.extend("--ft-floating-menu-text-color","",ut.designSystemVariables.colorOnSurfaceHigh),colorSurface:ut.FtCssVariableFactory.external(ut.designSystemVariables.colorSurface,"Design system"),menuElevation:ut.FtCssVariableFactory.external(ut.designSystemVariables.elevation02,"Design system"),borderRadiusS:ut.FtCssVariableFactory.external(ut.designSystemVariables.borderRadiusS,"Design system")},Kf=Wf.css`
2025
2031
  .ft-floating-menu {
2026
2032
  color: ${Ai.textColor};
2027
2033
  display: contents;
@@ -2052,7 +2058,7 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
2052
2058
  .ft-floating-menu--open .ft-floating-menu--options {
2053
2059
  display: block;
2054
2060
  }
2055
- `;var $e=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},Bs=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var Hs=class extends CustomEvent{constructor(e){super("select",{detail:e})}},te=class extends jr.FtLitElement{constructor(){super(...arguments),this.horizontalAlignment="left",this.verticalAlignment="bottom",this.closeMenuMatchers=[],this.primary=!1,this.icon="SHORTCUT_MENU",this.iconVariant=Pe.fluid_topics,this.disabled=!1,this.menuOpen=!1,this.forceMenuOpen=!1,this.hideOptionsOnClickOutside=e=>{this.menuOpen=this.menuOpen&&e.composedPath().includes(this.container)}}updated(e){super.updated(e),e.has("menuOpen")&&this.dispatchEvent(new Bs(this.menuOpen))}render(){let e={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return Gf.html`
2061
+ `;var Fe=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},zs=class extends CustomEvent{constructor(e){super("change",{detail:{open:e}})}};var js=class extends CustomEvent{constructor(e){super("select",{detail:e})}},ie=class extends jr.FtLitElement{constructor(){super(...arguments),this.horizontalAlignment="left",this.verticalAlignment="bottom",this.closeMenuMatchers=[],this.primary=!1,this.icon="SHORTCUT_MENU",this.iconVariant=Pe.fluid_topics,this.disabled=!1,this.menuOpen=!1,this.forceMenuOpen=!1,this.hideOptionsOnClickOutside=e=>{this.menuOpen=this.menuOpen&&e.composedPath().includes(this.container)}}updated(e){super.updated(e),e.has("menuOpen")&&this.dispatchEvent(new zs(this.menuOpen))}render(){let e={"ft-floating-menu":!0,"ft-floating-menu--open":this.forceMenuOpen||this.menuOpen,["ft-floating-menu--"+this.horizontalAlignment.toLowerCase()]:!0,["ft-floating-menu--"+this.verticalAlignment.toLowerCase()]:!0};return Gf.html`
2056
2062
  <div part="container" class="${(0,qf.classMap)(e)}" @keydown=${this.onKeyDown}>
2057
2063
  <slot name="toggle"
2058
2064
  part="toggle"
@@ -2083,7 +2089,7 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
2083
2089
  </div>
2084
2090
  </div>
2085
2091
  </div>
2086
- `}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(e){e.stopPropagation(),this.closeMenu()}onItemSelect(e){e.stopPropagation(),this.dispatchEvent(new Hs(e.detail)),this.closeMenu()}onContentClick(e){(0,jr.eventPathContainsMatchingElement)(e,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let e=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:i,y:r}=await xs(e,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${i}px`,this.menuWrapper.style.top=`${r}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment}}onKeyDown(e){e.key=="Escape"&&(this.closeMenu(),e.stopPropagation())}};te.elementDefinitions={"ft-floating-menu-item":Ne,"ft-button":R};te.styles=Kf;$e([(0,Ee.property)()],te.prototype,"horizontalAlignment",void 0);$e([(0,Ee.property)()],te.prototype,"verticalAlignment",void 0);$e([(0,jr.jsonProperty)([])],te.prototype,"closeMenuMatchers",void 0);$e([(0,Ee.property)({type:Boolean})],te.prototype,"primary",void 0);$e([(0,Ee.property)()],te.prototype,"label",void 0);$e([(0,Ee.property)()],te.prototype,"tooltipPosition",void 0);$e([(0,Ee.property)()],te.prototype,"icon",void 0);$e([(0,Ee.property)()],te.prototype,"iconVariant",void 0);$e([(0,Ee.property)()],te.prototype,"text",void 0);$e([(0,Ee.property)({type:Boolean})],te.prototype,"disabled",void 0);$e([(0,Ee.state)()],te.prototype,"menuOpen",void 0);$e([(0,Ee.state)()],te.prototype,"forceMenuOpen",void 0);$e([(0,Ee.query)(".ft-floating-menu")],te.prototype,"container",void 0);$e([(0,Ee.query)(".ft-floating-menu--wrapper")],te.prototype,"menuWrapper",void 0);$e([(0,Ee.query)("#actions-button")],te.prototype,"actionButton",void 0);$e([(0,Ee.queryAssignedElements)({slot:"toggle"})],te.prototype,"customToggle",void 0);var Yf=c(S()),zs=c(h()),ig={color:zs.FtCssVariableFactory.extend("--ft-floating-menu-label-color","",zs.designSystemVariables.colorOnSurfaceMedium)},Zf=Yf.css`
2092
+ `}toggleMenu(){this.menuOpen=!this.menuOpen}openMenu(){this.menuOpen=!0}closeMenu(){this.menuOpen=!1}onCloseEvent(e){e.stopPropagation(),this.closeMenu()}onItemSelect(e){e.stopPropagation(),this.dispatchEvent(new js(e.detail)),this.closeMenu()}onContentClick(e){(0,jr.eventPathContainsMatchingElement)(e,this.closeMenuMatchers,this)&&this.closeMenu()}disconnectedCallback(){super.disconnectedCallback(),document.removeEventListener("click",this.hideOptionsOnClickOutside)}contentAvailableCallback(e){super.contentAvailableCallback(e),e.has("menuOpen")&&(this.menuOpen?(this.menuWrapper.classList.remove("ft-floating-menu--wrapper-positioned"),this.positionMenuWrapper(),document.addEventListener("click",this.hideOptionsOnClickOutside)):document.removeEventListener("click",this.hideOptionsOnClickOutside))}async positionMenuWrapper(){this.menuWrapper.style.left="",this.menuWrapper.style.top="";let e=this.customToggle.length>0?this.customToggle[0]:this.actionButton,{x:i,y:r}=await Ss(e,this.menuWrapper,this.convertPlacement());this.menuWrapper.style.left=`${i}px`,this.menuWrapper.style.top=`${r}px`,this.menuWrapper.classList.add("ft-floating-menu--wrapper-positioned")}convertPlacement(){switch(this.horizontalAlignment){case"left":return this.verticalAlignment+"-start";case"right":return this.verticalAlignment+"-end";case"center":return this.verticalAlignment}}onKeyDown(e){e.key=="Escape"&&(this.closeMenu(),e.stopPropagation())}};ie.elementDefinitions={"ft-floating-menu-item":$e,"ft-button":k};ie.styles=Kf;Fe([(0,we.property)()],ie.prototype,"horizontalAlignment",void 0);Fe([(0,we.property)()],ie.prototype,"verticalAlignment",void 0);Fe([(0,jr.jsonProperty)([])],ie.prototype,"closeMenuMatchers",void 0);Fe([(0,we.property)({type:Boolean})],ie.prototype,"primary",void 0);Fe([(0,we.property)()],ie.prototype,"label",void 0);Fe([(0,we.property)()],ie.prototype,"tooltipPosition",void 0);Fe([(0,we.property)()],ie.prototype,"icon",void 0);Fe([(0,we.property)()],ie.prototype,"iconVariant",void 0);Fe([(0,we.property)()],ie.prototype,"text",void 0);Fe([(0,we.property)({type:Boolean})],ie.prototype,"disabled",void 0);Fe([(0,we.state)()],ie.prototype,"menuOpen",void 0);Fe([(0,we.state)()],ie.prototype,"forceMenuOpen",void 0);Fe([(0,we.query)(".ft-floating-menu")],ie.prototype,"container",void 0);Fe([(0,we.query)(".ft-floating-menu--wrapper")],ie.prototype,"menuWrapper",void 0);Fe([(0,we.query)("#actions-button")],ie.prototype,"actionButton",void 0);Fe([(0,we.queryAssignedElements)({slot:"toggle"})],ie.prototype,"customToggle",void 0);var Yf=c(S()),Ws=c(h()),ig={color:Ws.FtCssVariableFactory.extend("--ft-floating-menu-label-color","",Ws.designSystemVariables.colorOnSurfaceMedium)},Zf=Yf.css`
2087
2093
  .ft-floating-menu-label {
2088
2094
  padding: 4px 8px;
2089
2095
  }
@@ -2102,7 +2108,7 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
2102
2108
  <slot></slot>
2103
2109
  </ft-typography>
2104
2110
  </div>
2105
- `}};_i.elementDefinitions={"ft-typography":U};_i.styles=Zf;var eh=c(h());var Qf={"ft-floating-menu":te,"ft-floating-menu-item":Ne,"ft-floating-menu-label":_i};(0,eh.customElements)(Qf);var tt=c(S()),ih=c(br());var Dn=c(h());function rg(t){var e;return((e=(0,Dn.accessResult)(t))===null||e===void 0?void 0:e.openMode)===uo.EXTERNAL}function th(t,e){return rg(t)?(0,Dn.accessResult)(t).originUrl:(0,Dn.accessResultUrl)(t,e)}var Ke=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},he=class extends yc(yt(Ms)){get metadataValue(){return this.flatMetadata?this.flatMetadata.displayValue:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}get metadataLabel(){var e,i,r,n,o,s;return this.metadata?this.metadata.label:(s=(o=(r=(i=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||i===void 0?void 0:i.getMetadataDescriptor(this.key))===null||r===void 0?void 0:r.label)!==null&&o!==void 0?o:(n=this.relatives.find(a=>a.metadata.value))===null||n===void 0?void 0:n.metadata.label)!==null&&s!==void 0?s:this.key}setUdvStateManager(e){super.setUdvStateManager(e),this.key&&this.useForSwitchingToRelatives&&e.registerMetadataForSwitchToRelatives(this.key)}constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1,this.translateValues=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(Ir)}willUpdate(e){var i,r,n,o,s;super.willUpdate(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((i=this.viewerStateManager)===null||i===void 0||i.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((r=this.viewerStateManager)===null||r===void 0||r.registerMetadataForSwitchToRelatives(this.key))),e.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(n=this.viewerStateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key):(o=this.viewerStateManager)===null||o===void 0||o.unregisterMetadataForSwitchToRelatives(this.key)),(e.has("translateValues")||e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||e.has("availableContentLocales")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?We.ClusteringHelper.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new We.MetadataValueLocalizer((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}updateRelatives(){var e,i,r,n;this.useForSwitchingToRelatives&&this.key?this.relatives=(n=(i=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||i===void 0?void 0:i.computeClustersItemsForMetadata(this.key,((r=this.document)===null||r===void 0?void 0:r.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&n!==void 0?n:[]:this.relatives=[]}render(){return tt.html`
2111
+ `}};_i.elementDefinitions={"ft-typography":F};_i.styles=Zf;var eh=c(h());var Qf={"ft-floating-menu":ie,"ft-floating-menu-item":$e,"ft-floating-menu-label":_i};(0,eh.customElements)(Qf);var tt=c(S()),ih=c(br());var Dn=c(h());function rg(t){var e;return((e=(0,Dn.accessResult)(t))===null||e===void 0?void 0:e.openMode)===fo.EXTERNAL}function th(t,e){return rg(t)?(0,Dn.accessResult)(t).originUrl:(0,Dn.accessResultUrl)(t,e)}var Ke=function(t,e,i,r){var n=arguments.length,o=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,i):r,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")o=Reflect.decorate(t,e,i,r);else for(var a=t.length-1;a>=0;a--)(s=t[a])&&(o=(n<3?s(o):n>3?s(e,i,o):s(e,i))||o);return n>3&&o&&Object.defineProperty(e,i,o),o},pe=class extends vc(yt(Fs)){get metadataValue(){return this.flatMetadata?this.flatMetadata.displayValue:this.editorMode?this.key?`no value for ${this.key}`:"no metadata selected":this.noValueMessage}get metadataLabel(){var e,i,r,n,o,s;return this.metadata?this.metadata.label:(s=(o=(r=(i=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||i===void 0?void 0:i.getMetadataDescriptor(this.key))===null||r===void 0?void 0:r.label)!==null&&o!==void 0?o:(n=this.relatives.find(a=>a.metadata.value))===null||n===void 0?void 0:n.metadata.label)!==null&&s!==void 0?s:this.key}setUdvStateManager(e){super.setUdvStateManager(e),this.key&&this.useForSwitchingToRelatives&&e.registerMetadataForSwitchToRelatives(this.key)}constructor(){super(),this.multiLine=!1,this.useForSwitchingToRelatives=!1,this.displayLabel=!1,this.hierarchicalValueTruncatingLevel=3,this.forceTooltip=!1,this.editorMode=!1,this.translateValues=!1,this.relatives=[],this.noValueMessage="No value",this.addI18nContext(Ir)}willUpdate(e){var i,r,n,o,s;super.willUpdate(e),e.has("key")&&this.useForSwitchingToRelatives&&(e.get("key")&&((i=this.viewerStateManager)===null||i===void 0||i.unregisterMetadataForSwitchToRelatives(e.get("key"))),this.key&&((r=this.viewerStateManager)===null||r===void 0||r.registerMetadataForSwitchToRelatives(this.key))),e.has("useForSwitchingToRelatives")&&this.key&&(this.useForSwitchingToRelatives?(n=this.viewerStateManager)===null||n===void 0||n.registerMetadataForSwitchToRelatives(this.key):(o=this.viewerStateManager)===null||o===void 0||o.unregisterMetadataForSwitchToRelatives(this.key)),(e.has("translateValues")||e.has("metadata")||e.has("hierarchicalValueTruncatingLevel")||e.has("availableContentLocales")||this.dateFormatOptionsChanged(e))&&(this.flatMetadata=this.metadata?We.ClusteringHelper.flattenMetadata(this.metadata,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.metadata.key)):void 0,this.translateValues&&(this.flatMetadata=new We.MetadataValueLocalizer((s=this.availableContentLocales)!==null&&s!==void 0?s:[]).localize(this.flatMetadata)))}updateRelatives(){var e,i,r,n;this.useForSwitchingToRelatives&&this.key?this.relatives=(n=(i=(e=this.viewerStateManager)===null||e===void 0?void 0:e.clusteringHelper)===null||i===void 0?void 0:i.computeClustersItemsForMetadata(this.key,((r=this.document)===null||r===void 0?void 0:r.lang)||"en",this.noValueMessage,this.hierarchicalValueTruncatingLevel,this.getDateFormatter(this.key)))!==null&&n!==void 0?n:[]:this.relatives=[]}render(){return tt.html`
2106
2112
  ${this.useForSwitchingToRelatives&&this.relatives.length>0?this.renderSwitchToRelatives():this.renderChip()}
2107
2113
  ${this.hideIfEmpty()}
2108
2114
  `}hideIfEmpty(){let e=this.flatMetadata==null&&(this.useForSwitchingToRelatives?this.relatives.length===0:!0);return!this.editorMode&&e?tt.html`
@@ -2152,7 +2158,7 @@ ${Is.messages["mail.feedback.disclaimer"]()}`);return`mailto:${(i=this.configura
2152
2158
  text="${d}">
2153
2159
  ${u}
2154
2160
  </ft-tooltip>
2155
- `}};he.elementDefinitions={"ft-chip":ne,"ft-floating-menu":te,"ft-floating-menu-item":Ne,"ft-floating-menu-label":_i,"ft-ripple":P,"ft-tooltip":re};he.styles=Pf;Ke([(0,Mt.property)(),(0,We.reduxReactive)()],he.prototype,"key",void 0);Ke([(0,Mt.property)({type:Boolean})],he.prototype,"multiLine",void 0);Ke([(0,Mt.property)({type:Boolean})],he.prototype,"useForSwitchingToRelatives",void 0);Ke([(0,Mt.property)({type:Boolean})],he.prototype,"displayLabel",void 0);Ke([(0,We.numberProperty)()],he.prototype,"hierarchicalValueTruncatingLevel",void 0);Ke([(0,Mt.property)({type:Boolean})],he.prototype,"forceTooltip",void 0);Ke([(0,Mt.property)({attribute:!1})],he.prototype,"editorMode",void 0);Ke([(0,Mt.property)({type:Boolean})],he.prototype,"translateValues",void 0);Ke([(0,We.redux)({store:"viewer",selector:(t,e)=>{var i,r;return(r=(i=t.document)===null||i===void 0?void 0:i.metadata)===null||r===void 0?void 0:r.find(n=>n.key===e.key)}})],he.prototype,"metadata",void 0);Ke([(0,Mt.state)()],he.prototype,"flatMetadata",void 0);Ke([(0,We.redux)({store:"viewer"})],he.prototype,"document",void 0);Ke([(0,Mt.state)()],he.prototype,"relatives",void 0);Ke([(0,We.redux)({store:v.name})],he.prototype,"availableContentLocales",void 0);Ke([es(Ir.properties.itemWithNoValueForSwitchToRelatives())],he.prototype,"noValueMessage",void 0);Ke([(0,We.reduxEventListener)({eventName:oi.clusteringHelperCreated})],he.prototype,"updateRelatives",null);var rh={"ft-asset-viewer-content":No,"ft-asset-viewer-context":Xt,"ft-asset-viewer-document-title":Ho,"ft-asset-viewer-filename":$o,"ft-asset-viewer-mime-type-icon":Bo,"ft-asset-viewer-title":Fo,"ft-ud-viewer-attachments":Zi,"ft-ud-viewer-content":Go,"ft-ud-viewer-context":vi,"ft-ud-viewer-filename":qo,"ft-ud-viewer-metadata":he,"ft-ud-viewer-mime-type-icon":Zo,"ft-ud-viewer-title":Yo,"ft-ud-viewer-feedback":ee};(0,nh.customElements)(rh);})();
2161
+ `}};pe.elementDefinitions={"ft-chip":te,"ft-floating-menu":ie,"ft-floating-menu-item":$e,"ft-floating-menu-label":_i,"ft-ripple":P,"ft-tooltip":ne};pe.styles=Pf;Ke([(0,Nt.property)(),(0,We.reduxReactive)()],pe.prototype,"key",void 0);Ke([(0,Nt.property)({type:Boolean})],pe.prototype,"multiLine",void 0);Ke([(0,Nt.property)({type:Boolean})],pe.prototype,"useForSwitchingToRelatives",void 0);Ke([(0,Nt.property)({type:Boolean})],pe.prototype,"displayLabel",void 0);Ke([(0,We.numberProperty)()],pe.prototype,"hierarchicalValueTruncatingLevel",void 0);Ke([(0,Nt.property)({type:Boolean})],pe.prototype,"forceTooltip",void 0);Ke([(0,Nt.property)({attribute:!1})],pe.prototype,"editorMode",void 0);Ke([(0,Nt.property)({type:Boolean})],pe.prototype,"translateValues",void 0);Ke([(0,We.redux)({store:"viewer",selector:(t,e)=>{var i,r;return(r=(i=t.document)===null||i===void 0?void 0:i.metadata)===null||r===void 0?void 0:r.find(n=>n.key===e.key)}})],pe.prototype,"metadata",void 0);Ke([(0,Nt.state)()],pe.prototype,"flatMetadata",void 0);Ke([(0,We.redux)({store:"viewer"})],pe.prototype,"document",void 0);Ke([(0,Nt.state)()],pe.prototype,"relatives",void 0);Ke([(0,We.redux)({store:v.name})],pe.prototype,"availableContentLocales",void 0);Ke([is(Ir.properties.itemWithNoValueForSwitchToRelatives())],pe.prototype,"noValueMessage",void 0);Ke([(0,We.reduxEventListener)({eventName:oi.clusteringHelperCreated})],pe.prototype,"updateRelatives",null);var rh={"ft-asset-viewer-content":Fo,"ft-asset-viewer-context":Xt,"ft-asset-viewer-document-title":jo,"ft-asset-viewer-filename":Uo,"ft-asset-viewer-mime-type-icon":zo,"ft-asset-viewer-title":Vo,"ft-ud-viewer-attachments":Yi,"ft-ud-viewer-content":Yo,"ft-ud-viewer-context":vi,"ft-ud-viewer-filename":Zo,"ft-ud-viewer-metadata":pe,"ft-ud-viewer-mime-type-icon":Jo,"ft-ud-viewer-title":Xo,"ft-ud-viewer-feedback":ee};(0,nh.customElements)(rh);})();
2156
2162
  /*! Bundled license information:
2157
2163
 
2158
2164
  .store/@lit-context-npm-1.1.6-2c155157c6/package/lib/context-request-event.js: