@fluid-topics/ft-tree-selector 1.2.7 → 1.2.9
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,n;super.update(o),o.has("disabled")&&(this.disabled?(this.endRipple(),(a=this.target)===null||a===void 0||a.removeAttribute("data-is-ft-ripple-target")):(n=this.target)===null||n===void 0||n.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 n=(o=this.shadowRoot)===null||o===void 0?void 0:o.host.parentElement;n&&this.setupFor((a=this.target)!==null&&a!==void 0?a:n)}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)},n=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",n,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",n,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,n=o,c,l;return a.x!=null?{x:c,y:l}=a:n.touches!=null&&(c=n.touches[0].clientX,l=n.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=Lo;q([(0,Z.property)({type:Boolean})],A.prototype,"primary",void 0);q([(0,Z.property)({type:Boolean})],A.prototype,"secondary",void 0);q([(0,Z.property)({type:Boolean})],A.prototype,"unbounded",void 0);q([(0,Z.property)({type:Boolean})],A.prototype,"activated",void 0);q([(0,Z.property)({type:Boolean})],A.prototype,"selected",void 0);q([(0,Z.property)({type:Boolean})],A.prototype,"disabled",void 0);q([(0,Z.state)()],A.prototype,"hovered",void 0);q([(0,Z.state)()],A.prototype,"focused",void 0);q([(0,Z.state)()],A.prototype,"pressed",void 0);q([(0,Z.state)()],A.prototype,"rippling",void 0);q([(0,Z.state)()],A.prototype,"originX",void 0);q([(0,Z.state)()],A.prototype,"originY",void 0);q([(0,Z.query)(".ft-ripple")],A.prototype,"ripple",void 0);q([(0,Z.query)(".ft-ripple--effect")],A.prototype,"rippleEffect",void 0);(0,Nr.customElement)("ft-ripple")(A);var ma=b(w());var ha=b(_()),D=b(dt()),me=b(w());var Mr=b(w());var Ve=globalThis,Ee=Ve.trustedTypes,Er=Ee?Ee.createPolicy("lit-html",{createHTML:e=>e}):void 0,Br="$lit$",Lt=`lit$${(Math.random()+"").slice(9)}$`,Ir="?"+Lt,Ya=`<${Ir}>`,Wt=document,we=()=>Wt.createComment(""),se=e=>e===null||typeof e!="object"&&typeof e!="function",Pr=Array.isArray,Xa=e=>Pr(e)||typeof e?.[Symbol.iterator]=="function",Ue=`[
|
|
484
484
|
\f\r]`,le=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wr=/-->/g,Lr=/>/g,Pt=RegExp(`>|${Ue}(?:([^\\s"'>=/]+)(${Ue}*=${Ue}*(?:[^
|
|
485
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Rr=/'/g,Ar=/"/g,kr=/^(?:script|style|textarea|title)$/i,Wr=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),zr=Wr(1),Tr=Wr(2),de=Symbol.for("lit-noChange"),
|
|
485
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Rr=/'/g,Ar=/"/g,kr=/^(?:script|style|textarea|title)$/i,Wr=e=>(o,...a)=>({_$litType$:e,strings:o,values:a}),zr=Wr(1),Tr=Wr(2),de=Symbol.for("lit-noChange"),G=Symbol.for("lit-nothing"),$r=new WeakMap,kt=Wt.createTreeWalker(Wt,129);function Hr(e,o){if(!Array.isArray(e)||!e.hasOwnProperty("raw"))throw Error("invalid template strings array");return Er!==void 0?Er.createHTML(o):o}var qa=(e,o)=>{let a=e.length-1,n=[],c,l=o===2?"<svg>":"",s=le;for(let p=0;p<a;p++){let y=e[p],m,C,x=-1,N=0;for(;N<y.length&&(s.lastIndex=N,C=s.exec(y),C!==null);)N=s.lastIndex,s===le?C[1]==="!--"?s=wr:C[1]!==void 0?s=Lr:C[2]!==void 0?(kr.test(C[2])&&(c=RegExp("</"+C[2],"g")),s=Pt):C[3]!==void 0&&(s=Pt):s===Pt?C[0]===">"?(s=c??le,x=-1):C[1]===void 0?x=-2:(x=s.lastIndex-C[2].length,m=C[1],s=C[3]===void 0?Pt:C[3]==='"'?Ar:Rr):s===Ar||s===Rr?s=Pt:s===wr||s===Lr?s=le:(s=Pt,c=void 0);let v=s===Pt&&e[p+1].startsWith("/>")?" ":"";l+=s===le?y+Ya:x>=0?(n.push(m),y.slice(0,x)+Br+y.slice(x)+Lt+v):y+Lt+(x===-2?p:v)}return[Hr(e,l+(e[a]||"<?>")+(o===2?"</svg>":"")),n]},pe=class e{constructor({strings:o,_$litType$:a},n){let c;this.parts=[];let l=0,s=0,p=o.length-1,y=this.parts,[m,C]=qa(o,a);if(this.el=e.createElement(m,n),kt.currentNode=this.el.content,a===2){let x=this.el.content.firstChild;x.replaceWith(...x.childNodes)}for(;(c=kt.nextNode())!==null&&y.length<p;){if(c.nodeType===1){if(c.hasAttributes())for(let x of c.getAttributeNames())if(x.endsWith(Br)){let N=C[s++],v=c.getAttribute(x).split(Lt),E=/([.?@])?(.*)/.exec(N);y.push({type:1,index:l,name:E[2],strings:v,ctor:E[1]==="."?Ze:E[1]==="?"?Me:E[1]==="@"?Fe:te}),c.removeAttribute(x)}else x.startsWith(Lt)&&(y.push({type:6,index:l}),c.removeAttribute(x));if(kr.test(c.tagName)){let x=c.textContent.split(Lt),N=x.length-1;if(N>0){c.textContent=Ee?Ee.emptyScript:"";for(let v=0;v<N;v++)c.append(x[v],we()),kt.nextNode(),y.push({type:2,index:++l});c.append(x[N],we())}}}else if(c.nodeType===8)if(c.data===Ir)y.push({type:2,index:l});else{let x=-1;for(;(x=c.data.indexOf(Lt,x+1))!==-1;)y.push({type:7,index:l}),x+=Lt.length-1}l++}}static createElement(o,a){let n=Wt.createElement("template");return n.innerHTML=o,n}};function Jt(e,o,a=e,n){if(o===de)return o;let c=n!==void 0?a._$Co?.[n]:a._$Cl,l=se(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,n)),n!==void 0?(a._$Co??=[])[n]=c:a._$Cl=c),c!==void 0&&(o=Jt(e,c._$AS(e,o.values),c,n)),o}var Ge=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:n}=this._$AD,c=(o?.creationScope??Wt).importNode(a,!0);kt.currentNode=c;let l=kt.nextNode(),s=0,p=0,y=n[0];for(;y!==void 0;){if(s===y.index){let m;y.type===2?m=new Le(l,l.nextSibling,this,o):y.type===1?m=new y.ctor(l,y.name,y.strings,this,o):y.type===6&&(m=new Ke(l,this,o)),this._$AV.push(m),y=n[++p]}s!==y?.index&&(l=kt.nextNode(),s++)}return kt.currentNode=Wt,c}p(o){let a=0;for(let n of this._$AV)n!==void 0&&(n.strings!==void 0?(n._$AI(o,n,a),a+=n.strings.length-2):n._$AI(o[a])),a++}},Le=class e{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(o,a,n,c){this.type=2,this._$AH=G,this._$AN=void 0,this._$AA=o,this._$AB=a,this._$AM=n,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=Jt(this,o,a),se(o)?o===G||o==null||o===""?(this._$AH!==G&&this._$AR(),this._$AH=G):o!==this._$AH&&o!==de&&this._(o):o._$litType$!==void 0?this.g(o):o.nodeType!==void 0?this.$(o):Xa(o)?this.T(o):this._(o)}k(o){return this._$AA.parentNode.insertBefore(o,this._$AB)}$(o){this._$AH!==o&&(this._$AR(),this._$AH=this.k(o))}_(o){this._$AH!==G&&se(this._$AH)?this._$AA.nextSibling.data=o:this.$(Wt.createTextNode(o)),this._$AH=o}g(o){let{values:a,_$litType$:n}=o,c=typeof n=="number"?this._$AC(o):(n.el===void 0&&(n.el=pe.createElement(Hr(n.h,n.h[0]),this.options)),n);if(this._$AH?._$AD===c)this._$AH.p(a);else{let l=new Ge(c,this),s=l.u(this.options);l.p(a),this.$(s),this._$AH=l}}_$AC(o){let a=$r.get(o.strings);return a===void 0&&$r.set(o.strings,a=new pe(o)),a}T(o){Pr(this._$AH)||(this._$AH=[],this._$AR());let a=this._$AH,n,c=0;for(let l of o)c===a.length?a.push(n=new e(this.k(we()),this.k(we()),this,this.options)):n=a[c],n._$AI(l),c++;c<a.length&&(this._$AR(n&&n._$AB.nextSibling,c),a.length=c)}_$AR(o=this._$AA.nextSibling,a){for(this._$AP?.(!1,!0,a);o&&o!==this._$AB;){let n=o.nextSibling;o.remove(),o=n}}setConnected(o){this._$AM===void 0&&(this._$Cv=o,this._$AP?.(o))}},te=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(o,a,n,c,l){this.type=1,this._$AH=G,this._$AN=void 0,this.element=o,this.name=a,this._$AM=c,this.options=l,n.length>2||n[0]!==""||n[1]!==""?(this._$AH=Array(n.length-1).fill(new String),this.strings=n):this._$AH=G}_$AI(o,a=this,n,c){let l=this.strings,s=!1;if(l===void 0)o=Jt(this,o,a,0),s=!se(o)||o!==this._$AH&&o!==de,s&&(this._$AH=o);else{let p=o,y,m;for(o=l[0],y=0;y<l.length-1;y++)m=Jt(this,p[n+y],a,y),m===de&&(m=this._$AH[y]),s||=!se(m)||m!==this._$AH[y],m===G?o=G:o!==G&&(o+=(m??"")+l[y+1]),this._$AH[y]=m}s&&!c&&this.O(o)}O(o){o===G?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,o??"")}},Ze=class extends te{constructor(){super(...arguments),this.type=3}O(o){this.element[this.name]=o===G?void 0:o}},Me=class extends te{constructor(){super(...arguments),this.type=4}O(o){this.element.toggleAttribute(this.name,!!o&&o!==G)}},Fe=class extends te{constructor(o,a,n,c,l){super(o,a,n,c,l),this.type=5}_$AI(o,a=this){if((o=Jt(this,o,a,0)??G)===de)return;let n=this._$AH,c=o===G&&n!==G||o.capture!==n.capture||o.once!==n.once||o.passive!==n.passive,l=o!==G&&(n===G||c);c&&this.element.removeEventListener(this.name,this,n),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)}},Ke=class{constructor(o,a,n){this.element=o,this.type=6,this._$AN=void 0,this._$AM=a,this.options=n}get _$AU(){return this._$AM._$AU}_$AI(o){Jt(this,o)}};var Qa=Ve.litHtmlPolyfillSupport;Qa?.(pe,Le),(Ve.litHtmlVersions??=[]).push("3.1.0");var Dr=Symbol.for(""),Ja=e=>{if(e?.r===Dr)return e?._$litStatic$},je=e=>({_$litStatic$:e,r:Dr});var _r=new Map,Ur=e=>(o,...a)=>{let n=a.length,c,l,s=[],p=[],y,m=0,C=!1;for(;m<n;){for(y=o[m];m<n&&(l=a[m],(c=Ja(l))!==void 0);)y+=c+o[++m],C=!0;m!==n&&p.push(l),s.push(y),m++}if(m===n&&s.push(o[n]),C){let x=s.join("$$lit$$");(o=_r.get(x))===void 0&&(s.raw=s,_r.set(x,o=s)),a=p}return e(o,...a)},Ye=Ur(zr),Gs=Ur(Tr);var Xe=b(dt()),Zr=b(w());var Rt;(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"})(Rt||(Rt={}));var Gr=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);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},Y=class extends Zr.FtLitElement{constructor(){super(...arguments),this.variant=Rt.body1}render(){return this.element?Ye`
|
|
486
486
|
<${je(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 jr=["top","right","bottom","left"],Vr=["start","end"],Qe=jr.reduce((e,o)=>e.concat(o,o+"-"+Vr[0],o+"-"+Vr[1]),[]),fe=Math.min,At=Math.max,ye=Math.round;var xt=e=>({x:e,y:e}),tn={left:"right",right:"left",bottom:"top",top:"bottom"},en={start:"end",end:"start"};function Je(e,o,a){return At(e,fe(o,a))}function Re(e,o){return typeof e=="function"?e(o):e}function oe(e){return e.split("-")[0]}function $t(e){return e.split("-")[1]}function to(e){return e==="x"?"y":"x"}function eo(e){return e==="y"?"height":"width"}function Ae(e){return["top","bottom"].includes(oe(e))?"y":"x"}function oo(e){return to(Ae(e))}function Yr(e,o,a){a===void 0&&(a=!1);let n=$t(e),c=oo(e),l=eo(c),s=c==="x"?n===(a?"end":"start")?"right":"left":n==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(s=qe(s)),[s,qe(s)]}function Xr(e){return e.replace(/start|end/g,o=>en[o])}function qe(e){return e.replace(/left|right|bottom|top/g,o=>tn[o])}function on(e){return{top:0,right:0,bottom:0,left:0,...e}}function qr(e){return typeof e!="number"?on(e):{top:e,right:e,bottom:e,left:e}}function zt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Qr(e,o,a){let{reference:n,floating:c}=e,l=Ae(o),s=oo(o),p=eo(s),y=oe(o),m=l==="y",C=n.x+n.width/2-c.width/2,x=n.y+n.height/2-c.height/2,N=n[p]/2-c[p]/2,v;switch(y){case"top":v={x:C,y:n.y-c.height};break;case"bottom":v={x:C,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:x};break;case"left":v={x:n.x-c.width,y:x};break;default:v={x:n.x,y:n.y}}switch($t(o)){case"start":v[s]-=N*(a&&m?-1:1);break;case"end":v[s]+=N*(a&&m?-1:1);break}return v}var Jr=async(e,o,a)=>{let{placement:n="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:C,y:x}=Qr(m,n,y),N=n,v={},E=0;for(let P=0;P<p.length;P++){let{name:T,fn:k}=p[P],{x:H,y:V,data:Et,reset:F}=await k({x:C,y:x,initialPlacement:n,placement:N,strategy:c,middlewareData:v,rects:m,platform:s,elements:{reference:e,floating:o}});if(C=H??C,x=V??x,v={...v,[T]:{...v[T],...Et}},F&&E<=50){E++,typeof F=="object"&&(F.placement&&(N=F.placement),F.rects&&(m=F.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:c}):F.rects),{x:C,y:x}=Qr(m,N,y)),P=-1;continue}}return{x:C,y:x,placement:N,strategy:c,middlewareData:v}};async function ro(e,o){var a;o===void 0&&(o={});let{x:n,y:c,platform:l,rects:s,elements:p,strategy:y}=e,{boundary:m="clippingAncestors",rootBoundary:C="viewport",elementContext:x="floating",altBoundary:N=!1,padding:v=0}=Re(o,e),E=qr(v),T=p[N?x==="floating"?"reference":"floating":x],k=zt(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(T)))==null||a?T:T.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:m,rootBoundary:C,strategy:y})),H=x==="floating"?{...s.floating,x:n,y:c}:s.reference,V=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),Et=await(l.isElement==null?void 0:l.isElement(V))?await(l.getScale==null?void 0:l.getScale(V))||{x:1,y:1}:{x:1,y:1},F=zt(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:H,offsetParent:V,strategy:y}):H);return{top:(k.top-F.top+E.top)/Et.y,bottom:(F.bottom-k.bottom+E.bottom)/Et.y,left:(k.left-F.left+E.left)/Et.x,right:(F.right-k.right+E.right)/Et.x}}function rn(e,o,a){return(e?[...a.filter(c=>$t(c)===e),...a.filter(c=>$t(c)!==e)]:a.filter(c=>oe(c)===c)).filter(c=>e?$t(c)===e||(o?Xr(c)!==c:!1):!0)}var ao=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,n,c;let{rects:l,middlewareData:s,placement:p,platform:y,elements:m}=o,{crossAxis:C=!1,alignment:x,allowedPlacements:N=Qe,autoAlignment:v=!0,...E}=Re(e,o),P=x!==void 0||N===Qe?rn(x||null,v,N):N,T=await ro(o,E),k=((a=s.autoPlacement)==null?void 0:a.index)||0,H=P[k];if(H==null)return{};let V=Yr(H,l,await(y.isRTL==null?void 0:y.isRTL(m.floating)));if(p!==H)return{reset:{placement:P[0]}};let Et=[T[oe(H)],T[V[0]],T[V[1]]],F=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:H,overflows:Et}],uo=P[k+1];if(uo)return{data:{index:k+1,overflows:F},reset:{placement:uo}};let go=F.map(st=>{let ne=$t(st.placement);return[st.placement,ne&&C?st.overflows.slice(0,2).reduce((Da,Ua)=>Da+Ua,0):st.overflows[0],st.overflows]}).sort((st,ne)=>st[1]-ne[1]),ho=((c=go.filter(st=>st[2].slice(0,$t(st[0])?2:3).every(ne=>ne<=0))[0])==null?void 0:c[0])||go[0][0];return ho!==p?{data:{index:k+1,overflows:F},reset:{placement:ho}}:{}}}};var no=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:n,placement:c}=o,{mainAxis:l=!0,crossAxis:s=!1,limiter:p={fn:T=>{let{x:k,y:H}=T;return{x:k,y:H}}},...y}=Re(e,o),m={x:a,y:n},C=await ro(o,y),x=Ae(oe(c)),N=to(x),v=m[N],E=m[x];if(l){let T=N==="y"?"top":"left",k=N==="y"?"bottom":"right",H=v+C[T],V=v-C[k];v=Je(H,v,V)}if(s){let T=x==="y"?"top":"left",k=x==="y"?"bottom":"right",H=E+C[T],V=E-C[k];E=Je(H,E,V)}let P=p.fn({...o,[N]:v,[x]:E});return{...P,data:{x:P.x-a,y:P.y-n}}}}};function St(e){return ea(e)?(e.nodeName||"").toLowerCase():"#document"}function Q(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function Ct(e){var o;return(o=(ea(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function ea(e){return e instanceof Node||e instanceof Q(e).Node}function yt(e){return e instanceof Element||e instanceof Q(e).Element}function ct(e){return e instanceof HTMLElement||e instanceof Q(e).HTMLElement}function ta(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Q(e).ShadowRoot}function re(e){let{overflow:o,overflowX:a,overflowY:n,display:c}=et(e);return/auto|scroll|overlay|hidden|clip/.test(o+n+a)&&!["inline","contents"].includes(c)}function oa(e){return["table","td","th"].includes(St(e))}function Be(e){let o=Ie(),a=et(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(n=>(a.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(a.contain||"").includes(n))}function ra(e){let o=Tt(e);for(;ct(o)&&!ue(o);){if(Be(o))return o;o=Tt(o)}return null}function Ie(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ue(e){return["html","body","#document"].includes(St(e))}function et(e){return Q(e).getComputedStyle(e)}function ge(e){return yt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Tt(e){if(St(e)==="html")return e;let o=e.assignedSlot||e.parentNode||ta(e)&&e.host||Ct(e);return ta(o)?o.host:o}function aa(e){let o=Tt(e);return ue(o)?e.ownerDocument?e.ownerDocument.body:e.body:ct(o)&&re(o)?o:aa(o)}function $e(e,o,a){var n;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=aa(e),l=c===((n=e.ownerDocument)==null?void 0:n.body),s=Q(c);return l?o.concat(s,s.visualViewport||[],re(c)?c:[],s.frameElement&&a?$e(s.frameElement):[]):o.concat(c,$e(c,[],a))}function ca(e){let o=et(e),a=parseFloat(o.width)||0,n=parseFloat(o.height)||0,c=ct(e),l=c?e.offsetWidth:a,s=c?e.offsetHeight:n,p=ye(a)!==l||ye(n)!==s;return p&&(a=l,n=s),{width:a,height:n,$:p}}function la(e){return yt(e)?e:e.contextElement}function ae(e){let o=la(e);if(!ct(o))return xt(1);let a=o.getBoundingClientRect(),{width:n,height:c,$:l}=ca(o),s=(l?ye(a.width):a.width)/n,p=(l?ye(a.height):a.height)/c;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var cn=xt(0);function sa(e){let o=Q(e);return!Ie()||!o.visualViewport?cn:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ln(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==Q(e)?!1:o}function he(e,o,a,n){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=la(e),s=xt(1);o&&(n?yt(n)&&(s=ae(n)):s=ae(e));let p=ln(l,a,n)?sa(l):xt(0),y=(c.left+p.x)/s.x,m=(c.top+p.y)/s.y,C=c.width/s.x,x=c.height/s.y;if(l){let N=Q(l),v=n&&yt(n)?Q(n):n,E=N.frameElement;for(;E&&n&&v!==N;){let P=ae(E),T=E.getBoundingClientRect(),k=et(E),H=T.left+(E.clientLeft+parseFloat(k.paddingLeft))*P.x,V=T.top+(E.clientTop+parseFloat(k.paddingTop))*P.y;y*=P.x,m*=P.y,C*=P.x,x*=P.y,y+=H,m+=V,E=Q(E).frameElement}}return zt({width:C,height:x,x:y,y:m})}function sn(e){let{rect:o,offsetParent:a,strategy:n}=e,c=ct(a),l=Ct(a);if(a===l)return o;let s={scrollLeft:0,scrollTop:0},p=xt(1),y=xt(0);if((c||!c&&n!=="fixed")&&((St(a)!=="body"||re(l))&&(s=ge(a)),ct(a))){let m=he(a);p=ae(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 dn(e){return Array.from(e.getClientRects())}function da(e){return he(Ct(e)).left+ge(e).scrollLeft}function pn(e){let o=Ct(e),a=ge(e),n=e.ownerDocument.body,c=At(o.scrollWidth,o.clientWidth,n.scrollWidth,n.clientWidth),l=At(o.scrollHeight,o.clientHeight,n.scrollHeight,n.clientHeight),s=-a.scrollLeft+da(e),p=-a.scrollTop;return et(n).direction==="rtl"&&(s+=At(o.clientWidth,n.clientWidth)-c),{width:c,height:l,x:s,y:p}}function fn(e,o){let a=Q(e),n=Ct(e),c=a.visualViewport,l=n.clientWidth,s=n.clientHeight,p=0,y=0;if(c){l=c.width,s=c.height;let m=Ie();(!m||m&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:l,height:s,x:p,y}}function yn(e,o){let a=he(e,!0,o==="fixed"),n=a.top+e.clientTop,c=a.left+e.clientLeft,l=ct(e)?ae(e):xt(1),s=e.clientWidth*l.x,p=e.clientHeight*l.y,y=c*l.x,m=n*l.y;return{width:s,height:p,x:y,y:m}}function na(e,o,a){let n;if(o==="viewport")n=fn(e,a);else if(o==="document")n=pn(Ct(e));else if(yt(o))n=yn(o,a);else{let c=sa(e);n={...o,x:o.x-c.x,y:o.y-c.y}}return zt(n)}function pa(e,o){let a=Tt(e);return a===o||!yt(a)||ue(a)?!1:et(a).position==="fixed"||pa(a,o)}function un(e,o){let a=o.get(e);if(a)return a;let n=$e(e,[],!1).filter(p=>yt(p)&&St(p)!=="body"),c=null,l=et(e).position==="fixed",s=l?Tt(e):e;for(;yt(s)&&!ue(s);){let p=et(s),y=Be(s);!y&&p.position==="fixed"&&(c=null),(l?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||re(s)&&!y&&pa(e,s))?n=n.filter(C=>C!==s):c=p,s=Tt(s)}return o.set(e,n),n}function gn(e){let{element:o,boundary:a,rootBoundary:n,strategy:c}=e,s=[...a==="clippingAncestors"?un(o,this._c):[].concat(a),n],p=s[0],y=s.reduce((m,C)=>{let x=na(o,C,c);return m.top=At(x.top,m.top),m.right=fe(x.right,m.right),m.bottom=fe(x.bottom,m.bottom),m.left=At(x.left,m.left),m},na(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function hn(e){return ca(e)}function mn(e,o,a){let n=ct(o),c=Ct(o),l=a==="fixed",s=he(e,!0,l,o),p={scrollLeft:0,scrollTop:0},y=xt(0);if(n||!n&&!l)if((St(o)!=="body"||re(c))&&(p=ge(o)),n){let m=he(o,!0,l,o);y.x=m.x+o.clientLeft,y.y=m.y+o.clientTop}else c&&(y.x=da(c));return{x:s.left+p.scrollLeft-y.x,y:s.top+p.scrollTop-y.y,width:s.width,height:s.height}}function ia(e,o){return!ct(e)||et(e).position==="fixed"?null:o?o(e):e.offsetParent}function fa(e,o){let a=Q(e);if(!ct(e))return a;let n=ia(e,o);for(;n&&oa(n)&&et(n).position==="static";)n=ia(n,o);return n&&(St(n)==="html"||St(n)==="body"&&et(n).position==="static"&&!Be(n))?a:n||ra(e)||a}var bn=async function(e){let{reference:o,floating:a,strategy:n}=e,c=this.getOffsetParent||fa,l=this.getDimensions;return{reference:mn(o,await c(a),n),floating:{x:0,y:0,...await l(a)}}};function xn(e){return et(e).direction==="rtl"}var Pe={convertOffsetParentRelativeRectToViewportRelativeRect:sn,getDocumentElement:Ct,getClippingRect:gn,getOffsetParent:fa,getElementRects:bn,getClientRects:dn,getDimensions:hn,getScale:ae,isElement:yt,isRTL:xn};var ya=(e,o,a)=>{let n=new Map,c={platform:Pe,...a},l={...c.platform,_c:n};return Jr(e,o,{...c,platform:l})};function ua(e){return Sn(e)}function io(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Sn(e){for(let o=e;o;o=io(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=io(e);o;o=io(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 ga(e,o,a){return ya(e,o,{platform:{...Pe,getOffsetParent:n=>Pe.getOffsetParent(n,ua)},middleware:[no({crossAxis:!0}),ao({allowedPlacements:[a]})]})}var J=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);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 me.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 me.Debouncer,this.revealDebouncer=new me.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ha.html`
|
|
522
|
+
`;var jr=["top","right","bottom","left"],Vr=["start","end"],Qe=jr.reduce((e,o)=>e.concat(o,o+"-"+Vr[0],o+"-"+Vr[1]),[]),fe=Math.min,At=Math.max,ye=Math.round;var xt=e=>({x:e,y:e}),tn={left:"right",right:"left",bottom:"top",top:"bottom"},en={start:"end",end:"start"};function Je(e,o,a){return At(e,fe(o,a))}function Re(e,o){return typeof e=="function"?e(o):e}function oe(e){return e.split("-")[0]}function $t(e){return e.split("-")[1]}function to(e){return e==="x"?"y":"x"}function eo(e){return e==="y"?"height":"width"}function Ae(e){return["top","bottom"].includes(oe(e))?"y":"x"}function oo(e){return to(Ae(e))}function Yr(e,o,a){a===void 0&&(a=!1);let n=$t(e),c=oo(e),l=eo(c),s=c==="x"?n===(a?"end":"start")?"right":"left":n==="start"?"bottom":"top";return o.reference[l]>o.floating[l]&&(s=qe(s)),[s,qe(s)]}function Xr(e){return e.replace(/start|end/g,o=>en[o])}function qe(e){return e.replace(/left|right|bottom|top/g,o=>tn[o])}function on(e){return{top:0,right:0,bottom:0,left:0,...e}}function qr(e){return typeof e!="number"?on(e):{top:e,right:e,bottom:e,left:e}}function zt(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}function Qr(e,o,a){let{reference:n,floating:c}=e,l=Ae(o),s=oo(o),p=eo(s),y=oe(o),m=l==="y",C=n.x+n.width/2-c.width/2,x=n.y+n.height/2-c.height/2,N=n[p]/2-c[p]/2,v;switch(y){case"top":v={x:C,y:n.y-c.height};break;case"bottom":v={x:C,y:n.y+n.height};break;case"right":v={x:n.x+n.width,y:x};break;case"left":v={x:n.x-c.width,y:x};break;default:v={x:n.x,y:n.y}}switch($t(o)){case"start":v[s]-=N*(a&&m?-1:1);break;case"end":v[s]+=N*(a&&m?-1:1);break}return v}var Jr=async(e,o,a)=>{let{placement:n="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:C,y:x}=Qr(m,n,y),N=n,v={},E=0;for(let P=0;P<p.length;P++){let{name:T,fn:k}=p[P],{x:H,y:V,data:Et,reset:K}=await k({x:C,y:x,initialPlacement:n,placement:N,strategy:c,middlewareData:v,rects:m,platform:s,elements:{reference:e,floating:o}});if(C=H??C,x=V??x,v={...v,[T]:{...v[T],...Et}},K&&E<=50){E++,typeof K=="object"&&(K.placement&&(N=K.placement),K.rects&&(m=K.rects===!0?await s.getElementRects({reference:e,floating:o,strategy:c}):K.rects),{x:C,y:x}=Qr(m,N,y)),P=-1;continue}}return{x:C,y:x,placement:N,strategy:c,middlewareData:v}};async function ro(e,o){var a;o===void 0&&(o={});let{x:n,y:c,platform:l,rects:s,elements:p,strategy:y}=e,{boundary:m="clippingAncestors",rootBoundary:C="viewport",elementContext:x="floating",altBoundary:N=!1,padding:v=0}=Re(o,e),E=qr(v),T=p[N?x==="floating"?"reference":"floating":x],k=zt(await l.getClippingRect({element:(a=await(l.isElement==null?void 0:l.isElement(T)))==null||a?T:T.contextElement||await(l.getDocumentElement==null?void 0:l.getDocumentElement(p.floating)),boundary:m,rootBoundary:C,strategy:y})),H=x==="floating"?{...s.floating,x:n,y:c}:s.reference,V=await(l.getOffsetParent==null?void 0:l.getOffsetParent(p.floating)),Et=await(l.isElement==null?void 0:l.isElement(V))?await(l.getScale==null?void 0:l.getScale(V))||{x:1,y:1}:{x:1,y:1},K=zt(l.convertOffsetParentRelativeRectToViewportRelativeRect?await l.convertOffsetParentRelativeRectToViewportRelativeRect({rect:H,offsetParent:V,strategy:y}):H);return{top:(k.top-K.top+E.top)/Et.y,bottom:(K.bottom-k.bottom+E.bottom)/Et.y,left:(k.left-K.left+E.left)/Et.x,right:(K.right-k.right+E.right)/Et.x}}function rn(e,o,a){return(e?[...a.filter(c=>$t(c)===e),...a.filter(c=>$t(c)!==e)]:a.filter(c=>oe(c)===c)).filter(c=>e?$t(c)===e||(o?Xr(c)!==c:!1):!0)}var ao=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(o){var a,n,c;let{rects:l,middlewareData:s,placement:p,platform:y,elements:m}=o,{crossAxis:C=!1,alignment:x,allowedPlacements:N=Qe,autoAlignment:v=!0,...E}=Re(e,o),P=x!==void 0||N===Qe?rn(x||null,v,N):N,T=await ro(o,E),k=((a=s.autoPlacement)==null?void 0:a.index)||0,H=P[k];if(H==null)return{};let V=Yr(H,l,await(y.isRTL==null?void 0:y.isRTL(m.floating)));if(p!==H)return{reset:{placement:P[0]}};let Et=[T[oe(H)],T[V[0]],T[V[1]]],K=[...((n=s.autoPlacement)==null?void 0:n.overflows)||[],{placement:H,overflows:Et}],uo=P[k+1];if(uo)return{data:{index:k+1,overflows:K},reset:{placement:uo}};let go=K.map(st=>{let ne=$t(st.placement);return[st.placement,ne&&C?st.overflows.slice(0,2).reduce((Da,Ua)=>Da+Ua,0):st.overflows[0],st.overflows]}).sort((st,ne)=>st[1]-ne[1]),ho=((c=go.filter(st=>st[2].slice(0,$t(st[0])?2:3).every(ne=>ne<=0))[0])==null?void 0:c[0])||go[0][0];return ho!==p?{data:{index:k+1,overflows:K},reset:{placement:ho}}:{}}}};var no=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(o){let{x:a,y:n,placement:c}=o,{mainAxis:l=!0,crossAxis:s=!1,limiter:p={fn:T=>{let{x:k,y:H}=T;return{x:k,y:H}}},...y}=Re(e,o),m={x:a,y:n},C=await ro(o,y),x=Ae(oe(c)),N=to(x),v=m[N],E=m[x];if(l){let T=N==="y"?"top":"left",k=N==="y"?"bottom":"right",H=v+C[T],V=v-C[k];v=Je(H,v,V)}if(s){let T=x==="y"?"top":"left",k=x==="y"?"bottom":"right",H=E+C[T],V=E-C[k];E=Je(H,E,V)}let P=p.fn({...o,[N]:v,[x]:E});return{...P,data:{x:P.x-a,y:P.y-n}}}}};function St(e){return ea(e)?(e.nodeName||"").toLowerCase():"#document"}function Q(e){var o;return(e==null||(o=e.ownerDocument)==null?void 0:o.defaultView)||window}function Ct(e){var o;return(o=(ea(e)?e.ownerDocument:e.document)||window.document)==null?void 0:o.documentElement}function ea(e){return e instanceof Node||e instanceof Q(e).Node}function yt(e){return e instanceof Element||e instanceof Q(e).Element}function ct(e){return e instanceof HTMLElement||e instanceof Q(e).HTMLElement}function ta(e){return typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof Q(e).ShadowRoot}function re(e){let{overflow:o,overflowX:a,overflowY:n,display:c}=et(e);return/auto|scroll|overlay|hidden|clip/.test(o+n+a)&&!["inline","contents"].includes(c)}function oa(e){return["table","td","th"].includes(St(e))}function Be(e){let o=Ie(),a=et(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(n=>(a.willChange||"").includes(n))||["paint","layout","strict","content"].some(n=>(a.contain||"").includes(n))}function ra(e){let o=Tt(e);for(;ct(o)&&!ue(o);){if(Be(o))return o;o=Tt(o)}return null}function Ie(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}function ue(e){return["html","body","#document"].includes(St(e))}function et(e){return Q(e).getComputedStyle(e)}function ge(e){return yt(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function Tt(e){if(St(e)==="html")return e;let o=e.assignedSlot||e.parentNode||ta(e)&&e.host||Ct(e);return ta(o)?o.host:o}function aa(e){let o=Tt(e);return ue(o)?e.ownerDocument?e.ownerDocument.body:e.body:ct(o)&&re(o)?o:aa(o)}function $e(e,o,a){var n;o===void 0&&(o=[]),a===void 0&&(a=!0);let c=aa(e),l=c===((n=e.ownerDocument)==null?void 0:n.body),s=Q(c);return l?o.concat(s,s.visualViewport||[],re(c)?c:[],s.frameElement&&a?$e(s.frameElement):[]):o.concat(c,$e(c,[],a))}function ca(e){let o=et(e),a=parseFloat(o.width)||0,n=parseFloat(o.height)||0,c=ct(e),l=c?e.offsetWidth:a,s=c?e.offsetHeight:n,p=ye(a)!==l||ye(n)!==s;return p&&(a=l,n=s),{width:a,height:n,$:p}}function la(e){return yt(e)?e:e.contextElement}function ae(e){let o=la(e);if(!ct(o))return xt(1);let a=o.getBoundingClientRect(),{width:n,height:c,$:l}=ca(o),s=(l?ye(a.width):a.width)/n,p=(l?ye(a.height):a.height)/c;return(!s||!Number.isFinite(s))&&(s=1),(!p||!Number.isFinite(p))&&(p=1),{x:s,y:p}}var cn=xt(0);function sa(e){let o=Q(e);return!Ie()||!o.visualViewport?cn:{x:o.visualViewport.offsetLeft,y:o.visualViewport.offsetTop}}function ln(e,o,a){return o===void 0&&(o=!1),!a||o&&a!==Q(e)?!1:o}function he(e,o,a,n){o===void 0&&(o=!1),a===void 0&&(a=!1);let c=e.getBoundingClientRect(),l=la(e),s=xt(1);o&&(n?yt(n)&&(s=ae(n)):s=ae(e));let p=ln(l,a,n)?sa(l):xt(0),y=(c.left+p.x)/s.x,m=(c.top+p.y)/s.y,C=c.width/s.x,x=c.height/s.y;if(l){let N=Q(l),v=n&&yt(n)?Q(n):n,E=N.frameElement;for(;E&&n&&v!==N;){let P=ae(E),T=E.getBoundingClientRect(),k=et(E),H=T.left+(E.clientLeft+parseFloat(k.paddingLeft))*P.x,V=T.top+(E.clientTop+parseFloat(k.paddingTop))*P.y;y*=P.x,m*=P.y,C*=P.x,x*=P.y,y+=H,m+=V,E=Q(E).frameElement}}return zt({width:C,height:x,x:y,y:m})}function sn(e){let{rect:o,offsetParent:a,strategy:n}=e,c=ct(a),l=Ct(a);if(a===l)return o;let s={scrollLeft:0,scrollTop:0},p=xt(1),y=xt(0);if((c||!c&&n!=="fixed")&&((St(a)!=="body"||re(l))&&(s=ge(a)),ct(a))){let m=he(a);p=ae(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 dn(e){return Array.from(e.getClientRects())}function da(e){return he(Ct(e)).left+ge(e).scrollLeft}function pn(e){let o=Ct(e),a=ge(e),n=e.ownerDocument.body,c=At(o.scrollWidth,o.clientWidth,n.scrollWidth,n.clientWidth),l=At(o.scrollHeight,o.clientHeight,n.scrollHeight,n.clientHeight),s=-a.scrollLeft+da(e),p=-a.scrollTop;return et(n).direction==="rtl"&&(s+=At(o.clientWidth,n.clientWidth)-c),{width:c,height:l,x:s,y:p}}function fn(e,o){let a=Q(e),n=Ct(e),c=a.visualViewport,l=n.clientWidth,s=n.clientHeight,p=0,y=0;if(c){l=c.width,s=c.height;let m=Ie();(!m||m&&o==="fixed")&&(p=c.offsetLeft,y=c.offsetTop)}return{width:l,height:s,x:p,y}}function yn(e,o){let a=he(e,!0,o==="fixed"),n=a.top+e.clientTop,c=a.left+e.clientLeft,l=ct(e)?ae(e):xt(1),s=e.clientWidth*l.x,p=e.clientHeight*l.y,y=c*l.x,m=n*l.y;return{width:s,height:p,x:y,y:m}}function na(e,o,a){let n;if(o==="viewport")n=fn(e,a);else if(o==="document")n=pn(Ct(e));else if(yt(o))n=yn(o,a);else{let c=sa(e);n={...o,x:o.x-c.x,y:o.y-c.y}}return zt(n)}function pa(e,o){let a=Tt(e);return a===o||!yt(a)||ue(a)?!1:et(a).position==="fixed"||pa(a,o)}function un(e,o){let a=o.get(e);if(a)return a;let n=$e(e,[],!1).filter(p=>yt(p)&&St(p)!=="body"),c=null,l=et(e).position==="fixed",s=l?Tt(e):e;for(;yt(s)&&!ue(s);){let p=et(s),y=Be(s);!y&&p.position==="fixed"&&(c=null),(l?!y&&!c:!y&&p.position==="static"&&!!c&&["absolute","fixed"].includes(c.position)||re(s)&&!y&&pa(e,s))?n=n.filter(C=>C!==s):c=p,s=Tt(s)}return o.set(e,n),n}function gn(e){let{element:o,boundary:a,rootBoundary:n,strategy:c}=e,s=[...a==="clippingAncestors"?un(o,this._c):[].concat(a),n],p=s[0],y=s.reduce((m,C)=>{let x=na(o,C,c);return m.top=At(x.top,m.top),m.right=fe(x.right,m.right),m.bottom=fe(x.bottom,m.bottom),m.left=At(x.left,m.left),m},na(o,p,c));return{width:y.right-y.left,height:y.bottom-y.top,x:y.left,y:y.top}}function hn(e){return ca(e)}function mn(e,o,a){let n=ct(o),c=Ct(o),l=a==="fixed",s=he(e,!0,l,o),p={scrollLeft:0,scrollTop:0},y=xt(0);if(n||!n&&!l)if((St(o)!=="body"||re(c))&&(p=ge(o)),n){let m=he(o,!0,l,o);y.x=m.x+o.clientLeft,y.y=m.y+o.clientTop}else c&&(y.x=da(c));return{x:s.left+p.scrollLeft-y.x,y:s.top+p.scrollTop-y.y,width:s.width,height:s.height}}function ia(e,o){return!ct(e)||et(e).position==="fixed"?null:o?o(e):e.offsetParent}function fa(e,o){let a=Q(e);if(!ct(e))return a;let n=ia(e,o);for(;n&&oa(n)&&et(n).position==="static";)n=ia(n,o);return n&&(St(n)==="html"||St(n)==="body"&&et(n).position==="static"&&!Be(n))?a:n||ra(e)||a}var bn=async function(e){let{reference:o,floating:a,strategy:n}=e,c=this.getOffsetParent||fa,l=this.getDimensions;return{reference:mn(o,await c(a),n),floating:{x:0,y:0,...await l(a)}}};function xn(e){return et(e).direction==="rtl"}var Pe={convertOffsetParentRelativeRectToViewportRelativeRect:sn,getDocumentElement:Ct,getClippingRect:gn,getOffsetParent:fa,getElementRects:bn,getClientRects:dn,getDimensions:hn,getScale:ae,isElement:yt,isRTL:xn};var ya=(e,o,a)=>{let n=new Map,c={platform:Pe,...a},l={...c.platform,_c:n};return Jr(e,o,{...c,platform:l})};function ua(e){return Sn(e)}function io(e){return e.assignedSlot?e.assignedSlot:e.parentNode instanceof ShadowRoot?e.parentNode.host:e.parentNode}function Sn(e){for(let o=e;o;o=io(o))if(o instanceof Element&&getComputedStyle(o).display==="none")return null;for(let o=io(e);o;o=io(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 ga(e,o,a){return ya(e,o,{platform:{...Pe,getOffsetParent:n=>Pe.getOffsetParent(n,ua)},middleware:[no({crossAxis:!0}),ao({allowedPlacements:[a]})]})}var J=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);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 me.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 me.Debouncer,this.revealDebouncer=new me.Debouncer}get validPosition(){return this.validPositions.has(this.position)?this.position:"bottom"}render(){return ha.html`
|
|
523
523
|
<div part="container"
|
|
524
524
|
class="ft-tooltip--container ${this.inline?"ft-tooltip--inline":""}"
|
|
525
525
|
@mouseenter=${this.onHover}
|
|
@@ -549,7 +549,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
549
549
|
<div></div>
|
|
550
550
|
<div></div>
|
|
551
551
|
</div>
|
|
552
|
-
`}};_t.styles=ur;(0,Ea.customElement)("ft-loader")(_t);var Bt=b(_()),co=b(Ne()),
|
|
552
|
+
`}};_t.styles=ur;(0,Ea.customElement)("ft-loader")(_t);var Bt=b(_()),co=b(Ne()),U=b(dt()),M=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);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},$=class extends(0,It.toFtFormComponent)(It.FtLitElement,"button"){get buttonClasses(){return{}}get typographyVariant(){return""}constructor(){super(),this.href=void 0,this.target=void 0,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 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,n;let c=Bt.html`
|
|
553
553
|
<ft-ripple part="ripple" ?disabled=${this.isDisabled()}></ft-ripple>
|
|
554
554
|
<ft-typography part="label"
|
|
555
555
|
variant=${this.typographyVariant}
|
|
@@ -586,7 +586,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
586
586
|
<ft-icon part="icon" .variant="${this.iconVariant}" .value="${this.icon}"></ft-icon>
|
|
587
587
|
`:Bt.html`
|
|
588
588
|
<slot part="icon" name="icon"></slot>
|
|
589
|
-
`}focus(){var o;(o=this.button)===null||o===void 0||o.focus()}click(){var o;(o=this.button)===null||o===void 0||o.click()}getLabel(){return this.label||this.textContent}get textContent(){return(0,It.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};$.elementDefinitions={"ft-ripple":A,"ft-tooltip":B,"ft-typography":Y,"ft-icon":at,"ft-loader":_t};
|
|
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)}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,It.unslotText)(this.slottedContent).trim()}hasTextContent(){return this.textContent.length>0}onSlotchange(){this.requestUpdate()}isDisabled(){return this.disabled||this.loading}};$.elementDefinitions={"ft-ripple":A,"ft-tooltip":B,"ft-typography":Y,"ft-icon":at,"ft-loader":_t};M([(0,U.property)()],$.prototype,"href",void 0);M([(0,U.property)()],$.prototype,"target",void 0);M([(0,U.property)({type:String,reflect:!0})],$.prototype,"role",void 0);M([(0,U.property)()],$.prototype,"type",void 0);M([(0,U.property)({type:Boolean})],$.prototype,"disabled",void 0);M([(0,U.property)()],$.prototype,"label",void 0);M([(0,U.property)()],$.prototype,"icon",void 0);M([(0,U.property)()],$.prototype,"iconVariant",void 0);M([(0,U.property)({type:Boolean})],$.prototype,"trailingIcon",void 0);M([(0,U.property)({type:Boolean})],$.prototype,"loading",void 0);M([(0,U.property)({attribute:"aria-label"})],$.prototype,"ariaLabel",void 0);M([(0,U.property)()],$.prototype,"tooltipPosition",void 0);M([(0,U.property)({type:Boolean})],$.prototype,"hideTooltip",void 0);M([(0,U.property)({type:Boolean})],$.prototype,"forceTooltip",void 0);M([(0,U.query)(".ft-button")],$.prototype,"button",void 0);M([(0,U.query)(".ft-button--label slot")],$.prototype,"slottedContent",void 0);M([(0,U.query)("[part=tooltip]")],$.prototype,"tooltip",void 0);var ze=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);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},lt=class extends ${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"}};lt.styles=[wa.safariEllipsisFix,Sr];ze([(0,xe.property)({type:Boolean})],lt.prototype,"primary",void 0);ze([(0,xe.property)({type:Boolean})],lt.prototype,"outlined",void 0);ze([(0,xe.property)({type:Boolean})],lt.prototype,"dense",void 0);ze([(0,xe.property)({type:Boolean})],lt.prototype,"round",void 0);var Se=b(dt());var He=b(w());var La=b(_()),f=b(w());var Ra=[La.css`
|
|
590
590
|
:host {
|
|
591
591
|
display: inline-block;
|
|
592
592
|
max-width: 100%;
|
|
@@ -1279,7 +1279,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1279
1279
|
<slot></slot>
|
|
1280
1280
|
</ft-typography>
|
|
1281
1281
|
</label>
|
|
1282
|
-
`}onChange(o){o.stopPropagation(),this.checked=o.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(o){var a;super.contentAvailableCallback(o),(a=this.ripple)===null||a===void 0||a.setupFor(this.container)}click(){this.input.click()}};X.elementDefinitions={"ft-ripple":A,"ft-typography":Y};X.styles=Ia;Dt([(0,Nt.property)()],X.prototype,"name",void 0);Dt([(0,Nt.property)({type:Boolean,reflect:!0})],X.prototype,"checked",void 0);Dt([(0,Nt.property)({type:Boolean})],X.prototype,"indeterminate",void 0);Dt([(0,Nt.property)({type:Boolean})],X.prototype,"disabled",void 0);Dt([(0,Nt.query)(".ft-checkbox")],X.prototype,"container",void 0);Dt([(0,Nt.query)("ft-ripple")],X.prototype,"ripple",void 0);Dt([(0,Nt.query)("input")],X.prototype,"input",void 0);(0,za.customElement)("ft-checkbox")(X);var so=b(Ha()),
|
|
1282
|
+
`}onChange(o){o.stopPropagation(),this.checked=o.target.checked,this.indeterminate=!1,this.dispatchEvent(new CustomEvent("change",{detail:this.checked}))}contentAvailableCallback(o){var a;super.contentAvailableCallback(o),(a=this.ripple)===null||a===void 0||a.setupFor(this.container)}click(){this.input.click()}};X.elementDefinitions={"ft-ripple":A,"ft-typography":Y};X.styles=Ia;Dt([(0,Nt.property)()],X.prototype,"name",void 0);Dt([(0,Nt.property)({type:Boolean,reflect:!0})],X.prototype,"checked",void 0);Dt([(0,Nt.property)({type:Boolean})],X.prototype,"indeterminate",void 0);Dt([(0,Nt.property)({type:Boolean})],X.prototype,"disabled",void 0);Dt([(0,Nt.query)(".ft-checkbox")],X.prototype,"container",void 0);Dt([(0,Nt.query)("ft-ripple")],X.prototype,"ripple",void 0);Dt([(0,Nt.query)("input")],X.prototype,"input",void 0);(0,za.customElement)("ft-checkbox")(X);var so=b(Ha()),F=b(dt());var tt=function(e,o,a,n){var c=arguments.length,l=c<3?o:n===null?n=Object.getOwnPropertyDescriptor(o,a):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")l=Reflect.decorate(e,o,a,n);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},po=class extends CustomEvent{constructor(o){super("treenode-change",{detail:o,bubbles:!0,composed:!0})}},fo=class extends CustomEvent{constructor(o){super("treenode-expanded-change",{detail:o,bubbles:!0,composed:!0})}},_e=class extends CustomEvent{constructor(){super("treenode-all-node-collapsed",{bubbles:!0,composed:!0})}},yo=class extends CustomEvent{constructor(){super("treenode-clear-all",{bubbles:!0,composed:!0})}},z=class extends Ut.FtLitElement{constructor(){super(...arguments),this.userOpenedNodes=new Set,this.userClosedNodes=new Set,this.currentExpandButtonFocusedIndex=0,this.label="",this.expandLabel="Expand",this.collapseLabel="Collapse",this.expandParametrizedLabel="Expand {0}",this.collapseParametrizedLabel="Collapse {0}",this.expandAllLabel="Expand all",this.collapseAllLabel="Collapse all",this.clearLabel="Clear"}update(o){super.update(o),this.data&&this.isTreeSelectorCollapsed==null&&(this.isTreeSelectorCollapsed=this.data.rootNodes.every(a=>!this.isNodeExpanded(a)))}render(){var o;return it.html`
|
|
1283
1283
|
<div class="ft-tree-selector">
|
|
1284
1284
|
<div part="header">
|
|
1285
1285
|
<ft-typography variant="overline" part="label">
|
|
@@ -1331,7 +1331,7 @@ Also for action icons.`,r.colorGray200),contentGlobalSubtle:t.extend("--ft-conte
|
|
|
1331
1331
|
@keydown="${n=>this.onKeydown(n,o)}"
|
|
1332
1332
|
@click="${()=>this.userChangeNodeExpandStatus(!a,o.value)}">
|
|
1333
1333
|
</ft-button>
|
|
1334
|
-
`}userChangeNodeExpandStatus(o,a){o?this.userClosedNodes.has(a)?this.userClosedNodes.delete(a):this.userOpenedNodes.add(a):this.userOpenedNodes.has(a)?this.userOpenedNodes.delete(a):this.userClosedNodes.add(a),this.dispatchEvent(new fo({value:a,expanded:o})),this.sendAllNodeCollapseEventIfNeeded(),this.requestUpdate()}sendAllNodeCollapseEventIfNeeded(){this.data.rootNodes.every(o=>!this.isNodeExpanded(o))&&this.dispatchEvent(new _e)}onKeydown(o,a){let n=!1;switch(o.key){case"ArrowDown":this.focusNextButton(o.target),n=!0;break;case"ArrowUp":this.focusPreviousButton(o.target),n=!0;break;case"ArrowRight":this.isNodeExpanded(a)||this.userChangeNodeExpandStatus(!0,a.value),n=!0;break;case"ArrowLeft":this.isNodeExpanded(a)&&this.userChangeNodeExpandStatus(!1,a.value),n=!0;break}n&&(o.stopPropagation(),o.preventDefault())}focusPreviousButton(o){let a=this.currentLevelExpandButtons.indexOf(o);this.currentLevelExpandButtons[a==0?this.currentLevelExpandButtons.length-1:a-1].focus()}focusNextButton(o){let a=[...this.currentLevelExpandButtons],n=a.indexOf(o);a[n==a.length-1?0:n+1].focus()}isNodeExpanded(o){return!this.userClosedNodes.has(o.value)&&(o.expanded||this.userOpenedNodes.has(o.value))}expandAll(){this.userClosedNodes=new Set,this.userOpenedNodes=new Set(this.data.rootNodes.flatMap(o=>this.getAllClosedNodes(o)))}getAllClosedNodes(o){return o.children.length!==0?[...o.expanded?[]:[o.value],...o.children.flatMap(a=>this.getAllClosedNodes(a))]:[]}collapseAll(){this.userOpenedNodes=new Set,this.userClosedNodes=new Set(this.data.rootNodes.filter(o=>o.expanded).map(o=>o.value)),this.dispatchEvent(new _e)}getAriaControlId(o){return o.value.replace(" ","").replace("|","-")+"-children"}};z.elementDefinitions={"ft-checkbox":X,"ft-typography":Y,"ft-button":lt};z.styles=$a;tt([(0,
|
|
1334
|
+
`}userChangeNodeExpandStatus(o,a){o?this.userClosedNodes.has(a)?this.userClosedNodes.delete(a):this.userOpenedNodes.add(a):this.userOpenedNodes.has(a)?this.userOpenedNodes.delete(a):this.userClosedNodes.add(a),this.dispatchEvent(new fo({value:a,expanded:o})),this.sendAllNodeCollapseEventIfNeeded(),this.requestUpdate()}sendAllNodeCollapseEventIfNeeded(){this.data.rootNodes.every(o=>!this.isNodeExpanded(o))&&this.dispatchEvent(new _e)}onKeydown(o,a){let n=!1;switch(o.key){case"ArrowDown":this.focusNextButton(o.target),n=!0;break;case"ArrowUp":this.focusPreviousButton(o.target),n=!0;break;case"ArrowRight":this.isNodeExpanded(a)||this.userChangeNodeExpandStatus(!0,a.value),n=!0;break;case"ArrowLeft":this.isNodeExpanded(a)&&this.userChangeNodeExpandStatus(!1,a.value),n=!0;break}n&&(o.stopPropagation(),o.preventDefault())}focusPreviousButton(o){let a=this.currentLevelExpandButtons.indexOf(o);this.currentLevelExpandButtons[a==0?this.currentLevelExpandButtons.length-1:a-1].focus()}focusNextButton(o){let a=[...this.currentLevelExpandButtons],n=a.indexOf(o);a[n==a.length-1?0:n+1].focus()}isNodeExpanded(o){return!this.userClosedNodes.has(o.value)&&(o.expanded||this.userOpenedNodes.has(o.value))}expandAll(){this.userClosedNodes=new Set,this.userOpenedNodes=new Set(this.data.rootNodes.flatMap(o=>this.getAllClosedNodes(o)))}getAllClosedNodes(o){return o.children.length!==0?[...o.expanded?[]:[o.value],...o.children.flatMap(a=>this.getAllClosedNodes(a))]:[]}collapseAll(){this.userOpenedNodes=new Set,this.userClosedNodes=new Set(this.data.rootNodes.filter(o=>o.expanded).map(o=>o.value)),this.dispatchEvent(new _e)}getAriaControlId(o){return o.value.replace(" ","").replace("|","-")+"-children"}};z.elementDefinitions={"ft-checkbox":X,"ft-typography":Y,"ft-button":lt};z.styles=$a;tt([(0,F.property)()],z.prototype,"data",void 0);tt([(0,F.state)({hasChanged:Ut.hasChanged})],z.prototype,"userOpenedNodes",void 0);tt([(0,F.state)({hasChanged:Ut.hasChanged})],z.prototype,"userClosedNodes",void 0);tt([(0,F.queryAll)("[part='expand']")],z.prototype,"currentLevelExpandButtons",void 0);tt([(0,F.state)()],z.prototype,"currentExpandButtonFocusedIndex",void 0);tt([(0,F.state)()],z.prototype,"isTreeSelectorCollapsed",void 0);tt([(0,F.property)()],z.prototype,"label",void 0);tt([(0,F.property)()],z.prototype,"expandLabel",void 0);tt([(0,F.property)()],z.prototype,"collapseLabel",void 0);tt([(0,F.property)()],z.prototype,"expandParametrizedLabel",void 0);tt([(0,F.property)()],z.prototype,"collapseParametrizedLabel",void 0);tt([(0,F.property)()],z.prototype,"expandAllLabel",void 0);tt([(0,F.property)()],z.prototype,"collapseAllLabel",void 0);tt([(0,F.property)()],z.prototype,"clearLabel",void 0);(0,_a.customElement)("ft-tree-selector")(z);})();
|
|
1335
1335
|
/*! Bundled license information:
|
|
1336
1336
|
|
|
1337
1337
|
lit-html/lit-html.js:
|