@fluid-topics/ft-snap-scroll 1.1.102 → 1.1.103

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";(()=>{var Rn=Object.create;var ao=Object.defineProperty;var An=Object.getOwnPropertyDescriptor;var Ln=Object.getOwnPropertyNames;var Wn=Object.getPrototypeOf,$n=Object.prototype.hasOwnProperty;var Qt=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var zn=(e,o,n,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of Ln(o))!$n.call(e,i)&&i!==n&&ao(e,i,{get:()=>o[i],enumerable:!(a=An(o,i))||a.enumerable});return e};var y=(e,o,n)=>(n=e!=null?Rn(Wn(e)):{},zn(o||!e||!e.__esModule?ao(n,"default",{value:e,enumerable:!0}):n,e));var w=Qt((aa,io)=>{io.exports=ftGlobals.wcUtils});var H=Qt((ia,lo)=>{lo.exports=ftGlobals.lit});var pt=Qt((la,co)=>{co.exports=ftGlobals.litDecorators});var be=Qt((Fc,pr)=>{pr.exports=ftGlobals.litClassMap});var sn=Qt((Xs,cn)=>{cn.exports=ftGlobals.litUnsafeHTML});var Nn=y(w());var Cn=y(H()),q=y(pt()),It=y(w());var to=y(w());var he=y(pt()),yn=y(w());var cr=y(H()),S=y(w());var go=y(H()),z=y(w()),so=z.FtCssVariableFactory.extend("--ft-ripple-color","",z.designSystemVariables.colorContent),N={color:so,backgroundColor:z.FtCssVariableFactory.extend("--ft-ripple-background-color","",so),opacityContentOnSurfacePressed:z.FtCssVariableFactory.external(z.designSystemVariables.opacityContentOnSurfacePressed,"Design system"),opacityContentOnSurfaceHover:z.FtCssVariableFactory.external(z.designSystemVariables.opacityContentOnSurfaceHover,"Design system"),opacityContentOnSurfaceFocused:z.FtCssVariableFactory.external(z.designSystemVariables.opacityContentOnSurfaceFocused,"Design system"),opacityContentOnSurfaceSelected:z.FtCssVariableFactory.external(z.designSystemVariables.opacityContentOnSurfaceSelected,"Design system"),borderRadius:z.FtCssVariableFactory.create("--ft-ripple-border-radius","","SIZE","0px")},po=z.FtCssVariableFactory.extend("--ft-ripple-color","",z.designSystemVariables.colorPrimary),fo={color:po,backgroundColor:z.FtCssVariableFactory.extend("--ft-ripple-background-color","",po)},ho=z.FtCssVariableFactory.extend("--ft-ripple-color","",z.designSystemVariables.colorSecondary),uo={color:ho,backgroundColor:z.FtCssVariableFactory.extend("--ft-ripple-background-color","",ho)},mo=go.css`
1
+ "use strict";(()=>{var Rn=Object.create;var ao=Object.defineProperty;var An=Object.getOwnPropertyDescriptor;var Ln=Object.getOwnPropertyNames;var Wn=Object.getPrototypeOf,$n=Object.prototype.hasOwnProperty;var Qt=(e,o)=>()=>(o||e((o={exports:{}}).exports,o),o.exports);var zn=(e,o,n,a)=>{if(o&&typeof o=="object"||typeof o=="function")for(let i of Ln(o))!$n.call(e,i)&&i!==n&&ao(e,i,{get:()=>o[i],enumerable:!(a=An(o,i))||a.enumerable});return e};var y=(e,o,n)=>(n=e!=null?Rn(Wn(e)):{},zn(o||!e||!e.__esModule?ao(n,"default",{value:e,enumerable:!0}):n,e));var w=Qt((aa,io)=>{io.exports=ftGlobals.wcUtils});var H=Qt((ia,lo)=>{lo.exports=ftGlobals.lit});var pt=Qt((la,co)=>{co.exports=ftGlobals.litDecorators});var be=Qt((Fc,pr)=>{pr.exports=ftGlobals.litClassMap});var sn=Qt((Xs,cn)=>{cn.exports=ftGlobals.litUnsafeHTML});var Nn=y(w());var Cn=y(H()),q=y(pt()),It=y(w());var to=y(w());var he=y(pt()),yn=y(w());var cr=y(H()),S=y(w());var go=y(H()),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")},po=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorPrimary),fo={color:po,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",po)},ho=I.FtCssVariableFactory.extend("--ft-ripple-color","",I.designSystemVariables.colorSecondary),uo={color:ho,backgroundColor:I.FtCssVariableFactory.extend("--ft-ripple-background-color","",ho)},mo=go.css`
2
2
  :host {
3
3
  display: contents;
4
4
  }
@@ -215,7 +215,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
215
215
  .ft-typography {
216
216
  vertical-align: inherit;
217
217
  }
218
- `,er=[Object.keys(ge).map(e=>Go(e))];var or=y(H()),te=y(w()),Z={color:te.FtCssVariableFactory.extend("--ft-loader-color","",te.designSystemVariables.colorPrimary),size:te.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},rr=or.css`
218
+ `,er=[Object.keys(ge).map(e=>Go(e))];var or=y(H()),te=y(w()),M={color:te.FtCssVariableFactory.extend("--ft-loader-color","",te.designSystemVariables.colorPrimary),size:te.FtCssVariableFactory.create("--ft-loader-size","","SIZE","80px")},rr=or.css`
219
219
  :host {
220
220
  line-height: 0;
221
221
  }
@@ -224,8 +224,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
224
224
  display: inline-block;
225
225
  position: relative;
226
226
 
227
- width: ${Z.size};
228
- height: ${Z.size};
227
+ width: ${M.size};
228
+ height: ${M.size};
229
229
  }
230
230
 
231
231
  .ft-loader div {
@@ -234,7 +234,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
234
234
  width: 25%;
235
235
  height: 25%;
236
236
  border-radius: 50%;
237
- background: ${Z.color};
237
+ background: ${M.color};
238
238
  animation-timing-function: cubic-bezier(0, 1, 1, 0);
239
239
  }
240
240
 
@@ -281,10 +281,10 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
281
281
  transform: translate(0, 0);
282
282
  }
283
283
  100% {
284
- transform: translate(calc(0.35 * ${Z.size}), 0);
284
+ transform: translate(calc(0.35 * ${M.size}), 0);
285
285
  }
286
286
  }
287
- `;var nr=y(H()),ht=y(w()),M={size:ht.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:ht.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",ht.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:ht.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",ht.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:ht.FtCssVariableFactory.extend("--ft-icon-material-font-family","",ht.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:ht.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ar=nr.css`
287
+ `;var nr=y(H()),ht=y(w()),K={size:ht.FtCssVariableFactory.create("--ft-icon-font-size","","SIZE","24px"),fluidTopicsFontFamily:ht.FtCssVariableFactory.extend("--ft-icon-fluid-topics-font-family","",ht.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-icons")),fileFormatFontFamily:ht.FtCssVariableFactory.extend("--ft-icon-file-format-font-family","",ht.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","ft-mime")),materialFontFamily:ht.FtCssVariableFactory.extend("--ft-icon-material-font-family","",ht.FtCssVariableFactory.create("--ft-icon-font-family","","UNKNOWN","Material Icons")),verticalAlign:ht.FtCssVariableFactory.create("--ft-icon-vertical-align","","UNKNOWN","unset")},ar=nr.css`
288
288
  :host, i.ft-icon {
289
289
  display: inline-flex;
290
290
  align-items: center;
@@ -293,14 +293,14 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
293
293
  }
294
294
 
295
295
  :host {
296
- width: ${M.size};
297
- height: ${M.size};
296
+ width: ${K.size};
297
+ height: ${K.size};
298
298
  }
299
299
 
300
300
  i.ft-icon {
301
301
  width: 100%;
302
302
  height: 100%;
303
- font-size: ${M.size};
303
+ font-size: ${K.size};
304
304
  line-height: 1;
305
305
  font-weight: normal;
306
306
  text-transform: none;
@@ -311,26 +311,26 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
311
311
  text-rendering: auto;
312
312
  -webkit-font-smoothing: antialiased;
313
313
  -moz-osx-font-smoothing: grayscale;
314
- vertical-align: ${M.verticalAlign};
314
+ vertical-align: ${K.verticalAlign};
315
315
  }
316
316
 
317
317
  i.ft-icon.ft-icon--fluid-topics {
318
- font-family: ${M.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
318
+ font-family: ${K.fluidTopicsFontFamily}, ft-icons, fticons, sans-serif;
319
319
 
320
320
  /* Ugly fix because font is broken */
321
- font-size: calc(0.75 * ${M.size});
322
- line-height: ${M.size};
321
+ font-size: calc(0.75 * ${K.size});
322
+ line-height: ${K.size};
323
323
  position: relative;
324
324
  top: -4%;
325
325
  justify-content: center;
326
326
  }
327
327
 
328
328
  .ft-icon--file-format {
329
- font-family: ${M.fileFormatFontFamily}, ft-mime, sans-serif;
329
+ font-family: ${K.fileFormatFontFamily}, ft-mime, sans-serif;
330
330
  }
331
331
 
332
332
  .ft-icon--material {
333
- font-family: ${M.materialFontFamily}, "Material Icons", sans-serif;
333
+ font-family: ${K.materialFontFamily}, "Material Icons", sans-serif;
334
334
  }
335
335
  `;var ir=S.FtCssVariableFactory.extend("--ft-button-color","",S.designSystemVariables.colorPrimary),L={backgroundColor:S.FtCssVariableFactory.extend("--ft-button-background-color","",S.designSystemVariables.colorSurface),borderRadius:S.FtCssVariableFactory.extend("--ft-button-border-radius","",S.designSystemVariables.borderRadiusL),color:ir,fontSize:S.FtCssVariableFactory.extend("--ft-button-font-size","",at.fontSize),iconSize:S.FtCssVariableFactory.create("--ft-button-icon-size","","SIZE","24px"),rippleColor:S.FtCssVariableFactory.extend("--ft-button-ripple-color","",ir),verticalPadding:S.FtCssVariableFactory.create("--ft-button-vertical-padding","","SIZE","6px"),horizontalPadding:S.FtCssVariableFactory.create("--ft-button-horizontal-padding","","SIZE","8px"),iconPadding:S.FtCssVariableFactory.create("--ft-button-icon-padding","","SIZE","8px"),opacityDisabled:S.FtCssVariableFactory.external(S.designSystemVariables.colorOpacityDisabled,"Design system")},lr=S.FtCssVariableFactory.extend("--ft-button-primary-color","",S.FtCssVariableFactory.extend("--ft-button-color","",S.designSystemVariables.colorOnPrimary)),Ie={backgroundColor:S.FtCssVariableFactory.extend("--ft-button-primary-background-color","",S.FtCssVariableFactory.extend("--ft-button-background-color","",S.designSystemVariables.colorPrimary)),color:lr,rippleColor:S.FtCssVariableFactory.extend("--ft-button-primary-ripple-color","",lr)},it={borderRadius:S.FtCssVariableFactory.extend("--ft-button-dense-border-radius","",S.FtCssVariableFactory.extend("--ft-button-border-radius","",S.designSystemVariables.borderRadiusM)),verticalPadding:S.FtCssVariableFactory.create("--ft-button-dense-vertical-padding","","SIZE","2px"),horizontalPadding:S.FtCssVariableFactory.create("--ft-button-dense-horizontal-padding","","SIZE","4px"),iconPadding:S.FtCssVariableFactory.create("--ft-button-dense-icon-padding","","SIZE","4px")},sr=[cr.css`
336
336
  :host {
@@ -374,7 +374,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
374
374
 
375
375
  --ft-button-internal-line-height: max(calc(${L.fontSize} + 2px), ${L.iconSize});
376
376
  --ft-button-internal-color: ${L.color};
377
- ${(0,S.setVariable)(M.size,L.iconSize)};
377
+ ${(0,S.setVariable)(K.size,L.iconSize)};
378
378
  ${(0,S.setVariable)(N.color,L.rippleColor)};
379
379
 
380
380
  border-radius: ${L.borderRadius};
@@ -465,8 +465,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
465
465
  }
466
466
 
467
467
  ft-loader {
468
- ${(0,S.setVariable)(Z.size,L.iconSize)};
469
- ${(0,S.setVariable)(Z.color,"var(--ft-button-internal-color)")};
468
+ ${(0,S.setVariable)(M.size,L.iconSize)};
469
+ ${(0,S.setVariable)(M.color,"var(--ft-button-internal-color)")};
470
470
  }
471
471
  `,S.noTextSelect];var qt=y(w());var hr=y(w());var dr=y(H()),k=y(pt()),fr=y(be()),ee=y(w());var F=function(e,o,n,a){var i=arguments.length,c=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(c=(i<3?s(c):i>3?s(o,n,c):s(o,n))||c);return i>3&&c&&Object.defineProperty(o,n,c),c},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:c}=this.getCoordinates(o),s=(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-s.x:s.width/2),this.originY=Math.round(c!=null?c-s.y:s.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 dr.html`
472
472
  <style>
@@ -518,7 +518,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
518
518
  position: relative;
519
519
  word-break: break-word;
520
520
  }
521
- `;var _r=["top","right","bottom","left"],Br=["start","end"],Ke=_r.reduce((e,o)=>e.concat(o,o+"-"+Br[0],o+"-"+Br[1]),[]),ie=Math.min,vt=Math.max,le=Math.round;var gt=e=>({x:e,y:e}),kn={left:"right",right:"left",bottom:"top",top:"bottom"},Un={start:"end",end:"start"};function Fe(e,o,n){return vt(e,ie(o,n))}function Ce(e,o){return typeof e=="function"?e(o):e}function Vt(e){return e.split("-")[0]}function Nt(e){return e.split("-")[1]}function Ve(e){return e==="x"?"y":"x"}function je(e){return e==="y"?"height":"width"}function ve(e){return["top","bottom"].includes(Vt(e))?"y":"x"}function Ye(e){return Ve(ve(e))}function Hr(e,o,n){n===void 0&&(n=!1);let a=Nt(e),i=Ye(e),c=je(i),s=i==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[c]>o.floating[c]&&(s=Me(s)),[s,Me(s)]}function kr(e){return e.replace(/start|end/g,o=>Un[o])}function Me(e){return e.replace(/left|right|bottom|top/g,o=>kn[o])}function Dn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ur(e){return typeof e!="number"?Dn(e):{top:e,right:e,bottom:e,left:e}}function Lt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Dr(e,o,n){let{reference:a,floating:i}=e,c=ve(o),s=Ye(o),p=je(s),d=Vt(o),g=c==="y",x=a.x+a.width/2-i.width/2,m=a.y+a.height/2-i.height/2,v=a[p]/2-i[p]/2,O;switch(d){case"top":O={x,y:a.y-i.height};break;case"bottom":O={x,y:a.y+a.height};break;case"right":O={x:a.x+a.width,y:m};break;case"left":O={x:a.x-i.width,y:m};break;default:O={x:a.x,y:a.y}}switch(Nt(o)){case"start":O[s]-=v*(n&&g?-1:1);break;case"end":O[s]+=v*(n&&g?-1:1);break}return O}var Gr=async(e,o,n)=>{let{placement:a="bottom",strategy:i="absolute",middleware:c=[],platform:s}=n,p=c.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(o)),g=await s.getElementRects({reference:e,floating:o,strategy:i}),{x,y:m}=Dr(g,a,d),v=a,O={},E=0;for(let W=0;W<p.length;W++){let{name:P,fn:$}=p[W],{x:T,y:G,data:xt,reset:U}=await $({x,y:m,initialPlacement:a,placement:v,strategy:i,middlewareData:O,rects:g,platform:s,elements:{reference:e,floating:o}});if(x=T??x,m=G??m,O={...O,[P]:{...O[P],...xt}},U&&E<=50){E++,typeof U=="object"&&(U.placement&&(v=U.placement),U.rects&&(g=U.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:i}):U.rects),{x,y:m}=Dr(g,v,d)),W=-1;continue}}return{x,y:m,placement:v,strategy:i,middlewareData:O}};async function Xe(e,o){var n;o===void 0&&(o={});let{x:a,y:i,platform:c,rects:s,elements:p,strategy:d}=e,{boundary:g="clippingAncestors",rootBoundary:x="viewport",elementContext:m="floating",altBoundary:v=!1,padding:O=0}=Ce(o,e),E=Ur(O),P=p[v?m==="floating"?"reference":"floating":m],$=Lt(await c.getClippingRect({element:(n=await(c.isElement==null?void 0:c.isElement(P)))==null||n?P:P.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:g,rootBoundary:x,strategy:d})),T=m==="floating"?{...s.floating,x:a,y:i}:s.reference,G=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),xt=await(c.isElement==null?void 0:c.isElement(G))?await(c.getScale==null?void 0:c.getScale(G))||{x:1,y:1}:{x:1,y:1},U=Lt(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:G,strategy:d}):T);return{top:($.top-U.top+E.top)/xt.y,bottom:(U.bottom-$.bottom+E.bottom)/xt.y,left:($.left-U.left+E.left)/xt.x,right:(U.right-$.right+E.right)/xt.x}}function Gn(e,o,n){return(e?[...n.filter(i=>Nt(i)===e),...n.filter(i=>Nt(i)!==e)]:n.filter(i=>Vt(i)===i)).filter(i=>e?Nt(i)===e||(o?kr(i)!==i:!1):!0)}var qe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var n,a,i;let{rects:c,middlewareData:s,placement:p,platform:d,elements:g}=o,{crossAxis:x=!1,alignment:m,allowedPlacements:v=Ke,autoAlignment:O=!0,...E}=Ce(e,o),W=m!==void 0||v===Ke?Gn(m||null,O,v):v,P=await Xe(o,E),$=((n=s.autoPlacement)==null?void 0:n.index)||0,T=W[$];if(T==null)return{};let G=Hr(T,c,await(d.isRTL==null?void 0:d.isRTL(g.floating)));if(p!==T)return{reset:{placement:W[0]}};let xt=[P[Vt(T)],P[G[0]],P[G[1]]],U=[...((a=s.autoPlacement)==null?void 0:a.overflows)||[],{placement:T,overflows:xt}],oo=W[$+1];if(oo)return{data:{index:$+1,overflows:U},reset:{placement:oo}};let ro=U.map(nt=>{let Jt=Nt(nt.placement);return[nt.placement,Jt&&x?nt.overflows.slice(0,2).reduce((En,wn)=>En+wn,0):nt.overflows[0],nt.overflows]}).sort((nt,Jt)=>nt[1]-Jt[1]),no=((i=ro.filter(nt=>nt[2].slice(0,Nt(nt[0])?2:3).every(Jt=>Jt<=0))[0])==null?void 0:i[0])||ro[0][0];return no!==p?{data:{index:$+1,overflows:U},reset:{placement:no}}:{}}}};var Je=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:n,y:a,placement:i}=o,{mainAxis:c=!0,crossAxis:s=!1,limiter:p={fn:P=>{let{x:$,y:T}=P;return{x:$,y:T}}},...d}=Ce(e,o),g={x:n,y:a},x=await Xe(o,d),m=ve(Vt(i)),v=Ve(m),O=g[v],E=g[m];if(c){let P=v==="y"?"top":"left",$=v==="y"?"bottom":"right",T=O+x[P],G=O-x[$];O=Fe(T,O,G)}if(s){let P=m==="y"?"top":"left",$=m==="y"?"bottom":"right",T=E+x[P],G=E-x[$];E=Fe(T,E,G)}let W=p.fn({...o,[v]:O,[m]:E});return{...W,data:{x:W.x-n,y:W.y-a}}}}};function mt(e){return Mr(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function yt(e){var o;return(o=(Mr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Mr(e){return e instanceof Node||e instanceof V(e).Node}function lt(e){return e instanceof Element||e instanceof V(e).Element}function et(e){return e instanceof HTMLElement||e instanceof V(e).HTMLElement}function Zr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function jt(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 Kr(e){return["table","td","th"].includes(mt(e))}function Ee(e){let o=we(),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 Fr(e){let o=Wt(e);for(;et(o)&&!ce(o);){if(Ee(o))return o;o=Wt(o)}return null}function we(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ce(e){return["html","body","#document"].includes(mt(e))}function Y(e){return V(e).getComputedStyle(e)}function se(e){return lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Wt(e){if(mt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Zr(e)&&e.host||yt(e);return Zr(o)?o.host:o}function Vr(e){let o=Wt(e);return ce(o)?e.ownerDocument?e.ownerDocument.body:e.body:et(o)&&jt(o)?o:Vr(o)}function Ne(e,o,n){var a;o===void 0&&(o=[]),n===void 0&&(n=!0);let i=Vr(e),c=i===((a=e.ownerDocument)==null?void 0:a.body),s=V(i);return c?o.concat(s,s.visualViewport||[],jt(i)?i:[],s.frameElement&&n?Ne(s.frameElement):[]):o.concat(i,Ne(i,[],n))}function Xr(e){let o=Y(e),n=parseFloat(o.width)||0,a=parseFloat(o.height)||0,i=et(e),c=i?e.offsetWidth:n,s=i?e.offsetHeight:a,p=le(n)!==c||le(a)!==s;return p&&(n=c,a=s),{width:n,height:a,$:p}}function qr(e){return lt(e)?e:e.contextElement}function Yt(e){let o=qr(e);if(!et(o))return gt(1);let n=o.getBoundingClientRect(),{width:a,height:i,$:c}=Xr(o),s=(c?le(n.width):n.width)/a,p=(c?le(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var Zn=gt(0);function Jr(e){let o=V(e);return!we()||!o.visualViewport?Zn:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Mn(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(),c=qr(e),s=gt(1);o&&(a?lt(a)&&(s=Yt(a)):s=Yt(e));let p=Mn(c,n,a)?Jr(c):gt(0),d=(i.left+p.x)/s.x,g=(i.top+p.y)/s.y,x=i.width/s.x,m=i.height/s.y;if(c){let v=V(c),O=a&&lt(a)?V(a):a,E=v.frameElement;for(;E&&a&&O!==v;){let W=Yt(E),P=E.getBoundingClientRect(),$=Y(E),T=P.left+(E.clientLeft+parseFloat($.paddingLeft))*W.x,G=P.top+(E.clientTop+parseFloat($.paddingTop))*W.y;d*=W.x,g*=W.y,x*=W.x,m*=W.y,d+=T,g+=G,E=V(E).frameElement}}return Lt({width:x,height:m,x:d,y:g})}function Kn(e){let{rect:o,offsetParent:n,strategy:a}=e,i=et(n),c=yt(n);if(n===c)return o;let s={scrollLeft:0,scrollTop:0},p=gt(1),d=gt(0);if((i||!i&&a!=="fixed")&&((mt(n)!=="body"||jt(c))&&(s=se(n)),et(n))){let g=pe(n);p=Yt(n),d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-s.scrollLeft*p.x+d.x,y:o.y*p.y-s.scrollTop*p.y+d.y}}function Fn(e){return Array.from(e.getClientRects())}function Qr(e){return pe(yt(e)).left+se(e).scrollLeft}function Vn(e){let o=yt(e),n=se(e),a=e.ownerDocument.body,i=vt(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),c=vt(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight),s=-n.scrollLeft+Qr(e),p=-n.scrollTop;return Y(a).direction==="rtl"&&(s+=vt(o.clientWidth,a.clientWidth)-i),{width:i,height:c,x:s,y:p}}function jn(e,o){let n=V(e),a=yt(e),i=n.visualViewport,c=a.clientWidth,s=a.clientHeight,p=0,d=0;if(i){c=i.width,s=i.height;let g=we();(!g||g&&o==="fixed")&&(p=i.offsetLeft,d=i.offsetTop)}return{width:c,height:s,x:p,y:d}}function Yn(e,o){let n=pe(e,!0,o==="fixed"),a=n.top+e.clientTop,i=n.left+e.clientLeft,c=et(e)?Yt(e):gt(1),s=e.clientWidth*c.x,p=e.clientHeight*c.y,d=i*c.x,g=a*c.y;return{width:s,height:p,x:d,y:g}}function jr(e,o,n){let a;if(o==="viewport")a=jn(e,n);else if(o==="document")a=Vn(yt(e));else if(lt(o))a=Yn(o,n);else{let i=Jr(e);a={...o,x:o.x-i.x,y:o.y-i.y}}return Lt(a)}function tn(e,o){let n=Wt(e);return n===o||!lt(n)||ce(n)?!1:Y(n).position==="fixed"||tn(n,o)}function Xn(e,o){let n=o.get(e);if(n)return n;let a=Ne(e,[],!1).filter(p=>lt(p)&&mt(p)!=="body"),i=null,c=Y(e).position==="fixed",s=c?Wt(e):e;for(;lt(s)&&!ce(s);){let p=Y(s),d=Ee(s);!d&&p.position==="fixed"&&(i=null),(c?!d&&!i:!d&&p.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||jt(s)&&!d&&tn(e,s))?a=a.filter(x=>x!==s):i=p,s=Wt(s)}return o.set(e,a),a}function qn(e){let{element:o,boundary:n,rootBoundary:a,strategy:i}=e,s=[...n==="clippingAncestors"?Xn(o,this._c):[].concat(n),a],p=s[0],d=s.reduce((g,x)=>{let m=jr(o,x,i);return g.top=vt(m.top,g.top),g.right=ie(m.right,g.right),g.bottom=ie(m.bottom,g.bottom),g.left=vt(m.left,g.left),g},jr(o,p,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Jn(e){return Xr(e)}function Qn(e,o,n){let a=et(o),i=yt(o),c=n==="fixed",s=pe(e,!0,c,o),p={scrollLeft:0,scrollTop:0},d=gt(0);if(a||!a&&!c)if((mt(o)!=="body"||jt(i))&&(p=se(o)),a){let g=pe(o,!0,c,o);d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}else i&&(d.x=Qr(i));return{x:s.left+p.scrollLeft-d.x,y:s.top+p.scrollTop-d.y,width:s.width,height:s.height}}function Yr(e,o){return!et(e)||Y(e).position==="fixed"?null:o?o(e):e.offsetParent}function en(e,o){let n=V(e);if(!et(e))return n;let a=Yr(e,o);for(;a&&Kr(a)&&Y(a).position==="static";)a=Yr(a,o);return a&&(mt(a)==="html"||mt(a)==="body"&&Y(a).position==="static"&&!Ee(a))?n:a||Fr(e)||n}var ta=async function(e){let{reference:o,floating:n,strategy:a}=e,i=this.getOffsetParent||en,c=this.getDimensions;return{reference:Qn(o,await i(n),a),floating:{x:0,y:0,...await c(n)}}};function ea(e){return Y(e).direction==="rtl"}var Re={convertOffsetParentRelativeRectToViewportRelativeRect:Kn,getDocumentElement:yt,getClippingRect:qn,getOffsetParent:en,getElementRects:ta,getClientRects:Fn,getDimensions:Jn,getScale:Yt,isElement:lt,isRTL:ea};var on=(e,o,n)=>{let a=new Map,i={platform:Re,...n},c={...i.platform,_c:a};return Gr(e,o,{...i,platform:c})};function rn(e){return oa(e)}function Qe(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function oa(e){for(let o=e;o;o=Qe(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Qe(e);o;o=Qe(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 nn(e,o,n){return on(e,o,{platform:{...Re,getOffsetParent:a=>Re.getOffsetParent(a,rn)},middleware:[Je({crossAxis:!0}),qe({allowedPlacements:[n]})]})}var j=function(e,o,n,a){var i=arguments.length,c=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(c=(i<3?s(c):i>3?s(o,n,c):s(o,n))||c);return i>3&&c&&Object.defineProperty(o,n,c),c},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 an.html`
521
+ `;var _r=["top","right","bottom","left"],Br=["start","end"],Ke=_r.reduce((e,o)=>e.concat(o,o+"-"+Br[0],o+"-"+Br[1]),[]),ie=Math.min,vt=Math.max,le=Math.round;var gt=e=>({x:e,y:e}),kn={left:"right",right:"left",bottom:"top",top:"bottom"},Un={start:"end",end:"start"};function Fe(e,o,n){return vt(e,ie(o,n))}function Ce(e,o){return typeof e=="function"?e(o):e}function Vt(e){return e.split("-")[0]}function Nt(e){return e.split("-")[1]}function Ve(e){return e==="x"?"y":"x"}function je(e){return e==="y"?"height":"width"}function ve(e){return["top","bottom"].includes(Vt(e))?"y":"x"}function Ye(e){return Ve(ve(e))}function Hr(e,o,n){n===void 0&&(n=!1);let a=Nt(e),i=Ye(e),c=je(i),s=i==="x"?a===(n?"end":"start")?"right":"left":a==="start"?"bottom":"top";return o.reference[c]>o.floating[c]&&(s=Me(s)),[s,Me(s)]}function kr(e){return e.replace(/start|end/g,o=>Un[o])}function Me(e){return e.replace(/left|right|bottom|top/g,o=>kn[o])}function Dn(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ur(e){return typeof e!="number"?Dn(e):{top:e,right:e,bottom:e,left:e}}function Lt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Dr(e,o,n){let{reference:a,floating:i}=e,c=ve(o),s=Ye(o),p=je(s),d=Vt(o),g=c==="y",x=a.x+a.width/2-i.width/2,m=a.y+a.height/2-i.height/2,v=a[p]/2-i[p]/2,O;switch(d){case"top":O={x,y:a.y-i.height};break;case"bottom":O={x,y:a.y+a.height};break;case"right":O={x:a.x+a.width,y:m};break;case"left":O={x:a.x-i.width,y:m};break;default:O={x:a.x,y:a.y}}switch(Nt(o)){case"start":O[s]-=v*(n&&g?-1:1);break;case"end":O[s]+=v*(n&&g?-1:1);break}return O}var Gr=async(e,o,n)=>{let{placement:a="bottom",strategy:i="absolute",middleware:c=[],platform:s}=n,p=c.filter(Boolean),d=await(s.isRTL==null?void 0:s.isRTL(o)),g=await s.getElementRects({reference:e,floating:o,strategy:i}),{x,y:m}=Dr(g,a,d),v=a,O={},E=0;for(let $=0;$<p.length;$++){let{name:P,fn:z}=p[$],{x:T,y:Z,data:xt,reset:U}=await z({x,y:m,initialPlacement:a,placement:v,strategy:i,middlewareData:O,rects:g,platform:s,elements:{reference:e,floating:o}});if(x=T??x,m=Z??m,O={...O,[P]:{...O[P],...xt}},U&&E<=50){E++,typeof U=="object"&&(U.placement&&(v=U.placement),U.rects&&(g=U.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:i}):U.rects),{x,y:m}=Dr(g,v,d)),$=-1;continue}}return{x,y:m,placement:v,strategy:i,middlewareData:O}};async function Xe(e,o){var n;o===void 0&&(o={});let{x:a,y:i,platform:c,rects:s,elements:p,strategy:d}=e,{boundary:g="clippingAncestors",rootBoundary:x="viewport",elementContext:m="floating",altBoundary:v=!1,padding:O=0}=Ce(o,e),E=Ur(O),P=p[v?m==="floating"?"reference":"floating":m],z=Lt(await c.getClippingRect({element:(n=await(c.isElement==null?void 0:c.isElement(P)))==null||n?P:P.contextElement||await(c.getDocumentElement==null?void 0:c.getDocumentElement(p.floating)),boundary:g,rootBoundary:x,strategy:d})),T=m==="floating"?{...s.floating,x:a,y:i}:s.reference,Z=await(c.getOffsetParent==null?void 0:c.getOffsetParent(p.floating)),xt=await(c.isElement==null?void 0:c.isElement(Z))?await(c.getScale==null?void 0:c.getScale(Z))||{x:1,y:1}:{x:1,y:1},U=Lt(c.convertOffsetParentRelativeRectToViewportRelativeRect?await c.convertOffsetParentRelativeRectToViewportRelativeRect({rect:T,offsetParent:Z,strategy:d}):T);return{top:(z.top-U.top+E.top)/xt.y,bottom:(U.bottom-z.bottom+E.bottom)/xt.y,left:(z.left-U.left+E.left)/xt.x,right:(U.right-z.right+E.right)/xt.x}}function Gn(e,o,n){return(e?[...n.filter(i=>Nt(i)===e),...n.filter(i=>Nt(i)!==e)]:n.filter(i=>Vt(i)===i)).filter(i=>e?Nt(i)===e||(o?kr(i)!==i:!1):!0)}var qe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var n,a,i;let{rects:c,middlewareData:s,placement:p,platform:d,elements:g}=o,{crossAxis:x=!1,alignment:m,allowedPlacements:v=Ke,autoAlignment:O=!0,...E}=Ce(e,o),$=m!==void 0||v===Ke?Gn(m||null,O,v):v,P=await Xe(o,E),z=((n=s.autoPlacement)==null?void 0:n.index)||0,T=$[z];if(T==null)return{};let Z=Hr(T,c,await(d.isRTL==null?void 0:d.isRTL(g.floating)));if(p!==T)return{reset:{placement:$[0]}};let xt=[P[Vt(T)],P[Z[0]],P[Z[1]]],U=[...((a=s.autoPlacement)==null?void 0:a.overflows)||[],{placement:T,overflows:xt}],oo=$[z+1];if(oo)return{data:{index:z+1,overflows:U},reset:{placement:oo}};let ro=U.map(nt=>{let Jt=Nt(nt.placement);return[nt.placement,Jt&&x?nt.overflows.slice(0,2).reduce((En,wn)=>En+wn,0):nt.overflows[0],nt.overflows]}).sort((nt,Jt)=>nt[1]-Jt[1]),no=((i=ro.filter(nt=>nt[2].slice(0,Nt(nt[0])?2:3).every(Jt=>Jt<=0))[0])==null?void 0:i[0])||ro[0][0];return no!==p?{data:{index:z+1,overflows:U},reset:{placement:no}}:{}}}};var Je=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:n,y:a,placement:i}=o,{mainAxis:c=!0,crossAxis:s=!1,limiter:p={fn:P=>{let{x:z,y:T}=P;return{x:z,y:T}}},...d}=Ce(e,o),g={x:n,y:a},x=await Xe(o,d),m=ve(Vt(i)),v=Ve(m),O=g[v],E=g[m];if(c){let P=v==="y"?"top":"left",z=v==="y"?"bottom":"right",T=O+x[P],Z=O-x[z];O=Fe(T,O,Z)}if(s){let P=m==="y"?"top":"left",z=m==="y"?"bottom":"right",T=E+x[P],Z=E-x[z];E=Fe(T,E,Z)}let $=p.fn({...o,[v]:O,[m]:E});return{...$,data:{x:$.x-n,y:$.y-a}}}}};function mt(e){return Mr(e)?(e.nodeName||"").toLowerCase():"#document"}function V(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function yt(e){var o;return(o=(Mr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function Mr(e){return e instanceof Node||e instanceof V(e).Node}function lt(e){return e instanceof Element||e instanceof V(e).Element}function et(e){return e instanceof HTMLElement||e instanceof V(e).HTMLElement}function Zr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof V(e).ShadowRoot}function jt(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 Kr(e){return["table","td","th"].includes(mt(e))}function Ee(e){let o=we(),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 Fr(e){let o=Wt(e);for(;et(o)&&!ce(o);){if(Ee(o))return o;o=Wt(o)}return null}function we(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ce(e){return["html","body","#document"].includes(mt(e))}function X(e){return V(e).getComputedStyle(e)}function se(e){return lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Wt(e){if(mt(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Zr(e)&&e.host||yt(e);return Zr(o)?o.host:o}function Vr(e){let o=Wt(e);return ce(o)?e.ownerDocument?e.ownerDocument.body:e.body:et(o)&&jt(o)?o:Vr(o)}function Ne(e,o,n){var a;o===void 0&&(o=[]),n===void 0&&(n=!0);let i=Vr(e),c=i===((a=e.ownerDocument)==null?void 0:a.body),s=V(i);return c?o.concat(s,s.visualViewport||[],jt(i)?i:[],s.frameElement&&n?Ne(s.frameElement):[]):o.concat(i,Ne(i,[],n))}function Xr(e){let o=X(e),n=parseFloat(o.width)||0,a=parseFloat(o.height)||0,i=et(e),c=i?e.offsetWidth:n,s=i?e.offsetHeight:a,p=le(n)!==c||le(a)!==s;return p&&(n=c,a=s),{width:n,height:a,$:p}}function qr(e){return lt(e)?e:e.contextElement}function Yt(e){let o=qr(e);if(!et(o))return gt(1);let n=o.getBoundingClientRect(),{width:a,height:i,$:c}=Xr(o),s=(c?le(n.width):n.width)/a,p=(c?le(n.height):n.height)/i;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var Zn=gt(0);function Jr(e){let o=V(e);return!we()||!o.visualViewport?Zn:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function Mn(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(),c=qr(e),s=gt(1);o&&(a?lt(a)&&(s=Yt(a)):s=Yt(e));let p=Mn(c,n,a)?Jr(c):gt(0),d=(i.left+p.x)/s.x,g=(i.top+p.y)/s.y,x=i.width/s.x,m=i.height/s.y;if(c){let v=V(c),O=a&&lt(a)?V(a):a,E=v.frameElement;for(;E&&a&&O!==v;){let $=Yt(E),P=E.getBoundingClientRect(),z=X(E),T=P.left+(E.clientLeft+parseFloat(z.paddingLeft))*$.x,Z=P.top+(E.clientTop+parseFloat(z.paddingTop))*$.y;d*=$.x,g*=$.y,x*=$.x,m*=$.y,d+=T,g+=Z,E=V(E).frameElement}}return Lt({width:x,height:m,x:d,y:g})}function Kn(e){let{rect:o,offsetParent:n,strategy:a}=e,i=et(n),c=yt(n);if(n===c)return o;let s={scrollLeft:0,scrollTop:0},p=gt(1),d=gt(0);if((i||!i&&a!=="fixed")&&((mt(n)!=="body"||jt(c))&&(s=se(n)),et(n))){let g=pe(n);p=Yt(n),d.x=g.x+n.clientLeft,d.y=g.y+n.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-s.scrollLeft*p.x+d.x,y:o.y*p.y-s.scrollTop*p.y+d.y}}function Fn(e){return Array.from(e.getClientRects())}function Qr(e){return pe(yt(e)).left+se(e).scrollLeft}function Vn(e){let o=yt(e),n=se(e),a=e.ownerDocument.body,i=vt(o.scrollWidth,o.clientWidth,a.scrollWidth,a.clientWidth),c=vt(o.scrollHeight,o.clientHeight,a.scrollHeight,a.clientHeight),s=-n.scrollLeft+Qr(e),p=-n.scrollTop;return X(a).direction==="rtl"&&(s+=vt(o.clientWidth,a.clientWidth)-i),{width:i,height:c,x:s,y:p}}function jn(e,o){let n=V(e),a=yt(e),i=n.visualViewport,c=a.clientWidth,s=a.clientHeight,p=0,d=0;if(i){c=i.width,s=i.height;let g=we();(!g||g&&o==="fixed")&&(p=i.offsetLeft,d=i.offsetTop)}return{width:c,height:s,x:p,y:d}}function Yn(e,o){let n=pe(e,!0,o==="fixed"),a=n.top+e.clientTop,i=n.left+e.clientLeft,c=et(e)?Yt(e):gt(1),s=e.clientWidth*c.x,p=e.clientHeight*c.y,d=i*c.x,g=a*c.y;return{width:s,height:p,x:d,y:g}}function jr(e,o,n){let a;if(o==="viewport")a=jn(e,n);else if(o==="document")a=Vn(yt(e));else if(lt(o))a=Yn(o,n);else{let i=Jr(e);a={...o,x:o.x-i.x,y:o.y-i.y}}return Lt(a)}function tn(e,o){let n=Wt(e);return n===o||!lt(n)||ce(n)?!1:X(n).position==="fixed"||tn(n,o)}function Xn(e,o){let n=o.get(e);if(n)return n;let a=Ne(e,[],!1).filter(p=>lt(p)&&mt(p)!=="body"),i=null,c=X(e).position==="fixed",s=c?Wt(e):e;for(;lt(s)&&!ce(s);){let p=X(s),d=Ee(s);!d&&p.position==="fixed"&&(i=null),(c?!d&&!i:!d&&p.position==="static"&&!!i&&["absolute","fixed"].includes(i.position)||jt(s)&&!d&&tn(e,s))?a=a.filter(x=>x!==s):i=p,s=Wt(s)}return o.set(e,a),a}function qn(e){let{element:o,boundary:n,rootBoundary:a,strategy:i}=e,s=[...n==="clippingAncestors"?Xn(o,this._c):[].concat(n),a],p=s[0],d=s.reduce((g,x)=>{let m=jr(o,x,i);return g.top=vt(m.top,g.top),g.right=ie(m.right,g.right),g.bottom=ie(m.bottom,g.bottom),g.left=vt(m.left,g.left),g},jr(o,p,i));return{width:d.right-d.left,height:d.bottom-d.top,x:d.left,y:d.top}}function Jn(e){return Xr(e)}function Qn(e,o,n){let a=et(o),i=yt(o),c=n==="fixed",s=pe(e,!0,c,o),p={scrollLeft:0,scrollTop:0},d=gt(0);if(a||!a&&!c)if((mt(o)!=="body"||jt(i))&&(p=se(o)),a){let g=pe(o,!0,c,o);d.x=g.x+o.clientLeft,d.y=g.y+o.clientTop}else i&&(d.x=Qr(i));return{x:s.left+p.scrollLeft-d.x,y:s.top+p.scrollTop-d.y,width:s.width,height:s.height}}function Yr(e,o){return!et(e)||X(e).position==="fixed"?null:o?o(e):e.offsetParent}function en(e,o){let n=V(e);if(!et(e))return n;let a=Yr(e,o);for(;a&&Kr(a)&&X(a).position==="static";)a=Yr(a,o);return a&&(mt(a)==="html"||mt(a)==="body"&&X(a).position==="static"&&!Ee(a))?n:a||Fr(e)||n}var ta=async function(e){let{reference:o,floating:n,strategy:a}=e,i=this.getOffsetParent||en,c=this.getDimensions;return{reference:Qn(o,await i(n),a),floating:{x:0,y:0,...await c(n)}}};function ea(e){return X(e).direction==="rtl"}var Re={convertOffsetParentRelativeRectToViewportRelativeRect:Kn,getDocumentElement:yt,getClippingRect:qn,getOffsetParent:en,getElementRects:ta,getClientRects:Fn,getDimensions:Jn,getScale:Yt,isElement:lt,isRTL:ea};var on=(e,o,n)=>{let a=new Map,i={platform:Re,...n},c={...i.platform,_c:a};return Gr(e,o,{...i,platform:c})};function rn(e){return oa(e)}function Qe(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function oa(e){for(let o=e;o;o=Qe(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=Qe(e);o;o=Qe(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 nn(e,o,n){return on(e,o,{platform:{...Re,getOffsetParent:a=>Re.getOffsetParent(a,rn)},middleware:[Je({crossAxis:!0}),qe({allowedPlacements:[n]})]})}var j=function(e,o,n,a){var i=arguments.length,c=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(c=(i<3?s(c):i>3?s(o,n,c):s(o,n))||c);return i>3&&c&&Object.defineProperty(o,n,c),c},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 an.html`
522
522
  <div part="container"
523
523
  class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
524
524
  @mouseenter=${this.onHover}
@@ -548,10 +548,10 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
548
548
  <div></div>
549
549
  <div></div>
550
550
  </div>
551
- `}};zt.styles=rr;(0,gn.customElement)("ft-loader")(zt);var Xt=y(H()),mn=y(be()),K=y(pt()),X=function(e,o,n,a){var i=arguments.length,c=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(c=(i<3?s(c):i>3?s(o,n,c):s(o,n))||c);return i>3&&c&&Object.defineProperty(o,n,c),c},I=class extends(0,qt.toFtFormComponent)(qt.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(Xt.html`
551
+ `}};zt.styles=rr;(0,gn.customElement)("ft-loader")(zt);var Xt=y(H()),mn=y(be()),D=y(pt()),Y=function(e,o,n,a){var i=arguments.length,c=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(c=(i<3?s(c):i>3?s(o,n,c):s(o,n))||c);return i>3&&c&&Object.defineProperty(o,n,c),c},W=class extends(0,qt.toFtFormComponent)(qt.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(Xt.html`
552
552
  <button part="button"
553
553
  class="${(0,mn.classMap)(this.buttonClasses)}"
554
- aria-label="${this.getLabel()}"
554
+ aria-label="${(o=this.ariaLabel)!==null&&o!==void 0?o:this.getLabel()}"
555
555
  ?disabled=${this.isDisabled()}>
556
556
  <ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
557
557
  <ft-typography part="label"
@@ -574,7 +574,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
574
574
  <ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
575
575
  `:Xt.html`
576
576
  <slot part="icon" name="icon"></slot>
577
- `}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":Q,"ft-loader":zt};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 We=function(e,o,n,a){var i=arguments.length,c=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(c=(i<3?s(c):i>3?s(o,n,c):s(o,n))||c);return i>3&&c&&Object.defineProperty(o,n,c),c},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=[yn.safariEllipsisFix,sr];We([(0,he.property)({type:Boolean})],ot.prototype,"primary",void 0);We([(0,he.property)({type:Boolean})],ot.prototype,"outlined",void 0);We([(0,he.property)({type:Boolean})],ot.prototype,"dense",void 0);We([(0,he.property)({type:Boolean})],ot.prototype,"round",void 0);var ue=y(pt());var ze=y(w());var bn=y(H()),C=y(w());var xn=[bn.css`
577
+ `}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}};W.elementDefinitions={"ft-ripple":R,"ft-tooltip":A,"ft-typography":tt,"ft-icon":Q,"ft-loader":zt};Y([(0,D.property)({type:String,reflect:!0})],W.prototype,"role",void 0);Y([(0,D.property)()],W.prototype,"type",void 0);Y([(0,D.property)({type:Boolean})],W.prototype,"disabled",void 0);Y([(0,D.property)()],W.prototype,"label",void 0);Y([(0,D.property)()],W.prototype,"icon",void 0);Y([(0,D.property)()],W.prototype,"iconVariant",void 0);Y([(0,D.property)({type:Boolean})],W.prototype,"trailingIcon",void 0);Y([(0,D.property)({type:Boolean})],W.prototype,"loading",void 0);Y([(0,D.property)({attribute:"aria-label"})],W.prototype,"ariaLabel",void 0);Y([(0,D.property)()],W.prototype,"tooltipPosition",void 0);Y([(0,D.property)({type:Boolean})],W.prototype,"hideTooltip",void 0);Y([(0,D.property)({type:Boolean})],W.prototype,"forceTooltip",void 0);Y([(0,D.query)(".ft-button")],W.prototype,"button",void 0);Y([(0,D.query)(".ft-button--label slot")],W.prototype,"slottedContent",void 0);var We=function(e,o,n,a){var i=arguments.length,c=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(c=(i<3?s(c):i>3?s(o,n,c):s(o,n))||c);return i>3&&c&&Object.defineProperty(o,n,c),c},ot=class extends W{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=[yn.safariEllipsisFix,sr];We([(0,he.property)({type:Boolean})],ot.prototype,"primary",void 0);We([(0,he.property)({type:Boolean})],ot.prototype,"outlined",void 0);We([(0,he.property)({type:Boolean})],ot.prototype,"dense",void 0);We([(0,he.property)({type:Boolean})],ot.prototype,"round",void 0);var ue=y(pt());var ze=y(w());var bn=y(H()),C=y(w());var xn=[bn.css`
578
578
  :host {
579
579
  display: inline-block;
580
580
  max-width: 100%;
@@ -658,7 +658,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
658
658
  /** Primary styles **/
659
659
 
660
660
  .ft-button--primary {
661
- ${(0,C.setVariable)(Z.color,f.primaryIconColor)};
661
+ ${(0,C.setVariable)(M.color,f.primaryIconColor)};
662
662
 
663
663
  ${(0,C.setVariable)(N.color,f.primaryStateLayerColor)};
664
664
  ${(0,C.setVariable)(N.opacityContentOnSurfaceHover,f.primaryHoverStateLayerOpacity)};
@@ -682,7 +682,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
682
682
  /** Secondary styles **/
683
683
 
684
684
  .ft-button--secondary {
685
- ${(0,C.setVariable)(Z.color,f.secondaryIconColor)};
685
+ ${(0,C.setVariable)(M.color,f.secondaryIconColor)};
686
686
 
687
687
  ${(0,C.setVariable)(N.color,f.secondaryStateLayerColor)};
688
688
  ${(0,C.setVariable)(N.opacityContentOnSurfaceHover,f.secondaryHoverStateLayerOpacity)};
@@ -707,7 +707,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
707
707
  /** Tertiary styles **/
708
708
 
709
709
  .ft-button--tertiary {
710
- ${(0,C.setVariable)(Z.color,f.tertiaryIconColor)};
710
+ ${(0,C.setVariable)(M.color,f.tertiaryIconColor)};
711
711
 
712
712
  ${(0,C.setVariable)(N.color,f.tertiaryStateLayerColor)};
713
713
  ${(0,C.setVariable)(N.opacityContentOnSurfaceHover,f.tertiaryHoverStateLayerOpacity)};
@@ -731,7 +731,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
731
731
  /** Neutral styles **/
732
732
 
733
733
  .ftds--family-neutral {
734
- ${(0,C.setVariable)(Z.color,f.neutralIconColor)};
734
+ ${(0,C.setVariable)(M.color,f.neutralIconColor)};
735
735
 
736
736
  ${(0,C.setVariable)(N.backgroundColor,f.neutralStateLayerColor)};
737
737
  ${(0,C.setVariable)(N.opacityContentOnSurfaceHover,f.neutralHoverStateLayerOpacity)};
@@ -755,8 +755,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
755
755
  /** Large styles **/
756
756
 
757
757
  .ftds--size-large {
758
+ ${(0,C.setVariable)(K.size,f.largeIconSize)};
758
759
  ${(0,C.setVariable)(M.size,f.largeIconSize)};
759
- ${(0,C.setVariable)(Z.size,f.largeIconSize)};
760
760
 
761
761
  height: ${f.largeHeight};
762
762
  padding: 0 ${f.largeHorizontalPadding};
@@ -777,8 +777,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
777
777
  /** Small styles **/
778
778
 
779
779
  .ftds--size-medium {
780
+ ${(0,C.setVariable)(K.size,f.mediumIconSize)};
780
781
  ${(0,C.setVariable)(M.size,f.mediumIconSize)};
781
- ${(0,C.setVariable)(Z.size,f.mediumIconSize)};
782
782
 
783
783
  height: ${f.mediumHeight};
784
784
  padding: 0 ${f.mediumHorizontalPadding};
@@ -800,8 +800,8 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
800
800
  /** Small styles **/
801
801
 
802
802
  .ftds--size-small {
803
+ ${(0,C.setVariable)(K.size,f.smallIconSize)};
803
804
  ${(0,C.setVariable)(M.size,f.smallIconSize)};
804
- ${(0,C.setVariable)(Z.size,f.smallIconSize)};
805
805
 
806
806
  height: ${f.smallHeight};
807
807
  padding: 0 ${f.smallHorizontalPadding};
@@ -818,7 +818,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
818
818
  .ftds--size-small.ft-button--icon-only {
819
819
  width: ${f.smallIconOnlyWidth};
820
820
  }
821
- `,C.noTextSelect];var $e=function(e,o,n,a){var i=arguments.length,c=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(c=(i<3?s(c):i>3?s(o,n,c):s(o,n))||c);return i>3&&c&&Object.defineProperty(o,n,c),c},bt=class extends(0,ze.toFtdsBase)(I){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=me.brand,this.iconVariant=ct.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 Pt.large:return Ct.body2medium;case Pt.medium:return Ct.caption1medium;case Pt.small:return Ct.caption2medium}}};bt.styles=[ze.safariEllipsisFix,xn];$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,to.customElement)("ft-button")(ot);(0,to.customElement)("ftds-button")(bt);var vn=y(be());var Sn=y(H()),rt=y(w());var Et={buttonsColor:rt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",rt.designSystemVariables.colorPrimary),buttonsZIndex:rt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:rt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:rt.FtCssVariableFactory.external(rt.designSystemVariables.colorSurface,"Design system")},On=Sn.css`
821
+ `,C.noTextSelect];var $e=function(e,o,n,a){var i=arguments.length,c=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(c=(i<3?s(c):i>3?s(o,n,c):s(o,n))||c);return i>3&&c&&Object.defineProperty(o,n,c),c},bt=class extends(0,ze.toFtdsBase)(W){constructor(){super(...arguments),this.primary=!1,this.secondary=!1,this.tertiary=!1,this.round=!1,this.family=me.brand,this.iconVariant=ct.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 Pt.large:return Ct.body2medium;case Pt.medium:return Ct.caption1medium;case Pt.small:return Ct.caption2medium}}};bt.styles=[ze.safariEllipsisFix,xn];$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,to.customElement)("ft-button")(ot);(0,to.customElement)("ftds-button")(bt);var vn=y(be());var Sn=y(H()),rt=y(w());var Et={buttonsColor:rt.FtCssVariableFactory.extend("--ft-snap-scroll-buttons-color","",rt.designSystemVariables.colorPrimary),buttonsZIndex:rt.FtCssVariableFactory.create("--ft-snap-scroll-buttons-z-index","","NUMBER","1"),gap:rt.FtCssVariableFactory.create("--ft-snap-scroll-gap","","SIZE","0"),colorSurface:rt.FtCssVariableFactory.external(rt.designSystemVariables.colorSurface,"Design system")},On=Sn.css`
822
822
  .ft-snap-scroll {
823
823
  box-sizing: border-box;
824
824
  position: relative;
@@ -943,7 +943,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
943
943
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
944
944
  background-color: ${Et.colorSurface};
945
945
  }
946
- `;var st=function(e,o,n,a){var i=arguments.length,c=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(c=(i<3?s(c):i>3?s(o,n,c):s(o,n))||c);return i>3&&c&&Object.defineProperty(o,n,c),c},eo=class extends CustomEvent{constructor(o,n){super("current-element-change",{detail:{index:o,element:n}})}},D=class extends It.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new It.Debouncer(200),this.updateScrollDebouncer=new It.Debouncer(100)}scrollToIndex(o){this.scrollToElement(this.elements[o])}scrollIndexIntoView(o){let n=this.elements[o];if(n){let a=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(n[this.offsetAttribute]<i||n[this.offsetAttribute]+n[this.sizeAttribute]>a)&&this.scrollToElement(n)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let o=(0,vn.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":It.isSafari}),n=this.controls&&this.withScroll;return Cn.html`
946
+ `;var st=function(e,o,n,a){var i=arguments.length,c=i<3?o:a===null?a=Object.getOwnPropertyDescriptor(o,n):a,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")c=Reflect.decorate(e,o,n,a);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(c=(i<3?s(c):i>3?s(o,n,c):s(o,n))||c);return i>3&&c&&Object.defineProperty(o,n,c),c},eo=class extends CustomEvent{constructor(o,n){super("current-element-change",{detail:{index:o,element:n}})}},G=class extends It.FtLitElement{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver(()=>this.scheduleUpdateScroll()),this.scrollDebouncer=new It.Debouncer(200),this.updateScrollDebouncer=new It.Debouncer(100)}scrollToIndex(o){this.scrollToElement(this.elements[o])}scrollIndexIntoView(o){let n=this.elements[o];if(n){let a=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,i=this.contentSlot[this.scrollAttribute]+this.prevSize;(n[this.offsetAttribute]<i||n[this.offsetAttribute]+n[this.sizeAttribute]>a)&&this.scrollToElement(n)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){let o=(0,vn.classMap)({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":It.isSafari}),n=this.controls&&this.withScroll;return Cn.html`
947
947
  <div part="container" class="${o}">
948
948
  <ft-button
949
949
  class="ft-snap-scroll--previous"
@@ -967,7 +967,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
967
967
  @click=${this.next}
968
968
  ></ft-button>
969
969
  </div>
970
- `}update(o){super.update(o),o.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),o.has("currentElement")&&this.dispatchEvent(new eo(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(o){var n;super.contentAvailableCallback(o),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(n=this.listenedContainer)===null||n===void 0||n.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let o=this.closestElementFromStart();if(o!=null){let n=this.getDistanceFromStart(o);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<n&&(o=this.lastElement),this.scrollToElement(o)}}scrollToElement(o){var n,a;o&&(this.horizontal?(n=this.contentSlot)===null||n===void 0||n.scrollTo({left:this.getOffset(o)-this.controlsSize,behavior:"smooth"}):(a=this.contentSlot)===null||a===void 0||a.scrollTo({top:this.getOffset(o)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(o))}onSlotChange(){var o,n;this.elements=(n=(o=this.contentSlot)===null||o===void 0?void 0:o.assignedElements().map(a=>a))!==null&&n!==void 0?n:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let o=-1;for(let n=0;n<this.elements.length;n++)(o<0||this.getDistanceFromStart(this.elements[n])<this.getDistanceFromStart(this.elements[o]))&&(o=n);return o}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let o=this.elements[0];return o?o[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(o){return o[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(o){let n=o===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(o)-this.contentSlot[this.scrollAttribute]-n)}};D.elementDefinitions={"ft-button":ot};D.styles=On;st([(0,q.property)({type:Boolean})],D.prototype,"horizontal",void 0);st([(0,q.property)({type:Boolean})],D.prototype,"hideScrollbar",void 0);st([(0,q.property)({type:Boolean})],D.prototype,"controls",void 0);st([(0,q.property)({type:Boolean})],D.prototype,"limitSize",void 0);st([(0,q.state)()],D.prototype,"elements",void 0);st([(0,q.state)()],D.prototype,"currentElement",void 0);st([(0,q.state)()],D.prototype,"withScroll",void 0);st([(0,q.state)()],D.prototype,"startReached",void 0);st([(0,q.state)()],D.prototype,"endReached",void 0);st([(0,q.query)(".ft-snap-scroll--content")],D.prototype,"contentSlot",void 0);(0,Nn.customElement)("ft-snap-scroll")(D);})();
970
+ `}update(o){super.update(o),o.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),o.has("currentElement")&&this.dispatchEvent(new eo(this.currentElement,this.elements[this.currentElement]))}contentAvailableCallback(o){var n;super.contentAvailableCallback(o),this.contentSlot&&this.listenedContainer!==this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,(n=this.listenedContainer)===null||n===void 0||n.addEventListener("scroll",this.updateScrollCallback))}onScroll(){this.scrollDebouncer.run(()=>this.snap()),this.scheduleUpdateScroll()}snap(){let o=this.closestElementFromStart();if(o!=null){let n=this.getDistanceFromStart(o);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<n&&(o=this.lastElement),this.scrollToElement(o)}}scrollToElement(o){var n,a;o&&(this.horizontal?(n=this.contentSlot)===null||n===void 0||n.scrollTo({left:this.getOffset(o)-this.controlsSize,behavior:"smooth"}):(a=this.contentSlot)===null||a===void 0||a.scrollTo({top:this.getOffset(o)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(o))}onSlotChange(){var o,n;this.elements=(n=(o=this.contentSlot)===null||o===void 0?void 0:o.assignedElements().map(a=>a))!==null&&n!==void 0?n:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let o=-1;for(let n=0;n<this.elements.length;n++)(o<0||this.getDistanceFromStart(this.elements[n])<this.getDistanceFromStart(this.elements[o]))&&(o=n);return o}scheduleUpdateScroll(){this.updateScrollDebouncer.run(()=>this.updateScroll())}updateScroll(){this.contentSlot!=null?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=this.contentSlot[this.scrollAttribute]===0,this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let o=this.elements[0];return o?o[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(o){return o[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(o){let n=o===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(o)-this.contentSlot[this.scrollAttribute]-n)}};G.elementDefinitions={"ft-button":ot};G.styles=On;st([(0,q.property)({type:Boolean})],G.prototype,"horizontal",void 0);st([(0,q.property)({type:Boolean})],G.prototype,"hideScrollbar",void 0);st([(0,q.property)({type:Boolean})],G.prototype,"controls",void 0);st([(0,q.property)({type:Boolean})],G.prototype,"limitSize",void 0);st([(0,q.state)()],G.prototype,"elements",void 0);st([(0,q.state)()],G.prototype,"currentElement",void 0);st([(0,q.state)()],G.prototype,"withScroll",void 0);st([(0,q.state)()],G.prototype,"startReached",void 0);st([(0,q.state)()],G.prototype,"endReached",void 0);st([(0,q.query)(".ft-snap-scroll--content")],G.prototype,"contentSlot",void 0);(0,Nn.customElement)("ft-snap-scroll")(G);})();
971
971
  /*! Bundled license information:
972
972
 
973
973
  lit-html/lit-html.js: