@3mo/card 0.2.0 → 0.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAkC,MAAM,WAAW,CAAA;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,cAAc,CAAA;AACrB,OAAO,WAAW,CAAA;AAElB,0BAAkB,QAAQ;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBACa,IAAK,SAAQ,SAAS;IACtB,IAAI,WAAkB;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IAE1B,SAAS,CAAC,QAAQ,CAAC,cAAc,iBAA2B;IAE5D,WAAoB,MAAM,kCAEzB;IAED,cAAuB,QAAQ,yCAE9B;IAED,SAAS,KAAK,aAAa,0CAG1B;IAED,SAAS,KAAK,cAAc,0CAO3B;IAED,SAAS,KAAK,2BAA2B,yCAExC;IAED,SAAS,KAAK,4BAA4B,yCAEzC;IAED,SAAS,KAAK,+BAA+B,yCAE5C;IAED,SAAS,KAAK,2BAA2B,yCAExC;IAED,SAAS,KAAK,YAAY,yCAGzB;IAED,SAAS,KAAK,cAAc,0CAE3B;CACD;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,SAAS,EAAE,IAAI,CAAA;KACf;CACD"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../../Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAkC,MAAM,WAAW,CAAA;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,cAAc,CAAA;AACrB,OAAO,WAAW,CAAA;AAElB,0BAAkB,QAAQ;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBACa,IAAK,SAAQ,SAAS;IACL,IAAI,WAAkB;IACvC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IAE1B,SAAS,CAAC,QAAQ,CAAC,cAAc,iBAA2B;IAE5D,WAAoB,MAAM,kCAEzB;IAED,cAAuB,QAAQ,yCAE9B;IAED,SAAS,KAAK,aAAa,0CAG1B;IAED,SAAS,KAAK,cAAc,0CAO3B;IAED,SAAS,KAAK,2BAA2B,yCAExC;IAED,SAAS,KAAK,4BAA4B,yCAEzC;IAED,SAAS,KAAK,+BAA+B,yCAE5C;IAED,SAAS,KAAK,2BAA2B,yCAExC;IAED,SAAS,KAAK,YAAY,yCAGzB;IAED,SAAS,KAAK,cAAc,0CAE3B;CACD;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,SAAS,EAAE,IAAI,CAAA;KACf;CACD"}
@@ -1 +1 @@
1
- {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAkC,MAAM,WAAW,CAAA;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,cAAc,CAAA;AACrB,OAAO,WAAW,CAAA;AAElB,0BAAkB,QAAQ;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBACa,IAAK,SAAQ,SAAS;IACtB,IAAI,WAAkB;IACtB,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IAE1B,SAAS,CAAC,QAAQ,CAAC,cAAc,iBAA2B;IAE5D,WAAoB,MAAM,kCAsEzB;IAED,cAAuB,QAAQ,yCAS9B;IAED,SAAS,KAAK,aAAa,0CAO1B;IAED,SAAS,KAAK,cAAc,0CAgB3B;IAED,SAAS,KAAK,2BAA2B,yCAQxC;IAED,SAAS,KAAK,4BAA4B,yCAQzC;IAED,SAAS,KAAK,+BAA+B,yCAQ5C;IAED,SAAS,KAAK,2BAA2B,yCAExC;IAED,SAAS,KAAK,YAAY,yCAGzB;IAED,SAAS,KAAK,cAAc,0CAE3B;CACD;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,SAAS,EAAE,IAAI,CAAA;KACf;CACD"}
1
+ {"version":3,"file":"Card.d.ts","sourceRoot":"","sources":["../Card.ts"],"names":[],"mappings":"AAAA,OAAO,EAA6B,SAAS,EAAkC,MAAM,WAAW,CAAA;AAChG,OAAO,EAAE,cAAc,EAAE,MAAM,sBAAsB,CAAA;AACrD,OAAO,cAAc,CAAA;AACrB,OAAO,WAAW,CAAA;AAElB,0BAAkB,QAAQ;IACzB,MAAM,WAAW;IACjB,QAAQ,aAAa;CACrB;AAED;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GA8BG;AACH,qBACa,IAAK,SAAQ,SAAS;IACL,IAAI,WAAkB;IACvC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,CAAA;IACnB,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,KAAK,CAAC,EAAE,MAAM,CAAA;IAE1B,SAAS,CAAC,QAAQ,CAAC,cAAc,iBAA2B;IAE5D,WAAoB,MAAM,kCAsEzB;IAED,cAAuB,QAAQ,yCAS9B;IAED,SAAS,KAAK,aAAa,0CAO1B;IAED,SAAS,KAAK,cAAc,0CAgB3B;IAED,SAAS,KAAK,2BAA2B,yCAQxC;IAED,SAAS,KAAK,4BAA4B,yCAQzC;IAED,SAAS,KAAK,+BAA+B,yCAQ5C;IAED,SAAS,KAAK,2BAA2B,yCAExC;IAED,SAAS,KAAK,YAAY,yCAGzB;IAED,SAAS,KAAK,cAAc,0CAE3B;CACD;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,SAAS,EAAE,IAAI,CAAA;KACf;CACD"}
package/dist/Card.js CHANGED
@@ -185,7 +185,7 @@ let Card = class Card extends Component {
185
185
  }
186
186
  };
187
187
  __decorate([
188
- property()
188
+ property({ reflect: true })
189
189
  ], Card.prototype, "type", void 0);
