@fluid-topics/ft-reader-navigation-button 1.1.102 → 1.1.104

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.
@@ -15,7 +15,7 @@
15
15
  ft-reader-internal-link {
16
16
  ${(0,xo.setVariable)(_e.outlineColor,"transparent")}
17
17
  }
18
- `;var ao=y(w());var ge=y(Q()),An=y(w());var xr=y(B()),O=y(w());var wo=y(B()),W=y(w()),So=W.FtCssVariableFactory.extend("--ft-ripple-color","",W.designSystemVariables.colorContent),N={color:So,backgroundColor:W.FtCssVariableFactory.extend("--ft-ripple-background-color","",So),opacityContentOnSurfacePressed:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:W.FtCssVariableFactory.external(W.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:W.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Co=W.FtCssVariableFactory.extend("--ft-ripple-color","",W.designSystemVariables.colorPrimary),vo={color:Co,backgroundColor:W.FtCssVariableFactory.extend("--ft-ripple-background-color","",Co)},No=W.FtCssVariableFactory.extend("--ft-ripple-color","",W.designSystemVariables.colorSecondary),Eo={color:No,backgroundColor:W.FtCssVariableFactory.extend("--ft-ripple-background-color","",No)},Ro=wo.css`
18
+ `;var ao=y(w());var ge=y(Q()),An=y(w());var xr=y(B()),O=y(w());var wo=y(B()),I=y(w()),So=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorContent),N={color:So,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",So),opacityContentOnSurfacePressed:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:I.FtCssVariableFactory.external(I.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:I.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},Co=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorPrimary),vo={color:Co,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",Co)},No=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorSecondary),Eo={color:No,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",No)},Ro=wo.css`
19
19
  :host {
20
20
  display: contents;
21
21
  }
@@ -232,7 +232,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
232
232
  .ft-typography {
233
233
  vertical-align: inherit;
234
234
  }
235
- `,fr=[Object.keys(be).map(e=>Qo(e))];var gr=y(B()),te=y(w()),M={color:te.FtCssVariableFactory.extend("--ft-loader-color","",te.designSystemVariables.colorPrimary),size:te.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ur=gr.css`
235
+ `,fr=[Object.keys(be).map(e=>Qo(e))];var gr=y(B()),te=y(w()),Z={color:te.FtCssVariableFactory.extend("--ft-loader-color","",te.designSystemVariables.colorPrimary),size:te.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},ur=gr.css`
236
236
  :host {
237
237
  line-height: 0;
238
238
  }
@@ -241,8 +241,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
241
241
  display: inline-block;
242
242
  position: relative;
243
243
 
244
- width: ${M.size};
245
- height: ${M.size};
244
+ width: ${Z.size};
245
+ height: ${Z.size};
246
246
  }
247
247
 
248
248
  .ft-loader div {
@@ -251,7 +251,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
251
251
  width: 25%;
252
252
  height: 25%;
253
253
  border-radius: 50%;
254
- background: ${M.color};
254
+ background: ${Z.color};
255
255
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
256
256
  }
257
257
 
@@ -298,10 +298,10 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
298
298
  transform: translate(0, 0);
299
299
  }
300
300
  100% {
301
- transform: translate(calc(0.35 * ${M.size}), 0);
301
+ transform: translate(calc(0.35 * ${Z.size}), 0);
302
302
  }
303
303
  }
304
- `;var mr=y(B()),gt=y(w()),Z={size:gt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:gt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",gt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:gt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",gt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:gt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",gt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:gt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},yr=mr.css`
304
+ `;var mr=y(B()),gt=y(w()),K={size:gt.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:gt.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",gt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:gt.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",gt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:gt.FtCssVariableFactory.extend("--ft-icon-material-font-family","",gt.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:gt.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},yr=mr.css`
305
305
  :host, i.ft-icon {
306
306
  display: inline-flex;
307
307
  align-items: center;
@@ -310,14 +310,14 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
310
310
  }
311
311
 
312
312
  :host {
313
- width: ${Z.size};
314
- height: ${Z.size};
313
+ width: ${K.size};
314
+ height: ${K.size};
315
315
  }
316
316
 
317
317
  i.ft-icon {
318
318
  width: 100%;
319
319
  height: 100%;
320
- font-size: ${Z.size};
320
+ font-size: ${K.size};
321
321
  line-height: 1;
322
322
  font-weight: normal;
323
323
  text-transform: none;
@@ -328,26 +328,26 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
328
328
  text-rendering: auto;
329
329
  -webkit-font-smoothing: antialiased;
330
330
  -moz-osx-font-smoothing: grayscale;
331
- vertical-align: ${Z.verticalAlign};
331
+ vertical-align: ${K.verticalAlign};
332
332
  }
333
333
 
334
334
  i.ft-icon.ft-icon--fluid-topics {
335
- font-family: ${Z.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
335
+ font-family: ${K.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
336
336
 
337
337
  /* Ugly fix because font is broken */
338
- font-size: calc(0.75 * ${Z.size});
339
- line-height: ${Z.size};
338
+ font-size: calc(0.75 * ${K.size});
339
+ line-height: ${K.size};
340
340
  position: relative;
341
341
  top: -4%;
342
342
  justify-content: center;
343
343
  }
344
344
 
345
345
  .ft-icon--file-format {
346
- font-family: ${Z.fileFormatFontFamily}, ft-mime, sans-serif;
346
+ font-family: ${K.fileFormatFontFamily}, ft-mime, sans-serif;
347
347
  }
348
348
 
349
349
  .ft-icon--material {
350
- font-family: ${Z.materialFontFamily}, "Material Icons", sans-serif;
350
+ font-family: ${K.materialFontFamily}, "Material Icons", sans-serif;
351
351
  }
352
352
  `;var hr=O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorPrimary),_={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorSurface),borderRadius:O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusL),color:hr,fontSize:O.FtCssVariableFactory.extend("--ft-button-font-size","",it.fontSize),iconSize:O.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:O.FtCssVariableFactory.extend("--ft-button-ripple-color","",hr),verticalPadding:O.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:O.FtCssVariableFactory.external(O.designSystemVariables.colorOpacityDisabled,"Design system")},br=O.FtCssVariableFactory.extend("--ft-button-primary-color","",O.FtCssVariableFactory.extend("--ft-button-color","",O.designSystemVariables.colorOnPrimary)),He={backgroundColor:O.FtCssVariableFactory.extend("--ft-button-primary-background-color","",O.FtCssVariableFactory.extend("--ft-button-background-color","",O.designSystemVariables.colorPrimary)),color:br,rippleColor:O.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",br)},lt={borderRadius:O.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",O.FtCssVariableFactory.extend("--ft-button-border-radius","",O.designSystemVariables.borderRadiusM)),verticalPadding:O.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:O.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:O.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},Or=[xr.css`
353
353
  :host {
@@ -391,7 +391,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
391
391
 
392
392
  --ft-button-internal-line-height: max(calc(${_.fontSize} + 2px), ${_.iconSize});
393
393
  --ft-button-internal-color: ${_.color};
394
- ${(0,O.setVariable)(Z.size,_.iconSize)};
394
+ ${(0,O.setVariable)(K.size,_.iconSize)};
395
395
  ${(0,O.setVariable)(N.color,_.rippleColor)};
396
396
 
397
397
  border-radius: ${_.borderRadius};
@@ -482,8 +482,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
482
482
  }
483
483
 
484
484
  ft-loader {
485
- ${(0,O.setVariable)(M.size,_.iconSize)};
486
- ${(0,O.setVariable)(M.color,"var(--ft-button-internal-color)")};
485
+ ${(0,O.setVariable)(Z.size,_.iconSize)};
486
+ ${(0,O.setVariable)(Z.color,"var(--ft-button-internal-color)")};
487
487
  }
488
488
  `,O.noTextSelect];var Xt=y(w());var Nr=y(w());var Cr=y(B()),k=y(Q()),vr=y(Se()),ee=y(w());var F=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},R=class extends ee.FtLitElement{constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.unbounded=!1,this.activated=!1,this.selected=!1,this.disabled=!1,this.hovered=!1,this.focused=!1,this.pressed=!1,this.rippling=!1,this.originX=0,this.originY=0,this.debouncer=new ee.Debouncer(1e3),this.onTransitionStart=o=>{o.propertyName==="transform"&&(this.rippling=this.pressed,this.debouncer.run(()=>this.rippling=!1))},this.onTransitionEnd=o=>{o.propertyName==="transform"&&(this.rippling=!1)},this.setupDebouncer=new ee.Debouncer(10),this.moveRipple=o=>{var n,a;let{x:i,y:l}=this.getCoordinates(o),c=(a=(n=this.ripple)===null||n===void 0?void 0:n.getBoundingClientRect())!==null&&a!==void 0?a:{x:0,y:0,width:0,height:0};this.originX=Math.round(i!=null?i-c.x:c.width/2),this.originY=Math.round(l!=null?l-c.y:c.height/2)},this.startPress=o=>{this.moveRipple(o),this.pressed=!this.isIgnored(o)},this.endPress=()=>{this.pressed=!1},this.startHover=o=>{this.hovered=!this.isIgnored(o)},this.endHover=()=>{this.hovered=!1},this.startFocus=o=>{this.focused=this.isFocusVisible(o?.target)&&!this.isIgnored(o)},this.endFocus=()=>{this.focused=!1}}render(){let o={"ft-ripple":!0,"ft-ripple--primary":this.primary,"ft-ripple--secondary":this.secondary,"ft-ripple--unbounded":this.unbounded,"ft-ripple--selected":(this.selected||this.activated)&&!this.disabled,"ft-ripple--pressed":(this.pressed||this.rippling)&&!this.disabled,"ft-ripple--hovered":this.hovered&&!this.disabled,"ft-ripple--focused":this.focused&&!this.disabled};return Cr.html`
489
489
  <style>
@@ -535,7 +535,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
535
535
  position: relative;
536
536
  word-break: break-word;
537
537
  }
538
- `;var jr=["top","right","bottom","left"],Vr=["start","end"],Xe=jr.reduce((e,o)=>e.concat(o,o+"-"+Vr[0],o+"-"+Vr[1]),[]),ie=Math.min,vt=Math.max,le=Math.round;var mt=e=>({x:e,y:e}),Jn={left:"right",right:"left",bottom:"top",top:"bottom"},Qn={start:"end",end:"start"};function qe(e,o,n){return vt(e,ie(o,n))}function Ee(e,o){return typeof e=="function"?e(o):e}function Ft(e){return e.split("-")[0]}function Nt(e){return e.split("-")[1]}function Je(e){return e==="x"?"y":"x"}function Qe(e){return e==="y"?"height":"width"}function we(e){return["top","bottom"].includes(Ft(e))?"y":"x"}function to(e){return Je(we(e))}function Yr(e,o,n){n===void 0&&(n=!1);let a=Nt(e),i=to(e),l=Qe(i),c=i==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=Ye(c)),[c,Ye(c)]}function Xr(e){return e.replace(/start|end/g,o=>Qn[o])}function Ye(e){return e.replace(/left|right|bottom|top/g,o=>Jn[o])}function ta(e){return{top:0,right:0,bottom:0,left:0,...e}}function qr(e){return typeof e!="number"?ta(e):{top:e,right:e,bottom:e,left:e}}function At(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Jr(e,o,n){let{reference:a,floating:i}=e,l=we(o),c=to(o),p=Qe(c),d=Ft(o),m=l==="y",x=a.x+a.width/2-i.width/2,h=a.y+a.height/2-i.height/2,v=a[p]/2-i[p]/2,S;switch(d){case"top":S={x,y:a.y-i.height};break;case"bottom":S={x,y:a.y+a.height};break;case"right":S={x:a.x+a.width,y:h};break;case"left":S={x:a.x-i.width,y:h};break;default:S={x:a.x,y:a.y}}switch(Nt(o)){case"start":S[c]-=v*(n&&m?-1:1);break;case"end":S[c]+=v*(n&&m?-1:1);break}return S}var Qr=async(e,o,n)=>{let{placement:a="bottom",strategy:i="absolute",middleware:l=[],platform:c}=n,p=l.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(o)),m=await c.getElementRects({reference:e,floating:o,strategy:i}),{x,y:h}=Jr(m,a,d),v=a,S={},E=0;for(let L=0;L<p.length;L++){let{name:$,fn:P}=p[L],{x:T,y:G,data:xt,reset:U}=await P({x,y:h,initialPlacement:a,placement:v,strategy:i,middlewareData:S,rects:m,platform:c,elements:{reference:e,floating:o}});if(x=T??x,h=G??h,S={...S,[$]:{...S[$],...xt}},U&&E<=50){E++,typeof U=="object"&&(U.placement&&(v=U.placement),U.rects&&(m=U.rects===!0?await c.getElementRects({reference:e,floating:o,strategy:i}):U.rects),{x,y:h}=Jr(m,v,d)),L=-1;continue}}return{x,y:h,placement:v,strategy:i,middlewareData:S}};async function eo(e,o){var n;o===void 0&&(o={});let{x:a,y:i,platform:l,rects:c,elements:p,strategy:d}=e,{boundary:m="clippingAncestors",rootBoundary:x="viewport",elementContext:h="floating",altBoundary:v=!1,padding:S=0}=Ee(o,e),E=qr(S),$=p[v?h==="floating"?"reference":"floating":h],P=At(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement($)))==null||n?$:$.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:m,rootBoundary:x,strategy:d})),T=h==="floating"?{...c.floating,x:a,y:i}:c.reference,G=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),xt=await(l.isElement==null?void 0:l.isElement(G))?await(l.getScale==null?void 0:l.getScale(G))||{x:1,y:1}:{x:1,y:1},U=At(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:G,strategy:d}):T);return{top:(P.top-U.top+E.top)/xt.y,bottom:(U.bottom-P.bottom+E.bottom)/xt.y,left:(P.left-U.left+E.left)/xt.x,right:(U.right-P.right+E.right)/xt.x}}function ea(e,o,n){return(e?[...n.filter(i=>Nt(i)===e),...n.filter(i=>Nt(i)!==e)]:n.filter(i=>Ft(i)===i)).filter(i=>e?Nt(i)===e||(o?Xr(i)!==i:!1):!0)}var oo=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var n,a,i;let{rects:l,middlewareData:c,placement:p,platform:d,elements:m}=o,{crossAxis:x=!1,alignment:h,allowedPlacements:v=Xe,autoAlignment:S=!0,...E}=Ee(e,o),L=h!==void 0||v===Xe?ea(h||null,S,v):v,$=await eo(o,E),P=((n=c.autoPlacement)==null?void 0:n.index)||0,T=L[P];if(T==null)return{};let G=Yr(T,l,await(d.isRTL==null?void 0:d.isRTL(m.floating)));if(p!==T)return{reset:{placement:L[0]}};let xt=[$[Ft(T)],$[G[0]],$[G[1]]],U=[...((a=c.autoPlacement)==null?void 0:a.overflows)||[],{placement:T,overflows:xt}],co=L[P+1];if(co)return{data:{index:P+1,overflows:U},reset:{placement:co}};let so=U.map(at=>{let Jt=Nt(at.placement);return[at.placement,Jt&&x?at.overflows.slice(0,2).reduce((Hn,kn)=>Hn+kn,0):at.overflows[0],at.overflows]}).sort((at,Jt)=>at[1]-Jt[1]),po=((i=so.filter(at=>at[2].slice(0,Nt(at[0])?2:3).every(Jt=>Jt<=0))[0])==null?void 0:i[0])||so[0][0];return po!==p?{data:{index:P+1,overflows:U},reset:{placement:po}}:{}}}};var ro=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:n,y:a,placement:i}=o,{mainAxis:l=!0,crossAxis:c=!1,limiter:p={fn:$=>{let{x:P,y:T}=$;return{x:P,y:T}}},...d}=Ee(e,o),m={x:n,y:a},x=await eo(o,d),h=we(Ft(i)),v=Je(h),S=m[v],E=m[h];if(l){let $=v==="y"?"top":"left",P=v==="y"?"bottom":"right",T=S+x[$],G=S-x[P];S=qe(T,S,G)}if(c){let $=h==="y"?"top":"left",P=h==="y"?"bottom":"right",T=E+x[$],G=E-x[P];E=qe(T,E,G)}let L=p.fn({...o,[v]:S,[h]:E});return{...L,data:{x:L.x-n,y:L.y-a}}}}};function yt(e){return en(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function ht(e){var o;return(o=(en(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function en(e){return e instanceof Node||e instanceof V(e).Node}function ct(e){return e instanceof Element||e instanceof V(e).Element}function et(e){return e instanceof HTMLElement||e instanceof V(e).HTMLElement}function tn(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function Vt(e){let{overflow:o,overflowX:n,overflowY:a,display:i}=Y(e);return/auto|scroll|overlay|hidden|clip/.test(o+a+n)&&!["inline","contents"].includes(i)}function on(e){return["table","td","th"].includes(yt(e))}function Ae(e){let o=Le(),n=Y(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!o&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!o&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(n.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(n.contain||"").includes(a))}function rn(e){let o=Lt(e);for(;et(o)&&!ce(o);){if(Ae(o))return o;o=Lt(o)}return null}function Le(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ce(e){return["html","body","#document"].includes(yt(e))}function Y(e){return V(e).getComputedStyle(e)}function se(e){return ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lt(e){if(yt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||tn(e)&&e.host||ht(e);return tn(o)?o.host:o}function nn(e){let o=Lt(e);return ce(o)?e.ownerDocument?e.ownerDocument.body:e.body:et(o)&&Vt(o)?o:nn(o)}function Re(e,o,n){var a;o===void 0&&(o=[]),n===void 0&&(n=!0);let i=nn(e),l=i===((a=e.ownerDocument)==null?void 0:a.body),c=V(i);return l?o.concat(c,c.visualViewport||[],Vt(i)?i:[],c.frameElement&&n?Re(c.frameElement):[]):o.concat(i,Re(i,[],n))}function cn(e){let o=Y(e),n=parseFloat(o.width)||0,a=parseFloat(o.height)||0,i=et(e),l=i?e.offsetWidth:n,c=i?e.offsetHeight:a,p=le(n)!==l||le(a)!==c;return p&&(n=l,a=c),{width:n,height:a,$:p}}function sn(e){return ct(e)?e:e.contextElement}function jt(e){let o=sn(e);if(!et(o))return mt(1);let n=o.getBoundingClientRect(),{width:a,height:i,$:l}=cn(o),c=(l?le(n.width):n.width)/a,p=(l?le(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!p||!Number.isFinite(p))&&(p=1),{x:c,y:p}}var oa=mt(0);function pn(e){let o=V(e);return!Le()||!o.visualViewport?oa:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ra(e,o,n){return o===void 0&&(o=!1),!n||o&&n!==V(e)?!1:o}function pe(e,o,n,a){o===void 0&&(o=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),l=sn(e),c=mt(1);o&&(a?ct(a)&&(c=jt(a)):c=jt(e));let p=ra(l,n,a)?pn(l):mt(0),d=(i.left+p.x)/c.x,m=(i.top+p.y)/c.y,x=i.width/c.x,h=i.height/c.y;if(l){let v=V(l),S=a&&ct(a)?V(a):a,E=v.frameElement;for(;E&&a&&S!==v;){let L=jt(E),$=E.getBoundingClientRect(),P=Y(E),T=$.left+(E.clientLeft+parseFloat(P.paddingLeft))*L.x,G=$.top+(E.clientTop+parseFloat(P.paddingTop))*L.y;d*=L.x,m*=L.y,x*=L.x,h*=L.y,d+=T,m+=G,E=V(E).frameElement}}return At({width:x,height:h,x:d,y:m})}function na(e){let{rect:o,offsetParent:n,strategy:a}=e,i=et(n),l=ht(n);if(n===l)return o;let c={scrollLeft:0,scrollTop:0},p=mt(1),d=mt(0);if((i||!i&&a!=="fixed")&&((yt(n)!=="body"||Vt(l))&&(c=se(n)),et(n))){let m=pe(n);p=jt(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-c.scrollLeft*p.x+d.x,y:o.y*p.y-c.scrollTop*p.y+d.y}}function aa(e){return Array.from(e.getClientRects())}function dn(e){return pe(ht(e)).left+se(e).scrollLeft}function ia(e){let o=ht(e),n=se(e),a=e.ownerDocument.body,i=vt(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),l=vt(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight),c=-n.scrollLeft+dn(e),p=-n.scrollTop;return Y(a).direction==="rtl"&&(c+=vt(o.clientWidth,a.clientWidth)-i),{width:i,height:l,x:c,y:p}}function la(e,o){let n=V(e),a=ht(e),i=n.visualViewport,l=a.clientWidth,c=a.clientHeight,p=0,d=0;if(i){l=i.width,c=i.height;let m=Le();(!m||m&&o==="fixed")&&(p=i.offsetLeft,d=i.offsetTop)}return{width:l,height:c,x:p,y:d}}function ca(e,o){let n=pe(e,!0,o==="fixed"),a=n.top+e.clientTop,i=n.left+e.clientLeft,l=et(e)?jt(e):mt(1),c=e.clientWidth*l.x,p=e.clientHeight*l.y,d=i*l.x,m=a*l.y;return{width:c,height:p,x:d,y:m}}function an(e,o,n){let a;if(o==="viewport")a=la(e,n);else if(o==="document")a=ia(ht(e));else if(ct(o))a=ca(o,n);else{let i=pn(e);a={...o,x:o.x-i.x,y:o.y-i.y}}return At(a)}function fn(e,o){let n=Lt(e);return n===o||!ct(n)||ce(n)?!1:Y(n).position==="fixed"||fn(n,o)}function sa(e,o){let n=o.get(e);if(n)return n;let a=Re(e,[],!1).filter(p=>ct(p)&&yt(p)!=="body"),i=null,l=Y(e).position==="fixed",c=l?Lt(e):e;for(;ct(c)&&!ce(c);){let p=Y(c),d=Ae(c);!d&&p.position==="fixed"&&(i=null),(l?!d&&!i:!d&&p.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Vt(c)&&!d&&fn(e,c))?a=a.filter(x=>x!==c):i=p,c=Lt(c)}return o.set(e,a),a}function pa(e){let{element:o,boundary:n,rootBoundary:a,strategy:i}=e,c=[...n==="clippingAncestors"?sa(o,this._c):[].concat(n),a],p=c[0],d=c.reduce((m,x)=>{let h=an(o,x,i);return m.top=vt(h.top,m.top),m.right=ie(h.right,m.right),m.bottom=ie(h.bottom,m.bottom),m.left=vt(h.left,m.left),m},an(o,p,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function da(e){return cn(e)}function fa(e,o,n){let a=et(o),i=ht(o),l=n==="fixed",c=pe(e,!0,l,o),p={scrollLeft:0,scrollTop:0},d=mt(0);if(a||!a&&!l)if((yt(o)!=="body"||Vt(i))&&(p=se(o)),a){let m=pe(o,!0,l,o);d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}else i&&(d.x=dn(i));return{x:c.left+p.scrollLeft-d.x,y:c.top+p.scrollTop-d.y,width:c.width,height:c.height}}function ln(e,o){return!et(e)||Y(e).position==="fixed"?null:o?o(e):e.offsetParent}function gn(e,o){let n=V(e);if(!et(e))return n;let a=ln(e,o);for(;a&&on(a)&&Y(a).position==="static";)a=ln(a,o);return a&&(yt(a)==="html"||yt(a)==="body"&&Y(a).position==="static"&&!Ae(a))?n:a||rn(e)||n}var ga=async function(e){let{reference:o,floating:n,strategy:a}=e,i=this.getOffsetParent||gn,l=this.getDimensions;return{reference:fa(o,await i(n),a),floating:{x:0,y:0,...await l(n)}}};function ua(e){return Y(e).direction==="rtl"}var Pe={convertOffsetParentRelativeRectToViewportRelativeRect:na,getDocumentElement:ht,getClippingRect:pa,getOffsetParent:gn,getElementRects:ga,getClientRects:aa,getDimensions:da,getScale:jt,isElement:ct,isRTL:ua};var un=(e,o,n)=>{let a=new Map,i={platform:Pe,...n},l={...i.platform,_c:a};return Qr(e,o,{...i,platform:l})};function mn(e){return ma(e)}function no(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function ma(e){for(let o=e;o;o=no(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=no(e);o;o=no(o)){if(!(o instanceof Element))continue;let n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||n.filter!=="none"||o.tagName==="BODY"))return o}return null}async function yn(e,o,n){return un(e,o,{platform:{...Pe,getOffsetParent:a=>Pe.getOffsetParent(a,mn)},middleware:[ro({crossAxis:!0}),oo({allowedPlacements:[n]})]})}var j=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},A=class extends de.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new de.Debouncer,this.revealDebouncer=new de.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return hn.html`
538
+ `;var jr=["top","right","bottom","left"],Vr=["start","end"],Xe=jr.reduce((e,o)=>e.concat(o,o+"-"+Vr[0],o+"-"+Vr[1]),[]),ie=Math.min,vt=Math.max,le=Math.round;var mt=e=>({x:e,y:e}),Jn={left:"right",right:"left",bottom:"top",top:"bottom"},Qn={start:"end",end:"start"};function qe(e,o,n){return vt(e,ie(o,n))}function Ee(e,o){return typeof e=="function"?e(o):e}function Ft(e){return e.split("-")[0]}function Nt(e){return e.split("-")[1]}function Je(e){return e==="x"?"y":"x"}function Qe(e){return e==="y"?"height":"width"}function we(e){return["top","bottom"].includes(Ft(e))?"y":"x"}function to(e){return Je(we(e))}function Yr(e,o,n){n===void 0&&(n=!1);let a=Nt(e),i=to(e),l=Qe(i),c=i==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(c=Ye(c)),[c,Ye(c)]}function Xr(e){return e.replace(/start|end/g,o=>Qn[o])}function Ye(e){return e.replace(/left|right|bottom|top/g,o=>Jn[o])}function ta(e){return{top:0,right:0,bottom:0,left:0,...e}}function qr(e){return typeof e!="number"?ta(e):{top:e,right:e,bottom:e,left:e}}function At(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Jr(e,o,n){let{reference:a,floating:i}=e,l=we(o),c=to(o),p=Qe(c),d=Ft(o),m=l==="y",x=a.x+a.width/2-i.width/2,h=a.y+a.height/2-i.height/2,v=a[p]/2-i[p]/2,S;switch(d){case"top":S={x,y:a.y-i.height};break;case"bottom":S={x,y:a.y+a.height};break;case"right":S={x:a.x+a.width,y:h};break;case"left":S={x:a.x-i.width,y:h};break;default:S={x:a.x,y:a.y}}switch(Nt(o)){case"start":S[c]-=v*(n&&m?-1:1);break;case"end":S[c]+=v*(n&&m?-1:1);break}return S}var Qr=async(e,o,n)=>{let{placement:a="bottom",strategy:i="absolute",middleware:l=[],platform:c}=n,p=l.filter(Boolean),d=await(c.isRTL==null?void 0:c.isRTL(o)),m=await c.getElementRects({reference:e,floating:o,strategy:i}),{x,y:h}=Jr(m,a,d),v=a,S={},E=0;for(let P=0;P<p.length;P++){let{name:$,fn:W}=p[P],{x:T,y:M,data:xt,reset:U}=await W({x,y:h,initialPlacement:a,placement:v,strategy:i,middlewareData:S,rects:m,platform:c,elements:{reference:e,floating:o}});if(x=T??x,h=M??h,S={...S,[$]:{...S[$],...xt}},U&&E<=50){E++,typeof U=="object"&&(U.placement&&(v=U.placement),U.rects&&(m=U.rects===!0?await c.getElementRects({reference:e,floating:o,strategy:i}):U.rects),{x,y:h}=Jr(m,v,d)),P=-1;continue}}return{x,y:h,placement:v,strategy:i,middlewareData:S}};async function eo(e,o){var n;o===void 0&&(o={});let{x:a,y:i,platform:l,rects:c,elements:p,strategy:d}=e,{boundary:m="clippingAncestors",rootBoundary:x="viewport",elementContext:h="floating",altBoundary:v=!1,padding:S=0}=Ee(o,e),E=qr(S),$=p[v?h==="floating"?"reference":"floating":h],W=At(await l.getClippingRect({element:(n=await(l.isElement==null?void 0:l.isElement($)))==null||n?$:$.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:m,rootBoundary:x,strategy:d})),T=h==="floating"?{...c.floating,x:a,y:i}:c.reference,M=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),xt=await(l.isElement==null?void 0:l.isElement(M))?await(l.getScale==null?void 0:l.getScale(M))||{x:1,y:1}:{x:1,y:1},U=At(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:M,strategy:d}):T);return{top:(W.top-U.top+E.top)/xt.y,bottom:(U.bottom-W.bottom+E.bottom)/xt.y,left:(W.left-U.left+E.left)/xt.x,right:(U.right-W.right+E.right)/xt.x}}function ea(e,o,n){return(e?[...n.filter(i=>Nt(i)===e),...n.filter(i=>Nt(i)!==e)]:n.filter(i=>Ft(i)===i)).filter(i=>e?Nt(i)===e||(o?Xr(i)!==i:!1):!0)}var oo=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var n,a,i;let{rects:l,middlewareData:c,placement:p,platform:d,elements:m}=o,{crossAxis:x=!1,alignment:h,allowedPlacements:v=Xe,autoAlignment:S=!0,...E}=Ee(e,o),P=h!==void 0||v===Xe?ea(h||null,S,v):v,$=await eo(o,E),W=((n=c.autoPlacement)==null?void 0:n.index)||0,T=P[W];if(T==null)return{};let M=Yr(T,l,await(d.isRTL==null?void 0:d.isRTL(m.floating)));if(p!==T)return{reset:{placement:P[0]}};let xt=[$[Ft(T)],$[M[0]],$[M[1]]],U=[...((a=c.autoPlacement)==null?void 0:a.overflows)||[],{placement:T,overflows:xt}],co=P[W+1];if(co)return{data:{index:W+1,overflows:U},reset:{placement:co}};let so=U.map(at=>{let Jt=Nt(at.placement);return[at.placement,Jt&&x?at.overflows.slice(0,2).reduce((Hn,kn)=>Hn+kn,0):at.overflows[0],at.overflows]}).sort((at,Jt)=>at[1]-Jt[1]),po=((i=so.filter(at=>at[2].slice(0,Nt(at[0])?2:3).every(Jt=>Jt<=0))[0])==null?void 0:i[0])||so[0][0];return po!==p?{data:{index:W+1,overflows:U},reset:{placement:po}}:{}}}};var ro=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:n,y:a,placement:i}=o,{mainAxis:l=!0,crossAxis:c=!1,limiter:p={fn:$=>{let{x:W,y:T}=$;return{x:W,y:T}}},...d}=Ee(e,o),m={x:n,y:a},x=await eo(o,d),h=we(Ft(i)),v=Je(h),S=m[v],E=m[h];if(l){let $=v==="y"?"top":"left",W=v==="y"?"bottom":"right",T=S+x[$],M=S-x[W];S=qe(T,S,M)}if(c){let $=h==="y"?"top":"left",W=h==="y"?"bottom":"right",T=E+x[$],M=E-x[W];E=qe(T,E,M)}let P=p.fn({...o,[v]:S,[h]:E});return{...P,data:{x:P.x-n,y:P.y-a}}}}};function yt(e){return en(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function ht(e){var o;return(o=(en(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function en(e){return e instanceof Node||e instanceof V(e).Node}function ct(e){return e instanceof Element||e instanceof V(e).Element}function et(e){return e instanceof HTMLElement||e instanceof V(e).HTMLElement}function tn(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function Vt(e){let{overflow:o,overflowX:n,overflowY:a,display:i}=X(e);return/auto|scroll|overlay|hidden|clip/.test(o+a+n)&&!["inline","contents"].includes(i)}function on(e){return["table","td","th"].includes(yt(e))}function Ae(e){let o=Le(),n=X(e);return n.transform!=="none"||n.perspective!=="none"||(n.containerType?n.containerType!=="normal":!1)||!o&&(n.backdropFilter?n.backdropFilter!=="none":!1)||!o&&(n.filter?n.filter!=="none":!1)||["transform","perspective","filter"].some(a=>(n.willChange||"").includes(a))||["paint","layout","strict","content"].some(a=>(n.contain||"").includes(a))}function rn(e){let o=Lt(e);for(;et(o)&&!ce(o);){if(Ae(o))return o;o=Lt(o)}return null}function Le(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ce(e){return["html","body","#document"].includes(yt(e))}function X(e){return V(e).getComputedStyle(e)}function se(e){return ct(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Lt(e){if(yt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||tn(e)&&e.host||ht(e);return tn(o)?o.host:o}function nn(e){let o=Lt(e);return ce(o)?e.ownerDocument?e.ownerDocument.body:e.body:et(o)&&Vt(o)?o:nn(o)}function Re(e,o,n){var a;o===void 0&&(o=[]),n===void 0&&(n=!0);let i=nn(e),l=i===((a=e.ownerDocument)==null?void 0:a.body),c=V(i);return l?o.concat(c,c.visualViewport||[],Vt(i)?i:[],c.frameElement&&n?Re(c.frameElement):[]):o.concat(i,Re(i,[],n))}function cn(e){let o=X(e),n=parseFloat(o.width)||0,a=parseFloat(o.height)||0,i=et(e),l=i?e.offsetWidth:n,c=i?e.offsetHeight:a,p=le(n)!==l||le(a)!==c;return p&&(n=l,a=c),{width:n,height:a,$:p}}function sn(e){return ct(e)?e:e.contextElement}function jt(e){let o=sn(e);if(!et(o))return mt(1);let n=o.getBoundingClientRect(),{width:a,height:i,$:l}=cn(o),c=(l?le(n.width):n.width)/a,p=(l?le(n.height):n.height)/i;return(!c||!Number.isFinite(c))&&(c=1),(!p||!Number.isFinite(p))&&(p=1),{x:c,y:p}}var oa=mt(0);function pn(e){let o=V(e);return!Le()||!o.visualViewport?oa:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ra(e,o,n){return o===void 0&&(o=!1),!n||o&&n!==V(e)?!1:o}function pe(e,o,n,a){o===void 0&&(o=!1),n===void 0&&(n=!1);let i=e.getBoundingClientRect(),l=sn(e),c=mt(1);o&&(a?ct(a)&&(c=jt(a)):c=jt(e));let p=ra(l,n,a)?pn(l):mt(0),d=(i.left+p.x)/c.x,m=(i.top+p.y)/c.y,x=i.width/c.x,h=i.height/c.y;if(l){let v=V(l),S=a&&ct(a)?V(a):a,E=v.frameElement;for(;E&&a&&S!==v;){let P=jt(E),$=E.getBoundingClientRect(),W=X(E),T=$.left+(E.clientLeft+parseFloat(W.paddingLeft))*P.x,M=$.top+(E.clientTop+parseFloat(W.paddingTop))*P.y;d*=P.x,m*=P.y,x*=P.x,h*=P.y,d+=T,m+=M,E=V(E).frameElement}}return At({width:x,height:h,x:d,y:m})}function na(e){let{rect:o,offsetParent:n,strategy:a}=e,i=et(n),l=ht(n);if(n===l)return o;let c={scrollLeft:0,scrollTop:0},p=mt(1),d=mt(0);if((i||!i&&a!=="fixed")&&((yt(n)!=="body"||Vt(l))&&(c=se(n)),et(n))){let m=pe(n);p=jt(n),d.x=m.x+n.clientLeft,d.y=m.y+n.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-c.scrollLeft*p.x+d.x,y:o.y*p.y-c.scrollTop*p.y+d.y}}function aa(e){return Array.from(e.getClientRects())}function dn(e){return pe(ht(e)).left+se(e).scrollLeft}function ia(e){let o=ht(e),n=se(e),a=e.ownerDocument.body,i=vt(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),l=vt(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight),c=-n.scrollLeft+dn(e),p=-n.scrollTop;return X(a).direction==="rtl"&&(c+=vt(o.clientWidth,a.clientWidth)-i),{width:i,height:l,x:c,y:p}}function la(e,o){let n=V(e),a=ht(e),i=n.visualViewport,l=a.clientWidth,c=a.clientHeight,p=0,d=0;if(i){l=i.width,c=i.height;let m=Le();(!m||m&&o==="fixed")&&(p=i.offsetLeft,d=i.offsetTop)}return{width:l,height:c,x:p,y:d}}function ca(e,o){let n=pe(e,!0,o==="fixed"),a=n.top+e.clientTop,i=n.left+e.clientLeft,l=et(e)?jt(e):mt(1),c=e.clientWidth*l.x,p=e.clientHeight*l.y,d=i*l.x,m=a*l.y;return{width:c,height:p,x:d,y:m}}function an(e,o,n){let a;if(o==="viewport")a=la(e,n);else if(o==="document")a=ia(ht(e));else if(ct(o))a=ca(o,n);else{let i=pn(e);a={...o,x:o.x-i.x,y:o.y-i.y}}return At(a)}function fn(e,o){let n=Lt(e);return n===o||!ct(n)||ce(n)?!1:X(n).position==="fixed"||fn(n,o)}function sa(e,o){let n=o.get(e);if(n)return n;let a=Re(e,[],!1).filter(p=>ct(p)&&yt(p)!=="body"),i=null,l=X(e).position==="fixed",c=l?Lt(e):e;for(;ct(c)&&!ce(c);){let p=X(c),d=Ae(c);!d&&p.position==="fixed"&&(i=null),(l?!d&&!i:!d&&p.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||Vt(c)&&!d&&fn(e,c))?a=a.filter(x=>x!==c):i=p,c=Lt(c)}return o.set(e,a),a}function pa(e){let{element:o,boundary:n,rootBoundary:a,strategy:i}=e,c=[...n==="clippingAncestors"?sa(o,this._c):[].concat(n),a],p=c[0],d=c.reduce((m,x)=>{let h=an(o,x,i);return m.top=vt(h.top,m.top),m.right=ie(h.right,m.right),m.bottom=ie(h.bottom,m.bottom),m.left=vt(h.left,m.left),m},an(o,p,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function da(e){return cn(e)}function fa(e,o,n){let a=et(o),i=ht(o),l=n==="fixed",c=pe(e,!0,l,o),p={scrollLeft:0,scrollTop:0},d=mt(0);if(a||!a&&!l)if((yt(o)!=="body"||Vt(i))&&(p=se(o)),a){let m=pe(o,!0,l,o);d.x=m.x+o.clientLeft,d.y=m.y+o.clientTop}else i&&(d.x=dn(i));return{x:c.left+p.scrollLeft-d.x,y:c.top+p.scrollTop-d.y,width:c.width,height:c.height}}function ln(e,o){return!et(e)||X(e).position==="fixed"?null:o?o(e):e.offsetParent}function gn(e,o){let n=V(e);if(!et(e))return n;let a=ln(e,o);for(;a&&on(a)&&X(a).position==="static";)a=ln(a,o);return a&&(yt(a)==="html"||yt(a)==="body"&&X(a).position==="static"&&!Ae(a))?n:a||rn(e)||n}var ga=async function(e){let{reference:o,floating:n,strategy:a}=e,i=this.getOffsetParent||gn,l=this.getDimensions;return{reference:fa(o,await i(n),a),floating:{x:0,y:0,...await l(n)}}};function ua(e){return X(e).direction==="rtl"}var Pe={convertOffsetParentRelativeRectToViewportRelativeRect:na,getDocumentElement:ht,getClippingRect:pa,getOffsetParent:gn,getElementRects:ga,getClientRects:aa,getDimensions:da,getScale:jt,isElement:ct,isRTL:ua};var un=(e,o,n)=>{let a=new Map,i={platform:Pe,...n},l={...i.platform,_c:a};return Qr(e,o,{...i,platform:l})};function mn(e){return ma(e)}function no(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function ma(e){for(let o=e;o;o=no(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=no(e);o;o=no(o)){if(!(o instanceof Element))continue;let n=getComputedStyle(o);if(n.display!=="contents"&&(n.position!=="static"||n.filter!=="none"||o.tagName==="BODY"))return o}return null}async function yn(e,o,n){return un(e,o,{platform:{...Pe,getOffsetParent:a=>Pe.getOffsetParent(a,mn)},middleware:[ro({crossAxis:!0}),oo({allowedPlacements:[n]})]})}var j=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},A=class extends de.FtLitElement{constructor(){super(...arguments),this.text="",this.manual=!1,this.inline=!1,this.delay=500,this.position="bottom",this.visible=!1,this.validPositions=new Set(["top","bottom","left","right"]),this.hideDebounce=new de.Debouncer,this.revealDebouncer=new de.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return hn.html`
539
539
  <div part="container"
540
540
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
541
541
  @mouseenter=${this.onHover}
@@ -565,10 +565,10 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
565
565
  <div></div>
566
566
  <div></div>
567
567
  </div>
568
- `}};It.styles=ur;(0,wn.customElement)("ft-loader")(It);var Yt=y(B()),Rn=y(Se()),K=y(Q()),X=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},I=class extends(0,Xt.toFtFormComponent)(Xt.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",o=>{var n;this.isDisabled()?(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()):this.type=="submit"&&((n=this.form)===null||n===void 0||n.requestSubmit())})}render(){return this.addTooltipIfNeeded(Yt.html`
568
+ `}};It.styles=ur;(0,wn.customElement)("ft-loader")(It);var Yt=y(B()),Rn=y(Se()),D=y(Q()),Y=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},L=class extends(0,Xt.toFtFormComponent)(Xt.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.role="button",this.type="button",this.disabled=!1,this.label="",this.icon=void 0,this.trailingIcon=!1,this.loading=!1,this.ariaLabel=null,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.addEventListener("click",o=>{var n;this.isDisabled()?(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()):this.type=="submit"&&((n=this.form)===null||n===void 0||n.requestSubmit())})}render(){var o;return this.addTooltipIfNeeded(Yt.html`
569
569
  <button part="button"
570
570
  class="${(0,Rn.classMap)(this.buttonClasses)}"
571
- aria-label="${this.getLabel()}"
571
+ aria-label="${(o=this.ariaLabel)!==null&&o!==void 0?o:this.getLabel()}"
572
572
  ?disabled=${this.isDisabled()}>
573
573
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
574
574
  <ft-typography part="label"
@@ -591,7 +591,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
591
591
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
592
592
  `:Yt.html`
593
593
  <slot part="icon" name="icon"></slot>
594
- `}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(o){return o instanceof HTMLSlotElement?o.assignedNodes().map(n=>this.unslotText(n)).join(""):o?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};I.elementDefinitions={"ft-ripple":R,"ft-tooltip":A,"ft-typography":tt,"ft-icon":J,"ft-loader":It};X([(0,K.property)({type:String,reflect:!0})],I.prototype,"role",void 0);X([(0,K.property)()],I.prototype,"type",void 0);X([(0,K.property)({type:Boolean})],I.prototype,"disabled",void 0);X([(0,K.property)()],I.prototype,"label",void 0);X([(0,K.property)()],I.prototype,"icon",void 0);X([(0,K.property)()],I.prototype,"iconVariant",void 0);X([(0,K.property)({type:Boolean})],I.prototype,"trailingIcon",void 0);X([(0,K.property)({type:Boolean})],I.prototype,"loading",void 0);X([(0,K.property)()],I.prototype,"tooltipPosition",void 0);X([(0,K.property)({type:Boolean})],I.prototype,"hideTooltip",void 0);X([(0,K.property)({type:Boolean})],I.prototype,"forceTooltip",void 0);X([(0,K.query)(".ft-button")],I.prototype,"button",void 0);X([(0,K.query)(".ft-button--label slot")],I.prototype,"slottedContent",void 0);var Ie=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},ot=class extends I{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};ot.styles=[An.safariEllipsisFix,Or];Ie([(0,ge.property)({type:Boolean})],ot.prototype,"primary",void 0);Ie([(0,ge.property)({type:Boolean})],ot.prototype,"outlined",void 0);Ie([(0,ge.property)({type:Boolean})],ot.prototype,"dense",void 0);Ie([(0,ge.property)({type:Boolean})],ot.prototype,"round",void 0);var ue=y(Q());var Te=y(w());var Ln=y(B()),C=y(w());var Pn=[Ln.css`
594
+ `}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}getLabel(){return this.label||this.textContent}get textContent(){return this.unslotText(this.slottedContent).trim()}unslotText(o){return o instanceof HTMLSlotElement?o.assignedNodes().map(n=>this.unslotText(n)).join(""):o?.textContent||""}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};L.elementDefinitions={"ft-ripple":R,"ft-tooltip":A,"ft-typography":tt,"ft-icon":J,"ft-loader":It};Y([(0,D.property)({type:String,reflect:!0})],L.prototype,"role",void 0);Y([(0,D.property)()],L.prototype,"type",void 0);Y([(0,D.property)({type:Boolean})],L.prototype,"disabled",void 0);Y([(0,D.property)()],L.prototype,"label",void 0);Y([(0,D.property)()],L.prototype,"icon",void 0);Y([(0,D.property)()],L.prototype,"iconVariant",void 0);Y([(0,D.property)({type:Boolean})],L.prototype,"trailingIcon",void 0);Y([(0,D.property)({type:Boolean})],L.prototype,"loading",void 0);Y([(0,D.property)({attribute:"aria-label"})],L.prototype,"ariaLabel",void 0);Y([(0,D.property)()],L.prototype,"tooltipPosition",void 0);Y([(0,D.property)({type:Boolean})],L.prototype,"hideTooltip",void 0);Y([(0,D.property)({type:Boolean})],L.prototype,"forceTooltip",void 0);Y([(0,D.query)(".ft-button")],L.prototype,"button",void 0);Y([(0,D.query)(".ft-button--label slot")],L.prototype,"slottedContent",void 0);var Ie=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},ot=class extends L{constructor(){super(...arguments),this.primary=!1,this.outlined=!1,this.dense=!1,this.round=!1}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--outlined":this.outlined,"ft-button--dense":this.dense,"ft-button--round":this.round,"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0}}get typographyVariant(){return"button"}};ot.styles=[An.safariEllipsisFix,Or];Ie([(0,ge.property)({type:Boolean})],ot.prototype,"primary",void 0);Ie([(0,ge.property)({type:Boolean})],ot.prototype,"outlined",void 0);Ie([(0,ge.property)({type:Boolean})],ot.prototype,"dense",void 0);Ie([(0,ge.property)({type:Boolean})],ot.prototype,"round",void 0);var ue=y(Q());var Te=y(w());var Ln=y(B()),C=y(w());var Pn=[Ln.css`
595
595
  :host {
596
596
  display: inline-block;
597
597
  max-width: 100%;
@@ -675,7 +675,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
675
675
  /** Primary styles **/
676
676
 
677
677
  .ft-button--primary {
678
- ${(0,C.setVariable)(M.color,f.primaryIconColor)};
678
+ ${(0,C.setVariable)(Z.color,f.primaryIconColor)};
679
679
 
680
680
  ${(0,C.setVariable)(N.color,f.primaryStateLayerColor)};
681
681
  ${(0,C.setVariable)(N.opacityContentOnSurfaceHover,f.primaryHoverStateLayerOpacity)};
@@ -699,7 +699,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
699
699
  /** Secondary styles **/
700
700
 
701
701
  .ft-button--secondary {
702
- ${(0,C.setVariable)(M.color,f.secondaryIconColor)};
702
+ ${(0,C.setVariable)(Z.color,f.secondaryIconColor)};
703
703
 
704
704
  ${(0,C.setVariable)(N.color,f.secondaryStateLayerColor)};
705
705
  ${(0,C.setVariable)(N.opacityContentOnSurfaceHover,f.secondaryHoverStateLayerOpacity)};
@@ -724,7 +724,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
724
724
  /** Tertiary styles **/
725
725
 
726
726
  .ft-button--tertiary {
727
- ${(0,C.setVariable)(M.color,f.tertiaryIconColor)};
727
+ ${(0,C.setVariable)(Z.color,f.tertiaryIconColor)};
728
728
 
729
729
  ${(0,C.setVariable)(N.color,f.tertiaryStateLayerColor)};
730
730
  ${(0,C.setVariable)(N.opacityContentOnSurfaceHover,f.tertiaryHoverStateLayerOpacity)};
@@ -748,7 +748,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
748
748
  /** Neutral styles **/
749
749
 
750
750
  .ftds--family-neutral {
751
- ${(0,C.setVariable)(M.color,f.neutralIconColor)};
751
+ ${(0,C.setVariable)(Z.color,f.neutralIconColor)};
752
752
 
753
753
  ${(0,C.setVariable)(N.backgroundColor,f.neutralStateLayerColor)};
754
754
  ${(0,C.setVariable)(N.opacityContentOnSurfaceHover,f.neutralHoverStateLayerOpacity)};
@@ -772,8 +772,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
772
772
  /** Large styles **/
773
773
 
774
774
  .ftds--size-large {
775
+ ${(0,C.setVariable)(K.size,f.largeIconSize)};
775
776
  ${(0,C.setVariable)(Z.size,f.largeIconSize)};
776
- ${(0,C.setVariable)(M.size,f.largeIconSize)};
777
777
 
778
778
  height: ${f.largeHeight};
779
779
  padding: 0 ${f.largeHorizontalPadding};
@@ -794,8 +794,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
794
794
  /** Small styles **/
795
795
 
796
796
  .ftds--size-medium {
797
+ ${(0,C.setVariable)(K.size,f.mediumIconSize)};
797
798
  ${(0,C.setVariable)(Z.size,f.mediumIconSize)};
798
- ${(0,C.setVariable)(M.size,f.mediumIconSize)};
799
799
 
800
800
  height: ${f.mediumHeight};
801
801
  padding: 0 ${f.mediumHorizontalPadding};
@@ -817,8 +817,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
817
817
  /** Small styles **/
818
818
 
819
819
  .ftds--size-small {
820
+ ${(0,C.setVariable)(K.size,f.smallIconSize)};
820
821
  ${(0,C.setVariable)(Z.size,f.smallIconSize)};
821
- ${(0,C.setVariable)(M.size,f.smallIconSize)};
822
822
 
823
823
  height: ${f.smallHeight};
824
824
  padding: 0 ${f.smallHorizontalPadding};
@@ -835,13 +835,13 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
835
835
  .ftds--size-small.ft-button--icon-only {
836
836
  width: ${f.smallIconOnlyWidth};
837
837
  }
838
- `,C.noTextSelect];var $e=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},bt=class extends(0,Te.toFtdsBase)(I){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=xe.brand,this.iconVariant=st.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case $t.large:return Ct.body2medium;case $t.medium:return Ct.caption1medium;case $t.small:return Ct.caption2medium}}};bt.styles=[Te.safariEllipsisFix,Pn];$e([(0,ue.property)({type:Boolean})],bt.prototype,"primary",void 0);$e([(0,ue.property)({type:Boolean})],bt.prototype,"secondary",void 0);$e([(0,ue.property)({type:Boolean})],bt.prototype,"tertiary",void 0);$e([(0,ue.property)({type:Boolean})],bt.prototype,"round",void 0);(0,ao.customElement)("ft-button")(ot);(0,ao.customElement)("ftds-button")(bt);var zn=y(w());var Tn=y(B()),me=y(Q()),Bn=y(Se());var In=y(w()),$n=y(Q());var Wn;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Wn||(Wn={}));var ya=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},lo=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},io=Symbol("registerInterval");function ha(e){var o;class n extends e{constructor(){super(...arguments),this[o]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[io]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[io]):this.dispatchEvent(new lo)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=io,ya([(0,$n.state)()],n.prototype,"stateManager",void 0),n}var qt=class extends ha(In.FtLitElementRedux){};var Be=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},rt=class extends qt{constructor(){super(...arguments),this.removeStyle=!1}render(){var o;let n=(0,Bn.classMap)({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return Tn.html`
838
+ `,C.noTextSelect];var $e=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},bt=class extends(0,Te.toFtdsBase)(L){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=xe.brand,this.iconVariant=st.fluid_topics}get buttonClasses(){return{"ft-button":!0,"ft-button--primary":this.primary,"ft-button--secondary":this.secondary,"ft-button--tertiary":this.tertiary||!this.primary&&!this.secondary,"ft-button--icon-only":!this.hasTextContent(),"ft-button--trailing-icon":this.trailingIcon,"ft-button--loading":this.trailingIcon,"ft-no-text-select":!0,"ft-button--no-icon":!this.icon,"ft-button--round":this.round,...this.getDesignSystemBaseClasses()}}get typographyVariant(){switch(this.size){case $t.large:return Ct.body2medium;case $t.medium:return Ct.caption1medium;case $t.small:return Ct.caption2medium}}};bt.styles=[Te.safariEllipsisFix,Pn];$e([(0,ue.property)({type:Boolean})],bt.prototype,"primary",void 0);$e([(0,ue.property)({type:Boolean})],bt.prototype,"secondary",void 0);$e([(0,ue.property)({type:Boolean})],bt.prototype,"tertiary",void 0);$e([(0,ue.property)({type:Boolean})],bt.prototype,"round",void 0);(0,ao.customElement)("ft-button")(ot);(0,ao.customElement)("ftds-button")(bt);var zn=y(w());var Tn=y(B()),me=y(Q()),Bn=y(Se());var In=y(w()),$n=y(Q());var Wn;(function(e){e.FEEDBACK="FEEDBACK",e.RATING="RATING",e.PRINT="PRINT",e.BOOKMARK="BOOKMARK",e.COLLECTIONS="COLLECTIONS",e.PERSONAL_BOOKS="PERSONAL_BOOKS"})(Wn||(Wn={}));var ya=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},lo=class extends Event{constructor(){super("register-ft-reader-component",{bubbles:!0,composed:!0})}},io=Symbol("registerInterval");function ha(e){var o;class n extends e{constructor(){super(...arguments),this[o]=0}setReaderStateManager(i){this.clearStateManager(),this.stateManager=i,this.addStore(i.store,"reader")}clearStateManager(){this.stateManager&&(this.removeStore("reader"),this.stateManager=void 0)}get service(){var i;return(i=this.stateManager)===null||i===void 0?void 0:i.service}connectedCallback(){super.connectedCallback(),this[io]=window.setInterval(()=>this.tryToRegisterToContext(),50)}tryToRegisterToContext(){this.stateManager!=null?window.clearInterval(this[io]):this.dispatchEvent(new lo)}disconnectedCallback(){super.disconnectedCallback(),this.clearStateManager()}}return o=io,ya([(0,$n.state)()],n.prototype,"stateManager",void 0),n}var qt=class extends ha(In.FtLitElementRedux){};var Be=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},rt=class extends qt{constructor(){super(...arguments),this.removeStyle=!1}render(){var o;let n=(0,Bn.classMap)({"ft-reader-link":!0,"ft-reader-link--remove-style":this.removeStyle});return Tn.html`
839
839
  <a class=${n}
840
840
  href="${(o=this.service)===null||o===void 0?void 0:o.getLink(this.tocId,this.pageNumber,this.section)}"
841
841
  @click=${a=>this.onLinkClick(a)}>
842
842
  <slot></slot>
843
843
  </a>
844
- `}onLinkClick(o){var n;!o.ctrlKey&&!o.metaKey&&(o.stopPropagation(),o.preventDefault(),performance.mark(`fluid_topics__reader_link_click__${this.tocId}`),(n=this.stateManager)===null||n===void 0||n.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}};rt.styles=ho;Be([(0,me.property)()],rt.prototype,"tocId",void 0);Be([(0,me.property)()],rt.prototype,"section",void 0);Be([(0,me.property)({type:Number})],rt.prototype,"pageNumber",void 0);Be([(0,me.property)({type:Boolean})],rt.prototype,"removeStyle",void 0);(0,zn.customElement)("ft-reader-internal-link")(rt);var pt=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},D=class extends qt{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new ze.Debouncer(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return this.target==="next"?Pt.THIN_ARROW_RIGHT:Pt.THIN_ARROW_LEFT}render(){var o,n,a,i,l;if(this.targetPage==null&&!this.editorMode)return ye.nothing;let c=ye.html`
844
+ `}onLinkClick(o){var n;!o.ctrlKey&&!o.metaKey&&(o.stopPropagation(),o.preventDefault(),performance.mark(`fluid_topics__reader_link_click__${this.tocId}`),(n=this.stateManager)===null||n===void 0||n.navigateToTopic(this.tocId,this.section,this.pageNumber),this.click())}};rt.styles=ho;Be([(0,me.property)()],rt.prototype,"tocId",void 0);Be([(0,me.property)()],rt.prototype,"section",void 0);Be([(0,me.property)({type:Number})],rt.prototype,"pageNumber",void 0);Be([(0,me.property)({type:Boolean})],rt.prototype,"removeStyle",void 0);(0,zn.customElement)("ft-reader-internal-link")(rt);var pt=function(e,o,n,a){var i=arguments.length,l=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,c;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(c=e[p])&&(l=(i<3?c(l):i>3?c(o,n,l):c(o,n))||l);return i>3&&l&&Object.defineProperty(o,n,l),l},G=class extends qt{constructor(){super(...arguments),this.target="next",this.tooltipPosition="bottom",this.hideTooltip=!1,this.trailingIcon=!1,this.editorMode=!1,this.isReady=!1,this.debouncer=new ze.Debouncer(10)}get defaultContent(){return this.target.substring(0,1).toUpperCase()+this.target.substring(1)}get defaultIcon(){return this.target==="next"?Pt.THIN_ARROW_RIGHT:Pt.THIN_ARROW_LEFT}render(){var o,n,a,i,l;if(this.targetPage==null&&!this.editorMode)return ye.nothing;let c=ye.html`
845
845
  <ft-button ?forceTooltip=${!this.hideTooltip}
846
846
  ?hideTooltip=${this.hideTooltip}
847
847
  ?trailingIcon=${this.trailingIcon}
@@ -855,7 +855,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
855
855
  <ft-reader-internal-link .tocId=${(l=this.targetPage)===null||l===void 0?void 0:l.rootTocId} removestyle>
856
856
  ${c}
857
857
  </ft-reader-internal-link>
858
- `}update(o){super.update(o),o.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run(()=>this.updateTarget()))}async updateTarget(){var o,n;if(this.currentPage){let a=this.currentPage.number+(this.target==="next"?1:-1);this.targetPage=await((o=this.service)===null||o===void 0?void 0:o.getPage(a)),((n=this.targetPage)===null||n===void 0?void 0:n.number)!==a&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}};D.elementDefinitions={"ft-button":ot,"ft-reader-internal-link":rt};D.styles=Oo;pt([(0,nt.property)()],D.prototype,"target",void 0);pt([(0,nt.property)()],D.prototype,"content",void 0);pt([(0,nt.property)()],D.prototype,"tooltipPosition",void 0);pt([(0,nt.property)({type:Boolean})],D.prototype,"hideTooltip",void 0);pt([(0,nt.property)()],D.prototype,"iconVariant",void 0);pt([(0,nt.property)()],D.prototype,"icon",void 0);pt([(0,nt.property)({type:Boolean})],D.prototype,"trailingIcon",void 0);pt([(0,nt.property)({type:Boolean,attribute:!1})],D.prototype,"editorMode",void 0);pt([(0,ze.redux)()],D.prototype,"currentPage",void 0);pt([(0,nt.state)()],D.prototype,"targetPage",void 0);(0,_n.customElement)("ft-reader-navigation-button")(D);})();
858
+ `}update(o){super.update(o),o.has("currentPage")&&(this.targetPage=void 0,this.isReady=!1,this.debouncer.run(()=>this.updateTarget()))}async updateTarget(){var o,n;if(this.currentPage){let a=this.currentPage.number+(this.target==="next"?1:-1);this.targetPage=await((o=this.service)===null||o===void 0?void 0:o.getPage(a)),((n=this.targetPage)===null||n===void 0?void 0:n.number)!==a&&(this.targetPage=void 0)}else this.targetPage=void 0;this.isReady=!0}};G.elementDefinitions={"ft-button":ot,"ft-reader-internal-link":rt};G.styles=Oo;pt([(0,nt.property)()],G.prototype,"target",void 0);pt([(0,nt.property)()],G.prototype,"content",void 0);pt([(0,nt.property)()],G.prototype,"tooltipPosition",void 0);pt([(0,nt.property)({type:Boolean})],G.prototype,"hideTooltip",void 0);pt([(0,nt.property)()],G.prototype,"iconVariant",void 0);pt([(0,nt.property)()],G.prototype,"icon",void 0);pt([(0,nt.property)({type:Boolean})],G.prototype,"trailingIcon",void 0);pt([(0,nt.property)({type:Boolean,attribute:!1})],G.prototype,"editorMode",void 0);pt([(0,ze.redux)()],G.prototype,"currentPage",void 0);pt([(0,nt.state)()],G.prototype,"targetPage",void 0);(0,_n.customElement)("ft-reader-navigation-button")(G);})();
859
859
  /*! Bundled license information:
860
860
 
861
861
  lit-html/lit-html.js: