@fluid-topics/ft-snap-scroll 1.2.61 → 1.2.63
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.
|
@@ -482,7 +482,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
482
482
|
</div>
|
|
483
483
|
`}contentAvailableCallback(o){super.contentAvailableCallback(o),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}update(o){var a,i;super.update(o),o.has("disabled")&&(this.disabled?(this.endRipple(),(a=this.target)===null||a===void 0||a.removeAttribute("data-is-ft-ripple-target")):(i=this.target)===null||i===void 0||i.setAttribute("data-is-ft-ripple-target","true"))}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run(()=>this.defaultSetup())}defaultSetup(){var o,a;let i=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;i&&this.setupFor((a=this.target)!==null&&a!==void 0?a:i)}forceFocusUpdate(){var o;!((o=this.target)===null||o===void 0)&&o.matches(":focus-within")?this.startFocus():this.endFocus()}setupFor(o){if(this.setupDebouncer.cancel(),this.target===o)return;this.onDisconnect&&this.onDisconnect(),this.target=o,o.setAttribute("data-is-ft-ripple-target","true");let a=(...p)=>y=>{p.forEach(m=>window.addEventListener(m,this.endPress,{once:!0})),this.startPress(y)},i=a("mouseup","contextmenu"),c=a("touchend","touchcancel"),l=p=>{["Enter"," "].includes(p.key)&&a("keyup")(p)},s={passive:!0};o.addEventListener("mouseover",this.startHover,s),o.addEventListener("mousemove",this.moveRipple,s),o.addEventListener("mouseleave",this.endHover,s),o.addEventListener("mousedown",i,s),o.addEventListener("touchstart",c,s),o.addEventListener("touchmove",this.moveRipple,s),o.addEventListener("keydown",l,s),o.addEventListener("focus",this.startFocus,s),o.addEventListener("blur",this.endFocus,s),o.addEventListener("focusin",this.startFocus,s),o.addEventListener("focusout",this.endFocus,s),this.onDisconnect=()=>{o.removeAttribute("data-is-ft-ripple-target"),o.removeEventListener("mouseover",this.startHover,s),o.removeEventListener("mousemove",this.moveRipple,s),o.removeEventListener("mouseleave",this.endHover,s),o.removeEventListener("mousedown",i,s),o.removeEventListener("touchstart",c,s),o.removeEventListener("touchmove",this.moveRipple,s),o.removeEventListener("keydown",l,s),o.removeEventListener("focus",this.startFocus,s),o.removeEventListener("blur",this.endFocus,s),o.removeEventListener("focusin",this.startFocus,s),o.removeEventListener("focusout",this.endFocus,s),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(o){let a=o,i=o,c,l;return a.x!=null?{x:c,y:l}=a:i.touches!=null&&(c=i.touches[0].clientX,l=i.touches[0].clientY),{x:c,y:l}}isFocusVisible(o){return o instanceof HTMLElement?o.matches(":focus-visible"):!0}isIgnored(o){if(this.disabled)return!0;if(o!=null)for(let a of o.composedPath()){if(a===this.target)break;if("hasAttribute"in a&&a.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.endRipple()}};A.elementDefinitions={};A.styles=So;V([(0,U.property)({type:Boolean})],A.prototype,"primary",void 0);V([(0,U.property)({type:Boolean})],A.prototype,"secondary",void 0);V([(0,U.property)({type:Boolean})],A.prototype,"unbounded",void 0);V([(0,U.property)({type:Boolean})],A.prototype,"activated",void 0);V([(0,U.property)({type:Boolean})],A.prototype,"selected",void 0);V([(0,U.property)({type:Boolean})],A.prototype,"disabled",void 0);V([(0,U.state)()],A.prototype,"hovered",void 0);V([(0,U.state)()],A.prototype,"focused",void 0);V([(0,U.state)()],A.prototype,"pressed",void 0);V([(0,U.state)()],A.prototype,"rippling",void 0);V([(0,U.state)()],A.prototype,"originX",void 0);V([(0,U.state)()],A.prototype,"originY",void 0);V([(0,U.query)(".ft-ripple")],A.prototype,"ripple",void 0);V([(0,U.query)(".ft-ripple--effect")],A.prototype,"rippleEffect",void 0);(0,mr.customElement)("ft-ripple")(A);var da=x(E());var sa=x(D()),T=x(pt()),de=x(E());var zr=x(E());var _e=globalThis,xe=_e.trustedTypes,br=xe?xe.createPolicy("lit-html",{createHTML:e=>e}):void 0,Nr="$lit$",Ot=`lit$${Math.random().toFixed(9).slice(2)}$`,wr="?"+Ot,ka=`<${wr}>`,Bt=document,Se=()=>Bt.createComment(""),re=e=>e===null||typeof e!="object"&&typeof e!="function",De=Array.isArray,Ta=e=>De(e)||typeof e?.[Symbol.iterator]=="function",Pe=`[
|
|
484
484
|
\f\r]`,oe=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,xr=/-->/g,Sr=/>/g,Lt=RegExp(`>|${Pe}(?:([^\\s"'>=/]+)(${Pe}*=${Pe}*(?:[^
|
|
485
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Or=/'/g,Cr=/"/g,Er=/^(?:script|style|textarea|title)$/i,Ue=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),Rr=Ue(1),Lr=Ue(2),Ar=Ue(3),ae=Symbol.for("lit-noChange"),
|
|
485
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Or=/'/g,Cr=/"/g,Er=/^(?:script|style|textarea|title)$/i,Ue=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),Rr=Ue(1),Lr=Ue(2),Ar=Ue(3),ae=Symbol.for("lit-noChange"),_=Symbol.for("lit-nothing"),vr=new WeakMap,At=Bt.createTreeWalker(Bt,129);function Br(e,o){if(!De(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return br!==void 0?br.createHTML(o):o}var Ha=(e,o)=>{let a=e.length-1,i=[],c,l=o===2?"<svg>":o===3?"<math>":"",s=oe;for(let p=0;p<a;p++){let y=e[p],m,O,b=-1,N=0;for(;N<y.length&&(s.lastIndex=N,O=s.exec(y),O!==null);)N=s.lastIndex,s===oe?O[1]==="!--"?s=xr:O[1]!==void 0?s=Sr:O[2]!==void 0?(Er.test(O[2])&&(c=RegExp("</"+O[2],"g")),s=Lt):O[3]!==void 0&&(s=Lt):s===Lt?O[0]===">"?(s=c??oe,b=-1):O[1]===void 0?b=-2:(b=s.lastIndex-O[2].length,m=O[1],s=O[3]===void 0?Lt:O[3]==='"'?Cr:Or):s===Cr||s===Or?s=Lt:s===xr||s===Sr?s=oe:(s=Lt,c=void 0);let v=s===Lt&&e[p+1].startsWith("/>")?" ":"";l+=s===oe?y+ka:b>=0?(i.push(m),y.slice(0,b)+Nr+y.slice(b)+Ot+v):y+Ot+(b===-2?p:v)}return[Br(e,l+(e[a]||"<?>")+(o===2?"</svg>":o===3?"</math>":"")),i]},ne=class e{constructor({strings:o,_$litType$:a},i){let c;this.parts=[];let l=0,s=0,p=o.length-1,y=this.parts,[m,O]=Ha(o,a);if(this.el=e.createElement(m,i),At.currentNode=this.el.content,a===2||a===3){let b=this.el.content.firstChild;b.replaceWith(...b.childNodes)}for(;(c=At.nextNode())!==null&&y.length<p;){if(c.nodeType===1){if(c.hasAttributes())for(let b of c.getAttributeNames())if(b.endsWith(Nr)){let N=O[s++],v=c.getAttribute(b).split(Ot),w=/([.?@])?(.*)/.exec(N);y.push({type:1,index:l,name:w[2],strings:v,ctor:w[1]==="."?ze:w[1]==="?"?ke:w[1]==="@"?Te:Kt}),c.removeAttribute(b)}else b.startsWith(Ot)&&(y.push({type:6,index:l}),c.removeAttribute(b));if(Er.test(c.tagName)){let b=c.textContent.split(Ot),N=b.length-1;if(N>0){c.textContent=xe?xe.emptyScript:"";for(let v=0;v<N;v++)c.append(b[v],Se()),At.nextNode(),y.push({type:2,index:++l});c.append(b[N],Se())}}}else if(c.nodeType===8)if(c.data===wr)y.push({type:2,index:l});else{let b=-1;for(;(b=c.data.indexOf(Ot,b+1))!==-1;)y.push({type:7,index:l}),b+=Ot.length-1}l++}}static createElement(o,a){let i=Bt.createElement("template");return i.innerHTML=o,i}};function Ft(e,o,a=e,i){if(o===ae)return o;let c=i!==void 0?a._$Co?.[i]:a._$Cl,l=re(o)?void 0:o._$litDirective$;return c?.constructor!==l&&(c?._$AO?.(!1),l===void 0?c=void 0:(c=new l(e),c._$AT(e,a,i)),i!==void 0?(a._$Co??=[])[i]=c:a._$Cl=c),c!==void 0&&(o=Ft(e,c._$AS(e,o.values),c,i)),o}var We=class{constructor(o,a){this._$AV=[],this._$AN=void 0,this._$AD=o,this._$AM=a}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(o){let{el:{content:a},parts:i}=this._$AD,c=(o?.creationScope??Bt).importNode(a,!0);At.currentNode=c;let l=At.nextNode(),s=0,p=0,y=i[0];for(;y!==void 0;){if(s===y.index){let m;y.type===2?m=new Oe(l,l.nextSibling,this,o):y.type===1?m=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(m=new He(l,this,o)),this._$AV.push(m),y=i[++p]}s!==y?.index&&(l=At.nextNode(),s++)}return At.currentNode=Bt,c}p(o){let a=0;for(let i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(o,i,a),a+=i.strings.length-2):i._$AI(o[a])),a++}},Oe=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,i,c){this.type=2,this._$AH=_,this._$AN=void 0,this._$AA=o,this._$AB=a,this._$AM=i,this.options=c,this._$Cv=c?.isConnected??!0}get parentNode(){let o=this._$AA.parentNode,a=this._$AM;return a!==void 0&&o?.nodeType===11&&(o=a.parentNode),o}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(o,a=this){o=Ft(this,o,a),re(o)?o===_||o==null||o===""?(this._$AH!==_&&this._$AR(),this._$AH=_):o!==this._$AH&&o!==ae&&this._(o):o._$litType$!==void 0?this.$(o):o.nodeType!==void 0?this.T(o):Ta(o)?this.k(o):this._(o)}O(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}T(o){this._$AH!==o&&(this._$AR(),this._$AH=this.O(o))}_(o){this._$AH!==_&&re(this._$AH)?this._$AA.nextSibling.data=o:this.T(Bt.createTextNode(o)),this._$AH=o}$(o){let{values:a,_$litType$:i}=o,c=typeof i=="number"?this._$AC(o):(i.el===void 0&&(i.el=ne.createElement(Br(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===c)this._$AH.p(a);else{let l=new We(c,this),s=l.u(this.options);l.p(a),this.T(s),this._$AH=l}}_$AC(o){let a=vr.get(o.strings);return a===void 0&&vr.set(o.strings,a=new ne(o)),a}k(o){De(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,i,c=0;for(let l of o)c===a.length?a.push(i=new e(this.O(Se()),this.O(Se()),this,this.options)):i=a[c],i._$AI(l),c++;c<a.length&&(this._$AR(i&&i._$AB.nextSibling,c),a.length=c)}_$AR(o=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);o&&o!==this._$AB;){let i=o.nextSibling;o.remove(),o=i}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},Kt=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,a,i,c,l){this.type=1,this._$AH=_,this._$AN=void 0,this.element=o,this.name=a,this._$AM=c,this.options=l,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_}_$AI(o,a=this,i,c){let l=this.strings,s=!1;if(l===void 0)o=Ft(this,o,a,0),s=!re(o)||o!==this._$AH&&o!==ae,s&&(this._$AH=o);else{let p=o,y,m;for(o=l[0],y=0;y<l.length-1;y++)m=Ft(this,p[i+y],a,y),m===ae&&(m=this._$AH[y]),s||=!re(m)||m!==this._$AH[y],m===_?o=_:o!==_&&(o+=(m??"")+l[y+1]),this._$AH[y]=m}s&&!c&&this.j(o)}j(o){o===_?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},ze=class extends Kt{constructor(){super(...arguments),this.type=3}j(o){this.element[this.name]=o===_?void 0:o}},ke=class extends Kt{constructor(){super(...arguments),this.type=4}j(o){this.element.toggleAttribute(this.name,!!o&&o!==_)}},Te=class extends Kt{constructor(o,a,i,c,l){super(o,a,i,c,l),this.type=5}_$AI(o,a=this){if((o=Ft(this,o,a,0)??_)===ae)return;let i=this._$AH,c=o===_&&i!==_||o.capture!==i.capture||o.once!==i.once||o.passive!==i.passive,l=o!==_&&(i===_||c);c&&this.element.removeEventListener(this.name,this,i),l&&this.element.addEventListener(this.name,this,o),this._$AH=o}handleEvent(o){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,o):this._$AH.handleEvent(o)}},He=class{constructor(o,a,i){this.element=o,this.type=6,this._$AN=void 0,this._$AM=a,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(o){Ft(this,o)}};var _a=_e.litHtmlPolyfillSupport;_a?.(ne,Oe),(_e.litHtmlVersions??=[]).push("3.3.0");var $r=Symbol.for(""),Da=e=>{if(e?.r===$r)return e?._$litStatic$},Ge=e=>({_$litStatic$:e,r:$r});var Ir=new Map,Ze=e=>(o,...a)=>{let i=a.length,c,l,s=[],p=[],y,m=0,O=!1;for(;m<i;){for(y=o[m];m<i&&(l=a[m],(c=Da(l))!==void 0);)y+=c+o[++m],O=!0;m!==i&&p.push(l),s.push(y),m++}if(m===i&&s.push(o[i]),O){let b=s.join("$$lit$$");(o=Ir.get(b))===void 0&&(s.raw=s,Ir.set(b,o=s)),a=p}return e(o,...a)},Me=Ze(Rr),Us=Ze(Lr),Gs=Ze(Ar);var Fe=x(pt()),Wr=x(E());var Ct;(function(e){e.title="title",e.title_dense="title-dense",e.subtitle1="subtitle1",e.subtitle2="subtitle2",e.body1="body1",e.body2="body2",e.caption="caption",e.breadcrumb="breadcrumb",e.overline="overline",e.button="button",e.display="display",e.title1="title-1",e.title2="title-2",e.title3="title-3",e.body1regular="body-1-regular",e.body1medium="body-1-medium",e.body1semibold="body-1-semibold",e.body2regular="body-2-regular",e.body2medium="body-2-medium",e.body2semibold="body-2-semibold",e.label1medium="label-1-medium",e.label1semibold="label-1-semibold",e.label1bold="label-1-bold",e.label2medium="label-2-medium",e.label2semibold="label-2-semibold",e.label2bold="label-2-bold",e.caption1medium="caption-1-medium",e.caption1semibold="caption-1-semibold",e.caption1bold="caption-1-bold",e.caption2medium="caption-2-medium",e.caption2semibold="caption-2-semibold",e.caption2bold="caption-2-bold"})(Ct||(Ct={}));var Pr=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},et=class extends Wr.FtLitElement{constructor(){super(...arguments),this.variant=Ct.body1}render(){return this.element?Me`
|
|
486
486
|
<${Ge(this.element)}
|
|
487
487
|
part="text"
|
|
488
488
|
class="ft-typography ft-typography--${this.variant}">
|
|
@@ -519,7 +519,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
519
519
|
position: relative;
|
|
520
520
|
word-break: break-word;
|
|
521
521
|
}
|
|
522
|
-
`;var _r=["top","right","bottom","left"],Hr=["start","end"],Ve=_r.reduce((e,o)=>e.concat(o,o+"-"+Hr[0],o+"-"+Hr[1]),[]),Dr=Math.min,Ur=Math.max;var Ua={left:"right",right:"left",bottom:"top",top:"bottom"},Ga={start:"end",end:"start"};function je(e,o,a){return Ur(e,Dr(o,a))}function Ce(e,o){return typeof e=="function"?e(o):e}function jt(e){return e.split("-")[0]}function vt(e){return e.split("-")[1]}function Ye(e){return e==="x"?"y":"x"}function Xe(e){return e==="y"?"height":"width"}function ve(e){return["top","bottom"].includes(jt(e))?"y":"x"}function qe(e){return Ye(ve(e))}function Gr(e,o,a){a===void 0&&(a=!1);let i=vt(e),c=qe(e),l=Xe(c),s=c==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(s=Ke(s)),[s,Ke(s)]}function Zr(e){return e.replace(/start|end/g,o=>Ga[o])}function Ke(e){return e.replace(/left|right|bottom|top/g,o=>Ua[o])}function Za(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mr(e){return typeof e!="number"?Za(e):{top:e,right:e,bottom:e,left:e}}function It(e){let{x:o,y:a,width:i,height:c}=e;return{width:i,height:c,top:a,left:o,right:o+i,bottom:a+c,x:o,y:a}}function Fr(e,o,a){let{reference:i,floating:c}=e,l=ve(o),s=qe(o),p=Xe(s),y=jt(o),m=l==="y",O=i.x+i.width/2-c.width/2,b=i.y+i.height/2-c.height/2,N=i[p]/2-c[p]/2,v;switch(y){case"top":v={x:O,y:i.y-c.height};break;case"bottom":v={x:O,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:b};break;case"left":v={x:i.x-c.width,y:b};break;default:v={x:i.x,y:i.y}}switch(vt(o)){case"start":v[s]-=N*(a&&m?-1:1);break;case"end":v[s]+=N*(a&&m?-1:1);break}return v}var Kr=async(e,o,a)=>{let{placement:i="bottom",strategy:c="absolute",middleware:l=[],platform:s}=a,p=l.filter(Boolean),y=await(s.isRTL==null?void 0:s.isRTL(o)),m=await s.getElementRects({reference:e,floating:o,strategy:c}),{x:O,y:b}=Fr(m,i,y),N=i,v={},w=0;for(let $=0;$<p.length;$++){let{name:z,fn:P}=p[$],{x:k,y:F,data:xt,reset:G}=await P({x:O,y:b,initialPlacement:i,placement:N,strategy:c,middlewareData:v,rects:m,platform:s,elements:{reference:e,floating:o}});O=k??O,b=F??b,v={...v,[z]:{...v[z],...xt}},G&&w<=50&&(w++,typeof G=="object"&&(G.placement&&(N=G.placement),G.rects&&(m=G.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:c}):G.rects),{x:O,y:b}=Fr(m,N,y)),$=-1)}return{x:O,y:b,placement:N,strategy:c,middlewareData:v}};async function Qe(e,o){var a;o===void 0&&(o={});let{x:i,y:c,platform:l,rects:s,elements:p,strategy:y}=e,{boundary:m="clippingAncestors",rootBoundary:O="viewport",elementContext:b="floating",altBoundary:N=!1,padding:v=0}=Ce(o,e),w=Mr(v),z=p[N?b==="floating"?"reference":"floating":b],P=It(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(z)))==null||a?z:z.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:m,rootBoundary:O,strategy:y})),k=b==="floating"?{x:i,y:c,width:s.floating.width,height:s.floating.height}:s.reference,F=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),xt=await(l.isElement==null?void 0:l.isElement(F))?await(l.getScale==null?void 0:l.getScale(F))||{x:1,y:1}:{x:1,y:1},G=It(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:k,offsetParent:F,strategy:y}):k);return{top:(P.top-G.top+w.top)/xt.y,bottom:(G.bottom-P.bottom+w.bottom)/xt.y,left:(P.left-G.left+w.left)/xt.x,right:(G.right-P.right+w.right)/xt.x}}function Ma(e,o,a){return(e?[...a.filter(c=>vt(c)===e),...a.filter(c=>vt(c)!==e)]:a.filter(c=>jt(c)===c)).filter(c=>e?vt(c)===e||(o?Zr(c)!==c:!1):!0)}var Je=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,i,c;let{rects:l,middlewareData:s,placement:p,platform:y,elements:m}=o,{crossAxis:O=!1,alignment:b,allowedPlacements:N=Ve,autoAlignment:v=!0,...w}=Ce(e,o),$=b!==void 0||N===Ve?Ma(b||null,v,N):N,z=await Qe(o,w),P=((a=s.autoPlacement)==null?void 0:a.index)||0,k=$[P];if(k==null)return{};let F=Gr(k,l,await(y.isRTL==null?void 0:y.isRTL(m.floating)));if(p!==k)return{reset:{placement:$[0]}};let xt=[z[jt(k)],z[F[0]],z[F[1]]],G=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:k,overflows:xt}],io=$[P+1];if(io)return{data:{index:P+1,overflows:G},reset:{placement:io}};let co=G.map(nt=>{let Qt=vt(nt.placement);return[nt.placement,Qt&&O?nt.overflows.slice(0,2).reduce((Ra,La)=>Ra+La,0):nt.overflows[0],nt.overflows]}).sort((nt,Qt)=>nt[1]-Qt[1]),lo=((c=co.filter(nt=>nt[2].slice(0,vt(nt[0])?2:3).every(Qt=>Qt<=0))[0])==null?void 0:c[0])||co[0][0];return lo!==p?{data:{index:P+1,overflows:G},reset:{placement:lo}}:{}}}};var to=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:i,placement:c}=o,{mainAxis:l=!0,crossAxis:s=!1,limiter:p={fn:z=>{let{x:P,y:k}=z;return{x:P,y:k}}},...y}=Ce(e,o),m={x:a,y:i},O=await Qe(o,y),b=ve(jt(c)),N=Ye(b),v=m[N],w=m[b];if(l){let z=N==="y"?"top":"left",P=N==="y"?"bottom":"right",k=v+O[z],F=v-O[P];v=je(k,v,F)}if(s){let z=b==="y"?"top":"left",P=b==="y"?"bottom":"right",k=w+O[z],F=w-O[P];w=je(k,w,F)}let $=p.fn({...o,[N]:v,[b]:w});return{...$,data:{x:$.x-a,y:$.y-i,enabled:{[N]:l,[b]:s}}}}}};var eo=Math.min,Yt=Math.max,ie=Math.round;var gt=e=>({x:e,y:e});function ht(e){return jr(e)?(e.nodeName||"").toLowerCase():"#document"}function j(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function mt(e){var o;return(o=(jr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function jr(e){return e instanceof Node||e instanceof j(e).Node}function lt(e){return e instanceof Element||e instanceof j(e).Element}function ot(e){return e instanceof HTMLElement||e instanceof j(e).HTMLElement}function Vr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof j(e).ShadowRoot}function Xt(e){let{overflow:o,overflowX:a,overflowY:i,display:c}=X(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+a)&&!["inline","contents"].includes(c)}function Yr(e){return["table","td","th"].includes(ht(e))}function we(e){let o=Ee(),a=X(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!o&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!o&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function Xr(e){let o=$t(e);for(;ot(o)&&!ce(o);){if(we(o))return o;o=$t(o)}return null}function Ee(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ce(e){return["html","body","#document"].includes(ht(e))}function X(e){return j(e).getComputedStyle(e)}function le(e){return lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $t(e){if(ht(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Vr(e)&&e.host||mt(e);return Vr(o)?o.host:o}function qr(e){let o=$t(e);return ce(o)?e.ownerDocument?e.ownerDocument.body:e.body:ot(o)&&Xt(o)?o:qr(o)}function Ne(e,o,a){var i;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=qr(e),l=c===((i=e.ownerDocument)==null?void 0:i.body),s=j(c);return l?o.concat(s,s.visualViewport||[],Xt(c)?c:[],s.frameElement&&a?Ne(s.frameElement):[]):o.concat(c,Ne(c,[],a))}function ta(e){let o=X(e),a=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=ot(e),l=c?e.offsetWidth:a,s=c?e.offsetHeight:i,p=ie(a)!==l||ie(i)!==s;return p&&(a=l,i=s),{width:a,height:i,$:p}}function ea(e){return lt(e)?e:e.contextElement}function qt(e){let o=ea(e);if(!ot(o))return gt(1);let a=o.getBoundingClientRect(),{width:i,height:c,$:l}=ta(o),s=(l?ie(a.width):a.width)/i,p=(l?ie(a.height):a.height)/c;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var Va=gt(0);function oa(e){let o=j(e);return!Ee()||!o.visualViewport?Va:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ja(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==j(e)?!1:o}function se(e,o,a,i){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=ea(e),s=gt(1);o&&(i?lt(i)&&(s=qt(i)):s=qt(e));let p=ja(l,a,i)?oa(l):gt(0),y=(c.left+p.x)/s.x,m=(c.top+p.y)/s.y,O=c.width/s.x,b=c.height/s.y;if(l){let N=j(l),v=i&<(i)?j(i):i,w=N.frameElement;for(;w&&i&&v!==N;){let $=qt(w),z=w.getBoundingClientRect(),P=X(w),k=z.left+(w.clientLeft+parseFloat(P.paddingLeft))*$.x,F=z.top+(w.clientTop+parseFloat(P.paddingTop))*$.y;y*=$.x,m*=$.y,O*=$.x,b*=$.y,y+=k,m+=F,w=j(w).frameElement}}return It({width:O,height:b,x:y,y:m})}function Ya(e){let{rect:o,offsetParent:a,strategy:i}=e,c=ot(a),l=mt(a);if(a===l)return o;let s={scrollLeft:0,scrollTop:0},p=gt(1),y=gt(0);if((c||!c&&i!=="fixed")&&((ht(a)!=="body"||Xt(l))&&(s=le(a)),ot(a))){let m=se(a);p=qt(a),y.x=m.x+a.clientLeft,y.y=m.y+a.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-s.scrollLeft*p.x+y.x,y:o.y*p.y-s.scrollTop*p.y+y.y}}function Xa(e){return Array.from(e.getClientRects())}function ra(e){return se(mt(e)).left+le(e).scrollLeft}function qa(e){let o=mt(e),a=le(e),i=e.ownerDocument.body,c=Yt(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),l=Yt(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),s=-a.scrollLeft+ra(e),p=-a.scrollTop;return X(i).direction==="rtl"&&(s+=Yt(o.clientWidth,i.clientWidth)-c),{width:c,height:l,x:s,y:p}}function Qa(e,o){let a=j(e),i=mt(e),c=a.visualViewport,l=i.clientWidth,s=i.clientHeight,p=0,y=0;if(c){l=c.width,s=c.height;let m=Ee();(!m||m&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:l,height:s,x:p,y}}function Ja(e,o){let a=se(e,!0,o==="fixed"),i=a.top+e.clientTop,c=a.left+e.clientLeft,l=ot(e)?qt(e):gt(1),s=e.clientWidth*l.x,p=e.clientHeight*l.y,y=c*l.x,m=i*l.y;return{width:s,height:p,x:y,y:m}}function Qr(e,o,a){let i;if(o==="viewport")i=Qa(e,a);else if(o==="document")i=qa(mt(e));else if(lt(o))i=Ja(o,a);else{let c=oa(e);i={...o,x:o.x-c.x,y:o.y-c.y}}return It(i)}function aa(e,o){let a=$t(e);return a===o||!lt(a)||ce(a)?!1:X(a).position==="fixed"||aa(a,o)}function tn(e,o){let a=o.get(e);if(a)return a;let i=Ne(e,[],!1).filter(p=>lt(p)&&ht(p)!=="body"),c=null,l=X(e).position==="fixed",s=l?$t(e):e;for(;lt(s)&&!ce(s);){let p=X(s),y=we(s);!y&&p.position==="fixed"&&(c=null),(l?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Xt(s)&&!y&&aa(e,s))?i=i.filter(O=>O!==s):c=p,s=$t(s)}return o.set(e,i),i}function en(e){let{element:o,boundary:a,rootBoundary:i,strategy:c}=e,s=[...a==="clippingAncestors"?tn(o,this._c):[].concat(a),i],p=s[0],y=s.reduce((m,O)=>{let b=Qr(o,O,c);return m.top=Yt(b.top,m.top),m.right=eo(b.right,m.right),m.bottom=eo(b.bottom,m.bottom),m.left=Yt(b.left,m.left),m},Qr(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function on(e){return ta(e)}function rn(e,o,a){let i=ot(o),c=mt(o),l=a==="fixed",s=se(e,!0,l,o),p={scrollLeft:0,scrollTop:0},y=gt(0);if(i||!i&&!l)if((ht(o)!=="body"||Xt(c))&&(p=le(o)),i){let m=se(o,!0,l,o);y.x=m.x+o.clientLeft,y.y=m.y+o.clientTop}else c&&(y.x=ra(c));return{x:s.left+p.scrollLeft-y.x,y:s.top+p.scrollTop-y.y,width:s.width,height:s.height}}function Jr(e,o){return!ot(e)||X(e).position==="fixed"?null:o?o(e):e.offsetParent}function na(e,o){let a=j(e);if(!ot(e))return a;let i=Jr(e,o);for(;i&&Yr(i)&&X(i).position==="static";)i=Jr(i,o);return i&&(ht(i)==="html"||ht(i)==="body"&&X(i).position==="static"&&!we(i))?a:i||Xr(e)||a}var an=async function(e){let{reference:o,floating:a,strategy:i}=e,c=this.getOffsetParent||na,l=this.getDimensions;return{reference:rn(o,await c(a),i),floating:{x:0,y:0,...await l(a)}}};function nn(e){return X(e).direction==="rtl"}var Re={convertOffsetParentRelativeRectToViewportRelativeRect:Ya,getDocumentElement:mt,getClippingRect:en,getOffsetParent:na,getElementRects:an,getClientRects:Xa,getDimensions:on,getScale:qt,isElement:lt,isRTL:nn};var ia=(e,o,a)=>{let i=new Map,c={platform:Re,...a},l={...c.platform,_c:i};return Kr(e,o,{...c,platform:l})};function ca(e){return cn(e)}function oo(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function cn(e){for(let o=e;o;o=oo(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=oo(e);o;o=oo(o)){if(!(o instanceof Element))continue;let a=getComputedStyle(o);if(a.display!=="contents"&&(a.position!=="static"||a.filter!=="none"||o.tagName==="BODY"))return o}return null}async function la(e,o,a){return ia(e,o,{platform:{...Re,getOffsetParent:i=>Re.getOffsetParent(i,ca)},middleware:[to({crossAxis:!0}),Je({allowedPlacements:[a]})]})}var Y=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},B=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 sa.html`
|
|
522
|
+
`;var _r=["top","right","bottom","left"],Hr=["start","end"],Ve=_r.reduce((e,o)=>e.concat(o,o+"-"+Hr[0],o+"-"+Hr[1]),[]),Dr=Math.min,Ur=Math.max;var Ua={left:"right",right:"left",bottom:"top",top:"bottom"},Ga={start:"end",end:"start"};function je(e,o,a){return Ur(e,Dr(o,a))}function Ce(e,o){return typeof e=="function"?e(o):e}function jt(e){return e.split("-")[0]}function vt(e){return e.split("-")[1]}function Ye(e){return e==="x"?"y":"x"}function Xe(e){return e==="y"?"height":"width"}function ve(e){return["top","bottom"].includes(jt(e))?"y":"x"}function qe(e){return Ye(ve(e))}function Gr(e,o,a){a===void 0&&(a=!1);let i=vt(e),c=qe(e),l=Xe(c),s=c==="x"?i===(a?"end":"start")?"right":"left":i==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(s=Ke(s)),[s,Ke(s)]}function Zr(e){return e.replace(/start|end/g,o=>Ga[o])}function Ke(e){return e.replace(/left|right|bottom|top/g,o=>Ua[o])}function Za(e){return{top:0,right:0,bottom:0,left:0,...e}}function Mr(e){return typeof e!="number"?Za(e):{top:e,right:e,bottom:e,left:e}}function It(e){let{x:o,y:a,width:i,height:c}=e;return{width:i,height:c,top:a,left:o,right:o+i,bottom:a+c,x:o,y:a}}function Fr(e,o,a){let{reference:i,floating:c}=e,l=ve(o),s=qe(o),p=Xe(s),y=jt(o),m=l==="y",O=i.x+i.width/2-c.width/2,b=i.y+i.height/2-c.height/2,N=i[p]/2-c[p]/2,v;switch(y){case"top":v={x:O,y:i.y-c.height};break;case"bottom":v={x:O,y:i.y+i.height};break;case"right":v={x:i.x+i.width,y:b};break;case"left":v={x:i.x-c.width,y:b};break;default:v={x:i.x,y:i.y}}switch(vt(o)){case"start":v[s]-=N*(a&&m?-1:1);break;case"end":v[s]+=N*(a&&m?-1:1);break}return v}var Kr=async(e,o,a)=>{let{placement:i="bottom",strategy:c="absolute",middleware:l=[],platform:s}=a,p=l.filter(Boolean),y=await(s.isRTL==null?void 0:s.isRTL(o)),m=await s.getElementRects({reference:e,floating:o,strategy:c}),{x:O,y:b}=Fr(m,i,y),N=i,v={},w=0;for(let $=0;$<p.length;$++){let{name:z,fn:P}=p[$],{x:k,y:F,data:xt,reset:Z}=await P({x:O,y:b,initialPlacement:i,placement:N,strategy:c,middlewareData:v,rects:m,platform:s,elements:{reference:e,floating:o}});O=k??O,b=F??b,v={...v,[z]:{...v[z],...xt}},Z&&w<=50&&(w++,typeof Z=="object"&&(Z.placement&&(N=Z.placement),Z.rects&&(m=Z.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:c}):Z.rects),{x:O,y:b}=Fr(m,N,y)),$=-1)}return{x:O,y:b,placement:N,strategy:c,middlewareData:v}};async function Qe(e,o){var a;o===void 0&&(o={});let{x:i,y:c,platform:l,rects:s,elements:p,strategy:y}=e,{boundary:m="clippingAncestors",rootBoundary:O="viewport",elementContext:b="floating",altBoundary:N=!1,padding:v=0}=Ce(o,e),w=Mr(v),z=p[N?b==="floating"?"reference":"floating":b],P=It(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(z)))==null||a?z:z.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:m,rootBoundary:O,strategy:y})),k=b==="floating"?{x:i,y:c,width:s.floating.width,height:s.floating.height}:s.reference,F=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),xt=await(l.isElement==null?void 0:l.isElement(F))?await(l.getScale==null?void 0:l.getScale(F))||{x:1,y:1}:{x:1,y:1},Z=It(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({elements:p,rect:k,offsetParent:F,strategy:y}):k);return{top:(P.top-Z.top+w.top)/xt.y,bottom:(Z.bottom-P.bottom+w.bottom)/xt.y,left:(P.left-Z.left+w.left)/xt.x,right:(Z.right-P.right+w.right)/xt.x}}function Ma(e,o,a){return(e?[...a.filter(c=>vt(c)===e),...a.filter(c=>vt(c)!==e)]:a.filter(c=>jt(c)===c)).filter(c=>e?vt(c)===e||(o?Zr(c)!==c:!1):!0)}var Je=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,i,c;let{rects:l,middlewareData:s,placement:p,platform:y,elements:m}=o,{crossAxis:O=!1,alignment:b,allowedPlacements:N=Ve,autoAlignment:v=!0,...w}=Ce(e,o),$=b!==void 0||N===Ve?Ma(b||null,v,N):N,z=await Qe(o,w),P=((a=s.autoPlacement)==null?void 0:a.index)||0,k=$[P];if(k==null)return{};let F=Gr(k,l,await(y.isRTL==null?void 0:y.isRTL(m.floating)));if(p!==k)return{reset:{placement:$[0]}};let xt=[z[jt(k)],z[F[0]],z[F[1]]],Z=[...((i=s.autoPlacement)==null?void 0:i.overflows)||[],{placement:k,overflows:xt}],io=$[P+1];if(io)return{data:{index:P+1,overflows:Z},reset:{placement:io}};let co=Z.map(nt=>{let Qt=vt(nt.placement);return[nt.placement,Qt&&O?nt.overflows.slice(0,2).reduce((Ra,La)=>Ra+La,0):nt.overflows[0],nt.overflows]}).sort((nt,Qt)=>nt[1]-Qt[1]),lo=((c=co.filter(nt=>nt[2].slice(0,vt(nt[0])?2:3).every(Qt=>Qt<=0))[0])==null?void 0:c[0])||co[0][0];return lo!==p?{data:{index:P+1,overflows:Z},reset:{placement:lo}}:{}}}};var to=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:i,placement:c}=o,{mainAxis:l=!0,crossAxis:s=!1,limiter:p={fn:z=>{let{x:P,y:k}=z;return{x:P,y:k}}},...y}=Ce(e,o),m={x:a,y:i},O=await Qe(o,y),b=ve(jt(c)),N=Ye(b),v=m[N],w=m[b];if(l){let z=N==="y"?"top":"left",P=N==="y"?"bottom":"right",k=v+O[z],F=v-O[P];v=je(k,v,F)}if(s){let z=b==="y"?"top":"left",P=b==="y"?"bottom":"right",k=w+O[z],F=w-O[P];w=je(k,w,F)}let $=p.fn({...o,[N]:v,[b]:w});return{...$,data:{x:$.x-a,y:$.y-i,enabled:{[N]:l,[b]:s}}}}}};var eo=Math.min,Yt=Math.max,ie=Math.round;var gt=e=>({x:e,y:e});function ht(e){return jr(e)?(e.nodeName||"").toLowerCase():"#document"}function j(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function mt(e){var o;return(o=(jr(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function jr(e){return e instanceof Node||e instanceof j(e).Node}function lt(e){return e instanceof Element||e instanceof j(e).Element}function ot(e){return e instanceof HTMLElement||e instanceof j(e).HTMLElement}function Vr(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof j(e).ShadowRoot}function Xt(e){let{overflow:o,overflowX:a,overflowY:i,display:c}=X(e);return/auto|scroll|overlay|hidden|clip/.test(o+i+a)&&!["inline","contents"].includes(c)}function Yr(e){return["table","td","th"].includes(ht(e))}function we(e){let o=Ee(),a=X(e);return a.transform!=="none"||a.perspective!=="none"||(a.containerType?a.containerType!=="normal":!1)||!o&&(a.backdropFilter?a.backdropFilter!=="none":!1)||!o&&(a.filter?a.filter!=="none":!1)||["transform","perspective","filter"].some(i=>(a.willChange||"").includes(i))||["paint","layout","strict","content"].some(i=>(a.contain||"").includes(i))}function Xr(e){let o=$t(e);for(;ot(o)&&!ce(o);){if(we(o))return o;o=$t(o)}return null}function Ee(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ce(e){return["html","body","#document"].includes(ht(e))}function X(e){return j(e).getComputedStyle(e)}function le(e){return lt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function $t(e){if(ht(e)==="html")return e;let o=e.assignedSlot||e.parentNode||Vr(e)&&e.host||mt(e);return Vr(o)?o.host:o}function qr(e){let o=$t(e);return ce(o)?e.ownerDocument?e.ownerDocument.body:e.body:ot(o)&&Xt(o)?o:qr(o)}function Ne(e,o,a){var i;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=qr(e),l=c===((i=e.ownerDocument)==null?void 0:i.body),s=j(c);return l?o.concat(s,s.visualViewport||[],Xt(c)?c:[],s.frameElement&&a?Ne(s.frameElement):[]):o.concat(c,Ne(c,[],a))}function ta(e){let o=X(e),a=parseFloat(o.width)||0,i=parseFloat(o.height)||0,c=ot(e),l=c?e.offsetWidth:a,s=c?e.offsetHeight:i,p=ie(a)!==l||ie(i)!==s;return p&&(a=l,i=s),{width:a,height:i,$:p}}function ea(e){return lt(e)?e:e.contextElement}function qt(e){let o=ea(e);if(!ot(o))return gt(1);let a=o.getBoundingClientRect(),{width:i,height:c,$:l}=ta(o),s=(l?ie(a.width):a.width)/i,p=(l?ie(a.height):a.height)/c;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var Va=gt(0);function oa(e){let o=j(e);return!Ee()||!o.visualViewport?Va:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ja(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==j(e)?!1:o}function se(e,o,a,i){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=ea(e),s=gt(1);o&&(i?lt(i)&&(s=qt(i)):s=qt(e));let p=ja(l,a,i)?oa(l):gt(0),y=(c.left+p.x)/s.x,m=(c.top+p.y)/s.y,O=c.width/s.x,b=c.height/s.y;if(l){let N=j(l),v=i&<(i)?j(i):i,w=N.frameElement;for(;w&&i&&v!==N;){let $=qt(w),z=w.getBoundingClientRect(),P=X(w),k=z.left+(w.clientLeft+parseFloat(P.paddingLeft))*$.x,F=z.top+(w.clientTop+parseFloat(P.paddingTop))*$.y;y*=$.x,m*=$.y,O*=$.x,b*=$.y,y+=k,m+=F,w=j(w).frameElement}}return It({width:O,height:b,x:y,y:m})}function Ya(e){let{rect:o,offsetParent:a,strategy:i}=e,c=ot(a),l=mt(a);if(a===l)return o;let s={scrollLeft:0,scrollTop:0},p=gt(1),y=gt(0);if((c||!c&&i!=="fixed")&&((ht(a)!=="body"||Xt(l))&&(s=le(a)),ot(a))){let m=se(a);p=qt(a),y.x=m.x+a.clientLeft,y.y=m.y+a.clientTop}return{width:o.width*p.x,height:o.height*p.y,x:o.x*p.x-s.scrollLeft*p.x+y.x,y:o.y*p.y-s.scrollTop*p.y+y.y}}function Xa(e){return Array.from(e.getClientRects())}function ra(e){return se(mt(e)).left+le(e).scrollLeft}function qa(e){let o=mt(e),a=le(e),i=e.ownerDocument.body,c=Yt(o.scrollWidth,o.clientWidth,i.scrollWidth,i.clientWidth),l=Yt(o.scrollHeight,o.clientHeight,i.scrollHeight,i.clientHeight),s=-a.scrollLeft+ra(e),p=-a.scrollTop;return X(i).direction==="rtl"&&(s+=Yt(o.clientWidth,i.clientWidth)-c),{width:c,height:l,x:s,y:p}}function Qa(e,o){let a=j(e),i=mt(e),c=a.visualViewport,l=i.clientWidth,s=i.clientHeight,p=0,y=0;if(c){l=c.width,s=c.height;let m=Ee();(!m||m&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:l,height:s,x:p,y}}function Ja(e,o){let a=se(e,!0,o==="fixed"),i=a.top+e.clientTop,c=a.left+e.clientLeft,l=ot(e)?qt(e):gt(1),s=e.clientWidth*l.x,p=e.clientHeight*l.y,y=c*l.x,m=i*l.y;return{width:s,height:p,x:y,y:m}}function Qr(e,o,a){let i;if(o==="viewport")i=Qa(e,a);else if(o==="document")i=qa(mt(e));else if(lt(o))i=Ja(o,a);else{let c=oa(e);i={...o,x:o.x-c.x,y:o.y-c.y}}return It(i)}function aa(e,o){let a=$t(e);return a===o||!lt(a)||ce(a)?!1:X(a).position==="fixed"||aa(a,o)}function tn(e,o){let a=o.get(e);if(a)return a;let i=Ne(e,[],!1).filter(p=>lt(p)&&ht(p)!=="body"),c=null,l=X(e).position==="fixed",s=l?$t(e):e;for(;lt(s)&&!ce(s);){let p=X(s),y=we(s);!y&&p.position==="fixed"&&(c=null),(l?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||Xt(s)&&!y&&aa(e,s))?i=i.filter(O=>O!==s):c=p,s=$t(s)}return o.set(e,i),i}function en(e){let{element:o,boundary:a,rootBoundary:i,strategy:c}=e,s=[...a==="clippingAncestors"?tn(o,this._c):[].concat(a),i],p=s[0],y=s.reduce((m,O)=>{let b=Qr(o,O,c);return m.top=Yt(b.top,m.top),m.right=eo(b.right,m.right),m.bottom=eo(b.bottom,m.bottom),m.left=Yt(b.left,m.left),m},Qr(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function on(e){return ta(e)}function rn(e,o,a){let i=ot(o),c=mt(o),l=a==="fixed",s=se(e,!0,l,o),p={scrollLeft:0,scrollTop:0},y=gt(0);if(i||!i&&!l)if((ht(o)!=="body"||Xt(c))&&(p=le(o)),i){let m=se(o,!0,l,o);y.x=m.x+o.clientLeft,y.y=m.y+o.clientTop}else c&&(y.x=ra(c));return{x:s.left+p.scrollLeft-y.x,y:s.top+p.scrollTop-y.y,width:s.width,height:s.height}}function Jr(e,o){return!ot(e)||X(e).position==="fixed"?null:o?o(e):e.offsetParent}function na(e,o){let a=j(e);if(!ot(e))return a;let i=Jr(e,o);for(;i&&Yr(i)&&X(i).position==="static";)i=Jr(i,o);return i&&(ht(i)==="html"||ht(i)==="body"&&X(i).position==="static"&&!we(i))?a:i||Xr(e)||a}var an=async function(e){let{reference:o,floating:a,strategy:i}=e,c=this.getOffsetParent||na,l=this.getDimensions;return{reference:rn(o,await c(a),i),floating:{x:0,y:0,...await l(a)}}};function nn(e){return X(e).direction==="rtl"}var Re={convertOffsetParentRelativeRectToViewportRelativeRect:Ya,getDocumentElement:mt,getClippingRect:en,getOffsetParent:na,getElementRects:an,getClientRects:Xa,getDimensions:on,getScale:qt,isElement:lt,isRTL:nn};var ia=(e,o,a)=>{let i=new Map,c={platform:Re,...a},l={...c.platform,_c:i};return Kr(e,o,{...c,platform:l})};function ca(e){return cn(e)}function oo(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function cn(e){for(let o=e;o;o=oo(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=oo(e);o;o=oo(o)){if(!(o instanceof Element))continue;let a=getComputedStyle(o);if(a.display!=="contents"&&(a.position!=="static"||a.filter!=="none"||o.tagName==="BODY"))return o}return null}async function la(e,o,a){return ia(e,o,{platform:{...Re,getOffsetParent:i=>Re.getOffsetParent(i,ca)},middleware:[to({crossAxis:!0}),Je({allowedPlacements:[a]})]})}var Y=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},B=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 sa.html`
|
|
523
523
|
<div part="container"
|
|
524
524
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
525
525
|
@mouseenter=${this.onHover}
|
|
@@ -549,8 +549,11 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
549
549
|
<div></div>
|
|
550
550
|
<div></div>
|
|
551
551
|
</div>
|
|
552
|
-
`}};Pt.styles=cr;(0,ba.customElement)("ft-loader")(Pt);var wt=x(D()),ro=x(be()),
|
|
553
|
-
<ft-ripple part="ripple"
|
|
552
|
+
`}};Pt.styles=cr;(0,ba.customElement)("ft-loader")(Pt);var wt=x(D()),ro=x(be()),H=x(pt()),G=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},L=class extends(0,Et.toFtFormComponent)(Et.FtLitElement){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,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.activated=!1,this.addEventListener("click",o=>{var a;this.isDisabled()?(o.preventDefault(),o.stopPropagation(),o.stopImmediatePropagation()):this.type=="submit"&&((a=this.form)===null||a===void 0||a.requestSubmit())})}render(){var o,a,i;let c=wt.html`
|
|
553
|
+
<ft-ripple part="ripple"
|
|
554
|
+
?disabled=${this.isDisabled()}
|
|
555
|
+
?activated=${this.activated}
|
|
556
|
+
></ft-ripple>
|
|
554
557
|
<ft-typography part="label"
|
|
555
558
|
variant=${this.typographyVariant}
|
|
556
559
|
element="span"
|
|
@@ -586,7 +589,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
586
589
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
587
590
|
`:wt.html`
|
|
588
591
|
<slot part="icon" name="icon"></slot>
|
|
589
|
-
`}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}focusWithoutTooltip(){var o;this.setTooltipManual(!0),(o=this.button)===null||o===void 0||o.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(o,a){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(o,a)}setTooltipManual(o){this.tooltip&&(this.tooltip.manual=o)}click(){var o;(o=this.button)===null||o===void 0||o.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Et.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};L.elementDefinitions={"ft-ripple":A,"ft-tooltip":B,"ft-typography":et,"ft-icon":q,"ft-loader":Pt};
|
|
592
|
+
`}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}focusWithoutTooltip(){var o;this.setTooltipManual(!0),(o=this.button)===null||o===void 0||o.focus(),this.setTooltipManual(!1)}showTemporaryTooltip(o,a){var i;return(i=this.tooltip)===null||i===void 0?void 0:i.showTemporaryText(o,a)}setTooltipManual(o){this.tooltip&&(this.tooltip.manual=o)}click(){var o;(o=this.button)===null||o===void 0||o.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,Et.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};L.elementDefinitions={"ft-ripple":A,"ft-tooltip":B,"ft-typography":et,"ft-icon":q,"ft-loader":Pt};G([(0,H.property)()],L.prototype,"href",void 0);G([(0,H.property)()],L.prototype,"target",void 0);G([(0,H.property)()],L.prototype,"type",void 0);G([(0,H.property)({type:Boolean})],L.prototype,"disabled",void 0);G([(0,H.property)()],L.prototype,"label",void 0);G([(0,H.property)()],L.prototype,"icon",void 0);G([(0,H.property)()],L.prototype,"iconVariant",void 0);G([(0,H.property)({type:Boolean})],L.prototype,"trailingIcon",void 0);G([(0,H.property)({type:Boolean})],L.prototype,"loading",void 0);G([(0,H.property)({attribute:"aria-label"})],L.prototype,"ariaLabel",void 0);G([(0,H.property)()],L.prototype,"tooltipPosition",void 0);G([(0,H.property)({type:Boolean})],L.prototype,"hideTooltip",void 0);G([(0,H.property)({type:Boolean})],L.prototype,"forceTooltip",void 0);G([(0,H.property)({type:Boolean})],L.prototype,"activated",void 0);G([(0,H.query)(".ft-button")],L.prototype,"button",void 0);G([(0,H.query)(".ft-button--label slot")],L.prototype,"slottedContent",void 0);G([(0,H.query)("[part=tooltip]")],L.prototype,"tooltip",void 0);var Ae=function(e,o,a,i){var c=arguments.length,l=c<3?o:i===null?i=Object.getOwnPropertyDescriptor(o,a):i,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,i);else for(var p=e.length-1;p>=0;p--)(s=e[p])&&(l=(c<3?s(l):c>3?s(o,a,l):s(o,a))||l);return c>3&&l&&Object.defineProperty(o,a,l),l},rt=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"}};rt.styles=[xa.safariEllipsisFix,yr];Ae([(0,ye.property)({type:Boolean})],rt.prototype,"primary",void 0);Ae([(0,ye.property)({type:Boolean})],rt.prototype,"outlined",void 0);Ae([(0,ye.property)({type:Boolean})],rt.prototype,"dense",void 0);Ae([(0,ye.property)({type:Boolean})],rt.prototype,"round",void 0);var ue=x(pt());var Ie=x(E());var Sa=x(D()),f=x(E());var Oa=[Sa.css`
|
|
590
593
|
:host {
|
|
591
594
|
display: inline-block;
|
|
592
595
|
max-width: 100%;
|