@fluid-topics/ft-snap-scroll 0.3.65 → 0.3.67

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.
@@ -104,13 +104,13 @@
104
104
  <div class="ft-ripple--background"></div>
105
105
  <div class="ft-ripple--effect"></div>
106
106
  </div>
107
- `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}v.elementDefinitions={},v.styles=u,g([o.property({type:Boolean})],v.prototype,"primary",void 0),g([o.property({type:Boolean})],v.prototype,"secondary",void 0),g([o.property({type:Boolean})],v.prototype,"unbounded",void 0),g([o.property({type:Boolean})],v.prototype,"activated",void 0),g([o.property({type:Boolean})],v.prototype,"selected",void 0),g([o.property({type:Boolean})],v.prototype,"disabled",void 0),g([o.state()],v.prototype,"hovered",void 0),g([o.state()],v.prototype,"focused",void 0),g([o.state()],v.prototype,"pressed",void 0),g([o.state()],v.prototype,"rippling",void 0),g([o.state()],v.prototype,"rippleSize",void 0),g([o.state()],v.prototype,"originX",void 0),g([o.state()],v.prototype,"originY",void 0),g([o.query(".ft-ripple")],v.prototype,"ripple",void 0),g([o.query(".ft-ripple--effect")],v.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(v);const y=window,b=y.trustedTypes,m=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,$=`lit$${(Math.random()+"").slice(9)}$`,w="?"+$,k=`<${w}>`,z=document,S=(t="")=>z.createComment(t),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,E=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,_=/"/g,B=/^(?:script|style|textarea|title)$/i,F=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),A=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),R=new WeakMap,U=z.createTreeWalker(z,129,null,!1),W=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=C;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,a=r.exec(e),null!==a);)p=r.lastIndex,r===C?"!--"===a[1]?r=N:void 0!==a[1]?r=E:void 0!==a[2]?(B.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=I):void 0!==a[3]&&(r=I):r===I?">"===a[0]?(r=null!=s?s:C,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?I:'"'===a[3]?_:T):r===_||r===T?r=I:r===N||r===E?r=C:(r=I,s=void 0);const f=r===I&&t[i+1].startsWith("/>")?" ":"";n+=r===C?e+k:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+$+f):e+$+(-2===h?(o.push(void 0),i):f)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(l):l,o]};class Z{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=W(t,i);if(this.el=Z.createElement(a,e),U.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=U.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith($)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split($),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?G:"?"===i[1]?q:"@"===i[1]?V:K})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(B.test(o.tagName)){const t=o.textContent.split($),i=t.length-1;if(i>0){o.textContent=b?b.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],S()),U.nextNode(),l.push({type:2,index:++s});o.append(t[i],S())}}}else if(8===o.nodeType)if(o.data===w)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf($,t+1));)l.push({type:7,index:s}),t+=$.length-1}s++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function D(t,i,e=t,o){var s,n,r,l;if(i===A)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=O(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=D(t,a._$AS(t,i.values),a,o)),i}class H{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);U.currentNode=s;let n=U.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new L(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new X(n,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=U.nextNode(),r++)}return s}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class L{constructor(t,i,e,o){var s;this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=D(this,t,i),O(t)?t===M||null==t||""===t?(this._$AH!==M&&this._$AR(),this._$AH=M):t!==this._$AH&&t!==A&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>j(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==M&&O(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Z.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.p(e);else{const t=new H(s,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=R.get(t.strings);return void 0===i&&R.set(t.strings,i=new Z(t)),i}k(t){j(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new L(this.O(S()),this.O(S()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class K{constructor(t,i,e,o,s){this.type=1,this._$AH=M,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=M}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=D(this,t,i,0),n=!O(t)||t!==this._$AH&&t!==A,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=D(this,o[e+r],i,r),l===A&&(l=this._$AH[r]),n||(n=!O(l)||l!==this._$AH[r]),l===M?t=M:t!==M&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends K{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===M?void 0:t}}const P=b?b.emptyScript:"";class q extends K{constructor(){super(...arguments),this.type=4}j(t){t&&t!==M?this.element.setAttribute(this.name,P):this.element.removeAttribute(this.name)}}class V extends K{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=D(this,t,i,0))&&void 0!==e?e:M)===A)return;const o=this._$AH,s=t===M&&o!==M||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==M&&(o===M||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}}const Y=y.litHtmlPolyfillSupport;null==Y||Y(Z,L),(null!==(x=y.litHtmlVersions)&&void 0!==x?x:y.litHtmlVersions=[]).push("2.4.0");
107
+ `}contentAvailableCallback(t){super.contentAvailableCallback(t),this.ripple&&this.resizeObserver.observe(this.ripple),this.rippleEffect&&this.rippleEffect.ontransitionstart!==this.onTransitionStart&&(this.rippleEffect.ontransitionstart=this.onTransitionStart,this.rippleEffect.ontransitionend=this.onTransitionEnd)}updated(t){var i,e;super.updated(t),t.has("disabled")&&(this.disabled?(this.endRipple(),null===(i=this.target)||void 0===i||i.removeAttribute("data-is-ft-ripple-target")):null===(e=this.target)||void 0===e||e.setAttribute("data-is-ft-ripple-target","true")),t.has("unbounded")&&this.setRippleSize()}endRipple(){this.endHover(),this.endFocus(),this.endPress(),this.rippling=!1}setRippleSize(){if(this.ripple){const t=this.ripple.getBoundingClientRect();this.rippleSize=(this.unbounded?1:1.7)*Math.max(t.width,t.height)}}connectedCallback(){super.connectedCallback(),this.setupDebouncer.run((()=>{var t;const i=null===(t=this.shadowRoot)||void 0===t?void 0:t.host.parentElement;i&&this.setupFor(i),this.setRippleSize()}))}setupFor(t){if(this.target===t)return;this.onDisconnect&&this.onDisconnect(),this.target=t,t.setAttribute("data-is-ft-ripple-target","true");const i=(...t)=>i=>{t.forEach((t=>window.addEventListener(t,this.endPress,{once:!0}))),this.startPress(i)},e=i("mouseup","contextmenu"),o=i("touchend","touchcancel"),s=t=>{["Enter"," "].includes(t.key)&&i("keyup")(t)};t.addEventListener("mouseover",this.startHover),t.addEventListener("mousemove",this.moveRipple),t.addEventListener("mouseleave",this.endHover),t.addEventListener("mousedown",e),t.addEventListener("touchstart",o),t.addEventListener("touchmove",this.moveRipple),t.addEventListener("keydown",s),t.addEventListener("focus",this.startFocus),t.addEventListener("blur",this.endFocus),t.addEventListener("focusin",this.startFocus),t.addEventListener("focusout",this.endFocus),this.onDisconnect=()=>{t.removeAttribute("data-is-ft-ripple-target"),t.removeEventListener("mouseover",this.startHover),t.removeEventListener("mousemove",this.moveRipple),t.removeEventListener("mouseleave",this.endHover),t.removeEventListener("mousedown",e),t.removeEventListener("touchstart",o),t.removeEventListener("touchmove",this.moveRipple),t.removeEventListener("keydown",s),t.removeEventListener("focus",this.startFocus),t.removeEventListener("blur",this.endFocus),t.removeEventListener("focusin",this.startFocus),t.removeEventListener("focusout",this.endFocus),this.onDisconnect=void 0,this.target=void 0}}getCoordinates(t){const i=t,e=t;let o,s;return null!=i.x?({x:o,y:s}=i):null!=e.touches&&(o=e.touches[0].clientX,s=e.touches[0].clientY),{x:o,y:s}}isIgnored(t){if(this.disabled)return!0;if(null!=t)for(let i of t.composedPath()){if(i===this.target)break;if("hasAttribute"in i&&i.hasAttribute("data-is-ft-ripple-target"))return!0}return!1}disconnectedCallback(){super.disconnectedCallback(),this.onDisconnect&&this.onDisconnect(),this.resizeObserver.disconnect(),this.endRipple()}}v.elementDefinitions={},v.styles=u,g([o.property({type:Boolean})],v.prototype,"primary",void 0),g([o.property({type:Boolean})],v.prototype,"secondary",void 0),g([o.property({type:Boolean})],v.prototype,"unbounded",void 0),g([o.property({type:Boolean})],v.prototype,"activated",void 0),g([o.property({type:Boolean})],v.prototype,"selected",void 0),g([o.property({type:Boolean})],v.prototype,"disabled",void 0),g([o.state()],v.prototype,"hovered",void 0),g([o.state()],v.prototype,"focused",void 0),g([o.state()],v.prototype,"pressed",void 0),g([o.state()],v.prototype,"rippling",void 0),g([o.state()],v.prototype,"rippleSize",void 0),g([o.state()],v.prototype,"originX",void 0),g([o.state()],v.prototype,"originY",void 0),g([o.query(".ft-ripple")],v.prototype,"ripple",void 0),g([o.query(".ft-ripple--effect")],v.prototype,"rippleEffect",void 0),i.customElement("ft-ripple")(v);const y=window,b=y.trustedTypes,m=b?b.createPolicy("lit-html",{createHTML:t=>t}):void 0,$=`lit$${(Math.random()+"").slice(9)}$`,w="?"+$,k=`<${w}>`,z=document,S=(t="")=>z.createComment(t),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,j=Array.isArray,C=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,N=/-->/g,E=/>/g,I=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),T=/'/g,_=/"/g,B=/^(?:script|style|textarea|title)$/i,F=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),A=Symbol.for("lit-noChange"),M=Symbol.for("lit-nothing"),R=new WeakMap,U=z.createTreeWalker(z,129,null,!1),Z=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=C;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,p=0;for(;p<e.length&&(r.lastIndex=p,a=r.exec(e),null!==a);)p=r.lastIndex,r===C?"!--"===a[1]?r=N:void 0!==a[1]?r=E:void 0!==a[2]?(B.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=I):void 0!==a[3]&&(r=I):r===I?">"===a[0]?(r=null!=s?s:C,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?I:'"'===a[3]?_:T):r===_||r===T?r=I:r===N||r===E?r=C:(r=I,s=void 0);const f=r===I&&t[i+1].startsWith("/>")?" ":"";n+=r===C?e+k:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+$+f):e+$+(-2===h?(o.push(void 0),i):f)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==m?m.createHTML(l):l,o]};class W{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=Z(t,i);if(this.el=W.createElement(a,e),U.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=U.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith($)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split($),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?G:"?"===i[1]?q:"@"===i[1]?V:K})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(B.test(o.tagName)){const t=o.textContent.split($),i=t.length-1;if(i>0){o.textContent=b?b.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],S()),U.nextNode(),l.push({type:2,index:++s});o.append(t[i],S())}}}else if(8===o.nodeType)if(o.data===w)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf($,t+1));)l.push({type:7,index:s}),t+=$.length-1}s++}}static createElement(t,i){const e=z.createElement("template");return e.innerHTML=t,e}}function D(t,i,e=t,o){var s,n,r,l;if(i===A)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=O(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=D(t,a._$AS(t,i.values),a,o)),i}class H{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:z).importNode(e,!0);U.currentNode=s;let n=U.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new L(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new X(n,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=U.nextNode(),r++)}return s}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class L{constructor(t,i,e,o){var s;this.type=2,this._$AH=M,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=D(this,t,i),O(t)?t===M||null==t||""===t?(this._$AH!==M&&this._$AR(),this._$AH=M):t!==this._$AH&&t!==A&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>j(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==M&&O(this._$AH)?this._$AA.nextSibling.data=t:this.T(z.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=W.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.p(e);else{const t=new H(s,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=R.get(t.strings);return void 0===i&&R.set(t.strings,i=new W(t)),i}k(t){j(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new L(this.O(S()),this.O(S()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class K{constructor(t,i,e,o,s){this.type=1,this._$AH=M,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=M}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=D(this,t,i,0),n=!O(t)||t!==this._$AH&&t!==A,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=D(this,o[e+r],i,r),l===A&&(l=this._$AH[r]),n||(n=!O(l)||l!==this._$AH[r]),l===M?t=M:t!==M&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===M?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class G extends K{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===M?void 0:t}}const P=b?b.emptyScript:"";class q extends K{constructor(){super(...arguments),this.type=4}j(t){t&&t!==M?this.element.setAttribute(this.name,P):this.element.removeAttribute(this.name)}}class V extends K{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=D(this,t,i,0))&&void 0!==e?e:M)===A)return;const o=this._$AH,s=t===M&&o!==M||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==M&&(o===M||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class X{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}}const Y=y.litHtmlPolyfillSupport;null==Y||Y(W,L),(null!==(x=y.litHtmlVersions)&&void 0!==x?x:y.litHtmlVersions=[]).push("2.4.0");
108
108
  /**
109
109
  * @license
110
110
  * Copyright 2020 Google LLC
111
111
  * SPDX-License-Identifier: BSD-3-Clause
112
112
  */
113
- const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t._$litStatic$},tt=t=>({_$litStatic$:t,r:J}),it=new Map,et=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,p=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=Q(n));)a+=s+i[++h],p=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=it.get(t))&&(r.raw=r,it.set(t,i=r)),e=l}return t(i,...e)})(F);var ot;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ot||(ot={}));const st=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),rt={fontFamily:nt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",st),at=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",rt.fontSize,"20px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",rt.fontWeight,"normal"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",rt.letterSpacing,"0.15px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",rt.lineHeight,"1.2"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",rt.textTransform,"inherit"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",st),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",rt.fontSize,"14px"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",rt.fontWeight,"normal"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",rt.letterSpacing,"0.105px"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",rt.lineHeight,"1.7"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",rt.textTransform,"inherit"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",nt),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",rt.fontSize,"16px"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",rt.fontWeight,"600"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",rt.letterSpacing,"0.144px"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",rt.lineHeight,"1.5"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",rt.textTransform,"inherit"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",nt),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",rt.fontSize,"14px"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",rt.fontWeight,"normal"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",rt.letterSpacing,"0.098px"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",rt.lineHeight,"1.7"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",rt.textTransform,"inherit"),It=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",nt),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",rt.fontSize,"16px"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",rt.fontWeight,"normal"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",rt.letterSpacing,"0.496px"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",rt.lineHeight,"1.5"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",rt.textTransform,"inherit"),Mt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",nt),Rt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",rt.fontSize,"14px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",rt.fontWeight,"normal"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",rt.letterSpacing,"0.252px"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",rt.lineHeight,"1.4"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",rt.textTransform,"inherit"),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",nt),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",rt.fontSize,"12px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",rt.fontWeight,"normal"),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",rt.letterSpacing,"0.396px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",rt.lineHeight,"1.33"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",rt.textTransform,"inherit"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",nt),Xt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",rt.fontSize,"10px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",rt.fontWeight,"normal"),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",rt.letterSpacing,"0.33px"),Qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",rt.lineHeight,"1.6"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",rt.textTransform,"inherit"),ii=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",nt),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",rt.fontSize,"10px"),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",rt.fontWeight,"normal"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",rt.letterSpacing,"1.5px"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",rt.lineHeight,"1.6"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",rt.textTransform,"uppercase"),li={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",nt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",rt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",rt.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",rt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",rt.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",rt.textTransform,"uppercase")},ai=e.css`
113
+ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t._$litStatic$},tt=t=>({_$litStatic$:t,r:J}),it=new Map,et=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,p=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=Q(n));)a+=s+i[++h],p=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),p){const t=r.join("$$lit$$");void 0===(i=it.get(t))&&(r.raw=r,it.set(t,i=r)),e=l}return t(i,...e)})(F);var ot;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(ot||(ot={}));const st=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.titleFont),nt=i.FtCssVariableFactory.extend("--ft-typography-font-family",i.designSystemVariables.contentFont),rt={fontFamily:nt,fontSize:i.FtCssVariableFactory.create("--ft-typography-font-size","SIZE","16px"),fontWeight:i.FtCssVariableFactory.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:i.FtCssVariableFactory.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:i.FtCssVariableFactory.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:i.FtCssVariableFactory.create("--ft-typography-text-transform","UNKNOWN","inherit")},lt=i.FtCssVariableFactory.extend("--ft-typography-title-font-family",st),at=i.FtCssVariableFactory.extend("--ft-typography-title-font-size",rt.fontSize,"20px"),ht=i.FtCssVariableFactory.extend("--ft-typography-title-font-weight",rt.fontWeight,"normal"),pt=i.FtCssVariableFactory.extend("--ft-typography-title-letter-spacing",rt.letterSpacing,"0.15px"),ft=i.FtCssVariableFactory.extend("--ft-typography-title-line-height",rt.lineHeight,"1.2"),ct=i.FtCssVariableFactory.extend("--ft-typography-title-text-transform",rt.textTransform,"inherit"),dt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-family",st),ut=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-size",rt.fontSize,"14px"),xt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-font-weight",rt.fontWeight,"normal"),gt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-letter-spacing",rt.letterSpacing,"0.105px"),vt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-line-height",rt.lineHeight,"1.7"),yt=i.FtCssVariableFactory.extend("--ft-typography-title-dense-text-transform",rt.textTransform,"inherit"),bt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-family",nt),mt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-size",rt.fontSize,"16px"),$t=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-font-weight",rt.fontWeight,"600"),wt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-letter-spacing",rt.letterSpacing,"0.144px"),kt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-line-height",rt.lineHeight,"1.5"),zt=i.FtCssVariableFactory.extend("--ft-typography-subtitle1-text-transform",rt.textTransform,"inherit"),St=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-family",nt),Ot=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-size",rt.fontSize,"14px"),jt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-font-weight",rt.fontWeight,"normal"),Ct=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-letter-spacing",rt.letterSpacing,"0.098px"),Nt=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-line-height",rt.lineHeight,"1.7"),Et=i.FtCssVariableFactory.extend("--ft-typography-subtitle2-text-transform",rt.textTransform,"inherit"),It=i.FtCssVariableFactory.extend("--ft-typography-body1-font-family",nt),Tt=i.FtCssVariableFactory.extend("--ft-typography-body1-font-size",rt.fontSize,"16px"),_t=i.FtCssVariableFactory.extend("--ft-typography-body1-font-weight",rt.fontWeight,"normal"),Bt=i.FtCssVariableFactory.extend("--ft-typography-body1-letter-spacing",rt.letterSpacing,"0.496px"),Ft=i.FtCssVariableFactory.extend("--ft-typography-body1-line-height",rt.lineHeight,"1.5"),At=i.FtCssVariableFactory.extend("--ft-typography-body1-text-transform",rt.textTransform,"inherit"),Mt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-family",nt),Rt=i.FtCssVariableFactory.extend("--ft-typography-body2-font-size",rt.fontSize,"14px"),Ut=i.FtCssVariableFactory.extend("--ft-typography-body2-font-weight",rt.fontWeight,"normal"),Zt=i.FtCssVariableFactory.extend("--ft-typography-body2-letter-spacing",rt.letterSpacing,"0.252px"),Wt=i.FtCssVariableFactory.extend("--ft-typography-body2-line-height",rt.lineHeight,"1.4"),Dt=i.FtCssVariableFactory.extend("--ft-typography-body2-text-transform",rt.textTransform,"inherit"),Ht=i.FtCssVariableFactory.extend("--ft-typography-caption-font-family",nt),Lt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-size",rt.fontSize,"12px"),Kt=i.FtCssVariableFactory.extend("--ft-typography-caption-font-weight",rt.fontWeight,"normal"),Gt=i.FtCssVariableFactory.extend("--ft-typography-caption-letter-spacing",rt.letterSpacing,"0.396px"),Pt=i.FtCssVariableFactory.extend("--ft-typography-caption-line-height",rt.lineHeight,"1.33"),qt=i.FtCssVariableFactory.extend("--ft-typography-caption-text-transform",rt.textTransform,"inherit"),Vt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-family",nt),Xt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-size",rt.fontSize,"10px"),Yt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-font-weight",rt.fontWeight,"normal"),Jt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-letter-spacing",rt.letterSpacing,"0.33px"),Qt=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-line-height",rt.lineHeight,"1.6"),ti=i.FtCssVariableFactory.extend("--ft-typography-breadcrumb-text-transform",rt.textTransform,"inherit"),ii=i.FtCssVariableFactory.extend("--ft-typography-overline-font-family",nt),ei=i.FtCssVariableFactory.extend("--ft-typography-overline-font-size",rt.fontSize,"10px"),oi=i.FtCssVariableFactory.extend("--ft-typography-overline-font-weight",rt.fontWeight,"normal"),si=i.FtCssVariableFactory.extend("--ft-typography-overline-letter-spacing",rt.letterSpacing,"1.5px"),ni=i.FtCssVariableFactory.extend("--ft-typography-overline-line-height",rt.lineHeight,"1.6"),ri=i.FtCssVariableFactory.extend("--ft-typography-overline-text-transform",rt.textTransform,"uppercase"),li={fontFamily:i.FtCssVariableFactory.extend("--ft-typography-button-font-family",nt),fontSize:i.FtCssVariableFactory.extend("--ft-typography-button-font-size",rt.fontSize,"14px"),fontWeight:i.FtCssVariableFactory.extend("--ft-typography-button-font-weight",rt.fontWeight,"600"),letterSpacing:i.FtCssVariableFactory.extend("--ft-typography-button-letter-spacing",rt.letterSpacing,"1.246px"),lineHeight:i.FtCssVariableFactory.extend("--ft-typography-button-line-height",rt.lineHeight,"1.15"),textTransform:i.FtCssVariableFactory.extend("--ft-typography-button-text-transform",rt.textTransform,"uppercase")},ai=e.css`
114
114
  .ft-typography--title {
115
115
  font-family: ${lt};
116
116
  font-size: ${at};
@@ -161,8 +161,8 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
161
161
  font-family: ${Mt};
162
162
  font-size: ${Rt};
163
163
  font-weight: ${Ut};
164
- letter-spacing: ${Wt};
165
- line-height: ${Zt};
164
+ letter-spacing: ${Zt};
165
+ line-height: ${Wt};
166
166
  text-transform: ${Dt};
167
167
  }
168
168
  `,ui=e.css`
@@ -390,7 +390,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
390
390
  ${n.unsafeHTML(this.resolvedIcon)}
391
391
  <slot ?hidden=${o}></slot>
392
392
  </i>
393
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Mi.file_format:this.resolvedIcon=null!==(t=Bi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Mi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=_i[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ui.elementDefinitions={},Ui.styles=Ai,Ri([o.property()],Ui.prototype,"variant",void 0),Ri([o.property()],Ui.prototype,"value",void 0),Ri([o.state()],Ui.prototype,"resolvedIcon",void 0),Ri([o.query("slot")],Ui.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ui);const Wi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Zi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Wi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",li.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Wi),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Di=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Di,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Di)},Li=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Ki=[i.noTextSelect,e.css`
393
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let o=this.value||this.textContent;switch(this.variant){case Mi.file_format:this.resolvedIcon=null!==(t=Bi[o.replace("-","_").toUpperCase()])&&void 0!==t?t:o;break;case Mi.material:this.resolvedIcon=this.value||e.nothing;break;default:this.resolvedIcon=null!==(i=_i[o.replace("-","_").toUpperCase()])&&void 0!==i?i:o}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}Ui.elementDefinitions={},Ui.styles=Ai,Ri([o.property()],Ui.prototype,"variant",void 0),Ri([o.property()],Ui.prototype,"value",void 0),Ri([o.state()],Ui.prototype,"resolvedIcon",void 0),Ri([o.query("slot")],Ui.prototype,"slottedContent",void 0),i.customElement("ft-icon")(Ui);const Zi=i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorPrimary),Wi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorSurface),borderRadius:i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusL),color:Zi,fontSize:i.FtCssVariableFactory.extend("--ft-button-font-size",li.fontSize),iconSize:i.FtCssVariableFactory.create("--ft-button-icon-size","SIZE","24px"),rippleColor:i.FtCssVariableFactory.extend("--ft-button-ripple-color",Zi),verticalPadding:i.FtCssVariableFactory.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:i.FtCssVariableFactory.create("--ft-button-horizontal-padding","SIZE","8px"),opacityDisabled:i.FtCssVariableFactory.external(i.designSystemVariables.colorOpacityDisabled,"Design system")},Di=i.FtCssVariableFactory.extend("--ft-button-primary-color",i.FtCssVariableFactory.extend("--ft-button-color",i.designSystemVariables.colorOnPrimary)),Hi={backgroundColor:i.FtCssVariableFactory.extend("--ft-button-primary-background-color",i.FtCssVariableFactory.extend("--ft-button-background-color",i.designSystemVariables.colorPrimary)),color:Di,rippleColor:i.FtCssVariableFactory.extend("--ft-button-primary-ripple-color",Di)},Li=i.FtCssVariableFactory.extend("--ft-button-dense-border-radius",i.FtCssVariableFactory.extend("--ft-button-border-radius",i.designSystemVariables.borderRadiusM)),Ki=[i.noTextSelect,e.css`
394
394
  :host {
395
395
  display: inline-block;
396
396
  max-width: 100%;
@@ -401,7 +401,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
401
401
  box-shadow: 0px 0px 0px transparent;
402
402
  border: 0px solid transparent;
403
403
  text-shadow: 0px 0px 0px transparent;
404
- font-size: ${Zi.fontSize};
404
+ font-size: ${Wi.fontSize};
405
405
  }
406
406
 
407
407
  button:hover {
@@ -430,17 +430,17 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
430
430
  border: none;
431
431
  pointer-events: auto;
432
432
 
433
- --ft-button-internal-line-height: calc(${Zi.fontSize} + 2px);
434
- --ft-button-internal-color: ${Zi.color};
435
- ${i.setVariable(Fi.size,Zi.iconSize)};
433
+ --ft-button-internal-line-height: calc(${Wi.fontSize} + 2px);
434
+ --ft-button-internal-color: ${Wi.color};
435
+ ${i.setVariable(Fi.size,Wi.iconSize)};
436
436
  --ft-button-internal-vertical-padding: 6px;
437
437
  --ft-button-internal-horizontal-padding: 8px;
438
- ${i.setVariable(l.color,Zi.rippleColor)};
439
- --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Zi.iconSize});
438
+ ${i.setVariable(l.color,Wi.rippleColor)};
439
+ --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Wi.iconSize});
440
440
 
441
- border-radius: ${Zi.borderRadius};
442
- padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
443
- background-color: ${Zi.backgroundColor};
441
+ border-radius: ${Wi.borderRadius};
442
+ padding: ${Wi.verticalPadding} ${Wi.horizontalPadding};
443
+ background-color: ${Wi.backgroundColor};
444
444
  color: var(--ft-button-internal-color);
445
445
  -webkit-mask-image: radial-gradient(white, black);
446
446
  }
@@ -461,7 +461,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
461
461
 
462
462
  .ft-button[disabled] {
463
463
  filter: grayscale(1);
464
- opacity: ${Zi.opacityDisabled};
464
+ opacity: ${Wi.opacityDisabled};
465
465
  }
466
466
 
467
467
  .ft-button.ft-button--primary {
@@ -472,7 +472,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
472
472
 
473
473
  .ft-button.ft-button--outlined {
474
474
  border: 1px solid var(--ft-button-internal-color);
475
- padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
475
+ padding: calc(${Wi.verticalPadding} - 1px) calc(${Wi.horizontalPadding} - 1px);
476
476
  }
477
477
 
478
478
  .ft-button:focus {
@@ -489,7 +489,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
489
489
  ${i.setVariable(li.fontSize,"1em")};
490
490
  ${i.setVariable(li.lineHeight,"var(--ft-button-internal-content-height)")};
491
491
  }
492
-
492
+
493
493
  .ft-button--label[hidden] {
494
494
  display: none;
495
495
  }
@@ -510,7 +510,7 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
510
510
  }
511
511
 
512
512
  ft-loader {
513
- ${i.setVariable(Ei.size,Zi.iconSize)};
513
+ ${i.setVariable(Ei.size,Wi.iconSize)};
514
514
  ${i.setVariable(Ei.color,"var(--ft-button-internal-color)")};
515
515
  }
516
516
  `];var Gi=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Pi extends i.FtLitElement{constructor(){super(...arguments),this.role="button",this.primary=!1,this.outlined=!1,this.disabled=!1,this.dense=!1,this.round=!1,this.label="",this.icon=void 0,this.iconVariant=Mi.material,this.trailingIcon=!1,this.loading=!1,this.tooltipPosition="bottom",this.hideTooltip=!1,this.forceTooltip=!1,this.onclick=t=>{this.isDisabled()&&(t.preventDefault(),t.stopPropagation(),t.stopImmediatePropagation())}}render(){const t={"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};return this.addTooltipIfNeeded(e.html`
@@ -617,8 +617,8 @@ const J=Symbol.for(""),Q=t=>{if((null==t?void 0:t.r)===J)return null==t?void 0:t
617
617
  z-index: ${qi.buttonsZIndex};
618
618
  opacity: 1;
619
619
  transition: background-color .5s ease-in-out, opacity .5s ease-in-out, z-index .5s ease-in-out;
620
- ${i.setVariable(Zi.backgroundColor,"transparent")};
621
- ${i.setVariable(Zi.color,qi.buttonsColor)};
620
+ ${i.setVariable(Wi.backgroundColor,"transparent")};
621
+ ${i.setVariable(Wi.color,qi.buttonsColor)};
622
622
  }
623
623
 
624
624
  .ft-snap-scroll--previous[hidden],
@@ -56,7 +56,7 @@ const p=window,f=p.ShadowRoot&&(void 0===p.ShadyCSS||p.ShadyCSS.nativeShadow)&&"
56
56
  * Copyright 2017 Google LLC
57
57
  * SPDX-License-Identifier: BSD-3-Clause
58
58
  */
59
- var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.4.1");const z=window,M=z.trustedTypes,F=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,j="?"+U,B=`<${j}>`,T=document,A=(t="")=>T.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,D=/-->/g,I=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,Y=T.createTreeWalker(T,129,null,!1),G=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=P;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,c=0;for(;c<e.length&&(r.lastIndex=c,a=r.exec(e),null!==a);)c=r.lastIndex,r===P?"!--"===a[1]?r=D:void 0!==a[1]?r=I:void 0!==a[2]?(Z.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=W):void 0!==a[3]&&(r=W):r===W?">"===a[0]?(r=null!=s?s:P,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?W:'"'===a[3]?K:H):r===K||r===H?r=W:r===D||r===I?r=P:(r=W,s=void 0);const p=r===W&&t[i+1].startsWith("/>")?" ":"";n+=r===P?e+B:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+U+p):e+U+(-2===h?(o.push(void 0),i):p)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(l):l,o]};class Q{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=G(t,i);if(this.el=Q.createElement(a,e),Y.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Y.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(U)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(U),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?st:"?"===i[1]?rt:"@"===i[1]?lt:ot})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(Z.test(o.tagName)){const t=o.textContent.split(U),i=t.length-1;if(i>0){o.textContent=M?M.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],A()),Y.nextNode(),l.push({type:2,index:++s});o.append(t[i],A())}}}else if(8===o.nodeType)if(o.data===j)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)l.push({type:7,index:s}),t+=U.length-1}s++}}static createElement(t,i){const e=T.createElement("template");return e.innerHTML=t,e}}function tt(t,i,e=t,o){var s,n,r,l;if(i===J)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=L(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=tt(t,a._$AS(t,i.values),a,o)),i}class it{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:T).importNode(e,!0);Y.currentNode=s;let n=Y.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new et(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new at(n,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=Y.nextNode(),r++)}return s}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class et{constructor(t,i,e,o){var s;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=tt(this,t,i),L(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==q&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.p(e);else{const t=new it(s,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=X.get(t.strings);return void 0===i&&X.set(t.strings,i=new Q(t)),i}k(t){_(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new et(this.O(A()),this.O(A()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class ot{constructor(t,i,e,o,s){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=tt(this,t,i,0),n=!L(t)||t!==this._$AH&&t!==J,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=tt(this,o[e+r],i,r),l===J&&(l=this._$AH[r]),n||(n=!L(l)||l!==this._$AH[r]),l===q?t=q:t!==q&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const nt=M?M.emptyScript:"";class rt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,nt):this.element.removeAttribute(this.name)}}class lt extends ot{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=tt(this,t,i,0))&&void 0!==e?e:q)===J)return;const o=this._$AH,s=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==q&&(o===q||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class at{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const ht=z.litHtmlPolyfillSupport;null==ht||ht(Q,et),(null!==(R=z.litHtmlVersions)&&void 0!==R?R:z.litHtmlVersions=[]).push("2.4.0");
59
+ var R;E.finalized=!0,E.elementProperties=new Map,E.elementStyles=[],E.shadowRootOptions={mode:"open"},null==S||S({ReactiveElement:E}),(null!==(m=w.reactiveElementVersions)&&void 0!==m?m:w.reactiveElementVersions=[]).push("1.4.1");const z=window,M=z.trustedTypes,F=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,U=`lit$${(Math.random()+"").slice(9)}$`,j="?"+U,B=`<${j}>`,T=document,A=(t="")=>T.createComment(t),L=t=>null===t||"object"!=typeof t&&"function"!=typeof t,_=Array.isArray,P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,I=/-->/g,D=/>/g,W=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),H=/'/g,K=/"/g,Z=/^(?:script|style|textarea|title)$/i,V=(t=>(i,...e)=>({_$litType$:t,strings:i,values:e}))(1),J=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),X=new WeakMap,Y=T.createTreeWalker(T,129,null,!1),G=(t,i)=>{const e=t.length-1,o=[];let s,n=2===i?"<svg>":"",r=P;for(let i=0;i<e;i++){const e=t[i];let l,a,h=-1,c=0;for(;c<e.length&&(r.lastIndex=c,a=r.exec(e),null!==a);)c=r.lastIndex,r===P?"!--"===a[1]?r=I:void 0!==a[1]?r=D:void 0!==a[2]?(Z.test(a[2])&&(s=RegExp("</"+a[2],"g")),r=W):void 0!==a[3]&&(r=W):r===W?">"===a[0]?(r=null!=s?s:P,h=-1):void 0===a[1]?h=-2:(h=r.lastIndex-a[2].length,l=a[1],r=void 0===a[3]?W:'"'===a[3]?K:H):r===K||r===H?r=W:r===I||r===D?r=P:(r=W,s=void 0);const p=r===W&&t[i+1].startsWith("/>")?" ":"";n+=r===P?e+B:h>=0?(o.push(l),e.slice(0,h)+"$lit$"+e.slice(h)+U+p):e+U+(-2===h?(o.push(void 0),i):p)}const l=n+(t[e]||"<?>")+(2===i?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==F?F.createHTML(l):l,o]};class Q{constructor({strings:t,_$litType$:i},e){let o;this.parts=[];let s=0,n=0;const r=t.length-1,l=this.parts,[a,h]=G(t,i);if(this.el=Q.createElement(a,e),Y.currentNode=this.el.content,2===i){const t=this.el.content,i=t.firstChild;i.remove(),t.append(...i.childNodes)}for(;null!==(o=Y.nextNode())&&l.length<r;){if(1===o.nodeType){if(o.hasAttributes()){const t=[];for(const i of o.getAttributeNames())if(i.endsWith("$lit$")||i.startsWith(U)){const e=h[n++];if(t.push(i),void 0!==e){const t=o.getAttribute(e.toLowerCase()+"$lit$").split(U),i=/([.?@])?(.*)/.exec(e);l.push({type:1,index:s,name:i[2],strings:t,ctor:"."===i[1]?st:"?"===i[1]?rt:"@"===i[1]?lt:ot})}else l.push({type:6,index:s})}for(const i of t)o.removeAttribute(i)}if(Z.test(o.tagName)){const t=o.textContent.split(U),i=t.length-1;if(i>0){o.textContent=M?M.emptyScript:"";for(let e=0;e<i;e++)o.append(t[e],A()),Y.nextNode(),l.push({type:2,index:++s});o.append(t[i],A())}}}else if(8===o.nodeType)if(o.data===j)l.push({type:2,index:s});else{let t=-1;for(;-1!==(t=o.data.indexOf(U,t+1));)l.push({type:7,index:s}),t+=U.length-1}s++}}static createElement(t,i){const e=T.createElement("template");return e.innerHTML=t,e}}function tt(t,i,e=t,o){var s,n,r,l;if(i===J)return i;let a=void 0!==o?null===(s=e._$Co)||void 0===s?void 0:s[o]:e._$Cl;const h=L(i)?void 0:i._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(n=null==a?void 0:a._$AO)||void 0===n||n.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,e,o)),void 0!==o?(null!==(r=(l=e)._$Co)&&void 0!==r?r:l._$Co=[])[o]=a:e._$Cl=a),void 0!==a&&(i=tt(t,a._$AS(t,i.values),a,o)),i}class it{constructor(t,i){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=i}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var i;const{el:{content:e},parts:o}=this._$AD,s=(null!==(i=null==t?void 0:t.creationScope)&&void 0!==i?i:T).importNode(e,!0);Y.currentNode=s;let n=Y.nextNode(),r=0,l=0,a=o[0];for(;void 0!==a;){if(r===a.index){let i;2===a.type?i=new et(n,n.nextSibling,this,t):1===a.type?i=new a.ctor(n,a.name,a.strings,this,t):6===a.type&&(i=new at(n,this,t)),this.u.push(i),a=o[++l]}r!==(null==a?void 0:a.index)&&(n=Y.nextNode(),r++)}return s}p(t){let i=0;for(const e of this.u)void 0!==e&&(void 0!==e.strings?(e._$AI(t,e,i),i+=e.strings.length-2):e._$AI(t[i])),i++}}class et{constructor(t,i,e,o){var s;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=i,this._$AM=e,this.options=o,this._$Cm=null===(s=null==o?void 0:o.isConnected)||void 0===s||s}get _$AU(){var t,i;return null!==(i=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==i?i:this._$Cm}get parentNode(){let t=this._$AA.parentNode;const i=this._$AM;return void 0!==i&&11===t.nodeType&&(t=i.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,i=this){t=tt(this,t,i),L(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==J&&this.g(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>_(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.k(t):this.g(t)}O(t,i=this._$AB){return this._$AA.parentNode.insertBefore(t,i)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==q&&L(this._$AH)?this._$AA.nextSibling.data=t:this.T(T.createTextNode(t)),this._$AH=t}$(t){var i;const{values:e,_$litType$:o}=t,s="number"==typeof o?this._$AC(t):(void 0===o.el&&(o.el=Q.createElement(o.h,this.options)),o);if((null===(i=this._$AH)||void 0===i?void 0:i._$AD)===s)this._$AH.p(e);else{const t=new it(s,this),i=t.v(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let i=X.get(t.strings);return void 0===i&&X.set(t.strings,i=new Q(t)),i}k(t){_(this._$AH)||(this._$AH=[],this._$AR());const i=this._$AH;let e,o=0;for(const s of t)o===i.length?i.push(e=new et(this.O(A()),this.O(A()),this,this.options)):e=i[o],e._$AI(s),o++;o<i.length&&(this._$AR(e&&e._$AB.nextSibling,o),i.length=o)}_$AR(t=this._$AA.nextSibling,i){var e;for(null===(e=this._$AP)||void 0===e||e.call(this,!1,!0,i);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var i;void 0===this._$AM&&(this._$Cm=t,null===(i=this._$AP)||void 0===i||i.call(this,t))}}class ot{constructor(t,i,e,o,s){this.type=1,this._$AH=q,this._$AN=void 0,this.element=t,this.name=i,this._$AM=o,this.options=s,e.length>2||""!==e[0]||""!==e[1]?(this._$AH=Array(e.length-1).fill(new String),this.strings=e):this._$AH=q}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,i=this,e,o){const s=this.strings;let n=!1;if(void 0===s)t=tt(this,t,i,0),n=!L(t)||t!==this._$AH&&t!==J,n&&(this._$AH=t);else{const o=t;let r,l;for(t=s[0],r=0;r<s.length-1;r++)l=tt(this,o[e+r],i,r),l===J&&(l=this._$AH[r]),n||(n=!L(l)||l!==this._$AH[r]),l===q?t=q:t!==q&&(t+=(null!=l?l:"")+s[r+1]),this._$AH[r]=l}n&&!o&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class st extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const nt=M?M.emptyScript:"";class rt extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,nt):this.element.removeAttribute(this.name)}}class lt extends ot{constructor(t,i,e,o,s){super(t,i,e,o,s),this.type=5}_$AI(t,i=this){var e;if((t=null!==(e=tt(this,t,i,0))&&void 0!==e?e:q)===J)return;const o=this._$AH,s=t===q&&o!==q||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==q&&(o===q||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var i,e;"function"==typeof this._$AH?this._$AH.call(null!==(e=null===(i=this.options)||void 0===i?void 0:i.host)&&void 0!==e?e:this.element,t):this._$AH.handleEvent(t)}}class at{constructor(t,i,e){this.element=t,this.type=6,this._$AN=void 0,this._$AM=i,this.options=e}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const ht=z.litHtmlPolyfillSupport;null==ht||ht(Q,et),(null!==(R=z.litHtmlVersions)&&void 0!==R?R:z.litHtmlVersions=[]).push("2.4.0");
60
60
  /**
61
61
  * @license
62
62
  * Copyright 2017 Google LLC
@@ -226,7 +226,7 @@ var ct,pt;class ft extends E{constructor(){super(...arguments),this.renderOption
226
226
  * Copyright 2020 Google LLC
227
227
  * SPDX-License-Identifier: BSD-3-Clause
228
228
  */
229
- const Dt=Symbol.for(""),It=t=>{if((null==t?void 0:t.r)===Dt)return null==t?void 0:t._$litStatic$},Wt=t=>({_$litStatic$:t,r:Dt}),Ht=new Map,Kt=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=It(n));)a+=s+i[++h],c=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=Ht.get(t))&&(r.raw=r,Ht.set(t,i=r)),e=l}return t(i,...e)})(V);var Zt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Zt||(Zt={}));const Vt=ut.extend("--ft-typography-font-family",xt.titleFont),Jt=ut.extend("--ft-typography-font-family",xt.contentFont),qt={fontFamily:Jt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Xt=ut.extend("--ft-typography-title-font-family",Vt),Yt=ut.extend("--ft-typography-title-font-size",qt.fontSize,"20px"),Gt=ut.extend("--ft-typography-title-font-weight",qt.fontWeight,"normal"),Qt=ut.extend("--ft-typography-title-letter-spacing",qt.letterSpacing,"0.15px"),ti=ut.extend("--ft-typography-title-line-height",qt.lineHeight,"1.2"),ii=ut.extend("--ft-typography-title-text-transform",qt.textTransform,"inherit"),ei=ut.extend("--ft-typography-title-dense-font-family",Vt),oi=ut.extend("--ft-typography-title-dense-font-size",qt.fontSize,"14px"),si=ut.extend("--ft-typography-title-dense-font-weight",qt.fontWeight,"normal"),ni=ut.extend("--ft-typography-title-dense-letter-spacing",qt.letterSpacing,"0.105px"),ri=ut.extend("--ft-typography-title-dense-line-height",qt.lineHeight,"1.7"),li=ut.extend("--ft-typography-title-dense-text-transform",qt.textTransform,"inherit"),ai=ut.extend("--ft-typography-subtitle1-font-family",Jt),hi=ut.extend("--ft-typography-subtitle1-font-size",qt.fontSize,"16px"),ci=ut.extend("--ft-typography-subtitle1-font-weight",qt.fontWeight,"600"),pi=ut.extend("--ft-typography-subtitle1-letter-spacing",qt.letterSpacing,"0.144px"),fi=ut.extend("--ft-typography-subtitle1-line-height",qt.lineHeight,"1.5"),di=ut.extend("--ft-typography-subtitle1-text-transform",qt.textTransform,"inherit"),ui=ut.extend("--ft-typography-subtitle2-font-family",Jt),vi=ut.extend("--ft-typography-subtitle2-font-size",qt.fontSize,"14px"),xi=ut.extend("--ft-typography-subtitle2-font-weight",qt.fontWeight,"normal"),yi=ut.extend("--ft-typography-subtitle2-letter-spacing",qt.letterSpacing,"0.098px"),bi=ut.extend("--ft-typography-subtitle2-line-height",qt.lineHeight,"1.7"),gi=ut.extend("--ft-typography-subtitle2-text-transform",qt.textTransform,"inherit"),mi=ut.extend("--ft-typography-body1-font-family",Jt),wi=ut.extend("--ft-typography-body1-font-size",qt.fontSize,"16px"),$i=ut.extend("--ft-typography-body1-font-weight",qt.fontWeight,"normal"),Oi=ut.extend("--ft-typography-body1-letter-spacing",qt.letterSpacing,"0.496px"),Si=ut.extend("--ft-typography-body1-line-height",qt.lineHeight,"1.5"),ki=ut.extend("--ft-typography-body1-text-transform",qt.textTransform,"inherit"),Ni=ut.extend("--ft-typography-body2-font-family",Jt),Ci=ut.extend("--ft-typography-body2-font-size",qt.fontSize,"14px"),Ei=ut.extend("--ft-typography-body2-font-weight",qt.fontWeight,"normal"),Ri=ut.extend("--ft-typography-body2-letter-spacing",qt.letterSpacing,"0.252px"),zi=ut.extend("--ft-typography-body2-line-height",qt.lineHeight,"1.4"),Mi=ut.extend("--ft-typography-body2-text-transform",qt.textTransform,"inherit"),Fi=ut.extend("--ft-typography-caption-font-family",Jt),Ui=ut.extend("--ft-typography-caption-font-size",qt.fontSize,"12px"),ji=ut.extend("--ft-typography-caption-font-weight",qt.fontWeight,"normal"),Bi=ut.extend("--ft-typography-caption-letter-spacing",qt.letterSpacing,"0.396px"),Ti=ut.extend("--ft-typography-caption-line-height",qt.lineHeight,"1.33"),Ai=ut.extend("--ft-typography-caption-text-transform",qt.textTransform,"inherit"),Li=ut.extend("--ft-typography-breadcrumb-font-family",Jt),_i=ut.extend("--ft-typography-breadcrumb-font-size",qt.fontSize,"10px"),Pi=ut.extend("--ft-typography-breadcrumb-font-weight",qt.fontWeight,"normal"),Di=ut.extend("--ft-typography-breadcrumb-letter-spacing",qt.letterSpacing,"0.33px"),Ii=ut.extend("--ft-typography-breadcrumb-line-height",qt.lineHeight,"1.6"),Wi=ut.extend("--ft-typography-breadcrumb-text-transform",qt.textTransform,"inherit"),Hi=ut.extend("--ft-typography-overline-font-family",Jt),Ki=ut.extend("--ft-typography-overline-font-size",qt.fontSize,"10px"),Zi=ut.extend("--ft-typography-overline-font-weight",qt.fontWeight,"normal"),Vi=ut.extend("--ft-typography-overline-letter-spacing",qt.letterSpacing,"1.5px"),Ji=ut.extend("--ft-typography-overline-line-height",qt.lineHeight,"1.6"),qi=ut.extend("--ft-typography-overline-text-transform",qt.textTransform,"uppercase"),Xi={fontFamily:ut.extend("--ft-typography-button-font-family",Jt),fontSize:ut.extend("--ft-typography-button-font-size",qt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",qt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",qt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",qt.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",qt.textTransform,"uppercase")},Yi=y`
229
+ const It=Symbol.for(""),Dt=t=>{if((null==t?void 0:t.r)===It)return null==t?void 0:t._$litStatic$},Wt=t=>({_$litStatic$:t,r:It}),Ht=new Map,Kt=(t=>(i,...e)=>{const o=e.length;let s,n;const r=[],l=[];let a,h=0,c=!1;for(;h<o;){for(a=i[h];h<o&&void 0!==(n=e[h],s=Dt(n));)a+=s+i[++h],c=!0;l.push(n),r.push(a),h++}if(h===o&&r.push(i[o]),c){const t=r.join("$$lit$$");void 0===(i=Ht.get(t))&&(r.raw=r,Ht.set(t,i=r)),e=l}return t(i,...e)})(V);var Zt;!function(t){t.title="title",t.title_dense="title-dense",t.subtitle1="subtitle1",t.subtitle2="subtitle2",t.body1="body1",t.body2="body2",t.caption="caption",t.breadcrumb="breadcrumb",t.overline="overline",t.button="button"}(Zt||(Zt={}));const Vt=ut.extend("--ft-typography-font-family",xt.titleFont),Jt=ut.extend("--ft-typography-font-family",xt.contentFont),qt={fontFamily:Jt,fontSize:ut.create("--ft-typography-font-size","SIZE","16px"),fontWeight:ut.create("--ft-typography-font-weight","UNKNOWN","normal"),letterSpacing:ut.create("--ft-typography-letter-spacing","SIZE","0.496px"),lineHeight:ut.create("--ft-typography-line-height","NUMBER","1.5"),textTransform:ut.create("--ft-typography-text-transform","UNKNOWN","inherit")},Xt=ut.extend("--ft-typography-title-font-family",Vt),Yt=ut.extend("--ft-typography-title-font-size",qt.fontSize,"20px"),Gt=ut.extend("--ft-typography-title-font-weight",qt.fontWeight,"normal"),Qt=ut.extend("--ft-typography-title-letter-spacing",qt.letterSpacing,"0.15px"),ti=ut.extend("--ft-typography-title-line-height",qt.lineHeight,"1.2"),ii=ut.extend("--ft-typography-title-text-transform",qt.textTransform,"inherit"),ei=ut.extend("--ft-typography-title-dense-font-family",Vt),oi=ut.extend("--ft-typography-title-dense-font-size",qt.fontSize,"14px"),si=ut.extend("--ft-typography-title-dense-font-weight",qt.fontWeight,"normal"),ni=ut.extend("--ft-typography-title-dense-letter-spacing",qt.letterSpacing,"0.105px"),ri=ut.extend("--ft-typography-title-dense-line-height",qt.lineHeight,"1.7"),li=ut.extend("--ft-typography-title-dense-text-transform",qt.textTransform,"inherit"),ai=ut.extend("--ft-typography-subtitle1-font-family",Jt),hi=ut.extend("--ft-typography-subtitle1-font-size",qt.fontSize,"16px"),ci=ut.extend("--ft-typography-subtitle1-font-weight",qt.fontWeight,"600"),pi=ut.extend("--ft-typography-subtitle1-letter-spacing",qt.letterSpacing,"0.144px"),fi=ut.extend("--ft-typography-subtitle1-line-height",qt.lineHeight,"1.5"),di=ut.extend("--ft-typography-subtitle1-text-transform",qt.textTransform,"inherit"),ui=ut.extend("--ft-typography-subtitle2-font-family",Jt),vi=ut.extend("--ft-typography-subtitle2-font-size",qt.fontSize,"14px"),xi=ut.extend("--ft-typography-subtitle2-font-weight",qt.fontWeight,"normal"),yi=ut.extend("--ft-typography-subtitle2-letter-spacing",qt.letterSpacing,"0.098px"),bi=ut.extend("--ft-typography-subtitle2-line-height",qt.lineHeight,"1.7"),gi=ut.extend("--ft-typography-subtitle2-text-transform",qt.textTransform,"inherit"),mi=ut.extend("--ft-typography-body1-font-family",Jt),wi=ut.extend("--ft-typography-body1-font-size",qt.fontSize,"16px"),$i=ut.extend("--ft-typography-body1-font-weight",qt.fontWeight,"normal"),Oi=ut.extend("--ft-typography-body1-letter-spacing",qt.letterSpacing,"0.496px"),Si=ut.extend("--ft-typography-body1-line-height",qt.lineHeight,"1.5"),ki=ut.extend("--ft-typography-body1-text-transform",qt.textTransform,"inherit"),Ni=ut.extend("--ft-typography-body2-font-family",Jt),Ci=ut.extend("--ft-typography-body2-font-size",qt.fontSize,"14px"),Ei=ut.extend("--ft-typography-body2-font-weight",qt.fontWeight,"normal"),Ri=ut.extend("--ft-typography-body2-letter-spacing",qt.letterSpacing,"0.252px"),zi=ut.extend("--ft-typography-body2-line-height",qt.lineHeight,"1.4"),Mi=ut.extend("--ft-typography-body2-text-transform",qt.textTransform,"inherit"),Fi=ut.extend("--ft-typography-caption-font-family",Jt),Ui=ut.extend("--ft-typography-caption-font-size",qt.fontSize,"12px"),ji=ut.extend("--ft-typography-caption-font-weight",qt.fontWeight,"normal"),Bi=ut.extend("--ft-typography-caption-letter-spacing",qt.letterSpacing,"0.396px"),Ti=ut.extend("--ft-typography-caption-line-height",qt.lineHeight,"1.33"),Ai=ut.extend("--ft-typography-caption-text-transform",qt.textTransform,"inherit"),Li=ut.extend("--ft-typography-breadcrumb-font-family",Jt),_i=ut.extend("--ft-typography-breadcrumb-font-size",qt.fontSize,"10px"),Pi=ut.extend("--ft-typography-breadcrumb-font-weight",qt.fontWeight,"normal"),Ii=ut.extend("--ft-typography-breadcrumb-letter-spacing",qt.letterSpacing,"0.33px"),Di=ut.extend("--ft-typography-breadcrumb-line-height",qt.lineHeight,"1.6"),Wi=ut.extend("--ft-typography-breadcrumb-text-transform",qt.textTransform,"inherit"),Hi=ut.extend("--ft-typography-overline-font-family",Jt),Ki=ut.extend("--ft-typography-overline-font-size",qt.fontSize,"10px"),Zi=ut.extend("--ft-typography-overline-font-weight",qt.fontWeight,"normal"),Vi=ut.extend("--ft-typography-overline-letter-spacing",qt.letterSpacing,"1.5px"),Ji=ut.extend("--ft-typography-overline-line-height",qt.lineHeight,"1.6"),qi=ut.extend("--ft-typography-overline-text-transform",qt.textTransform,"uppercase"),Xi={fontFamily:ut.extend("--ft-typography-button-font-family",Jt),fontSize:ut.extend("--ft-typography-button-font-size",qt.fontSize,"14px"),fontWeight:ut.extend("--ft-typography-button-font-weight",qt.fontWeight,"600"),letterSpacing:ut.extend("--ft-typography-button-letter-spacing",qt.letterSpacing,"1.246px"),lineHeight:ut.extend("--ft-typography-button-line-height",qt.lineHeight,"1.15"),textTransform:ut.extend("--ft-typography-button-text-transform",qt.textTransform,"uppercase")},Yi=y`
230
230
  .ft-typography--title {
231
231
  font-family: ${Xt};
232
232
  font-size: ${Yt};
@@ -295,8 +295,8 @@ const Dt=Symbol.for(""),It=t=>{if((null==t?void 0:t.r)===Dt)return null==t?void
295
295
  font-family: ${Li};
296
296
  font-size: ${_i};
297
297
  font-weight: ${Pi};
298
- letter-spacing: ${Di};
299
- line-height: ${Ii};
298
+ letter-spacing: ${Ii};
299
+ line-height: ${Di};
300
300
  text-transform: ${Wi};
301
301
  }
302
302
  `,ne=y`
@@ -518,7 +518,7 @@ class $e extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
518
518
  ${Oe(this.resolvedIcon)}
519
519
  <slot ?hidden=${e}></slot>
520
520
  </i>
521
- `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Ee.file_format:this.resolvedIcon=null!==(t=ke[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Ee.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(i=Se[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ze.elementDefinitions={},ze.styles=Ce,Re([o()],ze.prototype,"variant",void 0),Re([o()],ze.prototype,"value",void 0),Re([s()],ze.prototype,"resolvedIcon",void 0),Re([r("slot")],ze.prototype,"slottedContent",void 0),c("ft-icon")(ze);const Me=ut.extend("--ft-button-color",xt.colorPrimary),Fe={backgroundColor:ut.extend("--ft-button-background-color",xt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",xt.borderRadiusL),color:Me,fontSize:ut.extend("--ft-button-font-size",Xi.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Me),opacityDisabled:ut.external(xt.colorOpacityDisabled,"Design system")},Ue=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",xt.colorOnPrimary)),je={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",xt.colorPrimary)),color:Ue,rippleColor:ut.extend("--ft-button-primary-ripple-color",Ue)},Be=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",xt.borderRadiusM)),Te=[gt,y`
521
+ `}get textContent(){var t,i;return null!==(i=null===(t=this.slottedContent)||void 0===t?void 0:t.assignedNodes().map((t=>t.textContent)).join("").trim())&&void 0!==i?i:""}update(t){super.update(t),["value","variant"].some((i=>t.has(i)))&&this.resolveIcon()}resolveIcon(){var t,i;let e=this.value||this.textContent;switch(this.variant){case Ee.file_format:this.resolvedIcon=null!==(t=ke[e.replace("-","_").toUpperCase()])&&void 0!==t?t:e;break;case Ee.material:this.resolvedIcon=this.value||q;break;default:this.resolvedIcon=null!==(i=Se[e.replace("-","_").toUpperCase()])&&void 0!==i?i:e}}firstUpdated(t){super.firstUpdated(t),setTimeout((()=>this.resolveIcon()))}}ze.elementDefinitions={},ze.styles=Ce,Re([o()],ze.prototype,"variant",void 0),Re([o()],ze.prototype,"value",void 0),Re([s()],ze.prototype,"resolvedIcon",void 0),Re([r("slot")],ze.prototype,"slottedContent",void 0),c("ft-icon")(ze);const Me=ut.extend("--ft-button-color",xt.colorPrimary),Fe={backgroundColor:ut.extend("--ft-button-background-color",xt.colorSurface),borderRadius:ut.extend("--ft-button-border-radius",xt.borderRadiusL),color:Me,fontSize:ut.extend("--ft-button-font-size",Xi.fontSize),iconSize:ut.create("--ft-button-icon-size","SIZE","24px"),rippleColor:ut.extend("--ft-button-ripple-color",Me),verticalPadding:ut.create("--ft-button-vertical-padding","SIZE","6px"),horizontalPadding:ut.create("--ft-button-horizontal-padding","SIZE","8px"),opacityDisabled:ut.external(xt.colorOpacityDisabled,"Design system")},Ue=ut.extend("--ft-button-primary-color",ut.extend("--ft-button-color",xt.colorOnPrimary)),je={backgroundColor:ut.extend("--ft-button-primary-background-color",ut.extend("--ft-button-background-color",xt.colorPrimary)),color:Ue,rippleColor:ut.extend("--ft-button-primary-ripple-color",Ue)},Be=ut.extend("--ft-button-dense-border-radius",ut.extend("--ft-button-border-radius",xt.borderRadiusM)),Te=[gt,y`
522
522
  :host {
523
523
  display: inline-block;
524
524
  max-width: 100%;
@@ -567,7 +567,7 @@ class $e extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
567
567
  --ft-button-internal-content-height: max(var(--ft-button-internal-line-height), ${Fe.iconSize});
568
568
 
569
569
  border-radius: ${Fe.borderRadius};
570
- padding: var(--ft-button-internal-vertical-padding) var(--ft-button-internal-horizontal-padding);
570
+ padding: ${Fe.verticalPadding} ${Fe.horizontalPadding};
571
571
  background-color: ${Fe.backgroundColor};
572
572
  color: var(--ft-button-internal-color);
573
573
  -webkit-mask-image: radial-gradient(white, black);
@@ -600,7 +600,7 @@ class $e extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
600
600
 
601
601
  .ft-button.ft-button--outlined {
602
602
  border: 1px solid var(--ft-button-internal-color);
603
- padding: calc(var(--ft-button-internal-vertical-padding) - 1px) calc(var(--ft-button-internal-horizontal-padding) - 1px);
603
+ padding: calc(${Fe.verticalPadding} - 1px) calc(${Fe.horizontalPadding} - 1px);
604
604
  }
605
605
 
606
606
  .ft-button:focus {
@@ -617,7 +617,7 @@ class $e extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
617
617
  ${vt(Xi.fontSize,"1em")};
618
618
  ${vt(Xi.lineHeight,"var(--ft-button-internal-content-height)")};
619
619
  }
620
-
620
+
621
621
  .ft-button--label[hidden] {
622
622
  display: none;
623
623
  }
@@ -789,7 +789,7 @@ class $e extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
789
789
  .ft-snap-scroll--vertical .ft-snap-scroll--next:hover {
790
790
  background-color: ${_e.colorSurface};
791
791
  }
792
- `;var De=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class Ie extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class We extends bt{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new i(200),this.updateScrollDebouncer=new i(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let i=this.elements[t];if(i){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(i[this.offsetAttribute]<e||i[this.offsetAttribute]+i[this.sizeAttribute]>t)&&this.scrollToElement(i)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=Rt({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":St}),i=this.controls&&this.withScroll;return V`
792
+ `;var Ie=function(t,i,e,o){for(var s,n=arguments.length,r=n<3?i:null===o?o=Object.getOwnPropertyDescriptor(i,e):o,l=t.length-1;l>=0;l--)(s=t[l])&&(r=(n<3?s(r):n>3?s(i,e,r):s(i,e))||r);return n>3&&r&&Object.defineProperty(i,e,r),r};class De extends CustomEvent{constructor(t,i){super("current-element-change",{detail:{index:t,element:i}})}}class We extends bt{constructor(){super(...arguments),this.horizontal=!1,this.hideScrollbar=!1,this.controls=!1,this.limitSize=!1,this.elements=[],this.currentElement=0,this.withScroll=!1,this.startReached=!0,this.endReached=!0,this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight",this.updateScrollCallback=()=>this.onScroll(),this.resizeObserver=new ResizeObserver((()=>this.scheduleUpdateScroll())),this.scrollDebouncer=new i(200),this.updateScrollDebouncer=new i(100)}scrollToIndex(t){this.scrollToElement(this.elements[t])}scrollIndexIntoView(t){let i=this.elements[t];if(i){const t=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.nextSize,e=this.contentSlot[this.scrollAttribute]+this.prevSize;(i[this.offsetAttribute]<e||i[this.offsetAttribute]+i[this.sizeAttribute]>t)&&this.scrollToElement(i)}}previous(){this.scrollToElement(this.elements[Math.max(0,this.closestIndexFromStart()-1)])}next(){this.scrollToElement(this.elements[Math.min(this.closestIndexFromStart()+1,this.elements.length-1)])}render(){const t=Rt({"ft-snap-scroll":!0,"ft-snap-scroll--horizontal":this.horizontal,"ft-snap-scroll--vertical":!this.horizontal,"ft-snap-scroll--hide-scrollbar":this.hideScrollbar,"ft-snap-scroll--limit-size":this.limitSize,"ft-snap-scroll--safari-fix":St}),i=this.controls&&this.withScroll;return V`
793
793
  <div part="container" class="${t}">
794
794
  <ft-button
795
795
  class="ft-snap-scroll--previous"
@@ -813,4 +813,4 @@ class $e extends Et{constructor(t){if(super(t),this.it=q,t.type!==Nt)throw Error
813
813
  @click=${this.next}
814
814
  ></ft-button>
815
815
  </div>
816
- `}updated(t){var i;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(i=this.listenedContainer)||void 0===i||i.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new Ie(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const i=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<i&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var i,e;t&&(this.horizontal?null===(i=this.contentSlot)||void 0===i||i.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(e=this.contentSlot)||void 0===e||e.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,i;this.elements=null!==(i=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==i?i:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let i=0;i<this.elements.length;i++)(t<0||this.getDistanceFromStart(this.elements[i])<this.getDistanceFromStart(this.elements[t]))&&(t=i);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const i=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-i)}}We.elementDefinitions={"ft-button":Le},We.styles=Pe,De([o({type:Boolean})],We.prototype,"horizontal",void 0),De([o({type:Boolean})],We.prototype,"hideScrollbar",void 0),De([o({type:Boolean})],We.prototype,"controls",void 0),De([o({type:Boolean})],We.prototype,"limitSize",void 0),De([s()],We.prototype,"elements",void 0),De([s()],We.prototype,"currentElement",void 0),De([s()],We.prototype,"withScroll",void 0),De([s()],We.prototype,"startReached",void 0),De([s()],We.prototype,"endReached",void 0),De([r(".ft-snap-scroll--content")],We.prototype,"contentSlot",void 0),c("ft-snap-scroll")(We),t.CurrentElementChange=Ie,t.FtSnapScroll=We,t.FtSnapScrollCssVariables=_e,t.styles=Pe,Object.defineProperty(t,"i",{value:!0})}({});
816
+ `}updated(t){var i;super.updated(t),this.contentSlot&&(this.resizeObserver.observe(this.contentSlot),this.listenedContainer!==this.contentSlot&&(this.listenedContainer&&this.listenedContainer.removeEventListener("scroll",this.updateScrollCallback),this.listenedContainer=this.contentSlot,null===(i=this.listenedContainer)||void 0===i||i.addEventListener("scroll",this.updateScrollCallback))),t.has("horizontal")&&(this.horizontal?(this.offsetAttribute="offsetLeft",this.scrollAttribute="scrollLeft",this.sizeAttribute="clientWidth",this.scrollSizeAttribute="scrollWidth"):(this.offsetAttribute="offsetTop",this.scrollAttribute="scrollTop",this.sizeAttribute="clientHeight",this.scrollSizeAttribute="scrollHeight")),t.has("currentElement")&&this.dispatchEvent(new De(this.currentElement,this.elements[this.currentElement]))}onScroll(){this.scrollDebouncer.run((()=>this.snap())),this.scheduleUpdateScroll()}snap(){let t=this.closestElementFromStart();if(null!=t){const i=this.getDistanceFromStart(t);Math.abs(this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]-this.contentSlot[this.scrollSizeAttribute])<i&&(t=this.lastElement),this.scrollToElement(t)}}scrollToElement(t){var i,e;t&&(this.horizontal?null===(i=this.contentSlot)||void 0===i||i.scrollTo({left:this.getOffset(t)-this.controlsSize,behavior:"smooth"}):null===(e=this.contentSlot)||void 0===e||e.scrollTo({top:this.getOffset(t)-this.controlsSize,behavior:"smooth"}),this.currentElement=this.elements.indexOf(t))}onSlotChange(){var t,i;this.elements=null!==(i=null===(t=this.contentSlot)||void 0===t?void 0:t.assignedElements().map((t=>t)))&&void 0!==i?i:[],this.scheduleUpdateScroll()}closestElementFromStart(){return this.elements[this.closestIndexFromStart()]}closestIndexFromStart(){let t=-1;for(let i=0;i<this.elements.length;i++)(t<0||this.getDistanceFromStart(this.elements[i])<this.getDistanceFromStart(this.elements[t]))&&(t=i);return t}scheduleUpdateScroll(){this.updateScrollDebouncer.run((()=>this.updateScroll()))}updateScroll(){null!=this.contentSlot?(this.withScroll=this.contentSlot[this.scrollSizeAttribute]>this.contentSlot[this.sizeAttribute],this.startReached=0===this.contentSlot[this.scrollAttribute],this.endReached=this.contentSlot[this.scrollAttribute]+this.contentSlot[this.sizeAttribute]+1>=this.contentSlot[this.scrollSizeAttribute]):(this.withScroll=!1,this.startReached=!0,this.endReached=!0)}get lastElement(){return this.elements[this.elements.length-1]}get firstElementOffset(){let t=this.elements[0];return t?t[this.offsetAttribute]:0}get controlsSize(){return this.controls?36:0}get nextSize(){return this.endReached?0:this.controlsSize}get prevSize(){return this.startReached?0:this.controlsSize}getOffset(t){return t[this.offsetAttribute]-this.firstElementOffset}getDistanceFromStart(t){const i=t===this.elements[0]?0:this.controlsSize;return Math.abs(this.getOffset(t)-this.contentSlot[this.scrollAttribute]-i)}}We.elementDefinitions={"ft-button":Le},We.styles=Pe,Ie([o({type:Boolean})],We.prototype,"horizontal",void 0),Ie([o({type:Boolean})],We.prototype,"hideScrollbar",void 0),Ie([o({type:Boolean})],We.prototype,"controls",void 0),Ie([o({type:Boolean})],We.prototype,"limitSize",void 0),Ie([s()],We.prototype,"elements",void 0),Ie([s()],We.prototype,"currentElement",void 0),Ie([s()],We.prototype,"withScroll",void 0),Ie([s()],We.prototype,"startReached",void 0),Ie([s()],We.prototype,"endReached",void 0),Ie([r(".ft-snap-scroll--content")],We.prototype,"contentSlot",void 0),c("ft-snap-scroll")(We),t.CurrentElementChange=De,t.FtSnapScroll=We,t.FtSnapScrollCssVariables=_e,t.styles=Pe,Object.defineProperty(t,"i",{value:!0})}({});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fluid-topics/ft-snap-scroll",
3
- "version": "0.3.65",
3
+ "version": "0.3.67",
4
4
  "description": "Vertical or horizontal container with snap scrolling.",
5
5
  "keywords": [
6
6
  "Lit"
@@ -19,9 +19,9 @@
19
19
  "url": "ssh://git@scm.mrs.antidot.net:2222/fluidtopics/ft-web-components.git"
20
20
  },
21
21
  "dependencies": {
22
- "@fluid-topics/ft-button": "0.3.65",
23
- "@fluid-topics/ft-wc-utils": "0.3.65",
22
+ "@fluid-topics/ft-button": "0.3.67",
23
+ "@fluid-topics/ft-wc-utils": "0.3.67",
24
24
  "lit": "2.2.8"
25
25
  },
26
- "gitHead": "e19de923a28e68d55617219545fb7398511e8a77"
26
+ "gitHead": "9db69a3abe84d6fb5ec11e29164f2ceaa7369352"
27
27
  }