cas-ds-web-components 1.2.52 → 1.2.53

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,24 +1,30 @@
1
- (function(S,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(S=typeof globalThis<"u"?globalThis:S||self,_(S["cas-date-picker-range"]={}))})(this,function(S){"use strict";/**
1
+ (function(F,E){typeof exports=="object"&&typeof module<"u"?E(exports):typeof define=="function"&&define.amd?define(["exports"],E):(F=typeof globalThis<"u"?globalThis:F||self,E(F["cas-date-picker-range"]={}))})(this,function(F){"use strict";/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const _=window,J=_.ShadowRoot&&(_.ShadyCSS===void 0||_.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Y=Symbol(),rt=new WeakMap;class at{constructor(t,e,i){if(this._$cssResult$=!0,i!==Y)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(J&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=rt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&rt.set(e,t))}return t}toString(){return this.cssText}}const Ct=n=>new at(typeof n=="string"?n:n+"",void 0,Y),Ft=(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 at(e,n,Y)},kt=(n,t)=>{J?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)})},lt=J?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Ct(e)})(n):n;/**
5
+ */const E=window,Z=E.ShadowRoot&&(E.ShadyCSS===void 0||E.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gt=Symbol(),mt=new WeakMap;class qt{constructor(t,e,s){if(this._$cssResult$=!0,s!==gt)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(Z&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&mt.set(e,t))}return t}toString(){return this.cssText}}const Wt=n=>new qt(typeof n=="string"?n:n+"",void 0,gt),Jt=(n,t)=>{Z?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const s=document.createElement("style"),i=E.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,n.appendChild(s)})},yt=Z?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return Wt(e)})(n):n;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var Z;const z=window,dt=z.trustedTypes,Dt=dt?dt.emptyScript:"",ct=z.reactiveElementPolyfillSupport,K={toAttribute(n,t){switch(t){case Boolean:n=n?Dt: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}},ht=(n,t)=>t!==n&&(t==t||n==n),G={attribute:!0,type:String,converter:K,reflect:!1,hasChanged:ht};class C extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}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=G){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)||G}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!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(lt(s))}else t!==void 0&&e.push(lt(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}u(){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 kt(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=G){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:K).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),h=typeof r.converter=="function"?{fromAttribute:r.converter}:((i=r.converter)===null||i===void 0?void 0:i.fromAttribute)!==void 0?r.converter:K;this._$El=o,this[o]=h.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;t!==void 0&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||ht)(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){}}C.finalized=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},ct?.({ReactiveElement:C}),((Z=z.reactiveElementVersions)!==null&&Z!==void 0?Z:z.reactiveElementVersions=[]).push("1.4.2");/**
9
+ */var G;const j=window,bt=j.trustedTypes,Kt=bt?bt.emptyScript:"",_t=j.reactiveElementPolyfillSupport,Q={toAttribute(n,t){switch(t){case Boolean:n=n?Kt: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}},Et=(n,t)=>t!==n&&(t==t||n==n),X={attribute:!0,type:String,converter:Q,reflect:!1,hasChanged:Et},tt="finalized";class N 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,s)=>{const i=this._$Ep(s,e);i!==void 0&&(this._$Ev.set(i,s),t.push(i))}),t}static createProperty(t,e=X){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const o=this[t];this[e]=i,this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||X}static finalize(){if(this.hasOwnProperty(tt))return!1;this[tt]=!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,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of s)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(yt(i))}else t!==void 0&&e.push(yt(t));return e}static _$Ep(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.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 Jt(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 s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=X){var i;const o=this.constructor._$Ep(t,s);if(o!==void 0&&s.reflect===!0){const r=(((i=s.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?s.converter:Q).toAttribute(e,s.type);this._$El=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var s;const i=this.constructor,o=i._$Ev.get(t);if(o!==void 0&&this._$El!==o){const r=i.getPropertyOptions(o),l=typeof r.converter=="function"?{fromAttribute:r.converter}:((s=r.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?r.converter:Q;this._$El=o,this[o]=l.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||Et)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(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((i,o)=>this[o]=i),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var o;return(o=i.hostUpdate)===null||o===void 0?void 0:o.call(i)}),this.update(s)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var i;return(i=s.hostUpdated)===null||i===void 0?void 0:i.call(s)}),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,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}N[tt]=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},_t?.({ReactiveElement:N}),((G=j.reactiveElementVersions)!==null&&G!==void 0?G:j.reactiveElementVersions=[]).push("1.6.3");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var Q;const j=window,F=j.trustedTypes,ut=F?F.createPolicy("lit-html",{createHTML:n=>n}):void 0,A=`lit$${(Math.random()+"").slice(9)}$`,pt="?"+A,Mt=`<${pt}>`,k=document,H=(n="")=>k.createComment(n),N=n=>n===null||typeof n!="object"&&typeof n!="function",vt=Array.isArray,Pt=n=>vt(n)||typeof n?.[Symbol.iterator]=="function",T=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,gt=/-->/g,mt=/>/g,E=RegExp(`>|[
14
- \f\r](?:([^\\s"'>=/]+)([
15
- \f\r]*=[
16
- \f\r]*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),$t=/'/g,ft=/"/g,yt=/^(?:script|style|textarea|title)$/i,Ot=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),y=Ot(1),D=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),bt=new WeakMap,M=k.createTreeWalker(k,129,null,!1),Rt=(n,t)=>{const e=n.length-1,i=[];let s,o=t===2?"<svg>":"",r=T;for(let a=0;a<e;a++){const l=n[a];let f,c,p=-1,$=0;for(;$<l.length&&(r.lastIndex=$,c=r.exec(l),c!==null);)$=r.lastIndex,r===T?c[1]==="!--"?r=gt:c[1]!==void 0?r=mt:c[2]!==void 0?(yt.test(c[2])&&(s=RegExp("</"+c[2],"g")),r=E):c[3]!==void 0&&(r=E):r===E?c[0]===">"?(r=s??T,p=-1):c[1]===void 0?p=-2:(p=r.lastIndex-c[2].length,f=c[1],r=c[3]===void 0?E:c[3]==='"'?ft:$t):r===ft||r===$t?r=E:r===gt||r===mt?r=T:(r=E,s=void 0);const u=r===E&&n[a+1].startsWith("/>")?" ":"";o+=r===T?l+Mt:p>=0?(i.push(f),l.slice(0,p)+"$lit$"+l.slice(p)+A+u):l+A+(p===-2?(i.push(void 0),a):u)}const h=o+(n[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ut!==void 0?ut.createHTML(h):h,i]};class B{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const h=t.length-1,a=this.parts,[l,f]=Rt(t,e);if(this.el=B.createElement(l,i),M.currentNode=this.el.content,e===2){const c=this.el.content,p=c.firstChild;p.remove(),c.append(...p.childNodes)}for(;(s=M.nextNode())!==null&&a.length<h;){if(s.nodeType===1){if(s.hasAttributes()){const c=[];for(const p of s.getAttributeNames())if(p.endsWith("$lit$")||p.startsWith(A)){const $=f[r++];if(c.push(p),$!==void 0){const u=s.getAttribute($.toLowerCase()+"$lit$").split(A),x=/([.?@])?(.*)/.exec($);a.push({type:1,index:o,name:x[2],strings:u,ctor:x[1]==="."?Ht:x[1]==="?"?Tt:x[1]==="@"?Bt:I})}else a.push({type:6,index:o})}for(const p of c)s.removeAttribute(p)}if(yt.test(s.tagName)){const c=s.textContent.split(A),p=c.length-1;if(p>0){s.textContent=F?F.emptyScript:"";for(let $=0;$<p;$++)s.append(c[$],H()),M.nextNode(),a.push({type:2,index:++o});s.append(c[p],H())}}}else if(s.nodeType===8)if(s.data===pt)a.push({type:2,index:o});else{let c=-1;for(;(c=s.data.indexOf(A,c+1))!==-1;)a.push({type:7,index:o}),c+=A.length-1}o++}}static createElement(t,e){const i=k.createElement("template");return i.innerHTML=t,i}}function P(n,t,e=n,i){var s,o,r,h;if(t===D)return t;let a=i!==void 0?(s=e._$Co)===null||s===void 0?void 0:s[i]:e._$Cl;const l=N(t)?void 0:t._$litDirective$;return a?.constructor!==l&&((o=a?._$AO)===null||o===void 0||o.call(a,!1),l===void 0?a=void 0:(a=new l(n),a._$AT(n,e,i)),i!==void 0?((r=(h=e)._$Co)!==null&&r!==void 0?r:h._$Co=[])[i]=a:e._$Cl=a),a!==void 0&&(t=P(n,a._$AS(n,t.values),a,i)),t}class Ut{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:i},parts:s}=this._$AD,o=((e=t?.creationScope)!==null&&e!==void 0?e:k).importNode(i,!0);M.currentNode=o;let r=M.nextNode(),h=0,a=0,l=s[0];for(;l!==void 0;){if(h===l.index){let f;l.type===2?f=new L(r,r.nextSibling,this,t):l.type===1?f=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(f=new Lt(r,this,t)),this.u.push(f),l=s[++a]}h!==l?.index&&(r=M.nextNode(),h++)}return o}p(t){let e=0;for(const i of this.u)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class L{constructor(t,e,i,s){var o;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cm=(o=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._$Cm}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=P(this,t,e),N(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==D&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Pt(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==g&&N(this._$AH)?this._$AA.nextSibling.data=t:this.T(k.createTextNode(t)),this._$AH=t}$(t){var e;const{values:i,_$litType$:s}=t,o=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=B.createElement(s.h,this.options)),s);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.p(i);else{const r=new Ut(o,this),h=r.v(this.options);r.p(i),this.T(h),this._$AH=r}}_$AC(t){let e=bt.get(t.strings);return e===void 0&&bt.set(t.strings,e=new B(t)),e}k(t){vt(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 L(this.O(H()),this.O(H()),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._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class I{constructor(t,e,i,s,o){this.type=1,this._$AH=g,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=g}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=P(this,t,e,0),r=!N(t)||t!==this._$AH&&t!==D,r&&(this._$AH=t);else{const h=t;let a,l;for(t=o[0],a=0;a<o.length-1;a++)l=P(this,h[i+a],e,a),l===D&&(l=this._$AH[a]),r||(r=!N(l)||l!==this._$AH[a]),l===g?t=g:t!==g&&(t+=(l??"")+o[a+1]),this._$AH[a]=l}r&&!s&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ht extends I{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}}const Nt=F?F.emptyScript:"";class Tt extends I{constructor(){super(...arguments),this.type=4}j(t){t&&t!==g?this.element.setAttribute(this.name,Nt):this.element.removeAttribute(this.name)}}class Bt extends I{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=(i=P(this,t,e,0))!==null&&i!==void 0?i:g)===D)return;const s=this._$AH,o=t===g&&s!==g||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==g&&(s===g||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 Lt{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){P(this,t)}}const xt=j.litHtmlPolyfillSupport;xt?.(B,L),((Q=j.litHtmlVersions)!==null&&Q!==void 0?Q:j.litHtmlVersions=[]).push("2.4.0");const zt=(n,t,e)=>{var i,s;const o=(i=e?.renderBefore)!==null&&i!==void 0?i:t;let r=o._$litPart$;if(r===void 0){const h=(s=e?.renderBefore)!==null&&s!==void 0?s:null;o._$litPart$=r=new L(t.insertBefore(H(),h),h,void 0,e??{})}return r._$AI(n),r};/**
13
+ */var et;const I=window,k=I.trustedTypes,xt=k?k.createPolicy("lit-html",{createHTML:n=>n}):void 0,st="$lit$",x=`lit$${(Math.random()+"").slice(9)}$`,St="?"+x,Yt=`<${St}>`,S=document,T=()=>S.createComment(""),H=n=>n===null||typeof n!="object"&&typeof n!="function",At=Array.isArray,Zt=n=>At(n)||typeof n?.[Symbol.iterator]=="function",it=`[
14
+ \f\r]`,L=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,wt=/-->/g,Ct=/>/g,A=RegExp(`>|${it}(?:([^\\s"'>=/]+)(${it}*=${it}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ft=/'/g,kt=/"/g,Pt=/^(?:script|style|textarea|title)$/i,Gt=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),y=Gt(1),P=Symbol.for("lit-noChange"),f=Symbol.for("lit-nothing"),Ut=new WeakMap,w=S.createTreeWalker(S,129,null,!1);function Dt(n,t){if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return xt!==void 0?xt.createHTML(t):t}const Qt=(n,t)=>{const e=n.length-1,s=[];let i,o=t===2?"<svg>":"",r=L;for(let l=0;l<e;l++){const a=n[l];let d,u,c=-1,v=0;for(;v<a.length&&(r.lastIndex=v,u=r.exec(a),u!==null);)v=r.lastIndex,r===L?u[1]==="!--"?r=wt:u[1]!==void 0?r=Ct:u[2]!==void 0?(Pt.test(u[2])&&(i=RegExp("</"+u[2],"g")),r=A):u[3]!==void 0&&(r=A):r===A?u[0]===">"?(r=i??L,c=-1):u[1]===void 0?c=-2:(c=r.lastIndex-u[2].length,d=u[1],r=u[3]===void 0?A:u[3]==='"'?kt:Ft):r===kt||r===Ft?r=A:r===wt||r===Ct?r=L:(r=A,i=void 0);const m=r===A&&n[l+1].startsWith("/>")?" ":"";o+=r===L?a+Yt:c>=0?(s.push(d),a.slice(0,c)+st+a.slice(c)+x+m):a+x+(c===-2?(s.push(void 0),l):m)}return[Dt(n,o+(n[e]||"<?>")+(t===2?"</svg>":"")),s]};class B{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const l=t.length-1,a=this.parts,[d,u]=Qt(t,e);if(this.el=B.createElement(d,s),w.currentNode=this.el.content,e===2){const c=this.el.content,v=c.firstChild;v.remove(),c.append(...v.childNodes)}for(;(i=w.nextNode())!==null&&a.length<l;){if(i.nodeType===1){if(i.hasAttributes()){const c=[];for(const v of i.getAttributeNames())if(v.endsWith(st)||v.startsWith(x)){const m=u[r++];if(c.push(v),m!==void 0){const p=i.getAttribute(m.toLowerCase()+st).split(x),_=/([.?@])?(.*)/.exec(m);a.push({type:1,index:o,name:_[2],strings:p,ctor:_[1]==="."?te:_[1]==="?"?se:_[1]==="@"?ie:V})}else a.push({type:6,index:o})}for(const v of c)i.removeAttribute(v)}if(Pt.test(i.tagName)){const c=i.textContent.split(x),v=c.length-1;if(v>0){i.textContent=k?k.emptyScript:"";for(let m=0;m<v;m++)i.append(c[m],T()),w.nextNode(),a.push({type:2,index:++o});i.append(c[v],T())}}}else if(i.nodeType===8)if(i.data===St)a.push({type:2,index:o});else{let c=-1;for(;(c=i.data.indexOf(x,c+1))!==-1;)a.push({type:7,index:o}),c+=x.length-1}o++}}static createElement(t,e){const s=S.createElement("template");return s.innerHTML=t,s}}function U(n,t,e=n,s){var i,o,r,l;if(t===P)return t;let a=s!==void 0?(i=e._$Co)===null||i===void 0?void 0:i[s]:e._$Cl;const d=H(t)?void 0:t._$litDirective$;return a?.constructor!==d&&((o=a?._$AO)===null||o===void 0||o.call(a,!1),d===void 0?a=void 0:(a=new d(n),a._$AT(n,e,s)),s!==void 0?((r=(l=e)._$Co)!==null&&r!==void 0?r:l._$Co=[])[s]=a:e._$Cl=a),a!==void 0&&(t=U(n,a._$AS(n,t.values),a,s)),t}class Xt{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:s},parts:i}=this._$AD,o=((e=t?.creationScope)!==null&&e!==void 0?e:S).importNode(s,!0);w.currentNode=o;let r=w.nextNode(),l=0,a=0,d=i[0];for(;d!==void 0;){if(l===d.index){let u;d.type===2?u=new z(r,r.nextSibling,this,t):d.type===1?u=new d.ctor(r,d.name,d.strings,this,t):d.type===6&&(u=new ne(r,this,t)),this._$AV.push(u),d=i[++a]}l!==d?.index&&(r=w.nextNode(),l++)}return w.currentNode=S,o}v(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class z{constructor(t,e,s,i){var o;this.type=2,this._$AH=f,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cp=(o=i?.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?.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),H(t)?t===f||t==null||t===""?(this._$AH!==f&&this._$AR(),this._$AH=f):t!==this._$AH&&t!==P&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):Zt(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&&H(this._$AH)?this._$AA.nextSibling.data=t:this.$(S.createTextNode(t)),this._$AH=t}g(t){var e;const{values:s,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=B.createElement(Dt(i.h,i.h[0]),this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.v(s);else{const r=new Xt(o,this),l=r.u(this.options);r.v(s),this.$(l),this._$AH=r}}_$AC(t){let e=Ut.get(t.strings);return e===void 0&&Ut.set(t.strings,e=new B(t)),e}T(t){At(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new z(this.k(T()),this.k(T()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class V{constructor(t,e,s,i,o){this.type=1,this._$AH=f,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=f}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(o===void 0)t=U(this,t,e,0),r=!H(t)||t!==this._$AH&&t!==P,r&&(this._$AH=t);else{const l=t;let a,d;for(t=o[0],a=0;a<o.length-1;a++)d=U(this,l[s+a],e,a),d===P&&(d=this._$AH[a]),r||(r=!H(d)||d!==this._$AH[a]),d===f?t=f:t!==f&&(t+=(d??"")+o[a+1]),this._$AH[a]=d}r&&!i&&this.j(t)}j(t){t===f?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class te extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===f?void 0:t}}const ee=k?k.emptyScript:"";class se extends V{constructor(){super(...arguments),this.type=4}j(t){t&&t!==f?this.element.setAttribute(this.name,ee):this.element.removeAttribute(this.name)}}class ie extends V{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){var s;if((t=(s=U(this,t,e,0))!==null&&s!==void 0?s:f)===P)return;const i=this._$AH,o=t===f&&i!==f||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==f&&(i===f||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}}class ne{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){U(this,t)}}const Ot=I.litHtmlPolyfillSupport;Ot?.(B,z),((et=I.litHtmlVersions)!==null&&et!==void 0?et:I.litHtmlVersions=[]).push("2.8.0");const oe=(n,t,e)=>{var s,i;const o=(s=e?.renderBefore)!==null&&s!==void 0?s:t;let r=o._$litPart$;if(r===void 0){const l=(i=e?.renderBefore)!==null&&i!==void 0?i:null;o._$litPart$=r=new z(t.insertBefore(T(),l),l,void 0,e??{})}return r._$AI(n),r};/**
16
+ * @license
17
+ * Copyright 2019 Google LLC
18
+ * SPDX-License-Identifier: BSD-3-Clause
19
+ */const q=window,nt=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ot=Symbol(),Mt=new WeakMap;class Rt{constructor(t,e,s){if(this._$cssResult$=!0,s!==ot)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(nt&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=Mt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Mt.set(e,t))}return t}toString(){return this.cssText}}const re=n=>new Rt(typeof n=="string"?n:n+"",void 0,ot),ae=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((s,i,o)=>s+(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.")})(i)+n[o+1],n[0]);return new Rt(e,n,ot)},le=(n,t)=>{nt?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const s=document.createElement("style"),i=q.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,n.appendChild(s)})},Nt=nt?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return re(e)})(n):n;/**
20
+ * @license
21
+ * Copyright 2017 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ */var rt;const W=window,Tt=W.trustedTypes,de=Tt?Tt.emptyScript:"",Ht=W.reactiveElementPolyfillSupport,at={toAttribute(n,t){switch(t){case Boolean:n=n?de: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}},Lt=(n,t)=>t!==n&&(t==t||n==n),lt={attribute:!0,type:String,converter:at,reflect:!1,hasChanged:Lt},dt="finalized";class D 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,s)=>{const i=this._$Ep(s,e);i!==void 0&&(this._$Ev.set(i,s),t.push(i))}),t}static createProperty(t,e=lt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const o=this[t];this[e]=i,this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||lt}static finalize(){if(this.hasOwnProperty(dt))return!1;this[dt]=!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,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of s)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(Nt(i))}else t!==void 0&&e.push(Nt(t));return e}static _$Ep(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.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 le(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 s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=lt){var i;const o=this.constructor._$Ep(t,s);if(o!==void 0&&s.reflect===!0){const r=(((i=s.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?s.converter:at).toAttribute(e,s.type);this._$El=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var s;const i=this.constructor,o=i._$Ev.get(t);if(o!==void 0&&this._$El!==o){const r=i.getPropertyOptions(o),l=typeof r.converter=="function"?{fromAttribute:r.converter}:((s=r.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?r.converter:at;this._$El=o,this[o]=l.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||Lt)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(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((i,o)=>this[o]=i),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var o;return(o=i.hostUpdate)===null||o===void 0?void 0:o.call(i)}),this.update(s)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var i;return(i=s.hostUpdated)===null||i===void 0?void 0:i.call(s)}),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,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}D[dt]=!0,D.elementProperties=new Map,D.elementStyles=[],D.shadowRootOptions={mode:"open"},Ht?.({ReactiveElement:D}),((rt=W.reactiveElementVersions)!==null&&rt!==void 0?rt:W.reactiveElementVersions=[]).push("1.6.3");/**
18
24
  * @license
19
25
  * Copyright 2017 Google LLC
20
26
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var X,tt;class O extends C{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=zt(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 D}}O.finalized=!0,O._$litElement$=!0,(X=globalThis.litElementHydrateSupport)===null||X===void 0||X.call(globalThis,{LitElement:O});const _t=globalThis.litElementPolyfillSupport;_t?.({LitElement:O}),((tt=globalThis.litElementVersions)!==null&&tt!==void 0?tt:globalThis.litElementVersions=[]).push("3.2.2");var jt=Ft`
27
+ */var ht,ct;class O extends D{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=oe(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 P}}O.finalized=!0,O._$litElement$=!0,(ht=globalThis.litElementHydrateSupport)===null||ht===void 0||ht.call(globalThis,{LitElement:O});const Bt=globalThis.litElementPolyfillSupport;Bt?.({LitElement:O}),((ct=globalThis.litElementVersions)!==null&&ct!==void 0?ct:globalThis.litElementVersions=[]).push("3.3.3");var he=ae`
22
28
  .datepicker-container {
23
29
  position: relative;
24
30
  display: flex;
@@ -367,15 +373,15 @@
367
373
  width: 300px;
368
374
  }
369
375
  }
370
- `,At={exports:{}};/*!
376
+ `,zt={exports:{}};/*!
371
377
  Copyright (c) 2018 Jed Watson.
372
378
  Licensed under the MIT License (MIT), see
373
379
  http://jedwatson.github.io/classnames
374
- */(function(n){(function(){var t={}.hasOwnProperty;function e(){for(var i=[],s=0;s<arguments.length;s++){var o=arguments[s];if(!!o){var r=typeof o;if(r==="string"||r==="number")i.push(o);else if(Array.isArray(o)){if(o.length){var h=e.apply(null,o);h&&i.push(h)}}else if(r==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){i.push(o.toString());continue}for(var a in o)t.call(o,a)&&o[a]&&i.push(a)}}}return i.join(" ")}n.exports?(e.default=e,n.exports=e):window.classNames=e})()})(At);var It=At.exports;const Et=(n,t)=>new Date(n,t,0).getDate(),R=({year:n,month:t,day:e})=>{const i=t<10?`0${t}`:t,s=e<10?`0${e}`:e;return`${n}-${i}-${s}`};function Vt(){const n=new Date,t=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],e=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],i=n.getFullYear(),s=n.getMonth()+1,o=[...Array(10).keys()].map(r=>r+i);return{date:n,weekdays:e,currentYear:i,currentMonth:s,month_names:t,years:o}}function wt({month:n,year:t,selectValue:e,range:i,disablePast:s,availableDays:o}){const r=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],h=[],a=Et(t,n),l=new Date,f=new Date(t,n-1,1),c=new Date(t,n-1,0).getDate();for(let u=f.getDay();u>0;u--)h.push({name:c+1-u,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});for(let u=0;u<a;u++){const x=i.start.value&&i.end.value,et=x&&i.start.value<=R({year:t,month:n,day:u+1})&&i.end.value>=R({year:t,month:n,day:u+1}),it=x&&i.start.value===R({year:t,month:n,day:u+1}),V=x&&i.end.value===R({year:t,month:n,day:u+1}),q=o?.includes(u+1),W=l.getDate()===u+1&&l.getMonth()===n-1,st=e===R({year:t,month:n,day:u+1}),nt=new Date(t,n-1,u+1),d=s&&nt.setHours(0,0,0,0)<l.setHours(0,0,0,0);h.push({value:R({year:t,month:n,day:u+1}),name:1+u,isCurrentMonth:!0,isCurrentDay:u+1===l.getDate(),isToday:W,isAvailable:q,date:nt,disabled:d,selected:st,inRange:et,isStart:it,isEnd:V})}const p=42-h.length;for(let u=0;u<p;u++)h.push({name:u+1,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});return{year:t,month:r[n-1],days:Et(t,n),calendar:h}}function qt(n){const{isAvailable:t,isCurrentMonth:e,isToday:i,disabled:s,selected:o,inRange:r,isStart:h,isEnd:a}=n;return{dayStyles:It({"item-day":!0,"current-month":e,available:t,today:i,disabled:s,selected:o,range:r,start:h,end:a})}}class St extends O{static formAssociated=!0;static styles=jt;static shadowRootOptions={...O.shadowRootOptions,mode:"open"};static properties={label:{type:String},open:{type:Boolean},name:{type:String},value:{type:Array},disablePast:{type:Boolean},disableControls:{type:Boolean},showLegend:{type:Boolean},hideSelector:{type:Boolean},alignDisplay:{type:String}};constructor(){super(),this.open=!1,this.name="desde-hasta",this.value=[],this.year=new Date().getFullYear(),this.years=[],this.month=new Date().getMonth()+1,this.valueStart="",this.valueEnd=""}handleClose(){this.open=!1}changeMonthPrev(){if(this.disableControls)return null;this.month===1?(this.year=this.year-1,this.month=12):this.month=this.month-1,this.requestUpdate()}changeMonthNext(){if(this.disableControls)return null;this.month===12?(this.year=this.year+1,this.month=1):this.month=this.month+1,this.requestUpdate()}onChange(t){this.value=t.target.value}render(){const{disablePast:t,showLegend:e,open:i,year:s,month:o,valueStart:r,valueEnd:h}=this,{weekdays:a,month_names:l,years:f}=Vt(),c={start:{value:this.valueStart,year:this.valueStart.split("-")[0],month:this.valueStart.split("-")[1],day:this.valueStart.split("-")[2]},end:{value:this.valueEnd,year:this.valueEnd.split("-")[0],month:this.valueEnd.split("-")[1],day:this.valueEnd.split("-")[2]}},p=wt({month:o,year:s,selectValue:this.valueStart,range:c,disablePast:t}),$=wt({month:o+1,year:s,selectValue:this.valueEnd,range:c,disablePast:t});document.addEventListener("click",d=>{d.composedPath().includes(this)||this.handleClose()});const u=()=>{this.shadowRoot.querySelectorAll(".dropdown").forEach(v=>{v.classList.remove("open")})},x=d=>{const{dayStyles:v}=qt(d),m=()=>{if(this.valueStart==="")this.valueStart=d.value,this.valueEnd="";else if(this.valueStart!==""&&d.value<this.valueStart)this.valueStart=d.value;else if(this.valueEnd!==""&&d.value>this.valueEnd)this.valueEnd=d.value;else if(this.valueStart!==""&&this.valueEnd===""){this.valueEnd=d.value,this.value=[this.valueStart,this.valueEnd],this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0,detail:{value:`${this.valueStart} - ${this.valueEnd}`}}));const b={value:`${this.valueStart} - ${this.valueEnd}`,name:this.name,start:this.valueStart,end:this.valueEnd,message:`${this.name}: ${this.valueStart} - ${this.valueEnd}`,error:!1,success:!0};this.dispatchEvent(new CustomEvent("callback",{detail:b,bubbles:!0,composed:!0})),this.open=!1}else this.valueStart!==""&&this.valueEnd!==""?(this.valueStart=d.value,this.valueEnd=""):(this.valueStart="",this.valueEnd="");this.setAttribute("date-start",this.valueStart),this.setAttribute("date-end",this.valueEnd)};return y`
375
- <button type="button" class=${v} @click=${b=>{if(u(),d.isCurrentMonth&&!d.disabled){const U=b.target.parentNode.querySelectorAll("button");for(let ot=0;ot<U.length;ot++)U[ot].classList.remove("selected");b.target.classList.add("selected"),m()}else console.log("not available")}} >
376
- ${d.name}
380
+ */(function(n){(function(){var t={}.hasOwnProperty;function e(){for(var o="",r=0;r<arguments.length;r++){var l=arguments[r];l&&(o=i(o,s(l)))}return o}function s(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 r="";for(var l in o)t.call(o,l)&&o[l]&&(r=i(r,l));return r}function i(o,r){return r?o?o+" "+r:o+r:o}n.exports?(e.default=e,n.exports=e):window.classNames=e})()})(zt);var ce=zt.exports;const jt=(n,t)=>new Date(n,t,0).getDate(),M=({year:n,month:t,day:e})=>{const s=t<10?`0${t}`:t,i=e<10?`0${e}`:e;return`${n}-${s}-${i}`};function pe(){const n=new Date,t=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],e=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],s=n.getFullYear(),i=n.getMonth()+1,o=[...Array(10).keys()].map(r=>r+s);return{date:n,weekdays:e,currentYear:s,currentMonth:i,month_names:t,years:o}}function It({month:n,year:t,selectValue:e,range:s,disablePast:i,availableDays:o}){const r=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],l=[],a=jt(t,n),d=new Date,u=new Date(t,n-1,1),c=new Date(t,n-1,0).getDate();for(let p=u.getDay();p>0;p--)l.push({name:c+1-p,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});for(let p=0;p<a;p++){const _=s.start.value&&s.end.value,pt=_&&s.start.value<=M({year:t,month:n,day:p+1})&&s.end.value>=M({year:t,month:n,day:p+1}),ut=_&&s.start.value===M({year:t,month:n,day:p+1}),J=_&&s.end.value===M({year:t,month:n,day:p+1}),K=o?.includes(p+1),Y=d.getDate()===p+1&&d.getMonth()===n-1,vt=e===M({year:t,month:n,day:p+1}),$t=new Date(t,n-1,p+1),h=i&&$t.setHours(0,0,0,0)<d.setHours(0,0,0,0);l.push({value:M({year:t,month:n,day:p+1}),name:1+p,isCurrentMonth:!0,isCurrentDay:p+1===d.getDate(),isToday:Y,isAvailable:K,date:$t,disabled:h,selected:vt,inRange:pt,isStart:ut,isEnd:J})}const v=42-l.length;for(let p=0;p<v;p++)l.push({name:p+1,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});return{year:t,month:r[n-1],days:jt(t,n),calendar:l}}function ue(n){const{isAvailable:t,isCurrentMonth:e,isToday:s,disabled:i,selected:o,inRange:r,isStart:l,isEnd:a}=n;return{dayStyles:ce({"item-day":!0,"current-month":e,available:t,today:s,disabled:i,selected:o,range:r,start:l,end:a})}}class Vt extends O{static formAssociated=!0;static styles=he;static shadowRootOptions={...O.shadowRootOptions,mode:"open"};static properties={label:{type:String},open:{type:Boolean},name:{type:String},value:{type:Array},disablePast:{type:Boolean},disableControls:{type:Boolean},showLegend:{type:Boolean},hideSelector:{type:Boolean},alignDisplay:{type:String}};constructor(){super(),this.open=!1,this.name="desde-hasta",this.value=[],this.year=new Date().getFullYear(),this.years=[],this.month=new Date().getMonth()+1,this.valueStart="",this.valueEnd=""}handleClose(){this.open=!1}changeMonthPrev(){if(this.disableControls)return null;this.month===1?(this.year=this.year-1,this.month=12):this.month=this.month-1,this.requestUpdate()}changeMonthNext(){if(this.disableControls)return null;this.month===12?(this.year=this.year+1,this.month=1):this.month=this.month+1,this.requestUpdate()}onChange(t){this.value=t.target.value}render(){const{disablePast:t,showLegend:e,open:s,year:i,month:o,valueStart:r,valueEnd:l}=this,{weekdays:a,month_names:d,years:u}=pe(),c={start:{value:this.valueStart,year:this.valueStart.split("-")[0],month:this.valueStart.split("-")[1],day:this.valueStart.split("-")[2]},end:{value:this.valueEnd,year:this.valueEnd.split("-")[0],month:this.valueEnd.split("-")[1],day:this.valueEnd.split("-")[2]}},v=It({month:o,year:i,selectValue:this.valueStart,range:c,disablePast:t}),m=It({month:o+1,year:i,selectValue:this.valueEnd,range:c,disablePast:t});document.addEventListener("click",h=>{h.composedPath().includes(this)||this.handleClose()});const p=()=>{this.shadowRoot.querySelectorAll(".dropdown").forEach($=>{$.classList.remove("open")})},_=h=>{const{dayStyles:$}=ue(h),g=()=>{if(this.valueStart==="")this.valueStart=h.value,this.valueEnd="";else if(this.valueStart!==""&&h.value<this.valueStart)this.valueStart=h.value;else if(this.valueEnd!==""&&h.value>this.valueEnd)this.valueEnd=h.value;else if(this.valueStart!==""&&this.valueEnd===""){this.valueEnd=h.value,this.value=[this.valueStart,this.valueEnd],this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0,detail:{value:`${this.valueStart} - ${this.valueEnd}`}}));const b={value:`${this.valueStart} - ${this.valueEnd}`,name:this.name,start:this.valueStart,end:this.valueEnd,message:`${this.name}: ${this.valueStart} - ${this.valueEnd}`,error:!1,success:!0};this.dispatchEvent(new CustomEvent("callback",{detail:b,bubbles:!0,composed:!0})),this.open=!1}else this.valueStart!==""&&this.valueEnd!==""?(this.valueStart=h.value,this.valueEnd=""):(this.valueStart="",this.valueEnd="");this.setAttribute("date-start",this.valueStart),this.setAttribute("date-end",this.valueEnd)};return y`
381
+ <button type="button" class=${$} @click=${b=>{if(p(),h.isCurrentMonth&&!h.disabled){const R=b.target.parentNode.querySelectorAll("button");for(let ft=0;ft<R.length;ft++)R[ft].classList.remove("selected");b.target.classList.add("selected"),g()}else console.log("not available")}} >
382
+ ${h.name}
377
383
  </button>
378
- `},et=()=>y`
384
+ `},pt=()=>y`
379
385
  <div class="legend">
380
386
  <div class="item">
381
387
  <div class="dot available"></div>
@@ -390,30 +396,30 @@
390
396
  <cas-text text="Sin horas disponibles" variant="caption2"></cas-text>
391
397
  </div>
392
398
  </div>
393
- `,it=(d,v,m)=>y`
394
- <div class="item-dropdown" @click=${()=>{v==="year"?this.year=d:this.month=m+1,u(),this.requestUpdate()}}>
395
- <cas-text variant="footnote2" >${d}</cas-text>
399
+ `,ut=(h,$,g)=>y`
400
+ <div class="item-dropdown" @click=${()=>{$==="year"?this.year=h:this.month=g+1,p(),this.requestUpdate()}}>
401
+ <cas-text variant="footnote2" >${h}</cas-text>
396
402
  </div>
397
- `,V=({month:d,data:v,mode:m})=>y`
398
- <div class="dropdown ${m}">
399
- <div class="head-dropdown" @click=${()=>{const b=this.shadowRoot.querySelector(`.dropdown.${m}`);b.classList.contains("open")?b.classList.remove("open"):b.classList.add("open")}} >
400
- <cas-text variant="headline3">${d[m]}</cas-text>
403
+ `,J=({month:h,data:$,mode:g})=>y`
404
+ <div class="dropdown ${g}">
405
+ <div class="head-dropdown" @click=${()=>{const b=this.shadowRoot.querySelector(`.dropdown.${g}`);b.classList.contains("open")?b.classList.remove("open"):b.classList.add("open")}} >
406
+ <cas-text variant="headline3">${h[g]}</cas-text>
401
407
  <cas-icon name="flat-sortDown" size="20"></cas-icon>
402
408
  </div>
403
409
  <div class="dropdown-content scrollable">
404
- ${v?.map((b,U)=>it(b,m,U))}
410
+ ${$?.map((b,R)=>ut(b,g,R))}
405
411
  </div>
406
412
  </div>
407
- `,q=d=>y`
413
+ `,K=h=>y`
408
414
  <div class="month-container">
409
415
  <div class="header-month">
410
416
  <button class="prev-month" @click=${this.changeMonthPrev}>
411
417
  <cas-icon name="flat-chevronLeft" size="20"></cas-icon>
412
418
  </button>
413
419
  <div class="head-current-month">
414
- ${this.hideSelector?y`<cas-text variant="headline3">${d.month} ${d.year}</cas-text>`:y`
415
- ${V({month:d,data:l,mode:"month"})}
416
- ${V({month:d,data:f,mode:"year"})}
420
+ ${this.hideSelector?y`<cas-text variant="headline3">${h.month} ${h.year}</cas-text>`:y`
421
+ ${J({month:h,data:d,mode:"month"})}
422
+ ${J({month:h,data:u,mode:"year"})}
417
423
  `}
418
424
 
419
425
  </div>
@@ -422,46 +428,46 @@
422
428
  </button>
423
429
  </div>
424
430
  <div class="list-name-days">
425
- ${a?.map(v=>y`<cas-text text=${v} variant="caption1"/>`)}
431
+ ${a?.map($=>y`<cas-text text=${$} variant="caption1"/>`)}
426
432
  </div>
427
433
  <div class="list-days">
428
- ${d.calendar?.map(v=>x(v))}
434
+ ${h.calendar?.map($=>_($))}
429
435
  </div>
430
- ${e?et():null}
436
+ ${e?pt():null}
431
437
  </div>
432
- `,W=({name:d,value:v})=>{const m=()=>{this.open=!0};return v===""?y`
433
- <cas-input label=${d} icon="flat-calendarOn" @click=${m} alignment="trailing" readonly fullWidth></cas-input>
438
+ `,Y=({name:h,value:$})=>{const g=()=>{this.open=!0};return $===""?y`
439
+ <cas-input label=${h} icon="flat-calendarOn" @click=${g} alignment="trailing" readonly fullWidth></cas-input>
434
440
  `:y`
435
441
  <div class="datepicker">
436
442
  <cas-input
437
443
  type="date"
438
- name=${d}
439
- label=${d}
440
- value=${v}
444
+ name=${h}
445
+ label=${h}
446
+ value=${$}
441
447
  icon="flat-calendarOn"
442
448
  @input=${this.onChange}
443
- @click=${m}
449
+ @click=${g}
444
450
  alignment="trailing"
445
451
  readonly
446
452
  fullWidth
447
453
  ></cas-input>
448
454
  </div>
449
- `},st=()=>{const{top:d,bottom:v,left:m,right:w}=this.getBoundingClientRect();return this.alignDisplay==="right"?`position: fixed; top:${d+92}px; right:${window.innerWidth-w}px; z-index:1;`:this.alignDisplay==="top right"?`position: fixed; bottom:${window.innerHeight-(v-72)}px; right:${window.innerWidth-w}px; z-index:1;`:`position: fixed; top:${d+92}px; left:${m}px; z-index:1;`};return document.getElementById("form-content")?.addEventListener("scroll",()=>{i&&this.handleClose()}),window.addEventListener("scroll",d=>{const v=this.shadowRoot.querySelector(".content");if(v){const{top:m,bottom:w}=this.getBoundingClientRect();this.alignDisplay?.split(" ")?.find(U=>U==="top")?v.style.bottom=`${window.innerHeight-(w-72)}px`:v.style.top=`${m+92}px`}}),y`
455
+ `},vt=()=>{const{top:h,bottom:$,left:g,right:C}=this.getBoundingClientRect();return this.alignDisplay==="right"?`position: fixed; top:${h+92}px; right:${window.innerWidth-C}px; z-index:1;`:this.alignDisplay==="top right"?`position: fixed; bottom:${window.innerHeight-($-72)}px; right:${window.innerWidth-C}px; z-index:1;`:`position: fixed; top:${h+92}px; left:${g}px; z-index:1;`};return document.getElementById("form-content")?.addEventListener("scroll",()=>{s&&this.handleClose()}),window.addEventListener("scroll",h=>{const $=this.shadowRoot.querySelector(".content");if($){const{top:g,bottom:C}=this.getBoundingClientRect();this.alignDisplay?.split(" ")?.find(R=>R==="top")?$.style.bottom=`${window.innerHeight-(C-72)}px`:$.style.top=`${g+92}px`}}),y`
450
456
  <div class="datepicker-container">
451
457
  <label>
452
458
  <cas-text variant="tertiary2">${this.label}</cas-text>
453
459
  </label>
454
460
  <div class="group-datepicker">
455
- ${W({name:"Desde",value:this.valueStart})}
456
- ${W({name:"Hasta",value:this.valueEnd})}
461
+ ${Y({name:"Desde",value:this.valueStart})}
462
+ ${Y({name:"Hasta",value:this.valueEnd})}
457
463
  </div>
458
464
 
459
- ${i?y`
465
+ ${s?y`
460
466
  <div style="height: 400px"></div>
461
- <section class="content" style=${st()} >
462
- ${q(p)}
463
- ${q($)}
467
+ <section class="content" style=${vt()} >
468
+ ${K(v)}
469
+ ${K(m)}
464
470
  </section>
465
471
  `:null}
466
472
  </div>
467
- `}}customElements.get("cas-date-picker-range")||customElements.define("cas-date-picker-range",St),S.CasDatePickerRange=St,Object.defineProperties(S,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
473
+ `}}customElements.get("cas-date-picker-range")||customElements.define("cas-date-picker-range",Vt),F.CasDatePickerRange=Vt,Object.defineProperties(F,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
@@ -1,28 +1,34 @@
1
- (function(C,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(C=typeof globalThis<"u"?globalThis:C||self,_(C["cas-date-picker"]={}))})(this,function(C){"use strict";/**
1
+ (function(k,_){typeof exports=="object"&&typeof module<"u"?_(exports):typeof define=="function"&&define.amd?define(["exports"],_):(k=typeof globalThis<"u"?globalThis:k||self,_(k["cas-date-picker"]={}))})(this,function(k){"use strict";/**
2
2
  * @license
3
3
  * Copyright 2019 Google LLC
4
4
  * SPDX-License-Identifier: BSD-3-Clause
5
- */const _=window,V=_.ShadowRoot&&(_.ShadyCSS===void 0||_.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,W=Symbol(),X=new WeakMap;class tt{constructor(t,e,s){if(this._$cssResult$=!0,s!==W)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(V&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=X.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&X.set(e,t))}return t}toString(){return this.cssText}}const xt=n=>new tt(typeof n=="string"?n:n+"",void 0,W),At=(n,...t)=>{const e=n.length===1?n[0]:t.reduce((s,i,o)=>s+(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.")})(i)+n[o+1],n[0]);return new tt(e,n,W)},wt=(n,t)=>{V?n.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const s=document.createElement("style"),i=_.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,n.appendChild(s)})},et=V?n=>n:n=>n instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return xt(e)})(n):n;/**
5
+ */const _=window,J=_.ShadowRoot&&(_.ShadyCSS===void 0||_.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ct=Symbol(),ht=new WeakMap;class jt{constructor(t,e,s){if(this._$cssResult$=!0,s!==ct)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(J&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=ht.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&ht.set(e,t))}return t}toString(){return this.cssText}}const zt=o=>new jt(typeof o=="string"?o:o+"",void 0,ct),Bt=(o,t)=>{J?o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const s=document.createElement("style"),i=_.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)})},pt=J?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return zt(e)})(o):o;/**
6
6
  * @license
7
7
  * Copyright 2017 Google LLC
8
8
  * SPDX-License-Identifier: BSD-3-Clause
9
- */var q;const j=window,st=j.trustedTypes,Et=st?st.emptyScript:"",it=j.reactiveElementPolyfillSupport,J={toAttribute(n,t){switch(t){case Boolean:n=n?Et: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}},nt=(n,t)=>t!==n&&(t==t||n==n),Y={attribute:!0,type:String,converter:J,reflect:!1,hasChanged:nt};class F extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}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,s)=>{const i=this._$Ep(s,e);i!==void 0&&(this._$Ev.set(i,s),t.push(i))}),t}static createProperty(t,e=Y){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const o=this[t];this[e]=i,this.requestUpdate(t,o,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Y}static finalize(){if(this.hasOwnProperty("finalized"))return!1;this.finalized=!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,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of s)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(et(i))}else t!==void 0&&e.push(et(t));return e}static _$Ep(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}u(){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,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.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 wt(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 s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=Y){var i;const o=this.constructor._$Ep(t,s);if(o!==void 0&&s.reflect===!0){const r=(((i=s.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?s.converter:J).toAttribute(e,s.type);this._$El=t,r==null?this.removeAttribute(o):this.setAttribute(o,r),this._$El=null}}_$AK(t,e){var s;const i=this.constructor,o=i._$Ev.get(t);if(o!==void 0&&this._$El!==o){const r=i.getPropertyOptions(o),c=typeof r.converter=="function"?{fromAttribute:r.converter}:((s=r.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?r.converter:J;this._$El=o,this[o]=c.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||nt)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(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((i,o)=>this[o]=i),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var o;return(o=i.hostUpdate)===null||o===void 0?void 0:o.call(i)}),this.update(s)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var i;return(i=s.hostUpdated)===null||i===void 0?void 0:i.call(s)}),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,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}F.finalized=!0,F.elementProperties=new Map,F.elementStyles=[],F.shadowRootOptions={mode:"open"},it?.({ReactiveElement:F}),((q=j.reactiveElementVersions)!==null&&q!==void 0?q:j.reactiveElementVersions=[]).push("1.4.2");/**
9
+ */var K;const B=window,ut=B.trustedTypes,It=ut?ut.emptyScript:"",vt=B.reactiveElementPolyfillSupport,Y={toAttribute(o,t){switch(t){case Boolean:o=o?It:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},$t=(o,t)=>t!==o&&(t==t||o==o),Z={attribute:!0,type:String,converter:Y,reflect:!1,hasChanged:$t},G="finalized";class N 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,s)=>{const i=this._$Ep(s,e);i!==void 0&&(this._$Ev.set(i,s),t.push(i))}),t}static createProperty(t,e=Z){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const n=this[t];this[e]=i,this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Z}static finalize(){if(this.hasOwnProperty(G))return!1;this[G]=!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,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of s)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(pt(i))}else t!==void 0&&e.push(pt(t));return e}static _$Ep(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.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 Bt(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 s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=Z){var i;const n=this.constructor._$Ep(t,s);if(n!==void 0&&s.reflect===!0){const r=(((i=s.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?s.converter:Y).toAttribute(e,s.type);this._$El=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var s;const i=this.constructor,n=i._$Ev.get(t);if(n!==void 0&&this._$El!==n){const r=i.getPropertyOptions(n),d=typeof r.converter=="function"?{fromAttribute:r.converter}:((s=r.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?r.converter:Y;this._$El=n,this[n]=d.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||$t)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(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((i,n)=>this[n]=i),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var n;return(n=i.hostUpdate)===null||n===void 0?void 0:n.call(i)}),this.update(s)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var i;return(i=s.hostUpdated)===null||i===void 0?void 0:i.call(s)}),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,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}N[G]=!0,N.elementProperties=new Map,N.elementStyles=[],N.shadowRootOptions={mode:"open"},vt?.({ReactiveElement:N}),((K=B.reactiveElementVersions)!==null&&K!==void 0?K:B.reactiveElementVersions=[]).push("1.6.3");/**
10
10
  * @license
11
11
  * Copyright 2017 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */var Z;const z=window,k=z.trustedTypes,ot=k?k.createPolicy("lit-html",{createHTML:n=>n}):void 0,x=`lit$${(Math.random()+"").slice(9)}$`,rt="?"+x,St=`<${rt}>`,D=document,H=(n="")=>D.createComment(n),T=n=>n===null||typeof n!="object"&&typeof n!="function",at=Array.isArray,Ct=n=>at(n)||typeof n?.[Symbol.iterator]=="function",R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,lt=/-->/g,dt=/>/g,E=RegExp(`>|[
14
- \f\r](?:([^\\s"'>=/]+)([
15
- \f\r]*=[
16
- \f\r]*(?:[^
17
- \f\r"'\`<>=]|("|')|))|$)`,"g"),ct=/'/g,ht=/"/g,pt=/^(?:script|style|textarea|title)$/i,Ft=n=>(t,...e)=>({_$litType$:n,strings:t,values:e}),kt=Ft(1),M=Symbol.for("lit-noChange"),$=Symbol.for("lit-nothing"),ut=new WeakMap,P=D.createTreeWalker(D,129,null,!1),Dt=(n,t)=>{const e=n.length-1,s=[];let i,o=t===2?"<svg>":"",r=R;for(let a=0;a<e;a++){const l=n[a];let m,d,h=-1,g=0;for(;g<l.length&&(r.lastIndex=g,d=r.exec(l),d!==null);)g=r.lastIndex,r===R?d[1]==="!--"?r=lt:d[1]!==void 0?r=dt:d[2]!==void 0?(pt.test(d[2])&&(i=RegExp("</"+d[2],"g")),r=E):d[3]!==void 0&&(r=E):r===E?d[0]===">"?(r=i??R,h=-1):d[1]===void 0?h=-2:(h=r.lastIndex-d[2].length,m=d[1],r=d[3]===void 0?E:d[3]==='"'?ht:ct):r===ht||r===ct?r=E:r===lt||r===dt?r=R:(r=E,i=void 0);const A=r===E&&n[a+1].startsWith("/>")?" ":"";o+=r===R?l+St:h>=0?(s.push(m),l.slice(0,h)+"$lit$"+l.slice(h)+x+A):l+x+(h===-2?(s.push(void 0),a):A)}const c=o+(n[e]||"<?>")+(t===2?"</svg>":"");if(!Array.isArray(n)||!n.hasOwnProperty("raw"))throw Error("invalid template strings array");return[ot!==void 0?ot.createHTML(c):c,s]};class B{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,r=0;const c=t.length-1,a=this.parts,[l,m]=Dt(t,e);if(this.el=B.createElement(l,s),P.currentNode=this.el.content,e===2){const d=this.el.content,h=d.firstChild;h.remove(),d.append(...h.childNodes)}for(;(i=P.nextNode())!==null&&a.length<c;){if(i.nodeType===1){if(i.hasAttributes()){const d=[];for(const h of i.getAttributeNames())if(h.endsWith("$lit$")||h.startsWith(x)){const g=m[r++];if(d.push(h),g!==void 0){const A=i.getAttribute(g.toLowerCase()+"$lit$").split(x),S=/([.?@])?(.*)/.exec(g);a.push({type:1,index:o,name:S[2],strings:A,ctor:S[1]==="."?Pt:S[1]==="?"?Nt:S[1]==="@"?Ut:I})}else a.push({type:6,index:o})}for(const h of d)i.removeAttribute(h)}if(pt.test(i.tagName)){const d=i.textContent.split(x),h=d.length-1;if(h>0){i.textContent=k?k.emptyScript:"";for(let g=0;g<h;g++)i.append(d[g],H()),P.nextNode(),a.push({type:2,index:++o});i.append(d[h],H())}}}else if(i.nodeType===8)if(i.data===rt)a.push({type:2,index:o});else{let d=-1;for(;(d=i.data.indexOf(x,d+1))!==-1;)a.push({type:7,index:o}),d+=x.length-1}o++}}static createElement(t,e){const s=D.createElement("template");return s.innerHTML=t,s}}function O(n,t,e=n,s){var i,o,r,c;if(t===M)return t;let a=s!==void 0?(i=e._$Co)===null||i===void 0?void 0:i[s]:e._$Cl;const l=T(t)?void 0:t._$litDirective$;return a?.constructor!==l&&((o=a?._$AO)===null||o===void 0||o.call(a,!1),l===void 0?a=void 0:(a=new l(n),a._$AT(n,e,s)),s!==void 0?((r=(c=e)._$Co)!==null&&r!==void 0?r:c._$Co=[])[s]=a:e._$Cl=a),a!==void 0&&(t=O(n,a._$AS(n,t.values),a,s)),t}class Mt{constructor(t,e){this.u=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}v(t){var e;const{el:{content:s},parts:i}=this._$AD,o=((e=t?.creationScope)!==null&&e!==void 0?e:D).importNode(s,!0);P.currentNode=o;let r=P.nextNode(),c=0,a=0,l=i[0];for(;l!==void 0;){if(c===l.index){let m;l.type===2?m=new L(r,r.nextSibling,this,t):l.type===1?m=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(m=new Ht(r,this,t)),this.u.push(m),l=i[++a]}c!==l?.index&&(r=P.nextNode(),c++)}return o}p(t){let e=0;for(const s of this.u)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class L{constructor(t,e,s,i){var o;this.type=2,this._$AH=$,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cm=(o=i?.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._$Cm}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=O(this,t,e),T(t)?t===$||t==null||t===""?(this._$AH!==$&&this._$AR(),this._$AH=$):t!==this._$AH&&t!==M&&this.g(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Ct(t)?this.k(t):this.g(t)}O(t,e=this._$AB){return this._$AA.parentNode.insertBefore(t,e)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}g(t){this._$AH!==$&&T(this._$AH)?this._$AA.nextSibling.data=t:this.T(D.createTextNode(t)),this._$AH=t}$(t){var e;const{values:s,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=B.createElement(i.h,this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===o)this._$AH.p(s);else{const r=new Mt(o,this),c=r.v(this.options);r.p(s),this.T(c),this._$AH=r}}_$AC(t){let e=ut.get(t.strings);return e===void 0&&ut.set(t.strings,e=new B(t)),e}k(t){at(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const o of t)i===e.length?e.push(s=new L(this.O(H()),this.O(H()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cm=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class I{constructor(t,e,s,i,o){this.type=1,this._$AH=$,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=$}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){const o=this.strings;let r=!1;if(o===void 0)t=O(this,t,e,0),r=!T(t)||t!==this._$AH&&t!==M,r&&(this._$AH=t);else{const c=t;let a,l;for(t=o[0],a=0;a<o.length-1;a++)l=O(this,c[s+a],e,a),l===M&&(l=this._$AH[a]),r||(r=!T(l)||l!==this._$AH[a]),l===$?t=$:t!==$&&(t+=(l??"")+o[a+1]),this._$AH[a]=l}r&&!i&&this.j(t)}j(t){t===$?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Pt extends I{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===$?void 0:t}}const Ot=k?k.emptyScript:"";class Nt extends I{constructor(){super(...arguments),this.type=4}j(t){t&&t!==$?this.element.setAttribute(this.name,Ot):this.element.removeAttribute(this.name)}}class Ut extends I{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){var s;if((t=(s=O(this,t,e,0))!==null&&s!==void 0?s:$)===M)return;const i=this._$AH,o=t===$&&i!==$||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==$&&(i===$||o);o&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}}class Ht{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){O(this,t)}}const vt=z.litHtmlPolyfillSupport;vt?.(B,L),((Z=z.litHtmlVersions)!==null&&Z!==void 0?Z:z.litHtmlVersions=[]).push("2.4.0");const Tt=(n,t,e)=>{var s,i;const o=(s=e?.renderBefore)!==null&&s!==void 0?s:t;let r=o._$litPart$;if(r===void 0){const c=(i=e?.renderBefore)!==null&&i!==void 0?i:null;o._$litPart$=r=new L(t.insertBefore(H(),c),c,void 0,e??{})}return r._$AI(n),r};/**
13
+ */var Q;const I=window,P=I.trustedTypes,ft=P?P.createPolicy("lit-html",{createHTML:o=>o}):void 0,X="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,mt="?"+E,Vt=`<${mt}>`,x=document,R=()=>x.createComment(""),T=o=>o===null||typeof o!="object"&&typeof o!="function",gt=Array.isArray,qt=o=>gt(o)||typeof o?.[Symbol.iterator]=="function",tt=`[
14
+ \f\r]`,H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,yt=/-->/g,bt=/>/g,S=RegExp(`>|${tt}(?:([^\\s"'>=/]+)(${tt}*=${tt}*(?:[^
15
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),_t=/'/g,Et=/"/g,At=/^(?:script|style|textarea|title)$/i,Wt=o=>(t,...e)=>({_$litType$:o,strings:t,values:e}),Jt=Wt(1),F=Symbol.for("lit-noChange"),f=Symbol.for("lit-nothing"),xt=new WeakMap,w=x.createTreeWalker(x,129,null,!1);function St(o,t){if(!Array.isArray(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return ft!==void 0?ft.createHTML(t):t}const Kt=(o,t)=>{const e=o.length-1,s=[];let i,n=t===2?"<svg>":"",r=H;for(let d=0;d<e;d++){const a=o[d];let l,h,c=-1,u=0;for(;u<a.length&&(r.lastIndex=u,h=r.exec(a),h!==null);)u=r.lastIndex,r===H?h[1]==="!--"?r=yt:h[1]!==void 0?r=bt:h[2]!==void 0?(At.test(h[2])&&(i=RegExp("</"+h[2],"g")),r=S):h[3]!==void 0&&(r=S):r===S?h[0]===">"?(r=i??H,c=-1):h[1]===void 0?c=-2:(c=r.lastIndex-h[2].length,l=h[1],r=h[3]===void 0?S:h[3]==='"'?Et:_t):r===Et||r===_t?r=S:r===yt||r===bt?r=H:(r=S,i=void 0);const g=r===S&&o[d+1].startsWith("/>")?" ":"";n+=r===H?a+Vt:c>=0?(s.push(l),a.slice(0,c)+X+a.slice(c)+E+g):a+E+(c===-2?(s.push(void 0),d):g)}return[St(o,n+(o[e]||"<?>")+(t===2?"</svg>":"")),s]};class L{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let n=0,r=0;const d=t.length-1,a=this.parts,[l,h]=Kt(t,e);if(this.el=L.createElement(l,s),w.currentNode=this.el.content,e===2){const c=this.el.content,u=c.firstChild;u.remove(),c.append(...u.childNodes)}for(;(i=w.nextNode())!==null&&a.length<d;){if(i.nodeType===1){if(i.hasAttributes()){const c=[];for(const u of i.getAttributeNames())if(u.endsWith(X)||u.startsWith(E)){const g=h[r++];if(c.push(u),g!==void 0){const z=i.getAttribute(g.toLowerCase()+X).split(E),C=/([.?@])?(.*)/.exec(g);a.push({type:1,index:n,name:C[2],strings:z,ctor:C[1]==="."?Zt:C[1]==="?"?Qt:C[1]==="@"?Xt:V})}else a.push({type:6,index:n})}for(const u of c)i.removeAttribute(u)}if(At.test(i.tagName)){const c=i.textContent.split(E),u=c.length-1;if(u>0){i.textContent=P?P.emptyScript:"";for(let g=0;g<u;g++)i.append(c[g],R()),w.nextNode(),a.push({type:2,index:++n});i.append(c[u],R())}}}else if(i.nodeType===8)if(i.data===mt)a.push({type:2,index:n});else{let c=-1;for(;(c=i.data.indexOf(E,c+1))!==-1;)a.push({type:7,index:n}),c+=E.length-1}n++}}static createElement(t,e){const s=x.createElement("template");return s.innerHTML=t,s}}function D(o,t,e=o,s){var i,n,r,d;if(t===F)return t;let a=s!==void 0?(i=e._$Co)===null||i===void 0?void 0:i[s]:e._$Cl;const l=T(t)?void 0:t._$litDirective$;return a?.constructor!==l&&((n=a?._$AO)===null||n===void 0||n.call(a,!1),l===void 0?a=void 0:(a=new l(o),a._$AT(o,e,s)),s!==void 0?((r=(d=e)._$Co)!==null&&r!==void 0?r:d._$Co=[])[s]=a:e._$Cl=a),a!==void 0&&(t=D(o,a._$AS(o,t.values),a,s)),t}class Yt{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:s},parts:i}=this._$AD,n=((e=t?.creationScope)!==null&&e!==void 0?e:x).importNode(s,!0);w.currentNode=n;let r=w.nextNode(),d=0,a=0,l=i[0];for(;l!==void 0;){if(d===l.index){let h;l.type===2?h=new j(r,r.nextSibling,this,t):l.type===1?h=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(h=new te(r,this,t)),this._$AV.push(h),l=i[++a]}d!==l?.index&&(r=w.nextNode(),d++)}return w.currentNode=x,n}v(t){let e=0;for(const s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}}class j{constructor(t,e,s,i){var n;this.type=2,this._$AH=f,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cp=(n=i?.isConnected)===null||n===void 0||n}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?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=D(this,t,e),T(t)?t===f||t==null||t===""?(this._$AH!==f&&this._$AR(),this._$AH=f):t!==this._$AH&&t!==F&&this._(t):t._$litType$!==void 0?this.g(t):t.nodeType!==void 0?this.$(t):qt(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&&T(this._$AH)?this._$AA.nextSibling.data=t:this.$(x.createTextNode(t)),this._$AH=t}g(t){var e;const{values:s,_$litType$:i}=t,n=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=L.createElement(St(i.h,i.h[0]),this.options)),i);if(((e=this._$AH)===null||e===void 0?void 0:e._$AD)===n)this._$AH.v(s);else{const r=new Yt(n,this),d=r.u(this.options);r.v(s),this.$(d),this._$AH=r}}_$AC(t){let e=xt.get(t.strings);return e===void 0&&xt.set(t.strings,e=new L(t)),e}T(t){gt(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let s,i=0;for(const n of t)i===e.length?e.push(s=new j(this.k(R()),this.k(R()),this,this.options)):s=e[i],s._$AI(n),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){var s;for((s=this._$AP)===null||s===void 0||s.call(this,!1,!0,e);t&&t!==this._$AB;){const i=t.nextSibling;t.remove(),t=i}}setConnected(t){var e;this._$AM===void 0&&(this._$Cp=t,(e=this._$AP)===null||e===void 0||e.call(this,t))}}class V{constructor(t,e,s,i,n){this.type=1,this._$AH=f,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=n,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=f}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,s,i){const n=this.strings;let r=!1;if(n===void 0)t=D(this,t,e,0),r=!T(t)||t!==this._$AH&&t!==F,r&&(this._$AH=t);else{const d=t;let a,l;for(t=n[0],a=0;a<n.length-1;a++)l=D(this,d[s+a],e,a),l===F&&(l=this._$AH[a]),r||(r=!T(l)||l!==this._$AH[a]),l===f?t=f:t!==f&&(t+=(l??"")+n[a+1]),this._$AH[a]=l}r&&!i&&this.j(t)}j(t){t===f?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Zt extends V{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===f?void 0:t}}const Gt=P?P.emptyScript:"";class Qt extends V{constructor(){super(...arguments),this.type=4}j(t){t&&t!==f?this.element.setAttribute(this.name,Gt):this.element.removeAttribute(this.name)}}class Xt extends V{constructor(t,e,s,i,n){super(t,e,s,i,n),this.type=5}_$AI(t,e=this){var s;if((t=(s=D(this,t,e,0))!==null&&s!==void 0?s:f)===F)return;const i=this._$AH,n=t===f&&i!==f||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==f&&(i===f||n);n&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,s;typeof this._$AH=="function"?this._$AH.call((s=(e=this.options)===null||e===void 0?void 0:e.host)!==null&&s!==void 0?s:this.element,t):this._$AH.handleEvent(t)}}class te{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){D(this,t)}}const wt=I.litHtmlPolyfillSupport;wt?.(L,j),((Q=I.litHtmlVersions)!==null&&Q!==void 0?Q:I.litHtmlVersions=[]).push("2.8.0");const ee=(o,t,e)=>{var s,i;const n=(s=e?.renderBefore)!==null&&s!==void 0?s:t;let r=n._$litPart$;if(r===void 0){const d=(i=e?.renderBefore)!==null&&i!==void 0?i:null;n._$litPart$=r=new j(t.insertBefore(R(),d),d,void 0,e??{})}return r._$AI(o),r};/**
16
+ * @license
17
+ * Copyright 2019 Google LLC
18
+ * SPDX-License-Identifier: BSD-3-Clause
19
+ */const q=window,et=q.ShadowRoot&&(q.ShadyCSS===void 0||q.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,st=Symbol(),Ct=new WeakMap;class kt{constructor(t,e,s){if(this._$cssResult$=!0,s!==st)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(et&&t===void 0){const s=e!==void 0&&e.length===1;s&&(t=Ct.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&Ct.set(e,t))}return t}toString(){return this.cssText}}const se=o=>new kt(typeof o=="string"?o:o+"",void 0,st),ie=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((s,i,n)=>s+(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.")})(i)+o[n+1],o[0]);return new kt(e,o,st)},oe=(o,t)=>{et?o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet):t.forEach(e=>{const s=document.createElement("style"),i=q.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,o.appendChild(s)})},Pt=et?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const s of t.cssRules)e+=s.cssText;return se(e)})(o):o;/**
20
+ * @license
21
+ * Copyright 2017 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ */var it;const W=window,Ft=W.trustedTypes,ne=Ft?Ft.emptyScript:"",Dt=W.reactiveElementPolyfillSupport,ot={toAttribute(o,t){switch(t){case Boolean:o=o?ne:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch{e=null}}return e}},Ut=(o,t)=>t!==o&&(t==t||o==o),nt={attribute:!0,type:String,converter:ot,reflect:!1,hasChanged:Ut},rt="finalized";class U 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,s)=>{const i=this._$Ep(s,e);i!==void 0&&(this._$Ev.set(i,s),t.push(i))}),t}static createProperty(t,e=nt){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const s=typeof t=="symbol"?Symbol():"__"+t,i=this.getPropertyDescriptor(t,s,e);i!==void 0&&Object.defineProperty(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){return{get(){return this[e]},set(i){const n=this[t];this[e]=i,this.requestUpdate(t,n,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||nt}static finalize(){if(this.hasOwnProperty(rt))return!1;this[rt]=!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,s=[...Object.getOwnPropertyNames(e),...Object.getOwnPropertySymbols(e)];for(const i of s)this.createProperty(i,e[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const s=new Set(t.flat(1/0).reverse());for(const i of s)e.unshift(Pt(i))}else t!==void 0&&e.push(Pt(t));return e}static _$Ep(t,e){const s=e.attribute;return s===!1?void 0:typeof s=="string"?s: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,s;((e=this._$ES)!==null&&e!==void 0?e:this._$ES=[]).push(t),this.renderRoot!==void 0&&this.isConnected&&((s=t.hostConnected)===null||s===void 0||s.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 oe(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 s;return(s=e.hostConnected)===null||s===void 0?void 0:s.call(e)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$ES)===null||t===void 0||t.forEach(e=>{var s;return(s=e.hostDisconnected)===null||s===void 0?void 0:s.call(e)})}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$EO(t,e,s=nt){var i;const n=this.constructor._$Ep(t,s);if(n!==void 0&&s.reflect===!0){const r=(((i=s.converter)===null||i===void 0?void 0:i.toAttribute)!==void 0?s.converter:ot).toAttribute(e,s.type);this._$El=t,r==null?this.removeAttribute(n):this.setAttribute(n,r),this._$El=null}}_$AK(t,e){var s;const i=this.constructor,n=i._$Ev.get(t);if(n!==void 0&&this._$El!==n){const r=i.getPropertyOptions(n),d=typeof r.converter=="function"?{fromAttribute:r.converter}:((s=r.converter)===null||s===void 0?void 0:s.fromAttribute)!==void 0?r.converter:ot;this._$El=n,this[n]=d.fromAttribute(e,r.type),this._$El=null}}requestUpdate(t,e,s){let i=!0;t!==void 0&&(((s=s||this.constructor.getPropertyOptions(t)).hasChanged||Ut)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),s.reflect===!0&&this._$El!==t&&(this._$EC===void 0&&(this._$EC=new Map),this._$EC.set(t,s))):i=!1),!this.isUpdatePending&&i&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(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((i,n)=>this[n]=i),this._$Ei=void 0);let e=!1;const s=this._$AL;try{e=this.shouldUpdate(s),e?(this.willUpdate(s),(t=this._$ES)===null||t===void 0||t.forEach(i=>{var n;return(n=i.hostUpdate)===null||n===void 0?void 0:n.call(i)}),this.update(s)):this._$Ek()}catch(i){throw e=!1,this._$Ek(),i}e&&this._$AE(s)}willUpdate(t){}_$AE(t){var e;(e=this._$ES)===null||e===void 0||e.forEach(s=>{var i;return(i=s.hostUpdated)===null||i===void 0?void 0:i.call(s)}),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,s)=>this._$EO(s,this[s],e)),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}U[rt]=!0,U.elementProperties=new Map,U.elementStyles=[],U.shadowRootOptions={mode:"open"},Dt?.({ReactiveElement:U}),((it=W.reactiveElementVersions)!==null&&it!==void 0?it:W.reactiveElementVersions=[]).push("1.6.3");/**
18
24
  * @license
19
25
  * Copyright 2017 Google LLC
20
26
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var K,G;class N extends F{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Tt(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 M}}N.finalized=!0,N._$litElement$=!0,(K=globalThis.litElementHydrateSupport)===null||K===void 0||K.call(globalThis,{LitElement:N});const $t=globalThis.litElementPolyfillSupport;$t?.({LitElement:N}),((G=globalThis.litElementVersions)!==null&&G!==void 0?G:globalThis.litElementVersions=[]).push("3.2.2");/**
27
+ */var at,lt;class O extends U{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const s=super.createRenderRoot();return(t=(e=this.renderOptions).renderBefore)!==null&&t!==void 0||(e.renderBefore=s.firstChild),s}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=ee(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 F}}O.finalized=!0,O._$litElement$=!0,(at=globalThis.litElementHydrateSupport)===null||at===void 0||at.call(globalThis,{LitElement:O});const Ot=globalThis.litElementPolyfillSupport;Ot?.({LitElement:O}),((lt=globalThis.litElementVersions)!==null&&lt!==void 0?lt:globalThis.litElementVersions=[]).push("3.3.3");/**
22
28
  * @license
23
29
  * Copyright 2020 Google LLC
24
30
  * SPDX-License-Identifier: BSD-3-Clause
25
- */const Rt=Symbol.for(""),Bt=n=>{if(n?.r===Rt)return n?._$litStatic$},ft=new Map,Lt=n=>(t,...e)=>{const s=e.length;let i,o;const r=[],c=[];let a,l=0,m=!1;for(;l<s;){for(a=t[l];l<s&&(o=e[l],(i=Bt(o))!==void 0);)a+=i+t[++l],m=!0;c.push(o),r.push(a),l++}if(l===s&&r.push(t[s]),m){const d=r.join("$$lit$$");(t=ft.get(d))===void 0&&(r.raw=r,ft.set(d,t=r)),e=c}return n(t,...e)},b=Lt(kt);var jt=At`
31
+ */const re=Symbol.for(""),ae=o=>{if(o?.r===re)return o?._$litStatic$},Mt=new Map,le=o=>(t,...e)=>{const s=e.length;let i,n;const r=[],d=[];let a,l=0,h=!1;for(;l<s;){for(a=t[l];l<s&&(n=e[l],(i=ae(n))!==void 0);)a+=i+t[++l],h=!0;l!==s&&d.push(n),r.push(a),l++}if(l===s&&r.push(t[s]),h){const c=r.join("$$lit$$");(t=Mt.get(c))===void 0&&(r.raw=r,Mt.set(c,t=r)),e=d}return o(t,...e)},y=le(Jt);var de=ie`
26
32
  :host{
27
33
  width: 335px;
28
34
  --eloisa-ds-icon-color: currentColor;
@@ -320,15 +326,15 @@
320
326
  padding: 16px;
321
327
  }
322
328
  }
323
- `,mt={exports:{}};/*!
329
+ `,Nt={exports:{}};/*!
324
330
  Copyright (c) 2018 Jed Watson.
325
331
  Licensed under the MIT License (MIT), see
326
332
  http://jedwatson.github.io/classnames
327
- */(function(n){(function(){var t={}.hasOwnProperty;function e(){for(var s=[],i=0;i<arguments.length;i++){var o=arguments[i];if(!!o){var r=typeof o;if(r==="string"||r==="number")s.push(o);else if(Array.isArray(o)){if(o.length){var c=e.apply(null,o);c&&s.push(c)}}else if(r==="object"){if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]")){s.push(o.toString());continue}for(var a in o)t.call(o,a)&&o[a]&&s.push(a)}}}return s.join(" ")}n.exports?(e.default=e,n.exports=e):window.classNames=e})()})(mt);var zt=mt.exports;const gt=(n,t)=>new Date(n,t,0).getDate(),bt=({year:n,month:t,day:e})=>{const s=t<10?`0${t}`:t,i=e<10?`0${e}`:e;return`${n}-${s}-${i}`};function It(){const n=new Date,t=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],e=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],s=n.getFullYear(),i=n.getMonth()+1,o=[...Array(10).keys()].map(r=>r+s);return{date:n,weekdays:e,currentYear:s,currentMonth:i,month_names:t,years:o}}function Vt({month:n,year:t,selectValue:e,disablePast:s,disableWeekends:i,availableDays:o,disablePrevious:r,disableNext:c}){const a=[],l=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],m=gt(t,n),d=new Date,h=new Date(t,n-1,1),g=new Date(t,n-1,0).getDate();for(let u=h.getDay();u>0;u--)a.push({name:g+1-u,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});for(let u=0;u<m;u++){const Q=o?.includes(u+1),_t=d.getDate()===u+1&&d.getMonth()===n-1,p=e===bt({year:t,month:n,day:u+1}),v=new Date(t,n-1,u+1),U=(()=>{if(r){const f=new Date(r);if(f.setHours(0,0,0,0),v<=f)return!0}if(c){const f=new Date(c);if(f.setHours(0,0,0,0),v>f)return!0}if(s){const f=new Date;if(f.setHours(0,0,0,0),v<f)return!0}if(i){const f=v.getDay();if(f===0||f===6)return!0}return!1})(),y=bt({year:t,month:n,day:u+1});a.push({value:y,name:1+u,isCurrentMonth:!0,isCurrentDay:u+1===d.getDate(),isToday:_t,isAvailable:Q,date:v,disabled:U,selected:p})}const A=a.length%7===0?0:7-a.length%7;for(let u=0;u<A;u++)a.push({name:u+1,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});return{year:t,month:l[n-1],days:gt(t,n),calendar:a}}function Wt(n){const{isAvailable:t,isCurrentMonth:e,isToday:s,disabled:i,selected:o}=n;return{dayStyles:zt({"item-day":!0,"current-month":e,available:t,today:s,disabled:i,selected:o})}}class yt extends N{static formAssociated=!0;static styles=jt;static shadowRootOptions={...N.shadowRootOptions,mode:"open"};static properties={label:{type:String},open:{type:Boolean},name:{type:String},value:{type:String},year:{type:Number},month:{type:Number},disabled:{type:String},disablePast:{type:Boolean},disableControls:{type:Boolean},initialValue:{type:String},disablePrevious:{type:String},disableNext:{type:String},disableWeekends:{type:Boolean}};constructor(){super(),this.open=!1,this.label="date picker",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"date-picker",this.value="",this.year=new Date().getFullYear(),this.month=new Date().getMonth()+1,this.initialValue="",this.disabled=!1,this.disablePrevious="",this.disableNext=""}handleOpen(){this.open=!0}handleClose(){this.open=!1}changeMonthPrev(){if(this.disableControls)return null;this.month===1?(this.year=this.year-1,this.month=12):this.month=this.month-1,this.requestUpdate()}changeMonthNext(){if(this.disableControls)return null;this.month===12?(this.year=this.year+1,this.month=1):this.month=this.month+1,this.requestUpdate()}onChange(t){this.value=t.target.value}updated(){const t=this.disabled==="true"||this.disabled===!0,e=this.shadowRoot.querySelector("cas-input");t?e?.setAttribute("disabled",!0):e?.removeAttribute("disabled")}render(){const{disablePast:t,disableWeekends:e,open:s,year:i,month:o,disablePrevious:r,disableNext:c}=this,{weekdays:a,month_names:l,years:m}=It(),d=Vt({month:o,year:i,selectValue:this.value,disablePast:t,disableWeekends:e,disablePrevious:r,disableNext:c});document.addEventListener("click",p=>{p.composedPath().includes(this)||this.handleClose()});const h=()=>{this.shadowRoot.querySelectorAll(".dropdown").forEach(v=>{v.classList.remove("open")})},g=p=>{const{dayStyles:v}=Wt(p);return b`
328
- <button type="button" class=${v} @click=${U=>{if(h(),p.isCurrentMonth&&!p.disabled){const y=U.target.parentNode.querySelectorAll("button");for(let f=0;f<y.length;f++)y[f].classList.remove("selected");U.target.classList.add("selected"),this.value=p.value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("callback",{detail:{value:p.value,name:this.name,message:"Success",success:!0,error:!1},bubbles:!0,composed:!0}))}else console.log("not available")}} >
333
+ */(function(o){(function(){var t={}.hasOwnProperty;function e(){for(var n="",r=0;r<arguments.length;r++){var d=arguments[r];d&&(n=i(n,s(d)))}return n}function s(n){if(typeof n=="string"||typeof n=="number")return n;if(typeof n!="object")return"";if(Array.isArray(n))return e.apply(null,n);if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]"))return n.toString();var r="";for(var d in n)t.call(n,d)&&n[d]&&(r=i(r,d));return r}function i(n,r){return r?n?n+" "+r:n+r:n}o.exports?(e.default=e,o.exports=e):window.classNames=e})()})(Nt);var ce=Nt.exports;const Rt=(o,t)=>new Date(o,t,0).getDate(),Tt=({year:o,month:t,day:e})=>{const s=t<10?`0${t}`:t,i=e<10?`0${e}`:e;return`${o}-${s}-${i}`};function he(){const o=new Date,t=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],e=["Dom","Lun","Mar","Mie","Jue","Vie","Sab"],s=o.getFullYear(),i=o.getMonth()+1,n=[...Array(10).keys()].map(r=>r+s);return{date:o,weekdays:e,currentYear:s,currentMonth:i,month_names:t,years:n}}function pe({month:o,year:t,selectValue:e,disablePast:s,disableWeekends:i,availableDays:n,disablePrevious:r,disableNext:d}){const a=[],l=["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],h=Rt(t,o),c=new Date,u=new Date(t,o-1,1),g=new Date(t,o-1,0).getDate();for(let v=u.getDay();v>0;v--)a.push({name:g+1-v,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});for(let v=0;v<h;v++){const dt=n?.includes(v+1),Lt=c.getDate()===v+1&&c.getMonth()===o-1,p=e===Tt({year:t,month:o,day:v+1}),$=new Date(t,o-1,v+1),M=(()=>{if(r){const m=new Date(r);if(m.setHours(0,0,0,0),$<=m)return!0}if(d){const m=new Date(d);if(m.setHours(0,0,0,0),$>m)return!0}if(s){const m=new Date;if(m.setHours(0,0,0,0),$<m)return!0}if(i){const m=$.getDay();if(m===0||m===6)return!0}return!1})(),b=Tt({year:t,month:o,day:v+1});a.push({value:b,name:1+v,isCurrentMonth:!0,isCurrentDay:v+1===c.getDate(),isToday:Lt,isAvailable:dt,date:$,disabled:M,selected:p})}const z=a.length%7===0?0:7-a.length%7;for(let v=0;v<z;v++)a.push({name:v+1,isCurrentMonth:!1,isCurrentDay:!1,isToday:!1});return{year:t,month:l[o-1],days:Rt(t,o),calendar:a}}function ue(o){const{isAvailable:t,isCurrentMonth:e,isToday:s,disabled:i,selected:n}=o;return{dayStyles:ce({"item-day":!0,"current-month":e,available:t,today:s,disabled:i,selected:n})}}class Ht extends O{static formAssociated=!0;static styles=de;static shadowRootOptions={...O.shadowRootOptions,mode:"open"};static properties={label:{type:String},open:{type:Boolean},name:{type:String},value:{type:String},year:{type:Number},month:{type:Number},disabled:{type:String},disablePast:{type:Boolean},disableControls:{type:Boolean},initialValue:{type:String},disablePrevious:{type:String},disableNext:{type:String},disableWeekends:{type:Boolean}};constructor(){super(),this.open=!1,this.label="date picker",this.name=this.getAttribute("label")?.toLowerCase().replace(" ","-")||"date-picker",this.value="",this.year=new Date().getFullYear(),this.month=new Date().getMonth()+1,this.initialValue="",this.disabled=!1,this.disablePrevious="",this.disableNext=""}handleOpen(){this.open=!0}handleClose(){this.open=!1}changeMonthPrev(){if(this.disableControls)return null;this.month===1?(this.year=this.year-1,this.month=12):this.month=this.month-1,this.requestUpdate()}changeMonthNext(){if(this.disableControls)return null;this.month===12?(this.year=this.year+1,this.month=1):this.month=this.month+1,this.requestUpdate()}onChange(t){this.value=t.target.value}updated(){const t=this.disabled==="true"||this.disabled===!0,e=this.shadowRoot.querySelector("cas-input");t?e?.setAttribute("disabled",!0):e?.removeAttribute("disabled")}render(){const{disablePast:t,disableWeekends:e,open:s,year:i,month:n,disablePrevious:r,disableNext:d}=this,{weekdays:a,month_names:l,years:h}=he(),c=pe({month:n,year:i,selectValue:this.value,disablePast:t,disableWeekends:e,disablePrevious:r,disableNext:d});document.addEventListener("click",p=>{p.composedPath().includes(this)||this.handleClose()});const u=()=>{this.shadowRoot.querySelectorAll(".dropdown").forEach($=>{$.classList.remove("open")})},g=p=>{const{dayStyles:$}=ue(p);return y`
334
+ <button type="button" class=${$} @click=${M=>{if(u(),p.isCurrentMonth&&!p.disabled){const b=M.target.parentNode.querySelectorAll("button");for(let m=0;m<b.length;m++)b[m].classList.remove("selected");M.target.classList.add("selected"),this.value=p.value,this.dispatchEvent(new Event("change",{bubbles:!0,composed:!0})),this.dispatchEvent(new CustomEvent("callback",{detail:{value:p.value,name:this.name,message:"Success",success:!0,error:!1},bubbles:!0,composed:!0}))}else console.log("not available")}} >
329
335
  ${p.name}
330
336
  </button>
331
- `},A=()=>b`
337
+ `},z=()=>y`
332
338
  <div class="legend">
333
339
  <div class="item">
334
340
  <div class="dot available"></div>
@@ -343,53 +349,53 @@
343
349
  <cas-text variant="caption2">Sin horas disponibles</cas-text>
344
350
  </div>
345
351
  </div>
346
- `,S=(p,v,w)=>b`
347
- <div class="item-dropdown" @click=${()=>{v==="year"?this.year=p:this.month=w+1,h(),this.requestUpdate()}}>
352
+ `,C=(p,$,A)=>y`
353
+ <div class="item-dropdown" @click=${()=>{$==="year"?this.year=p:this.month=A+1,u(),this.requestUpdate()}}>
348
354
  <cas-text variant="footnote2" >${p}</cas-text>
349
355
  </div>
350
- `,u=({month:p,data:v,mode:w})=>b`
351
- <div class="dropdown ${w}">
352
- <div class="head-dropdown" @click=${()=>{const y=this.shadowRoot.querySelector(`.dropdown.${w}`);y.classList.contains("open")?y.classList.remove("open"):y.classList.add("open")}} >
353
- <cas-text variant="headline3">${p[w]}</cas-text>
356
+ `,v=({month:p,data:$,mode:A})=>y`
357
+ <div class="dropdown ${A}">
358
+ <div class="head-dropdown" @click=${()=>{const b=this.shadowRoot.querySelector(`.dropdown.${A}`);b.classList.contains("open")?b.classList.remove("open"):b.classList.add("open")}} >
359
+ <cas-text variant="headline3">${p[A]}</cas-text>
354
360
  <cas-icon name="flat-sortDown" size="20"></cas-icon>
355
361
  </div>
356
362
  <div class="dropdown-content scrollable">
357
- ${v?.map((y,f)=>S(y,w,f))}
363
+ ${$?.map((b,m)=>C(b,A,m))}
358
364
  </div>
359
365
  </div>
360
- `,Q=p=>b`
366
+ `,dt=p=>y`
361
367
  <div class="month-container">
362
368
  <div class="header-month">
363
369
  <button class="prev-month" @click=${this.changeMonthPrev}>
364
370
  <cas-icon name="flat-chevronLeft" size="20"></cas-icon>
365
371
  </button>
366
372
  <div class="head-current-month">
367
- ${u({month:p,data:l,mode:"month"})}
368
- ${u({month:p,data:m,mode:"year"})}
373
+ ${v({month:p,data:l,mode:"month"})}
374
+ ${v({month:p,data:h,mode:"year"})}
369
375
  </div>
370
376
  <button class="next-month" @click=${this.changeMonthNext}>
371
377
  <cas-icon name="flat-chevronRight" size="20"></cas-icon>
372
378
  </button>
373
379
  </div>
374
380
  <div class="list-name-days">
375
- ${a?.map(v=>b`<cas-text variant="caption1">${v}</cas-text>`)}
381
+ ${a?.map($=>y`<cas-text variant="caption1">${$}</cas-text>`)}
376
382
  </div>
377
383
  <div class="list-days">
378
- ${p.calendar?.map(v=>g(v))}
384
+ ${p.calendar?.map($=>g($))}
379
385
  </div>
380
- ${A()}
386
+ ${z()}
381
387
  </div>
382
- `;return b`
388
+ `;return y`
383
389
  <div class="datepicker-container">
384
- ${(({name:p,value:v})=>v===""?b`
390
+ ${(({name:p,value:$})=>$===""?y`
385
391
  <cas-input label=${this.label} icon="flat-calendarOn" @click=${this.handleOpen} alignment="trailing" readonly fullWidth></cas-input>
386
- `:b`
392
+ `:y`
387
393
  <div class="datepicker">
388
394
  <cas-input
389
395
  type="date"
390
396
  name=${p}
391
397
  label=${this.label}
392
- value=${v}
398
+ value=${$}
393
399
  icon="flat-calendarOn"
394
400
  @input=${this.onChange}
395
401
  @click=${this.handleOpen}
@@ -399,10 +405,10 @@
399
405
  ></cas-input>
400
406
  </div>
401
407
  `)({name:this.name,value:this.value})}
402
- ${s?b`
408
+ ${s?y`
403
409
  <section class="content">
404
- ${Q(d)}
410
+ ${dt(c)}
405
411
  </section>
406
412
  `:null}
407
413
  </div>
408
- `}}customElements.get("cas-date-picker")||customElements.define("cas-date-picker",yt),C.CasDatePicker=yt,Object.defineProperties(C,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});
414
+ `}}customElements.get("cas-date-picker")||customElements.define("cas-date-picker",Ht),k.CasDatePicker=Ht,Object.defineProperties(k,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})});