@fluid-topics/ft-reader-content 2.0.36 → 2.0.38

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,6 +1,6 @@
1
- "use strict";(()=>{var ls=Object.create;var Fo=Object.defineProperty;var ds=Object.getOwnPropertyDescriptor;var us=Object.getOwnPropertyNames;var ps=Object.getPrototypeOf,fs=Object.prototype.hasOwnProperty;var vt=(o,e)=>()=>{try{return e||o((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var hs=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of us(e))!fs.call(o,a)&&a!==r&&Fo(o,a,{get:()=>e[a],enumerable:!(n=ds(e,a))||n.enumerable});return o};var x=(o,e,r)=>(r=o!=null?ls(ps(o)):{},hs(e||!o||!o.__esModule?Fo(r,"default",{value:o,enumerable:!0}):r,o));var I=vt((Sc,Uo)=>{Uo.exports=ftGlobals.wcUtils});var F=vt((Cc,Bo)=>{Bo.exports=ftGlobals.lit});var j=vt((Oc,Ho)=>{Ho.exports=ftGlobals.litDecorators});var _r=vt((Tc,Wo)=>{Wo.exports=ftGlobals.litRepeat});var Vo=vt((Rc,jo)=>{jo.exports=ftGlobals.litUnsafeHTML});var cs=x(I());var Tr=x(F()),Nt=x(j()),Y=x(I());var Pt=x(I()),zo=x(j());var me;(function(o){o.clusteringHelperCreated="clustering-helper-created",o.mapAttachmentsUpdate="map-attachments-update",o.visibleTopicChange="visible-topic-change",o.requestedTopicNotFound="requested-topic-not-found"})(me||(me={}));var le;(function(o){o.FEEDBACK="FEEDBACK",o.RATING="RATING",o.PRINT="PRINT",o.BOOKMARK="BOOKMARK",o.COLLECTIONS="COLLECTIONS",o.PERSONAL_BOOKS="PERSONAL_BOOKS"})(le||(le={}));var gs=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Lr=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},Rr=Symbol("registerInterval"),ys=(0,Pt.applyMixinOnce)(Symbol("toFtReaderComponent"),function(o){var e;class r extends o{constructor(){super(...arguments),this[e]=0}setReaderStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var a;return(a=this.stateManager)===null||a===void 0?void 0:a.service}connectedCallback(){super.connectedCallback(),this[Rr]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[Rr]):this.dispatchEvent(new Lr)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=Rr,gs([(0,zo.state)()],r.prototype,"stateManager",void 0),r}),Ge=class extends ys(Pt.FtLitElementRedux){};var Go=x(F()),Dt=x(I()),kr={padding:Dt.FtCssVariableFactory.create("--ft-infinite-scroll-padding","","SIZE","0"),itemsGap:Dt.FtCssVariableFactory.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),itemContainerMinHeight:Dt.FtCssVariableFactory.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px")},$o=Go.css`
1
+ "use strict";(()=>{var us=Object.create;var Bo=Object.defineProperty;var ps=Object.getOwnPropertyDescriptor;var fs=Object.getOwnPropertyNames;var hs=Object.getPrototypeOf,gs=Object.prototype.hasOwnProperty;var xt=(o,e)=>()=>{try{return e||o((e={exports:{}}).exports,e),e.exports}catch(r){throw e=0,r}};var ys=(o,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of fs(e))!gs.call(o,a)&&a!==r&&Bo(o,a,{get:()=>e[a],enumerable:!(n=ps(e,a))||n.enumerable});return o};var x=(o,e,r)=>(r=o!=null?us(hs(o)):{},ys(e||!o||!o.__esModule?Bo(r,"default",{value:o,enumerable:!0}):r,o));var w=xt((Ac,Ho)=>{Ho.exports=ftGlobals.wcUtils});var F=xt((wc,zo)=>{zo.exports=ftGlobals.lit});var j=xt((Ic,Go)=>{Go.exports=ftGlobals.litDecorators});var Pr=xt((_c,Vo)=>{Vo.exports=ftGlobals.litRepeat});var Zo=xt((Nc,Ko)=>{Ko.exports=ftGlobals.litUnsafeHTML});var ds=x(w());var Lr=x(F()),Dt=x(j()),Y=x(w());var Mt=x(w()),Wo=x(j());var me;(function(o){o.clusteringHelperCreated="clustering-helper-created",o.mapAttachmentsUpdate="map-attachments-update",o.visibleTopicChange="visible-topic-change",o.requestedTopicNotFound="requested-topic-not-found"})(me||(me={}));var le;(function(o){o.FEEDBACK="FEEDBACK",o.RATING="RATING",o.PRINT="PRINT",o.BOOKMARK="BOOKMARK",o.COLLECTIONS="COLLECTIONS",o.PERSONAL_BOOKS="PERSONAL_BOOKS"})(le||(le={}));var ms=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},_r=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},kr=Symbol("registerInterval"),bs=(0,Mt.applyMixinOnce)(Symbol("toFtReaderComponent"),function(o){var e;class r extends o{constructor(){super(...arguments),this[e]=0}setReaderStateManager(a){this.clearStateManager(),this.stateManager=a,this.addStore(a.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var a;return(a=this.stateManager)===null||a===void 0?void 0:a.service}connectedCallback(){super.connectedCallback(),this[kr]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[kr]):this.dispatchEvent(new _r)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return e=kr,ms([(0,Wo.state)()],r.prototype,"stateManager",void 0),r}),We=class extends bs(Mt.FtLitElementRedux){};var $o=x(F()),Ft=x(w()),Nr={padding:Ft.FtCssVariableFactory.create("--ft-infinite-scroll-padding","","SIZE","0"),itemsGap:Ft.FtCssVariableFactory.create("--ft-infinite-scroll-items-gap","","SIZE","4px"),itemContainerMinHeight:Ft.FtCssVariableFactory.create("--ft-infinite-scroll-item-container-min-height","","SIZE",".1px")},jo=$o.css`
2
2
  .items-container {
3
- padding: ${kr.padding};
3
+ padding: ${Nr.padding};
4
4
  outline: none;
5
5
  }
6
6
 
@@ -17,7 +17,7 @@
17
17
  By adding this gap we ensure that the previous item will be fully hidden
18
18
  and even if its size changes, it will not impact the scroll offset
19
19
  */
20
- margin-top: ${kr.itemsGap};
20
+ margin-top: ${Nr.itemsGap};
21
21
  }
22
22
 
23
23
  .item-container:not(.rendered) {
@@ -26,36 +26,36 @@
26
26
 
27
27
  .item-container.rendered {
28
28
  display: flow-root;
29
- min-height: ${kr.itemContainerMinHeight};
29
+ min-height: ${Nr.itemContainerMinHeight};
30
30
  }
31
- `;var $e=x(F()),$=x(j()),Ko=x(_r()),w=x(I()),Zo=x(Vo());var G=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Nr=class extends CustomEvent{constructor(e,r){super("visible-items-change",{detail:{indexes:e,items:r,visibleIndexes:e,visibleItems:r}})}},Pr=class extends CustomEvent{constructor(e,r){super("rendered-items-change",{detail:{indexes:e,items:r}})}},Dr=class extends Event{constructor(){super("scrolled-to-target")}},ms=o=>(o??[])[(o??[]).length-1],_=class extends w.FtLitElement{constructor(){super(...arguments),this.items=[],this.renderItem=()=>$e.html``,this.getItemKey=(e,r)=>`${r} - ${JSON.stringify(e)}`,this.internalScroll=!1,this.renderBeforeFirst=1,this.renderAfterLast=1,this.ensureScrollToTarget=!1,this.disableScrollManagement=!1,this.visibleItems=[],this.scrolledToTarget=!1,this.scrolling=!1,this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.scrollDebouncer=new w.Debouncer(5),this.scrollDoneDebouncer=new w.Debouncer(10),this.onVisibilityChange=e=>{let r=new Set(this.visibleItems),n=new Set;for(let a of e){let s=+a.target.getAttribute("data-item-index");a.intersectionRect.height>0?(r.add(s),n.add(s)):n.has(s)||r.delete(s)}this.visibleItems=[...r].sort((a,s)=>a-s)},this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange),this.scrollingDebouncer=new w.Debouncer(50),this.ignoreNextScrollEvent=!1,this.scrollListener=()=>{var e;if(this.disableScrollManagement)return;let r=this.ignoreNextScrollEvent;this.ignoreNextScrollEvent=!1,r||(this.scrolling=!0,this.scrollingDebouncer.run(()=>this.scrolling=!1));let n=this.scrollable.scrollTop,a=n-((e=this.lastScrollTop)!==null&&e!==void 0?e:0);if(this.lastScrollTop=n,this.scrolledToTarget&&(this.restoreScrollIfNeeded(r?0:a),!r||this.scrollRestorationItem==null)){let s=this.searchFirstVisibleItem(n,this.itemsContainer.children);this.scrollRestorationItem=s?+s.getAttribute("data-item-index"):void 0,this.scrollRestorationOffset=n-this.getOffset(s)}},this.restoreScrollIfNeeded=(e=0)=>{var r;let n=this.scrollable.scrollHeight,a=n-((r=this.lastScrollHeight)!==null&&r!==void 0?r:n);if(this.lastScrollHeight=n,a!==0&&this.scrolledToTarget&&this.scrollRestorationItem!=null&&this.scrollRestorationOffset!=null&&!(this.scrollRestorationItem===0&&this.scrollRestorationOffset<0)){let s=this.getItem(this.scrollRestorationItem),c=this.getOffset(s),d=(0,w.minmax)(this.scrollRestorationItem===0?-c:1,this.scrollRestorationOffset,s.clientHeight-1),u=c+d+e-this.scrollable.scrollTop;(Math.abs(a-u)<4||Math.abs(u)>5)&&(this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop+=u)}},this._shouldRestoreScroll=!1,this.scrollAdjustment=()=>{this.restoreScrollIfNeeded(),this.shouldRestoreScroll&&requestAnimationFrame(this.scrollAdjustment)},this.onMutation=()=>{for(let e of this.itemsContainer.children)this.intersectionObserver.observe(e)},this.mutationObserver=new MutationObserver(this.onMutation),this.lastRenderedItemsLength=0,this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer=new w.Debouncer(10)}get scrollable(){var e;return(e=this._scrollable)!==null&&e!==void 0?e:document.body}set scrollable(e){var r,n,a;this._scrollable!==e&&(this._scrollable&&(this._scrollable.removeEventListener("scroll",this.scrollListener),this.initialOverflowAnchorValue&&(this._scrollable.style.overflowAnchor=this.initialOverflowAnchorValue),w.scrollHelper.release(this,this._scrollable)),this._scrollable=w.scrollHelper.lock(this,e),e&&!this._scrollable&&console.error("Scrollable parent is already locked",this,e),(r=this._scrollable)===null||r===void 0||r.addEventListener("scroll",this.scrollListener),this.lastScrollTop=(n=this._scrollable)===null||n===void 0?void 0:n.scrollTop,this.lastScrollHeight=(a=this._scrollable)===null||a===void 0?void 0:a.scrollHeight,this._scrollable&&(this.initialOverflowAnchorValue=getComputedStyle(this._scrollable).overflowAnchor,this._scrollable.style.overflowAnchor="none"))}render(){return $e.html`
31
+ `;var $e=x(F()),W=x(j()),qo=x(Pr()),I=x(w()),Yo=x(Zo());var G=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Dr=class extends CustomEvent{constructor(e,r){super("visible-items-change",{detail:{indexes:e,items:r,visibleIndexes:e,visibleItems:r}})}},Mr=class extends CustomEvent{constructor(e,r){super("rendered-items-change",{detail:{indexes:e,items:r}})}},Fr=class extends Event{constructor(){super("scrolled-to-target")}},vs=o=>(o??[])[(o??[]).length-1],_=class extends I.FtLitElement{constructor(){super(...arguments),this.items=[],this.renderItem=()=>$e.html``,this.getItemKey=(e,r)=>`${r} - ${JSON.stringify(e)}`,this.internalScroll=!1,this.renderBeforeFirst=1,this.renderAfterLast=1,this.ensureScrollToTarget=!1,this.disableScrollManagement=!1,this.visibleItems=[],this.scrolledToTarget=!1,this.scrolling=!1,this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.scrollDebouncer=new I.Debouncer(5),this.scrollDoneDebouncer=new I.Debouncer(10),this.onVisibilityChange=e=>{let r=new Set(this.visibleItems),n=new Set;for(let a of e){let s=+a.target.getAttribute("data-item-index");a.intersectionRect.height>0?(r.add(s),n.add(s)):n.has(s)||r.delete(s)}this.visibleItems=[...r].sort((a,s)=>a-s)},this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange),this.scrollingDebouncer=new I.Debouncer(50),this.ignoreNextScrollEvent=!1,this.scrollListener=()=>{var e;if(this.disableScrollManagement)return;let r=this.ignoreNextScrollEvent;this.ignoreNextScrollEvent=!1,r||(this.scrolling=!0,this.scrollingDebouncer.run(()=>this.scrolling=!1));let n=this.scrollable.scrollTop,a=n-((e=this.lastScrollTop)!==null&&e!==void 0?e:0);if(this.lastScrollTop=n,this.scrolledToTarget&&(this.restoreScrollIfNeeded(r?0:a),!r||this.scrollRestorationItem==null)){let s=this.searchFirstVisibleItem(n,this.itemsContainer.children);this.scrollRestorationItem=s?+s.getAttribute("data-item-index"):void 0,this.scrollRestorationOffset=n-this.getOffset(s)}},this.restoreScrollIfNeeded=(e=0)=>{var r;let n=this.scrollable.scrollHeight,a=n-((r=this.lastScrollHeight)!==null&&r!==void 0?r:n);if(this.lastScrollHeight=n,a!==0&&this.scrolledToTarget&&this.scrollRestorationItem!=null&&this.scrollRestorationOffset!=null&&!(this.scrollRestorationItem===0&&this.scrollRestorationOffset<0)){let s=this.getItem(this.scrollRestorationItem),c=this.getOffset(s),d=(0,I.minmax)(this.scrollRestorationItem===0?-c:1,this.scrollRestorationOffset,s.clientHeight-1),u=c+d+e-this.scrollable.scrollTop;(Math.abs(a-u)<4||Math.abs(u)>5)&&(this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop+=u)}},this._shouldRestoreScroll=!1,this.scrollAdjustment=()=>{this.restoreScrollIfNeeded(),this.shouldRestoreScroll&&requestAnimationFrame(this.scrollAdjustment)},this.onMutation=()=>{for(let e of this.itemsContainer.children)this.intersectionObserver.observe(e)},this.mutationObserver=new MutationObserver(this.onMutation),this.lastRenderedItemsLength=0,this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer=new I.Debouncer(10)}get scrollable(){var e;return(e=this._scrollable)!==null&&e!==void 0?e:document.body}set scrollable(e){var r,n,a;this._scrollable!==e&&(this._scrollable&&(this._scrollable.removeEventListener("scroll",this.scrollListener),this.initialOverflowAnchorValue&&(this._scrollable.style.overflowAnchor=this.initialOverflowAnchorValue),I.scrollHelper.release(this,this._scrollable)),this._scrollable=I.scrollHelper.lock(this,e),e&&!this._scrollable&&console.error("Scrollable parent is already locked",this,e),(r=this._scrollable)===null||r===void 0||r.addEventListener("scroll",this.scrollListener),this.lastScrollTop=(n=this._scrollable)===null||n===void 0?void 0:n.scrollTop,this.lastScrollHeight=(a=this._scrollable)===null||a===void 0?void 0:a.scrollHeight,this._scrollable&&(this.initialOverflowAnchorValue=getComputedStyle(this._scrollable).overflowAnchor,this._scrollable.style.overflowAnchor="none"))}render(){return $e.html`
32
32
  <div @scroll-into-view=${this.onScrollIntoView} class="items-container ${this.internalScroll?"scrollable":""}" tabindex="-1">
33
- ${(0,Ko.repeat)(this.items,(e,r)=>this.getItemKey(e,r),(e,r)=>this.renderItemContainer(e,r))}
33
+ ${(0,qo.repeat)(this.items,(e,r)=>this.getItemKey(e,r),(e,r)=>this.renderItemContainer(e,r))}
34
34
  </div>
35
35
  `}renderItemContainer(e,r){this.prepareRenderIfNeeded(r);let n=this.scrolledToTarget&&this.visibleItems.includes(r),a=this.renderedIndexes.has(r);return $e.html`
36
36
  <div id="item-${r}"
37
37
  class="item-container ${a?"rendered":""} ${n?"visible":""}"
38
38
  data-item-index="${r}">
39
- ${a?(()=>{let c=this.renderItem(e,r);return typeof c=="string"?(0,Zo.unsafeHTML)(c):c})():$e.nothing}
39
+ ${a?(()=>{let c=this.renderItem(e,r);return typeof c=="string"?(0,Yo.unsafeHTML)(c):c})():$e.nothing}
40
40
  </div>
41
- `}prepareRenderIfNeeded(e){let r=this.renderApprovalTimeouts[e]!=null;this.inRenderRange(e)&&!r&&(this.renderApprovalTimeouts[e]=setTimeout(()=>{this.inRenderRange(e)?(this.addRenderedIndex(e),this.requestUpdate()):this.renderApprovalTimeouts[e]=void 0},300))}addRenderedIndex(e){e>=0&&!this.renderedIndexes.has(e)&&this.renderedIndexes.add(e)}inRenderRange(e){return e>=this.visibleItems[0]-this.renderBeforeFirst&&e<=ms(this.visibleItems)+this.renderAfterLast}isRendered(e){return this.renderedIndexes.has(this.items.indexOf(e))}resetScroll(e=!0){if(this.disableScrollManagement)return;this.shouldRestoreScroll=!1,this.intersectionObserver.disconnect(),this.visibleItems=[],this.scrolledToTarget=!1,this.updateScrollableParent(e);let r=this.resolveScrollToIndex();this.addRenderedIndex(r),this.scrollToTarget(r),this.scrollDoneDebouncer.run(()=>{this.scrollToTarget(r),this.scrolledToTarget=!0,this.shouldRestoreScroll=!0,this.resetIntersectionObserver(),this.ensureScrollPosition(r)})}updateScrollableParent(e){this.internalScroll&&this.scrollable!==this.internalScrollable?this.scrollable=this.internalScrollable:!this.internalScroll&&e&&(this.scrollable=w.scrollHelper.findFirstScrollableParent(this.itemsContainer))}ensureScrollPosition(e){!this.ensureScrollToTarget||e<0||this.scrollDebouncer.run(()=>{Math.abs(this.scrollable.scrollTop-this.getOffset(e))>5&&this.scrollToTarget(e)},500)}resolveScrollToIndex(){var e;let r=(e=this.scrollToIndex)!==null&&e!==void 0?e:this.scrollToItem?this.items.indexOf(this.scrollToItem):-1;return r>=this.items.length?-1:r}getItem(e){var r,n;return(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelector(`#item-${e}`))!==null&&n!==void 0?n:this.shadowRoot.querySelector("#item-0")}scrollToTarget(e){e<=0?(this.scrollable.scrollTop=0,this.scrollRestorationOffset=-this.getOffset(e)):(this.scrollable.scrollTop=this.getOffset(e),this.scrollRestorationOffset=0),this.scrollRestorationItem=e>=0?e:void 0}onScrollIntoView(e){var r;if(this.disableScrollManagement)return;this.scrollDebouncer.cancel();let n=e.composedPath()[0],a=this.getOffset(n),s=(r=e.composedPath().find(c=>typeof c.matches=="function"&&c.matches(".item-container")))===null||r===void 0?void 0:r.getAttribute("data-item-index");this.scrollRestorationItem=s==null?this.scrollRestorationItem:+s,this.scrollRestorationOffset=a-this.getOffset(this.scrollRestorationItem),this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop=a}getOffset(e){let r=typeof e=="number"?this.getItem(e):e;return r?w.scrollHelper.getAbsoluteScrollOffset(this.scrollable,r):0}appendItems(...e){this.items=[...this.items,...e]}prependItems(...e){this.items=[...e,...this.items]}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.mutationObserver.disconnect(),this.mutationObserver.observe(this.itemsContainer,{childList:!0}),this.resetScroll()},0)}disconnectedCallback(){super.disconnectedCallback(),this.scrollable=void 0,this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),this.shouldRestoreScroll=!1}resetIntersectionObserver(){this.intersectionObserver.disconnect(),this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange,{root:this.scrollable,rootMargin:"-8px",threshold:[0,.01,.1,1]}),this.onMutation()}searchFirstVisibleItem(e,r,n,a){if(n=n??0,a=a??r.length-1,a<=n)return r[n];let s=Math.floor((a-n)/2)+n,c=r[s],d=this.getOffset(c);return d>e?this.searchFirstVisibleItem(e,r,n,s-1):d+c.clientHeight<e?this.searchFirstVisibleItem(e,r,s+1,a):c}get shouldRestoreScroll(){return this._shouldRestoreScroll}set shouldRestoreScroll(e){let r=e&&!this._shouldRestoreScroll;this._shouldRestoreScroll=e,r&&requestAnimationFrame(this.scrollAdjustment)}willUpdate(e){super.willUpdate(e),e.has("items")&&(this.renderApprovalTimeouts.forEach(n=>clearTimeout(n)),this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.lastRenderedItemsLength=0),((e.has("scrollToItem")||e.has("scrollToIndex"))&&(this.scrollToItem!=null||this.scrollToIndex!=null)||e.has("internalScroll"))&&(0,w.waitFor)(()=>this.itemsContainer).then(()=>this.resetScroll())}updated(e){super.updated(e),(e.has("visibleItems")||e.has("items"))&&this.onVisibleItemsChange(),e.has("scrolledToTarget")&&this.scrolledToTarget&&(this.scrollToItem!=null||this.scrollToIndex!=null)&&this.dispatchEvent(new Dr)}contentAvailableCallback(e){var r,n;super.contentAvailableCallback(e);let a=[...(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".item-container.rendered"))!==null&&n!==void 0?n:[]].map(s=>+s.getAttribute("data-item-index"));this.lastRenderedItemsLength!==a.length&&(this.dispatchRenderedItemsChangeEvent(a),this.lastRenderedItemsLength=a.length)}dispatchRenderedItemsChangeEvent(e){let r=e??[...this.renderedIndexes].sort((n,a)=>n-a);this.dispatchEvent(new Pr(r,r.map(n=>this.items[n])))}onVisibleItemsChange(){this.visibleItems.every((r,n)=>this.visibleItems[n+1]==null||r+1===this.visibleItems[n+1])||this.resetVisibleItemsAttempted?(this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer.cancel(),this.dispatchVisibleItemsEvent()):this.resetVisibleItemsDebouncer.run(()=>{this.resetVisibleItemsAttempted=!0,this.visibleItems=[],this.resetIntersectionObserver()})}dispatchVisibleItemsEvent(){var e;(e=this.cancelableDispatchEvent)===null||e===void 0||e.cancel(),this.cancelableDispatchEvent=(0,w.cancelable)((0,w.waitUntil)(()=>this.scrolledToTarget&&!this.scrolling)),this.cancelableDispatchEvent.then(()=>this.dispatchEvent(new Nr(this.visibleItems,this.visibleItems.map(r=>this.items[r])))).catch(()=>null)}};_.styles=$o;G([(0,$.property)({attribute:!1,hasChanged:w.hasChanged})],_.prototype,"items",void 0);G([(0,$.property)({attribute:!1})],_.prototype,"renderItem",void 0);G([(0,$.property)({attribute:!1})],_.prototype,"getItemKey",void 0);G([(0,$.property)({type:Object})],_.prototype,"scrollToItem",void 0);G([(0,w.numberProperty)()],_.prototype,"scrollToIndex",void 0);G([(0,$.property)({type:Boolean})],_.prototype,"internalScroll",void 0);G([(0,w.numberProperty)()],_.prototype,"renderBeforeFirst",void 0);G([(0,w.numberProperty)()],_.prototype,"renderAfterLast",void 0);G([(0,$.property)({type:Boolean})],_.prototype,"ensureScrollToTarget",void 0);G([(0,$.property)({type:Boolean})],_.prototype,"disableScrollManagement",void 0);G([(0,$.state)({hasChanged(o,e){return o!=null&&e==null||o.length!==e.length||o[0]!==e[0]}})],_.prototype,"visibleItems",void 0);G([(0,$.query)(".scrollable")],_.prototype,"internalScrollable",void 0);G([(0,$.query)(".items-container")],_.prototype,"itemsContainer",void 0);G([(0,$.state)()],_.prototype,"scrolledToTarget",void 0);G([(0,$.state)()],_.prototype,"scrolling",void 0);var Yo=x(I());var qo={"ft-infinite-scroll":_};(0,Yo.customElements)(qo);var Qo=x(F());var Xo=Qo.css`
42
- `;var Jo=x(F());var en=Jo.css`
43
- `;var tn=x(F()),We=x(j());var Mt=x(I()),Ee=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Q=class extends Ge{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this.registeredComponents=[]}render(){return tn.html`
41
+ `}prepareRenderIfNeeded(e){let r=this.renderApprovalTimeouts[e]!=null;this.inRenderRange(e)&&!r&&(this.renderApprovalTimeouts[e]=setTimeout(()=>{this.inRenderRange(e)?(this.addRenderedIndex(e),this.requestUpdate()):this.renderApprovalTimeouts[e]=void 0},300))}addRenderedIndex(e){e>=0&&!this.renderedIndexes.has(e)&&this.renderedIndexes.add(e)}inRenderRange(e){return e>=this.visibleItems[0]-this.renderBeforeFirst&&e<=vs(this.visibleItems)+this.renderAfterLast}isRendered(e){return this.renderedIndexes.has(this.items.indexOf(e))}resetScroll(e=!0){if(this.disableScrollManagement)return;this.shouldRestoreScroll=!1,this.intersectionObserver.disconnect(),this.visibleItems=[],this.scrolledToTarget=!1,this.updateScrollableParent(e);let r=this.resolveScrollToIndex();this.addRenderedIndex(r),this.scrollToTarget(r),this.scrollDoneDebouncer.run(()=>{this.scrollToTarget(r),this.scrolledToTarget=!0,this.shouldRestoreScroll=!0,this.resetIntersectionObserver(),this.ensureScrollPosition(r)})}updateScrollableParent(e){this.internalScroll&&this.scrollable!==this.internalScrollable?this.scrollable=this.internalScrollable:!this.internalScroll&&e&&(this.scrollable=I.scrollHelper.findFirstScrollableParent(this.itemsContainer))}ensureScrollPosition(e){!this.ensureScrollToTarget||e<0||this.scrollDebouncer.run(()=>{Math.abs(this.scrollable.scrollTop-this.getOffset(e))>5&&this.scrollToTarget(e)},500)}resolveScrollToIndex(){var e;let r=(e=this.scrollToIndex)!==null&&e!==void 0?e:this.scrollToItem?this.items.indexOf(this.scrollToItem):-1;return r>=this.items.length?-1:r}getItem(e){var r,n;return(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelector(`#item-${e}`))!==null&&n!==void 0?n:this.shadowRoot.querySelector("#item-0")}scrollToTarget(e){e<=0?(this.scrollable.scrollTop=0,this.scrollRestorationOffset=-this.getOffset(e)):(this.scrollable.scrollTop=this.getOffset(e),this.scrollRestorationOffset=0),this.scrollRestorationItem=e>=0?e:void 0}onScrollIntoView(e){var r;if(this.disableScrollManagement)return;this.scrollDebouncer.cancel();let n=e.composedPath()[0],a=this.getOffset(n),s=(r=e.composedPath().find(c=>typeof c.matches=="function"&&c.matches(".item-container")))===null||r===void 0?void 0:r.getAttribute("data-item-index");this.scrollRestorationItem=s==null?this.scrollRestorationItem:+s,this.scrollRestorationOffset=a-this.getOffset(this.scrollRestorationItem),this.ignoreNextScrollEvent=!0,this.scrollable.scrollTop=a}getOffset(e){let r=typeof e=="number"?this.getItem(e):e;return r?I.scrollHelper.getAbsoluteScrollOffset(this.scrollable,r):0}appendItems(...e){this.items=[...this.items,...e]}prependItems(...e){this.items=[...e,...this.items]}connectedCallback(){super.connectedCallback(),setTimeout(()=>{this.mutationObserver.disconnect(),this.mutationObserver.observe(this.itemsContainer,{childList:!0}),this.resetScroll()},0)}disconnectedCallback(){super.disconnectedCallback(),this.scrollable=void 0,this.intersectionObserver.disconnect(),this.mutationObserver.disconnect(),this.shouldRestoreScroll=!1}resetIntersectionObserver(){this.intersectionObserver.disconnect(),this.intersectionObserver=new IntersectionObserver(this.onVisibilityChange,{root:this.scrollable,rootMargin:"-8px",threshold:[0,.01,.1,1]}),this.onMutation()}searchFirstVisibleItem(e,r,n,a){if(n=n??0,a=a??r.length-1,a<=n)return r[n];let s=Math.floor((a-n)/2)+n,c=r[s],d=this.getOffset(c);return d>e?this.searchFirstVisibleItem(e,r,n,s-1):d+c.clientHeight<e?this.searchFirstVisibleItem(e,r,s+1,a):c}get shouldRestoreScroll(){return this._shouldRestoreScroll}set shouldRestoreScroll(e){let r=e&&!this._shouldRestoreScroll;this._shouldRestoreScroll=e,r&&requestAnimationFrame(this.scrollAdjustment)}willUpdate(e){super.willUpdate(e),e.has("items")&&(this.renderApprovalTimeouts.forEach(n=>clearTimeout(n)),this.renderApprovalTimeouts=[],this.renderedIndexes=new Set,this.lastRenderedItemsLength=0),((e.has("scrollToItem")||e.has("scrollToIndex"))&&(this.scrollToItem!=null||this.scrollToIndex!=null)||e.has("internalScroll"))&&(0,I.waitFor)(()=>this.itemsContainer).then(()=>this.resetScroll())}updated(e){super.updated(e),(e.has("visibleItems")||e.has("items"))&&this.onVisibleItemsChange(),e.has("scrolledToTarget")&&this.scrolledToTarget&&(this.scrollToItem!=null||this.scrollToIndex!=null)&&this.dispatchEvent(new Fr)}contentAvailableCallback(e){var r,n;super.contentAvailableCallback(e);let a=[...(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".item-container.rendered"))!==null&&n!==void 0?n:[]].map(s=>+s.getAttribute("data-item-index"));this.lastRenderedItemsLength!==a.length&&(this.dispatchRenderedItemsChangeEvent(a),this.lastRenderedItemsLength=a.length)}dispatchRenderedItemsChangeEvent(e){let r=e??[...this.renderedIndexes].sort((n,a)=>n-a);this.dispatchEvent(new Mr(r,r.map(n=>this.items[n])))}onVisibleItemsChange(){this.visibleItems.every((r,n)=>this.visibleItems[n+1]==null||r+1===this.visibleItems[n+1])||this.resetVisibleItemsAttempted?(this.resetVisibleItemsAttempted=!1,this.resetVisibleItemsDebouncer.cancel(),this.dispatchVisibleItemsEvent()):this.resetVisibleItemsDebouncer.run(()=>{this.resetVisibleItemsAttempted=!0,this.visibleItems=[],this.resetIntersectionObserver()})}dispatchVisibleItemsEvent(){var e;(e=this.cancelableDispatchEvent)===null||e===void 0||e.cancel(),this.cancelableDispatchEvent=(0,I.cancelable)((0,I.waitUntil)(()=>this.scrolledToTarget&&!this.scrolling)),this.cancelableDispatchEvent.then(()=>this.dispatchEvent(new Dr(this.visibleItems,this.visibleItems.map(r=>this.items[r])))).catch(()=>null)}};_.styles=jo;G([(0,W.property)({attribute:!1,hasChanged:I.hasChanged})],_.prototype,"items",void 0);G([(0,W.property)({attribute:!1})],_.prototype,"renderItem",void 0);G([(0,W.property)({attribute:!1})],_.prototype,"getItemKey",void 0);G([(0,W.property)({type:Object})],_.prototype,"scrollToItem",void 0);G([(0,I.numberProperty)()],_.prototype,"scrollToIndex",void 0);G([(0,W.property)({type:Boolean})],_.prototype,"internalScroll",void 0);G([(0,I.numberProperty)()],_.prototype,"renderBeforeFirst",void 0);G([(0,I.numberProperty)()],_.prototype,"renderAfterLast",void 0);G([(0,W.property)({type:Boolean})],_.prototype,"ensureScrollToTarget",void 0);G([(0,W.property)({type:Boolean})],_.prototype,"disableScrollManagement",void 0);G([(0,W.state)({hasChanged(o,e){return o!=null&&e==null||o.length!==e.length||o[0]!==e[0]}})],_.prototype,"visibleItems",void 0);G([(0,W.query)(".scrollable")],_.prototype,"internalScrollable",void 0);G([(0,W.query)(".items-container")],_.prototype,"itemsContainer",void 0);G([(0,W.state)()],_.prototype,"scrolledToTarget",void 0);G([(0,W.state)()],_.prototype,"scrolling",void 0);var Xo=x(w());var Qo={"ft-infinite-scroll":_};(0,Xo.customElements)(Qo);var Jo=x(F());var en=Jo.css`
42
+ `;var tn=x(F());var rn=tn.css`
43
+ `;var on=x(F()),je=x(j());var Ut=x(w()),Ae=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Q=class extends We{constructor(){super(...arguments),this.disableContextInteractions=!1,this.headingLevelsShift=0,this.registeredComponents=[]}render(){return on.html`
44
44
  <article id=${this.tocId}>
45
45
  <slot @register-ft-reader-topic-component=${this.registerComponent}></slot>
46
46
  </article>
47
- `}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.registeredComponents.push(e),e.tocNode=this.tocNode,e.disableContextInteractions=this.disableContextInteractions,e.headingLevelsShift=this.headingLevelsShift}update(e){super.update(e),["mapId","tocId","stateManager","translationDestinationLanguage","translationProfileId"].some(r=>e.has(r))&&this.setTocNode(),e.has("tocNode")&&this.registeredComponents.forEach(r=>r.tocNode=this.tocNode)}async setTocNode(){var e;this.tocNode=void 0,this.tocNode=this.mapId&&this.tocId?await((e=this.stateManager)===null||e===void 0?void 0:e.getTocNode(this.tocId)):void 0}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}};Q.styles=en;Ee([(0,Mt.redux)({selector:o=>{var e;return(e=o.map)===null||e===void 0?void 0:e.id}})],Q.prototype,"mapId",void 0);Ee([(0,Mt.redux)({selector:o=>o.translation.profileId})],Q.prototype,"translationProfileId",void 0);Ee([(0,Mt.redux)({selector:o=>o.translation.destinationLanguage})],Q.prototype,"translationDestinationLanguage",void 0);Ee([(0,We.property)()],Q.prototype,"tocId",void 0);Ee([(0,We.property)({type:Boolean})],Q.prototype,"disableContextInteractions",void 0);Ee([(0,We.property)({type:Number})],Q.prototype,"headingLevelsShift",void 0);Ee([(0,We.state)()],Q.prototype,"tocNode",void 0);var on=x(I());var rn={"ft-reader-topic-context":Q};(0,on.customElements)(rn);var nn=x(F());var an=nn.css`
48
- `;var Tt=x(F()),Pe=x(j()),D=x(I());var V=x(I());var sn=x(I()),bs={setTranslationDestinationLanguage:(o,e)=>{o.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(o,e)=>{o.translation.sourceLanguage=e.payload},setTranslationProfileId:(o,e)=>{o.translation.profileId=e.payload},setTranslationLoading:(o,e)=>{o.translation.isLoading=e.payload},setTranslationError:(o,e)=>{o.translation.isError=e.payload},setTopicsRating:(o,e)=>{for(let r in e.payload)o.topicsRating[r]=e.payload[r]}},cn=o=>sn.FtReduxStore.get({name:"ft-reader-"+o,initialState:{mapId:void 0,renderedTopics:[],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,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1},linkPreviewDialogId:void 0},reducers:bs});var Mr=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},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,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,r,n){return e.flatMap(a=>{var s;return a.pageConfiguration&&this.registerPage(this.buildPage(a,n)),a.tocId==null?this.extractPagesToc(a.children,r,n):[{tocId:a.tocId,title:(s=a.title)!==null&&s!==void 0?s:"",untranslatedTitle:a.untranslatedTitle,depth:r,children:this.extractPagesToc(a.children,r+1,a.tocId)}]})}convertNodes(e,r,n){return e.flatMap(a=>{var s,c,d;if(a.tocId==null)return[...this.convertSectionNodes((s=a.pageToc)!==null&&s!==void 0?s:[],r,a.tocId),...this.convertNodes(a.children,r,a.tocId)];let u=(c=a.prettyUrl)===null||c===void 0?void 0:c.replace(/^\//,""),p={tocId:a.tocId,contentId:a.contentId,title:a.title,untranslatedTitle:a.untranslatedTitle,hasRating:a.hasRating,origin:a.origin,prettyUrl:u,depth:r,parentTocId:n,children:[]};this.register(p);let f=this.convertSectionNodes((d=a.pageToc)!==null&&d!==void 0?d:[],r+1,a.tocId),h=this.convertNodes(a.children,r+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(e,r,n){return e.flatMap(a=>{var s;let c=(s=a.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),d={...a,prettyUrl:c,depth:r,parentTocId:n,children:[]};return this.register(d),d.children=this.convertSectionNodes(a.children,r+1,a.tocId),[d]})}buildPage(e,r){var n,a,s,c,d,u,p,f;let h={number:this.pages.length+1,title:(n=e.title)!==null&&n!==void 0?n:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(c=(a=e.tocId)!==null&&a!==void 0?a:(s=e.pageToc)===null||s===void 0?void 0:s[0].tocId)!==null&&c!==void 0?c:"root",toc:((d=e.pageToc)!==null&&d!==void 0?d:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},g=(y,v)=>(v?h.topics:h.hiddenTopics).push(y),m=(p=(u=e.pageConfiguration)===null||u===void 0?void 0:u.parentsVisibility)!==null&&p!==void 0?p:[];return h.breadcrumb.forEach((y,v)=>{g(y,m[v])}),e.tocId&&g(e.tocId,e.pageConfiguration.isVisible),h.topics.push(...this.tocIds((f=e.pageToc)!==null&&f!==void 0?f:[])),h}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Ft=class{convertPaginatedToc(e,r){return new Mr(e,r).build()}};var ln;(function(o){o.black="black",o.green="green",o.blue="blue",o.purple="purple",o.red="red",o.orange="orange",o.yellow="yellow"})(ln||(ln={}));var dn;(function(o){o.OFFICIAL="OFFICIAL",o.PERSONAL="PERSONAL",o.SHARED="SHARED"})(dn||(dn={}));var un;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(un||(un={}));var pn;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(pn||(pn={}));var fn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(fn||(fn={}));var hn;(function(o){o.VALUE="VALUE",o.DATE="DATE",o.RANGE="RANGE"})(hn||(hn={}));var Ut;(function(o){o.OFFICIAL="OFFICIAL",o.AI="AI"})(Ut||(Ut={}));var gn;(function(o){o.BOOKMARK__CREATE="BOOKMARK__CREATE",o.BOOKMARK__DELETE="BOOKMARK__DELETE",o.CASE_DEFLECTION__START="CASE_DEFLECTION__START",o.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",o.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",o.CHATBOT__RATE="CHATBOT__RATE",o.COLLECTION__CREATE="COLLECTION__CREATE",o.COLLECTION__UPDATE="COLLECTION__UPDATE",o.COLLECTION__DELETE="COLLECTION__DELETE",o.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",o.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",o.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",o.DOCUMENT__PRINT="DOCUMENT__PRINT",o.DOCUMENT__PROCESS="DOCUMENT__PROCESS",o.DOCUMENT__RATE="DOCUMENT__RATE",o.DOCUMENT__SEARCH="DOCUMENT__SEARCH",o.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",o.DOCUMENT__UNRATE="DOCUMENT__UNRATE",o.FEEDBACK__SEND="FEEDBACK__SEND",o.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",o.AI__RATE="AI__RATE",o.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",o.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",o.KHUB__PROCESS="KHUB__PROCESS",o.KHUB__SEARCH="KHUB__SEARCH",o.LABELS__DOWNLOAD="LABELS__DOWNLOAD",o.LINK__SHARE="LINK__SHARE",o.PAGE__DISPLAY="PAGE__DISPLAY",o.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",o.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",o.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",o.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",o.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",o.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",o.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",o.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",o.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",o.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",o.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",o.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",o.TOPIC__RATE="TOPIC__RATE",o.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",o.TOPIC__UNRATE="TOPIC__UNRATE",o.USER__LOGIN="USER__LOGIN",o.USER__LOGOUT="USER__LOGOUT",o.HEARTBEAT="HEARTBEAT"})(gn||(gn={}));var yn;(function(o){o.STANDARD="STANDARD",o.STRUCTURAL="STRUCTURAL"})(yn||(yn={}));var mn;(function(o){o.THIRD_PARTY="THIRD_PARTY",o.OFF_THE_GRID="OFF_THE_GRID",o.CONTENT_PACKAGER="CONTENT_PACKAGER",o.PAGES="PAGES",o.DESIGNED_READER="DESIGNED_READER"})(mn||(mn={}));var bn;(function(o){o.HOMEPAGE="HOMEPAGE",o.CUSTOM="CUSTOM",o.HEADER="HEADER",o.READER="READER",o.TOPIC_TEMPLATE="TOPIC_TEMPLATE",o.SEARCH="SEARCH",o.SEARCH_RESULT="SEARCH_RESULT",o.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",o.LINK_PREVIEW="LINK_PREVIEW",o.UD_VIEWER="UD_VIEWER",o.ASSET_VIEWER="ASSET_VIEWER"})(bn||(bn={}));var vn;(function(o){o.CLASSIC="CLASSIC",o.CUSTOM="CUSTOM",o.DESIGNER="DESIGNER"})(vn||(vn={}));var xn;(function(o){o.AND="AND",o.OR="OR",o.MONOVALUED="MONOVALUED"})(xn||(xn={}));var Sn;(function(o){o.NONE="NONE",o.ALPHABET="ALPHABET",o.VERSION="VERSION"})(Sn||(Sn={}));var Cn;(function(o){o.STARS="STARS",o.LIKE="LIKE",o.DICHOTOMOUS="DICHOTOMOUS",o.NO_RATING="NO_RATING"})(Cn||(Cn={}));var On;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR",o.CUSTOM="CUSTOM"})(On||(On={}));var An;(function(o){o.OPTIONAL="OPTIONAL",o.MANDATORY="MANDATORY"})(An||(An={}));var En;(function(o){o.ASC="ASC",o.DESC="DESC"})(En||(En={}));var In;(function(o){o.ALPHA="ALPHA",o.NATURAL="NATURAL"})(In||(In={}));var wn;(function(o){o.EVERYWHERE="EVERYWHERE",o.TITLE_ONLY="TITLE_ONLY",o.NONE="NONE"})(wn||(wn={}));var Tn;(function(o){o.ARTICLE="ARTICLE",o.BOOK="BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(Tn||(Tn={}));var Rn;(function(o){o.FLUIDTOPICS="FLUIDTOPICS",o.EXTERNAL="EXTERNAL"})(Rn||(Rn={}));var Ln;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.PERSONAL_BOOK="PERSONAL_BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(Ln||(Ln={}));var kn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(kn||(kn={}));var _n;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.HTML_PACKAGE="HTML_PACKAGE",o.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(_n||(_n={}));var Nn;(function(o){o.DEFAULT="DEFAULT",o.DOCUMENTS="DOCUMENTS",o.ALL_TOPICS="ALL_TOPICS",o.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Nn||(Nn={}));var Pn;(function(o){o.PLAIN_TEXT="PLAIN_TEXT",o.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",o.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Pn||(Pn={}));var T;(function(o){o.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",o.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",o.HTML_EXPORT_USER="HTML_EXPORT_USER",o.PDF_EXPORT_USER="PDF_EXPORT_USER",o.SAVED_SEARCH_USER="SAVED_SEARCH_USER",o.COLLECTION_USER="COLLECTION_USER",o.OFFLINE_USER="OFFLINE_USER",o.ANALYTICS_USER="ANALYTICS_USER",o.BETA_USER="BETA_USER",o.DEBUG_USER="DEBUG_USER",o.PRINT_USER="PRINT_USER",o.RATING_USER="RATING_USER",o.FEEDBACK_USER="FEEDBACK_USER",o.GENERATIVE_AI_USER="GENERATIVE_AI_USER",o.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",o.CONTENT_PUBLISHER="CONTENT_PUBLISHER",o.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",o.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",o.KHUB_ADMIN="KHUB_ADMIN",o.USERS_ADMIN="USERS_ADMIN",o.PORTAL_ADMIN="PORTAL_ADMIN",o.ADMIN="ADMIN"})(T||(T={}));var X;(function(o){o.SEARCHES="SEARCHES",o.BOOKMARKS="BOOKMARKS",o.BOOKS="BOOKS",o.COLLECTIONS="COLLECTIONS"})(X||(X={}));var Dn;(function(o){o.UNAUTHENTICATED="UNAUTHENTICATED",o.USER_INCOMPLETE="USER_INCOMPLETE",o.MFA_REQUIRED="MFA_REQUIRED",o.AUTHENTICATED="AUTHENTICATED"})(Dn||(Dn={}));var Mn;(function(o){o.VALID="VALID",o.INVALID="INVALID"})(Mn||(Mn={}));var Fn;(function(o){o.INACCURATE="INACCURATE",o.INCOMPLETE="INCOMPLETE",o.OFF_TOPIC="OFF_TOPIC",o.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",o.SUMMARY="SUMMARY",o.SEMANTIC_SEARCH="SEMANTIC_SEARCH",o.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",o.OTHER="OTHER"})(Fn||(Fn={}));var Un;(function(o){o.INACCURATE="INACCURATE",o.INCOMPLETE="INCOMPLETE",o.OFF_TOPIC="OFF_TOPIC",o.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",o.SLOW="SLOW",o.OTHER="OTHER"})(Un||(Un={}));var Bn;(function(o){o.JSON="JSON",o.TEXT="TEXT"})(Bn||(Bn={}));var Hn;(function(o){o.JSON="JSON",o.TEXT="TEXT"})(Hn||(Hn={}));var zn;(function(o){o.USER="USER",o.ASSISTANT="ASSISTANT"})(zn||(zn={}));var Gn;(function(o){o.TEXT="TEXT",o.HTML="HTML"})(Gn||(Gn={}));var $n;(function(o){o.HTML="HTML",o.MARKDOWN="MARKDOWN"})($n||($n={}));var Wn;(function(o){o.MAP="MAP",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Wn||(Wn={}));var vs={[T.PERSONAL_BOOK_SHARE_USER]:[T.PERSONAL_BOOK_USER],[T.HTML_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.PDF_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.KHUB_ADMIN]:[T.CONTENT_PUBLISHER],[T.ADMIN]:[T.KHUB_ADMIN,T.USERS_ADMIN,T.PORTAL_ADMIN,T.BEHAVIOR_DATA_USER],[T.GENERATIVE_AI_EXPORT_USER]:[T.GENERATIVE_AI_USER]};function jn(o,e){return o===e||(vs[o]??[]).some(r=>jn(r,e))}function de(o,e){return o==null?!1:(Array.isArray(o)?o:Array.isArray(o.roles)?o.roles:Array.isArray(o.profile?.roles)?o.profile.roles:[]).some(n=>jn(n,e))}var co=x(j());var Vn=x(j(),1);var Fr=o=>e=>{window.customElements.get(o)||window.customElements.define(o,e)};function Kn(o,e){return(0,Vn.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return xt(o);try{return JSON.parse(r)}catch{return xt(o)}},toAttribute:r=>JSON.stringify(r)},hasChanged:St,...e??{}})}function xs(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(o)){if(r=o.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!Bt(o[n],e[n]))return!1;return!0}if(o instanceof Map&&e instanceof Map){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;for(n of o.entries())if(!Bt(n[1],e.get(n[0])))return!1;return!0}if(o instanceof Set&&e instanceof Set){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;return!0}if(o.constructor===RegExp)return o.source===e.source&&o.flags===e.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===e.valueOf();let a=c=>Object.keys(c).filter(d=>c[d]!=null),s=a(o);if(r=s.length,r!==a(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){let c=s[n];if(!Bt(o[c],e[c]))return!1}return!0}return o!==o&&e!==e||o==null&&e==null}function Bt(o,e){try{return xs(o,e)}catch{return!1}}function St(o,e){return!Bt(o,e)}function xt(o){return typeof window.structuredClone=="function"?structuredClone(o):o!=null?JSON.parse(JSON.stringify(o)):o}function Ht(o,e){let r=n=>n[o]===!0;return n=>{if(r(n))return n;let a=e(n);return a[o]=!0,a}}var Zn=x(j(),1);var Ur=o=>{let e=o??{};return(r,n)=>{var a;let s={hasChanged:St,attribute:!1,...e};(0,Zn.property)(s)(r,n);let c=r.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:(d=>d[n]),store:e.store})}};var zt=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var Ie=x(j(),1);var Gt=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Yn=x(F(),1);var $t=globalThis,Ss=$t.ShadowRoot&&($t.ShadyCSS===void 0||$t.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var qn=(o,e)=>{if(Ss)o.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let n=document.createElement("style"),a=$t.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,o.appendChild(n)}};var Wt=class extends Yn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return qn(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){Fr(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Qn(o,e,...r){var n;let a=o.querySelector(e);for(let s of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var Ve=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},ta,Xn=Symbol("constructorPrototype"),Jn=Symbol("constructorName"),ra=Symbol("exportpartsDebouncer"),ea=Symbol("dynamicDependenciesLoaded"),je=class o extends CustomEvent{constructor(){super(o.eventName,{bubbles:!0})}};je.eventName="exportparts-updated";var ie=class extends Wt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[ta]=new Gt(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[ra].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[Jn]=this.constructor.name,this[Xn]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[Jn]&&Object.setPrototypeOf(this,this[Xn])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[ea]||(r[ea]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(je.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(je.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new je)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];r=Qn(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,n,a,s,c,d;let u=g=>g!=null&&g.trim().length>0,p=e.filter(u).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;return}let f=new Set;for(let g of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(s=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],y=(d=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(O=>O.split(":")[1]))!==null&&d!==void 0?d:[],v=[...m,...y].filter(u).map(O=>O.trim());for(let O of v)f.add(O)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(g=>p.map(m=>`${g}:${m}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};ta=ra;Ve([(0,Ie.property)()],ie.prototype,"exportpartsPrefix",void 0);Ve([Kn([])],ie.prototype,"exportpartsPrefixes",void 0);Ve([(0,Ie.property)({reflect:!0})],ie.prototype,"exportparts",void 0);Ve([(0,Ie.property)()],ie.prototype,"customStylesheet",void 0);Ve([(0,Ie.property)()],ie.prototype,"elementToFocus",void 0);Ve([(0,Ie.state)()],ie.prototype,"useAdoptedStyleSheets",void 0);function jt(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ct=Symbol("internalReduxEventsUnsubscribers"),be=Symbol("internalStoresUnsubscribers"),we=Symbol("internalStores"),Cs=Ht(Symbol("withRedux"),function(o){var e,r,n;class a extends o{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(d=>c.has(d))&&this.updateFromStores()}getUnnamedStore(){if(this[we].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[we].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[we].get(c)}addStore(c,d){var u;d=(u=d??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(d),this[we].set(d,c),this.subscribeToStore(d,c),this.updateFromStores()}removeStore(c){let d=typeof c=="string"?c:c.name;this.unsubscribeFromStore(d),this[we].delete(d)}setupStores(){this.unsubscribeFromStores(),this[we].forEach((c,d)=>this.subscribeToStore(d,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,d)=>{let u=this.constructor.getPropertyOptions(d);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:d)){let p=this.getStore(c.store);p&&(c.store?this[be].has(c.store):this[be].size>0)&&(this[d]=c.selector(p.getState(),this))}})}subscribeToStore(c,d){var u;this[be].set(c,d.subscribe(()=>this.updateFromStores())),this[Ct].set(c,[]),jt(d)&&d.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,f)=>{if(typeof this[f]=="function"&&(!p.store||d.name===p.store)){let h=g=>this[f](g);d.addEventListener(p.eventName,h),this[Ct].get(c).push(()=>d.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[be].forEach((c,d)=>this.unsubscribeFromStore(d))}unsubscribeFromStore(c){var d;this[be].has(c)&&this[be].get(c)(),this[be].delete(c),(d=this[Ct].get(c))===null||d===void 0||d.forEach(u=>u()),this[Ct].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=be,r=we,n=Ct,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),oa=class extends Cs(ie){};function J(o){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var a,s;throw Error("[Immer] minified error nr: "+o+(r.length?" "+r.map((function(c){return"'"+c+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ue(o){return!!o&&!!o[L]}function oe(o){var e;return!!o&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===Ls})(o)||Array.isArray(o)||!!o[da]||!!(!((e=o.constructor)===null||e===void 0)&&e[da])||Kr(o)||Zr(o))}function Te(o,e,r){r===void 0&&(r=!1),qe(o)===0?(r?Object.keys:Ze)(o).forEach((function(n){r&&typeof n=="symbol"||e(n,o[n],o)})):o.forEach((function(n,a){return e(a,n,o)}))}function qe(o){var e=o[L];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:Kr(o)?2:Zr(o)?3:0}function Ke(o,e){return qe(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function Os(o,e){return qe(o)===2?o.get(e):o[e]}function ua(o,e,r){var n=qe(o);n===2?o.set(e,r):n===3?o.add(r):o[e]=r}function pa(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function Kr(o){return Ts&&o instanceof Map}function Zr(o){return Rs&&o instanceof Set}function ve(o){return o.o||o.t}function qr(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=ga(o);delete e[L];for(var r=Ze(e),n=0;n<r.length;n++){var a=r[n],s=e[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:o[a]})}return Object.create(Object.getPrototypeOf(o),e)}function Yr(o,e){return e===void 0&&(e=!1),Qr(o)||ue(o)||!oe(o)||(qe(o)>1&&(o.set=o.add=o.clear=o.delete=As),Object.freeze(o),e&&Te(o,(function(r,n){return Yr(n,!0)}),!0)),o}function As(){J(2)}function Qr(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function se(o){var e=Vr[o];return e||J(18,o),e}function Es(o,e){Vr[o]||(Vr[o]=e)}function $r(){return At}function Br(o,e){e&&(se("Patches"),o.u=[],o.s=[],o.v=e)}function Vt(o){Wr(o),o.p.forEach(Is),o.p=null}function Wr(o){o===At&&(At=o.l)}function na(o){return At={p:[],l:At,h:o,m:!0,_:0}}function Is(o){var e=o[L];e.i===0||e.i===1?e.j():e.g=!0}function Hr(o,e){e._=e.p.length;var r=e.p[0],n=o!==void 0&&o!==r;return e.h.O||se("ES5").S(e,o,n),n?(r[L].P&&(Vt(e),J(4)),oe(o)&&(o=Kt(e,o),e.l||Zt(e,o)),e.u&&se("Patches").M(r[L].t,o,e.u,e.s)):o=Kt(e,r,[]),Vt(e),e.u&&e.v(e.u,e.s),o!==ha?o:void 0}function Kt(o,e,r){if(Qr(e))return e;var n=e[L];if(!n)return Te(e,(function(d,u){return aa(o,n,e,d,u,r)}),!0),e;if(n.A!==o)return e;if(!n.P)return Zt(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=qr(n.k):n.o,s=a,c=!1;n.i===3&&(s=new Set(a),a.clear(),c=!0),Te(s,(function(d,u){return aa(o,n,a,d,u,r,c)})),Zt(o,a,!1),r&&o.u&&se("Patches").N(n,r,o.u,o.s)}return n.o}function aa(o,e,r,n,a,s,c){if(ue(a)){var d=Kt(o,a,s&&e&&e.i!==3&&!Ke(e.R,n)?s.concat(n):void 0);if(ua(r,n,d),!ue(d))return;o.m=!1}else c&&r.add(a);if(oe(a)&&!Qr(a)){if(!o.h.D&&o._<1)return;Kt(o,a),e&&e.A.l||Zt(o,a)}}function Zt(o,e,r){r===void 0&&(r=!1),!o.l&&o.h.D&&o.m&&Yr(e,r)}function zr(o,e){var r=o[L];return(r?ve(r):o)[e]}function ia(o,e){if(e in o)for(var r=Object.getPrototypeOf(o);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function xe(o){o.P||(o.P=!0,o.l&&xe(o.l))}function Gr(o){o.o||(o.o=qr(o.t))}function jr(o,e,r){var n=Kr(e)?se("MapSet").F(e,r):Zr(e)?se("MapSet").T(e,r):o.O?(function(a,s){var c=Array.isArray(a),d={i:c?1:0,A:s?s.A:$r(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=d,p=Et;c&&(u=[d],p=Ot);var f=Proxy.revocable(u,p),h=f.revoke,g=f.proxy;return d.k=g,d.j=h,g})(e,r):se("ES5").J(e,r);return(r?r.A:$r()).p.push(n),n}function ws(o){return ue(o)||J(22,o),(function e(r){if(!oe(r))return r;var n,a=r[L],s=qe(r);if(a){if(!a.P&&(a.i<4||!se("ES5").K(a)))return a.t;a.I=!0,n=sa(r,s),a.I=!1}else n=sa(r,s);return Te(n,(function(c,d){a&&Os(a.t,c)===d||ua(n,c,e(d))})),s===3?new Set(n):n})(o)}function sa(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return qr(o)}function fa(){function o(c,d){var u=s[c];return u?u.enumerable=d:s[c]=u={configurable:!0,enumerable:d,get:function(){var p=this[L];return Et.get(p,c)},set:function(p){var f=this[L];Et.set(f,c,p)}},u}function e(c){for(var d=c.length-1;d>=0;d--){var u=c[d][L];if(!u.P)switch(u.i){case 5:n(u)&&xe(u);break;case 4:r(u)&&xe(u)}}}function r(c){for(var d=c.t,u=c.k,p=Ze(u),f=p.length-1;f>=0;f--){var h=p[f];if(h!==L){var g=d[h];if(g===void 0&&!Ke(d,h))return!0;var m=u[h],y=m&&m[L];if(y?y.t!==g:!pa(m,g))return!0}}var v=!!d[L];return p.length!==Ze(d).length+(v?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(d,d.length-1);if(u&&!u.get)return!0;for(var p=0;p<d.length;p++)if(!d.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&J(3,JSON.stringify(ve(c)))}var s={};Es("ES5",{J:function(c,d){var u=Array.isArray(c),p=(function(h,g){if(h){for(var m=Array(g.length),y=0;y<g.length;y++)Object.defineProperty(m,""+y,o(y,!0));return m}var v=ga(g);delete v[L];for(var O=Ze(v),A=0;A<O.length;A++){var E=O[A];v[E]=o(E,h||!!v[E].enumerable)}return Object.create(Object.getPrototypeOf(g),v)})(u,c),f={i:u?5:4,A:d?d.A:$r(),P:!1,I:!1,R:{},l:d,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,L,{value:f,writable:!0}),p},S:function(c,d,u){u?ue(d)&&d[L].A===c&&e(c.p):(c.u&&(function p(f){if(f&&typeof f=="object"){var h=f[L];if(h){var g=h.t,m=h.k,y=h.R,v=h.i;if(v===4)Te(m,(function(R){R!==L&&(g[R]!==void 0||Ke(g,R)?y[R]||p(m[R]):(y[R]=!0,xe(h)))})),Te(g,(function(R){m[R]!==void 0||Ke(m,R)||(y[R]=!1,xe(h))}));else if(v===5){if(n(h)&&(xe(h),y.length=!0),m.length<g.length)for(var O=m.length;O<g.length;O++)y[O]=!1;else for(var A=g.length;A<m.length;A++)y[A]=!0;for(var E=Math.min(m.length,g.length),k=0;k<E;k++)m.hasOwnProperty(k)||(y[k]=!0),y[k]===void 0&&p(m[k])}}}})(c.p[0]),e(c.p))},K:function(c){return c.i===4?r(c):n(c)}})}var ca,At,Xr=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ts=typeof Map<"u",Rs=typeof Set<"u",la=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ha=Xr?Symbol.for("immer-nothing"):((ca={})["immer-nothing"]=!0,ca),da=Xr?Symbol.for("immer-draftable"):"__$immer_draftable",L=Xr?Symbol.for("immer-state"):"__$immer_state";var Ls=""+Object.prototype.constructor,Ze=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,ga=Object.getOwnPropertyDescriptors||function(o){var e={};return Ze(o).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(o,r)})),e},Vr={},Et={get:function(o,e){if(e===L)return o;var r=ve(o);if(!Ke(r,e))return(function(a,s,c){var d,u=ia(s,c);return u?"value"in u?u.value:(d=u.get)===null||d===void 0?void 0:d.call(a.k):void 0})(o,r,e);var n=r[e];return o.I||!oe(n)?n:n===zr(o.t,e)?(Gr(o),o.o[e]=jr(o.A.h,n,o)):n},has:function(o,e){return e in ve(o)},ownKeys:function(o){return Reflect.ownKeys(ve(o))},set:function(o,e,r){var n=ia(ve(o),e);if(n?.set)return n.set.call(o.k,r),!0;if(!o.P){var a=zr(ve(o),e),s=a?.[L];if(s&&s.t===r)return o.o[e]=r,o.R[e]=!1,!0;if(pa(r,a)&&(r!==void 0||Ke(o.t,e)))return!0;Gr(o),xe(o)}return o.o[e]===r&&(r!==void 0||e in o.o)||Number.isNaN(r)&&Number.isNaN(o.o[e])||(o.o[e]=r,o.R[e]=!0),!0},deleteProperty:function(o,e){return zr(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,Gr(o),xe(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var r=ve(o),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){J(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){J(12)}},Ot={};Te(Et,(function(o,e){Ot[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Ot.deleteProperty=function(o,e){return Ot.set.call(this,o,e,void 0)},Ot.set=function(o,e,r){return Et.set.call(this,o[0],e,r,o[0])};var ks=(function(){function o(r){var n=this;this.O=la,this.D=!0,this.produce=function(a,s,c){if(typeof a=="function"&&typeof s!="function"){var d=s;s=a;var u=n;return function(v){var O=this;v===void 0&&(v=d);for(var A=arguments.length,E=Array(A>1?A-1:0),k=1;k<A;k++)E[k-1]=arguments[k];return u.produce(v,(function(R){var ye;return(ye=s).call.apply(ye,[O,R].concat(E))}))}}var p;if(typeof s!="function"&&J(6),c!==void 0&&typeof c!="function"&&J(7),oe(a)){var f=na(n),h=jr(n,a,void 0),g=!0;try{p=s(h),g=!1}finally{g?Vt(f):Wr(f)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(v){return Br(f,c),Hr(v,f)}),(function(v){throw Vt(f),v})):(Br(f,c),Hr(p,f))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===ha&&(p=void 0),n.D&&Yr(p,!0),c){var m=[],y=[];se("Patches").M(a,p,m,y),c(m,y)}return p}J(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),g=1;g<f;g++)h[g-1]=arguments[g];return n.produceWithPatches(p,(function(m){return a.apply(void 0,[m].concat(h))}))};var c,d,u=n.produce(a,s,(function(p,f){c=p,d=f}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(p){return[p,c,d]})):[u,c,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=o.prototype;return e.createDraft=function(r){oe(r)||J(8),ue(r)&&(r=ws(r));var n=na(this),a=jr(this,r,void 0);return a[L].C=!0,Wr(n),a},e.finishDraft=function(r,n){var a=r&&r[L],s=a.A;return Br(s,n),Hr(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!la&&J(20),this.O=r},e.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var s=n[a];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}a>-1&&(n=n.slice(a+1));var c=se("Patches").$;return ue(r)?c(r,n):this.produce(r,(function(d){return c(d,n)}))},o})(),Z=new ks,_s=Z.produce,Gl=Z.produceWithPatches.bind(Z),$l=Z.setAutoFreeze.bind(Z),Wl=Z.setUseProxies.bind(Z),jl=Z.applyPatches.bind(Z),Vl=Z.createDraft.bind(Z),Kl=Z.finishDraft.bind(Z),qt=_s;function Re(o){"@babel/helpers - typeof";return Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(o)}function ya(o,e){if(Re(o)!="object"||!o)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var n=r.call(o,e||"default");if(Re(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function ma(o){var e=ya(o,"string");return Re(e)=="symbol"?e:e+""}function ba(o,e,r){return(e=ma(e))in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function va(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),r.push.apply(r,n)}return r}function Jr(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?va(Object(r),!0).forEach(function(n){ba(o,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):va(Object(r)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(r,n))})}return o}function B(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var xa=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),eo=function(){return Math.random().toString(36).substring(7).split("").join(".")},Yt={INIT:"@@redux/INIT"+eo(),REPLACE:"@@redux/REPLACE"+eo(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+eo()}};function Ns(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function to(o,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(B(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(B(1));return r(to)(o,e)}if(typeof o!="function")throw new Error(B(2));var a=o,s=e,c=[],d=c,u=!1;function p(){d===c&&(d=c.slice())}function f(){if(u)throw new Error(B(3));return s}function h(v){if(typeof v!="function")throw new Error(B(4));if(u)throw new Error(B(5));var O=!0;return p(),d.push(v),function(){if(O){if(u)throw new Error(B(6));O=!1,p();var E=d.indexOf(v);d.splice(E,1),c=null}}}function g(v){if(!Ns(v))throw new Error(B(7));if(typeof v.type>"u")throw new Error(B(8));if(u)throw new Error(B(9));try{u=!0,s=a(s,v)}finally{u=!1}for(var O=c=d,A=0;A<O.length;A++){var E=O[A];E()}return v}function m(v){if(typeof v!="function")throw new Error(B(10));a=v,g({type:Yt.REPLACE})}function y(){var v,O=h;return v={subscribe:function(E){if(typeof E!="object"||E===null)throw new Error(B(11));function k(){E.next&&E.next(f())}k();var R=O(k);return{unsubscribe:R}}},v[xa]=function(){return this},v}return g({type:Yt.INIT}),n={dispatch:g,subscribe:h,getState:f,replaceReducer:m},n[xa]=y,n}function Ps(o){Object.keys(o).forEach(function(e){var r=o[e],n=r(void 0,{type:Yt.INIT});if(typeof n>"u")throw new Error(B(12));if(typeof r(void 0,{type:Yt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(B(13))})}function Sa(o){for(var e=Object.keys(o),r={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(r[a]=o[a])}var s=Object.keys(r),c,d;try{Ps(r)}catch(u){d=u}return function(p,f){if(p===void 0&&(p={}),d)throw d;if(0)var h;for(var g=!1,m={},y=0;y<s.length;y++){var v=s[y],O=r[v],A=p[v],E=O(A,f);if(typeof E>"u"){var k=f&&f.type;throw new Error(B(14))}m[v]=E,g=g||E!==A}return g=g||s.length!==Object.keys(p).length,g?m:p}}function Ye(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ca(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),s=function(){throw new Error(B(15))},c={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},d=e.map(function(u){return u(c)});return s=Ye.apply(void 0,d)(a.dispatch),Jr(Jr({},a),{},{dispatch:s})}}}function Oa(o){var e=function(n){var a=n.dispatch,s=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,s,o):c(d)}}};return e}var Aa=Oa();Aa.withExtraArgument=Oa;var ro=Aa;var Ra=(function(){var o=function(e,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},o(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Ds=function(o,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(p){return function(f){return u([p,f])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){r.label=p[1];break}if(p[0]===6&&r.label<s[1]){r.label=s[1],s=p;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(p);break}s[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(o,r)}catch(f){p=[6,f],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Qe=function(o,e){for(var r=0,n=e.length,a=o.length;r<n;r++,a++)o[a]=e[r];return o},Ms=Object.defineProperty,Fs=Object.defineProperties,Us=Object.getOwnPropertyDescriptors,Ea=Object.getOwnPropertySymbols,Bs=Object.prototype.hasOwnProperty,Hs=Object.prototype.propertyIsEnumerable,Ia=function(o,e,r){return e in o?Ms(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r},Se=function(o,e){for(var r in e||(e={}))Bs.call(e,r)&&Ia(o,r,e[r]);if(Ea)for(var n=0,a=Ea(e);n<a.length;n++){var r=a[n];Hs.call(e,r)&&Ia(o,r,e[r])}return o},oo=function(o,e){return Fs(o,Us(e))},zs=function(o,e,r){return new Promise(function(n,a){var s=function(u){try{d(r.next(u))}catch(p){a(p)}},c=function(u){try{d(r.throw(u))}catch(p){a(p)}},d=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,c)};d((r=r.apply(o,e)).next())})};var Gs=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Ye:Ye.apply(null,arguments)},ud=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function $s(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function Ce(o,e){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return Se(Se({type:o,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:o,payload:n[0]}}return r.toString=function(){return""+o},r.type=o,r.match=function(n){return n.type===o},r}var Ws=(function(o){Ra(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Qe([void 0],r[0].concat(this)))):new(e.bind.apply(e,Qe([void 0],r.concat(this))))},e})(Array),js=(function(o){Ra(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Qe([void 0],r[0].concat(this)))):new(e.bind.apply(e,Qe([void 0],r.concat(this))))},e})(Array);function io(o){return oe(o)?qt(o,function(){}):o}function Vs(o){return typeof o=="boolean"}function Ks(){return function(e){return Zs(e)}}function Zs(o){o===void 0&&(o={});var e=o.thunk,r=e===void 0?!0:e,n=o.immutableCheck,a=n===void 0?!0:n,s=o.serializableCheck,c=s===void 0?!0:s,d=o.actionCreatorCheck,u=d===void 0?!0:d,p=new Ws;if(r&&(Vs(r)?p.push(ro):p.push(ro.withExtraArgument(r.extraArgument))),0){if(a)var f;if(c)var h;if(u)var g}return p}var no=!0;function La(o){var e=Ks(),r=o||{},n=r.reducer,a=n===void 0?void 0:n,s=r.middleware,c=s===void 0?e():s,d=r.devTools,u=d===void 0?!0:d,p=r.preloadedState,f=p===void 0?void 0:p,h=r.enhancers,g=h===void 0?void 0:h,m;if(typeof a=="function")m=a;else if($s(a))m=Sa(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=c;if(typeof y=="function"&&(y=y(e),!no&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!no&&y.some(function(R){return typeof R!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Ca.apply(void 0,y),O=Ye;u&&(O=Gs(Se({trace:!no},typeof u=="object"&&u)));var A=new js(v),E=A;Array.isArray(g)?E=Qe([v],g):typeof g=="function"&&(E=g(A));var k=O.apply(void 0,E);return to(m,f,k)}function ka(o){var e={},r=[],n,a={addCase:function(s,c){var d=typeof s=="string"?s:s.type;if(!d)throw new Error("`builder.addCase` cannot be called with an empty action type");if(d in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[d]=c,a},addMatcher:function(s,c){return r.push({matcher:s,reducer:c}),a},addDefaultCase:function(s){return n=s,a}};return o(a),[e,r,n]}function qs(o){return typeof o=="function"}function Ys(o,e,r,n){r===void 0&&(r=[]);var a=typeof e=="function"?ka(e):[e,r,n],s=a[0],c=a[1],d=a[2],u;if(qs(o))u=function(){return io(o())};else{var p=io(o);u=function(){return p}}function f(h,g){h===void 0&&(h=u());var m=Qe([s[g.type]],c.filter(function(y){var v=y.matcher;return v(g)}).map(function(y){var v=y.reducer;return v}));return m.filter(function(y){return!!y}).length===0&&(m=[d]),m.reduce(function(y,v){if(v)if(ue(y)){var O=y,A=v(O,g);return A===void 0?y:A}else{if(oe(y))return qt(y,function(E){return v(E,g)});var A=v(y,g);if(A===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return A}return y},h)}return f.getInitialState=u,f}function Qs(o,e){return o+"/"+e}function _a(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof o.initialState=="function"?o.initialState:io(o.initialState),n=o.reducers||{},a=Object.keys(n),s={},c={},d={};a.forEach(function(f){var h=n[f],g=Qs(e,f),m,y;"reducer"in h?(m=h.reducer,y=h.prepare):m=h,s[f]=m,c[g]=m,d[f]=y?Ce(g,y):Ce(g)});function u(){var f=typeof o.extraReducers=="function"?ka(o.extraReducers):[o.extraReducers],h=f[0],g=h===void 0?{}:h,m=f[1],y=m===void 0?[]:m,v=f[2],O=v===void 0?void 0:v,A=Se(Se({},g),c);return Ys(r,function(E){for(var k in A)E.addCase(k,A[k]);for(var R=0,ye=y;R<ye.length;R++){var ce=ye[R];E.addMatcher(ce.matcher,ce.reducer)}O&&E.addDefaultCase(O)})}var p;return{name:e,reducer:function(f,h){return p||(p=u()),p(f,h)},actions:d,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var Xs="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Js=function(o){o===void 0&&(o=21);for(var e="",r=o;r--;)e+=Xs[Math.random()*64|0];return e},ec=["name","message","stack","code"],ao=(function(){function o(e,r){this.payload=e,this.meta=r}return o})(),wa=(function(){function o(e,r){this.payload=e,this.meta=r}return o})(),tc=function(o){if(typeof o=="object"&&o!==null){for(var e={},r=0,n=ec;r<n.length;r++){var a=n[r];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},gd=(function(){function o(e,r,n){var a=Ce(e+"/fulfilled",function(f,h,g,m){return{payload:f,meta:oo(Se({},m||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),s=Ce(e+"/pending",function(f,h,g){return{payload:void 0,meta:oo(Se({},g||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),c=Ce(e+"/rejected",function(f,h,g,m,y){return{payload:m,error:(n&&n.serializeError||tc)(f||"Rejected"),meta:oo(Se({},y||{}),{arg:g,requestId:h,rejectedWithValue:!!m,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),d=!1,u=typeof AbortController<"u"?AbortController:(function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f})();function p(f){return function(h,g,m){var y=n?.idGenerator?n.idGenerator(f):Js(),v=new u,O,A=!1;function E(R){O=R,v.abort()}var k=(function(){return zs(this,null,function(){var R,ye,ce,yt,Do,mt,Mo;return Ds(this,function(ze){switch(ze.label){case 0:return ze.trys.push([0,4,,5]),yt=(R=n?.condition)==null?void 0:R.call(n,f,{getState:g,extra:m}),oc(yt)?[4,yt]:[3,2];case 1:yt=ze.sent(),ze.label=2;case 2:if(yt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return A=!0,Do=new Promise(function(re,bt){return v.signal.addEventListener("abort",function(){return bt({name:"AbortError",message:O||"Aborted"})})}),h(s(y,f,(ye=n?.getPendingMeta)==null?void 0:ye.call(n,{requestId:y,arg:f},{getState:g,extra:m}))),[4,Promise.race([Do,Promise.resolve(r(f,{dispatch:h,getState:g,extra:m,requestId:y,signal:v.signal,abort:E,rejectWithValue:function(re,bt){return new ao(re,bt)},fulfillWithValue:function(re,bt){return new wa(re,bt)}})).then(function(re){if(re instanceof ao)throw re;return re instanceof wa?a(re.payload,y,f,re.meta):a(re,y,f)})])];case 3:return ce=ze.sent(),[3,5];case 4:return mt=ze.sent(),ce=mt instanceof ao?c(null,y,f,mt.payload,mt.meta):c(mt,y,f),[3,5];case 5:return Mo=n&&!n.dispatchConditionRejection&&c.match(ce)&&ce.meta.condition,Mo||h(ce),[2,ce]}})})})();return Object.assign(k,{abort:E,requestId:y,arg:f,unwrap:function(){return k.then(rc)}})}}return Object.assign(p,{pending:s,rejected:c,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o})();function rc(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function oc(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var Na="listener",Pa="completed",Da="cancelled",yd="task-"+Da,md="task-"+Pa,bd=Na+"-"+Da,vd=Na+"-"+Pa;var so="listenerMiddleware";var xd=Ce(so+"/add"),Sd=Ce(so+"/removeAll"),Cd=Ce(so+"/remove");var Ta,Od=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(Ta||(Ta=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},nc=function(o){return function(e){setTimeout(e,o)}},Ad=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:nc(10);fa();var ac=Ht(Symbol("withEventBus"),function(o,e){return class extends o{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}),Qt=class extends ac(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ma=class o extends Qt{static get(e){var r;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(jt(s))return s;if(a==null)return;let c=_a({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=La({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=xt(c.getInitialState());for(let h of p.keeping)f[h]=(u??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return c.reducer(u,p)}});return window.ftReduxStores[a.name]=new o(c,d,a.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new zt;let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,c,d)=>{let u=c,p=s[u];return p?(...f)=>{let h=p(...f.map(a));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[u]:a(f)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var Xt=class{static format(e,r,n,a,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,a,!!s)):this.getIntlDateTime(e,r,n,a,!!s)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,a,s){let c=typeof e=="string"?new Date(e):e,d=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(c),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(c);return s?u:a?`${d} ${u}`:d}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var Jt=x(I()),ic="ft-app-info",pe=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:e})}};pe.eventName="authentication-change";var It=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:e})}};It.eventName="ui-locale-changed";var sc={session:(o,e)=>{(0,Jt.deepEqual)(o.session,e.payload)||(o.session=e.payload,setTimeout(()=>S.dispatchEvent(new pe(e.payload)),0))}},S=Jt.FtReduxStore.get({name:ic,reducers:sc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Fa=x(I()),er=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Xd=(0,Fa.applyMixinOnce)(Symbol("withDateFormat"),function(o){class e extends o{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(S)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?d=>Xt.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return er([(0,co.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),er([(0,co.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),er([Ur({store:S.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),er([Ur({store:S.name})],e.prototype,"uiLocale",void 0),e});var ar=x(I());var lo=x(I());var Le=class o{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=S.getState(),a=e??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(e){return new Promise(r=>{let n=o.get(e);if(n)r(n);else{let a=S.subscribe(()=>{n=o.get(e),n&&(a(),r(n))})}})}};var Xe=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Le.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Le.await()}};var H=class extends Xe{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(s,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([d],[u])=>d.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new lo.CacheRegistry,this.cache=e?a.commonCache:new lo.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var tr=class extends H{async listMySearches(){let{session:e}=S.getState();return de(e,T.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var rr=class extends H{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var or=class extends H{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}};var nr=class extends H{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}};var cc="ft-user-assets",lc={setAssetCount:(o,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;o.assetCounts.allAsset[r]=n},clearAssetCount:o=>{Object.values(X).forEach(e=>{o.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(o,e)=>{let r=e.payload.mapId;o.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:o=>{o.assetCounts.bookmarkByMap={}},addAsset:(o,e)=>{let{assetType:r,mapId:n,asset:a}=e.payload;po(o,r,[...uo(o,r),a]),Ua(o,r,1,n),Ba(o,a)},editAsset:(o,e)=>{let{assetType:r,asset:n}=e.payload;po(o,r,uo(o,r).map(a=>a.id===n.id?n:a)),Ba(o,n)},removeAsset:(o,e)=>{let{assetType:r,mapId:n,assetId:a}=e.payload;po(o,r,uo(o,r).filter(s=>s.id!==a)),Ua(o,r,-1,n)}},Ha={[X.SEARCHES]:"savedSearches",[X.BOOKMARKS]:"bookmarks",[X.BOOKS]:void 0,[X.COLLECTIONS]:void 0},uo=(o,e)=>{var r;let n=Ha[e];return n?(r=o[n])!==null&&r!==void 0?r:[]:[]},po=(o,e,r)=>{let n=Ha[e];n&&(o[n]=r)},Ua=(o,e,r,n)=>{let a=o.assetCounts.allAsset[e];if(a!==void 0&&(o.assetCounts.allAsset[e]=Math.max(0,a+r),e===X.BOOKMARKS&&n)){let s=o.assetCounts.bookmarkByMap[n];o.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},Ba=(o,e)=>{let r=o.assetLabels.map(a=>a.title),n=e.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));o.assetLabels.push(...n)},W=ar.FtReduxStore.get({name:cc,reducers:lc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(X).map(o=>[o,void 0])),bookmarkByMap:{}},assetLabels:[]}}),fo=class{constructor(e=new or,r=new nr){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new rr,this.savedSearchesService=new tr,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,ar.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),W.actions.clearAssetCount(),W.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),W.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),W.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();W.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();W.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&W.getState().assetCounts.allAsset[e]!==r.count&&W.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&W.getState().assetCounts.bookmarkByMap[e]!==r.count&&W.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys(W.getState().assetCounts.bookmarkByMap).length!==0;e===X.BOOKMARKS&&r&&W.actions.clearBookmarkCountByMap(),W.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;W.actions.bookmarks(r)}}},ho=new fo;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=ho);var go=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new go;var ee=x(I());var za,Je=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},dc=Symbol("clearAfterUnitTest"),ir=class extends(0,ee.withEventBus)(H){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[za]=()=>{this.defaultMessages={},this.cache=new ee.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,ee.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var a;let s=e.toLowerCase(),c=this.resolveContext(s);return new ee.ParametrizedLabelResolver((a=this.defaultMessages[s])!==null&&a!==void 0?a:{},c).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(a){!(a instanceof ee.CanceledPromiseError)&&r&&console.error(a)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new Je({loadedContexts:e})),this.dispatchEvent(new Je({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new Je({loadedContexts:[e]})),this.dispatchEvent(new Je({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,ee.delay)(0).then(()=>n()).catch(()=>null)))}};za=dc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends ir{constructor(){super(async(o,e)=>(await this.awaitApi).getFluidTopicsMessageContext(o,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends ir{constructor(){super(async(o,e)=>(await this.awaitApi).getCustomMessageContext(o,e))}});var Ga=window.FluidTopicsI18nService,Nu=window.FluidTopicsCustomI18nService;var $a=x(I()),yo=class{highlightHtml(e,r,n){(0,$a.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new yo;var Wa=x(I());var mo=class{isDate(e){var r,n,a,s;return(s=(a=((n=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===e))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1}format(e,r){var n,a,s,c;if(e==null)return"";try{return Wa.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:S.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(c=r?.onlyTime)!==null&&c!==void 0?c:!1)}catch(d){throw console.error(`Date ${JSON.stringify(e)} is not valid`,d),d}}};window.FluidTopicsDateService=new mo;var ja=x(I());var wt=class{static get(e,r){var n,a;let s=S.getState(),{lang:c,region:d}=(a=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new ja.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,r??`${c}-${d}`)}};var sr=class extends H{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([n,a])=>Array.isArray(a)?[n,a.map(s=>typeof s=="object"&&s!=null&&!Array.isArray(s)?this.sortEventArrays(s):s).sort((s,c)=>typeof s=="object"&&s!==null&&"key"in s?s.key.localeCompare(c.key):typeof s=="string"&&typeof c=="string"?s.localeCompare(c):String(s).localeCompare(String(c)))]:typeof a=="object"&&a!==null?[n,this.sortEventArrays(a)]:[n,a]);return Object.fromEntries(r)}sendEvents(e,r){let n="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>n).catch(a=>(console.info(r),console.debug(a),n)),1e3)}};var bo=class{urlToSearchRequest(e){return wt.get().parse(e)}searchRequestToUrl(e){return wt.get().serialize(e)}};window.FluidTopicsUrlService=new bo;var fe=x(I());var ke=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:{currentItem:e}})}};ke.eventName="change";var vo=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Va=new vo;var cr=class o extends fe.WithEventBus{static build(){return new o(window.history,Va,()=>window.location,!1)}constructor(e,r,n,a){var s,c;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(c=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&c!==void 0?c:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,fe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ke(this.currentItem())),0)}installProxies(){let e=r=>(n,a,[s,c,d])=>{let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof d=="string"?d:(d??this.windowLocation()).href};n.apply(a,[p,c,d]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(ke.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(ke.eventName,e)}currentItem(){return(0,fe.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,fe.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,fe.deepCopy)(r.find(n=>e(n)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,fe.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let a=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(a=s),s++;return a}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let a=r??this.currentState.majorStateId,s=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=cr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:o=>window.FluidTopicsInternalHistoryService.backwardItemMatching(o),addHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(o),removeHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(o)});var Ka=x(F());var Za=Ka.css`
49
- `;var Qa=x(F()),q=x(j()),Ne=x(I());var _e=x(I());function qa(o,e){let{authenticationRequired:r,session:n}=S.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):o()}var lr=class extends Xe{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var xo=class o extends _e.FtStateManager{static build(e){return new o(S,e)}constructor(e,r){super(),this.store=e,this.cache=new _e.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new lr,this.cleanSessionDebouncer=new _e.Debouncer,this.reloadDebouncer=new _e.Debouncer(500),this.apiProvider=r??(()=>Le.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(pe.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>qa(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var r,n,a,s,c;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((r=this.localesConfiguration.availableUiLocales)!==null&&r!==void 0?r:[]),this.store.actions.searchInAllLanguagesAllowed((n=this.localesConfiguration.allLanguagesAllowed)!==null&&n!==void 0?n:!1),this.store.actions.searchLanguageSetsUiLanguage((a=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&a!==void 0?a:!1),this.store.actions.uiLanguageSetsSearchLanguage((s=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&s!==void 0?s:!1),this.store.actions.uiLanguageSetsReaderLanguage((c=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&c!==void 0?c:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new It(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Ya=xo.build();var z=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},N=class extends Ne.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Ya}render(){return Qa.html`
47
+ `}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){this.registeredComponents.push(e),e.tocNode=this.tocNode,e.disableContextInteractions=this.disableContextInteractions,e.headingLevelsShift=this.headingLevelsShift}update(e){super.update(e),["mapId","tocId","stateManager","translationDestinationLanguage","translationProfileId"].some(r=>e.has(r))&&this.setTocNode(),e.has("tocNode")&&this.registeredComponents.forEach(r=>r.tocNode=this.tocNode)}async setTocNode(){var e;this.tocNode=void 0,this.tocNode=this.mapId&&this.tocId?await((e=this.stateManager)===null||e===void 0?void 0:e.getTocNode(this.tocId)):void 0}disconnectedCallback(){super.disconnectedCallback(),this.registeredComponents=[]}};Q.styles=rn;Ae([(0,Ut.redux)({selector:o=>{var e;return(e=o.map)===null||e===void 0?void 0:e.id}})],Q.prototype,"mapId",void 0);Ae([(0,Ut.redux)({selector:o=>o.translation.profileId})],Q.prototype,"translationProfileId",void 0);Ae([(0,Ut.redux)({selector:o=>o.translation.destinationLanguage})],Q.prototype,"translationDestinationLanguage",void 0);Ae([(0,je.property)()],Q.prototype,"tocId",void 0);Ae([(0,je.property)({type:Boolean})],Q.prototype,"disableContextInteractions",void 0);Ae([(0,je.property)({type:Number})],Q.prototype,"headingLevelsShift",void 0);Ae([(0,je.state)()],Q.prototype,"tocNode",void 0);var an=x(w());var nn={"ft-reader-topic-context":Q};(0,an.customElements)(nn);var sn=x(F());var cn=sn.css`
48
+ `;var Lt=x(F()),De=x(j()),D=x(w());var V=x(w());var ln=x(w()),xs={setTranslationDestinationLanguage:(o,e)=>{o.translation.destinationLanguage=e.payload},setTranslationSourceLanguage:(o,e)=>{o.translation.sourceLanguage=e.payload},setTranslationProfileId:(o,e)=>{o.translation.profileId=e.payload},setTranslationLoading:(o,e)=>{o.translation.isLoading=e.payload},setTranslationError:(o,e)=>{o.translation.isError=e.payload},setTopicsRating:(o,e)=>{for(let r in e.payload)o.topicsRating[r]=e.payload[r]}},dn=o=>ln.FtReduxStore.get({name:"ft-reader-"+o,initialState:{mapId:void 0,renderedTopics:[],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,mapRating:void 0,topicsRating:{},translation:{sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1},linkPreviewDialogId:void 0},reducers:xs});var Ur=class{constructor(e,r){this.mapId=e,this.paginatedToc=r,this.nodeByTocId={},this.nodeByUrl={},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,nodeByUrl:this.nodeByUrl,duplicatedPrettyUrls:this.duplicatedPrettyUrls,pages:this.pages,pageByTocId:this.pageByTocId,translationError:this.paginatedToc.translationError}}extractPagesToc(e,r,n){return e.flatMap(a=>{var s;return a.pageConfiguration&&this.registerPage(this.buildPage(a,n)),a.tocId==null?this.extractPagesToc(a.children,r,n):[{tocId:a.tocId,title:(s=a.title)!==null&&s!==void 0?s:"",untranslatedTitle:a.untranslatedTitle,depth:r,children:this.extractPagesToc(a.children,r+1,a.tocId)}]})}convertNodes(e,r,n){return e.flatMap(a=>{var s,c,d;if(a.tocId==null)return[...this.convertSectionNodes((s=a.pageToc)!==null&&s!==void 0?s:[],r,a.tocId),...this.convertNodes(a.children,r,a.tocId)];let u=(c=a.prettyUrl)===null||c===void 0?void 0:c.replace(/^\//,""),p={tocId:a.tocId,contentId:a.contentId,title:a.title,untranslatedTitle:a.untranslatedTitle,hasRating:a.hasRating,origin:a.origin,prettyUrl:u,depth:r,parentTocId:n,children:[]};this.register(p);let f=this.convertSectionNodes((d=a.pageToc)!==null&&d!==void 0?d:[],r+1,a.tocId),h=this.convertNodes(a.children,r+1,p.tocId);return p.children=[...f,...h],[p]})}convertSectionNodes(e,r,n){return e.flatMap(a=>{var s;let c=(s=a.prettyUrl)===null||s===void 0?void 0:s.replace(/^\//,""),d={...a,prettyUrl:c,depth:r,parentTocId:n,children:[]};return this.register(d),d.children=this.convertSectionNodes(a.children,r+1,a.tocId),[d]})}buildPage(e,r){var n,a,s,c,d,u,p,f;let h={number:this.pages.length+1,title:(n=e.title)!==null&&n!==void 0?n:"",untranslatedTitle:e.untranslatedTitle,rootTocId:(c=(a=e.tocId)!==null&&a!==void 0?a:(s=e.pageToc)===null||s===void 0?void 0:s[0].tocId)!==null&&c!==void 0?c:"root",toc:((d=e.pageToc)!==null&&d!==void 0?d:[]).map(y=>this.nodeByTocId[y.tocId]),topics:[],hiddenTopics:[],breadcrumb:r?this.buildBreadcrumb(this.nodeByTocId[r]):[]},g=(y,v)=>(v?h.topics:h.hiddenTopics).push(y),m=(p=(u=e.pageConfiguration)===null||u===void 0?void 0:u.parentsVisibility)!==null&&p!==void 0?p:[];return h.breadcrumb.forEach((y,v)=>{g(y,m[v])}),e.tocId&&g(e.tocId,e.pageConfiguration.isVisible),h.topics.push(...this.tocIds((f=e.pageToc)!==null&&f!==void 0?f:[])),h}registerPage(e){for(let r of[...e.topics,...e.hiddenTopics])this.pageByTocId[r]||(this.pageByTocId[r]=e);this.pages.push(e)}tocIds(e){return e.flatMap(r=>[r.tocId,...this.tocIds(r.children)])}buildBreadcrumb(e){let r=[e.tocId];for(;e?.parentTocId;)r.unshift(e.parentTocId),e=this.nodeByTocId[e.parentTocId];return r}register(e){e.prettyUrl&&(this.nodeByUrl[e.prettyUrl]==null?this.nodeByUrl[e.prettyUrl]=e:this.duplicatedPrettyUrls.add(e.prettyUrl)),this.nodeByUrl[`${this.mapId}/${e.tocId}`]=e,this.nodeByTocId[e.tocId]=e}},Bt=class{convertPaginatedToc(e,r){return new Ur(e,r).build()}};var un;(function(o){o.black="black",o.green="green",o.blue="blue",o.purple="purple",o.red="red",o.orange="orange",o.yellow="yellow"})(un||(un={}));var pn;(function(o){o.OFFICIAL="OFFICIAL",o.PERSONAL="PERSONAL",o.SHARED="SHARED"})(pn||(pn={}));var fn;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(fn||(fn={}));var hn;(function(o){o.STRUCTURED_DOCUMENT="STRUCTURED_DOCUMENT",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT",o.SHARED_PERSONAL_BOOK="SHARED_PERSONAL_BOOK",o.PERSONAL_BOOK="PERSONAL_BOOK",o.ATTACHMENT="ATTACHMENT",o.RESOURCE="RESOURCE",o.HTML_PACKAGE="HTML_PACKAGE"})(hn||(hn={}));var gn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(gn||(gn={}));var yn;(function(o){o.VALUE="VALUE",o.DATE="DATE",o.RANGE="RANGE"})(yn||(yn={}));var Ht;(function(o){o.OFFICIAL="OFFICIAL",o.AI="AI"})(Ht||(Ht={}));var mn;(function(o){o.BOOKMARK__CREATE="BOOKMARK__CREATE",o.BOOKMARK__DELETE="BOOKMARK__DELETE",o.CASE_DEFLECTION__START="CASE_DEFLECTION__START",o.CASE_DEFLECTION__OPEN_TICKET="CASE_DEFLECTION__OPEN_TICKET",o.CASE_DEFLECTION__RATE="CASE_DEFLECTION__RATE",o.CHATBOT__RATE="CHATBOT__RATE",o.COLLECTION__CREATE="COLLECTION__CREATE",o.COLLECTION__UPDATE="COLLECTION__UPDATE",o.COLLECTION__DELETE="COLLECTION__DELETE",o.CUSTOM_EVENT__TRIGGER="CUSTOM_EVENT__TRIGGER",o.DOCUMENT__ON_DEMAND_TRANSLATE="DOCUMENT__ON_DEMAND_TRANSLATE",o.DOCUMENT__DOWNLOAD="DOCUMENT__DOWNLOAD",o.DOCUMENT__PRINT="DOCUMENT__PRINT",o.DOCUMENT__PROCESS="DOCUMENT__PROCESS",o.DOCUMENT__RATE="DOCUMENT__RATE",o.DOCUMENT__SEARCH="DOCUMENT__SEARCH",o.DOCUMENT__START_DISPLAY="DOCUMENT__START_DISPLAY",o.DOCUMENT__UNRATE="DOCUMENT__UNRATE",o.FEEDBACK__SEND="FEEDBACK__SEND",o.AI__COMPLETED_QUERY="AI__COMPLETED_QUERY",o.AI__RATE="AI__RATE",o.AI_CASE_DEFLECTION__START="AI_CASE_DEFLECTION__START",o.AI_CASE_DEFLECTION__OPEN_TICKET="AI_CASE_DEFLECTION__OPEN_TICKET",o.KHUB__PROCESS="KHUB__PROCESS",o.KHUB__SEARCH="KHUB__SEARCH",o.LABELS__DOWNLOAD="LABELS__DOWNLOAD",o.LINK__SHARE="LINK__SHARE",o.PAGE__DISPLAY="PAGE__DISPLAY",o.PERSONAL_BOOK__CREATE="PERSONAL_BOOK__CREATE",o.PERSONAL_BOOK__DELETE="PERSONAL_BOOK__DELETE",o.PERSONAL_BOOK__UPDATE="PERSONAL_BOOK__UPDATE",o.PERSONAL_TOPIC__CREATE="PERSONAL_TOPIC__CREATE",o.PERSONAL_TOPIC__UPDATE="PERSONAL_TOPIC__UPDATE",o.PERSONAL_TOPIC__DELETE="PERSONAL_TOPIC__DELETE",o.SAVED_SEARCH__CREATE="SAVED_SEARCH__CREATE",o.SAVED_SEARCH__DELETE="SAVED_SEARCH__DELETE",o.SAVED_SEARCH__UPDATE="SAVED_SEARCH__UPDATE",o.SEARCH_PAGE__SELECT="SEARCH_PAGE__SELECT",o.SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU="SEARCH_RESULT__OPEN_BROWSER_CONTEXT_MENU",o.TOPIC__AI_TRANSLATE="TOPIC__AI_TRANSLATE",o.TOPIC__RATE="TOPIC__RATE",o.TOPIC__START_DISPLAY="TOPIC__START_DISPLAY",o.TOPIC__UNRATE="TOPIC__UNRATE",o.USER__LOGIN="USER__LOGIN",o.USER__LOGOUT="USER__LOGOUT",o.HEARTBEAT="HEARTBEAT"})(mn||(mn={}));var bn;(function(o){o.STANDARD="STANDARD",o.STRUCTURAL="STRUCTURAL"})(bn||(bn={}));var vn;(function(o){o.THIRD_PARTY="THIRD_PARTY",o.OFF_THE_GRID="OFF_THE_GRID",o.CONTENT_PACKAGER="CONTENT_PACKAGER",o.PAGES="PAGES",o.DESIGNED_READER="DESIGNED_READER"})(vn||(vn={}));var xn;(function(o){o.HOMEPAGE="HOMEPAGE",o.CUSTOM="CUSTOM",o.HEADER="HEADER",o.READER="READER",o.TOPIC_TEMPLATE="TOPIC_TEMPLATE",o.SEARCH="SEARCH",o.SEARCH_RESULT="SEARCH_RESULT",o.SEARCH_ANNOUNCEMENT="SEARCH_ANNOUNCEMENT",o.LINK_PREVIEW="LINK_PREVIEW",o.UD_VIEWER="UD_VIEWER",o.ASSET_VIEWER="ASSET_VIEWER"})(xn||(xn={}));var Sn;(function(o){o.CLASSIC="CLASSIC",o.CUSTOM="CUSTOM",o.DESIGNER="DESIGNER"})(Sn||(Sn={}));var Cn;(function(o){o.AND="AND",o.OR="OR",o.MONOVALUED="MONOVALUED"})(Cn||(Cn={}));var On;(function(o){o.NONE="NONE",o.ALPHABET="ALPHABET",o.VERSION="VERSION"})(On||(On={}));var En;(function(o){o.STARS="STARS",o.LIKE="LIKE",o.DICHOTOMOUS="DICHOTOMOUS",o.NO_RATING="NO_RATING"})(En||(En={}));var An;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR",o.CUSTOM="CUSTOM"})(An||(An={}));var wn;(function(o){o.OPTIONAL="OPTIONAL",o.MANDATORY="MANDATORY"})(wn||(wn={}));var In;(function(o){o.ASC="ASC",o.DESC="DESC"})(In||(In={}));var Tn;(function(o){o.ALPHA="ALPHA",o.NATURAL="NATURAL"})(Tn||(Tn={}));var Rn;(function(o){o.EVERYWHERE="EVERYWHERE",o.TITLE_ONLY="TITLE_ONLY",o.NONE="NONE"})(Rn||(Rn={}));var Ln;(function(o){o.ARTICLE="ARTICLE",o.BOOK="BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(Ln||(Ln={}));var kn;(function(o){o.FLUIDTOPICS="FLUIDTOPICS",o.EXTERNAL="EXTERNAL"})(kn||(kn={}));var _n;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.PERSONAL_BOOK="PERSONAL_BOOK",o.SHARED_BOOK="SHARED_BOOK",o.HTML_PACKAGE="HTML_PACKAGE"})(_n||(_n={}));var Nn;(function(o){o.LAST_WEEK="LAST_WEEK",o.LAST_MONTH="LAST_MONTH",o.LAST_QUARTER="LAST_QUARTER",o.LAST_YEAR="LAST_YEAR"})(Nn||(Nn={}));var Pn;(function(o){o.MAP="MAP",o.DOCUMENT="DOCUMENT",o.TOPIC="TOPIC",o.HTML_PACKAGE="HTML_PACKAGE",o.HTML_PACKAGE_PAGE="HTML_PACKAGE_PAGE"})(Pn||(Pn={}));var Dn;(function(o){o.DEFAULT="DEFAULT",o.DOCUMENTS="DOCUMENTS",o.ALL_TOPICS="ALL_TOPICS",o.TOPICS_AND_UNSTRUCTURED_DOCUMENTS="TOPICS_AND_UNSTRUCTURED_DOCUMENTS"})(Dn||(Dn={}));var Mn;(function(o){o.PLAIN_TEXT="PLAIN_TEXT",o.LOCALIZED_OFFICIAL="LOCALIZED_OFFICIAL",o.LOCALIZED_CUSTOM="LOCALIZED_CUSTOM"})(Mn||(Mn={}));var T;(function(o){o.PERSONAL_BOOK_USER="PERSONAL_BOOK_USER",o.PERSONAL_BOOK_SHARE_USER="PERSONAL_BOOK_SHARE_USER",o.HTML_EXPORT_USER="HTML_EXPORT_USER",o.PDF_EXPORT_USER="PDF_EXPORT_USER",o.SAVED_SEARCH_USER="SAVED_SEARCH_USER",o.COLLECTION_USER="COLLECTION_USER",o.OFFLINE_USER="OFFLINE_USER",o.ANALYTICS_USER="ANALYTICS_USER",o.BETA_USER="BETA_USER",o.DEBUG_USER="DEBUG_USER",o.PRINT_USER="PRINT_USER",o.RATING_USER="RATING_USER",o.FEEDBACK_USER="FEEDBACK_USER",o.GENERATIVE_AI_USER="GENERATIVE_AI_USER",o.GENERATIVE_AI_EXPORT_USER="GENERATIVE_AI_EXPORT_USER",o.CONTENT_PUBLISHER="CONTENT_PUBLISHER",o.BEHAVIOR_DATA_USER="BEHAVIOR_DATA_USER",o.ANNOUNCEMENT_ADMIN="ANNOUNCEMENT_ADMIN",o.KHUB_ADMIN="KHUB_ADMIN",o.USERS_ADMIN="USERS_ADMIN",o.PORTAL_ADMIN="PORTAL_ADMIN",o.ADMIN="ADMIN"})(T||(T={}));var X;(function(o){o.SEARCHES="SEARCHES",o.BOOKMARKS="BOOKMARKS",o.BOOKS="BOOKS",o.COLLECTIONS="COLLECTIONS"})(X||(X={}));var Fn;(function(o){o.UNAUTHENTICATED="UNAUTHENTICATED",o.USER_INCOMPLETE="USER_INCOMPLETE",o.MFA_REQUIRED="MFA_REQUIRED",o.AUTHENTICATED="AUTHENTICATED"})(Fn||(Fn={}));var Un;(function(o){o.VALID="VALID",o.INVALID="INVALID"})(Un||(Un={}));var Bn;(function(o){o.INACCURATE="INACCURATE",o.INCOMPLETE="INCOMPLETE",o.OFF_TOPIC="OFF_TOPIC",o.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",o.SUMMARY="SUMMARY",o.SEMANTIC_SEARCH="SEMANTIC_SEARCH",o.CHATBOT_INSTRUCTIONS="CHATBOT_INSTRUCTIONS",o.OTHER="OTHER"})(Bn||(Bn={}));var Hn;(function(o){o.INACCURATE="INACCURATE",o.INCOMPLETE="INCOMPLETE",o.OFF_TOPIC="OFF_TOPIC",o.IRRELEVANT_SOURCES="IRRELEVANT_SOURCES",o.SLOW="SLOW",o.OTHER="OTHER"})(Hn||(Hn={}));var zn;(function(o){o.JSON="JSON",o.TEXT="TEXT"})(zn||(zn={}));var Gn;(function(o){o.JSON="JSON",o.TEXT="TEXT"})(Gn||(Gn={}));var Wn;(function(o){o.USER="USER",o.ASSISTANT="ASSISTANT"})(Wn||(Wn={}));var $n;(function(o){o.TEXT="TEXT",o.HTML="HTML"})($n||($n={}));var jn;(function(o){o.HTML="HTML",o.MARKDOWN="MARKDOWN"})(jn||(jn={}));var Vn;(function(o){o.MAP="MAP",o.UNSTRUCTURED_DOCUMENT="UNSTRUCTURED_DOCUMENT"})(Vn||(Vn={}));var Ss={[T.PERSONAL_BOOK_SHARE_USER]:[T.PERSONAL_BOOK_USER],[T.HTML_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.PDF_EXPORT_USER]:[T.PERSONAL_BOOK_USER],[T.KHUB_ADMIN]:[T.CONTENT_PUBLISHER],[T.ADMIN]:[T.KHUB_ADMIN,T.USERS_ADMIN,T.PORTAL_ADMIN,T.BEHAVIOR_DATA_USER],[T.GENERATIVE_AI_EXPORT_USER]:[T.GENERATIVE_AI_USER]};function Kn(o,e){return o===e||(Ss[o]??[]).some(r=>Kn(r,e))}function de(o,e){return o==null?!1:(Array.isArray(o)?o:Array.isArray(o.roles)?o.roles:Array.isArray(o.profile?.roles)?o.profile.roles:[]).some(n=>Kn(n,e))}var uo=x(j());var Zn=x(j(),1);var Br=o=>e=>{window.customElements.get(o)||window.customElements.define(o,e)};function qn(o,e){return(0,Zn.property)({type:Object,converter:{fromAttribute:r=>{if(r==null)return St(o);try{return JSON.parse(r)}catch{return St(o)}},toAttribute:r=>JSON.stringify(r)},hasChanged:Ct,...e??{}})}function Cs(o,e){if(o===e)return!0;if(o&&e&&typeof o=="object"&&typeof e=="object"){if(o.constructor!==e.constructor)return!1;let r,n;if(Array.isArray(o)){if(r=o.length,r!=e.length)return!1;for(n=r;n--!==0;)if(!zt(o[n],e[n]))return!1;return!0}if(o instanceof Map&&e instanceof Map){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;for(n of o.entries())if(!zt(n[1],e.get(n[0])))return!1;return!0}if(o instanceof Set&&e instanceof Set){if(o.size!==e.size)return!1;for(n of o.entries())if(!e.has(n[0]))return!1;return!0}if(o.constructor===RegExp)return o.source===e.source&&o.flags===e.flags;if(o.valueOf!==Object.prototype.valueOf)return o.valueOf()===e.valueOf();let a=c=>Object.keys(c).filter(d=>c[d]!=null),s=a(o);if(r=s.length,r!==a(e).length)return!1;for(n=r;n--!==0;)if(!Object.prototype.hasOwnProperty.call(e,s[n]))return!1;for(n=r;n--!==0;){let c=s[n];if(!zt(o[c],e[c]))return!1}return!0}return o!==o&&e!==e||o==null&&e==null}function zt(o,e){try{return Cs(o,e)}catch{return!1}}function Ct(o,e){return!zt(o,e)}function St(o){return typeof window.structuredClone=="function"?structuredClone(o):o!=null?JSON.parse(JSON.stringify(o)):o}function Gt(o,e){let r=n=>n[o]===!0;return n=>{if(r(n))return n;let a=e(n);return a[o]=!0,a}}var Yn=x(j(),1);var Hr=o=>{let e=o??{};return(r,n)=>{var a;let s={hasChanged:Ct,attribute:!1,...e};(0,Yn.property)(s)(r,n);let c=r.constructor;c.reduxProperties=new Map(c.reduxProperties),c.reduxProperties.set(n,{selector:(a=e.selector)!==null&&a!==void 0?a:(d=>d[n]),store:e.store})}};var Wt=class{constructor(){this.queue=[]}add(e,r=!1){r&&this.clear(e.type),this.queue.push(e)}consume(e){let r=this.queue.find(n=>n.type===e);return r&&(this.queue=this.queue.filter(n=>n!==r)),r}clear(e){typeof e=="string"?this.queue=this.queue.filter(r=>r.type!==e):this.queue=this.queue.filter(r=>!e.test(r.type))}};var we=x(j(),1);var $t=class{constructor(e=0){this.timeout=e,this.callbacks=[]}run(e,r){return this.callbacks=[e],this.debounce(r)}queue(e,r){return this.callbacks.push(e),this.debounce(r)}cancel(){this.clearTimeout(),this.resolvePromise&&this.resolvePromise(!1),this.clearPromise()}debounce(e){return this.promise==null&&(this.promise=new Promise((r,n)=>{this.resolvePromise=r,this.rejectPromise=n})),this.clearTimeout(),this._debounce=window.setTimeout(()=>this.runCallbacks(),e??this.timeout),this.promise}async runCallbacks(){var e,r;let n=[...this.callbacks];this.callbacks=[];let a=(e=this.rejectPromise)!==null&&e!==void 0?e:(()=>null),s=(r=this.resolvePromise)!==null&&r!==void 0?r:(()=>null);this.clearPromise();for(let c of n)try{await c()}catch(d){a(d);return}s(!0)}clearTimeout(){this._debounce!=null&&window.clearTimeout(this._debounce)}clearPromise(){this.promise=void 0,this.resolvePromise=void 0,this.rejectPromise=void 0}};var Xn=x(F(),1);var jt=globalThis,Os=jt.ShadowRoot&&(jt.ShadyCSS===void 0||jt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype;var Qn=(o,e)=>{if(Os)o.adoptedStyleSheets=e.map((r=>r instanceof CSSStyleSheet?r:r.styleSheet));else for(let r of e){let n=document.createElement("style"),a=jt.litNonce;a!==void 0&&n.setAttribute("nonce",a),n.textContent=r.cssText,o.appendChild(n)}};var Vt=class extends Xn.LitElement{get scopedRegistryConstructor(){return this.constructor}createRenderRoot(){let e=this.scopedRegistryConstructor;e.elementDefinitions&&!e.registry&&(e.registry=new CustomElementRegistry,e.defineScopedElements(e.elementDefinitions));let r={...e.shadowRootOptions,customElements:e.registry},n=this.renderOptions.creationScope=this.attachShadow(r);return Qn(n,e.elementStyles),n}static canDefineScopedElement(e){return!!this.registry&&!this.registry.get(e)}static defineScopedElements(e){Object.entries(e).forEach(([r,n])=>this.defineScopedElement(r,n))}static defineScopedElement(e,r){Br(e)(r),this.canDefineScopedElement(e)&&this.registry.define(e,r)}canDefineScopedElement(e){return this.scopedRegistryConstructor.canDefineScopedElement(e)}defineScopedElements(e){this.scopedRegistryConstructor.defineScopedElements(e)}defineScopedElement(e,r){this.scopedRegistryConstructor.defineScopedElement(e,r)}};function Jn(o,e,...r){var n;let a=o.querySelector(e);for(let s of r)a=(n=a?.shadowRoot)===null||n===void 0?void 0:n.querySelector(s);return a}var Ke=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},oa,ea=Symbol("constructorPrototype"),ta=Symbol("constructorName"),na=Symbol("exportpartsDebouncer"),ra=Symbol("dynamicDependenciesLoaded"),Ve=class o extends CustomEvent{constructor(){super(o.eventName,{bubbles:!0})}};Ve.eventName="exportparts-updated";var ie=class extends Vt{constructor(){super(),this.useAdoptedStyleSheets=!0,this.adoptedCustomStyleSheet=new CSSStyleSheet,this[oa]=new $t(5),this.scheduleExportpartsUpdate=()=>{var e,r,n;(!((e=this.exportpartsPrefix)===null||e===void 0)&&e.trim()||(n=(r=this.exportpartsPrefixes)===null||r===void 0?void 0:r.length)!==null&&n!==void 0&&n)&&this[na].run(()=>{var a,s;!((a=this.exportpartsPrefix)===null||a===void 0)&&a.trim()?this.setExportpartsAttribute([this.exportpartsPrefix]):this.exportpartsPrefixes!=null&&((s=this.exportpartsPrefixes)===null||s===void 0?void 0:s.length)>0&&this.setExportpartsAttribute(this.exportpartsPrefixes)})},this[ta]=this.constructor.name,this[ea]=this.constructor.prototype}adoptedCallback(){this.constructor.name!==this[ta]&&Object.setPrototypeOf(this,this[ea])}connectedCallback(){var e;super.connectedCallback();try{this.shadowRoot&&!this.shadowRoot.adoptedStyleSheets.includes(this.adoptedCustomStyleSheet)&&(this.shadowRoot.adoptedStyleSheets=[...this.shadowRoot.adoptedStyleSheets,this.adoptedCustomStyleSheet]),this.useAdoptedStyleSheets=!0}catch(n){this.useAdoptedStyleSheets=!1,console.error("Cannot use adopted stylesheets",n)}let r=this.constructor;r[ra]||(r[ra]=!0,this.importDynamicDependencies()),(e=this.shadowRoot)===null||e===void 0||e.addEventListener(Ve.eventName,this.scheduleExportpartsUpdate)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this.shadowRoot)===null||e===void 0||e.removeEventListener(Ve.eventName,this.scheduleExportpartsUpdate)}importDynamicDependencies(){}updated(e){super.updated(e),this.updateComplete.then(()=>{this.contentAvailableCallback(e),this.focusElementToFocus(e),this.applyCustomStylesheet(e),this.scheduleExportpartsUpdate(),e.has("exportparts")&&this.dispatchEvent(new Ve)})}contentAvailableCallback(e){}focusElementToFocus(e){if(e.has("elementToFocus")&&this.elementToFocus!=null){let{element:r,selector:n,shadowPath:a}=this.elementToFocus;if(n!=null){let s=[...a??[],n];r=Jn(this.shadowRoot,...s)}r?.focus(),window.FluidTopicsA11yHints.isKeyboardNavigation||r?.blur(),this.elementToFocus=void 0}}applyCustomStylesheet(e){var r,n,a;if(((n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll(".ft-lit-element--custom-stylesheet"))!==null&&n!==void 0?n:[]).forEach(s=>s.remove()),this.useAdoptedStyleSheets){if(e.has("customStylesheet"))try{this.adoptedCustomStyleSheet.replaceSync((a=this.customStylesheet)!==null&&a!==void 0?a:"")}catch(s){console.error(s,this.customStylesheet),this.useAdoptedStyleSheets=!1}}else if(this.customStylesheet){let s=document.createElement("style");s.classList.add("ft-lit-element--custom-stylesheet"),s.innerHTML=this.customStylesheet,this.shadowRoot.append(s)}}setExportpartsAttribute(e){var r,n,a,s,c,d;let u=g=>g!=null&&g.trim().length>0,p=e.filter(u).map(g=>g.trim());if(p.length===0){this.exportparts=void 0;return}let f=new Set;for(let g of(n=(r=this.shadowRoot)===null||r===void 0?void 0:r.querySelectorAll("[part],[exportparts]"))!==null&&n!==void 0?n:[]){let m=(s=(a=g.getAttribute("part"))===null||a===void 0?void 0:a.split(" "))!==null&&s!==void 0?s:[],y=(d=(c=g.getAttribute("exportparts"))===null||c===void 0?void 0:c.split(",").map(O=>O.split(":")[1]))!==null&&d!==void 0?d:[],v=[...m,...y].filter(u).map(O=>O.trim());for(let O of v)f.add(O)}if(f.size===0){this.exportparts=void 0;return}let h=[...f.values()].flatMap(g=>p.map(m=>`${g}:${m}--${g}`));this.exportparts=[...this.part,...h].join(", ")}};oa=na;Ke([(0,we.property)()],ie.prototype,"exportpartsPrefix",void 0);Ke([qn([])],ie.prototype,"exportpartsPrefixes",void 0);Ke([(0,we.property)({reflect:!0})],ie.prototype,"exportparts",void 0);Ke([(0,we.property)()],ie.prototype,"customStylesheet",void 0);Ke([(0,we.property)()],ie.prototype,"elementToFocus",void 0);Ke([(0,we.state)()],ie.prototype,"useAdoptedStyleSheets",void 0);function Kt(o){var e;return(e=o?.isFtReduxStore)!==null&&e!==void 0?e:!1}var Ot=Symbol("internalReduxEventsUnsubscribers"),be=Symbol("internalStoresUnsubscribers"),Ie=Symbol("internalStores"),Es=Gt(Symbol("withRedux"),function(o){var e,r,n;class a extends o{constructor(){super(...arguments),this[e]=new Map,this[r]=new Map,this[n]=new Map}get reduxConstructor(){return this.constructor}willUpdate(c){super.willUpdate(c),[...this.reduxConstructor.reduxReactiveProperties].some(d=>c.has(d))&&this.updateFromStores()}getUnnamedStore(){if(this[Ie].size>1)throw new Error("Cannot resolve unnamed store when multiple stores are configured.");return[...this[Ie].values()][0]}getStore(c){return c==null?this.getUnnamedStore():this[Ie].get(c)}addStore(c,d){var u;d=(u=d??c.name)!==null&&u!==void 0?u:"default-store",this.unsubscribeFromStore(d),this[Ie].set(d,c),this.subscribeToStore(d,c),this.updateFromStores()}removeStore(c){let d=typeof c=="string"?c:c.name;this.unsubscribeFromStore(d),this[Ie].delete(d)}setupStores(){this.unsubscribeFromStores(),this[Ie].forEach((c,d)=>this.subscribeToStore(d,c)),this.updateFromStores()}updateFromStores(){this.reduxConstructor.reduxProperties.forEach((c,d)=>{let u=this.constructor.getPropertyOptions(d);if(!u?.attribute||!this.hasAttribute(typeof u?.attribute=="string"?u.attribute:d)){let p=this.getStore(c.store);p&&(c.store?this[be].has(c.store):this[be].size>0)&&(this[d]=c.selector(p.getState(),this))}})}subscribeToStore(c,d){var u;this[be].set(c,d.subscribe(()=>this.updateFromStores())),this[Ot].set(c,[]),Kt(d)&&d.eventBus&&((u=this.reduxConstructor.reduxEventListeners)===null||u===void 0||u.forEach((p,f)=>{if(typeof this[f]=="function"&&(!p.store||d.name===p.store)){let h=g=>this[f](g);d.addEventListener(p.eventName,h),this[Ot].get(c).push(()=>d.removeEventListener(p.eventName,h))}})),this.onStoreAvailable(c)}unsubscribeFromStores(){this[be].forEach((c,d)=>this.unsubscribeFromStore(d))}unsubscribeFromStore(c){var d;this[be].has(c)&&this[be].get(c)(),this[be].delete(c),(d=this[Ot].get(c))===null||d===void 0||d.forEach(u=>u()),this[Ot].delete(c)}onStoreAvailable(c){}connectedCallback(){super.connectedCallback(),this.setupStores()}disconnectedCallback(){super.disconnectedCallback(),this.unsubscribeFromStores()}}return e=be,r=Ie,n=Ot,a.reduxProperties=new Map,a.reduxReactiveProperties=new Set,a.reduxEventListeners=new Map,a}),aa=class extends Es(ie){};function J(o){for(var e=arguments.length,r=Array(e>1?e-1:0),n=1;n<e;n++)r[n-1]=arguments[n];if(0)var a,s;throw Error("[Immer] minified error nr: "+o+(r.length?" "+r.map((function(c){return"'"+c+"'"})).join(","):"")+". Find the full error at: https://bit.ly/3cXEKWf")}function ue(o){return!!o&&!!o[L]}function oe(o){var e;return!!o&&((function(r){if(!r||typeof r!="object")return!1;var n=Object.getPrototypeOf(r);if(n===null)return!0;var a=Object.hasOwnProperty.call(n,"constructor")&&n.constructor;return a===Object||typeof a=="function"&&Function.toString.call(a)===_s})(o)||Array.isArray(o)||!!o[pa]||!!(!((e=o.constructor)===null||e===void 0)&&e[pa])||qr(o)||Yr(o))}function Te(o,e,r){r===void 0&&(r=!1),Ye(o)===0?(r?Object.keys:qe)(o).forEach((function(n){r&&typeof n=="symbol"||e(n,o[n],o)})):o.forEach((function(n,a){return e(a,n,o)}))}function Ye(o){var e=o[L];return e?e.i>3?e.i-4:e.i:Array.isArray(o)?1:qr(o)?2:Yr(o)?3:0}function Ze(o,e){return Ye(o)===2?o.has(e):Object.prototype.hasOwnProperty.call(o,e)}function As(o,e){return Ye(o)===2?o.get(e):o[e]}function fa(o,e,r){var n=Ye(o);n===2?o.set(e,r):n===3?o.add(r):o[e]=r}function ha(o,e){return o===e?o!==0||1/o==1/e:o!=o&&e!=e}function qr(o){return Ls&&o instanceof Map}function Yr(o){return ks&&o instanceof Set}function ve(o){return o.o||o.t}function Qr(o){if(Array.isArray(o))return Array.prototype.slice.call(o);var e=ma(o);delete e[L];for(var r=qe(e),n=0;n<r.length;n++){var a=r[n],s=e[a];s.writable===!1&&(s.writable=!0,s.configurable=!0),(s.get||s.set)&&(e[a]={configurable:!0,writable:!0,enumerable:s.enumerable,value:o[a]})}return Object.create(Object.getPrototypeOf(o),e)}function Xr(o,e){return e===void 0&&(e=!1),Jr(o)||ue(o)||!oe(o)||(Ye(o)>1&&(o.set=o.add=o.clear=o.delete=ws),Object.freeze(o),e&&Te(o,(function(r,n){return Xr(n,!0)}),!0)),o}function ws(){J(2)}function Jr(o){return o==null||typeof o!="object"||Object.isFrozen(o)}function se(o){var e=Zr[o];return e||J(18,o),e}function Is(o,e){Zr[o]||(Zr[o]=e)}function jr(){return At}function zr(o,e){e&&(se("Patches"),o.u=[],o.s=[],o.v=e)}function Zt(o){Vr(o),o.p.forEach(Ts),o.p=null}function Vr(o){o===At&&(At=o.l)}function ia(o){return At={p:[],l:At,h:o,m:!0,_:0}}function Ts(o){var e=o[L];e.i===0||e.i===1?e.j():e.g=!0}function Gr(o,e){e._=e.p.length;var r=e.p[0],n=o!==void 0&&o!==r;return e.h.O||se("ES5").S(e,o,n),n?(r[L].P&&(Zt(e),J(4)),oe(o)&&(o=qt(e,o),e.l||Yt(e,o)),e.u&&se("Patches").M(r[L].t,o,e.u,e.s)):o=qt(e,r,[]),Zt(e),e.u&&e.v(e.u,e.s),o!==ya?o:void 0}function qt(o,e,r){if(Jr(e))return e;var n=e[L];if(!n)return Te(e,(function(d,u){return sa(o,n,e,d,u,r)}),!0),e;if(n.A!==o)return e;if(!n.P)return Yt(o,n.t,!0),n.t;if(!n.I){n.I=!0,n.A._--;var a=n.i===4||n.i===5?n.o=Qr(n.k):n.o,s=a,c=!1;n.i===3&&(s=new Set(a),a.clear(),c=!0),Te(s,(function(d,u){return sa(o,n,a,d,u,r,c)})),Yt(o,a,!1),r&&o.u&&se("Patches").N(n,r,o.u,o.s)}return n.o}function sa(o,e,r,n,a,s,c){if(ue(a)){var d=qt(o,a,s&&e&&e.i!==3&&!Ze(e.R,n)?s.concat(n):void 0);if(fa(r,n,d),!ue(d))return;o.m=!1}else c&&r.add(a);if(oe(a)&&!Jr(a)){if(!o.h.D&&o._<1)return;qt(o,a),e&&e.A.l||Yt(o,a)}}function Yt(o,e,r){r===void 0&&(r=!1),!o.l&&o.h.D&&o.m&&Xr(e,r)}function Wr(o,e){var r=o[L];return(r?ve(r):o)[e]}function ca(o,e){if(e in o)for(var r=Object.getPrototypeOf(o);r;){var n=Object.getOwnPropertyDescriptor(r,e);if(n)return n;r=Object.getPrototypeOf(r)}}function xe(o){o.P||(o.P=!0,o.l&&xe(o.l))}function $r(o){o.o||(o.o=Qr(o.t))}function Kr(o,e,r){var n=qr(e)?se("MapSet").F(e,r):Yr(e)?se("MapSet").T(e,r):o.O?(function(a,s){var c=Array.isArray(a),d={i:c?1:0,A:s?s.A:jr(),P:!1,I:!1,R:{},l:s,t:a,k:null,o:null,j:null,C:!1},u=d,p=wt;c&&(u=[d],p=Et);var f=Proxy.revocable(u,p),h=f.revoke,g=f.proxy;return d.k=g,d.j=h,g})(e,r):se("ES5").J(e,r);return(r?r.A:jr()).p.push(n),n}function Rs(o){return ue(o)||J(22,o),(function e(r){if(!oe(r))return r;var n,a=r[L],s=Ye(r);if(a){if(!a.P&&(a.i<4||!se("ES5").K(a)))return a.t;a.I=!0,n=la(r,s),a.I=!1}else n=la(r,s);return Te(n,(function(c,d){a&&As(a.t,c)===d||fa(n,c,e(d))})),s===3?new Set(n):n})(o)}function la(o,e){switch(e){case 2:return new Map(o);case 3:return Array.from(o)}return Qr(o)}function ga(){function o(c,d){var u=s[c];return u?u.enumerable=d:s[c]=u={configurable:!0,enumerable:d,get:function(){var p=this[L];return wt.get(p,c)},set:function(p){var f=this[L];wt.set(f,c,p)}},u}function e(c){for(var d=c.length-1;d>=0;d--){var u=c[d][L];if(!u.P)switch(u.i){case 5:n(u)&&xe(u);break;case 4:r(u)&&xe(u)}}}function r(c){for(var d=c.t,u=c.k,p=qe(u),f=p.length-1;f>=0;f--){var h=p[f];if(h!==L){var g=d[h];if(g===void 0&&!Ze(d,h))return!0;var m=u[h],y=m&&m[L];if(y?y.t!==g:!ha(m,g))return!0}}var v=!!d[L];return p.length!==qe(d).length+(v?0:1)}function n(c){var d=c.k;if(d.length!==c.t.length)return!0;var u=Object.getOwnPropertyDescriptor(d,d.length-1);if(u&&!u.get)return!0;for(var p=0;p<d.length;p++)if(!d.hasOwnProperty(p))return!0;return!1}function a(c){c.g&&J(3,JSON.stringify(ve(c)))}var s={};Is("ES5",{J:function(c,d){var u=Array.isArray(c),p=(function(h,g){if(h){for(var m=Array(g.length),y=0;y<g.length;y++)Object.defineProperty(m,""+y,o(y,!0));return m}var v=ma(g);delete v[L];for(var O=qe(v),E=0;E<O.length;E++){var A=O[E];v[A]=o(A,h||!!v[A].enumerable)}return Object.create(Object.getPrototypeOf(g),v)})(u,c),f={i:u?5:4,A:d?d.A:jr(),P:!1,I:!1,R:{},l:d,t:c,k:p,o:null,g:!1,C:!1};return Object.defineProperty(p,L,{value:f,writable:!0}),p},S:function(c,d,u){u?ue(d)&&d[L].A===c&&e(c.p):(c.u&&(function p(f){if(f&&typeof f=="object"){var h=f[L];if(h){var g=h.t,m=h.k,y=h.R,v=h.i;if(v===4)Te(m,(function(R){R!==L&&(g[R]!==void 0||Ze(g,R)?y[R]||p(m[R]):(y[R]=!0,xe(h)))})),Te(g,(function(R){m[R]!==void 0||Ze(m,R)||(y[R]=!1,xe(h))}));else if(v===5){if(n(h)&&(xe(h),y.length=!0),m.length<g.length)for(var O=m.length;O<g.length;O++)y[O]=!1;else for(var E=g.length;E<m.length;E++)y[E]=!0;for(var A=Math.min(m.length,g.length),k=0;k<A;k++)m.hasOwnProperty(k)||(y[k]=!0),y[k]===void 0&&p(m[k])}}}})(c.p[0]),e(c.p))},K:function(c){return c.i===4?r(c):n(c)}})}var da,At,eo=typeof Symbol<"u"&&typeof Symbol("x")=="symbol",Ls=typeof Map<"u",ks=typeof Set<"u",ua=typeof Proxy<"u"&&Proxy.revocable!==void 0&&typeof Reflect<"u",ya=eo?Symbol.for("immer-nothing"):((da={})["immer-nothing"]=!0,da),pa=eo?Symbol.for("immer-draftable"):"__$immer_draftable",L=eo?Symbol.for("immer-state"):"__$immer_state";var _s=""+Object.prototype.constructor,qe=typeof Reflect<"u"&&Reflect.ownKeys?Reflect.ownKeys:Object.getOwnPropertySymbols!==void 0?function(o){return Object.getOwnPropertyNames(o).concat(Object.getOwnPropertySymbols(o))}:Object.getOwnPropertyNames,ma=Object.getOwnPropertyDescriptors||function(o){var e={};return qe(o).forEach((function(r){e[r]=Object.getOwnPropertyDescriptor(o,r)})),e},Zr={},wt={get:function(o,e){if(e===L)return o;var r=ve(o);if(!Ze(r,e))return(function(a,s,c){var d,u=ca(s,c);return u?"value"in u?u.value:(d=u.get)===null||d===void 0?void 0:d.call(a.k):void 0})(o,r,e);var n=r[e];return o.I||!oe(n)?n:n===Wr(o.t,e)?($r(o),o.o[e]=Kr(o.A.h,n,o)):n},has:function(o,e){return e in ve(o)},ownKeys:function(o){return Reflect.ownKeys(ve(o))},set:function(o,e,r){var n=ca(ve(o),e);if(n?.set)return n.set.call(o.k,r),!0;if(!o.P){var a=Wr(ve(o),e),s=a?.[L];if(s&&s.t===r)return o.o[e]=r,o.R[e]=!1,!0;if(ha(r,a)&&(r!==void 0||Ze(o.t,e)))return!0;$r(o),xe(o)}return o.o[e]===r&&(r!==void 0||e in o.o)||Number.isNaN(r)&&Number.isNaN(o.o[e])||(o.o[e]=r,o.R[e]=!0),!0},deleteProperty:function(o,e){return Wr(o.t,e)!==void 0||e in o.t?(o.R[e]=!1,$r(o),xe(o)):delete o.R[e],o.o&&delete o.o[e],!0},getOwnPropertyDescriptor:function(o,e){var r=ve(o),n=Reflect.getOwnPropertyDescriptor(r,e);return n&&{writable:!0,configurable:o.i!==1||e!=="length",enumerable:n.enumerable,value:r[e]}},defineProperty:function(){J(11)},getPrototypeOf:function(o){return Object.getPrototypeOf(o.t)},setPrototypeOf:function(){J(12)}},Et={};Te(wt,(function(o,e){Et[o]=function(){return arguments[0]=arguments[0][0],e.apply(this,arguments)}})),Et.deleteProperty=function(o,e){return Et.set.call(this,o,e,void 0)},Et.set=function(o,e,r){return wt.set.call(this,o[0],e,r,o[0])};var Ns=(function(){function o(r){var n=this;this.O=ua,this.D=!0,this.produce=function(a,s,c){if(typeof a=="function"&&typeof s!="function"){var d=s;s=a;var u=n;return function(v){var O=this;v===void 0&&(v=d);for(var E=arguments.length,A=Array(E>1?E-1:0),k=1;k<E;k++)A[k-1]=arguments[k];return u.produce(v,(function(R){var ye;return(ye=s).call.apply(ye,[O,R].concat(A))}))}}var p;if(typeof s!="function"&&J(6),c!==void 0&&typeof c!="function"&&J(7),oe(a)){var f=ia(n),h=Kr(n,a,void 0),g=!0;try{p=s(h),g=!1}finally{g?Zt(f):Vr(f)}return typeof Promise<"u"&&p instanceof Promise?p.then((function(v){return zr(f,c),Gr(v,f)}),(function(v){throw Zt(f),v})):(zr(f,c),Gr(p,f))}if(!a||typeof a!="object"){if((p=s(a))===void 0&&(p=a),p===ya&&(p=void 0),n.D&&Xr(p,!0),c){var m=[],y=[];se("Patches").M(a,p,m,y),c(m,y)}return p}J(21,a)},this.produceWithPatches=function(a,s){if(typeof a=="function")return function(p){for(var f=arguments.length,h=Array(f>1?f-1:0),g=1;g<f;g++)h[g-1]=arguments[g];return n.produceWithPatches(p,(function(m){return a.apply(void 0,[m].concat(h))}))};var c,d,u=n.produce(a,s,(function(p,f){c=p,d=f}));return typeof Promise<"u"&&u instanceof Promise?u.then((function(p){return[p,c,d]})):[u,c,d]},typeof r?.useProxies=="boolean"&&this.setUseProxies(r.useProxies),typeof r?.autoFreeze=="boolean"&&this.setAutoFreeze(r.autoFreeze)}var e=o.prototype;return e.createDraft=function(r){oe(r)||J(8),ue(r)&&(r=Rs(r));var n=ia(this),a=Kr(this,r,void 0);return a[L].C=!0,Vr(n),a},e.finishDraft=function(r,n){var a=r&&r[L],s=a.A;return zr(s,n),Gr(void 0,s)},e.setAutoFreeze=function(r){this.D=r},e.setUseProxies=function(r){r&&!ua&&J(20),this.O=r},e.applyPatches=function(r,n){var a;for(a=n.length-1;a>=0;a--){var s=n[a];if(s.path.length===0&&s.op==="replace"){r=s.value;break}}a>-1&&(n=n.slice(a+1));var c=se("Patches").$;return ue(r)?c(r,n):this.produce(r,(function(d){return c(d,n)}))},o})(),Z=new Ns,Ps=Z.produce,Vl=Z.produceWithPatches.bind(Z),Kl=Z.setAutoFreeze.bind(Z),Zl=Z.setUseProxies.bind(Z),ql=Z.applyPatches.bind(Z),Yl=Z.createDraft.bind(Z),Ql=Z.finishDraft.bind(Z),Qt=Ps;function Re(o){"@babel/helpers - typeof";return Re=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Re(o)}function ba(o,e){if(Re(o)!="object"||!o)return o;var r=o[Symbol.toPrimitive];if(r!==void 0){var n=r.call(o,e||"default");if(Re(n)!="object")return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(o)}function va(o){var e=ba(o,"string");return Re(e)=="symbol"?e:e+""}function xa(o,e,r){return(e=va(e))in o?Object.defineProperty(o,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):o[e]=r,o}function Sa(o,e){var r=Object.keys(o);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(o);e&&(n=n.filter(function(a){return Object.getOwnPropertyDescriptor(o,a).enumerable})),r.push.apply(r,n)}return r}function to(o){for(var e=1;e<arguments.length;e++){var r=arguments[e]!=null?arguments[e]:{};e%2?Sa(Object(r),!0).forEach(function(n){xa(o,n,r[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(o,Object.getOwnPropertyDescriptors(r)):Sa(Object(r)).forEach(function(n){Object.defineProperty(o,n,Object.getOwnPropertyDescriptor(r,n))})}return o}function B(o){return"Minified Redux error #"+o+"; visit https://redux.js.org/Errors?code="+o+" for the full message or use the non-minified dev environment for full errors. "}var Ca=(function(){return typeof Symbol=="function"&&Symbol.observable||"@@observable"})(),ro=function(){return Math.random().toString(36).substring(7).split("").join(".")},Xt={INIT:"@@redux/INIT"+ro(),REPLACE:"@@redux/REPLACE"+ro(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+ro()}};function Ds(o){if(typeof o!="object"||o===null)return!1;for(var e=o;Object.getPrototypeOf(e)!==null;)e=Object.getPrototypeOf(e);return Object.getPrototypeOf(o)===e}function oo(o,e,r){var n;if(typeof e=="function"&&typeof r=="function"||typeof r=="function"&&typeof arguments[3]=="function")throw new Error(B(0));if(typeof e=="function"&&typeof r>"u"&&(r=e,e=void 0),typeof r<"u"){if(typeof r!="function")throw new Error(B(1));return r(oo)(o,e)}if(typeof o!="function")throw new Error(B(2));var a=o,s=e,c=[],d=c,u=!1;function p(){d===c&&(d=c.slice())}function f(){if(u)throw new Error(B(3));return s}function h(v){if(typeof v!="function")throw new Error(B(4));if(u)throw new Error(B(5));var O=!0;return p(),d.push(v),function(){if(O){if(u)throw new Error(B(6));O=!1,p();var A=d.indexOf(v);d.splice(A,1),c=null}}}function g(v){if(!Ds(v))throw new Error(B(7));if(typeof v.type>"u")throw new Error(B(8));if(u)throw new Error(B(9));try{u=!0,s=a(s,v)}finally{u=!1}for(var O=c=d,E=0;E<O.length;E++){var A=O[E];A()}return v}function m(v){if(typeof v!="function")throw new Error(B(10));a=v,g({type:Xt.REPLACE})}function y(){var v,O=h;return v={subscribe:function(A){if(typeof A!="object"||A===null)throw new Error(B(11));function k(){A.next&&A.next(f())}k();var R=O(k);return{unsubscribe:R}}},v[Ca]=function(){return this},v}return g({type:Xt.INIT}),n={dispatch:g,subscribe:h,getState:f,replaceReducer:m},n[Ca]=y,n}function Ms(o){Object.keys(o).forEach(function(e){var r=o[e],n=r(void 0,{type:Xt.INIT});if(typeof n>"u")throw new Error(B(12));if(typeof r(void 0,{type:Xt.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(B(13))})}function Oa(o){for(var e=Object.keys(o),r={},n=0;n<e.length;n++){var a=e[n];typeof o[a]=="function"&&(r[a]=o[a])}var s=Object.keys(r),c,d;try{Ms(r)}catch(u){d=u}return function(p,f){if(p===void 0&&(p={}),d)throw d;if(0)var h;for(var g=!1,m={},y=0;y<s.length;y++){var v=s[y],O=r[v],E=p[v],A=O(E,f);if(typeof A>"u"){var k=f&&f.type;throw new Error(B(14))}m[v]=A,g=g||A!==E}return g=g||s.length!==Object.keys(p).length,g?m:p}}function Qe(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return e.length===0?function(n){return n}:e.length===1?e[0]:e.reduce(function(n,a){return function(){return n(a.apply(void 0,arguments))}})}function Ea(){for(var o=arguments.length,e=new Array(o),r=0;r<o;r++)e[r]=arguments[r];return function(n){return function(){var a=n.apply(void 0,arguments),s=function(){throw new Error(B(15))},c={getState:a.getState,dispatch:function(){return s.apply(void 0,arguments)}},d=e.map(function(u){return u(c)});return s=Qe.apply(void 0,d)(a.dispatch),to(to({},a),{},{dispatch:s})}}}function Aa(o){var e=function(n){var a=n.dispatch,s=n.getState;return function(c){return function(d){return typeof d=="function"?d(a,s,o):c(d)}}};return e}var wa=Aa();wa.withExtraArgument=Aa;var no=wa;var ka=(function(){var o=function(e,r){return o=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(n,a){n.__proto__=a}||function(n,a){for(var s in a)Object.prototype.hasOwnProperty.call(a,s)&&(n[s]=a[s])},o(e,r)};return function(e,r){if(typeof r!="function"&&r!==null)throw new TypeError("Class extends value "+String(r)+" is not a constructor or null");o(e,r);function n(){this.constructor=e}e.prototype=r===null?Object.create(r):(n.prototype=r.prototype,new n)}})(),Fs=function(o,e){var r={label:0,sent:function(){if(s[0]&1)throw s[1];return s[1]},trys:[],ops:[]},n,a,s,c;return c={next:d(0),throw:d(1),return:d(2)},typeof Symbol=="function"&&(c[Symbol.iterator]=function(){return this}),c;function d(p){return function(f){return u([p,f])}}function u(p){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,a&&(s=p[0]&2?a.return:p[0]?a.throw||((s=a.return)&&s.call(a),0):a.next)&&!(s=s.call(a,p[1])).done)return s;switch(a=0,s&&(p=[p[0]&2,s.value]),p[0]){case 0:case 1:s=p;break;case 4:return r.label++,{value:p[1],done:!1};case 5:r.label++,a=p[1],p=[0];continue;case 7:p=r.ops.pop(),r.trys.pop();continue;default:if(s=r.trys,!(s=s.length>0&&s[s.length-1])&&(p[0]===6||p[0]===2)){r=0;continue}if(p[0]===3&&(!s||p[1]>s[0]&&p[1]<s[3])){r.label=p[1];break}if(p[0]===6&&r.label<s[1]){r.label=s[1],s=p;break}if(s&&r.label<s[2]){r.label=s[2],r.ops.push(p);break}s[2]&&r.ops.pop(),r.trys.pop();continue}p=e.call(o,r)}catch(f){p=[6,f],a=0}finally{n=s=0}if(p[0]&5)throw p[1];return{value:p[0]?p[1]:void 0,done:!0}}},Xe=function(o,e){for(var r=0,n=e.length,a=o.length;r<n;r++,a++)o[a]=e[r];return o},Us=Object.defineProperty,Bs=Object.defineProperties,Hs=Object.getOwnPropertyDescriptors,Ia=Object.getOwnPropertySymbols,zs=Object.prototype.hasOwnProperty,Gs=Object.prototype.propertyIsEnumerable,Ta=function(o,e,r){return e in o?Us(o,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):o[e]=r},Se=function(o,e){for(var r in e||(e={}))zs.call(e,r)&&Ta(o,r,e[r]);if(Ia)for(var n=0,a=Ia(e);n<a.length;n++){var r=a[n];Gs.call(e,r)&&Ta(o,r,e[r])}return o},ao=function(o,e){return Bs(o,Hs(e))},Ws=function(o,e,r){return new Promise(function(n,a){var s=function(u){try{d(r.next(u))}catch(p){a(p)}},c=function(u){try{d(r.throw(u))}catch(p){a(p)}},d=function(u){return u.done?n(u.value):Promise.resolve(u.value).then(s,c)};d((r=r.apply(o,e)).next())})};var $s=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Qe:Qe.apply(null,arguments)},gd=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION__?window.__REDUX_DEVTOOLS_EXTENSION__:function(){return function(o){return o}};function js(o){if(typeof o!="object"||o===null)return!1;var e=Object.getPrototypeOf(o);if(e===null)return!0;for(var r=e;Object.getPrototypeOf(r)!==null;)r=Object.getPrototypeOf(r);return e===r}function Ce(o,e){function r(){for(var n=[],a=0;a<arguments.length;a++)n[a]=arguments[a];if(e){var s=e.apply(void 0,n);if(!s)throw new Error("prepareAction did not return an object");return Se(Se({type:o,payload:s.payload},"meta"in s&&{meta:s.meta}),"error"in s&&{error:s.error})}return{type:o,payload:n[0]}}return r.toString=function(){return""+o},r.type=o,r.match=function(n){return n.type===o},r}var Vs=(function(o){ka(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Xe([void 0],r[0].concat(this)))):new(e.bind.apply(e,Xe([void 0],r.concat(this))))},e})(Array),Ks=(function(o){ka(e,o);function e(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];var a=o.apply(this,r)||this;return Object.setPrototypeOf(a,e.prototype),a}return Object.defineProperty(e,Symbol.species,{get:function(){return e},enumerable:!1,configurable:!0}),e.prototype.concat=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return o.prototype.concat.apply(this,r)},e.prototype.prepend=function(){for(var r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return r.length===1&&Array.isArray(r[0])?new(e.bind.apply(e,Xe([void 0],r[0].concat(this)))):new(e.bind.apply(e,Xe([void 0],r.concat(this))))},e})(Array);function co(o){return oe(o)?Qt(o,function(){}):o}function Zs(o){return typeof o=="boolean"}function qs(){return function(e){return Ys(e)}}function Ys(o){o===void 0&&(o={});var e=o.thunk,r=e===void 0?!0:e,n=o.immutableCheck,a=n===void 0?!0:n,s=o.serializableCheck,c=s===void 0?!0:s,d=o.actionCreatorCheck,u=d===void 0?!0:d,p=new Vs;if(r&&(Zs(r)?p.push(no):p.push(no.withExtraArgument(r.extraArgument))),0){if(a)var f;if(c)var h;if(u)var g}return p}var io=!0;function _a(o){var e=qs(),r=o||{},n=r.reducer,a=n===void 0?void 0:n,s=r.middleware,c=s===void 0?e():s,d=r.devTools,u=d===void 0?!0:d,p=r.preloadedState,f=p===void 0?void 0:p,h=r.enhancers,g=h===void 0?void 0:h,m;if(typeof a=="function")m=a;else if(js(a))m=Oa(a);else throw new Error('"reducer" is a required argument, and must be a function or an object of functions that can be passed to combineReducers');var y=c;if(typeof y=="function"&&(y=y(e),!io&&!Array.isArray(y)))throw new Error("when using a middleware builder function, an array of middleware must be returned");if(!io&&y.some(function(R){return typeof R!="function"}))throw new Error("each middleware provided to configureStore must be a function");var v=Ea.apply(void 0,y),O=Qe;u&&(O=$s(Se({trace:!io},typeof u=="object"&&u)));var E=new Ks(v),A=E;Array.isArray(g)?A=Xe([v],g):typeof g=="function"&&(A=g(E));var k=O.apply(void 0,A);return oo(m,f,k)}function Na(o){var e={},r=[],n,a={addCase:function(s,c){var d=typeof s=="string"?s:s.type;if(!d)throw new Error("`builder.addCase` cannot be called with an empty action type");if(d in e)throw new Error("`builder.addCase` cannot be called with two reducers for the same action type");return e[d]=c,a},addMatcher:function(s,c){return r.push({matcher:s,reducer:c}),a},addDefaultCase:function(s){return n=s,a}};return o(a),[e,r,n]}function Qs(o){return typeof o=="function"}function Xs(o,e,r,n){r===void 0&&(r=[]);var a=typeof e=="function"?Na(e):[e,r,n],s=a[0],c=a[1],d=a[2],u;if(Qs(o))u=function(){return co(o())};else{var p=co(o);u=function(){return p}}function f(h,g){h===void 0&&(h=u());var m=Xe([s[g.type]],c.filter(function(y){var v=y.matcher;return v(g)}).map(function(y){var v=y.reducer;return v}));return m.filter(function(y){return!!y}).length===0&&(m=[d]),m.reduce(function(y,v){if(v)if(ue(y)){var O=y,E=v(O,g);return E===void 0?y:E}else{if(oe(y))return Qt(y,function(A){return v(A,g)});var E=v(y,g);if(E===void 0){if(y===null)return y;throw Error("A case reducer on a non-draftable value must not return undefined")}return E}return y},h)}return f.getInitialState=u,f}function Js(o,e){return o+"/"+e}function Pa(o){var e=o.name;if(!e)throw new Error("`name` is a required option for createSlice");typeof process<"u";var r=typeof o.initialState=="function"?o.initialState:co(o.initialState),n=o.reducers||{},a=Object.keys(n),s={},c={},d={};a.forEach(function(f){var h=n[f],g=Js(e,f),m,y;"reducer"in h?(m=h.reducer,y=h.prepare):m=h,s[f]=m,c[g]=m,d[f]=y?Ce(g,y):Ce(g)});function u(){var f=typeof o.extraReducers=="function"?Na(o.extraReducers):[o.extraReducers],h=f[0],g=h===void 0?{}:h,m=f[1],y=m===void 0?[]:m,v=f[2],O=v===void 0?void 0:v,E=Se(Se({},g),c);return Xs(r,function(A){for(var k in E)A.addCase(k,E[k]);for(var R=0,ye=y;R<ye.length;R++){var ce=ye[R];A.addMatcher(ce.matcher,ce.reducer)}O&&A.addDefaultCase(O)})}var p;return{name:e,reducer:function(f,h){return p||(p=u()),p(f,h)},actions:d,caseReducers:s,getInitialState:function(){return p||(p=u()),p.getInitialState()}}}var ec="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",tc=function(o){o===void 0&&(o=21);for(var e="",r=o;r--;)e+=ec[Math.random()*64|0];return e},rc=["name","message","stack","code"],so=(function(){function o(e,r){this.payload=e,this.meta=r}return o})(),Ra=(function(){function o(e,r){this.payload=e,this.meta=r}return o})(),oc=function(o){if(typeof o=="object"&&o!==null){for(var e={},r=0,n=rc;r<n.length;r++){var a=n[r];typeof o[a]=="string"&&(e[a]=o[a])}return e}return{message:String(o)}},vd=(function(){function o(e,r,n){var a=Ce(e+"/fulfilled",function(f,h,g,m){return{payload:f,meta:ao(Se({},m||{}),{arg:g,requestId:h,requestStatus:"fulfilled"})}}),s=Ce(e+"/pending",function(f,h,g){return{payload:void 0,meta:ao(Se({},g||{}),{arg:h,requestId:f,requestStatus:"pending"})}}),c=Ce(e+"/rejected",function(f,h,g,m,y){return{payload:m,error:(n&&n.serializeError||oc)(f||"Rejected"),meta:ao(Se({},y||{}),{arg:g,requestId:h,rejectedWithValue:!!m,requestStatus:"rejected",aborted:f?.name==="AbortError",condition:f?.name==="ConditionError"})}}),d=!1,u=typeof AbortController<"u"?AbortController:(function(){function f(){this.signal={aborted:!1,addEventListener:function(){},dispatchEvent:function(){return!1},onabort:function(){},removeEventListener:function(){},reason:void 0,throwIfAborted:function(){}}}return f.prototype.abort=function(){},f})();function p(f){return function(h,g,m){var y=n?.idGenerator?n.idGenerator(f):tc(),v=new u,O,E=!1;function A(R){O=R,v.abort()}var k=(function(){return Ws(this,null,function(){var R,ye,ce,mt,Fo,bt,Uo;return Fs(this,function(Ge){switch(Ge.label){case 0:return Ge.trys.push([0,4,,5]),mt=(R=n?.condition)==null?void 0:R.call(n,f,{getState:g,extra:m}),ac(mt)?[4,mt]:[3,2];case 1:mt=Ge.sent(),Ge.label=2;case 2:if(mt===!1||v.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};return E=!0,Fo=new Promise(function(re,vt){return v.signal.addEventListener("abort",function(){return vt({name:"AbortError",message:O||"Aborted"})})}),h(s(y,f,(ye=n?.getPendingMeta)==null?void 0:ye.call(n,{requestId:y,arg:f},{getState:g,extra:m}))),[4,Promise.race([Fo,Promise.resolve(r(f,{dispatch:h,getState:g,extra:m,requestId:y,signal:v.signal,abort:A,rejectWithValue:function(re,vt){return new so(re,vt)},fulfillWithValue:function(re,vt){return new Ra(re,vt)}})).then(function(re){if(re instanceof so)throw re;return re instanceof Ra?a(re.payload,y,f,re.meta):a(re,y,f)})])];case 3:return ce=Ge.sent(),[3,5];case 4:return bt=Ge.sent(),ce=bt instanceof so?c(null,y,f,bt.payload,bt.meta):c(bt,y,f),[3,5];case 5:return Uo=n&&!n.dispatchConditionRejection&&c.match(ce)&&ce.meta.condition,Uo||h(ce),[2,ce]}})})})();return Object.assign(k,{abort:A,requestId:y,arg:f,unwrap:function(){return k.then(nc)}})}}return Object.assign(p,{pending:s,rejected:c,fulfilled:a,typePrefix:e})}return o.withTypes=function(){return o},o})();function nc(o){if(o.meta&&o.meta.rejectedWithValue)throw o.payload;if(o.error)throw o.error;return o.payload}function ac(o){return o!==null&&typeof o=="object"&&typeof o.then=="function"}var Da="listener",Ma="completed",Fa="cancelled",xd="task-"+Fa,Sd="task-"+Ma,Cd=Da+"-"+Fa,Od=Da+"-"+Ma;var lo="listenerMiddleware";var Ed=Ce(lo+"/add"),Ad=Ce(lo+"/removeAll"),wd=Ce(lo+"/remove");var La,Id=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:typeof global<"u"?global:globalThis):function(o){return(La||(La=Promise.resolve())).then(o).catch(function(e){return setTimeout(function(){throw e},0)})},ic=function(o){return function(e){setTimeout(e,o)}},Td=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:ic(10);ga();var sc=Gt(Symbol("withEventBus"),function(o,e){return class extends o{constructor(){super(...arguments),this.eventBus=e??document.createElement("span")}addEventListener(r,n,a){this.eventBus.addEventListener(r,n,a)}dispatchEvent(r){return this.eventBus.dispatchEvent(r)}removeEventListener(r,n,a){this.eventBus.removeEventListener(r,n,a)}}}),Jt=class extends sc(Object){};window.ftReduxStores||(window.ftReduxStores={});var Ua=class o extends Jt{static get(e){var r;let n=typeof e=="string"?e:e.name,a=typeof e=="string"?void 0:e,s=window.ftReduxStores[n];if(Kt(s))return s;if(a==null)return;let c=Pa({...a,reducers:(r=a.reducers)!==null&&r!==void 0?r:{}}),d=_a({reducer:(u,p)=>{if(p.type==="CLEAR_FT_REDUX_STORE"){let f=St(c.getInitialState());for(let h of p.keeping)f[h]=(u??f)[h];return f}else if(typeof p.type=="string"&&p.type.startsWith("DEFAULT_VALUE_SETTER__"))return{...u,...p.overwrites};return c.reducer(u,p)}});return window.ftReduxStores[a.name]=new o(c,d,a.eventBus)}constructor(e,r,n){super(),this.reduxSlice=e,this.reduxStore=r,this.isFtReduxStore=!0,this.commands=new Wt;let a=s=>s!=null?JSON.parse(JSON.stringify(s)):s;this.actions=new Proxy(this.reduxSlice.actions,{get:(s,c,d)=>{let u=c,p=s[u];return p?(...f)=>{let h=p(...f.map(a));return this.reduxStore.dispatch(h),h}:f=>{this.setState({[u]:a(f)})}}}),this.eventBus=n??this.eventBus}clear(){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:[]})}clearKeeping(...e){this.reduxStore.dispatch({type:"CLEAR_FT_REDUX_STORE",keeping:e})}setState(e){this.reduxStore.dispatch({type:"DEFAULT_VALUE_SETTER__"+Object.keys(e).join("_"),overwrites:e})}get dispatch(){throw new Error("Don't use this method, actions are automatically dispatched when called.")}[Symbol.observable](){return this.reduxStore[Symbol.observable]()}getState(){return this.reduxStore.getState()}replaceReducer(e){throw new Error("Not implemented yet.")}subscribe(e){return this.reduxStore.subscribe(e)}get name(){return this.reduxSlice.name}get reducer(){return this.reduxSlice.reducer}get caseReducers(){return this.reduxSlice.caseReducers}getInitialState(){return this.reduxSlice.getInitialState()}};var er=class{static format(e,r,n,a,s){return window.moment?window.moment(e).locale(r).format(this.getMomentDateFormat(n,a,!!s)):this.getIntlDateTime(e,r,n,a,!!s)}static getMomentDateFormat(e,r,n){return n?"LT":e?r?"lll":"ll":r?"L LT":"L"}static getIntlDateTime(e,r,n,a,s){let c=typeof e=="string"?new Date(e):e,d=new Intl.DateTimeFormat(r,{dateStyle:n?"medium":"short"}).format(c),u=new Intl.DateTimeFormat(r,{timeStyle:"short"}).format(c);return s?u:a?`${d} ${u}`:d}static getTimezoneAsString(){let e=n=>String(Math.floor(n)).padStart(2,"0"),r=new Date().getTimezoneOffset();return`${r<0?"+":"-"}${e(Math.abs(r)/60)}:${e(Math.abs(r)%60)}`}};var tr=x(w()),cc="ft-app-info",pe=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:e})}};pe.eventName="authentication-change";var It=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:e})}};It.eventName="ui-locale-changed";var lc={session:(o,e)=>{(0,tr.deepEqual)(o.session,e.payload)||(o.session=e.payload,setTimeout(()=>S.dispatchEvent(new pe(e.payload)),0))}},S=tr.FtReduxStore.get({name:cc,reducers:lc,initialState:{baseUrl:void 0,apiIntegrationIdentifier:void 0,apiIntegrationAppVersion:void 0,uiLocale:document.documentElement.lang||"en-US",availableUiLocales:[],availableContentLocales:[],defaultLocales:void 0,searchInAllLanguagesAllowed:!1,searchLanguageSetsUiLanguage:!1,uiLanguageSetsSearchLanguage:!1,uiLanguageSetsReaderLanguage:!1,metadataConfiguration:void 0,privacyPolicyConfiguration:void 0,editorMode:!1,noCustom:!1,noCustomComponent:!1,session:void 0,openExternalDocumentInNewTab:!1,navigatorOnline:!0,forcedOffline:!1,authenticationRequired:!1}});var Ba=x(w()),rr=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},ru=(0,Ba.applyMixinOnce)(Symbol("withDateFormat"),function(o){class e extends o{constructor(...n){super(n),this.useLongDateFormat=!1,this.useDateTimeFormat=!1,this.metadataDescriptors=[],this.uiLocale="en-US",this.addStore(S)}dateFormatOptionsChanged(n){return n.has("metadataDescriptors")||n.has("useLongDateFormat")||n.has("useDateTimeFormat")||n.has("uiLocale")}getDateFormatter(n){var a,s;return((s=(a=this.metadataDescriptors.find(d=>d.key===n))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1)?d=>er.format(d,this.uiLocale,this.useLongDateFormat,this.useDateTimeFormat):void 0}}return rr([(0,uo.property)({type:Boolean})],e.prototype,"useLongDateFormat",void 0),rr([(0,uo.property)({type:Boolean})],e.prototype,"useDateTimeFormat",void 0),rr([Hr({store:S.name,selector:r=>{var n,a;return(a=(n=r.metadataConfiguration)===null||n===void 0?void 0:n.descriptors)!==null&&a!==void 0?a:[]}})],e.prototype,"metadataDescriptors",void 0),rr([Hr({store:S.name})],e.prototype,"uiLocale",void 0),e});var sr=x(w());var po=x(w());var Le=class o{static get(e){let{baseUrl:r,apiIntegrationIdentifier:n}=S.getState(),a=e??n;if(r&&a&&window.fluidtopics)return new window.fluidtopics.FluidTopicsApi(r,a,!0)}static await(e){return new Promise(r=>{let n=o.get(e);if(n)r(n);else{let a=S.subscribe(()=>{n=o.get(e),n&&(a(),r(n))})}})}};var Je=class{constructor(e){this.overrideApi=e}get api(){var e;return(e=this.overrideApi)!==null&&e!==void 0?e:Le.get()}get awaitApi(){return this.overrideApi?Promise.resolve(this.overrideApi):Le.await()}};var H=class extends Je{constructor(e=!0,r){var n;super(r),this.sortObjectFields=(s,c)=>typeof c!="object"||c==null||Array.isArray(c)?c:Object.fromEntries(Object.entries(c).sort(([d],[u])=>d.localeCompare(u)));let a=this.constructor;a.commonCache=(n=a.commonCache)!==null&&n!==void 0?n:new po.CacheRegistry,this.cache=e?a.commonCache:new po.CacheRegistry}clearCache(){this.cache.clearAll()}hash(e){return String(Array.from(JSON.stringify(e,this.sortObjectFields)).reduce((r,n)=>0|31*r+n.charCodeAt(0),0))}};var or=class extends H{async listMySearches(){let{session:e}=S.getState();return de(e,T.SAVED_SEARCH_USER)?this.cache.get("my-searches",async()=>(await this.awaitApi).listMySearches(e.profile.userId),300*1e3):[]}};var nr=class extends H{async listMyBookmarks(){let e=S.getState().session;return e?.sessionAuthenticated?this.cache.get("my-bookmarks",async()=>(await this.awaitApi).listMyBookmarks(e.profile.userId),300*1e3):[]}};var ar=class extends H{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetCount(e){if(this.isAuthenticated())return this.cache.get(`user-asset-count-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/${e}`),this.CACHE_DURATION)}async getUserBookmarkCountByMap(e){if(this.isAuthenticated())return this.cache.get(`user-bookmark-count-by-map-${e}`,async()=>(await this.awaitApi).get(`/internal/api/webapp/user/assets/count/BOOKMARKS/${e}`),this.CACHE_DURATION)}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}};var ir=class extends H{constructor(){super(...arguments),this.CACHE_DURATION=180*1e3}async getUserAssetLabels(){return this.isAuthenticated()?this.cache.get("user-asset-labels",async()=>(await this.awaitApi).get("/internal/api/webapp/user/assets/labels"),this.CACHE_DURATION):[]}isAuthenticated(){let e=S.getState().session;return!!e?.sessionAuthenticated}};var dc="ft-user-assets",uc={setAssetCount:(o,e)=>{let{userAssetType:r,count:n}=e.payload.assetCount;o.assetCounts.allAsset[r]=n},clearAssetCount:o=>{Object.values(X).forEach(e=>{o.assetCounts.allAsset[e]=void 0})},setBookmarkCountByMap:(o,e)=>{let r=e.payload.mapId;o.assetCounts.bookmarkByMap[r]=e.payload.count},clearBookmarkCountByMap:o=>{o.assetCounts.bookmarkByMap={}},addAsset:(o,e)=>{let{assetType:r,mapId:n,asset:a}=e.payload;ho(o,r,[...fo(o,r),a]),Ha(o,r,1,n),za(o,a)},editAsset:(o,e)=>{let{assetType:r,asset:n}=e.payload;ho(o,r,fo(o,r).map(a=>a.id===n.id?n:a)),za(o,n)},removeAsset:(o,e)=>{let{assetType:r,mapId:n,assetId:a}=e.payload;ho(o,r,fo(o,r).filter(s=>s.id!==a)),Ha(o,r,-1,n)}},Ga={[X.SEARCHES]:"savedSearches",[X.BOOKMARKS]:"bookmarks",[X.BOOKS]:void 0,[X.COLLECTIONS]:void 0},fo=(o,e)=>{var r;let n=Ga[e];return n?(r=o[n])!==null&&r!==void 0?r:[]:[]},ho=(o,e,r)=>{let n=Ga[e];n&&(o[n]=r)},Ha=(o,e,r,n)=>{let a=o.assetCounts.allAsset[e];if(a!==void 0&&(o.assetCounts.allAsset[e]=Math.max(0,a+r),e===X.BOOKMARKS&&n)){let s=o.assetCounts.bookmarkByMap[n];o.assetCounts.bookmarkByMap[n]=Math.max(0,s+r)}},za=(o,e)=>{let r=o.assetLabels.map(a=>a.title),n=e.labels.filter(a=>!r.includes(a)).map(a=>({title:a}));o.assetLabels.push(...n)},$=sr.FtReduxStore.get({name:dc,reducers:uc,initialState:{savedSearches:void 0,bookmarks:void 0,assetCounts:{allAsset:Object.fromEntries(Object.values(X).map(o=>[o,void 0])),bookmarkByMap:{}},assetLabels:[]}}),go=class{constructor(e=new ar,r=new ir){this.assetCountsService=e,this.assetLabelsService=r,this.currentSession=S.getState().session,this.bookmarksAreUsed=!1,this.bookmarksService=new nr,this.savedSearchesService=new or,S.subscribe(()=>this.reloadWhenUserSessionChanges())}reloadWhenUserSessionChanges(){var e;let{session:r}=S.getState();(0,sr.deepEqual)((e=this.currentSession)===null||e===void 0?void 0:e.profile,r?.profile)||(this.currentSession=r,this.clearMySearches(),this.reloadBookmarks(),this.clearUserAssetCounts(),this.reloadAssetLabels())}clearUserAssetCounts(){this.assetCountsService.clearCache(),$.actions.clearAssetCount(),$.actions.clearBookmarkCountByMap()}clear(){this.clearMySearches(),this.clearMyBookmarks()}clearMySearches(){this.savedSearchesService.clearCache(),$.actions.savedSearches(void 0)}clearMyBookmarks(){this.bookmarksService.clearCache(),$.actions.bookmarks(void 0)}async reloadMySearches(){this.savedSearchesService.clearCache();let e=await this.savedSearchesService.listMySearches();$.actions.savedSearches(e)}async reloadBookmarks(){this.bookmarksService.clearCache(),await this.updateBookmarksIfUsed()}async reloadAssetLabels(){this.assetLabelsService.clearCache();let e=await this.assetLabelsService.getUserAssetLabels();$.actions.assetLabels(e)}async loadAssetCount(e){let r=await this.assetCountsService.getUserAssetCount(e);r&&$.getState().assetCounts.allAsset[e]!==r.count&&$.actions.setAssetCount({assetCount:r})}async loadBookmarkByMapId(e){let r=await this.assetCountsService.getUserBookmarkCountByMap(e);r&&$.getState().assetCounts.bookmarkByMap[e]!==r.count&&$.actions.setBookmarkCountByMap({count:r.count,mapId:e})}async reloadAssetCount(e){this.assetCountsService.clearCache();let r=Object.keys($.getState().assetCounts.bookmarkByMap).length!==0;e===X.BOOKMARKS&&r&&$.actions.clearBookmarkCountByMap(),$.getState().assetCounts.allAsset[e]!==void 0&&await this.loadAssetCount(e)}async registerBookmarkComponent(){this.bookmarksAreUsed=!0,await this.updateBookmarksIfUsed()}async updateBookmarksIfUsed(){var e;if(this.bookmarksAreUsed){let r=!((e=this.currentSession)===null||e===void 0)&&e.sessionAuthenticated?await this.bookmarksService.listMyBookmarks():void 0;$.actions.bookmarks(r)}}},yo=new go;window.FluidTopicsUserAssetsActions==null&&(window.FluidTopicsUserAssetsActions=yo);var mo=class{addCommand(e,r=!1){S.commands.add(e,r)}consumeCommand(e){return S.commands.consume(e)}};window.FluidTopicsAppInfoStoreService=new mo;var ee=x(w());var Wa,et=class extends CustomEvent{constructor(e){super("ft-i18n-context-loaded",{detail:e})}},pc=Symbol("clearAfterUnitTest"),cr=class extends(0,ee.withEventBus)(H){constructor(e){super(),this.messageContextProvider=e,this.defaultMessages={},this.listeners={},this.currentUiLocale="",this[Wa]=()=>{this.defaultMessages={},this.cache=new ee.CacheRegistry,this.listeners={}},this.currentUiLocale=S.getState().uiLocale,S.subscribe(()=>this.clearWhenUiLocaleChanges())}clearWhenUiLocaleChanges(){let{uiLocale:e}=S.getState();this.currentUiLocale!==e&&(this.currentUiLocale=e,this.cache.clearAll(),this.notifyAll())}addContext(e){let r=e.name.toLowerCase();this.cache.setFinal(r,e),this.notify(r)}getAllContexts(){return this.cache.resolvedValues()}async prepareContext(e,r){var n;if(e=e.toLowerCase(),r&&Object.keys(r).length>0){let a={...(n=this.defaultMessages[e])!==null&&n!==void 0?n:{},...r};(0,ee.deepEqual)(this.defaultMessages[e],a)||(this.defaultMessages[e]=a,await this.notify(e))}return this.fetchContext(e)}resolveContext(e){var r,n;return this.fetchContext(e),(n=(r=this.cache.getNow(e))===null||r===void 0?void 0:r.messages)!==null&&n!==void 0?n:{}}resolveRawMessage(e,r){let n=e.toLowerCase();return this.resolveContext(n)[r]}resolveMessage(e,r,...n){var a;let s=e.toLowerCase(),c=this.resolveContext(s);return new ee.ParametrizedLabelResolver((a=this.defaultMessages[s])!==null&&a!==void 0?a:{},c).resolve(r,...n)}async fetchContext(e){let r=!this.cache.has(e),n;try{n=await this.cache.get(e,()=>this.messageContextProvider(this.currentUiLocale,e)),r&&await this.notify(e)}catch(a){!(a instanceof ee.CanceledPromiseError)&&r&&console.error(a)}return n}subscribe(e,r){var n;return e=e.toLowerCase(),this.listeners[e]=(n=this.listeners[e])!==null&&n!==void 0?n:new Set,this.listeners[e].add(r),()=>{var a;return(a=this.listeners[e])===null||a===void 0?void 0:a.delete(r)}}async notifyAll(){let e=Object.keys(this.listeners);document.body.dispatchEvent(new et({loadedContexts:e})),this.dispatchEvent(new et({loadedContexts:e})),await Promise.all(e.map(r=>this.notify(r,!1)))}async notify(e,r=!0){r&&(document.body.dispatchEvent(new et({loadedContexts:[e]})),this.dispatchEvent(new et({loadedContexts:[e]}))),this.listeners[e]!=null&&await Promise.all([...this.listeners[e].values()].map(n=>(0,ee.delay)(0).then(()=>n()).catch(()=>null)))}};Wa=pc;window.FluidTopicsI18nService==null&&(window.FluidTopicsI18nService=new class extends cr{constructor(){super(async(o,e)=>(await this.awaitApi).getFluidTopicsMessageContext(o,e))}});window.FluidTopicsCustomI18nService==null&&(window.FluidTopicsCustomI18nService=new class extends cr{constructor(){super(async(o,e)=>(await this.awaitApi).getCustomMessageContext(o,e))}});var $a=window.FluidTopicsI18nService,Fu=window.FluidTopicsCustomI18nService;var ja=x(w()),bo=class{highlightHtml(e,r,n){(0,ja.highlightHtml)(e,r,n)}};window.FluidTopicsHighlightHtmlService=new bo;var Va=x(w());var vo=class{isDate(e){var r,n,a,s;return(s=(a=((n=(r=S.getState().metadataConfiguration)===null||r===void 0?void 0:r.descriptors)!==null&&n!==void 0?n:[]).find(d=>d.key===e))===null||a===void 0?void 0:a.date)!==null&&s!==void 0?s:!1}format(e,r){var n,a,s,c;if(e==null)return"";try{return Va.DateFormatter.format(e,(n=r?.locale)!==null&&n!==void 0?n:S.getState().uiLocale,(a=r?.longFormat)!==null&&a!==void 0?a:!1,(s=r?.withTime)!==null&&s!==void 0?s:!1,(c=r?.onlyTime)!==null&&c!==void 0?c:!1)}catch(d){throw console.error(`Date ${JSON.stringify(e)} is not valid`,d),d}}};window.FluidTopicsDateService=new vo;var Ka=x(w());var Tt=class{static get(e,r){var n,a;let s=S.getState(),{lang:c,region:d}=(a=(n=s.defaultLocales)===null||n===void 0?void 0:n.defaultContentLocale)!==null&&a!==void 0?a:{lang:"en",region:"US"};return new Ka.SearchPlaceConverter(s.baseUrl,e??20,s.searchInAllLanguagesAllowed,r??`${c}-${d}`)}};var lr=class extends H{async sendDocumentStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.start_display event")}async sendTopicStartDisplayEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.start_display event")}async sendKhubSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send khub.search event")}async sendDocumentSearchEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.search event")}async sendSearchPageSelectEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_page.select event")}async sendSearchResultOpenContextMenuEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send search_result.open_context_menu event")}async sendDocumentOnDemandTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send document.on_demand_translate event")}async sendTopicAiTranslateEvent(e){return this.sendEvents([this.sortEventArrays(e)],"Failed to send topic.ai_translate event")}convertMapToAnalyticsDocument(e){let r;switch(e.editorialType){case"BOOK":r="STRUCTURED_DOCUMENT";break;case"SHARED_BOOK":r="SHARED_PERSONAL_BOOK";break;case"ARTICLE":r="RESOURCE";break;case"HTML_PACKAGE":r="HTML_PACKAGE";break;default:throw new TypeError("Unknown editorial type for map : "+e.editorialType)}return{id:e.id,title:e.title,type:r,metadata:e.metadata}}sortEventArrays(e){let r=Object.entries(e).map(([n,a])=>Array.isArray(a)?[n,a.map(s=>typeof s=="object"&&s!=null&&!Array.isArray(s)?this.sortEventArrays(s):s).sort((s,c)=>typeof s=="object"&&s!==null&&"key"in s?s.key.localeCompare(c.key):typeof s=="string"&&typeof c=="string"?s.localeCompare(c):String(s).localeCompare(String(c)))]:typeof a=="object"&&a!==null?[n,this.sortEventArrays(a)]:[n,a]);return Object.fromEntries(r)}sendEvents(e,r){let n="anything not undefined";return this.cache.get("analytics-event-"+this.hash(e),async()=>(await this.awaitApi).sendEvents(e).then(()=>n).catch(a=>(console.info(r),console.debug(a),n)),1e3)}};var xo=class{urlToSearchRequest(e){return Tt.get().parse(e)}searchRequestToUrl(e){return Tt.get().serialize(e)}};window.FluidTopicsUrlService=new xo;var fe=x(w());var ke=class o extends CustomEvent{constructor(e){super(o.eventName,{detail:{currentItem:e}})}};ke.eventName="change";var So=class{itemName(e){return`fluid-topics-history-item-${e}`}get(e){let r=sessionStorage.getItem(this.itemName(e));return r?JSON.parse(r):void 0}set(e,r){sessionStorage.setItem(this.itemName(e),JSON.stringify(r))}},Za=new So;var dr=class o extends fe.WithEventBus{static build(){return new o(window.history,Za,()=>window.location,!1)}constructor(e,r,n,a){var s,c;super(),this.history=e,this.historyStorage=r,this.windowLocation=n,this.states=[],this.realPushState=e.pushState,this.realReplaceState=e.replaceState,this.initialIndex=(c=(s=e.state)===null||s===void 0?void 0:s.index)!==null&&c!==void 0?c:e.length-1,this.currentIndex=this.initialIndex,this.setCurrentState(this.buildCurrentState()),this.installProxies(),this.initEventListeners(),this.initData(a)}setCurrentState(e,r=!1){let n=r&&this.currentIndex===e.index-1;this.currentState={...this.buildCurrentState(),...e},this.currentIndex=this.currentState.index,this.states[this.currentIndex]=this.currentState,n&&(this.states=this.states.slice(0,this.currentIndex+1)),this.historyStorage.set(this.currentIndex,this.currentState),(0,fe.deepEqual)(this.currentState,this.history.state)||this.realReplaceState.apply(this.history,[this.currentState,this.currentState.title,window.location.href]),setTimeout(()=>this.dispatchEvent(new ke(this.currentItem())),0)}installProxies(){let e=r=>(n,a,[s,c,d])=>{let u=r(),p={...u===this.currentIndex?this.currentState:void 0,...s,index:u,href:typeof d=="string"?d:(d??this.windowLocation()).href};n.apply(a,[p,c,d]),this.setCurrentState(p,!0)};this.history.pushState=new Proxy(this.history.pushState,{apply:e(()=>this.currentIndex+1)}),this.history.replaceState=new Proxy(this.history.replaceState,{apply:e(()=>this.currentIndex)})}initEventListeners(){window.addEventListener("popstate",e=>this.setCurrentState(e.state)),document.querySelector("title")==null&&document.head.append(document.createElement("title")),new MutationObserver(()=>this.updateCurrentState({title:document.title})).observe(document.querySelector("title"),{subtree:!0,characterData:!0,childList:!0})}initData(e){for(let r=this.history.length-1;r>=0;r--)e?this.states[r]=this.historyStorage.get(r):setTimeout(()=>this.states[r]=this.historyStorage.get(r),this.history.length-r)}updateCurrentState(e){var r;let n={...this.buildCurrentState(),...e,index:this.currentIndex,title:(r=e?.title)!==null&&r!==void 0?r:this.currentState.title};this.setCurrentState(n)}addHistoryChangeListener(e){this.addEventListener(ke.eventName,e)}removeHistoryChangeListener(e){this.removeEventListener(ke.eventName,e)}currentItem(){return(0,fe.deepCopy)(this.currentState)}back(){let e=this.previousDifferentMajorPosition();e>=0?this.history.go(e-this.currentIndex):this.currentIndex!==this.initialIndex?this.history.go(this.initialIndex-this.currentIndex):this.history.back()}backwardItem(){return(0,fe.deepCopy)(this.states[this.previousDifferentMajorPosition()])}backwardItemMatching(e){let r=this.states.filter(n=>!!n).filter(n=>n.index<this.currentIndex).reverse();return(0,fe.deepCopy)(r.find(n=>e(n)))}previousDifferentMajorPosition(){let e=this.currentIndex>0?this.currentIndex-1:0;for(;e>0&&!this.isDifferentMajorState(e);)e--;return e}forward(){let e=this.nextMajorPosition();e&&e<this.states.length?this.history.go(e-this.currentIndex):this.history.forward()}forwardItem(){let e=this.nextMajorPosition();if(e)return(0,fe.deepCopy)(this.states[e])}nextMajorPosition(){let e=this.currentIndex;if(!(e>=this.states.length)){do e++;while(e<this.states.length&&!this.isDifferentMajorState(e));return this.getHigherPositionInTheSameState(e)}}getHigherPositionInTheSameState(e){var r;let n=(r=this.states[e])===null||r===void 0?void 0:r.majorStateId;if(!n)return e;let a=e,s=e+1;for(;this.states.length>s&&!this.isDifferentMajorState(s,n);)this.hasState(s)&&(a=s),s++;return a}buildCurrentState(){var e,r;return{...this.history.state,index:this.currentIndex,href:this.windowLocation().href,title:(r=(e=this.history.state)===null||e===void 0?void 0:e.title)!==null&&r!==void 0?r:document.title}}hasState(e){return this.states[e]!=null}isDifferentMajorState(e,r){var n;if(!this.hasState(e))return!1;let a=r??this.currentState.majorStateId,s=(n=this.states[e])===null||n===void 0?void 0:n.majorStateId;return s==null||s!=a}};window.FluidTopicsInternalHistoryService==null&&(window.FluidTopicsInternalHistoryService=dr.build(),window.FluidTopicsHistoryService={currentItem:()=>window.FluidTopicsInternalHistoryService.currentItem(),back:()=>window.FluidTopicsInternalHistoryService.back(),forward:()=>window.FluidTopicsInternalHistoryService.forward(),backwardItem:()=>window.FluidTopicsInternalHistoryService.backwardItem(),forwardItem:()=>window.FluidTopicsInternalHistoryService.forwardItem(),backwardItemMatching:o=>window.FluidTopicsInternalHistoryService.backwardItemMatching(o),addHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.addHistoryChangeListener(o),removeHistoryChangeListener:o=>window.FluidTopicsInternalHistoryService.removeHistoryChangeListener(o)});var qa=x(F());var Ya=qa.css`
49
+ `;var Ja=x(F()),q=x(j()),Pe=x(w());var _e=x(w());function Qa(o,e){let{authenticationRequired:r,session:n}=S.getState();return r&&!n?.sessionAuthenticated?Promise.resolve(e):o()}var ur=class extends Je{async updateUiLocale(e){return(await this.awaitApi).updateUiLocale(e)}};var Co=class o extends _e.FtStateManager{static build(e){return new o(S,e)}constructor(e,r){super(),this.store=e,this.cache=new _e.CacheRegistry,this.withManualResources=!0,this.localesConfiguration=null,this.userLocaleService=new ur,this.cleanSessionDebouncer=new _e.Debouncer,this.reloadDebouncer=new _e.Debouncer(500),this.apiProvider=r??(()=>Le.get())}setWithManualResources(e){this.withManualResources=e,this.updateIfNeeded()}async initService(){this.store.addEventListener(pe.eventName,this.reloadConfiguration)}async updateIfNeeded(){this.apiProvider()&&(this.withManualResources||(this.store.getState().session==null&&this.updateSession(),this.store.getState().metadataConfiguration==null&&this.updateMetadataConfiguration()),this.localesConfiguration==null&&this.updateLocalesConfiguration(),(this.store.getState().availableContentLocales==null||this.store.getState().availableContentLocales.length==0)&&this.updateAvailableContentLocales())}async updateSession(){let e=await this.cache.get("session",async()=>{let r=await this.apiProvider().getCurrentSession();return r.idleTimeoutInMillis>0&&this.cleanSessionDebouncer.run(()=>{this.cache.clear("session"),this.setSession(void 0)},r.idleTimeoutInMillis),r});this.setSession(e)}async updateMetadataConfiguration(){this.setMetadataConfiguration(await this.cache.get("metadataConfiguration",()=>this.apiProvider().getMetadataConfiguration()))}async updateLocalesConfiguration(){this.setLocalesConfiguration(await this.cache.get("localesConfiguration",()=>this.apiProvider().getLocalesConfiguration()))}async updateAvailableContentLocales(){var e;let r=await this.cache.get("availableContentLocales",()=>Qa(()=>this.apiProvider().getAvailableSearchLocales(),{contentLocales:[]}));this.setAvailableContentLocales((e=r.contentLocales)!==null&&e!==void 0?e:[])}reloadConfiguration(){var e;(e=this.cache)===null||e===void 0||e.clear("availableContentLocales"),typeof this.updateAvailableContentLocales=="function"&&this.updateAvailableContentLocales()}setBaseUrl(e){this.store.actions.baseUrl(e),window.fluidTopicsBaseUrl=e}setApiIntegrationIdentifier(e){this.store.actions.apiIntegrationIdentifier(e)}setApiIntegrationAppVersion(e){this.store.actions.apiIntegrationAppVersion(e)}setUiLocale(e){this.store.actions.uiLocale(e)}setLocalesConfiguration(e){var r,n,a,s,c;this.localesConfiguration=e,this.store.actions.defaultLocales(this.localesConfiguration.defaultLocales),this.store.actions.availableUiLocales((r=this.localesConfiguration.availableUiLocales)!==null&&r!==void 0?r:[]),this.store.actions.searchInAllLanguagesAllowed((n=this.localesConfiguration.allLanguagesAllowed)!==null&&n!==void 0?n:!1),this.store.actions.searchLanguageSetsUiLanguage((a=this.localesConfiguration.searchLanguageSetsUiLanguage)!==null&&a!==void 0?a:!1),this.store.actions.uiLanguageSetsSearchLanguage((s=this.localesConfiguration.uiLanguageSetsSearchLanguage)!==null&&s!==void 0?s:!1),this.store.actions.uiLanguageSetsReaderLanguage((c=this.localesConfiguration.uiLanguageSetsReaderLanguage)!==null&&c!==void 0?c:!1),setTimeout(()=>this.updateIfNeeded())}setAvailableContentLocales(e){this.store.actions.availableContentLocales(e),setTimeout(()=>this.updateIfNeeded())}stopReloadDebouncer(){this.reloadDebouncer.cancel()}requestUiLocaleUpdate(e){this.userLocaleService.updateUiLocale({uiLocale:e}).then(r=>{r.uiLocaleChanged&&(this.reloadDebouncer.run(()=>window.location.reload()),this.store.dispatchEvent(new It(r)))}).catch(()=>{})}setMetadataConfiguration(e){this.store.actions.metadataConfiguration(e),setTimeout(()=>this.updateIfNeeded())}setNoCustom(e){this.store.actions.noCustom(e)}setEditorMode(e){this.store.actions.editorMode(e)}setNoCustomComponent(e){this.store.actions.noCustomComponent(e)}setSession(e){this.store.actions.session(e),setTimeout(()=>this.updateIfNeeded())}setOpenExternalDocumentInNewTab(e){this.store.actions.openExternalDocumentInNewTab(e)}setNavigatorOnline(e){this.store.actions.navigatorOnline(e)}setForcedOffline(e){this.store.actions.forcedOffline(e)}setAuthenticationRequired(e){this.store.actions.authenticationRequired(e)}},Xa=Co.build();var Ne=class extends Event{constructor(e,r,n,a){super("context-request",{bubbles:!0,composed:!0}),this.context=e,this.contextTarget=r,this.callback=n,this.subscribe=a??!1}};var Rt=class{constructor(){this.pendingContextRequests=new Map,this.onContextProvider=e=>{let r=this.pendingContextRequests.get(e.context);if(r===void 0)return;this.pendingContextRequests.delete(e.context);let{requests:n}=r;for(let{elementRef:a,callbackRef:s}of n){let c=a.deref(),d=s.deref();c===void 0||d===void 0||c.dispatchEvent(new Ne(e.context,c,d,!0))}},this.onContextRequest=e=>{if(e.subscribe!==!0)return;let r=e.contextTarget??e.composedPath()[0],n=e.callback,a=this.pendingContextRequests.get(e.context);a===void 0&&this.pendingContextRequests.set(e.context,a={callbacks:new WeakMap,requests:[]});let s=a.callbacks.get(r);s===void 0&&a.callbacks.set(r,s=new WeakSet),s.has(n)||(s.add(n),a.requests.push({elementRef:new WeakRef(r),callbackRef:new WeakRef(n)}))}}attach(e){e.addEventListener("context-request",this.onContextRequest),e.addEventListener("context-provider",this.onContextProvider)}detach(e){e.removeEventListener("context-request",this.onContextRequest),e.removeEventListener("context-provider",this.onContextProvider)}};var z=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},N=class extends Pe.FtLitElementRedux{constructor(){super(...arguments),this.apiIntegrationIdentifier="ft-integration",this.apiIntegrationAppVersion="ft-integration-app-version",this.uiLocale="en-US",this.editorMode=!1,this.noCustom=!1,this.openExternalDocumentInNewTab=!1,this.noCustomComponent=!1,this.withManualResources=!1,this.navigatorOnline=!1,this.forcedOffline=!1,this.authenticationRequired=!1,this.messageContexts=[],this.stateManager=Xa,this.contextRoot=new Rt}render(){return Ja.html`
50
50
  <slot></slot>
51
- `}connectedCallback(){super.connectedCallback(),this.stateManager.initService()}disconnectedCallback(){super.disconnectedCallback()}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>Ga.addContext(n)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};N.elementDefinitions={};N.styles=Za;z([(0,q.property)()],N.prototype,"baseUrl",void 0);z([(0,q.property)()],N.prototype,"apiIntegrationIdentifier",void 0);z([(0,q.property)()],N.prototype,"apiIntegrationAppVersion",void 0);z([(0,q.property)()],N.prototype,"uiLocale",void 0);z([(0,Ne.jsonProperty)(null)],N.prototype,"availableUiLocales",void 0);z([(0,Ne.jsonProperty)(null)],N.prototype,"metadataConfiguration",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"editorMode",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"noCustom",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"openExternalDocumentInNewTab",void 0);z([(0,q.property)({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],N.prototype,"noCustomComponent",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"withManualResources",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"navigatorOnline",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"forcedOffline",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"authenticationRequired",void 0);z([(0,Ne.jsonProperty)([])],N.prototype,"messageContexts",void 0);z([(0,Ne.jsonProperty)(void 0)],N.prototype,"session",void 0);var Ja=x(I());var Xa={"ft-app-context":N};(0,Ja.customElements)(Xa);var dr=class extends H{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,n){super(!1,r),this.converter=e,this._mapId=n,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return de((r=(e=S.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(a=>this.fetchMapRating(a)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var n;return(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var n,a;let s=this.getMapNow(r);return s?.prettyUrl==e||`${s?.id}/root`===e?(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.toc[0]:(a=this.getEnrichedTocNow(r))===null||a===void 0?void 0:a.nodeByUrl[e]}async getPage(e,r){let n=await this.getEnrichedToc(r);return n.pages[e-1]||n.pages[0]}async getPageByTocId(e,r){let n=await this.getEnrichedToc(r);return n.pageByTocId[e]||n.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}async getTopicMetadataValue(e,r){let n=this.getTocNodeNow(e);if(!n)return;let a=await this.getTopicInfo(n);return a?.metadata.find(s=>s.key==r)}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,n){return this.cache.get("topic-relatives-"+[e,r,...n].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,n))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,n){let a=this.getNavigationData(e,r,n),s=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),c=new URL(s,this.api.tenantBaseUrl);return a.page!=null&&c.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&c.searchParams.set("tocId",a.tocId),a.section!=null&&c.searchParams.set("section",a.section),c.href}getNavigationData(e,r,n,a){var s,c;e=e||"root";let d=this.getEnrichedTocNow(a),u=d?.pageByTocId[e],p=d?.nodeByTocId[e],f=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(s=p?.title)!==null&&s!==void 0?s:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&u&&u.number!==r?r:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(c=d?.duplicatedPrettyUrls.has(f??""))!==null&&c!==void 0?c:!1,section:n}}async getAccurateNavigationData(e,r,n,a){return await this.getEnrichedToc(a),this.getNavigationData(e,r,n,a)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var n;return r?{type:r.topics.type,rating:(n=r.topics)===null||n===void 0?void 0:n.ratings.find(a=>a.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,n){return this.makeRateTopicRequest(e,r,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=S.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,n){return this.makeTopicFeedbackRequest(e,r,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let n=this.getTocNodeNow(e,r),a=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],s=this.getTocNodeNow(n.parentTocId,r);for(;s;)a.unshift({tocId:s.tocId,title:s.title,untranslatedTitle:s.untranslatedTitle}),s=this.getTocNodeNow(s.parentTocId,r);return a}isFeatureAccessible(e,{session:r}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case le.FEEDBACK:return de(r??[],T.FEEDBACK_USER);case le.RATING:return de(r??[],T.RATING_USER);case le.PRINT:return de(r??[],T.PRINT_USER);case le.BOOKMARK:return!!r?.sessionAuthenticated;case le.COLLECTIONS:return de(r??[],T.COLLECTION_USER);case le.PERSONAL_BOOKS:return de(r??[],T.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var ur=class o extends dr{static async build(e){return new o(new Ft,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let n=await this.api.getMap(e,r);return this.fingerprint=n.fingerprint,n}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r){return await this.getMap(r),this.api.getPages(e,this.fingerprint,r)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(e,r,n){let a={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(a)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,n){return this.api.rateTopic(this.mapId,e,r,n)}makeTopicFeedbackRequest(e,r,n){return this.api.sendTopicFeedback(this.mapId,e,r,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var uc="topicPivot";function ei(o,e){let r=new URL(o);return e?.values.forEach(n=>{r.searchParams.append(uc,n)}),r.href}var pr=class o{static build(e,r){return new o(cn(e.trim()||"context"),r??ur.build)}loaded(){return(0,V.waitUntil)(()=>this._loaded)}constructor(e,r,n,a){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new V.Debouncer(10),this.analyticsEventsService=a??new sr,this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,V.waitFor)(()=>this.service)}async navigateToTopic(e,r,n){await this.loaded();let a=await this.awaitService(),s=await(n!=null?a.getPage(n,this.getTranslationSettings()):a.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(s);let c=this.resolveValidNonRootTocId(e,s);this.store.actions.scrollTarget({tocId:c,section:r}),this.store.getState().visibleTopics[0]!==c&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var n,a,s;let c=(n=e==="root"?void 0:e)!==null&&n!==void 0?n:r.rootTocId;return r.topics.includes(c)?c:(e!="root"&&this.store.dispatchEvent(new CustomEvent(me.requestedTopicNotFound,{detail:{tocId:c}})),(s=(a=r.topics[0])!==null&&a!==void 0?a:r.hiddenTopics[0])!==null&&s!==void 0?s:"root")}async navigateToPage(e){await this.loaded();let n=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,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),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var r,n,a,s,c;try{e&&this.setTranslationLoading(!0);let d=u=>{throw e&&this.setTranslationError(!0),u};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(u=>this.store.actions.map(u)).catch(d),(n=this.service)===null||n===void 0?void 0:n.getToc(e).then(u=>this.store.actions.toc(u)).catch(d),(a=this.service)===null||a===void 0?void 0:a.getPagesToc(e).then(u=>this.store.actions.pagesToc(u)).catch(d),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(u=>this.store.actions.paginationConfiguration(u)).catch(d),(c=this.service)===null||c===void 0?void 0:c.getTranslationError(e).then(u=>this.setTranslationError(u))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(d){this.errorHandler&&!(d instanceof V.CanceledPromiseError)&&this.errorHandler(d)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}async fetchRelatives(){var e,r;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);if(n!==void 0&&n.length>0){let a=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,n)),s=a?.results.flatMap(c=>c.entries);this.store.actions.relatives(s)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(me.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let a=n.find(c=>{var d;return((d=c.map)===null||d===void 0?void 0:d.mapId)==this.store.getState().mapId}),s=(r=(e=S.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new V.ClusteringHelper(n,a,this.metadataForSwitchToRelatives,s)}}async navigateToRelativeTopicIfFound(e){var r,n,a;await this.loaded();let s=await(0,V.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),c=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(c,s,[e]);if(!((a=(n=(r=u?.results)===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.entries)===null||a===void 0)&&a[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),e&&this.sendDocumentOnDemandTranslateEvent(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let n=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));n&&this.store.actions.setTopicsRating({[e]:n})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,r,n){return this.service.getAccurateNavigationData(e,r?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,n;let a=this.getTranslationSettings();return a?(this.sendTopicAiTranslateEvent(a.destinationLanguage,e),(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,a).then(s=>(s.isTranslationError&&this.setTranslationError(!0),s.content))):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(me.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var r,n,a;this.store.getState().relatives==null&&await this.fetchRelatives();let s=V.ClusteringHelper.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e),c=(0,V.accessResultUrl)(s);if(c){let d=this.store.getState().visibleTopics[0],u=(n=this.store.getState().configuration)===null||n===void 0?void 0:n.relativeTopicPivotMetadata;if(u&&d){let p=await((a=this.service)===null||a===void 0?void 0:a.getTopicMetadataValue(d,u));c=ei(c,p)}}return c}sendDocumentOnDemandTranslateEvent(e){var r;let{editorMode:n,apiIntegrationIdentifier:a,apiIntegrationAppVersion:s}=S.getState(),c=this.store.getState(),d=c.map,u=c.translation.profileId;if(!(n||!d||!a||!s||!u))try{let f={...this.analyticsEventsService.convertMapToAnalyticsDocument(d),title:(r=d.untranslatedTitle)!==null&&r!==void 0?r:d.title};this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:a,appVersion:s,sourceLanguage:this.parseLanguageToAnalyticsFormat(d.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:u,document:f,translationOrigin:Ut.AI})}catch(p){console.warn("Failed to send on-demand document translate event:",p)}}sendTopicAiTranslateEvent(e,r){var n;let{editorMode:a,apiIntegrationIdentifier:s,apiIntegrationAppVersion:c}=S.getState(),d=this.store.getState(),u=d.map,p=d.translation.profileId;if(!(a||!u||!s||!c||!p))try{let f=this.buildBreadcrumb(r.tocId);if(!f){console.warn("Failed to build breadcrumb for topic ai translate event");return}let g={...this.analyticsEventsService.convertMapToAnalyticsDocument(u),title:(n=u.untranslatedTitle)!==null&&n!==void 0?n:u.title};this.analyticsEventsService.sendTopicAiTranslateEvent({name:"TOPIC__AI_TRANSLATE",offline:!1,appName:s,appVersion:c,sourceLanguage:this.parseLanguageToAnalyticsFormat(u.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e),breadcrumb:f.map(m=>{var y;return{tocId:m.tocId,title:(y=m.untranslatedTitle)!==null&&y!==void 0?y:m.title}}),document:g,profileId:p})}catch(f){console.warn("Failed to send topic ai translate event:",f)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let r=e.split("-");return r.length===2?{languageCode:r[0],countryCode:r[1]}:{languageCode:r[0],countryCode:""}}};var fr=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},hr=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},gr=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},yr=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},mr=class extends Event{constructor(){super("ft-reader-map-not-found")}},br=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},vr=class extends Event{constructor(){super("ft-reader-map-forbidden")}},xr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var K=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},So=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},P=class extends D.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new D.Debouncer(5),this.navigationDebouncer=new D.Debouncer(10),this.mapLoadedEventDebouncer=new D.Debouncer(50),this.addStore(S)}render(){return Tt.html`
51
+ `}connectedCallback(){super.connectedCallback(),this.stateManager.initService(),this.contextRoot.attach(document.body)}disconnectedCallback(){super.disconnectedCallback(),this.contextRoot.detach(document.body)}update(e){var r;super.update(e),e.has("baseUrl")&&this.stateManager.setBaseUrl(this.baseUrl),e.has("apiIntegrationIdentifier")&&this.stateManager.setApiIntegrationIdentifier(this.apiIntegrationIdentifier),e.has("apiIntegrationAppVersion")&&this.stateManager.setApiIntegrationAppVersion(this.apiIntegrationAppVersion),e.has("uiLocale")&&this.stateManager.setUiLocale(this.uiLocale),e.has("metadataConfiguration")&&this.stateManager.setMetadataConfiguration(this.metadataConfiguration),e.has("noCustom")&&this.stateManager.setNoCustom(this.noCustom),e.has("editorMode")&&this.stateManager.setEditorMode(this.editorMode),e.has("noCustomComponent")&&this.stateManager.setNoCustomComponent(this.noCustomComponent),e.has("session")&&this.stateManager.setSession(this.session),e.has("messageContexts")&&this.messageContexts!=null&&this.messageContexts.forEach(n=>$a.addContext(n)),e.has("openExternalDocumentInNewTab")&&this.stateManager.setOpenExternalDocumentInNewTab(this.openExternalDocumentInNewTab),e.has("navigatorOnline")&&this.stateManager.setNavigatorOnline(this.navigatorOnline),e.has("forcedOffline")&&this.stateManager.setForcedOffline(this.forcedOffline),e.has("authenticationRequired")&&this.stateManager.setAuthenticationRequired(this.authenticationRequired),e.has("withManualResources")&&((r=this.stateManager)===null||r===void 0||r.setWithManualResources(this.withManualResources)),setTimeout(()=>this.stateManager.updateIfNeeded())}};N.elementDefinitions={};N.styles=Ya;z([(0,q.property)()],N.prototype,"baseUrl",void 0);z([(0,q.property)()],N.prototype,"apiIntegrationIdentifier",void 0);z([(0,q.property)()],N.prototype,"apiIntegrationAppVersion",void 0);z([(0,q.property)()],N.prototype,"uiLocale",void 0);z([(0,Pe.jsonProperty)(null)],N.prototype,"availableUiLocales",void 0);z([(0,Pe.jsonProperty)(null)],N.prototype,"metadataConfiguration",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"editorMode",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"noCustom",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"openExternalDocumentInNewTab",void 0);z([(0,q.property)({converter:{fromAttribute(o){return o==="false"?!1:o==="true"||(o??!1)}}})],N.prototype,"noCustomComponent",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"withManualResources",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"navigatorOnline",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"forcedOffline",void 0);z([(0,q.property)({type:Boolean})],N.prototype,"authenticationRequired",void 0);z([(0,Pe.jsonProperty)([])],N.prototype,"messageContexts",void 0);z([(0,Pe.jsonProperty)(void 0)],N.prototype,"session",void 0);var ti=x(w());var ei={"ft-app-context":N};(0,ti.customElements)(ei);var pr=class extends H{get mapId(){return this._mapId}set mapId(e){e!==this._mapId&&this.clear(),this._mapId=e}constructor(e,r,n){super(!1,r),this.converter=e,this._mapId=n,this.initCache()}async withMapId(e){return this._mapId?e(this._mapId):void 0}initCache(){this.cache.register("configuration",()=>this.api.getReaderConfiguration()),this.cache.register("map",()=>this.withMapId(e=>this.fetchMap(e))),this.cache.register("enrichedToc",()=>this.withMapId(e=>this.fetchPages(e).then(r=>this.converter.convertPaginatedToc(e,r)))),this.cache.register("ratingSummary",()=>{var e,r;return de((r=(e=S.getState().session)===null||e===void 0?void 0:e.profile.roles)!==null&&r!==void 0?r:[],"RATING_USER")?this.withMapId(a=>this.fetchMapRating(a)):Promise.resolve()})}clear(){this.cache.clearMatching(e=>e!=="configuration")}makeCacheKey(e,r){return e+(r?"-destinationLanguage-"+r?.destinationLanguage:"")}getMap(e){return this.cache.get(this.makeCacheKey("map",e),()=>this.fetchMap(this.mapId,e))}getMapNow(e){return this.cache.getNow(this.makeCacheKey("map",e))}getConfiguration(){return this.cache.get("configuration")}clearConfiguration(){this.cache.clear("configuration")}getEnrichedToc(e){return this.cache.get(this.makeCacheKey("enrichedToc",e),()=>this.fetchPages(this.mapId,e).then(r=>this.converter.convertPaginatedToc(this.mapId,r)))}getEnrichedTocNow(e){return this.cache.getNow(this.makeCacheKey("enrichedToc",e))}async getPaginationConfiguration(){return(await this.getEnrichedToc()).paginationConfiguration}async getToc(e){return(await this.getEnrichedToc(e)).toc}async getPagesToc(e){return(await this.getEnrichedToc(e)).pagesToc}async getTranslationError(e){return(await this.getEnrichedToc(e)).translationError}async getTocNode(e,r){return(await this.getEnrichedToc(r)).nodeByTocId[e]}getTocNodeNow(e,r){var n;return(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.nodeByTocId[e]}getTocNodeNowByUrl(e,r){var n,a;let s=this.getMapNow(r);return s?.prettyUrl==e||`${s?.id}/root`===e?(n=this.getEnrichedTocNow(r))===null||n===void 0?void 0:n.toc[0]:(a=this.getEnrichedTocNow(r))===null||a===void 0?void 0:a.nodeByUrl[e]}async getPage(e,r){let n=await this.getEnrichedToc(r);return n.pages[e-1]||n.pages[0]}async getPageByTocId(e,r){let n=await this.getEnrichedToc(r);return n.pageByTocId[e]||n.pages[0]}getTopicInfo(e){return this.cache.get("topic-"+e.tocId,()=>this.fetchTopicMetadata(e))}getTopicContent(e){return this.cache.get("topic-content-"+e.tocId,()=>this.fetchTopicHTMLContent(e))}getTranslatedTopicContent(e,r){return this.cache.get(this.makeCacheKey("translated-topic-content-"+e.tocId,r),()=>this.fetchTranslatedTopicHTMLContent(e,r))}async getTopicMetadataValue(e,r){let n=this.getTocNodeNow(e);if(!n)return;let a=await this.getTopicInfo(n);return a?.metadata.find(s=>s.key==r)}getAttachments(){return this.cache.get("map-attachments",()=>this.fetchAttachments())}clearMapAttachments(){this.cache.clear("map-attachments")}getRelativesForDocument(e,r){return this.cache.get("document-relatives-"+e+"-"+r.join("-"),()=>this.fetchRelativesForDocument(e,r))}getRelativesForTopicInMap(e,r,n){return this.cache.get("topic-relatives-"+[e,r,...n].join("-"),()=>this.fetchRelativesForTopicInMap(e,r,n))}getAttachmentDownloadLink(e){return this.makeAbsolute(`${this.api.endpoints.khub.maps.mapId(this.mapId).attachments.attachmentId(e).content}?download=true&locationValue=reader`)}getLink(e,r,n){let a=this.getNavigationData(e,r,n),s=this.getReaderLinkPrefix()+(a.prettyUrl?a.prettyUrl:`${a.mapId}/${a.tocId}`),c=new URL(s,this.api.tenantBaseUrl);return a.page!=null&&c.searchParams.set("page",`${a.page}`),a.prettyUrlDuplicated&&c.searchParams.set("tocId",a.tocId),a.section!=null&&c.searchParams.set("section",a.section),c.href}getNavigationData(e,r,n,a){var s,c;e=e||"root";let d=this.getEnrichedTocNow(a),u=d?.pageByTocId[e],p=d?.nodeByTocId[e],f=p?.prettyUrl;return{mapId:this.mapId,tocId:e,topicTitle:(s=p?.title)!==null&&s!==void 0?s:"",untranslatedTopicTitle:p?.untranslatedTitle,page:r&&u&&u.number!==r?r:void 0,prettyUrl:f?.replace(/^r\//,""),prettyUrlDuplicated:(c=d?.duplicatedPrettyUrls.has(f??""))!==null&&c!==void 0?c:!1,section:n}}async getAccurateNavigationData(e,r,n,a){return await this.getEnrichedToc(a),this.getNavigationData(e,r,n,a)}getRatingSummary(){return this.cache.get("ratingSummary")}reloadRating(){return this.cache.clear("ratingSummary"),this.getRatingSummary()}getMapRating(){return this.getRatingSummary().then(e=>e?.publication)}getTopicRating(e){return this.getRatingSummary().then(r=>{var n;return r?{type:r.topics.type,rating:(n=r.topics)===null||n===void 0?void 0:n.ratings.find(a=>a.tocId===e)}:void 0})}rateMap(e,r){return this.makeRateMapRequest(e,r).then(()=>this.clearRatingIfNecessary())}unrateMap(){return this.makeUnrateMapRequest().then(()=>this.clearRatingIfNecessary())}sendMapFeedback(e,r){return this.makeMapFeedbackRequest(e,r)}rateTopic(e,r,n){return this.makeRateTopicRequest(e,r,n).then(()=>this.clearRatingIfNecessary())}unrateTopic(e){return this.makeUnrateTopicRequest(e).then(()=>this.clearRatingIfNecessary())}async clearRatingIfNecessary(){let e=S.getState().session;e?.sessionAuthenticated&&this.cache.clear("ratingSummary")}sendTopicFeedback(e,r,n){return this.makeTopicFeedbackRequest(e,r,n)}fontsStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.fonts)}themeStylesheet(){return this.api.makeAbsolute(this.api.endpoints.stylesheets.theme)}buildBreadcrumb(e,r){let n=this.getTocNodeNow(e,r),a=[{tocId:n.tocId,title:n.title,untranslatedTitle:n.untranslatedTitle}],s=this.getTocNodeNow(n.parentTocId,r);for(;s;)a.unshift({tocId:s.tocId,title:s.title,untranslatedTitle:s.untranslatedTitle}),s=this.getTocNodeNow(s.parentTocId,r);return a}isFeatureAccessible(e,{session:r}){var n;if(!this.isFeatureAvailable(e))return!1;switch(e){case le.FEEDBACK:return de(r??[],T.FEEDBACK_USER);case le.RATING:return de(r??[],T.RATING_USER);case le.PRINT:return de(r??[],T.PRINT_USER);case le.BOOKMARK:return!!r?.sessionAuthenticated;case le.COLLECTIONS:return de(r??[],T.COLLECTION_USER);case le.PERSONAL_BOOKS:return de(r??[],T.PERSONAL_BOOK_USER)&&!(!((n=this.getMapNow())===null||n===void 0)&&n.pbkConfidential);default:return!1}}makeAbsolute(e){return this.api.makeAbsolute(e)}};var fr=class o extends pr{static async build(e){return new o(new Bt,void 0,e)}clear(){super.clear(),this.fingerprint=void 0}async fetchMap(e,r){let n=await this.api.getMap(e,r);return this.fingerprint=n.fingerprint,n}fetchMapRating(e){return this.api.getMapRating(e)}async fetchPages(e,r){return await this.getMap(r),this.api.getPages(e,this.fingerprint,r)}fetchTopicHTMLContent(e){return this.api.getTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint)}fetchTranslatedTopicHTMLContent(e,r){return this.api.getTranslatedTopicHTMLContent(this.mapId,e.contentId,"DESIGNED_READER",this.fingerprint,r)}fetchTopicMetadata(e){return this.api.getTopic(this.mapId,e.contentId,this.fingerprint)}fetchAttachments(){return this.api.getMapAttachments(this.mapId).catch(()=>[])}fetchRelativesForDocument(e,r){let n={query:"",paging:{page:1,perPage:-1},scope:"DOCUMENTS",metadataFilters:[{key:e,valueFilter:{negative:!1,values:r}}],sort:[],facets:[]};return this.api.search(n)}fetchRelativesForTopicInMap(e,r,n){let a={query:"",paging:{page:1,perPage:1},scope:"ALL_TOPICS",metadataFilters:[{key:r,valueFilter:{negative:!1,values:n}},{key:"ft:publicationId",valueFilter:{negative:!1,values:[e]}}],sort:[],facets:[]};return this.api.search(a)}makeMapFeedbackRequest(e,r){return this.api.sendMapFeedback(this.mapId,e,r)}makeRateMapRequest(e,r){return this.api.rateMap(this.mapId,e,r)}makeRateTopicRequest(e,r,n){return this.api.rateTopic(this.mapId,e,r,n)}makeTopicFeedbackRequest(e,r,n){return this.api.sendTopicFeedback(this.mapId,e,r,n)}makeUnrateMapRequest(){return this.api.unrateMap(this.mapId)}makeUnrateTopicRequest(e){return this.api.unrateTopic(this.mapId,e)}getReaderLinkPrefix(){return"r/"}isFeatureAvailable(e){return!0}};var gc="topicPivot";function ri(o,e){let r=new URL(o);return e?.values.forEach(n=>{r.searchParams.append(gc,n)}),r.href}var hr=class o{static build(e,r){return new o(dn(e.trim()||"context"),r??fr.build)}loaded(){return(0,V.waitUntil)(()=>this._loaded)}constructor(e,r,n,a){this.store=e,this.clusteringHelperProvider=n,this.metadataForSwitchToRelatives=new Set,this._loaded=!1,this.loadDebouncer=new V.Debouncer(10),this.analyticsEventsService=a??new lr,this.initService(r)}async initService(e){return this.service=await e(),this.service.mapId=this.store.getState().mapId,this.reload()}async setMapId(e){e!==this.store.getState().mapId&&(this.store.actions.mapId(e),this.service&&(this.service.mapId=e),await this.reload())}setRenderedTopics(e){this.store.actions.renderedTopics(e)}setVisibleTopics(e){this.store.actions.visibleTopics(e)}async awaitService(){return(0,V.waitFor)(()=>this.service)}async navigateToTopic(e,r,n){await this.loaded();let a=await this.awaitService(),s=await(n!=null?a.getPage(n,this.getTranslationSettings()):a.getPageByTocId(e??"root",this.getTranslationSettings()));this.store.actions.currentPage(s);let c=this.resolveValidNonRootTocId(e,s);this.store.actions.scrollTarget({tocId:c,section:r}),this.store.getState().visibleTopics[0]!==c&&this.store.actions.visibleTopics([])}resolveValidNonRootTocId(e,r){var n,a,s;let c=(n=e==="root"?void 0:e)!==null&&n!==void 0?n:r.rootTocId;return r.topics.includes(c)?c:(e!="root"&&this.store.dispatchEvent(new CustomEvent(me.requestedTopicNotFound,{detail:{tocId:c}})),(s=(a=r.topics[0])!==null&&a!==void 0?a:r.hiddenTopics[0])!==null&&s!==void 0?s:"root")}async navigateToPage(e){await this.loaded();let n=await(await this.awaitService()).getPage(e,this.getTranslationSettings());this.store.actions.currentPage(n)}scrollDone(){this.store.actions.scrollTarget({})}async load(){var e;!((e=this.service)===null||e===void 0)&&e.mapId&&this.store.getState().map==null&&await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}clear(){var e;this._loaded=!1,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),this.store.actions.renderedTopics([]),this.store.actions.visibleTopics([]),this.store.actions.translation({sourceLanguage:void 0,destinationLanguage:void 0,profileId:void 0,isLoading:!1,isError:!1}),this.store.actions.mapRating(void 0),(e=this.service)===null||e===void 0||e.clear(),this.clusteringHelper=void 0}reload(){return this.clear(),this.load()}async fetchData(e){var r,n,a,s,c;try{e&&this.setTranslationLoading(!0);let d=u=>{throw e&&this.setTranslationError(!0),u};await Promise.all([this.loadConfiguration(),(r=this.service)===null||r===void 0?void 0:r.getMap(e).then(u=>this.store.actions.map(u)).catch(d),(n=this.service)===null||n===void 0?void 0:n.getToc(e).then(u=>this.store.actions.toc(u)).catch(d),(a=this.service)===null||a===void 0?void 0:a.getPagesToc(e).then(u=>this.store.actions.pagesToc(u)).catch(d),(s=this.service)===null||s===void 0?void 0:s.getPaginationConfiguration().then(u=>this.store.actions.paginationConfiguration(u)).catch(d),(c=this.service)===null||c===void 0?void 0:c.getTranslationError(e).then(u=>this.setTranslationError(u))]),this.metadataForSwitchToRelatives.size>0&&this.fetchRelatives(),this._loaded=!0,e&&this.setTranslationLoading(!1)}catch(d){this.errorHandler&&!(d instanceof V.CanceledPromiseError)&&this.errorHandler(d)}}loadConfiguration(){var e;return(e=this.service)===null||e===void 0?void 0:e.getConfiguration().then(r=>this.store.actions.configuration(r))}reloadConfiguration(){var e;return(e=this.service)===null||e===void 0||e.clearConfiguration(),this.loadConfiguration()}async fetchRelatives(){var e,r;let n=(e=this.store.getState().map)===null||e===void 0?void 0:e.metadata.filter(a=>{var s;return a.key==((s=this.store.getState().configuration)===null||s===void 0?void 0:s.relativePivotMetadata)}).flatMap(a=>a.values);if(n!==void 0&&n.length>0){let a=await((r=this.service)===null||r===void 0?void 0:r.getRelativesForDocument(this.store.getState().configuration.relativePivotMetadata,n)),s=a?.results.flatMap(c=>c.entries);this.store.actions.relatives(s)}this.updateClusteringHelper()}updateClusteringHelper(){this.clusteringHelper=this.createClusteringHelper(),this.clusteringHelper&&this.store.dispatchEvent(new Event(me.clusteringHelperCreated))}createClusteringHelper(){var e,r;if(this.clusteringHelperProvider)return this.clusteringHelperProvider();let n=this.store.getState().relatives;if(n){let a=n.find(c=>{var d;return((d=c.map)===null||d===void 0?void 0:d.mapId)==this.store.getState().mapId}),s=(r=(e=S.getState().metadataConfiguration)===null||e===void 0?void 0:e.descriptors)!==null&&r!==void 0?r:[];return new V.ClusteringHelper(n,a,this.metadataForSwitchToRelatives,s)}}async navigateToRelativeTopicIfFound(e){var r,n,a;await this.loaded();let s=await(0,V.waitFor)(()=>{var p;return(p=this.store.getState().configuration)===null||p===void 0?void 0:p.relativeTopicPivotMetadata}),c=this.store.getState().mapId,u=await(await this.awaitService()).getRelativesForTopicInMap(c,s,[e]);if(!((a=(n=(r=u?.results)===null||r===void 0?void 0:r[0])===null||n===void 0?void 0:n.entries)===null||a===void 0)&&a[0]){let p=u.results[0].entries[0].topic.tocId;return await this.navigateToTopic(p),!0}else return await this.navigateToTopic("root"),!1}setSearchInDocumentQuery(e){this.store.actions.searchInDocumentQuery(e)}async setTranslationDestinationLanguage(e){this.store.actions.setTranslationDestinationLanguage(e),e&&this.sendDocumentOnDemandTranslateEvent(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationSourceLanguage(e){this.store.actions.setTranslationSourceLanguage(e),await this.loadDebouncer.run(()=>this.fetchData(this.getTranslationSettings()))}async setTranslationProfileId(e){this.store.actions.setTranslationProfileId(e)}async setTranslationLoading(e){this.store.actions.setTranslationLoading(e)}async setTranslationError(e){this.store.actions.setTranslationError(e)}getTranslationSettings(){var e;let r=this.store.getState();return r.translation.profileId&&r.translation.destinationLanguage?{profileId:r.translation.profileId,destinationLanguage:r.translation.destinationLanguage.code,sourceLanguage:(e=r.map)===null||e===void 0?void 0:e.lang}:void 0}setLinkPreviewDialogId(e){this.store.actions.linkPreviewDialogId(e)}async fetchMapRating(){var e;this.store.actions.mapRating(await((e=this.service)===null||e===void 0?void 0:e.getMapRating()))}async fetchTopicRating(e){var r;let n=await((r=this.service)===null||r===void 0?void 0:r.getTopicRating(e));n&&this.store.actions.setTopicsRating({[e]:n})}registerMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.add(e),this.store.getState().relatives==null?this.fetchRelatives():this.updateClusteringHelper()}unregisterMetadataForSwitchToRelatives(e){this.metadataForSwitchToRelatives.delete(e),this.updateClusteringHelper()}getAccurateNavigationData(e,r,n){return this.service.getAccurateNavigationData(e,r?.number,n?.section,this.getTranslationSettings())}buildBreadcrumb(e){var r;return(r=this.service)===null||r===void 0?void 0:r.buildBreadcrumb(e,this.getTranslationSettings())}fetchTopicContent(e){var r,n;let a=this.getTranslationSettings();return a?(this.sendTopicAiTranslateEvent(a.destinationLanguage,e),(r=this.service)===null||r===void 0?void 0:r.getTranslatedTopicContent(e,a).then(s=>(s.isTranslationError&&this.setTranslationError(!0),s.content))):(n=this.service)===null||n===void 0?void 0:n.getTopicContent(e)}getTocNode(e){return this.service.getTocNode(e,this.getTranslationSettings())}getPage(e){return this.service.getPage(e,this.getTranslationSettings())}onMapAttachmentsUpdate(){var e;(e=this.service)===null||e===void 0||e.clearMapAttachments(),this.store.dispatchEvent(new Event(me.mapAttachmentsUpdate))}async getRelativeDocumentUrlForLocale(e){var r,n,a;this.store.getState().relatives==null&&await this.fetchRelatives();let s=V.ClusteringHelper.findResultWithMetadataValue((r=this.store.getState().relatives)!==null&&r!==void 0?r:[],"ft:locale",e),c=(0,V.accessResultUrl)(s);if(c){let d=this.store.getState().visibleTopics[0],u=(n=this.store.getState().configuration)===null||n===void 0?void 0:n.relativeTopicPivotMetadata;if(u&&d){let p=await((a=this.service)===null||a===void 0?void 0:a.getTopicMetadataValue(d,u));c=ri(c,p)}}return c}sendDocumentOnDemandTranslateEvent(e){var r;let{editorMode:n,apiIntegrationIdentifier:a,apiIntegrationAppVersion:s}=S.getState(),c=this.store.getState(),d=c.map,u=c.translation.profileId;if(!(n||!d||!a||!s||!u))try{let f={...this.analyticsEventsService.convertMapToAnalyticsDocument(d),title:(r=d.untranslatedTitle)!==null&&r!==void 0?r:d.title};this.analyticsEventsService.sendDocumentOnDemandTranslateEvent({name:"DOCUMENT__ON_DEMAND_TRANSLATE",offline:!1,appName:a,appVersion:s,sourceLanguage:this.parseLanguageToAnalyticsFormat(d.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e.code),profileId:u,document:f,translationOrigin:Ht.AI})}catch(p){console.warn("Failed to send on-demand document translate event:",p)}}sendTopicAiTranslateEvent(e,r){var n;let{editorMode:a,apiIntegrationIdentifier:s,apiIntegrationAppVersion:c}=S.getState(),d=this.store.getState(),u=d.map,p=d.translation.profileId;if(!(a||!u||!s||!c||!p))try{let f=this.buildBreadcrumb(r.tocId);if(!f){console.warn("Failed to build breadcrumb for topic ai translate event");return}let g={...this.analyticsEventsService.convertMapToAnalyticsDocument(u),title:(n=u.untranslatedTitle)!==null&&n!==void 0?n:u.title};this.analyticsEventsService.sendTopicAiTranslateEvent({name:"TOPIC__AI_TRANSLATE",offline:!1,appName:s,appVersion:c,sourceLanguage:this.parseLanguageToAnalyticsFormat(u.lang),destinationLanguage:this.parseLanguageToAnalyticsFormat(e),breadcrumb:f.map(m=>{var y;return{tocId:m.tocId,title:(y=m.untranslatedTitle)!==null&&y!==void 0?y:m.title}}),document:g,profileId:p})}catch(f){console.warn("Failed to send topic ai translate event:",f)}}parseLanguageToAnalyticsFormat(e){if(!e)return;let r=e.split("-");return r.length===2?{languageCode:r[0],countryCode:r[1]}:{languageCode:r[0],countryCode:""}}};var gr=class extends CustomEvent{constructor(e,r){super("ft-reader-map-loaded",{detail:{map:e,toc:r}})}},yr=class extends CustomEvent{constructor(e,r){super("ft-reader-visible-topics-change",{detail:{visibleTopics:r}})}},mr=class extends CustomEvent{constructor(e){super("ft-reader-navigation-done",{detail:e})}},br=class extends CustomEvent{constructor(e){super("ft-reader-load-error",{detail:e})}},vr=class extends Event{constructor(){super("ft-reader-map-not-found")}},xr=class extends Event{constructor(){super("ft-reader-map-unauthorized")}},Sr=class extends Event{constructor(){super("ft-reader-map-forbidden")}},Cr=class extends Event{constructor(){super("ft-reader-topic-relative-not-found",{bubbles:!0,composed:!0})}};var K=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Oo=class{constructor(e){this.stateManager=e}searchInDocument(e){this.stateManager.setSearchInDocumentQuery(e??"")}},P=class extends D.FtLitElementRedux{constructor(){super(),this.visibleTopics=[],this.updateConfiguration=()=>{this.stateManager.reloadConfiguration()},this.scrollToTargetDebouncer=new D.Debouncer(5),this.navigationDebouncer=new D.Debouncer(10),this.mapLoadedEventDebouncer=new D.Debouncer(50),this.addStore(S)}render(){return Lt.html`
52
52
  ${this.importStyleIfNeeded()}
53
53
  <slot @register-ft-reader-component=${this.registerComponent}></slot>
54
- `}importStyleIfNeeded(){var e,r;let n=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!n||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?Tt.nothing:Tt.html`
54
+ `}importStyleIfNeeded(){var e,r;let n=(e=this.stateManager.service)===null||e===void 0?void 0:e.themeStylesheet();return!n||window.location.href.startsWith((r=this.baseUrl)!==null&&r!==void 0?r:"")?Lt.nothing:Lt.html`
55
55
  <style>
56
56
  @import "${n}"
57
57
  </style>
58
- `}get stateManager(){return this._stateManager==null&&(this._stateManager=pr.build(this.id||(0,D.randomId)(6),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",r),document.head.append(n)}window.FluidTopicsReaderService=new So(this.stateManager)}),S.addEventListener(pe.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),S.addEventListener(pe.eventName,this.updateConfiguration)}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>e.has(r))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var r,n;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let a=e.get("scrollTarget");a?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(a.tocId,this.currentPage,a).then(s=>this.dispatchEvent(new gr(s))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((n=this.scrollTarget)===null||n===void 0?void 0:n.tocId)==null&&Promise.all(this.visibleTopics.map(a=>this.stateManager.getAccurateNavigationData(a,this.currentPage))).then(a=>{let s=a.filter(c=>c!=null&&c.topicTitle!=="").map(c=>({tocId:c.tocId,title:c.topicTitle,page:c.page,prettyUrl:c.prettyUrl,prettyUrlDuplicated:c.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(c.tocId)}));this.dispatchEvent(new hr(this.map,s))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new xr),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new br):r.status===403?this.dispatchEvent(new vr):r.status===404?this.dispatchEvent(new mr):this.dispatchEvent(new yr(e))}reloadBookmarks(){ho.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new fr(this.map,this.toc))})}};P.styles=an;K([(0,D.redux)({store:S.name})],P.prototype,"baseUrl",void 0);K([(0,D.redux)({store:S.name})],P.prototype,"session",void 0);K([(0,Pe.property)()],P.prototype,"mapId",void 0);K([(0,Pe.property)()],P.prototype,"tocId",void 0);K([(0,Pe.property)()],P.prototype,"section",void 0);K([(0,Pe.property)()],P.prototype,"topicPivot",void 0);K([(0,Pe.property)()],P.prototype,"searchInDocumentQuery",void 0);K([(0,D.numberProperty)({min:1})],P.prototype,"page",void 0);K([(0,D.redux)({store:"reader"})],P.prototype,"map",void 0);K([(0,D.redux)({store:"reader"})],P.prototype,"toc",void 0);K([(0,D.redux)({store:"reader"})],P.prototype,"visibleTopics",void 0);K([(0,D.redux)({store:"reader"})],P.prototype,"currentPage",void 0);K([(0,D.redux)({store:"reader"})],P.prototype,"scrollTarget",void 0);K([(0,Pe.property)({attribute:!1})],P.prototype,"readerServiceProvider",void 0);var ri=x(I());var ti={"ft-reader-context":P};(0,ri.customElements)(ti);var oi=x(F()),ni=x(I()),pc={position:ni.FtCssVariableFactory.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},ai=oi.css`
58
+ `}get stateManager(){return this._stateManager==null&&(this._stateManager=hr.build(this.id||(0,D.randomId)(6),this.readerServiceProvider),this._stateManager.errorHandler=e=>this.handleLoadError(e),this.addStore(this.stateManager.store,"reader")),this._stateManager}connectedCallback(){super.connectedCallback(),this.stateManager.setMapId(this.mapId),this.stateManager.awaitService().then(e=>{let r=e.fontsStylesheet();if(r&&!window.location.href.startsWith(this.baseUrl)&&!document.querySelector(`head link[href="${r}"]`)){let n=document.createElement("link");n.setAttribute("rel","stylesheet"),n.setAttribute("href",r),document.head.append(n)}window.FluidTopicsReaderService=new Oo(this.stateManager)}),S.addEventListener(pe.eventName,this.updateConfiguration)}disconnectedCallback(){super.disconnectedCallback(),S.addEventListener(pe.eventName,this.updateConfiguration)}update(e){super.update(e),e.has("readerServiceProvider")&&this.readerServiceProvider&&this.stateManager.initService(this.readerServiceProvider),e.has("mapId")&&this.mapId&&(this.stateManager.setMapId(this.mapId),this.lastNotifiedNotFoundRelative=void 0),e.has("searchInDocumentQuery")&&this.searchInDocumentQuery!=null&&this.stateManager.setSearchInDocumentQuery(this.searchInDocumentQuery),["tocId","section","page","mapId","topicPivot"].some(r=>e.has(r))&&this.mapId&&this.navigateToTarget(),e.has("session")&&this.reload()}contentAvailableCallback(e){var r,n;if(super.contentAvailableCallback(e),(e.has("map")||e.has("toc"))&&this.sendLoadedEventIfLoaded(),e.has("scrollTarget")&&((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId)==null){let a=e.get("scrollTarget");a?.tocId!=null&&this.scrollToTargetDebouncer.run(()=>this.stateManager.getAccurateNavigationData(a.tocId,this.currentPage,a).then(s=>this.dispatchEvent(new mr(s))))}(e.has("visibleTopics")||e.has("scrollTarget"))&&((n=this.scrollTarget)===null||n===void 0?void 0:n.tocId)==null&&Promise.all(this.visibleTopics.map(a=>this.stateManager.getAccurateNavigationData(a,this.currentPage))).then(a=>{let s=a.filter(c=>c!=null&&c.topicTitle!=="").map(c=>({tocId:c.tocId,title:c.topicTitle,page:c.page,prettyUrl:c.prettyUrl,prettyUrlDuplicated:c.prettyUrlDuplicated,breadcrumb:this.stateManager.buildBreadcrumb(c.tocId)}));this.dispatchEvent(new yr(this.map,s))})}clear(){this.stateManager.clear()}async reload(){await this.stateManager.reload(),await this.navigateToTarget()}async navigateToTarget(){await this.stateManager.loaded(),await this.navigationDebouncer.run(async()=>{this.topicPivot!=null?!await this.stateManager.navigateToRelativeTopicIfFound(this.topicPivot)&&this.lastNotifiedNotFoundRelative!==this.mapId+this.topicPivot?(this.dispatchEvent(new Cr),this.lastNotifiedNotFoundRelative=this.mapId+this.topicPivot):this.lastNotifiedNotFoundRelative=void 0:this.tocId!=null?await this.stateManager.navigateToTopic(this.tocId,this.section,this.page):this.page!=null&&await this.stateManager.navigateToPage(this.page)}),this.tocId&&!this.section&&(this.stateManager.store.commands.clear(/^focus-topic-/),this.stateManager.store.commands.add({type:`focus-topic-${this.tocId}`}))}registerComponent(e){e.stopPropagation();let r=e.composedPath()[0];this.register(r)}register(e){e.setReaderStateManager(this.stateManager)}handleLoadError(e){let r=e;r.status===401?this.dispatchEvent(new xr):r.status===403?this.dispatchEvent(new Sr):r.status===404?this.dispatchEvent(new vr):this.dispatchEvent(new br(e))}reloadBookmarks(){yo.reloadBookmarks()}async reloadRating(){var e,r;await((e=this.stateManager.service)===null||e===void 0?void 0:e.reloadRating()),(r=this.stateManager.store)===null||r===void 0||r.dispatchEvent(new CustomEvent("rating-changed"))}sendLoadedEventIfLoaded(){this.mapLoadedEventDebouncer.run(()=>{this.map&&this.toc&&this.dispatchEvent(new gr(this.map,this.toc))})}};P.styles=cn;K([(0,D.redux)({store:S.name})],P.prototype,"baseUrl",void 0);K([(0,D.redux)({store:S.name})],P.prototype,"session",void 0);K([(0,De.property)()],P.prototype,"mapId",void 0);K([(0,De.property)()],P.prototype,"tocId",void 0);K([(0,De.property)()],P.prototype,"section",void 0);K([(0,De.property)()],P.prototype,"topicPivot",void 0);K([(0,De.property)()],P.prototype,"searchInDocumentQuery",void 0);K([(0,D.numberProperty)({min:1})],P.prototype,"page",void 0);K([(0,D.redux)({store:"reader"})],P.prototype,"map",void 0);K([(0,D.redux)({store:"reader"})],P.prototype,"toc",void 0);K([(0,D.redux)({store:"reader"})],P.prototype,"visibleTopics",void 0);K([(0,D.redux)({store:"reader"})],P.prototype,"currentPage",void 0);K([(0,D.redux)({store:"reader"})],P.prototype,"scrollTarget",void 0);K([(0,De.property)({attribute:!1})],P.prototype,"readerServiceProvider",void 0);var ni=x(w());var oi={"ft-reader-context":P};(0,ni.customElements)(oi);var ai=x(F()),ii=x(w()),yc={position:ii.FtCssVariableFactory.create("--ft-content-watermark-position","Position property of the watermark container","POSITION","sticky")},si=ai.css`
59
59
  :host {
60
60
  position: absolute;
61
61
  top: 0;
@@ -66,7 +66,7 @@
66
66
  }
67
67
 
68
68
  .ft-watermark-container {
69
- position: ${pc.position};
69
+ position: ${yc.position};
70
70
  top: 0;
71
71
  text-align: center;
72
72
  }
@@ -74,19 +74,10 @@
74
74
  .ft-watermark {
75
75
  z-index: 79;
76
76
  }
77
- `;var gt=x(F()),He=x(j());var os=x(_r()),ns=x(I());var To=globalThis,Sr=To.trustedTypes,ii=Sr?Sr.createPolicy("lit-html",{createHTML:o=>o}):void 0,pi="$lit$",Oe=`lit$${Math.random().toFixed(9).slice(2)}$`,fi="?"+Oe,fc=`<${fi}>`,Fe=document,Cr=()=>Fe.createComment(""),Lt=o=>o===null||typeof o!="object"&&typeof o!="function",Ro=Array.isArray,hc=o=>Ro(o)||typeof o?.[Symbol.iterator]=="function",Co=`[
78
- \f\r]`,Rt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,si=/-->/g,ci=/>/g,De=RegExp(`>|${Co}(?:([^\\s"'>=/]+)(${Co}*=${Co}*(?:[^
79
- \f\r"'\`<>=]|("|')|))|$)`,"g"),li=/'/g,di=/"/g,hi=/^(?:script|style|textarea|title)$/i,Lo=o=>(e,...r)=>({_$litType$:o,strings:e,values:r}),gi=Lo(1),yi=Lo(2),mi=Lo(3),kt=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),ui=new WeakMap,Me=Fe.createTreeWalker(Fe,129);function bi(o,e){if(!Ro(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ii!==void 0?ii.createHTML(e):e}var gc=(o,e)=>{let r=o.length-1,n=[],a,s=e===2?"<svg>":e===3?"<math>":"",c=Rt;for(let d=0;d<r;d++){let u=o[d],p,f,h=-1,g=0;for(;g<u.length&&(c.lastIndex=g,f=c.exec(u),f!==null);)g=c.lastIndex,c===Rt?f[1]==="!--"?c=si:f[1]!==void 0?c=ci:f[2]!==void 0?(hi.test(f[2])&&(a=RegExp("</"+f[2],"g")),c=De):f[3]!==void 0&&(c=De):c===De?f[0]===">"?(c=a??Rt,h=-1):f[1]===void 0?h=-2:(h=c.lastIndex-f[2].length,p=f[1],c=f[3]===void 0?De:f[3]==='"'?di:li):c===di||c===li?c=De:c===si||c===ci?c=Rt:(c=De,a=void 0);let m=c===De&&o[d+1].startsWith("/>")?" ":"";s+=c===Rt?u+fc:h>=0?(n.push(p),u.slice(0,h)+pi+u.slice(h)+Oe+m):u+Oe+(h===-2?d:m)}return[bi(o,s+(o[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},_t=class o{constructor({strings:e,_$litType$:r},n){let a;this.parts=[];let s=0,c=0,d=e.length-1,u=this.parts,[p,f]=gc(e,r);if(this.el=o.createElement(p,n),Me.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=Me.nextNode())!==null&&u.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(pi)){let g=f[c++],m=a.getAttribute(h).split(Oe),y=/([.?@])?(.*)/.exec(g);u.push({type:1,index:s,name:y[2],strings:m,ctor:y[1]==="."?Ao:y[1]==="?"?Eo:y[1]==="@"?Io:tt}),a.removeAttribute(h)}else h.startsWith(Oe)&&(u.push({type:6,index:s}),a.removeAttribute(h));if(hi.test(a.tagName)){let h=a.textContent.split(Oe),g=h.length-1;if(g>0){a.textContent=Sr?Sr.emptyScript:"";for(let m=0;m<g;m++)a.append(h[m],Cr()),Me.nextNode(),u.push({type:2,index:++s});a.append(h[g],Cr())}}}else if(a.nodeType===8)if(a.data===fi)u.push({type:2,index:s});else{let h=-1;for(;(h=a.data.indexOf(Oe,h+1))!==-1;)u.push({type:7,index:s}),h+=Oe.length-1}s++}}static createElement(e,r){let n=Fe.createElement("template");return n.innerHTML=e,n}};function et(o,e,r=o,n){if(e===kt)return e;let a=n!==void 0?r._$Co?.[n]:r._$Cl,s=Lt(e)?void 0:e._$litDirective$;return a?.constructor!==s&&(a?._$AO?.(!1),s===void 0?a=void 0:(a=new s(o),a._$AT(o,r,n)),n!==void 0?(r._$Co??=[])[n]=a:r._$Cl=a),a!==void 0&&(e=et(o,a._$AS(o,e.values),a,n)),e}var Oo=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,a=(e?.creationScope??Fe).importNode(r,!0);Me.currentNode=a;let s=Me.nextNode(),c=0,d=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new Or(s,s.nextSibling,this,e):u.type===1?p=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(p=new wo(s,this,e)),this._$AV.push(p),u=n[++d]}c!==u?.index&&(s=Me.nextNode(),c++)}return Me.currentNode=Fe,a}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Or=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,a){this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=et(this,e,r),Lt(e)?e===M||e==null||e===""?(this._$AH!==M&&this._$AR(),this._$AH=M):e!==this._$AH&&e!==kt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):hc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==M&&Lt(this._$AH)?this._$AA.nextSibling.data=e:this.T(Fe.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=_t.createElement(bi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let s=new Oo(a,this),c=s.u(this.options);s.p(r),this.T(c),this._$AH=s}}_$AC(e){let r=ui.get(e.strings);return r===void 0&&ui.set(e.strings,r=new _t(e)),r}k(e){Ro(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,a=0;for(let s of e)a===r.length?r.push(n=new o(this.O(Cr()),this.O(Cr()),this,this.options)):n=r[a],n._$AI(s),a++;a<r.length&&(this._$AR(n&&n._$AB.nextSibling,a),r.length=a)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},tt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,a,s){this.type=1,this._$AH=M,this._$AN=void 0,this.element=e,this.name=r,this._$AM=a,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=M}_$AI(e,r=this,n,a){let s=this.strings,c=!1;if(s===void 0)e=et(this,e,r,0),c=!Lt(e)||e!==this._$AH&&e!==kt,c&&(this._$AH=e);else{let d=e,u,p;for(e=s[0],u=0;u<s.length-1;u++)p=et(this,d[n+u],r,u),p===kt&&(p=this._$AH[u]),c||=!Lt(p)||p!==this._$AH[u],p===M?e=M:e!==M&&(e+=(p??"")+s[u+1]),this._$AH[u]=p}c&&!a&&this.j(e)}j(e){e===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},Ao=class extends tt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===M?void 0:e}},Eo=class extends tt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==M)}},Io=class extends tt{constructor(e,r,n,a,s){super(e,r,n,a,s),this.type=5}_$AI(e,r=this){if((e=et(this,e,r,0)??M)===kt)return;let n=this._$AH,a=e===M&&n!==M||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==M&&(n===M||a);a&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},wo=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){et(this,e)}};var yc=To.litHtmlPolyfillSupport;yc?.(_t,Or),(To.litHtmlVersions??=[]).push("3.3.0");var xi=Symbol.for(""),mc=o=>{if(o?.r===xi)return o?._$litStatic$},rt=o=>({_$litStatic$:o,r:xi});var vi=new Map,ko=o=>(e,...r)=>{let n=r.length,a,s,c=[],d=[],u,p=0,f=!1;for(;p<n;){for(u=e[p];p<n&&(s=r[p],(a=mc(s))!==void 0);)u+=a+e[++p],f=!0;p!==n&&d.push(s),c.push(u),p++}if(p===n&&c.push(e[n]),f){let h=c.join("$$lit$$");(e=vi.get(h))===void 0&&(c.raw=c,vi.set(h,e=c)),r=d}return o(e,...r)},ot=ko(gi),wf=ko(yi),Tf=ko(mi);var _o=x(j()),Ni=x(I());var Ar;(function(o){o.title="title",o.title_dense="title-dense",o.subtitle1="subtitle1",o.subtitle2="subtitle2",o.body1="body1",o.body2="body2",o.caption="caption",o.breadcrumb="breadcrumb",o.overline="overline",o.button="button"})(Ar||(Ar={}));var te=x(F()),b=x(I()),Si=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.titleFont),he=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.contentFont),C={fontFamily:he,fontSize:b.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:b.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:b.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:b.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:b.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},nt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Si),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-font-size","",C.fontSize,"20px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",C.letterSpacing,"0.15px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-line-height","",C.lineHeight,"1.2"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",C.textTransform,"inherit")},at={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Si),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",C.letterSpacing,"0.105px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",C.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",C.textTransform,"inherit")},it={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",C.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",C.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",C.letterSpacing,"0.144px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",C.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",C.textTransform,"inherit")},st={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",C.letterSpacing,"0.098px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",C.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",C.textTransform,"inherit")},ct={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",C.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",C.letterSpacing,"0.496px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",C.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",C.textTransform,"inherit")},lt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",C.letterSpacing,"0.252px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",C.lineHeight,"1.4"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",C.textTransform,"inherit")},dt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",C.fontSize,"12px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",C.letterSpacing,"0.396px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",C.lineHeight,"1.33"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",C.textTransform,"inherit")},ut={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",C.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",C.letterSpacing,"0.33px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",C.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",C.textTransform,"inherit")},pt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",C.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",C.letterSpacing,"1.5px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",C.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",C.textTransform,"uppercase")},ft={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-button-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-button-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",C.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",C.letterSpacing,"1.246px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-button-line-height","",C.lineHeight,"1.15"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",C.textTransform,"uppercase")},Ci=te.css`
77
+ `;var yt=x(F()),ze=x(j());var as=x(Pr()),is=x(w());var Lo=globalThis,Or=Lo.trustedTypes,ci=Or?Or.createPolicy("lit-html",{createHTML:o=>o}):void 0,hi="$lit$",Oe=`lit$${Math.random().toFixed(9).slice(2)}$`,gi="?"+Oe,mc=`<${gi}>`,Ue=document,Er=()=>Ue.createComment(""),_t=o=>o===null||typeof o!="object"&&typeof o!="function",ko=Array.isArray,bc=o=>ko(o)||typeof o?.[Symbol.iterator]=="function",Eo=`[
78
+ \f\r]`,kt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,li=/-->/g,di=/>/g,Me=RegExp(`>|${Eo}(?:([^\\s"'>=/]+)(${Eo}*=${Eo}*(?:[^
79
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),ui=/'/g,pi=/"/g,yi=/^(?:script|style|textarea|title)$/i,_o=o=>(e,...r)=>({_$litType$:o,strings:e,values:r}),mi=_o(1),bi=_o(2),vi=_o(3),Nt=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),fi=new WeakMap,Fe=Ue.createTreeWalker(Ue,129);function xi(o,e){if(!ko(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ci!==void 0?ci.createHTML(e):e}var vc=(o,e)=>{let r=o.length-1,n=[],a,s=e===2?"<svg>":e===3?"<math>":"",c=kt;for(let d=0;d<r;d++){let u=o[d],p,f,h=-1,g=0;for(;g<u.length&&(c.lastIndex=g,f=c.exec(u),f!==null);)g=c.lastIndex,c===kt?f[1]==="!--"?c=li:f[1]!==void 0?c=di:f[2]!==void 0?(yi.test(f[2])&&(a=RegExp("</"+f[2],"g")),c=Me):f[3]!==void 0&&(c=Me):c===Me?f[0]===">"?(c=a??kt,h=-1):f[1]===void 0?h=-2:(h=c.lastIndex-f[2].length,p=f[1],c=f[3]===void 0?Me:f[3]==='"'?pi:ui):c===pi||c===ui?c=Me:c===li||c===di?c=kt:(c=Me,a=void 0);let m=c===Me&&o[d+1].startsWith("/>")?" ":"";s+=c===kt?u+mc:h>=0?(n.push(p),u.slice(0,h)+hi+u.slice(h)+Oe+m):u+Oe+(h===-2?d:m)}return[xi(o,s+(o[r]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),n]},Pt=class o{constructor({strings:e,_$litType$:r},n){let a;this.parts=[];let s=0,c=0,d=e.length-1,u=this.parts,[p,f]=vc(e,r);if(this.el=o.createElement(p,n),Fe.currentNode=this.el.content,r===2||r===3){let h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(a=Fe.nextNode())!==null&&u.length<d;){if(a.nodeType===1){if(a.hasAttributes())for(let h of a.getAttributeNames())if(h.endsWith(hi)){let g=f[c++],m=a.getAttribute(h).split(Oe),y=/([.?@])?(.*)/.exec(g);u.push({type:1,index:s,name:y[2],strings:m,ctor:y[1]==="."?wo:y[1]==="?"?Io:y[1]==="@"?To:rt}),a.removeAttribute(h)}else h.startsWith(Oe)&&(u.push({type:6,index:s}),a.removeAttribute(h));if(yi.test(a.tagName)){let h=a.textContent.split(Oe),g=h.length-1;if(g>0){a.textContent=Or?Or.emptyScript:"";for(let m=0;m<g;m++)a.append(h[m],Er()),Fe.nextNode(),u.push({type:2,index:++s});a.append(h[g],Er())}}}else if(a.nodeType===8)if(a.data===gi)u.push({type:2,index:s});else{let h=-1;for(;(h=a.data.indexOf(Oe,h+1))!==-1;)u.push({type:7,index:s}),h+=Oe.length-1}s++}}static createElement(e,r){let n=Ue.createElement("template");return n.innerHTML=e,n}};function tt(o,e,r=o,n){if(e===Nt)return e;let a=n!==void 0?r._$Co?.[n]:r._$Cl,s=_t(e)?void 0:e._$litDirective$;return a?.constructor!==s&&(a?._$AO?.(!1),s===void 0?a=void 0:(a=new s(o),a._$AT(o,r,n)),n!==void 0?(r._$Co??=[])[n]=a:r._$Cl=a),a!==void 0&&(e=tt(o,a._$AS(o,e.values),a,n)),e}var Ao=class{constructor(e,r){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=r}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){let{el:{content:r},parts:n}=this._$AD,a=(e?.creationScope??Ue).importNode(r,!0);Fe.currentNode=a;let s=Fe.nextNode(),c=0,d=0,u=n[0];for(;u!==void 0;){if(c===u.index){let p;u.type===2?p=new Ar(s,s.nextSibling,this,e):u.type===1?p=new u.ctor(s,u.name,u.strings,this,e):u.type===6&&(p=new Ro(s,this,e)),this._$AV.push(p),u=n[++d]}c!==u?.index&&(s=Fe.nextNode(),c++)}return Fe.currentNode=Ue,a}p(e){let r=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(e,n,r),r+=n.strings.length-2):n._$AI(e[r])),r++}},Ar=class o{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(e,r,n,a){this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=e,this._$AB=r,this._$AM=n,this.options=a,this._$Cv=a?.isConnected??!0}get parentNode(){let e=this._$AA.parentNode,r=this._$AM;return r!==void 0&&e?.nodeType===11&&(e=r.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,r=this){e=tt(this,e,r),_t(e)?e===M||e==null||e===""?(this._$AH!==M&&this._$AR(),this._$AH=M):e!==this._$AH&&e!==Nt&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):bc(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==M&&_t(this._$AH)?this._$AA.nextSibling.data=e:this.T(Ue.createTextNode(e)),this._$AH=e}$(e){let{values:r,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=Pt.createElement(xi(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===a)this._$AH.p(r);else{let s=new Ao(a,this),c=s.u(this.options);s.p(r),this.T(c),this._$AH=s}}_$AC(e){let r=fi.get(e.strings);return r===void 0&&fi.set(e.strings,r=new Pt(e)),r}k(e){ko(this._$AH)||(this._$AH=[],this._$AR());let r=this._$AH,n,a=0;for(let s of e)a===r.length?r.push(n=new o(this.O(Er()),this.O(Er()),this,this.options)):n=r[a],n._$AI(s),a++;a<r.length&&(this._$AR(n&&n._$AB.nextSibling,a),r.length=a)}_$AR(e=this._$AA.nextSibling,r){for(this._$AP?.(!1,!0,r);e&&e!==this._$AB;){let n=e.nextSibling;e.remove(),e=n}}setConnected(e){this._$AM===void 0&&(this._$Cv=e,this._$AP?.(e))}},rt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,r,n,a,s){this.type=1,this._$AH=M,this._$AN=void 0,this.element=e,this.name=r,this._$AM=a,this.options=s,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=M}_$AI(e,r=this,n,a){let s=this.strings,c=!1;if(s===void 0)e=tt(this,e,r,0),c=!_t(e)||e!==this._$AH&&e!==Nt,c&&(this._$AH=e);else{let d=e,u,p;for(e=s[0],u=0;u<s.length-1;u++)p=tt(this,d[n+u],r,u),p===Nt&&(p=this._$AH[u]),c||=!_t(p)||p!==this._$AH[u],p===M?e=M:e!==M&&(e+=(p??"")+s[u+1]),this._$AH[u]=p}c&&!a&&this.j(e)}j(e){e===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e??"")}},wo=class extends rt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===M?void 0:e}},Io=class extends rt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==M)}},To=class extends rt{constructor(e,r,n,a,s){super(e,r,n,a,s),this.type=5}_$AI(e,r=this){if((e=tt(this,e,r,0)??M)===Nt)return;let n=this._$AH,a=e===M&&n!==M||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==M&&(n===M||a);a&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,e):this._$AH.handleEvent(e)}},Ro=class{constructor(e,r,n){this.element=e,this.type=6,this._$AN=void 0,this._$AM=r,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(e){tt(this,e)}};var xc=Lo.litHtmlPolyfillSupport;xc?.(Pt,Ar),(Lo.litHtmlVersions??=[]).push("3.3.0");var Ci=Symbol.for(""),Sc=o=>{if(o?.r===Ci)return o?._$litStatic$},ot=o=>({_$litStatic$:o,r:Ci});var Si=new Map,No=o=>(e,...r)=>{let n=r.length,a,s,c=[],d=[],u,p=0,f=!1;for(;p<n;){for(u=e[p];p<n&&(s=r[p],(a=Sc(s))!==void 0);)u+=a+e[++p],f=!0;p!==n&&d.push(s),c.push(u),p++}if(p===n&&c.push(e[n]),f){let h=c.join("$$lit$$");(e=Si.get(h))===void 0&&(c.raw=c,Si.set(h,e=c)),r=d}return o(e,...r)},nt=No(mi),nh=No(bi),ah=No(vi);var Po=x(j()),Di=x(w());var wr;(function(o){o.title="title",o.title_dense="title-dense",o.subtitle1="subtitle1",o.subtitle2="subtitle2",o.body1="body1",o.body2="body2",o.caption="caption",o.breadcrumb="breadcrumb",o.overline="overline",o.button="button"})(wr||(wr={}));var te=x(F()),b=x(w()),Oi=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.titleFont),he=b.FtCssVariableFactory.extend("--ft-typography-font-family","",b.designSystemVariables.contentFont),C={fontFamily:he,fontSize:b.FtCssVariableFactory.create("--ft-typography-font-size","","SIZE","16px"),fontWeight:b.FtCssVariableFactory.create("--ft-typography-font-weight","","UNKNOWN","normal"),letterSpacing:b.FtCssVariableFactory.create("--ft-typography-letter-spacing","","SIZE","0.496px"),lineHeight:b.FtCssVariableFactory.create("--ft-typography-line-height","","NUMBER","1.5"),textTransform:b.FtCssVariableFactory.create("--ft-typography-text-transform","","UNKNOWN","inherit")},at={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-font-family","",Oi),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-font-size","",C.fontSize,"20px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing","",C.letterSpacing,"0.15px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-line-height","",C.lineHeight,"1.2"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-text-transform","",C.textTransform,"inherit")},it={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family","",Oi),fontSize:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing","",C.letterSpacing,"0.105px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height","",C.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform","",C.textTransform,"inherit")},st={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size","",C.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight","",C.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing","",C.letterSpacing,"0.144px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height","",C.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform","",C.textTransform,"inherit")},ct={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing","",C.letterSpacing,"0.098px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height","",C.lineHeight,"1.7"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform","",C.textTransform,"inherit")},lt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body1-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body1-font-size","",C.fontSize,"16px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body1-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing","",C.letterSpacing,"0.496px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body1-line-height","",C.lineHeight,"1.5"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body1-text-transform","",C.textTransform,"inherit")},dt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-body2-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-body2-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-body2-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing","",C.letterSpacing,"0.252px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-body2-line-height","",C.lineHeight,"1.4"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-body2-text-transform","",C.textTransform,"inherit")},ut={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-caption-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-caption-font-size","",C.fontSize,"12px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-caption-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing","",C.letterSpacing,"0.396px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-caption-line-height","",C.lineHeight,"1.33"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-caption-text-transform","",C.textTransform,"inherit")},pt={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size","",C.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing","",C.letterSpacing,"0.33px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height","",C.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform","",C.textTransform,"inherit")},ft={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-overline-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-overline-font-size","",C.fontSize,"10px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-overline-font-weight","",C.fontWeight,"normal"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing","",C.letterSpacing,"1.5px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-overline-line-height","",C.lineHeight,"1.6"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-overline-text-transform","",C.textTransform,"uppercase")},ht={fontFamily:b.FtCssVariableFactory.extend("--ft-typography-button-font-family","",he),fontSize:b.FtCssVariableFactory.extend("--ft-typography-button-font-size","",C.fontSize,"14px"),fontWeight:b.FtCssVariableFactory.extend("--ft-typography-button-font-weight","",C.fontWeight,"600"),letterSpacing:b.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing","",C.letterSpacing,"1.246px"),lineHeight:b.FtCssVariableFactory.extend("--ft-typography-button-line-height","",C.lineHeight,"1.15"),textTransform:b.FtCssVariableFactory.extend("--ft-typography-button-text-transform","",C.textTransform,"uppercase")},Ei=te.css`
80
80
  .ft-typography--title {
81
- font-family: ${nt.fontFamily};
82
- font-size: ${nt.fontSize};
83
- font-weight: ${nt.fontWeight};
84
- letter-spacing: ${nt.letterSpacing};
85
- line-height: ${nt.lineHeight};
86
- text-transform: ${nt.textTransform};
87
- }
88
- `,Oi=te.css`
89
- .ft-typography--title-dense {
90
81
  font-family: ${at.fontFamily};
91
82
  font-size: ${at.fontSize};
92
83
  font-weight: ${at.fontWeight};
@@ -95,7 +86,7 @@
95
86
  text-transform: ${at.textTransform};
96
87
  }
97
88
  `,Ai=te.css`
98
- .ft-typography--subtitle1 {
89
+ .ft-typography--title-dense {
99
90
  font-family: ${it.fontFamily};
100
91
  font-size: ${it.fontSize};
101
92
  font-weight: ${it.fontWeight};
@@ -103,8 +94,8 @@
103
94
  line-height: ${it.lineHeight};
104
95
  text-transform: ${it.textTransform};
105
96
  }
106
- `,Ei=te.css`
107
- .ft-typography--subtitle2 {
97
+ `,wi=te.css`
98
+ .ft-typography--subtitle1 {
108
99
  font-family: ${st.fontFamily};
109
100
  font-size: ${st.fontSize};
110
101
  font-weight: ${st.fontWeight};
@@ -112,9 +103,8 @@
112
103
  line-height: ${st.lineHeight};
113
104
  text-transform: ${st.textTransform};
114
105
  }
115
-
116
- `,Er=te.css`
117
- .ft-typography--body1 {
106
+ `,Ii=te.css`
107
+ .ft-typography--subtitle2 {
118
108
  font-family: ${ct.fontFamily};
119
109
  font-size: ${ct.fontSize};
120
110
  font-weight: ${ct.fontWeight};
@@ -122,8 +112,9 @@
122
112
  line-height: ${ct.lineHeight};
123
113
  text-transform: ${ct.textTransform};
124
114
  }
125
- `,Ii=te.css`
126
- .ft-typography--body2 {
115
+
116
+ `,Ir=te.css`
117
+ .ft-typography--body1 {
127
118
  font-family: ${lt.fontFamily};
128
119
  font-size: ${lt.fontSize};
129
120
  font-weight: ${lt.fontWeight};
@@ -131,8 +122,8 @@
131
122
  line-height: ${lt.lineHeight};
132
123
  text-transform: ${lt.textTransform};
133
124
  }
134
- `,wi=te.css`
135
- .ft-typography--caption {
125
+ `,Ti=te.css`
126
+ .ft-typography--body2 {
136
127
  font-family: ${dt.fontFamily};
137
128
  font-size: ${dt.fontSize};
138
129
  font-weight: ${dt.fontWeight};
@@ -140,8 +131,8 @@
140
131
  line-height: ${dt.lineHeight};
141
132
  text-transform: ${dt.textTransform};
142
133
  }
143
- `,Ti=te.css`
144
- .ft-typography--breadcrumb {
134
+ `,Ri=te.css`
135
+ .ft-typography--caption {
145
136
  font-family: ${ut.fontFamily};
146
137
  font-size: ${ut.fontSize};
147
138
  font-weight: ${ut.fontWeight};
@@ -149,8 +140,8 @@
149
140
  line-height: ${ut.lineHeight};
150
141
  text-transform: ${ut.textTransform};
151
142
  }
152
- `,Ri=te.css`
153
- .ft-typography--overline {
143
+ `,Li=te.css`
144
+ .ft-typography--breadcrumb {
154
145
  font-family: ${pt.fontFamily};
155
146
  font-size: ${pt.fontSize};
156
147
  font-weight: ${pt.fontWeight};
@@ -158,8 +149,8 @@
158
149
  line-height: ${pt.lineHeight};
159
150
  text-transform: ${pt.textTransform};
160
151
  }
161
- `,Li=te.css`
162
- .ft-typography--button {
152
+ `,ki=te.css`
153
+ .ft-typography--overline {
163
154
  font-family: ${ft.fontFamily};
164
155
  font-size: ${ft.fontSize};
165
156
  font-weight: ${ft.fontWeight};
@@ -167,21 +158,30 @@
167
158
  line-height: ${ft.lineHeight};
168
159
  text-transform: ${ft.textTransform};
169
160
  }
170
- `,ki=te.css`
161
+ `,_i=te.css`
162
+ .ft-typography--button {
163
+ font-family: ${ht.fontFamily};
164
+ font-size: ${ht.fontSize};
165
+ font-weight: ${ht.fontWeight};
166
+ letter-spacing: ${ht.letterSpacing};
167
+ line-height: ${ht.lineHeight};
168
+ text-transform: ${ht.textTransform};
169
+ }
170
+ `,Ni=te.css`
171
171
  .ft-typography {
172
172
  vertical-align: inherit;
173
173
  }
174
- `;var _i=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Ue=class extends Ni.FtLitElement{constructor(){super(...arguments),this.variant=Ar.body1}render(){return this.element?ot`
175
- <${rt(this.element)}
174
+ `;var Pi=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Be=class extends Di.FtLitElement{constructor(){super(...arguments),this.variant=wr.body1}render(){return this.element?nt`
175
+ <${ot(this.element)}
176
176
  part="text"
177
177
  class="ft-typography ft-typography--${this.variant}">
178
178
  <slot></slot>
179
- </${rt(this.element)}>
180
- `:ot`
179
+ </${ot(this.element)}>
180
+ `:nt`
181
181
  <slot part="text" class="ft-typography ft-typography--${this.variant}"></slot>
182
- `}};Ue.styles=[Ci,Oi,Ai,Ei,Er,Ii,wi,Ti,Ri,Li,ki];_i([(0,_o.property)()],Ue.prototype,"element",void 0);_i([(0,_o.property)()],Ue.prototype,"variant",void 0);var Po=x(j()),es=x(I());var Ir;(function(o){o.display="display",o.title1="title-1",o.title2="title-2",o.title3="title-3",o.body1regular="body-1-regular",o.body1medium="body-1-medium",o.body1semibold="body-1-semibold",o.body2regular="body-2-regular",o.body2medium="body-2-medium",o.body2semibold="body-2-semibold",o.caption1medium="caption-1-medium",o.caption1semibold="caption-1-semibold",o.caption2medium="caption-2-medium",o.caption2semibold="caption-2-semibold",o.caption2bold="caption-2-bold"})(Ir||(Ir={}));var ge=x(F(),1),Ae=o=>typeof o=="string"?(0,ge.unsafeCSS)(o):o,t=class{static create(e,r,n,a){let s=d=>Ae(d??a),c=ge.css`var(${Ae(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>Pi(c,d??s(a)),c.get=d=>ge.css`var(${Ae(e)}, ${s(d)})`,c.breadcrumb=()=>[],c.lastResortDefaultValue=()=>a,c}static extend(e,r,n,a){let s=d=>n.get(d??a),c=ge.css`var(${Ae(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n.category,c.fallbackVariable=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>Pi(c,d??s(a)),c.get=d=>ge.css`var(${Ae(e)}, ${s(d)})`,c.breadcrumb=()=>[n.name,...n.breadcrumb()],c.lastResortDefaultValue=()=>a??n.lastResortDefaultValue(),c}static external(e,r){let n=s=>e.defaultCssValue(s),a=ge.css`var(${Ae(e.name)}, ${n(e.defaultValue)})`;return a.name=e.name,a.category=e.category,a.fallbackVariable=e.fallbackVariable,a.defaultValue=e.defaultValue,a.context=r,a.defaultCssValue=n,a.set=s=>e.set(s),a.get=s=>ge.css`var(${Ae(e.name)}, ${n(s)})`,a.breadcrumb=()=>e.breadcrumb(),a.lastResortDefaultValue=()=>e.lastResortDefaultValue(),a}};function Pi(o,e){return Ae(`${o.name}: ${e}`)}var i={colorWhite:t.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:t.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:t.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:t.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:t.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:t.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:t.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:t.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:t.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:t.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:t.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:t.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:t.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:t.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:t.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:t.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:t.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:t.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:t.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:t.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:t.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:t.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:t.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:t.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:t.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:t.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:t.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:t.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:t.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:t.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:t.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:t.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:t.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:t.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:t.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:t.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:t.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:t.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:t.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:t.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:t.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:t.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:t.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:t.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:t.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:t.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:t.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:t.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:t.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:t.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:t.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:t.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:t.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:t.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:t.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:t.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:t.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:t.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:t.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:t.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:t.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:t.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:t.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:t.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:t.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:t.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:t.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:t.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:t.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:t.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:t.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:t.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:t.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:t.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:t.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:t.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:t.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:t.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:t.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:t.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:t.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:t.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:t.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:t.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:t.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:t.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:t.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:t.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:t.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:t.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:t.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:t.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:t.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:t.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:t.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:t.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:t.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:t.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:t.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:t.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:t.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:t.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:t.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:t.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:t.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:t.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:t.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:t.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:t.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:t.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:t.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:t.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:t.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:t.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:t.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:t.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:t.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:t.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:t.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:t.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:t.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:t.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:t.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:t.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:t.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:t.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:t.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:t.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:t.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:t.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:t.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:t.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:t.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:t.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:t.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:t.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:t.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:t.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:t.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:t.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:t.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:t.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:t.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:t.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:t.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:t.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:t.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:t.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:t.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:t.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:t.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:t.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:t.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:t.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:t.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:t.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:t.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:t.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:t.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:t.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:t.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:t.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:t.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:t.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:t.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:t.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:t.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:t.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:t.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:t.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:t.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:t.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:t.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:t.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:t.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:t.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:t.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:t.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:t.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:t.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:t.create("--ftds-opacity-0","","NUMBER","0"),opacity4:t.create("--ftds-opacity-4","","NUMBER","0.04"),opacity8:t.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:t.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:t.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:t.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:t.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:t.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:t.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:t.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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)")},Di={fontFamily:t.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:t.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Mi={fontFamily:t.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:t.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Fi={fontFamily:t.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:t.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Ui={fontFamily:t.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:t.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:t.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},Bi={fontFamily:t.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Hi={fontFamily:t.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},zi={fontFamily:t.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},Gi={fontFamily:t.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},$i={fontFamily:t.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},bc={fontFamily:t.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:t.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:t.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Wi={fontFamily:t.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},ji={fontFamily:t.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Vi={fontFamily:t.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},Ki={fontFamily:t.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Zi={fontFamily:t.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},qi={fontFamily:t.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:t.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},No={display:Di,"title-1":Mi,"title-2":Fi,"title-3":Ui,"body-1-regular":Bi,"body-1-medium":Hi,"body-1-semibold":zi,"body-2-regular":Gi,"body-2-medium":$i,"body-2-medium-underline":bc,"body-2-semibold":Wi,"caption-1-medium":ji,"caption-1-semibold":Vi,"caption-2-medium":Ki,"caption-2-semibold":Zi,"caption-2-bold":qi};var l={backgroundActionPrimary:t.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",i.colorBrand0),backgroundErrorSubtle:t.extend("--ftds-background-error-subtle","Used as background of subtle error components.",i.colorRed10),backgroundInfoSubtle:t.extend("--ftds-background-info-subtle","Used as background of subtle information components.",i.colorCyan10),backgroundWarningSubtle:t.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",i.colorOrange10),backgroundSuccessSubtle:t.extend("--ftds-background-success-subtle","Used as background of subtle success components.",i.colorGreen10),backgroundGlobalSurface:t.extend("--ftds-background-global-surface","Used as app background.",i.colorWhite),backgroundGlobalOnSurface:t.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",i.colorGray10),backgroundGlobalOnSurfaceDark:t.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",i.colorGray30),contentActionPrimary:t.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",i.colorBrand0),contentWarningPrimary:t.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",i.colorOrange200),contentWarningIconOnly:t.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",i.colorOrange0),contentErrorPrimary:t.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",i.colorRed0),contentErrorIconOnly:t.extend("--ftds-content-error-icon-only","Used on error status icons alone",i.colorRed70),contentInfoPrimary:t.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",i.colorCyan200),contentInfoIconOnly:t.extend("--ftds-content-info-icon-only","Used on info status icons alone",i.colorCyan0),contentSuccessPrimary:t.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",i.colorGreen200),contentSuccessIconOnly:t.extend("--ftds-content-success-icon-only","Used on success status icons alone",i.colorGreen0),contentGlobalPrimary:t.extend("--ftds-content-global-primary","Used for main content on the page.",i.colorGray500),contentGlobalSecondary:t.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
183
- Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",i.colorGray0),contentGlobalOnColor:t.extend("--ftds-content-global-on-color","Used for content on a dominant color.",i.colorWhite),borderActionPrimary:t.extend("--ftds-border-action-primary","Used as border for primary action components.",i.colorBrand0),borderActionFocusRing:t.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",i.colorCyan0),borderWarningPrimary:t.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",i.colorOrange200),borderWarningSubtle:t.extend("--ftds-border-warning-subtle","Used as border for warning components.",i.colorOrange30),borderSuccessPrimary:t.extend("--ftds-border-success-primary","Used as border for success buttons.",i.colorGreen200),borderSuccessSubtle:t.extend("--ftds-border-success-subtle","Used as border for success components.",i.colorGreen30),borderErrorPrimary:t.extend("--ftds-border-error-primary","Used as border for text fields in error states.",i.colorRed0),borderErrorSubtle:t.extend("--ftds-border-error-subtle","Used as border for error components.",i.colorRed30),borderInfoPrimary:t.extend("--ftds-border-info-primary","Used as border for buttons in info color.",i.colorCyan200),borderInfoSubtle:t.extend("--ftds-border-info-subtle","Used as border for information components.",i.colorCyan30),borderGlobalPrimary:t.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",i.colorGray50),borderGlobalSecondary:t.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",i.colorGray40),borderGlobalSubtle:t.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",i.colorGray30),borderInputPrimary:t.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",i.colorGray80),borderNeutralPrimary:t.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",i.colorGray200)};var Zf={largeHeight:t.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:t.extend("--ftds-button-large-horizontal-padding","",i.spacing4),largeGap:t.extend("--ftds-button-large-gap","",i.spacing2),largeBorderRadius:t.extend("--ftds-button-large-border-radius","",i.borderRadiusS),largeIconSize:t.extend("--ftds-button-large-icon-size","",i.iconSize3),largeBorderWidth:t.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:t.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:t.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:t.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:t.extend("--ftds-button-medium-horizontal-padding","",i.spacing3),mediumGap:t.extend("--ftds-button-medium-gap","",i.spacing2),mediumBorderRadius:t.extend("--ftds-button-medium-border-radius","",i.borderRadiusS),mediumIconSize:t.extend("--ftds-button-medium-icon-size","",i.iconSize2),mediumBorderWidth:t.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:t.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:t.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:t.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-button-small-horizontal-padding","",i.spacing2),smallGap:t.extend("--ftds-button-small-gap","",i.spacing1),smallBorderRadius:t.extend("--ftds-button-small-border-radius","",i.borderRadiusS),smallIconSize:t.extend("--ftds-button-small-icon-size","",i.iconSize1),smallBorderWidth:t.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:t.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:t.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:t.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:t.extend("--ftds-button-x-small-icon-size","",i.iconSize1),xSmallFocusOutlineOffset:t.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:t.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:t.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:t.extend("--ftds-button-round-border-radius","",i.borderRadiusPill),primaryBrandBackgroundColor:t.extend("--ftds-button-primary-brand-background-color","",l.backgroundActionPrimary),primaryBrandColor:t.extend("--ftds-button-primary-brand-color","",l.contentGlobalOnColor),primaryBrandIconColor:t.extend("--ftds-button-primary-brand-icon-color","",l.contentGlobalOnColor),primaryBrandStateLayerColor:t.extend("--ftds-button-primary-brand-state-layer-color","",l.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",i.opacity16),primaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",i.opacity16),primaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-primary-brand-active-state-layer-opacity","",i.opacity24),primaryBrandDisabledComponentOpacity:t.extend("--ftds-button-primary-brand-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-button-focus-focus-ring-color","",l.borderActionFocusRing),tertiaryBrandBackgroundColor:t.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:t.extend("--ftds-button-tertiary-brand-color","",l.contentActionPrimary),tertiaryBrandIconColor:t.extend("--ftds-button-tertiary-brand-icon-color","",l.contentActionPrimary),tertiaryBrandStateLayerColor:t.extend("--ftds-button-tertiary-brand-state-layer-color","",l.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",i.opacity8),tertiaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",i.opacity8),tertiaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",i.opacity16),tertiaryBrandDisabledComponentOpacity:t.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",i.opacity40),tertiaryInfoBackgroundColor:t.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:t.extend("--ftds-button-tertiary-info-color","",l.contentInfoPrimary),tertiaryInfoIconColor:t.extend("--ftds-button-tertiary-info-icon-color","",l.contentInfoPrimary),tertiaryInfoStateLayerColor:t.extend("--ftds-button-tertiary-info-state-layer-color","",l.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",i.opacity8),tertiaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",i.opacity8),tertiaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",i.opacity16),tertiaryInfoDisabledComponentOpacity:t.extend("--ftds-button-tertiary-info-disabled-component-opacity","",i.opacity40),tertiarySuccessBackgroundColor:t.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:t.extend("--ftds-button-tertiary-success-color","",l.contentSuccessPrimary),tertiarySuccessIconColor:t.extend("--ftds-button-tertiary-success-icon-color","",l.contentSuccessPrimary),tertiarySuccessStateLayerColor:t.extend("--ftds-button-tertiary-success-state-layer-color","",l.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",i.opacity8),tertiarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",i.opacity8),tertiarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",i.opacity16),tertiarySuccessDisabledComponentOpacity:t.extend("--ftds-button-tertiary-success-disabled-component-opacity","",i.opacity40),tertiaryWarningBackgroundColor:t.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:t.extend("--ftds-button-tertiary-warning-color","",l.contentWarningPrimary),tertiaryWarningIconColor:t.extend("--ftds-button-tertiary-warning-icon-color","",l.contentWarningPrimary),tertiaryWarningStateLayerColor:t.extend("--ftds-button-tertiary-warning-state-layer-color","",l.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",i.opacity8),tertiaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",i.opacity8),tertiaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",i.opacity16),tertiaryWarningDisabledComponentOpacity:t.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",i.opacity40),tertiaryErrorBackgroundColor:t.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:t.extend("--ftds-button-tertiary-error-color","",l.contentErrorPrimary),tertiaryErrorIconColor:t.extend("--ftds-button-tertiary-error-icon-color","",l.contentErrorPrimary),tertiaryErrorStateLayerColor:t.extend("--ftds-button-tertiary-error-state-layer-color","",l.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",i.opacity8),tertiaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",i.opacity8),tertiaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",i.opacity16),tertiaryErrorDisabledComponentOpacity:t.extend("--ftds-button-tertiary-error-disabled-component-opacity","",i.opacity40),tertiaryNeutralBackgroundColor:t.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:t.extend("--ftds-button-tertiary-neutral-icon-color","",l.contentGlobalSecondary),tertiaryNeutralColor:t.extend("--ftds-button-tertiary-neutral-color","",l.contentGlobalSecondary),tertiaryNeutralStateLayerColor:t.extend("--ftds-button-tertiary-neutral-state-layer-color","",l.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",i.opacity8),tertiaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",i.opacity8),tertiaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",i.opacity16),tertiaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",i.opacity40),secondaryBrandBackgroundColor:t.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:t.extend("--ftds-button-secondary-brand-color","",l.contentActionPrimary),secondaryBrandIconColor:t.extend("--ftds-button-secondary-brand-icon-color","",l.contentActionPrimary),secondaryBrandStateLayerColor:t.extend("--ftds-button-secondary-brand-state-layer-color","",l.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",i.opacity8),secondaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",i.opacity8),secondaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",i.opacity16),secondaryBrandDisabledComponentOpacity:t.extend("--ftds-button-secondary-brand-disabled-component-opacity","",i.opacity40),secondaryBrandBorderColor:t.extend("--ftds-button-secondary-brand-border-color","",l.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",i.opacity8),secondaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",i.opacity8),secondaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",i.opacity16),secondaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",i.opacity40),secondaryNeutralBackgroundColor:t.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:t.extend("--ftds-button-secondary-neutral-color","",l.contentGlobalSecondary),secondaryNeutralIconColor:t.extend("--ftds-button-secondary-neutral-icon-color","",l.contentGlobalSecondary),secondaryNeutralStateLayerColor:t.extend("--ftds-button-secondary-neutral-state-layer-color","",l.contentGlobalSecondary),secondaryNeutralBorderColor:t.extend("--ftds-button-secondary-neutral-border-color","",l.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",i.opacity8),secondaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",i.opacity8),secondaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-secondary-info-active-state-layer-opacity","",i.opacity16),secondaryInfoDisabledComponentOpacity:t.extend("--ftds-button-secondary-info-disabled-component-opacity","",i.opacity40),secondaryInfoBackgroundColor:t.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:t.extend("--ftds-button-secondary-info-border-color","",l.borderInfoPrimary),secondaryInfoColor:t.extend("--ftds-button-secondary-info-color","",l.contentInfoPrimary),secondaryInfoIconColor:t.extend("--ftds-button-secondary-info-icon-color","",l.contentInfoPrimary),secondaryInfoStateLayerColor:t.extend("--ftds-button-secondary-info-state-layer-color","",l.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",i.opacity8),secondarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",i.opacity8),secondarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-secondary-success-active-state-layer-opacity","",i.opacity16),secondarySuccessDisabledComponentOpacity:t.extend("--ftds-button-secondary-success-disabled-component-opacity","",i.opacity40),secondarySuccessBackgroundColor:t.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:t.extend("--ftds-button-secondary-success-border-color","",l.borderSuccessPrimary),secondarySuccessColor:t.extend("--ftds-button-secondary-success-color","",l.contentSuccessPrimary),secondarySuccessIconColor:t.extend("--ftds-button-secondary-success-icon-color","",l.contentSuccessPrimary),secondarySuccessStateLayerColor:t.extend("--ftds-button-secondary-success-state-layer-color","",l.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",i.opacity8),secondaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",i.opacity8),secondaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",i.opacity16),secondaryWarningDisabledComponentOpacity:t.extend("--ftds-button-secondary-warning-disabled-component-opacity","",i.opacity40),secondaryWarningBackgroundColor:t.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:t.extend("--ftds-button-secondary-warning-border-color","",l.borderWarningPrimary),secondaryWarningColor:t.extend("--ftds-button-secondary-warning-color","",l.contentWarningPrimary),secondaryWarningIconColor:t.extend("--ftds-button-secondary-warning-icon-color","",l.contentWarningPrimary),secondaryWarningStateLayerColor:t.extend("--ftds-button-secondary-warning-state-layer-color","",l.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",i.opacity8),secondaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",i.opacity8),secondaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-secondary-error-active-state-layer-opacity","",i.opacity16),secondaryErrorDisabledComponentOpacity:t.extend("--ftds-button-secondary-error-disabled-component-opacity","",i.opacity40),secondaryErrorBackgroundColor:t.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:t.extend("--ftds-button-secondary-error-border-color","",l.contentErrorPrimary),secondaryErrorColor:t.extend("--ftds-button-secondary-error-color","",l.contentErrorPrimary),secondaryErrorIconColor:t.extend("--ftds-button-secondary-error-icon-color","",l.contentErrorPrimary),secondaryErrorStateLayerColor:t.extend("--ftds-button-secondary-error-state-layer-color","",l.contentErrorPrimary)};var Jf={borderRadius:t.extend("--ftds-card-border-radius","",i.borderRadiusS),focusFocusRingColor:t.extend("--ftds-card-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:t.extend("--ftds-card-header-title-horizontal-padding","",i.spacing4),headerTitleVerticalPadding:t.extend("--ftds-card-header-title-vertical-padding","",i.spacing3),headerActionHorizontalPadding:t.extend("--ftds-card-header-action-horizontal-padding","",i.spacing2),headerActionVerticalPadding:t.extend("--ftds-card-header-action-vertical-padding","",i.spacing2),headerActionGap:t.extend("--ftds-card-header-action-gap","",i.spacing1),bodyHorizontalPadding:t.extend("--ftds-card-body-horizontal-padding","",i.spacing4),bodyVerticalPadding:t.extend("--ftds-card-body-vertical-padding","",i.spacing4),footerActionHorizontalPadding:t.extend("--ftds-card-footer-action-horizontal-padding","",i.spacing2),footerActionVerticalPadding:t.extend("--ftds-card-footer-action-vertical-padding","",i.spacing2),footerActionGap:t.extend("--ftds-card-footer-action-gap","",i.spacing1),footerContentHorizontalPadding:t.extend("--ftds-card-footer-content-horizontal-padding","",i.spacing4),footerContentVerticalPadding:t.extend("--ftds-card-footer-content-vertical-padding","",i.spacing3),sideBarHorizontalPadding:t.extend("--ftds-card-side-bar-horizontal-padding","",i.spacing1),sideBarVerticalPadding:t.extend("--ftds-card-side-bar-vertical-padding","",i.spacing1),sideBarGap:t.extend("--ftds-card-side-bar-gap","",i.spacing1),nonSelectableBorderWidth:t.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:t.extend("--ftds-card-non-selectable-state-layer-color","",l.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:t.extend("--ftds-card-non-selectable-default-background-color","",l.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:t.extend("--ftds-card-non-selectable-default-border-color","",l.borderGlobalSecondary),nonSelectableHoverBorderColor:t.extend("--ftds-card-non-selectable-hover-border-color","",l.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:t.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",i.opacity4),nonSelectableFocusBorderColor:t.extend("--ftds-card-non-selectable-focus-border-color","",l.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:t.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",i.opacity4),internalBorderColor:t.extend("--ftds-card-internal-border-color","",l.borderGlobalSecondary),selectableUnselectedBorderWidth:t.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:t.extend("--ftds-card-selectable-unselected-state-layer-color","",l.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:t.extend("--ftds-card-selectable-unselected-default-background-color","",l.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:t.extend("--ftds-card-selectable-unselected-default-border-color","",l.borderGlobalSecondary),selectableUnselectedHoverBorderColor:t.extend("--ftds-card-selectable-unselected-hover-border-color","",l.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:t.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",i.opacity4),selectableUnselectedFocusBorderColor:t.extend("--ftds-card-selectable-unselected-focus-border-color","",l.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:t.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",i.opacity4),selectableSelectedBorderColor:t.extend("--ftds-card-selectable-selected-border-color","",l.borderActionPrimary),selectableSelectedBorderWidth:t.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:t.extend("--ftds-card-selectable-selected-state-layer-color","",l.contentActionPrimary),selectableSelectedBackgroundColor:t.extend("--ftds-card-selectable-selected-background-color","",l.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:t.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",i.opacity4),selectableSelectedHoverStateLayerOpacity:t.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",i.opacity4),selectableSelectedFocusStateLayerOpacity:t.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",i.opacity4),internalBorderWidth:t.create("--ftds-card-internal-border-width","","SIZE","1px")};var nh={loadMoreIconSize:t.extend("--ftds-tree-list-load-more-icon-size","",i.iconSize2),loadMorePaddingLeft:t.extend("--ftds-tree-list-load-more-padding-left","",i.spacing6),loadMoreUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-unselected-default-border-color","",l.borderGlobalSubtle),loadMoreIconColor:t.extend("--ftds-tree-list-load-more-icon-color","",l.contentActionPrimary),loadMoreLabelColor:t.extend("--ftds-tree-list-load-more-label-color","",l.contentActionPrimary),loadMoreHoverBorderColor:t.extend("--ftds-tree-list-load-more-hover-border-color","",i.colorBrand20),loadMoreHoverBackgroundColor:t.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:t.extend("--ftds-tree-list-load-more-active-border-color","",i.colorBrand20),loadMoreActiveBackgroundColor:t.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:t.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:t.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),loadMoreLabelMarginLeft:t.extend("--ftds-tree-list-load-more-label-margin-left","",i.spacing1),nodeIconSize:t.extend("--ftds-tree-list-node-icon-size","",i.iconSize2),nodeHeight:t.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:t.extend("--ftds-tree-list-node-parent-label-margin-left","",i.spacing2),nodeParentLabelMarginRight:t.extend("--ftds-tree-list-node-parent-label-margin-right","",i.spacing2),nodeRootPaddingLeft:t.extend("--ftds-tree-list-node-root-padding-left","",i.spacing6),nodeChildPaddingLeft:t.extend("--ftds-tree-list-node-child-padding-left","",i.spacing5),nodeLeafPaddingLeft:t.extend("--ftds-tree-list-node-leaf-padding-left","",i.spacing6),nodeUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-node-unselected-default-border-color","",l.borderGlobalSubtle),nodeUnselectedIconColor:t.extend("--ftds-tree-list-node-unselected-icon-color","",l.contentGlobalSecondary),nodeUnselectedLabelColor:t.extend("--ftds-tree-list-node-unselected-label-color","",l.contentGlobalSecondary),nodeUnselectedCounterColor:t.extend("--ftds-tree-list-node-unselected-counter-color","",l.contentGlobalSecondary),nodeHoverBorderColor:t.extend("--ftds-tree-list-node-hover-border-color","",l.borderActionPrimary),nodeFocusFocusRingColor:t.extend("--ftds-tree-list-node-focus-focus-ring-color","",l.borderActionFocusRing),nodeFocusOutlineWidth:t.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-selected-default-border-color","",l.borderGlobalPrimary),nodeSelectedIconColor:t.extend("--ftds-tree-list-node-selected-icon-color","",l.contentGlobalSecondary),nodeSelectedLabelColor:t.extend("--ftds-tree-list-node-selected-label-color","",l.contentGlobalPrimary),nodeSelectedCounterColor:t.extend("--ftds-tree-list-node-selected-counter-color","",l.contentGlobalSecondary),nodeSelectedBackgroundColor:t.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:t.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:t.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:t.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:t.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:t.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:t.extend("--ftds-tree-list-header-section-padding-left","",i.spacing6),headerSectionPaddingRight:t.extend("--ftds-tree-list-header-section-padding-right","",i.spacing3),headerSectionHorizontalGap:t.extend("--ftds-tree-list-header-section-horizontal-gap","",i.spacing2),headerSectionMarginBottom:t.extend("--ftds-tree-list-header-section-margin-bottom","",i.spacing2),headerSectionColor:t.extend("--ftds-tree-list-header-section-color","",l.contentGlobalPrimary),headerSectionCounterColor:t.extend("--ftds-tree-list-header-section-counter-color","",l.contentGlobalSecondary),listContainerBorderWidth:t.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:t.extend("--ftds-tree-list-list-container-background-color","",l.backgroundGlobalSurface),listContainerBorderColor:t.extend("--ftds-tree-list-list-container-border-color","",l.borderGlobalSubtle),emptyStateIllustrationWidth:t.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:t.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:t.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",i.spacing10),emptyStateContainerPaddingTop:t.extend("--ftds-tree-list-empty-state-container-padding-top","",i.spacing10),emptyStateContainerPaddingBottom:t.extend("--ftds-tree-list-empty-state-container-padding-bottom","",i.spacing10),emptyStateTitleMarginBottom:t.extend("--ftds-tree-list-empty-state-title-margin-bottom","",i.spacing2),emptyStateTitleLabelColor:t.extend("--ftds-tree-list-empty-state-title-label-color","",l.contentGlobalSecondary),emptyStateDescriptionLabelColor:t.extend("--ftds-tree-list-empty-state-description-label-color","",l.contentGlobalSecondary)};var lh={iconSize:t.extend("--ftds-checkbox-icon-size","",i.iconSize2),boxSize:t.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:t.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:t.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:t.extend("--ftds-checkbox-label-horizontal-gap","",i.spacing1),color:t.extend("--ftds-checkbox-color","",l.contentGlobalPrimary),checkedBackgroundColor:t.extend("--ftds-checkbox-checked-background-color","",l.contentActionPrimary),checkedStateLayerColor:t.extend("--ftds-checkbox-checked-state-layer-color","",l.contentActionPrimary),checkedIconColor:t.extend("--ftds-checkbox-checked-icon-color","",l.contentGlobalOnColor),checkedHoverStateLayerOpacity:t.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",i.opacity16),checkedFocusStateLayerOpacity:t.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",i.opacity16),checkedActiveStateLayerOpacity:t.extend("--ftds-checkbox-checked-active-state-layer-opacity","",i.opacity24),checkedDisabledComponentOpacity:t.extend("--ftds-checkbox-checked-disabled-component-opacity","",i.opacity40),uncheckedBorderColor:t.extend("--ftds-checkbox-unchecked-border-color","",i.colorGray80),uncheckedStateLayerColor:t.extend("--ftds-checkbox-unchecked-state-layer-color","",i.colorGray80),uncheckedHoverStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",i.opacity16),uncheckedFocusStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",i.opacity16),uncheckedActiveStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",i.opacity24),uncheckedDisabledComponentOpacity:t.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-checkbox-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:t.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:t.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:t.extend("--ftds-checkbox-horizontal-gap","",i.spacing3),helperPaddingTop:t.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:t.extend("--ftds-checkbox-helper-icon-size","",i.iconSize2),helperHorizontalGap:t.extend("--ftds-checkbox-helper-horizontal-gap","",i.spacing1),errorUncheckedBorderColor:t.extend("--ftds-checkbox-error-unchecked-border-color","",l.borderErrorPrimary),errorStateLayerColor:t.extend("--ftds-checkbox-error-state-layer-color","",l.contentErrorPrimary),errorHelperTextColor:t.extend("--ftds-checkbox-error-helper-text-color","",l.borderErrorPrimary),errorCheckedBackgroundColor:t.extend("--ftds-checkbox-error-checked-background-color","",l.contentErrorPrimary),helperTextColor:t.extend("--ftds-checkbox-helper-text-color","",l.contentGlobalSubtle),groupVerticalGap:t.extend("--ftds-checkbox-group-vertical-gap","",i.spacing3)};var hh={circleSize:t.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:t.create("--ftds-radio-border-width","","SIZE","2px"),color:t.extend("--ftds-radio-color","",l.contentGlobalPrimary),selectedRadioColor:t.extend("--ftds-radio-selected-radio-color","",l.contentActionPrimary),selectedStateLayerColor:t.extend("--ftds-radio-selected-state-layer-color","",l.contentActionPrimary),selectedHoverStateLayerOpacity:t.extend("--ftds-radio-selected-hover-state-layer-opacity","",i.opacity16),selectedFocusStateLayerOpacity:t.extend("--ftds-radio-selected-focus-state-layer-opacity","",i.opacity16),selectedActiveStateLayerOpacity:t.extend("--ftds-radio-selected-active-state-layer-opacity","",i.opacity24),selectedDisabledComponentOpacity:t.extend("--ftds-radio-selected-disabled-component-opacity","",i.opacity40),unselectedStateLayerColor:t.extend("--ftds-radio-unselected-state-layer-color","",l.borderInputPrimary),unselectedBorderColor:t.extend("--ftds-radio-unselected-border-color","",l.borderInputPrimary),unselectedHoverStateLayerOpacity:t.extend("--ftds-radio-unselected-hover-state-layer-opacity","",i.opacity16),unselectedFocusStateLayerOpacity:t.extend("--ftds-radio-unselected-focus-state-layer-opacity","",i.opacity16),unselectedActiveStateLayerOpacity:t.extend("--ftds-radio-unselected-active-state-layer-opacity","",i.opacity24),unselectedDisabledComponentOpacity:t.extend("--ftds-radio-unselected-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-radio-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:t.extend("--ftds-radio-vertical-gap","",i.spacing3),horizontalGap:t.extend("--ftds-radio-horizontal-gap","",i.spacing3)};var vh={headerRowBorderWidth:t.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:t.extend("--ftds-table-header-row-background-color","",l.backgroundGlobalOnSurfaceDark),headerRowBorderColor:t.extend("--ftds-table-header-row-border-color","",l.borderGlobalPrimary),headerRowColor:t.extend("--ftds-table-header-row-color","",l.contentGlobalPrimary),dataRowBorderWidth:t.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:t.extend("--ftds-table-data-row-background-color","",l.backgroundGlobalOnSurface),dataRowBorderColor:t.extend("--ftds-table-data-row-border-color","",l.borderGlobalSubtle),dataRowColor:t.extend("--ftds-table-data-row-color","",l.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:t.extend("--ftds-table-data-row-default-hover-background-color","",i.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",i.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-default-background-color","",i.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:t.extend("--ftds-table-data-row-selectable-selected-default-border-color","",i.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",i.colorBrand20),dataRowSelectableSelectedHoverBorderColor:t.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",i.colorBrand30),dataRowSelectableSelectedColor:t.extend("--ftds-table-data-row-selectable-selected-color","",l.contentActionPrimary),dataRowClickableHoverBackgroundColor:t.extend("--ftds-table-data-row-clickable-hover-background-color","",i.colorGray30),dataRowClickableFocusBorderColor:t.extend("--ftds-table-data-row-clickable-focus-border-color","",l.borderActionFocusRing),dataRowClickableFocusBackgroundColor:t.extend("--ftds-table-data-row-clickable-focus-background-color","",i.colorGray30),dataRowClickableActiveBackgroundColor:t.extend("--ftds-table-data-row-clickable-active-background-color","",i.colorGray40),headerCellHorizontalGap:t.extend("--ftds-table-header-cell-horizontal-gap","",i.spacing1),headerCellVerticalPadding:t.extend("--ftds-table-header-cell-vertical-padding","",i.spacing2),headerCellHorizontalPadding:t.extend("--ftds-table-header-cell-horizontal-padding","",i.spacing3),dataCellVerticalPadding:t.extend("--ftds-table-data-cell-vertical-padding","",i.spacing2),dataCellHorizontalPadding:t.extend("--ftds-table-data-cell-horizontal-padding","",i.spacing3),dataCellVerticalGap:t.extend("--ftds-table-data-cell-vertical-gap","",i.spacing1)};var Ah={neutralOffHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",i.opacity8),neutralOffFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",i.opacity8),neutralOffFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",l.borderActionFocusRing),neutralOffActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",i.opacity16),neutralOffBackgroundColor:t.extend("--ftds-chip-choice-neutral-off-background-color","",l.backgroundGlobalOnSurface),neutralOffBorderColor:t.extend("--ftds-chip-choice-neutral-off-border-color","",l.borderGlobalPrimary),neutralOffColor:t.extend("--ftds-chip-choice-neutral-off-color","",l.contentGlobalSecondary),neutralOffStateLayerColor:t.extend("--ftds-chip-choice-neutral-off-state-layer-color","",l.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",i.opacity16),neutralOnHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",i.opacity24),neutralOnFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",i.opacity24),neutralOnFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",l.borderActionFocusRing),neutralOnActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",i.opacity32),neutralOnBackgroundColor:t.extend("--ftds-chip-choice-neutral-on-background-color","",l.backgroundGlobalOnSurface),neutralOnBorderColor:t.extend("--ftds-chip-choice-neutral-on-border-color","",l.borderGlobalPrimary),neutralOnColor:t.extend("--ftds-chip-choice-neutral-on-color","",l.contentGlobalPrimary),neutralOnIconColor:t.extend("--ftds-chip-choice-neutral-on-icon-color","",l.contentGlobalPrimary),neutralOnStateLayerColor:t.extend("--ftds-chip-choice-neutral-on-state-layer-color","",l.contentGlobalPrimary),largeMinHeight:t.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-choice-large-horizontal-padding","",i.spacing3),largeGap:t.extend("--ftds-chip-choice-large-gap","",i.spacing1),largeBorderRadius:t.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-choice-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-choice-medium-horizontal-padding","",i.spacing2),mediumGap:t.extend("--ftds-chip-choice-medium-gap","",i.spacing1),mediumBorderRadius:t.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-choice-medium-icon-size","",i.iconSize2)};var Rh={largeMinHeight:t.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-large-horizontal-padding","",i.spacing3),largeButtonRightPadding:t.extend("--ftds-chip-large-button-right-padding","",i.spacing1),largeGap:t.extend("--ftds-chip-large-gap","",i.spacing1),largeFocusOutlineOffset:t.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:t.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-medium-horizontal-padding","",i.spacing2),mediumButtonRightPadding:t.extend("--ftds-chip-medium-button-right-padding","",i.spacing05),mediumGap:t.extend("--ftds-chip-medium-gap","",i.spacing1),mediumFocusOutlineOffset:t.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:t.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-medium-icon-size","",i.iconSize2),smallMinHeight:t.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-chip-small-horizontal-padding","",i.spacing1),smallButtonRightPadding:t.extend("--ftds-chip-small-button-right-padding","",i.spacing05),smallGap:t.extend("--ftds-chip-small-gap","",i.spacing1),smallFocusOutlineOffset:t.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:t.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:t.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:t.extend("--ftds-chip-small-icon-size","",i.iconSize1),neutralBackgroundColor:t.extend("--ftds-chip-neutral-background-color","",l.backgroundGlobalOnSurface),neutralColor:t.extend("--ftds-chip-neutral-color","",l.contentGlobalSecondary),neutralIconColor:t.extend("--ftds-chip-neutral-icon-color","",l.contentGlobalSecondary),neutralBorderColor:t.extend("--ftds-chip-neutral-border-color","",l.borderGlobalSecondary),infoBackgroundColor:t.extend("--ftds-chip-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-chip-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-chip-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-chip-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-chip-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-chip-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-chip-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-chip-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-chip-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-chip-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-chip-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-chip-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-chip-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-chip-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-chip-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-chip-error-border-color","",l.borderErrorSubtle)};var Ph={horizontalGap:t.extend("--ftds-chip-group-horizontal-gap","",i.spacing2),verticalGap:t.extend("--ftds-chip-group-vertical-gap","",i.spacing2),countChipDefaultBackgroundColor:t.extend("--ftds-chip-group-count-chip-default-background-color","",i.colorBrand10),countChipDefaultBorderColor:t.extend("--ftds-chip-group-count-chip-default-border-color","",i.colorBrand60),countChipDefaultContentColor:t.extend("--ftds-chip-group-count-chip-default-content-color","",l.contentActionPrimary),countChipHoverBackgroundColor:t.extend("--ftds-chip-group-count-chip-hover-background-color","",i.colorBrand20),countChipHoverBorderColor:t.extend("--ftds-chip-group-count-chip-hover-border-color","",i.colorBrand70),countChipHoverContentColor:t.extend("--ftds-chip-group-count-chip-hover-content-color","",l.contentActionPrimary),countChipFocusedBackgroundColor:t.extend("--ftds-chip-group-count-chip-focused-background-color","",i.colorBrand20),countChipFocusedBorderColor:t.extend("--ftds-chip-group-count-chip-focused-border-color","",i.colorBrand70),countChipFocusedContentColor:t.extend("--ftds-chip-group-count-chip-focused-content-color","",l.contentActionPrimary)};var Bh={brandHoverOpacity:t.extend("--ftds-link-brand-hover-opacity","",i.opacity80),brandHoverColor:t.extend("--ftds-link-brand-hover-color","",l.contentActionPrimary),brandFocusFocusRingColor:t.extend("--ftds-link-brand-focus-focus-ring-color","",l.borderActionFocusRing),brandFocusColor:t.extend("--ftds-link-brand-focus-color","",l.contentActionPrimary),brandDefaultColor:t.extend("--ftds-link-brand-default-color","",l.contentActionPrimary),brandActiveColor:t.extend("--ftds-link-brand-active-color","",l.contentActionPrimary),infoHoverOpacity:t.extend("--ftds-link-info-hover-opacity","",i.opacity80),infoHoverColor:t.extend("--ftds-link-info-hover-color","",l.contentInfoPrimary),infoFocusFocusRingColor:t.extend("--ftds-link-info-focus-focus-ring-color","",l.borderActionFocusRing),infoFocusColor:t.extend("--ftds-link-info-focus-color","",l.contentInfoPrimary),infoDefaultColor:t.extend("--ftds-link-info-default-color","",l.contentInfoPrimary),infoActiveColor:t.extend("--ftds-link-info-active-color","",l.contentInfoPrimary),neutralFocusFocusRingColor:t.extend("--ftds-link-neutral-focus-focus-ring-color","",l.borderActionFocusRing),neutralFocusColor:t.extend("--ftds-link-neutral-focus-color","",l.contentActionPrimary),neutralDefaultColor:t.extend("--ftds-link-neutral-default-color","",l.contentGlobalPrimary),neutralHoverColor:t.extend("--ftds-link-neutral-hover-color","",l.contentActionPrimary),neutralActiveColor:t.extend("--ftds-link-neutral-active-color","",l.contentActionPrimary),neutralVisitedColor:t.extend("--ftds-link-neutral-visited-color","",i.colorBrand100)};var Wh={iconSize:t.extend("--ftds-banner-icon-size","",i.iconSize5),borderWidth:t.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:t.extend("--ftds-banner-left-padding","",i.spacing6),rightPadding:t.extend("--ftds-banner-right-padding","",i.spacing6),verticalPadding:t.extend("--ftds-banner-vertical-padding","",i.spacing6),horizontalSideGap:t.extend("--ftds-banner-horizontal-side-gap","",i.spacing6),horizontalMobileGap:t.extend("--ftds-banner-horizontal-mobile-gap","",i.spacing4),verticalMobileGap:t.extend("--ftds-banner-vertical-mobile-gap","",i.spacing6),horizontalMiddleGap:t.extend("--ftds-banner-horizontal-middle-gap","",i.spacing20),infoBackgroundColor:t.extend("--ftds-banner-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-banner-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-banner-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-banner-info-border-color","",l.borderInfoSubtle)};var qh={horizontalPadding:t.extend("--ftds-badge-horizontal-padding","",i.spacing1),verticalPadding:t.extend("--ftds-badge-vertical-padding","",i.spacing1),borderRadius:t.extend("--ftds-badge-border-radius","",i.borderRadiusPill),color:t.extend("--ftds-badge-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-badge-background-color","",l.contentActionPrimary)};var eg={horizontalGap:t.extend("--ftds-title-breadcrumb-horizontal-gap","",i.spacing1),currentColor:t.extend("--ftds-title-breadcrumb-current-color","",l.contentGlobalPrimary),previousNonClickableColor:t.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",l.contentGlobalSecondary),iconColor:t.extend("--ftds-title-breadcrumb-icon-color","",l.contentGlobalSubtle)};var ag={parentHorizontalPadding:t.extend("--ftds-page-header-parent-horizontal-padding","",i.spacing6),parentTopPadding:t.extend("--ftds-page-header-parent-top-padding","",i.spacing4),parentBottomPadding:t.extend("--ftds-page-header-parent-bottom-padding","",i.spacing6),parentHelpLeftMargin:t.extend("--ftds-page-header-parent-help-left-margin","",i.spacing1),parentTitleColor:t.extend("--ftds-page-header-parent-title-color","",l.contentGlobalPrimary),parentSubtitleColor:t.extend("--ftds-page-header-parent-subtitle-color","",l.contentGlobalSecondary),parentChipLeftMargin:t.extend("--ftds-page-header-parent-chip-left-margin","",i.spacing4),parentVerticalGap:t.extend("--ftds-page-header-parent-vertical-gap","",i.spacing2),parentButtonsGroupHorizontalGap:t.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",i.spacing4),parentButtonsGroupVerticalGap:t.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",i.spacing4),parentChipsGroupHorizontalGap:t.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",i.spacing2),parentChipsGroupVerticalGap:t.extend("--ftds-page-header-parent-chips-group-vertical-gap","",i.spacing2),childHorizontalPadding:t.extend("--ftds-page-header-child-horizontal-padding","",i.spacing6),childTopPadding:t.extend("--ftds-page-header-child-top-padding","",i.spacing2),childBottomPadding:t.extend("--ftds-page-header-child-bottom-padding","",i.spacing2),childHelpLeftMargin:t.extend("--ftds-page-header-child-help-left-margin","",i.spacing1),childChipLeftMargin:t.extend("--ftds-page-header-child-chip-left-margin","",i.spacing4),childVerticalGap:t.extend("--ftds-page-header-child-vertical-gap","",i.spacing2),childMinHeight:t.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:t.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",i.spacing4),childButtonsGroupVerticalGap:t.extend("--ftds-page-header-child-buttons-group-vertical-gap","",i.spacing4),childChipsGroupHorizontalGap:t.extend("--ftds-page-header-child-chips-group-horizontal-gap","",i.spacing2),childChipsGroupVerticalGap:t.extend("--ftds-page-header-child-chips-group-vertical-gap","",i.spacing2),backgroundColor:t.extend("--ftds-page-header-background-color","",i.colorWhite),bottomBorderColor:t.extend("--ftds-page-header-bottom-border-color","",l.borderGlobalSubtle),bottomBorderWidth:t.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var dg={horizontalPadding:t.extend("--ftds-page-footer-horizontal-padding","",i.spacing6),verticalPadding:t.extend("--ftds-page-footer-vertical-padding","",i.spacing2),verticalGap:t.extend("--ftds-page-footer-vertical-gap","",i.spacing2),minHeight:t.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:t.extend("--ftds-page-footer-background-color","",i.colorWhite),topBorderColor:t.extend("--ftds-page-footer-top-border-color","",l.borderGlobalSubtle),topBorderWidth:t.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:t.extend("--ftds-page-footer-buttons-group-gap","",i.spacing4)};var hg={contentHorizontalPadding:t.extend("--ftds-page-layout-content-horizontal-padding","",i.spacing6),contentVerticalPadding:t.extend("--ftds-page-layout-content-vertical-padding","",i.spacing6)};var vg={smallContainerTargetWidth:t.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:t.extend("--ftds-modal-small-container-margin","",i.spacing6),mediumContainerTargetWidth:t.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:t.extend("--ftds-modal-medium-container-margin","",i.spacing6),largeContainerTargetWidth:t.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:t.extend("--ftds-modal-large-container-margin","",i.spacing6),overlayBackgroundColor:t.extend("--ftds-modal-overlay-background-color","",i.colorGray700),overlayOpacity:t.extend("--ftds-modal-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-modal-shadow","",i.shadowElevation03),bodyBackgroundColor:t.extend("--ftds-modal-body-background-color","",i.colorWhite),bodyColor:t.extend("--ftds-modal-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-modal-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-modal-body-vertical-padding","",i.spacing6),bodyVerticalGap:t.extend("--ftds-modal-body-vertical-gap","",i.spacing6),headerBackgroundColor:t.extend("--ftds-modal-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-modal-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-modal-header-color","",l.contentGlobalPrimary),headerLeadingIconColor:t.extend("--ftds-modal-header-leading-icon-color","",l.contentGlobalPrimary),headerVerticalPadding:t.extend("--ftds-modal-header-vertical-padding","",i.spacing1),headerRightPadding:t.extend("--ftds-modal-header-right-padding","",i.spacing1),headerLeftPadding:t.extend("--ftds-modal-header-left-padding","",i.spacing6),headerGap:t.extend("--ftds-modal-header-gap","",i.spacing2),headerBorderBottomWidth:t.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:t.extend("--ftds-modal-border-radius","",i.borderRadiusM)};var Ag={overlayOpacity:t.extend("--ftds-drawer-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-drawer-shadow","",i.shadowElevation03),bodyColor:t.extend("--ftds-drawer-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-drawer-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-drawer-body-vertical-padding","",i.spacing6),bodyGap:t.extend("--ftds-drawer-body-gap","",i.spacing6),bodyBackgroundColor:t.extend("--ftds-drawer-body-background-color","",i.colorWhite),headerBackgroundColor:t.extend("--ftds-drawer-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-drawer-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-drawer-header-color","",l.contentGlobalPrimary),headerTrailingIconColor:t.extend("--ftds-drawer-header-trailing-icon-color","",l.contentGlobalSecondary),headerHeight:t.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:t.extend("--ftds-drawer-header-horizontal-padding","",i.spacing2),headerBorderWidth:t.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:t.extend("--ftds-drawer-header-gap","",i.spacing3),buttonsBarBackgroundColor:t.extend("--ftds-drawer-buttons-bar-background-color","",l.backgroundGlobalOnSurface),buttonsBarBorderColor:t.extend("--ftds-drawer-buttons-bar-border-color","",l.borderGlobalSubtle),buttonsBarColor:t.extend("--ftds-drawer-buttons-bar-color","",l.contentGlobalPrimary),buttonsBarHorizontalPadding:t.extend("--ftds-drawer-buttons-bar-horizontal-padding","",i.spacing6),buttonsBarVerticalPadding:t.extend("--ftds-drawer-buttons-bar-vertical-padding","",i.spacing4),buttonsBarGap:t.extend("--ftds-drawer-buttons-bar-gap","",i.spacing3),buttonsBarBorderWidth:t.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:t.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:t.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:t.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:t.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:t.extend("--ftds-drawer-overlay-background-color","",i.colorGray700)};var Rg={offBorderBottomWidth:t.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:t.extend("--ftds-tabs-off-hover-state-layer-opacity","",i.opacity8),offDefaultStateLayerOpacity:t.extend("--ftds-tabs-off-default-state-layer-opacity","",i.opacity0),offFocusStateLayerOpacity:t.extend("--ftds-tabs-off-focus-state-layer-opacity","",i.opacity8),offDisabledComponentOpacity:t.extend("--ftds-tabs-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-tabs-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-tabs-off-state-layer-color","",l.contentGlobalSubtle),offBorderBottomColor:t.extend("--ftds-tabs-off-border-bottom-color","",l.borderGlobalSubtle),activeTabIndicatorHeight:t.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:t.extend("--ftds-tabs-top-left-border-radius","",i.borderRadiusS),topRightBorderRadius:t.extend("--ftds-tabs-top-right-border-radius","",i.borderRadiusS),withLabelHorizontalPadding:t.extend("--ftds-tabs-with-label-horizontal-padding","",i.spacing4),withLabelVerticalPadding:t.extend("--ftds-tabs-with-label-vertical-padding","",i.spacing3),horizontalGap:t.extend("--ftds-tabs-horizontal-gap","",i.spacing1),verticalGap:t.extend("--ftds-tabs-vertical-gap","",i.spacing1),onHoverStateLayerOpacity:t.extend("--ftds-tabs-on-hover-state-layer-opacity","",i.opacity16),onDefaultStateLayerOpacity:t.extend("--ftds-tabs-on-default-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-tabs-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-tabs-on-active-state-layer-opacity","",i.opacity24),onColor:t.extend("--ftds-tabs-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-tabs-on-state-layer-color","",l.contentActionPrimary),onActiveTabIndicatorColor:t.extend("--ftds-tabs-on-active-tab-indicator-color","",l.contentActionPrimary),iconOnlyHorizontalPadding:t.extend("--ftds-tabs-icon-only-horizontal-padding","",i.spacing4),iconOnlyVerticalPadding:t.extend("--ftds-tabs-icon-only-vertical-padding","",i.spacing4),alertTopPadding:t.extend("--ftds-tabs-alert-top-padding","",i.spacing1),alertRightPadding:t.extend("--ftds-tabs-alert-right-padding","",i.spacing05),focusOutlineWidth:t.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-tabs-focus-focus-ring-color","",l.borderActionFocusRing)};var Pg={largeFieldHorizontalPadding:t.extend("--ftds-text-input-large-field-horizontal-padding","",i.spacing4),largeFieldHorizontalGap:t.extend("--ftds-text-input-large-field-horizontal-gap","",i.spacing3),largeFieldVerticalGap:t.extend("--ftds-text-input-large-field-vertical-gap","",i.spacing05),largeFieldHeight:t.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:t.extend("--ftds-text-input-large-field-icon-size","",i.iconSize3),mediumFieldHorizontalPadding:t.extend("--ftds-text-input-medium-field-horizontal-padding","",i.spacing4),mediumFieldHorizontalGap:t.extend("--ftds-text-input-medium-field-horizontal-gap","",i.spacing3),mediumFieldVerticalGap:t.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:t.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:t.extend("--ftds-text-input-medium-field-icon-size","",i.iconSize3),helperHorizontalPadding:t.extend("--ftds-text-input-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-input-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-input-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-input-border-radius","",i.borderRadiusS),backgroundColor:t.extend("--ftds-text-input-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-input-content-value-color","",l.contentGlobalPrimary),trailingIconColor:t.extend("--ftds-text-input-trailing-icon-color","",l.contentGlobalSubtle),labelColor:t.extend("--ftds-text-input-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-input-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-input-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-input-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-input-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-input-error-helper-icon-color","",l.contentErrorIconOnly),warningBorderColor:t.extend("--ftds-text-input-warning-border-color","",l.borderWarningPrimary),warningHelperTextColor:t.extend("--ftds-text-input-warning-helper-text-color","",l.contentWarningPrimary),warningHelperIconColor:t.extend("--ftds-text-input-warning-helper-icon-color","",l.contentWarningIconOnly),warningBorderWidth:t.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:t.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-text-input-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-input-disabled-component-opacity","",i.opacity40)};var Bg={backgroundColor:t.extend("--ftds-text-area-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-area-content-value-color","",l.contentGlobalPrimary),labelColor:t.extend("--ftds-text-area-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-area-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-area-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-area-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-area-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-area-error-helper-icon-color","",l.contentErrorIconOnly),focusFocusRingColor:t.extend("--ftds-text-area-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-area-disabled-component-opacity","",i.opacity40),fieldHorizontalLeftPadding:t.extend("--ftds-text-area-field-horizontal-left-padding","",i.spacing4),fieldHorizontalGap:t.extend("--ftds-text-area-field-horizontal-gap","",i.spacing3),fieldVerticalGap:t.extend("--ftds-text-area-field-vertical-gap","",i.spacing05),fieldMinHeight:t.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:t.extend("--ftds-text-area-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-area-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-area-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-area-border-radius","",i.borderRadiusS)};var Wg={height:t.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:t.extend("--ftds-floating-menu-horizontal-padding","",i.spacing4),verticalPadding:t.extend("--ftds-floating-menu-vertical-padding","",i.spacing2),offIconColor:t.extend("--ftds-floating-menu-off-icon-color","",l.contentGlobalPrimary),offColor:t.extend("--ftds-floating-menu-off-color","",l.contentGlobalPrimary),onColor:t.extend("--ftds-floating-menu-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-floating-menu-on-state-layer-color","",l.contentActionPrimary),gap:t.extend("--ftds-floating-menu-gap","",i.spacing3),focusFocusRingColor:t.extend("--ftds-floating-menu-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:t.extend("--ftds-floating-menu-focus-state-layer-opacity","",i.opacity24),hoverStateLayerOpacity:t.extend("--ftds-floating-menu-hover-state-layer-opacity","",i.opacity8),activeStateLayerOpacity:t.extend("--ftds-floating-menu-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-floating-menu-disabled-component-opacity","",i.opacity40),iconSize:t.extend("--ftds-floating-menu-icon-size","",i.iconSize3),backgroundColor:t.extend("--ftds-floating-menu-background-color","",l.backgroundGlobalOnSurface),shadow:t.extend("--ftds-floating-menu-shadow","",i.shadowElevation02),multiselectCheckedStateLayerColor:t.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",l.contentActionPrimary),multiselectCheckedColor:t.extend("--ftds-floating-menu-multiselect-checked-color","",l.contentGlobalPrimary),multiselectCheckedIconColor:t.extend("--ftds-floating-menu-multiselect-checked-icon-color","",l.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",i.opacity8),multiselectCheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",i.opacity16),multiselectCheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",i.opacity24),multiselectIndeterminatedStateLayerColor:t.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",l.contentActionPrimary),multiselectIndeterminatedColor:t.extend("--ftds-floating-menu-multiselect-indeterminated-color","",l.contentGlobalPrimary),multiselectIndeterminatedIconColor:t.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",l.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",i.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",i.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",i.opacity24),multiselectUncheckedStateLayerColor:t.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",l.contentGlobalPrimary),multiselectUncheckedColor:t.extend("--ftds-floating-menu-multiselect-unchecked-color","",l.contentGlobalPrimary),multiselectUncheckedIconColor:t.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",l.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",i.opacity0),multiselectUncheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",i.opacity8),multiselectUncheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",i.opacity16),selectAllCheckedStateLayerColor:t.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",l.contentActionPrimary),selectAllCheckedColor:t.extend("--ftds-floating-menu-select-all-checked-color","",l.contentGlobalPrimary),selectAllCheckedIconColor:t.extend("--ftds-floating-menu-select-all-checked-icon-color","",l.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",i.opacity0),selectAllCheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",i.opacity16),selectAllCheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",i.opacity24),selectAllIndeterminatedStateLayerColor:t.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",l.contentGlobalPrimary),selectAllIndeterminatedColor:t.extend("--ftds-floating-menu-select-all-indeterminated-color","",l.contentGlobalPrimary),selectAllIndeterminatedIconColor:t.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",l.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",i.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",i.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",i.opacity16),selectAllUncheckedStateLayerColor:t.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",l.contentGlobalPrimary),selectAllUncheckedColor:t.extend("--ftds-floating-menu-select-all-unchecked-color","",l.contentGlobalPrimary),selectAllUncheckedIconColor:t.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",l.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",i.opacity0),selectAllUncheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",i.opacity8),selectAllUncheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",i.opacity16),defaultUncheckedStateLayerColor:t.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",l.contentGlobalPrimary),defaultUncheckedColor:t.extend("--ftds-floating-menu-default-unchecked-color","",l.contentGlobalPrimary),defaultUncheckedIconColor:t.extend("--ftds-floating-menu-default-unchecked-icon-color","",l.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",i.opacity0),defaultUncheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",i.opacity8),defaultUncheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",i.opacity16),defaultCheckedStateLayerColor:t.extend("--ftds-floating-menu-default-checked-state-layer-color","",l.contentActionPrimary),defaultCheckedColor:t.extend("--ftds-floating-menu-default-checked-color","",l.contentActionPrimary),defaultCheckedIconColor:t.extend("--ftds-floating-menu-default-checked-icon-color","",l.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",i.opacity8),defaultCheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",i.opacity16),defaultCheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",i.opacity24)};var qg={menuVerticalGap:t.extend("--ftds-combobox-menu-vertical-gap","",i.spacing2),menuNewValuePaddingTop:t.extend("--ftds-combobox-menu-new-value-padding-top","",i.spacing4),menuNewValuePaddingBottom:t.extend("--ftds-combobox-menu-new-value-padding-bottom","",i.spacing1),menuNewValueHorizontalPadding:t.extend("--ftds-combobox-menu-new-value-horizontal-padding","",i.spacing4),menuNewValueLabelColor:t.extend("--ftds-combobox-menu-new-value-label-color","",l.contentGlobalSubtle),menuNewValueBorderColor:t.extend("--ftds-combobox-menu-new-value-border-color","",l.borderGlobalPrimary),menuNewValueBorderWidth:t.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuMessagePaddingTop:t.extend("--ftds-combobox-menu-message-padding-top","",i.spacing2),menuMessagePaddingBottom:t.extend("--ftds-combobox-menu-message-padding-bottom","",i.spacing2),menuMessageHorizontalPadding:t.extend("--ftds-combobox-menu-message-horizontal-padding","",i.spacing4),menuMessageLabelColor:t.extend("--ftds-combobox-menu-message-label-color","",l.contentGlobalSubtle),valuesChipBackgroundColor:t.extend("--ftds-combobox-values-chip-background-color","",l.backgroundGlobalOnSurface),valuesChipBorderColor:t.extend("--ftds-combobox-values-chip-border-color","",l.borderInputPrimary)};var ey={backgroundColor:t.extend("--ftds-popover-background-color","",l.backgroundGlobalOnSurface),horizontalPadding:t.extend("--ftds-popover-horizontal-padding","",i.spacing6),verticalPadding:t.extend("--ftds-popover-vertical-padding","",i.spacing6),titleColor:t.extend("--ftds-popover-title-color","",l.contentGlobalPrimary),bodyColor:t.extend("--ftds-popover-body-color","",l.contentGlobalSecondary),gap:t.extend("--ftds-popover-gap","",i.spacing2),borderRadius:t.extend("--ftds-popover-border-radius","",i.borderRadiusM),shadow:t.extend("--ftds-popover-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-popover-max-width","","SIZE","440px"),contentSectionVerticalGap:t.extend("--ftds-popover-content-section-vertical-gap","",i.spacing2),multiSectionVerticalGap:t.extend("--ftds-popover-multi-section-vertical-gap","",i.spacing6)};var ay={hoverStateLayerOpacity:t.extend("--ftds-collapsible-hover-state-layer-opacity","",i.opacity8),focusStateLayerOpacity:t.extend("--ftds-collapsible-focus-state-layer-opacity","",i.opacity8),focusOutlineWidth:t.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:t.extend("--ftds-collapsible-focus-focus-ring-color","",l.borderActionFocusRing),activeStateLayerOpacity:t.extend("--ftds-collapsible-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-collapsible-disabled-component-opacity","",i.opacity40),horizontalPadding:t.extend("--ftds-collapsible-horizontal-padding","",i.spacing4),verticalPadding:t.extend("--ftds-collapsible-vertical-padding","",i.spacing3),color:t.extend("--ftds-collapsible-color","",l.contentGlobalPrimary),stateLayerColor:t.extend("--ftds-collapsible-state-layer-color","",l.contentGlobalPrimary),backgroundColor:t.extend("--ftds-collapsible-background-color","",l.backgroundGlobalOnSurface),borderColor:t.extend("--ftds-collapsible-border-color","",l.borderGlobalSubtle),iconSize:t.extend("--ftds-collapsible-icon-size","",i.iconSize3)};var dy={groupHorizontalPadding:t.extend("--ftds-switch-group-horizontal-padding","",i.spacing1),groupVerticalPadding:t.extend("--ftds-switch-group-vertical-padding","",i.spacing1),groupGap:t.extend("--ftds-switch-group-gap","",i.spacing1),groupBackgroundColor:t.extend("--ftds-switch-group-background-color","",l.backgroundGlobalSurface),groupBorderColor:t.extend("--ftds-switch-group-border-color","",l.borderGlobalSubtle),groupBorderRadius:t.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:t.extend("--ftds-switch-label-horizontal-padding","",i.spacing2),labelVerticalPadding:t.extend("--ftds-switch-label-vertical-padding","",i.spacing1),offHoverStateLayerOpacity:t.extend("--ftds-switch-off-hover-state-layer-opacity","",i.opacity8),offFocusStateLayerOpacity:t.extend("--ftds-switch-off-focus-state-layer-opacity","",i.opacity8),offActiveStateLayerOpacity:t.extend("--ftds-switch-off-active-state-layer-opacity","",i.opacity16),offDisabledComponentOpacity:t.extend("--ftds-switch-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-switch-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-switch-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-switch-on-hover-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-switch-on-focus-state-layer-opacity","",i.opacity8),onActiveStateLayerOpacity:t.extend("--ftds-switch-on-active-state-layer-opacity","",i.opacity16),onDisabledComponentOpacity:t.extend("--ftds-switch-on-disabled-component-opacity","",i.opacity40),onColor:t.extend("--ftds-switch-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-switch-on-state-layer-color","",l.contentActionPrimary),iconHorizontalPadding:t.extend("--ftds-switch-icon-horizontal-padding","",i.spacing1),iconVerticalPadding:t.extend("--ftds-switch-icon-vertical-padding","",i.spacing1),focusOutlineWidth:t.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-switch-focus-focus-ring-color","",l.borderActionFocusRing),optionBorderRadius:t.extend("--ftds-switch-option-border-radius","",i.borderRadiusS)};var hy={color1Light:t.extend("--ftds-chart-1-light","for area color charts",i.colorBrand40),color1Base:t.extend("--ftds-chart-1-base","for line charts",i.colorBrand0),color2Light:t.extend("--ftds-chart-2-light","for area color charts",i.colorYellow60),color2Base:t.extend("--ftds-chart-2-base","for line charts",i.colorYellow100),color3Light:t.extend("--ftds-chart-3-light","",i.colorUltramarine40),color3Base:t.extend("--ftds-chart-3-base","",i.colorUltramarine70),color4Light:t.extend("--ftds-chart-4-light","",i.colorCyan50),color4Base:t.extend("--ftds-chart-4-base","",i.colorCyan100),color5Light:t.extend("--ftds-chart-5-light","",i.colorRed40),color5Base:t.extend("--ftds-chart-5-base","",i.colorRed60),color6Light:t.extend("--ftds-chart-6-light","",i.colorGreen40),color6Base:t.extend("--ftds-chart-6-base","",i.colorGreen70),color7Light:t.extend("--ftds-chart-7-light","",i.colorOrange70),color7Base:t.extend("--ftds-chart-7-base","",i.colorOrange100),color8Light:t.extend("--ftds-chart-8-light","",i.colorAvocado70),color8Base:t.extend("--ftds-chart-8-base","",i.colorAvocado200),color9Light:t.extend("--ftds-chart-9-light","",i.colorBrown50),color9Base:t.extend("--ftds-chart-9-base","",i.colorBrown200),color10Light:t.extend("--ftds-chart-10-light","",i.colorGray50),color10Base:t.extend("--ftds-chart-10-base","",i.colorGray80),monochrome10:t.extend("--ftds-chart-monochrome-10","",i.colorBrand10),monochrome20:t.extend("--ftds-chart-monochrome-20","",i.colorBrand20),monochrome30:t.extend("--ftds-chart-monochrome-30","",i.colorBrand40),monochrome40:t.extend("--ftds-chart-monochrome-40","",i.colorBrand60),monochrome50:t.extend("--ftds-chart-monochrome-50","",i.colorBrand0),monochrome60:t.extend("--ftds-chart-monochrome-60","",i.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",i.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",i.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",i.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",i.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",i.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",i.opacity48),scatterplotDatapointInitialHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",i.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",i.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",i.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",i.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",i.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",i.colorGray70),scatterplotDatapointHoverHoverRingColor:t.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",i.colorCyan200)};var by={color1IconColor:t.extend("--ftds-page-designer-1-icon-color","for area color charts",i.colorCyan0),color1ToolbarColor:t.extend("--ftds-page-designer-1-toolbar-color","for area color charts",i.colorCyan0),color2IconColor:t.extend("--ftds-page-designer-2-icon-color","for area color charts",i.colorBrand0),color2ToolbarColor:t.extend("--ftds-page-designer-2-toolbar-color","for area color charts",i.colorBrand0),color3IconColor:t.extend("--ftds-page-designer-3-icon-color","for area color charts",i.colorYellow200),color3ToolbarColor:t.extend("--ftds-page-designer-3-toolbar-color","for area color charts",i.colorYellow200),color4IconColor:t.extend("--ftds-page-designer-4-icon-color","for area color charts",i.colorUltramarine50),color4ToolbarColor:t.extend("--ftds-page-designer-4-toolbar-color","for area color charts",i.colorUltramarine50),color5IconColor:t.extend("--ftds-page-designer-5-icon-color","for area color charts",i.colorGreen0),color5ToolbarColor:t.extend("--ftds-page-designer-5-toolbar-color","for area color charts",i.colorGreen0),color6IconColor:t.extend("--ftds-page-designer-6-icon-color","for area color charts",i.colorOrange0),color6ToolbarColor:t.extend("--ftds-page-designer-6-toolbar-color","for area color charts",i.colorOrange0),color7IconColor:t.extend("--ftds-page-designer-7-icon-color","for area color charts",i.colorAvocado200),color7ToolbarColor:t.extend("--ftds-page-designer-7-toolbar-color","for area color charts",i.colorAvocado200),color8IconColor:t.extend("--ftds-page-designer-8-icon-color","for area color charts",i.colorBrown0),color8ToolbarColor:t.extend("--ftds-page-designer-8-toolbar-color","for area color charts",i.colorBrown0)};var Oy={borderWidth:t.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:t.extend("--ftds-notice-horizontal-padding","",i.spacing3),verticalPadding:t.extend("--ftds-notice-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-notice-border-radius","",i.borderRadiusS),gap:t.extend("--ftds-notice-gap","",i.spacing2),iconSize:t.extend("--ftds-notice-icon-size","",i.iconSize3),infoBackgroundColor:t.extend("--ftds-notice-info-background-color","",l.backgroundInfoSubtle),infoBorderColor:t.extend("--ftds-notice-info-border-color","",l.borderInfoSubtle),infoColor:t.extend("--ftds-notice-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notice-info-icon-color","",l.contentInfoIconOnly),warningBackgroundColor:t.extend("--ftds-notice-warning-background-color","",l.backgroundWarningSubtle),warningBorderColor:t.extend("--ftds-notice-warning-border-color","",l.borderWarningSubtle),warningColor:t.extend("--ftds-notice-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notice-warning-icon-color","",l.contentWarningIconOnly),errorBackgroundColor:t.extend("--ftds-notice-error-background-color","",l.backgroundErrorSubtle),errorBorderColor:t.extend("--ftds-notice-error-border-color","",l.borderErrorSubtle),errorColor:t.extend("--ftds-notice-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notice-error-icon-color","",l.contentErrorIconOnly),successBackgroundColor:t.extend("--ftds-notice-success-background-color","",l.backgroundSuccessSubtle),successBorderColor:t.extend("--ftds-notice-success-border-color","",l.borderSuccessSubtle),successColor:t.extend("--ftds-notice-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notice-success-icon-color","",l.contentSuccessIconOnly),denseHorizontalPadding:t.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:t.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:t.extend("--ftds-notice-dense-gap","",i.spacing1),denseIconSize:t.extend("--ftds-notice-dense-icon-size","",i.iconSize2),denseBorderWidth:t.create("--ftds-notice-dense-border-width","","SIZE","0")};var Ty={offHoverStateLayerOpacity:t.extend("--ftds-toggle-off-hover-state-layer-opacity","",i.opacity16),offFocusStateLayerOpacity:t.extend("--ftds-toggle-off-focus-state-layer-opacity","",i.opacity16),offActiveStateLayerOpacity:t.extend("--ftds-toggle-off-active-state-layer-opacity","",i.opacity24),offDisabledComponentOpacity:t.extend("--ftds-toggle-off-disabled-component-opacity","",i.opacity40),offBackgroundColor:t.extend("--ftds-toggle-off-background-color","",l.contentGlobalSubtle),offIconColor:t.extend("--ftds-toggle-off-icon-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-toggle-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-toggle-on-hover-state-layer-opacity","",i.opacity16),onFocusStateLayerOpacity:t.extend("--ftds-toggle-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-toggle-on-active-state-layer-opacity","",i.opacity24),onDisabledComponentOpacity:t.extend("--ftds-toggle-on-disabled-component-opacity","",i.opacity40),onBackgroundColor:t.extend("--ftds-toggle-on-background-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-toggle-on-state-layer-color","",l.contentActionPrimary),onIconColor:t.extend("--ftds-toggle-on-icon-color","",l.contentActionPrimary),color:t.extend("--ftds-toggle-color","",l.contentGlobalPrimary),focusFocusRingColor:t.extend("--ftds-toggle-focus-focus-ring-color","",l.borderActionFocusRing),gap:t.extend("--ftds-toggle-gap","",i.spacing3)};var Ny={iconSize:t.extend("--ftds-notification-icon-size","",i.iconSize4),leftPadding:t.extend("--ftds-notification-left-padding","",i.spacing5),rightPadding:t.extend("--ftds-notification-right-padding","",i.spacing4),verticalPadding:t.extend("--ftds-notification-vertical-padding","",i.spacing3),infoBackgroundColor:t.extend("--ftds-notification-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-notification-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notification-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-notification-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-notification-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-notification-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notification-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-notification-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-notification-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-notification-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notification-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-notification-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-notification-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-notification-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notification-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-notification-error-border-color","",l.borderErrorSubtle),borderRadius:t.extend("--ftds-notification-border-radius","",i.borderRadiusPill),borderWidth:t.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:t.extend("--ftds-notification-leading-gap","",i.spacing2),trailingGap:t.extend("--ftds-notification-trailing-gap","",i.spacing8)};var Uy={horizontalPadding:t.extend("--ftds-tooltip-horizontal-padding","",i.spacing2),verticalPadding:t.extend("--ftds-tooltip-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-tooltip-border-radius","",i.borderRadiusS),color:t.extend("--ftds-tooltip-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-tooltip-background-color","",l.contentGlobalPrimary),backgroundOpacity:t.extend("--ftds-tooltip-background-opacity","",i.opacity80),shadow:t.extend("--ftds-tooltip-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:t.extend("--ftds-tooltip-gap","",i.spacing05)};var $y={verticalPadding:t.extend("--ftds-reorderable-list-vertical-padding","",i.spacing4),gap:t.extend("--ftds-reorderable-list-gap","",i.spacing1),borderRadius:t.extend("--ftds-reorderable-list-border-radius","",i.borderRadiusM),reorderableItemTitleMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",i.spacing6),reorderableItemTitleColor:t.extend("--ftds-reorderable-list-reorderable-item-title-color","",l.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",i.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",i.spacing2),reorderableItemRightButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",i.spacing2),reorderableItemUsersCountColor:t.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",l.contentGlobalPrimary),reorderableItemUsersCountMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",i.spacing6),reorderableItemBackgroundColor:t.extend("--ftds-reorderable-list-reorderable-item-background-color","",l.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",i.spacing1),reorderableItemWarningMessageColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",l.contentWarningPrimary),reorderableItemWarningMessageIconColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",l.contentWarningIconOnly),reorderableItemGripColor:t.extend("--ftds-reorderable-list-reorderable-item-grip-color","",l.contentGlobalSecondary),reorderableItemGripOpacity:t.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",i.opacity48),boxShadow:t.extend("--ftds-reorderable-list-box-shadow","",i.shadowElevation01),borderWidth:t.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:t.extend("--ftds-reorderable-list-reorderable-items-gap","",i.spacing2),leftPadding:t.extend("--ftds-reorderable-list-left-padding","",i.spacing2),rightPadding:t.extend("--ftds-reorderable-list-right-padding","",i.spacing6),borderColor:t.extend("--ftds-reorderable-list-border-color","",l.borderGlobalPrimary),backgroundColor:t.extend("--ftds-reorderable-list-background-color","",l.backgroundGlobalOnSurfaceDark)};var Ky={menuHorizontalPadding:t.extend("--ftds-date-range-picker-menu-horizontal-padding","",i.spacing4),menuVerticalPadding:t.extend("--ftds-date-range-picker-menu-vertical-padding","",i.spacing4),menuVerticalGap:t.extend("--ftds-date-range-picker-menu-vertical-gap","",i.spacing4),menuButtonsVerticalGap:t.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",i.spacing2)};var Yi;(function(o){o.brand="brand",o.neutral="neutral",o.info="info",o.success="success",o.warning="warning",o.error="error"})(Yi||(Yi={}));var Qi;(function(o){o.large="large",o.medium="medium",o.small="small"})(Qi||(Qi={}));var ht=x(F());function vc(o,e){let r=No[o];return ht.css`
184
- ${e?(0,ht.unsafeCSS)(e):ht.css`.ftds-typography--${(0,ht.unsafeCSS)(o)}`} {
182
+ `}};Be.styles=[Ei,Ai,wi,Ii,Ir,Ti,Ri,Li,ki,_i,Ni];Pi([(0,Po.property)()],Be.prototype,"element",void 0);Pi([(0,Po.property)()],Be.prototype,"variant",void 0);var Mo=x(j()),rs=x(w());var Tr;(function(o){o.display="display",o.title1="title-1",o.title2="title-2",o.title3="title-3",o.body1regular="body-1-regular",o.body1medium="body-1-medium",o.body1semibold="body-1-semibold",o.body2regular="body-2-regular",o.body2medium="body-2-medium",o.body2semibold="body-2-semibold",o.caption1medium="caption-1-medium",o.caption1semibold="caption-1-semibold",o.caption2medium="caption-2-medium",o.caption2semibold="caption-2-semibold",o.caption2bold="caption-2-bold"})(Tr||(Tr={}));var ge=x(F(),1),Ee=o=>typeof o=="string"?(0,ge.unsafeCSS)(o):o,t=class{static create(e,r,n,a){let s=d=>Ee(d??a),c=ge.css`var(${Ee(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>Mi(c,d??s(a)),c.get=d=>ge.css`var(${Ee(e)}, ${s(d)})`,c.breadcrumb=()=>[],c.lastResortDefaultValue=()=>a,c}static extend(e,r,n,a){let s=d=>n.get(d??a),c=ge.css`var(${Ee(e)}, ${s(a)})`;return c.name=e,c.description=r,c.category=n.category,c.fallbackVariable=n,c.defaultValue=a,c.defaultCssValue=s,c.set=d=>Mi(c,d??s(a)),c.get=d=>ge.css`var(${Ee(e)}, ${s(d)})`,c.breadcrumb=()=>[n.name,...n.breadcrumb()],c.lastResortDefaultValue=()=>a??n.lastResortDefaultValue(),c}static external(e,r){let n=s=>e.defaultCssValue(s),a=ge.css`var(${Ee(e.name)}, ${n(e.defaultValue)})`;return a.name=e.name,a.category=e.category,a.fallbackVariable=e.fallbackVariable,a.defaultValue=e.defaultValue,a.context=r,a.defaultCssValue=n,a.set=s=>e.set(s),a.get=s=>ge.css`var(${Ee(e.name)}, ${n(s)})`,a.breadcrumb=()=>e.breadcrumb(),a.lastResortDefaultValue=()=>e.lastResortDefaultValue(),a}};function Mi(o,e){return Ee(`${o.name}: ${e}`)}var i={colorWhite:t.create("--ftds-color-white","","COLOR","#ffffff"),colorGray0:t.create("--ftds-color-gray-0","","COLOR","#71718e"),colorGray10:t.create("--ftds-color-gray-10","","COLOR","#fbfbfc"),colorGray20:t.create("--ftds-color-gray-20","","COLOR","#f2f2f5"),colorGray30:t.create("--ftds-color-gray-30","","COLOR","#e9e9ed"),colorGray40:t.create("--ftds-color-gray-40","","COLOR","#e0e0e6"),colorGray50:t.create("--ftds-color-gray-50","","COLOR","#cdcdd7"),colorGray60:t.create("--ftds-color-gray-60","","COLOR","#bbbbc9"),colorGray70:t.create("--ftds-color-gray-70","","COLOR","#a8a8ba"),colorGray80:t.create("--ftds-color-gray-80","","COLOR","#9696ab"),colorGray90:t.create("--ftds-color-gray-90","","COLOR","#83839d"),colorGray100:t.create("--ftds-color-gray-100","","COLOR","#62627c"),colorGray200:t.create("--ftds-color-gray-200","","COLOR","#545469"),colorGray300:t.create("--ftds-color-gray-300","","COLOR","#454557"),colorGray400:t.create("--ftds-color-gray-400","","COLOR","#363644"),colorGray500:t.create("--ftds-color-gray-500","","COLOR","#282832"),colorGray600:t.create("--ftds-color-gray-600","","COLOR","#19191f"),colorGray700:t.create("--ftds-color-gray-700","","COLOR","#0a0a0d"),colorBrand0:t.create("--ftds-color-brand-0","","COLOR","#9d207b"),colorBrand10:t.create("--ftds-color-brand-10","","COLOR","#f7edf4"),colorBrand20:t.create("--ftds-color-brand-20","","COLOR","#ebcfe4"),colorBrand30:t.create("--ftds-color-brand-30","","COLOR","#dfb2d3"),colorBrand40:t.create("--ftds-color-brand-40","","COLOR","#d395c2"),colorBrand50:t.create("--ftds-color-brand-50","","COLOR","#c778b1"),colorBrand60:t.create("--ftds-color-brand-60","","COLOR","#ba5ba1"),colorBrand70:t.create("--ftds-color-brand-70","","COLOR","#ae3e90"),colorBrand100:t.create("--ftds-color-brand-100","","COLOR","#8d1d6e"),colorBrand200:t.create("--ftds-color-brand-200","","COLOR","#78185e"),colorBrand300:t.create("--ftds-color-brand-300","","COLOR","#62144d"),colorBrand400:t.create("--ftds-color-brand-400","","COLOR","#4d103c"),colorBrand500:t.create("--ftds-color-brand-500","","COLOR","#380b2c"),colorBrand600:t.create("--ftds-color-brand-600","","COLOR","#23071b"),colorBrand700:t.create("--ftds-color-brand-700","","COLOR","#0d030b"),colorCyan0:t.create("--ftds-color-cyan-0","","COLOR","#0e98b4"),colorCyan10:t.create("--ftds-color-cyan-10","","COLOR","#ebf6f9"),colorCyan20:t.create("--ftds-color-cyan-20","","COLOR","#cbe9ef"),colorCyan30:t.create("--ftds-color-cyan-30","","COLOR","#acdbe5"),colorCyan40:t.create("--ftds-color-cyan-40","","COLOR","#8ccedb"),colorCyan50:t.create("--ftds-color-cyan-50","","COLOR","#6dc0d1"),colorCyan60:t.create("--ftds-color-cyan-60","","COLOR","#4db3c8"),colorCyan70:t.create("--ftds-color-cyan-70","","COLOR","#2ea5be"),colorCyan100:t.create("--ftds-color-cyan-100","","COLOR","#0c849c"),colorCyan200:t.create("--ftds-color-cyan-200","","COLOR","#0a7085"),colorCyan300:t.create("--ftds-color-cyan-300","","COLOR","#085c6d"),colorCyan400:t.create("--ftds-color-cyan-400","","COLOR","#074856"),colorCyan500:t.create("--ftds-color-cyan-500","","COLOR","#05343e"),colorCyan600:t.create("--ftds-color-cyan-600","","COLOR","#032127"),colorCyan700:t.create("--ftds-color-cyan-700","","COLOR","#010d0f"),colorGreen0:t.create("--ftds-color-green-0","","COLOR","#21a274"),colorGreen10:t.create("--ftds-color-green-10","","COLOR","#edf7f3"),colorGreen20:t.create("--ftds-color-green-20","","COLOR","#cfebe1"),colorGreen30:t.create("--ftds-color-green-30","","COLOR","#b2dfcf"),colorGreen40:t.create("--ftds-color-green-40","","COLOR","#95d3bd"),colorGreen50:t.create("--ftds-color-green-50","","COLOR","#78c7ab"),colorGreen60:t.create("--ftds-color-green-60","","COLOR","#5bba98"),colorGreen70:t.create("--ftds-color-green-70","","COLOR","#3eae86"),colorGreen100:t.create("--ftds-color-green-100","","COLOR","#1d8d65"),colorGreen200:t.create("--ftds-color-green-200","","COLOR","#187856"),colorGreen300:t.create("--ftds-color-green-300","","COLOR","#146246"),colorGreen400:t.create("--ftds-color-green-400","","COLOR","#104d37"),colorGreen500:t.create("--ftds-color-green-500","","COLOR","#0b3828"),colorGreen600:t.create("--ftds-color-green-600","","COLOR","#072319"),colorGreen700:t.create("--ftds-color-green-700","","COLOR","#030d0a"),colorOrange0:t.create("--ftds-color-orange-0","","COLOR","#F2700D"),colorOrange10:t.create("--ftds-color-orange-10","","COLOR","#FFF7EB"),colorOrange20:t.create("--ftds-color-orange-20","","COLOR","#FFEDD6"),colorOrange30:t.create("--ftds-color-orange-30","","COLOR","#FFDDB2"),colorOrange40:t.create("--ftds-color-orange-40","","COLOR","#FECB90"),colorOrange50:t.create("--ftds-color-orange-50","","COLOR","#FCB76E"),colorOrange60:t.create("--ftds-color-orange-60","","COLOR","#F9A34D"),colorOrange70:t.create("--ftds-color-orange-70","","COLOR","#F68B2C"),colorOrange100:t.create("--ftds-color-orange-100","","COLOR","#D35909"),colorOrange200:t.create("--ftds-color-orange-200","","COLOR","#B74706"),colorOrange300:t.create("--ftds-color-orange-300","","COLOR","#913503"),colorOrange400:t.create("--ftds-color-orange-400","","COLOR","#6F2601"),colorOrange500:t.create("--ftds-color-orange-500","","COLOR","#4D1800"),colorOrange600:t.create("--ftds-color-orange-600","","COLOR","#330F00"),colorOrange700:t.create("--ftds-color-orange-700","","COLOR","#140600"),colorRed0:t.create("--ftds-color-red-0","","COLOR","#b40e2c"),colorRed10:t.create("--ftds-color-red-10","","COLOR","#f9ebed"),colorRed20:t.create("--ftds-color-red-20","","COLOR","#efcbd2"),colorRed30:t.create("--ftds-color-red-30","","COLOR","#e5acb6"),colorRed40:t.create("--ftds-color-red-40","","COLOR","#db8c9b"),colorRed50:t.create("--ftds-color-red-50","","COLOR","#d16d7f"),colorRed60:t.create("--ftds-color-red-60","","COLOR","#c84d63"),colorRed70:t.create("--ftds-color-red-70","","COLOR","#be2e48"),colorRed100:t.create("--ftds-color-red-100","","COLOR","#9c0c26"),colorRed200:t.create("--ftds-color-red-200","","COLOR","#850a20"),colorRed300:t.create("--ftds-color-red-300","","COLOR","#6d081b"),colorRed400:t.create("--ftds-color-red-400","","COLOR","#560715"),colorRed500:t.create("--ftds-color-red-500","","COLOR","#3e050f"),colorRed600:t.create("--ftds-color-red-600","","COLOR","#270309"),colorRed700:t.create("--ftds-color-red-700","","COLOR","#0f0104"),colorYellow0:t.create("--ftds-color-yellow-0","","COLOR","#E4C00C"),colorYellow10:t.create("--ftds-color-yellow-10","","COLOR","#fefae9"),colorYellow20:t.create("--ftds-color-yellow-20","","COLOR","#fcf4ca"),colorYellow30:t.create("--ftds-color-yellow-30","","COLOR","#faedaa"),colorYellow40:t.create("--ftds-color-yellow-40","","COLOR","#f9e78b"),colorYellow50:t.create("--ftds-color-yellow-50","","COLOR","#f7e06b"),colorYellow60:t.create("--ftds-color-yellow-60","","COLOR","#F4D63E"),colorYellow70:t.create("--ftds-color-yellow-70","","COLOR","#F3CE16"),colorYellow100:t.create("--ftds-color-yellow-100","","COLOR","#d3b10b"),colorYellow200:t.create("--ftds-color-yellow-200","","COLOR","#b3970a"),colorYellow300:t.create("--ftds-color-yellow-300","","COLOR","#947c08"),colorYellow400:t.create("--ftds-color-yellow-400","","COLOR","#746206"),colorYellow500:t.create("--ftds-color-yellow-500","","COLOR","#554705"),colorYellow600:t.create("--ftds-color-yellow-600","","COLOR","#352d03"),colorYellow700:t.create("--ftds-color-yellow-700","","COLOR","#161201"),colorUltramarine0:t.create("--ftds-color-ultramarine-0","","COLOR","#3C19E5"),colorUltramarine10:t.create("--ftds-color-ultramarine-10","","COLOR","#EDEAFD"),colorUltramarine20:t.create("--ftds-color-ultramarine-20","","COLOR","#D4CCF9"),colorUltramarine30:t.create("--ftds-color-ultramarine-30","","COLOR","#BBAFF6"),colorUltramarine40:t.create("--ftds-color-ultramarine-40","","COLOR","#A191F3"),colorUltramarine50:t.create("--ftds-color-ultramarine-50","","COLOR","#8873EF"),colorUltramarine60:t.create("--ftds-color-ultramarine-60","","COLOR","#6F55EC"),colorUltramarine70:t.create("--ftds-color-ultramarine-70","","COLOR","#5537E8"),colorUltramarine100:t.create("--ftds-color-ultramarine-100","","COLOR","#3416C7"),colorUltramarine200:t.create("--ftds-color-ultramarine-200","","COLOR","#2C13A9"),colorUltramarine300:t.create("--ftds-color-ultramarine-300","","COLOR","#250F8C"),colorUltramarine400:t.create("--ftds-color-ultramarine-400","","COLOR","#1D0C6E"),colorUltramarine500:t.create("--ftds-color-ultramarine-500","","COLOR","#150950"),colorUltramarine600:t.create("--ftds-color-ultramarine-600","","COLOR","#0D0532"),colorUltramarine700:t.create("--ftds-color-ultramarine-700","","COLOR","#050215"),colorAvocado0:t.create("--ftds-color-avocado-0","","COLOR","#98BD28"),colorAvocado10:t.create("--ftds-color-avocado-10","","COLOR","#F6F9EC"),colorAvocado20:t.create("--ftds-color-avocado-20","","COLOR","#E8F0D0"),colorAvocado30:t.create("--ftds-color-avocado-30","","COLOR","#DBE8B4"),colorAvocado40:t.create("--ftds-color-avocado-40","","COLOR","#CEDF98"),colorAvocado50:t.create("--ftds-color-avocado-50","","COLOR","#C0D77C"),colorAvocado60:t.create("--ftds-color-avocado-60","","COLOR","#B3CE60"),colorAvocado70:t.create("--ftds-color-avocado-70","","COLOR","#A5C644"),colorAvocado100:t.create("--ftds-color-avocado-100","","COLOR","#84A423"),colorAvocado200:t.create("--ftds-color-avocado-200","","COLOR","#708C1E"),colorAvocado300:t.create("--ftds-color-avocado-300","","COLOR","#5D7318"),colorAvocado400:t.create("--ftds-color-avocado-400","","COLOR","#495B13"),colorAvocado500:t.create("--ftds-color-avocado-500","","COLOR","#35420E"),colorAvocado600:t.create("--ftds-color-avocado-600","","COLOR","#212A09"),colorAvocado700:t.create("--ftds-color-avocado-700","","COLOR","#0E1104"),colorBrown0:t.create("--ftds-color-brown-0","","COLOR","#B26F4D"),colorBrown10:t.create("--ftds-color-brown-10","","COLOR","#F8F2EF"),colorBrown20:t.create("--ftds-color-brown-20","","COLOR","#EEDFD8"),colorBrown30:t.create("--ftds-color-brown-30","","COLOR","#E4CDC1"),colorBrown40:t.create("--ftds-color-brown-40","","COLOR","#DABAAA"),colorBrown50:t.create("--ftds-color-brown-50","","COLOR","#D0A792"),colorBrown60:t.create("--ftds-color-brown-60","","COLOR","#C6947B"),colorBrown70:t.create("--ftds-color-brown-70","","COLOR","#BC8264"),colorBrown100:t.create("--ftds-color-brown-100","","COLOR","#9B6143"),colorBrown200:t.create("--ftds-color-brown-200","","COLOR","#845239"),colorBrown300:t.create("--ftds-color-brown-300","","COLOR","#6D442F"),colorBrown400:t.create("--ftds-color-brown-400","","COLOR","#553525"),colorBrown500:t.create("--ftds-color-brown-500","","COLOR","#3E271B"),colorBrown600:t.create("--ftds-color-brown-600","","COLOR","#271811"),colorBrown700:t.create("--ftds-color-brown-700","","COLOR","#100A07"),spacing1:t.create("--ftds-spacing-1","","SIZE","0.25rem"),spacing2:t.create("--ftds-spacing-2","","SIZE","calc(0.25rem*2)"),spacing3:t.create("--ftds-spacing-3","","SIZE","calc(0.25rem*3)"),spacing4:t.create("--ftds-spacing-4","","SIZE","calc(0.25rem*4)"),spacing5:t.create("--ftds-spacing-5","","SIZE","calc(0.25rem*5)"),spacing6:t.create("--ftds-spacing-6","","SIZE","calc(0.25rem*6)"),spacing8:t.create("--ftds-spacing-8","","SIZE","calc(0.25rem*8)"),spacing10:t.create("--ftds-spacing-10","","SIZE","calc(0.25rem*10)"),spacing12:t.create("--ftds-spacing-12","","SIZE","calc(0.25rem*12)"),spacing16:t.create("--ftds-spacing-16","","SIZE","calc(0.25rem*16)"),spacing20:t.create("--ftds-spacing-20","","SIZE","calc(0.25rem*20)"),spacing24:t.create("--ftds-spacing-24","","SIZE","calc(0.25rem*24)"),spacing28:t.create("--ftds-spacing-28","","SIZE","calc(0.25rem*28)"),spacing32:t.create("--ftds-spacing-32","","SIZE","calc(0.25rem*32)"),spacing05:t.create("--ftds-spacing-0-5","","SIZE","calc(0.25rem*0.5)"),borderRadiusS:t.create("--ftds-border-radius-s","","SIZE","4px"),borderRadiusM:t.create("--ftds-border-radius-m","","SIZE","8px"),borderRadiusL:t.create("--ftds-border-radius-l","","SIZE","12px"),borderRadiusXl:t.create("--ftds-border-radius-xl","","SIZE","16px"),borderRadiusPill:t.create("--ftds-border-radius-pill","","SIZE","999px"),borderRadiusRound:t.create("--ftds-border-radius-round","","SIZE","50%"),iconSize1:t.create("--ftds-icon-size-1","","SIZE","0.75rem"),iconSize2:t.create("--ftds-icon-size-2","","SIZE","1rem"),iconSize3:t.create("--ftds-icon-size-3","","SIZE","1.25rem"),iconSize4:t.create("--ftds-icon-size-4","","SIZE","1.5rem"),iconSize5:t.create("--ftds-icon-size-5","","SIZE","2rem"),iconSize6:t.create("--ftds-icon-size-6","","SIZE","3rem"),opacity0:t.create("--ftds-opacity-0","","NUMBER","0"),opacity4:t.create("--ftds-opacity-4","","NUMBER","0.04"),opacity6:t.create("--ftds-opacity-6","","NUMBER","0.06"),opacity8:t.create("--ftds-opacity-8","","NUMBER","0.08"),opacity12:t.create("--ftds-opacity-12","","NUMBER","0.12"),opacity16:t.create("--ftds-opacity-16","","NUMBER","0.16"),opacity24:t.create("--ftds-opacity-24","","NUMBER","0.24"),opacity32:t.create("--ftds-opacity-32","","NUMBER","0.32"),opacity40:t.create("--ftds-opacity-40","","NUMBER","0.4"),opacity48:t.create("--ftds-opacity-48","","NUMBER","0.48"),opacity80:t.create("--ftds-opacity-80","","NUMBER","0.8"),shadowElevation01:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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:t.create("--ftds-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)")},Fi={fontFamily:t.create("--ftds-typography-display-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-display-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-display-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-display-font-size","","SIZE","2.5rem"),letterSpacing:t.create("--ftds-typography-display-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-display-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-display-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-display-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-display-text-case","","UNKNOWN","none")},Ui={fontFamily:t.create("--ftds-typography-title-1-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-1-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-title-1-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-1-font-size","","SIZE","1.5rem"),letterSpacing:t.create("--ftds-typography-title-1-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-1-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-1-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-1-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-1-text-case","","UNKNOWN","none")},Bi={fontFamily:t.create("--ftds-typography-title-2-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-2-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-2-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-2-font-size","","SIZE","1.25rem"),letterSpacing:t.create("--ftds-typography-title-2-letter-spacing","","SIZE","-0.02em"),paragraphSpacing:t.create("--ftds-typography-title-2-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-2-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-2-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-2-text-case","","UNKNOWN","none")},Hi={fontFamily:t.create("--ftds-typography-title-3-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-title-3-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-title-3-line-height","","SIZE","1.2"),fontSize:t.create("--ftds-typography-title-3-font-size","","SIZE","1.125rem"),letterSpacing:t.create("--ftds-typography-title-3-letter-spacing","","SIZE","-0.01em"),paragraphSpacing:t.create("--ftds-typography-title-3-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-title-3-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-title-3-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-title-3-text-case","","UNKNOWN","none")},zi={fontFamily:t.create("--ftds-typography-body-1-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-1-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-regular-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-regular-text-case","","UNKNOWN","none")},Gi={fontFamily:t.create("--ftds-typography-body-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-1-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-medium-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-medium-text-case","","UNKNOWN","none")},Wi={fontFamily:t.create("--ftds-typography-body-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-1-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-1-semibold-font-size","","SIZE","1rem"),letterSpacing:t.create("--ftds-typography-body-1-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-1-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-1-semibold-text-case","","UNKNOWN","none")},$i={fontFamily:t.create("--ftds-typography-body-2-regular-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-regular-font-weight","","UNKNOWN","400"),lineHeight:t.create("--ftds-typography-body-2-regular-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-regular-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-regular-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-regular-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-regular-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-regular-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-regular-text-case","","UNKNOWN","none")},ji={fontFamily:t.create("--ftds-typography-body-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-medium-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-medium-text-case","","UNKNOWN","none")},Cc={fontFamily:t.create("--ftds-typography-body-2-medium-underline-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-medium-underline-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-body-2-medium-underline-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-medium-underline-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-medium-underline-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-medium-underline-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-medium-underline-paragraph-indent","","UNKNOWN","0"),textCase:t.create("--ftds-typography-body-2-medium-underline-text-case","","UNKNOWN","none"),textDecoration:t.create("--ftds-typography-body-2-medium-underline-text-decoration","","UNKNOWN","underline")},Vi={fontFamily:t.create("--ftds-typography-body-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-body-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-body-2-semibold-line-height","","SIZE","1.35"),fontSize:t.create("--ftds-typography-body-2-semibold-font-size","","SIZE","0.875rem"),letterSpacing:t.create("--ftds-typography-body-2-semibold-letter-spacing","","SIZE","normal"),paragraphSpacing:t.create("--ftds-typography-body-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-body-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-body-2-semibold-text-decoration","","UNKNOWN","none"),textCase:t.create("--ftds-typography-body-2-semibold-text-case","","UNKNOWN","none")},Ki={fontFamily:t.create("--ftds-typography-caption-1-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-1-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-medium-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-medium-text-decoration","","UNKNOWN","none")},Zi={fontFamily:t.create("--ftds-typography-caption-1-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-1-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-1-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-1-semibold-font-size","","SIZE","0.75rem"),letterSpacing:t.create("--ftds-typography-caption-1-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-1-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-1-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-1-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-1-semibold-text-decoration","","UNKNOWN","none")},qi={fontFamily:t.create("--ftds-typography-caption-2-medium-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-medium-font-weight","","UNKNOWN","500"),lineHeight:t.create("--ftds-typography-caption-2-medium-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-medium-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-medium-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-medium-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-medium-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-medium-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-medium-text-decoration","","UNKNOWN","none")},Yi={fontFamily:t.create("--ftds-typography-caption-2-semibold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-semibold-font-weight","","UNKNOWN","600"),lineHeight:t.create("--ftds-typography-caption-2-semibold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-semibold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-semibold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-semibold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-semibold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-semibold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-semibold-text-decoration","","UNKNOWN","none")},Qi={fontFamily:t.create("--ftds-typography-caption-2-bold-font-family","","UNKNOWN","Inter"),fontWeight:t.create("--ftds-typography-caption-2-bold-font-weight","","UNKNOWN","700"),lineHeight:t.create("--ftds-typography-caption-2-bold-line-height","","SIZE","1.3"),fontSize:t.create("--ftds-typography-caption-2-bold-font-size","","SIZE","0.6875rem"),letterSpacing:t.create("--ftds-typography-caption-2-bold-letter-spacing","","SIZE","normal"),textCase:t.create("--ftds-typography-caption-2-bold-text-case","","UNKNOWN","none"),paragraphSpacing:t.create("--ftds-typography-caption-2-bold-paragraph-spacing","","UNKNOWN","normal"),paragraphIndent:t.create("--ftds-typography-caption-2-bold-paragraph-indent","","UNKNOWN","0"),textDecoration:t.create("--ftds-typography-caption-2-bold-text-decoration","","UNKNOWN","none")},Do={display:Fi,"title-1":Ui,"title-2":Bi,"title-3":Hi,"body-1-regular":zi,"body-1-medium":Gi,"body-1-semibold":Wi,"body-2-regular":$i,"body-2-medium":ji,"body-2-medium-underline":Cc,"body-2-semibold":Vi,"caption-1-medium":Ki,"caption-1-semibold":Zi,"caption-2-medium":qi,"caption-2-semibold":Yi,"caption-2-bold":Qi};var l={backgroundActionPrimary:t.extend("--ftds-background-action-primary","Used as backgorund of primary action components.",i.colorBrand0),backgroundErrorSubtle:t.extend("--ftds-background-error-subtle","Used as background of subtle error components.",i.colorRed10),backgroundInfoSubtle:t.extend("--ftds-background-info-subtle","Used as background of subtle information components.",i.colorCyan10),backgroundWarningSubtle:t.extend("--ftds-background-warning-subtle","Used as background of subtle information components.",i.colorOrange10),backgroundSuccessSubtle:t.extend("--ftds-background-success-subtle","Used as background of subtle success components.",i.colorGreen10),backgroundGlobalSurface:t.extend("--ftds-background-global-surface","Used as app background.",i.colorWhite),backgroundGlobalOnSurface:t.extend("--ftds-background-global-on-surface","Used as background on element on the base background, like cards.",i.colorGray10),backgroundGlobalOnSurfaceDark:t.extend("--ftds-background-global-on-surface-dark","Used as background on element that need background separation.",i.colorGray30),contentActionPrimary:t.extend("--ftds-content-action-primary","Used on label of primary action on light surface.",i.colorBrand0),contentWarningPrimary:t.extend("--ftds-content-warning-primary","Used on label of warning messages on light surface.",i.colorOrange200),contentWarningIconOnly:t.extend("--ftds-content-warning-icon-only","Used on warning status icons alone",i.colorOrange0),contentErrorPrimary:t.extend("--ftds-content-error-primary","Used on label of error messages on light surface.",i.colorRed0),contentErrorIconOnly:t.extend("--ftds-content-error-icon-only","Used on error status icons alone",i.colorRed70),contentInfoPrimary:t.extend("--ftds-content-info-primary","Used on label of information messages on light surface.",i.colorCyan200),contentInfoIconOnly:t.extend("--ftds-content-info-icon-only","Used on info status icons alone",i.colorCyan0),contentSuccessPrimary:t.extend("--ftds-content-success-primary","Used on label of success messages on light surface.",i.colorGreen200),contentSuccessIconOnly:t.extend("--ftds-content-success-icon-only","Used on success status icons alone",i.colorGreen0),contentGlobalPrimary:t.extend("--ftds-content-global-primary","Used for main content on the page.",i.colorGray500),contentGlobalSecondary:t.extend("--ftds-content-global-secondary",`Used for secondary content, often paired with primary content.
183
+ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-content-global-subtle","Used for placeholder, unselected items in a tab component or breadcrumb.",i.colorGray0),contentGlobalOnColor:t.extend("--ftds-content-global-on-color","Used for content on a dominant color.",i.colorWhite),borderActionPrimary:t.extend("--ftds-border-action-primary","Used as border for primary action components.",i.colorBrand0),borderActionFocusRing:t.extend("--ftds-border-action-focus-ring","Focus ring is an additional border to indicate focus-visible state.",i.colorCyan0),borderWarningPrimary:t.extend("--ftds-border-warning-primary","Used as border for text fields in warning state and for buttons in warning color",i.colorOrange200),borderWarningSubtle:t.extend("--ftds-border-warning-subtle","Used as border for warning components.",i.colorOrange30),borderSuccessPrimary:t.extend("--ftds-border-success-primary","Used as border for success buttons.",i.colorGreen200),borderSuccessSubtle:t.extend("--ftds-border-success-subtle","Used as border for success components.",i.colorGreen30),borderErrorPrimary:t.extend("--ftds-border-error-primary","Used as border for text fields in error states.",i.colorRed0),borderErrorSubtle:t.extend("--ftds-border-error-subtle","Used as border for error components.",i.colorRed30),borderInfoPrimary:t.extend("--ftds-border-info-primary","Used as border for buttons in info color.",i.colorCyan200),borderInfoSubtle:t.extend("--ftds-border-info-subtle","Used as border for information components.",i.colorCyan30),borderGlobalPrimary:t.extend("--ftds-border-global-primary","Used as border for elements/areas filled with background.global.on-surface-dark",i.colorGray50),borderGlobalSecondary:t.extend("--ftds-border-global-secondary","Used as border for elements/areas filled with background.global.on-surface",i.colorGray40),borderGlobalSubtle:t.extend("--ftds-border-global-subtle","Used as border to deliminate an area/element filled with background.global.surface and separators.",i.colorGray30),borderInputPrimary:t.extend("--ftds-border-input-primary","Used as border for checkboxes and radio buttons",i.colorGray80),borderNeutralPrimary:t.extend("--ftds-border-neutral-primary","Used as border for neutral secondary buttons",i.colorGray200)};var Ah={largeHeight:t.create("--ftds-button-large-height","","SIZE","40px"),largeHorizontalPadding:t.extend("--ftds-button-large-horizontal-padding","",i.spacing4),largeGap:t.extend("--ftds-button-large-gap","",i.spacing2),largeBorderRadius:t.extend("--ftds-button-large-border-radius","",i.borderRadiusS),largeIconSize:t.extend("--ftds-button-large-icon-size","",i.iconSize3),largeBorderWidth:t.create("--ftds-button-large-border-width","","SIZE","1px"),largeFocusOutlineOffset:t.create("--ftds-button-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-button-large-focus-outline-width","","SIZE","2px"),largeIconOnlyWidth:t.create("--ftds-button-large-icon-only-width","","SIZE","40px"),mediumHeight:t.create("--ftds-button-medium-height","","SIZE","30px"),mediumHorizontalPadding:t.extend("--ftds-button-medium-horizontal-padding","",i.spacing3),mediumGap:t.extend("--ftds-button-medium-gap","",i.spacing2),mediumBorderRadius:t.extend("--ftds-button-medium-border-radius","",i.borderRadiusS),mediumIconSize:t.extend("--ftds-button-medium-icon-size","",i.iconSize2),mediumBorderWidth:t.create("--ftds-button-medium-border-width","","SIZE","1px"),mediumFocusOutlineOffset:t.create("--ftds-button-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-button-medium-focus-outline-width","","SIZE","2px"),mediumIconOnlyWidth:t.create("--ftds-button-medium-icon-only-width","","SIZE","30px"),smallHeight:t.create("--ftds-button-small-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-button-small-horizontal-padding","",i.spacing2),smallGap:t.extend("--ftds-button-small-gap","",i.spacing1),smallBorderRadius:t.extend("--ftds-button-small-border-radius","",i.borderRadiusS),smallIconSize:t.extend("--ftds-button-small-icon-size","",i.iconSize1),smallBorderWidth:t.create("--ftds-button-small-border-width","","SIZE","1px"),smallFocusOutlineOffset:t.create("--ftds-button-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-button-small-focus-outline-width","","SIZE","2px"),smallIconOnlyWidth:t.create("--ftds-button-small-icon-only-width","","SIZE","20px"),xSmallHeight:t.create("--ftds-button-x-small-height","","SIZE","16px"),xSmallIconSize:t.extend("--ftds-button-x-small-icon-size","",i.iconSize1),xSmallFocusOutlineOffset:t.create("--ftds-button-x-small-focus-outline-offset","","SIZE","2px"),xSmallFocusOutlineWidth:t.create("--ftds-button-x-small-focus-outline-width","","SIZE","2px"),xSmallIconOnlyWidth:t.create("--ftds-button-x-small-icon-only-width","","SIZE","16px"),roundBorderRadius:t.extend("--ftds-button-round-border-radius","",i.borderRadiusPill),primaryBrandBackgroundColor:t.extend("--ftds-button-primary-brand-background-color","",l.backgroundActionPrimary),primaryBrandColor:t.extend("--ftds-button-primary-brand-color","",l.contentGlobalOnColor),primaryBrandIconColor:t.extend("--ftds-button-primary-brand-icon-color","",l.contentGlobalOnColor),primaryBrandStateLayerColor:t.extend("--ftds-button-primary-brand-state-layer-color","",l.contentGlobalOnColor),primaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-primary-brand-hover-state-layer-opacity","",i.opacity16),primaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-primary-brand-focus-state-layer-opacity","",i.opacity16),primaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-primary-brand-active-state-layer-opacity","",i.opacity24),primaryBrandDisabledComponentOpacity:t.extend("--ftds-button-primary-brand-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-button-focus-focus-ring-color","",l.borderActionFocusRing),tertiaryBrandBackgroundColor:t.create("--ftds-button-tertiary-brand-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryBrandColor:t.extend("--ftds-button-tertiary-brand-color","",l.contentActionPrimary),tertiaryBrandIconColor:t.extend("--ftds-button-tertiary-brand-icon-color","",l.contentActionPrimary),tertiaryBrandStateLayerColor:t.extend("--ftds-button-tertiary-brand-state-layer-color","",l.contentActionPrimary),tertiaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-hover-state-layer-opacity","",i.opacity8),tertiaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-focus-state-layer-opacity","",i.opacity8),tertiaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-brand-active-state-layer-opacity","",i.opacity16),tertiaryBrandDisabledComponentOpacity:t.extend("--ftds-button-tertiary-brand-disabled-component-opacity","",i.opacity40),tertiaryInfoBackgroundColor:t.create("--ftds-button-tertiary-info-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryInfoColor:t.extend("--ftds-button-tertiary-info-color","",l.contentInfoPrimary),tertiaryInfoIconColor:t.extend("--ftds-button-tertiary-info-icon-color","",l.contentInfoPrimary),tertiaryInfoStateLayerColor:t.extend("--ftds-button-tertiary-info-state-layer-color","",l.contentInfoPrimary),tertiaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-info-focus-state-layer-opacity","",i.opacity8),tertiaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-info-hover-state-layer-opacity","",i.opacity8),tertiaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-info-active-state-layer-opacity","",i.opacity16),tertiaryInfoDisabledComponentOpacity:t.extend("--ftds-button-tertiary-info-disabled-component-opacity","",i.opacity40),tertiarySuccessBackgroundColor:t.create("--ftds-button-tertiary-success-background-color","","COLOR","rgba(0,0,0,0)"),tertiarySuccessColor:t.extend("--ftds-button-tertiary-success-color","",l.contentSuccessPrimary),tertiarySuccessIconColor:t.extend("--ftds-button-tertiary-success-icon-color","",l.contentSuccessPrimary),tertiarySuccessStateLayerColor:t.extend("--ftds-button-tertiary-success-state-layer-color","",l.contentSuccessPrimary),tertiarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-success-hover-state-layer-opacity","",i.opacity8),tertiarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-success-focus-state-layer-opacity","",i.opacity8),tertiarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-success-active-state-layer-opacity","",i.opacity16),tertiarySuccessDisabledComponentOpacity:t.extend("--ftds-button-tertiary-success-disabled-component-opacity","",i.opacity40),tertiaryWarningBackgroundColor:t.create("--ftds-button-tertiary-warning-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryWarningColor:t.extend("--ftds-button-tertiary-warning-color","",l.contentWarningPrimary),tertiaryWarningIconColor:t.extend("--ftds-button-tertiary-warning-icon-color","",l.contentWarningPrimary),tertiaryWarningStateLayerColor:t.extend("--ftds-button-tertiary-warning-state-layer-color","",l.contentWarningPrimary),tertiaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-hover-state-layer-opacity","",i.opacity8),tertiaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-focus-state-layer-opacity","",i.opacity8),tertiaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-warning-active-state-layer-opacity","",i.opacity16),tertiaryWarningDisabledComponentOpacity:t.extend("--ftds-button-tertiary-warning-disabled-component-opacity","",i.opacity40),tertiaryErrorBackgroundColor:t.create("--ftds-button-tertiary-error-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryErrorColor:t.extend("--ftds-button-tertiary-error-color","",l.contentErrorPrimary),tertiaryErrorIconColor:t.extend("--ftds-button-tertiary-error-icon-color","",l.contentErrorPrimary),tertiaryErrorStateLayerColor:t.extend("--ftds-button-tertiary-error-state-layer-color","",l.contentErrorPrimary),tertiaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-error-hover-state-layer-opacity","",i.opacity8),tertiaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-error-focus-state-layer-opacity","",i.opacity8),tertiaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-error-active-state-layer-opacity","",i.opacity16),tertiaryErrorDisabledComponentOpacity:t.extend("--ftds-button-tertiary-error-disabled-component-opacity","",i.opacity40),tertiaryNeutralBackgroundColor:t.create("--ftds-button-tertiary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),tertiaryNeutralIconColor:t.extend("--ftds-button-tertiary-neutral-icon-color","",l.contentGlobalSecondary),tertiaryNeutralColor:t.extend("--ftds-button-tertiary-neutral-color","",l.contentGlobalSecondary),tertiaryNeutralStateLayerColor:t.extend("--ftds-button-tertiary-neutral-state-layer-color","",l.contentGlobalSecondary),tertiaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-hover-state-layer-opacity","",i.opacity8),tertiaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-focus-state-layer-opacity","",i.opacity8),tertiaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-tertiary-neutral-active-state-layer-opacity","",i.opacity16),tertiaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-tertiary-neutral-disabled-component-opacity","",i.opacity40),secondaryBrandBackgroundColor:t.create("--ftds-button-secondary-brand-background-color","","COLOR","rgba(0,0,0,0)"),secondaryBrandColor:t.extend("--ftds-button-secondary-brand-color","",l.contentActionPrimary),secondaryBrandIconColor:t.extend("--ftds-button-secondary-brand-icon-color","",l.contentActionPrimary),secondaryBrandStateLayerColor:t.extend("--ftds-button-secondary-brand-state-layer-color","",l.contentActionPrimary),secondaryBrandHoverStateLayerOpacity:t.extend("--ftds-button-secondary-brand-hover-state-layer-opacity","",i.opacity8),secondaryBrandFocusStateLayerOpacity:t.extend("--ftds-button-secondary-brand-focus-state-layer-opacity","",i.opacity8),secondaryBrandActiveStateLayerOpacity:t.extend("--ftds-button-secondary-brand-active-state-layer-opacity","",i.opacity16),secondaryBrandDisabledComponentOpacity:t.extend("--ftds-button-secondary-brand-disabled-component-opacity","",i.opacity40),secondaryBrandBorderColor:t.extend("--ftds-button-secondary-brand-border-color","",l.borderActionPrimary),secondaryNeutralHoverStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-hover-state-layer-opacity","",i.opacity8),secondaryNeutralFocusStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-focus-state-layer-opacity","",i.opacity8),secondaryNeutralActiveStateLayerOpacity:t.extend("--ftds-button-secondary-neutral-active-state-layer-opacity","",i.opacity16),secondaryNeutralDisabledComponentOpacity:t.extend("--ftds-button-secondary-neutral-disabled-component-opacity","",i.opacity40),secondaryNeutralBackgroundColor:t.create("--ftds-button-secondary-neutral-background-color","","COLOR","rgba(0,0,0,0)"),secondaryNeutralColor:t.extend("--ftds-button-secondary-neutral-color","",l.contentGlobalSecondary),secondaryNeutralIconColor:t.extend("--ftds-button-secondary-neutral-icon-color","",l.contentGlobalSecondary),secondaryNeutralStateLayerColor:t.extend("--ftds-button-secondary-neutral-state-layer-color","",l.contentGlobalSecondary),secondaryNeutralBorderColor:t.extend("--ftds-button-secondary-neutral-border-color","",l.borderNeutralPrimary),secondaryInfoHoverStateLayerOpacity:t.extend("--ftds-button-secondary-info-hover-state-layer-opacity","",i.opacity8),secondaryInfoFocusStateLayerOpacity:t.extend("--ftds-button-secondary-info-focus-state-layer-opacity","",i.opacity8),secondaryInfoActiveStateLayerOpacity:t.extend("--ftds-button-secondary-info-active-state-layer-opacity","",i.opacity16),secondaryInfoDisabledComponentOpacity:t.extend("--ftds-button-secondary-info-disabled-component-opacity","",i.opacity40),secondaryInfoBackgroundColor:t.create("--ftds-button-secondary-info-background-color","","COLOR","rgba(0,0,0,0)"),secondaryInfoBorderColor:t.extend("--ftds-button-secondary-info-border-color","",l.borderInfoPrimary),secondaryInfoColor:t.extend("--ftds-button-secondary-info-color","",l.contentInfoPrimary),secondaryInfoIconColor:t.extend("--ftds-button-secondary-info-icon-color","",l.contentInfoPrimary),secondaryInfoStateLayerColor:t.extend("--ftds-button-secondary-info-state-layer-color","",l.contentInfoPrimary),secondarySuccessHoverStateLayerOpacity:t.extend("--ftds-button-secondary-success-hover-state-layer-opacity","",i.opacity8),secondarySuccessFocusStateLayerOpacity:t.extend("--ftds-button-secondary-success-focus-state-layer-opacity","",i.opacity8),secondarySuccessActiveStateLayerOpacity:t.extend("--ftds-button-secondary-success-active-state-layer-opacity","",i.opacity16),secondarySuccessDisabledComponentOpacity:t.extend("--ftds-button-secondary-success-disabled-component-opacity","",i.opacity40),secondarySuccessBackgroundColor:t.create("--ftds-button-secondary-success-background-color","","COLOR","rgba(0,0,0,0)"),secondarySuccessBorderColor:t.extend("--ftds-button-secondary-success-border-color","",l.borderSuccessPrimary),secondarySuccessColor:t.extend("--ftds-button-secondary-success-color","",l.contentSuccessPrimary),secondarySuccessIconColor:t.extend("--ftds-button-secondary-success-icon-color","",l.contentSuccessPrimary),secondarySuccessStateLayerColor:t.extend("--ftds-button-secondary-success-state-layer-color","",l.contentSuccessPrimary),secondaryWarningHoverStateLayerOpacity:t.extend("--ftds-button-secondary-warning-hover-state-layer-opacity","",i.opacity8),secondaryWarningFocusStateLayerOpacity:t.extend("--ftds-button-secondary-warning-focus-state-layer-opacity","",i.opacity8),secondaryWarningActiveStateLayerOpacity:t.extend("--ftds-button-secondary-warning-active-state-layer-opacity","",i.opacity16),secondaryWarningDisabledComponentOpacity:t.extend("--ftds-button-secondary-warning-disabled-component-opacity","",i.opacity40),secondaryWarningBackgroundColor:t.create("--ftds-button-secondary-warning-background-color","","COLOR","rgba(0,0,0,0)"),secondaryWarningBorderColor:t.extend("--ftds-button-secondary-warning-border-color","",l.borderWarningPrimary),secondaryWarningColor:t.extend("--ftds-button-secondary-warning-color","",l.contentWarningPrimary),secondaryWarningIconColor:t.extend("--ftds-button-secondary-warning-icon-color","",l.contentWarningPrimary),secondaryWarningStateLayerColor:t.extend("--ftds-button-secondary-warning-state-layer-color","",l.contentWarningPrimary),secondaryErrorHoverStateLayerOpacity:t.extend("--ftds-button-secondary-error-hover-state-layer-opacity","",i.opacity8),secondaryErrorFocusStateLayerOpacity:t.extend("--ftds-button-secondary-error-focus-state-layer-opacity","",i.opacity8),secondaryErrorActiveStateLayerOpacity:t.extend("--ftds-button-secondary-error-active-state-layer-opacity","",i.opacity16),secondaryErrorDisabledComponentOpacity:t.extend("--ftds-button-secondary-error-disabled-component-opacity","",i.opacity40),secondaryErrorBackgroundColor:t.create("--ftds-button-secondary-error-background-color","","COLOR","rgba(0,0,0,0)"),secondaryErrorBorderColor:t.extend("--ftds-button-secondary-error-border-color","",l.contentErrorPrimary),secondaryErrorColor:t.extend("--ftds-button-secondary-error-color","",l.contentErrorPrimary),secondaryErrorIconColor:t.extend("--ftds-button-secondary-error-icon-color","",l.contentErrorPrimary),secondaryErrorStateLayerColor:t.extend("--ftds-button-secondary-error-state-layer-color","",l.contentErrorPrimary)};var Lh={borderRadius:t.extend("--ftds-card-border-radius","",i.borderRadiusS),focusFocusRingColor:t.extend("--ftds-card-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-card-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ftds-card-focus-outline-offset","","SIZE","2px"),headerTitleHorizontalPadding:t.extend("--ftds-card-header-title-horizontal-padding","",i.spacing4),headerTitleVerticalPadding:t.extend("--ftds-card-header-title-vertical-padding","",i.spacing3),headerActionHorizontalPadding:t.extend("--ftds-card-header-action-horizontal-padding","",i.spacing2),headerActionVerticalPadding:t.extend("--ftds-card-header-action-vertical-padding","",i.spacing2),headerActionGap:t.extend("--ftds-card-header-action-gap","",i.spacing1),bodyHorizontalPadding:t.extend("--ftds-card-body-horizontal-padding","",i.spacing4),bodyVerticalPadding:t.extend("--ftds-card-body-vertical-padding","",i.spacing4),footerActionHorizontalPadding:t.extend("--ftds-card-footer-action-horizontal-padding","",i.spacing2),footerActionVerticalPadding:t.extend("--ftds-card-footer-action-vertical-padding","",i.spacing2),footerActionGap:t.extend("--ftds-card-footer-action-gap","",i.spacing1),footerContentHorizontalPadding:t.extend("--ftds-card-footer-content-horizontal-padding","",i.spacing4),footerContentVerticalPadding:t.extend("--ftds-card-footer-content-vertical-padding","",i.spacing3),sideBarHorizontalPadding:t.extend("--ftds-card-side-bar-horizontal-padding","",i.spacing1),sideBarVerticalPadding:t.extend("--ftds-card-side-bar-vertical-padding","",i.spacing1),sideBarGap:t.extend("--ftds-card-side-bar-gap","",i.spacing1),nonSelectableBorderWidth:t.create("--ftds-card-non-selectable-border-width","","SIZE","1px"),nonSelectableStateLayerColor:t.extend("--ftds-card-non-selectable-state-layer-color","",l.contentGlobalPrimary),nonSelectableDefaultBackgroundColor:t.extend("--ftds-card-non-selectable-default-background-color","",l.backgroundGlobalOnSurface),nonSelectableDefaultBorderColor:t.extend("--ftds-card-non-selectable-default-border-color","",l.borderGlobalSecondary),nonSelectableHoverBorderColor:t.extend("--ftds-card-non-selectable-hover-border-color","",l.borderGlobalPrimary),nonSelectableHoverStateLayerOpacity:t.extend("--ftds-card-non-selectable-hover-state-layer-opacity","",i.opacity4),nonSelectableFocusBorderColor:t.extend("--ftds-card-non-selectable-focus-border-color","",l.borderGlobalPrimary),nonSelectableFocusStateLayerOpacity:t.extend("--ftds-card-non-selectable-focus-state-layer-opacity","",i.opacity4),internalBorderColor:t.extend("--ftds-card-internal-border-color","",l.borderGlobalSecondary),selectableUnselectedBorderWidth:t.create("--ftds-card-selectable-unselected-border-width","","SIZE","1px"),selectableUnselectedStateLayerColor:t.extend("--ftds-card-selectable-unselected-state-layer-color","",l.contentGlobalPrimary),selectableUnselectedDefaultBackgroundColor:t.extend("--ftds-card-selectable-unselected-default-background-color","",l.backgroundGlobalOnSurface),selectableUnselectedDefaultBorderColor:t.extend("--ftds-card-selectable-unselected-default-border-color","",l.borderGlobalSecondary),selectableUnselectedHoverBorderColor:t.extend("--ftds-card-selectable-unselected-hover-border-color","",l.borderGlobalPrimary),selectableUnselectedHoverStateLayerOpacity:t.extend("--ftds-card-selectable-unselected-hover-state-layer-opacity","",i.opacity4),selectableUnselectedFocusBorderColor:t.extend("--ftds-card-selectable-unselected-focus-border-color","",l.borderGlobalPrimary),selectableUnselectedFocusStateLayerOpacity:t.extend("--ftds-card-selectable-unselected-focus-state-layer-opacity","",i.opacity4),selectableSelectedBorderColor:t.extend("--ftds-card-selectable-selected-border-color","",l.borderActionPrimary),selectableSelectedBorderWidth:t.create("--ftds-card-selectable-selected-border-width","","SIZE","2px"),selectableSelectedStateLayerColor:t.extend("--ftds-card-selectable-selected-state-layer-color","",l.contentActionPrimary),selectableSelectedBackgroundColor:t.extend("--ftds-card-selectable-selected-background-color","",l.backgroundGlobalSurface),selectableSelectedDefaultStateLayerOpacity:t.extend("--ftds-card-selectable-selected-default-state-layer-opacity","",i.opacity4),selectableSelectedHoverStateLayerOpacity:t.extend("--ftds-card-selectable-selected-hover-state-layer-opacity","",i.opacity4),selectableSelectedFocusStateLayerOpacity:t.extend("--ftds-card-selectable-selected-focus-state-layer-opacity","",i.opacity4),internalBorderWidth:t.create("--ftds-card-internal-border-width","","SIZE","1px")};var Dh={loadMoreIconSize:t.extend("--ftds-tree-list-load-more-icon-size","",i.iconSize2),loadMorePaddingLeft:t.extend("--ftds-tree-list-load-more-padding-left","",i.spacing6),loadMoreUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-unselected-default-border-color","",l.borderGlobalSubtle),loadMoreIconColor:t.extend("--ftds-tree-list-load-more-icon-color","",l.contentActionPrimary),loadMoreLabelColor:t.extend("--ftds-tree-list-load-more-label-color","",l.contentActionPrimary),loadMoreHoverBorderColor:t.extend("--ftds-tree-list-load-more-hover-border-color","",i.colorBrand20),loadMoreHoverBackgroundColor:t.create("--ftds-tree-list-load-more-hover-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreActiveBorderColor:t.extend("--ftds-tree-list-load-more-active-border-color","",i.colorBrand20),loadMoreActiveBackgroundColor:t.create("--ftds-tree-list-load-more-active-background-color","","COLOR","rgba(157,32,123,0.16)"),loadMoreFocusBackgroundColor:t.create("--ftds-tree-list-load-more-focus-background-color","","COLOR","rgba(157,32,123,0.08)"),loadMoreDescendantOfSelectedDefaultBackgroundColor:t.create("--ftds-tree-list-load-more-descendant-of-selected-default-background-color","","COLOR","rgba(113,113,142,0.08)"),loadMoreDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-load-more-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),loadMoreLabelMarginLeft:t.extend("--ftds-tree-list-load-more-label-margin-left","",i.spacing1),nodeIconSize:t.extend("--ftds-tree-list-node-icon-size","",i.iconSize2),nodeHeight:t.create("--ftds-tree-list-node-height","","SIZE","36px"),nodeParentLabelMarginLeft:t.extend("--ftds-tree-list-node-parent-label-margin-left","",i.spacing2),nodeParentLabelMarginRight:t.extend("--ftds-tree-list-node-parent-label-margin-right","",i.spacing2),nodeRootPaddingLeft:t.extend("--ftds-tree-list-node-root-padding-left","",i.spacing6),nodeChildPaddingLeft:t.extend("--ftds-tree-list-node-child-padding-left","",i.spacing5),nodeLeafPaddingLeft:t.extend("--ftds-tree-list-node-leaf-padding-left","",i.spacing6),nodeUnselectedDefaultBorderColor:t.extend("--ftds-tree-list-node-unselected-default-border-color","",l.borderGlobalSubtle),nodeUnselectedIconColor:t.extend("--ftds-tree-list-node-unselected-icon-color","",l.contentGlobalSecondary),nodeUnselectedLabelColor:t.extend("--ftds-tree-list-node-unselected-label-color","",l.contentGlobalSecondary),nodeUnselectedCounterColor:t.extend("--ftds-tree-list-node-unselected-counter-color","",l.contentGlobalSecondary),nodeHoverBorderColor:t.extend("--ftds-tree-list-node-hover-border-color","",l.borderActionPrimary),nodeFocusFocusRingColor:t.extend("--ftds-tree-list-node-focus-focus-ring-color","",l.borderActionFocusRing),nodeFocusOutlineWidth:t.create("--ftds-tree-list-node-focus-outline-width","","SIZE","2px"),nodeSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-selected-default-border-color","",l.borderGlobalPrimary),nodeSelectedIconColor:t.extend("--ftds-tree-list-node-selected-icon-color","",l.contentGlobalSecondary),nodeSelectedLabelColor:t.extend("--ftds-tree-list-node-selected-label-color","",l.contentGlobalPrimary),nodeSelectedCounterColor:t.extend("--ftds-tree-list-node-selected-counter-color","",l.contentGlobalSecondary),nodeSelectedBackgroundColor:t.create("--ftds-tree-list-node-selected-background-color","","COLOR","rgba(113,113,142,0.24)"),nodeDescendantOfSelectedDefaultBorderColor:t.extend("--ftds-tree-list-node-descendant-of-selected-default-border-color","",l.borderGlobalPrimary),nodeDescendantOfSelectedIconColor:t.extend("--ftds-tree-list-node-descendant-of-selected-icon-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedLabelColor:t.extend("--ftds-tree-list-node-descendant-of-selected-label-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedCounterColor:t.extend("--ftds-tree-list-node-descendant-of-selected-counter-color","",l.contentGlobalSecondary),nodeDescendantOfSelectedBackgroundColor:t.create("--ftds-tree-list-node-descendant-of-selected-background-color","","COLOR","rgba(113,113,142,0.08)"),nodeBorderWidth:t.create("--ftds-tree-list-node-border-width","","SIZE","1px"),headerSectionPaddingLeft:t.extend("--ftds-tree-list-header-section-padding-left","",i.spacing6),headerSectionPaddingRight:t.extend("--ftds-tree-list-header-section-padding-right","",i.spacing3),headerSectionHorizontalGap:t.extend("--ftds-tree-list-header-section-horizontal-gap","",i.spacing2),headerSectionMarginBottom:t.extend("--ftds-tree-list-header-section-margin-bottom","",i.spacing2),headerSectionColor:t.extend("--ftds-tree-list-header-section-color","",l.contentGlobalPrimary),headerSectionCounterColor:t.extend("--ftds-tree-list-header-section-counter-color","",l.contentGlobalSecondary),listContainerBorderWidth:t.create("--ftds-tree-list-list-container-border-width","","SIZE","1px"),listContainerBackgroundColor:t.extend("--ftds-tree-list-list-container-background-color","",l.backgroundGlobalSurface),listContainerBorderColor:t.extend("--ftds-tree-list-list-container-border-color","",l.borderGlobalSubtle),emptyStateIllustrationWidth:t.create("--ftds-tree-list-empty-state-illustration-width","","SIZE","192px"),emptyStateIllustrationHeight:t.create("--ftds-tree-list-empty-state-illustration-height","","SIZE","192px"),emptyStateIllustrationMarginBottom:t.extend("--ftds-tree-list-empty-state-illustration-margin-bottom","",i.spacing10),emptyStateContainerPaddingTop:t.extend("--ftds-tree-list-empty-state-container-padding-top","",i.spacing10),emptyStateContainerPaddingBottom:t.extend("--ftds-tree-list-empty-state-container-padding-bottom","",i.spacing10),emptyStateTitleMarginBottom:t.extend("--ftds-tree-list-empty-state-title-margin-bottom","",i.spacing2),emptyStateTitleLabelColor:t.extend("--ftds-tree-list-empty-state-title-label-color","",l.contentGlobalSecondary),emptyStateDescriptionLabelColor:t.extend("--ftds-tree-list-empty-state-description-label-color","",l.contentGlobalSecondary)};var Hh={iconSize:t.extend("--ftds-checkbox-icon-size","",i.iconSize2),boxSize:t.create("--ftds-checkbox-box-size","","SIZE","18px"),colorLegendSize:t.create("--ftds-checkbox-color-legend-size","","SIZE","16px"),borderRadius:t.create("--ftds-checkbox-border-radius","","SIZE","1px"),labelHorizontalGap:t.extend("--ftds-checkbox-label-horizontal-gap","",i.spacing1),color:t.extend("--ftds-checkbox-color","",l.contentGlobalPrimary),checkedBackgroundColor:t.extend("--ftds-checkbox-checked-background-color","",l.contentActionPrimary),checkedStateLayerColor:t.extend("--ftds-checkbox-checked-state-layer-color","",l.contentActionPrimary),checkedIconColor:t.extend("--ftds-checkbox-checked-icon-color","",l.contentGlobalOnColor),checkedHoverStateLayerOpacity:t.extend("--ftds-checkbox-checked-hover-state-layer-opacity","",i.opacity16),checkedFocusStateLayerOpacity:t.extend("--ftds-checkbox-checked-focus-state-layer-opacity","",i.opacity16),checkedActiveStateLayerOpacity:t.extend("--ftds-checkbox-checked-active-state-layer-opacity","",i.opacity24),checkedDisabledComponentOpacity:t.extend("--ftds-checkbox-checked-disabled-component-opacity","",i.opacity40),uncheckedBorderColor:t.extend("--ftds-checkbox-unchecked-border-color","",i.colorGray80),uncheckedStateLayerColor:t.extend("--ftds-checkbox-unchecked-state-layer-color","",i.colorGray80),uncheckedHoverStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-hover-state-layer-opacity","",i.opacity16),uncheckedFocusStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-focus-state-layer-opacity","",i.opacity16),uncheckedActiveStateLayerOpacity:t.extend("--ftds-checkbox-unchecked-active-state-layer-opacity","",i.opacity24),uncheckedDisabledComponentOpacity:t.extend("--ftds-checkbox-unchecked-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-checkbox-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-checkbox-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-checkbox-focus-outline-width","","SIZE","2px"),focusOutlineBorderRadius:t.create("--ftds-checkbox-focus-outline-border-radius","","SIZE","2px"),borderWidth:t.create("--ftds-checkbox-border-width","","SIZE","2px"),horizontalGap:t.extend("--ftds-checkbox-horizontal-gap","",i.spacing3),helperPaddingTop:t.create("--ftds-checkbox-helper-padding-top","","SIZE","0px"),helperIconSize:t.extend("--ftds-checkbox-helper-icon-size","",i.iconSize2),helperHorizontalGap:t.extend("--ftds-checkbox-helper-horizontal-gap","",i.spacing1),errorUncheckedBorderColor:t.extend("--ftds-checkbox-error-unchecked-border-color","",l.borderErrorPrimary),errorStateLayerColor:t.extend("--ftds-checkbox-error-state-layer-color","",l.contentErrorPrimary),errorHelperTextColor:t.extend("--ftds-checkbox-error-helper-text-color","",l.borderErrorPrimary),errorCheckedBackgroundColor:t.extend("--ftds-checkbox-error-checked-background-color","",l.contentErrorPrimary),helperTextColor:t.extend("--ftds-checkbox-helper-text-color","",l.contentGlobalSubtle),groupVerticalGap:t.extend("--ftds-checkbox-group-vertical-gap","",i.spacing3)};var jh={circleSize:t.create("--ftds-radio-circle-size","","SIZE","18px"),borderWidth:t.create("--ftds-radio-border-width","","SIZE","2px"),color:t.extend("--ftds-radio-color","",l.contentGlobalPrimary),selectedRadioColor:t.extend("--ftds-radio-selected-radio-color","",l.contentActionPrimary),selectedStateLayerColor:t.extend("--ftds-radio-selected-state-layer-color","",l.contentActionPrimary),selectedHoverStateLayerOpacity:t.extend("--ftds-radio-selected-hover-state-layer-opacity","",i.opacity16),selectedFocusStateLayerOpacity:t.extend("--ftds-radio-selected-focus-state-layer-opacity","",i.opacity16),selectedActiveStateLayerOpacity:t.extend("--ftds-radio-selected-active-state-layer-opacity","",i.opacity24),selectedDisabledComponentOpacity:t.extend("--ftds-radio-selected-disabled-component-opacity","",i.opacity40),unselectedStateLayerColor:t.extend("--ftds-radio-unselected-state-layer-color","",l.borderInputPrimary),unselectedBorderColor:t.extend("--ftds-radio-unselected-border-color","",l.borderInputPrimary),unselectedHoverStateLayerOpacity:t.extend("--ftds-radio-unselected-hover-state-layer-opacity","",i.opacity16),unselectedFocusStateLayerOpacity:t.extend("--ftds-radio-unselected-focus-state-layer-opacity","",i.opacity16),unselectedActiveStateLayerOpacity:t.extend("--ftds-radio-unselected-active-state-layer-opacity","",i.opacity24),unselectedDisabledComponentOpacity:t.extend("--ftds-radio-unselected-disabled-component-opacity","",i.opacity40),focusFocusRingColor:t.extend("--ftds-radio-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-radio-focus-outline-offset","","SIZE","3px"),focusOutlineWidth:t.create("--ftds-radio-focus-outline-width","","SIZE","2px"),verticalGap:t.extend("--ftds-radio-vertical-gap","",i.spacing3),horizontalGap:t.extend("--ftds-radio-horizontal-gap","",i.spacing3)};var Yh={headerRowBorderWidth:t.create("--ftds-table-header-row-border-width","","SIZE","1px"),headerRowBackgroundColor:t.extend("--ftds-table-header-row-background-color","",l.backgroundGlobalOnSurfaceDark),headerRowBorderColor:t.extend("--ftds-table-header-row-border-color","",l.borderGlobalPrimary),headerRowColor:t.extend("--ftds-table-header-row-color","",l.contentGlobalPrimary),dataRowBorderWidth:t.create("--ftds-table-data-row-border-width","","SIZE","1px"),dataRowBackgroundColor:t.extend("--ftds-table-data-row-background-color","",l.backgroundGlobalOnSurface),dataRowBorderColor:t.extend("--ftds-table-data-row-border-color","",l.borderGlobalSubtle),dataRowColor:t.extend("--ftds-table-data-row-color","",l.contentGlobalSecondary),dataRowDefaultHoverBackgroundColor:t.extend("--ftds-table-data-row-default-hover-background-color","",i.colorGray20),dataRowSelectableUnselectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-unselected-hover-background-color","",i.colorGray20),dataRowSelectableSelectedDefaultBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-default-background-color","",i.colorBrand10),dataRowSelectableSelectedDefaultBorderColor:t.extend("--ftds-table-data-row-selectable-selected-default-border-color","",i.colorBrand20),dataRowSelectableSelectedHoverBackgroundColor:t.extend("--ftds-table-data-row-selectable-selected-hover-background-color","",i.colorBrand20),dataRowSelectableSelectedHoverBorderColor:t.extend("--ftds-table-data-row-selectable-selected-hover-border-color","",i.colorBrand30),dataRowSelectableSelectedColor:t.extend("--ftds-table-data-row-selectable-selected-color","",l.contentActionPrimary),dataRowClickableHoverBackgroundColor:t.extend("--ftds-table-data-row-clickable-hover-background-color","",i.colorGray30),dataRowClickableFocusBorderColor:t.extend("--ftds-table-data-row-clickable-focus-border-color","",l.borderActionFocusRing),dataRowClickableFocusBackgroundColor:t.extend("--ftds-table-data-row-clickable-focus-background-color","",i.colorGray30),dataRowClickableActiveBackgroundColor:t.extend("--ftds-table-data-row-clickable-active-background-color","",i.colorGray40),headerCellHorizontalGap:t.extend("--ftds-table-header-cell-horizontal-gap","",i.spacing1),headerCellVerticalPadding:t.extend("--ftds-table-header-cell-vertical-padding","",i.spacing2),headerCellHorizontalPadding:t.extend("--ftds-table-header-cell-horizontal-padding","",i.spacing3),dataCellVerticalPadding:t.extend("--ftds-table-data-cell-vertical-padding","",i.spacing2),dataCellHorizontalPadding:t.extend("--ftds-table-data-cell-horizontal-padding","",i.spacing3),dataCellVerticalGap:t.extend("--ftds-table-data-cell-vertical-gap","",i.spacing1)};var tg={neutralOffHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-hover-state-layer-opacity","",i.opacity8),neutralOffFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-focus-state-layer-opacity","",i.opacity8),neutralOffFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-off-focus-focus-ring-color","",l.borderActionFocusRing),neutralOffActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-off-active-state-layer-opacity","",i.opacity16),neutralOffBackgroundColor:t.extend("--ftds-chip-choice-neutral-off-background-color","",l.backgroundGlobalOnSurface),neutralOffBorderColor:t.extend("--ftds-chip-choice-neutral-off-border-color","",l.borderGlobalPrimary),neutralOffColor:t.extend("--ftds-chip-choice-neutral-off-color","",l.contentGlobalSecondary),neutralOffStateLayerColor:t.extend("--ftds-chip-choice-neutral-off-state-layer-color","",l.contentGlobalSecondary),neutralOnDefaultStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-default-state-layer-opacity","",i.opacity16),neutralOnHoverStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-hover-state-layer-opacity","",i.opacity24),neutralOnFocusStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-focus-state-layer-opacity","",i.opacity24),neutralOnFocusFocusRingColor:t.extend("--ftds-chip-choice-neutral-on-focus-focus-ring-color","",l.borderActionFocusRing),neutralOnActiveStateLayerOpacity:t.extend("--ftds-chip-choice-neutral-on-active-state-layer-opacity","",i.opacity32),neutralOnBackgroundColor:t.extend("--ftds-chip-choice-neutral-on-background-color","",l.backgroundGlobalOnSurface),neutralOnBorderColor:t.extend("--ftds-chip-choice-neutral-on-border-color","",l.borderGlobalPrimary),neutralOnColor:t.extend("--ftds-chip-choice-neutral-on-color","",l.contentGlobalPrimary),neutralOnIconColor:t.extend("--ftds-chip-choice-neutral-on-icon-color","",l.contentGlobalPrimary),neutralOnStateLayerColor:t.extend("--ftds-chip-choice-neutral-on-state-layer-color","",l.contentGlobalPrimary),largeMinHeight:t.create("--ftds-chip-choice-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-choice-large-horizontal-padding","",i.spacing3),largeGap:t.extend("--ftds-chip-choice-large-gap","",i.spacing1),largeBorderRadius:t.create("--ftds-chip-choice-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-choice-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-choice-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-choice-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-choice-medium-horizontal-padding","",i.spacing2),mediumGap:t.extend("--ftds-chip-choice-medium-gap","",i.spacing1),mediumBorderRadius:t.create("--ftds-chip-choice-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-choice-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-choice-medium-icon-size","",i.iconSize2)};var ig={largeMinHeight:t.create("--ftds-chip-large-min-height","","SIZE","36px"),largeHorizontalPadding:t.extend("--ftds-chip-large-horizontal-padding","",i.spacing3),largeButtonRightPadding:t.extend("--ftds-chip-large-button-right-padding","",i.spacing1),largeGap:t.extend("--ftds-chip-large-gap","",i.spacing1),largeFocusOutlineOffset:t.create("--ftds-chip-large-focus-outline-offset","","SIZE","2px"),largeFocusOutlineWidth:t.create("--ftds-chip-large-focus-outline-width","","SIZE","2px"),largeBorderRadius:t.create("--ftds-chip-large-border-radius","","SIZE","18px"),largeBorderWidth:t.create("--ftds-chip-large-border-width","","SIZE","1px"),largeIconSize:t.extend("--ftds-chip-large-icon-size","",i.iconSize3),mediumMinHeight:t.create("--ftds-chip-medium-min-height","","SIZE","24px"),mediumHorizontalPadding:t.extend("--ftds-chip-medium-horizontal-padding","",i.spacing2),mediumButtonRightPadding:t.extend("--ftds-chip-medium-button-right-padding","",i.spacing05),mediumGap:t.extend("--ftds-chip-medium-gap","",i.spacing1),mediumFocusOutlineOffset:t.create("--ftds-chip-medium-focus-outline-offset","","SIZE","2px"),mediumFocusOutlineWidth:t.create("--ftds-chip-medium-focus-outline-width","","SIZE","2px"),mediumBorderRadius:t.create("--ftds-chip-medium-border-radius","","SIZE","12px"),mediumBorderWidth:t.create("--ftds-chip-medium-border-width","","SIZE","1px"),mediumIconSize:t.extend("--ftds-chip-medium-icon-size","",i.iconSize2),smallMinHeight:t.create("--ftds-chip-small-min-height","","SIZE","20px"),smallHorizontalPadding:t.extend("--ftds-chip-small-horizontal-padding","",i.spacing1),smallButtonRightPadding:t.extend("--ftds-chip-small-button-right-padding","",i.spacing05),smallGap:t.extend("--ftds-chip-small-gap","",i.spacing1),smallFocusOutlineOffset:t.create("--ftds-chip-small-focus-outline-offset","","SIZE","2px"),smallFocusOutlineWidth:t.create("--ftds-chip-small-focus-outline-width","","SIZE","2px"),smallBorderRadius:t.create("--ftds-chip-small-border-radius","","SIZE","10px"),smallBorderWidth:t.create("--ftds-chip-small-border-width","","SIZE","1px"),smallIconSize:t.extend("--ftds-chip-small-icon-size","",i.iconSize1),neutralBackgroundColor:t.extend("--ftds-chip-neutral-background-color","",l.backgroundGlobalOnSurface),neutralColor:t.extend("--ftds-chip-neutral-color","",l.contentGlobalSecondary),neutralIconColor:t.extend("--ftds-chip-neutral-icon-color","",l.contentGlobalSecondary),neutralBorderColor:t.extend("--ftds-chip-neutral-border-color","",l.borderGlobalSecondary),infoBackgroundColor:t.extend("--ftds-chip-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-chip-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-chip-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-chip-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-chip-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-chip-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-chip-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-chip-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-chip-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-chip-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-chip-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-chip-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-chip-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-chip-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-chip-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-chip-error-border-color","",l.borderErrorSubtle)};var ug={horizontalGap:t.extend("--ftds-chip-group-horizontal-gap","",i.spacing2),verticalGap:t.extend("--ftds-chip-group-vertical-gap","",i.spacing2),countChipDefaultBackgroundColor:t.extend("--ftds-chip-group-count-chip-default-background-color","",i.colorBrand10),countChipDefaultBorderColor:t.extend("--ftds-chip-group-count-chip-default-border-color","",i.colorBrand60),countChipDefaultContentColor:t.extend("--ftds-chip-group-count-chip-default-content-color","",l.contentActionPrimary),countChipHoverBackgroundColor:t.extend("--ftds-chip-group-count-chip-hover-background-color","",i.colorBrand20),countChipHoverBorderColor:t.extend("--ftds-chip-group-count-chip-hover-border-color","",i.colorBrand70),countChipHoverContentColor:t.extend("--ftds-chip-group-count-chip-hover-content-color","",l.contentActionPrimary),countChipFocusedBackgroundColor:t.extend("--ftds-chip-group-count-chip-focused-background-color","",i.colorBrand20),countChipFocusedBorderColor:t.extend("--ftds-chip-group-count-chip-focused-border-color","",i.colorBrand70),countChipFocusedContentColor:t.extend("--ftds-chip-group-count-chip-focused-content-color","",l.contentActionPrimary)};var yg={brandHoverOpacity:t.extend("--ftds-link-brand-hover-opacity","",i.opacity80),brandHoverColor:t.extend("--ftds-link-brand-hover-color","",l.contentActionPrimary),brandFocusFocusRingColor:t.extend("--ftds-link-brand-focus-focus-ring-color","",l.borderActionFocusRing),brandFocusColor:t.extend("--ftds-link-brand-focus-color","",l.contentActionPrimary),brandDefaultColor:t.extend("--ftds-link-brand-default-color","",l.contentActionPrimary),brandActiveColor:t.extend("--ftds-link-brand-active-color","",l.contentActionPrimary),infoHoverOpacity:t.extend("--ftds-link-info-hover-opacity","",i.opacity80),infoHoverColor:t.extend("--ftds-link-info-hover-color","",l.contentInfoPrimary),infoFocusFocusRingColor:t.extend("--ftds-link-info-focus-focus-ring-color","",l.borderActionFocusRing),infoFocusColor:t.extend("--ftds-link-info-focus-color","",l.contentInfoPrimary),infoDefaultColor:t.extend("--ftds-link-info-default-color","",l.contentInfoPrimary),infoActiveColor:t.extend("--ftds-link-info-active-color","",l.contentInfoPrimary),neutralFocusFocusRingColor:t.extend("--ftds-link-neutral-focus-focus-ring-color","",l.borderActionFocusRing),neutralFocusColor:t.extend("--ftds-link-neutral-focus-color","",l.contentActionPrimary),neutralDefaultColor:t.extend("--ftds-link-neutral-default-color","",l.contentGlobalPrimary),neutralHoverColor:t.extend("--ftds-link-neutral-hover-color","",l.contentActionPrimary),neutralActiveColor:t.extend("--ftds-link-neutral-active-color","",l.contentActionPrimary),neutralVisitedColor:t.extend("--ftds-link-neutral-visited-color","",i.colorBrand100)};var Sg={iconSize:t.extend("--ftds-banner-icon-size","",i.iconSize5),borderWidth:t.create("--ftds-banner-border-width","","SIZE","1px"),leftPadding:t.extend("--ftds-banner-left-padding","",i.spacing6),rightPadding:t.extend("--ftds-banner-right-padding","",i.spacing6),verticalPadding:t.extend("--ftds-banner-vertical-padding","",i.spacing6),horizontalSideGap:t.extend("--ftds-banner-horizontal-side-gap","",i.spacing6),horizontalMobileGap:t.extend("--ftds-banner-horizontal-mobile-gap","",i.spacing4),verticalMobileGap:t.extend("--ftds-banner-vertical-mobile-gap","",i.spacing6),horizontalMiddleGap:t.extend("--ftds-banner-horizontal-middle-gap","",i.spacing20),infoBackgroundColor:t.extend("--ftds-banner-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-banner-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-banner-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-banner-info-border-color","",l.borderInfoSubtle)};var wg={horizontalPadding:t.extend("--ftds-badge-horizontal-padding","",i.spacing1),verticalPadding:t.extend("--ftds-badge-vertical-padding","",i.spacing1),borderRadius:t.extend("--ftds-badge-border-radius","",i.borderRadiusPill),color:t.extend("--ftds-badge-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-badge-background-color","",l.contentActionPrimary)};var kg={horizontalGap:t.extend("--ftds-title-breadcrumb-horizontal-gap","",i.spacing1),currentColor:t.extend("--ftds-title-breadcrumb-current-color","",l.contentGlobalPrimary),previousNonClickableColor:t.extend("--ftds-title-breadcrumb-previous-non-clickable-color","",l.contentGlobalSecondary),iconColor:t.extend("--ftds-title-breadcrumb-icon-color","",l.contentGlobalSubtle)};var Mg={parentHorizontalPadding:t.extend("--ftds-page-header-parent-horizontal-padding","",i.spacing6),parentTopPadding:t.extend("--ftds-page-header-parent-top-padding","",i.spacing4),parentBottomPadding:t.extend("--ftds-page-header-parent-bottom-padding","",i.spacing6),parentHelpLeftMargin:t.extend("--ftds-page-header-parent-help-left-margin","",i.spacing1),parentTitleColor:t.extend("--ftds-page-header-parent-title-color","",l.contentGlobalPrimary),parentSubtitleColor:t.extend("--ftds-page-header-parent-subtitle-color","",l.contentGlobalSecondary),parentChipLeftMargin:t.extend("--ftds-page-header-parent-chip-left-margin","",i.spacing4),parentVerticalGap:t.extend("--ftds-page-header-parent-vertical-gap","",i.spacing2),parentButtonsGroupHorizontalGap:t.extend("--ftds-page-header-parent-buttons-group-horizontal-gap","",i.spacing4),parentButtonsGroupVerticalGap:t.extend("--ftds-page-header-parent-buttons-group-vertical-gap","",i.spacing4),parentChipsGroupHorizontalGap:t.extend("--ftds-page-header-parent-chips-group-horizontal-gap","",i.spacing2),parentChipsGroupVerticalGap:t.extend("--ftds-page-header-parent-chips-group-vertical-gap","",i.spacing2),childHorizontalPadding:t.extend("--ftds-page-header-child-horizontal-padding","",i.spacing6),childTopPadding:t.extend("--ftds-page-header-child-top-padding","",i.spacing2),childBottomPadding:t.extend("--ftds-page-header-child-bottom-padding","",i.spacing2),childHelpLeftMargin:t.extend("--ftds-page-header-child-help-left-margin","",i.spacing1),childChipLeftMargin:t.extend("--ftds-page-header-child-chip-left-margin","",i.spacing4),childVerticalGap:t.extend("--ftds-page-header-child-vertical-gap","",i.spacing2),childMinHeight:t.create("--ftds-page-header-child-min-height","","SIZE","40px"),childButtonsGroupHorizontalGap:t.extend("--ftds-page-header-child-buttons-group-horizontal-gap","",i.spacing4),childButtonsGroupVerticalGap:t.extend("--ftds-page-header-child-buttons-group-vertical-gap","",i.spacing4),childChipsGroupHorizontalGap:t.extend("--ftds-page-header-child-chips-group-horizontal-gap","",i.spacing2),childChipsGroupVerticalGap:t.extend("--ftds-page-header-child-chips-group-vertical-gap","",i.spacing2),backgroundColor:t.extend("--ftds-page-header-background-color","",i.colorWhite),bottomBorderColor:t.extend("--ftds-page-header-bottom-border-color","",l.borderGlobalSubtle),bottomBorderWidth:t.create("--ftds-page-header-bottom-border-width","","SIZE","1px")};var zg={horizontalPadding:t.extend("--ftds-page-footer-horizontal-padding","",i.spacing6),verticalPadding:t.extend("--ftds-page-footer-vertical-padding","",i.spacing2),verticalGap:t.extend("--ftds-page-footer-vertical-gap","",i.spacing2),minHeight:t.create("--ftds-page-footer-min-height","","SIZE","40px"),backgroundColor:t.extend("--ftds-page-footer-background-color","",i.colorWhite),topBorderColor:t.extend("--ftds-page-footer-top-border-color","",l.borderGlobalSubtle),topBorderWidth:t.create("--ftds-page-footer-top-border-width","","SIZE","1px"),buttonsGroupGap:t.extend("--ftds-page-footer-buttons-group-gap","",i.spacing4)};var jg={contentHorizontalPadding:t.extend("--ftds-page-layout-content-horizontal-padding","",i.spacing6),contentVerticalPadding:t.extend("--ftds-page-layout-content-vertical-padding","",i.spacing6)};var Yg={smallContainerTargetWidth:t.create("--ftds-modal-small-container-target-width","","SIZE","560px"),smallContainerMargin:t.extend("--ftds-modal-small-container-margin","",i.spacing6),mediumContainerTargetWidth:t.create("--ftds-modal-medium-container-target-width","","SIZE","800px"),mediumContainerMargin:t.extend("--ftds-modal-medium-container-margin","",i.spacing6),largeContainerTargetWidth:t.create("--ftds-modal-large-container-target-width","","SIZE","1040px"),largeContainerMargin:t.extend("--ftds-modal-large-container-margin","",i.spacing6),overlayBackgroundColor:t.extend("--ftds-modal-overlay-background-color","",i.colorGray700),overlayOpacity:t.extend("--ftds-modal-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-modal-shadow","",i.shadowElevation03),bodyBackgroundColor:t.extend("--ftds-modal-body-background-color","",i.colorWhite),bodyColor:t.extend("--ftds-modal-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-modal-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-modal-body-vertical-padding","",i.spacing6),bodyVerticalGap:t.extend("--ftds-modal-body-vertical-gap","",i.spacing6),headerBackgroundColor:t.extend("--ftds-modal-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-modal-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-modal-header-color","",l.contentGlobalPrimary),headerLeadingIconColor:t.extend("--ftds-modal-header-leading-icon-color","",l.contentGlobalPrimary),headerVerticalPadding:t.extend("--ftds-modal-header-vertical-padding","",i.spacing1),headerRightPadding:t.extend("--ftds-modal-header-right-padding","",i.spacing1),headerLeftPadding:t.extend("--ftds-modal-header-left-padding","",i.spacing6),headerGap:t.extend("--ftds-modal-header-gap","",i.spacing2),headerBorderBottomWidth:t.create("--ftds-modal-header-border-bottom-width","","SIZE","1px"),borderRadius:t.extend("--ftds-modal-border-radius","",i.borderRadiusM)};var ty={overlayOpacity:t.extend("--ftds-drawer-overlay-opacity","",i.opacity40),shadow:t.extend("--ftds-drawer-shadow","",i.shadowElevation03),bodyColor:t.extend("--ftds-drawer-body-color","",l.contentGlobalPrimary),bodyHorizontalPadding:t.extend("--ftds-drawer-body-horizontal-padding","",i.spacing6),bodyVerticalPadding:t.extend("--ftds-drawer-body-vertical-padding","",i.spacing6),bodyGap:t.extend("--ftds-drawer-body-gap","",i.spacing6),bodyBackgroundColor:t.extend("--ftds-drawer-body-background-color","",i.colorWhite),headerBackgroundColor:t.extend("--ftds-drawer-header-background-color","",l.backgroundGlobalOnSurface),headerBorderColor:t.extend("--ftds-drawer-header-border-color","",l.borderGlobalSubtle),headerColor:t.extend("--ftds-drawer-header-color","",l.contentGlobalPrimary),headerTrailingIconColor:t.extend("--ftds-drawer-header-trailing-icon-color","",l.contentGlobalSecondary),headerHeight:t.create("--ftds-drawer-header-height","","SIZE","50px"),headerHorizontalPadding:t.extend("--ftds-drawer-header-horizontal-padding","",i.spacing2),headerBorderWidth:t.create("--ftds-drawer-header-border-width","","SIZE","1px"),headerGap:t.extend("--ftds-drawer-header-gap","",i.spacing3),buttonsBarBackgroundColor:t.extend("--ftds-drawer-buttons-bar-background-color","",l.backgroundGlobalOnSurface),buttonsBarBorderColor:t.extend("--ftds-drawer-buttons-bar-border-color","",l.borderGlobalSubtle),buttonsBarColor:t.extend("--ftds-drawer-buttons-bar-color","",l.contentGlobalPrimary),buttonsBarHorizontalPadding:t.extend("--ftds-drawer-buttons-bar-horizontal-padding","",i.spacing6),buttonsBarVerticalPadding:t.extend("--ftds-drawer-buttons-bar-vertical-padding","",i.spacing4),buttonsBarGap:t.extend("--ftds-drawer-buttons-bar-gap","",i.spacing3),buttonsBarBorderWidth:t.create("--ftds-drawer-buttons-bar-border-width","","SIZE","1px"),containerWidth:t.create("--ftds-drawer-container-width","","SIZE","66%"),containerMinWidth:t.create("--ftds-drawer-container-min-width","","SIZE","500px"),containerMaxWidth:t.create("--ftds-drawer-container-max-width","","SIZE","1000px"),containerHeight:t.create("--ftds-drawer-container-height","","SIZE","100%"),overlayBackgroundColor:t.extend("--ftds-drawer-overlay-background-color","",i.colorGray700)};var iy={offBorderBottomWidth:t.create("--ftds-tabs-off-border-bottom-width","","SIZE","1px"),offHoverStateLayerOpacity:t.extend("--ftds-tabs-off-hover-state-layer-opacity","",i.opacity8),offDefaultStateLayerOpacity:t.extend("--ftds-tabs-off-default-state-layer-opacity","",i.opacity0),offFocusStateLayerOpacity:t.extend("--ftds-tabs-off-focus-state-layer-opacity","",i.opacity8),offDisabledComponentOpacity:t.extend("--ftds-tabs-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-tabs-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-tabs-off-state-layer-color","",l.contentGlobalSubtle),offBorderBottomColor:t.extend("--ftds-tabs-off-border-bottom-color","",l.borderGlobalSubtle),activeTabIndicatorHeight:t.create("--ftds-tabs-active-tab-indicator-height","","SIZE","3px"),topLeftBorderRadius:t.extend("--ftds-tabs-top-left-border-radius","",i.borderRadiusS),topRightBorderRadius:t.extend("--ftds-tabs-top-right-border-radius","",i.borderRadiusS),withLabelHorizontalPadding:t.extend("--ftds-tabs-with-label-horizontal-padding","",i.spacing4),withLabelVerticalPadding:t.extend("--ftds-tabs-with-label-vertical-padding","",i.spacing3),horizontalGap:t.extend("--ftds-tabs-horizontal-gap","",i.spacing1),verticalGap:t.extend("--ftds-tabs-vertical-gap","",i.spacing1),onHoverStateLayerOpacity:t.extend("--ftds-tabs-on-hover-state-layer-opacity","",i.opacity16),onDefaultStateLayerOpacity:t.extend("--ftds-tabs-on-default-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-tabs-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-tabs-on-active-state-layer-opacity","",i.opacity24),onColor:t.extend("--ftds-tabs-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-tabs-on-state-layer-color","",l.contentActionPrimary),onActiveTabIndicatorColor:t.extend("--ftds-tabs-on-active-tab-indicator-color","",l.contentActionPrimary),iconOnlyHorizontalPadding:t.extend("--ftds-tabs-icon-only-horizontal-padding","",i.spacing4),iconOnlyVerticalPadding:t.extend("--ftds-tabs-icon-only-vertical-padding","",i.spacing4),alertTopPadding:t.extend("--ftds-tabs-alert-top-padding","",i.spacing1),alertRightPadding:t.extend("--ftds-tabs-alert-right-padding","",i.spacing05),focusOutlineWidth:t.create("--ftds-tabs-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-tabs-focus-focus-ring-color","",l.borderActionFocusRing)};var uy={largeFieldHorizontalPadding:t.extend("--ftds-text-input-large-field-horizontal-padding","",i.spacing4),largeFieldHorizontalGap:t.extend("--ftds-text-input-large-field-horizontal-gap","",i.spacing3),largeFieldVerticalGap:t.extend("--ftds-text-input-large-field-vertical-gap","",i.spacing05),largeFieldHeight:t.create("--ftds-text-input-large-field-height","","SIZE","50px"),largeFieldIconSize:t.extend("--ftds-text-input-large-field-icon-size","",i.iconSize3),mediumFieldHorizontalPadding:t.extend("--ftds-text-input-medium-field-horizontal-padding","",i.spacing4),mediumFieldHorizontalGap:t.extend("--ftds-text-input-medium-field-horizontal-gap","",i.spacing3),mediumFieldVerticalGap:t.create("--ftds-text-input-medium-field-vertical-gap","","SIZE","0px"),mediumFieldHeight:t.create("--ftds-text-input-medium-field-height","","SIZE","40px"),mediumFieldIconSize:t.extend("--ftds-text-input-medium-field-icon-size","",i.iconSize3),helperHorizontalPadding:t.extend("--ftds-text-input-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-input-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-input-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-input-border-radius","",i.borderRadiusS),backgroundColor:t.extend("--ftds-text-input-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-input-content-value-color","",l.contentGlobalPrimary),trailingIconColor:t.extend("--ftds-text-input-trailing-icon-color","",l.contentGlobalSubtle),labelColor:t.extend("--ftds-text-input-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-input-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-input-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-input-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-input-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-input-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-input-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-input-error-helper-icon-color","",l.contentErrorIconOnly),warningBorderColor:t.extend("--ftds-text-input-warning-border-color","",l.borderWarningPrimary),warningHelperTextColor:t.extend("--ftds-text-input-warning-helper-text-color","",l.contentWarningPrimary),warningHelperIconColor:t.extend("--ftds-text-input-warning-helper-icon-color","",l.contentWarningIconOnly),warningBorderWidth:t.create("--ftds-text-input-warning-border-width","","SIZE","2px"),focusOutlineWidth:t.create("--ftds-text-input-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-text-input-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineOffset:t.create("--ftds-text-input-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-input-disabled-component-opacity","",i.opacity40)};var yy={backgroundColor:t.extend("--ftds-text-area-background-color","",i.colorWhite),contentValueColor:t.extend("--ftds-text-area-content-value-color","",l.contentGlobalPrimary),labelColor:t.extend("--ftds-text-area-label-color","",l.contentGlobalSubtle),defaultBorderColor:t.extend("--ftds-text-area-default-border-color","",l.borderInputPrimary),defaultHelperTextColor:t.extend("--ftds-text-area-default-helper-text-color","",l.contentGlobalSubtle),defaultBorderWidth:t.create("--ftds-text-area-default-border-width","","SIZE","1px"),errorBorderWidth:t.create("--ftds-text-area-error-border-width","","SIZE","2px"),errorBorderColor:t.extend("--ftds-text-area-error-border-color","",l.borderErrorPrimary),errorHelperTextColor:t.extend("--ftds-text-area-error-helper-text-color","",l.contentErrorPrimary),errorHelperIconColor:t.extend("--ftds-text-area-error-helper-icon-color","",l.contentErrorIconOnly),focusFocusRingColor:t.extend("--ftds-text-area-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-text-area-focus-outline-width","","SIZE","2px"),focusOutlineOffset:t.create("--ftds-text-area-focus-outline-offset","","SIZE","3px"),disabledComponentOpacity:t.extend("--ftds-text-area-disabled-component-opacity","",i.opacity40),fieldHorizontalLeftPadding:t.extend("--ftds-text-area-field-horizontal-left-padding","",i.spacing4),fieldHorizontalGap:t.extend("--ftds-text-area-field-horizontal-gap","",i.spacing3),fieldVerticalGap:t.extend("--ftds-text-area-field-vertical-gap","",i.spacing05),fieldMinHeight:t.create("--ftds-text-area-field-min-height","","SIZE","64px"),helperHorizontalPadding:t.extend("--ftds-text-area-helper-horizontal-padding","",i.spacing4),helperHorizontalGap:t.extend("--ftds-text-area-helper-horizontal-gap","",i.spacing1),helperIconSize:t.extend("--ftds-text-area-helper-icon-size","",i.iconSize2),borderRadius:t.extend("--ftds-text-area-border-radius","",i.borderRadiusS)};var Sy={height:t.create("--ftds-floating-menu-height","","SIZE","52px"),horizontalPadding:t.extend("--ftds-floating-menu-horizontal-padding","",i.spacing4),verticalPadding:t.extend("--ftds-floating-menu-vertical-padding","",i.spacing2),offIconColor:t.extend("--ftds-floating-menu-off-icon-color","",l.contentGlobalPrimary),offColor:t.extend("--ftds-floating-menu-off-color","",l.contentGlobalPrimary),onColor:t.extend("--ftds-floating-menu-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-floating-menu-on-state-layer-color","",l.contentActionPrimary),gap:t.extend("--ftds-floating-menu-gap","",i.spacing3),focusFocusRingColor:t.extend("--ftds-floating-menu-focus-focus-ring-color","",l.borderActionFocusRing),focusOutlineWidth:t.create("--ftds-floating-menu-focus-outline-width","","SIZE","3px"),focusStateLayerOpacity:t.extend("--ftds-floating-menu-focus-state-layer-opacity","",i.opacity24),hoverStateLayerOpacity:t.extend("--ftds-floating-menu-hover-state-layer-opacity","",i.opacity8),activeStateLayerOpacity:t.extend("--ftds-floating-menu-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-floating-menu-disabled-component-opacity","",i.opacity40),iconSize:t.extend("--ftds-floating-menu-icon-size","",i.iconSize3),backgroundColor:t.extend("--ftds-floating-menu-background-color","",l.backgroundGlobalOnSurface),shadow:t.extend("--ftds-floating-menu-shadow","",i.shadowElevation02),multiselectCheckedStateLayerColor:t.extend("--ftds-floating-menu-multiselect-checked-state-layer-color","",l.contentActionPrimary),multiselectCheckedColor:t.extend("--ftds-floating-menu-multiselect-checked-color","",l.contentGlobalPrimary),multiselectCheckedIconColor:t.extend("--ftds-floating-menu-multiselect-checked-icon-color","",l.contentActionPrimary),multiselectCheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-checked-default-state-layer-opacity","",i.opacity8),multiselectCheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-checked-hover-state-layer-opacity","",i.opacity16),multiselectCheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-checked-focus-state-layer-opacity","",i.opacity24),multiselectIndeterminatedStateLayerColor:t.extend("--ftds-floating-menu-multiselect-indeterminated-state-layer-color","",l.contentActionPrimary),multiselectIndeterminatedColor:t.extend("--ftds-floating-menu-multiselect-indeterminated-color","",l.contentGlobalPrimary),multiselectIndeterminatedIconColor:t.extend("--ftds-floating-menu-multiselect-indeterminated-icon-color","",l.contentActionPrimary),multiselectIndeterminatedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-indeterminated-default-state-layer-opacity","",i.opacity8),multiselectIndeterminatedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-indeterminated-hover-state-layer-opacity","",i.opacity16),multiselectIndeterminatedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-indeterminated-focus-state-layer-opacity","",i.opacity24),multiselectUncheckedStateLayerColor:t.extend("--ftds-floating-menu-multiselect-unchecked-state-layer-color","",l.contentGlobalPrimary),multiselectUncheckedColor:t.extend("--ftds-floating-menu-multiselect-unchecked-color","",l.contentGlobalPrimary),multiselectUncheckedIconColor:t.extend("--ftds-floating-menu-multiselect-unchecked-icon-color","",l.contentGlobalSubtle),multiselectUncheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-unchecked-default-state-layer-opacity","",i.opacity0),multiselectUncheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-unchecked-hover-state-layer-opacity","",i.opacity8),multiselectUncheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-multiselect-unchecked-focus-state-layer-opacity","",i.opacity16),selectAllCheckedStateLayerColor:t.extend("--ftds-floating-menu-select-all-checked-state-layer-color","",l.contentActionPrimary),selectAllCheckedColor:t.extend("--ftds-floating-menu-select-all-checked-color","",l.contentGlobalPrimary),selectAllCheckedIconColor:t.extend("--ftds-floating-menu-select-all-checked-icon-color","",l.contentActionPrimary),selectAllCheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-checked-default-state-layer-opacity","",i.opacity0),selectAllCheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-checked-hover-state-layer-opacity","",i.opacity16),selectAllCheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-checked-focus-state-layer-opacity","",i.opacity24),selectAllIndeterminatedStateLayerColor:t.extend("--ftds-floating-menu-select-all-indeterminated-state-layer-color","",l.contentGlobalPrimary),selectAllIndeterminatedColor:t.extend("--ftds-floating-menu-select-all-indeterminated-color","",l.contentGlobalPrimary),selectAllIndeterminatedIconColor:t.extend("--ftds-floating-menu-select-all-indeterminated-icon-color","",l.contentActionPrimary),selectAllIndeterminatedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-indeterminated-default-state-layer-opacity","",i.opacity0),selectAllIndeterminatedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-indeterminated-hover-state-layer-opacity","",i.opacity8),selectAllIndeterminatedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-indeterminated-focus-state-layer-opacity","",i.opacity16),selectAllUncheckedStateLayerColor:t.extend("--ftds-floating-menu-select-all-unchecked-state-layer-color","",l.contentGlobalPrimary),selectAllUncheckedColor:t.extend("--ftds-floating-menu-select-all-unchecked-color","",l.contentGlobalPrimary),selectAllUncheckedIconColor:t.extend("--ftds-floating-menu-select-all-unchecked-icon-color","",l.contentGlobalSubtle),selectAllUncheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-unchecked-default-state-layer-opacity","",i.opacity0),selectAllUncheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-unchecked-hover-state-layer-opacity","",i.opacity8),selectAllUncheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-select-all-unchecked-focus-state-layer-opacity","",i.opacity16),defaultUncheckedStateLayerColor:t.extend("--ftds-floating-menu-default-unchecked-state-layer-color","",l.contentGlobalPrimary),defaultUncheckedColor:t.extend("--ftds-floating-menu-default-unchecked-color","",l.contentGlobalPrimary),defaultUncheckedIconColor:t.extend("--ftds-floating-menu-default-unchecked-icon-color","",l.contentGlobalSubtle),defaultUncheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-default-unchecked-default-state-layer-opacity","",i.opacity0),defaultUncheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-default-unchecked-hover-state-layer-opacity","",i.opacity8),defaultUncheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-default-unchecked-focus-state-layer-opacity","",i.opacity16),defaultCheckedStateLayerColor:t.extend("--ftds-floating-menu-default-checked-state-layer-color","",l.contentActionPrimary),defaultCheckedColor:t.extend("--ftds-floating-menu-default-checked-color","",l.contentActionPrimary),defaultCheckedIconColor:t.extend("--ftds-floating-menu-default-checked-icon-color","",l.contentActionPrimary),defaultCheckedDefaultStateLayerOpacity:t.extend("--ftds-floating-menu-default-checked-default-state-layer-opacity","",i.opacity8),defaultCheckedHoverStateLayerOpacity:t.extend("--ftds-floating-menu-default-checked-hover-state-layer-opacity","",i.opacity16),defaultCheckedFocusStateLayerOpacity:t.extend("--ftds-floating-menu-default-checked-focus-state-layer-opacity","",i.opacity24)};var wy={menuVerticalGap:t.extend("--ftds-combobox-menu-vertical-gap","",i.spacing2),menuNewValuePaddingTop:t.extend("--ftds-combobox-menu-new-value-padding-top","",i.spacing4),menuNewValuePaddingBottom:t.extend("--ftds-combobox-menu-new-value-padding-bottom","",i.spacing1),menuNewValueHorizontalPadding:t.extend("--ftds-combobox-menu-new-value-horizontal-padding","",i.spacing4),menuNewValueLabelColor:t.extend("--ftds-combobox-menu-new-value-label-color","",l.contentGlobalSubtle),menuNewValueBorderColor:t.extend("--ftds-combobox-menu-new-value-border-color","",l.borderGlobalPrimary),menuNewValueBorderWidth:t.create("--ftds-combobox-menu-new-value-border-width","","SIZE","1px"),menuNewValueErrorBackgroundColor:t.extend("--ftds-combobox-menu-new-value-error-background-color","",l.backgroundErrorSubtle),menuNewValueErrorBorderColor:t.extend("--ftds-combobox-menu-new-value-error-border-color","",l.borderErrorPrimary),menuNewValueErrorStateLayerColor:t.extend("--ftds-combobox-menu-new-value-error-state-layer-color","",l.contentActionPrimary),menuNewValueErrorHoverStateLayerOpacity:t.extend("--ftds-combobox-menu-new-value-error-hover-state-layer-opacity","",i.opacity4),menuNewValueErrorActiveStateLayerOpacity:t.extend("--ftds-combobox-menu-new-value-error-active-state-layer-opacity","",i.opacity6),menuMessagePaddingTop:t.extend("--ftds-combobox-menu-message-padding-top","",i.spacing2),menuMessagePaddingBottom:t.extend("--ftds-combobox-menu-message-padding-bottom","",i.spacing2),menuMessageHorizontalPadding:t.extend("--ftds-combobox-menu-message-horizontal-padding","",i.spacing4),menuMessageLabelColor:t.extend("--ftds-combobox-menu-message-label-color","",l.contentGlobalSubtle),valuesChipBackgroundColor:t.extend("--ftds-combobox-values-chip-background-color","",l.backgroundGlobalOnSurface),valuesChipBorderColor:t.extend("--ftds-combobox-values-chip-border-color","",l.borderInputPrimary)};var ky={backgroundColor:t.extend("--ftds-popover-background-color","",l.backgroundGlobalOnSurface),titleColor:t.extend("--ftds-popover-title-color","",l.contentGlobalPrimary),bodyColor:t.extend("--ftds-popover-body-color","",l.contentGlobalSecondary),gap:t.extend("--ftds-popover-gap","",i.spacing2),borderRadius:t.extend("--ftds-popover-border-radius","",i.borderRadiusM),shadow:t.extend("--ftds-popover-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-popover-max-width","","SIZE","440px"),minWidth:t.create("--ftds-popover-min-width","","SIZE","160px"),maxHeight:t.create("--ftds-popover-max-height","","SIZE","0.16vh"),contentSectionVerticalGap:t.extend("--ftds-popover-content-section-vertical-gap","",i.spacing2),multiSectionVerticalGap:t.extend("--ftds-popover-multi-section-vertical-gap","",i.spacing6),defaultHorizontalPadding:t.extend("--ftds-popover-default-horizontal-padding","",i.spacing6),defaultVerticalPadding:t.extend("--ftds-popover-default-vertical-padding","",i.spacing6),denseHorizontalPadding:t.extend("--ftds-popover-dense-horizontal-padding","",i.spacing3),denseVerticalPadding:t.extend("--ftds-popover-dense-vertical-padding","",i.spacing3)};var My={hoverStateLayerOpacity:t.extend("--ftds-collapsible-hover-state-layer-opacity","",i.opacity8),focusStateLayerOpacity:t.extend("--ftds-collapsible-focus-state-layer-opacity","",i.opacity8),focusOutlineWidth:t.create("--ftds-collapsible-focus-outline-width","","SIZE","3px"),focusFocusRingColor:t.extend("--ftds-collapsible-focus-focus-ring-color","",l.borderActionFocusRing),activeStateLayerOpacity:t.extend("--ftds-collapsible-active-state-layer-opacity","",i.opacity16),disabledComponentOpacity:t.extend("--ftds-collapsible-disabled-component-opacity","",i.opacity40),horizontalPadding:t.extend("--ftds-collapsible-horizontal-padding","",i.spacing4),verticalPadding:t.extend("--ftds-collapsible-vertical-padding","",i.spacing3),color:t.extend("--ftds-collapsible-color","",l.contentGlobalPrimary),stateLayerColor:t.extend("--ftds-collapsible-state-layer-color","",l.contentGlobalPrimary),backgroundColor:t.extend("--ftds-collapsible-background-color","",l.backgroundGlobalOnSurface),borderColor:t.extend("--ftds-collapsible-border-color","",l.borderGlobalSubtle),iconSize:t.extend("--ftds-collapsible-icon-size","",i.iconSize3)};var zy={groupHorizontalPadding:t.extend("--ftds-switch-group-horizontal-padding","",i.spacing1),groupVerticalPadding:t.extend("--ftds-switch-group-vertical-padding","",i.spacing1),groupGap:t.extend("--ftds-switch-group-gap","",i.spacing1),groupBackgroundColor:t.extend("--ftds-switch-group-background-color","",l.backgroundGlobalSurface),groupBorderColor:t.extend("--ftds-switch-group-border-color","",l.borderGlobalSubtle),groupBorderRadius:t.create("--ftds-switch-group-border-radius","","SIZE","6px"),labelHorizontalPadding:t.extend("--ftds-switch-label-horizontal-padding","",i.spacing2),labelVerticalPadding:t.extend("--ftds-switch-label-vertical-padding","",i.spacing1),offHoverStateLayerOpacity:t.extend("--ftds-switch-off-hover-state-layer-opacity","",i.opacity8),offFocusStateLayerOpacity:t.extend("--ftds-switch-off-focus-state-layer-opacity","",i.opacity8),offActiveStateLayerOpacity:t.extend("--ftds-switch-off-active-state-layer-opacity","",i.opacity16),offDisabledComponentOpacity:t.extend("--ftds-switch-off-disabled-component-opacity","",i.opacity40),offColor:t.extend("--ftds-switch-off-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-switch-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-switch-on-hover-state-layer-opacity","",i.opacity8),onFocusStateLayerOpacity:t.extend("--ftds-switch-on-focus-state-layer-opacity","",i.opacity8),onActiveStateLayerOpacity:t.extend("--ftds-switch-on-active-state-layer-opacity","",i.opacity16),onDisabledComponentOpacity:t.extend("--ftds-switch-on-disabled-component-opacity","",i.opacity40),onColor:t.extend("--ftds-switch-on-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-switch-on-state-layer-color","",l.contentActionPrimary),iconHorizontalPadding:t.extend("--ftds-switch-icon-horizontal-padding","",i.spacing1),iconVerticalPadding:t.extend("--ftds-switch-icon-vertical-padding","",i.spacing1),focusOutlineWidth:t.create("--ftds-switch-focus-outline-width","","SIZE","2px"),focusFocusRingColor:t.extend("--ftds-switch-focus-focus-ring-color","",l.borderActionFocusRing),optionBorderRadius:t.extend("--ftds-switch-option-border-radius","",i.borderRadiusS)};var jy={color1Light:t.extend("--ftds-chart-1-light","for area color charts",i.colorBrand40),color1Base:t.extend("--ftds-chart-1-base","for line charts",i.colorBrand0),color2Light:t.extend("--ftds-chart-2-light","for area color charts",i.colorYellow60),color2Base:t.extend("--ftds-chart-2-base","for line charts",i.colorYellow100),color3Light:t.extend("--ftds-chart-3-light","",i.colorUltramarine40),color3Base:t.extend("--ftds-chart-3-base","",i.colorUltramarine70),color4Light:t.extend("--ftds-chart-4-light","",i.colorCyan50),color4Base:t.extend("--ftds-chart-4-base","",i.colorCyan100),color5Light:t.extend("--ftds-chart-5-light","",i.colorRed40),color5Base:t.extend("--ftds-chart-5-base","",i.colorRed60),color6Light:t.extend("--ftds-chart-6-light","",i.colorGreen40),color6Base:t.extend("--ftds-chart-6-base","",i.colorGreen70),color7Light:t.extend("--ftds-chart-7-light","",i.colorOrange70),color7Base:t.extend("--ftds-chart-7-base","",i.colorOrange100),color8Light:t.extend("--ftds-chart-8-light","",i.colorAvocado70),color8Base:t.extend("--ftds-chart-8-base","",i.colorAvocado200),color9Light:t.extend("--ftds-chart-9-light","",i.colorBrown50),color9Base:t.extend("--ftds-chart-9-base","",i.colorBrown200),color10Light:t.extend("--ftds-chart-10-light","",i.colorGray50),color10Base:t.extend("--ftds-chart-10-base","",i.colorGray80),monochrome10:t.extend("--ftds-chart-monochrome-10","",i.colorBrand10),monochrome20:t.extend("--ftds-chart-monochrome-20","",i.colorBrand20),monochrome30:t.extend("--ftds-chart-monochrome-30","",i.colorBrand40),monochrome40:t.extend("--ftds-chart-monochrome-40","",i.colorBrand60),monochrome50:t.extend("--ftds-chart-monochrome-50","",i.colorBrand0),monochrome60:t.extend("--ftds-chart-monochrome-60","",i.colorBrand200),scatterplotQuadrantPopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-old-background-color","",i.colorYellow10),scatterplotQuadrantPopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-popular-new-background-color","",i.colorAvocado10),scatterplotQuadrantUnpopularOldBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-old-background-color","",i.colorRed10),scatterplotQuadrantUnpopularNewBackgroundColor:t.extend("--ftds-chart-scatterplot-quadrant-unpopular-new-background-color","",i.colorCyan10),scatterplotDatapointInitialDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-color","",i.colorBrand70),scatterplotDatapointInitialDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-initial-default-background-opacity","",i.opacity48),scatterplotDatapointInitialHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-initial-hover-background-color","",i.colorBrand0),scatterplotDatapointSelectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-default-background-color","",i.colorBrand100),scatterplotDatapointSelectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-selected-hover-background-color","",i.colorBrand200),scatterplotDatapointUnselectedDefaultBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-color","",i.colorGray60),scatterplotDatapointUnselectedDefaultBackgroundOpacity:t.extend("--ftds-chart-scatterplot-datapoint-unselected-default-background-opacity","",i.opacity48),scatterplotDatapointUnselectedHoverBackgroundColor:t.extend("--ftds-chart-scatterplot-datapoint-unselected-hover-background-color","",i.colorGray70),scatterplotDatapointHoverHoverRingColor:t.extend("--ftds-chart-scatterplot-datapoint-hover-hover-ring-color","",i.colorCyan200)};var qy={color1IconColor:t.extend("--ftds-page-designer-1-icon-color","for area color charts",i.colorCyan0),color1ToolbarColor:t.extend("--ftds-page-designer-1-toolbar-color","for area color charts",i.colorCyan0),color2IconColor:t.extend("--ftds-page-designer-2-icon-color","for area color charts",i.colorBrand0),color2ToolbarColor:t.extend("--ftds-page-designer-2-toolbar-color","for area color charts",i.colorBrand0),color3IconColor:t.extend("--ftds-page-designer-3-icon-color","for area color charts",i.colorYellow200),color3ToolbarColor:t.extend("--ftds-page-designer-3-toolbar-color","for area color charts",i.colorYellow200),color4IconColor:t.extend("--ftds-page-designer-4-icon-color","for area color charts",i.colorUltramarine50),color4ToolbarColor:t.extend("--ftds-page-designer-4-toolbar-color","for area color charts",i.colorUltramarine50),color5IconColor:t.extend("--ftds-page-designer-5-icon-color","for area color charts",i.colorGreen0),color5ToolbarColor:t.extend("--ftds-page-designer-5-toolbar-color","for area color charts",i.colorGreen0),color6IconColor:t.extend("--ftds-page-designer-6-icon-color","for area color charts",i.colorOrange0),color6ToolbarColor:t.extend("--ftds-page-designer-6-toolbar-color","for area color charts",i.colorOrange0),color7IconColor:t.extend("--ftds-page-designer-7-icon-color","for area color charts",i.colorAvocado200),color7ToolbarColor:t.extend("--ftds-page-designer-7-toolbar-color","for area color charts",i.colorAvocado200),color8IconColor:t.extend("--ftds-page-designer-8-icon-color","for area color charts",i.colorBrown0),color8ToolbarColor:t.extend("--ftds-page-designer-8-toolbar-color","for area color charts",i.colorBrown0)};var em={borderWidth:t.create("--ftds-notice-border-width","","SIZE","1px"),horizontalPadding:t.extend("--ftds-notice-horizontal-padding","",i.spacing3),verticalPadding:t.extend("--ftds-notice-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-notice-border-radius","",i.borderRadiusS),gap:t.extend("--ftds-notice-gap","",i.spacing2),iconSize:t.extend("--ftds-notice-icon-size","",i.iconSize3),infoBackgroundColor:t.extend("--ftds-notice-info-background-color","",l.backgroundInfoSubtle),infoBorderColor:t.extend("--ftds-notice-info-border-color","",l.borderInfoSubtle),infoColor:t.extend("--ftds-notice-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notice-info-icon-color","",l.contentInfoIconOnly),warningBackgroundColor:t.extend("--ftds-notice-warning-background-color","",l.backgroundWarningSubtle),warningBorderColor:t.extend("--ftds-notice-warning-border-color","",l.borderWarningSubtle),warningColor:t.extend("--ftds-notice-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notice-warning-icon-color","",l.contentWarningIconOnly),errorBackgroundColor:t.extend("--ftds-notice-error-background-color","",l.backgroundErrorSubtle),errorBorderColor:t.extend("--ftds-notice-error-border-color","",l.borderErrorSubtle),errorColor:t.extend("--ftds-notice-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notice-error-icon-color","",l.contentErrorIconOnly),successBackgroundColor:t.extend("--ftds-notice-success-background-color","",l.backgroundSuccessSubtle),successBorderColor:t.extend("--ftds-notice-success-border-color","",l.borderSuccessSubtle),successColor:t.extend("--ftds-notice-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notice-success-icon-color","",l.contentSuccessIconOnly),denseHorizontalPadding:t.create("--ftds-notice-dense-horizontal-padding","","SIZE","0px"),denseVerticalPadding:t.create("--ftds-notice-dense-vertical-padding","","SIZE","0px"),denseGap:t.extend("--ftds-notice-dense-gap","",i.spacing1),denseIconSize:t.extend("--ftds-notice-dense-icon-size","",i.iconSize2),denseBorderWidth:t.create("--ftds-notice-dense-border-width","","SIZE","0")};var am={offHoverStateLayerOpacity:t.extend("--ftds-toggle-off-hover-state-layer-opacity","",i.opacity16),offFocusStateLayerOpacity:t.extend("--ftds-toggle-off-focus-state-layer-opacity","",i.opacity16),offActiveStateLayerOpacity:t.extend("--ftds-toggle-off-active-state-layer-opacity","",i.opacity24),offDisabledComponentOpacity:t.extend("--ftds-toggle-off-disabled-component-opacity","",i.opacity40),offBackgroundColor:t.extend("--ftds-toggle-off-background-color","",l.contentGlobalSubtle),offIconColor:t.extend("--ftds-toggle-off-icon-color","",l.contentGlobalSubtle),offStateLayerColor:t.extend("--ftds-toggle-off-state-layer-color","",l.contentGlobalSubtle),onHoverStateLayerOpacity:t.extend("--ftds-toggle-on-hover-state-layer-opacity","",i.opacity16),onFocusStateLayerOpacity:t.extend("--ftds-toggle-on-focus-state-layer-opacity","",i.opacity16),onActiveStateLayerOpacity:t.extend("--ftds-toggle-on-active-state-layer-opacity","",i.opacity24),onDisabledComponentOpacity:t.extend("--ftds-toggle-on-disabled-component-opacity","",i.opacity40),onBackgroundColor:t.extend("--ftds-toggle-on-background-color","",l.contentActionPrimary),onStateLayerColor:t.extend("--ftds-toggle-on-state-layer-color","",l.contentActionPrimary),onIconColor:t.extend("--ftds-toggle-on-icon-color","",l.contentActionPrimary),color:t.extend("--ftds-toggle-color","",l.contentGlobalPrimary),focusFocusRingColor:t.extend("--ftds-toggle-focus-focus-ring-color","",l.borderActionFocusRing),gap:t.extend("--ftds-toggle-gap","",i.spacing3)};var dm={iconSize:t.extend("--ftds-notification-icon-size","",i.iconSize4),leftPadding:t.extend("--ftds-notification-left-padding","",i.spacing5),rightPadding:t.extend("--ftds-notification-right-padding","",i.spacing4),verticalPadding:t.extend("--ftds-notification-vertical-padding","",i.spacing3),infoBackgroundColor:t.extend("--ftds-notification-info-background-color","",l.backgroundInfoSubtle),infoColor:t.extend("--ftds-notification-info-color","",l.contentInfoPrimary),infoIconColor:t.extend("--ftds-notification-info-icon-color","",l.contentInfoIconOnly),infoBorderColor:t.extend("--ftds-notification-info-border-color","",l.borderInfoSubtle),successBackgroundColor:t.extend("--ftds-notification-success-background-color","",l.backgroundSuccessSubtle),successColor:t.extend("--ftds-notification-success-color","",l.contentSuccessPrimary),successIconColor:t.extend("--ftds-notification-success-icon-color","",l.contentSuccessIconOnly),successBorderColor:t.extend("--ftds-notification-success-border-color","",l.borderSuccessSubtle),warningBackgroundColor:t.extend("--ftds-notification-warning-background-color","",l.backgroundWarningSubtle),warningColor:t.extend("--ftds-notification-warning-color","",l.contentWarningPrimary),warningIconColor:t.extend("--ftds-notification-warning-icon-color","",l.contentWarningIconOnly),warningBorderColor:t.extend("--ftds-notification-warning-border-color","",l.borderWarningSubtle),errorBackgroundColor:t.extend("--ftds-notification-error-background-color","",l.backgroundErrorSubtle),errorColor:t.extend("--ftds-notification-error-color","",l.contentErrorPrimary),errorIconColor:t.extend("--ftds-notification-error-icon-color","",l.contentErrorIconOnly),errorBorderColor:t.extend("--ftds-notification-error-border-color","",l.borderErrorSubtle),borderRadius:t.extend("--ftds-notification-border-radius","",i.borderRadiusPill),borderWidth:t.create("--ftds-notification-border-width","","SIZE","1px"),leadingGap:t.extend("--ftds-notification-leading-gap","",i.spacing2),trailingGap:t.extend("--ftds-notification-trailing-gap","",i.spacing8)};var gm={horizontalPadding:t.extend("--ftds-tooltip-horizontal-padding","",i.spacing2),verticalPadding:t.extend("--ftds-tooltip-vertical-padding","",i.spacing2),borderRadius:t.extend("--ftds-tooltip-border-radius","",i.borderRadiusS),color:t.extend("--ftds-tooltip-color","",l.contentGlobalOnColor),backgroundColor:t.extend("--ftds-tooltip-background-color","",l.contentGlobalPrimary),backgroundOpacity:t.extend("--ftds-tooltip-background-opacity","",i.opacity80),shadow:t.extend("--ftds-tooltip-shadow","",i.shadowElevation02),maxWidth:t.create("--ftds-tooltip-max-width","","SIZE","256px"),gap:t.extend("--ftds-tooltip-gap","",i.spacing05)};var xm={verticalPadding:t.extend("--ftds-reorderable-list-vertical-padding","",i.spacing4),gap:t.extend("--ftds-reorderable-list-gap","",i.spacing1),borderRadius:t.extend("--ftds-reorderable-list-border-radius","",i.borderRadiusM),reorderableItemTitleMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-title-margin-right","",i.spacing6),reorderableItemTitleColor:t.extend("--ftds-reorderable-list-reorderable-item-title-color","",l.contentGlobalPrimary),reorderableItemLeftButtonsGroupMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-margin-right","",i.spacing6),reorderableItemLeftButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-left-buttons-group-horizontal-gap","",i.spacing2),reorderableItemRightButtonsGroupHorizontalGap:t.extend("--ftds-reorderable-list-reorderable-item-right-buttons-group-horizontal-gap","",i.spacing2),reorderableItemUsersCountColor:t.extend("--ftds-reorderable-list-reorderable-item-users-count-color","",l.contentGlobalPrimary),reorderableItemUsersCountMarginRight:t.extend("--ftds-reorderable-list-reorderable-item-users-count-margin-right","",i.spacing6),reorderableItemBackgroundColor:t.extend("--ftds-reorderable-list-reorderable-item-background-color","",l.backgroundGlobalOnSurface),reorderableItemWarningMessageGap:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-gap","",i.spacing1),reorderableItemWarningMessageColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-color","",l.contentWarningPrimary),reorderableItemWarningMessageIconColor:t.extend("--ftds-reorderable-list-reorderable-item-warning-message-icon-color","",l.contentWarningIconOnly),reorderableItemGripColor:t.extend("--ftds-reorderable-list-reorderable-item-grip-color","",l.contentGlobalSecondary),reorderableItemGripOpacity:t.extend("--ftds-reorderable-list-reorderable-item-grip-opacity","",i.opacity48),boxShadow:t.extend("--ftds-reorderable-list-box-shadow","",i.shadowElevation01),borderWidth:t.create("--ftds-reorderable-list-border-width","","SIZE","1px"),reorderableItemsGap:t.extend("--ftds-reorderable-list-reorderable-items-gap","",i.spacing2),leftPadding:t.extend("--ftds-reorderable-list-left-padding","",i.spacing2),rightPadding:t.extend("--ftds-reorderable-list-right-padding","",i.spacing6),borderColor:t.extend("--ftds-reorderable-list-border-color","",l.borderGlobalPrimary),backgroundColor:t.extend("--ftds-reorderable-list-background-color","",l.backgroundGlobalOnSurfaceDark)};var Em={menuHorizontalPadding:t.extend("--ftds-date-range-picker-menu-horizontal-padding","",i.spacing4),menuVerticalPadding:t.extend("--ftds-date-range-picker-menu-vertical-padding","",i.spacing4),menuVerticalGap:t.extend("--ftds-date-range-picker-menu-vertical-gap","",i.spacing4),menuButtonsVerticalGap:t.extend("--ftds-date-range-picker-menu-buttons-vertical-gap","",i.spacing2)};var Xi;(function(o){o.brand="brand",o.neutral="neutral",o.info="info",o.success="success",o.warning="warning",o.error="error"})(Xi||(Xi={}));var Ji;(function(o){o.large="large",o.medium="medium",o.small="small"})(Ji||(Ji={}));var gt=x(F());function Oc(o,e){let r=Do[o];return gt.css`
184
+ ${e?(0,gt.unsafeCSS)(e):gt.css`.ftds-typography--${(0,gt.unsafeCSS)(o)}`} {
185
185
  font-family: ${r.fontFamily};
186
186
  font-size: ${r.fontSize};
187
187
  font-weight: ${r.fontWeight};
@@ -190,15 +190,15 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
190
190
  text-decoration: ${r.textDecoration};
191
191
  text-transform: ${r.textCase};
192
192
  }
193
- `}var Xi=[Object.keys(No).map(o=>vc(o))];var Ji=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},Be=class extends es.FtLitElement{constructor(){super(...arguments),this.variant=Ir.body2medium}render(){return this.element?ot`
194
- <${rt(this.element)}
193
+ `}var es=[Object.keys(Do).map(o=>Oc(o))];var ts=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},He=class extends rs.FtLitElement{constructor(){super(...arguments),this.variant=Tr.body2medium}render(){return this.element?nt`
194
+ <${ot(this.element)}
195
195
  part="text"
196
196
  class="ftds-typography ftds-typography--${this.variant}">
197
197
  <slot></slot>
198
- </${rt(this.element)}>
199
- `:ot`
198
+ </${ot(this.element)}>
199
+ `:nt`
200
200
  <slot part="text" class="ftds-typography ftds-typography--${this.variant}"></slot>
201
- `}};Be.styles=[...Xi];Ji([(0,Po.property)()],Be.prototype,"element",void 0);Ji([(0,Po.property)()],Be.prototype,"variant",void 0);var rs=x(I());var ts={"ft-typography":Ue,"ftds-typography":Be};(0,rs.customElements)(ts);var wr=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},ne=class extends ns.FtLitElement{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,r,n;return this.watermark?gt.html`
201
+ `}};He.styles=[...es];ts([(0,Mo.property)()],He.prototype,"element",void 0);ts([(0,Mo.property)()],He.prototype,"variant",void 0);var ns=x(w());var os={"ft-typography":Be,"ftds-typography":He};(0,ns.customElements)(os);var Rr=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},ne=class extends is.FtLitElement{constructor(){super(...arguments),this.height=0,this.resizeObserver=new ResizeObserver(([e])=>{this.height=Math.min(e.contentRect.height,e.contentRect.width)})}render(){var e,r,n;return this.watermark?yt.html`
202
202
  <style>
203
203
  .ft-watermark {
204
204
  height: ${this.height}px;
@@ -213,14 +213,14 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
213
213
  transform="rotate(-45)"
214
214
  fill="${(e=this.watermark)===null||e===void 0?void 0:e.color}"
215
215
  fill-opacity="${(r=this.watermark)===null||r===void 0?void 0:r.opacity}%">
216
- ${(0,os.repeat)(((n=this.watermark)===null||n===void 0?void 0:n.text)||[],a=>gt.svg`<tspan x="0" dy="1.2em">${a}</tspan>`)}
216
+ ${(0,as.repeat)(((n=this.watermark)===null||n===void 0?void 0:n.text)||[],a=>yt.svg`<tspan x="0" dy="1.2em">${a}</tspan>`)}
217
217
  </text>
218
218
  </svg>
219
219
  </div>
220
- `:gt.nothing}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let r=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",r.x+" "+r.y+" "+r.width+" "+r.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};ne.styles=[ai,Er];wr([(0,He.query)(".ft-watermark")],ne.prototype,"svg",void 0);wr([(0,He.property)({attribute:!1})],ne.prototype,"watermark",void 0);wr([(0,He.property)({attribute:!1})],ne.prototype,"heightReference",void 0);wr([(0,He.state)()],ne.prototype,"height",void 0);var is=x(I());var as={"ft-content-watermark":ne};(0,is.customElements)(as);var ae=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},U=class extends Ge{constructor(){super(...arguments),this.renderTopic=()=>Tr.html`
220
+ `:yt.nothing}updated(e){if(super.updated(e),e.has("watermark")&&this.watermark){let r=this.svg.getBBox({stroke:!0});this.svg.setAttribute("viewBox",r.x+" "+r.y+" "+r.width+" "+r.height)}e.has("heightReference")&&this.heightReference&&(this.resizeObserver.disconnect(),this.resizeObserver.observe(this.heightReference))}disconnectedCallback(){super.disconnectedCallback(),this.resizeObserver.disconnect()}};ne.styles=[si,Ir];Rr([(0,ze.query)(".ft-watermark")],ne.prototype,"svg",void 0);Rr([(0,ze.property)({attribute:!1})],ne.prototype,"watermark",void 0);Rr([(0,ze.property)({attribute:!1})],ne.prototype,"heightReference",void 0);Rr([(0,ze.state)()],ne.prototype,"height",void 0);var cs=x(w());var ss={"ft-content-watermark":ne};(0,cs.customElements)(ss);var ae=function(o,e,r,n){var a=arguments.length,s=a<3?e:n===null?n=Object.getOwnPropertyDescriptor(e,r):n,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")s=Reflect.decorate(o,e,r,n);else for(var d=o.length-1;d>=0;d--)(c=o[d])&&(s=(a<3?c(s):a>3?c(e,r,s):c(e,r))||s);return a>3&&s&&Object.defineProperty(e,r,s),s},U=class extends We{constructor(){super(...arguments),this.renderTopic=()=>Lr.html`
221
221
  <ft-reader-topic-title></ft-reader-topic-title>
222
222
  <ft-reader-topic-content></ft-reader-topic-content>
223
- `,this.disableContextInteractions=!1,this.headingLevelsShift=0,this.renderBeforeFirst=5,this.renderAfterLast=10,this.renderItem=(e,r)=>this.renderTopicInContext(e,r),this.getItemKey=e=>this.mapId+e,this.renderedTopicsDebouncer=new Y.Debouncer(50),this.visibleTopicsDebouncer=new Y.Debouncer(50)}render(){var e,r;let n=((e=this.currentPage)===null||e===void 0?void 0:e.topics)||[];return Tr.html`
223
+ `,this.disableContextInteractions=!1,this.headingLevelsShift=0,this.renderBeforeFirst=5,this.renderAfterLast=10,this.renderItem=(e,r)=>this.renderTopicInContext(e,r),this.getItemKey=e=>this.mapId+e,this.renderedTopicsDebouncer=new Y.Debouncer(50),this.visibleTopicsDebouncer=new Y.Debouncer(50)}render(){var e,r;let n=((e=this.currentPage)===null||e===void 0?void 0:e.topics)||[];return Lr.html`
224
224
  <ft-infinite-scroll class="ft-reader-content"
225
225
  .items=${n}
226
226
  .renderItem=${this.renderItem}
@@ -239,13 +239,13 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
239
239
  .watermark=${this.watermark}
240
240
  .exportpartsPrefixes=${["watermark"]}
241
241
  .heightReference=${this.offsetParent}></ft-content-watermark>
242
- `}willUpdate(e){var r;super.willUpdate(e),e.has("renderTopic")&&((r=this.contentContainer)===null||r===void 0||r.requestUpdate())}renderTopicInContext(e,r){return Tr.html`
242
+ `}willUpdate(e){var r;super.willUpdate(e),e.has("renderTopic")&&((r=this.contentContainer)===null||r===void 0||r.requestUpdate())}renderTopicInContext(e,r){return Lr.html`
243
243
  <ft-reader-topic-context tocId="${e}"
244
244
  ?disableContextInteractions=${this.disableContextInteractions}
245
245
  headingLevelsShift="${this.headingLevelsShift}">
246
246
  ${this.renderTopic(e,r)}
247
247
  </ft-reader-topic-context>
248
- `}getScrollTarget(){var e,r,n;if(this.disableContextInteractions)return null;let a=(e=this.contentContainer)===null||e===void 0?void 0:e.isRendered((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId);return!((n=this.scrollTarget)===null||n===void 0)&&n.tocId&&(!a||this.scrollTarget.section==null)?this.scrollTarget.tocId:null}renderedTopicChange(e){this.disableContextInteractions||this.renderedTopicsDebouncer.run(()=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setRenderedTopics(e.detail.items)})}visibleTopicChange(e){var r;this.disableContextInteractions||this.visibleTopicsDebouncer.run(()=>{var n;return(n=this.stateManager)===null||n===void 0?void 0:n.setVisibleTopics(e.detail.items)}),(r=this.stateManager)===null||r===void 0||r.store.dispatchEvent(new Event(me.visibleTopicChange))}onScrollDone(){var e,r;!this.disableContextInteractions&&!(!((e=this.scrollTarget)===null||e===void 0)&&e.section)&&((r=this.stateManager)===null||r===void 0||r.scrollDone())}};U.elementDefinitions={"ft-infinite-scroll":_,"ft-content-watermark":ne};U.styles=Xo;ae([(0,Nt.property)()],U.prototype,"renderTopic",void 0);ae([(0,Nt.property)({type:Boolean})],U.prototype,"disableContextInteractions",void 0);ae([(0,Y.numberProperty)()],U.prototype,"headingLevelsShift",void 0);ae([(0,Y.redux)()],U.prototype,"currentPage",void 0);ae([(0,Y.redux)()],U.prototype,"scrollTarget",void 0);ae([(0,Y.redux)()],U.prototype,"visibleTopics",void 0);ae([(0,Y.redux)({selector:o=>{var e,r;return(r=(e=o.configuration)===null||e===void 0?void 0:e.loadBeforeFirstVisibleTopic)!==null&&r!==void 0?r:5}})],U.prototype,"renderBeforeFirst",void 0);ae([(0,Y.redux)({selector:o=>{var e,r;return(r=(e=o.configuration)===null||e===void 0?void 0:e.loadAfterLastVisibleTopic)!==null&&r!==void 0?r:5}})],U.prototype,"renderAfterLast",void 0);ae([(0,Y.redux)()],U.prototype,"mapId",void 0);ae([(0,Nt.query)(".ft-reader-content")],U.prototype,"contentContainer",void 0);ae([(0,Y.redux)({selector:o=>{var e;return(e=o.map)===null||e===void 0?void 0:e.watermark}})],U.prototype,"watermark",void 0);var ss={"ft-reader-content":U};(0,cs.customElements)(ss);})();
248
+ `}getScrollTarget(){var e,r,n;if(this.disableContextInteractions)return null;let a=(e=this.contentContainer)===null||e===void 0?void 0:e.isRendered((r=this.scrollTarget)===null||r===void 0?void 0:r.tocId);return!((n=this.scrollTarget)===null||n===void 0)&&n.tocId&&(!a||this.scrollTarget.section==null)?this.scrollTarget.tocId:null}renderedTopicChange(e){this.disableContextInteractions||this.renderedTopicsDebouncer.run(()=>{var r;return(r=this.stateManager)===null||r===void 0?void 0:r.setRenderedTopics(e.detail.items)})}visibleTopicChange(e){var r;this.disableContextInteractions||this.visibleTopicsDebouncer.run(()=>{var n;return(n=this.stateManager)===null||n===void 0?void 0:n.setVisibleTopics(e.detail.items)}),(r=this.stateManager)===null||r===void 0||r.store.dispatchEvent(new Event(me.visibleTopicChange))}onScrollDone(){var e,r;!this.disableContextInteractions&&!(!((e=this.scrollTarget)===null||e===void 0)&&e.section)&&((r=this.stateManager)===null||r===void 0||r.scrollDone())}};U.elementDefinitions={"ft-infinite-scroll":_,"ft-content-watermark":ne};U.styles=en;ae([(0,Dt.property)()],U.prototype,"renderTopic",void 0);ae([(0,Dt.property)({type:Boolean})],U.prototype,"disableContextInteractions",void 0);ae([(0,Y.numberProperty)()],U.prototype,"headingLevelsShift",void 0);ae([(0,Y.redux)()],U.prototype,"currentPage",void 0);ae([(0,Y.redux)()],U.prototype,"scrollTarget",void 0);ae([(0,Y.redux)()],U.prototype,"visibleTopics",void 0);ae([(0,Y.redux)({selector:o=>{var e,r;return(r=(e=o.configuration)===null||e===void 0?void 0:e.loadBeforeFirstVisibleTopic)!==null&&r!==void 0?r:5}})],U.prototype,"renderBeforeFirst",void 0);ae([(0,Y.redux)({selector:o=>{var e,r;return(r=(e=o.configuration)===null||e===void 0?void 0:e.loadAfterLastVisibleTopic)!==null&&r!==void 0?r:5}})],U.prototype,"renderAfterLast",void 0);ae([(0,Y.redux)()],U.prototype,"mapId",void 0);ae([(0,Dt.query)(".ft-reader-content")],U.prototype,"contentContainer",void 0);ae([(0,Y.redux)({selector:o=>{var e;return(e=o.map)===null||e===void 0?void 0:e.watermark}})],U.prototype,"watermark",void 0);var ls={"ft-reader-content":U};(0,ds.customElements)(ls);})();
249
249
  /*! Bundled license information:
250
250
 
251
251
  @lit/reactive-element/css-tag.js:
@@ -255,6 +255,19 @@ Also for action icons.`,i.colorGray200),contentGlobalSubtle:t.extend("--ftds-con
255
255
  * SPDX-License-Identifier: BSD-3-Clause
256
256
  *)
257
257
 
258
+ @lit/context/lib/context-request-event.js:
259
+ @lit/context/lib/create-context.js:
260
+ @lit/context/lib/controllers/context-consumer.js:
261
+ @lit/context/lib/value-notifier.js:
262
+ @lit/context/lib/controllers/context-provider.js:
263
+ @lit/context/lib/context-root.js:
264
+ (**
265
+ * @license
266
+ * Copyright 2021 Google LLC
267
+ * SPDX-License-Identifier: BSD-3-Clause
268
+ *)
269
+
270
+ @lit/context/lib/decorators/provide.js:
258
271
  lit-html/lit-html.js:
259
272
  (**
260
273
  * @license
@@ -262,6 +275,13 @@ lit-html/lit-html.js:
262
275
  * SPDX-License-Identifier: BSD-3-Clause
263
276
  *)
264
277
 
278
+ @lit/context/lib/decorators/consume.js:
279
+ (**
280
+ * @license
281
+ * Copyright 2022 Google LLC
282
+ * SPDX-License-Identifier: BSD-3-Clause
283
+ *)
284
+
265
285
  lit-html/static.js:
266
286
  (**
267
287
  * @license