cas-ds-web-components 1.2.56 → 1.2.59
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/base-styles.js +1 -0
- package/build/cas-accordion-element.js +31 -33
- package/build/cas-accordion.js +31 -33
- package/build/cas-alert.js +49 -51
- package/build/cas-booking-box.js +16 -18
- package/build/cas-button.js +75 -77
- package/build/cas-checkbox.js +16 -18
- package/build/cas-date-picker.js +38 -40
- package/build/cas-ds-web-components.js +1599 -2273
- package/build/cas-footer.js +362 -0
- package/build/cas-header.js +1914 -2163
- package/build/cas-icon.js +304 -306
- package/build/cas-input-file.js +21 -23
- package/build/cas-input.js +19 -21
- package/build/cas-modal.js +14 -16
- package/build/cas-radio-button.js +73 -1231
- package/build/cas-select.js +688 -949
- package/build/cas-share.js +33 -35
- package/build/cas-snackbar.js +30 -32
- package/build/cas-spinner.js +13 -15
- package/build/cas-text-field.js +132 -0
- package/build/cas-text.js +22 -16
- package/build/cas-toggle.js +13 -15
- package/build/cas-tooltip.js +22 -16
- package/package.json +1 -1
- package/build/cas-banners-cta.js +0 -175
- package/build/cas-date-picker-range.js +0 -473
- package/build/cas-new-footer.js +0 -356
- package/build/cas-radio.js +0 -79
- package/build/cas-textfield.js +0 -134
- package/build/cas-theme-provider.js +0 -42
|
@@ -0,0 +1 @@
|
|
|
1
|
+
(function(o,i){typeof exports=="object"&&typeof module<"u"?i(exports):typeof define=="function"&&define.amd?define(["exports"],i):(o=typeof globalThis<"u"?globalThis:o||self,i(o["base-styles"]={}))})(this,function(o){"use strict";const i="Rubik-Bold",t="16px",e="700",a="24px",c="#01A49A",n="#01736C",d="#E6F6F5",r="#4DBFB8",g="#CCEDEB",h="#5143D5",s="color",L="#392F95",l="color",M="#EEECFB",y="color",F="#857BE2",C="color",u="#CBC7F2",m="color",S="#DCD9F7",T="#203442",B="color",P="#364855",b="color",H="#4D5D68",W="color",p="#63717B",I="color",v="#79858E",z="color",D="#909AA1",k="color",E="#A6AEB3",N="color",R="#BCC2C6",w="color",A="#D2D6D9",f="color",j="#E9EBEC",O="color",q="#FFFFFF",G="color",J="#F2F5F9",K="color",Q="rgba(201, 207, 227, 0.75)",U="color",V="#E53935",X="color",Y="#FFEBEE",Z="color",_="#B71C1C",$="color",x="#FFCDD2",oo="color",io="#FFB300",to="color",eo="#FFF8E1",ao="color",co="#FF8F00",no="color",ro="#FFECB3",go="color",ho="#7CB342",so="color",Lo="#F1F8E9",lo="color",Mo="#33691E",yo="color",Fo="#DCEDC8",Co="color",uo="0 2px 2px rgba(1, 164, 154, 0.25)",mo="shadow",So="0 4px 10px rgba(1, 115, 108, 0.35)",To="shadow",Bo="0 1px 2px rgba(1, 115, 108, 0.5)",Po="shadow",bo="0 2px 2px rgba(121, 133, 142, 0.25)",Ho="shadow",Wo="0 2px 2px rgba(229, 57, 53, 0.25)",po="shadow",Io="0 4px 10px rgba(183, 28, 28, 0.35)",vo="shadow",zo="0 1px 2px rgba(183, 28, 28, 0.5)",Do="shadow",ko="0 2px 2px rgba(121, 133, 142, 0.25)",Eo="shadow",No="Rubik",Ro="300",wo="400",Ao="500",fo="700",jo="900",Oo="Rubik-Regular",qo="Rubik-Medium",Go="Rubik-Bold",Jo="0.0120588",Ko="16",Qo="24",Uo="28",Vo="32",Xo="36",Yo="40",Zo="48",_o="56",$o="10",xo="11",oi="12",ii="14",ti="16",ei="18",ai="24",ci="28",ni="32",di="40",ri="48",gi="'Rubik', sans-serif",hi="0.0120588",si="0.0120588em",Li="16px",li="24px",Mi="28px",yi="32px",Fi="36px",Ci="40px",ui="48px",mi="56px",Si="10px",Ti="11px",Bi="12px",Pi="14px",bi="16px",Hi="18px",Wi="24px",pi="28px",Ii="32px",vi="40px",zi="48px",Di="#FFFFFF",ki="color",Ei="#FFFFFF",Ni="color",Ri="#FFFFFF",wi="color",Ai="#FFFFFF",fi="color",ji="#FFFFFF",Oi="color",qi="#E9EBEC",Gi="color",Ji="#E9EBEC",Ki="color",Qi="#D2D6D9",Ui="color",Vi="#909AA1",Xi="color",Yi="#392F95",Zi="color",_i="#D2D6D9",$i="color",xi="#7CB342",ot="color",it="E53935",tt="color",et="#E9EBEC",at="color",ct="#E9EBEC",nt="color",dt="#79858E",rt="color",gt="#364855",ht="color",st="#392F95",Lt="color",lt="#392F95",Mt="color",yt="#7CB342",Ft="color",Ct="E53935",ut="color",mt="#79858E",St="color",Tt="#79858E",Bt="color",Pt="Rubik-Regular",bt="16px",Ht="400",Wt="24px",pt="Rubik-Medium",It="16px",vt="500",zt="20px",Dt="Rubik-Medium",kt="12px",Et="500",Nt="16px",Rt="Rubik-Regular",wt="12px",At="400",ft="16px",jt="Rubik-Medium",Ot="48px",qt="500",Gt="56px",Jt="Rubik-Medium",Kt="40px",Qt="500",Ut="48px",Vt="Rubik-Bold",Xt="32px",Yt="700",Zt="40px",_t="Rubik-Medium",$t="14px",xt="500",oe="24px",ie="Rubik-Regular",te="14px",ee="400",ae="24px",ce="Rubik-Medium",ne="28px",de="500",re="36px",ge="Rubik-Medium",he="24px",se="500",Le="32px",le="Rubik-Medium",Me="18px",ye="500",Fe="28px",Ce="Rubik-Regular",ue="24px",me="400",Se="32px",Te="Rubik-Medium",Be="14px",Pe="700",be="24px";o.casBody1FontFamilyModeLight=Pt,o.casBody1FontSizeModeLight=bt,o.casBody1FontWeightModeLight=Ht,o.casBody1LineHeightModeLight=Wt,o.casBody2FontFamilyModeLight=pt,o.casBody2FontSizeModeLight=It,o.casBody2FontWeightModeLight=vt,o.casBody2LineHeightModeLight=zt,o.casButtonFontFamilyModeLight=i,o.casButtonFontSizeModeLight=t,o.casButtonFontWeightModeLight=e,o.casButtonLineHeightModeLight=a,o.casButtonShadowPrimaryDisabledModeLight=bo,o.casButtonShadowPrimaryDisabledModeLightType=Ho,o.casButtonShadowPrimaryHoverModeLight=So,o.casButtonShadowPrimaryHoverModeLightType=To,o.casButtonShadowPrimaryNormalModeLight=uo,o.casButtonShadowPrimaryNormalModeLightType=mo,o.casButtonShadowPrimaryPressedModeLight=Bo,o.casButtonShadowPrimaryPressedModeLightType=Po,o.casButtonShadowPrimaryRedDisabledModeLight=ko,o.casButtonShadowPrimaryRedDisabledModeLightType=Eo,o.casButtonShadowPrimaryRedHoverModeLight=Io,o.casButtonShadowPrimaryRedHoverModeLightType=vo,o.casButtonShadowPrimaryRedNormalModeLight=Wo,o.casButtonShadowPrimaryRedNormalModeLightType=po,o.casButtonShadowPrimaryRedPressedModeLight=zo,o.casButtonShadowPrimaryRedPressedModeLightType=Do,o.casCaption1FontFamilyModeLight=Dt,o.casCaption1FontSizeModeLight=kt,o.casCaption1FontWeightModeLight=Et,o.casCaption1LineHeightModeLight=Nt,o.casCaption2FontFamilyModeLight=Rt,o.casCaption2FontSizeModeLight=wt,o.casCaption2FontWeightModeLight=At,o.casCaption2LineHeightModeLight=ft,o.casColorBackground1ModeLight=q,o.casColorBackground1ModeLightType=G,o.casColorBackground2ModeLight=J,o.casColorBackground2ModeLightType=K,o.casColorError1ModeLight=V,o.casColorError1ModeLightType=X,o.casColorError2ModeLight=Y,o.casColorError2ModeLightType=Z,o.casColorError3ModeLight=_,o.casColorError3ModeLightType=$,o.casColorError4ModeLight=x,o.casColorError4ModeLightType=oo,o.casColorPrimary1ModeLight=c,o.casColorPrimary2ModeLight=n,o.casColorPrimary3ModeLight=d,o.casColorPrimary4ModeLight=r,o.casColorPrimary5ModeLight=g,o.casColorSecondary1ModeLight=h,o.casColorSecondary1ModeLightType=s,o.casColorSecondary2ModeLight=L,o.casColorSecondary2ModeLightType=l,o.casColorSecondary3ModeLight=M,o.casColorSecondary3ModeLightType=y,o.casColorSecondary4ModeLight=F,o.casColorSecondary4ModeLightType=C,o.casColorSecondary5ModeLight=u,o.casColorSecondary5ModeLightType=m,o.casColorSecondary6ModeLight=S,o.casColorShadow1ModeLight=Q,o.casColorShadow1ModeLightType=U,o.casColorSuccess1ModeLight=ho,o.casColorSuccess1ModeLightType=so,o.casColorSuccess2ModeLight=Lo,o.casColorSuccess2ModeLightType=lo,o.casColorSuccess3ModeLight=Mo,o.casColorSuccess3ModeLightType=yo,o.casColorSuccess4ModeLight=Fo,o.casColorSuccess4ModeLightType=Co,o.casColorTertiary10ModeLight=j,o.casColorTertiary10ModeLightType=O,o.casColorTertiary1ModeLight=T,o.casColorTertiary1ModeLightType=B,o.casColorTertiary2ModeLight=P,o.casColorTertiary2ModeLightType=b,o.casColorTertiary3ModeLight=H,o.casColorTertiary3ModeLightType=W,o.casColorTertiary4ModeLight=p,o.casColorTertiary4ModeLightType=I,o.casColorTertiary5ModeLight=v,o.casColorTertiary5ModeLightType=z,o.casColorTertiary6ModeLight=D,o.casColorTertiary6ModeLightType=k,o.casColorTertiary7ModeLight=E,o.casColorTertiary7ModeLightType=N,o.casColorTertiary8ModeLight=R,o.casColorTertiary8ModeLightType=w,o.casColorTertiary9ModeLight=A,o.casColorTertiary9ModeLightType=f,o.casColorWarning1ModeLight=io,o.casColorWarning1ModeLightType=to,o.casColorWarning2ModeLight=eo,o.casColorWarning2ModeLightType=ao,o.casColorWarning3ModeLight=co,o.casColorWarning3ModeLightType=no,o.casColorWarning4ModeLight=ro,o.casColorWarning4ModeLightType=go,o.casDisplay1FontFamilyModeLight=jt,o.casDisplay1FontSizeModeLight=Ot,o.casDisplay1FontWeightModeLight=qt,o.casDisplay1LineHeightModeLight=Gt,o.casDisplay2FontFamilyModeLight=Jt,o.casDisplay2FontSizeModeLight=Kt,o.casDisplay2FontWeightModeLight=Qt,o.casDisplay2LineHeightModeLight=Ut,o.casDisplay3FontFamilyModeLight=Vt,o.casDisplay3FontSizeModeLight=Xt,o.casDisplay3FontWeightModeLight=Yt,o.casDisplay3LineHeightModeLight=Zt,o.casFontFamilyModeLight=No,o.casFontWeightBlackModeLight=jo,o.casFontWeightBoldModeLight=fo,o.casFontWeightLightModeLight=Ro,o.casFontWeightMediumModeLight=Ao,o.casFontWeightRegularModeLight=wo,o.casFootnote1FontFamilyModeLight=_t,o.casFootnote1FontSizeModeLight=$t,o.casFootnote1FontWeightModeLight=xt,o.casFootnote1LineHeightModeLight=oe,o.casFootnote2FontFamilyModeLight=ie,o.casFootnote2FontSizeModeLight=te,o.casFootnote2FontWeightModeLight=ee,o.casFootnote2LineHeightModeLight=ae,o.casHeadline1FontFamilyModeLight=ce,o.casHeadline1FontSizeModeLight=ne,o.casHeadline1FontWeightModeLight=de,o.casHeadline1LineHeightModeLight=re,o.casHeadline2FontFamilyModeLight=ge,o.casHeadline2FontSizeModeLight=he,o.casHeadline2FontWeightModeLight=se,o.casHeadline2LineHeightModeLight=Le,o.casHeadline3FontFamilyModeLight=le,o.casHeadline3FontSizeModeLight=Me,o.casHeadline3FontWeightModeLight=ye,o.casHeadline3LineHeightModeLight=Fe,o.casHeadline4FontFamilyModeLight=Ce,o.casHeadline4FontSizeModeLight=ue,o.casHeadline4FontWeightModeLight=me,o.casHeadline4LineHeightModeLight=Se,o.casInputBackgroundColorPrimaryActiveModeLight=Ri,o.casInputBackgroundColorPrimaryActiveModeLightType=wi,o.casInputBackgroundColorPrimaryDisabledModeLight=Ji,o.casInputBackgroundColorPrimaryDisabledModeLightType=Ki,o.casInputBackgroundColorPrimaryErrorModeLight=qi,o.casInputBackgroundColorPrimaryErrorModeLightType=Gi,o.casInputBackgroundColorPrimaryFilledModeLight=Ai,o.casInputBackgroundColorPrimaryFilledModeLightType=fi,o.casInputBackgroundColorPrimaryHoverModeLight=Ei,o.casInputBackgroundColorPrimaryHoverModeLightType=Ni,o.casInputBackgroundColorPrimaryNormalModeLight=Di,o.casInputBackgroundColorPrimaryNormalModeLightType=ki,o.casInputBackgroundColorPrimarySuccessModeLight=ji,o.casInputBackgroundColorPrimarySuccessModeLightType=Oi,o.casInputBorderColorPrimaryActiveModeLight=Yi,o.casInputBorderColorPrimaryActiveModeLightType=Zi,o.casInputBorderColorPrimaryDisableFilledModeLight=ct,o.casInputBorderColorPrimaryDisableFilledModeLightType=nt,o.casInputBorderColorPrimaryDisabledModeLight=et,o.casInputBorderColorPrimaryDisabledModeLightType=at,o.casInputBorderColorPrimaryErrorModeLight=it,o.casInputBorderColorPrimaryErrorModeLightType=tt,o.casInputBorderColorPrimaryFilledModeLight=_i,o.casInputBorderColorPrimaryFilledModeLightType=$i,o.casInputBorderColorPrimaryHoverModeLight=Vi,o.casInputBorderColorPrimaryHoverModeLightType=Xi,o.casInputBorderColorPrimaryNormalModeLight=Qi,o.casInputBorderColorPrimaryNormalModeLightType=Ui,o.casInputBorderColorPrimarySuccessModeLight=xi,o.casInputBorderColorPrimarySuccessModeLightType=ot,o.casInputLabelColorPrimaryActiveModeLight=st,o.casInputLabelColorPrimaryActiveModeLightType=Lt,o.casInputLabelColorPrimaryDisableFilledModeLight=Tt,o.casInputLabelColorPrimaryDisableFilledModeLightType=Bt,o.casInputLabelColorPrimaryDisabledModeLight=mt,o.casInputLabelColorPrimaryDisabledModeLightType=St,o.casInputLabelColorPrimaryErrorModeLight=Ct,o.casInputLabelColorPrimaryErrorModeLightType=ut,o.casInputLabelColorPrimaryFilledModeLight=lt,o.casInputLabelColorPrimaryFilledModeLightType=Mt,o.casInputLabelColorPrimaryHoverModeLight=gt,o.casInputLabelColorPrimaryHoverModeLightType=ht,o.casInputLabelColorPrimaryNormalModeLight=dt,o.casInputLabelColorPrimaryNormalModeLightType=rt,o.casInputLabelColorPrimarySuccessModeLight=yt,o.casInputLabelColorPrimarySuccessModeLightType=Ft,o.casLinkFontFamilyModeLight=Te,o.casLinkFontSizeModeLight=Be,o.casLinkFontWeightModeLight=Pe,o.casLinkLineHeightModeLight=be,o.casNativeFontFamilyBoldModeLight=Go,o.casNativeFontFamilyMediumModeLight=qo,o.casNativeFontFamilyRegularModeLight=Oo,o.casNativeFontLetterSpacing=Jo,o.casNativeFontLineHeight16ModeLight=Ko,o.casNativeFontLineHeight24ModeLight=Qo,o.casNativeFontLineHeight28ModeLight=Uo,o.casNativeFontLineHeight32ModeLight=Vo,o.casNativeFontLineHeight36ModeLight=Xo,o.casNativeFontLineHeight40ModeLight=Yo,o.casNativeFontLineHeight48ModeLight=Zo,o.casNativeFontLineHeight56ModeLight=_o,o.casNativeFontSize10ModeLight=$o,o.casNativeFontSize11ModeLight=xo,o.casNativeFontSize12ModeLight=oi,o.casNativeFontSize14ModeLight=ii,o.casNativeFontSize16ModeLight=ti,o.casNativeFontSize18ModeLight=ei,o.casNativeFontSize24ModeLight=ai,o.casNativeFontSize28ModeLight=ci,o.casNativeFontSize32ModeLight=ni,o.casNativeFontSize40ModeLight=di,o.casNativeFontSize48ModeLight=ri,o.casWebFontFamilyModeLight=gi,o.casWebFontLetterSpacing=hi,o.casWebFontLineHeight=si,o.casWebFontLineHeight16ModeLight=Li,o.casWebFontLineHeight24ModeLight=li,o.casWebFontLineHeight28ModeLight=Mi,o.casWebFontLineHeight32ModeLight=yi,o.casWebFontLineHeight36ModeLight=Fi,o.casWebFontLineHeight40ModeLight=Ci,o.casWebFontLineHeight48ModeLight=ui,o.casWebFontLineHeight56ModeLight=mi,o.casWebFontSize10ModeLight=Si,o.casWebFontSize11ModeLight=Ti,o.casWebFontSize12ModeLight=Bi,o.casWebFontSize14ModeLight=Pi,o.casWebFontSize16ModeLight=bi,o.casWebFontSize18ModeLight=Hi,o.casWebFontSize24ModeLight=Wi,o.casWebFontSize28ModeLight=pi,o.casWebFontSize32ModeLight=Ii,o.casWebFontSize40ModeLight=vi,o.casWebFontSize48ModeLight=zi,Object.defineProperty(o,Symbol.toStringTag,{value:"Module"})});
|
|
@@ -1,41 +1,39 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(A,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(A=typeof globalThis<"u"?globalThis:A||self,_(A["cas-accordion"]={}))})(this,function(A){"use strict";var Pe=Object.defineProperty;var Re=(A,_,g)=>_ in A?Pe(A,_,{enumerable:!0,configurable:!0,writable:!0,value:g}):A[_]=g;var Q=(A,_,g)=>(Re(A,typeof _!="symbol"?_+"":_,g),g);/**
|
|
2
2
|
* @license
|
|
3
3
|
* Copyright 2019 Google LLC
|
|
4
4
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
5
|
-
*/const _=window,
|
|
5
|
+
*/const _=window,g=_.ShadowRoot&&(_.ShadyCSS===void 0||_.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,X=Symbol(),$t=new WeakMap;let vt=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==X)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(g&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=$t.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&$t.set(e,t))}return t}toString(){return this.cssText}};const f=n=>new vt(typeof n=="string"?n:n+"",void 0,X),Gt=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((i,s,o)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+n[o+1],n[0]);return new vt(e,n,X)},Qt=(n,t)=>{g?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=_.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,n.appendChild(i)})},_t=g?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return f(e)})(n):n;/**
|
|
6
6
|
* @license
|
|
7
7
|
* Copyright 2017 Google LLC
|
|
8
8
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
9
|
-
*/var
|
|
9
|
+
*/var tt;const Z=window,At=Z.trustedTypes,Xt=At?At.emptyScript:"",ft=Z.reactiveElementPolyfillSupport,et={toAttribute(n,t){switch(t){case Boolean:n=n?Xt:null;break;case Object:case Array:n=n==null?n:JSON.stringify(n)}return n},fromAttribute(n,t){let e=n;switch(t){case Boolean:e=n!==null;break;case Number:e=n===null?null:Number(n);break;case Object:case Array:try{e=JSON.parse(n)}catch{e=null}}return e}},gt=(n,t)=>t!==n&&(t==t||n==n),it={attribute:!0,type:String,converter:et,reflect:!1,hasChanged:gt},st="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=it){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)||it}static finalize(){if(this.hasOwnProperty(st))return!1;this[st]=!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(_t(s))}else t!==void 0&&e.push(_t(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 Qt(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=it){var s;const o=this.constructor._$Ep(t,i);if(o!==void 0&&i.reflect===!0){const r=(((s=i.converter)===null||s===void 0?void 0:s.toAttribute)!==void 0?i.converter:et).toAttribute(e,i.type);this._$El=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),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 r=s.getPropertyOptions(o),a=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:et;this._$El=o,this[o]=a.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||gt)(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[st]=!0,T.elementProperties=new Map,T.elementStyles=[],T.shadowRootOptions={mode:"open"},ft==null||ft({ReactiveElement:T}),((tt=Z.reactiveElementVersions)!==null&&tt!==void 0?tt:Z.reactiveElementVersions=[]).push("1.6.3");/**
|
|
10
10
|
* @license
|
|
11
11
|
* Copyright 2017 Google LLC
|
|
12
12
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
13
|
-
*/var
|
|
14
|
-
\f\r]`,
|
|
15
|
-
\f\r"'\`<>=]|("|')|))|$)`,"g")
|
|
16
|
-
* @license
|
|
17
|
-
* Copyright 2019 Google LLC
|
|
18
|
-
* SPDX-License-Identifier: BSD-3-Clause
|
|
19
|
-
*/const L=window,K=L.ShadowRoot&&(L.ShadyCSS===void 0||L.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Z=Symbol(),mt=new WeakMap;class At{constructor(t,e,i){if(this._$cssResult$=!0,i!==Z)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(K&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&mt.set(e,t))}return t}toString(){return this.cssText}}const $=o=>new At(typeof o=="string"?o:o+"",void 0,Z),Kt=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,n)=>i+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[n+1],o[0]);return new At(e,o,Z)},Zt=(o,t)=>{K?o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const i=document.createElement("style"),s=L.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i)})},Et=K?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return $(e)})(o):o;/**
|
|
13
|
+
*/var nt;const q=window,N=q.trustedTypes,mt=N?N.createPolicy("lit-html",{createHTML:n=>n}):void 0,ot="$lit$",y=`lit$${(Math.random()+"").slice(9)}$`,yt="?"+y,te=`<${yt}>`,b=document,J=()=>b.createComment(""),B=n=>n===null||typeof n!="object"&&typeof n!="function",xt=Array.isArray,ee=n=>xt(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",rt=`[
|
|
14
|
+
\f\r]`,I=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,bt=/-->/g,Et=/>/g,E=RegExp(`>|${rt}(?:([^\\s"'>=/]+)(${rt}*=${rt}*(?:[^
|
|
15
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),St=/'/g,wt=/"/g,Ct=/^(?:script|style|textarea|title)$/i,ie=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),se=ie(1),M=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),Ht=new WeakMap,S=b.createTreeWalker(b,129,null,!1);function Tt(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return mt!==void 0?mt.createHTML(t):t}const ne=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":"",r=I;for(let a=0;a<e;a++){const l=n[a];let h,c,d=-1,u=0;for(;u<l.length&&(r.lastIndex=u,c=r.exec(l),c!==null);)u=r.lastIndex,r===I?c[1]==="!--"?r=bt:c[1]!==void 0?r=Et:c[2]!==void 0?(Ct.test(c[2])&&(s=RegExp("</"+c[2],"g")),r=E):c[3]!==void 0&&(r=E):r===E?c[0]===">"?(r=s??I,d=-1):c[1]===void 0?d=-2:(d=r.lastIndex-c[2].length,h=c[1],r=c[3]===void 0?E:c[3]==='"'?wt:St):r===wt||r===St?r=E:r===bt||r===Et?r=I:(r=E,s=void 0);const p=r===E&&n[a+1].startsWith("/>")?" ":"";o+=r===I?l+te:d>=0?(i.push(h),l.slice(0,d)+ot+l.slice(d)+y+p):l+y+(d===-2?(i.push(void 0),a):p)}return[Tt(n,o+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};let lt=class Kt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const a=t.length-1,l=this.parts,[h,c]=ne(t,e);if(this.el=Kt.createElement(h,i),S.currentNode=this.el.content,e===2){const d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(s=S.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const d=[];for(const u of s.getAttributeNames())if(u.endsWith(ot)||u.startsWith(y)){const p=c[r++];if(d.push(u),p!==void 0){const pt=s.getAttribute(p.toLowerCase()+ot).split(y),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:pt,ctor:m[1]==="."?re:m[1]==="?"?he:m[1]==="@"?ae:K})}else l.push({type:6,index:o})}for(const u of d)s.removeAttribute(u)}if(Ct.test(s.tagName)){const d=s.textContent.split(y),u=d.length-1;if(u>0){s.textContent=N?N.emptyScript:"";for(let p=0;p<u;p++)s.append(d[p],J()),S.nextNode(),l.push({type:2,index:++o});s.append(d[u],J())}}}else if(s.nodeType===8)if(s.data===yt)l.push({type:2,index:o});else{let d=-1;for(;(d=s.data.indexOf(y,d+1))!==-1;)l.push({type:7,index:o}),d+=y.length-1}o++}}static createElement(t,e){const i=b.createElement("template");return i.innerHTML=t,i}};function U(n,t,e=n,i){var s,o,r,a;if(t===M)return t;let l=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const h=B(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==h&&((o=l==null?void 0:l._$AO)===null||o===void 0||o.call(l,!1),h===void 0?l=void 0:(l=new h(n),l._$AT(n,e,i)),i!==void 0?((r=(a=e)._$Co)!==null&&r!==void 0?r:a._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=U(n,l._$AS(n,t.values),l,i)),t}let oe=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:b).importNode(i,!0);S.currentNode=o;let r=S.nextNode(),a=0,l=0,h=s[0];for(;h!==void 0;){if(a===h.index){let c;h.type===2?c=new Nt(r,r.nextSibling,this,t):h.type===1?c=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(c=new ce(r,this,t)),this._$AV.push(c),h=s[++l]}a!==(h==null?void 0:h.index)&&(r=S.nextNode(),a++)}return S.currentNode=b,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++}},Nt=class Yt{constructor(t,e,i,s){var o;this.type=2,this._$AH=$,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),B(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==M&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ee(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!==$&&B(this._$AH)?this._$AA.nextSibling.data=t:this.$(b.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=lt.createElement(Tt(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 r=new oe(o,this),a=r.u(this.options);r.v(i),this.$(a),this._$AH=r}}_$AC(t){let e=Ht.get(t.strings);return e===void 0&&Ht.set(t.strings,e=new lt(t)),e}T(t){xt(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 Yt(this.k(J()),this.k(J()),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))}},K=class{constructor(t,e,i,s,o){this.type=1,this._$AH=$,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=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=U(this,t,e,0),r=!B(t)||t!==this._$AH&&t!==M,r&&(this._$AH=t);else{const a=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=U(this,a[i+l],e,l),h===M&&(h=this._$AH[l]),r||(r=!B(h)||h!==this._$AH[l]),h===$?t=$:t!==$&&(t+=(h??"")+o[l+1]),this._$AH[l]=h}r&&!s&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},re=class extends K{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}};const le=N?N.emptyScript:"";let he=class extends K{constructor(){super(...arguments),this.type=4}j(t){t&&t!==$?this.element.setAttribute(this.name,le):this.element.removeAttribute(this.name)}},ae=class extends K{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:$)===M)return;const s=this._$AH,o=t===$&&s!==$||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==$&&(s===$||o);o&&this.element.removeEventListener(this.name,this,s),r&&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)}},ce=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 Mt=q.litHtmlPolyfillSupport;Mt==null||Mt(lt,Nt),((nt=q.litHtmlVersions)!==null&&nt!==void 0?nt:q.litHtmlVersions=[]).push("2.8.0");/**
|
|
20
16
|
* @license
|
|
21
17
|
* Copyright 2017 Google LLC
|
|
22
18
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
23
|
-
*/var
|
|
19
|
+
*/var ht;const Y=window,P=Y.trustedTypes,Ut=P?P.createPolicy("lit-html",{createHTML:n=>n}):void 0,at="$lit$",x=`lit$${(Math.random()+"").slice(9)}$`,Pt="?"+x,de=`<${Pt}>`,w=document,j=()=>w.createComment(""),z=n=>n===null||typeof n!="object"&&typeof n!="function",Rt=Array.isArray,ue=n=>Rt(n)||typeof(n==null?void 0:n[Symbol.iterator])=="function",ct=`[
|
|
20
|
+
\f\r]`,D=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,kt=/-->/g,Ot=/>/g,C=RegExp(`>|${ct}(?:([^\\s"'>=/]+)(${ct}*=${ct}*(?:[^
|
|
21
|
+
\f\r"'\`<>=]|("|')|))|$)`,"g"),Lt=/'/g,Bt=/"/g,It=/^(?:script|style|textarea|title)$/i,R=Symbol.for("lit-noChange"),v=Symbol.for("lit-nothing"),jt=new WeakMap,H=w.createTreeWalker(w,129,null,!1);function zt(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ut!==void 0?Ut.createHTML(t):t}const pe=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":"",r=D;for(let a=0;a<e;a++){const l=n[a];let h,c,d=-1,u=0;for(;u<l.length&&(r.lastIndex=u,c=r.exec(l),c!==null);)u=r.lastIndex,r===D?c[1]==="!--"?r=kt:c[1]!==void 0?r=Ot:c[2]!==void 0?(It.test(c[2])&&(s=RegExp("</"+c[2],"g")),r=C):c[3]!==void 0&&(r=C):r===C?c[0]===">"?(r=s??D,d=-1):c[1]===void 0?d=-2:(d=r.lastIndex-c[2].length,h=c[1],r=c[3]===void 0?C:c[3]==='"'?Bt:Lt):r===Bt||r===Lt?r=C:r===kt||r===Ot?r=D:(r=C,s=void 0);const p=r===C&&n[a+1].startsWith("/>")?" ":"";o+=r===D?l+de:d>=0?(i.push(h),l.slice(0,d)+at+l.slice(d)+x+p):l+x+(d===-2?(i.push(void 0),a):p)}return[zt(n,o+(n[e]||"<?>")+(t===2?"</svg>":"")),i]};class V{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const a=t.length-1,l=this.parts,[h,c]=pe(t,e);if(this.el=V.createElement(h,i),H.currentNode=this.el.content,e===2){const d=this.el.content,u=d.firstChild;u.remove(),d.append(...u.childNodes)}for(;(s=H.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes()){const d=[];for(const u of s.getAttributeNames())if(u.endsWith(at)||u.startsWith(x)){const p=c[r++];if(d.push(u),p!==void 0){const pt=s.getAttribute(p.toLowerCase()+at).split(x),m=/([.?@])?(.*)/.exec(p);l.push({type:1,index:o,name:m[2],strings:pt,ctor:m[1]==="."?ve:m[1]==="?"?Ae:m[1]==="@"?fe:G})}else l.push({type:6,index:o})}for(const u of d)s.removeAttribute(u)}if(It.test(s.tagName)){const d=s.textContent.split(x),u=d.length-1;if(u>0){s.textContent=P?P.emptyScript:"";for(let p=0;p<u;p++)s.append(d[p],j()),H.nextNode(),l.push({type:2,index:++o});s.append(d[u],j())}}}else if(s.nodeType===8)if(s.data===Pt)l.push({type:2,index:o});else{let d=-1;for(;(d=s.data.indexOf(x,d+1))!==-1;)l.push({type:7,index:o}),d+=x.length-1}o++}}static createElement(t,e){const i=w.createElement("template");return i.innerHTML=t,i}}function k(n,t,e=n,i){var s,o,r,a;if(t===R)return t;let l=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const h=z(t)?void 0:t._$litDirective$;return(l==null?void 0:l.constructor)!==h&&((o=l==null?void 0:l._$AO)===null||o===void 0||o.call(l,!1),h===void 0?l=void 0:(l=new h(n),l._$AT(n,e,i)),i!==void 0?((r=(a=e)._$Co)!==null&&r!==void 0?r:a._$Co=[])[i]=l:e._$Cl=l),l!==void 0&&(t=k(n,l._$AS(n,t.values),l,i)),t}class $e{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:w).importNode(i,!0);H.currentNode=o;let r=H.nextNode(),a=0,l=0,h=s[0];for(;h!==void 0;){if(a===h.index){let c;h.type===2?c=new W(r,r.nextSibling,this,t):h.type===1?c=new h.ctor(r,h.name,h.strings,this,t):h.type===6&&(c=new ge(r,this,t)),this._$AV.push(c),h=s[++l]}a!==(h==null?void 0:h.index)&&(r=H.nextNode(),a++)}return H.currentNode=w,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++}}class W{constructor(t,e,i,s){var o;this.type=2,this._$AH=v,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=k(this,t,e),z(t)?t===v||t==null||t===""?(this._$AH!==v&&this._$AR(),this._$AH=v):t!==this._$AH&&t!==R&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):ue(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!==v&&z(this._$AH)?this._$AA.nextSibling.data=t:this.$(w.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=V.createElement(zt(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 r=new $e(o,this),a=r.u(this.options);r.v(i),this.$(a),this._$AH=r}}_$AC(t){let e=jt.get(t.strings);return e===void 0&&jt.set(t.strings,e=new V(t)),e}T(t){Rt(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 W(this.k(j()),this.k(j()),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))}}class G{constructor(t,e,i,s,o){this.type=1,this._$AH=v,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=v}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const o=this.strings;let r=!1;if(o===void 0)t=k(this,t,e,0),r=!z(t)||t!==this._$AH&&t!==R,r&&(this._$AH=t);else{const a=t;let l,h;for(t=o[0],l=0;l<o.length-1;l++)h=k(this,a[i+l],e,l),h===R&&(h=this._$AH[l]),r||(r=!z(h)||h!==this._$AH[l]),h===v?t=v:t!==v&&(t+=(h??"")+o[l+1]),this._$AH[l]=h}r&&!s&&this.j(t)}j(t){t===v?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class ve extends G{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===v?void 0:t}}const _e=P?P.emptyScript:"";class Ae extends G{constructor(){super(...arguments),this.type=4}j(t){t&&t!==v?this.element.setAttribute(this.name,_e):this.element.removeAttribute(this.name)}}class fe extends G{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=k(this,t,e,0))!==null&&i!==void 0?i:v)===R)return;const s=this._$AH,o=t===v&&s!==v||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==v&&(s===v||o);o&&this.element.removeEventListener(this.name,this,s),r&&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 ge{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){k(this,t)}}const Dt=Y.litHtmlPolyfillSupport;Dt==null||Dt(V,W),((ht=Y.litHtmlVersions)!==null&&ht!==void 0?ht:Y.litHtmlVersions=[]).push("2.8.0");const me=(n,t,e)=>{var i,s;const o=(i=e==null?void 0:e.renderBefore)!==null&&i!==void 0?i:t;let r=o._$litPart$;if(r===void 0){const a=(s=e==null?void 0:e.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new W(t.insertBefore(j(),a),a,void 0,e??{})}return r._$AI(n),r};/**
|
|
24
22
|
* @license
|
|
25
23
|
* Copyright 2017 Google LLC
|
|
26
24
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
27
|
-
*/var
|
|
25
|
+
*/var dt,ut;let O=class extends T{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=me(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)===null||t===void 0||t.setConnected(!1)}render(){return R}};O.finalized=!0,O._$litElement$=!0,(dt=globalThis.litElementHydrateSupport)===null||dt===void 0||dt.call(globalThis,{LitElement:O});const Vt=globalThis.litElementPolyfillSupport;Vt==null||Vt({LitElement:O}),((ut=globalThis.litElementVersions)!==null&&ut!==void 0?ut:globalThis.litElementVersions=[]).push("3.3.3");/**
|
|
28
26
|
* @license
|
|
29
27
|
* Copyright 2020 Google LLC
|
|
30
28
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
31
|
-
*/const
|
|
29
|
+
*/const ye=Symbol.for(""),xe=n=>{if((n==null?void 0:n.r)===ye)return n==null?void 0:n._$litStatic$},Wt=new Map,be=n=>(t,...e)=>{const i=e.length;let s,o;const r=[],a=[];let l,h=0,c=!1;for(;h<i;){for(l=t[h];h<i&&(o=e[h],(s=xe(o))!==void 0);)l+=s+t[++h],c=!0;h!==i&&a.push(o),r.push(l),h++}if(h===i&&r.push(t[i]),c){const d=r.join("$$lit$$");(t=Wt.get(d))===void 0&&(r.raw=r,Wt.set(d,t=r)),e=a}return n(t,...e)},F=be(se),Ft="#01A49A",Ee="#01736C",Se="#4DBFB8",Zt="#364855",we="#4D5D68",qt="#E9EBEC",Jt="#FFFFFF",Ce=Gt`
|
|
32
30
|
.accordion-container {
|
|
33
31
|
position: relative;
|
|
34
32
|
box-sizing: border-box;
|
|
35
33
|
display: flex;
|
|
36
34
|
flex-direction: column;
|
|
37
35
|
width: 100%;
|
|
38
|
-
background: ${
|
|
36
|
+
background: ${f(Jt)};
|
|
39
37
|
border-radius: 8px;
|
|
40
38
|
margin-bottom: 12px;
|
|
41
39
|
}
|
|
@@ -49,17 +47,17 @@
|
|
|
49
47
|
}
|
|
50
48
|
|
|
51
49
|
.box:hover {
|
|
52
|
-
background: ${
|
|
50
|
+
background: ${f(Jt)};
|
|
53
51
|
box-shadow: 0 6px 20px #b2b9cf;
|
|
54
52
|
border-radius: 8px;
|
|
55
53
|
}
|
|
56
54
|
|
|
57
55
|
.accordion-container:hover header {
|
|
58
|
-
color: ${
|
|
56
|
+
color: ${f(Ft)};
|
|
59
57
|
}
|
|
60
58
|
|
|
61
59
|
.accordion-container:active header {
|
|
62
|
-
color: ${
|
|
60
|
+
color: ${f(Ee)};
|
|
63
61
|
}
|
|
64
62
|
|
|
65
63
|
header {
|
|
@@ -71,7 +69,7 @@
|
|
|
71
69
|
align-items: center;
|
|
72
70
|
gap: 32px;
|
|
73
71
|
padding: 24px 32px 24px 40px;
|
|
74
|
-
color: ${
|
|
72
|
+
color: ${f(Zt)};
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
header:after {
|
|
@@ -82,11 +80,11 @@
|
|
|
82
80
|
display: flex;
|
|
83
81
|
width: 100%;
|
|
84
82
|
height: 1px;
|
|
85
|
-
background: ${
|
|
83
|
+
background: ${f(qt)};
|
|
86
84
|
}
|
|
87
85
|
|
|
88
86
|
.open header:after {
|
|
89
|
-
background: ${
|
|
87
|
+
background: ${f(Se)};
|
|
90
88
|
}
|
|
91
89
|
|
|
92
90
|
.box header:after {
|
|
@@ -96,15 +94,15 @@
|
|
|
96
94
|
}
|
|
97
95
|
|
|
98
96
|
header cas-text:nth-child(2) {
|
|
99
|
-
color: ${
|
|
97
|
+
color: ${f(we)};
|
|
100
98
|
}
|
|
101
99
|
|
|
102
100
|
.open.box header {
|
|
103
|
-
color: ${
|
|
101
|
+
color: ${f(Ft)};
|
|
104
102
|
}
|
|
105
103
|
|
|
106
104
|
.open.box header:after {
|
|
107
|
-
background: ${
|
|
105
|
+
background: ${f(qt)};
|
|
108
106
|
}
|
|
109
107
|
|
|
110
108
|
header .left {
|
|
@@ -120,7 +118,7 @@
|
|
|
120
118
|
display: flex;
|
|
121
119
|
flex-direction: column;
|
|
122
120
|
gap: 24px;
|
|
123
|
-
color: ${
|
|
121
|
+
color: ${f(Zt)};
|
|
124
122
|
}
|
|
125
123
|
|
|
126
124
|
.box .content {
|
|
@@ -149,24 +147,24 @@
|
|
|
149
147
|
* @license
|
|
150
148
|
* Copyright 2017 Google LLC
|
|
151
149
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
152
|
-
*/const
|
|
150
|
+
*/const He={ATTRIBUTE:1,CHILD:2,PROPERTY:3,BOOLEAN_ATTRIBUTE:4,EVENT:5,ELEMENT:6},Te=n=>(...t)=>({_$litDirective$:n,values:t});class Ne{constructor(t){}get _$AU(){return this._$AM._$AU}_$AT(t,e,i){this._$Ct=t,this._$AM=e,this._$Ci=i}_$AS(t,e){return this.update(t,e)}update(t,e){return this.render(...e)}}/**
|
|
153
151
|
* @license
|
|
154
152
|
* Copyright 2018 Google LLC
|
|
155
153
|
* SPDX-License-Identifier: BSD-3-Clause
|
|
156
|
-
*/const
|
|
157
|
-
<article class=${
|
|
154
|
+
*/const Me=Te(class extends Ne{constructor(n){var t;if(super(n),n.type!==He.ATTRIBUTE||n.name!=="class"||((t=n.strings)===null||t===void 0?void 0:t.length)>2)throw Error("`classMap()` can only be used in the `class` attribute and must be the only part in the attribute.")}render(n){return" "+Object.keys(n).filter(t=>n[t]).join(" ")+" "}update(n,[t]){var e,i;if(this.it===void 0){this.it=new Set,n.strings!==void 0&&(this.nt=new Set(n.strings.join(" ").split(/\s/).filter(o=>o!=="")));for(const o in t)t[o]&&!(!((e=this.nt)===null||e===void 0)&&e.has(o))&&this.it.add(o);return this.render(t)}const s=n.element.classList;this.it.forEach(o=>{o in t||(s.remove(o),this.it.delete(o))});for(const o in t){const r=!!t[o];r===this.it.has(o)||!((i=this.nt)===null||i===void 0)&&i.has(o)||(r?(s.add(o),this.it.add(o)):(s.remove(o),this.it.delete(o)))}return M}});function Ue({variant:n,open:t}){const e=Me({"accordion-container":!0,[n]:!0,open:t}),s=(()=>{if(window.matchMedia("(min-width: 768px)").matches)return"desktop";if(window.matchMedia("(max-width: 767px)").matches)return"mobile"})();return{accordionStyle:e,iconSize:{desktop:"24",mobile:"16"}[s]}}class L extends O{constructor(){super(),this.open=!1,this.variant="simple",this.title="",this.text=""}toggleAccordion(){this.open=!this.open,this.requestUpdate()}render(){const{open:t,title:e,text:i,content:s}=this,{accordionStyle:o,iconSize:r}=Ue({variant:this.variant,open:this.open}),a={true:"flat-minus",false:"flat-plus"};return F`
|
|
155
|
+
<article class=${o}>
|
|
158
156
|
<header @click="${this.toggleAccordion}">
|
|
159
157
|
<div class="left">
|
|
160
|
-
${e!==""?
|
|
161
|
-
${i!==""?
|
|
158
|
+
${e!==""?F` <cas-text variant="headline3">${e}</cas-text>`:""}
|
|
159
|
+
${i!==""?F` <cas-text variant="footnote2">${i}</cas-text>`:""}
|
|
162
160
|
</div>
|
|
163
|
-
<cas-icon name="${
|
|
161
|
+
<cas-icon name="${a[t]}" size="${r}"></cas-icon>
|
|
164
162
|
</header>
|
|
165
|
-
${t?
|
|
163
|
+
${t?F`
|
|
166
164
|
<div class="content">
|
|
167
|
-
${s!==""?
|
|
165
|
+
${s!==""?F` <cas-text variant="body1" text="${s}"></cas-text>`:""}
|
|
168
166
|
<slot></slot>
|
|
169
167
|
</div>
|
|
170
168
|
`:""}
|
|
171
169
|
</article>
|
|
172
|
-
`}}customElements.define("cas-accordion",
|
|
170
|
+
`}}Q(L,"styles",Ce),Q(L,"shadowRootOptions",{...O.shadowRootOptions,mode:"open"}),Q(L,"properties",{open:{type:Boolean},variant:{type:String},title:{type:String},text:{type:String},content:{type:String}}),customElements.define("cas-accordion",L),customElements.get("cas-accordion-element")||customElements.define("cas-accordion-element",class extends L{}),A.CasAccordion=L,Object.defineProperty(A,Symbol.toStringTag,{value:"Module"})});
|