cas-ds-web-components 1.2.159 → 1.2.161
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.
- package/build/cas-ds-web-components.js +5 -5
- package/build/cas-header.js +4 -4
- package/build/cas-text.js +12 -12
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(I,b1){typeof exports=="object"&&typeof module<"u"?b1(exports):typeof define=="function"&&define.amd?define(["exports"],b1):(I=typeof globalThis<"u"?globalThis:I||self,b1(I["all-components"]={}))})(this,function(I){"use strict";var Wm=Object.defineProperty;var qm=(I,b1,J2)=>b1 in I?Wm(I,b1,{enumerable:!0,configurable:!0,writable:!0,value:J2}):I[b1]=J2;var m=(I,b1,J2)=>(qm(I,typeof b1!="symbol"?b1+"":b1,J2),J2);var l6,il;(()=>{const e=document.createElement("link");e.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),e.setAttribute("rel","stylesheet"),document.head.appendChild(e)})();const T4={name:"@eloisa-ds/all-components",version:"1.0.
|
|
1
|
+
(function(I,b1){typeof exports=="object"&&typeof module<"u"?b1(exports):typeof define=="function"&&define.amd?define(["exports"],b1):(I=typeof globalThis<"u"?globalThis:I||self,b1(I["all-components"]={}))})(this,function(I){"use strict";var Wm=Object.defineProperty;var qm=(I,b1,J2)=>b1 in I?Wm(I,b1,{enumerable:!0,configurable:!0,writable:!0,value:J2}):I[b1]=J2;var m=(I,b1,J2)=>(qm(I,typeof b1!="symbol"?b1+"":b1,J2),J2);var l6,il;(()=>{const e=document.createElement("link");e.setAttribute("href","https://fonts.googleapis.com/css2?family=Rubik:ital,wght@0,300..900;1,300..900&display=swap"),e.setAttribute("rel","stylesheet"),document.head.appendChild(e)})();const T4={name:"@eloisa-ds/all-components",version:"1.0.161",dependencies:{},main:"./index.js",module:"./index.mjs",typings:"./index.d.ts",private:!0};/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -15691,7 +15691,7 @@
|
|
|
15691
15691
|
Copyright (c) 2018 Jed Watson.
|
|
15692
15692
|
Licensed under the MIT License (MIT), see
|
|
15693
15693
|
http://jedwatson.github.io/classnames
|
|
15694
|
-
*/(function(e){(function(){var C={}.hasOwnProperty;function t(){for(var s="",o=0;o<arguments.length;o++){var n=arguments[o];n&&(s=l(s,i(n)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var n in s)C.call(s,n)&&s[n]&&(o=l(o,n));return o}function l(s,o){return o?s?s+" "+o:s+o:s}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(Y0);var Pc=Y0.exports;const g1=g0(Pc);function Fc(e,C,t){const
|
|
15694
|
+
*/(function(e){(function(){var C={}.hasOwnProperty;function t(){for(var s="",o=0;o<arguments.length;o++){var n=arguments[o];n&&(s=l(s,i(n)))}return s}function i(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var n in s)C.call(s,n)&&s[n]&&(o=l(o,n));return o}function l(s,o){return o?s?s+" "+o:s+o:s}e.exports?(t.default=t,e.exports=t):window.classNames=t})()})(Y0);var Pc=Y0.exports;const g1=g0(Pc);function Fc(e,C,t,i){const l=g1({base:!0,[e]:e,[t]:t,[i]:i});return{tag:Oc[C||e]||"p",classNames:l}}const Dc=y`
|
|
15695
15695
|
html {
|
|
15696
15696
|
font-size: var(--eloisa-ds-font-size-base, 16px);
|
|
15697
15697
|
}
|
|
@@ -16143,13 +16143,13 @@
|
|
|
16143
16143
|
}
|
|
16144
16144
|
}
|
|
16145
16145
|
|
|
16146
|
-
`;class Z6 extends _{constructor(){super(),this.variant="body1"}render(){const{tag:C,classNames:t}=Fc(this.variant,this.component,this.mobileVariant);let i;return this.text&&this.text!==""?i=`<${C} class="${t}">
|
|
16146
|
+
`;class Z6 extends _{constructor(){super(),this.variant="body1"}render(){const{tag:C,classNames:t}=Fc(this.variant,this.component,this.mobileVariant,this.class);let i;return this.text&&this.text!==""?i=`<${C} class="${t}">
|
|
16147
16147
|
${this.text}
|
|
16148
16148
|
</${C}>
|
|
16149
|
-
`:i=`<${C} class="${t}">
|
|
16149
|
+
`:i=`<${C} class="${t}" part="text-element">
|
|
16150
16150
|
<slot></slot>
|
|
16151
16151
|
</${C}>
|
|
16152
|
-
`,a`${r3(i)}`}}m(Z6,"styles",Dc),m(Z6,"shadowRootOptions",{..._.shadowRootOptions,mode:"closed"}),m(Z6,"properties",{variant:{type:String},component:{type:String},mobileVariant:{type:String},text:{type:String}}),customElements.get("cas-text")||customElements.define("cas-text",Z6);const z1=({variant:e="primary1",color:C,colorHover:t,colorActive:i,bgColor:l,bgColorHover:s,bgColorActive:o,bgColorDisabled:n,boxShadow:h="none",boxShadowHover:r="none",boxShadowPressed:d="none",boxShadowDisabled:c="none"})=>Z(`
|
|
16152
|
+
`,a`${r3(i)}`}}m(Z6,"styles",Dc),m(Z6,"shadowRootOptions",{..._.shadowRootOptions,mode:"closed"}),m(Z6,"properties",{variant:{type:String},component:{type:String},mobileVariant:{type:String},text:{type:String},class:{type:String}}),customElements.get("cas-text")||customElements.define("cas-text",Z6);const z1=({variant:e="primary1",color:C,colorHover:t,colorActive:i,bgColor:l,bgColorHover:s,bgColorActive:o,bgColorDisabled:n,boxShadow:h="none",boxShadowHover:r="none",boxShadowPressed:d="none",boxShadowDisabled:c="none"})=>Z(`
|
|
16153
16153
|
.${e} {
|
|
16154
16154
|
background-color: ${Z(l)};
|
|
16155
16155
|
box-sizing: border-box;
|
package/build/cas-header.js
CHANGED
|
@@ -15691,7 +15691,7 @@
|
|
|
15691
15691
|
Copyright (c) 2018 Jed Watson.
|
|
15692
15692
|
Licensed under the MIT License (MIT), see
|
|
15693
15693
|
http://jedwatson.github.io/classnames
|
|
15694
|
-
*/(function(a){(function(){var C={}.hasOwnProperty;function t(){for(var s="",o=0;o<arguments.length;o++){var n=arguments[o];n&&(s=l(s,e(n)))}return s}function e(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var n in s)C.call(s,n)&&s[n]&&(o=l(o,n));return o}function l(s,o){return o?s?s+" "+o:s+o:s}a.exports?(t.default=t,a.exports=t):window.classNames=t})()})(N8);var gh=N8.exports;const u1=Pt(gh);function fh(a,C,t){const
|
|
15694
|
+
*/(function(a){(function(){var C={}.hasOwnProperty;function t(){for(var s="",o=0;o<arguments.length;o++){var n=arguments[o];n&&(s=l(s,e(n)))}return s}function e(s){if(typeof s=="string"||typeof s=="number")return s;if(typeof s!="object")return"";if(Array.isArray(s))return t.apply(null,s);if(s.toString!==Object.prototype.toString&&!s.toString.toString().includes("[native code]"))return s.toString();var o="";for(var n in s)C.call(s,n)&&s[n]&&(o=l(o,n));return o}function l(s,o){return o?s?s+" "+o:s+o:s}a.exports?(t.default=t,a.exports=t):window.classNames=t})()})(N8);var gh=N8.exports;const u1=Pt(gh);function fh(a,C,t,e){const l=u1({base:!0,[a]:a,[t]:t,[e]:e});return{tag:Zh[C||a]||"p",classNames:l}}const wh=f`
|
|
15695
15695
|
html {
|
|
15696
15696
|
font-size: var(--eloisa-ds-font-size-base, 16px);
|
|
15697
15697
|
}
|
|
@@ -16143,13 +16143,13 @@
|
|
|
16143
16143
|
}
|
|
16144
16144
|
}
|
|
16145
16145
|
|
|
16146
|
-
`;class k3 extends V{constructor(){super(),this.variant="body1"}render(){const{tag:C,classNames:t}=fh(this.variant,this.component,this.mobileVariant);let e;return this.text&&this.text!==""?e=`<${C} class="${t}">
|
|
16146
|
+
`;class k3 extends V{constructor(){super(),this.variant="body1"}render(){const{tag:C,classNames:t}=fh(this.variant,this.component,this.mobileVariant,this.class);let e;return this.text&&this.text!==""?e=`<${C} class="${t}">
|
|
16147
16147
|
${this.text}
|
|
16148
16148
|
</${C}>
|
|
16149
|
-
`:e=`<${C} class="${t}">
|
|
16149
|
+
`:e=`<${C} class="${t}" part="text-element">
|
|
16150
16150
|
<slot></slot>
|
|
16151
16151
|
</${C}>
|
|
16152
|
-
`,i`${m3(e)}`}}w(k3,"styles",wh),w(k3,"shadowRootOptions",{...V.shadowRootOptions,mode:"closed"}),w(k3,"properties",{variant:{type:String},component:{type:String},mobileVariant:{type:String},text:{type:String}}),customElements.get("cas-text")||customElements.define("cas-text",k3);const R=({variant:a="primary1",color:C,colorHover:t,colorActive:e,bgColor:l,bgColorHover:s,bgColorActive:o,bgColorDisabled:n,boxShadow:h="none",boxShadowHover:r="none",boxShadowPressed:d="none",boxShadowDisabled:c="none"})=>M(`
|
|
16152
|
+
`,i`${m3(e)}`}}w(k3,"styles",wh),w(k3,"shadowRootOptions",{...V.shadowRootOptions,mode:"closed"}),w(k3,"properties",{variant:{type:String},component:{type:String},mobileVariant:{type:String},text:{type:String},class:{type:String}}),customElements.get("cas-text")||customElements.define("cas-text",k3);const R=({variant:a="primary1",color:C,colorHover:t,colorActive:e,bgColor:l,bgColorHover:s,bgColorActive:o,bgColorDisabled:n,boxShadow:h="none",boxShadowHover:r="none",boxShadowPressed:d="none",boxShadowDisabled:c="none"})=>M(`
|
|
16153
16153
|
.${a} {
|
|
16154
16154
|
background-color: ${M(l)};
|
|
16155
16155
|
box-sizing: border-box;
|
package/build/cas-text.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_,v){typeof exports=="object"&&typeof module<"u"?v(exports,require("@eloisa-ds/base-styles")):typeof define=="function"&&define.amd?define(["exports","@eloisa-ds/base-styles"],v):(_=typeof globalThis<"u"?globalThis:_||self,v(_["cas-text"]={},_.baseStyles))})(this,function(_,v){"use strict";var ci=Object.defineProperty;var ui=(_,v,A)=>v in _?ci(_,v,{enumerable:!0,configurable:!0,writable:!0,value:A}):_[v]=A;var dt=(_,v,A)=>(ui(_,typeof v!="symbol"?v+"":v,A),A);/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -6,19 +6,19 @@
|
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var $t;const tt=window,Ut=tt.trustedTypes,xe=Ut?Ut.emptyScript:"",Pt=tt.reactiveElementPolyfillSupport,pt={toAttribute(l,t){switch(t){case Boolean:l=l?xe:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,t){let e=l;switch(t){case Boolean:e=l!==null;break;case Number:e=l===null?null:Number(l);break;case Object:case Array:try{e=JSON.parse(l)}catch{e=null}}return e}},Rt=(l,t)=>t!==l&&(t==t||l==l),ft={attribute:!0,type:String,converter:pt,reflect:!1,hasChanged:Rt},mt="finalized";let T=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=ft){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||ft}static finalize(){if(this.hasOwnProperty(mt))return!1;this[mt]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Mt(s))}else t!==void 0&&e.push(Mt(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||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 e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return we(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=ft){var s;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const n=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:pt).toAttribute(e,i.type);this._$El=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const n=s.getPropertyOptions(o),
|
|
9
|
+
*/var $t;const tt=window,Ut=tt.trustedTypes,xe=Ut?Ut.emptyScript:"",Pt=tt.reactiveElementPolyfillSupport,pt={toAttribute(l,t){switch(t){case Boolean:l=l?xe:null;break;case Object:case Array:l=l==null?l:JSON.stringify(l)}return l},fromAttribute(l,t){let e=l;switch(t){case Boolean:e=l!==null;break;case Number:e=l===null?null:Number(l);break;case Object:case Array:try{e=JSON.parse(l)}catch{e=null}}return e}},Rt=(l,t)=>t!==l&&(t==t||l==l),ft={attribute:!0,type:String,converter:pt,reflect:!1,hasChanged:Rt},mt="finalized";let T=class extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),((e=this.h)!==null&&e!==void 0?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach((e,i)=>{const s=this._$Ep(i,e);s!==void 0&&(this._$Ev.set(s,i),t.push(s))}),t}static createProperty(t,e=ft){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const i=typeof t=="symbol"?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(s){const o=this[t];this[e]=s,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||ft}static finalize(){if(this.hasOwnProperty(mt))return!1;this[mt]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),t.h!==void 0&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const e=this.properties,i=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const s of i)this.createProperty(s,e[s])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Mt(s))}else t!==void 0&&e.push(Mt(t));return e}static _$Ep(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$Eg(),this.requestUpdate(),(t=this.constructor.h)===null||t===void 0||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)===null||i===void 0||i.call(t))}removeController(t){var e;(e=this._$ES)===null||e===void 0||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 e=(t=this.shadowRoot)!==null&&t!==void 0?t:this.attachShadow(this.constructor.shadowRootOptions);return we(e,this.constructor.elementStyles),e}connectedCallback(){var t;this.renderRoot===void 0&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostConnected)===null||i===void 0?void 0:i.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var i;return(i=e.hostDisconnected)===null||i===void 0?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=ft){var s;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const n=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:pt).toAttribute(e,i.type);this._$El=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,o=s._$Ev.get(t);if(o!==void 0&&this._$El!==o){const n=s.getPropertyOptions(o),d=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?n.converter:pt;this._$El=o,this[o]=d.fromAttribute(e,n.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Rt)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,i))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this.hasUpdated,this._$Ei&&(this._$Ei.forEach((s,o)=>this[o]=s),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),(t=this._$ES)===null||t===void 0||t.forEach(s=>{var o;return(o=s.hostUpdate)===null||o===void 0?void 0:o.call(s)}),this.update(i)):this._$Ek()}catch(s){throw e=!1,this._$Ek(),s}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(i=>{var s;return(s=i.hostUpdated)===null||s===void 0?void 0:s.call(i)}),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){this._$EC!==void 0&&(this._$EC.forEach((e,i)=>this._$EO(i,this[i],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}};T[mt]=!0,T.elementProperties=new Map,T.elementStyles=[],T.shadowRootOptions={mode:"open"},Pt==null||Pt({ReactiveElement:T}),(($t=tt.reactiveElementVersions)!==null&&$t!==void 0?$t:tt.reactiveElementVersions=[]).push("1.6.3");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var
|
|
13
|
+
*/var gt;const et=window,M=et.trustedTypes,Ot=M?M.createPolicy("lit-html",{createHTML:l=>l}):void 0,_t="$lit$",y=`lit$${(Math.random()+"").slice(9)}$`,It="?"+y,Ee=`<${It}>`,E=document,it=()=>E.createComment(""),W=l=>l===null||typeof l!="object"&&typeof l!="function",Lt=Array.isArray,Se=l=>Lt(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",vt=`[
|
|
14
14
|
\f\r]`,Z=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Bt=/-->/g,jt=/>/g,S=RegExp(`>|${vt}(?:([^\\s"'>=/]+)(${vt}*=${vt}*(?:[^
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),Dt=/'/g,Vt=/"/g,Wt=/^(?:script|style|textarea|title)$/i,q=Symbol.for("lit-noChange"),f=Symbol.for("lit-nothing"),Zt=new WeakMap,H=E.createTreeWalker(E,129,null,!1);function qt(l,t){if(!Array.isArray(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ot!==void 0?Ot.createHTML(t):t}const He=(l,t)=>{const e=l.length-1,i=[];let s,o=t===2?"<svg>":"",n=Z;for(let
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Dt=/'/g,Vt=/"/g,Wt=/^(?:script|style|textarea|title)$/i,q=Symbol.for("lit-noChange"),f=Symbol.for("lit-nothing"),Zt=new WeakMap,H=E.createTreeWalker(E,129,null,!1);function qt(l,t){if(!Array.isArray(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ot!==void 0?Ot.createHTML(t):t}const He=(l,t)=>{const e=l.length-1,i=[];let s,o=t===2?"<svg>":"",n=Z;for(let d=0;d<e;d++){const r=l[d];let h,u,a=-1,c=0;for(;c<r.length&&(n.lastIndex=c,u=n.exec(r),u!==null);)c=n.lastIndex,n===Z?u[1]==="!--"?n=Bt:u[1]!==void 0?n=jt:u[2]!==void 0?(Wt.test(u[2])&&(s=RegExp("</"+u[2],"g")),n=S):u[3]!==void 0&&(n=S):n===S?u[0]===">"?(n=s??Z,a=-1):u[1]===void 0?a=-2:(a=n.lastIndex-u[2].length,h=u[1],n=u[3]===void 0?S:u[3]==='"'?Vt:Dt):n===Vt||n===Dt?n=S:n===Bt||n===jt?n=Z:(n=S,s=void 0);const $=n===S&&l[d+1].startsWith("/>")?" ":"";o+=n===Z?r+Ee:a>=0?(i.push(h),r.slice(0,a)+_t+r.slice(a)+y+$):r+y+(a===-2?(i.push(void 0),d):$)}return[qt(l,o+(l[e]||"<?>")+(t===2?"</svg>":"")),i]};let At=class _e{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,n=0;const d=t.length-1,r=this.parts,[h,u]=He(t,e);if(this.el=_e.createElement(h,i),H.currentNode=this.el.content,e===2){const a=this.el.content,c=a.firstChild;c.remove(),a.append(...c.childNodes)}for(;(s=H.nextNode())!==null&&r.length<d;){if(s.nodeType===1){if(s.hasAttributes()){const a=[];for(const c of s.getAttributeNames())if(c.endsWith(_t)||c.startsWith(y)){const $=u[n++];if(a.push(c),$!==void 0){const x=s.getAttribute($.toLowerCase()+_t).split(y),g=/([.?@])?(.*)/.exec($);r.push({type:1,index:o,name:g[2],strings:x,ctor:g[1]==="."?Ne:g[1]==="?"?ke:g[1]==="@"?Te:st})}else r.push({type:6,index:o})}for(const c of a)s.removeAttribute(c)}if(Wt.test(s.tagName)){const a=s.textContent.split(y),c=a.length-1;if(c>0){s.textContent=M?M.emptyScript:"";for(let $=0;$<c;$++)s.append(a[$],it()),H.nextNode(),r.push({type:2,index:++o});s.append(a[c],it())}}}else if(s.nodeType===8)if(s.data===It)r.push({type:2,index:o});else{let a=-1;for(;(a=s.data.indexOf(y,a+1))!==-1;)r.push({type:7,index:o}),a+=y.length-1}o++}}static createElement(t,e){const i=E.createElement("template");return i.innerHTML=t,i}};function U(l,t,e=l,i){var s,o,n,d;if(t===q)return t;let r=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const h=W(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==h&&((o=r==null?void 0:r._$AO)===null||o===void 0||o.call(r,!1),h===void 0?r=void 0:(r=new h(l),r._$AT(l,e,i)),i!==void 0?((n=(d=e)._$Co)!==null&&n!==void 0?n:d._$Co=[])[i]=r:e._$Cl=r),r!==void 0&&(t=U(l,r._$AS(l,t.values),r,i)),t}let Ce=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:E).importNode(i,!0);H.currentNode=o;let n=H.nextNode(),d=0,r=0,h=s[0];for(;h!==void 0;){if(d===h.index){let u;h.type===2?u=new Kt(n,n.nextSibling,this,t):h.type===1?u=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(u=new Me(n,this,t)),this._$AV.push(u),h=s[++r]}d!==(h==null?void 0:h.index)&&(n=H.nextNode(),d++)}return H.currentNode=E,o}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Kt=class ve{constructor(t,e,i,s){var o;this.type=2,this._$AH=f,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=U(this,t,e),W(t)?t===f||t==null||t===""?(this._$AH!==f&&this._$AR(),this._$AH=f):t!==this._$AH&&t!==q&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Se(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==f&&W(this._$AH)?this._$AA.nextSibling.data=t:this.$(E.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=At.createElement(qt(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(i);else{const n=new Ce(o,this),d=n.u(this.options);n.v(i),this.$(d),this._$AH=n}}_$AC(t){let e=Zt.get(t.strings);return e===void 0&&Zt.set(t.strings,e=new At(t)),e}T(t){Lt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new ve(this.k(it()),this.k(it()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},st=class{constructor(t,e,i,s,o){this.type=1,this._$AH=f,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=f}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let n=!1;if(o===void 0)t=U(this,t,e,0),n=!W(t)||t!==this._$AH&&t!==q,n&&(this._$AH=t);else{const d=t;let r,h;for(t=o[0],r=0;r<o.length-1;r++)h=U(this,d[i+r],e,r),h===q&&(h=this._$AH[r]),n||(n=!W(h)||h!==this._$AH[r]),h===f?t=f:t!==f&&(t+=(h??"")+o[r+1]),this._$AH[r]=h}n&&!s&&this.j(t)}j(t){t===f?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Ne=class extends st{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===f?void 0:t}};const ze=M?M.emptyScript:"";let ke=class extends st{constructor(){super(...arguments),this.type=4}j(t){t&&t!==f?this.element.setAttribute(this.name,ze):this.element.removeAttribute(this.name)}},Te=class extends st{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=U(this,t,e,0))!==null&&i!==void 0?i:f)===q)return;const s=this._$AH,o=t===f&&s!==f||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==f&&(s===f||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}},Me=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}};const Ft=et.litHtmlPolyfillSupport;Ft==null||Ft(At,Kt),((gt=et.litHtmlVersions)!==null&>!==void 0?gt:et.litHtmlVersions=[]).push("2.8.0");/**
|
|
16
16
|
* @license
|
|
17
17
|
* Copyright 2017 Google LLC
|
|
18
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
19
|
*/var yt;const nt=window,P=nt.trustedTypes,Jt=P?P.createPolicy("lit-html",{createHTML:l=>l}):void 0,bt="$lit$",b=`lit$${(Math.random()+"").slice(9)}$`,Yt="?"+b,Ue=`<${Yt}>`,C=document,K=()=>C.createComment(""),F=l=>l===null||typeof l!="object"&&typeof l!="function",Gt=Array.isArray,Pe=l=>Gt(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",wt=`[
|
|
20
20
|
\f\r]`,J=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qt=/-->/g,Xt=/>/g,N=RegExp(`>|${wt}(?:([^\\s"'>=/]+)(${wt}*=${wt}*(?:[^
|
|
21
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),te=/'/g,ee=/"/g,ie=/^(?:script|style|textarea|title)$/i,Re=l=>(t,...e)=>({_$litType$:l,strings:t,values:e}),Oe=Re(1),R=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),se=new WeakMap,z=C.createTreeWalker(C,129,null,!1);function ne(l,t){if(!Array.isArray(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return Jt!==void 0?Jt.createHTML(t):t}const Ie=(l,t)=>{const e=l.length-1,i=[];let s,o=t===2?"<svg>":"",n=J;for(let
|
|
21
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),te=/'/g,ee=/"/g,ie=/^(?:script|style|textarea|title)$/i,Re=l=>(t,...e)=>({_$litType$:l,strings:t,values:e}),Oe=Re(1),R=Symbol.for("lit-noChange"),m=Symbol.for("lit-nothing"),se=new WeakMap,z=C.createTreeWalker(C,129,null,!1);function ne(l,t){if(!Array.isArray(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return Jt!==void 0?Jt.createHTML(t):t}const Ie=(l,t)=>{const e=l.length-1,i=[];let s,o=t===2?"<svg>":"",n=J;for(let d=0;d<e;d++){const r=l[d];let h,u,a=-1,c=0;for(;c<r.length&&(n.lastIndex=c,u=n.exec(r),u!==null);)c=n.lastIndex,n===J?u[1]==="!--"?n=Qt:u[1]!==void 0?n=Xt:u[2]!==void 0?(ie.test(u[2])&&(s=RegExp("</"+u[2],"g")),n=N):u[3]!==void 0&&(n=N):n===N?u[0]===">"?(n=s??J,a=-1):u[1]===void 0?a=-2:(a=n.lastIndex-u[2].length,h=u[1],n=u[3]===void 0?N:u[3]==='"'?ee:te):n===ee||n===te?n=N:n===Qt||n===Xt?n=J:(n=N,s=void 0);const $=n===N&&l[d+1].startsWith("/>")?" ":"";o+=n===J?r+Ue:a>=0?(i.push(h),r.slice(0,a)+bt+r.slice(a)+b+$):r+b+(a===-2?(i.push(void 0),d):$)}return[ne(l,o+(l[e]||"<?>")+(t===2?"</svg>":"")),i]};let xt=class Ae{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,n=0;const d=t.length-1,r=this.parts,[h,u]=Ie(t,e);if(this.el=Ae.createElement(h,i),z.currentNode=this.el.content,e===2){const a=this.el.content,c=a.firstChild;c.remove(),a.append(...c.childNodes)}for(;(s=z.nextNode())!==null&&r.length<d;){if(s.nodeType===1){if(s.hasAttributes()){const a=[];for(const c of s.getAttributeNames())if(c.endsWith(bt)||c.startsWith(b)){const $=u[n++];if(a.push(c),$!==void 0){const x=s.getAttribute($.toLowerCase()+bt).split(b),g=/([.?@])?(.*)/.exec($);r.push({type:1,index:o,name:g[2],strings:x,ctor:g[1]==="."?Be:g[1]==="?"?De:g[1]==="@"?Ve:ot})}else r.push({type:6,index:o})}for(const c of a)s.removeAttribute(c)}if(ie.test(s.tagName)){const a=s.textContent.split(b),c=a.length-1;if(c>0){s.textContent=P?P.emptyScript:"";for(let $=0;$<c;$++)s.append(a[$],K()),z.nextNode(),r.push({type:2,index:++o});s.append(a[c],K())}}}else if(s.nodeType===8)if(s.data===Yt)r.push({type:2,index:o});else{let a=-1;for(;(a=s.data.indexOf(b,a+1))!==-1;)r.push({type:7,index:o}),a+=b.length-1}o++}}static createElement(t,e){const i=C.createElement("template");return i.innerHTML=t,i}};function O(l,t,e=l,i){var s,o,n,d;if(t===R)return t;let r=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const h=F(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==h&&((o=r==null?void 0:r._$AO)===null||o===void 0||o.call(r,!1),h===void 0?r=void 0:(r=new h(l),r._$AT(l,e,i)),i!==void 0?((n=(d=e)._$Co)!==null&&n!==void 0?n:d._$Co=[])[i]=r:e._$Cl=r),r!==void 0&&(t=O(l,r._$AS(l,t.values),r,i)),t}let Le=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:C).importNode(i,!0);z.currentNode=o;let n=z.nextNode(),d=0,r=0,h=s[0];for(;h!==void 0;){if(d===h.index){let u;h.type===2?u=new Et(n,n.nextSibling,this,t):h.type===1?u=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(u=new We(n,this,t)),this._$AV.push(u),h=s[++r]}d!==(h==null?void 0:h.index)&&(n=z.nextNode(),d++)}return z.currentNode=C,o}v(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}},Et=class ye{constructor(t,e,i,s){var o;this.type=2,this._$AH=m,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=O(this,t,e),F(t)?t===m||t==null||t===""?(this._$AH!==m&&this._$AR(),this._$AH=m):t!==this._$AH&&t!==R&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Pe(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==m&&F(this._$AH)?this._$AA.nextSibling.data=t:this.$(C.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=xt.createElement(ne(s.h,s.h[0]),this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(i);else{const n=new Le(o,this),d=n.u(this.options);n.v(i),this.$(d),this._$AH=n}}_$AC(t){let e=se.get(t.strings);return e===void 0&&se.set(t.strings,e=new xt(t)),e}T(t){Gt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new ye(this.k(K()),this.k(K()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}},ot=class{constructor(t,e,i,s,o){this.type=1,this._$AH=m,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=m}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let n=!1;if(o===void 0)t=O(this,t,e,0),n=!F(t)||t!==this._$AH&&t!==R,n&&(this._$AH=t);else{const d=t;let r,h;for(t=o[0],r=0;r<o.length-1;r++)h=O(this,d[i+r],e,r),h===R&&(h=this._$AH[r]),n||(n=!F(h)||h!==this._$AH[r]),h===m?t=m:t!==m&&(t+=(h??"")+o[r+1]),this._$AH[r]=h}n&&!s&&this.j(t)}j(t){t===m?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},Be=class extends ot{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===m?void 0:t}};const je=P?P.emptyScript:"";let De=class extends ot{constructor(){super(...arguments),this.type=4}j(t){t&&t!==m?this.element.setAttribute(this.name,je):this.element.removeAttribute(this.name)}};class Ve extends ot{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=O(this,t,e,0))!==null&&i!==void 0?i:m)===R)return;const s=this._$AH,o=t===m&&s!==m||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==m&&(s===m||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}let We=class{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){O(this,t)}};const oe=nt.litHtmlPolyfillSupport;oe==null||oe(xt,Et),((yt=nt.litHtmlVersions)!==null&&yt!==void 0?yt:nt.litHtmlVersions=[]).push("2.8.0");const Ze=(l,t,e)=>{var i,s;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let n=o._$litPart$;if(n===void 0){const d=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=n=new Et(t.insertBefore(K(),d),d,void 0,e??{})}return n._$AI(l),n};/**
|
|
22
22
|
* @license
|
|
23
23
|
* Copyright 2017 Google LLC
|
|
24
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -26,11 +26,11 @@
|
|
|
26
26
|
* @license
|
|
27
27
|
* Copyright 2017 Google LLC
|
|
28
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
29
|
-
*/var Ct;const lt=window,L=lt.trustedTypes,re=L?L.createPolicy("lit-html",{createHTML:l=>l}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,he="?"+w,qe=`<${he}>`,B=document,rt=(l="")=>B.createComment(l),Y=l=>l===null||typeof l!="object"&&typeof l!="function",
|
|
29
|
+
*/var Ct;const lt=window,L=lt.trustedTypes,re=L?L.createPolicy("lit-html",{createHTML:l=>l}):void 0,w=`lit$${(Math.random()+"").slice(9)}$`,he="?"+w,qe=`<${he}>`,B=document,rt=(l="")=>B.createComment(l),Y=l=>l===null||typeof l!="object"&&typeof l!="function",ae=Array.isArray,Ke=l=>ae(l)||typeof(l==null?void 0:l[Symbol.iterator])=="function",G=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,de=/-->/g,ce=/>/g,k=RegExp(`>|[
|
|
30
30
|
\f\r](?:([^\\s"'>=/]+)([
|
|
31
31
|
\f\r]*=[
|
|
32
32
|
\f\r]*(?:[^
|
|
33
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g"),ue=/'/g,$e=/"/g,pe=/^(?:script|style|textarea|title)$/i,j=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),fe=new WeakMap,D=B.createTreeWalker(B,129,null,!1),Fe=(l,t)=>{const e=l.length-1,i=[];let s,o=t===2?"<svg>":"",n=G;for(let r=0;r<e;r++){const h=l[r];let u,
|
|
33
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),ue=/'/g,$e=/"/g,pe=/^(?:script|style|textarea|title)$/i,j=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),fe=new WeakMap,D=B.createTreeWalker(B,129,null,!1),Fe=(l,t)=>{const e=l.length-1,i=[];let s,o=t===2?"<svg>":"",n=G;for(let r=0;r<e;r++){const h=l[r];let u,a,c=-1,$=0;for(;$<h.length&&(n.lastIndex=$,a=n.exec(h),a!==null);)$=n.lastIndex,n===G?a[1]==="!--"?n=de:a[1]!==void 0?n=ce:a[2]!==void 0?(pe.test(a[2])&&(s=RegExp("</"+a[2],"g")),n=k):a[3]!==void 0&&(n=k):n===k?a[0]===">"?(n=s??G,c=-1):a[1]===void 0?c=-2:(c=n.lastIndex-a[2].length,u=a[1],n=a[3]===void 0?k:a[3]==='"'?$e:ue):n===$e||n===ue?n=k:n===de||n===ce?n=G:(n=k,s=void 0);const x=n===k&&l[r+1].startsWith("/>")?" ":"";o+=n===G?h+qe:c>=0?(i.push(u),h.slice(0,c)+"$lit$"+h.slice(c)+w+x):h+w+(c===-2?(i.push(void 0),r):x)}const d=o+(l[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(l)||!l.hasOwnProperty("raw"))throw Error("invalid template strings array");return[re!==void 0?re.createHTML(d):d,i]};class Q{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,n=0;const d=t.length-1,r=this.parts,[h,u]=Fe(t,e);if(this.el=Q.createElement(h,i),D.currentNode=this.el.content,e===2){const a=this.el.content,c=a.firstChild;c.remove(),a.append(...c.childNodes)}for(;(s=D.nextNode())!==null&&r.length<d;){if(s.nodeType===1){if(s.hasAttributes()){const a=[];for(const c of s.getAttributeNames())if(c.endsWith("$lit$")||c.startsWith(w)){const $=u[n++];if(a.push(c),$!==void 0){const x=s.getAttribute($.toLowerCase()+"$lit$").split(w),g=/([.?@])?(.*)/.exec($);r.push({type:1,index:o,name:g[2],strings:x,ctor:g[1]==="."?Ye:g[1]==="?"?Qe:g[1]==="@"?Xe:at})}else r.push({type:6,index:o})}for(const c of a)s.removeAttribute(c)}if(pe.test(s.tagName)){const a=s.textContent.split(w),c=a.length-1;if(c>0){s.textContent=L?L.emptyScript:"";for(let $=0;$<c;$++)s.append(a[$],rt()),D.nextNode(),r.push({type:2,index:++o});s.append(a[c],rt())}}}else if(s.nodeType===8)if(s.data===he)r.push({type:2,index:o});else{let a=-1;for(;(a=s.data.indexOf(w,a+1))!==-1;)r.push({type:7,index:o}),a+=w.length-1}o++}}static createElement(t,e){const i=B.createElement("template");return i.innerHTML=t,i}}function V(l,t,e=l,i){var s,o,n,d;if(t===j)return t;let r=i!==void 0?(s=e._$Cl)===null||s===void 0?void 0:s[i]:e._$Cu;const h=Y(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==h&&((o=r==null?void 0:r._$AO)===null||o===void 0||o.call(r,!1),h===void 0?r=void 0:(r=new h(l),r._$AT(l,e,i)),i!==void 0?((n=(d=e)._$Cl)!==null&&n!==void 0?n:d._$Cl=[])[i]=r:e._$Cu=r),r!==void 0&&(t=V(l,r._$AS(l,t.values),r,i)),t}class Je{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:i},parts:s}=this._$AD,o=((e=t==null?void 0:t.creationScope)!==null&&e!==void 0?e:B).importNode(i,!0);D.currentNode=o;let n=D.nextNode(),d=0,r=0,h=s[0];for(;h!==void 0;){if(d===h.index){let u;h.type===2?u=new ht(n,n.nextSibling,this,t):h.type===1?u=new h.ctor(n,h.name,h.strings,this,t):h.type===6&&(u=new ti(n,this,t)),this.v.push(u),h=s[++r]}d!==(h==null?void 0:h.index)&&(n=D.nextNode(),d++)}return o}m(t){let e=0;for(const i of this.v)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class ht{constructor(t,e,i,s){var o;this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$C_=(o=s==null?void 0:s.isConnected)===null||o===void 0||o}get _$AU(){var t,e;return(e=(t=this._$AM)===null||t===void 0?void 0:t._$AU)!==null&&e!==void 0?e:this._$C_}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&t.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=V(this,t,e),Y(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==j&&this.$(t):t._$litType$!==void 0?this.T(t):t.nodeType!==void 0?this.k(t):Ke(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!==p&&Y(this._$AH)?this._$AA.nextSibling.data=t:this.k(B.createTextNode(t)),this._$AH=t}T(t){var e;const{values:i,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=Q.createElement(s.h,this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.m(i);else{const n=new Je(o,this),d=n.p(this.options);n.m(i),this.k(d),this._$AH=n}}_$AC(t){let e=fe.get(t.strings);return e===void 0&&fe.set(t.strings,e=new Q(t)),e}O(t){ae(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const o of t)s===e.length?e.push(i=new ht(this.S(rt()),this.S(rt()),this,this.options)):i=e[s],i._$AI(o),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)===null||i===void 0||i.call(this,!1,!0,e);t&&t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$C_=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class at{constructor(t,e,i,s,o){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=o,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=p}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let n=!1;if(o===void 0)t=V(this,t,e,0),n=!Y(t)||t!==this._$AH&&t!==j,n&&(this._$AH=t);else{const d=t;let r,h;for(t=o[0],r=0;r<o.length-1;r++)h=V(this,d[i+r],e,r),h===j&&(h=this._$AH[r]),n||(n=!Y(h)||h!==this._$AH[r]),h===p?t=p:t!==p&&(t+=(h??"")+o[r+1]),this._$AH[r]=h}n&&!s&&this.P(t)}P(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ye extends at{constructor(){super(...arguments),this.type=3}P(t){this.element[this.name]=t===p?void 0:t}}const Ge=L?L.emptyScript:"";class Qe extends at{constructor(){super(...arguments),this.type=4}P(t){t&&t!==p?this.element.setAttribute(this.name,Ge):this.element.removeAttribute(this.name)}}class Xe extends at{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=V(this,t,e,0))!==null&&i!==void 0?i:p)===j)return;const s=this._$AH,o=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,n=t!==p&&(s===p||o);o&&this.element.removeEventListener(this.name,this,s),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&i!==void 0?i:this.element,t):this._$AH.handleEvent(t)}}class ti{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){V(this,t)}}const me=lt.litHtmlPolyfillSupport;me==null||me(Q,ht),((Ct=lt.litHtmlVersions)!==null&&Ct!==void 0?Ct:lt.litHtmlVersions=[]).push("2.3.1");/**
|
|
34
34
|
* @license
|
|
35
35
|
* Copyright 2017 Google LLC
|
|
36
36
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
@@ -38,11 +38,11 @@
|
|
|
38
38
|
* @license
|
|
39
39
|
* Copyright 2017 Google LLC
|
|
40
40
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
41
|
-
*/class Nt extends si{constructor(t){if(super(t),this.it=p,t.type!==ei.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===p||t==null)return this._t=void 0,this.it=t;if(t===j)return t;if(typeof t!="string")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:[]}}}Nt.directiveName="unsafeHTML",Nt.resultType=1;const ni=ii(Nt),oi={h1:"h1",display1:"h1",h2:"h2",display2:"h2",h3:"h3",display3:"h3",h4:"h4",headline1:"h4",h5:"h5",headline2:"h5",h6:"h6",headline3:"h6",headline4:"h6",headline5:"h6",p:"p",body1:"p",body2:"p",footnote1:"p",footnote2:"p",caption1:"p",caption2:"p",button:"span",link:"span",span:"span"};function li(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var
|
|
41
|
+
*/class Nt extends si{constructor(t){if(super(t),this.it=p,t.type!==ei.CHILD)throw Error(this.constructor.directiveName+"() can only be used in child bindings")}render(t){if(t===p||t==null)return this._t=void 0,this.it=t;if(t===j)return t;if(typeof t!="string")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:[]}}}Nt.directiveName="unsafeHTML",Nt.resultType=1;const ni=ii(Nt),oi={h1:"h1",display1:"h1",h2:"h2",display2:"h2",h3:"h3",display3:"h3",h4:"h4",headline1:"h4",h5:"h5",headline2:"h5",h6:"h6",headline3:"h6",headline4:"h6",headline5:"h6",p:"p",body1:"p",body2:"p",footnote1:"p",footnote2:"p",caption1:"p",caption2:"p",button:"span",link:"span",span:"span"};function li(l){return l&&l.__esModule&&Object.prototype.hasOwnProperty.call(l,"default")?l.default:l}var ge={exports:{}};/*!
|
|
42
42
|
Copyright (c) 2018 Jed Watson.
|
|
43
43
|
Licensed under the MIT License (MIT), see
|
|
44
44
|
http://jedwatson.github.io/classnames
|
|
45
|
-
*/(function(l){(function(){var t={}.hasOwnProperty;function e(){for(var o="",n=0;n<arguments.length;n++){var
|
|
45
|
+
*/(function(l){(function(){var t={}.hasOwnProperty;function e(){for(var o="",n=0;n<arguments.length;n++){var d=arguments[n];d&&(o=s(o,i(d)))}return o}function i(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return e.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var n="";for(var d in o)t.call(o,d)&&o[d]&&(n=s(n,d));return n}function s(o,n){return n?o?o+" "+n:o+n:o}l.exports?(e.default=e,l.exports=e):window.classNames=e})()})(ge);var ri=ge.exports;const hi=li(ri);function ai(l,t,e,i){const s=hi({base:!0,[l]:l,[e]:e,[i]:i});return{tag:oi[t||l]||"p",classNames:s}}const di=be`
|
|
46
46
|
html {
|
|
47
47
|
font-size: var(--eloisa-ds-font-size-base, 16px);
|
|
48
48
|
}
|
|
@@ -494,10 +494,10 @@
|
|
|
494
494
|
}
|
|
495
495
|
}
|
|
496
496
|
|
|
497
|
-
`;class X extends I{constructor(){super(),this.variant="body1"}render(){const{tag:t,classNames:e}=
|
|
497
|
+
`;class X extends I{constructor(){super(),this.variant="body1"}render(){const{tag:t,classNames:e}=ai(this.variant,this.component,this.mobileVariant,this.class);let i;return this.text&&this.text!==""?i=`<${t} class="${e}">
|
|
498
498
|
${this.text}
|
|
499
499
|
</${t}>
|
|
500
|
-
`:i=`<${t} class="${e}">
|
|
500
|
+
`:i=`<${t} class="${e}" part="text-element">
|
|
501
501
|
<slot></slot>
|
|
502
502
|
</${t}>
|
|
503
|
-
`,Oe`${ni(i)}`}}
|
|
503
|
+
`,Oe`${ni(i)}`}}dt(X,"styles",di),dt(X,"shadowRootOptions",{...I.shadowRootOptions,mode:"closed"}),dt(X,"properties",{variant:{type:String},component:{type:String},mobileVariant:{type:String},text:{type:String},class:{type:String}}),customElements.get("cas-text")||customElements.define("cas-text",X),_.CasText=X,Object.defineProperty(_,Symbol.toStringTag,{value:"Module"})});
|