@everymatrix/helper-filters 1.27.6 → 1.27.8

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.
@@ -0,0 +1,2800 @@
1
+ import{r as t,c as e,h as i}from"./p-6a46b66a.js";const s=["ro","en","hr"],o={en:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"},ro:{filterOpen:"Filtrare",filterClear:"Stergere",filterModalTicketTitle:"Rezultatele biletelor",filterModalDrawTitle:"Rezultatele draw-urilor",filterTicketPlaceholder:"Cauta ID bilet",filterDrawPlaceholder:"Cauta ID draw",filterDateRangePlaceholder:"Perioada",filterModalButton:"Cauta",filterOrDate:"sau cauta dupa data"},fr:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"},ar:{filterOpen:"Filter",filterClear:"Clear",filterModalTicketTitle:"Ticket Results",filterModalDrawTitle:"Draws Results History",filterTicketPlaceholder:"Search for a ticket ID",filterDrawPlaceholder:"Search for a draw ID",filterDateRangePlaceholder:"Date Range",filterModalButton:"Search",filterFromCalendar:"From",filterToCalendar:"To",filterOrDate:"or search by date"},hr:{filterOpen:"Filter",filterClear:"Očisti",filterModalTicketTitle:"Rezultati listića",filterModalDrawTitle:"Povijest rezultata Izvlačenja",filterTicketPlaceholder:"Pretraga ID listića",filterDrawPlaceholder:"Pretraga ID izvlačenja",filterDateRangePlaceholder:"Raspon datuma",filterModalButton:"Traži",filterFromCalendar:"Od",filterToCalendar:"Do",filterOrDate:"ili tražite po datumu"}},r=(t,e)=>{const i=e;return o[void 0!==i&&s.includes(i)?i:"en"][t]};
2
+ /**
3
+ * @license
4
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
5
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
+ */
7
+ function n(t){const e=customElements.get(t.is);if(e){const i=e.version;i&&t.version&&i===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${e.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}
8
+ /**
9
+ * @license
10
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
11
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12
+ */class a extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}}n(a);
13
+ /**
14
+ * @license
15
+ * Copyright 2019 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */
18
+ const l=window,h=l.ShadowRoot&&(void 0===l.ShadyCSS||l.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,c=Symbol(),d=new WeakMap;class u{constructor(t,e,i){if(this._$cssResult$=!0,i!==c)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(h&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=d.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&d.set(e,t))}return t}toString(){return this.cssText}}const p=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[s+1]),t[0]);return new u(i,t,c)},m=h?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new u("string"==typeof t?t:t+"",void 0,c))(e)})(t):t
19
+ /**
20
+ * @license
21
+ * Copyright 2017 Google LLC
22
+ * SPDX-License-Identifier: BSD-3-Clause
23
+ */;var f;const v=window,b=v.trustedTypes,g=b?b.emptyScript:"",y=v.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?g:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let i=t;switch(e){case Boolean:i=null!==t;break;case Number:i=null===t?null:Number(t);break;case Object:case Array:try{i=JSON.parse(t)}catch(t){i=null}}return i}},_=(t,e)=>e!==t&&(e==e||t==t),x={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:_},k="finalized";class A 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(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,i)=>{const s=this._$Ep(i,e);void 0!==s&&(this._$Ev.set(s,i),t.push(s))})),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 i="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,i,e);void 0!==s&&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)||x}static finalize(){if(this.hasOwnProperty(k))return!1;this[k]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}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 t of i)e.unshift(m(t))}else void 0!==t&&e.push(m(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{h?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),s=l.litNonce;void 0!==s&&i.setAttribute("nonce",s),i.textContent=e.cssText,t.appendChild(i)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=x){var s;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const r=(void 0!==(null===(s=i.converter)||void 0===s?void 0:s.toAttribute)?i.converter:w).toAttribute(e,i.type);this._$El=t,null==r?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(void 0!==o&&this._$El!==o){const t=s.getPropertyOptions(o),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:w;this._$El=o,this[o]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||_)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$El!==t&&(void 0===this._$EC&&(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(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
24
+ /**
25
+ * @license
26
+ * Copyright 2017 Google LLC
27
+ * SPDX-License-Identifier: BSD-3-Clause
28
+ */
29
+ var C;A[k]=!0,A.elementProperties=new Map,A.elementStyles=[],A.shadowRootOptions={mode:"open"},null==y||y({ReactiveElement:A}),(null!==(f=v.reactiveElementVersions)&&void 0!==f?f:v.reactiveElementVersions=[]).push("1.6.3");const D=window,T=D.trustedTypes,S=T?T.createPolicy("lit-html",{createHTML:t=>t}):void 0,M=`lit$${(Math.random()+"").slice(9)}$`,z="?"+M,F=`<${z}>`,P=document,E=()=>P.createComment(""),O=t=>null===t||"object"!=typeof t&&"function"!=typeof t,N=Array.isArray,I="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,R=/>/g,W=RegExp(`>|${I}(?:([^\\s"'>=/]+)(${I}*=${I}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),U=/'/g,H=/"/g,L=/^(?:script|style|textarea|title)$/i,$=Symbol.for("lit-noChange"),q=Symbol.for("lit-nothing"),Y=new WeakMap,V=P.createTreeWalker(P,129,null,!1);function G(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==S?S.createHTML(e):e}const J=(t,e)=>{const i=t.length-1,s=[];let o,r=2===e?"<svg>":"",n=B;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===B?"!--"===l[1]?n=j:void 0!==l[1]?n=R:void 0!==l[2]?(L.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=W):void 0!==l[3]&&(n=W):n===W?">"===l[0]?(n=null!=o?o:B,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?W:'"'===l[3]?H:U):n===H||n===U?n=W:n===j||n===R?n=B:(n=W,o=void 0);const d=n===W&&t[e+1].startsWith("/>")?" ":"";r+=n===B?i+F:h>=0?(s.push(a),i.slice(0,h)+"$lit$"+i.slice(h)+M+d):i+M+(-2===h?(s.push(void 0),e):d)}return[G(t,r+(t[i]||"<?>")+(2===e?"</svg>":"")),s]};class K{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let o=0,r=0;const n=t.length-1,a=this.parts,[l,h]=J(t,e);if(this.el=K.createElement(l,i),V.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=V.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith("$lit$")||e.startsWith(M)){const i=h[r++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+"$lit$").split(M),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?et:"?"===e[1]?st:"@"===e[1]?ot:tt})}else a.push({type:6,index:o})}for(const e of t)s.removeAttribute(e)}if(L.test(s.tagName)){const t=s.textContent.split(M),e=t.length-1;if(e>0){s.textContent=T?T.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],E()),V.nextNode(),a.push({type:2,index:++o});s.append(t[e],E())}}}else if(8===s.nodeType)if(s.data===z)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=s.data.indexOf(M,t+1));)a.push({type:7,index:o}),t+=M.length-1}o++}}static createElement(t,e){const i=P.createElement("template");return i.innerHTML=t,i}}function Z(t,e,i=t,s){var o,r,n,a;if(e===$)return e;let l=void 0!==s?null===(o=i._$Co)||void 0===o?void 0:o[s]:i._$Cl;const h=O(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(r=null==l?void 0:l._$AO)||void 0===r||r.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,s)),void 0!==s?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[s]=l:i._$Cl=l),void 0!==l&&(e=Z(t,l._$AS(t,e.values),l,s)),e}class X{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var e;const{el:{content:i},parts:s}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:P).importNode(i,!0);V.currentNode=o;let r=V.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new Q(r,r.nextSibling,this,t):1===l.type?e=new l.ctor(r,l.name,l.strings,this,t):6===l.type&&(e=new rt(r,this,t)),this._$AV.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(r=V.nextNode(),n++)}return V.currentNode=P,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Q{constructor(t,e,i,s){var o;this.type=2,this._$AH=q,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=null===(o=null==s?void 0:s.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Z(this,t,e),O(t)?t===q||null==t||""===t?(this._$AH!==q&&this._$AR(),this._$AH=q):t!==this._$AH&&t!==$&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>N(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(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!==q&&O(this._$AH)?this._$AA.nextSibling.data=t:this.$(P.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,o="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=K.createElement(G(s.h,s.h[0]),this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new X(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Y.get(t.strings);return void 0===e&&Y.set(t.strings,e=new K(t)),e}T(t){N(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 Q(this.k(E()),this.k(E()),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(null===(i=this._$AP)||void 0===i||i.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class tt{constructor(t,e,i,s,o){this.type=1,this._$AH=q,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=q}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(void 0===o)t=Z(this,t,e,0),r=!O(t)||t!==this._$AH&&t!==$,r&&(this._$AH=t);else{const s=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=Z(this,s[i+n],e,n),a===$&&(a=this._$AH[n]),r||(r=!O(a)||a!==this._$AH[n]),a===q?t=q:t!==q&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}r&&!s&&this.j(t)}j(t){t===q?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class et extends tt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===q?void 0:t}}const it=T?T.emptyScript:"";class st extends tt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==q?this.element.setAttribute(this.name,it):this.element.removeAttribute(this.name)}}class ot extends tt{constructor(t,e,i,s,o){super(t,e,i,s,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Z(this,t,e,0))&&void 0!==i?i:q)===$)return;const s=this._$AH,o=t===q&&s!==q||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==q&&(s===q||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;"function"==typeof this._$AH?this._$AH.call(null!==(i=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==i?i:this.element,t):this._$AH.handleEvent(t)}}class rt{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){Z(this,t)}}const nt=D.litHtmlPolyfillSupport;
30
+ /**
31
+ * @license
32
+ * Copyright 2017 Google LLC
33
+ * SPDX-License-Identifier: BSD-3-Clause
34
+ */
35
+ var at,lt;null==nt||nt(K,Q),(null!==(C=D.litHtmlVersions)&&void 0!==C?C:D.litHtmlVersions=[]).push("2.8.0");class ht extends A{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var s,o;const r=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let n=r._$litPart$;if(void 0===n){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;r._$litPart$=n=new Q(e.insertBefore(E(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return $}}ht.finalized=!0,ht._$litElement$=!0,null===(at=globalThis.litElementHydrateSupport)||void 0===at||at.call(globalThis,{LitElement:ht});const ct=globalThis.litElementPolyfillSupport;null==ct||ct({LitElement:ht}),(null!==(lt=globalThis.litElementVersions)&&void 0!==lt?lt:globalThis.litElementVersions=[]).push("3.3.3");
36
+ /**
37
+ * @license
38
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
39
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
40
+ */
41
+ const dt=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i),"theme"===t&&this._set_theme(i)}}
42
+ /**
43
+ * @license
44
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
45
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
46
+ */,ut=[];function pt(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function mt(t,e,i={}){t&&pt(customElements.get(t))&&console.warn(`The custom element definition for "${t}"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.`),e=function(t=[]){return[t].flat(1/0).filter((t=>t instanceof u||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,i):ut.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId})}function ft(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():ut}function vt(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function bt(t){const e=[];return t.include&&[].concat(t.include).forEach((t=>{const i=ft().find((e=>e.moduleId===t));i?e.push(...bt(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)}),t.styles),e}function gt(t){const e=`${t}-default-theme`,i=ft().filter((i=>i.moduleId!==e&&function(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}(i.themeFor,t))).map((t=>({...t,styles:[...bt(t),...t.styles],includePriority:vt(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));return i.length>0?i:ft().filter((t=>t.moduleId===e))}const yt=t=>class extends(dt(t)){static finalize(){if(super.finalize(),this.elementStyles)return;const t=this.prototype._template;t&&!pt(this)&&function(t,e){const i=document.createElement("style");i.innerHTML=t.map((t=>t.cssText)).join("\n"),e.content.appendChild(i)}(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...super.finalizeStyles(t),...e]:e}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype);this.__themes=[...(t?t.constructor.__themes:[])||[],...gt(this.is)];const e=this.__themes.flatMap((t=>t.styles));return e.filter(((t,i)=>i===e.lastIndexOf(t)))}}
47
+ /**
48
+ * @license
49
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
50
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
51
+ */,wt=(t,...e)=>{((t,...e)=>{const i=document.createElement("style");i.id=t,i.textContent=e.map((t=>t.toString())).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",i)})(`lumo-${t}`,e)};wt("color-props",p`
52
+ :host {
53
+ /* Base (background) */
54
+ --lumo-base-color: #fff;
55
+
56
+ /* Tint */
57
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
58
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
59
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
60
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
61
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
62
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
63
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
64
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
65
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
66
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
67
+ --lumo-tint: #fff;
68
+
69
+ /* Shade */
70
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
71
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
72
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
73
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
74
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
75
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
76
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
77
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
78
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
79
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
80
+ --lumo-shade: hsl(214, 35%, 15%);
81
+
82
+ /* Contrast */
83
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
84
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
85
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
86
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
87
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
88
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
89
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
90
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
91
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
92
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
93
+ --lumo-contrast: var(--lumo-shade);
94
+
95
+ /* Text */
96
+ --lumo-header-text-color: var(--lumo-contrast);
97
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
98
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
99
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
100
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
101
+
102
+ /* Primary */
103
+ --lumo-primary-color: hsl(214, 100%, 48%);
104
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
105
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
106
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
107
+ --lumo-primary-contrast-color: #fff;
108
+
109
+ /* Error */
110
+ --lumo-error-color: hsl(3, 85%, 48%);
111
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
112
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
113
+ --lumo-error-text-color: hsl(3, 89%, 42%);
114
+ --lumo-error-contrast-color: #fff;
115
+
116
+ /* Success */
117
+ --lumo-success-color: hsl(145, 72%, 30%);
118
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
119
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
120
+ --lumo-success-text-color: hsl(145, 85%, 25%);
121
+ --lumo-success-contrast-color: #fff;
122
+
123
+ /* Warning */
124
+ --lumo-warning-color: hsl(48, 100%, 50%);
125
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
126
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
127
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
128
+ }
129
+
130
+ /* forced-colors mode adjustments */
131
+ @media (forced-colors: active) {
132
+ html {
133
+ --lumo-disabled-text-color: GrayText;
134
+ }
135
+ }
136
+ `),mt("",p`
137
+ [theme~='dark'] {
138
+ /* Base (background) */
139
+ --lumo-base-color: hsl(214, 35%, 21%);
140
+
141
+ /* Tint */
142
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
143
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
144
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
145
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
146
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
147
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
148
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
149
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
150
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
151
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
152
+ --lumo-tint: hsl(214, 100%, 98%);
153
+
154
+ /* Shade */
155
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
156
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
157
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
158
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
159
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
160
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
161
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
162
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
163
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
164
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
165
+ --lumo-shade: hsl(214, 33%, 13%);
166
+
167
+ /* Contrast */
168
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
169
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
170
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
171
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
172
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
173
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
174
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
175
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
176
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
177
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
178
+ --lumo-contrast: var(--lumo-tint);
179
+
180
+ /* Text */
181
+ --lumo-header-text-color: var(--lumo-contrast);
182
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
183
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
184
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
185
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
186
+
187
+ /* Primary */
188
+ --lumo-primary-color: hsl(214, 90%, 48%);
189
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
190
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
191
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
192
+ --lumo-primary-contrast-color: #fff;
193
+
194
+ /* Error */
195
+ --lumo-error-color: hsl(3, 79%, 49%);
196
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
197
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
198
+ --lumo-error-text-color: hsl(3, 100%, 80%);
199
+
200
+ /* Success */
201
+ --lumo-success-color: hsl(145, 72%, 30%);
202
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
203
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
204
+ --lumo-success-text-color: hsl(145, 85%, 46%);
205
+
206
+ /* Warning */
207
+ --lumo-warning-color: hsl(43, 100%, 48%);
208
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
209
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
210
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
211
+ }
212
+
213
+ html {
214
+ color: var(--lumo-body-text-color);
215
+ background-color: var(--lumo-base-color);
216
+ color-scheme: light;
217
+ }
218
+
219
+ [theme~='dark'] {
220
+ color: var(--lumo-body-text-color);
221
+ background-color: var(--lumo-base-color);
222
+ color-scheme: dark;
223
+ }
224
+
225
+ h1,
226
+ h2,
227
+ h3,
228
+ h4,
229
+ h5,
230
+ h6 {
231
+ color: var(--lumo-header-text-color);
232
+ }
233
+
234
+ a:where(:any-link) {
235
+ color: var(--lumo-primary-text-color);
236
+ }
237
+
238
+ a:not(:any-link) {
239
+ color: var(--lumo-disabled-text-color);
240
+ }
241
+
242
+ blockquote {
243
+ color: var(--lumo-secondary-text-color);
244
+ }
245
+
246
+ code,
247
+ pre {
248
+ background-color: var(--lumo-contrast-10pct);
249
+ border-radius: var(--lumo-border-radius-m);
250
+ }
251
+ `,{moduleId:"lumo-color"}),wt("sizing-props",p`
252
+ :host {
253
+ --lumo-size-xs: 1.625rem;
254
+ --lumo-size-s: 1.875rem;
255
+ --lumo-size-m: 2.25rem;
256
+ --lumo-size-l: 2.75rem;
257
+ --lumo-size-xl: 3.5rem;
258
+
259
+ /* Icons */
260
+ --lumo-icon-size-s: 1.25em;
261
+ --lumo-icon-size-m: 1.5em;
262
+ --lumo-icon-size-l: 2.25em;
263
+ /* For backwards compatibility */
264
+ --lumo-icon-size: var(--lumo-icon-size-m);
265
+ }
266
+ `),p`
267
+ html {
268
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
269
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
270
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
271
+ }
272
+ `,wt("style-props",p`
273
+ :host {
274
+ /* Border radius */
275
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
276
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
277
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
278
+
279
+ /* Shadow */
280
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
281
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
282
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
283
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
284
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
285
+
286
+ /* Clickable element cursor */
287
+ --lumo-clickable-cursor: default;
288
+ }
289
+ `);
290
+ /**
291
+ * @license
292
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
293
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
294
+ */
295
+ const _t=p`
296
+ :host {
297
+ /* prettier-ignore */
298
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
299
+
300
+ /* Font sizes */
301
+ --lumo-font-size-xxs: 0.75rem;
302
+ --lumo-font-size-xs: 0.8125rem;
303
+ --lumo-font-size-s: 0.875rem;
304
+ --lumo-font-size-m: 1rem;
305
+ --lumo-font-size-l: 1.125rem;
306
+ --lumo-font-size-xl: 1.375rem;
307
+ --lumo-font-size-xxl: 1.75rem;
308
+ --lumo-font-size-xxxl: 2.5rem;
309
+
310
+ /* Line heights */
311
+ --lumo-line-height-xs: 1.25;
312
+ --lumo-line-height-s: 1.375;
313
+ --lumo-line-height-m: 1.625;
314
+ }
315
+ `;mt("",p`
316
+ body,
317
+ :host {
318
+ font-family: var(--lumo-font-family);
319
+ font-size: var(--lumo-font-size-m);
320
+ line-height: var(--lumo-line-height-m);
321
+ -webkit-text-size-adjust: 100%;
322
+ -webkit-font-smoothing: antialiased;
323
+ -moz-osx-font-smoothing: grayscale;
324
+ }
325
+
326
+ small,
327
+ [theme~='font-size-s'] {
328
+ font-size: var(--lumo-font-size-s);
329
+ line-height: var(--lumo-line-height-s);
330
+ }
331
+
332
+ [theme~='font-size-xs'] {
333
+ font-size: var(--lumo-font-size-xs);
334
+ line-height: var(--lumo-line-height-xs);
335
+ }
336
+
337
+ :where(h1, h2, h3, h4, h5, h6) {
338
+ font-weight: 600;
339
+ line-height: var(--lumo-line-height-xs);
340
+ margin-block: 0;
341
+ }
342
+
343
+ :where(h1) {
344
+ font-size: var(--lumo-font-size-xxxl);
345
+ }
346
+
347
+ :where(h2) {
348
+ font-size: var(--lumo-font-size-xxl);
349
+ }
350
+
351
+ :where(h3) {
352
+ font-size: var(--lumo-font-size-xl);
353
+ }
354
+
355
+ :where(h4) {
356
+ font-size: var(--lumo-font-size-l);
357
+ }
358
+
359
+ :where(h5) {
360
+ font-size: var(--lumo-font-size-m);
361
+ }
362
+
363
+ :where(h6) {
364
+ font-size: var(--lumo-font-size-xs);
365
+ text-transform: uppercase;
366
+ letter-spacing: 0.03em;
367
+ }
368
+
369
+ p,
370
+ blockquote {
371
+ margin-top: 0.5em;
372
+ margin-bottom: 0.75em;
373
+ }
374
+
375
+ a {
376
+ text-decoration: none;
377
+ }
378
+
379
+ a:where(:any-link):hover {
380
+ text-decoration: underline;
381
+ }
382
+
383
+ hr {
384
+ display: block;
385
+ align-self: stretch;
386
+ height: 1px;
387
+ border: 0;
388
+ padding: 0;
389
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
390
+ background-color: var(--lumo-contrast-10pct);
391
+ }
392
+
393
+ blockquote {
394
+ border-left: 2px solid var(--lumo-contrast-30pct);
395
+ }
396
+
397
+ b,
398
+ strong {
399
+ font-weight: 600;
400
+ }
401
+
402
+ /* RTL specific styles */
403
+ blockquote[dir='rtl'] {
404
+ border-left: none;
405
+ border-right: 2px solid var(--lumo-contrast-30pct);
406
+ }
407
+ `,{moduleId:"lumo-typography"}),wt("typography-props",_t),mt("vaadin-input-container",p`
408
+ :host {
409
+ background-color: var(--lumo-contrast-10pct);
410
+ padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
411
+ font-weight: 500;
412
+ line-height: 1;
413
+ position: relative;
414
+ cursor: text;
415
+ box-sizing: border-box;
416
+ border-radius:
417
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
418
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
419
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
420
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
421
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
422
+ /* Fallback */
423
+ --_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
424
+ /* Default field border color */
425
+ --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
426
+ }
427
+
428
+ :host([dir='rtl']) {
429
+ border-radius:
430
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
431
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
432
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
433
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
434
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
435
+ }
436
+
437
+ /* Used for hover and activation effects */
438
+ :host::after {
439
+ content: '';
440
+ position: absolute;
441
+ inset: 0;
442
+ border-radius: inherit;
443
+ pointer-events: none;
444
+ background-color: var(--lumo-contrast-50pct);
445
+ opacity: 0;
446
+ transition: transform 0.15s, opacity 0.2s;
447
+ transform-origin: 100% 0;
448
+ }
449
+
450
+ ::slotted(:not([slot$='fix'])) {
451
+ cursor: inherit;
452
+ min-height: var(--lumo-text-field-size, var(--lumo-size-m));
453
+ padding: 0 0.25em;
454
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
455
+ -webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
456
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
457
+ }
458
+
459
+ /* Read-only */
460
+ :host([readonly]) {
461
+ color: var(--lumo-secondary-text-color);
462
+ background-color: transparent;
463
+ cursor: default;
464
+ }
465
+
466
+ :host([readonly])::after {
467
+ background-color: transparent;
468
+ opacity: 1;
469
+ border: 1px dashed var(--lumo-contrast-30pct);
470
+ }
471
+
472
+ /* Disabled */
473
+ :host([disabled]) {
474
+ background-color: var(--lumo-contrast-5pct);
475
+ }
476
+
477
+ :host([disabled]) ::slotted(*) {
478
+ color: var(--lumo-disabled-text-color);
479
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
480
+ }
481
+
482
+ /* Invalid */
483
+ :host([invalid]) {
484
+ background-color: var(--lumo-error-color-10pct);
485
+ }
486
+
487
+ :host([invalid])::after {
488
+ background-color: var(--lumo-error-color-50pct);
489
+ }
490
+
491
+ /* Slotted icons */
492
+ ::slotted(vaadin-icon) {
493
+ color: var(--lumo-contrast-60pct);
494
+ width: var(--lumo-icon-size-m);
495
+ height: var(--lumo-icon-size-m);
496
+ }
497
+
498
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
499
+ ::slotted(vaadin-icon[icon^='vaadin:']) {
500
+ padding: 0.25em;
501
+ box-sizing: border-box !important;
502
+ }
503
+
504
+ /* Text align */
505
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
506
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
507
+ }
508
+
509
+ @-moz-document url-prefix() {
510
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
511
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
512
+ }
513
+ }
514
+
515
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
516
+ text-align: start;
517
+ --_lumo-text-field-overflow-mask-image: none;
518
+ }
519
+
520
+ :host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
521
+ text-align: center;
522
+ --_lumo-text-field-overflow-mask-image: none;
523
+ }
524
+
525
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
526
+ text-align: end;
527
+ --_lumo-text-field-overflow-mask-image: none;
528
+ }
529
+
530
+ @-moz-document url-prefix() {
531
+ /* Firefox is smart enough to align overflowing text to right */
532
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
533
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
534
+ }
535
+ }
536
+
537
+ @-moz-document url-prefix() {
538
+ /* Firefox is smart enough to align overflowing text to right */
539
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
540
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
541
+ }
542
+ }
543
+
544
+ /* RTL specific styles */
545
+ :host([dir='rtl'])::after {
546
+ transform-origin: 0% 0;
547
+ }
548
+
549
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
550
+ --_lumo-text-field-overflow-mask-image: none;
551
+ }
552
+
553
+ :host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
554
+ --_lumo-text-field-overflow-mask-image: none;
555
+ }
556
+
557
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
558
+ --_lumo-text-field-overflow-mask-image: none;
559
+ }
560
+
561
+ @-moz-document url-prefix() {
562
+ /* Firefox is smart enough to align overflowing text to right */
563
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
564
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
565
+ }
566
+ }
567
+
568
+ @-moz-document url-prefix() {
569
+ /* Firefox is smart enough to align overflowing text to right */
570
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
571
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
572
+ }
573
+ }
574
+ `,{moduleId:"lumo-input-container"}),
575
+ /**
576
+ @license
577
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
578
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
579
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
580
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
581
+ Code distributed by Google as part of the polymer project is also
582
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
583
+ */
584
+ window.JSCompiler_renameProperty=function(t){return t};
585
+ /**
586
+ @license
587
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
588
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
589
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
590
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
591
+ Code distributed by Google as part of the polymer project is also
592
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
593
+ */
594
+ let xt,kt,At=/(url\()([^)]*)(\))/g,Ct=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Dt(t,e){if(t&&Ct.test(t))return t;if("//"===t)return t;if(void 0===xt){xt=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",xt="http://a/c%20d"===t.href}catch(t){}}if(e||(e=document.baseURI||window.location.href),xt)try{return new URL(t,e).href}catch(e){return t}return kt||(kt=document.implementation.createHTMLDocument("temp"),kt.base=kt.createElement("base"),kt.head.appendChild(kt.base),kt.anchor=kt.createElement("a"),kt.body.appendChild(kt.anchor)),kt.base.href=e,kt.anchor.href=t,kt.anchor.href||t}function Tt(t,e){return t.replace(At,(function(t,i,s,o){return i+"'"+Dt(s.replace(/["']/g,""),e)+"'"+o}))}function St(t){return t.substring(0,t.lastIndexOf("/")+1)}
595
+ /**
596
+ @license
597
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
598
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
599
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
600
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
601
+ Code distributed by Google as part of the polymer project is also
602
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
603
+ */const Mt=!window.ShadyDOM||!window.ShadyDOM.inUse,zt=Mt&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let Ft=window.Polymer&&window.Polymer.rootPath||St(document.baseURI||window.location.href),Pt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Et=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ot=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Nt=window.Polymer&&window.Polymer.legacyOptimizations||!1,It=window.Polymer&&window.Polymer.legacyWarnings||!1,Bt=window.Polymer&&window.Polymer.syncInitialRender||!1,jt=window.Polymer&&window.Polymer.legacyUndefined||!1,Rt=window.Polymer&&window.Polymer.orderedComputed||!1,Wt=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Ut=window.Polymer&&window.Polymer.fastDomIf||!1,Ht=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Lt=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,$t=0;const qt=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let i=$t++;return function(s){let o=s.__mixinSet;if(o&&o[i])return s;let r=e,n=r.get(s);if(!n){n=t(s),r.set(s,n);let e=Object.create(n.__mixinSet||o||null);e[i]=!0,n.__mixinSet=e}return n}};
604
+ /**
605
+ @license
606
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
607
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
608
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
609
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
610
+ Code distributed by Google as part of the polymer project is also
611
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
612
+ */let Yt={},Vt={};function Gt(t,e){Yt[t]=Vt[t.toLowerCase()]=e}function Jt(t){return Yt[t]||Vt[t.toLowerCase()]}class Kt extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=Jt(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,s){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Dt(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=St(e)}return this.__assetpath}register(t){if(t=t||this.id){if(Et&&void 0!==Jt(t))throw Gt(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Gt(t,this),(e=this).querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}var e}}function Zt(t){return Kt.import(t)}function Xt(t){const e=Tt((t.body?t.body:t).textContent,t.baseURI),i=document.createElement("style");return i.textContent=e,i}function Qt(t){const e=t.trim().split(/\s+/),i=[];for(let t=0;t<e.length;t++)i.push(...te(e[t]));return i}function te(t){const e=Zt(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(void 0===e._styles){const t=[];t.push(...ie(e));const i=e.querySelector("template");i&&t.push(...ee(i,e.assetpath)),e._styles=t}return e._styles}function ee(t,e){if(!t._styles){const i=[],s=t.content.querySelectorAll("style");for(let t=0;t<s.length;t++){let o=s[t],r=o.getAttribute("include");r&&i.push(...Qt(r).filter((function(t,e,i){return i.indexOf(t)===e}))),e&&(o.textContent=Tt(o.textContent,e)),i.push(o)}t._styles=i}return t._styles}function ie(t){const e=[],i=t.querySelectorAll("link[rel=import][type~=css]");for(let t=0;t<i.length;t++){let s=i[t];if(s.import){const t=s.import,i=s.hasAttribute("shady-unscoped");if(i&&!t._unscopedStyle){const e=Xt(t);e.setAttribute("shady-unscoped",""),t._unscopedStyle=e}else t._style||(t._style=Xt(t));e.push(i?t._unscopedStyle:t._style)}}return e}
613
+ /**
614
+ @license
615
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
616
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
617
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
618
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
619
+ Code distributed by Google as part of the polymer project is also
620
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
621
+ */Kt.prototype.modules=Yt,customElements.define("dom-module",Kt);const se=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?t=>ShadyDOM.patch(t):t=>t;
622
+ /**
623
+ @license
624
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
625
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
626
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
627
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
628
+ Code distributed by Google as part of the polymer project is also
629
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
630
+ */function oe(t){return t.indexOf(".")>=0}function re(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function ne(t,e){return 0===t.indexOf(e+".")}function ae(t,e){return 0===e.indexOf(t+".")}function le(t,e,i){return e+i.slice(t.length)}function he(t){if(Array.isArray(t)){let e=[];for(let i=0;i<t.length;i++){let s=t[i].toString().split(".");for(let t=0;t<s.length;t++)e.push(s[t])}return e.join(".")}return t}function ce(t){return Array.isArray(t)?he(t).split("."):t.toString().split(".")}function de(t,e,i){let s=t,o=ce(e);for(let t=0;t<o.length;t++){if(!s)return;s=s[o[t]]}return i&&(i.path=o.join(".")),s}function ue(t,e,i){let s=t,o=ce(e),r=o[o.length-1];if(o.length>1){for(let t=0;t<o.length-1;t++)if(s=s[o[t]],!s)return;s[r]=i}else s[e]=i;return o.join(".")}
631
+ /**
632
+ @license
633
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
634
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
635
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
636
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
637
+ Code distributed by Google as part of the polymer project is also
638
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
639
+ */const pe={},me=/-[a-z]/g,fe=/([A-Z])/g;function ve(t){return pe[t]||(pe[t]=t.indexOf("-")<0?t:t.replace(me,(t=>t[1].toUpperCase())))}function be(t){return pe[t]||(pe[t]=t.replace(fe,"-$1").toLowerCase())}
640
+ /**
641
+ @license
642
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
643
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
644
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
645
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
646
+ Code distributed by Google as part of the polymer project is also
647
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
648
+ */let ge=0,ye=0,we=[],_e=0,xe=!1,ke=document.createTextNode("");new window.MutationObserver((function(){xe=!1;const t=we.length;for(let e=0;e<t;e++){let t=we[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}we.splice(0,t),ye+=t})).observe(ke,{characterData:!0});const Ae={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},Ce={run:t=>(xe||(xe=!0,ke.textContent=_e++),we.push(t),ge++),cancel(t){const e=t-ye;if(e>=0){if(!we[e])throw new Error("invalid async handle: "+t);we[e]=null}}},De=Ce,Te=qt((t=>class extends t{static createProperties(t){const e=this.prototype;for(let i in t)i in e||e._createPropertyAccessor(i)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let e=this.__dataAttributes[t];return e||(e=this.constructor.attributeNameForProperty(t),this.__dataAttributes[e]=t),e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,i){let s=this.__data[t],o=this._shouldPropertyChange(t,e,s);return o&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=s),this.__data[t]=e,this.__dataPending[t]=e),o}_isPropertyPending(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,De.run((()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())})))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const t=this.__data,e=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(t,e,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,i)),this.__dataCounter--}_shouldPropertiesChange(t,e,i){return Boolean(e)}_propertiesChanged(t,e,i){}_shouldPropertyChange(t,e,i){return i!==e&&(i==i||e==e)}attributeChangedCallback(t,e,i,s){e!==i&&this._attributeToProperty(t,i),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,i,s)}_attributeToProperty(t,e,i){if(!this.__serializing){const s=this.__dataAttributes,o=s&&s[t]||t;this[o]=this._deserializeValue(e,i||this.constructor.typeForProperty(o))}}_propertyToAttribute(t,e,i){this.__serializing=!0,this._valueToNodeAttribute(this,i=arguments.length<3?this[t]:i,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,i){const s=this._serializeValue(e);"class"!==i&&"name"!==i&&"slot"!==i||(t=se(t)),void 0===s?t.removeAttribute(i):t.setAttribute(i,""===s&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(t){switch(typeof t){case"boolean":return t?"":void 0;default:return null!=t?t.toString():void 0}}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}})),Se={};let Me=HTMLElement.prototype;for(;Me;){let t=Object.getOwnPropertyNames(Me);for(let e=0;e<t.length;e++)Se[t[e]]=!0;Me=Object.getPrototypeOf(Me)}const ze=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1,Fe=qt((t=>{const e=Te(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(ve(t[e]))}static attributeNameForProperty(t){return be(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){this.hasAttribute(t)||this._valueToNodeAttribute(this,e,t)}_serializeValue(t){switch(typeof t){case"object":if(t instanceof Date)return t.toString();if(t){if(ze(t))return t;try{return JSON.stringify(t)}catch(t){return""}}default:return super._serializeValue(t)}}_deserializeValue(t,e){let i;switch(e){case Object:try{i=JSON.parse(t)}catch(e){i=t}break;case Array:try{i=JSON.parse(t)}catch(e){i=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:i=isNaN(t)?String(t):Number(t),i=new Date(i);break;default:i=super._deserializeValue(t,e)}return i}_definePropertyAccessor(t,e){!function(t,e){if(!Se[e]){let i=t[e];void 0!==i&&(t.__data?t._setPendingProperty(e,i):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=i))}}(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}})),Pe={"dom-if":!0,"dom-repeat":!0};let Ee=!1,Oe=!1;const Ne=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,i,s)=>{const o=i.getAttribute(s);t&&s.startsWith("on-")?e.setAttribute(s,t.createScript(o,s)):e.setAttribute(s,o)}})();function Ie(t){let e=t.getAttribute("is");if(e&&Pe[e]){let i=t;for(i.removeAttribute("is"),t=i.ownerDocument.createElement(e),i.parentNode.replaceChild(t,i),t.appendChild(i);i.attributes.length;){const{name:e}=i.attributes[0];Ne(t,i,e),i.removeAttribute(e)}}return t}function Be(t,e){let i=e.parentInfo&&Be(t,e.parentInfo);if(!i)return t;for(let t=i.firstChild,s=0;t;t=t.nextSibling)if(e.parentIndex===s++)return t}function je(t,e,i,s){s.id&&(e[s.id]=i)}function Re(t,e,i){if(i.events&&i.events.length)for(let s,o=0,r=i.events;o<r.length&&(s=r[o]);o++)t._addMethodEventListenerToNode(e,s.name,s.value,t)}function We(t,e,i,s){i.templateInfo&&(e._templateInfo=i.templateInfo,e._parentTemplateInfo=s)}const Ue=qt((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let i=t._templateInfo={};i.nodeInfoList=[],i.nestedTemplate=Boolean(e),i.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,i,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,i){return this._parseTemplateNode(t.content,e,i)}static _parseTemplateNode(t,e,i){let s=!1,o=t;return"template"!=o.localName||o.hasAttribute("preserve-content")?"slot"===o.localName&&(e.hasInsertionPoint=!0):s=this._parseTemplateNestedTemplate(o,e,i)||s,function(t){(function(){if(!Ee){Ee=!0;const t=document.createElement("textarea");t.placeholder="a",Oe=t.placeholder===t.textContent}return Oe})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}(o),o.firstChild&&this._parseTemplateChildNodes(o,e,i),o.hasAttributes&&o.hasAttributes()&&(s=this._parseTemplateNodeAttributes(o,e,i)||s),s||i.noted}static _parseTemplateChildNodes(t,e,i){if("script"!==t.localName&&"style"!==t.localName)for(let s,o=t.firstChild,r=0;o;o=s){if("template"==o.localName&&(o=Ie(o)),s=o.nextSibling,o.nodeType===Node.TEXT_NODE){let i=s;for(;i&&i.nodeType===Node.TEXT_NODE;)o.textContent+=i.textContent,s=i.nextSibling,t.removeChild(i),i=s;if(e.stripWhiteSpace&&!o.textContent.trim()){t.removeChild(o);continue}}let n={parentIndex:r,parentInfo:i};this._parseTemplateNode(o,e,n)&&(n.infoIndex=e.nodeInfoList.push(n)-1),o.parentNode&&r++}}static _parseTemplateNestedTemplate(t,e,i){let s=t,o=this._parseTemplate(s,e);return(o.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),i.templateInfo=o,!0}static _parseTemplateNodeAttributes(t,e,i){let s=!1,o=Array.from(t.attributes);for(let r,n=o.length-1;r=o[n];n--)s=this._parseTemplateNodeAttribute(t,e,i,r.name,r.value)||s;return s}static _parseTemplateNodeAttribute(t,e,i,s,o){return"on-"===s.slice(0,3)?(t.removeAttribute(s),i.events=i.events||[],i.events.push({name:s.slice(3),value:o}),!0):"id"===s&&(i.id=o,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let i=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,s=document.importNode(e.content||t.content,!0);s.__noInsertionPoint=!e.hasInsertionPoint;let o=s.nodeList=new Array(i.length);s.$={};for(let t,r=0,n=i.length;r<n&&(t=i[r]);r++){let i=o[r]=Be(s,t);je(0,s.$,i,t),We(0,i,t,e),Re(this,i,t)}return s=s,s}_addMethodEventListenerToNode(t,e,i,s){let o=function(t,e,i){return t=t._methodHost||t,function(e){t[i]?t[i](e,e.detail):console.warn("listener method `"+i+"` not defined")}}(s=s||t,0,i);return this._addEventListenerToNode(t,e,o),o}_addEventListenerToNode(t,e,i){t.addEventListener(e,i)}_removeEventListenerFromNode(t,e,i){t.removeEventListener(e,i)}}));
649
+ /**
650
+ * @fileoverview
651
+ * @suppress {checkPrototypalTypes}
652
+ * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
653
+ * This code may only be used under the BSD style license found at
654
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
655
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
656
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
657
+ * Google as part of the polymer project is also subject to an additional IP
658
+ * rights grant found at http://polymer.github.io/PATENTS.txt
659
+ */let He=0;const Le=[],$e={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},qe=/[A-Z]/;function Ye(t,e,i){let s=t[e];if(s){if(!t.hasOwnProperty(e)&&(s=t[e]=Object.create(t[e]),i))for(let t in s){let e=s[t],i=s[t]=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]}}else s=t[e]={};return s}function Ve(t,e,i,s,o,r){if(e){let n=!1;const a=He++;for(let l in i){let h=e[o?re(l):l];if(h)for(let e,c=0,d=h.length;c<d&&(e=h[c]);c++)e.info&&e.info.lastRun===a||o&&!Je(l,e.trigger)||(e.info&&(e.info.lastRun=a),e.fn(t,l,i,s,e.info,o,r),n=!0)}return n}return!1}function Ge(t,e,i,s,o,r,n,a){let l=!1,h=e[n?re(s):s];if(h)for(let e,c=0,d=h.length;c<d&&(e=h[c]);c++)e.info&&e.info.lastRun===i||n&&!Je(s,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(t,s,o,r,e.info,n,a),l=!0);return l}function Je(t,e){if(e){let i=e.name;return i==t||!(!e.structured||!ne(i,t))||!(!e.wildcard||!ae(i,t))}return!0}function Ke(t,e,i,s,o){let r="string"==typeof o.method?t[o.method]:o.method,n=o.property;r?r.call(t,t.__data[n],s[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function Ze(t,e,i){let s=re(e);return s!==e&&(Xe(t,be(s)+"-changed",i[e],e),!0)}function Xe(t,e,i,s){let o={value:i,queueProperty:!0};s&&(o.path=s),se(t).dispatchEvent(new CustomEvent(e,{detail:o}))}function Qe(t,e,i,s,o,r){let n=(r?re(e):e)!=e?e:null,a=n?de(t,n):t.__data[e];n&&void 0===a&&(a=i[e]),Xe(t,o.eventName,a,n)}function ti(t,e,i,s,o){let r=t.__data[e];Pt&&(r=Pt(r,o.attrName,"attribute",t)),t._propertyToAttribute(e,o.attrName,r)}const ei=(t,e,i)=>{let s=0,o=e.length-1,r=-1;for(;s<=o;){const n=s+o>>1,a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0)s=n+1;else{if(!(a>0)){r=n;break}o=n-1}}r<0&&(r=o+1),e.splice(r,0,t)},ii=(t,e,i,s,o)=>{const r=e[o?re(t):t];if(r)for(let e=0;e<r.length;e++){const n=r[e];n.info.lastRun===He||o&&!Je(t,n.trigger)||(n.info.lastRun=He,ei(n.info,i,s))}};function si(t,e,i,s,o){let r=ci(t,e,i,0,o);if(r===Le)return!1;let n=o.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,r,!0):(t[n]=r,!1)}function oi(t,e,i,s,o,r,n){i.bindings=i.bindings||[];let a={kind:s,target:o,parts:r,literal:n,isCompound:1!==r.length};if(i.bindings.push(a),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||be(o)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let s=a.parts[i];s.compoundIndex=i,ri(t,e,a,s,l)}}function ri(t,e,i,s,o){if(!s.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let r=s.dependencies,n={index:o,binding:i,part:s,evaluator:t};for(let i=0;i<r.length;i++){let s=r[i];"string"==typeof s&&(s=fi(s),s.wildcard=!0),t._addTemplatePropertyEffect(e,s.rootProperty,{fn:ni,info:n,trigger:s})}}}function ni(t,e,i,s,o,r,n){let a=n[o.index],l=o.binding,h=o.part;if(r&&h.source&&e.length>h.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let s=i[e];e=le(h.source,l.target,e),a._setPendingPropertyOrPath(e,s,!1,!0)&&t._enqueueClient(a)}else{let n=o.evaluator._evaluateBinding(t,h,e,i,s,r);n!==Le&&function(t,e,i,s,o){if(o=function(t,e,i,s){if(i.isCompound){let o=t.__dataCompoundStorage[i.target];o[s.compoundIndex]=e,e=o.join("")}return"attribute"!==i.kind&&("textContent"!==i.target&&("value"!==i.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e)),e}(e,o,i,s),Pt&&(o=Pt(o,i.target,i.kind,e)),"attribute"==i.kind)t._valueToNodeAttribute(e,o,i.target);else{let s=i.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?e[$e.READ_ONLY]&&e[$e.READ_ONLY][s]||e._setPendingProperty(s,o)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,s,o)}}(t,a,l,h,n)}}function ai(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),s=e.parts,o=new Array(s.length);for(let t=0;t<s.length;t++)o[t]=s[t].literal;let r=e.target;i[r]=o,e.literal&&"property"==e.kind&&("className"===r&&(t=se(t)),t[r]=e.literal)}}function li(t,e,i){if(i.listenerEvent){let s=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){!function(t,e,i,s,o){let r,n=t.detail,a=n&&n.path;a?(s=le(i,s,a),r=n&&n.value):r=t.currentTarget[i],r=o?!r:r,e[$e.READ_ONLY]&&e[$e.READ_ONLY][s]||!e._setPendingPropertyOrPath(s,r,!0,Boolean(a))||n&&n.queueProperty||e._invalidateProperties()}(t,e,i.target,s.source,s.negate)}))}}function hi(t,e,i,s,o,r){let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:r=e.static||r&&("object"!=typeof r||r[e.methodName])};for(let o,r=0;r<e.args.length&&(o=e.args[r]);r++)o.literal||t._addPropertyEffect(o.rootProperty,i,{fn:s,info:n,trigger:o});return r&&t._addPropertyEffect(e.methodName,i,{fn:s,info:n}),n}function ci(t,e,i,s,o){let r=t._methodHost||t,n=r[o.methodName];if(n){let s=t._marshalArgs(o.args,e,i);return s===Le?Le:n.apply(r,s)}o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const di=[],ui=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?((?:[a-zA-Z_$][\\w.:$\\-*]*)\\s*(?:\\(\\s*(?:(?:(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)(?:,\\s*(?:((?:[a-zA-Z_$][\\w.:$\\-*]*)|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*))*)?)\\)\\s*)?)(?:]]|}})","g");function pi(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].literal||"";return e}function mi(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:di};return e[2].trim()?function(t,e){return e.args=t.map((function(t){let i=fi(t);return i.literal||(e.static=!1),i}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t):t}return null}function fi(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:e,value:"",literal:!1},s=e[0];switch("-"===s&&(s=e[1]),s>="0"&&s<="9"&&(s="#"),s){case"'":case'"':i.value=e.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(e),i.literal=!0}return i.literal||(i.rootProperty=re(e),i.structured=oe(e),i.structured&&(i.wildcard=".*"==e.slice(-2),i.wildcard&&(i.name=e.slice(0,-2)))),i}function vi(t,e,i){let s=de(t,i);return void 0===s&&(s=e[i]),s}function bi(t,e,i,s){const o={indexSplices:s};jt&&!t._overrideLegacyUndefined&&(e.splices=o),t.notifyPath(i+".splices",o),t.notifyPath(i+".length",e.length),jt&&!t._overrideLegacyUndefined&&(o.indexSplices=[])}function gi(t,e,i,s,o,r){bi(t,e,i,[{index:s,addedCount:o,removed:r,object:e,type:"splice"}])}const yi=qt((t=>{const e=Ue(Fe(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return $e}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(wi.length){let t=wi[wi.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[$e.READ_ONLY];for(let i in t)e&&e[i]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=t[i])}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==$e.READ_ONLY);let s=Ye(this,e,!0)[t];s||(s=this[e][t]=[]),s.push(i)}_removePropertyEffect(t,e,i){let s=Ye(this,e,!0)[t],o=s.indexOf(i);o>=0&&s.splice(o,1)}_hasPropertyEffect(t,e){let i=this[e];return Boolean(i&&i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,$e.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,$e.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,$e.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,$e.COMPUTE)}_setPendingPropertyOrPath(t,e,i,s){if(s||re(Array.isArray(t)?t[0]:t)!==t){if(!s){let i=de(this,t);if(!(t=ue(this,t,e))||!super._shouldPropertyChange(t,e,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,i))return function(t,e,i){let s=t.__dataLinkedPaths;if(s){let o;for(let r in s){let n=s[r];ae(r,e)?(o=le(r,n,e),t._setPendingPropertyOrPath(o,i,!0,!0)):ae(n,e)&&(o=le(n,r,e),t._setPendingPropertyOrPath(o,i,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,i);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,i){i===t[e]&&"object"!=typeof i||("className"===e&&(t=se(t)),t[e]=i)}_setPendingProperty(t,e,i){let s=this.__dataHasPaths&&oe(t);return!!this._shouldPropertyChange(t,e,(s?this.__dataTemp:this.__data)[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),s?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(s||this[$e.NOTIFY]&&this[$e.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=i),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t)!e&&this[$e.READ_ONLY]&&this[$e.READ_ONLY][i]||this._setPendingPropertyOrPath(i,t[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,i){let s,o=this.__dataHasPaths;this.__dataHasPaths=!1,function(t,e,i,s){let o=t[$e.COMPUTE];if(o)if(Rt){He++;const r=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[$e.COMPUTE];let s,{counts:o,ready:r,total:n}=function(t){const e=t.__computeInfo,i={},s=t[$e.COMPUTE],o=[];let r=0;for(let t in e){const s=e[t];r+=i[t]=s.args.filter((t=>!t.literal)).length+(s.dynamicFn?1:0)}for(let t in s)e[t]||o.push(t);return{counts:i,ready:o,total:r}}(t);for(;s=r.shift();){e.set(s,e.size);const t=i[s];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--o[e]&&r.push(e)}))}0!==n&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)ii(t,o,n,r,s);let a;for(;a=n.shift();)si(t,"",e,0,a)&&ii(a.methodInfo,o,n,r,s);Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let r=e;for(;Ve(t,o,r,i,s);)Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),r=t.__dataPending,t.__dataPending=null}}(this,e,i,o),s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,i,o),this._flushClients(),Ve(this,this[$e.REFLECT],e,i,o),Ve(this,this[$e.OBSERVE],e,i,o),s&&function(t,e,i,s,o){let r,n,a=t[$e.NOTIFY],l=He++;for(let n in e)e[n]&&(a&&Ge(t,a,l,n,i,s,o)||o&&Ze(t,n,i))&&(r=!0);r&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,s,e,i,o),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,i){this[$e.PROPAGATE]&&Ve(this,this[$e.PROPAGATE],t,e,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,i)}_runEffectsForTemplate(t,e,i,s){const o=(e,s)=>{Ve(this,t.propertyEffects,e,i,s,t.nodeList);for(let o=t.firstChild;o;o=o.nextSibling)this._runEffectsForTemplate(o,e,i,s)};t.runEffects?t.runEffects(o,e,s):o(e,s)}linkPaths(t,e){t=he(t),e=he(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=he(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let i={path:""};bi(this,de(this,t,i),i.path,e)}get(t,e){return de(e||this,t)}set(t,e,i){i?ue(i,t,e):this[$e.READ_ONLY]&&this[$e.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let i={path:""},s=de(this,t,i),o=s.length,r=s.push(...e);return e.length&&gi(this,s,i.path,o,e.length,[]),r}pop(t){let e={path:""},i=de(this,t,e),s=Boolean(i.length),o=i.pop();return s&&gi(this,i,e.path,i.length,0,[o]),o}splice(t,e,i,...s){let o,r={path:""},n=de(this,t,r);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),o=2===arguments.length?n.splice(e):n.splice(e,i,...s),(s.length||o.length)&&gi(this,n,r.path,e,s.length,o),o}shift(t){let e={path:""},i=de(this,t,e),s=Boolean(i.length),o=i.shift();return s&&gi(this,i,e.path,0,0,[o]),o}unshift(t,...e){let i={path:""},s=de(this,t,i),o=s.unshift(...e);return e.length&&gi(this,s,i.path,0,e.length,[]),o}notifyPath(t,e){let i;if(1==arguments.length){let s={path:""};e=de(this,t,s),i=s.path}else i=Array.isArray(t)?he(t):t;this._setPendingPropertyOrPath(i,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var i;this._addPropertyEffect(t,$e.READ_ONLY),e&&(this["_set"+(i=t,i[0].toUpperCase()+i.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,i){let s={property:t,method:e,dynamicFn:Boolean(i)};this._addPropertyEffect(t,$e.OBSERVE,{fn:Ke,info:s,trigger:{name:t}}),i&&this._addPropertyEffect(e,$e.OBSERVE,{fn:Ke,info:s,trigger:{name:e}})}_createMethodObserver(t,e){let i=mi(t);if(!i)throw new Error("Malformed observer expression '"+t+"'");hi(this,i,$e.OBSERVE,ci,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,$e.NOTIFY,{fn:Qe,info:{eventName:be(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,$e.REFLECT,{fn:ti,info:{attrName:e}})}_createComputedProperty(t,e,i){let s=mi(e);if(!s)throw new Error("Malformed computed expression '"+e+"'");const o=hi(this,s,$e.COMPUTE,si,t,i);Ye(this,"__computeInfo")[t]=o}_marshalArgs(t,e,i){const s=this.__data,o=[];for(let r=0,n=t.length;r<n;r++){let{name:n,structured:a,wildcard:l,value:h,literal:c}=t[r];if(!c)if(l){const t=ae(n,e),o=vi(s,i,t?e:n);h={path:t?e:n,value:o,base:t?de(s,n):o}}else h=a?vi(s,i,n):s[n];if(jt&&!this._overrideLegacyUndefined&&void 0===h&&t.length>1)return Le;o[r]=h}return o}static addPropertyEffect(t,e,i){this.prototype._addPropertyEffect(t,e,i)}static createPropertyObserver(t,e,i){this.prototype._createPropertyObserver(t,e,i)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,i){this.prototype._createComputedProperty(t,e,i)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let i=this.constructor._parseTemplate(t),s=this.__preBoundTemplateInfo==i;if(!s)for(let t in i.propertyEffects)this._createPropertyAccessor(t);if(e)if(i=Object.create(i),i.wasPreBound=s,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,s=e.lastChild;i.parent=e,e.lastChild=i,i.previousSibling=s,s?s.nextSibling=i:e.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(t,e,i){(t.hostProps=t.hostProps||{})[e]=!0;let s=t.propertyEffects=t.propertyEffects||{};(s[e]=s[e]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),wi.push(this);let i=super._stampTemplate(t,e);if(wi.pop(),e.nodeList=i.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling)t.push(e)}return i.templateInfo=e,function(t,e){let{nodeList:i,nodeInfoList:s}=e;if(s.length)for(let e=0;e<s.length;e++){let o=i[e],r=s[e].bindings;if(r)for(let e=0;e<r.length;e++){let i=r[e];ai(o,i),li(o,t,i)}o.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:i,nextSibling:s,parent:o}=e;i?i.nextSibling=s:o&&(o.firstChild=s),s?s.previousSibling=i:o&&(o.lastChild=i),e.nextSibling=e.previousSibling=null;let r=e.childNodes;for(let t=0;t<r.length;t++){let e=r[t];se(se(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,s){let o=e._parseTemplateNode.call(this,t,i,s);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);e&&(t.textContent=pi(e)||" ",oi(this,i,s,"text","textContent",e),o=!0)}return o}static _parseTemplateNodeAttribute(t,i,s,o,r){let n=this._parseBindings(r,i);if(n){let e=o,r="property";qe.test(o)?r="attribute":"$"==o[o.length-1]&&(o=o.slice(0,-1),r="attribute");let a=pi(n);return a&&"attribute"==r&&("class"==o&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(o)),t.setAttribute(o,a)),"attribute"==r&&"disable-upgrade$"==e&&t.setAttribute(o,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===r&&(o=ve(o)),oi(this,i,s,r,o,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,i,s,o,r)}static _parseTemplateNestedTemplate(t,i,s){let o=e._parseTemplateNestedTemplate.call(this,t,i,s);const r=t.parentNode,n=s.templateInfo,a="dom-if"===r.localName;Wt&&(a||"dom-repeat"===r.localName)&&(r.removeChild(t),(s=s.parentInfo).templateInfo=n,s.noted=!0,o=!1);let l=n.hostProps;if(Ut&&a)l&&(i.hostProps=Object.assign(i.hostProps||{},l),Wt||(s.parentInfo.noted=!0));else{let t="{";for(let e in l)oi(this,i,s,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}return o}static _parseBindings(t,e){let i,s=[],o=0;for(;null!==(i=ui.exec(t));){i.index>o&&s.push({literal:t.slice(o,i.index)});let r=i[1][0],n=Boolean(i[2]),a=i[3].trim(),l=!1,h="",c=-1;"{"==r&&(c=a.indexOf("::"))>0&&(h=a.substring(c+2),a=a.substring(0,c),l=!0);let d=mi(a),u=[];if(d){let{args:t,methodName:i}=d;for(let e=0;e<t.length;e++){let i=t[e];i.literal||u.push(i)}let s=e.dynamicFns;(s&&s[i]||d.static)&&(u.push(i),d.dynamicFn=!0)}else u.push(a);s.push({source:a,mode:r,negate:n,customEvent:l,signature:d,dependencies:u,event:h}),o=ui.lastIndex}if(o&&o<t.length){let e=t.substring(o);e&&s.push({literal:e})}return s.length?s:null}static _evaluateBinding(t,e,i,s,o,r){let n;return n=e.signature?ci(t,i,s,0,e.signature):i!=e.source?de(t,e.source):r&&oe(i)?de(t,i):t.__data[i],e.negate&&(n=!n),n}}})),wi=[],_i=qt((t=>{const e=Te(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof o?e:null}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const i=t.properties;i&&(e=
660
+ /**
661
+ @license
662
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
663
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
664
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
665
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
666
+ Code distributed by Google as part of the polymer project is also
667
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
668
+ */
669
+ function(t){const e={};for(let i in t){const s=t[i];e[i]="function"==typeof s?{type:s}:s}return e}(i))}t.__ownProperties=e}return t.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=i(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=s(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=i(this);this.__properties=Object.assign({},t&&t._properties,s(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o})),xi=window.ShadyCSS&&window.ShadyCSS.cssBuild,ki=qt((t=>{const e=_i(yi(t));function i(t,e,i,s){i.computed&&(i.readOnly=!0),i.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,i.computed,s)),i.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!i.computed):!1===i.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),i.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===i.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),i.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===i.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),i.observer&&t._createPropertyObserver(e,i.observer,s[i.observer]),t._addPropertyToAttributeMap(e)}return class extends e{static get polymerElementVersion(){return"3.5.1"}static _finalizeClass(){e._finalizeClass.call(this);const t=((i=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",i))||(i.__ownObservers=i.hasOwnProperty(JSCompiler_renameProperty("observers",i))?i.observers:null),i.__ownObservers);var i;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):Nt||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)i(this.prototype,e,t[e],t)}static createObservers(t,e){const i=this.prototype;for(let s=0;s<t.length;s++)i._createMethodObserver(t[s],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!Et||Ot)&&(e=Kt.import(t,"template"),Et&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=St(t.url);else{const t=Kt.import(this.is);this._importPath=t&&t.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Ft,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let i in e){let s=e[i];"value"in s&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[i]=s)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let i=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof i.value?i.value.call(this):i.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return Tt(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const i=this.importPath;(function(t,e,i,s){if(!xi){const o=e.content.querySelectorAll("style"),r=ee(e),n=function(t){let e=Zt(t);return e?ie(e):[]}(i),a=e.content.firstElementChild;for(let i=0;i<n.length;i++){let o=n[i];o.textContent=t._processStyleText(o.textContent,s),e.content.insertBefore(o,a)}let l=0;for(let e=0;e<r.length;e++){let i=r[e],n=o[l];n!==i?(i=i.cloneNode(!0),n.parentNode.insertBefore(i,n)):l++,i.textContent=t._processStyleText(i.textContent,s)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,i),Lt&&xi&&zt){const i=e.content.querySelectorAll("style");if(i){let e="";Array.from(i).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}})(this,e,t,i?Dt(i):""),this.prototype._bindTemplate(e)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(t){const e=se(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Bt&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=Dt(this.importPath)),Dt(t,e)}static _parseTemplateContent(t,i,s){return i.dynamicFns=i.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,i,s)}static _addTemplatePropertyEffect(t,i,s){return!It||i in this._properties||s.info.part.signature&&s.info.part.signature.static||s.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${i}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,i,s)}}})),Ai=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Ci{constructor(t,e){Si(t,e);const i=e.reduce(((e,i,s)=>e+Di(i)+t[s+1]),t[0]);this.value=i.toString()}toString(){return this.value}}function Di(t){if(t instanceof Ci)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const Ti=function(t,...e){Si(t,e);const i=document.createElement("template");let s=e.reduce(((e,i,s)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof Ci)return Di(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(i)+t[s+1]),t[0]);return Ai&&(s=Ai.createHTML(s)),i.innerHTML=s,i},Si=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")},Mi=ki(HTMLElement),zi=[];function Fi(t,e,i=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=i&&t.removeAttribute("dir")}function Pi(){return document.documentElement.getAttribute("dir")}new MutationObserver((function(){const t=Pi();zi.forEach((e=>{Fi(e,t)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ei=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),Fi(this,Pi(),null))}attributeChangedCallback(t,e,i){if(super.attributeChangedCallback(t,e,i),"dir"!==t)return;const s=Pi(),o=i===s&&-1===zi.indexOf(this),r=!i&&e&&-1===zi.indexOf(this),n=i!==s&&e===s;o||r?(this.__subscribe(),Fi(this,s,i)):n&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=zi.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,i){("dir"!==i||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){"dir"!==t||e?super._attributeToProperty(t,e,i):this.dir=""}__subscribe(){zi.includes(this)||zi.push(this)}__unsubscribe(){zi.includes(this)&&zi.splice(zi.indexOf(this),1)}}
670
+ /**
671
+ * @license
672
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
673
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
674
+ */;class Oi extends(yt(Ei(Mi))){static get is(){return"vaadin-input-container"}static get template(){return Ti`
675
+ <style>
676
+ :host {
677
+ display: flex;
678
+ align-items: center;
679
+ flex: 0 1 auto;
680
+ border-radius:
681
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
682
+ var(--vaadin-input-field-top-start-radius, var(--__border-radius))
683
+ var(--vaadin-input-field-top-end-radius, var(--__border-radius))
684
+ var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
685
+ var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
686
+ --_border-radius: var(--vaadin-input-field-border-radius, 0px);
687
+ --_input-border-width: var(--vaadin-input-field-border-width, 0);
688
+ --_input-border-color: var(--vaadin-input-field-border-color, transparent);
689
+ box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
690
+ }
691
+
692
+ :host([dir='rtl']) {
693
+ border-radius:
694
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
695
+ var(--vaadin-input-field-top-end-radius, var(--_border-radius))
696
+ var(--vaadin-input-field-top-start-radius, var(--_border-radius))
697
+ var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
698
+ var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
699
+ }
700
+
701
+ :host([hidden]) {
702
+ display: none !important;
703
+ }
704
+
705
+ /* Reset the native input styles */
706
+ ::slotted(input) {
707
+ -webkit-appearance: none;
708
+ -moz-appearance: none;
709
+ flex: auto;
710
+ white-space: nowrap;
711
+ overflow: hidden;
712
+ width: 100%;
713
+ height: 100%;
714
+ outline: none;
715
+ margin: 0;
716
+ padding: 0;
717
+ border: 0;
718
+ border-radius: 0;
719
+ min-width: 0;
720
+ font: inherit;
721
+ line-height: normal;
722
+ color: inherit;
723
+ background-color: transparent;
724
+ /* Disable default invalid style in Firefox */
725
+ box-shadow: none;
726
+ }
727
+
728
+ ::slotted(*) {
729
+ flex: none;
730
+ }
731
+
732
+ ::slotted(:is(input, textarea))::placeholder {
733
+ /* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
734
+ /* because ::slotted(...)::placeholder does not work in Safari. */
735
+ font: inherit;
736
+ color: inherit;
737
+ /* Override default opacity in Firefox */
738
+ opacity: 1;
739
+ }
740
+ </style>
741
+ <slot name="prefix"></slot>
742
+ <slot></slot>
743
+ <slot name="suffix"></slot>
744
+ `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",(t=>{t.target===this&&t.preventDefault()})),this.addEventListener("click",(t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((t=>t.focus&&t.focus()))}))}}n(Oi),wt("spacing-props",p`
745
+ :host {
746
+ /* Square */
747
+ --lumo-space-xs: 0.25rem;
748
+ --lumo-space-s: 0.5rem;
749
+ --lumo-space-m: 1rem;
750
+ --lumo-space-l: 1.5rem;
751
+ --lumo-space-xl: 2.5rem;
752
+
753
+ /* Wide */
754
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
755
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
756
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
757
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
758
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
759
+
760
+ /* Tall */
761
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
762
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
763
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
764
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
765
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
766
+ }
767
+ `);
768
+ /**
769
+ * @license
770
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
771
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
772
+ */
773
+ const Ni=p`
774
+ :host {
775
+ top: var(--lumo-space-m);
776
+ right: var(--lumo-space-m);
777
+ bottom: var(--lumo-space-m);
778
+ left: var(--lumo-space-m);
779
+ /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
780
+ /* stylelint-disable-next-line */
781
+ outline: 0px solid transparent;
782
+ }
783
+
784
+ [part='overlay'] {
785
+ background-color: var(--lumo-base-color);
786
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
787
+ border-radius: var(--lumo-border-radius-m);
788
+ box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
789
+ color: var(--lumo-body-text-color);
790
+ font-family: var(--lumo-font-family);
791
+ font-size: var(--lumo-font-size-m);
792
+ font-weight: 400;
793
+ line-height: var(--lumo-line-height-m);
794
+ letter-spacing: 0;
795
+ text-transform: none;
796
+ -webkit-text-size-adjust: 100%;
797
+ -webkit-font-smoothing: antialiased;
798
+ -moz-osx-font-smoothing: grayscale;
799
+ }
800
+
801
+ [part='content'] {
802
+ padding: var(--lumo-space-xs);
803
+ }
804
+
805
+ [part='backdrop'] {
806
+ background-color: var(--lumo-shade-20pct);
807
+ animation: 0.2s lumo-overlay-backdrop-enter both;
808
+ will-change: opacity;
809
+ }
810
+
811
+ @keyframes lumo-overlay-backdrop-enter {
812
+ 0% {
813
+ opacity: 0;
814
+ }
815
+ }
816
+
817
+ :host([closing]) [part='backdrop'] {
818
+ animation: 0.2s lumo-overlay-backdrop-exit both;
819
+ }
820
+
821
+ @keyframes lumo-overlay-backdrop-exit {
822
+ 100% {
823
+ opacity: 0;
824
+ }
825
+ }
826
+
827
+ @keyframes lumo-overlay-dummy-animation {
828
+ 0% {
829
+ opacity: 1;
830
+ }
831
+
832
+ 100% {
833
+ opacity: 1;
834
+ }
835
+ }
836
+ `;mt("",Ni,{moduleId:"lumo-overlay"});
837
+ /**
838
+ * @license
839
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
840
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
841
+ */
842
+ const Ii=p`
843
+ :host([opening]),
844
+ :host([closing]) {
845
+ animation: 0.14s lumo-overlay-dummy-animation;
846
+ }
847
+
848
+ [part='overlay'] {
849
+ will-change: opacity, transform;
850
+ }
851
+
852
+ :host([opening]) [part='overlay'] {
853
+ animation: 0.1s lumo-menu-overlay-enter ease-out both;
854
+ }
855
+
856
+ @keyframes lumo-menu-overlay-enter {
857
+ 0% {
858
+ opacity: 0;
859
+ transform: translateY(-4px);
860
+ }
861
+ }
862
+
863
+ :host([closing]) [part='overlay'] {
864
+ animation: 0.1s lumo-menu-overlay-exit both;
865
+ }
866
+
867
+ @keyframes lumo-menu-overlay-exit {
868
+ 100% {
869
+ opacity: 0;
870
+ }
871
+ }
872
+ `;mt("",Ii,{moduleId:"lumo-menu-overlay-core"});const Bi=[Ni,Ii,p`
873
+ /* Small viewport (bottom sheet) styles */
874
+ /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
875
+ @media (max-width: 420px), (max-height: 420px) {
876
+ :host {
877
+ top: 0 !important;
878
+ right: 0 !important;
879
+ bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
880
+ left: 0 !important;
881
+ align-items: stretch !important;
882
+ justify-content: flex-end !important;
883
+ }
884
+
885
+ [part='overlay'] {
886
+ max-height: 50vh;
887
+ width: 100vw;
888
+ border-radius: 0;
889
+ box-shadow: var(--lumo-box-shadow-xl);
890
+ }
891
+
892
+ /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
893
+ [part='content'] {
894
+ padding: 30px var(--lumo-space-m);
895
+ max-height: inherit;
896
+ box-sizing: border-box;
897
+ -webkit-overflow-scrolling: touch;
898
+ overflow: auto;
899
+ -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
900
+ mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
901
+ }
902
+
903
+ [part='backdrop'] {
904
+ display: block;
905
+ }
906
+
907
+ /* Animations */
908
+
909
+ :host([opening]) [part='overlay'] {
910
+ animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
911
+ }
912
+
913
+ :host([closing]),
914
+ :host([closing]) [part='backdrop'] {
915
+ animation-delay: 0.14s;
916
+ }
917
+
918
+ :host([closing]) [part='overlay'] {
919
+ animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
920
+ }
921
+ }
922
+
923
+ @keyframes lumo-mobile-menu-overlay-enter {
924
+ 0% {
925
+ transform: translateY(150%);
926
+ }
927
+ }
928
+
929
+ @keyframes lumo-mobile-menu-overlay-exit {
930
+ 100% {
931
+ transform: translateY(150%);
932
+ }
933
+ }
934
+ `];mt("",Bi,{moduleId:"lumo-menu-overlay"}),mt("vaadin-date-picker-overlay",[Bi,p`
935
+ [part='overlay'] {
936
+ /*
937
+ Width:
938
+ date cell widths
939
+ + month calendar side padding
940
+ + year scroller width
941
+ */
942
+ /* prettier-ignore */
943
+ width:
944
+ calc(
945
+ var(--lumo-size-m) * 7
946
+ + var(--lumo-space-xs) * 2
947
+ + 57px
948
+ );
949
+ height: 100%;
950
+ max-height: calc(var(--lumo-size-m) * 14);
951
+ overflow: hidden;
952
+ -webkit-tap-highlight-color: transparent;
953
+ }
954
+
955
+ [part='overlay'] {
956
+ flex-direction: column;
957
+ }
958
+
959
+ [part='content'] {
960
+ padding: 0;
961
+ height: 100%;
962
+ overflow: hidden;
963
+ -webkit-mask-image: none;
964
+ mask-image: none;
965
+ }
966
+
967
+ :host([top-aligned]) [part~='overlay'] {
968
+ margin-top: var(--lumo-space-xs);
969
+ }
970
+
971
+ :host([bottom-aligned]) [part~='overlay'] {
972
+ margin-bottom: var(--lumo-space-xs);
973
+ }
974
+
975
+ @media (max-width: 420px), (max-height: 420px) {
976
+ [part='overlay'] {
977
+ width: 100vw;
978
+ height: 70vh;
979
+ max-height: 70vh;
980
+ }
981
+ }
982
+ `],{moduleId:"lumo-date-picker-overlay"}),mt("vaadin-button",p`
983
+ :host {
984
+ /* Sizing */
985
+ --lumo-button-size: var(--lumo-size-m);
986
+ min-width: calc(var(--lumo-button-size) * 2);
987
+ height: var(--lumo-button-size);
988
+ padding: 0 calc(var(--lumo-button-size) / 3 + var(--lumo-border-radius-m) / 2);
989
+ margin: var(--lumo-space-xs) 0;
990
+ box-sizing: border-box;
991
+ /* Style */
992
+ font-family: var(--lumo-font-family);
993
+ font-size: var(--lumo-font-size-m);
994
+ font-weight: 500;
995
+ color: var(--_lumo-button-color, var(--lumo-primary-text-color));
996
+ background-color: var(--_lumo-button-background-color, var(--lumo-contrast-5pct));
997
+ border-radius: var(--lumo-border-radius-m);
998
+ cursor: var(--lumo-clickable-cursor);
999
+ -webkit-tap-highlight-color: transparent;
1000
+ -webkit-font-smoothing: antialiased;
1001
+ -moz-osx-font-smoothing: grayscale;
1002
+ flex-shrink: 0;
1003
+ }
1004
+
1005
+ /* Set only for the internal parts so we don't affect the host vertical alignment */
1006
+ [part='label'],
1007
+ [part='prefix'],
1008
+ [part='suffix'] {
1009
+ line-height: var(--lumo-line-height-xs);
1010
+ }
1011
+
1012
+ [part='label'] {
1013
+ padding: calc(var(--lumo-button-size) / 6) 0;
1014
+ }
1015
+
1016
+ :host([theme~='small']) {
1017
+ font-size: var(--lumo-font-size-s);
1018
+ --lumo-button-size: var(--lumo-size-s);
1019
+ }
1020
+
1021
+ :host([theme~='large']) {
1022
+ font-size: var(--lumo-font-size-l);
1023
+ --lumo-button-size: var(--lumo-size-l);
1024
+ }
1025
+
1026
+ /* For interaction states */
1027
+ :host::before,
1028
+ :host::after {
1029
+ content: '';
1030
+ /* We rely on the host always being relative */
1031
+ position: absolute;
1032
+ z-index: 1;
1033
+ inset: 0;
1034
+ background-color: currentColor;
1035
+ border-radius: inherit;
1036
+ opacity: 0;
1037
+ pointer-events: none;
1038
+ }
1039
+
1040
+ /* Hover */
1041
+
1042
+ @media (any-hover: hover) {
1043
+ :host(:hover)::before {
1044
+ opacity: 0.02;
1045
+ }
1046
+ }
1047
+
1048
+ /* Active */
1049
+
1050
+ :host::after {
1051
+ transition: opacity 1.4s, transform 0.1s;
1052
+ filter: blur(8px);
1053
+ }
1054
+
1055
+ :host([active])::before {
1056
+ opacity: 0.05;
1057
+ transition-duration: 0s;
1058
+ }
1059
+
1060
+ :host([active])::after {
1061
+ opacity: 0.1;
1062
+ transition-duration: 0s, 0s;
1063
+ transform: scale(0);
1064
+ }
1065
+
1066
+ /* Keyboard focus */
1067
+
1068
+ :host([focus-ring]) {
1069
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
1070
+ }
1071
+
1072
+ :host([theme~='primary'][focus-ring]) {
1073
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
1074
+ }
1075
+
1076
+ /* Types (primary, tertiary, tertiary-inline */
1077
+
1078
+ :host([theme~='tertiary']),
1079
+ :host([theme~='tertiary-inline']) {
1080
+ background-color: transparent !important;
1081
+ min-width: 0;
1082
+ }
1083
+
1084
+ :host([theme~='tertiary']) {
1085
+ padding: 0 calc(var(--lumo-button-size) / 6);
1086
+ }
1087
+
1088
+ :host([theme~='tertiary-inline'])::before {
1089
+ display: none;
1090
+ }
1091
+
1092
+ :host([theme~='tertiary-inline']) {
1093
+ margin: 0;
1094
+ height: auto;
1095
+ padding: 0;
1096
+ line-height: inherit;
1097
+ font-size: inherit;
1098
+ }
1099
+
1100
+ :host([theme~='tertiary-inline']) [part='label'] {
1101
+ padding: 0;
1102
+ overflow: visible;
1103
+ line-height: inherit;
1104
+ }
1105
+
1106
+ :host([theme~='primary']) {
1107
+ background-color: var(--_lumo-button-primary-background-color, var(--lumo-primary-color));
1108
+ color: var(--_lumo-button-primary-color, var(--lumo-primary-contrast-color));
1109
+ font-weight: 600;
1110
+ min-width: calc(var(--lumo-button-size) * 2.5);
1111
+ }
1112
+
1113
+ :host([theme~='primary'])::before {
1114
+ background-color: black;
1115
+ }
1116
+
1117
+ @media (any-hover: hover) {
1118
+ :host([theme~='primary']:hover)::before {
1119
+ opacity: 0.05;
1120
+ }
1121
+ }
1122
+
1123
+ :host([theme~='primary'][active])::before {
1124
+ opacity: 0.1;
1125
+ }
1126
+
1127
+ :host([theme~='primary'][active])::after {
1128
+ opacity: 0.2;
1129
+ }
1130
+
1131
+ /* Colors (success, error, contrast) */
1132
+
1133
+ :host([theme~='success']) {
1134
+ color: var(--lumo-success-text-color);
1135
+ }
1136
+
1137
+ :host([theme~='success'][theme~='primary']) {
1138
+ background-color: var(--lumo-success-color);
1139
+ color: var(--lumo-success-contrast-color);
1140
+ }
1141
+
1142
+ :host([theme~='error']) {
1143
+ color: var(--lumo-error-text-color);
1144
+ }
1145
+
1146
+ :host([theme~='error'][theme~='primary']) {
1147
+ background-color: var(--lumo-error-color);
1148
+ color: var(--lumo-error-contrast-color);
1149
+ }
1150
+
1151
+ :host([theme~='contrast']) {
1152
+ color: var(--lumo-contrast);
1153
+ }
1154
+
1155
+ :host([theme~='contrast'][theme~='primary']) {
1156
+ background-color: var(--lumo-contrast);
1157
+ color: var(--lumo-base-color);
1158
+ }
1159
+
1160
+ /* Disabled state. Keep selectors after other color variants. */
1161
+
1162
+ :host([disabled]) {
1163
+ pointer-events: none;
1164
+ color: var(--lumo-disabled-text-color);
1165
+ }
1166
+
1167
+ :host([theme~='primary'][disabled]) {
1168
+ background-color: var(--lumo-contrast-30pct);
1169
+ color: var(--lumo-base-color);
1170
+ }
1171
+
1172
+ :host([theme~='primary'][disabled]) [part] {
1173
+ opacity: 0.7;
1174
+ }
1175
+
1176
+ /* Icons */
1177
+
1178
+ [part] ::slotted(vaadin-icon) {
1179
+ display: inline-block;
1180
+ width: var(--lumo-icon-size-m);
1181
+ height: var(--lumo-icon-size-m);
1182
+ }
1183
+
1184
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
1185
+ [part] ::slotted(vaadin-icon[icon^='vaadin:']) {
1186
+ padding: 0.25em;
1187
+ box-sizing: border-box !important;
1188
+ }
1189
+
1190
+ [part='prefix'] {
1191
+ margin-left: -0.25em;
1192
+ margin-right: 0.25em;
1193
+ }
1194
+
1195
+ [part='suffix'] {
1196
+ margin-left: 0.25em;
1197
+ margin-right: -0.25em;
1198
+ }
1199
+
1200
+ /* Icon-only */
1201
+
1202
+ :host([theme~='icon']:not([theme~='tertiary-inline'])) {
1203
+ min-width: var(--lumo-button-size);
1204
+ padding-left: calc(var(--lumo-button-size) / 4);
1205
+ padding-right: calc(var(--lumo-button-size) / 4);
1206
+ }
1207
+
1208
+ :host([theme~='icon']) [part='prefix'],
1209
+ :host([theme~='icon']) [part='suffix'] {
1210
+ margin-left: 0;
1211
+ margin-right: 0;
1212
+ }
1213
+
1214
+ /* RTL specific styles */
1215
+
1216
+ :host([dir='rtl']) [part='prefix'] {
1217
+ margin-left: 0.25em;
1218
+ margin-right: -0.25em;
1219
+ }
1220
+
1221
+ :host([dir='rtl']) [part='suffix'] {
1222
+ margin-left: -0.25em;
1223
+ margin-right: 0.25em;
1224
+ }
1225
+
1226
+ :host([dir='rtl'][theme~='icon']) [part='prefix'],
1227
+ :host([dir='rtl'][theme~='icon']) [part='suffix'] {
1228
+ margin-left: 0;
1229
+ margin-right: 0;
1230
+ }
1231
+ `,{moduleId:"lumo-button"});
1232
+ /**
1233
+ * @license
1234
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1235
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1236
+ */
1237
+ const ji=qt((t=>"function"==typeof t.prototype.addController?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}})),Ri=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Wi=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Ui(t,e){if("function"!=typeof t)return;const i=Ri.exec(t.toString());if(i)try{t=new Function(i[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};function Hi(){}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&(Wi?!(Wi&&Object.keys(Wi).map((t=>Wi[t])).filter((t=>t.productionMode)).length>0):!Ui((function(){return!0})))}catch(t){return!1}}());
1238
+ /**
1239
+ * @license
1240
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1241
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1242
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1243
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1244
+ * Code distributed by Google as part of the polymer project is also
1245
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1246
+ */
1247
+ let Li=0,$i=0;const qi=[];let Yi=!1;const Vi={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},Gi={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},Ji={run(t){Yi||(Yi=!0,queueMicrotask((()=>function(){Yi=!1;const t=qi.length;for(let e=0;e<t;e++){const t=qi[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}qi.splice(0,t),$i+=t}()))),qi.push(t);const e=Li;return Li+=1,e},cancel(t){const e=t-$i;if(e>=0){if(!qi[e])throw new Error(`invalid async handle: ${t}`);qi[e]=null}}},Ki=new Set;class Zi{static debounce(t,e,i){return t instanceof Zi?t._cancelAsync():t=new Zi,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run((()=>{this._timer=null,Ki.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),Ki.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}let Xi;
1248
+ /**
1249
+ * @license
1250
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1251
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1252
+ */
1253
+ window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){!function(t,e){if(window.Vaadin.developmentMode)Ui(t,e)}(Hi)};const Qi=new Set,ts=t=>class extends(Ei(t)){static get version(){return"24.2.5"}static finalize(){super.finalize();const{is:t}=this;t&&!Qi.has(t)&&(window.Vaadin.registrations.push(this),Qi.add(t),window.Vaadin.developmentModeCallback&&(Xi=Zi.debounce(Xi,Gi,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),Ki.add(Xi)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
1254
+ /**
1255
+ * @license
1256
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1257
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1258
+ */;function es(t){return t?new Set(t.split(" ")):new Set}function is(t){return t?[...t].join(" "):""}function ss(t,e,i){const s=es(t.getAttribute(e));s.add(i),t.setAttribute(e,is(s))}
1259
+ /**
1260
+ * @license
1261
+ * Copyright (c) 2023 Vaadin Ltd.
1262
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1263
+ */
1264
+ class os{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask((()=>{this.flush()})))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],s=[];t.length&&(e=t.filter((t=>!this._storedNodes.includes(t)))),this._storedNodes.length&&this._storedNodes.forEach(((e,o)=>{const r=t.indexOf(e);-1===r?i.push(e):r!==o&&s.push(e)})),(e.length||i.length||s.length)&&this.callback({addedNodes:e,movedNodes:s,removedNodes:i}),this._storedNodes=t}}
1265
+ /**
1266
+ * @license
1267
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1268
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1269
+ */let rs=0;function ns(){return rs++}
1270
+ /**
1271
+ * @license
1272
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1273
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1274
+ */class as extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.localName}-${ns()}`}constructor(t,e,i,s={}){super();const{initializer:o,multiple:r,observe:n,useUniqueId:a}=s;this.host=t,this.slotName=e,this.tagName=i,this.observe="boolean"!=typeof n||n,this.multiple="boolean"==typeof r&&r,this.slotInitializer=o,r&&(this.nodes=[]),a&&(this.defaultId=this.constructor.generateId(t,e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(0===t.length){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach((t=>{this.initAddedNode(t)}))}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),s instanceof Element&&(""!==e&&s.setAttribute("slot",e),this.node=s,this.defaultNode=s)),s&&t.appendChild(s),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=this.host.shadowRoot.querySelector(""===t?"slot:not([name])":`slot[name=${t}]`);this.__slotObserver=new os(e,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node],s=t.filter((t=>!function(t){return t.nodeType===Node.TEXT_NODE&&""===t.textContent.trim()}(t)&&!i.includes(t)));e.length&&(this.nodes=i.filter((t=>!e.includes(t))),e.forEach((t=>{this.teardownNode(t)}))),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...i,...s].filter((t=>t!==this.defaultNode)),s.forEach((t=>{this.initAddedNode(t)}))):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))}))}}
1275
+ /**
1276
+ * @license
1277
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
1278
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1279
+ */class ls extends as{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.opened&&(t.opened=this.opened),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}
1280
+ /**
1281
+ * @license
1282
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1283
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1284
+ */const hs=p`
1285
+ :host {
1286
+ display: inline-block;
1287
+ position: relative;
1288
+ outline: none;
1289
+ white-space: nowrap;
1290
+ -webkit-user-select: none;
1291
+ -moz-user-select: none;
1292
+ user-select: none;
1293
+ }
1294
+
1295
+ :host([hidden]) {
1296
+ display: none !important;
1297
+ }
1298
+
1299
+ /* Aligns the button with form fields when placed on the same line.
1300
+ Note, to make it work, the form fields should have the same "::before" pseudo-element. */
1301
+ .vaadin-button-container::before {
1302
+ content: '\\2003';
1303
+ display: inline-block;
1304
+ width: 0;
1305
+ max-height: 100%;
1306
+ }
1307
+
1308
+ .vaadin-button-container {
1309
+ display: inline-flex;
1310
+ align-items: center;
1311
+ justify-content: center;
1312
+ text-align: center;
1313
+ width: 100%;
1314
+ height: 100%;
1315
+ min-height: inherit;
1316
+ text-shadow: inherit;
1317
+ }
1318
+
1319
+ [part='prefix'],
1320
+ [part='suffix'] {
1321
+ flex: none;
1322
+ }
1323
+
1324
+ [part='label'] {
1325
+ white-space: nowrap;
1326
+ overflow: hidden;
1327
+ text-overflow: ellipsis;
1328
+ }
1329
+
1330
+ @media (forced-colors: active) {
1331
+ :host {
1332
+ outline: 1px solid;
1333
+ outline-offset: -1px;
1334
+ }
1335
+
1336
+ :host([focused]) {
1337
+ outline-width: 2px;
1338
+ }
1339
+
1340
+ :host([disabled]) {
1341
+ outline-color: GrayText;
1342
+ }
1343
+ }
1344
+ `,cs="string"==typeof document.head.style.touchAction,ds="__polymerGesturesHandled",us="__polymerGesturesTouchAction",ps=["mousedown","mousemove","mouseup","click"],ms=[0,1,4,2],fs=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function vs(t){return ps.indexOf(t)>-1}let bs=!1;!function(){try{const t=Object.defineProperty({},"passive",{get(){bs=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();const gs=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),ys={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ws(t){const e=t.type;if(!vs(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!fs&&(e=ms[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}const _s={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function xs(t,e,i){t.movefn=e,t.upfn=i,document.addEventListener("mousemove",e),document.addEventListener("mouseup",i)}function ks(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const As=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Cs={},Ds=[];function Ts(t){const e=As(t);return e.length>0?e[0]:t.target}function Ss(t){const e=t.type,i=t.currentTarget.__polymerGestures;if(!i)return;const s=i[e];if(!s)return;if(!t[ds]&&(t[ds]={},e.startsWith("touch"))){const i=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(_s.touch.id=i.identifier),_s.touch.id!==i.identifier)return;cs||"touchstart"!==e&&"touchmove"!==e||function(t){const e=t.changedTouches[0],i=t.type;if("touchstart"===i)_s.touch.x=e.clientX,_s.touch.y=e.clientY,_s.touch.scrollDecided=!1;else if("touchmove"===i){if(_s.touch.scrollDecided)return;_s.touch.scrollDecided=!0;const i=function(t){let e="auto";const i=As(t);for(let t,s=0;s<i.length;s++)if(t=i[s],t[us]){e=t[us];break}return e}(t);let s=!1;const o=Math.abs(_s.touch.x-e.clientX),r=Math.abs(_s.touch.y-e.clientY);t.cancelable&&("none"===i?s=!0:"pan-x"===i?s=r>o:"pan-y"===i&&(s=o>r)),s?t.preventDefault():Es("track")}}(t)}const o=t[ds];if(!o.skip){for(let e,i=0;i<Ds.length;i++)e=Ds[i],s[e.name]&&!o[e.name]&&e.flow&&e.flow.start.indexOf(t.type)>-1&&e.reset&&e.reset();for(let i,r=0;r<Ds.length;r++)i=Ds[r],s[i.name]&&!o[i.name]&&(o[i.name]=!0,i[e](t))}}function Ms(t,e,i){return!!Cs[e]&&(function(t,e,i){const s=Cs[e],o=s.deps,r=s.name;let n=t.__polymerGestures;n||(t.__polymerGestures=n={});for(let e,i,s=0;s<o.length;s++)e=o[s],gs&&vs(e)&&"click"!==e||(i=n[e],i||(n[e]=i={_count:0}),0===i._count&&t.addEventListener(e,Ss,void vs(e)),i[r]=(i[r]||0)+1,i._count=(i._count||0)+1);t.addEventListener(e,i),s.touchAction&&Fs(t,s.touchAction)}(t,e,i),!0)}function zs(t){Ds.push(t),t.emits.forEach((e=>{Cs[e]=t}))}function Fs(t,e){cs&&t instanceof HTMLElement&&Ji.run((()=>{t.style.touchAction=e})),t[us]=e}function Ps(t,e,i){const s=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(s.detail=i,t.dispatchEvent(s),s.defaultPrevented){const t=i.preventer||i.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function Es(t){const e=function(t){for(let e,i=0;i<Ds.length;i++){e=Ds[i];for(let i,s=0;s<e.emits.length;s++)if(i=e.emits[s],i===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function Os(t,e,i,s){e&&Ps(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:s,prevent:t=>Es(t)})}function Ns(t,e,i){if(t.prevent)return!1;if(t.started)return!0;const s=Math.abs(t.x-e),o=Math.abs(t.y-i);return s>=5||o>=5}function Is(t,e,i){if(!e)return;const s=t.moves[t.moves.length-2],o=t.moves[t.moves.length-1];let r,n=0;s&&(r=o.x-s.x,n=o.y-s.y),Ps(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:o.x-t.x,dy:o.y-t.y,ddx:r,ddy:n,sourceEvent:i,hover:()=>function(t,e){let i=document.elementFromPoint(t,e),s=i;for(;s&&s.shadowRoot&&!window.ShadyDOM;){const o=s;if(s=s.shadowRoot.elementFromPoint(t,e),o===s)break;s&&(i=s)}return i}(i.clientX,i.clientY)})}function Bs(t,e,i){const s=Math.abs(e.clientX-t.x),o=Math.abs(e.clientY-t.y),r=Ts(i||e);!r||ys[r.localName]&&r.hasAttribute("disabled")||(isNaN(s)||isNaN(o)||s<=25&&o<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;const e=Ts(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const i=e.getBoundingClientRect(),s=t.pageX,o=t.pageY;return!(s>=i.left&&s<=i.right&&o>=i.top&&o<=i.bottom)}return!1}(e))&&(t.prevent||Ps(r,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i}))}
1345
+ /**
1346
+ * @license
1347
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1348
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1349
+ */zs({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ks(this.info)},mousedown(t){if(!ws(t))return;const e=Ts(t),i=this;xs(this.info,(t=>{ws(t)||(Os("up",e,t),ks(i.info))}),(t=>{ws(t)&&Os("up",e,t),ks(i.info)})),Os("down",e,t)},touchstart(t){Os("down",Ts(t),t.changedTouches[0],t)},touchend(t){Os("up",Ts(t),t.changedTouches[0],t)}}),zs({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ks(this.info)},mousedown(t){if(!ws(t))return;const e=Ts(t),i=this,s=t=>{const s=t.clientX,o=t.clientY;Ns(i.info,s,o)&&(i.info.state=i.info.started?"mouseup"===t.type?"end":"track":"start","start"===i.info.state&&Es("tap"),i.info.addMove({x:s,y:o}),ws(t)||(i.info.state="end",ks(i.info)),e&&Is(i.info,e,t),i.info.started=!0)};xs(this.info,s,(t=>{i.info.started&&s(t),ks(i.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){const e=Ts(t),i=t.changedTouches[0],s=i.clientX,o=i.clientY;Ns(this.info,s,o)&&("start"===this.info.state&&Es("tap"),this.info.addMove({x:s,y:o}),Is(this.info,e,i),this.info.state="track",this.info.started=!0)},touchend(t){const e=Ts(t),i=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),Is(this.info,e,i))}}),zs({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(t){ws(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){ws(t)&&Bs(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){Bs(this.info,t.changedTouches[0],t)}});const js=qt((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),Rs=qt((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}})),Ws=t=>class extends(js(Rs(t))){get _activeKeys(){return[" "]}ready(){super.ready(),Ms(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),Ms(this,"up",(()=>{this._setActive(!1)}))}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",(t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)}),{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}}
1350
+ /**
1351
+ * @license
1352
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1353
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1354
+ */;
1355
+ /**
1356
+ * @license
1357
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1358
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1359
+ */let Us=!1;function Hs(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Ls(t,e){const i=Math.max(t.tabIndex,0),s=Math.max(e.tabIndex,0);return 0===i||0===s?s>i:i>s}function $s(t){const e=t.length;if(e<2)return t;const i=Math.ceil(e/2);return function(t,e){const i=[];for(;t.length>0&&e.length>0;)Ls(t[0],e[0])?i.push(e.shift()):i.push(t.shift());return i.concat(t,e)}($s(t.slice(0,i)),$s(t.slice(i)))}function qs(t){return t.getRootNode().activeElement===t}function Ys(t,e){if(t.nodeType!==Node.ELEMENT_NODE||function(t){const e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;const i=window.getComputedStyle(t);return"hidden"===i.visibility||"none"===i.display}(t))return!1;const i=t,s=function(t){if(!function(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}(i);let o=s>0;s>=0&&e.push(i);let r=[];return r="slot"===i.localName?i.assignedNodes({flatten:!0}):(i.shadowRoot||i).children,[...r].forEach((t=>{o=Ys(t,e)||o})),o}window.addEventListener("keydown",(()=>{Us=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{Us=!1}),{capture:!0});
1360
+ /**
1361
+ * @license
1362
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1363
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1364
+ */
1365
+ const Vs=qt((t=>class extends t{get _keyboardActive(){return Us}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}})),Gs=t=>class extends(js(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}
1366
+ /**
1367
+ * @license
1368
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1369
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1370
+ */,Js=t=>class extends(Ws(Gs(Vs(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}}
1371
+ /**
1372
+ * @license
1373
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1374
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1375
+ */;
1376
+ /**
1377
+ * @license
1378
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
1379
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1380
+ */mt("vaadin-button",hs,{moduleId:"vaadin-button-styles"});class Ks extends(Js(ts(yt(ji(Mi))))){static get is(){return"vaadin-button"}static get template(){return(t=>t`
1381
+ <div class="vaadin-button-container">
1382
+ <span part="prefix" aria-hidden="true">
1383
+ <slot name="prefix"></slot>
1384
+ </span>
1385
+ <span part="label">
1386
+ <slot></slot>
1387
+ </span>
1388
+ <span part="suffix" aria-hidden="true">
1389
+ <slot name="suffix"></slot>
1390
+ </span>
1391
+ </div>
1392
+ <slot name="tooltip"></slot>
1393
+ `
1394
+ /**
1395
+ @license
1396
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1397
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1398
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1399
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1400
+ Code distributed by Google as part of the polymer project is also
1401
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1402
+ */)(Ti)}ready(){super.ready(),this._tooltipController=new ls(this),this.addController(this._tooltipController)}}n(Ks),mt("vaadin-date-picker-year",p`
1403
+ :host([current]) [part='year-number'] {
1404
+ color: var(--lumo-primary-text-color);
1405
+ }
1406
+
1407
+ :host(:not([current])) [part='year-number'],
1408
+ [part='year-separator'] {
1409
+ opacity: var(--_lumo-date-picker-year-opacity, 0.7);
1410
+ transition: 0.2s opacity;
1411
+ }
1412
+
1413
+ [part='year-number'],
1414
+ [part='year-separator'] {
1415
+ display: flex;
1416
+ align-items: center;
1417
+ justify-content: center;
1418
+ height: 50%;
1419
+ transform: translateY(-50%);
1420
+ }
1421
+
1422
+ [part='year-separator']::after {
1423
+ color: var(--lumo-disabled-text-color);
1424
+ content: '\\2022';
1425
+ }
1426
+ `,{moduleId:"lumo-date-picker-year"}),mt("vaadin-date-picker-overlay-content",p`
1427
+ :host {
1428
+ position: relative;
1429
+ /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
1430
+ background-image: linear-gradient(var(--lumo-shade-5pct), var(--lumo-shade-5pct));
1431
+ background-size: 57px 100%;
1432
+ background-position: top right;
1433
+ background-repeat: no-repeat;
1434
+ cursor: default;
1435
+ }
1436
+
1437
+ ::slotted([slot='months']) {
1438
+ /* Month calendar height:
1439
+ header height + margin-bottom
1440
+ + weekdays height + margin-bottom
1441
+ + date cell heights
1442
+ + small margin between month calendars
1443
+ */
1444
+ /* prettier-ignore */
1445
+ --vaadin-infinite-scroller-item-height:
1446
+ calc(
1447
+ var(--lumo-font-size-l) + var(--lumo-space-m)
1448
+ + var(--lumo-font-size-xs) + var(--lumo-space-s)
1449
+ + var(--lumo-size-m) * 6
1450
+ + var(--lumo-space-s)
1451
+ );
1452
+ --vaadin-infinite-scroller-buffer-offset: 10%;
1453
+ -webkit-mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
1454
+ mask-image: linear-gradient(transparent, #000 10%, #000 85%, transparent);
1455
+ position: relative;
1456
+ margin-right: 57px;
1457
+ }
1458
+
1459
+ ::slotted([slot='years']) {
1460
+ /* TODO get rid of fixed magic number */
1461
+ --vaadin-infinite-scroller-buffer-width: 97px;
1462
+ width: 57px;
1463
+ height: auto;
1464
+ top: 0;
1465
+ bottom: 0;
1466
+ font-size: var(--lumo-font-size-s);
1467
+ box-shadow: inset 2px 0 4px 0 var(--lumo-shade-5pct);
1468
+ -webkit-mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
1469
+ mask-image: linear-gradient(transparent, #000 35%, #000 65%, transparent);
1470
+ cursor: var(--lumo-clickable-cursor);
1471
+ }
1472
+
1473
+ ::slotted([slot='years']:hover) {
1474
+ --_lumo-date-picker-year-opacity: 1;
1475
+ }
1476
+
1477
+ /* TODO unsupported selector */
1478
+ #scrollers {
1479
+ position: static;
1480
+ display: block;
1481
+ }
1482
+
1483
+ /* TODO fix this in vaadin-date-picker that it adapts to the width of the year scroller */
1484
+ :host([desktop]) ::slotted([slot='months']) {
1485
+ right: auto;
1486
+ }
1487
+
1488
+ /* Year scroller position indicator */
1489
+ ::slotted([slot='years'])::before {
1490
+ border: none;
1491
+ width: 1em;
1492
+ height: 1em;
1493
+ background-color: var(--lumo-base-color);
1494
+ background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
1495
+ transform: translate(-75%, -50%) rotate(45deg);
1496
+ border-top-right-radius: var(--lumo-border-radius-s);
1497
+ box-shadow: 2px -2px 6px 0 var(--lumo-shade-5pct);
1498
+ z-index: 1;
1499
+ }
1500
+
1501
+ [part='toolbar'] {
1502
+ padding: var(--lumo-space-s);
1503
+ border-bottom-left-radius: var(--lumo-border-radius-l);
1504
+ margin-right: 57px;
1505
+ }
1506
+
1507
+ [part='toolbar'] ::slotted(vaadin-button) {
1508
+ margin: 0;
1509
+ }
1510
+
1511
+ /* Narrow viewport mode (fullscreen) */
1512
+
1513
+ :host([fullscreen]) [part='toolbar'] {
1514
+ order: -1;
1515
+ background-color: var(--lumo-base-color);
1516
+ }
1517
+
1518
+ :host([fullscreen]) [part='overlay-header'] {
1519
+ order: -2;
1520
+ height: var(--lumo-size-m);
1521
+ padding: var(--lumo-space-s);
1522
+ position: absolute;
1523
+ left: 0;
1524
+ right: 0;
1525
+ justify-content: center;
1526
+ }
1527
+
1528
+ :host([fullscreen]) [part='toggle-button'],
1529
+ :host([fullscreen]) [part='clear-button'],
1530
+ [part='overlay-header'] [part='label'] {
1531
+ display: none;
1532
+ }
1533
+
1534
+ /* Very narrow screen (year scroller initially hidden) */
1535
+
1536
+ [part='years-toggle-button'] {
1537
+ display: flex;
1538
+ align-items: center;
1539
+ height: var(--lumo-size-s);
1540
+ padding: 0 0.5em;
1541
+ border-radius: var(--lumo-border-radius-m);
1542
+ z-index: 3;
1543
+ color: var(--lumo-primary-text-color);
1544
+ font-weight: 500;
1545
+ -webkit-font-smoothing: antialiased;
1546
+ -moz-osx-font-smoothing: grayscale;
1547
+ }
1548
+
1549
+ :host([years-visible]) [part='years-toggle-button'] {
1550
+ background-color: var(--lumo-primary-color);
1551
+ color: var(--lumo-primary-contrast-color);
1552
+ }
1553
+
1554
+ /* TODO magic number (same as used for media-query in vaadin-date-picker-overlay-content) */
1555
+ @media screen and (max-width: 374px) {
1556
+ :host {
1557
+ background-image: none;
1558
+ }
1559
+
1560
+ [part='toolbar'],
1561
+ ::slotted([slot='months']) {
1562
+ margin-right: 0;
1563
+ }
1564
+
1565
+ /* TODO make date-picker adapt to the width of the years part */
1566
+ ::slotted([slot='years']) {
1567
+ --vaadin-infinite-scroller-buffer-width: 90px;
1568
+ width: 50px;
1569
+ background-color: var(--lumo-shade-5pct);
1570
+ }
1571
+
1572
+ :host([years-visible]) ::slotted([slot='months']) {
1573
+ padding-left: 50px;
1574
+ }
1575
+ }
1576
+ `,{moduleId:"lumo-date-picker-overlay-content"}),mt("vaadin-month-calendar",p`
1577
+ :host {
1578
+ -moz-user-select: none;
1579
+ -webkit-user-select: none;
1580
+ -webkit-tap-highlight-color: transparent;
1581
+ user-select: none;
1582
+ font-size: var(--lumo-font-size-m);
1583
+ color: var(--lumo-body-text-color);
1584
+ text-align: center;
1585
+ padding: 0 var(--lumo-space-xs);
1586
+ }
1587
+
1588
+ /* Month header */
1589
+
1590
+ [part='month-header'] {
1591
+ color: var(--lumo-header-text-color);
1592
+ font-size: var(--lumo-font-size-l);
1593
+ line-height: 1;
1594
+ font-weight: 500;
1595
+ margin-bottom: var(--lumo-space-m);
1596
+ }
1597
+
1598
+ /* Week days and numbers */
1599
+
1600
+ [part='weekdays'],
1601
+ [part='weekday'],
1602
+ [part='week-number'] {
1603
+ font-size: var(--lumo-font-size-xxs);
1604
+ line-height: 1;
1605
+ color: var(--lumo-secondary-text-color);
1606
+ }
1607
+
1608
+ [part='weekdays'] {
1609
+ margin-bottom: var(--lumo-space-s);
1610
+ }
1611
+
1612
+ [part='weekday']:empty,
1613
+ [part='week-number'] {
1614
+ width: var(--lumo-size-xs);
1615
+ }
1616
+
1617
+ /* Date and week number cells */
1618
+
1619
+ [part~='date'],
1620
+ [part='week-number'] {
1621
+ box-sizing: border-box;
1622
+ display: inline-flex;
1623
+ align-items: center;
1624
+ justify-content: center;
1625
+ height: var(--lumo-size-m);
1626
+ position: relative;
1627
+ }
1628
+
1629
+ [part~='date'] {
1630
+ transition: color 0.1s;
1631
+ }
1632
+
1633
+ [part~='date']:not(:empty) {
1634
+ cursor: var(--lumo-clickable-cursor);
1635
+ }
1636
+
1637
+ :host([week-numbers]) [part='weekday']:not(:empty),
1638
+ :host([week-numbers]) [part~='date'] {
1639
+ width: calc((100% - var(--lumo-size-xs)) / 7);
1640
+ }
1641
+
1642
+ /* Today date */
1643
+
1644
+ [part~='date'][part~='today'] {
1645
+ color: var(--lumo-primary-text-color);
1646
+ }
1647
+
1648
+ /* Focused date */
1649
+
1650
+ [part~='date']::before {
1651
+ content: '';
1652
+ position: absolute;
1653
+ z-index: -1;
1654
+ top: 50%;
1655
+ left: 50%;
1656
+ transform: translate(-50%, -50%);
1657
+ min-width: 2em;
1658
+ min-height: 2em;
1659
+ width: 80%;
1660
+ height: 80%;
1661
+ max-height: 100%;
1662
+ max-width: 100%;
1663
+ border-radius: var(--lumo-border-radius-m);
1664
+ }
1665
+
1666
+ [part~='date'][part~='focused']::before {
1667
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px var(--lumo-primary-color-50pct);
1668
+ }
1669
+
1670
+ :host(:not([focused])) [part~='date'][part~='focused']::before {
1671
+ animation: vaadin-date-picker-month-calendar-focus-date 1.4s infinite;
1672
+ }
1673
+
1674
+ @keyframes vaadin-date-picker-month-calendar-focus-date {
1675
+ 50% {
1676
+ box-shadow: 0 0 0 1px var(--lumo-base-color), 0 0 0 3px transparent;
1677
+ }
1678
+ }
1679
+
1680
+ [part~='date']:not(:empty):not([part~='disabled']):not([part~='selected']):hover::before {
1681
+ background-color: var(--lumo-primary-color-10pct);
1682
+ }
1683
+
1684
+ [part~='date'][part~='selected'] {
1685
+ color: var(--lumo-primary-contrast-color);
1686
+ }
1687
+
1688
+ [part~='date'][part~='selected']::before {
1689
+ background-color: var(--lumo-primary-color);
1690
+ }
1691
+
1692
+ [part~='date'][part~='disabled'] {
1693
+ color: var(--lumo-disabled-text-color);
1694
+ }
1695
+
1696
+ @media (pointer: coarse) {
1697
+ [part~='date']:hover:not([part~='selected'])::before,
1698
+ [part~='focused']:not([part~='selected'])::before {
1699
+ display: none;
1700
+ }
1701
+
1702
+ [part~='date']:not(:empty):not([part~='disabled']):active::before {
1703
+ display: block;
1704
+ }
1705
+
1706
+ [part~='date'][part~='selected']::before {
1707
+ box-shadow: none;
1708
+ }
1709
+ }
1710
+
1711
+ /* Disabled */
1712
+
1713
+ :host([disabled]) * {
1714
+ color: var(--lumo-disabled-text-color) !important;
1715
+ }
1716
+ `,{moduleId:"lumo-month-calendar"});const Zs=document.createElement("template");Zs.innerHTML="\n <style>\n @keyframes vaadin-date-picker-month-calendar-focus-date {\n 50% {\n box-shadow: 0 0 0 2px transparent;\n }\n }\n </style>\n",document.head.appendChild(Zs.content),wt("font-icons",p`
1717
+ @font-face {
1718
+ font-family: 'lumo-icons';
1719
+ src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
1720
+ format('woff');
1721
+ font-weight: normal;
1722
+ font-style: normal;
1723
+ }
1724
+
1725
+ html {
1726
+ --lumo-icons-align-center: '\\ea01';
1727
+ --lumo-icons-align-left: '\\ea02';
1728
+ --lumo-icons-align-right: '\\ea03';
1729
+ --lumo-icons-angle-down: '\\ea04';
1730
+ --lumo-icons-angle-left: '\\ea05';
1731
+ --lumo-icons-angle-right: '\\ea06';
1732
+ --lumo-icons-angle-up: '\\ea07';
1733
+ --lumo-icons-arrow-down: '\\ea08';
1734
+ --lumo-icons-arrow-left: '\\ea09';
1735
+ --lumo-icons-arrow-right: '\\ea0a';
1736
+ --lumo-icons-arrow-up: '\\ea0b';
1737
+ --lumo-icons-bar-chart: '\\ea0c';
1738
+ --lumo-icons-bell: '\\ea0d';
1739
+ --lumo-icons-calendar: '\\ea0e';
1740
+ --lumo-icons-checkmark: '\\ea0f';
1741
+ --lumo-icons-chevron-down: '\\ea10';
1742
+ --lumo-icons-chevron-left: '\\ea11';
1743
+ --lumo-icons-chevron-right: '\\ea12';
1744
+ --lumo-icons-chevron-up: '\\ea13';
1745
+ --lumo-icons-clock: '\\ea14';
1746
+ --lumo-icons-cog: '\\ea15';
1747
+ --lumo-icons-cross: '\\ea16';
1748
+ --lumo-icons-download: '\\ea17';
1749
+ --lumo-icons-dropdown: '\\ea18';
1750
+ --lumo-icons-edit: '\\ea19';
1751
+ --lumo-icons-error: '\\ea1a';
1752
+ --lumo-icons-eye: '\\ea1b';
1753
+ --lumo-icons-eye-disabled: '\\ea1c';
1754
+ --lumo-icons-menu: '\\ea1d';
1755
+ --lumo-icons-minus: '\\ea1e';
1756
+ --lumo-icons-ordered-list: '\\ea1f';
1757
+ --lumo-icons-phone: '\\ea20';
1758
+ --lumo-icons-photo: '\\ea21';
1759
+ --lumo-icons-play: '\\ea22';
1760
+ --lumo-icons-plus: '\\ea23';
1761
+ --lumo-icons-redo: '\\ea24';
1762
+ --lumo-icons-reload: '\\ea25';
1763
+ --lumo-icons-search: '\\ea26';
1764
+ --lumo-icons-undo: '\\ea27';
1765
+ --lumo-icons-unordered-list: '\\ea28';
1766
+ --lumo-icons-upload: '\\ea29';
1767
+ --lumo-icons-user: '\\ea2a';
1768
+ }
1769
+ `);
1770
+ /**
1771
+ * @license
1772
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1773
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1774
+ */
1775
+ const Xs=p`
1776
+ [part$='button'] {
1777
+ flex: none;
1778
+ width: 1em;
1779
+ height: 1em;
1780
+ line-height: 1;
1781
+ font-size: var(--lumo-icon-size-m);
1782
+ text-align: center;
1783
+ color: var(--lumo-contrast-60pct);
1784
+ transition: 0.2s color;
1785
+ cursor: var(--lumo-clickable-cursor);
1786
+ }
1787
+
1788
+ [part$='button']:hover {
1789
+ color: var(--lumo-contrast-90pct);
1790
+ }
1791
+
1792
+ :host([disabled]) [part$='button'],
1793
+ :host([readonly]) [part$='button'] {
1794
+ color: var(--lumo-contrast-20pct);
1795
+ cursor: default;
1796
+ }
1797
+
1798
+ [part$='button']::before {
1799
+ font-family: 'lumo-icons';
1800
+ display: block;
1801
+ }
1802
+ `;mt("",Xs,{moduleId:"lumo-field-button"});
1803
+ /**
1804
+ * @license
1805
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1806
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1807
+ */
1808
+ const Qs=p`
1809
+ :host([has-helper]) [part='helper-text']::before {
1810
+ content: '';
1811
+ display: block;
1812
+ height: 0.4em;
1813
+ }
1814
+
1815
+ [part='helper-text'] {
1816
+ display: block;
1817
+ color: var(--lumo-secondary-text-color);
1818
+ font-size: var(--lumo-font-size-xs);
1819
+ line-height: var(--lumo-line-height-xs);
1820
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
1821
+ transition: color 0.2s;
1822
+ }
1823
+
1824
+ :host(:hover:not([readonly])) [part='helper-text'] {
1825
+ color: var(--lumo-body-text-color);
1826
+ }
1827
+
1828
+ :host([disabled]) [part='helper-text'] {
1829
+ color: var(--lumo-disabled-text-color);
1830
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
1831
+ }
1832
+
1833
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
1834
+ display: none;
1835
+ }
1836
+
1837
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
1838
+ content: '';
1839
+ display: block;
1840
+ height: 0.4em;
1841
+ }
1842
+
1843
+ :host([has-helper][theme~='helper-above-field']) [part='label'] {
1844
+ order: 0;
1845
+ padding-bottom: 0.4em;
1846
+ }
1847
+
1848
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
1849
+ order: 1;
1850
+ }
1851
+
1852
+ :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
1853
+ order: 2;
1854
+ }
1855
+
1856
+ :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
1857
+ order: 3;
1858
+ }
1859
+ `
1860
+ /**
1861
+ * @license
1862
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1863
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1864
+ */,to=p`
1865
+ [part='label'] {
1866
+ align-self: flex-start;
1867
+ color: var(--lumo-secondary-text-color);
1868
+ font-weight: 500;
1869
+ font-size: var(--lumo-font-size-s);
1870
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
1871
+ transition: color 0.2s;
1872
+ line-height: 1;
1873
+ padding-right: 1em;
1874
+ padding-bottom: 0.5em;
1875
+ /* As a workaround for diacritics being cut off, add a top padding and a
1876
+ negative margin to compensate */
1877
+ padding-top: 0.25em;
1878
+ margin-top: -0.25em;
1879
+ overflow: hidden;
1880
+ white-space: nowrap;
1881
+ text-overflow: ellipsis;
1882
+ position: relative;
1883
+ max-width: 100%;
1884
+ box-sizing: border-box;
1885
+ }
1886
+
1887
+ :host([has-label])::before {
1888
+ margin-top: calc(var(--lumo-font-size-s) * 1.5);
1889
+ }
1890
+
1891
+ :host([has-label][theme~='small'])::before {
1892
+ margin-top: calc(var(--lumo-font-size-xs) * 1.5);
1893
+ }
1894
+
1895
+ :host([has-label]) {
1896
+ padding-top: var(--lumo-space-m);
1897
+ }
1898
+
1899
+ :host([has-label]) ::slotted([slot='tooltip']) {
1900
+ --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
1901
+ }
1902
+
1903
+ :host([required]) [part='required-indicator']::after {
1904
+ content: var(--lumo-required-field-indicator, '\\2022');
1905
+ transition: opacity 0.2s;
1906
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
1907
+ position: absolute;
1908
+ right: 0;
1909
+ width: 1em;
1910
+ text-align: center;
1911
+ }
1912
+
1913
+ :host([invalid]) [part='required-indicator']::after {
1914
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
1915
+ }
1916
+
1917
+ [part='error-message'] {
1918
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
1919
+ font-size: var(--lumo-font-size-xs);
1920
+ line-height: var(--lumo-line-height-xs);
1921
+ color: var(--lumo-error-text-color);
1922
+ will-change: max-height;
1923
+ transition: 0.4s max-height;
1924
+ max-height: 5em;
1925
+ }
1926
+
1927
+ :host([has-error-message]) [part='error-message']::before,
1928
+ :host([has-error-message]) [part='error-message']::after {
1929
+ content: '';
1930
+ display: block;
1931
+ height: 0.4em;
1932
+ }
1933
+
1934
+ :host(:not([invalid])) [part='error-message'] {
1935
+ max-height: 0;
1936
+ overflow: hidden;
1937
+ }
1938
+
1939
+ /* RTL specific styles */
1940
+
1941
+ :host([dir='rtl']) [part='label'] {
1942
+ margin-left: 0;
1943
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
1944
+ }
1945
+
1946
+ :host([dir='rtl']) [part='label'] {
1947
+ padding-left: 1em;
1948
+ padding-right: 0;
1949
+ }
1950
+
1951
+ :host([dir='rtl']) [part='required-indicator']::after {
1952
+ right: auto;
1953
+ left: 0;
1954
+ }
1955
+
1956
+ :host([dir='rtl']) [part='error-message'] {
1957
+ margin-left: 0;
1958
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
1959
+ }
1960
+ `;mt("",to,{moduleId:"lumo-required-field"});
1961
+ /**
1962
+ * @license
1963
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
1964
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1965
+ */
1966
+ const eo=[to,Xs,Qs,p`
1967
+ :host {
1968
+ --lumo-text-field-size: var(--lumo-size-m);
1969
+ color: var(--lumo-body-text-color);
1970
+ font-size: var(--lumo-font-size-m);
1971
+ font-family: var(--lumo-font-family);
1972
+ -webkit-font-smoothing: antialiased;
1973
+ -moz-osx-font-smoothing: grayscale;
1974
+ -webkit-tap-highlight-color: transparent;
1975
+ padding: var(--lumo-space-xs) 0;
1976
+ }
1977
+
1978
+ :host::before {
1979
+ height: var(--lumo-text-field-size);
1980
+ box-sizing: border-box;
1981
+ display: inline-flex;
1982
+ align-items: center;
1983
+ }
1984
+
1985
+ :host([focused]:not([readonly])) [part='label'] {
1986
+ color: var(--lumo-primary-text-color);
1987
+ }
1988
+
1989
+ :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
1990
+ -webkit-mask-image: none;
1991
+ mask-image: none;
1992
+ }
1993
+
1994
+ ::slotted(:is(input, textarea):placeholder-shown) {
1995
+ color: var(--lumo-secondary-text-color);
1996
+ }
1997
+
1998
+ /* Hover */
1999
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
2000
+ color: var(--lumo-body-text-color);
2001
+ }
2002
+
2003
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2004
+ opacity: 0.1;
2005
+ }
2006
+
2007
+ /* Touch device adjustment */
2008
+ @media (pointer: coarse) {
2009
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
2010
+ color: var(--lumo-secondary-text-color);
2011
+ }
2012
+
2013
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2014
+ opacity: 0;
2015
+ }
2016
+
2017
+ :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
2018
+ opacity: 0.2;
2019
+ }
2020
+ }
2021
+
2022
+ /* Trigger when not focusing using the keyboard */
2023
+ :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
2024
+ transform: scaleX(0);
2025
+ transition-duration: 0.15s, 1s;
2026
+ }
2027
+
2028
+ /* Focus-ring */
2029
+ :host([focus-ring]) [part='input-field'] {
2030
+ box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
2031
+ }
2032
+
2033
+ /* Read-only and disabled */
2034
+ :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
2035
+ opacity: 0;
2036
+ }
2037
+
2038
+ /* Read-only style */
2039
+ :host([readonly]) {
2040
+ --vaadin-input-field-border-color: transparent;
2041
+ }
2042
+
2043
+ /* Disabled style */
2044
+ :host([disabled]) {
2045
+ pointer-events: none;
2046
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
2047
+ }
2048
+
2049
+ :host([disabled]) [part='label'],
2050
+ :host([disabled]) [part='input-field'] ::slotted(*) {
2051
+ color: var(--lumo-disabled-text-color);
2052
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
2053
+ }
2054
+
2055
+ /* Invalid style */
2056
+ :host([invalid]) {
2057
+ --vaadin-input-field-border-color: var(--lumo-error-color);
2058
+ }
2059
+
2060
+ :host([invalid][focus-ring]) [part='input-field'] {
2061
+ box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
2062
+ }
2063
+
2064
+ :host([input-prevented]) [part='input-field'] {
2065
+ animation: shake 0.15s infinite;
2066
+ }
2067
+
2068
+ @keyframes shake {
2069
+ 25% {
2070
+ transform: translateX(4px);
2071
+ }
2072
+ 75% {
2073
+ transform: translateX(-4px);
2074
+ }
2075
+ }
2076
+
2077
+ /* Small theme */
2078
+ :host([theme~='small']) {
2079
+ font-size: var(--lumo-font-size-s);
2080
+ --lumo-text-field-size: var(--lumo-size-s);
2081
+ }
2082
+
2083
+ :host([theme~='small']) [part='label'] {
2084
+ font-size: var(--lumo-font-size-xs);
2085
+ }
2086
+
2087
+ :host([theme~='small']) [part='error-message'] {
2088
+ font-size: var(--lumo-font-size-xxs);
2089
+ }
2090
+
2091
+ /* Slotted content */
2092
+ [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
2093
+ color: var(--lumo-secondary-text-color);
2094
+ font-weight: 400;
2095
+ }
2096
+
2097
+ [part='clear-button']::before {
2098
+ content: var(--lumo-icons-cross);
2099
+ }
2100
+ `];mt("",eo,{moduleId:"lumo-input-field-shared-styles"}),mt("vaadin-date-picker",[eo,p`
2101
+ :host {
2102
+ outline: none;
2103
+ }
2104
+
2105
+ [part='toggle-button']::before {
2106
+ content: var(--lumo-icons-calendar);
2107
+ }
2108
+
2109
+ [part='clear-button']::before {
2110
+ content: var(--lumo-icons-cross);
2111
+ }
2112
+
2113
+ @media (max-width: 420px), (max-height: 420px) {
2114
+ [part='overlay-content'] {
2115
+ height: 70vh;
2116
+ }
2117
+ }
2118
+
2119
+ :host([dir='rtl']) [part='input-field'] ::slotted(input) {
2120
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
2121
+ }
2122
+
2123
+ :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
2124
+ --_lumo-text-field-overflow-mask-image: none;
2125
+ }
2126
+ `],{moduleId:"lumo-date-picker"});
2127
+ /**
2128
+ @license
2129
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2130
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2131
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2132
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2133
+ Code distributed by Google as part of the polymer project is also
2134
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2135
+ */
2136
+ let io=!1,so=[],oo=[];function ro(t){const e=t[0],i=t[1],s=t[2];try{i.apply(e,s)}catch(t){setTimeout((()=>{throw t}))}}function no(t,e,i){io||(io=!0,requestAnimationFrame((function(){io=!1,function(t){for(;t.length;)ro(t.shift())}(so),setTimeout((function(){!function(t){for(let e=0,i=t.length;e<i;e++)ro(t.shift())}(oo)}))}))),oo.push([t,e,i])}
2137
+ /**
2138
+ * @license
2139
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2140
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2141
+ */const ao=t=>t.test(navigator.userAgent),lo=t=>t.test(navigator.platform);ao(/Android/u),ao(/Chrome/u)&&/Google Inc/u.test(navigator.vendor);const ho=ao(/Firefox/u),co=lo(/^iPad/u)||lo(/^Mac/u)&&navigator.maxTouchPoints>1,uo=lo(/^iPhone/u)||co;ao(/^((?!chrome|android).)*safari/iu);const po=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();
2142
+ /**
2143
+ * @license
2144
+ * Copyright (c) 2017 Anton Korzunov
2145
+ * SPDX-License-Identifier: MIT
2146
+ */let mo=new WeakMap,fo=new WeakMap,vo={},bo=0;const go=t=>t&&t.nodeType===Node.ELEMENT_NODE,yo=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)},wo=(t,e=document.body,i="data-aria-hidden")=>{const s=Array.from(Array.isArray(t)?t:[t]);return e&&s.push(...Array.from(e.querySelectorAll("[aria-live]"))),((t,e,i,s)=>{const o=((t,e)=>go(t)?e.map((e=>{if(!go(e))return yo(e,"is not a valid element"),null;let i=e;for(;i&&i!==t;){if(t.contains(i))return e;i=i.getRootNode().host}return yo(e,"is not contained inside",t),null})).filter((t=>Boolean(t))):(yo(t,"is not a valid element"),[]))(e,Array.isArray(t)?t:[t]);vo[i]||(vo[i]=new WeakMap);const r=vo[i],n=[],a=new Set,l=new Set(o),h=t=>{if(!t||a.has(t))return;a.add(t);const e=t.assignedSlot;e&&h(e),h(t.parentNode||t.host)};o.forEach(h);const c=t=>{if(!t||l.has(t))return;const e=t.shadowRoot;(e?[...t.children,...e.children]:[...t.children]).forEach((t=>{if(!["template","script","style"].includes(t.localName))if(a.has(t))c(t);else{const e=t.getAttribute(s),o=null!==e&&"false"!==e,a=(mo.get(t)||0)+1,l=(r.get(t)||0)+1;mo.set(t,a),r.set(t,l),n.push(t),1===a&&o&&fo.set(t,!0),1===l&&t.setAttribute(i,"true"),o||t.setAttribute(s,"true")}}))};return c(e),a.clear(),bo+=1,()=>{n.forEach((t=>{const e=mo.get(t)-1,o=r.get(t)-1;mo.set(t,e),r.set(t,o),e||(fo.has(t)?fo.delete(t):t.removeAttribute(s)),o||t.removeAttribute(i)})),bo-=1,bo||(mo=new WeakMap,mo=new WeakMap,fo=new WeakMap,vo={})}})(s,e,i,"aria-hidden")};
2147
+ /**
2148
+ * @license
2149
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2150
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2151
+ */
2152
+ class _o{constructor(t,e){this.host=t,this.callback="function"==typeof e?e:()=>t}showModal(){const t=this.callback();this.__showOthers=wo(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}
2153
+ /**
2154
+ * @license
2155
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2156
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2157
+ */class xo{saveFocus(t){this.focusNode=t||Hs()}restoreFocus(){const t=this.focusNode;t&&(Hs()===document.body?setTimeout((()=>t.focus())):t.focus(),this.focusNode=null)}}
2158
+ /**
2159
+ * @license
2160
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2161
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2162
+ */const ko=[];class Ao{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(t){const e=[];return Ys(t,e)?$s(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(qs).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");ko.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,ko.pop()}__onKeyDown(t){this.__trapNode&&this===Array.from(ko).pop()&&"Tab"===t.key&&(t.preventDefault(),this.__focusNextElement(t.shiftKey))}__focusNextElement(t=!1){const e=this.__focusableElements,i=e[(e.length+this.__focusedElementIndex+(t?-1:1))%e.length];i.focus(),"input"===i.localName&&i.select()}}
2163
+ /**
2164
+ * @license
2165
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2166
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2167
+ */const Co=t=>class extends(ji(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new _o(this),this.__focusTrapController=new Ao(this),this.__focusRestorationController=new xo}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=Hs();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const i=t.ownerDocument;for(;e&&e!==i&&e!==this;)e=e.parentNode||e.host;return e===this}}
2168
+ /**
2169
+ * @license
2170
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2171
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2172
+ */,Do=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0)),To=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===Do().pop())()}bringToFront(){let t="";const e=Do().filter((t=>t!==this)).pop();e&&(t=e.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Do().forEach((t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=Do();let e;for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}}
2173
+ /**
2174
+ * @license
2175
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2176
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2177
+ */,So=t=>class extends(Co(To(t))){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),uo&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{}))}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,e=window.innerWidth,i=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",e>t&&i>t?i-t+"px":"0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,e,i,s){const o=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i,this._oldOwner=e;const r=this._oldRenderer!==t;this._oldRenderer=t;const n=this._oldOpened!==s;this._oldOpened=s,r&&(this.innerHTML="",delete this._$litPart$),s&&t&&(r||n||o)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,e){t?(this._saveFocus(),this._animatedOpening(),no(this,(()=>{this._trapFocus();const t=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(t)})),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):e&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return!("none"===t.getPropertyValue("display"))&&e&&"none"!==e}_enqueueAnimation(t,e){const i=`__${t}Handler`,s=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",s),delete this[i])};this[i]=s,this.addEventListener("animationend",s)}_flushAnimation(t){const e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(t))return;const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&(!this.modeless||t.composedPath().includes(this.$.overlay))&&"Escape"===t.key){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}}
2178
+ /**
2179
+ * @license
2180
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2181
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2182
+ */,Mo={start:"top",end:"bottom"},zo={start:"left",end:"right"},Fo=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),Po=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value:0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t=t.assignedSlot?t.assignedSlot:t.parentNode:(e.push(t),t=t.host)}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)}))}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,Fo.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,Fo.observe(e))),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const t=this.positionTarget.getBoundingClientRect(),e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__isRTL,s=this.__shouldAlignStartHorizontally(t,i),o=!i&&s||i&&!s;this.style.alignItems=o?"flex-start":"flex-end";const r=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(t,r,this.noVerticalOverlap,Mo,this,e),a=this.__calculatePositionInOneDimension(t,r,this.noHorizontalOverlap,zo,this,s);Object.assign(this.style,n,a),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!o),this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(t,e){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth);return this.__shouldAlignStart(t,i,s,this.__margins,!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign,this.noHorizontalOverlap,zo)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);return this.__shouldAlignStart(t,e,i,this.__margins,"top"===this.verticalAlign,this.noVerticalOverlap,Mo)}__shouldAlignStart(t,e,i,s,o,r,n){const a=i-t[r?n.end:n.start]-s[n.end],l=t[r?n.start:n.end]-s[n.start],h=o?a:l;return o===(h>(o?l:a)||h>e)}__adjustBottomProperty(t,e,i){let s;if(t===e.end){if(e.end===Mo.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);i>t&&this.__oldViewportHeight&&(s=i-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===zo.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);i>t&&this.__oldViewportWidth&&(s=i-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return s}__calculatePositionInOneDimension(t,e,i,s,o,r){const n=r?s.start:s.end,a=r?s.end:s.start,l=parseFloat(o.style[n]||getComputedStyle(o)[n]),h=this.__adjustBottomProperty(n,s,l);return{[n]:h?`${h}px`:`${l+(e[r?s.start:s.end]-t[i===r?s.end:s.start])*(r?-1:1)}px`,[a]:""}}}
2183
+ /**
2184
+ * @license
2185
+ * Copyright (c) 2017 - 2023 Vaadin Ltd.
2186
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2187
+ */;
2188
+ /**
2189
+ * @license
2190
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2191
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2192
+ */
2193
+ mt("vaadin-date-picker-overlay",[p`
2194
+ :host {
2195
+ z-index: 200;
2196
+ position: fixed;
2197
+
2198
+ /* Despite of what the names say, <vaadin-overlay> is just a container
2199
+ for position/sizing/alignment. The actual overlay is the overlay part. */
2200
+
2201
+ /* Default position constraints: the entire viewport. Note: themes can
2202
+ override this to introduce gaps between the overlay and the viewport. */
2203
+ inset: 0;
2204
+ bottom: var(--vaadin-overlay-viewport-bottom);
2205
+
2206
+ /* Use flexbox alignment for the overlay part. */
2207
+ display: flex;
2208
+ flex-direction: column; /* makes dropdowns sizing easier */
2209
+ /* Align to center by default. */
2210
+ align-items: center;
2211
+ justify-content: center;
2212
+
2213
+ /* Allow centering when max-width/max-height applies. */
2214
+ margin: auto;
2215
+
2216
+ /* The host is not clickable, only the overlay part is. */
2217
+ pointer-events: none;
2218
+
2219
+ /* Remove tap highlight on touch devices. */
2220
+ -webkit-tap-highlight-color: transparent;
2221
+
2222
+ /* CSS API for host */
2223
+ --vaadin-overlay-viewport-bottom: 0;
2224
+ }
2225
+
2226
+ :host([hidden]),
2227
+ :host(:not([opened]):not([closing])) {
2228
+ display: none !important;
2229
+ }
2230
+
2231
+ [part='overlay'] {
2232
+ -webkit-overflow-scrolling: touch;
2233
+ overflow: auto;
2234
+ pointer-events: auto;
2235
+
2236
+ /* Prevent overflowing the host */
2237
+ max-width: 100%;
2238
+ box-sizing: border-box;
2239
+
2240
+ -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
2241
+ }
2242
+
2243
+ [part='backdrop'] {
2244
+ z-index: -1;
2245
+ content: '';
2246
+ background: rgba(0, 0, 0, 0.5);
2247
+ position: fixed;
2248
+ inset: 0;
2249
+ pointer-events: auto;
2250
+ }
2251
+ `
2252
+ /**
2253
+ * @license
2254
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2255
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2256
+ */,p`
2257
+ [part='overlay'] {
2258
+ display: flex;
2259
+ flex: auto;
2260
+ }
2261
+
2262
+ [part~='content'] {
2263
+ flex: auto;
2264
+ }
2265
+
2266
+ @media (forced-colors: active) {
2267
+ [part='overlay'] {
2268
+ outline: 3px solid;
2269
+ }
2270
+ }
2271
+ `],{moduleId:"vaadin-date-picker-overlay-styles"});class Eo extends(Po(So(Ei(yt(Mi))))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ti`
2272
+ <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2273
+ <div part="overlay" id="overlay">
2274
+ <div part="content" id="content">
2275
+ <slot></slot>
2276
+ </div>
2277
+ </div>
2278
+ `}}function Oo(t,e){return t instanceof Date&&e instanceof Date&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function No(t,e,i){return(!e||t>=e)&&(!i||t<=i)}function Io(t,e){return e.filter((t=>void 0!==t)).reduce(((e,i)=>i?e?Math.abs(t.getTime()-i.getTime())<Math.abs(e.getTime()-t.getTime())?i:e:i:e))}function Bo(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function jo(t){const e=new Date,i=new Date(e);return i.setDate(1),i.setMonth(parseInt(t)+e.getMonth()),i}function Ro(t){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!e)return;const i=new Date(0,0);return i.setFullYear(parseInt(e[1],10)),i.setMonth(parseInt(e[2],10)-1),i.setDate(parseInt(e[3],10)),i}
2279
+ /**
2280
+ * @license
2281
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2282
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2283
+ */n(Eo);const Wo=document.createElement("template");Wo.innerHTML='\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class Uo extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Wo.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+2*this.bufferSize?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach((t=>{this.$[t.id]=t})),this.$.scroller.addEventListener("scroll",(()=>this._scroll())),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=2*this._initialScroll+"px",ho&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))})),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t<this._buffers[0].translateY+e;(t>this._buffers[1].translateY+e||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Zi.debounce(this._debouncerScrollFinish,Vi.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();this._isVisible(this._buffers[0],t)||this._isVisible(this._buffers[1],t)||(this.position=this.position)}))}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach((t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`})),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Zi.debounce(this._debouncerUpdateClones,Vi.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()})),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach((e=>{for(let i=0;i<this.bufferSize;i++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const s=`vaadin-infinite-scroller-item-content-${ns()}`,o=document.createElement("slot");o.setAttribute("name",s),o._itemWrapper=i,e.appendChild(o),i.setAttribute("slot",s),this.appendChild(i),this._isVisible(i,t)&&this._ensureStampedInstance(i)}})),requestAnimationFrame((()=>{this._finishInit()}))}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach((i=>{t.instance[i]=e[i]}))}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach(((i,s)=>{if(!i.updated){const o=this._firstIndex+this.bufferSize*s;[...i.children].forEach(((i,s)=>{const r=i._itemWrapper;t&&!this._isVisible(r,e)||this._updateElement(r.instance,o+s)})),i.updated=!0}}))}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}
2284
+ /**
2285
+ * @license
2286
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2287
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2288
+ */const Ho=document.createElement("template");Ho.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n",n(class extends Uo{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Ho.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=jo(e)}});
2289
+ /**
2290
+ * @license
2291
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2292
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2293
+ */
2294
+ const Lo=document.createElement("template");Lo.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n",n(class extends Uo{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Lo.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}});
2295
+ /**
2296
+ * @license
2297
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2298
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2299
+ */
2300
+ class $o extends(yt(Mi)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ti`
2301
+ <style>
2302
+ :host {
2303
+ display: block;
2304
+ height: 100%;
2305
+ }
2306
+ </style>
2307
+ <div part="year-number">[[year]]</div>
2308
+ <div part="year-separator" aria-hidden="true"></div>
2309
+ `}static get properties(){return{year:{type:String},selectedDate:{type:Object}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(t,e){this.toggleAttribute("selected",e&&e.getFullYear()===t),this.toggleAttribute("current",t===(new Date).getFullYear())}}
2310
+ /**
2311
+ @license
2312
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2313
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2314
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2315
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2316
+ Code distributed by Google as part of the polymer project is also
2317
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2318
+ */
2319
+ function qo(t,e,i,s,o){let r;o&&(r="object"==typeof i&&null!==i,r&&(s=t.__dataTemp[e]));let n=s!==i&&(s==s||i==i);return r&&n&&(t.__dataTemp[e]=i),n}n($o);const Yo=qt((t=>class extends t{_shouldPropertyChange(t,e,i){return qo(this,t,e,i,!0)}})),Vo=qt((t=>class extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,i){return qo(this,t,e,i,this.mutableData)}}));Yo._mutablePropertyChange=qo;
2320
+ /**
2321
+ @license
2322
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2323
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2324
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2325
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2326
+ Code distributed by Google as part of the polymer project is also
2327
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2328
+ */
2329
+ let Go=null;function Jo(){return Go}Jo.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Jo,writable:!0}});const Ko=yi(Jo),Zo=Yo(Ko),Xo=yi(class{});class Qo extends Xo{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let t=this.root.firstChild;t;t=t.nextSibling)e.push(t),t.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let e in t)this._setPendingProperty(e,t[e])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,(t=>{t.model=this,i(t)}));else{let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,i)}}_showHideChildren(t){!function(t,e){for(let i=0;i<e.length;i++){let s=e[i];if(Boolean(t)!=Boolean(s.__hideTemplateChildren__))if(s.nodeType===Node.TEXT_NODE)t?(s.__polymerTextContent__=s.textContent,s.textContent=""):s.textContent=s.__polymerTextContent__;else if("slot"===s.localName)if(t)s.__polymerReplaced__=document.createComment("hidden-slot"),se(se(s).parentNode).replaceChild(s.__polymerReplaced__,s);else{const t=s.__polymerReplaced__;t&&se(se(t).parentNode).replaceChild(s,t)}else s.style&&(t?(s.__polymerDisplay__=s.style.display,s.style.display="none"):s.style.display=s.__polymerDisplay__);s.__hideTemplateChildren__=t,s._showHideChildren&&s._showHideChildren(t)}}(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&"textContent"==e?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do{t=t.__dataHost.__dataHost}while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}const tr=Yo(Qo);function er(t){let e=t.__dataHost;return e&&e._methodHost||e}function ir(t,e){return function(t,i,s){e.call(t.__templatizeOwner,i.substring("_host_".length),s[i])}}function sr(t,e){return function(t,i,s){e.call(t.__templatizeOwner,t,i,s[i])}}function or(t,e,i){if(Et&&!er(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=e;let s=(e?e.constructor:Qo)._parseTemplate(t),o=s.templatizeInstanceClass;o||(o=function(t,e,i){let s=i.mutableData?tr:Qo;or.mixin&&(s=or.mixin(s));let o=class extends s{};return o.prototype.__templatizeOptions=i,o.prototype._bindTemplate(t),function(t,e,i,s){let o=i.hostProps||{};for(let e in s.instanceProps){delete o[e];let i=s.notifyInstanceProp;i&&t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:sr(0,i)})}if(s.forwardHostProp&&e.__dataHost)for(let e in o)i.hasHostProps||(i.hasHostProps=!0),t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}})}(o,t,e,i),o}(t,s,i),s.templatizeInstanceClass=o);const r=er(t);!function(t,e,i,s){let o=i.forwardHostProp;if(o&&e.hasHostProps){const r="template"==t.localName;let n=e.templatizeTemplateClass;if(!n){if(r){let t=i.mutableData?Zo:Ko;class s extends t{}n=e.templatizeTemplateClass=s}else{const i=t.constructor;class s extends i{}n=e.templatizeTemplateClass=s}let a=e.hostProps;for(let t in a)n.prototype._addPropertyEffect("_host_"+t,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:ir(0,o)}),n.prototype._createNotifyingProperty("_host_"+t);It&&s&&function(t,e,i){const s=i.constructor._properties,{propertyEffects:o}=t,{instanceProps:r}=e;for(let t in o)if(!(s[t]||r&&r[t])){const e=o[t];for(let i=0;i<e.length;i++){const{part:s}=e[i].info;if(!s.signature||!s.signature.static){console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(e,i,s)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),r)!function(t,e){Go=t,Object.setPrototypeOf(t,e.prototype),new e,Go=null}(t,n),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,n.prototype);const i=e.hostProps;for(let e in i)if(e="_host_"+e,e in t){const i=t[e];delete t[e],t.__data[e]=i}}}}(t,s,i,r);let n=class extends o{};return n.prototype._methodHost=r,n.prototype.__dataHost=t,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=s.hostProps,n=n,n}
2330
+ /**
2331
+ @license
2332
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2333
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2334
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2335
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2336
+ Code distributed by Google as part of the polymer project is also
2337
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2338
+ */
2339
+ class rr{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run((()=>{this._timer=null,nr.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),nr.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}static debounce(t,e,i){return t instanceof rr?t._cancelAsync():t=new rr,t.setConfig(e,i),t}}let nr=new Set;const ar=function(){const t=Boolean(nr.size);return nr.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}})),t},lr=function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=ar()}while(t||e)};
2340
+ /**
2341
+ @license
2342
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2343
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2344
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2345
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2346
+ Code distributed by Google as part of the polymer project is also
2347
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2348
+ */
2349
+ let hr=!1;
2350
+ /**
2351
+ @license
2352
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2353
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2354
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2355
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2356
+ Code distributed by Google as part of the polymer project is also
2357
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2358
+ */
2359
+ const cr=Vo(Mi);class dr extends cr{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Ht,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),function(){if(Nt&&!Mt){if(!hr){hr=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=se(se(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let t=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");t.disconnect(),this.__render()}));return t.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=or(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(t,e){let i=this.__instances;for(let s,o=0;o<i.length&&(s=i[o]);o++)s.forwardHostProp(t,e)},notifyInstanceProp:function(t,e,i){if((s=this.as)===(o=e)||ne(s,o)||ae(s,o)){let s=t[this.itemsIndexAs];e==this.as&&(this.items[s]=i);let o=le(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,e);this.notifyPath(o,i)}var s,o}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if("string"==typeof t){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)0===t.indexOf(e[i])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||("items"===t.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=rr.debounce(this.__renderDebouncer,e>0?Ae.after(e):Ce,t.bind(this)),nr.add(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),lr()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null,this.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),Ht&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter(((e,i,s)=>this.__filterFn(t[e],i,s)))),this.__sortFn&&e.sort(((e,i)=>this.__sortFn(t[e],t[i]))),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-i,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+s,t)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this.__chunkCount*(this._targetFrameTime/t))||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let o;for(o=0;o<e;o++){let e=this.__instances[o],r=i[o],n=t[r];s[r]=o,e?(e._setPendingProperty(this.as,n),e._setPendingProperty(this.indexAs,o),e._setPendingProperty(this.itemsIndexAs,r),e._flushProperties()):this.__insertInstance(n,o,r)}for(let t=this.__instances.length-1;t>=o;t--)this.__detachAndRemoveInstance(t)}__detachInstance(t){let e=this.__instances[t];const i=se(e.root);for(let t=0;t<e.children.length;t++)i.appendChild(e.children[t]);return e}__attachInstance(t,e){e.insertBefore(this.__instances[t].root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=i,new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let o=this.__instances[e+1],r=o?o.children[0]:this;return se(se(this).parentNode).insertBefore(s.root,r),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),s=i.indexOf("."),o=s<0?i:i.substring(0,s);if(o==parseInt(o,10)){let t=s<0?"":i.substring(s+1);this.__handleObservedPaths(t);let r=this.__instances[this.__itemsIdxToInstIdx[o]];return r&&(r._setPendingPropertyOrPath(this.as+(t?"."+t:""),e,!1,!0),r._flushProperties()),!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return function(t,e){let i;for(;e;)if(i=e.__dataHost?e:e.__templatizeInstance){if(i.__dataHost==t)return i;e=i.__dataHost}else e=se(e).parentNode;return null}(this.template,t)}}customElements.define(dr.is,dr);
2360
+ /**
2361
+ * @license
2362
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2363
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2364
+ */
2365
+ const ur=t=>class extends(Vs(t)){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find((t=>Oo(t.date,this.focusedDate)))}ready(){super.ready(),Ms(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,e,i){const s=new Date(0,0);s.setFullYear(t.getFullYear()),s.setMonth(t.getMonth()),s.setDate(1);const o=new Date(0,0);return o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()+1),o.setDate(0),!(e&&i&&e.getMonth()===i.getMonth()&&e.getMonth()===t.getMonth()&&i.getDate()-e.getDate()>=0||No(s,e,i)||No(o,e,i))}_getTitle(t,e){if(void 0!==t&&void 0!==e)return e.formatTitle(e.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300)}_dateAdd(t,e){t.setDate(t.getDate()+e)}_applyFirstDayOfWeek(t,e){if(void 0!==t&&void 0!==e)return t.slice(e).concat(t.slice(0,e))}_getWeekDayNames(t,e){if(void 0===t||void 0===e)return[];const{weekdays:i,weekdaysShort:s,firstDayOfWeek:o}=t,r=this._applyFirstDayOfWeek(s,o);return this._applyFirstDayOfWeek(i,o).map(((t,e)=>({weekDay:t,weekDayShort:r[e]})))}__focusedDateChanged(t,e){Array.isArray(e)&&e.some((e=>Oo(e,t)))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,e){return t&&e&&1===e.firstDayOfWeek}_isToday(t){return Oo(new Date,t)}_getDays(t,e){if(void 0===t||void 0===e)return[];const i=new Date(0,0);for(i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()),i.setDate(1);i.getDay()!==e.firstDayOfWeek;)this._dateAdd(i,-1);const s=[],o=i.getMonth(),r=t.getMonth();for(;i.getMonth()===r||i.getMonth()===o;)s.push(i.getMonth()===r?new Date(i.getTime()):null),this._dateAdd(i,1);return s}_getWeeks(t){return t.reduce(((t,e,i)=>(i%7==0&&t.push([]),t[t.length-1].push(e),t)),[])}_handleTap(t){this.ignoreTaps||this._notTapping||!t.target.date||t.target.hasAttribute("disabled")||(this.selectedDate=t.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:!0,composed:!0})))}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){
2366
+ /**
2367
+ * @license
2368
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2369
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2370
+ */
2371
+ return function(t){let e=t.getDay();0===e&&(e=7);const i=4-e,s=new Date(t.getTime()+24*i*3600*1e3),o=new Date(0,0);o.setFullYear(s.getFullYear());const r=s.getTime()-o.getTime(),n=Math.round(r/864e5);return Math.floor(n/7+1)}(t.reduce(((t,e)=>!t&&e?e:t)))}__getDayAriaLabel(t){if(!t)return"";let e=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;return this._isToday(t)&&(e+=`, ${this.i18n.today}`),e}}
2372
+ /**
2373
+ * @license
2374
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2375
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2376
+ */;
2377
+ /**
2378
+ * @license
2379
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2380
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2381
+ */
2382
+ mt("vaadin-month-calendar",p`
2383
+ :host {
2384
+ display: block;
2385
+ }
2386
+
2387
+ #monthGrid {
2388
+ width: 100%;
2389
+ border-collapse: collapse;
2390
+ }
2391
+
2392
+ #days-container tr,
2393
+ #weekdays-container tr {
2394
+ display: flex;
2395
+ }
2396
+
2397
+ [part~='date'] {
2398
+ outline: none;
2399
+ }
2400
+
2401
+ [part~='disabled'] {
2402
+ pointer-events: none;
2403
+ }
2404
+
2405
+ [part='week-number'][hidden],
2406
+ [part='weekday'][hidden] {
2407
+ display: none;
2408
+ }
2409
+
2410
+ [part='weekday'],
2411
+ [part~='date'] {
2412
+ width: calc(100% / 7);
2413
+ padding: 0;
2414
+ font-weight: normal;
2415
+ }
2416
+
2417
+ [part='weekday']:empty,
2418
+ [part='week-number'] {
2419
+ width: 12.5%;
2420
+ flex-shrink: 0;
2421
+ padding: 0;
2422
+ }
2423
+
2424
+ :host([week-numbers]) [part='weekday']:not(:empty),
2425
+ :host([week-numbers]) [part~='date'] {
2426
+ width: 12.5%;
2427
+ }
2428
+
2429
+ @media (forced-colors: active) {
2430
+ [part~='date'][part~='focused'] {
2431
+ outline: 1px solid;
2432
+ }
2433
+
2434
+ [part~='date'][part~='selected'] {
2435
+ outline: 3px solid;
2436
+ }
2437
+ }
2438
+ `,{moduleId:"vaadin-month-calendar-styles"});class pr extends(ur(yt(Mi))){static get template(){return Ti`
2439
+ <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
2440
+ <table
2441
+ id="monthGrid"
2442
+ role="grid"
2443
+ aria-labelledby="month-header"
2444
+ on-touchend="_preventDefault"
2445
+ on-touchstart="_onMonthGridTouchStart"
2446
+ >
2447
+ <thead id="weekdays-container">
2448
+ <tr role="row" part="weekdays">
2449
+ <th part="weekday" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]"></th>
2450
+ <template is="dom-repeat" items="[[_getWeekDayNames(i18n, showWeekNumbers)]]">
2451
+ <th role="columnheader" part="weekday" scope="col" abbr$="[[item.weekDay]]" aria-hidden="true">
2452
+ [[item.weekDayShort]]
2453
+ </th>
2454
+ </template>
2455
+ </tr>
2456
+ </thead>
2457
+ <tbody id="days-container">
2458
+ <template is="dom-repeat" items="[[_weeks]]" as="week">
2459
+ <tr role="row">
2460
+ <td part="week-number" aria-hidden="true" hidden$="[[!_showWeekSeparator(showWeekNumbers, i18n)]]">
2461
+ [[__getWeekNumber(week)]]
2462
+ </td>
2463
+ <template is="dom-repeat" items="[[week]]">
2464
+ <td
2465
+ role="gridcell"
2466
+ part$="[[__getDatePart(item, focusedDate, selectedDate, minDate, maxDate)]]"
2467
+ date="[[item]]"
2468
+ tabindex$="[[__getDayTabindex(item, focusedDate)]]"
2469
+ disabled$="[[__isDayDisabled(item, minDate, maxDate)]]"
2470
+ aria-selected$="[[__getDayAriaSelected(item, selectedDate)]]"
2471
+ aria-disabled$="[[__getDayAriaDisabled(item, minDate, maxDate)]]"
2472
+ aria-label$="[[__getDayAriaLabel(item)]]"
2473
+ >[[_getDate(item)]]</td
2474
+ >
2475
+ </template>
2476
+ </tr>
2477
+ </template>
2478
+ </tbody>
2479
+ </table>
2480
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&1===e.firstDayOfWeek?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,i,s,o){const r=["date"];return this.__isDayDisabled(t,s,o)&&r.push("disabled"),this.__isDayFocused(t,e)&&r.push("focused"),this.__isDaySelected(t,i)&&r.push("selected"),this._isToday(t)&&r.push("today"),r.join(" ")}__isDayFocused(t,e){return Oo(t,e)}__isDaySelected(t,e){return Oo(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,i){return!No(t,e,i)}__getDayAriaDisabled(t,e,i){if(void 0!==t&&void 0!==e&&void 0!==i)return this.__isDayDisabled(t,e,i)?"true":void 0}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}n(pr);
2481
+ /**
2482
+ * @license
2483
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2484
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2485
+ */
2486
+ class mr{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(t){"function"==typeof this.callback&&this.callback(t.matches)}}
2487
+ /**
2488
+ * @license
2489
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2490
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2491
+ */const fr=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}_addListeners(){Fs(this.$.scrollers,"pan-y"),Ms(this.$.scrollers,"track",this._track.bind(this)),Ms(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Ms(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Ms(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new mr(this._desktopMediaQuery,(t=>{this._desktopMode=t}))),this.addController(new as(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onTodayButtonKeyDown(t))),Ms(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new as(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onCancelButtonKeyDown(t))),Ms(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,e){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,e),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new as(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",(()=>{this._onMonthScroll()})),t.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()})),t.addEventListener("keydown",(t=>{this.__onMonthCalendarKeyDown(t)})),t.addEventListener("init-done",(()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach((t=>{t.addEventListener("selected-date-changed",(t=>{this.selectedDate=t.detail.value}))})),this.calendars=t})),this._monthScroller=t}}))}__initYearScroller(){this.addController(new as(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),Ms(t,"tap",(t=>{this._onYearTap(t)})),t.addEventListener("custom-scroll",(()=>{this._onYearScroll()})),t.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()})),t.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]})),this._yearScroller=t}}))}__updateCancelButton(t,e){t&&(t.textContent=e&&e.cancel)}__updateTodayButton(t,e,i,s){t&&(t.textContent=e&&e.today,t.disabled=!this._isTodayAllowed(i,s))}__updateCalendars(t,e,i,s,o,r,n,a,l){t&&t.length&&t.forEach((t=>{t.i18n=e,t.minDate=i,t.maxDate=s,t.focusedDate=r,t.selectedDate=o,t.showWeekNumbers=n,t.ignoreTaps=a,l?t.setAttribute("theme",l):t.removeAttribute("theme")}))}__updateYears(t,e,i){t&&t.length&&t.forEach((t=>{t.selectedDate=e,i?t.setAttribute("theme",i):t.removeAttribute("theme")}))}_selectDate(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,e=!0){if(!t)return;const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(t);return void this._scrollToPosition(i+s,e)}const s=this._monthScroller.position>i,o=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,r=this._monthScroller.position+o-1<i;s?this._scrollToPosition(i,e):r&&this._scrollToPosition(i-o+1,e)}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(1);let i=0;for(;e.getDate()<t.getDate();)e.setDate(e.getDate()+1),e.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Zi.debounce(this._debouncer,Vi.after(300),(()=>{this._ignoreTaps=!1}))}_formatDisplayed(t,e,i){return t&&e&&"function"==typeof e.formatDate?e.formatDate(Bo(t)):i}_onTodayTap(){const t=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2);this._scrollToPosition(this._monthScroller.position+e/this._yearScroller.itemHeight*12,!0)}}_scrollToPosition(t,e){if(void 0!==this._targetPosition)return void(this._targetPosition=t);if(!e)return this._monthScroller.position=t,this._targetPosition=void 0,this._repositionYearScroller(),void this.__tryFocusDate();let i;this._targetPosition=t,this._revealPromise=new Promise((t=>{i=t}));let s=0;const o=this._monthScroller.position,r=t=>{s||(s=t);const e=t-s;if(e<this.scrollDuration){const t=((t,e,i)=>(t/=this.scrollDuration/2)<1?i/2*t*t+e:-i/2*((t-=1)*(t-2)-1)+e)(e,o,this._targetPosition-o);this._monthScroller.position=t,window.requestAnimationFrame(r)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:o}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(r)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10||(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),this._translateX=this._limit(this._translateX+t.detail.ddx,{min:0,max:this._yearScrollerWidth}))}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(t){t?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return jo(t).getFullYear()}_differenceInMonths(t,e){return 12*(t.getFullYear()-e.getFullYear())-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){Oo(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let e=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),e=!0;break;case"ArrowUp":this._moveFocusByDays(-7),e=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),e=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),e=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),e=!0;break;case" ":this.__toggleDate(this.focusedDate),e=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),e=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),e=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),e=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),e=!0;break;case"Tab":this._onTabKeyDown(t,"calendar")}e&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,e){switch(t.stopPropagation(),e){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const t=this.focusableDateElement;t&&Oo(t.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,t.focus())}}async focusDate(t,e){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,e||(this._focusedMonthDate=i.getDate()),await this.focusDateElement(!1)}async focusDateElement(t=!0){this.__pendingDateFocus=this.focusedDate,this.calendars.length||await new Promise((t=>{no(this,(()=>{lr(),t()}))})),t&&this.revealDate(this.focusedDate),this._revealPromise&&await this._revealPromise,this.__tryFocusDate()}_focusClosestDate(t){this.focusDate(Io(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,e,i){this._dateAllowed(t)?this.focusDate(t,i):this._dateAllowed(this.focusedDate)?this.focusDate(e>0?this.maxDate:this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,e){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+t),e&&i.setDate(this.focusedDate.getDate()+e),i}_moveFocusByDays(t){const e=this._getDateDiff(0,t);this._focusAllowedDate(e,t,!1)}_moveFocusByMonths(t){const e=this._getDateDiff(t),i=e.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),e.setDate(this._focusedMonthDate),e.getMonth()!==i&&e.setDate(0),this._focusAllowedDate(e,t,!0)}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear()),"minDate"===e?(i.setMonth(t.getMonth()),i.setDate(1)):(i.setMonth(t.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(t)?this.focusDate(this[e]):this._focusClosestDate(t)}_dateAllowed(t,e=this.minDate,i=this.maxDate){return(!e||t>=e)&&(!i||t<=i)}_isTodayAllowed(t,e){const i=new Date,s=new Date(0,0);return s.setFullYear(i.getFullYear()),s.setMonth(i.getMonth()),s.setDate(i.getDate()),this._dateAllowed(s,t,e)}}
2492
+ /**
2493
+ * @license
2494
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2495
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2496
+ */;
2497
+ /**
2498
+ * @license
2499
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2500
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2501
+ */
2502
+ mt("vaadin-date-picker-overlay-content",p`
2503
+ :host {
2504
+ display: flex;
2505
+ flex-direction: column;
2506
+ height: 100%;
2507
+ width: 100%;
2508
+ outline: none;
2509
+ }
2510
+
2511
+ [part='overlay-header'] {
2512
+ display: flex;
2513
+ flex-shrink: 0;
2514
+ flex-wrap: nowrap;
2515
+ align-items: center;
2516
+ }
2517
+
2518
+ :host(:not([fullscreen])) [part='overlay-header'] {
2519
+ display: none;
2520
+ }
2521
+
2522
+ [part='label'] {
2523
+ flex-grow: 1;
2524
+ }
2525
+
2526
+ [hidden] {
2527
+ display: none !important;
2528
+ }
2529
+
2530
+ [part='years-toggle-button'] {
2531
+ display: flex;
2532
+ }
2533
+
2534
+ #scrollers {
2535
+ display: flex;
2536
+ height: 100%;
2537
+ width: 100%;
2538
+ position: relative;
2539
+ overflow: hidden;
2540
+ }
2541
+
2542
+ :host([desktop]) ::slotted([slot='months']) {
2543
+ right: 50px;
2544
+ transform: none !important;
2545
+ }
2546
+
2547
+ :host([desktop]) ::slotted([slot='years']) {
2548
+ transform: none !important;
2549
+ }
2550
+
2551
+ :host(.animate) ::slotted([slot='months']),
2552
+ :host(.animate) ::slotted([slot='years']) {
2553
+ transition: all 200ms;
2554
+ }
2555
+
2556
+ [part='toolbar'] {
2557
+ display: flex;
2558
+ justify-content: space-between;
2559
+ z-index: 2;
2560
+ flex-shrink: 0;
2561
+ }
2562
+ `,{moduleId:"vaadin-date-picker-overlay-content-styles"});class vr extends(fr(ji(yt(Ei(Mi))))){static get template(){return Ti`
2563
+ <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
2564
+ <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
2565
+ <div part="clear-button" hidden$="[[!selectedDate]]"></div>
2566
+ <div part="toggle-button"></div>
2567
+
2568
+ <div part="years-toggle-button" hidden$="[[_desktopMode]]" aria-hidden="true">
2569
+ [[_yearAfterXMonths(_visibleMonthIndex)]]
2570
+ </div>
2571
+ </div>
2572
+
2573
+ <div id="scrollers">
2574
+ <slot name="months"></slot>
2575
+ <slot name="years"></slot>
2576
+ </div>
2577
+
2578
+ <div on-touchend="_preventDefault" role="toolbar" part="toolbar">
2579
+ <slot name="today-button"></slot>
2580
+ <slot name="cancel-button"></slot>
2581
+ </div>
2582
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}n(vr);
2583
+ /**
2584
+ * @license
2585
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2586
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2587
+ */
2588
+ const br=qt((t=>class extends(Vs(Gs(t))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame((()=>{this.focus(),this.setAttribute("focus-ring","")}))}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}})),gr=new WeakMap,yr=qt((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return gr.has(t)||gr.set(t,new Set),gr.get(t)}(t);this.slotStyles.forEach((i=>{e.has(i)||(function(t,e){const i=document.createElement("style");i.textContent=t,e===document?document.head.appendChild(i):e.insertBefore(i,e.firstChild)}(i,t),e.add(i))}))}})),wr=qt((t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=null!=t?t:"")}_inputElementChanged(t,e){t?this._addInputListeners(t):e&&this._removeInputListeners(e)}_hasInputValueChanged(t,e){(t||e)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=e.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue),""===t&&void 0===e||this.__userInput||this._forwardInputValue(t)}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),_r=t=>class extends(wr(Rs(t))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t))),this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t))))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),po||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
2589
+ /**
2590
+ * @license
2591
+ * Copyright (c) 2023 Vaadin Ltd.
2592
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2593
+ */,xr=new Map;
2594
+ /**
2595
+ * @license
2596
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2597
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2598
+ */function kr(t){return xr.has(t)||xr.set(t,new WeakMap),xr.get(t)}function Ar(t,e){t&&t.removeAttribute(e)}function Cr(t,e){if(!t||!e)return;const i=kr(e);if(i.has(t))return;const s=es(t.getAttribute(e));i.set(t,new Set(s))}function Dr(t,e,i={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:s,oldId:o,fromUser:r}=i,n=kr(e),a=n.get(t);if(!r&&a)return o&&a.delete(o),void(s&&a.add(s));r&&(a?s||n.delete(t):Cr(t,e),Ar(t,e)),function(t,e,i){const s=es(t.getAttribute(e));s.delete(i),0!==s.size?t.setAttribute(e,is(s)):t.removeAttribute(e)}(t,e,o);const l=s||is(a);l&&ss(t,e,l)}
2599
+ /**
2600
+ * @license
2601
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2602
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2603
+ */
2604
+ class Tr{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){this.__setLabelIdToAriaAttribute(t,e?this.__labelIdFromUser:this.__labelId,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){var e;this.__target&&(t?(Cr(e=this.__target,"aria-labelledby"),Ar(e,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const i=kr(e),s=i.get(t);s&&0!==s.size?ss(t,e,is(s)):t.removeAttribute(e),i.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Dr(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Dr(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Dr(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}
2605
+ /**
2606
+ * @license
2607
+ * Copyright (c) 2022 - 2023 Vaadin Ltd.
2608
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2609
+ */class Sr extends as{constructor(t,e,i,s={}){super(t,e,i,{...s,useUniqueId:!0})}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target,i=e===this.node;"attributes"===t.type?i&&this.__updateNodeId(e):(i||e.parentElement===this.node)&&this.__notifyChange(this.node)}))})),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return!!t&&(t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&""!==t.textContent.trim())}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){t.nodeType!==Node.ELEMENT_NODE||this.multiple&&this.nodes&&t!==this.nodes[0]||t.id||(t.id=this.defaultId)}}
2610
+ /**
2611
+ * @license
2612
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2613
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2614
+ */class Mr extends Sr{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,s=Boolean(i&&e&&""!==e.trim());t&&(t.textContent=s?e:"",t.hidden=!s,s?t.setAttribute("role","alert"):t.removeAttribute("role")),super.updateDefaultNode(t)}}
2615
+ /**
2616
+ * @license
2617
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2618
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2619
+ */class zr extends Sr{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&""!==t.trim()){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
2620
+ /**
2621
+ * @license
2622
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2623
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2624
+ */class Fr extends Sr{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&""!==t.trim()){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
2625
+ /**
2626
+ * @license
2627
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2628
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2629
+ */const Pr=qt((t=>class extends(ji(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Fr(this),this._labelController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-label",t.detail.hasContent)}))}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}})),Er=qt((t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}})),Or=t=>class extends(Er(Pr(ji(t)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Tr(this),this._helperController=new zr(this),this._errorController=new Mr(this),this._errorController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)})),this._labelController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.__labelChanged(e,i)})),this._helperController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,i)}))}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,e){this._fieldAriaController.setHelperId(t?e.id:null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,e){this._fieldAriaController.setLabelId(t?e.id:null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout((()=>{if(t){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)}))}}
2630
+ /**
2631
+ * @license
2632
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2633
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2634
+ */,Nr=qt((t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,i)=>{this._delegateAttribute(e,t[i])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,i)=>{this._delegateProperty(e,t[i])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}})),Ir=qt((t=>class extends(Nr(Er(wr(t)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((t=>this[t])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t)return;const i=this._hasValidConstraints(e),s=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():s&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return Boolean(t)||0===t}})),Br=t=>class extends(yr(br(Ir(Or(_r(Rs(t))))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Zi.debounce(this._preventInputDebouncer,Vi.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}}
2635
+ /**
2636
+ * @license
2637
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2638
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2639
+ */;
2640
+ /**
2641
+ * @license
2642
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2643
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2644
+ */class jr extends as{constructor(t,e){super(t,"input","input",{initializer:(t,i)=>{i.value&&(t.value=i.value),i.type&&t.setAttribute("type",i.type),t.id=this.defaultId,"function"==typeof e&&e(t)},useUniqueId:!0})}}
2645
+ /**
2646
+ * @license
2647
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2648
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2649
+ */class Rr{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",(t=>{this.__initLabel(t.detail.node)})),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}
2650
+ /**
2651
+ * @license
2652
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
2653
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2654
+ */const Wr=[p`
2655
+ :host {
2656
+ display: inline-flex;
2657
+ outline: none;
2658
+ }
2659
+
2660
+ :host::before {
2661
+ content: '\\2003';
2662
+ width: 0;
2663
+ display: inline-block;
2664
+ /* Size and position this element on the same vertical position as the input-field element
2665
+ to make vertical align for the host element work as expected */
2666
+ }
2667
+
2668
+ :host([hidden]) {
2669
+ display: none !important;
2670
+ }
2671
+
2672
+ :host(:not([has-label])) [part='label'] {
2673
+ display: none;
2674
+ }
2675
+
2676
+ @media (forced-colors: active) {
2677
+ :host(:not([readonly])) [part='input-field'] {
2678
+ outline: 1px solid;
2679
+ outline-offset: -1px;
2680
+ }
2681
+ :host([focused]) [part='input-field'] {
2682
+ outline-width: 2px;
2683
+ }
2684
+ :host([disabled]) [part='input-field'] {
2685
+ outline-color: GrayText;
2686
+ }
2687
+ }
2688
+ `
2689
+ /**
2690
+ * @license
2691
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
2692
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2693
+ */,p`
2694
+ [class$='container'] {
2695
+ display: flex;
2696
+ flex-direction: column;
2697
+ min-width: 100%;
2698
+ max-width: 100%;
2699
+ width: var(--vaadin-field-default-width, 12em);
2700
+ }
2701
+ `
2702
+ /**
2703
+ * @license
2704
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
2705
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2706
+ */,p`
2707
+ [part='clear-button'] {
2708
+ display: none;
2709
+ cursor: default;
2710
+ }
2711
+
2712
+ [part='clear-button']::before {
2713
+ content: '\\2715';
2714
+ }
2715
+
2716
+ :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
2717
+ display: block;
2718
+ }
2719
+ `
2720
+ /**
2721
+ * @license
2722
+ * Copyright (c) 2021 - 2023 Vaadin Ltd..
2723
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2724
+ */],Ur=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e)return;if(void 0===t)return;const{classList:i}=e;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));t.length>0&&i.remove(...t)}const s="string"==typeof t?t.split(" "):[];s.length>0&&i.add(...s),this.__previousClasses=s}}
2725
+ /**
2726
+ * @license
2727
+ * Copyright (c) 2021 - 2023 Vaadin Ltd.
2728
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2729
+ */;class Hr{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)})),t.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(!0))),t.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(!0)))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}
2730
+ /**
2731
+ * @license
2732
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2733
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2734
+ */const Lr=t=>class extends(Ur(ji(br(Ir(Rs(t)))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const e=String(t.year).replace(/\d+/u,(t=>"0000".substr(t.length)+t));return[t.month+1,t.day,e].join("/")},parseDate(t){const e=t.split("/"),i=new Date;let s,o=i.getMonth(),r=i.getFullYear();if(3===e.length?(o=parseInt(e[0])-1,s=parseInt(e[1]),r=parseInt(e[2]),e[2].length<3&&r>=0&&(r=function(t,e,i=0,s=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+100*Math.floor(t.getFullYear()/100);return t<new Date(o-50,i,s)?o-=100:t>new Date(o+50,i,s)&&(o+=100),o}(this.referenceDate?Ro(this.referenceDate):new Date,r,o,s))):2===e.length?(o=parseInt(e[0])-1,s=parseInt(e[1])):1===e.length&&(s=parseInt(e[0])),void 0!==s)return{day:s,month:o,year:r}},formatTitle:(t,e)=>`${t} ${e}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:uo},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(t){super._inputElementValue=t,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(t){super._onFocus(t),this._noInput&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new mr(this._fullscreenMediaQuery,(t=>{this._fullscreen=t}))),this.addController(new Hr(this));const t=this.$.overlay;this._overlayElement=t,t.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",(()=>this.__bringToFront())),this.addEventListener("touchstart",(()=>this.__bringToFront()))}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(t){if(t.firstChild)return;const e=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(e),this._overlayContent=e,e.addEventListener("close",(()=>{this._close()})),e.addEventListener("focus-input",this._focusAndSelect.bind(this)),e.addEventListener("date-tap",(t=>{this.__userConfirmedDate=!0,this._selectDate(t.detail.date),this._close()})),e.addEventListener("date-selected",(t=>{this.__userConfirmedDate=!!t.detail.date,this._selectDate(t.detail.date)})),e.addEventListener("focusin",(()=>{this._keyboardActive&&this._setFocused(!0)})),e.addEventListener("focused-date-changed",(t=>{this._focusedDate=t.detail.value}))}__parseDate(t){if(!this.i18n.parseDate)return;let e=this.i18n.parseDate(t);return e&&(e=Ro(`${e.year}-${e.month+1}-${e.day}`)),e&&!isNaN(e.getTime())?e:void 0}__formatDate(t){if(this.i18n.formatDate)return this.i18n.formatDate(Bo(t))}checkValidity(){const t=this._inputElementValue,e=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),i=!this._selectedDate||No(this._selectedDate,this._minDate,this._maxDate);let s=!0;return this.inputElement&&(this.inputElement.checkValidity?s=this.inputElement.checkValidity():this.inputElement.validate&&(s=this.inputElement.validate())),e&&i&&s}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){return!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(t){const e=this.value;this._selectedDate=t,e!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(t,e,i,s,o,r){return!t||e&&(!r||o)||i&&o||!s.parseDate}_formatISO(t){if(!(t instanceof Date))return"";const e=(t,e="00")=>(e+t).substr((e+t).length-e.length);let i="",s="0000",o=t.getFullYear();return o<0?(o=-o,i="-",s="000000"):t.getFullYear()>=1e4&&(i="+",s="000000"),[i+e(o,s),e(t.getMonth()+1),e(t.getDate())].join("-")}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,e){void 0!==t&&void 0!==e&&(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,e){void 0!==t&&void 0!==e&&(this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(t))}_valueChanged(t,e){const i=Ro(t);!t||i?(t?Oo(this._selectedDate,i)||(this._selectedDate=i,void 0!==e&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)):this.value=e}__updateOverlayContent(t,e,i,s,o,r,n,a){t&&(t.i18n=e,t.label=i,t.minDate=s,t.maxDate=o,t.focusedDate=r,t.selectedDate=n,t.showWeekNumbers=a)}__updateOverlayContentTheme(t,e){t&&(e?t.setAttribute("theme",e):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,e){t&&t.toggleAttribute("fullscreen",e)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const t=this._overlayContent;t.reset();const e=this._getInitialPosition();t.initialPosition=e;const i=t.focusedDate||e;t.scrollToDate(i),this._ignoreFocusedDateChange=!0,t.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const s=this._nativeInput;this._noInput&&s&&(s.blur(),this._overlayContent.focusDateElement()),this.__showOthers=wo(this._noInput?t:[s,t])}_getInitialPosition(){const t=Ro(this.initialPosition),e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||No(e,this._minDate,this._maxDate)?e:Io(e,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this.__parseDate(this._inputElementValue||"");t?this._selectDate(t):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.value||this._keyboardActive||this.validate()}_onScroll(t){t.target!==window&&this._overlayContent.contains(t.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,e){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,e)}_onChange(t){t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){this.autoOpenDisabled&&!this._noInput||(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&-1===[9].indexOf(t.keyCode)&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(t){const e=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),e===this.value&&this.validate()}_onEscape(t){if(!this.opened)return this.clearButtonVisible&&this.value?(t.stopPropagation(),void this._onClearButtonClick(t)):void(this.autoOpenDisabled?(""===this.inputElement.value&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate()))}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(this.opened||!this._inputElementValue||this.autoOpenDisabled||this.open(),this._inputElementValue){const t=this.__parseDate(this._inputElementValue);t&&(this._ignoreFocusedDateChange=!0,Oo(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(t){return Ro(t)}}
2735
+ /**
2736
+ * @license
2737
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2738
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2739
+ */;
2740
+ /**
2741
+ * @license
2742
+ * Copyright (c) 2016 - 2023 Vaadin Ltd.
2743
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2744
+ */
2745
+ mt("vaadin-date-picker",[Wr,p`
2746
+ :host([opened]) {
2747
+ pointer-events: auto;
2748
+ }
2749
+
2750
+ :host([dir='rtl']) [part='input-field'] {
2751
+ direction: ltr;
2752
+ }
2753
+
2754
+ :host([dir='rtl']) [part='input-field'] ::slotted(input)::placeholder {
2755
+ direction: rtl;
2756
+ text-align: left;
2757
+ }
2758
+ `],{moduleId:"vaadin-date-picker-styles"});class $r extends(Lr(Br(yt(ts(Mi))))){static get is(){return"vaadin-date-picker"}static get template(){return Ti`
2759
+ <div class="vaadin-date-picker-container">
2760
+ <div part="label">
2761
+ <slot name="label"></slot>
2762
+ <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
2763
+ </div>
2764
+
2765
+ <vaadin-input-container
2766
+ part="input-field"
2767
+ readonly="[[readonly]]"
2768
+ disabled="[[disabled]]"
2769
+ invalid="[[invalid]]"
2770
+ theme$="[[_theme]]"
2771
+ >
2772
+ <slot name="prefix" slot="prefix"></slot>
2773
+ <slot name="input"></slot>
2774
+ <div id="clearButton" part="clear-button" slot="suffix" aria-hidden="true"></div>
2775
+ <div part="toggle-button" slot="suffix" aria-hidden="true" on-click="_toggle"></div>
2776
+ </vaadin-input-container>
2777
+
2778
+ <div part="helper-text">
2779
+ <slot name="helper"></slot>
2780
+ </div>
2781
+
2782
+ <div part="error-message">
2783
+ <slot name="error-message"></slot>
2784
+ </div>
2785
+ </div>
2786
+
2787
+ <vaadin-date-picker-overlay
2788
+ id="overlay"
2789
+ fullscreen$="[[_fullscreen]]"
2790
+ theme$="[[_theme]]"
2791
+ opened="{{opened}}"
2792
+ on-vaadin-overlay-escape-press="_onOverlayEscapePress"
2793
+ on-vaadin-overlay-open="_onOverlayOpened"
2794
+ on-vaadin-overlay-closing="_onOverlayClosed"
2795
+ restore-focus-on-close
2796
+ restore-focus-node="[[inputElement]]"
2797
+ ></vaadin-date-picker-overlay>
2798
+
2799
+ <slot name="tooltip"></slot>
2800
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new jr(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new Rr(this.inputElement,this._labelController)),this._tooltipController=new ls(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",(t=>t.preventDefault())),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}n($r);const qr=class{constructor(i){t(this,i),this.filterDraw=e(this,"filterDraw",7),this.filterSelection=e(this,"filterSelection",7),this.filterSelectionReset=e(this,"filterSelectionReset",7),this.showFilterId=!0,this.activateTicketSearch=!1,this.gameId="",this.playerId="",this.session="",this.postMessage=!1,this.language="en",this.quickFiltersActive=!1,this.clientStyling="",this.clientStylingUrlContent="",this.showFilterModal=!1,this.showClearButton=!1,this.filterData={},this.filterDataReset={ticketDrawId:"",filterFromCalendar:"",filterToCalendar:""},this.limitStylingAppends=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(t)}),1)}}componentDidRender(){document.getElementById("#FilterById")&&(document.getElementById("#FilterById").value=""),!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}filterSelectionHandler(t){this.postMessage&&window.postMessage({type:"filterSelection",event:t},window.location.href),(this.filterData.ticketDrawId||this.filterData.filterFromCalendar||this.filterData.filterToCalendar)&&this.filterSelection.emit(t)}filterSelectionResetHandler(t){this.postMessage&&window.postMessage({type:"filterSelectionReset",event:t},window.location.href),this.filterSelectionReset.emit(t)}modalCloseEvent(){this.showFilterModal=!1}toggleFilterModal(){this.showFilterModal=!0}filterSearch(){this.modalCloseEvent(),this.showClearButton=!0,this.filterSelectionHandler(this.filterData),console.log(this.showClearButton)}resetSearch(){this.showClearButton=!1,this.filterSelectionResetHandler(this.filterDataReset),this.filterData={}}handleTicketDrawId(t){this.filterData.ticketDrawId=t.target.value}handleFilterFrom(t){this.filterData.filterFromCalendar=new Date(t.target.value).toISOString()}handleFilterTo(t){this.filterData.filterToCalendar=new Date(t.target.value).toISOString()}render(){return i("div",{class:"HelperFilters",ref:t=>this.stylingContainer=t},i("div",{class:"FilterButtonsWrapper"},i("button",{class:"FilterOpen",onClick:()=>this.toggleFilterModal()},r("filterOpen",this.language)),console.log("in filter Open",this.showClearButton,this.quickFiltersActive),this.showClearButton||this.quickFiltersActive?i("button",{class:"FilterClear",onClick:()=>this.resetSearch()},r("filterClear",this.language)):null),i("helper-modal",{"title-modal":"Filter Modal",visible:this.showFilterModal,"client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent},i("div",{class:"FilterModalHeader"},i("h3",{class:"FilterModalTitle"},r(this.activateTicketSearch?"filterModalTicketTitle":"filterModalDrawTitle",this.language))),i("div",{class:"FilterModalBody"},i("input",{id:"FilterById",type:"text",value:this.filterData.ticketDrawId,onInput:t=>this.handleTicketDrawId(t),class:"FilterModalSearch",placeholder:r(this.activateTicketSearch?"filterTicketPlaceholder":"filterDrawPlaceholder",this.language)}),i("p",null,r("filterOrDate",this.language)),i("div",{class:"FilterCalendarWrapper"},i("vaadin-date-picker",{value:this.filterData.filterFromCalendar,onChange:t=>this.handleFilterFrom(t),placeholder:r("filterFromCalendar",this.language),class:"VaadinDatePicker"}),i("vaadin-date-picker",{value:this.filterData.filterToCalendar,onChange:t=>this.handleFilterTo(t),placeholder:r("filterToCalendar",this.language),class:"VaadinDatePicker"}))),i("div",{class:"FilterModalFooter"},i("button",{class:"FilterModalButton",onClick:()=>this.filterSearch()},r("filterModalButton",this.language)))))}};qr.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.FilterButtonsWrapper{display:flex;justify-content:flex-end;gap:5px}.FilterButtonsWrapper .FilterOpen{cursor:pointer;border-radius:4px;padding:8px 15px;width:max-content;border:1px solid #00958f;background:#00958f;color:#FFF;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0}.FilterButtonsWrapper .FilterOpen:hover{background:#00958f;color:#FFF}.FilterButtonsWrapper .FilterClear{cursor:pointer;border-radius:4px;padding:8px 15px;width:max-content;border:1px solid #00958f;background:#FFF;color:#000;font-size:12px;transition:all 0.2s linear;text-align:center;letter-spacing:0}.FilterButtonsWrapper .FilterClear:hover{background:#00958f;color:#FFF}.FilterModalHeader,.FilterModalBody,.FilterModalFooter{display:flex;flex-direction:column;gap:5px;align-items:center;margin:20px 0}.FilterModalHeader .FilterModalTitle,.FilterModalBody .FilterModalTitle,.FilterModalFooter .FilterModalTitle{margin:0;padding:0;font-weight:700;font-size:16px;color:#009993;text-transform:uppercase}.FilterModalHeader .FilterModalSearch,.FilterModalBody .FilterModalSearch,.FilterModalFooter .FilterModalSearch{border-radius:4px;background:#e8ebef;color:#263445;width:100%;height:26px;max-width:280px;padding:5px;font-size:15px;border:none;outline:#009993}.FilterModalHeader .FilterCalendarWrapper,.FilterModalBody .FilterCalendarWrapper,.FilterModalFooter .FilterCalendarWrapper{display:flex;gap:5px}.FilterModalHeader .FilterCalendarWrapper .VaadinDatePicker,.FilterModalBody .FilterCalendarWrapper .VaadinDatePicker,.FilterModalFooter .FilterCalendarWrapper .VaadinDatePicker{width:50%;max-width:143px}.FilterModalHeader .FilterModalButton,.FilterModalBody .FilterModalButton,.FilterModalFooter .FilterModalButton{cursor:pointer;border-radius:4px;padding:8px 60px;width:max-content;margin:5px;border:1px solid #00958f;background:#00958f;color:#FFF;font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.FilterModalHeader .FilterModalButton:hover,.FilterModalBody .FilterModalButton:hover,.FilterModalFooter .FilterModalButton:hover{background:#00958f;color:#FFF}.FilterModalHeader p,.FilterModalBody p,.FilterModalFooter p{margin:5px 0}';const Yr=t=>!!(t.toLowerCase().match(/android/i)||t.toLowerCase().match(/blackberry|bb/i)||t.toLowerCase().match(/iphone|ipad|ipod/i)||t.toLowerCase().match(/windows phone|windows mobile|iemobile|wpdesktop/i)),Vr=class{constructor(i){t(this,i),this.cancel=e(this,"modalCloseEvent",7),this.visible=!0,this.clientStyling="",this.clientStylingUrlContent="",this.limitStylingAppends=!1,this.userAgent=window.navigator.userAgent,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(t)}),1)}}handleHelperModalClose(){this.visible=!1,this.cancel.emit()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return this.visible&&i("div",{class:this.visible?"HelperModalWrapper HelperModalVisible":"HelperModalWrapper",ref:t=>this.stylingContainer=t},i("div",{class:"HelperModalWrapper HelperModalVisible"},i("div",{class:"HelperModalContent"+(Yr(this.userAgent)?" HelperModalMobileContent":"")},i("span",{class:"HelperModalClose"+(Yr(this.userAgent)?" HelperModalMobileClose":""),onClick:this.handleHelperModalClose.bind(this)},"X"),i("slot",null))))}};Vr.style=":host{display:block}.HelperModalWrapper{position:fixed;left:0;top:0;width:100%;height:100%;background:rgba(0, 0, 0, 0.7);opacity:0;visibility:hidden;transform:scale(1.1);transition:visibility 0s linear 0.25s, opacity 0.25s 0s, transform 0.25s;z-index:1}.HelperModalVisible{opacity:1;visibility:visible;transform:scale(1);transition:visibility 0s linear 0s, opacity 0.25s 0s, transform 0.25s}.HelperModalContent{position:relative;border:solid 1px #848e97;box-shadow:2px 2px 2px rgba(0, 0, 0, 0.007);font-size:14px;padding:10px 10px 5px 10px;background-color:#fff;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:600px;max-height:600px;overflow-y:scroll}.HelperModalMobileContent{background:#FFF;top:50%;left:50%;transform:translate(-50%, -50%);border-radius:4px;width:80%;max-height:350px}.HelperModalClose{cursor:pointer;position:absolute;top:15px;right:15px;font-size:20px;color:#000}.HelperModalMobileClose{position:absolute;top:15px;right:15px;font-size:20px;color:#000}";export{qr as helper_filters,Vr as helper_modal}