@fluid-topics/ft-reader-feedback 1.1.42 → 1.1.44

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,4 +1,4 @@
1
- !function(t,e,o,i,r,n,a){var s;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(s||(s={}));var l=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class c extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const d=Symbol("registerInterval");class p extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[d]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[d]):this.dispatchEvent(new c)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=d,l([i.state()],o.prototype,"stateManager",void 0),o}(e.FtLitElementRedux)){}const f=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorContent),h={color:f,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color","",f),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},u=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorPrimary),g=u,y=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",u),b=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorSecondary),m=b,v=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",b),x=o.css`
1
+ !function(t,e,o,i,r,n,a){var s;!function(t){t.FEEDBACK="FEEDBACK",t.RATING="RATING",t.PRINT="PRINT",t.BOOKMARK="BOOKMARK",t.COLLECTIONS="COLLECTIONS",t.PERSONAL_BOOKS="PERSONAL_BOOKS"}(s||(s={}));var l=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class c extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}}const d=Symbol("registerInterval");class f extends(function(t){var e;class o extends t{constructor(){super(...arguments),this[e]=0}setReaderStateManager(t){this.clearStateManager(),this.stateManager=t,this.addStore(t.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var t;return null===(t=this.stateManager)||void 0===t?void 0:t.service}connectedCallback(){super.connectedCallback(),this[d]=window.setInterval((()=>this.tryToRegisterToContext()),50)}tryToRegisterToContext(){null!=this.stateManager?window.clearInterval(this[d]):this.dispatchEvent(new c)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=d,l([i.state()],o.prototype,"stateManager",void 0),o}(e.FtLitElementRedux)){}const p=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorContent),h={color:p,backgroundColor:e.FtCssVariableFactory.extend("--ft-ripple-background-color","",p),opacityContentOnSurfacePressed:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:e.FtCssVariableFactory.external(e.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:e.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},u=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorPrimary),g=u,b=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",u),y=e.FtCssVariableFactory.extend("--ft-ripple-color","",e.designSystemVariables.colorSecondary),m=y,v=e.FtCssVariableFactory.extend("--ft-ripple-background-color","",y),x=o.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -61,7 +61,7 @@
61
61
  }
62
62
 
63
63
  .ft-ripple.ft-ripple--primary .ft-ripple--background {
64
- background-color: ${y};
64
+ background-color: ${b};
65
65
  }
66
66
 
67
67
  .ft-ripple.ft-ripple--primary .ft-ripple--effect {
@@ -110,7 +110,7 @@
110
110
  opacity: ${h.opacityContentOnSurfacePressed};
111
111
  transform: translate(-50%, -50%) scale(1);
112
112
  }
113
- `,w=t=>"string"==typeof t?o.unsafeCSS(t):t;class O{static create(t,e,i,r){const n=t=>w(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,e,i,r){const n=t=>i.get(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i.category,a.fallbackVariable=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),a}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):w(null!=e?e:t.lastResortDefaultValue()),r=o.css`var(${w(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=i,r.get=e=>o.css`var(${w(t.name)}, ${i(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const S={colorWhite:O.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:O.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:O.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:O.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:O.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:O.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:O.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:O.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:O.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:O.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:O.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:O.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:O.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:O.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:O.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:O.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:O.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:O.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:O.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:O.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:O.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:O.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:O.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:O.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:O.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:O.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:O.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:O.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:O.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:O.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:O.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:O.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:O.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:O.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:O.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:O.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:O.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:O.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:O.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:O.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:O.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:O.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:O.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:O.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:O.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:O.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:O.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:O.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:O.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:O.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:O.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:O.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:O.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:O.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:O.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:O.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:O.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:O.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:O.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:O.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:O.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:O.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:O.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:O.create("--ft-color-orange-0","","COLOR","#ee8d17"),colorOrange10:O.create("--ft-color-orange-10","","COLOR","#fef6ec"),colorOrange20:O.create("--ft-color-orange-20","","COLOR","#fbe7cd"),colorOrange30:O.create("--ft-color-orange-30","","COLOR","#f9d8af"),colorOrange40:O.create("--ft-color-orange-40","","COLOR","#f7c991"),colorOrange50:O.create("--ft-color-orange-50","","COLOR","#f5ba72"),colorOrange60:O.create("--ft-color-orange-60","","COLOR","#f2ab54"),colorOrange70:O.create("--ft-color-orange-70","","COLOR","#f09c35"),colorOrange100:O.create("--ft-color-orange-100","","COLOR","#cf7b14"),colorOrange200:O.create("--ft-color-orange-200","","COLOR","#b06811"),colorOrange300:O.create("--ft-color-orange-300","","COLOR","#90560e"),colorOrange400:O.create("--ft-color-orange-400","","COLOR","#71430b"),colorOrange500:O.create("--ft-color-orange-500","","COLOR","#523108"),colorOrange600:O.create("--ft-color-orange-600","","COLOR","#331e05"),colorOrange700:O.create("--ft-color-orange-700","","COLOR","#140c02"),colorRed0:O.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:O.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:O.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:O.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:O.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:O.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:O.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:O.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:O.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:O.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:O.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:O.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:O.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:O.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:O.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:O.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:O.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:O.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:O.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:O.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:O.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:O.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:O.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:O.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:O.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:O.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:O.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:O.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:O.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:O.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:O.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:O.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:O.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:O.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:O.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:O.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:O.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:O.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:O.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:O.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:O.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:O.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:O.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:O.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:O.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:O.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:O.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:O.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:O.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:O.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:O.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:O.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:O.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:O.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:O.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:O.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:O.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:O.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:O.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:O.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:O.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:O.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:O.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:O.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:O.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:O.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:O.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:O.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:O.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:O.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:O.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:O.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:O.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:O.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:O.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:O.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:O.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:O.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:O.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:O.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:O.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:O.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:O.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:O.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:O.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:O.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:O.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:O.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:O.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:O.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:O.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:O.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:O.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:O.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:O.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:O.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:O.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:O.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:O.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:O.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:O.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:O.create("--ft-icon-size-6","","SIZE","48px"),opacity0:O.create("--ft-opacity-0","","NUMBER","0"),opacity8:O.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:O.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:O.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:O.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:O.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:O.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:O.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:O.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:O.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:O.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:O.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:O.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:O.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:O.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)")},$={display:{fontFamily:O.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:O.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:O.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:O.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:O.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:O.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:O.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:O.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:O.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:O.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:O.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:O.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:O.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:O.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:O.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:O.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-semibold":{fontFamily:O.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:O.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:O.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:O.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:O.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:O.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:O.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:O.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:O.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:O.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:O.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:O.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:O.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},"caption-3-medium":{fontFamily:O.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},"caption-3-semibold":{fontFamily:O.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},"caption-3-bold":{fontFamily:O.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")}},N={backgroundActionPrimary:O.extend("--ft-background-action-primary","Used as backgorund of primary action components.",S.colorBrand0),backgroundErrorPrimary:O.extend("--ft-background-error-primary","Used as background of error components.",S.colorRed0),backgroundErrorSubtle:O.extend("--ft-background-error-subtle","Used as background of subtle error components.",S.colorRed10),backgroundInfoPrimary:O.extend("--ft-background-info-primary","Used as background of information components.",S.colorCyan200),backgroundInfoSubtle:O.extend("--ft-background-info-subtle","Used as background of subtle information components.",S.colorCyan10),backgroundWarningPrimary:O.extend("--ft-background-warning-primary","Used as background of warning components.",S.colorOrange300),backgroundWarningSubtle:O.extend("--ft-background-warning-subtle","Used as background of subtle information components.",S.colorOrange10),backgroundSuccessPrimary:O.extend("--ft-background-success-primary","Used as background of success components.",S.colorGreen200),backgroundSuccessSubtle:O.extend("--ft-background-success-subtle","Used as background of subtle success components.",S.colorGreen10),backgroundGlobalSurface:O.extend("--ft-background-global-surface","Used as app background.",S.colorWhite),backgroundGlobalOnSurface:O.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",S.colorGray10),backgroundGlobalOnSurfaceDark:O.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",S.colorGray30),contentActionPrimary:O.extend("--ft-content-action-primary","Used on label of primary action on light surface.",S.colorBrand0),contentWarningPrimary:O.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",S.colorOrange300),contentWarningIconOnly:O.extend("--ft-content-warning-icon-only","Used on warning status icons alone",S.colorOrange0),contentErrorPrimary:O.extend("--ft-content-error-primary","Used on label of error messages on light surface.",S.colorRed0),contentErrorIconOnly:O.extend("--ft-content-error-icon-only","Used on error status icons alone",S.colorRed0),contentInfoPrimary:O.extend("--ft-content-info-primary","Used on label of information messages on light surface.",S.colorCyan200),contentInfoIconOnly:O.extend("--ft-content-info-icon-only","Used on info status icons alone",S.colorCyan0),contentSuccessPrimary:O.extend("--ft-content-success-primary","Used on label of success messages on light surface.",S.colorGreen200),contentSuccessIconOnly:O.extend("--ft-content-success-icon-only","Used on success status icons alone",S.colorGreen0),contentGlobalPrimary:O.extend("--ft-content-global-primary","Used for main content on the page.",S.colorGray500),contentGlobalSecondary:O.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",S.colorGray200),contentGlobalSubtle:O.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",S.colorGray0),contentGlobalOnColor:O.extend("--ft-content-global-on-color","Used for content on a dominant color.",S.colorWhite),borderActionPrimary:O.extend("--ft-border-action-primary","Used as border for primary action components.",S.colorBrand0),borderActionFocusRing:O.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",S.colorCyan0),borderWarningPrimary:O.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",S.colorOrange300),borderWarningSubtle:O.extend("--ft-border-warning-subtle","Used as border for warning components.",S.colorOrange30),borderSuccessPrimary:O.extend("--ft-border-success-primary","Used as border for success buttons.",S.colorGreen200),borderSuccessSubtle:O.extend("--ft-border-success-subtle","Used as border for success components.",S.colorGreen30),borderErrorPrimary:O.extend("--ft-border-error-primary","Used as border for text fields in error states.",S.colorRed0),borderErrorSubtle:O.extend("--ft-border-error-subtle","Used as border for error components.",S.colorRed30),borderInfoPrimary:O.extend("--ft-border-info-primary","Used as border for buttons in info color.",S.colorCyan200),borderInfoSubtle:O.extend("--ft-border-info-subtle","Used as border for information components.",S.colorCyan30),borderGlobalPrimary:O.extend("--ft-border-global-primary","Used as border for element like input.",S.colorGray50),borderGlobalSubtle:O.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",S.colorGray30),borderInputPrimary:O.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",S.colorGray80)},I={largeHeight:O.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:O.extend("--ft-button-large-horizontal-padding","",S.spacing4),largeGap:O.extend("--ft-button-large-gap","",S.spacing2),largeBorderRadius:O.extend("--ft-button-large-border-radius","",S.borderRadiusS),largeIconSize:O.extend("--ft-button-large-icon-size","",S.iconSize3),largeBorderWidth:O.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:O.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:O.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:O.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:O.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:O.extend("--ft-button-small-horizontal-padding","",S.spacing3),smallGap:O.extend("--ft-button-small-gap","",S.spacing2),smallBorderRadius:O.extend("--ft-button-small-border-radius","",S.borderRadiusS),smallIconSize:O.extend("--ft-button-small-icon-size","",S.iconSize2),smallBorderWidth:O.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:O.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:O.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:O.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:O.extend("--ft-button-primary-background-color","",N.backgroundActionPrimary),primaryColor:O.extend("--ft-button-primary-color","",N.contentGlobalOnColor),primaryIconColor:O.extend("--ft-button-primary-icon-color","",N.contentGlobalOnColor),primaryStateLayerColor:O.extend("--ft-button-primary-state-layer-color","",N.contentGlobalOnColor),primaryStateLayerOpacityHover:O.extend("--ft-button-primary-state-layer-opacity-hover","",S.opacity16),primaryStateLayerOpacityFocus:O.extend("--ft-button-primary-state-layer-opacity-focus","",S.opacity16),primaryStateLayerOpacityActive:O.extend("--ft-button-primary-state-layer-opacity-active","",S.opacity24),primaryComponentOpacityDisabled:O.extend("--ft-button-primary-component-opacity-disabled","",S.opacity40),focusFocusRingColor:O.extend("--ft-button-focus-focus-ring-color","",N.borderActionFocusRing),tertiaryBackgroundColor:O.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:O.extend("--ft-button-tertiary-color","",N.contentActionPrimary),tertiaryIconColor:O.extend("--ft-button-tertiary-icon-color","",N.contentActionPrimary),tertiaryStateLayerColor:O.extend("--ft-button-tertiary-state-layer-color","",N.contentActionPrimary),tertiaryStateLayerOpacityHover:O.extend("--ft-button-tertiary-state-layer-opacity-hover","",S.opacity8),tertiaryStateLayerOpacityFocus:O.extend("--ft-button-tertiary-state-layer-opacity-focus","",S.opacity8),tertiaryStateLayerOpacityActive:O.extend("--ft-button-tertiary-state-layer-opacity-active","",S.opacity16),tertiaryComponentOpacityDisabled:O.extend("--ft-button-tertiary-component-opacity-disabled","",S.opacity40),secondaryBackgroundColor:O.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:O.extend("--ft-button-secondary-color","",N.contentActionPrimary),secondaryIconColor:O.extend("--ft-button-secondary-icon-color","",N.contentActionPrimary),secondaryStateLayerColor:O.extend("--ft-button-secondary-state-layer-color","",N.contentActionPrimary),secondaryStateLayerOpacityHover:O.extend("--ft-button-secondary-state-layer-opacity-hover","",S.opacity8),secondaryStateLayerOpacityFocus:O.extend("--ft-button-secondary-state-layer-opacity-focus","",S.opacity8),secondaryStateLayerOpacityActive:O.extend("--ft-button-secondary-state-layer-opacity-active","",S.opacity16),secondaryComponentOpacityDisabled:O.extend("--ft-button-secondary-component-opacity-disabled","",S.opacity40),secondaryBorderColor:O.extend("--ft-button-secondary-border-color","",N.borderActionPrimary),neutralBackgroundColor:O.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:O.extend("--ft-button-neutral-icon-color","",N.contentGlobalSecondary),neutralColor:O.extend("--ft-button-neutral-color","",N.contentGlobalSecondary),neutralStateLayerColor:O.extend("--ft-button-neutral-state-layer-color","",N.contentGlobalSecondary),neutralStateLayerOpacityHover:O.extend("--ft-button-neutral-state-layer-opacity-hover","",S.opacity8),neutralStateLayerOpacityFocus:O.extend("--ft-button-neutral-state-layer-opacity-focus","",S.opacity8),neutralStateLayerOpacityActive:O.extend("--ft-button-neutral-state-layer-opacity-active","",S.opacity16),neutralComponentOpacityDisabled:O.extend("--ft-button-neutral-component-opacity-disabled","",S.opacity40)};O.extend("--ft-floating-menu-horizontal-padding","",S.spacing4),O.extend("--ft-floating-menu-vertical-padding","",S.spacing4),O.extend("--ft-floating-menu-off-icon-color","",N.contentGlobalPrimary),O.extend("--ft-floating-menu-off-color","",N.contentGlobalPrimary),O.extend("--ft-floating-menu-on-color","",N.contentActionPrimary),O.extend("--ft-floating-menu-on-icon-color","",N.contentActionPrimary),O.extend("--ft-floating-menu-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-floating-menu-gap","",S.spacing3),O.extend("--ft-floating-menu-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),O.extend("--ft-floating-menu-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-floating-menu-state-layer-opacity-active","",S.opacity16),O.extend("--ft-floating-menu-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-floating-menu-component-opacity-disabled","",S.opacity40),O.extend("--ft-floating-menu-icon-size","",S.iconSize3),O.extend("--ft-floating-menu-background-color","",N.backgroundGlobalOnSurface),O.extend("--ft-tabs-top-left-border-radius","",S.borderRadiusS),O.extend("--ft-tabs-top-right-border-radius","",S.borderRadiusS),O.extend("--ft-tabs-label-horizontal-padding","",S.spacing4),O.extend("--ft-tabs-label-vertical-padding","",S.spacing3),O.extend("--ft-tabs-label-gap","",S.spacing1),O.extend("--ft-tabs-icon-horizontal-padding","",S.spacing1),O.extend("--ft-tabs-icon-vertical-padding","",S.spacing4),O.create("--ft-tabs-focus-outline-width","","SIZE","2px"),O.extend("--ft-tabs-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-tabs-off-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-tabs-off-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-tabs-off-state-layer-opacity-active","",S.opacity16),O.extend("--ft-tabs-off-component-opacity-disabled","",S.opacity40),O.extend("--ft-tabs-off-color","",N.contentGlobalSubtle),O.extend("--ft-tabs-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-tabs-on-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-tabs-on-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-tabs-on-state-layer-opacity-active","",S.opacity16),O.extend("--ft-tabs-on-component-opacity-disabled","",S.opacity40),O.extend("--ft-tabs-on-color","",N.contentActionPrimary),O.extend("--ft-tabs-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-collapsible-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-collapsible-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-collapsible-state-layer-opacity-active","",S.opacity16),O.extend("--ft-collapsible-component-opacity-disabled","",S.opacity40),O.extend("--ft-collapsible-horizontal-padding","",S.spacing4),O.extend("--ft-collapsible-vertical-padding","",S.spacing3),O.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),O.extend("--ft-collapsible-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-collapsible-color","",N.contentGlobalPrimary),O.extend("--ft-collapsible-state-layer-color","",N.contentGlobalPrimary),O.extend("--ft-collapsible-background-color","",N.backgroundGlobalOnSurface),O.extend("--ft-collapsible-border-color","",N.borderGlobalSubtle),O.extend("--ft-collapsible-icon-size","",S.iconSize3),O.extend("--ft-switch-group-horizontal-padding","",S.spacing1),O.extend("--ft-switch-group-vertical-padding","",S.spacing1),O.extend("--ft-switch-group-gap","",S.spacing1),O.extend("--ft-switch-group-background-color","",N.backgroundGlobalSurface),O.extend("--ft-switch-group-border-color","",N.borderGlobalSubtle),O.create("--ft-switch-group-border-radius","","SIZE","6px"),O.extend("--ft-switch-label-horizontal-padding","",S.spacing2),O.extend("--ft-switch-label-vertical-padding","",S.spacing1),O.extend("--ft-switch-icon-horizontal-padding","",S.spacing1),O.extend("--ft-switch-icon-vertical-padding","",S.spacing1),O.create("--ft-switch-focus-outline-width","","SIZE","2px"),O.extend("--ft-switch-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-switch-option-border-radius","",S.borderRadiusS),O.extend("--ft-switch-off-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-switch-off-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-switch-off-state-layer-opacity-active","",S.opacity16),O.extend("--ft-switch-off-component-opacity-disabled","",S.opacity40),O.extend("--ft-switch-off-color","",N.contentGlobalSubtle),O.extend("--ft-switch-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-switch-on-state-layer-opacity-hover","",S.opacity8),O.extend("--ft-switch-on-state-layer-opacity-focus","",S.opacity8),O.extend("--ft-switch-on-state-layer-opacity-active","",S.opacity16),O.extend("--ft-switch-on-component-opacity-disabled","",S.opacity40),O.extend("--ft-switch-on-color","",N.contentActionPrimary),O.extend("--ft-switch-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-chart-1-light","for area color charts",S.colorBrand40),O.extend("--ft-chart-1-base","for line charts",S.colorBrand0),O.extend("--ft-chart-2-light","for area color charts",S.colorYellow60),O.extend("--ft-chart-2-base","for line charts",S.colorYellow100),O.extend("--ft-chart-3-light","",S.colorUltramarine40),O.extend("--ft-chart-3-base","",S.colorUltramarine70),O.extend("--ft-chart-4-light","",S.colorCyan50),O.extend("--ft-chart-4-base","",S.colorCyan100),O.extend("--ft-chart-5-light","",S.colorRed40),O.extend("--ft-chart-5-base","",S.colorRed60),O.extend("--ft-chart-6-light","",S.colorGreen40),O.extend("--ft-chart-6-base","",S.colorGreen70),O.extend("--ft-chart-7-light","",S.colorOrange70),O.extend("--ft-chart-7-base","",S.colorOrange100),O.extend("--ft-chart-8-light","",S.colorAvocado70),O.extend("--ft-chart-8-base","",S.colorAvocado200),O.extend("--ft-chart-9-light","",S.colorBrown50),O.extend("--ft-chart-9-base","",S.colorBrown200),O.extend("--ft-chart-10-light","",S.colorGray50),O.extend("--ft-chart-10-base","",S.colorGray80),O.extend("--ft-chart-monochrome-10","",S.colorBrand10),O.extend("--ft-chart-monochrome-20","",S.colorBrand20),O.extend("--ft-chart-monochrome-30","",S.colorBrand40),O.extend("--ft-chart-monochrome-40","",S.colorBrand60),O.extend("--ft-chart-monochrome-50","",S.colorBrand0),O.extend("--ft-chart-monochrome-60","",S.colorBrand200),O.extend("--ft-chip-large-horizontal-padding","",S.spacing4),O.extend("--ft-chip-large-vertical-padding","",S.spacing2),O.extend("--ft-chip-large-gap","",S.spacing1),O.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-large-border-radius","",S.borderRadiusPill),O.create("--ft-chip-large-border-width","","SIZE","1px"),O.extend("--ft-chip-large-icon-size","",S.iconSize3),O.extend("--ft-chip-medium-horizontal-padding","",S.spacing3),O.extend("--ft-chip-medium-vertical-padding","",S.spacing1),O.extend("--ft-chip-medium-gap","",S.spacing1),O.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-medium-border-radius","",S.borderRadiusPill),O.create("--ft-chip-medium-border-width","","SIZE","1px"),O.extend("--ft-chip-medium-icon-size","",S.iconSize2),O.extend("--ft-chip-small-horizontal-padding","",S.spacing2),O.extend("--ft-chip-small-vertical-padding","",S.spacing05),O.extend("--ft-chip-small-gap","",S.spacing1),O.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-small-border-radius","",S.borderRadiusPill),O.create("--ft-chip-small-border-width","","SIZE","1px"),O.extend("--ft-chip-small-icon-size","",S.iconSize1),O.extend("--ft-chip-neutral-background-color","",N.backgroundGlobalOnSurface),O.extend("--ft-chip-neutral-color","",N.contentGlobalPrimary),O.extend("--ft-chip-neutral-border-color","",N.borderGlobalSubtle),O.extend("--ft-chip-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-chip-info-color","",N.contentInfoPrimary),O.extend("--ft-chip-info-border-color","",N.borderInfoSubtle),O.extend("--ft-chip-success-background-color","",N.backgroundSuccessSubtle),O.extend("--ft-chip-success-color","",N.contentSuccessPrimary),O.extend("--ft-chip-success-border-color","",N.borderSuccessSubtle),O.extend("--ft-chip-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-chip-warning-color","",N.contentWarningPrimary),O.extend("--ft-chip-warning-border-color","",N.borderWarningSubtle),O.extend("--ft-chip-error-background-color","",N.backgroundErrorSubtle),O.extend("--ft-chip-error-color","",N.contentErrorPrimary),O.extend("--ft-chip-error-border-color","",N.borderErrorSubtle),O.create("--ft-notice-border-width","","SIZE","1px"),O.extend("--ft-notice-horizontal-padding","",S.spacing2),O.extend("--ft-notice-vertical-padding","",S.spacing1),O.extend("--ft-notice-border-radius","",S.borderRadiusS),O.extend("--ft-notice-gap","",S.spacing2),O.extend("--ft-notice-icon-size","",S.iconSize3),O.extend("--ft-notice-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-notice-info-border-color","",N.borderInfoSubtle),O.extend("--ft-notice-info-color","",N.contentInfoPrimary),O.extend("--ft-notice-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-notice-warning-border-color","",N.borderWarningSubtle),O.extend("--ft-notice-warning-color","",N.contentWarningPrimary),O.extend("--ft-checkbox-label-color","",N.contentGlobalPrimary),O.extend("--ft-checkbox-checked-background-color","",N.contentActionPrimary),O.extend("--ft-checkbox-checked-state-layer-color","",N.contentActionPrimary),O.extend("--ft-checkbox-checked-color","",N.contentGlobalOnColor),O.extend("--ft-checkbox-checked-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-checkbox-checked-state-layer-opacity-active","",S.opacity24),O.extend("--ft-checkbox-checked-component-opacity-disabled","",S.opacity40),O.extend("--ft-checkbox-unchecked-border-color","",S.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-color","",S.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-checkbox-unchecked-state-layer-opacity-active","",S.opacity24),O.extend("--ft-checkbox-unchecked-component-opacity-disabled","",S.opacity40),O.extend("--ft-checkbox-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),O.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),O.extend("--ft-checkbox-gap","",S.spacing3),O.extend("--ft-toggle-off-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-toggle-off-state-layer-opacity-active","",S.opacity24),O.extend("--ft-toggle-off-component-opacity-disabled","",S.opacity40),O.extend("--ft-toggle-off-background-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-off-icon-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-off-state-layer-color","",N.contentGlobalSubtle),O.extend("--ft-toggle-on-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-toggle-on-state-layer-opacity-active","",S.opacity24),O.extend("--ft-toggle-on-component-opacity-disabled","",S.opacity40),O.extend("--ft-toggle-on-background-color","",N.contentActionPrimary),O.extend("--ft-toggle-on-icon-color","",N.contentActionPrimary),O.extend("--ft-toggle-on-state-layer-color","",N.contentActionPrimary),O.extend("--ft-toggle-label-color","",N.contentGlobalPrimary),O.extend("--ft-toggle-focus-focus-ring-color","",N.borderActionFocusRing),O.extend("--ft-toggle-gap","",S.spacing3),O.extend("--ft-radio-label-color","",N.contentGlobalPrimary),O.extend("--ft-radio-selected-color","",N.contentActionPrimary),O.extend("--ft-radio-selected-state-layer-color","",N.contentActionPrimary),O.extend("--ft-radio-selected-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-radio-selected-state-layer-opacity-active","",S.opacity24),O.extend("--ft-radio-selected-component-opacity-disabled","",S.opacity40),O.extend("--ft-radio-unselected-state-layer-color","",S.colorGray80),O.extend("--ft-radio-unselected-state-layer-opacity-hover","",S.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-focus","",S.opacity16),O.extend("--ft-radio-unselected-state-layer-opacity-active","",S.opacity24),O.extend("--ft-radio-unselected-component-opacity-disabled","",S.opacity40),O.extend("--ft-radio-focus-focus-ring-color","",N.borderActionFocusRing),O.create("--ft-radio-focus-outline-offset","","SIZE","3px"),O.create("--ft-radio-focus-outline-width","","SIZE","2px"),O.extend("--ft-radio-gap","",S.spacing3),O.extend("--ft-notification-icon-size","",S.iconSize4),O.extend("--ft-notification-horizontal-padding","",S.spacing4),O.extend("--ft-notification-vertical-padding","",S.spacing4),O.extend("--ft-notification-info-background-color","",N.backgroundInfoSubtle),O.extend("--ft-notification-info-color","",N.contentInfoPrimary),O.extend("--ft-notification-info-border-color","",N.borderInfoSubtle),O.extend("--ft-notification-success-background-color","",N.backgroundSuccessSubtle),O.extend("--ft-notification-success-color","",N.contentSuccessPrimary),O.extend("--ft-notification-success-border-color","",N.borderSuccessSubtle),O.extend("--ft-notification-warning-background-color","",N.backgroundWarningSubtle),O.extend("--ft-notification-warning-color","",N.contentWarningPrimary),O.extend("--ft-notification-warning-border-color","",N.borderWarningSubtle),O.extend("--ft-notification-error-background-color","",N.backgroundErrorSubtle),O.extend("--ft-notification-error-color","",N.contentErrorPrimary),O.extend("--ft-notification-error-border-color","",N.borderErrorSubtle),O.extend("--ft-notification-border-radius","",S.borderRadiusPill),O.create("--ft-notification-border-width","","SIZE","1px"),O.extend("--ft-notification-gap-leading","",S.spacing2),O.extend("--ft-notification-gap-trailing","",S.spacing8),O.extend("--ft-tooltip-horizontal-padding","",S.spacing2),O.extend("--ft-tooltip-vertical-padding","",S.spacing2),O.extend("--ft-tooltip-border-radius","",S.borderRadiusS),O.extend("--ft-tooltip-label","",N.contentGlobalOnColor),O.extend("--ft-tooltip-background","",N.contentGlobalPrimary),O.extend("--ft-tooltip-background-opacity","",S.opacity80),O.extend("--ft-tooltip-shadow","",S.shadowElevation03);const C=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),k=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),E={fontFamily:k,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},R={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},U={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},L=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",k),W=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",k),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),F=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),K=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),Z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),M=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit"),P={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},H=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",k),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),G=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),V=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),Y=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),q=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit"),X={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},Q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",k),J=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),tt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),it=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit"),rt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",k),nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),at=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),ct=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase"),dt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},pt=o.css`
113
+ `,w=t=>"string"==typeof t?o.unsafeCSS(t):t;class O{static create(t,e,i,r){const n=t=>w(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[],a.lastResortDefaultValue=()=>r,a}static extend(t,e,i,r){const n=t=>i.get(null!=t?t:r),a=o.css`var(${w(t)}, ${n(r)})`;return a.name=t,a.description=e,a.category=i.category,a.fallbackVariable=i,a.defaultValue=r,a.defaultCssValue=n,a.get=e=>o.css`var(${w(t)}, ${n(e)})`,a.breadcrumb=()=>[i.name,...i.breadcrumb()],a.lastResortDefaultValue=()=>null!=r?r:i.lastResortDefaultValue(),a}static external(t,e){const i=e=>t.fallbackVariable?t.fallbackVariable.get(null!=e?e:t.defaultValue):w(null!=e?e:t.lastResortDefaultValue()),r=o.css`var(${w(t.name)}, ${i(t.defaultValue)})`;return r.name=t.name,r.category=t.category,r.fallbackVariable=t.fallbackVariable,r.defaultValue=t.defaultValue,r.context=e,r.defaultCssValue=i,r.get=e=>o.css`var(${w(t.name)}, ${i(e)})`,r.breadcrumb=()=>t.fallbackVariable?[t.fallbackVariable.name,...t.fallbackVariable.breadcrumb()]:[],r.lastResortDefaultValue=()=>t.lastResortDefaultValue(),r}}const S={colorWhite:O.create("--ft-color-white","","COLOR","#ffffff"),colorGray0:O.create("--ft-color-gray-0","","COLOR","#71718e"),colorGray10:O.create("--ft-color-gray-10","","COLOR","#fbfbfc"),colorGray20:O.create("--ft-color-gray-20","","COLOR","#f2f2f5"),colorGray30:O.create("--ft-color-gray-30","","COLOR","#e9e9ed"),colorGray40:O.create("--ft-color-gray-40","","COLOR","#e0e0e6"),colorGray50:O.create("--ft-color-gray-50","","COLOR","#cdcdd7"),colorGray60:O.create("--ft-color-gray-60","","COLOR","#bbbbc9"),colorGray70:O.create("--ft-color-gray-70","","COLOR","#a8a8ba"),colorGray80:O.create("--ft-color-gray-80","","COLOR","#9696ab"),colorGray90:O.create("--ft-color-gray-90","","COLOR","#83839d"),colorGray100:O.create("--ft-color-gray-100","","COLOR","#62627c"),colorGray200:O.create("--ft-color-gray-200","","COLOR","#545469"),colorGray300:O.create("--ft-color-gray-300","","COLOR","#454557"),colorGray400:O.create("--ft-color-gray-400","","COLOR","#363644"),colorGray500:O.create("--ft-color-gray-500","","COLOR","#282832"),colorGray600:O.create("--ft-color-gray-600","","COLOR","#19191f"),colorGray700:O.create("--ft-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:O.create("--ft-color-brand-0","","COLOR","#9d207b"),colorBrand10:O.create("--ft-color-brand-10","","COLOR","#f7edf4"),colorBrand20:O.create("--ft-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:O.create("--ft-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:O.create("--ft-color-brand-40","","COLOR","#d395c2"),colorBrand50:O.create("--ft-color-brand-50","","COLOR","#c778b1"),colorBrand60:O.create("--ft-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:O.create("--ft-color-brand-70","","COLOR","#ae3e90"),colorBrand100:O.create("--ft-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:O.create("--ft-color-brand-200","","COLOR","#78185e"),colorBrand300:O.create("--ft-color-brand-300","","COLOR","#62144d"),colorBrand400:O.create("--ft-color-brand-400","","COLOR","#4d103c"),colorBrand500:O.create("--ft-color-brand-500","","COLOR","#380b2c"),colorBrand600:O.create("--ft-color-brand-600","","COLOR","#23071b"),colorBrand700:O.create("--ft-color-brand-700","","COLOR","#0d030b"),colorCyan0:O.create("--ft-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:O.create("--ft-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:O.create("--ft-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:O.create("--ft-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:O.create("--ft-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:O.create("--ft-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:O.create("--ft-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:O.create("--ft-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:O.create("--ft-color-cyan-100","","COLOR","#0c849c"),colorCyan200:O.create("--ft-color-cyan-200","","COLOR","#0a7085"),colorCyan300:O.create("--ft-color-cyan-300","","COLOR","#085c6d"),colorCyan400:O.create("--ft-color-cyan-400","","COLOR","#074856"),colorCyan500:O.create("--ft-color-cyan-500","","COLOR","#05343e"),colorCyan600:O.create("--ft-color-cyan-600","","COLOR","#032127"),colorCyan700:O.create("--ft-color-cyan-700","","COLOR","#010d0f"),colorGreen0:O.create("--ft-color-green-0","","COLOR","#21a274"),colorGreen10:O.create("--ft-color-green-10","","COLOR","#edf7f3"),colorGreen20:O.create("--ft-color-green-20","","COLOR","#cfebe1"),colorGreen30:O.create("--ft-color-green-30","","COLOR","#b2dfcf"),colorGreen40:O.create("--ft-color-green-40","","COLOR","#95d3bd"),colorGreen50:O.create("--ft-color-green-50","","COLOR","#78c7ab"),colorGreen60:O.create("--ft-color-green-60","","COLOR","#5bba98"),colorGreen70:O.create("--ft-color-green-70","","COLOR","#3eae86"),colorGreen100:O.create("--ft-color-green-100","","COLOR","#1d8d65"),colorGreen200:O.create("--ft-color-green-200","","COLOR","#187856"),colorGreen300:O.create("--ft-color-green-300","","COLOR","#146246"),colorGreen400:O.create("--ft-color-green-400","","COLOR","#104d37"),colorGreen500:O.create("--ft-color-green-500","","COLOR","#0b3828"),colorGreen600:O.create("--ft-color-green-600","","COLOR","#072319"),colorGreen700:O.create("--ft-color-green-700","","COLOR","#030d0a"),colorOrange0:O.create("--ft-color-orange-0","","COLOR","#F2700D"),colorOrange10:O.create("--ft-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:O.create("--ft-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:O.create("--ft-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:O.create("--ft-color-orange-40","","COLOR","#FECB90"),colorOrange50:O.create("--ft-color-orange-50","","COLOR","#FCB76E"),colorOrange60:O.create("--ft-color-orange-60","","COLOR","#F9A34D"),colorOrange70:O.create("--ft-color-orange-70","","COLOR","#F68B2C"),colorOrange100:O.create("--ft-color-orange-100","","COLOR","#D35909"),colorOrange200:O.create("--ft-color-orange-200","","COLOR","#B74706"),colorOrange300:O.create("--ft-color-orange-300","","COLOR","#913503"),colorOrange400:O.create("--ft-color-orange-400","","COLOR","#6F2601"),colorOrange500:O.create("--ft-color-orange-500","","COLOR","#4D1800"),colorOrange600:O.create("--ft-color-orange-600","","COLOR","#330F00"),colorOrange700:O.create("--ft-color-orange-700","","COLOR","#140600"),colorRed0:O.create("--ft-color-red-0","","COLOR","#b40e2c"),colorRed10:O.create("--ft-color-red-10","","COLOR","#f9ebed"),colorRed20:O.create("--ft-color-red-20","","COLOR","#efcbd2"),colorRed30:O.create("--ft-color-red-30","","COLOR","#e5acb6"),colorRed40:O.create("--ft-color-red-40","","COLOR","#db8c9b"),colorRed50:O.create("--ft-color-red-50","","COLOR","#d16d7f"),colorRed60:O.create("--ft-color-red-60","","COLOR","#c84d63"),colorRed70:O.create("--ft-color-red-70","","COLOR","#be2e48"),colorRed100:O.create("--ft-color-red-100","","COLOR","#9c0c26"),colorRed200:O.create("--ft-color-red-200","","COLOR","#850a20"),colorRed300:O.create("--ft-color-red-300","","COLOR","#6d081b"),colorRed400:O.create("--ft-color-red-400","","COLOR","#560715"),colorRed500:O.create("--ft-color-red-500","","COLOR","#3e050f"),colorRed600:O.create("--ft-color-red-600","","COLOR","#270309"),colorRed700:O.create("--ft-color-red-700","","COLOR","#0f0104"),colorYellow0:O.create("--ft-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:O.create("--ft-color-yellow-10","","COLOR","#fefae9"),colorYellow20:O.create("--ft-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:O.create("--ft-color-yellow-30","","COLOR","#faedaa"),colorYellow40:O.create("--ft-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:O.create("--ft-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:O.create("--ft-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:O.create("--ft-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:O.create("--ft-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:O.create("--ft-color-yellow-200","","COLOR","#b3970a"),colorYellow300:O.create("--ft-color-yellow-300","","COLOR","#947c08"),colorYellow400:O.create("--ft-color-yellow-400","","COLOR","#746206"),colorYellow500:O.create("--ft-color-yellow-500","","COLOR","#554705"),colorYellow600:O.create("--ft-color-yellow-600","","COLOR","#352d03"),colorYellow700:O.create("--ft-color-yellow-700","","COLOR","#161201"),colorUltramarine0:O.create("--ft-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:O.create("--ft-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:O.create("--ft-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:O.create("--ft-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:O.create("--ft-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:O.create("--ft-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:O.create("--ft-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:O.create("--ft-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:O.create("--ft-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:O.create("--ft-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:O.create("--ft-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:O.create("--ft-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:O.create("--ft-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:O.create("--ft-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:O.create("--ft-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:O.create("--ft-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:O.create("--ft-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:O.create("--ft-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:O.create("--ft-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:O.create("--ft-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:O.create("--ft-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:O.create("--ft-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:O.create("--ft-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:O.create("--ft-color-avocado-100","","COLOR","#84A423"),colorAvocado200:O.create("--ft-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:O.create("--ft-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:O.create("--ft-color-avocado-400","","COLOR","#495B13"),colorAvocado500:O.create("--ft-color-avocado-500","","COLOR","#35420E"),colorAvocado600:O.create("--ft-color-avocado-600","","COLOR","#212A09"),colorAvocado700:O.create("--ft-color-avocado-700","","COLOR","#0E1104"),colorBrown0:O.create("--ft-color-brown-0","","COLOR","#B26F4D"),colorBrown10:O.create("--ft-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:O.create("--ft-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:O.create("--ft-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:O.create("--ft-color-brown-40","","COLOR","#DABAAA"),colorBrown50:O.create("--ft-color-brown-50","","COLOR","#D0A792"),colorBrown60:O.create("--ft-color-brown-60","","COLOR","#C6947B"),colorBrown70:O.create("--ft-color-brown-70","","COLOR","#BC8264"),colorBrown100:O.create("--ft-color-brown-100","","COLOR","#9B6143"),colorBrown200:O.create("--ft-color-brown-200","","COLOR","#845239"),colorBrown300:O.create("--ft-color-brown-300","","COLOR","#6D442F"),colorBrown400:O.create("--ft-color-brown-400","","COLOR","#553525"),colorBrown500:O.create("--ft-color-brown-500","","COLOR","#3E271B"),colorBrown600:O.create("--ft-color-brown-600","","COLOR","#271811"),colorBrown700:O.create("--ft-color-brown-700","","COLOR","#100A07"),spacing1:O.create("--ft-spacing-1","","SIZE","0.25rem"),spacing2:O.create("--ft-spacing-2","","SIZE","calc(var(--ft-spacing-2, 0.25rem)*2)"),spacing3:O.create("--ft-spacing-3","","SIZE","calc(var(--ft-spacing-3, 0.25rem)*3)"),spacing4:O.create("--ft-spacing-4","","SIZE","calc(var(--ft-spacing-4, 0.25rem)*4)"),spacing5:O.create("--ft-spacing-5","","SIZE","calc(var(--ft-spacing-5, 0.25rem)*5)"),spacing6:O.create("--ft-spacing-6","","SIZE","calc(var(--ft-spacing-6, 0.25rem)*6)"),spacing8:O.create("--ft-spacing-8","","SIZE","calc(var(--ft-spacing-8, 0.25rem)*8)"),spacing10:O.create("--ft-spacing-10","","SIZE","calc(var(--ft-spacing-10, 0.25rem)*10)"),spacing12:O.create("--ft-spacing-12","","SIZE","calc(var(--ft-spacing-12, 0.25rem)*12)"),spacing16:O.create("--ft-spacing-16","","SIZE","calc(var(--ft-spacing-16, 0.25rem)*16)"),spacing20:O.create("--ft-spacing-20","","SIZE","calc(var(--ft-spacing-20, 0.25rem)*20)"),spacing24:O.create("--ft-spacing-24","","SIZE","calc(var(--ft-spacing-24, 0.25rem)*24)"),spacing28:O.create("--ft-spacing-28","","SIZE","calc(var(--ft-spacing-28, 0.25rem)*28)"),spacing32:O.create("--ft-spacing-32","","SIZE","calc(var(--ft-spacing-32, 0.25rem)*32)"),spacing05:O.create("--ft-spacing-0-5","","SIZE","calc(var(--ft-spacing-0-5, 0.25rem)*0.5)"),borderRadiusS:O.create("--ft-border-radius-s","","SIZE","4px"),borderRadiusM:O.create("--ft-border-radius-m","","SIZE","8px"),borderRadiusL:O.create("--ft-border-radius-l","","SIZE","12px"),borderRadiusXl:O.create("--ft-border-radius-xl","","SIZE","16px"),borderRadiusPill:O.create("--ft-border-radius-pill","","SIZE","999px"),borderRadiusRound:O.create("--ft-border-radius-round","","SIZE","50%"),iconSize1:O.create("--ft-icon-size-1","","SIZE","12px"),iconSize2:O.create("--ft-icon-size-2","","SIZE","16px"),iconSize3:O.create("--ft-icon-size-3","","SIZE","20px"),iconSize4:O.create("--ft-icon-size-4","","SIZE","24px"),iconSize5:O.create("--ft-icon-size-5","","SIZE","32px"),iconSize6:O.create("--ft-icon-size-6","","SIZE","48px"),opacity0:O.create("--ft-opacity-0","","NUMBER","0"),opacity8:O.create("--ft-opacity-8","","NUMBER","0.08"),opacity16:O.create("--ft-opacity-16","","NUMBER","0.16"),opacity24:O.create("--ft-opacity-24","","NUMBER","0.24"),opacity40:O.create("--ft-opacity-40","","NUMBER","0.4"),opacity80:O.create("--ft-opacity-80","","NUMBER","0.8"),shadowElevation01:O.create("--ft-shadow-elevation-01","","SHADOW","0px 1px 4px 0px rgba(0,0,0,0.06), 0px 1px 2px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation02:O.create("--ft-shadow-elevation-02","","SHADOW","0px 4px 10px 0px rgba(0,0,0,0.06), 0px 2px 5px 0px rgba(0,0,0,0.14), 0px 0px 1px 0px rgba(0,0,0,0.06)"),shadowElevation03:O.create("--ft-shadow-elevation-03","","SHADOW","0px 6px 13px 0px rgba(0,0,0,0.06), 0px 3px 7px 0px rgba(0,0,0,0.14), 0px 1px 2px 0px rgba(0,0,0,0.06)"),shadowElevation04:O.create("--ft-shadow-elevation-04","","SHADOW","0px 8px 16px 0px rgba(0,0,0,0.06), 0px 4px 9px 0px rgba(0,0,0,0.14), 0px 2px 3px 0px rgba(0,0,0,0.06)"),shadowElevation06:O.create("--ft-shadow-elevation-06","","SHADOW","0px 12px 22px 0px rgba(0,0,0,0.06), 0px 6px 13px 0px rgba(0,0,0,0.14), 0px 4px 5px 0px rgba(0,0,0,0.06)"),shadowElevation08:O.create("--ft-shadow-elevation-08","","SHADOW","0px 16px 28px 0px rgba(0,0,0,0.06), 0px 8px 17px 0px rgba(0,0,0,0.14), 0px 6px 7px 0px rgba(0,0,0,0.06)"),shadowElevation12:O.create("--ft-shadow-elevation-12","","SHADOW","0px 22px 40px 0px rgba(0,0,0,0.06), 0px 12px 23px 0px rgba(0,0,0,0.14), 0px 10px 11px 0px rgba(0,0,0,0.06)"),shadowElevation16:O.create("--ft-shadow-elevation-16","","SHADOW","0px 28px 52px 0px rgba(0,0,0,0.06), 0px 16px 29px 0px rgba(0,0,0,0.14), 0px 14px 15px 0px rgba(0,0,0,0.06)"),shadowElevation24:O.create("--ft-shadow-elevation-24","","SHADOW","0px 40px 76px 0px rgba(0,0,0,0.06), 0px 24px 41px 0px rgba(0,0,0,0.14), 0px 22px 23px 0px rgba(0,0,0,0.06)"),underline:O.create("--ft-underline","","UNKNOWN","underline")},N={display:{fontFamily:O.create("--ft-typography-display-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-display-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-display-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-display-fontSize","","SIZE","2.5rem"),letterSpacing:O.create("--ft-typography-display-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-display-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-display-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-display-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-display-textCase","","UNKNOWN","none")},"title-1":{fontFamily:O.create("--ft-typography-title-1-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-1-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-title-1-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-1-fontSize","","SIZE","1.5rem"),letterSpacing:O.create("--ft-typography-title-1-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-title-1-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-1-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-1-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-1-textCase","","UNKNOWN","none")},"title-2":{fontFamily:O.create("--ft-typography-title-2-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-2-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-title-2-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-2-fontSize","","SIZE","1.25rem"),letterSpacing:O.create("--ft-typography-title-2-letterSpacing","","SIZE","-0.02em"),paragraphSpacing:O.create("--ft-typography-title-2-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-2-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-2-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-2-textCase","","UNKNOWN","none")},"title-3":{fontFamily:O.create("--ft-typography-title-3-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-title-3-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-title-3-lineHeight","","SIZE","120%"),fontSize:O.create("--ft-typography-title-3-fontSize","","SIZE","1.125rem"),letterSpacing:O.create("--ft-typography-title-3-letterSpacing","","SIZE","-0.01em"),paragraphSpacing:O.create("--ft-typography-title-3-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-title-3-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-title-3-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-title-3-textCase","","UNKNOWN","none")},"body-1-regular":{fontFamily:O.create("--ft-typography-body-1-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-regular-fontWeight","","UNKNOWN","400"),lineHeight:O.create("--ft-typography-body-1-regular-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-regular-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-regular-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-regular-textCase","","UNKNOWN","none")},"body-1-medium":{fontFamily:O.create("--ft-typography-body-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-body-1-medium-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-medium-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-medium-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-medium-textCase","","UNKNOWN","none")},"body-1-semibold":{fontFamily:O.create("--ft-typography-body-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-body-1-semibold-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-1-semibold-fontSize","","SIZE","1rem"),letterSpacing:O.create("--ft-typography-body-1-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-1-semibold-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-1-semibold-textCase","","UNKNOWN","none")},"body-2-regular":{fontFamily:O.create("--ft-typography-body-2-regular-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-regular-fontWeight","","UNKNOWN","400"),lineHeight:O.create("--ft-typography-body-2-regular-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-regular-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-regular-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-regular-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-regular-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-regular-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-regular-textCase","","UNKNOWN","none")},"body-2-medium":{fontFamily:O.create("--ft-typography-body-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-body-2-medium-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-medium-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-medium-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-medium-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-medium-textCase","","UNKNOWN","none")},"body-2-medium-underline":{fontFamily:O.create("--ft-typography-body-2-medium-underline-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-medium-underline-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-body-2-medium-underline-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-medium-underline-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-medium-underline-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-medium-underline-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-medium-underline-paragraphIndent","","UNKNOWN","0"),textCase:O.create("--ft-typography-body-2-medium-underline-textCase","","UNKNOWN","none"),textDecoration:O.create("--ft-typography-body-2-medium-underline-textDecoration","","UNKNOWN","underline")},"body-2-semibold":{fontFamily:O.create("--ft-typography-body-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-body-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-body-2-semibold-lineHeight","","SIZE","135%"),fontSize:O.create("--ft-typography-body-2-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-body-2-semibold-letterSpacing","","SIZE","normal"),paragraphSpacing:O.create("--ft-typography-body-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-body-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-body-2-semibold-textDecoration","","UNKNOWN","none"),textCase:O.create("--ft-typography-body-2-semibold-textCase","","UNKNOWN","none")},"label-1-medium":{fontFamily:O.create("--ft-typography-label-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-label-1-medium-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-medium-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-medium-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-medium-textDecoration","","UNKNOWN","none")},"label-1-semibold":{fontFamily:O.create("--ft-typography-label-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-label-1-semibold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-semibold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-semibold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-semibold-textDecoration","","UNKNOWN","none")},"label-1-bold":{fontFamily:O.create("--ft-typography-label-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-label-1-bold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-1-bold-fontSize","","SIZE","0.875rem"),letterSpacing:O.create("--ft-typography-label-1-bold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-1-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-1-bold-textDecoration","","UNKNOWN","none")},"label-2-medium":{fontFamily:O.create("--ft-typography-label-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-label-2-medium-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-medium-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-medium-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-medium-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-medium-textDecoration","","UNKNOWN","none")},"label-2-semibold":{fontFamily:O.create("--ft-typography-label-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-label-2-semibold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-semibold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-semibold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-semibold-textDecoration","","UNKNOWN","none")},"label-2-bold":{fontFamily:O.create("--ft-typography-label-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-label-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-label-2-bold-lineHeight","","SIZE","110%"),fontSize:O.create("--ft-typography-label-2-bold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-label-2-bold-letterSpacing","","SIZE","0.04em"),textCase:O.create("--ft-typography-label-2-bold-textCase","","UNKNOWN","uppercase"),paragraphSpacing:O.create("--ft-typography-label-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-label-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-label-2-bold-textDecoration","","UNKNOWN","none")},"caption-1-medium":{fontFamily:O.create("--ft-typography-caption-1-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-1-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-medium-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-medium-textDecoration","","UNKNOWN","none")},"caption-1-semibold":{fontFamily:O.create("--ft-typography-caption-1-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-1-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-semibold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-semibold-textDecoration","","UNKNOWN","none")},"caption-1-bold":{fontFamily:O.create("--ft-typography-caption-1-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-1-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-1-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-1-bold-fontSize","","SIZE","0.75rem"),letterSpacing:O.create("--ft-typography-caption-1-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-1-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-1-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-1-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-1-bold-textDecoration","","UNKNOWN","none")},"caption-2-medium":{fontFamily:O.create("--ft-typography-caption-2-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-2-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-medium-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-medium-textDecoration","","UNKNOWN","none")},"caption-2-semibold":{fontFamily:O.create("--ft-typography-caption-2-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-2-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-semibold-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-semibold-textDecoration","","UNKNOWN","none")},"caption-2-bold":{fontFamily:O.create("--ft-typography-caption-2-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-2-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-2-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-2-bold-fontSize","","SIZE","0.6875rem"),letterSpacing:O.create("--ft-typography-caption-2-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-2-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-2-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-2-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-2-bold-textDecoration","","UNKNOWN","none")},"caption-3-medium":{fontFamily:O.create("--ft-typography-caption-3-medium-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-medium-fontWeight","","UNKNOWN","500"),lineHeight:O.create("--ft-typography-caption-3-medium-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-medium-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-medium-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-medium-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-medium-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-medium-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-medium-textDecoration","","UNKNOWN","none")},"caption-3-semibold":{fontFamily:O.create("--ft-typography-caption-3-semibold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-semibold-fontWeight","","UNKNOWN","600"),lineHeight:O.create("--ft-typography-caption-3-semibold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-semibold-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-semibold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-semibold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-semibold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-semibold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-semibold-textDecoration","","UNKNOWN","none")},"caption-3-bold":{fontFamily:O.create("--ft-typography-caption-3-bold-fontFamily","","UNKNOWN","Inter"),fontWeight:O.create("--ft-typography-caption-3-bold-fontWeight","","UNKNOWN","700"),lineHeight:O.create("--ft-typography-caption-3-bold-lineHeight","","SIZE","130%"),fontSize:O.create("--ft-typography-caption-3-bold-fontSize","","SIZE","0.625rem"),letterSpacing:O.create("--ft-typography-caption-3-bold-letterSpacing","","SIZE","normal"),textCase:O.create("--ft-typography-caption-3-bold-textCase","","UNKNOWN","none"),paragraphSpacing:O.create("--ft-typography-caption-3-bold-paragraphSpacing","","UNKNOWN","normal"),paragraphIndent:O.create("--ft-typography-caption-3-bold-paragraphIndent","","UNKNOWN","0"),textDecoration:O.create("--ft-typography-caption-3-bold-textDecoration","","UNKNOWN","none")}},$={backgroundActionPrimary:O.extend("--ft-background-action-primary","Used as backgorund of primary action components.",S.colorBrand0),backgroundErrorSubtle:O.extend("--ft-background-error-subtle","Used as background of subtle error components.",S.colorRed10),backgroundInfoSubtle:O.extend("--ft-background-info-subtle","Used as background of subtle information components.",S.colorCyan10),backgroundWarningSubtle:O.extend("--ft-background-warning-subtle","Used as background of subtle information components.",S.colorOrange10),backgroundSuccessSubtle:O.extend("--ft-background-success-subtle","Used as background of subtle success components.",S.colorGreen10),backgroundGlobalSurface:O.extend("--ft-background-global-surface","Used as app background.",S.colorWhite),backgroundGlobalOnSurface:O.extend("--ft-background-global-on-surface","Used as background on element on the base background, like cards.",S.colorGray10),backgroundGlobalOnSurfaceDark:O.extend("--ft-background-global-on-surface-dark","Used as background on element that need background separation.",S.colorGray30),contentActionPrimary:O.extend("--ft-content-action-primary","Used on label of primary action on light surface.",S.colorBrand0),contentWarningPrimary:O.extend("--ft-content-warning-primary","Used on label of warning messages on light surface.",S.colorOrange200),contentWarningIconOnly:O.extend("--ft-content-warning-icon-only","Used on warning status icons alone",S.colorOrange0),contentErrorPrimary:O.extend("--ft-content-error-primary","Used on label of error messages on light surface.",S.colorRed0),contentErrorIconOnly:O.extend("--ft-content-error-icon-only","Used on error status icons alone",S.colorRed70),contentInfoPrimary:O.extend("--ft-content-info-primary","Used on label of information messages on light surface.",S.colorCyan200),contentInfoIconOnly:O.extend("--ft-content-info-icon-only","Used on info status icons alone",S.colorCyan0),contentSuccessPrimary:O.extend("--ft-content-success-primary","Used on label of success messages on light surface.",S.colorGreen200),contentSuccessIconOnly:O.extend("--ft-content-success-icon-only","Used on success status icons alone",S.colorGreen0),contentGlobalPrimary:O.extend("--ft-content-global-primary","Used for main content on the page.",S.colorGray500),contentGlobalSecondary:O.extend("--ft-content-global-secondary","Used for secondary content, often paired with primary content.\nAlso for action icons.",S.colorGray200),contentGlobalSubtle:O.extend("--ft-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",S.colorGray0),contentGlobalOnColor:O.extend("--ft-content-global-on-color","Used for content on a dominant color.",S.colorWhite),borderActionPrimary:O.extend("--ft-border-action-primary","Used as border for primary action components.",S.colorBrand0),borderActionFocusRing:O.extend("--ft-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",S.colorCyan0),borderWarningPrimary:O.extend("--ft-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",S.colorOrange200),borderWarningSubtle:O.extend("--ft-border-warning-subtle","Used as border for warning components.",S.colorOrange30),borderSuccessPrimary:O.extend("--ft-border-success-primary","Used as border for success buttons.",S.colorGreen200),borderSuccessSubtle:O.extend("--ft-border-success-subtle","Used as border for success components.",S.colorGreen30),borderErrorPrimary:O.extend("--ft-border-error-primary","Used as border for text fields in error states.",S.colorRed0),borderErrorSubtle:O.extend("--ft-border-error-subtle","Used as border for error components.",S.colorRed30),borderInfoPrimary:O.extend("--ft-border-info-primary","Used as border for buttons in info color.",S.colorCyan200),borderInfoSubtle:O.extend("--ft-border-info-subtle","Used as border for information components.",S.colorCyan30),borderGlobalPrimary:O.extend("--ft-border-global-primary","Used as border for element like input.",S.colorGray50),borderGlobalSubtle:O.extend("--ft-border-global-subtle","Used as border to deliminate an area filled with background.on-surface and separators.",S.colorGray30),borderInputPrimary:O.extend("--ft-border-input-primary","Used as border for checkboxes and radio buttons",S.colorGray80)},I={largeHeight:O.create("--ft-button-large-height","","SIZE","40px"),largeHorizontalPadding:O.extend("--ft-button-large-horizontal-padding","",S.spacing4),largeGap:O.extend("--ft-button-large-gap","",S.spacing2),largeBorderRadius:O.extend("--ft-button-large-border-radius","",S.borderRadiusS),largeIconSize:O.extend("--ft-button-large-icon-size","",S.iconSize3),largeBorderWidth:O.create("--ft-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:O.create("--ft-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:O.create("--ft-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:O.create("--ft-button-large-icon-only-width","","SIZE","40px"),smallHeight:O.create("--ft-button-small-height","","SIZE","30px"),smallHorizontalPadding:O.extend("--ft-button-small-horizontal-padding","",S.spacing3),smallGap:O.extend("--ft-button-small-gap","",S.spacing2),smallBorderRadius:O.extend("--ft-button-small-border-radius","",S.borderRadiusS),smallIconSize:O.extend("--ft-button-small-icon-size","",S.iconSize2),smallBorderWidth:O.create("--ft-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:O.create("--ft-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:O.create("--ft-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:O.create("--ft-button-small-icon-only-width","","SIZE","30px"),primaryBackgroundColor:O.extend("--ft-button-primary-background-color","",$.backgroundActionPrimary),primaryColor:O.extend("--ft-button-primary-color","",$.contentGlobalOnColor),primaryIconColor:O.extend("--ft-button-primary-icon-color","",$.contentGlobalOnColor),primaryStateLayerColor:O.extend("--ft-button-primary-state-layer-color","",$.contentGlobalOnColor),primaryHoverStateLayerOpacity:O.extend("--ft-button-primary-hover-state-layer-opacity","",S.opacity16),primaryFocusStateLayerOpacity:O.extend("--ft-button-primary-focus-state-layer-opacity","",S.opacity16),primaryActiveStateLayerOpacity:O.extend("--ft-button-primary-active-state-layer-opacity","",S.opacity24),primaryDisabledComponentOpacity:O.extend("--ft-button-primary-disabled-component-opacity","",S.opacity40),focusFocusRingColor:O.extend("--ft-button-focus-focus-ring-color","",$.borderActionFocusRing),tertiaryBackgroundColor:O.create("--ft-button-tertiary-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryColor:O.extend("--ft-button-tertiary-color","",$.contentActionPrimary),tertiaryIconColor:O.extend("--ft-button-tertiary-icon-color","",$.contentActionPrimary),tertiaryStateLayerColor:O.extend("--ft-button-tertiary-state-layer-color","",$.contentActionPrimary),tertiaryHoverStateLayerOpacity:O.extend("--ft-button-tertiary-hover-state-layer-opacity","",S.opacity8),tertiaryFocusStateLayerOpacity:O.extend("--ft-button-tertiary-focus-state-layer-opacity","",S.opacity8),tertiaryActiveStateLayerOpacity:O.extend("--ft-button-tertiary-active-state-layer-opacity","",S.opacity16),tertiaryDisabledComponentOpacity:O.extend("--ft-button-tertiary-disabled-component-opacity","",S.opacity40),secondaryBackgroundColor:O.create("--ft-button-secondary-background-color","","COLOR","rgba(0,0,0,0)"),secondaryColor:O.extend("--ft-button-secondary-color","",$.contentActionPrimary),secondaryIconColor:O.extend("--ft-button-secondary-icon-color","",$.contentActionPrimary),secondaryStateLayerColor:O.extend("--ft-button-secondary-state-layer-color","",$.contentActionPrimary),secondaryHoverStateLayerOpacity:O.extend("--ft-button-secondary-hover-state-layer-opacity","",S.opacity8),secondaryFocusStateLayerOpacity:O.extend("--ft-button-secondary-focus-state-layer-opacity","",S.opacity8),secondaryActiveStateLayerOpacity:O.extend("--ft-button-secondary-active-state-layer-opacity","",S.opacity16),secondaryDisabledComponentOpacity:O.extend("--ft-button-secondary-disabled-component-opacity","",S.opacity40),secondaryBorderColor:O.extend("--ft-button-secondary-border-color","",$.borderActionPrimary),neutralBackgroundColor:O.create("--ft-button-neutral-background-color","","COLOR","rgba(0,0,0,0)"),neutralIconColor:O.extend("--ft-button-neutral-icon-color","",$.contentGlobalSecondary),neutralColor:O.extend("--ft-button-neutral-color","",$.contentGlobalSecondary),neutralStateLayerColor:O.extend("--ft-button-neutral-state-layer-color","",$.contentGlobalSecondary),neutralHoverStateLayerOpacity:O.extend("--ft-button-neutral-hover-state-layer-opacity","",S.opacity8),neutralFocusStateLayerOpacity:O.extend("--ft-button-neutral-focus-state-layer-opacity","",S.opacity8),neutralActiveStateLayerOpacity:O.extend("--ft-button-neutral-active-state-layer-opacity","",S.opacity16),neutralDisabledComponentOpacity:O.extend("--ft-button-neutral-disabled-component-opacity","",S.opacity40)};O.extend("--ft-banner-icon-size","",S.iconSize5),O.create("--ft-banner-border-width","","SIZE","1px"),O.extend("--ft-banner-horizontal-padding","",S.spacing6),O.extend("--ft-banner-vertical-padding","",S.spacing6),O.extend("--ft-banner-horizontal-side-gap","",S.spacing6),O.extend("--ft-banner-horizontal-mobile-gap","",S.spacing4),O.extend("--ft-banner-vertical-mobile-gap","",S.spacing6),O.extend("--ft-banner-horizontal-middle-gap","",S.spacing20),O.extend("--ft-banner-info-background-color","",$.backgroundInfoSubtle),O.extend("--ft-banner-info-color","",$.contentInfoPrimary),O.extend("--ft-banner-info-icon-color","",$.contentInfoIconOnly),O.extend("--ft-breadcrumb-gap","",S.spacing1),O.extend("--ft-page-header-horizontal-padding","",S.spacing12),O.extend("--ft-page-header-vertical-padding","",S.spacing6),O.create("--ft-modal-small-container-width","","SIZE","600px"),O.create("--ft-modal-large-container-width","","SIZE","900px"),O.extend("--ft-modal-overlay-background-color","",S.colorGray700),O.extend("--ft-modal-overlay-opacity","",S.opacity40),O.extend("--ft-modal-shadow","",S.shadowElevation03),O.extend("--ft-modal-body-background-color","",S.colorWhite),O.extend("--ft-modal-body-color","",$.contentGlobalPrimary),O.extend("--ft-modal-body-horizontal-padding","",S.spacing6),O.extend("--ft-modal-body-vertical-padding","",S.spacing6),O.extend("--ft-modal-body-vertical-gap","",S.spacing6),O.extend("--ft-modal-container-margin","",S.spacing3),O.extend("--ft-modal-header-background-color","",$.backgroundGlobalOnSurface),O.extend("--ft-modal-header-border-color","",$.borderGlobalSubtle),O.extend("--ft-modal-header-color","",$.contentGlobalPrimary),O.extend("--ft-modal-header-trailing-icon-color","",$.contentGlobalSecondary),O.extend("--ft-modal-header-vertical-padding","",S.spacing1),O.extend("--ft-modal-header-right-padding","",S.spacing1),O.extend("--ft-modal-header-left-padding","",S.spacing6),O.extend("--ft-modal-header-gap","",S.spacing2),O.create("--ft-modal-header-border-bottom","","SIZE","1px"),O.extend("--ft-modal-border-radius","",S.borderRadiusM),O.extend("--ft-text-input-field-horizontal-padding","",S.spacing4),O.extend("--ft-text-input-field-horizontal-gap","",S.spacing3),O.extend("--ft-text-input-field-vertical-gap","",S.spacing05),O.extend("--ft-text-input-field-icon-size","",S.iconSize3),O.create("--ft-text-input-field-height","","SIZE","50px"),O.extend("--ft-text-input-helper-horizontal-padding","",S.spacing4),O.extend("--ft-text-input-helper-horizontal-gap","",S.spacing1),O.extend("--ft-text-input-helper-icon-size","",S.iconSize2),O.extend("--ft-text-input-border-radius","",S.borderRadiusM),O.extend("--ft-text-input-background-color","",S.colorWhite),O.extend("--ft-text-input-content-value-color","",$.contentGlobalPrimary),O.extend("--ft-text-input-trailing-icon-color","",$.contentGlobalSubtle),O.extend("--ft-text-input-label-color","",$.contentGlobalSubtle),O.extend("--ft-text-input-default-border-color","",$.borderInputPrimary),O.extend("--ft-text-input-default-helper-text-color","",$.contentGlobalSubtle),O.create("--ft-text-input-default-border-width","","SIZE","1px"),O.create("--ft-text-input-error-border-width","","SIZE","2px"),O.extend("--ft-text-input-error-border-color","",$.borderErrorPrimary),O.extend("--ft-text-input-error-helper-text-color","",$.contentErrorPrimary),O.extend("--ft-text-input-error-helper-icon-color","",$.contentErrorIconOnly),O.create("--ft-text-input-warning-border-width","","SIZE","2px"),O.create("--ft-text-input-focus-outline-width","","SIZE","2px"),O.extend("--ft-text-input-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-text-input-focus-outline-offset","","SIZE","3px"),O.extend("--ft-text-input-disabled-component-opacity","",S.opacity40),O.extend("--ft-text-area-background-color","",S.colorWhite),O.extend("--ft-text-area-content-value-color","",$.contentGlobalPrimary),O.extend("--ft-text-area-label-color","",$.contentGlobalSubtle),O.extend("--ft-text-area-default-border-color","",$.borderInputPrimary),O.extend("--ft-text-area-default-helper-text-color","",$.contentGlobalSubtle),O.create("--ft-text-area-default-border-width","","SIZE","1px"),O.create("--ft-text-area-error-border-width","","SIZE","2px"),O.extend("--ft-text-area-error-border-color","",$.borderErrorPrimary),O.extend("--ft-text-area-error-helper-text-color","",$.contentErrorPrimary),O.extend("--ft-text-area-error-helper-icon-color","",$.contentErrorIconOnly),O.extend("--ft-text-area-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-text-area-focus-outline-width","","SIZE","2px"),O.create("--ft-text-area-focus-outline-offset","","SIZE","3px"),O.extend("--ft-text-area-disabled-component-opacity","",S.opacity40),O.extend("--ft-text-area-field-horizontal-left-padding","",S.spacing4),O.extend("--ft-text-area-field-horizontal-gap","",S.spacing3),O.extend("--ft-text-area-field-vertical-gap","",S.spacing05),O.create("--ft-text-area-field-min-height","","SIZE","64px"),O.extend("--ft-text-area-helper-horizontal-padding","",S.spacing4),O.extend("--ft-text-area-helper-horizontal-gap","",S.spacing1),O.extend("--ft-text-area-helper-icon-size","",S.iconSize2),O.extend("--ft-text-area-border-radius","",S.borderRadiusM),O.create("--ft-floating-menu-height","","SIZE","50px"),O.extend("--ft-floating-menu-horizontal-padding","",S.spacing4),O.extend("--ft-floating-menu-off-icon-color","",$.contentGlobalPrimary),O.extend("--ft-floating-menu-off-color","",$.contentGlobalPrimary),O.extend("--ft-floating-menu-on-color","",$.contentActionPrimary),O.extend("--ft-floating-menu-on-state-layer-color","",$.contentActionPrimary),O.extend("--ft-floating-menu-gap","",S.spacing3),O.extend("--ft-floating-menu-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-floating-menu-focus-outline-width","","SIZE","3px"),O.extend("--ft-floating-menu-focus-state-layer-opacity","",S.opacity8),O.extend("--ft-floating-menu-hover-state-layer-opacity","",S.opacity8),O.extend("--ft-floating-menu-active-state-layer-opacity","",S.opacity16),O.extend("--ft-floating-menu-disabled-component-opacity","",S.opacity40),O.extend("--ft-floating-menu-icon-size","",S.iconSize3),O.extend("--ft-floating-menu-background-color","",$.backgroundGlobalOnSurface),O.extend("--ft-combobox-single-select-field-horizontal-padding","",S.spacing4),O.extend("--ft-combobox-single-select-field-horizontal-gap","",S.spacing3),O.extend("--ft-combobox-single-select-field-vertical-gap","",S.spacing05),O.extend("--ft-combobox-single-select-field-icon-size","",S.iconSize3),O.create("--ft-combobox-single-select-field-height","","SIZE","50px"),O.extend("--ft-combobox-single-select-helper-horizontal-padding","",S.spacing4),O.extend("--ft-combobox-single-select-helper-horizontal-gap","",S.spacing1),O.extend("--ft-combobox-single-select-helper-vertical-gap","",S.spacing1),O.extend("--ft-combobox-single-select-helper-icon-size","",S.iconSize2),O.extend("--ft-combobox-single-select-menu-vertical-gap","",S.spacing2),O.extend("--ft-combobox-single-select-border-radius","",S.borderRadiusM),O.extend("--ft-combobox-single-select-background-color","",S.colorWhite),O.extend("--ft-combobox-single-select-label-color","",$.contentGlobalSubtle),O.extend("--ft-combobox-single-select-content-value-color","",$.contentGlobalPrimary),O.extend("--ft-combobox-single-select-trailing-icon-color","",$.contentGlobalSubtle),O.extend("--ft-combobox-single-select-default-border-color","",$.borderInputPrimary),O.extend("--ft-combobox-single-select-default-helper-text-color","",$.contentGlobalSubtle),O.create("--ft-combobox-single-select-default-border-width","","SIZE","1px"),O.create("--ft-combobox-single-select-error-border-width","","SIZE","2px"),O.extend("--ft-combobox-single-select-error-border-color","",$.borderErrorPrimary),O.extend("--ft-combobox-single-select-error-helper-text-color","",$.contentErrorPrimary),O.create("--ft-combobox-single-select-warning-border-width","","SIZE","2px"),O.extend("--ft-combobox-single-select-warning-border-color","",$.borderWarningPrimary),O.extend("--ft-combobox-single-select-warning-helper-text-color","",$.contentWarningPrimary),O.extend("--ft-combobox-single-select-warning-helper-icon-color","",$.contentWarningIconOnly),O.create("--ft-combobox-single-select-focus-outline-width","","SIZE","2px"),O.extend("--ft-combobox-single-select-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-combobox-single-select-focus-outline-offset","","SIZE","3px"),O.extend("--ft-combobox-single-select-disabled-component-opacity","",S.opacity40),O.extend("--ft-combobox-multi-select-background-color","",S.colorWhite),O.extend("--ft-combobox-multi-select-label-color","",$.contentGlobalSubtle),O.extend("--ft-combobox-multi-select-trailing-icon-color","",$.contentGlobalSubtle),O.extend("--ft-combobox-multi-select-default-border-color","",$.borderInputPrimary),O.extend("--ft-combobox-multi-select-default-helper-text-color","",$.contentGlobalSubtle),O.create("--ft-combobox-multi-select-default-border-width","","SIZE","1px"),O.extend("--ft-combobox-multi-select-error-border-color","",$.borderErrorPrimary),O.extend("--ft-combobox-multi-select-error-helper-text-color","",$.contentErrorPrimary),O.extend("--ft-combobox-multi-select-error-helper-icon","",$.contentErrorIconOnly),O.create("--ft-combobox-multi-select-error-border-width","","SIZE","2px"),O.extend("--ft-combobox-multi-select-warning-border-color","",$.borderWarningPrimary),O.extend("--ft-combobox-multi-select-warning-helper-text-color","",$.contentWarningPrimary),O.extend("--ft-combobox-multi-select-warning-helper-icon-color","",$.contentWarningIconOnly),O.create("--ft-combobox-multi-select-warning-border-width","","SIZE","2px"),O.extend("--ft-combobox-multi-select-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-combobox-multi-select-focus-outline-width","","SIZE","2px"),O.create("--ft-combobox-multi-select-focus-outline-offset","","SIZE","3px"),O.extend("--ft-combobox-multi-select-disabled-component-opacity","",S.opacity40),O.extend("--ft-combobox-multi-select-helper-horizontal-padding","",S.spacing4),O.extend("--ft-combobox-multi-select-helper-horizontal-gap","",S.spacing1),O.extend("--ft-combobox-multi-select-helper-vertical-gap","",S.spacing1),O.extend("--ft-combobox-multi-select-helper-icon-size","",S.iconSize2),O.extend("--ft-combobox-multi-select-field-horizontal-padding","",S.spacing4),O.extend("--ft-combobox-multi-select-field-horizontal-gap","",S.spacing3),O.extend("--ft-combobox-multi-select-field-vertical-gap","",S.spacing05),O.extend("--ft-combobox-multi-select-field-icon-size","",S.iconSize3),O.create("--ft-combobox-multi-select-field-max-height","","SIZE","112px"),O.extend("--ft-combobox-multi-select-content-values-horizontal-gap","",S.spacing1),O.extend("--ft-combobox-multi-select-content-values-vertical-gap","",S.spacing1),O.extend("--ft-combobox-multi-select-border-radius","",S.borderRadiusM),O.extend("--ft-popover-background-color","",$.backgroundGlobalOnSurface),O.extend("--ft-popover-horizontal-padding","",S.spacing6),O.extend("--ft-popover-vertical-padding","",S.spacing6),O.extend("--ft-popover-icon-color","",$.contentGlobalSecondary),O.extend("--ft-popover-icon-size","",S.iconSize2),O.extend("--ft-popover-title-color","",$.contentGlobalPrimary),O.extend("--ft-popover-body-color","",$.contentGlobalSecondary),O.extend("--ft-popover-link-color","",$.contentActionPrimary),O.extend("--ft-popover-gap","",S.spacing3),O.extend("--ft-popover-border-radius","",S.borderRadiusM),O.extend("--ft-popover-shadow","",S.shadowElevation02),O.extend("--ft-tabs-top-left-border-radius","",S.borderRadiusS),O.extend("--ft-tabs-top-right-border-radius","",S.borderRadiusS),O.extend("--ft-tabs-label-horizontal-padding","",S.spacing4),O.extend("--ft-tabs-label-vertical-padding","",S.spacing3),O.extend("--ft-tabs-label-gap","",S.spacing1),O.extend("--ft-tabs-off-hover-state-layer-opacity","",S.opacity8),O.extend("--ft-tabs-off-focus-state-layer-opacity","",S.opacity8),O.extend("--ft-tabs-off-active-state-layer-opacity","",S.opacity16),O.extend("--ft-tabs-off-disabled-component-opacity","",S.opacity40),O.extend("--ft-tabs-off-color","",$.contentGlobalSubtle),O.extend("--ft-tabs-off-state-layer-color","",$.contentGlobalSubtle),O.extend("--ft-tabs-on-hover-state-layer-opacity","",S.opacity8),O.extend("--ft-tabs-on-focus-state-layer-opacity","",S.opacity8),O.extend("--ft-tabs-on-active-state-layer-opacity","",S.opacity16),O.extend("--ft-tabs-on-disabled-component-opacity","",S.opacity40),O.extend("--ft-tabs-on-color","",$.contentActionPrimary),O.extend("--ft-tabs-on-state-layer-color","",$.contentActionPrimary),O.extend("--ft-tabs-icon-horizontal-padding","",S.spacing1),O.extend("--ft-tabs-icon-vertical-padding","",S.spacing4),O.create("--ft-tabs-focus-outline-width","","SIZE","2px"),O.extend("--ft-tabs-focus-focus-ring-color","",$.borderActionFocusRing),O.extend("--ft-collapsible-hover-state-layer-opacity","",S.opacity8),O.extend("--ft-collapsible-focus-state-layer-opacity","",S.opacity8),O.create("--ft-collapsible-focus-outline-width","","SIZE","3px"),O.extend("--ft-collapsible-focus-focus-ring-color","",$.borderActionFocusRing),O.extend("--ft-collapsible-active-state-layer-opacity","",S.opacity16),O.extend("--ft-collapsible-disabled-component-opacity","",S.opacity40),O.extend("--ft-collapsible-horizontal-padding","",S.spacing4),O.extend("--ft-collapsible-vertical-padding","",S.spacing3),O.extend("--ft-collapsible-color","",$.contentGlobalPrimary),O.extend("--ft-collapsible-state-layer-color","",$.contentGlobalPrimary),O.extend("--ft-collapsible-background-color","",$.backgroundGlobalOnSurface),O.extend("--ft-collapsible-border-color","",$.borderGlobalSubtle),O.extend("--ft-collapsible-icon-size","",S.iconSize3),O.extend("--ft-switch-group-horizontal-padding","",S.spacing1),O.extend("--ft-switch-group-vertical-padding","",S.spacing1),O.extend("--ft-switch-group-gap","",S.spacing1),O.extend("--ft-switch-group-background-color","",$.backgroundGlobalSurface),O.extend("--ft-switch-group-border-color","",$.borderGlobalSubtle),O.create("--ft-switch-group-border-radius","","SIZE","6px"),O.extend("--ft-switch-label-horizontal-padding","",S.spacing2),O.extend("--ft-switch-label-vertical-padding","",S.spacing1),O.extend("--ft-switch-off-hover-state-layer-opacity","",S.opacity8),O.extend("--ft-switch-off-focus-state-layer-opacity","",S.opacity8),O.extend("--ft-switch-off-active-state-layer-opacity","",S.opacity16),O.extend("--ft-switch-off-disabled-component-opacity","",S.opacity40),O.extend("--ft-switch-off-color","",$.contentGlobalSubtle),O.extend("--ft-switch-off-state-layer-color","",$.contentGlobalSubtle),O.extend("--ft-switch-on-hover-state-layer-opacity","",S.opacity8),O.extend("--ft-switch-on-focus-state-layer-opacity","",S.opacity8),O.extend("--ft-switch-on-active-state-layer-opacity","",S.opacity16),O.extend("--ft-switch-on-disabled-component-opacity","",S.opacity40),O.extend("--ft-switch-on-color","",$.contentActionPrimary),O.extend("--ft-switch-on-state-layer-color","",$.contentActionPrimary),O.extend("--ft-switch-icon-horizontal-padding","",S.spacing1),O.extend("--ft-switch-icon-vertical-padding","",S.spacing1),O.create("--ft-switch-focus-outline-width","","SIZE","2px"),O.extend("--ft-switch-focus-focus-ring-color","",$.borderActionFocusRing),O.extend("--ft-switch-option-border-radius","",S.borderRadiusS),O.extend("--ft-chart-1-light","for area color charts",S.colorBrand40),O.extend("--ft-chart-1-base","for line charts",S.colorBrand0),O.extend("--ft-chart-2-light","for area color charts",S.colorYellow60),O.extend("--ft-chart-2-base","for line charts",S.colorYellow100),O.extend("--ft-chart-3-light","",S.colorUltramarine40),O.extend("--ft-chart-3-base","",S.colorUltramarine70),O.extend("--ft-chart-4-light","",S.colorCyan50),O.extend("--ft-chart-4-base","",S.colorCyan100),O.extend("--ft-chart-5-light","",S.colorRed40),O.extend("--ft-chart-5-base","",S.colorRed60),O.extend("--ft-chart-6-light","",S.colorGreen40),O.extend("--ft-chart-6-base","",S.colorGreen70),O.extend("--ft-chart-7-light","",S.colorOrange70),O.extend("--ft-chart-7-base","",S.colorOrange100),O.extend("--ft-chart-8-light","",S.colorAvocado70),O.extend("--ft-chart-8-base","",S.colorAvocado200),O.extend("--ft-chart-9-light","",S.colorBrown50),O.extend("--ft-chart-9-base","",S.colorBrown200),O.extend("--ft-chart-10-light","",S.colorGray50),O.extend("--ft-chart-10-base","",S.colorGray80),O.extend("--ft-chart-monochrome-10","",S.colorBrand10),O.extend("--ft-chart-monochrome-20","",S.colorBrand20),O.extend("--ft-chart-monochrome-30","",S.colorBrand40),O.extend("--ft-chart-monochrome-40","",S.colorBrand60),O.extend("--ft-chart-monochrome-50","",S.colorBrand0),O.extend("--ft-chart-monochrome-60","",S.colorBrand200),O.extend("--ft-chip-large-horizontal-padding","",S.spacing4),O.extend("--ft-chip-large-vertical-padding","",S.spacing2),O.extend("--ft-chip-large-gap","",S.spacing1),O.create("--ft-chip-large-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-large-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-large-border-radius","",S.borderRadiusPill),O.create("--ft-chip-large-border-width","","SIZE","1px"),O.extend("--ft-chip-large-icon-size","",S.iconSize3),O.extend("--ft-chip-medium-horizontal-padding","",S.spacing3),O.extend("--ft-chip-medium-vertical-padding","",S.spacing1),O.extend("--ft-chip-medium-gap","",S.spacing1),O.create("--ft-chip-medium-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-medium-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-medium-border-radius","",S.borderRadiusPill),O.create("--ft-chip-medium-border-width","","SIZE","1px"),O.extend("--ft-chip-medium-icon-size","",S.iconSize2),O.extend("--ft-chip-small-horizontal-padding","",S.spacing2),O.extend("--ft-chip-small-vertical-padding","",S.spacing05),O.extend("--ft-chip-small-gap","",S.spacing1),O.create("--ft-chip-small-focus-outline-offset","","SIZE","2px"),O.create("--ft-chip-small-focus-outline-width","","SIZE","2px"),O.extend("--ft-chip-small-border-radius","",S.borderRadiusPill),O.create("--ft-chip-small-border-width","","SIZE","1px"),O.extend("--ft-chip-small-icon-size","",S.iconSize1),O.extend("--ft-chip-neutral-background-color","",$.backgroundGlobalOnSurface),O.extend("--ft-chip-neutral-color","",$.contentGlobalPrimary),O.extend("--ft-chip-neutral-icon-color","",$.contentGlobalPrimary),O.extend("--ft-chip-neutral-border-color","",$.borderGlobalSubtle),O.extend("--ft-chip-info-background-color","",$.backgroundInfoSubtle),O.extend("--ft-chip-info-color","",$.contentInfoPrimary),O.extend("--ft-chip-info-icon-color","",$.contentInfoIconOnly),O.extend("--ft-chip-info-border-color","",$.borderInfoSubtle),O.extend("--ft-chip-success-background-color","",$.backgroundSuccessSubtle),O.extend("--ft-chip-success-color","",$.contentSuccessPrimary),O.extend("--ft-chip-success-icon-color","",$.contentSuccessIconOnly),O.extend("--ft-chip-success-border-color","",$.borderSuccessSubtle),O.extend("--ft-chip-warning-background-color","",$.backgroundWarningSubtle),O.extend("--ft-chip-warning-color","",$.contentWarningPrimary),O.extend("--ft-chip-warning-icon-color","",$.contentWarningIconOnly),O.extend("--ft-chip-warning-border-color","",$.borderWarningSubtle),O.extend("--ft-chip-error-background-color","",$.backgroundErrorSubtle),O.extend("--ft-chip-error-color","",$.contentErrorPrimary),O.extend("--ft-chip-error-icon-color","",$.contentErrorIconOnly),O.extend("--ft-chip-error-border-color","",$.borderErrorSubtle),O.extend("--ft-border-info-border-color","",$.borderInfoSubtle),O.create("--ft-notice-border-width","","SIZE","1px"),O.extend("--ft-notice-horizontal-padding","",S.spacing2),O.extend("--ft-notice-vertical-padding","",S.spacing1),O.extend("--ft-notice-border-radius","",S.borderRadiusS),O.extend("--ft-notice-gap","",S.spacing2),O.extend("--ft-notice-icon-size","",S.iconSize3),O.extend("--ft-notice-info-background-color","",$.backgroundInfoSubtle),O.extend("--ft-notice-info-border-color","",$.borderInfoSubtle),O.extend("--ft-notice-info-color","",$.contentInfoPrimary),O.extend("--ft-notice-info-icon-color","",$.contentInfoIconOnly),O.extend("--ft-notice-warning-background-color","",$.backgroundWarningSubtle),O.extend("--ft-notice-warning-border-color","",$.borderWarningSubtle),O.extend("--ft-notice-warning-color","",$.contentWarningPrimary),O.extend("--ft-notice-warning-icon-color","",$.contentWarningIconOnly),O.extend("--ft-checkbox-color","",$.contentGlobalPrimary),O.extend("--ft-checkbox-checked-background-color","",$.contentActionPrimary),O.extend("--ft-checkbox-checked-state-layer-color","",$.contentActionPrimary),O.extend("--ft-checkbox-checked-icon-color","",$.contentGlobalOnColor),O.extend("--ft-checkbox-checked-hover-state-layer-opacity","",S.opacity16),O.extend("--ft-checkbox-checked-focus-state-layer-opacity","",S.opacity16),O.extend("--ft-checkbox-checked-active-state-layer-opacity","",S.opacity24),O.extend("--ft-checkbox-checked-disabled-component-opacity","",S.opacity40),O.extend("--ft-checkbox-unchecked-border-color","",S.colorGray80),O.extend("--ft-checkbox-unchecked-state-layer-color","",S.colorGray80),O.extend("--ft-checkbox-unchecked-hover-state-layer-opacity","",S.opacity16),O.extend("--ft-checkbox-unchecked-focus-state-layer-opacity","",S.opacity16),O.extend("--ft-checkbox-unchecked-active-state-layer-opacity","",S.opacity24),O.extend("--ft-checkbox-unchecked-disabled-component-opacity","",S.opacity40),O.extend("--ft-checkbox-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-checkbox-focus-outline-offset","","SIZE","3px"),O.create("--ft-checkbox-focus-outline-width","","SIZE","2px"),O.extend("--ft-checkbox-gap","",S.spacing3),O.extend("--ft-toggle-off-hover-state-layer-opacity","",S.opacity16),O.extend("--ft-toggle-off-focus-state-layer-opacity","",S.opacity16),O.extend("--ft-toggle-off-active-state-layer-opacity","",S.opacity24),O.extend("--ft-toggle-off-disabled-component-opacity","",S.opacity40),O.extend("--ft-toggle-off-background-color","",$.contentGlobalSubtle),O.extend("--ft-toggle-off-icon-color","",$.contentGlobalSubtle),O.extend("--ft-toggle-off-state-layer-color","",$.contentGlobalSubtle),O.extend("--ft-toggle-on-hover-state-layer-opacity","",S.opacity16),O.extend("--ft-toggle-on-focus-state-layer-opacity","",S.opacity16),O.extend("--ft-toggle-on-active-state-layer-opacity","",S.opacity24),O.extend("--ft-toggle-on-disabled-component-opacity","",S.opacity40),O.extend("--ft-toggle-on-background-color","",$.contentActionPrimary),O.extend("--ft-toggle-on-state-layer-color","",$.contentActionPrimary),O.extend("--ft-toggle-on-icon-color","",$.contentActionPrimary),O.extend("--ft-toggle-color","",$.contentGlobalPrimary),O.extend("--ft-toggle-focus-focus-ring-color","",$.borderActionFocusRing),O.extend("--ft-toggle-gap","",S.spacing3),O.extend("--ft-radio-color","",$.contentGlobalPrimary),O.extend("--ft-radio-selected-radio-color","",$.contentActionPrimary),O.extend("--ft-radio-selected-state-layer-color","",$.contentActionPrimary),O.extend("--ft-radio-selected-hover-state-layer-opacity","",S.opacity16),O.extend("--ft-radio-selected-focus-state-layer-opacity","",S.opacity16),O.extend("--ft-radio-selected-active-state-layer-opacity","",S.opacity24),O.extend("--ft-radio-selected-disabled-component-opacity","",S.opacity40),O.extend("--ft-radio-unselected-state-layer-color","",$.borderInputPrimary),O.extend("--ft-radio-unselected-border-color","",$.borderInputPrimary),O.extend("--ft-radio-unselected-hover-state-layer-opacity","",S.opacity16),O.extend("--ft-radio-unselected-focus-state-layer-opacity","",S.opacity16),O.extend("--ft-radio-unselected-active-state-layer-opacity","",S.opacity24),O.extend("--ft-radio-unselected-disabled-component-opacity","",S.opacity40),O.extend("--ft-radio-focus-focus-ring-color","",$.borderActionFocusRing),O.create("--ft-radio-focus-outline-offset","","SIZE","3px"),O.create("--ft-radio-focus-outline-width","","SIZE","2px"),O.extend("--ft-radio-gap","",S.spacing3),O.extend("--ft-notification-icon-size","",S.iconSize4),O.extend("--ft-notification-horizontal-padding","",S.spacing4),O.extend("--ft-notification-vertical-padding","",S.spacing4),O.extend("--ft-notification-info-background-color","",$.backgroundInfoSubtle),O.extend("--ft-notification-info-color","",$.contentInfoPrimary),O.extend("--ft-notification-info-icon-color","",$.contentInfoIconOnly),O.extend("--ft-notification-info-border-color","",$.borderInfoSubtle),O.extend("--ft-notification-success-background-color","",$.backgroundSuccessSubtle),O.extend("--ft-notification-success-color","",$.contentSuccessPrimary),O.extend("--ft-notification-success-icon-color","",$.contentSuccessIconOnly),O.extend("--ft-notification-success-border-color","",$.borderSuccessSubtle),O.extend("--ft-notification-warning-background-color","",$.backgroundWarningSubtle),O.extend("--ft-notification-warning-color","",$.contentWarningPrimary),O.extend("--ft-notification-warning-icon-color","",$.contentWarningIconOnly),O.extend("--ft-notification-warning-border-color","",$.borderWarningSubtle),O.extend("--ft-notification-error-background-color","",$.backgroundErrorSubtle),O.extend("--ft-notification-error-color","",$.contentErrorPrimary),O.extend("--ft-notification-error-icon-color","",$.contentErrorIconOnly),O.extend("--ft-notification-error-border-color","",$.borderErrorSubtle),O.extend("--ft-notification-border-radius","",S.borderRadiusPill),O.create("--ft-notification-border-width","","SIZE","1px"),O.extend("--ft-notification-leading-gap","",S.spacing2),O.extend("--ft-notification-trailing-gap","",S.spacing8),O.extend("--ft-tooltip-horizontal-padding","",S.spacing2),O.extend("--ft-tooltip-vertical-padding","",S.spacing2),O.extend("--ft-tooltip-border-radius","",S.borderRadiusS),O.extend("--ft-tooltip-color","",$.contentGlobalOnColor),O.extend("--ft-tooltip-background-color","",$.contentGlobalPrimary),O.extend("--ft-tooltip-background-opacity","",S.opacity80),O.extend("--ft-tooltip-shadow","",S.shadowElevation03),O.create("--ft-tooltip-max-width","","SIZE","256px"),O.extend("--ft-tooltip-gap","",S.spacing05);const C=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.titleFont),k=e.FtCssVariableFactory.extend("--ft-typography-font-family","",e.designSystemVariables.contentFont),E={fontFamily:k,fontSize:e.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:e.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:e.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:e.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:e.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},R={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-font-size","",E.fontSize,"20px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",E.letterSpacing,"0.15px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-line-height","",E.lineHeight,"1.2"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",E.textTransform,"inherit")},U={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",C),fontSize:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",E.letterSpacing,"0.105px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",E.lineHeight,"1.7"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",E.textTransform,"inherit")},L=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",k),W=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",E.fontSize,"16px"),z=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",E.fontWeight,"600"),D=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",E.letterSpacing,"0.144px"),T=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",E.lineHeight,"1.5"),A=e.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",E.textTransform,"inherit"),_=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",k),Z=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",E.fontSize,"14px"),F=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",E.fontWeight,"normal"),B=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",E.letterSpacing,"0.098px"),K=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",E.lineHeight,"1.7"),M=e.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",E.textTransform,"inherit"),P={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",E.fontSize,"16px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",E.letterSpacing,"0.496px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",E.lineHeight,"1.5"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",E.textTransform,"inherit")},H=e.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",k),j=e.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",E.fontSize,"14px"),G=e.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",E.fontWeight,"normal"),V=e.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",E.letterSpacing,"0.252px"),Y=e.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",E.lineHeight,"1.4"),q=e.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",E.textTransform,"inherit"),X={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",E.fontSize,"12px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",E.fontWeight,"normal"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",E.letterSpacing,"0.396px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",E.lineHeight,"1.33"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",E.textTransform,"inherit")},Q=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",k),J=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",E.fontSize,"10px"),tt=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",E.fontWeight,"normal"),et=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",E.letterSpacing,"0.33px"),ot=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",E.lineHeight,"1.6"),it=e.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",E.textTransform,"inherit"),rt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",k),nt=e.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",E.fontSize,"10px"),at=e.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",E.fontWeight,"normal"),st=e.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",E.letterSpacing,"1.5px"),lt=e.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",E.lineHeight,"1.6"),ct=e.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",E.textTransform,"uppercase"),dt={fontFamily:e.FtCssVariableFactory.extend("--ft-typography-button-font-family","",k),fontSize:e.FtCssVariableFactory.extend("--ft-typography-button-font-size","",E.fontSize,"14px"),fontWeight:e.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",E.fontWeight,"600"),letterSpacing:e.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",E.letterSpacing,"1.246px"),lineHeight:e.FtCssVariableFactory.extend("--ft-typography-button-line-height","",E.lineHeight,"1.15"),textTransform:e.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",E.textTransform,"uppercase")},ft=o.css`
114
114
  .ft-typography--title {
115
115
  font-family: ${R.fontFamily};
116
116
  font-size: ${R.fontSize};
@@ -119,7 +119,7 @@
119
119
  line-height: ${R.lineHeight};
120
120
  text-transform: ${R.textTransform};
121
121
  }
122
- `,ft=o.css`
122
+ `,pt=o.css`
123
123
  .ft-typography--title-dense {
124
124
  font-family: ${U.fontFamily};
125
125
  font-size: ${U.fontSize};
@@ -132,18 +132,18 @@
132
132
  .ft-typography--subtitle1 {
133
133
  font-family: ${L};
134
134
  font-size: ${W};
135
- font-weight: ${T};
135
+ font-weight: ${z};
136
136
  letter-spacing: ${D};
137
- line-height: ${A};
138
- text-transform: ${_};
137
+ line-height: ${T};
138
+ text-transform: ${A};
139
139
  }
140
140
  `,ut=o.css`
141
141
  .ft-typography--subtitle2 {
142
- font-family: ${z};
143
- font-size: ${B};
142
+ font-family: ${_};
143
+ font-size: ${Z};
144
144
  font-weight: ${F};
145
- letter-spacing: ${K};
146
- line-height: ${Z};
145
+ letter-spacing: ${B};
146
+ line-height: ${K};
147
147
  text-transform: ${M};
148
148
  }
149
149
 
@@ -156,7 +156,7 @@
156
156
  line-height: ${P.lineHeight};
157
157
  text-transform: ${P.textTransform};
158
158
  }
159
- `,yt=o.css`
159
+ `,bt=o.css`
160
160
  .ft-typography--body2 {
161
161
  font-family: ${H};
162
162
  font-size: ${j};
@@ -165,7 +165,7 @@
165
165
  line-height: ${Y};
166
166
  text-transform: ${q};
167
167
  }
168
- `,bt=o.css`
168
+ `,yt=o.css`
169
169
  .ft-typography--caption {
170
170
  font-family: ${X.fontFamily};
171
171
  font-size: ${X.fontSize};
@@ -205,7 +205,7 @@
205
205
  .ft-typography {
206
206
  vertical-align: inherit;
207
207
  }
208
- `,Ot=[Object.keys($).map((t=>function(t){const e=$[t];return o.css`
208
+ `,Ot=[Object.keys(N).map((t=>function(t){const e=N[t];return o.css`
209
209
  .ft-typography--${o.unsafeCSS(t)} {
210
210
  font-family: ${e.fontFamily};
211
211
  font-size: ${e.fontSize};
@@ -214,7 +214,7 @@
214
214
  line-height: ${e.lineHeight};
215
215
  text-transform: ${e.textCase};
216
216
  }
217
- `}(t)))],St={color:e.FtCssVariableFactory.extend("--ft-loader-color","",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},$t=o.css`
217
+ `}(t)))],St={color:e.FtCssVariableFactory.extend("--ft-loader-color","",e.designSystemVariables.colorPrimary),size:e.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},Nt=o.css`
218
218
  :host {
219
219
  line-height: 0;
220
220
  }
@@ -283,7 +283,7 @@
283
283
  transform: translate(calc(0.35 * ${St.size}), 0);
284
284
  }
285
285
  }
286
- `,Nt={size:e.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},It=o.css`
286
+ `,$t={size:e.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:e.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:e.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:e.FtCssVariableFactory.extend("--ft-icon-material-font-family","",e.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:e.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},It=o.css`
287
287
  :host, i.ft-icon {
288
288
  display: inline-flex;
289
289
  align-items: center;
@@ -292,14 +292,14 @@
292
292
  }
293
293
 
294
294
  :host {
295
- width: ${Nt.size};
296
- height: ${Nt.size};
295
+ width: ${$t.size};
296
+ height: ${$t.size};
297
297
  }
298
298
 
299
299
  i.ft-icon {
300
300
  width: 100%;
301
301
  height: 100%;
302
- font-size: ${Nt.size};
302
+ font-size: ${$t.size};
303
303
  line-height: 1;
304
304
  font-weight: normal;
305
305
  text-transform: none;
@@ -310,28 +310,28 @@
310
310
  text-rendering: auto;
311
311
  -webkit-font-smoothing: antialiased;
312
312
  -moz-osx-font-smoothing: grayscale;
313
- vertical-align: ${Nt.verticalAlign};
313
+ vertical-align: ${$t.verticalAlign};
314
314
  }
315
315
 
316
316
  i.ft-icon.ft-icon--fluid-topics {
317
- font-family: ${Nt.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
317
+ font-family: ${$t.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
318
318
 
319
319
  /* Ugly fix because font is broken */
320
- font-size: calc(0.75 * ${Nt.size});
321
- line-height: ${Nt.size};
320
+ font-size: calc(0.75 * ${$t.size});
321
+ line-height: ${$t.size};
322
322
  position: relative;
323
323
  top: -4%;
324
324
  justify-content: center;
325
325
  }
326
326
 
327
327
  .ft-icon--file-format {
328
- font-family: ${Nt.fileFormatFontFamily}, ft-mime, sans-serif;
328
+ font-family: ${$t.fileFormatFontFamily}, ft-mime, sans-serif;
329
329
  }
330
330
 
331
331
  .ft-icon--material {
332
- font-family: ${Nt.materialFontFamily}, "Material Icons", sans-serif;
332
+ font-family: ${$t.materialFontFamily}, "Material Icons", sans-serif;
333
333
  }
334
- `,Ct=e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorPrimary),kt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusL),color:Ct,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ct),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:e.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Et=e.FtCssVariableFactory.extend("--ft-button-primary-color","",e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorOnPrimary)),Rt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color","",e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorPrimary)),color:Et,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Et)},Ut=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusM)),Lt=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Wt=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),Tt=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),Dt=[o.css`
334
+ `,Ct=e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorPrimary),kt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorSurface),borderRadius:e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusL),color:Ct,fontSize:e.FtCssVariableFactory.extend("--ft-button-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:e.FtCssVariableFactory.extend("--ft-button-ripple-color","",Ct),verticalPadding:e.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:e.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:e.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOpacityDisabled,"Design system")},Et=e.FtCssVariableFactory.extend("--ft-button-primary-color","",e.FtCssVariableFactory.extend("--ft-button-color","",e.designSystemVariables.colorOnPrimary)),Rt={backgroundColor:e.FtCssVariableFactory.extend("--ft-button-primary-background-color","",e.FtCssVariableFactory.extend("--ft-button-background-color","",e.designSystemVariables.colorPrimary)),color:Et,rippleColor:e.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",Et)},Ut=e.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",e.FtCssVariableFactory.extend("--ft-button-border-radius","",e.designSystemVariables.borderRadiusM)),Lt=e.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),Wt=e.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),zt=e.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px"),Dt=[o.css`
335
335
  :host {
336
336
  display: inline-block;
337
337
  max-width: 100%;
@@ -373,7 +373,7 @@
373
373
 
374
374
  --ft-button-internal-line-height: max(calc(${kt.fontSize} + 2px), ${kt.iconSize});
375
375
  --ft-button-internal-color: ${kt.color};
376
- ${e.setVariable(Nt.size,kt.iconSize)};
376
+ ${e.setVariable($t.size,kt.iconSize)};
377
377
  ${e.setVariable(h.color,kt.rippleColor)};
378
378
 
379
379
  border-radius: ${kt.borderRadius};
@@ -391,7 +391,7 @@
391
391
  .ft-button.ft-button--dense {
392
392
  padding: ${Lt} ${Wt};
393
393
  border-radius: ${Ut};
394
- gap: ${Tt};
394
+ gap: ${zt};
395
395
  }
396
396
 
397
397
  .ft-button.ft-button--dense.ft-button--outlined {
@@ -437,7 +437,7 @@
437
437
  }
438
438
 
439
439
  .ft-button--dense .ft-button--label {
440
- margin: 0 ${Tt};
440
+ margin: 0 ${zt};
441
441
  }
442
442
 
443
443
  .ft-button--label[hidden] {
@@ -468,7 +468,7 @@
468
468
  ${e.setVariable(St.size,kt.iconSize)};
469
469
  ${e.setVariable(St.color,"var(--ft-button-internal-color)")};
470
470
  }
471
- `,e.noTextSelect],At={textColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceHigh),backgroundColor:e.FtCssVariableFactory.extend("--ft-switch-background-color","",e.designSystemVariables.colorSurface),selectedTextColor:e.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",e.designSystemVariables.colorPrimary),selectedBackgroundColor:e.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",e.designSystemVariables.colorPrimary),borderColor:e.FtCssVariableFactory.extend("--ft-switch-border-color","",e.designSystemVariables.colorOutline),borderRadius:e.FtCssVariableFactory.extend("--ft-switch-border-radius","",e.designSystemVariables.borderRadiusL),fontSize:e.FtCssVariableFactory.extend("--ft-switch-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceMedium),rippleColor:e.FtCssVariableFactory.extend("--ft-switch-ripple-color","",e.designSystemVariables.colorPrimary),outlineColor:e.FtCssVariableFactory.extend("--ft-switch-outline-color","",e.designSystemVariables.colorPrimary)},_t={feedbackInputMinWidth:e.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",e.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",e.designSystemVariables.colorPrimary),filledRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",e.designSystemVariables.colorPrimary),emptyRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",e.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:e.FtCssVariableFactory.external(R.fontSize,"Typography"),sectionTitleFontSize:e.FtCssVariableFactory.external(U.fontSize,"Typography"),starsBackgroundColor:e.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",e.designSystemVariables.colorSurface)},zt=o.css`
471
+ `,e.noTextSelect],Tt={textColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceHigh),backgroundColor:e.FtCssVariableFactory.extend("--ft-switch-background-color","",e.designSystemVariables.colorSurface),selectedTextColor:e.FtCssVariableFactory.extend("--ft-switch-selected-text-color","",e.designSystemVariables.colorPrimary),selectedBackgroundColor:e.FtCssVariableFactory.extend("--ft-switch-selected-background-color","",e.designSystemVariables.colorPrimary),borderColor:e.FtCssVariableFactory.extend("--ft-switch-border-color","",e.designSystemVariables.colorOutline),borderRadius:e.FtCssVariableFactory.extend("--ft-switch-border-radius","",e.designSystemVariables.borderRadiusL),fontSize:e.FtCssVariableFactory.extend("--ft-switch-font-size","",dt.fontSize),iconSize:e.FtCssVariableFactory.create("--ft-switch-icon-size","","SIZE","24px"),iconColor:e.FtCssVariableFactory.extend("--ft-switch-text-color","",e.designSystemVariables.colorOnSurfaceMedium),rippleColor:e.FtCssVariableFactory.extend("--ft-switch-ripple-color","",e.designSystemVariables.colorPrimary),outlineColor:e.FtCssVariableFactory.extend("--ft-switch-outline-color","",e.designSystemVariables.colorPrimary)},At={feedbackInputMinWidth:e.FtCssVariableFactory.create("--ft-reader-feedback-input-min-width","","SIZE","300px"),ratedDateColor:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),sendFeedbackColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-color","",e.designSystemVariables.colorOnPrimary),sendFeedbackBackgroundColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-send-feedback-background-color","",e.designSystemVariables.colorPrimary),filledRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-filled-rating-color","",e.designSystemVariables.colorPrimary),emptyRatingColor:e.FtCssVariableFactory.extend("--ft-reader-feedback-empty-rating-color","",e.designSystemVariables.colorOnSurfaceMedium),mainTitleFontSize:e.FtCssVariableFactory.external(R.fontSize,"Typography"),sectionTitleFontSize:e.FtCssVariableFactory.external(U.fontSize,"Typography"),starsBackgroundColor:e.FtCssVariableFactory.create("--ft-reader-feedback-stars-background-color","","COLOR",e.designSystemVariables.colorSurface)},_t=o.css`
472
472
  .ft-reader-feedback {
473
473
  box-sizing: border-box;
474
474
  display: flex;
@@ -481,7 +481,7 @@
481
481
  flex-direction: row;
482
482
  align-items: center;
483
483
  margin-left: -6px;
484
- ${e.setVariable(kt.backgroundColor,_t.starsBackgroundColor)}
484
+ ${e.setVariable(kt.backgroundColor,At.starsBackgroundColor)}
485
485
  }
486
486
 
487
487
  .ft-reader-feedback--rating, .ft-reader-feedback--feedback {
@@ -494,14 +494,14 @@
494
494
  }
495
495
 
496
496
  .ft-reader-feedback--rating {
497
- ${e.setVariable(kt.color,_t.emptyRatingColor)};
498
- ${e.setVariable(kt.rippleColor,_t.filledRatingColor)};
499
- ${e.setVariable(At.textColor,_t.emptyRatingColor)};
500
- ${e.setVariable(At.selectedTextColor,_t.filledRatingColor)};
497
+ ${e.setVariable(kt.color,At.emptyRatingColor)};
498
+ ${e.setVariable(kt.rippleColor,At.filledRatingColor)};
499
+ ${e.setVariable(Tt.textColor,At.emptyRatingColor)};
500
+ ${e.setVariable(Tt.selectedTextColor,At.filledRatingColor)};
501
501
  }
502
502
 
503
503
  .ft-reader-feedback--rating .ft-reader-feedback--active {
504
- ${e.setVariable(kt.color,_t.filledRatingColor)};
504
+ ${e.setVariable(kt.color,At.filledRatingColor)};
505
505
  }
506
506
 
507
507
  .ft-reader-feedback--feedback {
@@ -509,16 +509,16 @@
509
509
  }
510
510
 
511
511
  .ft-reader-feedback--rating-date {
512
- color: ${_t.ratedDateColor};
512
+ color: ${At.ratedDateColor};
513
513
  }
514
514
 
515
515
  .ft-reader-feedback--feedback ft-text-area {
516
- min-width: ${_t.feedbackInputMinWidth};
516
+ min-width: ${At.feedbackInputMinWidth};
517
517
  }
518
518
 
519
519
  .ft-reader-feedback--send-feedback, .ft-reader-feedback--feedback-link {
520
- ${e.setVariable(kt.color,_t.sendFeedbackColor)};
521
- ${e.setVariable(kt.backgroundColor,_t.sendFeedbackBackgroundColor)};
520
+ ${e.setVariable(kt.color,At.sendFeedbackColor)};
521
+ ${e.setVariable(kt.backgroundColor,At.sendFeedbackBackgroundColor)};
522
522
  }
523
523
 
524
524
  [part="buttons-container"] {
@@ -529,20 +529,20 @@
529
529
  * @license
530
530
  * Copyright 2017 Google LLC
531
531
  * SPDX-License-Identifier: BSD-3-Clause
532
- */,Bt=globalThis,Ft=Bt.trustedTypes,Kt=Ft?Ft.createPolicy("lit-html",{createHTML:t=>t}):void 0,Zt="$lit$",Mt=`lit$${(Math.random()+"").slice(9)}$`,Pt="?"+Mt,Ht=`<${Pt}>`,jt=document,Gt=()=>jt.createComment(""),Vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Yt=Array.isArray,qt="[ \t\n\f\r]",Xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qt=/-->/g,Jt=/>/g,te=RegExp(`>|${qt}(?:([^\\s"'>=/]+)(${qt}*=${qt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ee=/'/g,oe=/"/g,ie=/^(?:script|style|textarea|title)$/i,re=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ne=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),se=new WeakMap,le=jt.createTreeWalker(jt,129);function ce(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Kt?Kt.createHTML(e):e}const de=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=Xt;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===Xt?"!--"===l[1]?a=Qt:void 0!==l[1]?a=Jt:void 0!==l[2]?(ie.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=te):void 0!==l[3]&&(a=te):a===te?">"===l[0]?(a=r??Xt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?te:'"'===l[3]?oe:ee):a===oe||a===ee?a=te:a===Qt||a===Jt?a=Xt:(a=te,r=void 0);const p=a===te&&t[e+1].startsWith("/>")?" ":"";n+=a===Xt?o+Ht:c>=0?(i.push(s),o.slice(0,c)+Zt+o.slice(c)+Mt+p):o+Mt+(-2===c?e:p)}return[ce(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class pe{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=de(t,e);if(this.el=pe.createElement(l,o),le.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=le.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Zt)){const e=c[n++],o=i.getAttribute(t).split(Mt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?ye:"?"===a[1]?be:"@"===a[1]?me:ge}),i.removeAttribute(t)}else t.startsWith(Mt)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(ie.test(i.tagName)){const t=i.textContent.split(Mt),e=t.length-1;if(e>0){i.textContent=Ft?Ft.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],Gt()),le.nextNode(),s.push({type:2,index:++r});i.append(t[e],Gt())}}}else if(8===i.nodeType)if(i.data===Pt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Mt,t+1));)s.push({type:7,index:r}),t+=Mt.length-1}r++}}static createElement(t,e){const o=jt.createElement("template");return o.innerHTML=t,o}}function fe(t,e,o=t,i){if(e===ne)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Vt(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=fe(t,r._$AS(t,e.values),r,i)),e}class he{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??jt).importNode(e,!0);le.currentNode=i;let r=le.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ue(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new ve(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=le.nextNode(),n++)}return le.currentNode=jt,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class ue{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=ae,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=fe(this,t,e),Vt(t)?t===ae||null==t||""===t?(this._$AH!==ae&&this._$AR(),this._$AH=ae):t!==this._$AH&&t!==ne&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Yt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ae&&Vt(this._$AH)?this._$AA.nextSibling.data=t:this.$(jt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=pe.createElement(ce(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new he(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=se.get(t.strings);return void 0===e&&se.set(t.strings,e=new pe(t)),e}T(t){Yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new ue(this.k(Gt()),this.k(Gt()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ge{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=ae,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ae}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=fe(this,t,e,0),n=!Vt(t)||t!==this._$AH&&t!==ne,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=fe(this,i[o+a],e,a),s===ne&&(s=this._$AH[a]),n||=!Vt(s)||s!==this._$AH[a],s===ae?t=ae:t!==ae&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ye extends ge{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ae?void 0:t}}class be extends ge{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ae)}}class me extends ge{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=fe(this,t,e,0)??ae)===ne)return;const o=this._$AH,i=t===ae&&o!==ae||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ae&&(o===ae||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ve{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){fe(this,t)}}const xe=Bt.litHtmlPolyfillSupport;xe?.(pe,ue),(Bt.litHtmlVersions??=[]).push("3.1.0");
532
+ */,Zt=globalThis,Ft=Zt.trustedTypes,Bt=Ft?Ft.createPolicy("lit-html",{createHTML:t=>t}):void 0,Kt="$lit$",Mt=`lit$${(Math.random()+"").slice(9)}$`,Pt="?"+Mt,Ht=`<${Pt}>`,jt=document,Gt=()=>jt.createComment(""),Vt=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Yt=Array.isArray,qt="[ \t\n\f\r]",Xt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qt=/-->/g,Jt=/>/g,te=RegExp(`>|${qt}(?:([^\\s"'>=/]+)(${qt}*=${qt}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ee=/'/g,oe=/"/g,ie=/^(?:script|style|textarea|title)$/i,re=(t=>(e,...o)=>({_$litType$:t,strings:e,values:o}))(1),ne=Symbol.for("lit-noChange"),ae=Symbol.for("lit-nothing"),se=new WeakMap,le=jt.createTreeWalker(jt,129);function ce(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Bt?Bt.createHTML(e):e}const de=(t,e)=>{const o=t.length-1,i=[];let r,n=2===e?"<svg>":"",a=Xt;for(let e=0;e<o;e++){const o=t[e];let s,l,c=-1,d=0;for(;d<o.length&&(a.lastIndex=d,l=a.exec(o),null!==l);)d=a.lastIndex,a===Xt?"!--"===l[1]?a=Qt:void 0!==l[1]?a=Jt:void 0!==l[2]?(ie.test(l[2])&&(r=RegExp("</"+l[2],"g")),a=te):void 0!==l[3]&&(a=te):a===te?">"===l[0]?(a=r??Xt,c=-1):void 0===l[1]?c=-2:(c=a.lastIndex-l[2].length,s=l[1],a=void 0===l[3]?te:'"'===l[3]?oe:ee):a===oe||a===ee?a=te:a===Qt||a===Jt?a=Xt:(a=te,r=void 0);const f=a===te&&t[e+1].startsWith("/>")?" ":"";n+=a===Xt?o+Ht:c>=0?(i.push(s),o.slice(0,c)+Kt+o.slice(c)+Mt+f):o+Mt+(-2===c?e:f)}return[ce(t,n+(t[o]||"<?>")+(2===e?"</svg>":"")),i]};class fe{constructor({strings:t,_$litType$:e},o){let i;this.parts=[];let r=0,n=0;const a=t.length-1,s=this.parts,[l,c]=de(t,e);if(this.el=fe.createElement(l,o),le.currentNode=this.el.content,2===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(i=le.nextNode())&&s.length<a;){if(1===i.nodeType){if(i.hasAttributes())for(const t of i.getAttributeNames())if(t.endsWith(Kt)){const e=c[n++],o=i.getAttribute(t).split(Mt),a=/([.?@])?(.*)/.exec(e);s.push({type:1,index:r,name:a[2],strings:o,ctor:"."===a[1]?be:"?"===a[1]?ye:"@"===a[1]?me:ge}),i.removeAttribute(t)}else t.startsWith(Mt)&&(s.push({type:6,index:r}),i.removeAttribute(t));if(ie.test(i.tagName)){const t=i.textContent.split(Mt),e=t.length-1;if(e>0){i.textContent=Ft?Ft.emptyScript:"";for(let o=0;o<e;o++)i.append(t[o],Gt()),le.nextNode(),s.push({type:2,index:++r});i.append(t[e],Gt())}}}else if(8===i.nodeType)if(i.data===Pt)s.push({type:2,index:r});else{let t=-1;for(;-1!==(t=i.data.indexOf(Mt,t+1));)s.push({type:7,index:r}),t+=Mt.length-1}r++}}static createElement(t,e){const o=jt.createElement("template");return o.innerHTML=t,o}}function pe(t,e,o=t,i){if(e===ne)return e;let r=void 0!==i?o._$Co?.[i]:o._$Cl;const n=Vt(e)?void 0:e._$litDirective$;return r?.constructor!==n&&(r?._$AO?.(!1),void 0===n?r=void 0:(r=new n(t),r._$AT(t,o,i)),void 0!==i?(o._$Co??=[])[i]=r:o._$Cl=r),void 0!==r&&(e=pe(t,r._$AS(t,e.values),r,i)),e}class he{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){const{el:{content:e},parts:o}=this._$AD,i=(t?.creationScope??jt).importNode(e,!0);le.currentNode=i;let r=le.nextNode(),n=0,a=0,s=o[0];for(;void 0!==s;){if(n===s.index){let e;2===s.type?e=new ue(r,r.nextSibling,this,t):1===s.type?e=new s.ctor(r,s.name,s.strings,this,t):6===s.type&&(e=new ve(r,this,t)),this._$AV.push(e),s=o[++a]}n!==s?.index&&(r=le.nextNode(),n++)}return le.currentNode=jt,i}p(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class ue{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,o,i){this.type=2,this._$AH=ae,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=pe(this,t,e),Vt(t)?t===ae||null==t||""===t?(this._$AH!==ae&&this._$AR(),this._$AH=ae):t!==this._$AH&&t!==ne&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Yt(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==ae&&Vt(this._$AH)?this._$AA.nextSibling.data=t:this.$(jt.createTextNode(t)),this._$AH=t}g(t){const{values:e,_$litType$:o}=t,i="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=fe.createElement(ce(o.h,o.h[0]),this.options)),o);if(this._$AH?._$AD===i)this._$AH.p(e);else{const t=new he(i,this),o=t.u(this.options);t.p(e),this.$(o),this._$AH=t}}_$AC(t){let e=se.get(t.strings);return void 0===e&&se.set(t.strings,e=new fe(t)),e}T(t){Yt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,i=0;for(const r of t)i===e.length?e.push(o=new ue(this.k(Gt()),this.k(Gt()),this,this.options)):o=e[i],o._$AI(r),i++;i<e.length&&(this._$AR(o&&o._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class ge{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,i,r){this.type=1,this._$AH=ae,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=r,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=ae}_$AI(t,e=this,o,i){const r=this.strings;let n=!1;if(void 0===r)t=pe(this,t,e,0),n=!Vt(t)||t!==this._$AH&&t!==ne,n&&(this._$AH=t);else{const i=t;let a,s;for(t=r[0],a=0;a<r.length-1;a++)s=pe(this,i[o+a],e,a),s===ne&&(s=this._$AH[a]),n||=!Vt(s)||s!==this._$AH[a],s===ae?t=ae:t!==ae&&(t+=(s??"")+r[a+1]),this._$AH[a]=s}n&&!i&&this.O(t)}O(t){t===ae?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class be extends ge{constructor(){super(...arguments),this.type=3}O(t){this.element[this.name]=t===ae?void 0:t}}class ye extends ge{constructor(){super(...arguments),this.type=4}O(t){this.element.toggleAttribute(this.name,!!t&&t!==ae)}}class me extends ge{constructor(t,e,o,i,r){super(t,e,o,i,r),this.type=5}_$AI(t,e=this){if((t=pe(this,t,e,0)??ae)===ne)return;const o=this._$AH,i=t===ae&&o!==ae||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,r=t!==ae&&(o===ae||i);i&&this.element.removeEventListener(this.name,this,o),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class ve{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){pe(this,t)}}const xe=Zt.litHtmlPolyfillSupport;xe?.(fe,ue),(Zt.litHtmlVersions??=[]).push("3.1.0");
533
533
  /**
534
534
  * @license
535
535
  * Copyright 2020 Google LLC
536
536
  * SPDX-License-Identifier: BSD-3-Clause
537
537
  */
538
- const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$litStatic$:t,r:we}),$e=new Map,Ne=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,d=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Oe(n));)l+=r+e[++c],d=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),d){const t=a.join("$$lit$$");void 0===(e=$e.get(t))&&(a.raw=a,$e.set(t,e=a)),o=s}return t(e,...o)})(re);var Ie;!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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Ie||(Ie={}));var Ce=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ke extends e.FtLitElement{constructor(){super(...arguments),this.variant=Ie.body1}render(){return this.element?Ne`
538
+ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$litStatic$:t,r:we}),Ne=new Map,$e=(t=>(e,...o)=>{const i=o.length;let r,n;const a=[],s=[];let l,c=0,d=!1;for(;c<i;){for(l=e[c];c<i&&void 0!==(n=o[c],r=Oe(n));)l+=r+e[++c],d=!0;c!==i&&s.push(n),a.push(l),c++}if(c===i&&a.push(e[i]),d){const t=a.join("$$lit$$");void 0===(e=Ne.get(t))&&(a.raw=a,Ne.set(t,e=a)),o=s}return t(e,...o)})(re);var Ie;!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",t.display="display",t.title1="title-1",t.title2="title-2",t.title3="title-3",t.body1regular="body-1-regular",t.body1medium="body-1-medium",t.body1semibold="body-1-semibold",t.body2regular="body-2-regular",t.body2medium="body-2-medium",t.body2semibold="body-2-semibold",t.label1medium="label-1-medium",t.label1semibold="label-1-semibold",t.label1bold="label-1-bold",t.label2medium="label-2-medium",t.label2semibold="label-2-semibold",t.label2bold="label-2-bold",t.caption1medium="caption-1-medium",t.caption1semibold="caption-1-semibold",t.caption1bold="caption-1-bold",t.caption2medium="caption-2-medium",t.caption2semibold="caption-2-semibold",t.caption2bold="caption-2-bold"}(Ie||(Ie={}));var Ce=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ke extends e.FtLitElement{constructor(){super(...arguments),this.variant=Ie.body1}render(){return this.element?$e`
539
539
  <${Se(this.element)}
540
540
  class="ft-typography ft-typography--${this.variant}">
541
541
  <slot></slot>
542
542
  </${Se(this.element)}>
543
- `:Ne`
543
+ `:$e`
544
544
  <slot class="ft-typography ft-typography--${this.variant}"></slot>
545
- `}}ke.styles=[pt,ft,ht,ut,gt,yt,bt,mt,vt,xt,wt,...Ot],Ce([i.property()],ke.prototype,"element",void 0),Ce([i.property()],ke.prototype,"variant",void 0),e.customElement("ft-typography")(ke);var Ee=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Re extends e.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 e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e.Debouncer(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return o.html`
545
+ `}}ke.styles=[ft,pt,ht,ut,gt,bt,yt,mt,vt,xt,wt,...Ot],Ce([i.property()],ke.prototype,"element",void 0),Ce([i.property()],ke.prototype,"variant",void 0),e.customElement("ft-typography")(ke);var Ee=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Re extends e.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 e.Debouncer(1e3),this.onTransitionStart=t=>{"transform"===t.propertyName&&(this.rippling=this.pressed,this.debouncer.run((()=>this.rippling=!1)))},this.onTransitionEnd=t=>{"transform"===t.propertyName&&(this.rippling=!1)},this.setupDebouncer=new e.Debouncer(10),this.moveRipple=t=>{var e,o;let{x:i,y:r}=this.getCoordinates(t),n=null!==(o=null===(e=this.ripple)||void 0===e?void 0:e.getBoundingClientRect())&&void 0!==o?o:{x:0,y:0,width:0,height:0};this.originX=Math.round(null!=i?i-n.x:n.width/2),this.originY=Math.round(null!=r?r-n.y:n.height/2)},this.startPress=t=>{this.moveRipple(t),this.pressed=!this.isIgnored(t)},this.endPress=()=>{this.pressed=!1},this.startHover=t=>{this.hovered=!this.isIgnored(t)},this.endHover=()=>{this.hovered=!1},this.startFocus=t=>{this.focused=this.isFocusVisible(null==t?void 0:t.target)&&!this.isIgnored(t)},this.endFocus=()=>{this.focused=!1}}render(){let t={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return o.html`
546
546
  <style>
547
547
  .ft-ripple .ft-ripple--effect {
548
548
  left: ${this.originX}px;
@@ -553,7 +553,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
553
553
  <div class="ft-ripple--background"></div>
554
554
  <div class="ft-ripple--effect"></div>
555
555
  </div>
556
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Re.elementDefinitions={},Re.styles=x,Ee([i.property({type:Boolean})],Re.prototype,"primary",void 0),Ee([i.property({type:Boolean})],Re.prototype,"secondary",void 0),Ee([i.property({type:Boolean})],Re.prototype,"unbounded",void 0),Ee([i.property({type:Boolean})],Re.prototype,"activated",void 0),Ee([i.property({type:Boolean})],Re.prototype,"selected",void 0),Ee([i.property({type:Boolean})],Re.prototype,"disabled",void 0),Ee([i.state()],Re.prototype,"hovered",void 0),Ee([i.state()],Re.prototype,"focused",void 0),Ee([i.state()],Re.prototype,"pressed",void 0),Ee([i.state()],Re.prototype,"rippling",void 0),Ee([i.state()],Re.prototype,"originX",void 0),Ee([i.state()],Re.prototype,"originY",void 0),Ee([i.query(".ft-ripple")],Re.prototype,"ripple",void 0),Ee([i.query(".ft-ripple--effect")],Re.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Re);const Ue=e.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),Le=e.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),We=e.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),Te=e.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),De=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),Ae=e.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),_e=o.css`
556
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(t){var e,o;super.update(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(e=this.target)||void 0===e||e.removeAttribute("data-is-ft-ripple-target")):null===(o=this.target)||void 0===o||o.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>this.defaultSetup()))}defaultSetup(){var t,e;const o=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;o&&this.setupFor(null!==(e=this.target)&&void 0!==e?e:o)}setupFor(t){if(this.setupDebouncer.cancel(),this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const e=(...t)=>e=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(e)},o=e("mouseup","contextmenu"),i=e("touchend","touchcancel"),r=t=>{["Enter"," "].includes(t.key)&&e("keyup")(t)},n={passive:!0};t.addEventListener("mouseover",this.startHover,n),t.addEventListener("mousemove",this.moveRipple,n),t.addEventListener("mouseleave",this.endHover,n),t.addEventListener("mousedown",o,n),t.addEventListener("touchstart",i,n),t.addEventListener("touchmove",this.moveRipple,n),t.addEventListener("keydown",r,n),t.addEventListener("focus",this.startFocus,n),t.addEventListener("blur",this.endFocus,n),t.addEventListener("focusin",this.startFocus,n),t.addEventListener("focusout",this.endFocus,n),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover,n),t.removeEventListener("mousemove",this.moveRipple,n),t.removeEventListener("mouseleave",this.endHover,n),t.removeEventListener("mousedown",o,n),t.removeEventListener("touchstart",i,n),t.removeEventListener("touchmove",this.moveRipple,n),t.removeEventListener("keydown",r,n),t.removeEventListener("focus",this.startFocus,n),t.removeEventListener("blur",this.endFocus,n),t.removeEventListener("focusin",this.startFocus,n),t.removeEventListener("focusout",this.endFocus,n),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const e=t,o=t;let i,r;return null!=e.x?({x:i,y:r}=e):null!=o.touches&&(i=o.touches[0].clientX,r=o.touches[0].clientY),{x:i,y:r}}isFocusVisible(t){return!(t instanceof HTMLElement)||t.matches(":focus-visible")}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let e of t.composedPath()){if(e===this.target)break;if("hasAttribute"in e&&e.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}}Re.elementDefinitions={},Re.styles=x,Ee([i.property({type:Boolean})],Re.prototype,"primary",void 0),Ee([i.property({type:Boolean})],Re.prototype,"secondary",void 0),Ee([i.property({type:Boolean})],Re.prototype,"unbounded",void 0),Ee([i.property({type:Boolean})],Re.prototype,"activated",void 0),Ee([i.property({type:Boolean})],Re.prototype,"selected",void 0),Ee([i.property({type:Boolean})],Re.prototype,"disabled",void 0),Ee([i.state()],Re.prototype,"hovered",void 0),Ee([i.state()],Re.prototype,"focused",void 0),Ee([i.state()],Re.prototype,"pressed",void 0),Ee([i.state()],Re.prototype,"rippling",void 0),Ee([i.state()],Re.prototype,"originX",void 0),Ee([i.state()],Re.prototype,"originY",void 0),Ee([i.query(".ft-ripple")],Re.prototype,"ripple",void 0),Ee([i.query(".ft-ripple--effect")],Re.prototype,"rippleEffect",void 0),e.customElement("ft-ripple")(Re);const Ue=e.FtCssVariableFactory.create("--ft-tooltip-distance","","SIZE","4px"),Le=e.FtCssVariableFactory.create("--ft-tooltip-color","","COLOR","#FFFFFF"),We=e.FtCssVariableFactory.create("--ft-tooltip-background-color","","COLOR","#666666"),ze=e.FtCssVariableFactory.create("--ft-tooltip-z-index","","NUMBER","100"),De=e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),Te=e.FtCssVariableFactory.create("--ft-tooltip-max-width","","SIZE","150px"),Ae=o.css`
557
557
  .ft-tooltip--container {
558
558
  display: block;
559
559
  }
@@ -568,10 +568,10 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
568
568
  box-sizing: border-box;
569
569
  overflow: hidden;
570
570
  width: max-content;
571
- max-width: ${Ae};
571
+ max-width: ${Te};
572
572
  text-align: center;
573
573
  padding: ${Ue};
574
- z-index: ${Te};
574
+ z-index: ${ze};
575
575
  }
576
576
 
577
577
  .ft-tooltip--content {
@@ -582,7 +582,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
582
582
  position: relative;
583
583
  word-break: break-word;
584
584
  }
585
- `,ze=["start","end"],Be=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+ze[0],e+"-"+ze[1])),[]),Fe=Math.min,Ke=Math.max,Ze=Math.round,Me=t=>({x:t,y:t}),Pe={left:"right",right:"left",bottom:"top",top:"bottom"},He={start:"end",end:"start"};function je(t,e,o){return Ke(t,Fe(e,o))}function Ge(t,e){return"function"==typeof t?t(e):t}function Ve(t){return t.split("-")[0]}function Ye(t){return t.split("-")[1]}function qe(t){return"x"===t?"y":"x"}function Xe(t){return"y"===t?"height":"width"}function Qe(t){return["top","bottom"].includes(Ve(t))?"y":"x"}function Je(t){return qe(Qe(t))}function to(t){return t.replace(/left|right|bottom|top/g,(t=>Pe[t]))}function eo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function oo(t,e,o){let{reference:i,floating:r}=t;const n=Qe(e),a=Je(e),s=Xe(a),l=Ve(e),c="y"===n,d=i.x+i.width/2-r.width/2,p=i.y+i.height/2-r.height/2,f=i[s]/2-r[s]/2;let h;switch(l){case"top":h={x:d,y:i.y-r.height};break;case"bottom":h={x:d,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:p};break;case"left":h={x:i.x-r.width,y:p};break;default:h={x:i.x,y:i.y}}switch(Ye(e)){case"start":h[a]-=f*(o&&c?-1:1);break;case"end":h[a]+=f*(o&&c?-1:1)}return h}async function io(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:p="floating",altBoundary:f=!1,padding:h=0}=Ge(e,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=s[f?"floating"===p?"reference":"floating":p],y=eo(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),b="floating"===p?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=eo(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:b,offsetParent:m,strategy:l}):b);return{top:(y.top-x.top+u.top)/v.y,bottom:(x.bottom-y.bottom+u.bottom)/v.y,left:(y.left-x.left+u.left)/v.x,right:(x.right-y.right+u.right)/v.x}}function ro(t,e,o){return(t?[...o.filter((e=>Ye(e)===t)),...o.filter((e=>Ye(e)!==t))]:o.filter((t=>Ve(t)===t))).filter((o=>!t||(Ye(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>He[t]))}(o)!==o)))}const no=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:p,allowedPlacements:f=Be,autoAlignment:h=!0,...u}=Ge(t,e),g=void 0!==p||f===Be?ro(p||null,h,f):f,y=await io(e,u),b=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[b];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Ye(t),r=Je(t),n=Xe(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=to(a)),[a,to(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[y[Ve(m)],y[v[0]],y[v[1]]],w=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],O=g[b+1];if(O)return{data:{index:b+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ye(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),$=S.filter((t=>t[2].slice(0,Ye(t[0])?2:3).every((t=>t<=0)))),N=(null==(r=$[0])?void 0:r[0])||S[0][0];return N!==s?{data:{index:b+1,overflows:w},reset:{placement:N}}:{}}}};function ao(t){return co(t)?(t.nodeName||"").toLowerCase():"#document"}function so(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function lo(t){var e;return null==(e=(co(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function co(t){return t instanceof Node||t instanceof so(t).Node}function po(t){return t instanceof Element||t instanceof so(t).Element}function fo(t){return t instanceof HTMLElement||t instanceof so(t).HTMLElement}function ho(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof so(t).ShadowRoot)}function uo(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=vo(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function go(t){return["table","td","th"].includes(ao(t))}function yo(t){const e=bo(),o=vo(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function bo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function mo(t){return["html","body","#document"].includes(ao(t))}function vo(t){return so(t).getComputedStyle(t)}function xo(t){return po(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wo(t){if("html"===ao(t))return t;const e=t.assignedSlot||t.parentNode||ho(t)&&t.host||lo(t);return ho(e)?e.host:e}function Oo(t){const e=wo(t);return mo(e)?t.ownerDocument?t.ownerDocument.body:t.body:fo(e)&&uo(e)?e:Oo(e)}function So(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Oo(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=so(r);return n?e.concat(a,a.visualViewport||[],uo(r)?r:[],a.frameElement&&o?So(a.frameElement):[]):e.concat(r,So(r,[],o))}function $o(t){const e=vo(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=fo(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Ze(o)!==n||Ze(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function No(t){return po(t)?t:t.contextElement}function Io(t){const e=No(t);if(!fo(e))return Me(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=$o(e);let a=(n?Ze(o.width):o.width)/i,s=(n?Ze(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Co=Me(0);function ko(t){const e=so(t);return bo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Co}function Eo(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=No(t);let a=Me(1);e&&(i?po(i)&&(a=Io(i)):a=Io(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==so(t))&&e}(n,o,i)?ko(n):Me(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,p=r.height/a.y;if(n){const t=so(n),e=i&&po(i)?so(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Io(o),e=o.getBoundingClientRect(),i=vo(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,p*=t.y,l+=r,c+=n,o=so(o).frameElement}}return eo({width:d,height:p,x:l,y:c})}function Ro(t){return Eo(lo(t)).left+xo(t).scrollLeft}function Uo(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=so(t),i=lo(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=bo();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=lo(t),o=xo(t),i=t.ownerDocument.body,r=Ke(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Ke(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+Ro(t);const s=-o.scrollTop;return"rtl"===vo(i).direction&&(a+=Ke(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(lo(t));else if(po(e))i=function(t,e){const o=Eo(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=fo(t)?Io(t):Me(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=ko(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return eo(i)}function Lo(t,e){const o=wo(t);return!(o===e||!po(o)||mo(o))&&("fixed"===vo(o).position||Lo(o,e))}function Wo(t,e,o){const i=fo(e),r=lo(e),n="fixed"===o,a=Eo(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=Me(0);if(i||!i&&!n)if(("body"!==ao(e)||uo(r))&&(s=xo(e)),i){const t=Eo(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Ro(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function To(t,e){return fo(t)&&"fixed"!==vo(t).position?e?e(t):t.offsetParent:null}function Do(t,e){const o=so(t);if(!fo(t))return o;let i=To(t,e);for(;i&&go(i)&&"static"===vo(i).position;)i=To(i,e);return i&&("html"===ao(i)||"body"===ao(i)&&"static"===vo(i).position&&!yo(i))?o:i||function(t){let e=wo(t);for(;fo(e)&&!mo(e);){if(yo(e))return e;e=wo(e)}return null}(t)||o}const Ao={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=fo(o),n=lo(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Me(1);const l=Me(0);if((r||!r&&"fixed"!==i)&&(("body"!==ao(o)||uo(n))&&(a=xo(o)),fo(o))){const t=Eo(o);s=Io(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:lo,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=So(t,[],!1).filter((t=>po(t)&&"body"!==ao(t))),r=null;const n="fixed"===vo(t).position;let a=n?wo(t):t;for(;po(a)&&!mo(a);){const e=vo(a),o=yo(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||uo(a)&&!o&&Lo(t,a))?i=i.filter((t=>t!==a)):r=e,a=wo(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=Uo(e,o,r);return t.top=Ke(i.top,t.top),t.right=Fe(i.right,t.right),t.bottom=Fe(i.bottom,t.bottom),t.left=Ke(i.left,t.left),t}),Uo(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Do,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Do,n=this.getDimensions;return{reference:Wo(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return $o(t)},getScale:Io,isElement:po,isRTL:function(t){return"rtl"===vo(t).direction}},_o=(t,e,o)=>{const i=new Map,r={platform:Ao,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:p}=oo(c,i,l),f=i,h={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:y,y:b,data:m,reset:v}=await g({x:d,y:p,initialPlacement:i,placement:f,strategy:r,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});d=null!=y?y:d,p=null!=b?b:p,h={...h,[n]:{...h[n],...m}},v&&u<=50&&(u++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:p}=oo(c,f,l))),o=-1)}return{x:d,y:p,placement:f,strategy:r,middlewareData:h}})(t,e,{...r,platform:n})};function zo(t){return function(t){for(let e=t;e;e=Bo(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Bo(t);e;e=Bo(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Bo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}var Fo,Ko,Zo,Mo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Po extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return o.html`
585
+ `,_e=["start","end"],Ze=["top","right","bottom","left"].reduce(((t,e)=>t.concat(e,e+"-"+_e[0],e+"-"+_e[1])),[]),Fe=Math.min,Be=Math.max,Ke=Math.round,Me=t=>({x:t,y:t}),Pe={left:"right",right:"left",bottom:"top",top:"bottom"},He={start:"end",end:"start"};function je(t,e,o){return Be(t,Fe(e,o))}function Ge(t,e){return"function"==typeof t?t(e):t}function Ve(t){return t.split("-")[0]}function Ye(t){return t.split("-")[1]}function qe(t){return"x"===t?"y":"x"}function Xe(t){return"y"===t?"height":"width"}function Qe(t){return["top","bottom"].includes(Ve(t))?"y":"x"}function Je(t){return qe(Qe(t))}function to(t){return t.replace(/left|right|bottom|top/g,(t=>Pe[t]))}function eo(t){return{...t,top:t.y,left:t.x,right:t.x+t.width,bottom:t.y+t.height}}function oo(t,e,o){let{reference:i,floating:r}=t;const n=Qe(e),a=Je(e),s=Xe(a),l=Ve(e),c="y"===n,d=i.x+i.width/2-r.width/2,f=i.y+i.height/2-r.height/2,p=i[s]/2-r[s]/2;let h;switch(l){case"top":h={x:d,y:i.y-r.height};break;case"bottom":h={x:d,y:i.y+i.height};break;case"right":h={x:i.x+i.width,y:f};break;case"left":h={x:i.x-r.width,y:f};break;default:h={x:i.x,y:i.y}}switch(Ye(e)){case"start":h[a]-=p*(o&&c?-1:1);break;case"end":h[a]+=p*(o&&c?-1:1)}return h}async function io(t,e){var o;void 0===e&&(e={});const{x:i,y:r,platform:n,rects:a,elements:s,strategy:l}=t,{boundary:c="clippingAncestors",rootBoundary:d="viewport",elementContext:f="floating",altBoundary:p=!1,padding:h=0}=Ge(e,t),u=function(t){return"number"!=typeof t?function(t){return{top:0,right:0,bottom:0,left:0,...t}}(t):{top:t,right:t,bottom:t,left:t}}(h),g=s[p?"floating"===f?"reference":"floating":f],b=eo(await n.getClippingRect({element:null==(o=await(null==n.isElement?void 0:n.isElement(g)))||o?g:g.contextElement||await(null==n.getDocumentElement?void 0:n.getDocumentElement(s.floating)),boundary:c,rootBoundary:d,strategy:l})),y="floating"===f?{...a.floating,x:i,y:r}:a.reference,m=await(null==n.getOffsetParent?void 0:n.getOffsetParent(s.floating)),v=await(null==n.isElement?void 0:n.isElement(m))&&await(null==n.getScale?void 0:n.getScale(m))||{x:1,y:1},x=eo(n.convertOffsetParentRelativeRectToViewportRelativeRect?await n.convertOffsetParentRelativeRectToViewportRelativeRect({rect:y,offsetParent:m,strategy:l}):y);return{top:(b.top-x.top+u.top)/v.y,bottom:(x.bottom-b.bottom+u.bottom)/v.y,left:(b.left-x.left+u.left)/v.x,right:(x.right-b.right+u.right)/v.x}}function ro(t,e,o){return(t?[...o.filter((e=>Ye(e)===t)),...o.filter((e=>Ye(e)!==t))]:o.filter((t=>Ve(t)===t))).filter((o=>!t||(Ye(o)===t||!!e&&function(t){return t.replace(/start|end/g,(t=>He[t]))}(o)!==o)))}const no=function(t){return void 0===t&&(t={}),{name:"autoPlacement",options:t,async fn(e){var o,i,r;const{rects:n,middlewareData:a,placement:s,platform:l,elements:c}=e,{crossAxis:d=!1,alignment:f,allowedPlacements:p=Ze,autoAlignment:h=!0,...u}=Ge(t,e),g=void 0!==f||p===Ze?ro(f||null,h,p):p,b=await io(e,u),y=(null==(o=a.autoPlacement)?void 0:o.index)||0,m=g[y];if(null==m)return{};const v=function(t,e,o){void 0===o&&(o=!1);const i=Ye(t),r=Je(t),n=Xe(r);let a="x"===r?i===(o?"end":"start")?"right":"left":"start"===i?"bottom":"top";return e.reference[n]>e.floating[n]&&(a=to(a)),[a,to(a)]}(m,n,await(null==l.isRTL?void 0:l.isRTL(c.floating)));if(s!==m)return{reset:{placement:g[0]}};const x=[b[Ve(m)],b[v[0]],b[v[1]]],w=[...(null==(i=a.autoPlacement)?void 0:i.overflows)||[],{placement:m,overflows:x}],O=g[y+1];if(O)return{data:{index:y+1,overflows:w},reset:{placement:O}};const S=w.map((t=>{const e=Ye(t.placement);return[t.placement,e&&d?t.overflows.slice(0,2).reduce(((t,e)=>t+e),0):t.overflows[0],t.overflows]})).sort(((t,e)=>t[1]-e[1])),N=S.filter((t=>t[2].slice(0,Ye(t[0])?2:3).every((t=>t<=0)))),$=(null==(r=N[0])?void 0:r[0])||S[0][0];return $!==s?{data:{index:y+1,overflows:w},reset:{placement:$}}:{}}}};function ao(t){return co(t)?(t.nodeName||"").toLowerCase():"#document"}function so(t){var e;return(null==t||null==(e=t.ownerDocument)?void 0:e.defaultView)||window}function lo(t){var e;return null==(e=(co(t)?t.ownerDocument:t.document)||window.document)?void 0:e.documentElement}function co(t){return t instanceof Node||t instanceof so(t).Node}function fo(t){return t instanceof Element||t instanceof so(t).Element}function po(t){return t instanceof HTMLElement||t instanceof so(t).HTMLElement}function ho(t){return"undefined"!=typeof ShadowRoot&&(t instanceof ShadowRoot||t instanceof so(t).ShadowRoot)}function uo(t){const{overflow:e,overflowX:o,overflowY:i,display:r}=vo(t);return/auto|scroll|overlay|hidden|clip/.test(e+i+o)&&!["inline","contents"].includes(r)}function go(t){return["table","td","th"].includes(ao(t))}function bo(t){const e=yo(),o=vo(t);return"none"!==o.transform||"none"!==o.perspective||!!o.containerType&&"normal"!==o.containerType||!e&&!!o.backdropFilter&&"none"!==o.backdropFilter||!e&&!!o.filter&&"none"!==o.filter||["transform","perspective","filter"].some((t=>(o.willChange||"").includes(t)))||["paint","layout","strict","content"].some((t=>(o.contain||"").includes(t)))}function yo(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function mo(t){return["html","body","#document"].includes(ao(t))}function vo(t){return so(t).getComputedStyle(t)}function xo(t){return fo(t)?{scrollLeft:t.scrollLeft,scrollTop:t.scrollTop}:{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function wo(t){if("html"===ao(t))return t;const e=t.assignedSlot||t.parentNode||ho(t)&&t.host||lo(t);return ho(e)?e.host:e}function Oo(t){const e=wo(t);return mo(e)?t.ownerDocument?t.ownerDocument.body:t.body:po(e)&&uo(e)?e:Oo(e)}function So(t,e,o){var i;void 0===e&&(e=[]),void 0===o&&(o=!0);const r=Oo(t),n=r===(null==(i=t.ownerDocument)?void 0:i.body),a=so(r);return n?e.concat(a,a.visualViewport||[],uo(r)?r:[],a.frameElement&&o?So(a.frameElement):[]):e.concat(r,So(r,[],o))}function No(t){const e=vo(t);let o=parseFloat(e.width)||0,i=parseFloat(e.height)||0;const r=po(t),n=r?t.offsetWidth:o,a=r?t.offsetHeight:i,s=Ke(o)!==n||Ke(i)!==a;return s&&(o=n,i=a),{width:o,height:i,$:s}}function $o(t){return fo(t)?t:t.contextElement}function Io(t){const e=$o(t);if(!po(e))return Me(1);const o=e.getBoundingClientRect(),{width:i,height:r,$:n}=No(e);let a=(n?Ke(o.width):o.width)/i,s=(n?Ke(o.height):o.height)/r;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const Co=Me(0);function ko(t){const e=so(t);return yo()&&e.visualViewport?{x:e.visualViewport.offsetLeft,y:e.visualViewport.offsetTop}:Co}function Eo(t,e,o,i){void 0===e&&(e=!1),void 0===o&&(o=!1);const r=t.getBoundingClientRect(),n=$o(t);let a=Me(1);e&&(i?fo(i)&&(a=Io(i)):a=Io(t));const s=function(t,e,o){return void 0===e&&(e=!1),!(!o||e&&o!==so(t))&&e}(n,o,i)?ko(n):Me(0);let l=(r.left+s.x)/a.x,c=(r.top+s.y)/a.y,d=r.width/a.x,f=r.height/a.y;if(n){const t=so(n),e=i&&fo(i)?so(i):i;let o=t.frameElement;for(;o&&i&&e!==t;){const t=Io(o),e=o.getBoundingClientRect(),i=vo(o),r=e.left+(o.clientLeft+parseFloat(i.paddingLeft))*t.x,n=e.top+(o.clientTop+parseFloat(i.paddingTop))*t.y;l*=t.x,c*=t.y,d*=t.x,f*=t.y,l+=r,c+=n,o=so(o).frameElement}}return eo({width:d,height:f,x:l,y:c})}function Ro(t){return Eo(lo(t)).left+xo(t).scrollLeft}function Uo(t,e,o){let i;if("viewport"===e)i=function(t,e){const o=so(t),i=lo(t),r=o.visualViewport;let n=i.clientWidth,a=i.clientHeight,s=0,l=0;if(r){n=r.width,a=r.height;const t=yo();(!t||t&&"fixed"===e)&&(s=r.offsetLeft,l=r.offsetTop)}return{width:n,height:a,x:s,y:l}}(t,o);else if("document"===e)i=function(t){const e=lo(t),o=xo(t),i=t.ownerDocument.body,r=Be(e.scrollWidth,e.clientWidth,i.scrollWidth,i.clientWidth),n=Be(e.scrollHeight,e.clientHeight,i.scrollHeight,i.clientHeight);let a=-o.scrollLeft+Ro(t);const s=-o.scrollTop;return"rtl"===vo(i).direction&&(a+=Be(e.clientWidth,i.clientWidth)-r),{width:r,height:n,x:a,y:s}}(lo(t));else if(fo(e))i=function(t,e){const o=Eo(t,!0,"fixed"===e),i=o.top+t.clientTop,r=o.left+t.clientLeft,n=po(t)?Io(t):Me(1);return{width:t.clientWidth*n.x,height:t.clientHeight*n.y,x:r*n.x,y:i*n.y}}(e,o);else{const o=ko(t);i={...e,x:e.x-o.x,y:e.y-o.y}}return eo(i)}function Lo(t,e){const o=wo(t);return!(o===e||!fo(o)||mo(o))&&("fixed"===vo(o).position||Lo(o,e))}function Wo(t,e,o){const i=po(e),r=lo(e),n="fixed"===o,a=Eo(t,!0,n,e);let s={scrollLeft:0,scrollTop:0};const l=Me(0);if(i||!i&&!n)if(("body"!==ao(e)||uo(r))&&(s=xo(e)),i){const t=Eo(e,!0,n,e);l.x=t.x+e.clientLeft,l.y=t.y+e.clientTop}else r&&(l.x=Ro(r));return{x:a.left+s.scrollLeft-l.x,y:a.top+s.scrollTop-l.y,width:a.width,height:a.height}}function zo(t,e){return po(t)&&"fixed"!==vo(t).position?e?e(t):t.offsetParent:null}function Do(t,e){const o=so(t);if(!po(t))return o;let i=zo(t,e);for(;i&&go(i)&&"static"===vo(i).position;)i=zo(i,e);return i&&("html"===ao(i)||"body"===ao(i)&&"static"===vo(i).position&&!bo(i))?o:i||function(t){let e=wo(t);for(;po(e)&&!mo(e);){if(bo(e))return e;e=wo(e)}return null}(t)||o}const To={convertOffsetParentRelativeRectToViewportRelativeRect:function(t){let{rect:e,offsetParent:o,strategy:i}=t;const r=po(o),n=lo(o);if(o===n)return e;let a={scrollLeft:0,scrollTop:0},s=Me(1);const l=Me(0);if((r||!r&&"fixed"!==i)&&(("body"!==ao(o)||uo(n))&&(a=xo(o)),po(o))){const t=Eo(o);s=Io(o),l.x=t.x+o.clientLeft,l.y=t.y+o.clientTop}return{width:e.width*s.x,height:e.height*s.y,x:e.x*s.x-a.scrollLeft*s.x+l.x,y:e.y*s.y-a.scrollTop*s.y+l.y}},getDocumentElement:lo,getClippingRect:function(t){let{element:e,boundary:o,rootBoundary:i,strategy:r}=t;const n=[..."clippingAncestors"===o?function(t,e){const o=e.get(t);if(o)return o;let i=So(t,[],!1).filter((t=>fo(t)&&"body"!==ao(t))),r=null;const n="fixed"===vo(t).position;let a=n?wo(t):t;for(;fo(a)&&!mo(a);){const e=vo(a),o=bo(a);o||"fixed"!==e.position||(r=null),(n?!o&&!r:!o&&"static"===e.position&&r&&["absolute","fixed"].includes(r.position)||uo(a)&&!o&&Lo(t,a))?i=i.filter((t=>t!==a)):r=e,a=wo(a)}return e.set(t,i),i}(e,this._c):[].concat(o),i],a=n[0],s=n.reduce(((t,o)=>{const i=Uo(e,o,r);return t.top=Be(i.top,t.top),t.right=Fe(i.right,t.right),t.bottom=Fe(i.bottom,t.bottom),t.left=Be(i.left,t.left),t}),Uo(e,a,r));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Do,getElementRects:async function(t){let{reference:e,floating:o,strategy:i}=t;const r=this.getOffsetParent||Do,n=this.getDimensions;return{reference:Wo(e,await r(o),i),floating:{x:0,y:0,...await n(o)}}},getClientRects:function(t){return Array.from(t.getClientRects())},getDimensions:function(t){return No(t)},getScale:Io,isElement:fo,isRTL:function(t){return"rtl"===vo(t).direction}},Ao=(t,e,o)=>{const i=new Map,r={platform:To,...o},n={...r.platform,_c:i};return(async(t,e,o)=>{const{placement:i="bottom",strategy:r="absolute",middleware:n=[],platform:a}=o,s=n.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(e));let c=await a.getElementRects({reference:t,floating:e,strategy:r}),{x:d,y:f}=oo(c,i,l),p=i,h={},u=0;for(let o=0;o<s.length;o++){const{name:n,fn:g}=s[o],{x:b,y,data:m,reset:v}=await g({x:d,y:f,initialPlacement:i,placement:p,strategy:r,middlewareData:h,rects:c,platform:a,elements:{reference:t,floating:e}});d=null!=b?b:d,f=null!=y?y:f,h={...h,[n]:{...h[n],...m}},v&&u<=50&&(u++,"object"==typeof v&&(v.placement&&(p=v.placement),v.rects&&(c=!0===v.rects?await a.getElementRects({reference:t,floating:e,strategy:r}):v.rects),({x:d,y:f}=oo(c,p,l))),o=-1)}return{x:d,y:f,placement:p,strategy:r,middlewareData:h}})(t,e,{...r,platform:n})};function _o(t){return function(t){for(let e=t;e;e=Zo(e))if(e instanceof Element&&"none"===getComputedStyle(e).display)return null;for(let e=Zo(t);e;e=Zo(e)){if(!(e instanceof Element))continue;const t=getComputedStyle(e);if("contents"!==t.display){if("static"!==t.position||"none"!==t.filter)return e;if("BODY"===e.tagName)return e}}return null}(t)}function Zo(t){return t.assignedSlot?t.assignedSlot:t.parentNode instanceof ShadowRoot?t.parentNode.host:t.parentNode}async function Fo(t,e,o){return Ao(t,e,{platform:{...To,getOffsetParent:t=>To.getOffsetParent(t,_o)},middleware:[(i={crossAxis:!0},void 0===i&&(i={}),{name:"shift",options:i,async fn(t){const{x:e,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=Ge(i,t),c={x:e,y:o},d=await io(t,l),f=Qe(Ve(r)),p=qe(f);let h=c[p],u=c[f];if(n){const t="y"===p?"bottom":"right";h=je(h+d["y"===p?"top":"left"],h,h-d[t])}if(a){const t="y"===f?"bottom":"right";u=je(u+d["y"===f?"top":"left"],u,u-d[t])}const g=s.fn({...t,[p]:h,[f]:u});return{...g,data:{x:g.x-e,y:g.y-o}}}}),no({allowedPlacements:[o]})]});var i}var Bo,Ko,Mo,Po=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ho extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new e.Debouncer,this.revealDebouncer=new e.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return o.html`
586
586
  <div part="container"
587
587
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
588
588
  @mouseenter=${this.onHover}
@@ -600,12 +600,12 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
600
600
  </div>
601
601
  </div>
602
602
  </div>
603
- `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",async function(t,e,o){return _o(t,e,{platform:{...Ao,getOffsetParent:t=>Ao.getOffsetParent(t,zo)},middleware:[(i={crossAxis:!0},void 0===i&&(i={}),{name:"shift",options:i,async fn(t){const{x:e,y:o,placement:r}=t,{mainAxis:n=!0,crossAxis:a=!1,limiter:s={fn:t=>{let{x:e,y:o}=t;return{x:e,y:o}}},...l}=Ge(i,t),c={x:e,y:o},d=await io(t,l),p=Qe(Ve(r)),f=qe(p);let h=c[f],u=c[p];if(n){const t="y"===f?"bottom":"right";h=je(h+d["y"===f?"top":"left"],h,h-d[t])}if(a){const t="y"===p?"bottom":"right";u=je(u+d["y"===p?"top":"left"],u,u-d[t])}const g=s.fn({...t,[f]:h,[p]:u});return{...g,data:{x:g.x-e,y:g.y-o}}}}),no({allowedPlacements:[o]})]});var i}(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Po.elementDefinitions={"ft-typography":ke},Po.styles=_e,Mo([i.property()],Po.prototype,"text",void 0),Mo([i.property({type:Boolean})],Po.prototype,"manual",void 0),Mo([i.property({type:Boolean})],Po.prototype,"inline",void 0),Mo([i.property({type:Number})],Po.prototype,"delay",void 0),Mo([i.property()],Po.prototype,"position",void 0),Mo([i.queryAssignedNodes()],Po.prototype,"slotNodes",void 0),Mo([i.query(".ft-tooltip--container")],Po.prototype,"container",void 0),Mo([i.query(".ft-tooltip")],Po.prototype,"tooltip",void 0),Mo([i.query(".ft-tooltip--content")],Po.prototype,"tooltipContent",void 0),Mo([i.state()],Po.prototype,"visible",void 0),Mo([i.eventOptions({passive:!0})],Po.prototype,"onTouch",null),Mo([i.eventOptions({passive:!0})],Po.prototype,"onHover",null),Mo([i.eventOptions({passive:!0})],Po.prototype,"onOut",null),Mo([i.eventOptions({passive:!0})],Po.prototype,"onClick",null),e.customElement("ft-tooltip")(Po),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",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_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(Fo||(Fo={})),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;"}(Ko||(Ko={})),new Map([...["abw"].map((t=>[t,Ko.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,Ko.AUDIO])),...["avi"].map((t=>[t,Ko.AVI])),...["chm","xhs"].map((t=>[t,Ko.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,Ko.CODE])),...["csv"].map((t=>[t,Ko.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ko.DITA])),...["epub"].map((t=>[t,Ko.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ko.EXCEL])),...["flac"].map((t=>[t,Ko.FLAC])),...["gif"].map((t=>[t,Ko.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ko.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ko.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,Ko.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ko.JPEG])),...["json"].map((t=>[t,Ko.JSON])),...["m4a","m4p"].map((t=>[t,Ko.M4A])),...["mov","qt"].map((t=>[t,Ko.MOV])),...["mp3"].map((t=>[t,Ko.MP3])),...["mp4","m4v"].map((t=>[t,Ko.MP4])),...["ogg","oga"].map((t=>[t,Ko.OGG])),...["pdf","ps"].map((t=>[t,Ko.PDF])),...["png"].map((t=>[t,Ko.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ko.POWERPOINT])),...["rar"].map((t=>[t,Ko.RAR])),...["stp"].map((t=>[t,Ko.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ko.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,Ko.VIDEO])),...["wav"].map((t=>[t,Ko.WAV])),...["wma"].map((t=>[t,Ko.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ko.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ko.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ko.YAML])),...["zip"].map((t=>[t,Ko.ZIP]))]),Ko.ABW,Ko.AUDIO,Ko.AVI,Ko.CHM,Ko.CODE,Ko.CSV,Ko.DITA,Ko.EPUB,Ko.EXCEL,Ko.FLAC,Ko.GIF,Ko.GZIP,Ko.HTML,Ko.IMAGE,Ko.JPEG,Ko.JSON,Ko.M4A,Ko.MOV,Ko.MP3,Ko.MP4,Ko.OGG,Ko.PDF,Ko.PNG,Ko.POWERPOINT,Ko.RAR,Ko.STP,Ko.TEXT,Ko.UNKNOWN,Ko.VIDEO,Ko.WAV,Ko.WMA,Ko.WORD,Ko.XML,Ko.YAML,Ko.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Zo||(Zo={}));var Ho=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class jo extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=o.nothing}render(){const t=this.variant&&Object.values(Zo).includes(this.variant)?this.variant:Zo.fluid_topics,e=t!==Zo.material||!!this.value;return o.html`
603
+ `}updated(t){t.has("visible")&&this.visible&&this.resetTooltipContent(),super.updated(t)}contentAvailableCallback(t){super.contentAvailableCallback(t),["visible","text"].some((e=>t.has(e)))&&this.visible&&this.positionTooltip()}async show(t){this.visible=!0,null!=t&&await this.hideDebounce.run((()=>{this.hide()}),t)}hide(){this.visible=!1}toggle(){this.visible=!this.visible}get slottedElement(){var t;return(null!==(t=this.slotNodes)&&void 0!==t?t:[]).filter((t=>t.nodeType==Node.ELEMENT_NODE))[0]}resetTooltipContent(){if(this.tooltip&&this.tooltipContent){const t=this.tooltipContent.style;switch(t.transition="none",this.validPosition){case"top":t.top=this.tooltip.clientHeight+"px",t.left="0";break;case"bottom":t.top=-this.tooltip.clientHeight+"px",t.left="0";break;case"left":t.top="0",t.left=this.tooltip.clientWidth+"px";break;case"right":t.top="0",t.left=-this.tooltip.clientWidth+"px"}}}positionTooltip(){this.resetTooltipContent(),this.tooltip&&this.slottedElement&&(this.tooltip.style.left="",this.tooltip.style.top="",Fo(this.slottedElement,this.tooltip,this.position).then((({x:t,y:e})=>{this.tooltip&&(this.tooltip.style.left=`${t}px`,this.tooltip.style.top=`${e}px`)}))),this.revealDebouncer.run((()=>{this.tooltipContent&&(this.tooltipContent.style.transition="top var(--ft-transition-duration, 250ms), left var(--ft-transition-duration, 250ms)",this.tooltipContent.style.top="0",this.tooltipContent.style.left="0")}),this.manual?0:this.delay)}onTouch(){this.manual||(this.show(),setTimeout((()=>window.addEventListener("touchstart",(t=>{t.composedPath().includes(this.container)||this.onOut()}),{once:!0})),100))}onHover(){this.manual||this.show()}onOut(){this.manual||(this.revealDebouncer.cancel(),this.hide())}onClick(){this.manual||(this.revealDebouncer.cancel(),this.hide())}correctOutOfWindowPixels(t,e){return Math.max(t,Math.min(0,-e))}}Ho.elementDefinitions={"ft-typography":ke},Ho.styles=Ae,Po([i.property()],Ho.prototype,"text",void 0),Po([i.property({type:Boolean})],Ho.prototype,"manual",void 0),Po([i.property({type:Boolean})],Ho.prototype,"inline",void 0),Po([i.property({type:Number})],Ho.prototype,"delay",void 0),Po([i.property()],Ho.prototype,"position",void 0),Po([i.queryAssignedNodes()],Ho.prototype,"slotNodes",void 0),Po([i.query(".ft-tooltip--container")],Ho.prototype,"container",void 0),Po([i.query(".ft-tooltip")],Ho.prototype,"tooltip",void 0),Po([i.query(".ft-tooltip--content")],Ho.prototype,"tooltipContent",void 0),Po([i.state()],Ho.prototype,"visible",void 0),Po([i.eventOptions({passive:!0})],Ho.prototype,"onTouch",null),Po([i.eventOptions({passive:!0})],Ho.prototype,"onHover",null),Po([i.eventOptions({passive:!0})],Ho.prototype,"onOut",null),Po([i.eventOptions({passive:!0})],Ho.prototype,"onClick",null),e.customElement("ft-tooltip")(Ho),function(t){t.THUMBS_DOWN="&#xe94d;",t.THUMBS_DOWN_PLAIN="&#xe94e;",t.THUMBS_UP="&#xe94f;",t.THUMBS_UP_PLAIN="&#xe950;",t.STAR="&#xe94c;",t.STAR_PLAIN="&#xe900;",t.DESKTOP="&#xe95e;",t.LIFE_RING="&#xe975;",t.GLOBE="&#xe976;",t.PIGGY_BANK="&#xe977;",t.TABLET_LANDSCAPE="&#xe95f;",t.TABLET_PORTRAIT="&#xe960;",t.MOBILE_LANDSCAPE="&#xe961;",t.MOBILE_PORTRAIT="&#xe962;",t.ARROW_RIGHT_TO_LINE="&#xe95d;",t.THIN_ARROW_UP="&#xe95c;",t.CONTEXTUAL="&#xe95b;",t.CHART_SIMPLE="&#xe968;",t.BARS_PROGRESS="&#xe969;",t.LINE_CHART="&#xe96c;",t.STACKED_CHART="&#xe96d;",t.CHART_BAR_NORMALIZED="&#xe97b;",t.BOOK_OPEN_GEAR="&#xe96a;",t.BOOK_OPEN_GEAR_SLASH="&#xe96b;",t.DIAGRAM_SUNBURST="&#xe963;",t.DIAGRAM_SANKEY="&#xe964;",t.UNSTRUCTURED_DOC="&#xe95a;",t.RESET="&#xe958;",t.THIN_ARROW_LEFT="&#xe956;",t.THIN_ARROW_RIGHT="&#xe957;",t.MY_COLLECTIONS="&#xe955;",t.OFFLINE_SETTINGS="&#xe954;",t.MY_LIBRARY="&#xe959;",t.RATE_PLAIN="&#xe952;",t.RATE="&#xe953;",t.FEEDBACK_PLAIN="&#xe951;",t.PAUSE="&#xe949;",t.PLAY="&#xe94a;",t.RELATIVES_PLAIN="&#xe947;",t.RELATIVES="&#xe948;",t.SHORTCUT_MENU="&#xe946;",t.PRINT="&#xe944;",t.DEFAULT_ROLES="&#xe945;",t.ACCOUNT_SETTINGS="&#xe943;",t.ONLINE="&#xe941;",t.OFFLINE="&#xe816;",t.UPLOAD="&#xe940;",t.BOOK_PLAIN="&#xe93f;",t.SYNC="&#xe93d;",t.SHARED_PBK="&#xe931;",t.COLLECTIONS="&#xe92a;",t.SEARCH_IN_PUBLICATION="&#xe92f;",t.BOOKS="&#xe806;",t.LOCKER="&#xe93b;",t.ARROW_DOWN="&#xe92b;",t.ARROW_LEFT="&#xe92c;",t.ARROW_RIGHT="&#xe92d;",t.ARROW_UP="&#xe92e;",t.SAVE="&#xe93a;",t.MAILS_AND_NOTIFICATIONS="&#xe939;",t.DOT="&#xe936;",t.MINUS="&#xe937;",t.PLUS="&#xe938;",t.FILTERS="&#xe935;",t.STRIPE_ARROW_RIGHT="&#xe934;",t.STRIPE_ARROW_LEFT="&#xe933;",t.ATTACHMENTS="&#xe932;",t.ADD_BOOKMARK="&#xe804;",t.BOOKMARK="&#xe805;",t.EXPORT="&#xe80f;",t.MENU="&#xe807;",t.TAG="&#xe93e;",t.TAG_PLAIN="&#xe942;",t.COPY_TO_CLIPBOARD="&#xe930;",t.COLUMNS="&#xe928;",t.ARTICLE="&#xe927;",t.CLOSE_PLAIN="&#xe925;",t.CHECK_PLAIN="&#xe926;",t.LOGOUT="&#xe923;",t.SIGN_IN="&#xe922;",t.THIN_ARROW="&#xe921;",t.TRIANGLE_BOTTOM="&#xe91d;",t.TRIANGLE_LEFT="&#xe91e;",t.TRIANGLE_RIGHT="&#xe91f;",t.TRIANGLE_TOP="&#xe920;",t.FACET_HAS_DESCENDANT="&#xe91c;",t.MINUS_PLAIN="&#xe91a;",t.PLUS_PLAIN="&#xe91b;",t.INFO="&#xe919;",t.ICON_EXPAND="&#xe917;",t.ICON_COLLAPSE="&#xe918;",t.ADD_TO_PBK="&#xe800;",t.ALERT="&#xe801;",t.ADD_ALERT="&#xe802;",t.BACK_TO_SEARCH="&#xe803;",t.DOWNLOAD="&#xe808;",t.EDIT="&#xe809;",t.FEEDBACK="&#xe80a;",t.MODIFY_PBK="&#xe80c;",t.SCHEDULED="&#xe80d;",t.SEARCH="&#xe80e;",t.SHARE="&#xe80f1;",t.TOC="&#xe810;",t.WRITE_UGC="&#xe811;",t.TRASH="&#xe812;",t.EXTLINK="&#xe814;",t.EXTLINK_LIGHT="&#xe978;",t.CALENDAR="&#xe815;",t.BOOK="&#xe817;",t.DOWNLOAD_PLAIN="&#xe818;",t.CHECK="&#xe819;",t.TOPICS="&#xe901;",t.EYE="&#xf06e;",t.EYE_SLASH="&#xe970;",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_THEME="&#xe911;",t.WARNING="&#xe913;",t.CONTEXT="&#xe914;",t.SEARCH_HOME="&#xe915;",t.STEPS="&#xe916;",t.HOME="&#xe80b;",t.TRANSLATE="&#xe924;",t.USER="&#xe813;",t.ADMIN="&#xe90f;",t.ANALYTICS="&#xe929;",t.ADMIN_KHUB="&#xe910;",t.ADMIN_USERS="&#xe912;",t.ADMIN_INTEGRATION="&#xe93c;",t.ADMIN_PORTAL="&#xe94b;",t.COMMENT_QUESTION="&#xe965;",t.COMMENT_QUESTION_PLAIN="&#xe966;",t.MESSAGE_BOT="&#xe967;",t.PIP="&#xe973;",t.PIP_WIDE="&#xe974;",t.EXPAND_WIDE="&#xe972;",t.X_MARK="&#xe971;",t.CLONE="&#xe979;",t.CLONE_LINK_SIMPLE="&#xe97a;"}(Bo||(Bo={})),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;"}(Ko||(Ko={})),new Map([...["abw"].map((t=>[t,Ko.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,Ko.AUDIO])),...["avi"].map((t=>[t,Ko.AVI])),...["chm","xhs"].map((t=>[t,Ko.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,Ko.CODE])),...["csv"].map((t=>[t,Ko.CSV])),...["dita","ditamap","ditaval"].map((t=>[t,Ko.DITA])),...["epub"].map((t=>[t,Ko.EPUB])),...["xls","xlt","xlm","xlsx","xlsm","xltx","xltm","xlsb","xla","xlam","xll","xlw"].map((t=>[t,Ko.EXCEL])),...["flac"].map((t=>[t,Ko.FLAC])),...["gif"].map((t=>[t,Ko.GIF])),...["gzip","x-gzip","giz","gz","tgz"].map((t=>[t,Ko.GZIP])),...["html","htm","xhtml"].map((t=>[t,Ko.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,Ko.IMAGE])),...["jpeg","jpg","jpe"].map((t=>[t,Ko.JPEG])),...["json"].map((t=>[t,Ko.JSON])),...["m4a","m4p"].map((t=>[t,Ko.M4A])),...["mov","qt"].map((t=>[t,Ko.MOV])),...["mp3"].map((t=>[t,Ko.MP3])),...["mp4","m4v"].map((t=>[t,Ko.MP4])),...["ogg","oga"].map((t=>[t,Ko.OGG])),...["pdf","ps"].map((t=>[t,Ko.PDF])),...["png"].map((t=>[t,Ko.PNG])),...["ppt","pot","pps","pptx","pptm","potx","potm","ppam","ppsx","ppsm","sldx","sldm"].map((t=>[t,Ko.POWERPOINT])),...["rar"].map((t=>[t,Ko.RAR])),...["stp"].map((t=>[t,Ko.STP])),...["txt","rtf","md","mdown"].map((t=>[t,Ko.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,Ko.VIDEO])),...["wav"].map((t=>[t,Ko.WAV])),...["wma"].map((t=>[t,Ko.WMA])),...["doc","dot","docx","docm","dotx","dotm","docb"].map((t=>[t,Ko.WORD])),...["xml","xsl","rdf"].map((t=>[t,Ko.XML])),...["yaml","yml","x-yaml"].map((t=>[t,Ko.YAML])),...["zip"].map((t=>[t,Ko.ZIP]))]),Ko.ABW,Ko.AUDIO,Ko.AVI,Ko.CHM,Ko.CODE,Ko.CSV,Ko.DITA,Ko.EPUB,Ko.EXCEL,Ko.FLAC,Ko.GIF,Ko.GZIP,Ko.HTML,Ko.IMAGE,Ko.JPEG,Ko.JSON,Ko.M4A,Ko.MOV,Ko.MP3,Ko.MP4,Ko.OGG,Ko.PDF,Ko.PNG,Ko.POWERPOINT,Ko.RAR,Ko.STP,Ko.TEXT,Ko.UNKNOWN,Ko.VIDEO,Ko.WAV,Ko.WMA,Ko.WORD,Ko.XML,Ko.YAML,Ko.ZIP,function(t){t.fluid_topics="fluid-topics",t.file_format="file-format",t.material="material"}(Mo||(Mo={}));var jo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Go extends e.FtLitElement{constructor(){super(...arguments),this.resolvedIcon=o.nothing}render(){const t=this.variant&&Object.values(Mo).includes(this.variant)?this.variant:Mo.fluid_topics,e=t!==Mo.material||!!this.value;return o.html`
604
604
  <i class="ft-icon ft-icon--${t}" part="icon icon-${t}">
605
605
  ${n.unsafeHTML(this.resolvedIcon)}
606
606
  <slot ?hidden=${e}></slot>
607
607
  </i>
608
- `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Zo.file_format:this.resolvedIcon=null!==(t=Ko[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Zo.material:this.resolvedIcon=this.value||o.nothing;break;default:this.resolvedIcon=null!==(e=Fo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}jo.elementDefinitions={},jo.styles=It,Ho([i.property()],jo.prototype,"variant",void 0),Ho([i.property()],jo.prototype,"value",void 0),Ho([i.state()],jo.prototype,"resolvedIcon",void 0),Ho([i.query("slot")],jo.prototype,"slottedContent",void 0),e.customElement("ft-icon")(jo);const Go={borderRadiusLeft:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",e.designSystemVariables.borderRadiusL),borderRadiusRight:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",e.designSystemVariables.borderRadiusL),borderWidthLeft:e.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:e.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:e.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Vo=o.css`
608
+ `}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}update(t){super.update(t),["value","variant"].some((e=>t.has(e)))&&this.resolveIcon()}resolveIcon(){var t,e;let i=this.value||this.textContent;switch(this.variant){case Mo.file_format:this.resolvedIcon=null!==(t=Ko[i.replace("-","_").toUpperCase()])&&void 0!==t?t:i;break;case Mo.material:this.resolvedIcon=this.value||o.nothing;break;default:this.resolvedIcon=null!==(e=Bo[i.replace("-","_").toUpperCase()])&&void 0!==e?e:i}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Go.elementDefinitions={},Go.styles=It,jo([i.property()],Go.prototype,"variant",void 0),jo([i.property()],Go.prototype,"value",void 0),jo([i.state()],Go.prototype,"resolvedIcon",void 0),jo([i.query("slot")],Go.prototype,"slottedContent",void 0),e.customElement("ft-icon")(Go);const Vo={borderRadiusLeft:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-left","",e.designSystemVariables.borderRadiusL),borderRadiusRight:e.FtCssVariableFactory.extend("--ft-switch-option-border-radius-right","",e.designSystemVariables.borderRadiusL),borderWidthLeft:e.FtCssVariableFactory.create("--ft-switch-option-border-width-left","","SIZE","1px"),borderWidthRight:e.FtCssVariableFactory.create("--ft-switch-option-border-width-right","","SIZE","1px"),borderWidthVertical:e.FtCssVariableFactory.create("--ft-switch-option-border-width-vertical","","SIZE","1px")},Yo=o.css`
609
609
  .ft-switch-option {
610
610
  position: relative;
611
611
  display: inline-block;
@@ -619,20 +619,20 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
619
619
  }
620
620
 
621
621
  .ft-switch-option--content {
622
- --ft-switch-option-internal-line-height: calc(${At.fontSize} + 2px);
623
- --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${At.iconSize});
622
+ --ft-switch-option-internal-line-height: calc(${Tt.fontSize} + 2px);
623
+ --ft-switch-option-internal-content-height: max(var(--ft-switch-option-internal-line-height), ${Tt.iconSize});
624
624
 
625
625
  border-style: solid;
626
- border-color: ${At.borderColor};
627
- border-width: ${Go.borderWidthVertical} ${Go.borderWidthRight} ${Go.borderWidthVertical} ${Go.borderWidthLeft};
628
- border-radius: ${Go.borderRadiusLeft} ${Go.borderRadiusRight} ${Go.borderRadiusRight} ${Go.borderRadiusLeft};
626
+ border-color: ${Tt.borderColor};
627
+ border-width: ${Vo.borderWidthVertical} ${Vo.borderWidthRight} ${Vo.borderWidthVertical} ${Vo.borderWidthLeft};
628
+ border-radius: ${Vo.borderRadiusLeft} ${Vo.borderRadiusRight} ${Vo.borderRadiusRight} ${Vo.borderRadiusLeft};
629
629
  display: flex;
630
630
  align-items: center;
631
631
  justify-content: center;
632
632
  overflow: hidden;
633
- ${e.setVariable(Nt.size,At.iconSize)};
633
+ ${e.setVariable($t.size,Tt.iconSize)};
634
634
  padding: var(--ft-switch-internal-vertical-padding, 6px) var(--ft-switch-internal-horizontal-padding, 8px);
635
- background-color: ${At.backgroundColor};
635
+ background-color: ${Tt.backgroundColor};
636
636
  -webkit-mask-image: radial-gradient(white, black);
637
637
  }
638
638
 
@@ -641,8 +641,8 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
641
641
  }
642
642
 
643
643
  .ft-switch-option--selected .ft-switch-option--content:before {
644
- background-color: ${At.selectedBackgroundColor};
645
- border-radius: ${Go.borderRadiusLeft} ${Go.borderRadiusRight} ${Go.borderRadiusRight} ${Go.borderRadiusLeft};
644
+ background-color: ${Tt.selectedBackgroundColor};
645
+ border-radius: ${Vo.borderRadiusLeft} ${Vo.borderRadiusRight} ${Vo.borderRadiusRight} ${Vo.borderRadiusLeft};
646
646
  position: absolute;
647
647
  inset: 0;
648
648
  content: "";
@@ -651,18 +651,18 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
651
651
  }
652
652
 
653
653
  .ft-switch-option--label {
654
- color: ${At.textColor};
654
+ color: ${Tt.textColor};
655
655
  overflow: hidden;
656
656
  white-space: nowrap;
657
657
  text-overflow: ellipsis;
658
658
  display: block;
659
659
  margin: 0 8px;
660
- ${e.setVariable(dt.fontSize,At.fontSize)};
660
+ ${e.setVariable(dt.fontSize,Tt.fontSize)};
661
661
  ${e.setVariable(dt.lineHeight,"var(--ft-switch-option-internal-content-height)")}
662
662
  }
663
663
 
664
664
  .ft-switch-option--selected .ft-switch-option--label {
665
- color: ${At.selectedTextColor};
665
+ color: ${Tt.selectedTextColor};
666
666
  }
667
667
 
668
668
  .ft-switch-option--label[hidden] {
@@ -670,7 +670,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
670
670
  }
671
671
 
672
672
  .ft-switch-option--ripple {
673
- ${e.setVariable(h.color,At.rippleColor)};
673
+ ${e.setVariable(h.color,Tt.rippleColor)};
674
674
  }
675
675
 
676
676
  ft-icon, ft-ripple, ft-typography {
@@ -683,13 +683,13 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
683
683
 
684
684
  ft-icon {
685
685
  flex-shrink: 0;
686
- color: ${At.iconColor};
686
+ color: ${Tt.iconColor};
687
687
  }
688
688
 
689
689
  .ft-switch-option--selected ft-icon {
690
- color: ${At.selectedTextColor};
690
+ color: ${Tt.selectedTextColor};
691
691
  }
692
- `;var Yo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class qo extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Xo extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Qo extends e.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Xo(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(o.html`
692
+ `;var qo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Xo extends CustomEvent{constructor(t){super("option-change-by-user",{detail:t,bubbles:!0,composed:!0})}}class Qo extends CustomEvent{constructor(t){super("option-change",{detail:t,bubbles:!0,composed:!0})}}class Jo extends e.FtLitElement{constructor(){super(...arguments),this.value="",this.label="",this.tooltipPosition="bottom",this.selected=!1,this.trailingIcon=!1,this.unselectable=!1}focus(){this.input.focus()}update(t){super.update(t),t.has("selected")&&this.dispatchEvent(new Qo(this.selected))}render(){const t={"ft-switch-option":!0,"ft-switch-option--trailing-icon":this.trailingIcon,"ft-switch-option--selected":this.selected};return this.addTooltip(o.html`
693
693
  <label part="label" for="input" class=${r.classMap(t)}
694
694
  @click=${this.onChange}>
695
695
  <div class="ft-switch-option--content">
@@ -711,23 +711,23 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
711
711
  position="${this.tooltipPosition}">
712
712
  ${t}
713
713
  </ft-tooltip>
714
- `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new qo(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?o.html`
714
+ `}onChange(){this.selected=!this.unselectable||!this.selected,this.dispatchEvent(new Xo(this.selected))}getLabel(){return this.label||this.textContent}resolveIcon(){return this.icon?o.html`
715
715
  <ft-icon part="icon" .variant=${this.iconVariant} .value=${this.icon}></ft-icon>
716
- `:o.nothing}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Qo.elementDefinitions={"ft-ripple":Re,"ft-typography":ke,"ft-tooltip":Po,"ft-icon":jo},Qo.styles=[e.safariEllipsisFix,Vo],Yo([i.property()],Qo.prototype,"value",void 0),Yo([i.property()],Qo.prototype,"icon",void 0),Yo([i.property()],Qo.prototype,"iconVariant",void 0),Yo([i.property()],Qo.prototype,"label",void 0),Yo([i.property()],Qo.prototype,"tooltipPosition",void 0),Yo([i.property({type:Boolean,reflect:!0})],Qo.prototype,"selected",void 0),Yo([i.property({type:Boolean})],Qo.prototype,"trailingIcon",void 0),Yo([i.property({type:Boolean})],Qo.prototype,"unselectable",void 0),Yo([i.query(".ft-switch-option--content slot")],Qo.prototype,"slottedContent",void 0),Yo([i.query(".ft-switch-option--input")],Qo.prototype,"input",void 0);var Jo=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ti extends CustomEvent{constructor(t){super("change",{detail:t})}}class ei extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return o.html`
716
+ `:o.nothing}get textContent(){var t,e;return null!==(e=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==e?e:""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}}Jo.elementDefinitions={"ft-ripple":Re,"ft-typography":ke,"ft-tooltip":Ho,"ft-icon":Go},Jo.styles=[e.safariEllipsisFix,Yo],qo([i.property()],Jo.prototype,"value",void 0),qo([i.property()],Jo.prototype,"icon",void 0),qo([i.property()],Jo.prototype,"iconVariant",void 0),qo([i.property()],Jo.prototype,"label",void 0),qo([i.property()],Jo.prototype,"tooltipPosition",void 0),qo([i.property({type:Boolean,reflect:!0})],Jo.prototype,"selected",void 0),qo([i.property({type:Boolean})],Jo.prototype,"trailingIcon",void 0),qo([i.property({type:Boolean})],Jo.prototype,"unselectable",void 0),qo([i.query(".ft-switch-option--content slot")],Jo.prototype,"slottedContent",void 0),qo([i.query(".ft-switch-option--input")],Jo.prototype,"input",void 0);var ti=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ei extends CustomEvent{constructor(t){super("change",{detail:t})}}class oi extends e.FtLitElement{constructor(){super(...arguments),this.dense=!1,this.unselectable=!1,this.options=[]}get value(){var t;return null===(t=this.selectedOption)||void 0===t?void 0:t.value}update(t){super.update(t),t.has("selectedOption")&&this.updateOptions(),t.has("unselectable")&&this.options.forEach((t=>t.unselectable=this.unselectable))}render(){const t={"ft-switch":!0,"ft-switch--dense":this.dense};return o.html`
717
717
  <div @keydown=${this.onKeyDown} tabindex="0" class="${r.classMap(t)}">
718
718
  <slot @slotchange=${this.onSlotchange}
719
719
  @option-change=${this.onOptionChangeByScript}
720
720
  @option-change-by-user=${this.onOptionChangeByUser}
721
721
  ></slot>
722
722
  </div>
723
- `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Qo&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new ti(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}ei.elementDefinitions={},ei.styles=o.css`
723
+ `}onKeyDown(t){let e;"ArrowDown"!=t.key&&"ArrowRight"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)+1:0),"ArrowUp"!=t.key&&"ArrowLeft"!=t.key||(e=this.selectedOption?this.options.indexOf(this.selectedOption)-1:this.options.length-1),null!=e&&(t.preventDefault(),this.options[this.fixIndex(e)].selected=!0)}fixIndex(t){return t<0?this.options.length-1:t>this.options.length-1?0:t}onSlotchange(){var t;this.options=[],null===(t=this.slottedContent)||void 0===t||t.assignedElements().forEach((t=>{t instanceof Jo&&this.registerOption(t)})),this.selectedOption=this.options.find((t=>t.selected))}registerOption(t){t.setAttribute("tabindex","-1"),t.unselectable=this.unselectable,this.options.push(t)}onOptionChangeByScript(t){t.stopPropagation();let e=t.target;this.onOptionChange(e)}onOptionChangeByUser(t){var e;t.stopPropagation(),this.onOptionChange(t.target),this.dispatchEvent(new ei(null===(e=this.selectedOption)||void 0===e?void 0:e.value))}onOptionChange(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}private(t){t.selected?this.selectedOption=t:this.selectedOption=this.options.find((t=>t.selected))}focus(){this.ftSwitchDiv.focus()}updateOptions(){this.options.forEach((t=>{t.selected=t===this.selectedOption}))}}oi.elementDefinitions={},oi.styles=o.css`
724
724
  :host {
725
725
  display: inline-block;
726
726
  }
727
727
 
728
728
  .ft-switch {
729
- border-radius: ${At.borderRadius};
730
- outline-color: ${At.outlineColor};
729
+ border-radius: ${Tt.borderRadius};
730
+ outline-color: ${Tt.outlineColor};
731
731
  }
732
732
 
733
733
  .ft-switch slot {
@@ -736,25 +736,25 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
736
736
  }
737
737
 
738
738
  .ft-switch slot::slotted(ft-switch-option) {
739
- ${e.setVariable(Go.borderRadiusLeft,"0")};
740
- ${e.setVariable(Go.borderRadiusRight,"0")};
741
- ${e.setVariable(Go.borderWidthLeft,"0")};
739
+ ${e.setVariable(Vo.borderRadiusLeft,"0")};
740
+ ${e.setVariable(Vo.borderRadiusRight,"0")};
741
+ ${e.setVariable(Vo.borderWidthLeft,"0")};
742
742
  }
743
743
 
744
744
  .ft-switch slot::slotted(ft-switch-option:first-child) {
745
- ${e.setVariable(Go.borderRadiusLeft,At.borderRadius)};
746
- ${e.setVariable(Go.borderWidthLeft,"1px")};
745
+ ${e.setVariable(Vo.borderRadiusLeft,Tt.borderRadius)};
746
+ ${e.setVariable(Vo.borderWidthLeft,"1px")};
747
747
  }
748
748
 
749
749
  .ft-switch slot::slotted(ft-switch-option:last-child) {
750
- ${e.setVariable(Go.borderRadiusRight,At.borderRadius)};
750
+ ${e.setVariable(Vo.borderRadiusRight,Tt.borderRadius)};
751
751
  }
752
752
 
753
753
  .ft-switch--dense slot::slotted(ft-switch-option) {
754
754
  --ft-switch-internal-vertical-padding: 2px;
755
755
  --ft-switch-internal-horizontal-padding: 4px;
756
756
  }
757
- `,Jo([i.property({type:Boolean})],ei.prototype,"dense",void 0),Jo([i.property({type:Boolean})],ei.prototype,"unselectable",void 0),Jo([i.query(".ft-switch slot")],ei.prototype,"slottedContent",void 0),Jo([i.state()],ei.prototype,"selectedOption",void 0),Jo([i.query(".ft-switch")],ei.prototype,"ftSwitchDiv",void 0),e.customElement("ft-switch")(ei),e.customElement("ft-switch-option")(Qo);const oi=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),ii=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),ri=o.css`
757
+ `,ti([i.property({type:Boolean})],oi.prototype,"dense",void 0),ti([i.property({type:Boolean})],oi.prototype,"unselectable",void 0),ti([i.query(".ft-switch slot")],oi.prototype,"slottedContent",void 0),ti([i.state()],oi.prototype,"selectedOption",void 0),ti([i.query(".ft-switch")],oi.prototype,"ftSwitchDiv",void 0),e.customElement("ft-switch")(oi),e.customElement("ft-switch-option")(Jo);const ii=e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),ri=e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceMedium,"Design system"),ni=o.css`
758
758
  :host {
759
759
  display: block;
760
760
  }
@@ -765,14 +765,14 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
765
765
 
766
766
  ft-icon {
767
767
  transform: rotate(-45deg);
768
- color: ${oi};
768
+ color: ${ii};
769
769
  }
770
770
 
771
771
  .ft-resizer--dragging ft-icon,
772
772
  .ft-resizer:hover ft-icon {
773
- color: ${ii};
773
+ color: ${ri};
774
774
  }
775
- `;var ni=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ai extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class si extends e.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Zo.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return o.html`
775
+ `;var ai=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class si extends CustomEvent{constructor(t,e){super("resize",{detail:{width:t,height:e}})}}class li extends e.FtLitElement{constructor(){super(...arguments),this.initialWidth=0,this.initialHeight=0,this.icon="drag_handle",this.iconVariant=Mo.material,this.cursor="nwse-resize",this.dragging=!1,this.fixedWidth=0,this.fixedHeight=0,this.startX=0,this.startY=0,this.doDragFromMouse=t=>this.doDrag(t.clientX,t.clientY),this.doDragFromTouch=t=>this.doDrag(t.touches[0].clientX,t.touches[0].clientY),this.stopDrag=()=>{this.dragging=!1,document.removeEventListener("mousemove",this.doDragFromMouse,!1),document.removeEventListener("mouseup",this.stopDrag,!1),document.removeEventListener("touchmove",this.doDragFromTouch,!1),document.removeEventListener("touchend",this.stopDrag,!1),document.removeEventListener("touchcancel",this.stopDrag,!1)}}render(){return o.html`
776
776
  <style>
777
777
  .ft-resizer {
778
778
  cursor: ${o.unsafeCSS(this.cursor)}
@@ -783,25 +783,25 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
783
783
  @touchstart=${this.initDragFromTouch}>
784
784
  <ft-icon .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
785
785
  </div>
786
- `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let o=this.fixedWidth+t-this.startX,i=this.fixedHeight+e-this.startY;this.dispatchEvent(new ai(o,i))}}si.elementDefinitions={"ft-icon":jo},si.styles=[e.noTextSelect,ri],ni([i.property({type:Number})],si.prototype,"initialWidth",void 0),ni([i.property({type:Number})],si.prototype,"initialHeight",void 0),ni([i.property()],si.prototype,"icon",void 0),ni([i.property()],si.prototype,"iconVariant",void 0),ni([i.property()],si.prototype,"cursor",void 0),ni([i.state()],si.prototype,"dragging",void 0),ni([i.eventOptions({passive:!0})],si.prototype,"initDragFromMouse",null),ni([i.eventOptions({passive:!0})],si.prototype,"initDragFromTouch",null),e.customElement("ft-resizer")(si);const li={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:e.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color","",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color","",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},ci=o.css`
786
+ `}initDragFromMouse(t){this.initDrag(t.clientX,t.clientY)}initDragFromTouch(t){t.preventDefault(),t.stopPropagation(),this.initDrag(t.touches[0].clientX,t.touches[0].clientY)}initDrag(t,e){this.dragging=!0,this.startX=t,this.startY=e,this.fixedWidth=this.initialWidth,this.fixedHeight=this.initialHeight,this.installDocumentEventListeners()}installDocumentEventListeners(){document.addEventListener("mousemove",this.doDragFromMouse,!1),document.addEventListener("mouseup",this.stopDrag,!1),document.addEventListener("touchmove",this.doDragFromTouch,!1),document.addEventListener("touchend",this.stopDrag,!1),document.addEventListener("touchcancel",this.stopDrag,!1)}doDrag(t,e){let o=this.fixedWidth+t-this.startX,i=this.fixedHeight+e-this.startY;this.dispatchEvent(new si(o,i))}}li.elementDefinitions={"ft-icon":Go},li.styles=[e.noTextSelect,ni],ai([i.property({type:Number})],li.prototype,"initialWidth",void 0),ai([i.property({type:Number})],li.prototype,"initialHeight",void 0),ai([i.property()],li.prototype,"icon",void 0),ai([i.property()],li.prototype,"iconVariant",void 0),ai([i.property()],li.prototype,"cursor",void 0),ai([i.state()],li.prototype,"dragging",void 0),ai([i.eventOptions({passive:!0})],li.prototype,"initDragFromMouse",null),ai([i.eventOptions({passive:!0})],li.prototype,"initDragFromTouch",null),e.customElement("ft-resizer")(li);const ci={fontSize:e.FtCssVariableFactory.create("--ft-input-label-font-size","","SIZE","14px"),raisedFontSize:e.FtCssVariableFactory.create("--ft-input-label-raised-font-size","","SIZE","11px"),raisedZIndex:e.FtCssVariableFactory.create("--ft-input-label-outlined-raised-z-index","","NUMBER","2"),verticalSpacing:e.FtCssVariableFactory.create("--ft-input-label-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-input-label-horizontal-spacing","","SIZE","12px"),labelMaxWidth:e.FtCssVariableFactory.create("--ft-input-label-max-width","","SIZE","100%"),borderColor:e.FtCssVariableFactory.extend("--ft-input-label-border-color","",e.designSystemVariables.colorOutline),textColor:e.FtCssVariableFactory.extend("--ft-input-label-text-color","",e.designSystemVariables.colorOnSurfaceMedium),disabledTextColor:e.FtCssVariableFactory.extend("--ft-input-label-disabled-text-color","",e.designSystemVariables.colorOnSurfaceDisabled),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},di=o.css`
787
787
  .ft-input-label {
788
788
  position: absolute;
789
789
  inset: 0;
790
790
  display: flex;
791
- background-color: ${li.colorSurface};
792
- border-radius: ${li.borderRadiusS} ${li.borderRadiusS} 0 0;
791
+ background-color: ${ci.colorSurface};
792
+ border-radius: ${ci.borderRadiusS} ${ci.borderRadiusS} 0 0;
793
793
  }
794
794
 
795
795
  .ft-input-label--outlined {
796
- border-radius: ${li.borderRadiusS};
796
+ border-radius: ${ci.borderRadiusS};
797
797
  }
798
798
 
799
799
  .ft-input-label {
800
- border-color: ${li.borderColor};
800
+ border-color: ${ci.borderColor};
801
801
  }
802
802
 
803
803
  .ft-input-label.ft-input-label--in-error {
804
- border-color: ${li.colorError}
804
+ border-color: ${ci.colorError}
805
805
  }
806
806
 
807
807
  .ft-input-label:before,
@@ -814,7 +814,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
814
814
  }
815
815
 
816
816
  .ft-input-label:before {
817
- width: calc(${li.horizontalSpacing} - 4px);
817
+ width: calc(${ci.horizontalSpacing} - 4px);
818
818
  flex-shrink: 0;
819
819
  }
820
820
 
@@ -830,20 +830,20 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
830
830
  border-bottom-width: 1px;
831
831
  border-bottom-style: solid;
832
832
  border-color: inherit;
833
- color: ${li.textColor};
833
+ color: ${ci.textColor};
834
834
  transition: font-size 250ms, line-height 250ms, color 250ms;
835
- max-width: calc(${li.labelMaxWidth} - 2 * (${li.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
835
+ max-width: calc(${ci.labelMaxWidth} - 2 * (${ci.horizontalSpacing} - 4px)); /* -2px on spacing for label padding */
836
836
  text-overflow: ellipsis;
837
- ${e.setVariable(X.fontSize,li.fontSize)};
838
- ${e.setVariable(X.lineHeight,li.fontSize)};
837
+ ${e.setVariable(X.fontSize,ci.fontSize)};
838
+ ${e.setVariable(X.lineHeight,ci.fontSize)};
839
839
  }
840
840
 
841
841
  .ft-input-label--in-error .ft-input-label--text {
842
- color: ${li.colorError}
842
+ color: ${ci.colorError}
843
843
  }
844
844
 
845
845
  .ft-input-label--disabled .ft-input-label--text {
846
- color: ${li.disabledTextColor};
846
+ color: ${ci.disabledTextColor};
847
847
  }
848
848
 
849
849
  .ft-input-label--hidden-text {
@@ -860,19 +860,19 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
860
860
  overflow: hidden;
861
861
  white-space: nowrap;
862
862
  text-overflow: ellipsis;
863
- padding: ${li.verticalSpacing} 4px;
864
- margin: calc(${li.verticalSpacing} * -1) 0;
863
+ padding: ${ci.verticalSpacing} 4px;
864
+ margin: calc(${ci.verticalSpacing} * -1) 0;
865
865
  max-width: 100%;
866
866
  box-sizing: border-box;
867
867
  }
868
868
 
869
869
  .ft-input-label--raised .ft-input-label--text {
870
- ${e.setVariable(X.fontSize,li.raisedFontSize)};
871
- ${e.setVariable(X.lineHeight,li.raisedFontSize)};
870
+ ${e.setVariable(X.fontSize,ci.raisedFontSize)};
871
+ ${e.setVariable(X.lineHeight,ci.raisedFontSize)};
872
872
  }
873
873
 
874
874
  .ft-input-label--raised .ft-input-label--floating-text {
875
- top: ${li.verticalSpacing};
875
+ top: ${ci.verticalSpacing};
876
876
  }
877
877
 
878
878
  .ft-input-label--outlined .ft-input-label--text,
@@ -885,27 +885,27 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
885
885
  .ft-input-label--outlined:before {
886
886
  border-left-width: 1px;
887
887
  border-left-style: solid;
888
- border-radius: ${li.borderRadiusS} 0 0 ${li.borderRadiusS};
888
+ border-radius: ${ci.borderRadiusS} 0 0 ${ci.borderRadiusS};
889
889
  }
890
890
 
891
891
  .ft-input-label--outlined:after {
892
892
  border-right-width: 1px;
893
893
  border-right-style: solid;
894
- border-radius: 0 ${li.borderRadiusS} ${li.borderRadiusS} 0;
894
+ border-radius: 0 ${ci.borderRadiusS} ${ci.borderRadiusS} 0;
895
895
  }
896
896
 
897
897
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--floating-text {
898
898
  padding: 2px 4px;
899
- z-index: ${li.raisedZIndex};
900
- background-color: ${li.colorSurface};
901
- border-radius: ${li.borderRadiusS};
899
+ z-index: ${ci.raisedZIndex};
900
+ background-color: ${ci.colorSurface};
901
+ border-radius: ${ci.borderRadiusS};
902
902
  top: calc((var(--ft-typography-caption-line-height) / -2) + 2px);
903
903
  }
904
904
 
905
905
  .ft-input-label--outlined.ft-input-label--raised .ft-input-label--text {
906
906
  border-top: none;
907
907
  }
908
- `;var di=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class pi extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"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};return o.html`
908
+ `;var fi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class pi extends e.FtLitElement{constructor(){super(...arguments),this.text="",this.raised=!1,this.outlined=!1,this.disabled=!1,this.error=!1}render(){const t={"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};return o.html`
909
909
  <div class="${r.classMap(t)}">
910
910
  ${this.text?o.html`
911
911
  <div class="ft-input-label--text ft-typography--caption">
@@ -914,7 +914,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
914
914
  </div>
915
915
  `:null}
916
916
  </div>
917
- `}}pi.elementDefinitions={},pi.styles=[bt,ci],di([i.property({type:String})],pi.prototype,"text",void 0),di([i.property({type:Boolean})],pi.prototype,"raised",void 0),di([i.property({type:Boolean})],pi.prototype,"outlined",void 0),di([i.property({type:Boolean})],pi.prototype,"disabled",void 0),di([i.property({type:Boolean})],pi.prototype,"error",void 0),e.customElement("ft-input-label")(pi);const fi={fontSize:e.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-area-helper-color","",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},hi=o.css`
917
+ `}}pi.elementDefinitions={},pi.styles=[yt,di],fi([i.property({type:String})],pi.prototype,"text",void 0),fi([i.property({type:Boolean})],pi.prototype,"raised",void 0),fi([i.property({type:Boolean})],pi.prototype,"outlined",void 0),fi([i.property({type:Boolean})],pi.prototype,"disabled",void 0),fi([i.property({type:Boolean})],pi.prototype,"error",void 0),e.customElement("ft-input-label")(pi);const hi={fontSize:e.FtCssVariableFactory.create("--ft-text-area-font-size","","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-area-label-size","","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-area-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-area-horizontal-spacing","","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-area-helper-color","",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system")},ui=o.css`
918
918
  *:focus {
919
919
  outline: none;
920
920
  }
@@ -926,10 +926,10 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
926
926
  }
927
927
 
928
928
  ft-input-label {
929
- ${e.setVariable(li.fontSize,fi.fontSize)};
930
- ${e.setVariable(li.raisedFontSize,fi.labelSize)};
931
- ${e.setVariable(li.verticalSpacing,fi.verticalSpacing)};
932
- ${e.setVariable(li.horizontalSpacing,fi.horizontalSpacing)};
929
+ ${e.setVariable(ci.fontSize,hi.fontSize)};
930
+ ${e.setVariable(ci.raisedFontSize,hi.labelSize)};
931
+ ${e.setVariable(ci.verticalSpacing,hi.verticalSpacing)};
932
+ ${e.setVariable(ci.horizontalSpacing,hi.horizontalSpacing)};
933
933
  }
934
934
 
935
935
  .ft-text-area--main-panel {
@@ -960,12 +960,12 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
960
960
  align-self: stretch;
961
961
  resize: none;
962
962
 
963
- ${e.setVariable(P.fontSize,fi.fontSize)};
964
- ${e.setVariable(P.lineHeight,fi.fontSize)};
965
- color: ${fi.colorOnSurface};
963
+ ${e.setVariable(P.fontSize,hi.fontSize)};
964
+ ${e.setVariable(P.lineHeight,hi.fontSize)};
965
+ color: ${hi.colorOnSurface};
966
966
 
967
- padding: 0 ${fi.horizontalSpacing};
968
- margin: calc(${fi.verticalSpacing} + ${fi.labelSize} / 2) 0 ${fi.verticalSpacing} 0;
967
+ padding: 0 ${hi.horizontalSpacing};
968
+ margin: calc(${hi.verticalSpacing} + ${hi.labelSize} / 2) 0 ${hi.verticalSpacing} 0;
969
969
 
970
970
  border: none;
971
971
  background: none;
@@ -974,7 +974,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
974
974
  }
975
975
 
976
976
  .ft-text-area--disabled .ft-text-area--input {
977
- color: ${fi.colorOnSurfaceDisabled};
977
+ color: ${hi.colorOnSurfaceDisabled};
978
978
  }
979
979
 
980
980
  .ft-text-area:not(.ft-text-area--disabled) .ft-text-area--input-panel {
@@ -982,42 +982,42 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
982
982
  }
983
983
 
984
984
  .ft-text-area:not(.ft-text-area--disabled):focus-within ft-input-label {
985
- ${e.setVariable(li.borderColor,fi.colorPrimary)};
986
- ${e.setVariable(li.textColor,fi.colorPrimary)};
985
+ ${e.setVariable(ci.borderColor,hi.colorPrimary)};
986
+ ${e.setVariable(ci.textColor,hi.colorPrimary)};
987
987
  }
988
988
 
989
989
  .ft-text-area--filled .ft-text-area--input-panel {
990
- border-radius: ${fi.borderRadiusS} ${fi.borderRadiusS} 0 0;
990
+ border-radius: ${hi.borderRadiusS} ${hi.borderRadiusS} 0 0;
991
991
  }
992
992
 
993
993
  .ft-text-area--filled:not(.ft-text-area--no-label) .ft-text-area--input {
994
994
  align-self: stretch;
995
- margin-bottom: ${fi.verticalSpacing};
996
- margin-top: calc(${fi.labelSize} + 2 * ${fi.verticalSpacing});
995
+ margin-bottom: ${hi.verticalSpacing};
996
+ margin-top: calc(${hi.labelSize} + 2 * ${hi.verticalSpacing});
997
997
  }
998
998
 
999
999
  .ft-text-area--outlined .ft-text-area--input-panel {
1000
- border-radius: ${fi.borderRadiusS};
1000
+ border-radius: ${hi.borderRadiusS};
1001
1001
  }
1002
1002
 
1003
1003
  .ft-text-area--helper-text {
1004
- padding: 0 12px 0 ${fi.horizontalSpacing};
1005
- color: ${fi.helperColor};
1004
+ padding: 0 12px 0 ${hi.horizontalSpacing};
1005
+ color: ${hi.helperColor};
1006
1006
  }
1007
1007
 
1008
1008
  .ft-text-area--in-error .ft-text-area--input,
1009
1009
  .ft-text-area--in-error .ft-text-area--helper-text {
1010
- color: ${fi.colorError};
1010
+ color: ${hi.colorError};
1011
1011
  }
1012
1012
 
1013
1013
  ft-resizer {
1014
1014
  position: absolute;
1015
1015
  bottom: 0;
1016
1016
  }
1017
- `;var ui=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class gi extends(e.toFtFormComponent(e.FtLitElement,"textbox")){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(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return o.html`
1017
+ `;var gi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class bi extends(e.toFtFormComponent(e.FtLitElement,"textbox")){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(){const t={"ft-text-area":!0,"ft-text-area--filled":!this.outlined,"ft-text-area--outlined":this.outlined,"ft-text-area--disabled":this.disabled,"ft-text-area--has-value":!!this.value,"ft-text-area--no-label":!this.label,"ft-text-area--in-error":this.error};return o.html`
1018
1018
  <style>
1019
1019
  .ft-text-area--main-panel {
1020
- height: calc(4 * ${fi.verticalSpacing} + ${fi.labelSize} + ${fi.fontSize} + ${this.height}px);
1020
+ height: calc(4 * ${hi.verticalSpacing} + ${hi.labelSize} + ${hi.fontSize} + ${this.height}px);
1021
1021
  }
1022
1022
 
1023
1023
  ft-resizer {
@@ -1056,14 +1056,14 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1056
1056
  ${this.helper}
1057
1057
  </ft-typography>`:void 0}
1058
1058
  </div>
1059
- `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}gi.elementDefinitions={"ft-input-label":pi,"ft-resizer":si,"ft-ripple":Re,"ft-typography":ke},gi.styles=[gt,hi],ui([i.property({type:String})],gi.prototype,"label",void 0),ui([i.property({reflect:!0})],gi.prototype,"value",void 0),ui([i.property({type:String})],gi.prototype,"helper",void 0),ui([i.property({type:Boolean})],gi.prototype,"outlined",void 0),ui([i.property({type:Boolean})],gi.prototype,"disabled",void 0),ui([i.property({type:Boolean})],gi.prototype,"error",void 0),ui([i.property({type:Number,reflect:!0})],gi.prototype,"height",void 0),ui([i.query("textarea")],gi.prototype,"textarea",void 0),ui([i.state()],gi.prototype,"focused",void 0),e.customElement("ft-text-area")(gi);class yi extends e.FtLitElement{render(){return o.html`
1059
+ `}setValue(t,e=!1){this.value=t,this.setFormValue(t),e&&(this.dispatchEvent(new CustomEvent("live-change",{detail:this.value})),this.dispatchEvent(new CustomEvent("change",{detail:this.value})))}onKeyDown(t){"Enter"!==t.key&&" "!==t.key||t.stopPropagation()}updateValueFromInputField(){this.dispatchEvent(new CustomEvent("change",{detail:this.value}))}liveUpdateValueFromInputField(){var t;this.value=(null===(t=this.textarea)||void 0===t?void 0:t.value)||"",this.setFormValue(this.value),this.dispatchEvent(new CustomEvent("live-change",{detail:this.value}))}onResize(t){t.detail.height>=50&&(this.height=t.detail.height)}}bi.elementDefinitions={"ft-input-label":pi,"ft-resizer":li,"ft-ripple":Re,"ft-typography":ke},bi.styles=[gt,ui],gi([i.property({type:String})],bi.prototype,"label",void 0),gi([i.property({reflect:!0})],bi.prototype,"value",void 0),gi([i.property({type:String})],bi.prototype,"helper",void 0),gi([i.property({type:Boolean})],bi.prototype,"outlined",void 0),gi([i.property({type:Boolean})],bi.prototype,"disabled",void 0),gi([i.property({type:Boolean})],bi.prototype,"error",void 0),gi([i.property({type:Number,reflect:!0})],bi.prototype,"height",void 0),gi([i.query("textarea")],bi.prototype,"textarea",void 0),gi([i.state()],bi.prototype,"focused",void 0),e.customElement("ft-text-area")(bi);class yi extends e.FtLitElement{render(){return o.html`
1060
1060
  <div class="ft-loader">
1061
1061
  <div></div>
1062
1062
  <div></div>
1063
1063
  <div></div>
1064
1064
  <div></div>
1065
1065
  </div>
1066
- `}}yi.styles=$t,e.customElement("ft-loader")(yi);var bi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class mi extends(e.toFtFormComponent(e.FtLitElement,"button")){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",(t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}))}render(){return this.addTooltipIfNeeded(o.html`
1066
+ `}}yi.styles=Nt,e.customElement("ft-loader")(yi);var mi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class vi extends(e.toFtFormComponent(e.FtLitElement,"button")){constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",(t=>{var e;this.isDisabled()?(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation()):"submit"==this.type&&(null===(e=this.form)||void 0===e||e.requestSubmit())}))}render(){return this.addTooltipIfNeeded(o.html`
1067
1067
  <button part="button"
1068
1068
  class="${r.classMap(this.buttonClasses)}"
1069
1069
  aria-label="${this.getLabel()}"
@@ -1086,7 +1086,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1086
1086
  </ft-tooltip>
1087
1087
  `:t}resolveIcon(){return this.loading?o.html`
1088
1088
  <ft-loader part="loader icon"></ft-loader> `:this.icon?o.html`
1089
- <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:o.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}mi.elementDefinitions={"ft-ripple":Re,"ft-tooltip":Po,"ft-typography":ke,"ft-icon":jo,"ft-loader":yi},bi([i.property({type:String,reflect:!0})],mi.prototype,"role",void 0),bi([i.property()],mi.prototype,"type",void 0),bi([i.property({type:Boolean})],mi.prototype,"disabled",void 0),bi([i.property()],mi.prototype,"label",void 0),bi([i.property()],mi.prototype,"icon",void 0),bi([i.property()],mi.prototype,"iconVariant",void 0),bi([i.property({type:Boolean})],mi.prototype,"trailingIcon",void 0),bi([i.property({type:Boolean})],mi.prototype,"loading",void 0),bi([i.property()],mi.prototype,"tooltipPosition",void 0),bi([i.property({type:Boolean})],mi.prototype,"hideTooltip",void 0),bi([i.property({type:Boolean})],mi.prototype,"forceTooltip",void 0),bi([i.query(".ft-button")],mi.prototype,"button",void 0),bi([i.query(".ft-button--label slot")],mi.prototype,"slottedContent",void 0);var vi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class xi extends mi{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}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}}get typographyVariant(){return"button"}}xi.styles=[e.safariEllipsisFix,Dt],vi([i.property({type:Boolean})],xi.prototype,"primary",void 0),vi([i.property({type:Boolean})],xi.prototype,"outlined",void 0),vi([i.property({type:Boolean})],xi.prototype,"dense",void 0),vi([i.property({type:Boolean})],xi.prototype,"round",void 0);const wi=[o.css`
1089
+ <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon> `:o.nothing}focus(){var t;null===(t=this.button)||void 0===t||t.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(t){return t instanceof HTMLSlotElement?t.assignedNodes().map((t=>this.unslotText(t))).join(""):(null==t?void 0:t.textContent)||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}}vi.elementDefinitions={"ft-ripple":Re,"ft-tooltip":Ho,"ft-typography":ke,"ft-icon":Go,"ft-loader":yi},mi([i.property({type:String,reflect:!0})],vi.prototype,"role",void 0),mi([i.property()],vi.prototype,"type",void 0),mi([i.property({type:Boolean})],vi.prototype,"disabled",void 0),mi([i.property()],vi.prototype,"label",void 0),mi([i.property()],vi.prototype,"icon",void 0),mi([i.property()],vi.prototype,"iconVariant",void 0),mi([i.property({type:Boolean})],vi.prototype,"trailingIcon",void 0),mi([i.property({type:Boolean})],vi.prototype,"loading",void 0),mi([i.property()],vi.prototype,"tooltipPosition",void 0),mi([i.property({type:Boolean})],vi.prototype,"hideTooltip",void 0),mi([i.property({type:Boolean})],vi.prototype,"forceTooltip",void 0),mi([i.query(".ft-button")],vi.prototype,"button",void 0),mi([i.query(".ft-button--label slot")],vi.prototype,"slottedContent",void 0);var xi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class wi extends vi{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}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}}get typographyVariant(){return"button"}}wi.styles=[e.safariEllipsisFix,Dt],xi([i.property({type:Boolean})],wi.prototype,"primary",void 0),xi([i.property({type:Boolean})],wi.prototype,"outlined",void 0),xi([i.property({type:Boolean})],wi.prototype,"dense",void 0),xi([i.property({type:Boolean})],wi.prototype,"round",void 0);const Oi=[o.css`
1090
1090
  :host {
1091
1091
  display: inline-block;
1092
1092
  max-width: 100%;
@@ -1168,10 +1168,10 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1168
1168
  ${e.setVariable(St.color,I.primaryIconColor)};
1169
1169
 
1170
1170
  ${e.setVariable(h.color,I.primaryStateLayerColor)};
1171
- ${e.setVariable(h.opacityContentOnSurfaceHover,I.primaryStateLayerOpacityHover)};
1172
- ${e.setVariable(h.opacityContentOnSurfaceFocused,I.primaryStateLayerOpacityFocus)};
1173
- ${e.setVariable(h.opacityContentOnSurfaceSelected,I.primaryStateLayerOpacityActive)};
1174
- ${e.setVariable(h.opacityContentOnSurfacePressed,I.primaryStateLayerOpacityActive)};
1171
+ ${e.setVariable(h.opacityContentOnSurfaceHover,I.primaryHoverStateLayerOpacity)};
1172
+ ${e.setVariable(h.opacityContentOnSurfaceFocused,I.primaryFocusStateLayerOpacity)};
1173
+ ${e.setVariable(h.opacityContentOnSurfaceSelected,I.primaryActiveStateLayerOpacity)};
1174
+ ${e.setVariable(h.opacityContentOnSurfacePressed,I.primaryActiveStateLayerOpacity)};
1175
1175
 
1176
1176
  background-color: ${I.primaryBackgroundColor};
1177
1177
  color: ${I.primaryColor};
@@ -1179,7 +1179,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1179
1179
  }
1180
1180
 
1181
1181
  .ft-button--primary[disabled] {
1182
- opacity: ${I.primaryComponentOpacityDisabled};
1182
+ opacity: ${I.primaryDisabledComponentOpacity};
1183
1183
  }
1184
1184
 
1185
1185
  .ft-button--primary ft-icon {
@@ -1192,10 +1192,10 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1192
1192
  ${e.setVariable(St.color,I.secondaryIconColor)};
1193
1193
 
1194
1194
  ${e.setVariable(h.color,I.secondaryStateLayerColor)};
1195
- ${e.setVariable(h.opacityContentOnSurfaceHover,I.secondaryStateLayerOpacityHover)};
1196
- ${e.setVariable(h.opacityContentOnSurfaceFocused,I.secondaryStateLayerOpacityFocus)};
1197
- ${e.setVariable(h.opacityContentOnSurfaceSelected,I.secondaryStateLayerOpacityActive)};
1198
- ${e.setVariable(h.opacityContentOnSurfacePressed,I.secondaryStateLayerOpacityActive)};
1195
+ ${e.setVariable(h.opacityContentOnSurfaceHover,I.secondaryHoverStateLayerOpacity)};
1196
+ ${e.setVariable(h.opacityContentOnSurfaceFocused,I.secondaryFocusStateLayerOpacity)};
1197
+ ${e.setVariable(h.opacityContentOnSurfaceSelected,I.secondaryActiveStateLayerOpacity)};
1198
+ ${e.setVariable(h.opacityContentOnSurfacePressed,I.secondaryActiveStateLayerOpacity)};
1199
1199
 
1200
1200
  background-color: ${I.secondaryBackgroundColor};
1201
1201
  color: ${I.secondaryColor};
@@ -1204,7 +1204,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1204
1204
  }
1205
1205
 
1206
1206
  .ft-button--secondary[disabled] {
1207
- opacity: ${I.secondaryComponentOpacityDisabled};
1207
+ opacity: ${I.secondaryDisabledComponentOpacity};
1208
1208
  }
1209
1209
 
1210
1210
  .ft-button--secondary ft-icon {
@@ -1217,10 +1217,10 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1217
1217
  ${e.setVariable(St.color,I.tertiaryIconColor)};
1218
1218
 
1219
1219
  ${e.setVariable(h.color,I.tertiaryStateLayerColor)};
1220
- ${e.setVariable(h.opacityContentOnSurfaceHover,I.tertiaryStateLayerOpacityHover)};
1221
- ${e.setVariable(h.opacityContentOnSurfaceFocused,I.tertiaryStateLayerOpacityFocus)};
1222
- ${e.setVariable(h.opacityContentOnSurfaceSelected,I.tertiaryStateLayerOpacityActive)};
1223
- ${e.setVariable(h.opacityContentOnSurfacePressed,I.tertiaryStateLayerOpacityActive)};
1220
+ ${e.setVariable(h.opacityContentOnSurfaceHover,I.tertiaryHoverStateLayerOpacity)};
1221
+ ${e.setVariable(h.opacityContentOnSurfaceFocused,I.tertiaryFocusStateLayerOpacity)};
1222
+ ${e.setVariable(h.opacityContentOnSurfaceSelected,I.tertiaryActiveStateLayerOpacity)};
1223
+ ${e.setVariable(h.opacityContentOnSurfacePressed,I.tertiaryActiveStateLayerOpacity)};
1224
1224
 
1225
1225
  background-color: ${I.tertiaryBackgroundColor};
1226
1226
  color: ${I.tertiaryColor};
@@ -1228,7 +1228,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1228
1228
  }
1229
1229
 
1230
1230
  .ft-button--tertiary[disabled] {
1231
- opacity: ${I.tertiaryComponentOpacityDisabled};
1231
+ opacity: ${I.tertiaryDisabledComponentOpacity};
1232
1232
  }
1233
1233
 
1234
1234
  .ft-button--tertiary ft-icon {
@@ -1241,10 +1241,10 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1241
1241
  ${e.setVariable(St.color,I.neutralIconColor)};
1242
1242
 
1243
1243
  ${e.setVariable(h.backgroundColor,I.neutralStateLayerColor)};
1244
- ${e.setVariable(h.opacityContentOnSurfaceHover,I.neutralStateLayerOpacityHover)};
1245
- ${e.setVariable(h.opacityContentOnSurfaceFocused,I.neutralStateLayerOpacityFocus)};
1246
- ${e.setVariable(h.opacityContentOnSurfaceSelected,I.neutralStateLayerOpacityActive)};
1247
- ${e.setVariable(h.opacityContentOnSurfacePressed,I.neutralStateLayerOpacityActive)};
1244
+ ${e.setVariable(h.opacityContentOnSurfaceHover,I.neutralHoverStateLayerOpacity)};
1245
+ ${e.setVariable(h.opacityContentOnSurfaceFocused,I.neutralFocusStateLayerOpacity)};
1246
+ ${e.setVariable(h.opacityContentOnSurfaceSelected,I.neutralActiveStateLayerOpacity)};
1247
+ ${e.setVariable(h.opacityContentOnSurfacePressed,I.neutralActiveStateLayerOpacity)};
1248
1248
 
1249
1249
  background-color: ${I.neutralBackgroundColor};
1250
1250
  color: ${I.neutralColor};
@@ -1252,7 +1252,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1252
1252
  }
1253
1253
 
1254
1254
  .ft-button--neutral[disabled] {
1255
- opacity: ${I.neutralComponentOpacityDisabled};
1255
+ opacity: ${I.neutralDisabledComponentOpacity};
1256
1256
  }
1257
1257
 
1258
1258
  .ft-button--neutral ft-icon {
@@ -1262,7 +1262,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1262
1262
  /** Large styles **/
1263
1263
 
1264
1264
  .ft-button--large {
1265
- ${e.setVariable(Nt.size,I.largeIconSize)};
1265
+ ${e.setVariable($t.size,I.largeIconSize)};
1266
1266
  ${e.setVariable(St.size,I.largeIconSize)};
1267
1267
 
1268
1268
  height: ${I.largeHeight};
@@ -1285,7 +1285,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1285
1285
  /** Small styles **/
1286
1286
 
1287
1287
  .ft-button--small {
1288
- ${e.setVariable(Nt.size,I.smallIconSize)};
1288
+ ${e.setVariable($t.size,I.smallIconSize)};
1289
1289
  ${e.setVariable(St.size,I.smallIconSize)};
1290
1290
 
1291
1291
  height: ${I.smallHeight};
@@ -1304,15 +1304,15 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1304
1304
  width: ${I.smallIconOnlyWidth};
1305
1305
  padding: unset;
1306
1306
  }
1307
- `,e.noTextSelect];var Oi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Si extends mi{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Ie.caption1medium:Ie.body2medium}}Si.styles=[e.safariEllipsisFix,wi],Oi([i.property({type:Boolean})],Si.prototype,"primary",void 0),Oi([i.property({type:Boolean})],Si.prototype,"secondary",void 0),Oi([i.property({type:Boolean})],Si.prototype,"tertiary",void 0),Oi([i.property({type:Boolean})],Si.prototype,"neutral",void 0),Oi([i.property({type:Boolean})],Si.prototype,"small",void 0),e.customElement("ft-button")(xi),e.customElement("ftds-button")(Si);const $i=o.css`
1308
- `,Ni=o.css`
1309
- `,Ii=e.FtReduxStore.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1}});class Ci{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Ii.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?Ci.build(t):null!==(e=Ci.API)&&void 0!==e?e:Ci.API=Ci.build()}static await(t){return new Promise((e=>{let o=Ci.get(t);if(o)e(o);else{const i=Ii.subscribe((()=>{o=Ci.get(t),o&&(i(),e(o))}))}}))}}class ki{constructor(t=!0,o){var i;this.overrideApi=o;let r=this.constructor;r.commonCache=null!==(i=r.commonCache)&&void 0!==i?i:new e.CacheRegistry,this.cache=t?r.commonCache:new e.CacheRegistry}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Ci.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:Ci.await()}clearCache(){this.cache.clearAll()}}var Ei;const Ri=Symbol("clearAfterUnitTest");class Ui extends ki{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ei]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=Ii.getState().uiLocale,Ii.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ii.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var i;if(t=t.toLowerCase(),Object.keys(o).length>0){const r={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...o};e.deepEqual(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...i){var r,n,a;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new e.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},s).resolve(o,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>e.delay(0).then((()=>t())).catch((()=>null)))))}}Ei=Ri,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Ui{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Ui{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const Li=window.FluidTopicsI18nService,Wi=window.FluidTopicsCustomI18nService;var Ti=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Di extends e.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>Ci.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return o.html`
1307
+ `,e.noTextSelect];var Si=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ni extends vi{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.neutral=!1,this.small=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary&&!this.neutral,"ft-button--neutral":this.neutral,"ft-button--large":!this.small,"ft-button--small":this.small,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon}}get typographyVariant(){return this.small?Ie.caption1medium:Ie.body2medium}}Ni.styles=[e.safariEllipsisFix,Oi],Si([i.property({type:Boolean})],Ni.prototype,"primary",void 0),Si([i.property({type:Boolean})],Ni.prototype,"secondary",void 0),Si([i.property({type:Boolean})],Ni.prototype,"tertiary",void 0),Si([i.property({type:Boolean})],Ni.prototype,"neutral",void 0),Si([i.property({type:Boolean})],Ni.prototype,"small",void 0),e.customElement("ft-button")(wi),e.customElement("ftds-button")(Ni);const $i=o.css`
1308
+ `,Ii=o.css`
1309
+ `,Ci=e.FtReduxStore.get({name:"ft-app-info",reducers:{},initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],metadataConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1}});class ki{static build(t){const{baseUrl:e,apiIntegrationIdentifier:o}=Ci.getState(),i=null!=t?t:o;if(e&&i&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(e,i,!0)}static get(t){var e;return null!=t?ki.build(t):null!==(e=ki.API)&&void 0!==e?e:ki.API=ki.build()}static await(t){return new Promise((e=>{let o=ki.get(t);if(o)e(o);else{const i=Ci.subscribe((()=>{o=ki.get(t),o&&(i(),e(o))}))}}))}}class Ei{constructor(t=!0,o){var i;this.overrideApi=o;let r=this.constructor;r.commonCache=null!==(i=r.commonCache)&&void 0!==i?i:new e.CacheRegistry,this.cache=t?r.commonCache:new e.CacheRegistry}get api(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:ki.get()}get awaitApi(){var t;return null!==(t=this.overrideApi)&&void 0!==t?t:ki.await()}clearCache(){this.cache.clearAll()}}var Ri;const Ui=Symbol("clearAfterUnitTest");class Li extends Ei{constructor(t){super(),this.messageContextProvider=t,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Ri]=()=>{this.defaultMessages={},this.cache=new e.CacheRegistry,this.listeners={}},this.currentUiLocale=Ci.getState().uiLocale,Ci.subscribe((()=>this.clearWhenUiLocaleChanges()))}clearWhenUiLocaleChanges(){const{uiLocale:t}=Ci.getState();this.currentUiLocale!==t&&(this.currentUiLocale=t,this.cache.clearAll(),this.notifyAll())}addContext(t){const e=t.name.toLowerCase();this.cache.setFinal(e,t),this.notify(e)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(t,o){var i;if(t=t.toLowerCase(),Object.keys(o).length>0){const r={...null!==(i=this.defaultMessages[t])&&void 0!==i?i:{},...o};e.deepEqual(this.defaultMessages[t],r)||(this.defaultMessages[t]=r,await this.notify(t))}await this.fetchContext(t)}resolveMessage(t,o,...i){var r,n,a;t=t.toLowerCase(),this.fetchContext(t);const s=null!==(n=null===(r=this.cache.getNow(t))||void 0===r?void 0:r.messages)&&void 0!==n?n:{};return new e.ParametrizedLabelResolver(null!==(a=this.defaultMessages[t])&&void 0!==a?a:{},s).resolve(o,...i)}async fetchContext(t){if(!this.cache.has(t))try{await this.cache.get(t,(()=>this.messageContextProvider(this.currentUiLocale,t))),await this.notify(t)}catch(t){console.error(t)}}subscribe(t,e){var o;return t=t.toLowerCase(),this.listeners[t]=null!==(o=this.listeners[t])&&void 0!==o?o:new Set,this.listeners[t].add(e),()=>{var o;return null===(o=this.listeners[t])||void 0===o?void 0:o.delete(e)}}async notifyAll(){await Promise.all(Object.keys(this.listeners).map((t=>this.notify(t))))}async notify(t){null!=this.listeners[t]&&await Promise.all([...this.listeners[t].values()].map((t=>e.delay(0).then((()=>t())).catch((()=>null)))))}}Ri=Ui,null==window.FluidTopicsI18nService&&(window.FluidTopicsI18nService=new class extends Li{constructor(){super((async(t,e)=>(await this.awaitApi).getFluidTopicsMessageContext(t,e)))}}),null==window.FluidTopicsCustomI18nService&&(window.FluidTopicsCustomI18nService=new class extends Li{constructor(){super((async(t,e)=>(await this.awaitApi).getCustomMessageContext(t,e)))}});const Wi=window.FluidTopicsI18nService,zi=window.FluidTopicsCustomI18nService;var Di=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Ti extends e.FtLitElement{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.messageContexts=[],this.apiProvider=()=>ki.get(),this.cache=new e.CacheRegistry,this.cleanSessionDebouncer=new e.Debouncer}render(){return o.html`
1310
1310
  <slot></slot>
1311
- `}update(t){super.update(t),t.has("baseUrl")&&(Ii.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Ii.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ii.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Ii.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Ii.actions.noCustom(this.noCustom),t.has("editorMode")&&Ii.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Ii.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Ii.actions.session(this.session),t.has("availableUiLocales")&&Ii.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Li.addContext(t))),t.has("openExternalDocumentInNewTab")&&Ii.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Di.elementDefinitions={},Di.styles=Ni,Ti([i.property()],Di.prototype,"baseUrl",void 0),Ti([i.property()],Di.prototype,"apiIntegrationIdentifier",void 0),Ti([i.property()],Di.prototype,"uiLocale",void 0),Ti([e.jsonProperty(null)],Di.prototype,"availableUiLocales",void 0),Ti([e.jsonProperty(null)],Di.prototype,"metadataConfiguration",void 0),Ti([i.property({type:Boolean})],Di.prototype,"editorMode",void 0),Ti([i.property({type:Boolean})],Di.prototype,"noCustom",void 0),Ti([i.property({type:Boolean})],Di.prototype,"openExternalDocumentInNewTab",void 0),Ti([i.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Di.prototype,"noCustomComponent",void 0),Ti([i.property({type:Boolean})],Di.prototype,"withManualResources",void 0),Ti([e.jsonProperty([])],Di.prototype,"messageContexts",void 0),Ti([e.jsonProperty(void 0)],Di.prototype,"session",void 0),Ti([i.property({type:Object})],Di.prototype,"apiProvider",void 0);class Ai extends ki{async listMySearches(){let t=Ii.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class _i extends ki{async listMyBookmarks(){let t=Ii.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const zi=e.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Bi=new class{constructor(){this.currentSession=Ii.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _i,this.savedSearchesService=new Ai,Ii.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=Ii.getState();e.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),zi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),zi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();zi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;zi.actions.bookmarks(e)}}};e.customElement("ft-app-context")(Di);var Fi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ki=Symbol("i18nAttributes"),Zi=Symbol("i18nProperties"),Mi=Symbol("i18nUnsubs");function Pi(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?Wi:Li}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e,o;null===(e=this[Ki])||void 0===e||e.forEach(((e,o)=>{var i;const r=this.getI18nAttributeValue(o);(null===(i=null==r?void 0:r.context)||void 0===i?void 0:i.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,r,e)})),null===(o=this[Zi])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[Ki])||void 0===e||e.forEach(((e,o)=>{const i=this.getI18nAttributeValue(o);(null==i?void 0:i.context)&&i.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(i.context),this.updateI18nAttributeMessage(o,i,e))})),null===(o=this[Zi])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,i;super.connectedCallback(),new Set([...null!==(e=null===(t=this[Zi])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(i=null===(o=this[Ki])||void 0===o?void 0:o.keys())&&void 0!==i?i:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Mi].has(t)||this[Mi].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Mi].forEach((t=>t())),this[Mi].clear()}}return e=Mi,Fi([i.property({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class Hi extends(Pi(e.FtLitElement)){}class ji extends(Pi(e.FtLitElementRedux)){}var Gi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Vi extends ji{constructor(){super(),this.editorMode=!1,this.addStore(Ii)}render(){return this.key&&this.context?o.html`
1311
+ `}update(t){super.update(t),t.has("baseUrl")&&(Ci.actions.baseUrl(this.baseUrl),window.fluidTopicsBaseUrl=this.baseUrl),t.has("apiIntegrationIdentifier")&&Ci.actions.apiIntegrationIdentifier(this.apiIntegrationIdentifier),t.has("uiLocale")&&Ci.actions.uiLocale(this.uiLocale),t.has("metadataConfiguration")&&Ci.actions.metadataConfiguration(this.metadataConfiguration),t.has("noCustom")&&Ci.actions.noCustom(this.noCustom),t.has("editorMode")&&Ci.actions.editorMode(this.editorMode),t.has("noCustomComponent")&&Ci.actions.noCustomComponent(this.noCustomComponent),t.has("session")&&Ci.actions.session(this.session),t.has("availableUiLocales")&&Ci.actions.availableUiLocales(Array.isArray(this.availableUiLocales)?this.availableUiLocales:[]),t.has("messageContexts")&&null!=this.messageContexts&&this.messageContexts.forEach((t=>Wi.addContext(t))),t.has("openExternalDocumentInNewTab")&&Ci.actions.openExternalDocumentInNewTab(this.openExternalDocumentInNewTab),setTimeout((()=>this.updateIfNeeded()))}async updateIfNeeded(){!this.withManualResources&&this.apiProvider()&&(null==this.session&&this.updateSession(),null==this.availableUiLocales&&this.updateUiLocales(),null==this.metadataConfiguration&&this.updateMetadataConfiguration())}async updateSession(){this.session=await this.cache.get("session",(async()=>{const t=await this.apiProvider().getCurrentSession();return t.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run((()=>{this.cache.clear("session"),this.session=void 0}),t.idleTimeoutInMillis),t}))}async updateUiLocales(){this.availableUiLocales=await this.cache.get("availableUiLocales",(()=>this.apiProvider().getAvailableUiLocales()))}async updateMetadataConfiguration(){this.metadataConfiguration=await this.cache.get("metadataConfiguration",(()=>this.apiProvider().getMetadataConfiguration()))}}Ti.elementDefinitions={},Ti.styles=Ii,Di([i.property()],Ti.prototype,"baseUrl",void 0),Di([i.property()],Ti.prototype,"apiIntegrationIdentifier",void 0),Di([i.property()],Ti.prototype,"uiLocale",void 0),Di([e.jsonProperty(null)],Ti.prototype,"availableUiLocales",void 0),Di([e.jsonProperty(null)],Ti.prototype,"metadataConfiguration",void 0),Di([i.property({type:Boolean})],Ti.prototype,"editorMode",void 0),Di([i.property({type:Boolean})],Ti.prototype,"noCustom",void 0),Di([i.property({type:Boolean})],Ti.prototype,"openExternalDocumentInNewTab",void 0),Di([i.property({converter:{fromAttribute:t=>"false"!==t&&("true"===t||null!=t&&t)}})],Ti.prototype,"noCustomComponent",void 0),Di([i.property({type:Boolean})],Ti.prototype,"withManualResources",void 0),Di([e.jsonProperty([])],Ti.prototype,"messageContexts",void 0),Di([e.jsonProperty(void 0)],Ti.prototype,"session",void 0),Di([i.property({type:Object})],Ti.prototype,"apiProvider",void 0);class Ai extends Ei{async listMySearches(){let t=Ci.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-searches",(async()=>(await this.awaitApi).listMySearches(t.profile.userId)),3e5):[]}}class _i extends Ei{async listMyBookmarks(){let t=Ci.getState().session;return(null==t?void 0:t.sessionAuthenticated)?this.cache.get("my-bookmarks",(async()=>(await this.awaitApi).listMyBookmarks(t.profile.userId)),3e5):[]}}const Zi=e.FtReduxStore.get({name:"ft-user-assets",initialState:{savedSearches:void 0,bookmarks:void 0}});const Fi=new class{constructor(){this.currentSession=Ci.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new _i,this.savedSearchesService=new Ai,Ci.subscribe((()=>this.reloadWhenUserSessionChanges()))}reloadWhenUserSessionChanges(){var t;const{session:o}=Ci.getState();e.deepEqual(null===(t=this.currentSession)||void 0===t?void 0:t.profile,null==o?void 0:o.profile)||(this.currentSession=o,this.clearMySearches(),this.reloadBookmarks())}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),Zi.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),Zi.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();const t=await this.savedSearchesService.listMySearches();Zi.actions.savedSearches(t)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var t;if(this.bookmarksAreUsed){const e=(null===(t=this.currentSession)||void 0===t?void 0:t.sessionAuthenticated)?await this.bookmarksService.listMyBookmarks():void 0;Zi.actions.bookmarks(e)}}};e.customElement("ft-app-context")(Ti);var Bi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};const Ki=Symbol("i18nAttributes"),Mi=Symbol("i18nProperties"),Pi=Symbol("i18nUnsubs");function Hi(t){var e;class o extends t{constructor(){super(...arguments),this.useCustomMessageContexts=!1,this[e]=new Map}get i18nService(){return this.useCustomMessageContexts?zi:Wi}i18n(t,e,...o){var i;if("string"==typeof t)return this.i18nService.resolveMessage(t,e,...o);const r=null!==(i=t.args)&&void 0!==i?i:t.argsProvider?t.argsProvider(this):[];return this.i18nService.resolveMessage(t.context,t.key,...r)}onI18nUpdate(t){var e,o;null===(e=this[Ki])||void 0===e||e.forEach(((e,o)=>{var i;const r=this.getI18nAttributeValue(o);(null===(i=null==r?void 0:r.context)||void 0===i?void 0:i.toLowerCase())===t.toLowerCase()&&this.updateI18nAttributeMessage(o,r,e)})),null===(o=this[Mi])||void 0===o||o.forEach(((e,o)=>{e.context.toLowerCase()===t.toLowerCase()&&(this[o]=this.i18n(e))})),setTimeout((()=>this.requestUpdate()),0)}updateI18nAttributeMessage(t,e,o){this[t]={...e,message:this.i18n({context:e.context,key:e.key,...o})}}update(t){var e,o;super.update(t),null===(e=this[Ki])||void 0===e||e.forEach(((e,o)=>{const i=this.getI18nAttributeValue(o);(null==i?void 0:i.context)&&i.key&&(t.has(o)||null!=e.argsProvider)&&(t.has(o)&&this.addI18nContext(i.context),this.updateI18nAttributeMessage(o,i,e))})),null===(o=this[Mi])||void 0===o||o.forEach(((t,e)=>{null!=t.argsProvider&&(this[e]=this.i18n(t))}))}getI18nAttributeValue(t){return this[t]}connectedCallback(){var t,e,o,i;super.connectedCallback(),new Set([...null!==(e=null===(t=this[Mi])||void 0===t?void 0:t.values())&&void 0!==e?e:[],...[...null!==(i=null===(o=this[Ki])||void 0===o?void 0:o.keys())&&void 0!==i?i:[]].map((t=>this.getI18nAttributeValue(t)))].map((t=>null==t?void 0:t.context))).forEach((t=>t&&this.addI18nMessages(t)))}addI18nMessages(t,e){t=t.toLowerCase(),this[Pi].has(t)||this[Pi].set(t,this.i18nService.subscribe(t,(()=>this.onI18nUpdate(t)))),this.i18nService.prepareContext(t,null!=e?e:{})}addI18nContext(t,e){this.addI18nMessages("string"==typeof t?t:t.name,e)}disconnectedCallback(){super.disconnectedCallback(),this[Pi].forEach((t=>t())),this[Pi].clear()}}return e=Pi,Bi([i.property({type:Boolean})],o.prototype,"useCustomMessageContexts",void 0),o}class ji extends(Hi(e.FtLitElement)){}class Gi extends(Hi(e.FtLitElementRedux)){}var Vi=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Yi extends Gi{constructor(){super(),this.editorMode=!1,this.addStore(Ci)}render(){return this.key&&this.context?o.html`
1312
1312
  <span class="ft-i18n">
1313
1313
  ${this.i18n(this.context,this.key,...Array.isArray(this.args)?this.args:[])}
1314
1314
  </span>
1315
- `:this.editorMode?"Select a context and a label key.":o.nothing}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Vi.elementDefinitions={},Vi.styles=$i,Gi([e.redux()],Vi.prototype,"editorMode",void 0),Gi([i.property()],Vi.prototype,"context",void 0),Gi([i.property()],Vi.prototype,"key",void 0),Gi([e.jsonProperty([])],Vi.prototype,"args",void 0),Gi([i.property()],Vi.prototype,"defaultMessage",void 0);class Yi{static build(t){return new Yi(t)}static fromGwt(t){return new Yi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Li.resolveMessage(this.name,e,...t)})}}const qi=(t,e)=>(o,i)=>{var r,n;o.constructor.createProperty(i,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:i};o[Zi]=null!==(n=o[Zi])&&void 0!==n?n:new Map,o[Zi].set(i,a)};e.customElement("ft-i18n")(Vi);const Xi=Yi.build("integratedFeedbackComponent"),Qi={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"},Ji={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-helper-color","",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color","",e.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:e.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),suggestSize:e.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},tr=o.css`
1315
+ `:this.editorMode?"Select a context and a label key.":o.nothing}update(t){var e;super.update(t),["context","key","defaultMessage"].some((e=>t.has(e)))&&this.context&&this.key&&this.addI18nMessages(this.context,{[this.key]:null!==(e=this.defaultMessage)&&void 0!==e?e:""})}}Yi.elementDefinitions={},Yi.styles=$i,Vi([e.redux()],Yi.prototype,"editorMode",void 0),Vi([i.property()],Yi.prototype,"context",void 0),Vi([i.property()],Yi.prototype,"key",void 0),Vi([e.jsonProperty([])],Yi.prototype,"args",void 0),Vi([i.property()],Yi.prototype,"defaultMessage",void 0);class qi{static build(t){return new qi(t)}static fromGwt(t){return new qi(t)}constructor(t){this.name=t,this.properties=new Proxy({},{get:(t,e)=>{const o=e;return t=>({context:this.name,key:o,args:"function"==typeof t?void 0:t,argsProvider:"function"==typeof t?t:void 0})}}),this.messages=new Proxy({},{get:(t,e)=>(...t)=>Wi.resolveMessage(this.name,e,...t)})}}const Xi=(t,e)=>(o,i)=>{var r,n;o.constructor.createProperty(i,null!=e?e:{attribute:!1,type:String});const a={...t,key:null!==(r=t.key)&&void 0!==r?r:i};o[Mi]=null!==(n=o[Mi])&&void 0!==n?n:new Map,o[Mi].set(i,a)};e.customElement("ft-i18n")(Yi);const Qi=qi.build("integratedFeedbackComponent"),Ji={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"},tr={fontSize:e.FtCssVariableFactory.create("--ft-text-field-font-size","","SIZE","14px"),labelSize:e.FtCssVariableFactory.create("--ft-text-field-label-size","","SIZE","11px"),verticalSpacing:e.FtCssVariableFactory.create("--ft-text-field-vertical-spacing","","SIZE","4px"),horizontalSpacing:e.FtCssVariableFactory.create("--ft-text-field-horizontal-spacing","","SIZE","16px"),helperColor:e.FtCssVariableFactory.extend("--ft-text-field-helper-color","",e.designSystemVariables.colorOnSurfaceMedium),colorPrimary:e.FtCssVariableFactory.external(e.designSystemVariables.colorPrimary,"Design system"),colorOnSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurface,"Design system"),colorOnSurfaceDisabled:e.FtCssVariableFactory.external(e.designSystemVariables.colorOnSurfaceDisabled,"Design system"),borderRadiusS:e.FtCssVariableFactory.external(e.designSystemVariables.borderRadiusS,"Design system"),colorError:e.FtCssVariableFactory.external(e.designSystemVariables.colorError,"Design system"),prefixColor:e.FtCssVariableFactory.extend("--ft-text-field-prefix-color","",e.designSystemVariables.colorOnSurfaceMedium),iconColor:e.FtCssVariableFactory.extend("--ft-text-field-icon-color","",e.designSystemVariables.colorOnSurfaceMedium),floatingZIndex:e.FtCssVariableFactory.create("--ft-text-field-floating-components-z-index","","NUMBER","3"),colorSurface:e.FtCssVariableFactory.external(e.designSystemVariables.colorSurface,"Design system"),colorOutline:e.FtCssVariableFactory.external(e.designSystemVariables.colorOutline,"Design system"),elevation02:e.FtCssVariableFactory.external(e.designSystemVariables.elevation02,"Design system"),suggestSize:e.FtCssVariableFactory.create("--ft-text-field-suggest-size","","SIZE","300px")},er=o.css`
1316
1316
  *:focus {
1317
1317
  outline: none;
1318
1318
  }
@@ -1325,16 +1325,16 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1325
1325
  }
1326
1326
 
1327
1327
  ft-input-label {
1328
- ${e.setVariable(li.fontSize,Ji.fontSize)};
1329
- ${e.setVariable(li.raisedFontSize,Ji.labelSize)};
1330
- ${e.setVariable(li.verticalSpacing,Ji.verticalSpacing)};
1331
- ${e.setVariable(li.horizontalSpacing,Ji.horizontalSpacing)};
1328
+ ${e.setVariable(ci.fontSize,tr.fontSize)};
1329
+ ${e.setVariable(ci.raisedFontSize,tr.labelSize)};
1330
+ ${e.setVariable(ci.verticalSpacing,tr.verticalSpacing)};
1331
+ ${e.setVariable(ci.horizontalSpacing,tr.horizontalSpacing)};
1332
1332
  }
1333
1333
 
1334
1334
  .ft-text-field--main-panel {
1335
1335
  position: relative;
1336
1336
  display: flex;
1337
- height: calc(4 * ${Ji.verticalSpacing} + ${Ji.labelSize} + ${Ji.fontSize});
1337
+ height: calc(4 * ${tr.verticalSpacing} + ${tr.labelSize} + ${tr.fontSize});
1338
1338
  }
1339
1339
 
1340
1340
  .ft-text-field--input-panel {
@@ -1343,10 +1343,10 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1343
1343
  display: flex;
1344
1344
  align-items: center;
1345
1345
  overflow: hidden;
1346
- padding: 0 ${Ji.horizontalSpacing};
1346
+ padding: 0 ${tr.horizontalSpacing};
1347
1347
 
1348
- ${e.setVariable(P.fontSize,Ji.fontSize)};
1349
- ${e.setVariable(P.lineHeight,Ji.fontSize)};
1348
+ ${e.setVariable(P.fontSize,tr.fontSize)};
1349
+ ${e.setVariable(P.lineHeight,tr.fontSize)};
1350
1350
  }
1351
1351
 
1352
1352
  .ft-text-field--input-panel ft-ripple {
@@ -1356,11 +1356,11 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1356
1356
 
1357
1357
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input-panel {
1358
1358
  align-items: flex-end;
1359
- padding: 0 ${Ji.horizontalSpacing} ${Ji.verticalSpacing} ${Ji.horizontalSpacing};
1359
+ padding: 0 ${tr.horizontalSpacing} ${tr.verticalSpacing} ${tr.horizontalSpacing};
1360
1360
  }
1361
1361
 
1362
1362
  .ft-text-field--prefix {
1363
- color: ${Ji.prefixColor};
1363
+ color: ${tr.prefixColor};
1364
1364
  margin-right: 2px;
1365
1365
  flex-shrink: 1;
1366
1366
  overflow: hidden;
@@ -1379,15 +1379,15 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1379
1379
  flex-shrink: 1;
1380
1380
  min-width: 0; /* flex sets this to auto an prevents input from shrinking properly */
1381
1381
 
1382
- color: ${Ji.colorOnSurface};
1383
- padding: calc(2 * ${Ji.verticalSpacing}) 0;
1382
+ color: ${tr.colorOnSurface};
1383
+ padding: calc(2 * ${tr.verticalSpacing}) 0;
1384
1384
  border: none;
1385
1385
  background: none;
1386
1386
  }
1387
1387
 
1388
1388
  .ft-text-field--filled.ft-text-field--with-label .ft-text-field--input {
1389
1389
  padding-bottom: 0;
1390
- padding-top: calc(${Ji.labelSize} + 2 * ${Ji.verticalSpacing});
1390
+ padding-top: calc(${tr.labelSize} + 2 * ${tr.verticalSpacing});
1391
1391
  }
1392
1392
 
1393
1393
  .ft-text-field--input::-webkit-calendar-picker-indicator,
@@ -1396,37 +1396,37 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1396
1396
  }
1397
1397
 
1398
1398
  .ft-text-field--disabled .ft-text-field--input {
1399
- color: ${Ji.colorOnSurfaceDisabled};
1399
+ color: ${tr.colorOnSurfaceDisabled};
1400
1400
  }
1401
1401
 
1402
1402
  .ft-text-field:not(.ft-text-field--disabled):focus-within ft-input-label {
1403
- ${e.setVariable(li.borderColor,Ji.colorPrimary)};
1404
- ${e.setVariable(li.textColor,Ji.colorPrimary)};
1403
+ ${e.setVariable(ci.borderColor,tr.colorPrimary)};
1404
+ ${e.setVariable(ci.textColor,tr.colorPrimary)};
1405
1405
  }
1406
1406
 
1407
1407
  .ft-text-field--filled .ft-text-field--input-panel {
1408
- border-radius: ${Ji.borderRadiusS} ${Ji.borderRadiusS} 0 0;
1408
+ border-radius: ${tr.borderRadiusS} ${tr.borderRadiusS} 0 0;
1409
1409
  }
1410
1410
 
1411
1411
  .ft-text-field--outlined .ft-text-field--input-panel {
1412
- border-radius: ${Ji.borderRadiusS};
1412
+ border-radius: ${tr.borderRadiusS};
1413
1413
  }
1414
1414
 
1415
1415
  .ft-text-field--helper-text {
1416
- padding: 0 12px 0 ${Ji.horizontalSpacing};
1417
- color: ${Ji.helperColor};
1416
+ padding: 0 12px 0 ${tr.horizontalSpacing};
1417
+ color: ${tr.helperColor};
1418
1418
  }
1419
1419
 
1420
1420
  .ft-text-field--in-error .ft-text-field--input,
1421
1421
  .ft-text-field--in-error .ft-text-field--helper-text,
1422
1422
  .ft-text-field--in-error .ft-text-field--prefix {
1423
- color: ${Ji.colorError};
1423
+ color: ${tr.colorError};
1424
1424
  }
1425
1425
 
1426
1426
  .ft-text-field--icon {
1427
1427
  align-self: center;
1428
1428
  margin-left: 8px;
1429
- color: ${Ji.iconColor};
1429
+ color: ${tr.iconColor};
1430
1430
  }
1431
1431
 
1432
1432
  .ft-text-field--container {
@@ -1437,24 +1437,18 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1437
1437
  display: none;
1438
1438
  flex-direction: column;
1439
1439
  position: absolute;
1440
- left: 0;
1441
- right: 0;
1442
- z-index: ${Ji.floatingZIndex};
1443
- background: ${Ji.colorSurface};
1444
- border: 1px solid ${Ji.colorOutline};
1445
- border-radius: 0 0 ${Ji.borderRadiusS} ${Ji.borderRadiusS};
1446
- box-shadow: ${Ji.elevation02};
1440
+ z-index: ${tr.floatingZIndex};
1441
+ background: ${tr.colorSurface};
1442
+ border: 1px solid ${tr.colorOutline};
1443
+ border-radius: 0 0 ${tr.borderRadiusS} ${tr.borderRadiusS};
1444
+ box-shadow: ${tr.elevation02};
1447
1445
  outline: none;
1448
- max-height: ${Ji.suggestSize};
1446
+ max-height: ${tr.suggestSize};
1449
1447
  overflow-y: auto;
1450
1448
  }
1451
1449
 
1452
- .ft-text-field--suggestions:not(.ft-text-field--suggestions-on-top) {
1453
- top: 100%;
1454
- }
1455
-
1456
- .ft-text-field--suggestions.ft-text-field--suggestions-on-top {
1457
- bottom: 100%;
1450
+ .ft-text-field--fixed .ft-text-field--suggestions {
1451
+ position: fixed;
1458
1452
  }
1459
1453
 
1460
1454
  .ft-text-field:not(.ft-text-field--hide-suggestions):focus-within .ft-text-field--suggestions {
@@ -1462,13 +1456,13 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1462
1456
  }
1463
1457
 
1464
1458
  .ft-text-field--with-icon {
1465
- ${e.setVariable(li.labelMaxWidth,`calc(100% - ${Nt.size} - ${li.horizontalSpacing})`)};
1459
+ ${e.setVariable(ci.labelMaxWidth,`calc(100% - ${$t.size} - ${ci.horizontalSpacing})`)};
1466
1460
  }
1467
1461
 
1468
1462
  .ft-text-field--with-password ft-icon:hover {
1469
1463
  cursor: pointer;
1470
1464
  }
1471
- `;var er=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class or extends(e.toFtFormComponent(e.FtLitElement,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.prefix=null,this.passwordHiddenIcon=Fo.EYE_SLASH,this.passwordRevealedIcon=Fo.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.suggestionsOnTop=!1,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"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.error,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return o.html`
1465
+ `;var or=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ir extends(e.toFtFormComponent(e.FtLitElement,"textbox")){constructor(){super(...arguments),this._value="",this.dispatchedValue="",this.outlined=!1,this.disabled=!1,this.error=!1,this.fixedMenuPosition=!1,this.prefix=null,this.passwordHiddenIcon=Bo.EYE_SLASH,this.passwordRevealedIcon=Bo.EYE,this.filterSuggestions=!1,this.password=!1,this.focused=!1,this.hidePassword=!0,this.hideSuggestions=!1,this.visibleSuggestions=[]}get value(){return this._value||""}set value(t){this.setInternalValue(t||""),this.dispatchedValue=t||""}setInternalValue(t){const e=this._value;this._value=t||"",this.setFormValue(this._value),this.requestUpdate("value",e)}focus(){var t;null===(t=this.input)||void 0===t||t.focus()}render(){const t={"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.error,"ft-text-field--fixed":this.fixedMenuPosition,"ft-text-field--with-prefix":!!this.prefix,"ft-text-field--hide-suggestions":0===this.visibleSuggestions.length||this.hideSuggestions,"ft-text-field--raised-label":this.focused||""!=this.value,"ft-text-field--with-icon":!!this.icon,"ft-text-field--with-password":this.password};return o.html`
1472
1466
  <div class="${r.classMap(t)}">
1473
1467
  <div class="ft-text-field--main-panel"
1474
1468
  @keydown=${this.handleKeyboardNavigation}
@@ -1499,7 +1493,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1499
1493
  @focus=${this.onFocus}/>
1500
1494
  ${this.renderIcon()}
1501
1495
  </div>
1502
- <div class="ft-text-field--suggestions ${this.suggestionsOnTop?"ft-text-field--suggestions-on-top":""}"
1496
+ <div class="ft-text-field--suggestions"
1503
1497
  @suggestion-selected=${this.onSuggestionSelected}>
1504
1498
  <slot @slotchange=${()=>this.filterSuggestionsIfNeeded()}></slot>
1505
1499
  </div>
@@ -1520,7 +1514,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1520
1514
  .variant=${this.iconVariant}
1521
1515
  .value=${this.icon}
1522
1516
  @click=${()=>{var t;return null===(t=this.input)||void 0===t?void 0:t.focus()}}></ft-icon>
1523
- `:o.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){var e,o;if(super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0){const t=null===(e=this.input)||void 0===e?void 0:e.getBoundingClientRect(),i=null===(o=this.suggestionsContainer)||void 0===o?void 0:o.getBoundingClientRect();t&&i&&(this.suggestionsOnTop=t.bottom+i.height>window.innerHeight&&t.top-i.height>0)}}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const o=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(o,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const o=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?o<this.visibleSuggestions.length-1?o+1:0:o>0?o-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[i])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}or.elementDefinitions={"ft-input-label":pi,"ft-ripple":Re,"ft-typography":ke,"ft-icon":jo},or.styles=[gt,tr],er([i.property()],or.prototype,"label",void 0),er([i.property({noAccessor:!0})],or.prototype,"value",null),er([i.state()],or.prototype,"dispatchedValue",void 0),er([i.property()],or.prototype,"helper",void 0),er([i.property({type:Boolean})],or.prototype,"outlined",void 0),er([i.property({type:Boolean})],or.prototype,"disabled",void 0),er([i.property({type:Boolean})],or.prototype,"error",void 0),er([i.property()],or.prototype,"prefix",void 0),er([i.property()],or.prototype,"icon",void 0),er([i.property()],or.prototype,"passwordHiddenIcon",void 0),er([i.property()],or.prototype,"passwordRevealedIcon",void 0),er([i.property()],or.prototype,"iconVariant",void 0),er([i.property({type:Boolean})],or.prototype,"filterSuggestions",void 0),er([i.property({type:Number})],or.prototype,"maxLength",void 0),er([i.property({type:Boolean})],or.prototype,"password",void 0),er([i.state()],or.prototype,"focused",void 0),er([i.state()],or.prototype,"hidePassword",void 0),er([i.state()],or.prototype,"suggestionsOnTop",void 0),er([i.state()],or.prototype,"hideSuggestions",void 0),er([i.state()],or.prototype,"visibleSuggestions",void 0),er([i.query(".ft-text-field--main-panel")],or.prototype,"mainPanel",void 0),er([i.query(".ft-text-field--input")],or.prototype,"input",void 0),er([i.query(".ft-text-field--suggestions")],or.prototype,"suggestionsContainer",void 0),er([i.queryAssignedElements({selector:"ft-text-field-suggestion"})],or.prototype,"suggestions",void 0);const ir=o.css`
1517
+ `:o.nothing}update(t){super.update(t),(t.has("value")||t.has("filterSuggestions"))&&this.filterSuggestionsIfNeeded(),t.has("value")&&null!=t.get("value")&&(this.hideSuggestions=!1),t.has("dispatchedValue")&&null!=t.get("dispatchedValue")&&(this.hideSuggestions=!0)}filterSuggestionsIfNeeded(){this.filterSuggestions?(this.suggestions.forEach((t=>t.hidden=!t.getValue().toLowerCase().includes(this.value.toLowerCase()))),this.visibleSuggestions=this.suggestions.filter((t=>!t.hidden))):this.visibleSuggestions=this.suggestions}contentAvailableCallback(t){super.contentAvailableCallback(t),t.has("focused")&&!this.hideSuggestions&&this.visibleSuggestions.length>0&&(this.suggestionsContainer.style.width=this.mainPanel.getBoundingClientRect().width+"px",Fo(this.mainPanel,this.suggestionsContainer,"bottom").then((({x:t,y:e})=>{this.suggestionsContainer.style.left=`${t}px`,this.suggestionsContainer.style.top=`${e}px`})))}setValue(t,e=!1){this.value!==t&&(this.setInternalValue(t),this.dispatchEvent(new CustomEvent("live-change",{detail:t}))),e&&this.dispatchedValue!==t&&(this.dispatchedValue=t,this.dispatchEvent(new CustomEvent("change",{detail:t})))}handleInput(t){var e;const o=(null===(e=this.input)||void 0===e?void 0:e.value)||"";this.setValue(o,"Escape"==t.key||"Enter"==t.key)}handleClick(){this.hideSuggestions=!1}handleKeyboardNavigation(t){var e;if("ArrowDown"===t.key||"ArrowUp"===t.key){t.preventDefault(),t.stopPropagation(),this.hideSuggestions=!1;const o=this.visibleSuggestions.findIndex((t=>t.matches(":focus-within")));let i;i="ArrowDown"===t.key?o<this.visibleSuggestions.length-1?o+1:0:o>0?o-1:this.visibleSuggestions.length-1,null===(e=this.visibleSuggestions[i])||void 0===e||e.focus()}"Escape"!=t.key&&"Enter"!=t.key||(this.hideSuggestions=!0)}onSuggestionSelected(t){var e;this.setValue(t.detail,!0),null===(e=this.input)||void 0===e||e.focus(),setTimeout((()=>this.hideSuggestions=!0),0)}onFocus(){this.focused=!0,this.hideSuggestions=!1}onMainPanelBlur(){var t,e;(null===(t=this.mainPanel)||void 0===t?void 0:t.matches(":focus-within"))||(this.focused=!1,this.setValue((null===(e=this.input)||void 0===e?void 0:e.value)||"",!0))}togglePasswordVisibility(){this.hidePassword=!this.hidePassword}}ir.elementDefinitions={"ft-input-label":pi,"ft-ripple":Re,"ft-typography":ke,"ft-icon":Go},ir.styles=[gt,er],or([i.property()],ir.prototype,"label",void 0),or([i.property({noAccessor:!0})],ir.prototype,"value",null),or([i.state()],ir.prototype,"dispatchedValue",void 0),or([i.property()],ir.prototype,"helper",void 0),or([i.property({type:Boolean})],ir.prototype,"outlined",void 0),or([i.property({type:Boolean})],ir.prototype,"disabled",void 0),or([i.property({type:Boolean})],ir.prototype,"error",void 0),or([i.property({type:Boolean})],ir.prototype,"fixedMenuPosition",void 0),or([i.property()],ir.prototype,"prefix",void 0),or([i.property()],ir.prototype,"icon",void 0),or([i.property()],ir.prototype,"passwordHiddenIcon",void 0),or([i.property()],ir.prototype,"passwordRevealedIcon",void 0),or([i.property()],ir.prototype,"iconVariant",void 0),or([i.property({type:Boolean})],ir.prototype,"filterSuggestions",void 0),or([i.property({type:Number})],ir.prototype,"maxLength",void 0),or([i.property({type:Boolean})],ir.prototype,"password",void 0),or([i.state()],ir.prototype,"focused",void 0),or([i.state()],ir.prototype,"hidePassword",void 0),or([i.state()],ir.prototype,"hideSuggestions",void 0),or([i.state()],ir.prototype,"visibleSuggestions",void 0),or([i.query(".ft-text-field--main-panel")],ir.prototype,"mainPanel",void 0),or([i.query(".ft-text-field--input")],ir.prototype,"input",void 0),or([i.query(".ft-text-field--suggestions")],ir.prototype,"suggestionsContainer",void 0),or([i.queryAssignedElements({selector:"ft-text-field-suggestion"})],ir.prototype,"suggestions",void 0);const rr=o.css`
1524
1518
  .ft-text-field-suggestion {
1525
1519
  position: relative;
1526
1520
  padding: 8px 16px;
@@ -1545,7 +1539,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1545
1539
  slot {
1546
1540
  pointer-events: none;
1547
1541
  }
1548
- `;var rr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class nr extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class ar extends e.FtLitElement{render(){return o.html`
1542
+ `;var nr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class ar extends CustomEvent{constructor(t){super("suggestion-selected",{detail:t,bubbles:!0,composed:!0})}}class sr extends e.FtLitElement{render(){return o.html`
1549
1543
  <div class="ft-text-field-suggestion"
1550
1544
  tabindex="-1"
1551
1545
  @keydown=${this.onKeyDown}
@@ -1557,15 +1551,15 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1557
1551
  <slot></slot>
1558
1552
  </ft-typography>
1559
1553
  </div>
1560
- `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new nr(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}ar.elementDefinitions={"ft-ripple":Re,"ft-typography":ke,"ft-icon":jo},ar.styles=ir,rr([i.property()],ar.prototype,"value",void 0),rr([i.query(".ft-text-field-suggestion")],ar.prototype,"container",void 0),rr([i.queryAssignedNodes()],ar.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(or),e.customElement("ft-text-field-suggestion")(ar);class sr{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var i,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(i=t.pageToc)&&void 0!==i?i:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var i;let r=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,i,r,n,a,s;const l={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(i=t.tocId)&&void 0!==i?i:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),d=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,d[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class lr{convertPaginatedToc(t){return new sr(t).build()}}var cr,dr,pr,fr,hr,ur,gr,yr,br,mr,vr,xr,wr,Or,Sr,$r,Nr,Ir;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function p(t){var e=new FileReader,o=d(e);return e.readAsArrayBuffer(t),o}function f(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=f(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=f(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(p)}),this.text=function(){var t,e,o,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,o=d(e),e.readAsText(t),o;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(y)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,i,r=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),u.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function y(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function b(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},h.call(g.prototype),h.call(b.prototype),b.prototype.clone=function(){return new b(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},b.error=function(){var t=new b(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];b.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new b(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var a=new g(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new b(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=b),e.Headers=l,e.Request=g,e.Response=b,e.fetch=v,Object.defineProperty(e,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(cr||(cr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(dr||(dr={})),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"}(pr||(pr={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(fr||(fr={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(hr||(hr={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(ur||(ur={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(gr||(gr={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(yr||(yr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(br||(br={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(mr||(mr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(vr||(vr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(xr||(xr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(wr||(wr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Or||(Or={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Sr||(Sr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}($r||($r={})),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.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Nr||(Nr={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Ir||(Ir={}));const Cr={[Nr.PERSONAL_BOOK_SHARE_USER]:[Nr.PERSONAL_BOOK_USER],[Nr.HTML_EXPORT_USER]:[Nr.PERSONAL_BOOK_USER],[Nr.PDF_EXPORT_USER]:[Nr.PERSONAL_BOOK_USER],[Nr.KHUB_ADMIN]:[Nr.CONTENT_PUBLISHER],[Nr.ADMIN]:[Nr.KHUB_ADMIN,Nr.USERS_ADMIN,Nr.PORTAL_ADMIN],[Nr.DEVELOPER]:[Nr.BETA_USER,Nr.DEBUG_USER]};function kr(t,e){return t===e||(Cr[t]??[]).some((t=>kr(t,e)))}function Er(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>kr(t,e)))}class Rr extends ki{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Er(null!==(e=null===(t=Ii.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,o)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const i=this.getNavigationData(t,e,o),r=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=i.page&&n.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&n.searchParams.set("tocId",i.tocId),null!=i.section&&n.searchParams.set("section",i.section),n.href}getNavigationData(t,e,o){var i,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(i=null==s?void 0:s.title)&&void 0!==i?i:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Ii.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],i=this.getTocNodeNow(e.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){if(!this.isFeatureAvailable(t))return!1;switch(t){case s.FEEDBACK:return Er(null!=e?e:[],Nr.FEEDBACK_USER);case s.RATING:return Er(null!=e?e:[],Nr.RATING_USER)&&null!=o&&o!==gr.NO_RATING;case s.PRINT:return Er(null!=e?e:[],Nr.PRINT_USER);case s.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case s.COLLECTIONS:return Er(null!=e?e:[],Nr.COLLECTION_USER);case s.PERSONAL_BOOKS:return Er(null!=e?e:[],Nr.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Ur extends Rr{static async build(t){return new Ur(new lr,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Lr{static build(t,o){return new Lr((t=>e.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=o?o:Ur.build)}constructor(t,o){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new e.Debouncer(10),this.initService(o)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return e.waitFor((()=>this.service))}async navigateToTopic(t,e,o){const i=await this.awaitService(),r=await(null!=o?i.getPage(o):i.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var o,i,r;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(i=e.topics[0])&&void 0!==i?i:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,o,i,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(o=this.service)||void 0===o?void 0:o.getMap().then((t=>this.store.actions.map(t))),null===(i=this.service)||void 0===i?void 0:i.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof e.CanceledPromiseError||this.errorHandler(t)}}fetchRelatives(){var t,e,o;const i=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==i&&i.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(o=this.store.getState().configuration)||void 0===o?void 0:o.relativePivotMetadata,i).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,o;this.store.getState().relatives&&(this.clusteringHelper=new e.ClusteringHelper(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(o=null===(t=Ii.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==o?o:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t){var o,i,r;const n=await e.waitFor((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),a=this.store.getState().mapId,s=await this.awaitService(),l=await s.getRelativesForTopicInMap(a,n,[t]);if(null===(r=null===(i=null===(o=null==l?void 0:l.results)||void 0===o?void 0:o[0])||void 0===i?void 0:i.entries)||void 0===r?void 0:r[0]){const t=l.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const Wr=o.css`
1561
- `;class Tr extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Dr extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Ar extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class _r extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class zr extends Event{constructor(){super("ft-reader-map-not-found")}}class Br extends Event{constructor(){super("ft-reader-map-unauthorized")}}class Fr extends Event{constructor(){super("ft-reader-map-forbidden")}}class Kr extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}var Zr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Mr extends e.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new e.Debouncer(5),this.navigationDebouncer=new e.Debouncer(10),this.mapLoadedEventDebouncer=new e.Debouncer(50),this.addStore(Ii)}render(){return o.html`
1554
+ `}focus(t){var e;null===(e=this.container)||void 0===e||e.focus(t)}click(){var t;null===(t=this.container)||void 0===t||t.click()}confirmSuggestion(){this.dispatchEvent(new ar(this.getValue()))}getValue(){return this.value||this.textContent}get textContent(){return this.assignedNodes.map((t=>t.textContent)).join("").trim()}onKeyDown(t){["Enter"," "].includes(t.key)&&(t.preventDefault(),t.stopPropagation(),this.confirmSuggestion())}}sr.elementDefinitions={"ft-ripple":Re,"ft-typography":ke,"ft-icon":Go},sr.styles=rr,nr([i.property()],sr.prototype,"value",void 0),nr([i.query(".ft-text-field-suggestion")],sr.prototype,"container",void 0),nr([i.queryAssignedNodes()],sr.prototype,"assignedNodes",void 0),e.customElement("ft-text-field")(ir),e.customElement("ft-text-field-suggestion")(sr);class lr{constructor(t){this.paginatedToc=t,this.nodeByTocId={},this.knownPrettyUrls=new Set,this.duplicatedPrettyUrls=new Set,this.pages=[],this.pageByTocId={}}build(){return{paginationConfiguration:this.paginatedToc.configuration,toc:this.convertNodes(this.paginatedToc.paginatedToc,1),pagesToc:this.extractPagesToc(this.paginatedToc.paginatedToc,1),nodeByTocId:this.nodeByTocId,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId}}extractPagesToc(t,e,o){return t.flatMap((t=>(t.pageConfiguration&&this.registerPage(this.buildPage(t,o)),null==t.tocId?this.extractPagesToc(t.children,e,o):[{tocId:t.tocId,title:t.title,depth:e,children:this.extractPagesToc(t.children,e+1,t.tocId)}])))}convertNodes(t,e,o){return t.flatMap((t=>{var i,r,n;if(null==t.tocId)return[...this.convertSectionNodes(null!==(i=t.pageToc)&&void 0!==i?i:[],e,t.tocId),...this.convertNodes(t.children,e,t.tocId)];let a=null===(r=t.prettyUrl)||void 0===r?void 0:r.replace(/^\//,"");const s={tocId:t.tocId,contentId:t.contentId,title:t.title,hasRating:t.hasRating,origin:t.origin,prettyUrl:a,depth:e,parentTocId:o,children:[]};this.register(s);const l=this.convertSectionNodes(null!==(n=t.pageToc)&&void 0!==n?n:[],e+1,t.tocId),c=this.convertNodes(t.children,e+1,s.tocId);return s.children=[...l,...c],[s]}))}convertSectionNodes(t,e,o){return t.flatMap((t=>{var i;let r=null===(i=t.prettyUrl)||void 0===i?void 0:i.replace(/^\//,"");const n={...t,prettyUrl:r,depth:e,parentTocId:o,children:[]};return this.register(n),n.children=this.convertSectionNodes(t.children,e+1,t.tocId),[n]}))}buildPage(t,e){var o,i,r,n,a,s;const l={number:this.pages.length+1,title:null!==(o=t.title)&&void 0!==o?o:"",rootTocId:null!==(i=t.tocId)&&void 0!==i?i:"root",toc:(null!==(r=t.pageToc)&&void 0!==r?r:[]).map((t=>this.nodeByTocId[t.tocId])),topics:[],hiddenTopics:[],breadcrumb:e?this.buildBreadcrumb(this.nodeByTocId[e]):[]},c=(t,e)=>(e?l.topics:l.hiddenTopics).push(t),d=null!==(a=null===(n=t.pageConfiguration)||void 0===n?void 0:n.parentsVisibility)&&void 0!==a?a:[];return l.breadcrumb.forEach(((t,e)=>{c(t,d[e])})),t.tocId&&c(t.tocId,t.pageConfiguration.isVisible),l.topics.push(...this.tocIds(null!==(s=t.pageToc)&&void 0!==s?s:[])),l}registerPage(t){for(let e of[...t.topics,...t.hiddenTopics])this.pageByTocId[e]||(this.pageByTocId[e]=t);this.pages.push(t)}tocIds(t){return t.flatMap((t=>[t.tocId,...this.tocIds(t.children)]))}buildBreadcrumb(t){const e=[t.tocId];for(;null==t?void 0:t.parentTocId;)e.unshift(t.parentTocId),t=this.nodeByTocId[t.parentTocId];return e}register(t){t.prettyUrl&&(this.knownPrettyUrls.has(t.prettyUrl)&&this.duplicatedPrettyUrls.add(t.prettyUrl),this.knownPrettyUrls.add(t.prettyUrl)),this.nodeByTocId[t.tocId]=t}}class cr{convertPaginatedToc(t){return new lr(t).build()}}var dr,fr,pr,hr,ur,gr,br,yr,mr,vr,xr,wr,Or,Sr,Nr,$r,Ir,Cr;!function(t){!function(e){var o={searchParams:"URLSearchParams"in t,iterable:"Symbol"in t&&"iterator"in Symbol,blob:"FileReader"in t&&"Blob"in t&&function(){try{return new Blob,!0}catch(t){return!1}}(),formData:"FormData"in t,arrayBuffer:"ArrayBuffer"in t};if(o.arrayBuffer)var i=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],r=ArrayBuffer.isView||function(t){return t&&i.indexOf(Object.prototype.toString.call(t))>-1};function n(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~]/i.test(t))throw new TypeError("Invalid character in header field name");return t.toLowerCase()}function a(t){return"string"!=typeof t&&(t=String(t)),t}function s(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return o.iterable&&(e[Symbol.iterator]=function(){return e}),e}function l(t){this.map={},t instanceof l?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function c(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function d(t){return new Promise((function(e,o){t.onload=function(){e(t.result)},t.onerror=function(){o(t.error)}}))}function f(t){var e=new FileReader,o=d(e);return e.readAsArrayBuffer(t),o}function p(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function h(){return this.bodyUsed=!1,this._initBody=function(t){var e;this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:o.blob&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:o.formData&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():o.arrayBuffer&&o.blob&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=p(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):o.arrayBuffer&&(ArrayBuffer.prototype.isPrototypeOf(t)||r(t))?this._bodyArrayBuffer=p(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o.searchParams&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},o.blob&&(this.blob=function(){var t=c(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){return this._bodyArrayBuffer?c(this)||Promise.resolve(this._bodyArrayBuffer):this.blob().then(f)}),this.text=function(){var t,e,o,i=c(this);if(i)return i;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,o=d(e),e.readAsText(t),o;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),o=new Array(e.length),i=0;i<e.length;i++)o[i]=String.fromCharCode(e[i]);return o.join("")}(this._bodyArrayBuffer));if(this._bodyFormData)throw new Error("could not read FormData body as text");return Promise.resolve(this._bodyText)},o.formData&&(this.formData=function(){return this.text().then(b)}),this.json=function(){return this.text().then(JSON.parse)},this}l.prototype.append=function(t,e){t=n(t),e=a(e);var o=this.map[t];this.map[t]=o?o+", "+e:e},l.prototype.delete=function(t){delete this.map[n(t)]},l.prototype.get=function(t){return t=n(t),this.has(t)?this.map[t]:null},l.prototype.has=function(t){return this.map.hasOwnProperty(n(t))},l.prototype.set=function(t,e){this.map[n(t)]=a(e)},l.prototype.forEach=function(t,e){for(var o in this.map)this.map.hasOwnProperty(o)&&t.call(e,this.map[o],o,this)},l.prototype.keys=function(){var t=[];return this.forEach((function(e,o){t.push(o)})),s(t)},l.prototype.values=function(){var t=[];return this.forEach((function(e){t.push(e)})),s(t)},l.prototype.entries=function(){var t=[];return this.forEach((function(e,o){t.push([o,e])})),s(t)},o.iterable&&(l.prototype[Symbol.iterator]=l.prototype.entries);var u=["DELETE","GET","HEAD","OPTIONS","POST","PUT"];function g(t,e){var o,i,r=(e=e||{}).body;if(t instanceof g){if(t.bodyUsed)throw new TypeError("Already read");this.url=t.url,this.credentials=t.credentials,e.headers||(this.headers=new l(t.headers)),this.method=t.method,this.mode=t.mode,this.signal=t.signal,r||null==t._bodyInit||(r=t._bodyInit,t.bodyUsed=!0)}else this.url=String(t);if(this.credentials=e.credentials||this.credentials||"same-origin",!e.headers&&this.headers||(this.headers=new l(e.headers)),this.method=(o=e.method||this.method||"GET",i=o.toUpperCase(),u.indexOf(i)>-1?i:o),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&r)throw new TypeError("Body not allowed for GET or HEAD requests");this._initBody(r)}function b(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var o=t.split("="),i=o.shift().replace(/\+/g," "),r=o.join("=").replace(/\+/g," ");e.append(decodeURIComponent(i),decodeURIComponent(r))}})),e}function y(t,e){e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText="statusText"in e?e.statusText:"OK",this.headers=new l(e.headers),this.url=e.url||"",this._initBody(t)}g.prototype.clone=function(){return new g(this,{body:this._bodyInit})},h.call(g.prototype),h.call(y.prototype),y.prototype.clone=function(){return new y(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new l(this.headers),url:this.url})},y.error=function(){var t=new y(null,{status:0,statusText:""});return t.type="error",t};var m=[301,302,303,307,308];y.redirect=function(t,e){if(-1===m.indexOf(e))throw new RangeError("Invalid status code");return new y(null,{status:e,headers:{location:t}})},e.DOMException=t.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var o=Error(t);this.stack=o.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function v(t,i){return new Promise((function(r,n){var a=new g(t,i);if(a.signal&&a.signal.aborted)return n(new e.DOMException("Aborted","AbortError"));var s=new XMLHttpRequest;function c(){s.abort()}s.onload=function(){var t,e,o={status:s.status,statusText:s.statusText,headers:(t=s.getAllResponseHeaders()||"",e=new l,t.replace(/\r?\n[\t ]+/g," ").split(/\r?\n/).forEach((function(t){var o=t.split(":"),i=o.shift().trim();if(i){var r=o.join(":").trim();e.append(i,r)}})),e)};o.url="responseURL"in s?s.responseURL:o.headers.get("X-Request-URL");var i="response"in s?s.response:s.responseText;r(new y(i,o))},s.onerror=function(){n(new TypeError("Network request failed"))},s.ontimeout=function(){n(new TypeError("Network request failed"))},s.onabort=function(){n(new e.DOMException("Aborted","AbortError"))},s.open(a.method,a.url,!0),"include"===a.credentials?s.withCredentials=!0:"omit"===a.credentials&&(s.withCredentials=!1),"responseType"in s&&o.blob&&(s.responseType="blob"),a.headers.forEach((function(t,e){s.setRequestHeader(e,t)})),a.signal&&(a.signal.addEventListener("abort",c),s.onreadystatechange=function(){4===s.readyState&&a.signal.removeEventListener("abort",c)}),s.send(void 0===a._bodyInit?null:a._bodyInit)}))}v.polyfill=!0,t.fetch||(t.fetch=v,t.Headers=l,t.Request=g,t.Response=y),e.Headers=l,e.Request=g,e.Response=y,e.fetch=v,Object.defineProperty(e,"t",{value:!0})}({})}("undefined"!=typeof self?self:void 0),function(t){t.black="black",t.green="green",t.blue="blue",t.purple="purple",t.red="red",t.orange="orange",t.yellow="yellow"}(dr||(dr={})),function(t){t.OFFICIAL="OFFICIAL",t.PERSONAL="PERSONAL",t.SHARED="SHARED"}(fr||(fr={})),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"}(pr||(pr={})),function(t){t.CLASSIC="CLASSIC",t.CUSTOM="CUSTOM",t.DESIGNER="DESIGNER"}(hr||(hr={})),function(t){t.AND="AND",t.OR="OR",t.MONOVALUED="MONOVALUED"}(ur||(ur={})),function(t){t.NONE="NONE",t.ALPHABET="ALPHABET",t.VERSION="VERSION"}(gr||(gr={})),function(t){t.STARS="STARS",t.LIKE="LIKE",t.DICHOTOMOUS="DICHOTOMOUS",t.NO_RATING="NO_RATING"}(br||(br={})),function(t){t.LAST_WEEK="LAST_WEEK",t.LAST_MONTH="LAST_MONTH",t.LAST_YEAR="LAST_YEAR",t.CUSTOM="CUSTOM"}(yr||(yr={})),function(t){t.ASC="ASC",t.DESC="DESC"}(mr||(mr={})),function(t){t.ALPHA="ALPHA",t.NATURAL="NATURAL"}(vr||(vr={})),function(t){t.EVERYWHERE="EVERYWHERE",t.TITLE_ONLY="TITLE_ONLY",t.NONE="NONE"}(xr||(xr={})),function(t){t.ARTICLE="ARTICLE",t.BOOK="BOOK",t.SHARED_BOOK="SHARED_BOOK"}(wr||(wr={})),function(t){t.FLUIDTOPICS="FLUIDTOPICS",t.EXTERNAL="EXTERNAL"}(Or||(Or={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC",t.PERSONAL_BOOK="PERSONAL_BOOK",t.SHARED_BOOK="SHARED_BOOK"}(Sr||(Sr={})),function(t){t.MAP="MAP",t.DOCUMENT="DOCUMENT",t.TOPIC="TOPIC"}(Nr||(Nr={})),function(t){t.DEFAULT="DEFAULT",t.DOCUMENTS="DOCUMENTS",t.ALL_TOPICS="ALL_TOPICS"}($r||($r={})),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.CONTENT_PUBLISHER="CONTENT_PUBLISHER",t.KHUB_ADMIN="KHUB_ADMIN",t.USERS_ADMIN="USERS_ADMIN",t.PORTAL_ADMIN="PORTAL_ADMIN",t.ADMIN="ADMIN",t.DEVELOPER="DEVELOPER"}(Ir||(Ir={})),function(t){t.VALID="VALID",t.INVALID="INVALID"}(Cr||(Cr={}));const kr={[Ir.PERSONAL_BOOK_SHARE_USER]:[Ir.PERSONAL_BOOK_USER],[Ir.HTML_EXPORT_USER]:[Ir.PERSONAL_BOOK_USER],[Ir.PDF_EXPORT_USER]:[Ir.PERSONAL_BOOK_USER],[Ir.KHUB_ADMIN]:[Ir.CONTENT_PUBLISHER],[Ir.ADMIN]:[Ir.KHUB_ADMIN,Ir.USERS_ADMIN,Ir.PORTAL_ADMIN],[Ir.DEVELOPER]:[Ir.BETA_USER,Ir.DEBUG_USER]};function Er(t,e){return t===e||(kr[t]??[]).some((t=>Er(t,e)))}function Rr(t,e){if(null==t)return!1;return(Array.isArray(t)?t:Array.isArray(t.roles)?t.roles:Array.isArray(t.profile?.roles)?t.profile.roles:[]).some((t=>Er(t,e)))}class Ur extends Ei{get mapId(){return this._mapId}set mapId(t){t!==this._mapId&&this.clear(),this._mapId=t}constructor(t,e,o){super(!1,e),this.converter=t,this._mapId=o,this.initCache()}async withMapId(t){return this._mapId?t(this._mapId):void 0}initCache(){this.cache.registerFinal("configuration",(()=>this.api.getReaderConfiguration())),this.cache.register("map",(()=>this.withMapId((t=>this.fetchMap(t))))),this.cache.register("enrichedToc",(()=>this.withMapId((t=>this.fetchPages(t).then((t=>this.converter.convertPaginatedToc(t))))))),this.cache.register("ratingSummary",(()=>{var t,e;return Rr(null!==(e=null===(t=Ci.getState().session)||void 0===t?void 0:t.profile.roles)&&void 0!==e?e:[],"RATING_USER")?this.withMapId((t=>this.fetchMapRating(t))):Promise.resolve()}))}clear(){this.cache.clearAll()}getMap(){return this.cache.get("map")}getConfiguration(){return this.cache.get("configuration")}getEnrichedToc(){return this.cache.get("enrichedToc")}get enrichedToc(){return this.cache.getNow("enrichedToc")}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(){return(await this.getEnrichedToc()).toc}async getPagesToc(){return(await this.getEnrichedToc()).pagesToc}async getTocNode(t){return(await this.getEnrichedToc()).nodeByTocId[t]}getTocNodeNow(t){var e;return null===(e=this.enrichedToc)||void 0===e?void 0:e.nodeByTocId[t]}async getPage(t){const e=await this.getEnrichedToc();return e.pages[t-1]||e.pages[0]}async getPageByTocId(t){const e=await this.getEnrichedToc();return e.pageByTocId[t]||e.pages[0]}getTopicInfo(t){return this.cache.get("topic-"+t.tocId,(()=>this.fetchTopicMetadata(t)))}getTopicContent(t){return this.cache.get("topic-content-"+t.tocId,(()=>this.fetchTopicHTMLContent(t)))}getAttachments(){return this.cache.get("map-attachments",(()=>this.fetchAttachments()))}getRelativesForDocument(t,e){return this.cache.get("document-relatives-"+t+"-"+e.join("-"),(()=>this.fetchRelativesForDocument(t,e)))}getRelativesForTopicInMap(t,e,o){return this.cache.get("topic-relatives-"+[t,e,...o].join("-"),(()=>this.fetchRelativesForTopicInMap(t,e,o)))}getAttachmentDownloadLink(t){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(t).content}?download=true`)}getLink(t,e,o){const i=this.getNavigationData(t,e,o),r=this.getReaderLinkPrefix()+(i.prettyUrl?i.prettyUrl:`${i.mapId}/${i.tocId}`),n=new URL(r,this.api.tenantBaseUrl);return null!=i.page&&n.searchParams.set("page",`${i.page}`),i.prettyUrlDuplicated&&n.searchParams.set("tocId",i.tocId),null!=i.section&&n.searchParams.set("section",i.section),n.href}getNavigationData(t,e,o){var i,r;t=t||"root";const n=this.enrichedToc,a=null==n?void 0:n.pageByTocId[t],s=null==n?void 0:n.nodeByTocId[t],l=null==s?void 0:s.prettyUrl;return{mapId:this.mapId,tocId:t,topicTitle:null!==(i=null==s?void 0:s.title)&&void 0!==i?i:"",page:e&&a&&a.number!==e?e:void 0,prettyUrl:null!=l?l.replace(/^r\//,""):void 0,prettyUrlDuplicated:null!==(r=null==n?void 0:n.duplicatedPrettyUrls.has(null!=l?l:""))&&void 0!==r&&r,section:o}}async getAccurateNavigationData(t,e,o){return await this.getEnrichedToc(),this.getNavigationData(t,e,o)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then((t=>null==t?void 0:t.publication))}getTopicRating(t){return this.getRatingSummary().then((e=>{var o;return e?{type:e.topics.type,rating:null===(o=e.topics)||void 0===o?void 0:o.ratings.find((e=>e.tocId===t))}:void 0}))}rateMap(t,e){return this.makeRateMapRequest(t,e).then((()=>this.clearRatingIfNecessary()))}unrateMap(){return this.makeUnrateMapRequest().then((()=>this.clearRatingIfNecessary()))}sendMapFeedback(t,e){return this.makeMapFeedbackRequest(t,e)}rateTopic(t,e,o){return this.makeRateTopicRequest(t,e,o).then((()=>this.clearRatingIfNecessary()))}unrateTopic(t){return this.makeUnrateTopicRequest(t).then((()=>this.clearRatingIfNecessary()))}async clearRatingIfNecessary(){const t=Ci.getState().session;(null==t?void 0:t.sessionAuthenticated)&&this.cache.clear("ratingSummary")}sendTopicFeedback(t,e,o){return this.makeTopicFeedbackRequest(t,e,o)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(t){let e=this.getTocNodeNow(t),o=[{tocId:e.tocId,title:e.title}],i=this.getTocNodeNow(e.parentTocId);for(;i;)o.unshift({tocId:i.tocId,title:i.title}),i=this.getTocNodeNow(i.parentTocId);return o}isFeatureAccessible(t,{session:e,ratingType:o}){if(!this.isFeatureAvailable(t))return!1;switch(t){case s.FEEDBACK:return Rr(null!=e?e:[],Ir.FEEDBACK_USER);case s.RATING:return Rr(null!=e?e:[],Ir.RATING_USER)&&null!=o&&o!==br.NO_RATING;case s.PRINT:return Rr(null!=e?e:[],Ir.PRINT_USER);case s.BOOKMARK:return!!(null==e?void 0:e.sessionAuthenticated);case s.COLLECTIONS:return Rr(null!=e?e:[],Ir.COLLECTION_USER);case s.PERSONAL_BOOKS:return Rr(null!=e?e:[],Ir.PERSONAL_BOOK_USER);default:return!1}}makeAbsolute(t){return this.api.makeAbsolute(t)}}class Lr extends Ur{static async build(t){return new Lr(new cr,void 0,t)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(t){const e=await this.api.getMap(t);return this.fingerprint=e.fingerprint,e}fetchMapRating(t){return this.api.getMapRating(t)}async fetchPages(t){return await this.getMap(),this.api.getPages(t,this.fingerprint)}fetchTopicHTMLContent(t){return this.api.getTopicHTMLContent(this.mapId,t.contentId,"DESIGNED_READER",this.fingerprint)}fetchTopicMetadata(t){return this.api.getTopic(this.mapId,t.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch((()=>[]))}fetchRelativesForDocument(t,e){return this.api.search({query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",filters:[{negative:!1,values:e,key:t}],sort:[],facets:[]})}fetchRelativesForTopicInMap(t,e,o){return this.api.search({query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",filters:[{negative:!1,values:o,key:e},{negative:!1,values:[t],key:"ft:publicationId"}],sort:[],facets:[]})}makeMapFeedbackRequest(t,e){return this.api.sendMapFeedback(this.mapId,t,e)}makeRateMapRequest(t,e){return this.api.rateMap(this.mapId,t,e)}makeRateTopicRequest(t,e,o){return this.api.rateTopic(this.mapId,t,e,o)}makeTopicFeedbackRequest(t,e,o){return this.api.sendTopicFeedback(this.mapId,t,e,o)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(t){return this.api.unrateTopic(this.mapId,t)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(t){return!0}}class Wr{static build(t,o){return new Wr((t=>e.FtReduxStore.get({name:"ft-reader-"+t,initialState:{mapId:void 0,visibleTopics:[],map:void 0,toc:void 0,pagesToc:void 0,paginationConfiguration:void 0,currentPage:void 0,scrollTarget:void 0,configuration:void 0,searchInDocumentQuery:void 0,relatives:void 0}}))(t.trim()||"context"),null!=o?o:Lr.build)}constructor(t,o){this.store=t,this.metadataForSwitchToRelatives=new Set,this.loadDebouncer=new e.Debouncer(10),this.initService(o)}async initService(t){return this.service=await t(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(t){t!==this.store.getState().mapId&&(this.store.actions.mapId(t),this.service&&(this.service.mapId=t),await this.reload())}setVisibleTopics(t){this.store.actions.visibleTopics(t)}async awaitService(){return e.waitFor((()=>this.service))}async navigateToTopic(t,e,o){const i=await this.awaitService(),r=await(null!=o?i.getPage(o):i.getPageByTocId(null!=t?t:"root"));this.store.actions.currentPage(r),this.store.actions.scrollTarget({tocId:this.resolveValidNonRootTocId(t,r),section:e})}resolveValidNonRootTocId(t,e){var o,i,r;let n=null!==(o="root"===t?void 0:t)&&void 0!==o?o:e.rootTocId;return e.topics.includes(n)?n:null!==(r=null!==(i=e.topics[0])&&void 0!==i?i:e.hiddenTopics[0])&&void 0!==r?r:"root"}async navigateToPage(t){const e=await this.awaitService();let o=await e.getPage(t);this.store.actions.currentPage(o)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var t;(null===(t=this.service)||void 0===t?void 0:t.mapId)&&null==this.store.getState().map&&await this.loadDebouncer.run((()=>this.fetchData()))}clear(){var t;this.store.actions.configuration(void 0),this.store.actions.map(void 0),this.store.actions.toc(void 0),this.store.actions.pagesToc(void 0),this.store.actions.currentPage(void 0),this.store.actions.searchInDocumentQuery(""),this.store.actions.relatives(void 0),null===(t=this.service)||void 0===t||t.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(){var t,o,i,r,n;try{await Promise.all([null===(t=this.service)||void 0===t?void 0:t.getConfiguration().then((t=>this.store.actions.configuration(t))),null===(o=this.service)||void 0===o?void 0:o.getMap().then((t=>this.store.actions.map(t))),null===(i=this.service)||void 0===i?void 0:i.getToc().then((t=>this.store.actions.toc(t))),null===(r=this.service)||void 0===r?void 0:r.getPagesToc().then((t=>this.store.actions.pagesToc(t))),null===(n=this.service)||void 0===n?void 0:n.getPaginationConfiguration().then((t=>this.store.actions.paginationConfiguration(t)))]).then((()=>{this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives()}))}catch(t){!this.errorHandler||t instanceof e.CanceledPromiseError||this.errorHandler(t)}}fetchRelatives(){var t,e,o;const i=null===(t=this.store.getState().map)||void 0===t?void 0:t.metadata.filter((t=>{var e;return t.key==(null===(e=this.store.getState().configuration)||void 0===e?void 0:e.relativePivotMetadata)})).flatMap((t=>t.values));void 0!==i&&i.length>0&&(null===(e=this.service)||void 0===e||e.getRelativesForDocument(null===(o=this.store.getState().configuration)||void 0===o?void 0:o.relativePivotMetadata,i).then((t=>{const e=t.results.flatMap((t=>t.entries));this.store.actions.relatives(e),this.createClusteringHelper()})))}createClusteringHelper(){var t,o;this.store.getState().relatives&&(this.clusteringHelper=new e.ClusteringHelper(this.store.getState().relatives,this.store.getState().relatives.find((t=>{var e;return(null===(e=t.map)||void 0===e?void 0:e.mapId)==this.store.getState().mapId})),this.metadataForSwitchToRelatives,null!==(o=null===(t=Ci.getState().metadataConfiguration)||void 0===t?void 0:t.descriptors)&&void 0!==o?o:[]),this.store.eventBus.dispatchEvent(new CustomEvent("clustering-helper-created")))}async navigateToRelativeTopicIfFound(t){var o,i,r;const n=await e.waitFor((()=>{var t;return null===(t=this.store.getState().configuration)||void 0===t?void 0:t.relativeTopicPivotMetadata})),a=this.store.getState().mapId,s=await this.awaitService(),l=await s.getRelativesForTopicInMap(a,n,[t]);if(null===(r=null===(i=null===(o=null==l?void 0:l.results)||void 0===o?void 0:o[0])||void 0===i?void 0:i.entries)||void 0===r?void 0:r[0]){const t=l.results[0].entries[0].topic.tocId;return await this.navigateToTopic(t),!0}return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(t){this.store.actions.searchInDocumentQuery(t)}registerMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.add(t),null==this.store.getState().relatives?this.fetchRelatives():this.createClusteringHelper()}unregisterMetadataForSwitchToRelatives(t){this.metadataForSwitchToRelatives.delete(t),this.createClusteringHelper()}}const zr=o.css`
1555
+ `;class Dr extends CustomEvent{constructor(t,e){super("ft-reader-map-loaded",{detail:{map:t,toc:e}})}}class Tr extends CustomEvent{constructor(t,e){super("ft-reader-visible-topics-change",{detail:{visibleTopics:e}})}}class Ar extends CustomEvent{constructor(t){super("ft-reader-navigation-done",{detail:t})}}class _r extends CustomEvent{constructor(t){super("ft-reader-load-error",{detail:t})}}class Zr extends Event{constructor(){super("ft-reader-map-not-found")}}class Fr extends Event{constructor(){super("ft-reader-map-unauthorized")}}class Br extends Event{constructor(){super("ft-reader-map-forbidden")}}class Kr extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}}var Mr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Pr extends e.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.scrollToTargetDebouncer=new e.Debouncer(5),this.navigationDebouncer=new e.Debouncer(10),this.mapLoadedEventDebouncer=new e.Debouncer(50),this.addStore(Ci)}render(){return o.html`
1562
1556
  ${this.importStyleIfNeeded()}
1563
1557
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
1564
1558
  `}importStyleIfNeeded(){var t,e;const i=null===(t=this.stateManager.service)||void 0===t?void 0:t.themeStylesheet();return!i||window.location.href.startsWith(null!==(e=this.baseUrl)&&void 0!==e?e:"")?o.nothing:o.html`
1565
1559
  <style>
1566
1560
  @import "${i}"
1567
1561
  </style>
1568
- `}get stateManager(){return null==this._stateManager&&(this._stateManager=Lr.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new Ar(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Dr(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{if(null!=this.topicPivot){await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)||this.lastNotifiedNotFoundRelative===this.mapId+this.topicPivot?this.lastNotifiedNotFoundRelative=void 0:(this.dispatchEvent(new Kr),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot)}else null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;401===e.status?this.dispatchEvent(new Br):403===e.status?this.dispatchEvent(new Fr):404===e.status?this.dispatchEvent(new zr):this.dispatchEvent(new _r(t))}reloadBookmarks(){Bi.reloadBookmarks()}async reloadRating(){var t,e;await(null===(t=this.stateManager.service)||void 0===t?void 0:t.reloadRating()),null===(e=this.stateManager.store)||void 0===e||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run((()=>{this.map&&this.toc&&this.dispatchEvent(new Tr(this.map,this.toc))}))}}var Pr;Mr.styles=Wr,Zr([e.redux({store:Ii.name})],Mr.prototype,"baseUrl",void 0),Zr([i.property()],Mr.prototype,"mapId",void 0),Zr([i.property()],Mr.prototype,"tocId",void 0),Zr([i.property()],Mr.prototype,"section",void 0),Zr([i.property()],Mr.prototype,"topicPivot",void 0),Zr([i.property()],Mr.prototype,"searchInDocumentQuery",void 0),Zr([i.property({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Pr}})],Mr.prototype,"page",void 0),Zr([e.redux({store:"reader"})],Mr.prototype,"map",void 0),Zr([e.redux({store:"reader"})],Mr.prototype,"toc",void 0),Zr([e.redux({store:"reader"})],Mr.prototype,"visibleTopics",void 0),Zr([e.redux({store:"reader"})],Mr.prototype,"currentPage",void 0),Zr([e.redux({store:"reader"})],Mr.prototype,"scrollTarget",void 0),Zr([i.property({attribute:!1})],Mr.prototype,"readerServiceProvider",void 0),e.customElement("ft-reader-context")(Mr);class Hr extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}}class jr extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}}class Gr extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}}class Vr extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}}class Yr extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}}var qr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Xr extends(Pi(p)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",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.addI18nContext(Xi,Qi)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==o?o:"NO_RATING"}get ratingValue(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==o?o:-1}get ratingDate(){var t,o;const i=null===(o=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===o?void 0:o.date;return"string"==typeof i?e.parseDate(i):i}render(){return this.canAccessFeedback||this.canAccessRating?o.html`
1562
+ `}get stateManager(){return null==this._stateManager&&(this._stateManager=Wr.build(this.id||(""+Math.round(999e3*Math.random())).padStart(6,"0"),this.readerServiceProvider),this._stateManager.errorHandler=t=>this.handleLoadError(t),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then((t=>{const e=t.fontsStylesheet();if(e&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${e}"]`)){const t=document.createElement("link");t.setAttribute("rel","stylesheet"),t.setAttribute("href",e),document.head.append(t)}}))}update(t){super.update(t),t.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),t.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),t.has("searchInDocumentQuery")&&null!=this.searchInDocumentQuery&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some((e=>t.has(e)))&&this.mapId&&this.navigateToTarget()}contentAvailableCallback(t){var e;if(super.contentAvailableCallback(t),(t.has("map")||t.has("toc"))&&this.sendLoadedEventIfLoaded(),t.has("scrollTarget")&&null==(null===(e=this.scrollTarget)||void 0===e?void 0:e.tocId)){const e=t.get("scrollTarget");null!=(null==e?void 0:e.tocId)&&this.scrollToTargetDebouncer.run((()=>{var t;return this.stateManager.service.getAccurateNavigationData(e.tocId,null===(t=this.currentPage)||void 0===t?void 0:t.number,e.section).then((t=>this.dispatchEvent(new Ar(t))))}))}t.has("visibleTopics")&&Promise.all(this.visibleTopics.map((t=>{var e;return this.stateManager.service.getAccurateNavigationData(t,null===(e=this.currentPage)||void 0===e?void 0:e.number)}))).then((t=>{let e=t.filter((t=>null!=t&&""!==t.topicTitle)).map((t=>{var e;return{tocId:t.tocId,title:t.topicTitle,page:t.page,prettyUrl:t.prettyUrl,prettyUrlDuplicated:t.prettyUrlDuplicated,breadcrumb:null===(e=this.stateManager.service)||void 0===e?void 0:e.buildBreadcrumb(t.tocId)}}));this.dispatchEvent(new Tr(this.map,e))}))}clear(){this.stateManager.clear()}async reload(){this.clear(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.load(),await this.navigationDebouncer.run((async()=>{if(null!=this.topicPivot){await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)||this.lastNotifiedNotFoundRelative===this.mapId+this.topicPivot?this.lastNotifiedNotFoundRelative=void 0:(this.dispatchEvent(new Kr),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot)}else null!=this.tocId?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):null!=this.page&&await this.stateManager.navigateToPage(this.page)}))}registerComponent(t){t.stopPropagation();const e=t.composedPath()[0];this.register(e)}register(t){t.setReaderStateManager(this.stateManager)}handleLoadError(t){const e=t;401===e.status?this.dispatchEvent(new Fr):403===e.status?this.dispatchEvent(new Br):404===e.status?this.dispatchEvent(new Zr):this.dispatchEvent(new _r(t))}reloadBookmarks(){Fi.reloadBookmarks()}async reloadRating(){var t,e;await(null===(t=this.stateManager.service)||void 0===t?void 0:t.reloadRating()),null===(e=this.stateManager.store)||void 0===e||e.eventBus.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run((()=>{this.map&&this.toc&&this.dispatchEvent(new Dr(this.map,this.toc))}))}}var Hr;Pr.styles=zr,Mr([e.redux({store:Ci.name})],Pr.prototype,"baseUrl",void 0),Mr([i.property()],Pr.prototype,"mapId",void 0),Mr([i.property()],Pr.prototype,"tocId",void 0),Mr([i.property()],Pr.prototype,"section",void 0),Mr([i.property()],Pr.prototype,"topicPivot",void 0),Mr([i.property()],Pr.prototype,"searchInDocumentQuery",void 0),Mr([i.property({type:Number,converter:{fromAttribute:t=>+(null!=t?t:"NaN")>0?+t:Hr}})],Pr.prototype,"page",void 0),Mr([e.redux({store:"reader"})],Pr.prototype,"map",void 0),Mr([e.redux({store:"reader"})],Pr.prototype,"toc",void 0),Mr([e.redux({store:"reader"})],Pr.prototype,"visibleTopics",void 0),Mr([e.redux({store:"reader"})],Pr.prototype,"currentPage",void 0),Mr([e.redux({store:"reader"})],Pr.prototype,"scrollTarget",void 0),Mr([i.property({attribute:!1})],Pr.prototype,"readerServiceProvider",void 0),e.customElement("ft-reader-context")(Pr);class jr extends CustomEvent{constructor(t){super("send-feedback",{detail:t})}}class Gr extends CustomEvent{constructor(t){super("ft-reader-topic-feedback",{composed:!0,bubbles:!0,detail:t})}}class Vr extends CustomEvent{constructor(t){super("ft-reader-feedback",{composed:!0,bubbles:!0,detail:t})}}class Yr extends CustomEvent{constructor(t){super("ft-reader-mailer-topic-feedback",{composed:!0,bubbles:!0,detail:{topic:t}})}}class qr extends CustomEvent{constructor(){super("ft-reader-mailer-map-feedback",{composed:!0,bubbles:!0})}}var Xr=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class Qr extends(Hi(f)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.ratingAllowed=!1,this.from="",this.feedbackMessage="",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.addI18nContext(Qi,Ji)}get canAccessFeedback(){var t;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.FEEDBACK,{session:this.session})}get canAccessRating(){var t,e;return null===(t=this.service)||void 0===t?void 0:t.isFeatureAccessible(s.RATING,{session:this.session,ratingType:null===(e=this.ratingSummary)||void 0===e?void 0:e.type})}get configuredRatingType(){var t,e;return null!==(e=this.ratingAllowed?null===(t=this.ratingSummary)||void 0===t?void 0:t.type:"NO_RATING")&&void 0!==e?e:"NO_RATING"}get ratingType(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.type)&&void 0!==o?o:"NO_RATING"}get ratingValue(){var t,e,o;return null!==(o=null===(e=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===e?void 0:e.value)&&void 0!==o?o:-1}get ratingDate(){var t,o;const i=null===(o=null===(t=this.ratingSummary)||void 0===t?void 0:t.rating)||void 0===o?void 0:o.date;return"string"==typeof i?e.parseDate(i):i}render(){return this.canAccessFeedback||this.canAccessRating?o.html`
1569
1563
  <div class="ft-reader-feedback">
1570
1564
  ${this.hideTitle?o.nothing:o.html`
1571
1565
  <ft-typography variant="title" part="main-title">
@@ -1585,11 +1579,11 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1585
1579
  ${this.renderRatingDate()}
1586
1580
  </ft-typography>
1587
1581
  </div>
1588
- `:o.nothing}renderRatingDate(){const t=this.ratingDate;if(null==t)return Xi.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Xi.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Xi.messages.ratedToday():Xi.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return o.html`
1582
+ `:o.nothing}renderRatingDate(){const t=this.ratingDate;if(null==t)return Qi.messages.notRated();if(t.getTime()>(new Date).getTime()-6e4)return Qi.messages.ratedNow();return(new Date).toLocaleDateString()===t.toLocaleDateString()?Qi.messages.ratedToday():Qi.messages.ratedOn(t)}renderRating(){switch(this.configuredRatingType){case"STARS":return o.html`
1589
1583
  <div class="ft-reader-feedback--stars" part="rating rating-stars">
1590
1584
  ${a.repeat(new Array(5),((t,e)=>e),((t,e)=>{let i="STARS"===this.ratingType&&this.ratingValue>e;const r=e+1;return o.html`
1591
1585
  <ft-button round part="rating-stars-${r}"
1592
- label="${Xi.messages.starsRating(r)}"
1586
+ label="${Qi.messages.starsRating(r)}"
1593
1587
  tooltipPosition="top"
1594
1588
  .iconVariant=${this.iconVariant}
1595
1589
  icon="${i?this.filledStarIcon:this.emptyStarIcon}"
@@ -1606,13 +1600,13 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1606
1600
  ?selected=${e}
1607
1601
  .iconVariant=${this.iconVariant}
1608
1602
  icon="${e?this.filledLikeIcon:this.emptyLikeIcon}">
1609
- ${Xi.messages.like()}
1603
+ ${Qi.messages.like()}
1610
1604
  </ft-switch-option>
1611
1605
  <ft-switch-option .value=${0}
1612
1606
  ?selected=${t}
1613
1607
  .iconVariant=${this.iconVariant}
1614
1608
  icon="${t?this.filledDislikeIcon:this.emptyDislikeIcon}">
1615
- ${Xi.messages.dislike()}
1609
+ ${Qi.messages.dislike()}
1616
1610
  </ft-switch-option>
1617
1611
  </ft-switch>
1618
1612
  `;case"DICHOTOMOUS":const i="DICHOTOMOUS"===this.ratingType&&0===this.ratingValue,r="DICHOTOMOUS"===this.ratingType&&1===this.ratingValue;return o.html`
@@ -1621,11 +1615,11 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1621
1615
  part="rating rating-dichotomous">
1622
1616
  <ft-switch-option .value=${1}
1623
1617
  ?selected=${r}>
1624
- ${Xi.messages.dichotomousYes()}
1618
+ ${Qi.messages.dichotomousYes()}
1625
1619
  </ft-switch-option>
1626
1620
  <ft-switch-option .value=${0}
1627
1621
  ?selected=${i}>
1628
- ${Xi.messages.dichotomousNo()}
1622
+ ${Qi.messages.dichotomousNo()}
1629
1623
  </ft-switch-option>
1630
1624
  </ft-switch>
1631
1625
  `}return o.nothing}rate(t){(null!=t?t:-1)!==this.ratingValue&&this.dispatchEvent(new CustomEvent("rate",{detail:t}))}renderFeedbackSection(){var t,e,i,r,n;if(this.canAccessFeedback){const a=this.feedbackMailLinkBuilder(this.feedbackMessage);let s=o.html`
@@ -1634,7 +1628,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1634
1628
  class="ft-reader-feedback--send-feedback"
1635
1629
  ?disabled=${!this.feedbackMessage||!this.validFromEmail()}
1636
1630
  part="send-feedback">
1637
- ${Xi.messages.okButton()}
1631
+ ${Qi.messages.okButton()}
1638
1632
  </ft-button>
1639
1633
  `;a&&(s=o.html`
1640
1634
  <a class="ft-reader-feedback--feedback-link" href="${a}">
@@ -1646,7 +1640,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1646
1640
  class="ft-reader-feedback--more-options"
1647
1641
  @click="${this.onOpenMoreDetails}"
1648
1642
  part="more-options">
1649
- ${Xi.messages.moreOptionsButton()}
1643
+ ${Qi.messages.moreOptionsButton()}
1650
1644
  </ft-button>
1651
1645
  `:o.nothing;return o.html`
1652
1646
  <form class="ft-reader-feedback--feedback" part="feedback-container" autocomplete="on"
@@ -1657,15 +1651,15 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1657
1651
  ${null==(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId)&&(null===(n=this.configuration)||void 0===n?void 0:n.mailsSentByFluidTopicsForUnauthenticatedUsers)?o.html`
1658
1652
  <ft-text-field outlined name="email" type="email" autocomplete="email"
1659
1653
  class="ft-reader-feedback--from-input"
1660
- label=${Xi.messages.feedbackfromEmail()}
1654
+ label=${Qi.messages.feedbackfromEmail()}
1661
1655
  @change=${t=>this.from=t.detail.trim()}
1662
1656
  ?error=${this.from&&!this.validFromEmail()}
1663
- helper=${this.from&&!this.validFromEmail()?Xi.messages.feedbackfromEmailInvalid():""}
1657
+ helper=${this.from&&!this.validFromEmail()?Qi.messages.feedbackfromEmailInvalid():""}
1664
1658
  />
1665
1659
  `:o.nothing}
1666
1660
  <ft-text-area outlined
1667
1661
  class="ft-reader-feedback--feedback-input" part="feedback-input"
1668
- label="${Xi.messages.feedbackInputLabel()}"
1662
+ label="${Qi.messages.feedbackInputLabel()}"
1669
1663
  @live-change=${t=>this.feedbackMessage=t.detail.trim()}
1670
1664
  ></ft-text-area>
1671
1665
  <div part="buttons-container">
@@ -1673,7 +1667,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1673
1667
  ${s}
1674
1668
  </div>
1675
1669
  </form>
1676
- `}return o.nothing}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new Hr({message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Xr.elementDefinitions={"ft-button":xi,"ft-typography":ke,"ft-switch":ei,"ft-switch-option":Qo,"ft-text-area":gi,"ft-text-field":or},Xr.styles=zt,qr([i.property({type:Boolean})],Xr.prototype,"editorMode",void 0),qr([i.property({type:Boolean})],Xr.prototype,"hideTitle",void 0),qr([i.property({type:Boolean})],Xr.prototype,"withMoreOptionsButton",void 0),qr([i.property({type:Boolean})],Xr.prototype,"ratingAllowed",void 0),qr([i.property({attribute:!1})],Xr.prototype,"i18nProperties",void 0),qr([i.property({attribute:!1})],Xr.prototype,"ratingSummary",void 0),qr([i.property({attribute:!1})],Xr.prototype,"session",void 0),qr([i.query(".ft-reader-feedback--feedback-input")],Xr.prototype,"feedbackInput",void 0),qr([i.state()],Xr.prototype,"from",void 0),qr([i.state()],Xr.prototype,"feedbackMessage",void 0),qr([i.property()],Xr.prototype,"iconVariant",void 0),qr([i.property()],Xr.prototype,"emptyStarIcon",void 0),qr([i.property()],Xr.prototype,"filledStarIcon",void 0),qr([i.property()],Xr.prototype,"emptyLikeIcon",void 0),qr([i.property()],Xr.prototype,"filledLikeIcon",void 0),qr([i.property()],Xr.prototype,"emptyDislikeIcon",void 0),qr([i.property()],Xr.prototype,"filledDislikeIcon",void 0),qr([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Xr.prototype,"configuration",void 0),qr([i.property()],Xr.prototype,"feedbackMailLinkBuilder",void 0);const Qr=Yi.fromGwt("server");class Jr{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,i,r){var n;this.subject=t,this.url=e,this.configuration=i,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(o,i.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(o,null!==(n=i.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}shouldUseMailer(){var t,e;const o=this.isAuthenticated&&!(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics),i=!this.isAuthenticated&&!(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||i}build(t){var e;if(null!=t&&0===t.length||!this.shouldUseMailer())return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),i=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${null!=t?t:""}\n\n_________________________________________________________________\n${Qr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(e=this.configuration)||void 0===e?void 0:e.recipients.join(",")}?subject=${o}&body=${i}`}}const tn=Yi.build("inDesignerFeedbackComponent"),en={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var on=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class rn extends(Pi(p)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Zo.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 Jr,this.i18nProperties={feedbackMainTitle:Xi.properties.mapFeedbackMainTitle(),ratingSectionTitle:Xi.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Xi.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Xi.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Ii)}render(){return o.html`
1670
+ `}return o.nothing}onFormSubmitEvent(t,e){t.preventDefault(),e?this.onMailerFeedbackSent():this.sendFeedback()}validFromEmail(){var t,e,o;return!(null==(null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)&&(null===(o=this.configuration)||void 0===o?void 0:o.mailsSentByFluidTopicsForUnauthenticatedUsers))||/^[a-zA-Z0-9_+&*-]+(?:\.[a-zA-Z0-9_+&*-]+)*@(?:[a-zA-Z0-9-]+\.)+[a-zA-Z]{2,}$/.test(this.from)}sendFeedback(){var t;this.dispatchEvent(new jr({message:this.feedbackInput.value,...(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopicsForUnauthenticatedUsers)&&{from:this.from}}))}onMailerFeedbackSent(){this.dispatchEvent(new CustomEvent("mailer-feedback"))}onOpenMoreDetails(){this.dispatchEvent(new CustomEvent("open-more-options"))}clearFeedbackInput(){setTimeout((()=>this.feedbackInput.value=""),0)}}Qr.elementDefinitions={"ft-button":wi,"ft-typography":ke,"ft-switch":oi,"ft-switch-option":Jo,"ft-text-area":bi,"ft-text-field":ir},Qr.styles=_t,Xr([i.property({type:Boolean})],Qr.prototype,"editorMode",void 0),Xr([i.property({type:Boolean})],Qr.prototype,"hideTitle",void 0),Xr([i.property({type:Boolean})],Qr.prototype,"withMoreOptionsButton",void 0),Xr([i.property({type:Boolean})],Qr.prototype,"ratingAllowed",void 0),Xr([i.property({attribute:!1})],Qr.prototype,"i18nProperties",void 0),Xr([i.property({attribute:!1})],Qr.prototype,"ratingSummary",void 0),Xr([i.property({attribute:!1})],Qr.prototype,"session",void 0),Xr([i.query(".ft-reader-feedback--feedback-input")],Qr.prototype,"feedbackInput",void 0),Xr([i.state()],Qr.prototype,"from",void 0),Xr([i.state()],Qr.prototype,"feedbackMessage",void 0),Xr([i.property()],Qr.prototype,"iconVariant",void 0),Xr([i.property()],Qr.prototype,"emptyStarIcon",void 0),Xr([i.property()],Qr.prototype,"filledStarIcon",void 0),Xr([i.property()],Qr.prototype,"emptyLikeIcon",void 0),Xr([i.property()],Qr.prototype,"filledLikeIcon",void 0),Xr([i.property()],Qr.prototype,"emptyDislikeIcon",void 0),Xr([i.property()],Qr.prototype,"filledDislikeIcon",void 0),Xr([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],Qr.prototype,"configuration",void 0),Xr([i.property()],Qr.prototype,"feedbackMailLinkBuilder",void 0);const Jr=qi.fromGwt("server");class tn{constructor(){this.subject="",this.url="",this.subjectMetadata="",this.bodyMetadata="",this.isAuthenticated=!1}update(t,e,o,i,r){var n;this.subject=t,this.url=e,this.configuration=i,this.isAuthenticated=r,this.subjectMetadata=this.filterMetadata(o,i.subjectMetadataIds).map((t=>"["+t.values[t.values.length-1]+"]")).join(""),this.bodyMetadata=this.filterMetadata(o,null!==(n=i.bodyMetadataIds)&&void 0!==n?n:[]).map((t=>"["+t.values.join(", ")+"]")).join(" ")}filterMetadata(t,e){return e.map((e=>t.find((t=>t.key===e)))).filter((t=>null!=t&&t.values.length>0))}shouldUseMailer(){var t,e;const o=this.isAuthenticated&&!(null===(t=this.configuration)||void 0===t?void 0:t.mailsSentByFluidTopics),i=!this.isAuthenticated&&!(null===(e=this.configuration)||void 0===e?void 0:e.mailsSentByFluidTopicsForUnauthenticatedUsers);return o||i}build(t){var e;if(null!=t&&0===t.length||!this.shouldUseMailer())return;const o=encodeURIComponent(this.subject+" "+this.subjectMetadata),i=encodeURIComponent(`\n${this.bodyMetadata}\n${this.url}\n_________________________________________________________________\n\n${null!=t?t:""}\n\n_________________________________________________________________\n${Jr.messages["mail.feedback.disclaimer"]()}`);return`mailto:${null===(e=this.configuration)||void 0===e?void 0:e.recipients.join(",")}?subject=${o}&body=${i}`}}const en=qi.build("inDesignerFeedbackComponent"),on={feedbackAndRatingDisabledInEditor:"Feedback and ratings performed here are not taken into account."};var rn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class nn extends(Hi(f)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Mo.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 tn,this.i18nProperties={feedbackMainTitle:Qi.properties.mapFeedbackMainTitle(),ratingSectionTitle:Qi.properties.mapRatingSectionTitle(),dichotomousRatingSectionTitle:Qi.properties.mapDichotomousRatingSectionTitle(),feedbackSectionTitle:Qi.properties.mapFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Ci)}render(){return o.html`
1677
1671
  <ft-reader-feedback
1678
1672
  ratingAllowed
1679
1673
  .i18nProperties=${this.i18nProperties}
@@ -1695,7 +1689,7 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1695
1689
  @mailer-feedback=${this.onMailerFeedbackSent}
1696
1690
  @open-more-options=${this.openMoreOptions}
1697
1691
  ></ft-reader-feedback>
1698
- `}update(t){var e,o,i,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tn,en),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Xi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:tn.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:tn.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(o=this.service)||void 0===o?void 0:o.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Xi.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Xi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new Yr)}openMoreOptions(){var t,e,o;this.dispatchEvent(new Gr({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:(null===(t=this.map)||void 0===t?void 0:t.metadata)||[],ratingType:(null===(e=this.ratingSummary)||void 0===e?void 0:e.type)||gr.NO_RATING,ratingValue:null===(o=this.ratingSummary)||void 0===o?void 0:o.rating}))}}rn.elementDefinitions={"ft-reader-feedback":Xr},on([e.redux({store:Ii.name})],rn.prototype,"session",void 0),on([e.redux({store:"reader"})],rn.prototype,"map",void 0),on([e.redux({store:Ii.name})],rn.prototype,"editorMode",void 0),on([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],rn.prototype,"configuration",void 0),on([i.state()],rn.prototype,"ratingSummary",void 0),on([i.property({type:Boolean})],rn.prototype,"hideTitle",void 0),on([i.property({type:Boolean})],rn.prototype,"withMoreOptionsButton",void 0),on([i.property()],rn.prototype,"iconVariant",void 0),on([i.property()],rn.prototype,"emptyStarIcon",void 0),on([i.property()],rn.prototype,"filledStarIcon",void 0),on([i.property()],rn.prototype,"emptyLikeIcon",void 0),on([i.property()],rn.prototype,"filledLikeIcon",void 0),on([i.property()],rn.prototype,"emptyDislikeIcon",void 0),on([i.property()],rn.prototype,"filledDislikeIcon",void 0),on([i.query("ft-reader-feedback")],rn.prototype,"readerFeedback",void 0),on([qi(Qr.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],rn.prototype,"mailSubject",void 0),on([e.reduxEventListener({eventName:"rating-changed"})],rn.prototype,"fetchRatingSummary",null);var nn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class an extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const sn=Symbol("registerInterval");class ln extends(function(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[sn]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[sn]):this.dispatchEvent(new an)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=sn,nn([i.state()],o.prototype,"tocNode",void 0),nn([i.state()],o.prototype,"disableContextInteractions",void 0),o}(p)){}var cn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class dn extends(Pi(ln)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Zo.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 Jr,this.i18nProperties={feedbackMainTitle:Xi.properties.topicFeedbackMainTitle(),ratingSectionTitle:Xi.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Xi.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Xi.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Ii)}render(){var t;return o.html`
1692
+ `}update(t){var e,o,i,r;super.update(t),t.has("map")&&this.map&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(en,on),["map","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink())&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}onStoreAvailable(t){super.onStoreAvailable(t),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.map&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getMapRating())}rate(t){this.ratingSummary&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateMap()):await(null===(i=this.service)||void 0===i?void 0:i.rateMap(null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Qi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:en.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{this.editorMode?this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:en.messages.feedbackAndRatingDisabledInEditor()})):(await(null===(o=this.service)||void 0===o?void 0:o.sendMapFeedback(t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Qi.messages.feedbackSuccess()}))),this.readerFeedback.clearFeedbackInput()}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Qi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){this.dispatchEvent(new qr)}openMoreOptions(){var t,e,o;this.dispatchEvent(new Vr({mapId:this.map.id,mapTitle:this.map.title,mapMetadata:(null===(t=this.map)||void 0===t?void 0:t.metadata)||[],ratingType:(null===(e=this.ratingSummary)||void 0===e?void 0:e.type)||br.NO_RATING,ratingValue:null===(o=this.ratingSummary)||void 0===o?void 0:o.rating}))}}nn.elementDefinitions={"ft-reader-feedback":Qr},rn([e.redux({store:Ci.name})],nn.prototype,"session",void 0),rn([e.redux({store:"reader"})],nn.prototype,"map",void 0),rn([e.redux({store:Ci.name})],nn.prototype,"editorMode",void 0),rn([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],nn.prototype,"configuration",void 0),rn([i.state()],nn.prototype,"ratingSummary",void 0),rn([i.property({type:Boolean})],nn.prototype,"hideTitle",void 0),rn([i.property({type:Boolean})],nn.prototype,"withMoreOptionsButton",void 0),rn([i.property()],nn.prototype,"iconVariant",void 0),rn([i.property()],nn.prototype,"emptyStarIcon",void 0),rn([i.property()],nn.prototype,"filledStarIcon",void 0),rn([i.property()],nn.prototype,"emptyLikeIcon",void 0),rn([i.property()],nn.prototype,"filledLikeIcon",void 0),rn([i.property()],nn.prototype,"emptyDislikeIcon",void 0),rn([i.property()],nn.prototype,"filledDislikeIcon",void 0),rn([i.query("ft-reader-feedback")],nn.prototype,"readerFeedback",void 0),rn([Xi(Jr.properties["mail.map_feedback.subject"]((t=>{var e;return[null===(e=t.map)||void 0===e?void 0:e.title]})))],nn.prototype,"mailSubject",void 0),rn([e.reduxEventListener({eventName:"rating-changed"})],nn.prototype,"fetchRatingSummary",null);var an=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class sn extends Event{constructor(){super("register-ft-reader-topic-component",{bubbles:!0,composed:!0})}}const ln=Symbol("registerInterval");class cn extends(function(t){var e;class o extends t{constructor(){super(...arguments),this.disableContextInteractions=!1,this[e]=0}connectedCallback(){super.connectedCallback(),this[ln]=window.setInterval((()=>this.tryToRegisterToTopicContext()),50)}tryToRegisterToTopicContext(){null!=this.tocNode?window.clearInterval(this[ln]):this.dispatchEvent(new sn)}disconnectedCallback(){super.disconnectedCallback(),this.tocNode=void 0}}return e=ln,an([i.state()],o.prototype,"tocNode",void 0),an([i.state()],o.prototype,"disableContextInteractions",void 0),o}(f)){}var dn=function(t,e,o,i){for(var r,n=arguments.length,a=n<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,o):i,s=t.length-1;s>=0;s--)(r=t[s])&&(a=(n<3?r(a):n>3?r(e,o,a):r(e,o))||a);return n>3&&a&&Object.defineProperty(e,o,a),a};class fn extends(Hi(cn)){constructor(){super(),this.editorMode=!1,this.hideTitle=!1,this.withMoreOptionsButton=!1,this.iconVariant=Mo.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 tn,this.i18nProperties={feedbackMainTitle:Qi.properties.topicFeedbackMainTitle(),ratingSectionTitle:Qi.properties.topicRatingSectionTitle(),dichotomousRatingSectionTitle:Qi.properties.topicDichotomousRatingSectionTitle(),feedbackSectionTitle:Qi.properties.topicFeedbackSectionTitle()},this.updateDebouncer=new e.Debouncer(100),this.sendRatingDebouncer=new e.Debouncer(500),this.addStore(Ci)}render(){var t;return o.html`
1699
1693
  <ft-reader-feedback
1700
1694
  .i18nProperties=${this.i18nProperties}
1701
1695
  ?ratingAllowed=${null===(t=this.tocNode)||void 0===t?void 0:t.hasRating}
@@ -1717,4 +1711,4 @@ const we=Symbol.for(""),Oe=t=>{if(t?.r===we)return t?._$litStatic$},Se=t=>({_$li
1717
1711
  @mailer-feedback=${this.onMailerFeedbackSent}
1718
1712
  @open-more-options=${this.openMoreOptions}
1719
1713
  ></ft-reader-feedback>
1720
- `}update(t){var e,o,i,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(tn,en),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Xi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:tn.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{!this.editorMode&&this.tocNode?(await(null===(o=this.service)||void 0===o?void 0:o.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Xi.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:tn.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Xi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new Vr(t))}openMoreOptions(){var t,e,o,i,r,n,a,s;this.dispatchEvent(new jr({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:null!==(e=null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocNode.tocId))&&void 0!==e?e:"",mapMetadata:(null===(o=this.map)||void 0===o?void 0:o.metadata)||[],breadcrumb:(null===(r=null===(i=this.stateManager)||void 0===i?void 0:i.service)||void 0===r?void 0:r.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:((null===(n=this.tocNode)||void 0===n?void 0:n.hasRating)?null===(a=this.ratingSummary)||void 0===a?void 0:a.type:gr.NO_RATING)||gr.NO_RATING,ratingValue:null===(s=this.ratingSummary)||void 0===s?void 0:s.rating}))}}dn.elementDefinitions={"ft-reader-feedback":Xr},cn([e.redux({store:Ii.name})],dn.prototype,"session",void 0),cn([e.redux({store:"reader"})],dn.prototype,"map",void 0),cn([e.redux({store:Ii.name})],dn.prototype,"editorMode",void 0),cn([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],dn.prototype,"configuration",void 0),cn([i.state()],dn.prototype,"ratingSummary",void 0),cn([i.property({type:Boolean})],dn.prototype,"hideTitle",void 0),cn([i.property({type:Boolean})],dn.prototype,"withMoreOptionsButton",void 0),cn([i.property()],dn.prototype,"iconVariant",void 0),cn([i.property()],dn.prototype,"emptyStarIcon",void 0),cn([i.property()],dn.prototype,"filledStarIcon",void 0),cn([i.property()],dn.prototype,"emptyLikeIcon",void 0),cn([i.property()],dn.prototype,"filledLikeIcon",void 0),cn([i.property()],dn.prototype,"emptyDislikeIcon",void 0),cn([i.property()],dn.prototype,"filledDislikeIcon",void 0),cn([i.query("ft-reader-feedback")],dn.prototype,"readerFeedback",void 0),cn([qi(Qr.properties["mail.feedback.subject"]((t=>{var e,o;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(o=t.map)||void 0===o?void 0:o.title]})))],dn.prototype,"mailSubject",void 0),cn([e.reduxEventListener({eventName:"rating-changed"})],dn.prototype,"fetchRatingSummary",null),e.customElement("ft-reader-map-feedback")(rn),e.customElement("ft-reader-topic-feedback")(dn),t.FtReaderFeedbackCssVariables=_t,t.FtReaderMapFeedback=rn,t.FtReaderTopicFeedback=dn,t.styles=zt}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat);
1714
+ `}update(t){var e,o,i,r;super.update(t),["tocNode","user"].some((e=>t.has(e)))&&this.tocNode&&this.updateData(),t.has("editorMode")&&this.editorMode&&this.addI18nContext(en,on),["map","tocNode","configuration","user","mailSubject"].some((e=>t.has(e)))&&this.map&&this.tocNode&&this.configuration&&this.feedbackLinkBuilder.update(this.mailSubject,null!==(o=null===(e=this.service)||void 0===e?void 0:e.getLink(this.tocNode.tocId))&&void 0!==o?o:"",this.map.metadata,this.configuration,null!=(null===(r=null===(i=this.session)||void 0===i?void 0:i.profile)||void 0===r?void 0:r.userId))}connectedCallback(){super.connectedCallback(),this.updateData()}updateData(){this.updateDebouncer.run((async()=>{var t,e;this.tocNode&&((null===(e=null===(t=this.session)||void 0===t?void 0:t.profile)||void 0===e?void 0:e.userId)||null==this.ratingSummary)&&await this.fetchRatingSummary()}))}async fetchRatingSummary(){var t;this.ratingSummary=await(null===(t=this.service)||void 0===t?void 0:t.getTopicRating(this.tocNode.tocId))}rate(t){this.ratingSummary&&this.tocNode&&(this.ratingSummary={...this.ratingSummary,rating:null==t.detail?void 0:{tocId:this.tocNode.tocId,type:this.ratingSummary.type,value:t.detail,date:new Date}},this.sendRatingDebouncer.run((()=>this.sendRating(t.detail))))}async sendRating(t){var o,i,r;if(!this.editorMode&&this.ratingSummary&&this.tocNode){try{null==t?await(null===(o=this.service)||void 0===o?void 0:o.unrateTopic(this.tocNode.tocId)):await(null===(i=this.service)||void 0===i?void 0:i.rateTopic(this.tocNode.tocId,null===(r=this.ratingSummary)||void 0===r?void 0:r.type,t))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Qi.messages.ratingFailure()}))}this.updateData()}else this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:en.messages.feedbackAndRatingDisabledInEditor()}))}async sendFeedback(t){var o;try{!this.editorMode&&this.tocNode?(await(null===(o=this.service)||void 0===o?void 0:o.sendTopicFeedback(this.tocNode.tocId,t.detail.message,t.detail.from)),this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:Qi.messages.feedbackSuccess()})),this.readerFeedback.clearFeedbackInput()):this.editorMode&&this.dispatchEvent(new e.FtNotificationEvent({type:"info",message:en.messages.feedbackAndRatingDisabledInEditor()}))}catch{this.dispatchEvent(new e.FtNotificationEvent({type:"error",message:Qi.messages.feedbackFailure()}))}}onMailerFeedbackSent(){const t=this.tocNode;this.dispatchEvent(new Yr(t))}openMoreOptions(){var t,e,o,i,r,n,a,s;this.dispatchEvent(new Gr({mapId:this.map.id,mapTitle:this.map.title,tocId:this.tocNode.tocId,topicTitle:this.tocNode.title,topicUrl:null!==(e=null===(t=this.service)||void 0===t?void 0:t.getLink(this.tocNode.tocId))&&void 0!==e?e:"",mapMetadata:(null===(o=this.map)||void 0===o?void 0:o.metadata)||[],breadcrumb:(null===(r=null===(i=this.stateManager)||void 0===i?void 0:i.service)||void 0===r?void 0:r.buildBreadcrumb(this.tocNode.tocId))||[],ratingType:((null===(n=this.tocNode)||void 0===n?void 0:n.hasRating)?null===(a=this.ratingSummary)||void 0===a?void 0:a.type:br.NO_RATING)||br.NO_RATING,ratingValue:null===(s=this.ratingSummary)||void 0===s?void 0:s.rating}))}}fn.elementDefinitions={"ft-reader-feedback":Qr},dn([e.redux({store:Ci.name})],fn.prototype,"session",void 0),dn([e.redux({store:"reader"})],fn.prototype,"map",void 0),dn([e.redux({store:Ci.name})],fn.prototype,"editorMode",void 0),dn([e.redux({store:"reader",selector:t=>{var e;return null===(e=t.configuration)||void 0===e?void 0:e.feedback}})],fn.prototype,"configuration",void 0),dn([i.state()],fn.prototype,"ratingSummary",void 0),dn([i.property({type:Boolean})],fn.prototype,"hideTitle",void 0),dn([i.property({type:Boolean})],fn.prototype,"withMoreOptionsButton",void 0),dn([i.property()],fn.prototype,"iconVariant",void 0),dn([i.property()],fn.prototype,"emptyStarIcon",void 0),dn([i.property()],fn.prototype,"filledStarIcon",void 0),dn([i.property()],fn.prototype,"emptyLikeIcon",void 0),dn([i.property()],fn.prototype,"filledLikeIcon",void 0),dn([i.property()],fn.prototype,"emptyDislikeIcon",void 0),dn([i.property()],fn.prototype,"filledDislikeIcon",void 0),dn([i.query("ft-reader-feedback")],fn.prototype,"readerFeedback",void 0),dn([Xi(Jr.properties["mail.feedback.subject"]((t=>{var e,o;return[null===(e=t.tocNode)||void 0===e?void 0:e.title,null===(o=t.map)||void 0===o?void 0:o.title]})))],fn.prototype,"mailSubject",void 0),dn([e.reduxEventListener({eventName:"rating-changed"})],fn.prototype,"fetchRatingSummary",null),e.customElement("ft-reader-map-feedback")(nn),e.customElement("ft-reader-topic-feedback")(fn),t.FtReaderFeedbackCssVariables=At,t.FtReaderMapFeedback=nn,t.FtReaderTopicFeedback=fn,t.styles=_t}({},ftGlobals.wcUtils,ftGlobals.lit,ftGlobals.litDecorators,ftGlobals.litClassMap,ftGlobals.litUnsafeHTML,ftGlobals.litRepeat);