190
190
  __decorate([
191
191
  property()
package/dist/bundle.js CHANGED
@@ -1 +1 @@
1
- (()=>{"use strict";function t(t,e,s,i){var n,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(r<3?n(o):r>3?n(e,s,o):n(e,s))||o);return r>3&&o&&Object.defineProperty(e,s,o),o}const e=window,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new WeakMap;class r{constructor(t,e,s){if(this._$cssResult$=!0,s!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=n.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&n.set(e,t))}return t}toString(){return this.cssText}}const o=t=>new r("string"==typeof t?t:t+"",void 0,i),l=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1]),t[0]);return new r(s,t,i)},a=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return o(e)})(t):t;var h;const d=window,c=d.trustedTypes,u=c?c.emptyScript:"",p=d.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},f=(t,e)=>e!==t&&(e==e||t==t),g={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:f};class y extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,s)=>{const i=this._$Ep(s,e);void 0!==i&&(this._$Ev.set(i,s),t.push(i))})),t}static createProperty(t,e=g){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const n=this[t];this[e]=i,this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||g}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of e)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Ep(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,s;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{s?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((s=>{const i=document.createElement("style"),n=e.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=s.cssText,t.appendChild(i)}))})(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=g){var i;const n=this.constructor._$Ep(t,s);if(void 0!==n&&!0===s.reflect){const r=(void 0!==(null===(i=s.converter)||void 0===i?void 0:i.toAttribute)?s.converter:v).toAttribute(e,s.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var s;const i=this.constructor,n=i._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=i.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:v;this._$El=n,this[n]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||f)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(s)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var $;y.finalized=!0,y.elementProperties=new Map,y.elementStyles=[],y.shadowRootOptions={mode:"open"},null==p||p({ReactiveElement:y}),(null!==(h=d.reactiveElementVersions)&&void 0!==h?h:d.reactiveElementVersions=[]).push("1.4.1");const m=window,_=m.trustedTypes,A=_?_.createPolicy("lit-html",{createHTML:t=>t}):void 0,b=`lit$${(Math.random()+"").slice(9)}$`,C="?"+b,w=`<${C}>`,x=document,E=(t="")=>x.createComment(t),S=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,T=t=>H(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,N=/>/g,M=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),O=/'/g,U=/"/g,j=/^(?:script|style|textarea|title)$/i,R=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),z=R(1),D=R(2),L=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),I=new WeakMap,K=(t,e,s)=>{var i,n;const r=null!==(i=null==s?void 0:s.renderBefore)&&void 0!==i?i:e;let o=r._$litPart$;if(void 0===o){const t=null!==(n=null==s?void 0:s.renderBefore)&&void 0!==n?n:null;r._$litPart$=o=new Z(e.insertBefore(E(),t),t,void 0,null!=s?s:{})}return o._$AI(t),o},V=x.createTreeWalker(x,129,null,!1),Y=(t,e)=>{const s=t.length-1,i=[];let n,r=2===e?"<svg>":"",o=k;for(let e=0;e<s;e++){const s=t[e];let l,a,h=-1,d=0;for(;d<s.length&&(o.lastIndex=d,a=o.exec(s),null!==a);)d=o.lastIndex,o===k?"!--"===a[1]?o=P:void 0!==a[1]?o=N:void 0!==a[2]?(j.test(a[2])&&(n=RegExp("</"+a[2],"g")),o=M):void 0!==a[3]&&(o=M):o===M?">"===a[0]?(o=null!=n?n:k,h=-1):void 0===a[1]?h=-2:(h=o.lastIndex-a[2].length,l=a[1],o=void 0===a[3]?M:'"'===a[3]?U:O):o===U||o===O?o=M:o===P||o===N?o=k:(o=M,n=void 0);const c=o===M&&t[e+1].startsWith("/>")?" ":"";r+=o===k?s+w:h>=0?(i.push(l),s.slice(0,h)+"$lit$"+s.slice(h)+b+c):s+b+(-2===h?(i.push(void 0),e):c)}const l=r+(t[s]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==A?A.createHTML(l):l,i]};class W{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,r=0;const o=t.length-1,l=this.parts,[a,h]=Y(t,e);if(this.el=W.createElement(a,s),V.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=V.nextNode())&&l.length<o;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(b)){const s=h[r++];if(t.push(e),void 0!==s){const t=i.getAttribute(s.toLowerCase()+"$lit$").split(b),e=/([.?@])?(.*)/.exec(s);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?G:"@"===e[1]?tt:F})}else l.push({type:6,index:n})}for(const e of t)i.removeAttribute(e)}if(j.test(i.tagName)){const t=i.textContent.split(b),e=t.length-1;if(e>0){i.textContent=_?_.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],E()),V.nextNode(),l.push({type:2,index:++n});i.append(t[e],E())}}}else if(8===i.nodeType)if(i.data===C)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(b,t+1));)l.push({type:7,index:n}),t+=b.length-1}n++}}static createElement(t,e){const s=x.createElement("template");return s.innerHTML=t,s}}function q(t,e,s=t,i){var n,r,o,l;if(e===L)return e;let a=void 0!==i?null===(n=s._$Cl)||void 0===n?void 0:n[i]:s._$Cu;const h=S(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,s,i)),void 0!==i?(null!==(o=(l=s)._$Cl)&&void 0!==o?o:l._$Cl=[])[i]=a:s._$Cu=a),void 0!==a&&(e=q(t,a._$AS(t,e.values),a,i)),e}class X{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:s},parts:i}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(s,!0);V.currentNode=n;let r=V.nextNode(),o=0,l=0,a=i[0];for(;void 0!==a;){if(o===a.index){let e;2===a.type?e=new Z(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new et(r,this,t)),this.v.push(e),a=i[++l]}o!==(null==a?void 0:a.index)&&(r=V.nextNode(),o++)}return n}m(t){let e=0;for(const s of this.v)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class Z{constructor(t,e,s,i){var n;this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$C_=null===(n=null==i?void 0:i.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=q(this,t,e),S(t)?t===B||null==t||""===t?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==L&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):T(t)?this.O(t):this.$(t)}S(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}$(t){this._$AH!==B&&S(this._$AH)?this._$AA.nextSibling.data=t:this.k(x.createTextNode(t)),this._$AH=t}T(t){var e;const{values:s,_$litType$:i}=t,n="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=W.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(s);else{const t=new X(n,this),e=t.p(this.options);t.m(s),this.k(e),this._$AH=t}}_$AC(t){let e=I.get(t.strings);return void 0===e&&I.set(t.strings,e=new W(t)),e}O(t){H(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new Z(this.S(E()),this.S(E()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class F{constructor(t,e,s,i,n){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=B}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(void 0===n)t=q(this,t,e,0),r=!S(t)||t!==this._$AH&&t!==L,r&&(this._$AH=t);else{const i=t;let o,l;for(t=n[0],o=0;o<n.length-1;o++)l=q(this,i[s+o],e,o),l===L&&(l=this._$AH[o]),r||(r=!S(l)||l!==this._$AH[o]),l===B?t=B:t!==B&&(t+=(null!=l?l:"")+n[o+1]),this._$AH[o]=l}r&&!i&&this.P(t)}P(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends F{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===B?void 0:t}}const Q=_?_.emptyScript:"";class G extends F{constructor(){super(...arguments),this.type=4}P(t){t&&t!==B?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class tt extends F{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){var s;if((t=null!==(s=q(this,t,e,0))&&void 0!==s?s:B)===L)return;const i=this._$AH,n=t===B&&i!==B||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==B&&(i===B||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}}const st={A:"$lit$",M:b,C,L:1,R:Y,D:X,V:T,I:q,H:Z,N:F,U:G,B:tt,F:J,W:et},it=m.litHtmlPolyfillSupport;var nt,rt;null==it||it(W,Z),(null!==($=m.litHtmlVersions)&&void 0!==$?$:m.litHtmlVersions=[]).push("2.3.1");class ot extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=K(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return L}}ot.finalized=!0,ot._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:ot});const lt=globalThis.litElementPolyfillSupport;null==lt||lt({LitElement:ot});(null!==(rt=globalThis.litElementVersions)&&void 0!==rt?rt:globalThis.litElementVersions=[]).push("3.2.2");const at=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(s){s.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(s){s.createProperty(e.key,t)}};var ht;null===(ht=window.HTMLSlotElement)||void 0===ht||ht.prototype.assignedElements;const dt=Symbol.for(""),ct=t=>{if((null==t?void 0:t.r)===dt)return null==t?void 0:t._$litStatic$},ut=new Map,pt=t=>(e,...s)=>{const i=s.length;let n,r;const o=[],l=[];let a,h=0,d=!1;for(;h<i;){for(a=e[h];h<i&&void 0!==(r=s[h],n=ct(r));)a+=n+e[++h],d=!0;l.push(r),o.push(a),h++}if(h===i&&o.push(e[i]),d){const t=o.join("$$lit$$");void 0===(e=ut.get(t))&&(o.raw=o,ut.set(t,e=o)),s=l}return t(e,...s)},{H:vt}=(pt(z),pt(D),st),ft=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e,gt=t=>void 0===t.strings,yt=()=>document.createComment(""),$t=(t,e,s)=>{var i;const n=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===s){const e=n.insertBefore(yt(),r),i=n.insertBefore(yt(),r);s=new vt(e,i,t,t.options)}else{const e=s._$AB.nextSibling,o=s._$AM,l=o!==t;if(l){let e;null===(i=s._$AQ)||void 0===i||i.call(s,t),s._$AM=t,void 0!==s._$AP&&(e=t._$AU)!==o._$AU&&s._$AP(e)}if(e!==r||l){let t=s._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,r),t=e}}}return s},mt=(t,e,s=t)=>(t._$AI(e,s),t),_t={},At=(t,e=_t)=>t._$AH=e,bt=t=>t._$AH,Ct=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let s=t._$AA;const i=t._$AB.nextSibling;for(;s!==i;){const t=s.nextSibling;s.remove(),s=t}},wt=t=>{t._$AR()},xt=1,Et=2,St=3,Ht=4,Tt=6,kt=t=>(...e)=>({_$litDirective$:t,values:e});class Pt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Nt=(t,e)=>{var s,i;const n=t._$AN;if(void 0===n)return!1;for(const t of n)null===(i=(s=t)._$AO)||void 0===i||i.call(s,e,!1),Nt(t,e);return!0},Mt=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===(null==s?void 0:s.size))},Ot=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),Rt(e)}};function Ut(t){void 0!==this._$AN?(Mt(this),this._$AM=t,Ot(this)):this._$AM=t}function jt(t,e=!1,s=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)Nt(i[t],!1),Mt(i[t]);else null!=i&&(Nt(i,!1),Mt(i));else Nt(this,t)}const Rt=t=>{var e,s,i,n;t.type==Et&&(null!==(e=(i=t)._$AP)&&void 0!==e||(i._$AP=jt),null!==(s=(n=t)._$AQ)&&void 0!==s||(n._$AQ=Ut))};class zt extends Pt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Ot(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,i;t!==this.isConnected&&(this.isConnected=t,t?null===(s=this.reconnected)||void 0===s||s.call(this):null===(i=this.disconnected)||void 0===i||i.call(this)),e&&(Nt(this,t),Mt(this))}setValue(t){if(gt(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class Dt{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}}class Lt{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){var t;null!==(t=this.Z)&&void 0!==t||(this.Z=new Promise((t=>this.q=t)))}resume(){var t;null===(t=this.q)||void 0===t||t.call(this),this.Z=this.q=void 0}}class Bt extends zt{constructor(){super(...arguments),this._$CK=new Dt(this),this._$CX=new Lt}render(t,e){return L}update(t,[e,s]){if(this.isConnected||this.disconnected(),e===this._$CJ)return;this._$CJ=e;let i=0;const{_$CK:n,_$CX:r}=this;return(async(t,e)=>{for await(const s of t)if(!1===await e(s))return})(e,(async t=>{for(;r.get();)await r.get();const o=n.deref();if(void 0!==o){if(o._$CJ!==e)return!1;void 0!==s&&(t=s(t,i)),o.commitValue(t,i),i++}return!0})),L}commitValue(t,e){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}}kt(Bt),kt(class extends Bt{constructor(t){if(super(t),t.type!==Et)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$Ctt=t,super.update(t,e)}commitValue(t,e){0===e&&wt(this._$Ctt);const s=$t(this._$Ctt);mt(s,t)}}),kt(class extends Pt{constructor(t){super(t),this.et=new WeakMap}render(t){return[t]}update(t,[e]){if(ft(this.it)&&(!ft(e)||this.it.strings!==e.strings)){const e=bt(t).pop();let s=this.et.get(this.it.strings);if(void 0===s){const t=document.createDocumentFragment();s=K(B,t),s.setConnected(!1),this.et.set(this.it.strings,s)}At(s,[e]),$t(s,void 0,e)}if(ft(e)){if(!ft(this.it)||this.it.strings!==e.strings){const s=this.et.get(e.strings);if(void 0!==s){const e=bt(s).pop();wt(t),$t(t,void 0,e),At(t,[e])}}this.it=e}else this.it=void 0;return this.render(e)}}),kt(class extends Pt{constructor(t){var e;if(super(t),t.type!==xt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var s,i;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(s=this.st)||void 0===s?void 0:s.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const s=!!e[t];s===this.nt.has(t)||(null===(i=this.st)||void 0===i?void 0:i.has(t))||(s?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return L}});const It={};kt(class extends Pt{constructor(){super(...arguments),this.ot=It}render(t,e){return e()}update(t,[e,s]){if(Array.isArray(e)){if(Array.isArray(this.ot)&&this.ot.length===e.length&&e.every(((t,e)=>t===this.ot[e])))return L}else if(this.ot===e)return L;return this.ot=Array.isArray(e)?Array.from(e):e,this.render(e,s)}}),kt(class extends Pt{constructor(){super(...arguments),this.key=B}render(t,e){return this.key=t,e}update(t,[e,s]){return e!==this.key&&(At(t),this.key=e),s}}),kt(class extends Pt{constructor(t){if(super(t),t.type!==St&&t.type!==xt&&t.type!==Ht)throw Error("The `live` directive is not allowed on child or event bindings");if(!gt(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===L||e===B)return e;const s=t.element,i=t.name;if(t.type===St){if(e===s[i])return L}else if(t.type===Ht){if(!!e===s.hasAttribute(i))return L}else if(t.type===xt&&s.getAttribute(i)===e+"")return L;return At(t),e}});const Kt=new WeakMap,Vt=(kt(class extends zt{render(t){return B}update(t,[e]){var s;const i=e!==this.Y;return i&&void 0!==this.Y&&this.rt(void 0),(i||this.lt!==this.dt)&&(this.Y=e,this.ct=null===(s=t.options)||void 0===s?void 0:s.host,this.rt(this.dt=t.element)),B}rt(t){var e;if("function"==typeof this.Y){const s=null!==(e=this.ct)&&void 0!==e?e:globalThis;let i=Kt.get(s);void 0===i&&(i=new WeakMap,Kt.set(s,i)),void 0!==i.get(this.Y)&&this.Y.call(this.ct,void 0),i.set(this.Y,t),void 0!==t&&this.Y.call(this.ct,t)}else this.Y.value=t}get lt(){var t,e,s;return"function"==typeof this.Y?null===(e=Kt.get(null!==(t=this.ct)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this.Y):null===(s=this.Y)||void 0===s?void 0:s.value}disconnected(){this.lt===this.dt&&this.rt(void 0)}reconnected(){this.rt(this.dt)}}),(t,e,s)=>{const i=new Map;for(let n=e;n<=s;n++)i.set(t[n],n);return i});kt(class extends Pt{constructor(t){if(super(t),t.type!==Et)throw Error("repeat() can only be used in text expressions")}ht(t,e,s){let i;void 0===s?s=e:void 0!==e&&(i=e);const n=[],r=[];let o=0;for(const e of t)n[o]=i?i(e,o):o,r[o]=s(e,o),o++;return{values:r,keys:n}}render(t,e,s){return this.ht(t,e,s).values}update(t,[e,s,i]){var n;const r=bt(t),{values:o,keys:l}=this.ht(e,s,i);if(!Array.isArray(r))return this.ut=l,o;const a=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],h=[];let d,c,u=0,p=r.length-1,v=0,f=o.length-1;for(;u<=p&&v<=f;)if(null===r[u])u++;else if(null===r[p])p--;else if(a[u]===l[v])h[v]=mt(r[u],o[v]),u++,v++;else if(a[p]===l[f])h[f]=mt(r[p],o[f]),p--,f--;else if(a[u]===l[f])h[f]=mt(r[u],o[f]),$t(t,h[f+1],r[u]),u++,f--;else if(a[p]===l[v])h[v]=mt(r[p],o[v]),$t(t,r[u],r[p]),p--,v++;else if(void 0===d&&(d=Vt(l,v,f),c=Vt(a,u,p)),d.has(a[u]))if(d.has(a[p])){const e=c.get(l[v]),s=void 0!==e?r[e]:null;if(null===s){const e=$t(t,r[u]);mt(e,o[v]),h[v]=e}else h[v]=mt(s,o[v]),$t(t,r[u],s),r[e]=null;v++}else Ct(r[p]),p--;else Ct(r[u]),u++;for(;v<=f;){const e=$t(t,h[f+1]);mt(e,o[v]),h[v++]=e}for(;u<=p;){const t=r[u++];null!==t&&Ct(t)}return this.ut=l,At(t,h),L}}),kt(class extends Pt{constructor(t){var e;if(super(t),t.type!==xt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in e)this.vt.add(t);return this.render(e)}this.vt.forEach((t=>{null==e[t]&&(this.vt.delete(t),t.includes("-")?s.removeProperty(t):s[t]="")}));for(const t in e){const i=e[t];null!=i&&(this.vt.add(t),t.includes("-")?s.setProperty(t,i):s[t]=i)}return L}}),kt(class extends Pt{constructor(t){if(super(t),t.type!==Et)throw Error("templateContent can only be used in child bindings")}render(t){return this.ft===t?L:(this.ft=t,document.importNode(t.content,!0))}});class Yt extends Pt{constructor(t){if(super(t),this.it=B,t.type!==Et)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===B||null==t)return this._t=void 0,this.it=t;if(t===L)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Yt.directiveName="unsafeHTML",Yt.resultType=1;kt(Yt);class Wt extends Yt{}Wt.directiveName="unsafeSVG",Wt.resultType=2;kt(Wt);const qt=t=>!(t=>null===t||"object"!=typeof t&&"function"!=typeof t)(t)&&"function"==typeof t.then;kt(class extends zt{constructor(){super(...arguments),this._$Cwt=1073741823,this._$Cyt=[],this._$CK=new Dt(this),this._$CX=new Lt}render(...t){var e;return null!==(e=t.find((t=>!qt(t))))&&void 0!==e?e:L}update(t,e){const s=this._$Cyt;let i=s.length;this._$Cyt=e;const n=this._$CK,r=this._$CX;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$Cwt);t++){const o=e[t];if(!qt(o))return this._$Cwt=t,o;t<i&&o===s[t]||(this._$Cwt=1073741823,i=0,Promise.resolve(o).then((async t=>{for(;r.get();)await r.get();const e=n.deref();if(void 0!==e){const s=e._$Cyt.indexOf(o);s>-1&&s<e._$Cwt&&(e._$Cwt=s,e.setValue(t))}})))}return L}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}});const Xt=B,Zt=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:s,elements:i}=e;return{kind:s,elements:i,finisher(e){customElements.define(t,e)}}})(t,e);class Ft extends ot{initialized(){}connected(){}disconnected(){}get template(){return Xt}render(){return this.template}firstUpdated(t){super.firstUpdated(t),this.initialized()}connectedCallback(){super.connectedCallback(),this.connected()}disconnectedCallback(){super.disconnectedCallback(),this.disconnected()}}const Jt=()=>t=>{const e=new t;Qt.handlers.add(e)};class Qt extends Pt{constructor(t){if(super(t),t.type!==Tt)throw new Error("observeMutation can only be used on an element");const e=t;this.element=e.element}render(t){for(const[e,s]of Object.entries(t)){([...Qt.handlers].find((t=>t.handles(this.element,[e,s])))??Qt.defaultHandler).apply(this.element,[e,s])}}}Qt.handlers=new Set,Qt.defaultHandler=new class{handles(){return!0}apply(t,[e,s]){t.style[e]=null==s?"":s}};const Gt=kt(Qt);var te;let ee=te=class{static getProportion(t){return Number(t.replace(te.regex,"$1")||1)}handles(t,[e,s]){return te.supportedKeys.has(e)&&te.regex.test(s)}apply(t,[,e]){const s=te.getProportion(e);t.style.flexGrow=String(s)}};ee.supportedKeys=new Set(["width","height"]),ee.regex=/^\s*(0|[1-9][0-9]*)?\s*\*\s*$/,ee=te=t([Jt()],ee);let se=class{handles(t,[e]){return e.startsWith("--")}apply(t,[e,s]){t.style.setProperty(e,s)}};se=t([Jt()],se);const ie=new Map([[Array,(t,e)=>[...e??[],...t]],[Set,(t,e)=>new Set([...e??[],...t])],[Map,(t,e)=>new Map([...e??[],...t])]]),ne=(t,e)=>e?Object.assign(t,e):t;const re=({constructorPropertyKey:t,prototype:e,initialValue:s,lifecycleHooks:i,inheritanceHandler:n})=>{const r=e,o=e.constructor,l=Object.getOwnPropertyDescriptor(o,t)?.value;if(l)return l;const a=n??function(t){const e="constructor"in t?t.constructor:void 0;return ie.get(e)??ne}(s),h=a(s,o[t]);Object.defineProperty(o,t,{value:h});for(const[t,e]of i??[]){const s=r[t];r[t]=function(...t){s.call(this,...t),e.call(this,h,...t)}}return h},oe=Symbol("updatedObservers"),le=t=>(e,s)=>{re({prototype:e,constructorPropertyKey:oe,initialValue:new Map,lifecycleHooks:new Map([["updated",function(t,e){for(const[s,i]of e){const e=s,n=t?.get(e);void 0!==n&&n.call(this,this[e],i)}}]])}).set(s,t)},ae=t=>(e,s)=>(t?.updated&&le(t.updated)(e,s),function(t){return(e,s)=>void 0!==s?((t,e,s)=>{e.constructor.createProperty(s,t)})(t,e,s):at(t,e)}(t)(e,s));const he=Symbol("eventListeners"),de=ot.prototype.connectedCallback;ot.prototype.connectedCallback=function(){de.call(this);const t=ue(this);for(const{type:e,target:s,options:i,descriptor:n,propertyKey:r}of t?.values()??[])fe.call(this,r,n),pe.call(this,s)?.addEventListener(e,ve.call(this,r),i)};const ce=ot.prototype.disconnectedCallback;function ue(t){return t.constructor[he]}function pe(t){return"function"==typeof t?t.call(this):t??this}function ve(t){return Object.getOwnPropertyDescriptor(this,ge(t))?.value}function fe(t,e){const s=e?"function"==typeof e.get?e.get:e.value:Object.getOwnPropertyDescriptor(this,t)?.value;if(!1===ye(s))throw new TypeError(`${this.constructor}.${t} is not a function`);Object.defineProperty(this,ge(t),{value:s.bind(this),configurable:!0,enumerable:!1,writable:!1})}ot.prototype.disconnectedCallback=function(){ce.call(this);const t=ue(this);for(const{type:e,target:s,options:i,propertyKey:n}of t?.values()??[])pe.call(this,s)?.removeEventListener(e,ve.call(this,n),i)};const ge=t=>`$BOUND_${t}$`,ye=t=>{const e="function"==typeof t,s="object"==typeof t&&null!==t&&"handleEvent"in t&&"function"==typeof t.handleEvent;return e||s};class $e extends class{constructor(t){this.host=t,this.host.addController(this)}}{constructor(t,e){super(t),this.host=t,this.slotChangeCallback=e,this.mutationObserver=new MutationObserver(this.handleMutation.bind(this)).observe(this.host,{childList:!0,subtree:!0}),this.handleChange=()=>{var t;this.host.requestUpdate(),null===(t=this.slotChangeCallback)||void 0===t||t.call(this)}}getAssignedNodes(t){var e;const s=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(t?`slot[name="${t}"]`:"slot:not([name])");return s?this.extractNodesFromSlot(s):this.extractNodesFromChildren(t)}hasAssignedNodes(t){return this.getAssignedNodes(t).length>0}hasAssignedContent(t){return this.getAssignedNodes(t).some((t=>{var e;return t.nodeType===Node.TEXT_NODE&&(null===(e=t.textContent)||void 0===e?void 0:e.trim())||t.nodeType===Node.ELEMENT_NODE}))}getAssignedElements(t){return this.getAssignedNodes(t).filter((t=>t instanceof Element))}hasAssignedElements(t){return this.getAssignedElements(t).length>0}extractNodesFromSlot(t){return t.assignedNodes().flatMap((t=>t instanceof HTMLSlotElement?this.extractNodesFromSlot(t):[t]))}extractNodesFromChildren(t){return[...this.host.childNodes].filter((t=>{var e;return t instanceof Element||t instanceof Text&&!!(null===(e=t.textContent)||void 0===e?void 0:e.trim())})).filter((e=>e instanceof Element?e.slot===t:!t)).flatMap((t=>t instanceof HTMLSlotElement?t.assignedNodes():[t]))}hostConnected(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("slotchange",this.handleChange)}hostDisconnected(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("slotchange",this.handleChange)}handleMutation(t){t.some((t=>"childList"===t.type))&&this.handleChange()}}let me=class extends Ft{constructor(){super(...arguments),this.typography="heading3"}static get styles(){return l`:host{display:block}:host([typography=heading1]){font-size:min(2.5em,36px);letter-spacing:-.75px;font-weight:300}:host([typography=heading2]){font-size:min(2em,30px);letter-spacing:-.5px;font-weight:300}:host([typography=heading3]){font-size:min(1.8em,24px);letter-spacing:-.25px;font-weight:400}:host([typography=heading4]){font-size:min(1.5em,18px);font-weight:400}:host([typography=heading5]){font-size:min(1.17em,16px);font-weight:500}:host([typography=heading6]){font-size:min(1em,14px);letter-spacing:.15px;font-weight:500}:host([typography=subtitle1]){font-size:min(1.15em,18px);letter-spacing:.15px;font-weight:400}:host([typography=subtitle2]){font-size:min(1em,14px);letter-spacing:.1px;font-weight:400}`}get template(){return z`<slot></slot>`}};var _e;t([ae({reflect:!0})],me.prototype,"typography",void 0),me=t([Zt("mo-heading")],me);let Ae=_e=class extends Ft{get direction(){var t;return(null===(t=[..._e.flexDirectionByDirections].find((([,t])=>this.style.flexDirection===t)))||void 0===t?void 0:t[0])||"vertical"}set direction(t){this.style.flexDirection=_e.flexDirectionByDirections.get(t)||"column"}get wrap(){return this.style.flexWrap}set wrap(t){this.style.flexWrap=t}get gap(){return this.style.gap}set gap(t){this.style.gap=t}get justifyItems(){return this.style.justifyItems}set justifyItems(t){this.style.justifyItems=t}get justifyContent(){return this.style.justifyContent}set justifyContent(t){this.style.justifyContent=t}get alignItems(){return this.style.alignItems}set alignItems(t){this.style.alignItems=t}get alignContent(){return this.style.alignContent}set alignContent(t){this.style.alignContent=t}static get styles(){return l`:host{display:flex;flex-direction:column;flex-wrap:nowrap}`}get template(){return z`<slot></slot>`}};Ae.flexDirectionByDirections=new Map([["horizontal","row"],["horizontal-reversed","row-reverse"],["vertical","column"],["vertical-reversed","column-reverse"]]),t([ae()],Ae.prototype,"direction",null),t([ae()],Ae.prototype,"wrap",null),t([ae()],Ae.prototype,"gap",null),t([ae()],Ae.prototype,"justifyItems",null),t([ae()],Ae.prototype,"justifyContent",null),t([ae()],Ae.prototype,"alignItems",null),t([ae()],Ae.prototype,"alignContent",null),Ae=_e=t([Zt("mo-flex")],Ae);let be=class extends Ft{constructor(){super(...arguments),this.type="filled",this.slotController=new $e(this)}static get styles(){return l`:host{display:block;border-radius:var(--mo-border-radius,4px)}:host([type="${o("filled")}"]){background:var(--mo-color-surface,#fff);box-shadow:var(--mo-shadow,rgba(95,81,78,.4) 0 1px 2px 0,rgba(95,81,78,.2) 0 1px 3px 1px)}:host([type="${o("outlined")}"]){border:1px solid var(--mo-color-transparent-gray-3,rgba(0,0,0,.12))}slot[name=header]{display:flex;gap:6px;padding:var(--mo-card-header-padding,16px)}slot[name=heading]{display:block;flex:1}slot[name=media]::slotted(:first-child),slot[name=media]>:first-child{border-radius:var(--mo-border-radius,4px) var(--mo-border-radius,4px) 0 0;display:block;background-size:cover;background-repeat:no-repeat;background-position:center center;width:100%;object-fit:cover}slot:not([name]){display:block;flex:1}div[part=avatar]{height:40px;width:40px;aspect-ratio:1/1;display:flex;user-select:none;justify-content:center;align-items:center;border-radius:50%;font-size:18px;background:var(--mo-card-avatar-background,var(--mo-color-accent,#0077c8));color:var(--mo-card-avatar-color,var(--mo-color-on-accent,#fff))}:host([hasBody]) slot:not([name]){padding:var(--mo-card-body-padding,16px)}:host([hasBody][hasHeader]) slot:not([name]){padding:var(--mo-card-body-padding,0 16px 16px 16px)}slot[name=footer]{display:block;padding:var(--mo-card-footer-padding,8px)}`}get template(){return z`<mo-flex ${Gt({width:"100%",height:"100%"})}>${this.mediaTemplate} ${this.headerTemplate} ${this.bodyTemplate} ${this.footerTemplate}</mo-flex>`}get mediaTemplate(){return!!this.image||this.slotController.hasAssignedElements("media")?z`<slot part="media" name="media">${this.image?z`<img part="media" src="${this.image}">`:Xt}</slot>`:Xt}get headerTemplate(){const t=this.slotController.hasAssignedElements("header")||!!this.avatar||!!this.heading||!!this.subHeading||this.slotController.hasAssignedElements("avatar")||this.slotController.hasAssignedElements("heading")||this.slotController.hasAssignedElements("subHeading")||this.slotController.hasAssignedElements("action");return t?this.setAttribute("hasHeader",""):this.removeAttribute("hasHeader"),t?z`<slot part="header" name="header">${this.defaultHeaderAvatarTemplate}<mo-flex justifyContent="space-around" ${Gt({width:"*"})}>${this.defaultHeaderHeadingTemplate} ${this.defaultHeaderSubHeadingTemplate}</mo-flex>${this.defaultHeaderActionTemplate}</slot>`:Xt}get defaultHeaderAvatarTemplate(){return z`<slot name="avatar">${this.avatar?z`<div part="avatar" ${Gt({marginInlineEnd:"6px"})}>${this.avatar}</div>`:Xt}</slot>`}get defaultHeaderHeadingTemplate(){return z`<slot name="heading">${this.heading?z`<mo-heading part="heading" typography="heading4" ${Gt({fontWeight:"500"})}>${this.heading}</mo-heading>`:Xt}</slot>`}get defaultHeaderSubHeadingTemplate(){return z`<slot name="subHeading">${this.subHeading?z`<mo-heading part="subHeading" typography="heading6" ${Gt({fontWeight:"400",color:"rgb(121, 121, 121)"})}>${this.subHeading}</mo-heading>`:Xt}</slot>`}get defaultHeaderActionTemplate(){return z`<slot name="action"></slot>`}get bodyTemplate(){return this.slotController.hasAssignedContent("")?this.setAttribute("hasBody",""):this.removeAttribute("hasBody"),z`<slot></slot>`}get footerTemplate(){return this.slotController.hasAssignedElements("footer")?z`<slot part="footer" name="footer"></slot>`:Xt}};t([ae()],be.prototype,"type",void 0),t([ae()],be.prototype,"heading",void 0),t([ae()],be.prototype,"subHeading",void 0),t([ae()],be.prototype,"avatar",void 0),t([ae()],be.prototype,"image",void 0),be=t([Zt("mo-card")],be)})();
1
+ (()=>{"use strict";function t(t,e,s,i){var n,r=arguments.length,o=r<3?e:null===i?i=Object.getOwnPropertyDescriptor(e,s):i;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)o=Reflect.decorate(t,e,s,i);else for(var l=t.length-1;l>=0;l--)(n=t[l])&&(o=(r<3?n(o):r>3?n(e,s,o):n(e,s))||o);return r>3&&o&&Object.defineProperty(e,s,o),o}const e=window,s=e.ShadowRoot&&(void 0===e.ShadyCSS||e.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,i=Symbol(),n=new WeakMap;class r{constructor(t,e,s){if(this._$cssResult$=!0,s!==i)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(s&&void 0===t){const s=void 0!==e&&1===e.length;s&&(t=n.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&n.set(e,t))}return t}toString(){return this.cssText}}const o=t=>new r("string"==typeof t?t:t+"",void 0,i),l=(t,...e)=>{const s=1===t.length?t[0]:e.reduce(((e,s,i)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+t[i+1]),t[0]);return new r(s,t,i)},a=s?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return o(e)})(t):t;var h;const d=window,c=d.trustedTypes,u=c?c.emptyScript:"",p=d.reactiveElementPolyfillSupport,v={toAttribute(t,e){switch(e){case Boolean:t=t?u:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let s=t;switch(e){case Boolean:s=null!==t;break;case Number:s=null===t?null:Number(t);break;case Object:case Array:try{s=JSON.parse(t)}catch(t){s=null}}return s}},f=(t,e)=>e!==t&&(e==e||t==t),g={attribute:!0,type:String,converter:v,reflect:!1,hasChanged:f};class y extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;null!==(e=this.h)&&void 0!==e||(this.h=[]),this.h.push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,s)=>{const i=this._$Ep(s,e);void 0!==i&&(this._$Ev.set(i,s),t.push(i))})),t}static createProperty(t,e=g){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s="symbol"==typeof t?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);void 0!==i&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const n=this[t];this[e]=i,this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||g}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const s of e)this.createProperty(s,t[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const t of s)e.unshift(a(t))}else void 0!==t&&e.push(a(t));return e}static _$Ep(t,e){const s=e.attribute;return!1===s?void 0:"string"==typeof s?s:"string"==typeof t?t.toLowerCase():void 0}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,s;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(s=t.hostConnected)||void 0===s||s.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const i=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,i)=>{s?t.adoptedStyleSheets=i.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):i.forEach((s=>{const i=document.createElement("style"),n=e.litNonce;void 0!==n&&i.setAttribute("nonce",n),i.textContent=s.cssText,t.appendChild(i)}))})(i,this.constructor.elementStyles),i}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=g){var i;const n=this.constructor._$Ep(t,s);if(void 0!==n&&!0===s.reflect){const r=(void 0!==(null===(i=s.converter)||void 0===i?void 0:i.toAttribute)?s.converter:v).toAttribute(e,s.type);this._$El=t,null==r?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var s;const i=this.constructor,n=i._$Ev.get(t);if(void 0!==n&&this._$El!==n){const t=i.getPropertyOptions(n),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(s=t.converter)||void 0===s?void 0:s.fromAttribute)?t.converter:v;this._$El=n,this[n]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;void 0!==t&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||f)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===s.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(s)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}var $;y.finalized=!0,y.elementProperties=new Map,y.elementStyles=[],y.shadowRootOptions={mode:"open"},null==p||p({ReactiveElement:y}),(null!==(h=d.reactiveElementVersions)&&void 0!==h?h:d.reactiveElementVersions=[]).push("1.4.1");const m=window,_=m.trustedTypes,A=_?_.createPolicy("lit-html",{createHTML:t=>t}):void 0,b=`lit$${(Math.random()+"").slice(9)}$`,C="?"+b,w=`<${C}>`,x=document,E=(t="")=>x.createComment(t),S=t=>null===t||"object"!=typeof t&&"function"!=typeof t,H=Array.isArray,T=t=>H(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),k=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,P=/-->/g,N=/>/g,M=RegExp(">|[ \t\n\f\r](?:([^\\s\"'>=/]+)([ \t\n\f\r]*=[ \t\n\f\r]*(?:[^ \t\n\f\r\"'`<>=]|(\"|')|))|$)","g"),O=/'/g,U=/"/g,j=/^(?:script|style|textarea|title)$/i,R=t=>(e,...s)=>({_$litType$:t,strings:e,values:s}),z=R(1),D=R(2),L=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),I=new WeakMap,K=(t,e,s)=>{var i,n;const r=null!==(i=null==s?void 0:s.renderBefore)&&void 0!==i?i:e;let o=r._$litPart$;if(void 0===o){const t=null!==(n=null==s?void 0:s.renderBefore)&&void 0!==n?n:null;r._$litPart$=o=new Z(e.insertBefore(E(),t),t,void 0,null!=s?s:{})}return o._$AI(t),o},V=x.createTreeWalker(x,129,null,!1),Y=(t,e)=>{const s=t.length-1,i=[];let n,r=2===e?"<svg>":"",o=k;for(let e=0;e<s;e++){const s=t[e];let l,a,h=-1,d=0;for(;d<s.length&&(o.lastIndex=d,a=o.exec(s),null!==a);)d=o.lastIndex,o===k?"!--"===a[1]?o=P:void 0!==a[1]?o=N:void 0!==a[2]?(j.test(a[2])&&(n=RegExp("</"+a[2],"g")),o=M):void 0!==a[3]&&(o=M):o===M?">"===a[0]?(o=null!=n?n:k,h=-1):void 0===a[1]?h=-2:(h=o.lastIndex-a[2].length,l=a[1],o=void 0===a[3]?M:'"'===a[3]?U:O):o===U||o===O?o=M:o===P||o===N?o=k:(o=M,n=void 0);const c=o===M&&t[e+1].startsWith("/>")?" ":"";r+=o===k?s+w:h>=0?(i.push(l),s.slice(0,h)+"$lit$"+s.slice(h)+b+c):s+b+(-2===h?(i.push(void 0),e):c)}const l=r+(t[s]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==A?A.createHTML(l):l,i]};class W{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,r=0;const o=t.length-1,l=this.parts,[a,h]=Y(t,e);if(this.el=W.createElement(a,s),V.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(i=V.nextNode())&&l.length<o;){if(1===i.nodeType){if(i.hasAttributes()){const t=[];for(const e of i.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(b)){const s=h[r++];if(t.push(e),void 0!==s){const t=i.getAttribute(s.toLowerCase()+"$lit$").split(b),e=/([.?@])?(.*)/.exec(s);l.push({type:1,index:n,name:e[2],strings:t,ctor:"."===e[1]?J:"?"===e[1]?G:"@"===e[1]?tt:F})}else l.push({type:6,index:n})}for(const e of t)i.removeAttribute(e)}if(j.test(i.tagName)){const t=i.textContent.split(b),e=t.length-1;if(e>0){i.textContent=_?_.emptyScript:"";for(let s=0;s<e;s++)i.append(t[s],E()),V.nextNode(),l.push({type:2,index:++n});i.append(t[e],E())}}}else if(8===i.nodeType)if(i.data===C)l.push({type:2,index:n});else{let t=-1;for(;-1!==(t=i.data.indexOf(b,t+1));)l.push({type:7,index:n}),t+=b.length-1}n++}}static createElement(t,e){const s=x.createElement("template");return s.innerHTML=t,s}}function q(t,e,s=t,i){var n,r,o,l;if(e===L)return e;let a=void 0!==i?null===(n=s._$Cl)||void 0===n?void 0:n[i]:s._$Cu;const h=S(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==h&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===h?a=void 0:(a=new h(t),a._$AT(t,s,i)),void 0!==i?(null!==(o=(l=s)._$Cl)&&void 0!==o?o:l._$Cl=[])[i]=a:s._$Cu=a),void 0!==a&&(e=q(t,a._$AS(t,e.values),a,i)),e}class X{constructor(t,e){this.v=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}p(t){var e;const{el:{content:s},parts:i}=this._$AD,n=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:x).importNode(s,!0);V.currentNode=n;let r=V.nextNode(),o=0,l=0,a=i[0];for(;void 0!==a;){if(o===a.index){let e;2===a.type?e=new Z(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new et(r,this,t)),this.v.push(e),a=i[++l]}o!==(null==a?void 0:a.index)&&(r=V.nextNode(),o++)}return n}m(t){let e=0;for(const s of this.v)void 0!==s&&(void 0!==s.strings?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class Z{constructor(t,e,s,i){var n;this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$C_=null===(n=null==i?void 0:i.isConnected)||void 0===n||n}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=q(this,t,e),S(t)?t===B||null==t||""===t?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==L&&this.$(t):void 0!==t._$litType$?this.T(t):void 0!==t.nodeType?this.k(t):T(t)?this.O(t):this.$(t)}S(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}k(t){this._$AH!==t&&(this._$AR(),this._$AH=this.S(t))}$(t){this._$AH!==B&&S(this._$AH)?this._$AA.nextSibling.data=t:this.k(x.createTextNode(t)),this._$AH=t}T(t){var e;const{values:s,_$litType$:i}=t,n="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=W.createElement(i.h,this.options)),i);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===n)this._$AH.m(s);else{const t=new X(n,this),e=t.p(this.options);t.m(s),this.k(e),this._$AH=t}}_$AC(t){let e=I.get(t.strings);return void 0===e&&I.set(t.strings,e=new W(t)),e}O(t){H(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new Z(this.S(E()),this.S(E()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for(null===(s=this._$AP)||void 0===s||s.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$C_=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class F{constructor(t,e,s,i,n){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||""!==s[0]||""!==s[1]?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=B}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(void 0===n)t=q(this,t,e,0),r=!S(t)||t!==this._$AH&&t!==L,r&&(this._$AH=t);else{const i=t;let o,l;for(t=n[0],o=0;o<n.length-1;o++)l=q(this,i[s+o],e,o),l===L&&(l=this._$AH[o]),r||(r=!S(l)||l!==this._$AH[o]),l===B?t=B:t!==B&&(t+=(null!=l?l:"")+n[o+1]),this._$AH[o]=l}r&&!i&&this.P(t)}P(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class J extends F{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===B?void 0:t}}const Q=_?_.emptyScript:"";class G extends F{constructor(){super(...arguments),this.type=4}P(t){t&&t!==B?this.element.setAttribute(this.name,Q):this.element.removeAttribute(this.name)}}class tt extends F{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){var s;if((t=null!==(s=q(this,t,e,0))&&void 0!==s?s:B)===L)return;const i=this._$AH,n=t===B&&i!==B||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==B&&(i===B||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;"function"==typeof this._$AH?this._$AH.call(null!==(s=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==s?s:this.element,t):this._$AH.handleEvent(t)}}class et{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){q(this,t)}}const st={A:"$lit$",M:b,C,L:1,R:Y,D:X,V:T,I:q,H:Z,N:F,U:G,B:tt,F:J,W:et},it=m.litHtmlPolyfillSupport;var nt,rt;null==it||it(W,Z),(null!==($=m.litHtmlVersions)&&void 0!==$?$:m.litHtmlVersions=[]).push("2.3.1");class ot extends y{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=K(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return L}}ot.finalized=!0,ot._$litElement$=!0,null===(nt=globalThis.litElementHydrateSupport)||void 0===nt||nt.call(globalThis,{LitElement:ot});const lt=globalThis.litElementPolyfillSupport;null==lt||lt({LitElement:ot});(null!==(rt=globalThis.litElementVersions)&&void 0!==rt?rt:globalThis.litElementVersions=[]).push("3.2.2");const at=(t,e)=>"method"===e.kind&&e.descriptor&&!("value"in e.descriptor)?{...e,finisher(s){s.createProperty(e.key,t)}}:{kind:"field",key:Symbol(),placement:"own",descriptor:{},originalKey:e.key,initializer(){"function"==typeof e.initializer&&(this[e.key]=e.initializer.call(this))},finisher(s){s.createProperty(e.key,t)}};var ht;null===(ht=window.HTMLSlotElement)||void 0===ht||ht.prototype.assignedElements;const dt=Symbol.for(""),ct=t=>{if((null==t?void 0:t.r)===dt)return null==t?void 0:t._$litStatic$},ut=new Map,pt=t=>(e,...s)=>{const i=s.length;let n,r;const o=[],l=[];let a,h=0,d=!1;for(;h<i;){for(a=e[h];h<i&&void 0!==(r=s[h],n=ct(r));)a+=n+e[++h],d=!0;l.push(r),o.push(a),h++}if(h===i&&o.push(e[i]),d){const t=o.join("$$lit$$");void 0===(e=ut.get(t))&&(o.raw=o,ut.set(t,e=o)),s=l}return t(e,...s)},{H:vt}=(pt(z),pt(D),st),ft=(t,e)=>void 0===e?void 0!==(null==t?void 0:t._$litType$):(null==t?void 0:t._$litType$)===e,gt=t=>void 0===t.strings,yt=()=>document.createComment(""),$t=(t,e,s)=>{var i;const n=t._$AA.parentNode,r=void 0===e?t._$AB:e._$AA;if(void 0===s){const e=n.insertBefore(yt(),r),i=n.insertBefore(yt(),r);s=new vt(e,i,t,t.options)}else{const e=s._$AB.nextSibling,o=s._$AM,l=o!==t;if(l){let e;null===(i=s._$AQ)||void 0===i||i.call(s,t),s._$AM=t,void 0!==s._$AP&&(e=t._$AU)!==o._$AU&&s._$AP(e)}if(e!==r||l){let t=s._$AA;for(;t!==e;){const e=t.nextSibling;n.insertBefore(t,r),t=e}}}return s},mt=(t,e,s=t)=>(t._$AI(e,s),t),_t={},At=(t,e=_t)=>t._$AH=e,bt=t=>t._$AH,Ct=t=>{var e;null===(e=t._$AP)||void 0===e||e.call(t,!1,!0);let s=t._$AA;const i=t._$AB.nextSibling;for(;s!==i;){const t=s.nextSibling;s.remove(),s=t}},wt=t=>{t._$AR()},xt=1,Et=2,St=3,Ht=4,Tt=6,kt=t=>(...e)=>({_$litDirective$:t,values:e});class Pt{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,s){this._$Ct=t,this._$AM=e,this._$Ci=s}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}const Nt=(t,e)=>{var s,i;const n=t._$AN;if(void 0===n)return!1;for(const t of n)null===(i=(s=t)._$AO)||void 0===i||i.call(s,e,!1),Nt(t,e);return!0},Mt=t=>{let e,s;do{if(void 0===(e=t._$AM))break;s=e._$AN,s.delete(t),t=e}while(0===(null==s?void 0:s.size))},Ot=t=>{for(let e;e=t._$AM;t=e){let s=e._$AN;if(void 0===s)e._$AN=s=new Set;else if(s.has(t))break;s.add(t),Rt(e)}};function Ut(t){void 0!==this._$AN?(Mt(this),this._$AM=t,Ot(this)):this._$AM=t}function jt(t,e=!1,s=0){const i=this._$AH,n=this._$AN;if(void 0!==n&&0!==n.size)if(e)if(Array.isArray(i))for(let t=s;t<i.length;t++)Nt(i[t],!1),Mt(i[t]);else null!=i&&(Nt(i,!1),Mt(i));else Nt(this,t)}const Rt=t=>{var e,s,i,n;t.type==Et&&(null!==(e=(i=t)._$AP)&&void 0!==e||(i._$AP=jt),null!==(s=(n=t)._$AQ)&&void 0!==s||(n._$AQ=Ut))};class zt extends Pt{constructor(){super(...arguments),this._$AN=void 0}_$AT(t,e,s){super._$AT(t,e,s),Ot(this),this.isConnected=t._$AU}_$AO(t,e=!0){var s,i;t!==this.isConnected&&(this.isConnected=t,t?null===(s=this.reconnected)||void 0===s||s.call(this):null===(i=this.disconnected)||void 0===i||i.call(this)),e&&(Nt(this,t),Mt(this))}setValue(t){if(gt(this._$Ct))this._$Ct._$AI(t,this);else{const e=[...this._$Ct._$AH];e[this._$Ci]=t,this._$Ct._$AI(e,this,0)}}disconnected(){}reconnected(){}}class Dt{constructor(t){this.Y=t}disconnect(){this.Y=void 0}reconnect(t){this.Y=t}deref(){return this.Y}}class Lt{constructor(){this.Z=void 0,this.q=void 0}get(){return this.Z}pause(){var t;null!==(t=this.Z)&&void 0!==t||(this.Z=new Promise((t=>this.q=t)))}resume(){var t;null===(t=this.q)||void 0===t||t.call(this),this.Z=this.q=void 0}}class Bt extends zt{constructor(){super(...arguments),this._$CK=new Dt(this),this._$CX=new Lt}render(t,e){return L}update(t,[e,s]){if(this.isConnected||this.disconnected(),e===this._$CJ)return;this._$CJ=e;let i=0;const{_$CK:n,_$CX:r}=this;return(async(t,e)=>{for await(const s of t)if(!1===await e(s))return})(e,(async t=>{for(;r.get();)await r.get();const o=n.deref();if(void 0!==o){if(o._$CJ!==e)return!1;void 0!==s&&(t=s(t,i)),o.commitValue(t,i),i++}return!0})),L}commitValue(t,e){this.setValue(t)}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}}kt(Bt),kt(class extends Bt{constructor(t){if(super(t),t.type!==Et)throw Error("asyncAppend can only be used in child expressions")}update(t,e){return this._$Ctt=t,super.update(t,e)}commitValue(t,e){0===e&&wt(this._$Ctt);const s=$t(this._$Ctt);mt(s,t)}}),kt(class extends Pt{constructor(t){super(t),this.et=new WeakMap}render(t){return[t]}update(t,[e]){if(ft(this.it)&&(!ft(e)||this.it.strings!==e.strings)){const e=bt(t).pop();let s=this.et.get(this.it.strings);if(void 0===s){const t=document.createDocumentFragment();s=K(B,t),s.setConnected(!1),this.et.set(this.it.strings,s)}At(s,[e]),$t(s,void 0,e)}if(ft(e)){if(!ft(this.it)||this.it.strings!==e.strings){const s=this.et.get(e.strings);if(void 0!==s){const e=bt(s).pop();wt(t),$t(t,void 0,e),At(t,[e])}}this.it=e}else this.it=void 0;return this.render(e)}}),kt(class extends Pt{constructor(t){var e;if(super(t),t.type!==xt||"class"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(t){return" "+Object.keys(t).filter((e=>t[e])).join(" ")+" "}update(t,[e]){var s,i;if(void 0===this.nt){this.nt=new Set,void 0!==t.strings&&(this.st=new Set(t.strings.join(" ").split(/\s/).filter((t=>""!==t))));for(const t in e)e[t]&&!(null===(s=this.st)||void 0===s?void 0:s.has(t))&&this.nt.add(t);return this.render(e)}const n=t.element.classList;this.nt.forEach((t=>{t in e||(n.remove(t),this.nt.delete(t))}));for(const t in e){const s=!!e[t];s===this.nt.has(t)||(null===(i=this.st)||void 0===i?void 0:i.has(t))||(s?(n.add(t),this.nt.add(t)):(n.remove(t),this.nt.delete(t)))}return L}});const It={};kt(class extends Pt{constructor(){super(...arguments),this.ot=It}render(t,e){return e()}update(t,[e,s]){if(Array.isArray(e)){if(Array.isArray(this.ot)&&this.ot.length===e.length&&e.every(((t,e)=>t===this.ot[e])))return L}else if(this.ot===e)return L;return this.ot=Array.isArray(e)?Array.from(e):e,this.render(e,s)}}),kt(class extends Pt{constructor(){super(...arguments),this.key=B}render(t,e){return this.key=t,e}update(t,[e,s]){return e!==this.key&&(At(t),this.key=e),s}}),kt(class extends Pt{constructor(t){if(super(t),t.type!==St&&t.type!==xt&&t.type!==Ht)throw Error("The `live` directive is not allowed on child or event bindings");if(!gt(t))throw Error("`live` bindings can only contain a single expression")}render(t){return t}update(t,[e]){if(e===L||e===B)return e;const s=t.element,i=t.name;if(t.type===St){if(e===s[i])return L}else if(t.type===Ht){if(!!e===s.hasAttribute(i))return L}else if(t.type===xt&&s.getAttribute(i)===e+"")return L;return At(t),e}});const Kt=new WeakMap,Vt=(kt(class extends zt{render(t){return B}update(t,[e]){var s;const i=e!==this.Y;return i&&void 0!==this.Y&&this.rt(void 0),(i||this.lt!==this.dt)&&(this.Y=e,this.ct=null===(s=t.options)||void 0===s?void 0:s.host,this.rt(this.dt=t.element)),B}rt(t){var e;if("function"==typeof this.Y){const s=null!==(e=this.ct)&&void 0!==e?e:globalThis;let i=Kt.get(s);void 0===i&&(i=new WeakMap,Kt.set(s,i)),void 0!==i.get(this.Y)&&this.Y.call(this.ct,void 0),i.set(this.Y,t),void 0!==t&&this.Y.call(this.ct,t)}else this.Y.value=t}get lt(){var t,e,s;return"function"==typeof this.Y?null===(e=Kt.get(null!==(t=this.ct)&&void 0!==t?t:globalThis))||void 0===e?void 0:e.get(this.Y):null===(s=this.Y)||void 0===s?void 0:s.value}disconnected(){this.lt===this.dt&&this.rt(void 0)}reconnected(){this.rt(this.dt)}}),(t,e,s)=>{const i=new Map;for(let n=e;n<=s;n++)i.set(t[n],n);return i});kt(class extends Pt{constructor(t){if(super(t),t.type!==Et)throw Error("repeat() can only be used in text expressions")}ht(t,e,s){let i;void 0===s?s=e:void 0!==e&&(i=e);const n=[],r=[];let o=0;for(const e of t)n[o]=i?i(e,o):o,r[o]=s(e,o),o++;return{values:r,keys:n}}render(t,e,s){return this.ht(t,e,s).values}update(t,[e,s,i]){var n;const r=bt(t),{values:o,keys:l}=this.ht(e,s,i);if(!Array.isArray(r))return this.ut=l,o;const a=null!==(n=this.ut)&&void 0!==n?n:this.ut=[],h=[];let d,c,u=0,p=r.length-1,v=0,f=o.length-1;for(;u<=p&&v<=f;)if(null===r[u])u++;else if(null===r[p])p--;else if(a[u]===l[v])h[v]=mt(r[u],o[v]),u++,v++;else if(a[p]===l[f])h[f]=mt(r[p],o[f]),p--,f--;else if(a[u]===l[f])h[f]=mt(r[u],o[f]),$t(t,h[f+1],r[u]),u++,f--;else if(a[p]===l[v])h[v]=mt(r[p],o[v]),$t(t,r[u],r[p]),p--,v++;else if(void 0===d&&(d=Vt(l,v,f),c=Vt(a,u,p)),d.has(a[u]))if(d.has(a[p])){const e=c.get(l[v]),s=void 0!==e?r[e]:null;if(null===s){const e=$t(t,r[u]);mt(e,o[v]),h[v]=e}else h[v]=mt(s,o[v]),$t(t,r[u],s),r[e]=null;v++}else Ct(r[p]),p--;else Ct(r[u]),u++;for(;v<=f;){const e=$t(t,h[f+1]);mt(e,o[v]),h[v++]=e}for(;u<=p;){const t=r[u++];null!==t&&Ct(t)}return this.ut=l,At(t,h),L}}),kt(class extends Pt{constructor(t){var e;if(super(t),t.type!==xt||"style"!==t.name||(null===(e=t.strings)||void 0===e?void 0:e.length)>2)throw Error("The `styleMap` directive must be used in the `style` attribute and must be the only part in the attribute.")}render(t){return Object.keys(t).reduce(((e,s)=>{const i=t[s];return null==i?e:e+`${s=s.replace(/(?:^(webkit|moz|ms|o)|)(?=[A-Z])/g,"-$&").toLowerCase()}:${i};`}),"")}update(t,[e]){const{style:s}=t.element;if(void 0===this.vt){this.vt=new Set;for(const t in e)this.vt.add(t);return this.render(e)}this.vt.forEach((t=>{null==e[t]&&(this.vt.delete(t),t.includes("-")?s.removeProperty(t):s[t]="")}));for(const t in e){const i=e[t];null!=i&&(this.vt.add(t),t.includes("-")?s.setProperty(t,i):s[t]=i)}return L}}),kt(class extends Pt{constructor(t){if(super(t),t.type!==Et)throw Error("templateContent can only be used in child bindings")}render(t){return this.ft===t?L:(this.ft=t,document.importNode(t.content,!0))}});class Yt extends Pt{constructor(t){if(super(t),this.it=B,t.type!==Et)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===B||null==t)return this._t=void 0,this.it=t;if(t===L)return t;if("string"!=typeof t)throw Error(this.constructor.directiveName+"() called with a non-string value");if(t===this.it)return this._t;this.it=t;const e=[t];return e.raw=e,this._t={_$litType$:this.constructor.resultType,strings:e,values:[]}}}Yt.directiveName="unsafeHTML",Yt.resultType=1;kt(Yt);class Wt extends Yt{}Wt.directiveName="unsafeSVG",Wt.resultType=2;kt(Wt);const qt=t=>!(t=>null===t||"object"!=typeof t&&"function"!=typeof t)(t)&&"function"==typeof t.then;kt(class extends zt{constructor(){super(...arguments),this._$Cwt=1073741823,this._$Cyt=[],this._$CK=new Dt(this),this._$CX=new Lt}render(...t){var e;return null!==(e=t.find((t=>!qt(t))))&&void 0!==e?e:L}update(t,e){const s=this._$Cyt;let i=s.length;this._$Cyt=e;const n=this._$CK,r=this._$CX;this.isConnected||this.disconnected();for(let t=0;t<e.length&&!(t>this._$Cwt);t++){const o=e[t];if(!qt(o))return this._$Cwt=t,o;t<i&&o===s[t]||(this._$Cwt=1073741823,i=0,Promise.resolve(o).then((async t=>{for(;r.get();)await r.get();const e=n.deref();if(void 0!==e){const s=e._$Cyt.indexOf(o);s>-1&&s<e._$Cwt&&(e._$Cwt=s,e.setValue(t))}})))}return L}disconnected(){this._$CK.disconnect(),this._$CX.pause()}reconnected(){this._$CK.reconnect(this),this._$CX.resume()}});const Xt=B,Zt=t=>e=>"function"==typeof e?((t,e)=>(customElements.define(t,e),e))(t,e):((t,e)=>{const{kind:s,elements:i}=e;return{kind:s,elements:i,finisher(e){customElements.define(t,e)}}})(t,e);class Ft extends ot{initialized(){}connected(){}disconnected(){}get template(){return Xt}render(){return this.template}firstUpdated(t){super.firstUpdated(t),this.initialized()}connectedCallback(){super.connectedCallback(),this.connected()}disconnectedCallback(){super.disconnectedCallback(),this.disconnected()}}const Jt=()=>t=>{const e=new t;Qt.handlers.add(e)};class Qt extends Pt{constructor(t){if(super(t),t.type!==Tt)throw new Error("observeMutation can only be used on an element");const e=t;this.element=e.element}render(t){for(const[e,s]of Object.entries(t)){([...Qt.handlers].find((t=>t.handles(this.element,[e,s])))??Qt.defaultHandler).apply(this.element,[e,s])}}}Qt.handlers=new Set,Qt.defaultHandler=new class{handles(){return!0}apply(t,[e,s]){t.style[e]=null==s?"":s}};const Gt=kt(Qt);var te;let ee=te=class{static getProportion(t){return Number(t.replace(te.regex,"$1")||1)}handles(t,[e,s]){return te.supportedKeys.has(e)&&te.regex.test(s)}apply(t,[,e]){const s=te.getProportion(e);t.style.flexGrow=String(s)}};ee.supportedKeys=new Set(["width","height"]),ee.regex=/^\s*(0|[1-9][0-9]*)?\s*\*\s*$/,ee=te=t([Jt()],ee);let se=class{handles(t,[e]){return e.startsWith("--")}apply(t,[e,s]){t.style.setProperty(e,s)}};se=t([Jt()],se);const ie=new Map([[Array,(t,e)=>[...e??[],...t]],[Set,(t,e)=>new Set([...e??[],...t])],[Map,(t,e)=>new Map([...e??[],...t])]]),ne=(t,e)=>e?Object.assign(t,e):t;const re=({constructorPropertyKey:t,prototype:e,initialValue:s,lifecycleHooks:i,inheritanceHandler:n})=>{const r=e,o=e.constructor,l=Object.getOwnPropertyDescriptor(o,t)?.value;if(l)return l;const a=n??function(t){const e="constructor"in t?t.constructor:void 0;return ie.get(e)??ne}(s),h=a(s,o[t]);Object.defineProperty(o,t,{value:h});for(const[t,e]of i??[]){const s=r[t];r[t]=function(...t){s.call(this,...t),e.call(this,h,...t)}}return h},oe=Symbol("updatedObservers"),le=t=>(e,s)=>{re({prototype:e,constructorPropertyKey:oe,initialValue:new Map,lifecycleHooks:new Map([["updated",function(t,e){for(const[s,i]of e){const e=s,n=t?.get(e);void 0!==n&&n.call(this,this[e],i)}}]])}).set(s,t)},ae=t=>(e,s)=>(t?.updated&&le(t.updated)(e,s),function(t){return(e,s)=>void 0!==s?((t,e,s)=>{e.constructor.createProperty(s,t)})(t,e,s):at(t,e)}(t)(e,s));const he=Symbol("eventListeners"),de=ot.prototype.connectedCallback;ot.prototype.connectedCallback=function(){de.call(this);const t=ue(this);for(const{type:e,target:s,options:i,descriptor:n,propertyKey:r}of t?.values()??[])fe.call(this,r,n),pe.call(this,s)?.addEventListener(e,ve.call(this,r),i)};const ce=ot.prototype.disconnectedCallback;function ue(t){return t.constructor[he]}function pe(t){return"function"==typeof t?t.call(this):t??this}function ve(t){return Object.getOwnPropertyDescriptor(this,ge(t))?.value}function fe(t,e){const s=e?"function"==typeof e.get?e.get:e.value:Object.getOwnPropertyDescriptor(this,t)?.value;if(!1===ye(s))throw new TypeError(`${this.constructor}.${t} is not a function`);Object.defineProperty(this,ge(t),{value:s.bind(this),configurable:!0,enumerable:!1,writable:!1})}ot.prototype.disconnectedCallback=function(){ce.call(this);const t=ue(this);for(const{type:e,target:s,options:i,propertyKey:n}of t?.values()??[])pe.call(this,s)?.removeEventListener(e,ve.call(this,n),i)};const ge=t=>`$BOUND_${t}$`,ye=t=>{const e="function"==typeof t,s="object"==typeof t&&null!==t&&"handleEvent"in t&&"function"==typeof t.handleEvent;return e||s};class $e extends class{constructor(t){this.host=t,this.host.addController(this)}}{constructor(t,e){super(t),this.host=t,this.slotChangeCallback=e,this.mutationObserver=new MutationObserver(this.handleMutation.bind(this)).observe(this.host,{childList:!0,subtree:!0}),this.handleChange=()=>{var t;this.host.requestUpdate(),null===(t=this.slotChangeCallback)||void 0===t||t.call(this)}}getAssignedNodes(t){var e;const s=null===(e=this.host.shadowRoot)||void 0===e?void 0:e.querySelector(t?`slot[name="${t}"]`:"slot:not([name])");return s?this.extractNodesFromSlot(s):this.extractNodesFromChildren(t)}hasAssignedNodes(t){return this.getAssignedNodes(t).length>0}hasAssignedContent(t){return this.getAssignedNodes(t).some((t=>{var e;return t.nodeType===Node.TEXT_NODE&&(null===(e=t.textContent)||void 0===e?void 0:e.trim())||t.nodeType===Node.ELEMENT_NODE}))}getAssignedElements(t){return this.getAssignedNodes(t).filter((t=>t instanceof Element))}hasAssignedElements(t){return this.getAssignedElements(t).length>0}extractNodesFromSlot(t){return t.assignedNodes().flatMap((t=>t instanceof HTMLSlotElement?this.extractNodesFromSlot(t):[t]))}extractNodesFromChildren(t){return[...this.host.childNodes].filter((t=>{var e;return t instanceof Element||t instanceof Text&&!!(null===(e=t.textContent)||void 0===e?void 0:e.trim())})).filter((e=>e instanceof Element?e.slot===t:!t)).flatMap((t=>t instanceof HTMLSlotElement?t.assignedNodes():[t]))}hostConnected(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.addEventListener("slotchange",this.handleChange)}hostDisconnected(){var t;null===(t=this.host.shadowRoot)||void 0===t||t.removeEventListener("slotchange",this.handleChange)}handleMutation(t){t.some((t=>"childList"===t.type))&&this.handleChange()}}let me=class extends Ft{constructor(){super(...arguments),this.typography="heading3"}static get styles(){return l`:host{display:block}:host([typography=heading1]){font-size:min(2.5em,36px);letter-spacing:-.75px;font-weight:300}:host([typography=heading2]){font-size:min(2em,30px);letter-spacing:-.5px;font-weight:300}:host([typography=heading3]){font-size:min(1.8em,24px);letter-spacing:-.25px;font-weight:400}:host([typography=heading4]){font-size:min(1.5em,18px);font-weight:400}:host([typography=heading5]){font-size:min(1.17em,16px);font-weight:500}:host([typography=heading6]){font-size:min(1em,14px);letter-spacing:.15px;font-weight:500}:host([typography=subtitle1]){font-size:min(1.15em,18px);letter-spacing:.15px;font-weight:400}:host([typography=subtitle2]){font-size:min(1em,14px);letter-spacing:.1px;font-weight:400}`}get template(){return z`<slot></slot>`}};var _e;t([ae({reflect:!0})],me.prototype,"typography",void 0),me=t([Zt("mo-heading")],me);let Ae=_e=class extends Ft{get direction(){var t;return(null===(t=[..._e.flexDirectionByDirections].find((([,t])=>this.style.flexDirection===t)))||void 0===t?void 0:t[0])||"vertical"}set direction(t){this.style.flexDirection=_e.flexDirectionByDirections.get(t)||"column"}get wrap(){return this.style.flexWrap}set wrap(t){this.style.flexWrap=t}get gap(){return this.style.gap}set gap(t){this.style.gap=t}get justifyItems(){return this.style.justifyItems}set justifyItems(t){this.style.justifyItems=t}get justifyContent(){return this.style.justifyContent}set justifyContent(t){this.style.justifyContent=t}get alignItems(){return this.style.alignItems}set alignItems(t){this.style.alignItems=t}get alignContent(){return this.style.alignContent}set alignContent(t){this.style.alignContent=t}static get styles(){return l`:host{display:flex;flex-direction:column;flex-wrap:nowrap}`}get template(){return z`<slot></slot>`}};Ae.flexDirectionByDirections=new Map([["horizontal","row"],["horizontal-reversed","row-reverse"],["vertical","column"],["vertical-reversed","column-reverse"]]),t([ae()],Ae.prototype,"direction",null),t([ae()],Ae.prototype,"wrap",null),t([ae()],Ae.prototype,"gap",null),t([ae()],Ae.prototype,"justifyItems",null),t([ae()],Ae.prototype,"justifyContent",null),t([ae()],Ae.prototype,"alignItems",null),t([ae()],Ae.prototype,"alignContent",null),Ae=_e=t([Zt("mo-flex")],Ae);let be=class extends Ft{constructor(){super(...arguments),this.type="filled",this.slotController=new $e(this)}static get styles(){return l`:host{display:block;border-radius:var(--mo-border-radius,4px)}:host([type="${o("filled")}"]){background:var(--mo-color-surface,#fff);box-shadow:var(--mo-shadow,rgba(95,81,78,.4) 0 1px 2px 0,rgba(95,81,78,.2) 0 1px 3px 1px)}:host([type="${o("outlined")}"]){border:1px solid var(--mo-color-transparent-gray-3,rgba(0,0,0,.12))}slot[name=header]{display:flex;gap:6px;padding:var(--mo-card-header-padding,16px)}slot[name=heading]{display:block;flex:1}slot[name=media]::slotted(:first-child),slot[name=media]>:first-child{border-radius:var(--mo-border-radius,4px) var(--mo-border-radius,4px) 0 0;display:block;background-size:cover;background-repeat:no-repeat;background-position:center center;width:100%;object-fit:cover}slot:not([name]){display:block;flex:1}div[part=avatar]{height:40px;width:40px;aspect-ratio:1/1;display:flex;user-select:none;justify-content:center;align-items:center;border-radius:50%;font-size:18px;background:var(--mo-card-avatar-background,var(--mo-color-accent,#0077c8));color:var(--mo-card-avatar-color,var(--mo-color-on-accent,#fff))}:host([hasBody]) slot:not([name]){padding:var(--mo-card-body-padding,16px)}:host([hasBody][hasHeader]) slot:not([name]){padding:var(--mo-card-body-padding,0 16px 16px 16px)}slot[name=footer]{display:block;padding:var(--mo-card-footer-padding,8px)}`}get template(){return z`<mo-flex ${Gt({width:"100%",height:"100%"})}>${this.mediaTemplate} ${this.headerTemplate} ${this.bodyTemplate} ${this.footerTemplate}</mo-flex>`}get mediaTemplate(){return!!this.image||this.slotController.hasAssignedElements("media")?z`<slot part="media" name="media">${this.image?z`<img part="media" src="${this.image}">`:Xt}</slot>`:Xt}get headerTemplate(){const t=this.slotController.hasAssignedElements("header")||!!this.avatar||!!this.heading||!!this.subHeading||this.slotController.hasAssignedElements("avatar")||this.slotController.hasAssignedElements("heading")||this.slotController.hasAssignedElements("subHeading")||this.slotController.hasAssignedElements("action");return t?this.setAttribute("hasHeader",""):this.removeAttribute("hasHeader"),t?z`<slot part="header" name="header">${this.defaultHeaderAvatarTemplate}<mo-flex justifyContent="space-around" ${Gt({width:"*"})}>${this.defaultHeaderHeadingTemplate} ${this.defaultHeaderSubHeadingTemplate}</mo-flex>${this.defaultHeaderActionTemplate}</slot>`:Xt}get defaultHeaderAvatarTemplate(){return z`<slot name="avatar">${this.avatar?z`<div part="avatar" ${Gt({marginInlineEnd:"6px"})}>${this.avatar}</div>`:Xt}</slot>`}get defaultHeaderHeadingTemplate(){return z`<slot name="heading">${this.heading?z`<mo-heading part="heading" typography="heading4" ${Gt({fontWeight:"500"})}>${this.heading}</mo-heading>`:Xt}</slot>`}get defaultHeaderSubHeadingTemplate(){return z`<slot name="subHeading">${this.subHeading?z`<mo-heading part="subHeading" typography="heading6" ${Gt({fontWeight:"400",color:"rgb(121, 121, 121)"})}>${this.subHeading}</mo-heading>`:Xt}</slot>`}get defaultHeaderActionTemplate(){return z`<slot name="action"></slot>`}get bodyTemplate(){return this.slotController.hasAssignedContent("")?this.setAttribute("hasBody",""):this.removeAttribute("hasBody"),z`<slot></slot>`}get footerTemplate(){return this.slotController.hasAssignedElements("footer")?z`<slot part="footer" name="footer"></slot>`:Xt}};t([ae({reflect:!0})],be.prototype,"type",void 0),t([ae()],be.prototype,"heading",void 0),t([ae()],be.prototype,"subHeading",void 0),t([ae()],be.prototype,"avatar",void 0),t([ae()],be.prototype,"image",void 0),be=t([Zt("mo-card")],be)})();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@3mo/card",
3
- "version": "0.2.0",
3
+ "version": "0.2.1",
4
4
  "description": "A card web-component based on Material Design.",
5
5
  "repository": {
6
6
  "type": "git",