@everymatrix/lottery-game-page 1.19.2 → 1.19.3

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.
@@ -3,7 +3,7 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const r=["ro","en
3
3
  * @license
4
4
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
5
5
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
- */class a extends HTMLElement{static get version(){return"23.3.19"}}customElements.define("vaadin-lumo-styles",a);
6
+ */class a extends HTMLElement{static get version(){return"23.3.25"}}customElements.define("vaadin-lumo-styles",a);
7
7
  /**
8
8
  * @license
9
9
  * Copyright 2019 Google LLC
@@ -13,32 +13,32 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const r=["ro","en
13
13
  * @license
14
14
  * Copyright 2017 Google LLC
15
15
  * SPDX-License-Identifier: BSD-3-Clause
16
- */;var g;const v=window,y=v.trustedTypes,w=y?y.emptyScript:"",x=v.reactiveElementPolyfillSupport,_={toAttribute(t,e){switch(e){case Boolean:t=t?w: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}},k=(t,e)=>e!==t&&(e==e||t==t),A={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:k},D="finalized";class C extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this.u()}static addInitializer(t){var e;this.finalize(),(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=A){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 r=this[t];this[e]=s,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||A}static finalize(){if(this.hasOwnProperty(D))return!1;this[D]=!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(b(t))}else void 0!==t&&e.push(b(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}u(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,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 m(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=A){var s;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const o=(void 0!==(null===(s=i.converter)||void 0===s?void 0:s.toAttribute)?i.converter:_).toAttribute(e,i.type);this._$El=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,r=s._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=s.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:_;this._$El=r,this[r]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||k)(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){}}C[D]=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==x||x({ReactiveElement:C}),(null!==(g=v.reactiveElementVersions)&&void 0!==g?g:v.reactiveElementVersions=[]).push("1.6.2");
16
+ */;var g;const v=window,y=v.trustedTypes,w=y?y.emptyScript:"",x=v.reactiveElementPolyfillSupport,_={toAttribute(t,e){switch(e){case Boolean:t=t?w: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}},k=(t,e)=>e!==t&&(e==e||t==t),A={attribute:!0,type:String,converter:_,reflect:!1,hasChanged:k},D="finalized";class C 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=A){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 r=this[t];this[e]=s,this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||A}static finalize(){if(this.hasOwnProperty(D))return!1;this[D]=!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(b(t))}else void 0!==t&&e.push(b(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 m(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=A){var s;const r=this.constructor._$Ep(t,i);if(void 0!==r&&!0===i.reflect){const o=(void 0!==(null===(s=i.converter)||void 0===s?void 0:s.toAttribute)?i.converter:_).toAttribute(e,i.type);this._$El=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$El=null}}_$AK(t,e){var i;const s=this.constructor,r=s._$Ev.get(t);if(void 0!==r&&this._$El!==r){const t=s.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:_;this._$El=r,this[r]=o.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let s=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||k)(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){}}C[D]=!0,C.elementProperties=new Map,C.elementStyles=[],C.shadowRootOptions={mode:"open"},null==x||x({ReactiveElement:C}),(null!==(g=v.reactiveElementVersions)&&void 0!==g?g:v.reactiveElementVersions=[]).push("1.6.3");
17
17
  /**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */var T;const S=window,M=S.trustedTypes,z=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,P="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,F="?"+E,O=`<${F}>`,B=document,I=()=>B.createComment(""),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,R=Array.isArray,j=t=>R(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),L="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,U=/>/g,$=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,Y=/"/g,q=/^(?:script|style|textarea|title)$/i,V=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),K=new WeakMap,Z=B.createTreeWalker(B,129,null,!1),X=(t,e)=>{const i=t.length-1,s=[];let r,o=2===e?"<svg>":"",n=H;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===H?"!--"===l[1]?n=W:void 0!==l[1]?n=U:void 0!==l[2]?(q.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=$):void 0!==l[3]&&(n=$):n===$?">"===l[0]?(n=null!=r?r:H,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?$:'"'===l[3]?Y:G):n===Y||n===G?n=$:n===W||n===U?n=H:(n=$,r=void 0);const u=n===$&&t[e+1].startsWith("/>")?" ":"";o+=n===H?i+O:h>=0?(s.push(a),i.slice(0,h)+P+i.slice(h)+E+u):i+E+(-2===h?(s.push(void 0),e):u)}const a=o+(t[i]||"<?>")+(2===e?"</svg>":"");if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return[void 0!==z?z.createHTML(a):a,s]};class Q{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,o=0;const n=t.length-1,a=this.parts,[l,h]=X(t,e);if(this.el=Q.createElement(l,i),Z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=Z.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith(P)||e.startsWith(E)){const i=h[o++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+P).split(E),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?nt:"@"===e[1]?at:st})}else a.push({type:6,index:r})}for(const e of t)s.removeAttribute(e)}if(q.test(s.tagName)){const t=s.textContent.split(E),e=t.length-1;if(e>0){s.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],I()),Z.nextNode(),a.push({type:2,index:++r});s.append(t[e],I())}}}else if(8===s.nodeType)if(s.data===F)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=s.data.indexOf(E,t+1));)a.push({type:7,index:r}),t+=E.length-1}r++}}static createElement(t,e){const i=B.createElement("template");return i.innerHTML=t,i}}function tt(t,e,i=t,s){var r,o,n,a;if(e===V)return e;let l=void 0!==s?null===(r=i._$Co)||void 0===r?void 0:r[s]:i._$Cl;const h=N(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.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=tt(t,l._$AS(t,e.values),l,s)),e}class et{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,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:B).importNode(i,!0);Z.currentNode=r;let o=Z.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new it(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new lt(o,this,t)),this._$AV.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(o=Z.nextNode(),n++)}return Z.currentNode=B,r}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 it{constructor(t,e,i,s){var r;this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=null===(r=null==s?void 0:s.isConnected)||void 0===r||r}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=tt(this,t,e),N(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==V&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):j(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!==J&&N(this._$AH)?this._$AA.nextSibling.data=t:this.$(B.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,r="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=Q.createElement(s.h,this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new et(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new Q(t)),e}T(t){R(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new it(this.k(I()),this.k(I()),this,this.options)):i=e[s],i._$AI(r),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 st{constructor(t,e,i,s,r){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let o=!1;if(void 0===r)t=tt(this,t,e,0),o=!N(t)||t!==this._$AH&&t!==V,o&&(this._$AH=t);else{const s=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=tt(this,s[i+n],e,n),a===V&&(a=this._$AH[n]),o||(o=!N(a)||a!==this._$AH[n]),a===J?t=J:t!==J&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}o&&!s&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends st{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}const ot=M?M.emptyScript:"";class nt extends st{constructor(){super(...arguments),this.type=4}j(t){t&&t!==J?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}}class at extends st{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=tt(this,t,e,0))&&void 0!==i?i:J)===V)return;const s=this._$AH,r=t===J&&s!==J||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==J&&(s===J||r);r&&this.element.removeEventListener(this.name,this,s),o&&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 lt{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){tt(this,t)}}const ht=S.litHtmlPolyfillSupport;null==ht||ht(Q,it),(null!==(T=S.litHtmlVersions)&&void 0!==T?T:S.litHtmlVersions=[]).push("2.7.4");const ct=(t,e,i)=>{var s,r;const o=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let n=o._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=n=new it(e.insertBefore(I(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n
21
+ */var T;const S=window,M=S.trustedTypes,z=M?M.createPolicy("lit-html",{createHTML:t=>t}):void 0,P="$lit$",E=`lit$${(Math.random()+"").slice(9)}$`,F="?"+E,O=`<${F}>`,B=document,I=()=>B.createComment(""),N=t=>null===t||"object"!=typeof t&&"function"!=typeof t,R=Array.isArray,j=t=>R(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]),L="[ \t\n\f\r]",H=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,U=/>/g,$=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),G=/'/g,Y=/"/g,q=/^(?:script|style|textarea|title)$/i,V=Symbol.for("lit-noChange"),J=Symbol.for("lit-nothing"),K=new WeakMap,Z=B.createTreeWalker(B,129,null,!1);function X(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==z?z.createHTML(e):e}const Q=(t,e)=>{const i=t.length-1,s=[];let r,o=2===e?"<svg>":"",n=H;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===H?"!--"===l[1]?n=W:void 0!==l[1]?n=U:void 0!==l[2]?(q.test(l[2])&&(r=RegExp("</"+l[2],"g")),n=$):void 0!==l[3]&&(n=$):n===$?">"===l[0]?(n=null!=r?r:H,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?$:'"'===l[3]?Y:G):n===Y||n===G?n=$:n===W||n===U?n=H:(n=$,r=void 0);const u=n===$&&t[e+1].startsWith("/>")?" ":"";o+=n===H?i+O:h>=0?(s.push(a),i.slice(0,h)+P+i.slice(h)+E+u):i+E+(-2===h?(s.push(void 0),e):u)}return[X(t,o+(t[i]||"<?>")+(2===e?"</svg>":"")),s]};class tt{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,o=0;const n=t.length-1,a=this.parts,[l,h]=Q(t,e);if(this.el=tt.createElement(l,i),Z.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=Z.nextNode())&&a.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith(P)||e.startsWith(E)){const i=h[o++];if(t.push(e),void 0!==i){const t=s.getAttribute(i.toLowerCase()+P).split(E),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:r,name:e[2],strings:t,ctor:"."===e[1]?ot:"?"===e[1]?at:"@"===e[1]?lt:rt})}else a.push({type:6,index:r})}for(const e of t)s.removeAttribute(e)}if(q.test(s.tagName)){const t=s.textContent.split(E),e=t.length-1;if(e>0){s.textContent=M?M.emptyScript:"";for(let i=0;i<e;i++)s.append(t[i],I()),Z.nextNode(),a.push({type:2,index:++r});s.append(t[e],I())}}}else if(8===s.nodeType)if(s.data===F)a.push({type:2,index:r});else{let t=-1;for(;-1!==(t=s.data.indexOf(E,t+1));)a.push({type:7,index:r}),t+=E.length-1}r++}}static createElement(t,e){const i=B.createElement("template");return i.innerHTML=t,i}}function et(t,e,i=t,s){var r,o,n,a;if(e===V)return e;let l=void 0!==s?null===(r=i._$Co)||void 0===r?void 0:r[s]:i._$Cl;const h=N(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(o=null==l?void 0:l._$AO)||void 0===o||o.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=et(t,l._$AS(t,e.values),l,s)),e}class it{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,r=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:B).importNode(i,!0);Z.currentNode=r;let o=Z.nextNode(),n=0,a=0,l=s[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new st(o,o.nextSibling,this,t):1===l.type?e=new l.ctor(o,l.name,l.strings,this,t):6===l.type&&(e=new ht(o,this,t)),this._$AV.push(e),l=s[++a]}n!==(null==l?void 0:l.index)&&(o=Z.nextNode(),n++)}return Z.currentNode=B,r}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 st{constructor(t,e,i,s){var r;this.type=2,this._$AH=J,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cp=null===(r=null==s?void 0:s.isConnected)||void 0===r||r}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=et(this,t,e),N(t)?t===J||null==t||""===t?(this._$AH!==J&&this._$AR(),this._$AH=J):t!==this._$AH&&t!==V&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):j(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!==J&&N(this._$AH)?this._$AA.nextSibling.data=t:this.$(B.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:s}=t,r="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=tt.createElement(X(s.h,s.h[0]),this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===r)this._$AH.v(i);else{const t=new it(r,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new tt(t)),e}T(t){R(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new st(this.k(I()),this.k(I()),this,this.options)):i=e[s],i._$AI(r),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 rt{constructor(t,e,i,s,r){this.type=1,this._$AH=J,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=J}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,s){const r=this.strings;let o=!1;if(void 0===r)t=et(this,t,e,0),o=!N(t)||t!==this._$AH&&t!==V,o&&(this._$AH=t);else{const s=t;let n,a;for(t=r[0],n=0;n<r.length-1;n++)a=et(this,s[i+n],e,n),a===V&&(a=this._$AH[n]),o||(o=!N(a)||a!==this._$AH[n]),a===J?t=J:t!==J&&(t+=(null!=a?a:"")+r[n+1]),this._$AH[n]=a}o&&!s&&this.j(t)}j(t){t===J?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class ot extends rt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===J?void 0:t}}const nt=M?M.emptyScript:"";class at extends rt{constructor(){super(...arguments),this.type=4}j(t){t&&t!==J?this.element.setAttribute(this.name,nt):this.element.removeAttribute(this.name)}}class lt extends rt{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=et(this,t,e,0))&&void 0!==i?i:J)===V)return;const s=this._$AH,r=t===J&&s!==J||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==J&&(s===J||r);r&&this.element.removeEventListener(this.name,this,s),o&&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 ht{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){et(this,t)}}const ct=S.litHtmlPolyfillSupport;null==ct||ct(tt,st),(null!==(T=S.litHtmlVersions)&&void 0!==T?T:S.litHtmlVersions=[]).push("2.8.0");const ut=(t,e,i)=>{var s,r;const o=null!==(s=null==i?void 0:i.renderBefore)&&void 0!==s?s:e;let n=o._$litPart$;if(void 0===n){const t=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:null;o._$litPart$=n=new st(e.insertBefore(I(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n
22
22
  /**
23
23
  * @license
24
24
  * Copyright 2017 Google LLC
25
25
  * SPDX-License-Identifier: BSD-3-Clause
26
- */};var ut,dt;class ft extends C{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=ct(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 V}}ft.finalized=!0,ft._$litElement$=!0,null===(ut=globalThis.litElementHydrateSupport)||void 0===ut||ut.call(globalThis,{LitElement:ft});const pt=globalThis.litElementPolyfillSupport;null==pt||pt({LitElement:ft});(null!==(dt=globalThis.litElementVersions)&&void 0!==dt?dt:globalThis.litElementVersions=[]).push("3.3.2");
26
+ */};var dt,ft;class pt extends C{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=ut(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 V}}pt.finalized=!0,pt._$litElement$=!0,null===(dt=globalThis.litElementHydrateSupport)||void 0===dt||dt.call(globalThis,{LitElement:pt});const mt=globalThis.litElementPolyfillSupport;null==mt||mt({LitElement:pt});(null!==(ft=globalThis.litElementVersions)&&void 0!==ft?ft:globalThis.litElementVersions=[]).push("3.3.3");
27
27
  /**
28
28
  * @license
29
29
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
30
30
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
31
- */const mt=t=>class e extends t{static get properties(){return{theme:{type:String,reflectToAttribute:true,observer:"__deprecatedThemePropertyChanged"},_theme:{type:String,readOnly:true}}}__deprecatedThemePropertyChanged(t){this._set_theme(t)}}
31
+ */const bt=t=>class e extends t{static get properties(){return{theme:{type:String,reflectToAttribute:true,observer:"__deprecatedThemePropertyChanged"},_theme:{type:String,readOnly:true}}}__deprecatedThemePropertyChanged(t){this._set_theme(t)}}
32
32
  /**
33
33
  * @license
34
34
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
35
35
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
36
- */;const bt=[];function gt(t,e,i={}){if(t){if(Dt(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=xt(e);if(window.Vaadin&&window.Vaadin.styleModules){window.Vaadin.styleModules.registerStyles(t,e,i)}else{bt.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId})}}function vt(){if(window.Vaadin&&window.Vaadin.styleModules){return window.Vaadin.styleModules.getAllThemes()}return bt}function yt(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`).test(e)))}function wt(t=""){let e=0;if(t.startsWith("lumo-")||t.startsWith("material-")){e=1}else if(t.startsWith("vaadin-")){e=2}return e}function xt(t=[]){return[t].flat(Infinity).filter((t=>{if(t instanceof d){return true}console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`.");return false}))}function _t(t){const e=[];if(t.include){[].concat(t.include).forEach((t=>{const i=vt().find((e=>e.moduleId===t));if(i){e.push(..._t(i),...i.styles)}else{console.warn(`Included moduleId ${t} not found in style registry`)}}),t.styles)}return e}function kt(t,e){const i=document.createElement("style");i.innerHTML=t.map((t=>t.cssText)).join("\n");e.content.appendChild(i)}function At(t){const e=`${t}-default-theme`;const i=vt().filter((i=>i.moduleId!==e&&yt(i.themeFor,t))).map((t=>({...t,styles:[..._t(t),...t.styles],includePriority:wt(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));if(i.length>0){return i}return vt().filter((t=>t.moduleId===e))}function Dt(t){return Ct(customElements.get(t))}function Ct(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}const Tt=t=>class e extends(mt(t)){static finalize(){super.finalize();if(this.elementStyles){return}const t=this.prototype._template;if(!t||Ct(this)){return}kt(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);const e=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...At(this.is)];const i=this.__themes.flatMap((t=>t.styles));return i.filter(((t,e)=>e===i.lastIndexOf(t)))}}
36
+ */;const gt=[];function vt(t,e,i={}){if(t){if(Ct(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=_t(e);if(window.Vaadin&&window.Vaadin.styleModules){window.Vaadin.styleModules.registerStyles(t,e,i)}else{gt.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId})}}function yt(){if(window.Vaadin&&window.Vaadin.styleModules){return window.Vaadin.styleModules.getAllThemes()}return gt}function wt(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`).test(e)))}function xt(t=""){let e=0;if(t.startsWith("lumo-")||t.startsWith("material-")){e=1}else if(t.startsWith("vaadin-")){e=2}return e}function _t(t=[]){return[t].flat(Infinity).filter((t=>{if(t instanceof d){return true}console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`.");return false}))}function kt(t){const e=[];if(t.include){[].concat(t.include).forEach((t=>{const i=yt().find((e=>e.moduleId===t));if(i){e.push(...kt(i),...i.styles)}else{console.warn(`Included moduleId ${t} not found in style registry`)}}),t.styles)}return e}function At(t,e){const i=document.createElement("style");i.innerHTML=t.map((t=>t.cssText)).join("\n");e.content.appendChild(i)}function Dt(t){const e=`${t}-default-theme`;const i=yt().filter((i=>i.moduleId!==e&&wt(i.themeFor,t))).map((t=>({...t,styles:[...kt(t),...t.styles],includePriority:xt(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));if(i.length>0){return i}return yt().filter((t=>t.moduleId===e))}function Ct(t){return Tt(customElements.get(t))}function Tt(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}const St=t=>class e extends(bt(t)){static finalize(){super.finalize();if(this.elementStyles){return}const t=this.prototype._template;if(!t||Tt(this)){return}At(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);const e=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...Dt(this.is)];const i=this.__themes.flatMap((t=>t.styles));return i.filter(((t,e)=>e===i.lastIndexOf(t)))}}
37
37
  /**
38
38
  * @license
39
39
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
40
40
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
41
- */;const St=p`
41
+ */;const Mt=p`
42
42
  :host {
43
43
  /* Base (background) */
44
44
  --lumo-base-color: #fff;
@@ -110,7 +110,7 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const r=["ro","en
110
110
  --lumo-success-text-color: hsl(145, 85%, 25%);
111
111
  --lumo-success-contrast-color: #fff;
112
112
  }
113
- `;const Mt=document.createElement("template");Mt.innerHTML=`<style>${St.toString().replace(":host","html")}</style>`;document.head.appendChild(Mt.content);const zt=p`
113
+ `;const zt=document.createElement("template");zt.innerHTML=`<style>${Mt.toString().replace(":host","html")}</style>`;document.head.appendChild(zt.content);const Pt=p`
114
114
  [theme~='dark'] {
115
115
  /* Base (background) */
116
116
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -219,17 +219,17 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const r=["ro","en
219
219
  background-color: var(--lumo-contrast-10pct);
220
220
  border-radius: var(--lumo-border-radius-m);
221
221
  }
222
- `;gt("",zt,{moduleId:"lumo-color"});const Pt=p`
222
+ `;vt("",Pt,{moduleId:"lumo-color"});const Et=p`
223
223
  :host {
224
224
  color: var(--lumo-body-text-color) !important;
225
225
  background-color: var(--lumo-base-color) !important;
226
226
  }
227
- `;gt("",[zt,Pt],{moduleId:"lumo-color-legacy"});
227
+ `;vt("",[Pt,Et],{moduleId:"lumo-color-legacy"});
228
228
  /**
229
229
  * @license
230
230
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
231
231
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
232
- */const Et=p`
232
+ */const Ft=p`
233
233
  :host {
234
234
  --lumo-size-xs: 1.625rem;
235
235
  --lumo-size-s: 1.875rem;
@@ -244,12 +244,12 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const r=["ro","en
244
244
  /* For backwards compatibility */
245
245
  --lumo-icon-size: var(--lumo-icon-size-m);
246
246
  }
247
- `;const Ft=document.createElement("template");Ft.innerHTML=`<style>${Et.toString().replace(":host","html")}</style>`;document.head.appendChild(Ft.content);
247
+ `;const Ot=document.createElement("template");Ot.innerHTML=`<style>${Ft.toString().replace(":host","html")}</style>`;document.head.appendChild(Ot.content);
248
248
  /**
249
249
  * @license
250
250
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
251
251
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
252
- */const Ot=p`
252
+ */const Bt=p`
253
253
  :host {
254
254
  /* Border radius */
255
255
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -272,12 +272,12 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const r=["ro","en
272
272
  --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
273
273
  --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
274
274
  }
275
- `;const Bt=document.createElement("template");Bt.innerHTML=`<style>${Ot.toString().replace(":host","html")}$</style>`;document.head.appendChild(Bt.content);
275
+ `;const It=document.createElement("template");It.innerHTML=`<style>${Bt.toString().replace(":host","html")}$</style>`;document.head.appendChild(It.content);
276
276
  /**
277
277
  * @license
278
278
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
279
279
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
280
- */const It=p`
280
+ */const Nt=p`
281
281
  :host {
282
282
  /* prettier-ignore */
283
283
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -297,7 +297,7 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const r=["ro","en
297
297
  --lumo-line-height-s: 1.375;
298
298
  --lumo-line-height-m: 1.625;
299
299
  }
300
- `;const Nt=p`
300
+ `;const Rt=p`
301
301
  html,
302
302
  :host {
303
303
  font-family: var(--lumo-font-family);
@@ -400,7 +400,7 @@ import{r as t,c as e,h as i}from"./p-e765c7d9.js";const s="en";const r=["ro","en
400
400
  border-left: none;
401
401
  border-right: 2px solid var(--lumo-contrast-30pct);
402
402
  }
403
- `;gt("",Nt,{moduleId:"lumo-typography"});const Rt=document.createElement("template");Rt.innerHTML=`<style>${It.toString().replace(":host","html")}</style>`;document.head.appendChild(Rt.content);gt("vaadin-input-container",p`
403
+ `;vt("",Rt,{moduleId:"lumo-typography"});const jt=document.createElement("template");jt.innerHTML=`<style>${Nt.toString().replace(":host","html")}</style>`;document.head.appendChild(jt.content);vt("vaadin-input-container",p`
404
404
  :host {
405
405
  border-radius: var(--lumo-border-radius-m);
406
406
  background-color: var(--lumo-contrast-10pct);
@@ -572,7 +572,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
572
572
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
573
573
  Code distributed by Google as part of the polymer project is also
574
574
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
575
- */let jt=/(url\()([^)]*)(\))/g;let Lt=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;let Ht;let Wt;function Ut(t,e){if(t&&Lt.test(t)){return t}if(t==="//"){return t}if(Ht===undefined){Ht=false;try{const t=new URL("b","http://a");t.pathname="c%20d";Ht=t.href==="http://a/c%20d"}catch(t){}}if(!e){e=document.baseURI||window.location.href}if(Ht){try{return new URL(t,e).href}catch(e){return t}}if(!Wt){Wt=document.implementation.createHTMLDocument("temp");Wt.base=Wt.createElement("base");Wt.head.appendChild(Wt.base);Wt.anchor=Wt.createElement("a");Wt.body.appendChild(Wt.anchor)}Wt.base.href=e;Wt.anchor.href=t;return Wt.anchor.href||t}function $t(t,e){return t.replace(jt,(function(t,i,s,r){return i+"'"+Ut(s.replace(/["']/g,""),e)+"'"+r}))}function Gt(t){return t.substring(0,t.lastIndexOf("/")+1)}
575
+ */let Lt=/(url\()([^)]*)(\))/g;let Ht=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;let Wt;let Ut;function $t(t,e){if(t&&Ht.test(t)){return t}if(t==="//"){return t}if(Wt===undefined){Wt=false;try{const t=new URL("b","http://a");t.pathname="c%20d";Wt=t.href==="http://a/c%20d"}catch(t){}}if(!e){e=document.baseURI||window.location.href}if(Wt){try{return new URL(t,e).href}catch(e){return t}}if(!Ut){Ut=document.implementation.createHTMLDocument("temp");Ut.base=Ut.createElement("base");Ut.head.appendChild(Ut.base);Ut.anchor=Ut.createElement("a");Ut.body.appendChild(Ut.anchor)}Ut.base.href=e;Ut.anchor.href=t;return Ut.anchor.href||t}function Gt(t,e){return t.replace(Lt,(function(t,i,s,r){return i+"'"+$t(s.replace(/["']/g,""),e)+"'"+r}))}function Yt(t){return t.substring(0,t.lastIndexOf("/")+1)}
576
576
  /**
577
577
  @license
578
578
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -581,7 +581,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
581
581
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
582
582
  Code distributed by Google as part of the polymer project is also
583
583
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
584
- */const Yt=!window.ShadyDOM||!window.ShadyDOM.inUse;const qt=Yt&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");e.attachShadow({mode:"open"});e.shadowRoot.adoptedStyleSheets=[t];return e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return false}})();let Vt=window.Polymer&&window.Polymer.rootPath||Gt(document.baseURI||window.location.href);let Jt=window.Polymer&&window.Polymer.sanitizeDOMValue||undefined;let Kt=window.Polymer&&window.Polymer.strictTemplatePolicy||false;let Zt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||false;let Xt=window.Polymer&&window.Polymer.legacyOptimizations||false;let Qt=window.Polymer&&window.Polymer.legacyWarnings||false;let te=window.Polymer&&window.Polymer.syncInitialRender||false;let ee=window.Polymer&&window.Polymer.legacyUndefined||false;let ie=window.Polymer&&window.Polymer.orderedComputed||false;let se=window.Polymer&&window.Polymer.removeNestedTemplates||false;let re=window.Polymer&&window.Polymer.fastDomIf||false;let oe=window.Polymer&&window.Polymer.suppressTemplateNotifications||false;let ne=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||false;
584
+ */const qt=!window.ShadyDOM||!window.ShadyDOM.inUse;const Vt=qt&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");e.attachShadow({mode:"open"});e.shadowRoot.adoptedStyleSheets=[t];return e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return false}})();let Jt=window.Polymer&&window.Polymer.rootPath||Yt(document.baseURI||window.location.href);let Kt=window.Polymer&&window.Polymer.sanitizeDOMValue||undefined;let Zt=window.Polymer&&window.Polymer.strictTemplatePolicy||false;let Xt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||false;let Qt=window.Polymer&&window.Polymer.legacyOptimizations||false;let te=window.Polymer&&window.Polymer.legacyWarnings||false;let ee=window.Polymer&&window.Polymer.syncInitialRender||false;let ie=window.Polymer&&window.Polymer.legacyUndefined||false;let se=window.Polymer&&window.Polymer.orderedComputed||false;let re=window.Polymer&&window.Polymer.removeNestedTemplates||false;let oe=window.Polymer&&window.Polymer.fastDomIf||false;let ne=window.Polymer&&window.Polymer.suppressTemplateNotifications||false;let ae=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||false;
585
585
  /**
586
586
  @license
587
587
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -590,7 +590,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
590
590
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
591
591
  Code distributed by Google as part of the polymer project is also
592
592
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
593
- */let ae=0;const le=function(t){let e=t.__mixinApplications;if(!e){e=new WeakMap;t.__mixinApplications=e}let i=ae++;function s(s){let r=s.__mixinSet;if(r&&r[i]){return s}let o=e;let n=o.get(s);if(!n){n=t(s);o.set(s,n);let e=Object.create(n.__mixinSet||r||null);e[i]=true;n.__mixinSet=e}return n}return s};
593
+ */let le=0;const he=function(t){let e=t.__mixinApplications;if(!e){e=new WeakMap;t.__mixinApplications=e}let i=le++;function s(s){let r=s.__mixinSet;if(r&&r[i]){return s}let o=e;let n=o.get(s);if(!n){n=t(s);o.set(s,n);let e=Object.create(n.__mixinSet||r||null);e[i]=true;n.__mixinSet=e}return n}return s};
594
594
  /**
595
595
  @license
596
596
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -599,7 +599,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
599
599
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
600
600
  Code distributed by Google as part of the polymer project is also
601
601
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
602
- */let he={};let ce={};function ue(t,e){he[t]=ce[t.toLowerCase()]=e}function de(t){return he[t]||ce[t.toLowerCase()]}function fe(t){if(t.querySelector("style")){console.warn("dom-module %s has style outside template",t.id)}}class pe extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=de(t);if(i&&e){return i.querySelector(e)}return i}return null}attributeChangedCallback(t,e,i,s){if(e!==i){this.register()}}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;const e=Ut(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Gt(e)}return this.__assetpath}register(t){t=t||this.id;if(t){if(Kt&&de(t)!==undefined){ue(t,null);throw new Error(`strictTemplatePolicy: dom-module ${t} re-registered`)}this.id=t;ue(t,this);fe(this)}}}pe.prototype["modules"]=he;customElements.define("dom-module",pe);
602
+ */let ce={};let ue={};function de(t,e){ce[t]=ue[t.toLowerCase()]=e}function fe(t){return ce[t]||ue[t.toLowerCase()]}function pe(t){if(t.querySelector("style")){console.warn("dom-module %s has style outside template",t.id)}}class me extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=fe(t);if(i&&e){return i.querySelector(e)}return i}return null}attributeChangedCallback(t,e,i,s){if(e!==i){this.register()}}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument;const e=$t(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Yt(e)}return this.__assetpath}register(t){t=t||this.id;if(t){if(Zt&&fe(t)!==undefined){de(t,null);throw new Error(`strictTemplatePolicy: dom-module ${t} re-registered`)}this.id=t;de(t,this);pe(this)}}}me.prototype["modules"]=ce;customElements.define("dom-module",me);
603
603
  /**
604
604
  @license
605
605
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -608,7 +608,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
608
608
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
609
609
  Code distributed by Google as part of the polymer project is also
610
610
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
611
- */const me="link[rel=import][type~=css]";const be="include";const ge="shady-unscoped";function ve(t){return pe.import(t)}function ye(t){let e=t.body?t.body:t;const i=$t(e.textContent,t.baseURI);const s=document.createElement("style");s.textContent=i;return s}function we(t){const e=t.trim().split(/\s+/);const i=[];for(let t=0;t<e.length;t++){i.push(...xe(e[t]))}return i}function xe(t){const e=ve(t);if(!e){console.warn("Could not find style data in module named",t);return[]}if(e._styles===undefined){const t=[];t.push(...Ae(e));const i=e.querySelector("template");if(i){t.push(..._e(i,e.assetpath))}e._styles=t}return e._styles}function _e(t,e){if(!t._styles){const i=[];const s=t.content.querySelectorAll("style");for(let t=0;t<s.length;t++){let r=s[t];let o=r.getAttribute(be);if(o){i.push(...we(o).filter((function(t,e,i){return i.indexOf(t)===e})))}if(e){r.textContent=$t(r.textContent,e)}i.push(r)}t._styles=i}return t._styles}function ke(t){let e=ve(t);return e?Ae(e):[]}function Ae(t){const e=[];const i=t.querySelectorAll(me);for(let t=0;t<i.length;t++){let s=i[t];if(s.import){const t=s.import;const i=s.hasAttribute(ge);if(i&&!t._unscopedStyle){const e=ye(t);e.setAttribute(ge,"");t._unscopedStyle=e}else if(!t._style){t._style=ye(t)}e.push(i?t._unscopedStyle:t._style)}}return e}
611
+ */const be="link[rel=import][type~=css]";const ge="include";const ve="shady-unscoped";function ye(t){return me.import(t)}function we(t){let e=t.body?t.body:t;const i=Gt(e.textContent,t.baseURI);const s=document.createElement("style");s.textContent=i;return s}function xe(t){const e=t.trim().split(/\s+/);const i=[];for(let t=0;t<e.length;t++){i.push(..._e(e[t]))}return i}function _e(t){const e=ye(t);if(!e){console.warn("Could not find style data in module named",t);return[]}if(e._styles===undefined){const t=[];t.push(...De(e));const i=e.querySelector("template");if(i){t.push(...ke(i,e.assetpath))}e._styles=t}return e._styles}function ke(t,e){if(!t._styles){const i=[];const s=t.content.querySelectorAll("style");for(let t=0;t<s.length;t++){let r=s[t];let o=r.getAttribute(ge);if(o){i.push(...xe(o).filter((function(t,e,i){return i.indexOf(t)===e})))}if(e){r.textContent=Gt(r.textContent,e)}i.push(r)}t._styles=i}return t._styles}function Ae(t){let e=ye(t);return e?De(e):[]}function De(t){const e=[];const i=t.querySelectorAll(be);for(let t=0;t<i.length;t++){let s=i[t];if(s.import){const t=s.import;const i=s.hasAttribute(ve);if(i&&!t._unscopedStyle){const e=we(t);e.setAttribute(ve,"");t._unscopedStyle=e}else if(!t._style){t._style=we(t)}e.push(i?t._unscopedStyle:t._style)}}return e}
612
612
  /**
613
613
  @license
614
614
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -617,7 +617,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
617
617
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
618
618
  Code distributed by Google as part of the polymer project is also
619
619
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
620
- */const De=window["ShadyDOM"]&&window["ShadyDOM"]["noPatch"]&&window["ShadyDOM"]["wrap"]?window["ShadyDOM"]["wrap"]:window["ShadyDOM"]?t=>ShadyDOM["patch"](t):t=>t;
620
+ */const Ce=window["ShadyDOM"]&&window["ShadyDOM"]["noPatch"]&&window["ShadyDOM"]["wrap"]?window["ShadyDOM"]["wrap"]:window["ShadyDOM"]?t=>ShadyDOM["patch"](t):t=>t;
621
621
  /**
622
622
  @license
623
623
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -626,7 +626,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
626
626
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
627
627
  Code distributed by Google as part of the polymer project is also
628
628
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
629
- */function Ce(t){return t.indexOf(".")>=0}function Te(t){let e=t.indexOf(".");if(e===-1){return t}return t.slice(0,e)}function Se(t,e){return t.indexOf(e+".")===0}function Me(t,e){return e.indexOf(t+".")===0}function ze(t,e,i){return e+i.slice(t.length)}function Pe(t,e){return t===e||Se(t,e)||Me(t,e)}function Ee(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(".")}else{return t}}function Fe(t){if(Array.isArray(t)){return Ee(t).split(".")}return t.toString().split(".")}function Oe(t,e,i){let s=t;let r=Fe(e);for(let t=0;t<r.length;t++){if(!s){return}let e=r[t];s=s[e]}if(i){i.path=r.join(".")}return s}function Be(t,e,i){let s=t;let r=Fe(e);let o=r[r.length-1];if(r.length>1){for(let t=0;t<r.length-1;t++){let e=r[t];s=s[e];if(!s){return}}s[o]=i}else{s[e]=i}return r.join(".")}
629
+ */function Te(t){return t.indexOf(".")>=0}function Se(t){let e=t.indexOf(".");if(e===-1){return t}return t.slice(0,e)}function Me(t,e){return t.indexOf(e+".")===0}function ze(t,e){return e.indexOf(t+".")===0}function Pe(t,e,i){return e+i.slice(t.length)}function Ee(t,e){return t===e||Me(t,e)||ze(t,e)}function Fe(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(".")}else{return t}}function Oe(t){if(Array.isArray(t)){return Fe(t).split(".")}return t.toString().split(".")}function Be(t,e,i){let s=t;let r=Oe(e);for(let t=0;t<r.length;t++){if(!s){return}let e=r[t];s=s[e]}if(i){i.path=r.join(".")}return s}function Ie(t,e,i){let s=t;let r=Oe(e);let o=r[r.length-1];if(r.length>1){for(let t=0;t<r.length-1;t++){let e=r[t];s=s[e];if(!s){return}}s[o]=i}else{s[e]=i}return r.join(".")}
630
630
  /**
631
631
  @license
632
632
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -635,7 +635,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
635
635
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
636
636
  Code distributed by Google as part of the polymer project is also
637
637
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
638
- */const Ie={};const Ne=/-[a-z]/g;const Re=/([A-Z])/g;function je(t){return Ie[t]||(Ie[t]=t.indexOf("-")<0?t:t.replace(Ne,(t=>t[1].toUpperCase())))}function Le(t){return Ie[t]||(Ie[t]=t.replace(Re,"-$1").toLowerCase())}
638
+ */const Ne={};const Re=/-[a-z]/g;const je=/([A-Z])/g;function Le(t){return Ne[t]||(Ne[t]=t.indexOf("-")<0?t:t.replace(Re,(t=>t[1].toUpperCase())))}function He(t){return Ne[t]||(Ne[t]=t.replace(je,"-$1").toLowerCase())}
639
639
  /**
640
640
  @license
641
641
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -644,7 +644,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
644
644
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
645
645
  Code distributed by Google as part of the polymer project is also
646
646
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
647
- */let He=0;let We=0;let Ue=[];let $e=0;let Ge=false;let Ye=document.createTextNode("");new window.MutationObserver(qe).observe(Ye,{characterData:true});function qe(){Ge=false;const t=Ue.length;for(let e=0;e<t;e++){let t=Ue[e];if(t){try{t()}catch(t){setTimeout((()=>{throw t}))}}}Ue.splice(0,t);We+=t}const Ve={after(t){return{run(e){return window.setTimeout(e,t)},cancel(t){window.clearTimeout(t)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}};const Je={run(t){if(!Ge){Ge=true;Ye.textContent=$e++}Ue.push(t);return He++},cancel(t){const e=t-We;if(e>=0){if(!Ue[e]){throw new Error("invalid async handle: "+t)}Ue[e]=null}}};
647
+ */let We=0;let Ue=0;let $e=[];let Ge=0;let Ye=false;let qe=document.createTextNode("");new window.MutationObserver(Ve).observe(qe,{characterData:true});function Ve(){Ye=false;const t=$e.length;for(let e=0;e<t;e++){let t=$e[e];if(t){try{t()}catch(t){setTimeout((()=>{throw t}))}}}$e.splice(0,t);Ue+=t}const Je={after(t){return{run(e){return window.setTimeout(e,t)},cancel(t){window.clearTimeout(t)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}};const Ke={run(t){if(!Ye){Ye=true;qe.textContent=Ge++}$e.push(t);return We++},cancel(t){const e=t-Ue;if(e>=0){if(!$e[e]){throw new Error("invalid async handle: "+t)}$e[e]=null}}};
648
648
  /**
649
649
  @license
650
650
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -653,7 +653,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
653
653
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
654
654
  Code distributed by Google as part of the polymer project is also
655
655
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
656
- */const Ke=Je;const Ze=le((t=>{class e extends t{static createProperties(t){const e=this.prototype;for(let i in t){if(!(i in e)){e._createPropertyAccessor(i)}}}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t);if(!this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))){this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)}if(!this.__dataHasAccessor[t]){this.__dataHasAccessor[t]=true;this._definePropertyAccessor(t,e)}}_addPropertyToAttributeMap(t){if(!this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))){this.__dataAttributes=Object.assign({},this.__dataAttributes)}let e=this.__dataAttributes[t];if(!e){e=this.constructor.attributeNameForProperty(t);this.__dataAttributes[e]=t}return e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){if(this._setPendingProperty(t,e,true)){this._invalidateProperties()}}})}constructor(){super();this.__dataEnabled=false;this.__dataReady=false;this.__dataInvalid=false;this.__data={};this.__dataPending=null;this.__dataOld=null;this.__dataInstanceProps=null;this.__dataCounter=0;this.__serializing=false;this._initializeProperties()}ready(){this.__dataReady=true;this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor){if(this.hasOwnProperty(t)){this.__dataInstanceProps=this.__dataInstanceProps||{};this.__dataInstanceProps[t]=this[t];delete this[t]}}}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){if(this._setPendingProperty(t,e)){this._invalidateProperties()}}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,i){let s=this.__data[t];let r=this._shouldPropertyChange(t,e,s);if(r){if(!this.__dataPending){this.__dataPending={};this.__dataOld={}}if(this.__dataOld&&!(t in this.__dataOld)){this.__dataOld[t]=s}this.__data[t]=e;this.__dataPending[t]=e}return r}_isPropertyPending(t){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){if(!this.__dataInvalid&&this.__dataReady){this.__dataInvalid=true;Ke.run((()=>{if(this.__dataInvalid){this.__dataInvalid=false;this._flushProperties()}}))}}_enableProperties(){if(!this.__dataEnabled){this.__dataEnabled=true;if(this.__dataInstanceProps){this._initializeInstanceProperties(this.__dataInstanceProps);this.__dataInstanceProps=null}this.ready()}}_flushProperties(){this.__dataCounter++;const t=this.__data;const e=this.__dataPending;const i=this.__dataOld;if(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){if(e!==i){this._attributeToProperty(t,i)}if(super.attributeChangedCallback){super.attributeChangedCallback(t,e,i,s)}}_attributeToProperty(t,e,i){if(!this.__serializing){const s=this.__dataAttributes;const r=s&&s[t]||t;this[r]=this._deserializeValue(e,i||this.constructor.typeForProperty(r))}}_propertyToAttribute(t,e,i){this.__serializing=true;i=arguments.length<3?this[t]:i;this._valueToNodeAttribute(this,i,e||this.constructor.attributeNameForProperty(t));this.__serializing=false}_valueToNodeAttribute(t,e,i){const s=this._serializeValue(e);if(i==="class"||i==="name"||i==="slot"){t=De(t)}if(s===undefined){t.removeAttribute(i)}else{t.setAttribute(i,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}}_serializeValue(t){switch(typeof t){case"boolean":return t?"":undefined;default:return t!=null?t.toString():undefined}}_deserializeValue(t,e){switch(e){case Boolean:return t!==null;case Number:return Number(t);default:return t}}}return e}));
656
+ */const Ze=Ke;const Xe=he((t=>{class e extends t{static createProperties(t){const e=this.prototype;for(let i in t){if(!(i in e)){e._createPropertyAccessor(i)}}}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t);if(!this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))){this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)}if(!this.__dataHasAccessor[t]){this.__dataHasAccessor[t]=true;this._definePropertyAccessor(t,e)}}_addPropertyToAttributeMap(t){if(!this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))){this.__dataAttributes=Object.assign({},this.__dataAttributes)}let e=this.__dataAttributes[t];if(!e){e=this.constructor.attributeNameForProperty(t);this.__dataAttributes[e]=t}return e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){if(this._setPendingProperty(t,e,true)){this._invalidateProperties()}}})}constructor(){super();this.__dataEnabled=false;this.__dataReady=false;this.__dataInvalid=false;this.__data={};this.__dataPending=null;this.__dataOld=null;this.__dataInstanceProps=null;this.__dataCounter=0;this.__serializing=false;this._initializeProperties()}ready(){this.__dataReady=true;this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor){if(this.hasOwnProperty(t)){this.__dataInstanceProps=this.__dataInstanceProps||{};this.__dataInstanceProps[t]=this[t];delete this[t]}}}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){if(this._setPendingProperty(t,e)){this._invalidateProperties()}}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,i){let s=this.__data[t];let r=this._shouldPropertyChange(t,e,s);if(r){if(!this.__dataPending){this.__dataPending={};this.__dataOld={}}if(this.__dataOld&&!(t in this.__dataOld)){this.__dataOld[t]=s}this.__data[t]=e;this.__dataPending[t]=e}return r}_isPropertyPending(t){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){if(!this.__dataInvalid&&this.__dataReady){this.__dataInvalid=true;Ze.run((()=>{if(this.__dataInvalid){this.__dataInvalid=false;this._flushProperties()}}))}}_enableProperties(){if(!this.__dataEnabled){this.__dataEnabled=true;if(this.__dataInstanceProps){this._initializeInstanceProperties(this.__dataInstanceProps);this.__dataInstanceProps=null}this.ready()}}_flushProperties(){this.__dataCounter++;const t=this.__data;const e=this.__dataPending;const i=this.__dataOld;if(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){if(e!==i){this._attributeToProperty(t,i)}if(super.attributeChangedCallback){super.attributeChangedCallback(t,e,i,s)}}_attributeToProperty(t,e,i){if(!this.__serializing){const s=this.__dataAttributes;const r=s&&s[t]||t;this[r]=this._deserializeValue(e,i||this.constructor.typeForProperty(r))}}_propertyToAttribute(t,e,i){this.__serializing=true;i=arguments.length<3?this[t]:i;this._valueToNodeAttribute(this,i,e||this.constructor.attributeNameForProperty(t));this.__serializing=false}_valueToNodeAttribute(t,e,i){const s=this._serializeValue(e);if(i==="class"||i==="name"||i==="slot"){t=Ce(t)}if(s===undefined){t.removeAttribute(i)}else{t.setAttribute(i,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}}_serializeValue(t){switch(typeof t){case"boolean":return t?"":undefined;default:return t!=null?t.toString():undefined}}_deserializeValue(t,e){switch(e){case Boolean:return t!==null;case Number:return Number(t);default:return t}}}return e}));
657
657
  /**
658
658
  @license
659
659
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -662,7 +662,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
662
662
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
663
663
  Code distributed by Google as part of the polymer project is also
664
664
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
665
- */const Xe={};let Qe=HTMLElement.prototype;while(Qe){let t=Object.getOwnPropertyNames(Qe);for(let e=0;e<t.length;e++){Xe[t[e]]=true}Qe=Object.getPrototypeOf(Qe)}const ti=(()=>{if(!window.trustedTypes){return()=>false}return t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t)})();function ei(t,e){if(!Xe[e]){let i=t[e];if(i!==undefined){if(t.__data){t._setPendingProperty(e,i)}else{if(!t.__dataProto){t.__dataProto={}}else if(!t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))){t.__dataProto=Object.create(t.__dataProto)}t.__dataProto[e]=i}}}}const ii=le((t=>{const e=Ze(t);class i extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++){this.prototype._createPropertyAccessor(je(t[e]))}}static attributeNameForProperty(t){return Le(t)}_initializeProperties(){if(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){const i=this;if(!i.hasAttribute(t)){this._valueToNodeAttribute(i,e,t)}}_serializeValue(t){switch(typeof t){case"object":if(t instanceof Date){return t.toString()}else if(t){if(ti(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);break}return i}_definePropertyAccessor(t,e){ei(this,t);super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}return i}));
665
+ */const Qe={};let ti=HTMLElement.prototype;while(ti){let t=Object.getOwnPropertyNames(ti);for(let e=0;e<t.length;e++){Qe[t[e]]=true}ti=Object.getPrototypeOf(ti)}const ei=(()=>{if(!window.trustedTypes){return()=>false}return t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t)})();function ii(t,e){if(!Qe[e]){let i=t[e];if(i!==undefined){if(t.__data){t._setPendingProperty(e,i)}else{if(!t.__dataProto){t.__dataProto={}}else if(!t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))){t.__dataProto=Object.create(t.__dataProto)}t.__dataProto[e]=i}}}}const si=he((t=>{const e=Xe(t);class i extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++){this.prototype._createPropertyAccessor(Le(t[e]))}}static attributeNameForProperty(t){return He(t)}_initializeProperties(){if(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){const i=this;if(!i.hasAttribute(t)){this._valueToNodeAttribute(i,e,t)}}_serializeValue(t){switch(typeof t){case"object":if(t instanceof Date){return t.toString()}else if(t){if(ei(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);break}return i}_definePropertyAccessor(t,e){ii(this,t);super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}return i}));
666
666
  /**
667
667
  @license
668
668
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -671,7 +671,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
671
671
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
672
672
  Code distributed by Google as part of the polymer project is also
673
673
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
674
- */const si={"dom-if":true,"dom-repeat":true};let ri=false;let oi=false;function ni(){if(!ri){ri=true;const t=document.createElement("textarea");t.placeholder="a";oi=t.placeholder===t.textContent}return oi}function ai(t){if(ni()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent){t.textContent=null}}const li=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,i,s)=>{const r=i.getAttribute(s);if(t&&s.startsWith("on-")){e.setAttribute(s,t.createScript(r,s));return}e.setAttribute(s,r)}})();function hi(t){let e=t.getAttribute("is");if(e&&si[e]){let i=t;i.removeAttribute("is");t=i.ownerDocument.createElement(e);i.parentNode.replaceChild(t,i);t.appendChild(i);while(i.attributes.length){const{name:e}=i.attributes[0];li(t,i,e);i.removeAttribute(e)}}return t}function ci(t,e){let i=e.parentInfo&&ci(t,e.parentInfo);if(i){for(let t=i.firstChild,s=0;t;t=t.nextSibling){if(e.parentIndex===s++){return t}}}else{return t}}function ui(t,e,i,s){if(s.id){e[s.id]=i}}function di(t,e,i){if(i.events&&i.events.length){for(let s=0,r=i.events,o;s<r.length&&(o=r[s]);s++){t._addMethodEventListenerToNode(e,o.name,o.value,t)}}}function fi(t,e,i,s){if(i.templateInfo){e._templateInfo=i.templateInfo;e._parentTemplateInfo=s}}function pi(t,e,i){t=t._methodHost||t;let s=function(e){if(t[i]){t[i](e,e.detail)}else{console.warn("listener method `"+i+"` not defined")}};return s}const mi=le((t=>{class e 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=false;let r=t;if(r.localName=="template"&&!r.hasAttribute("preserve-content")){s=this._parseTemplateNestedTemplate(r,e,i)||s}else if(r.localName==="slot"){e.hasInsertionPoint=true}ai(r);if(r.firstChild){this._parseTemplateChildNodes(r,e,i)}if(r.hasAttributes&&r.hasAttributes()){s=this._parseTemplateNodeAttributes(r,e,i)||s}return s||i.noted}static _parseTemplateChildNodes(t,e,i){if(t.localName==="script"||t.localName==="style"){return}for(let s=t.firstChild,r=0,o;s;s=o){if(s.localName=="template"){s=hi(s)}o=s.nextSibling;if(s.nodeType===Node.TEXT_NODE){let i=o;while(i&&i.nodeType===Node.TEXT_NODE){s.textContent+=i.textContent;o=i.nextSibling;t.removeChild(i);i=o}if(e.stripWhiteSpace&&!s.textContent.trim()){t.removeChild(s);continue}}let n={parentIndex:r,parentInfo:i};if(this._parseTemplateNode(s,e,n)){n.infoIndex=e.nodeInfoList.push(n)-1}if(s.parentNode){r++}}}static _parseTemplateNestedTemplate(t,e,i){let s=t;let r=this._parseTemplate(s,e);let o=r.content=s.content.ownerDocument.createDocumentFragment();o.appendChild(s.content);i.templateInfo=r;return true}static _parseTemplateNodeAttributes(t,e,i){let s=false;let r=Array.from(t.attributes);for(let o=r.length-1,n;n=r[o];o--){s=this._parseTemplateNodeAttribute(t,e,i,n.name,n.value)||s}return s}static _parseTemplateNodeAttribute(t,e,i,s,r){if(s.slice(0,3)==="on-"){t.removeAttribute(s);i.events=i.events||[];i.events.push({name:s.slice(3),value:r});return true}else if(s==="id"){i.id=r;return true}return false}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){if(t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate){HTMLTemplateElement.decorate(t)}e=e||this.constructor._parseTemplate(t);let i=e.nodeInfoList;let s=e.content||t.content;let r=document.importNode(s,true);r.__noInsertionPoint=!e.hasInsertionPoint;let o=r.nodeList=new Array(i.length);r.$={};for(let t=0,s=i.length,n;t<s&&(n=i[t]);t++){let i=o[t]=ci(r,n);ui(this,r.$,i,n);fi(this,i,n,e);di(this,i,n)}r=r;return r}_addMethodEventListenerToNode(t,e,i,s){s=s||t;let r=pi(s,e,i);this._addEventListenerToNode(t,e,r);return r}_addEventListenerToNode(t,e,i){t.addEventListener(e,i)}_removeEventListenerFromNode(t,e,i){t.removeEventListener(e,i)}}return e}));
674
+ */const ri={"dom-if":true,"dom-repeat":true};let oi=false;let ni=false;function ai(){if(!oi){oi=true;const t=document.createElement("textarea");t.placeholder="a";ni=t.placeholder===t.textContent}return ni}function li(t){if(ai()&&t.localName==="textarea"&&t.placeholder&&t.placeholder===t.textContent){t.textContent=null}}const hi=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,i,s)=>{const r=i.getAttribute(s);if(t&&s.startsWith("on-")){e.setAttribute(s,t.createScript(r,s));return}e.setAttribute(s,r)}})();function ci(t){let e=t.getAttribute("is");if(e&&ri[e]){let i=t;i.removeAttribute("is");t=i.ownerDocument.createElement(e);i.parentNode.replaceChild(t,i);t.appendChild(i);while(i.attributes.length){const{name:e}=i.attributes[0];hi(t,i,e);i.removeAttribute(e)}}return t}function ui(t,e){let i=e.parentInfo&&ui(t,e.parentInfo);if(i){for(let t=i.firstChild,s=0;t;t=t.nextSibling){if(e.parentIndex===s++){return t}}}else{return t}}function di(t,e,i,s){if(s.id){e[s.id]=i}}function fi(t,e,i){if(i.events&&i.events.length){for(let s=0,r=i.events,o;s<r.length&&(o=r[s]);s++){t._addMethodEventListenerToNode(e,o.name,o.value,t)}}}function pi(t,e,i,s){if(i.templateInfo){e._templateInfo=i.templateInfo;e._parentTemplateInfo=s}}function mi(t,e,i){t=t._methodHost||t;let s=function(e){if(t[i]){t[i](e,e.detail)}else{console.warn("listener method `"+i+"` not defined")}};return s}const bi=he((t=>{class e 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=false;let r=t;if(r.localName=="template"&&!r.hasAttribute("preserve-content")){s=this._parseTemplateNestedTemplate(r,e,i)||s}else if(r.localName==="slot"){e.hasInsertionPoint=true}li(r);if(r.firstChild){this._parseTemplateChildNodes(r,e,i)}if(r.hasAttributes&&r.hasAttributes()){s=this._parseTemplateNodeAttributes(r,e,i)||s}return s||i.noted}static _parseTemplateChildNodes(t,e,i){if(t.localName==="script"||t.localName==="style"){return}for(let s=t.firstChild,r=0,o;s;s=o){if(s.localName=="template"){s=ci(s)}o=s.nextSibling;if(s.nodeType===Node.TEXT_NODE){let i=o;while(i&&i.nodeType===Node.TEXT_NODE){s.textContent+=i.textContent;o=i.nextSibling;t.removeChild(i);i=o}if(e.stripWhiteSpace&&!s.textContent.trim()){t.removeChild(s);continue}}let n={parentIndex:r,parentInfo:i};if(this._parseTemplateNode(s,e,n)){n.infoIndex=e.nodeInfoList.push(n)-1}if(s.parentNode){r++}}}static _parseTemplateNestedTemplate(t,e,i){let s=t;let r=this._parseTemplate(s,e);let o=r.content=s.content.ownerDocument.createDocumentFragment();o.appendChild(s.content);i.templateInfo=r;return true}static _parseTemplateNodeAttributes(t,e,i){let s=false;let r=Array.from(t.attributes);for(let o=r.length-1,n;n=r[o];o--){s=this._parseTemplateNodeAttribute(t,e,i,n.name,n.value)||s}return s}static _parseTemplateNodeAttribute(t,e,i,s,r){if(s.slice(0,3)==="on-"){t.removeAttribute(s);i.events=i.events||[];i.events.push({name:s.slice(3),value:r});return true}else if(s==="id"){i.id=r;return true}return false}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){if(t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate){HTMLTemplateElement.decorate(t)}e=e||this.constructor._parseTemplate(t);let i=e.nodeInfoList;let s=e.content||t.content;let r=document.importNode(s,true);r.__noInsertionPoint=!e.hasInsertionPoint;let o=r.nodeList=new Array(i.length);r.$={};for(let t=0,s=i.length,n;t<s&&(n=i[t]);t++){let i=o[t]=ui(r,n);di(this,r.$,i,n);pi(this,i,n,e);fi(this,i,n)}r=r;return r}_addMethodEventListenerToNode(t,e,i,s){s=s||t;let r=mi(s,e,i);this._addEventListenerToNode(t,e,r);return r}_addEventListenerToNode(t,e,i){t.addEventListener(e,i)}_removeEventListenerFromNode(t,e,i){t.removeEventListener(e,i)}}return e}));
675
675
  /**
676
676
  * @fileoverview
677
677
  * @suppress {checkPrototypalTypes}
@@ -682,7 +682,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
682
682
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
683
683
  * Google as part of the polymer project is also subject to an additional IP
684
684
  * rights grant found at http://polymer.github.io/PATENTS.txt
685
- */let bi=0;const gi=[];const vi={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"};const yi="__computeInfo";const wi=/[A-Z]/;function xi(t,e,i){let s=t[e];if(!s){s=t[e]={}}else if(!t.hasOwnProperty(e)){s=t[e]=Object.create(t[e]);if(i){for(let t in s){let e=s[t];let i=s[t]=Array(e.length);for(let t=0;t<e.length;t++){i[t]=e[t]}}}}return s}function _i(t,e,i,s,r,o){if(e){let n=false;const a=bi++;for(let l in i){let h=r?Te(l):l;let c=e[h];if(c){for(let e=0,h=c.length,u;e<h&&(u=c[e]);e++){if((!u.info||u.info.lastRun!==a)&&(!r||Ai(l,u.trigger))){if(u.info){u.info.lastRun=a}u.fn(t,l,i,s,u.info,r,o);n=true}}}}return n}return false}function ki(t,e,i,s,r,o,n,a){let l=false;let h=n?Te(s):s;let c=e[h];if(c){for(let e=0,h=c.length,u;e<h&&(u=c[e]);e++){if((!u.info||u.info.lastRun!==i)&&(!n||Ai(s,u.trigger))){if(u.info){u.info.lastRun=i}u.fn(t,s,r,o,u.info,n,a);l=true}}}return l}function Ai(t,e){if(e){let i=e.name;return i==t||!!(e.structured&&Se(i,t))||!!(e.wildcard&&Me(i,t))}else{return true}}function Di(t,e,i,s,r){let o=typeof r.method==="string"?t[r.method]:r.method;let n=r.property;if(o){o.call(t,t.__data[n],s[n])}else if(!r.dynamicFn){console.warn("observer method `"+r.method+"` not defined")}}function Ci(t,e,i,s,r){let o=t[vi.NOTIFY];let n;let a=bi++;for(let l in e){if(e[l]){if(o&&ki(t,o,a,l,i,s,r)){n=true}else if(r&&Ti(t,l,i)){n=true}}}let l;if(n&&(l=t.__dataHost)&&l._invalidateProperties){l._invalidateProperties()}}function Ti(t,e,i){let s=Te(e);if(s!==e){let r=Le(s)+"-changed";Si(t,r,i[e],e);return true}return false}function Si(t,e,i,s){let r={value:i,queueProperty:true};if(s){r.path=s}De(t).dispatchEvent(new CustomEvent(e,{detail:r}))}function Mi(t,e,i,s,r,o){let n=o?Te(e):e;let a=n!=e?e:null;let l=a?Oe(t,a):t.__data[e];if(a&&l===undefined){l=i[e]}Si(t,r.eventName,l,a)}function zi(t,e,i,s,r){let o;let n=t.detail;let a=n&&n.path;if(a){s=ze(i,s,a);o=n&&n.value}else{o=t.currentTarget[i]}o=r?!o:o;if(!e[vi.READ_ONLY]||!e[vi.READ_ONLY][s]){if(e._setPendingPropertyOrPath(s,o,true,Boolean(a))&&(!n||!n.queueProperty)){e._invalidateProperties()}}}function Pi(t,e,i,s,r){let o=t.__data[e];if(Jt){o=Jt(o,r.attrName,"attribute",t)}t._propertyToAttribute(e,r.attrName,o)}function Ei(t,e,i,s){let r=t[vi.COMPUTE];if(r){if(ie){bi++;const o=Bi(t);const n=[];for(let t in e){Oi(t,r,n,o,s)}let a;while(a=n.shift()){if(Ni(t,"",e,i,a)){Oi(a.methodInfo,r,n,o,s)}}Object.assign(i,t.__dataOld);Object.assign(e,t.__dataPending);t.__dataPending=null}else{let o=e;while(_i(t,r,o,i,s)){Object.assign(i,t.__dataOld);Object.assign(e,t.__dataPending);o=t.__dataPending;t.__dataPending=null}}}}const Fi=(t,e,i)=>{let s=0;let r=e.length-1;let o=-1;while(s<=r){const n=s+r>>1;const a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0){s=n+1}else if(a>0){r=n-1}else{o=n;break}}if(o<0){o=r+1}e.splice(o,0,t)};const Oi=(t,e,i,s,r)=>{const o=r?Te(t):t;const n=e[o];if(n){for(let e=0;e<n.length;e++){const o=n[e];if(o.info.lastRun!==bi&&(!r||Ai(t,o.trigger))){o.info.lastRun=bi;Fi(o.info,i,s)}}}};function Bi(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[vi.COMPUTE];let{counts:s,ready:r,total:o}=Ii(t);let n;while(n=r.shift()){e.set(n,e.size);const t=i[n];if(t){t.forEach((t=>{const e=t.info.methodInfo;--o;if(--s[e]===0){r.push(e)}}))}}if(o!==0){const e=t;console.warn(`Computed graph for ${e.localName} incomplete; circular?`)}t.constructor.__orderedComputedDeps=e}return e}function Ii(t){const e=t[yi];const i={};const s=t[vi.COMPUTE];const r=[];let o=0;for(let t in e){const s=e[t];o+=i[t]=s.args.filter((t=>!t.literal)).length+(s.dynamicFn?1:0)}for(let t in s){if(!e[t]){r.push(t)}}return{counts:i,ready:r,total:o}}function Ni(t,e,i,s,r){let o=Ji(t,e,i,s,r);if(o===gi){return false}let n=r.methodInfo;if(t.__dataHasAccessor&&t.__dataHasAccessor[n]){return t._setPendingProperty(n,o,true)}else{t[n]=o;return false}}function Ri(t,e,i){let s=t.__dataLinkedPaths;if(s){let r;for(let o in s){let n=s[o];if(Me(o,e)){r=ze(o,n,e);t._setPendingPropertyOrPath(r,i,true,true)}else if(Me(n,e)){r=ze(n,o,e);t._setPendingPropertyOrPath(r,i,true,true)}}}}function ji(t,e,i,s,r,o,n){i.bindings=i.bindings||[];let a={kind:s,target:r,parts:o,literal:n,isCompound:o.length!==1};i.bindings.push(a);if($i(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||Le(r)+"-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;Li(t,e,a,s,l)}}function Li(t,e,i,s,r){if(!s.literal){if(i.kind==="attribute"&&i.target[0]==="-"){console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character')}else{let o=s.dependencies;let n={index:r,binding:i,part:s,evaluator:t};for(let i=0;i<o.length;i++){let s=o[i];if(typeof s=="string"){s=ps(s);s.wildcard=true}t._addTemplatePropertyEffect(e,s.rootProperty,{fn:Hi,info:n,trigger:s})}}}}function Hi(t,e,i,s,r,o,n){let a=n[r.index];let l=r.binding;let h=r.part;if(o&&h.source&&e.length>h.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let s=i[e];e=ze(h.source,l.target,e);if(a._setPendingPropertyOrPath(e,s,false,true)){t._enqueueClient(a)}}else{let n=r.evaluator._evaluateBinding(t,h,e,i,s,o);if(n!==gi){Wi(t,a,l,h,n)}}}function Wi(t,e,i,s,r){r=Ui(e,r,i,s);if(Jt){r=Jt(r,i.target,i.kind,e)}if(i.kind=="attribute"){t._valueToNodeAttribute(e,r,i.target)}else{let s=i.target;if(e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]){if(!e[vi.READ_ONLY]||!e[vi.READ_ONLY][s]){if(e._setPendingProperty(s,r)){t._enqueueClient(e)}}}else{t._setUnmanagedPropertyToNode(e,s,r)}}}function Ui(t,e,i,s){if(i.isCompound){let r=t.__dataCompoundStorage[i.target];r[s.compoundIndex]=e;e=r.join("")}if(i.kind!=="attribute"){if(i.target==="textContent"||i.target==="value"&&(t.localName==="input"||t.localName==="textarea")){e=e==undefined?"":e}}return e}function $i(t){return Boolean(t.target)&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function Gi(t,e){let{nodeList:i,nodeInfoList:s}=e;if(s.length){for(let e=0;e<s.length;e++){let r=s[e];let o=i[e];let n=r.bindings;if(n){for(let e=0;e<n.length;e++){let i=n[e];Yi(o,i);qi(o,t,i)}}o.__dataHost=t}}}function Yi(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={});let s=e.parts;let r=new Array(s.length);for(let t=0;t<s.length;t++){r[t]=s[t].literal}let o=e.target;i[o]=r;if(e.literal&&e.kind=="property"){if(o==="className"){t=De(t)}t[o]=e.literal}}}function qi(t,e,i){if(i.listenerEvent){let s=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){zi(t,e,i.target,s.source,s.negate)}))}}function Vi(t,e,i,s,r,o){o=e.static||o&&(typeof o!=="object"||o[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:o};for(let r=0,o;r<e.args.length&&(o=e.args[r]);r++){if(!o.literal){t._addPropertyEffect(o.rootProperty,i,{fn:s,info:n,trigger:o})}}if(o){t._addPropertyEffect(e.methodName,i,{fn:s,info:n})}return n}function Ji(t,e,i,s,r){let o=t._methodHost||t;let n=o[r.methodName];if(n){let s=t._marshalArgs(r.args,e,i);return s===gi?gi:n.apply(o,s)}else if(!r.dynamicFn){console.warn("method `"+r.methodName+"` not defined")}}const Ki=[];const Zi="(?:"+"[a-zA-Z_$][\\w.:$\\-*]*"+")";const Xi="(?:"+"[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?"+")";const Qi="(?:"+"'(?:[^'\\\\]|\\\\.)*'"+")";const ts="(?:"+'"(?:[^"\\\\]|\\\\.)*"'+")";const es="(?:"+Qi+"|"+ts+")";const is="(?:("+Zi+"|"+Xi+"|"+es+")\\s*"+")";const ss="(?:"+is+"(?:,\\s*"+is+")*"+")";const rs="(?:"+"\\(\\s*"+"(?:"+ss+"?"+")"+"\\)\\s*"+")";const os="("+Zi+"\\s*"+rs+"?"+")";const ns="(\\[\\[|{{)"+"\\s*";const as="(?:]]|}})";const ls="(?:(!)\\s*)?";const hs=ns+ls+os+as;const cs=new RegExp(hs,"g");function us(t){let e="";for(let i=0;i<t.length;i++){let s=t[i].literal;e+=s||""}return e}function ds(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t=e[1];let i={methodName:t,static:true,args:Ki};if(e[2].trim()){let t=e[2].replace(/\\,/g,"&comma;").split(",");return fs(t,i)}else{return i}}return null}function fs(t,e){e.args=t.map((function(t){let i=ps(t);if(!i.literal){e.static=false}return i}),this);return e}function ps(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");let i={name:e,value:"",literal:false};let s=e[0];if(s==="-"){s=e[1]}if(s>="0"&&s<="9"){s="#"}switch(s){case"'":case'"':i.value=e.slice(1,-1);i.literal=true;break;case"#":i.value=Number(e);i.literal=true;break}if(!i.literal){i.rootProperty=Te(e);i.structured=Ce(e);if(i.structured){i.wildcard=e.slice(-2)==".*";if(i.wildcard){i.name=e.slice(0,-2)}}}return i}function ms(t,e,i){let s=Oe(t,i);if(s===undefined){s=e[i]}return s}function bs(t,e,i,s){const r={indexSplices:s};if(ee&&!t._overrideLegacyUndefined){e.splices=r}t.notifyPath(i+".splices",r);t.notifyPath(i+".length",e.length);if(ee&&!t._overrideLegacyUndefined){r.indexSplices=[]}}function gs(t,e,i,s,r,o){bs(t,e,i,[{index:s,addedCount:r,removed:o,object:e,type:"splice"}])}function vs(t){return t[0].toUpperCase()+t.substring(1)}const ys=le((t=>{const e=mi(ii(t));class i extends e{constructor(){super();this.__isPropertyEffectsClient=true}get PROPERTY_EFFECT_TYPES(){return vi}_initializeProperties(){super._initializeProperties();this._registerHost();this.__dataClientsReady=false;this.__dataPendingClients=null;this.__dataToNotify=null;this.__dataLinkedPaths=null;this.__dataHasPaths=false;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=false}_registerHost(){if(ws.length){let t=ws[ws.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[vi.READ_ONLY];for(let i in t){if(!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==vi.READ_ONLY);let s=xi(this,e,true)[t];if(!s){s=this[e][t]=[]}s.push(i)}_removePropertyEffect(t,e,i){let s=xi(this,e,true)[t];let r=s.indexOf(i);if(r>=0){s.splice(r,1)}}_hasPropertyEffect(t,e){let i=this[e];return Boolean(i&&i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,vi.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,vi.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,vi.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,vi.COMPUTE)}_setPendingPropertyOrPath(t,e,i,s){if(s||Te(Array.isArray(t)?t[0]:t)!==t){if(!s){let i=Oe(this,t);t=Be(this,t,e);if(!t||!super._shouldPropertyChange(t,e,i)){return false}}this.__dataHasPaths=true;if(this._setPendingProperty(t,e,i)){Ri(this,t,e);return true}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t]){return this._setPendingProperty(t,e,i)}else{this[t]=e}}return false}_setUnmanagedPropertyToNode(t,e,i){if(i!==t[e]||typeof i=="object"){if(e==="className"){t=De(t)}t[e]=i}}_setPendingProperty(t,e,i){let s=this.__dataHasPaths&&Ce(t);let r=s?this.__dataTemp:this.__data;if(this._shouldPropertyChange(t,e,r[t])){if(!this.__dataPending){this.__dataPending={};this.__dataOld={}}if(!(t in this.__dataOld)){this.__dataOld[t]=this.__data[t]}if(s){this.__dataTemp[t]=e}else{this.__data[t]=e}this.__dataPending[t]=e;if(s||this[vi.NOTIFY]&&this[vi.NOTIFY][t]){this.__dataToNotify=this.__dataToNotify||{};this.__dataToNotify[t]=i}return true}return false}_setProperty(t,e){if(this._setPendingProperty(t,e,true)){this._invalidateProperties()}}_invalidateProperties(){if(this.__dataReady){this._flushProperties()}}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[];if(t!==this){this.__dataPendingClients.push(t)}}_flushClients(){if(!this.__dataClientsReady){this.__dataClientsReady=true;this._readyClients();this.__dataReady=true}else{this.__enableOrFlushClients()}}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];if(!i.__dataEnabled){i._enableProperties()}else if(i.__dataPending){i._flushProperties()}}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t){if(e||!this[vi.READ_ONLY]||!this[vi.READ_ONLY][i]){this._setPendingPropertyOrPath(i,t[i],true)}}this._invalidateProperties()}ready(){this._flushProperties();if(!this.__dataClientsReady){this._flushClients()}if(this.__dataPending){this._flushProperties()}}_propertiesChanged(t,e,i){let s=this.__dataHasPaths;this.__dataHasPaths=false;let r;Ei(this,e,i,s);r=this.__dataToNotify;this.__dataToNotify=null;this._propagatePropertyChanges(e,i,s);this._flushClients();_i(this,this[vi.REFLECT],e,i,s);_i(this,this[vi.OBSERVE],e,i,s);if(r){Ci(this,r,e,i,s)}if(this.__dataCounter==1){this.__dataTemp={}}}_propagatePropertyChanges(t,e,i){if(this[vi.PROPAGATE]){_i(this,this[vi.PROPAGATE],t,e,i)}if(this.__templateInfo){this._runEffectsForTemplate(this.__templateInfo,t,e,i)}}_runEffectsForTemplate(t,e,i,s){const r=(e,s)=>{_i(this,t.propertyEffects,e,i,s,t.nodeList);for(let r=t.firstChild;r;r=r.nextSibling){this._runEffectsForTemplate(r,e,i,s)}};if(t.runEffects){t.runEffects(r,e,s)}else{r(e,s)}}linkPaths(t,e){t=Ee(t);e=Ee(e);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=Ee(t);if(this.__dataLinkedPaths){delete this.__dataLinkedPaths[t]}}notifySplices(t,e){let i={path:""};let s=Oe(this,t,i);bs(this,s,i.path,e)}get(t,e){return Oe(e||this,t)}set(t,e,i){if(i){Be(i,t,e)}else{if(!this[vi.READ_ONLY]||!this[vi.READ_ONLY][t]){if(this._setPendingPropertyOrPath(t,e,true)){this._invalidateProperties()}}}}push(t,...e){let i={path:""};let s=Oe(this,t,i);let r=s.length;let o=s.push(...e);if(e.length){gs(this,s,i.path,r,e.length,[])}return o}pop(t){let e={path:""};let i=Oe(this,t,e);let s=Boolean(i.length);let r=i.pop();if(s){gs(this,i,e.path,i.length,0,[r])}return r}splice(t,e,i,...s){let r={path:""};let o=Oe(this,t,r);if(e<0){e=o.length-Math.floor(-e)}else if(e){e=Math.floor(e)}let n;if(arguments.length===2){n=o.splice(e)}else{n=o.splice(e,i,...s)}if(s.length||n.length){gs(this,o,r.path,e,s.length,n)}return n}shift(t){let e={path:""};let i=Oe(this,t,e);let s=Boolean(i.length);let r=i.shift();if(s){gs(this,i,e.path,0,0,[r])}return r}unshift(t,...e){let i={path:""};let s=Oe(this,t,i);let r=s.unshift(...e);if(e.length){gs(this,s,i.path,0,e.length,[])}return r}notifyPath(t,e){let i;if(arguments.length==1){let s={path:""};e=Oe(this,t,s);i=s.path}else if(Array.isArray(t)){i=Ee(t)}else{i=t}if(this._setPendingPropertyOrPath(i,e,true,true)){this._invalidateProperties()}}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,vi.READ_ONLY);if(e){this["_set"+vs(t)]=function(e){this._setProperty(t,e)}}}_createPropertyObserver(t,e,i){let s={property:t,method:e,dynamicFn:Boolean(i)};this._addPropertyEffect(t,vi.OBSERVE,{fn:Di,info:s,trigger:{name:t}});if(i){this._addPropertyEffect(e,vi.OBSERVE,{fn:Di,info:s,trigger:{name:e}})}}_createMethodObserver(t,e){let i=ds(t);if(!i){throw new Error("Malformed observer expression '"+t+"'")}Vi(this,i,vi.OBSERVE,Ji,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,vi.NOTIFY,{fn:Mi,info:{eventName:Le(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);if(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.')}else{this._addPropertyEffect(t,vi.REFLECT,{fn:Pi,info:{attrName:e}})}}_createComputedProperty(t,e,i){let s=ds(e);if(!s){throw new Error("Malformed computed expression '"+e+"'")}const r=Vi(this,s,vi.COMPUTE,Ni,t,i);xi(this,yi)[t]=r}_marshalArgs(t,e,i){const s=this.__data;const r=[];for(let o=0,n=t.length;o<n;o++){let{name:n,structured:a,wildcard:l,value:h,literal:c}=t[o];if(!c){if(l){const t=Me(n,e);const r=ms(s,i,t?e:n);h={path:t?e:n,value:r,base:t?Oe(s,n):r}}else{h=a?ms(s,i,n):s[n]}}if(ee&&!this._overrideLegacyUndefined&&h===undefined&&t.length>1){return gi}r[o]=h}return r}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);let s=this.__preBoundTemplateInfo==i;if(!s){for(let t in i.propertyEffects){this._createPropertyAccessor(t)}}if(e){i=Object.create(i);i.wasPreBound=s;if(!this.__templateInfo){this.__templateInfo=i}else{const e=t._parentTemplateInfo||this.__templateInfo;const s=e.lastChild;i.parent=e;e.lastChild=i;i.previousSibling=s;if(s){s.nextSibling=i}else{e.firstChild=i}}}else{this.__preBoundTemplateInfo=i}return i}static _addTemplatePropertyEffect(t,e,i){let s=t.hostProps=t.hostProps||{};s[e]=true;let r=t.propertyEffects=t.propertyEffects||{};let o=r[e]=r[e]||[];o.push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,true);ws.push(this);let i=super._stampTemplate(t,e);ws.pop();e.nodeList=i.nodeList;if(!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling){t.push(e)}}i.templateInfo=e;Gi(this,e);if(this.__dataClientsReady){this._runEffectsForTemplate(e,this.__data,null,false);this._flushClients()}return i}_removeBoundDom(t){const e=t.templateInfo;const{previousSibling:i,nextSibling:s,parent:r}=e;if(i){i.nextSibling=s}else if(r){r.firstChild=s}if(s){s.previousSibling=i}else if(r){r.lastChild=i}e.nextSibling=e.previousSibling=null;let o=e.childNodes;for(let t=0;t<o.length;t++){let e=o[t];De(De(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,s){let r=e._parseTemplateNode.call(this,t,i,s);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);if(e){t.textContent=us(e)||" ";ji(this,i,s,"text","textContent",e);r=true}}return r}static _parseTemplateNodeAttribute(t,i,s,r,o){let n=this._parseBindings(o,i);if(n){let e=r;let o="property";if(wi.test(r)){o="attribute"}else if(r[r.length-1]=="$"){r=r.slice(0,-1);o="attribute"}let a=us(n);if(a&&o=="attribute"){if(r=="class"&&t.hasAttribute("class")){a+=" "+t.getAttribute(r)}t.setAttribute(r,a)}if(o=="attribute"&&e=="disable-upgrade$"){t.setAttribute(r,"")}if(t.localName==="input"&&e==="value"){t.setAttribute(e,"")}t.removeAttribute(e);if(o==="property"){r=je(r)}ji(this,i,s,o,r,n,a);return true}else{return e._parseTemplateNodeAttribute.call(this,t,i,s,r,o)}}static _parseTemplateNestedTemplate(t,i,s){let r=e._parseTemplateNestedTemplate.call(this,t,i,s);const o=t.parentNode;const n=s.templateInfo;const a=o.localName==="dom-if";const l=o.localName==="dom-repeat";if(se&&(a||l)){o.removeChild(t);s=s.parentInfo;s.templateInfo=n;s.noted=true;r=false}let h=n.hostProps;if(re&&a){if(h){i.hostProps=Object.assign(i.hostProps||{},h);if(!se){s.parentInfo.noted=true}}}else{let t="{";for(let e in h){let r=[{mode:t,source:e,dependencies:[e],hostProp:true}];ji(this,i,s,"property","_host_"+e,r)}}return r}static _parseBindings(t,e){let i=[];let s=0;let r;while((r=cs.exec(t))!==null){if(r.index>s){i.push({literal:t.slice(s,r.index)})}let o=r[1][0];let n=Boolean(r[2]);let a=r[3].trim();let l=false,h="",c=-1;if(o=="{"&&(c=a.indexOf("::"))>0){h=a.substring(c+2);a=a.substring(0,c);l=true}let u=ds(a);let d=[];if(u){let{args:t,methodName:i}=u;for(let e=0;e<t.length;e++){let i=t[e];if(!i.literal){d.push(i)}}let s=e.dynamicFns;if(s&&s[i]||u.static){d.push(i);u.dynamicFn=true}}else{d.push(a)}i.push({source:a,mode:o,negate:n,customEvent:l,signature:u,dependencies:d,event:h});s=cs.lastIndex}if(s&&s<t.length){let e=t.substring(s);if(e){i.push({literal:e})}}if(i.length){return i}else{return null}}static _evaluateBinding(t,e,i,s,r,o){let n;if(e.signature){n=Ji(t,i,s,r,e.signature)}else if(i!=e.source){n=Oe(t,e.source)}else{if(o&&Ce(i)){n=Oe(t,i)}else{n=t.__data[i]}}if(e.negate){n=!n}return n}}return i}));const ws=[];
685
+ */let gi=0;const vi=[];const yi={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"};const wi="__computeInfo";const xi=/[A-Z]/;function _i(t,e,i){let s=t[e];if(!s){s=t[e]={}}else if(!t.hasOwnProperty(e)){s=t[e]=Object.create(t[e]);if(i){for(let t in s){let e=s[t];let i=s[t]=Array(e.length);for(let t=0;t<e.length;t++){i[t]=e[t]}}}}return s}function ki(t,e,i,s,r,o){if(e){let n=false;const a=gi++;for(let l in i){let h=r?Se(l):l;let c=e[h];if(c){for(let e=0,h=c.length,u;e<h&&(u=c[e]);e++){if((!u.info||u.info.lastRun!==a)&&(!r||Di(l,u.trigger))){if(u.info){u.info.lastRun=a}u.fn(t,l,i,s,u.info,r,o);n=true}}}}return n}return false}function Ai(t,e,i,s,r,o,n,a){let l=false;let h=n?Se(s):s;let c=e[h];if(c){for(let e=0,h=c.length,u;e<h&&(u=c[e]);e++){if((!u.info||u.info.lastRun!==i)&&(!n||Di(s,u.trigger))){if(u.info){u.info.lastRun=i}u.fn(t,s,r,o,u.info,n,a);l=true}}}return l}function Di(t,e){if(e){let i=e.name;return i==t||!!(e.structured&&Me(i,t))||!!(e.wildcard&&ze(i,t))}else{return true}}function Ci(t,e,i,s,r){let o=typeof r.method==="string"?t[r.method]:r.method;let n=r.property;if(o){o.call(t,t.__data[n],s[n])}else if(!r.dynamicFn){console.warn("observer method `"+r.method+"` not defined")}}function Ti(t,e,i,s,r){let o=t[yi.NOTIFY];let n;let a=gi++;for(let l in e){if(e[l]){if(o&&Ai(t,o,a,l,i,s,r)){n=true}else if(r&&Si(t,l,i)){n=true}}}let l;if(n&&(l=t.__dataHost)&&l._invalidateProperties){l._invalidateProperties()}}function Si(t,e,i){let s=Se(e);if(s!==e){let r=He(s)+"-changed";Mi(t,r,i[e],e);return true}return false}function Mi(t,e,i,s){let r={value:i,queueProperty:true};if(s){r.path=s}Ce(t).dispatchEvent(new CustomEvent(e,{detail:r}))}function zi(t,e,i,s,r,o){let n=o?Se(e):e;let a=n!=e?e:null;let l=a?Be(t,a):t.__data[e];if(a&&l===undefined){l=i[e]}Mi(t,r.eventName,l,a)}function Pi(t,e,i,s,r){let o;let n=t.detail;let a=n&&n.path;if(a){s=Pe(i,s,a);o=n&&n.value}else{o=t.currentTarget[i]}o=r?!o:o;if(!e[yi.READ_ONLY]||!e[yi.READ_ONLY][s]){if(e._setPendingPropertyOrPath(s,o,true,Boolean(a))&&(!n||!n.queueProperty)){e._invalidateProperties()}}}function Ei(t,e,i,s,r){let o=t.__data[e];if(Kt){o=Kt(o,r.attrName,"attribute",t)}t._propertyToAttribute(e,r.attrName,o)}function Fi(t,e,i,s){let r=t[yi.COMPUTE];if(r){if(se){gi++;const o=Ii(t);const n=[];for(let t in e){Bi(t,r,n,o,s)}let a;while(a=n.shift()){if(Ri(t,"",e,i,a)){Bi(a.methodInfo,r,n,o,s)}}Object.assign(i,t.__dataOld);Object.assign(e,t.__dataPending);t.__dataPending=null}else{let o=e;while(ki(t,r,o,i,s)){Object.assign(i,t.__dataOld);Object.assign(e,t.__dataPending);o=t.__dataPending;t.__dataPending=null}}}}const Oi=(t,e,i)=>{let s=0;let r=e.length-1;let o=-1;while(s<=r){const n=s+r>>1;const a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0){s=n+1}else if(a>0){r=n-1}else{o=n;break}}if(o<0){o=r+1}e.splice(o,0,t)};const Bi=(t,e,i,s,r)=>{const o=r?Se(t):t;const n=e[o];if(n){for(let e=0;e<n.length;e++){const o=n[e];if(o.info.lastRun!==gi&&(!r||Di(t,o.trigger))){o.info.lastRun=gi;Oi(o.info,i,s)}}}};function Ii(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[yi.COMPUTE];let{counts:s,ready:r,total:o}=Ni(t);let n;while(n=r.shift()){e.set(n,e.size);const t=i[n];if(t){t.forEach((t=>{const e=t.info.methodInfo;--o;if(--s[e]===0){r.push(e)}}))}}if(o!==0){const e=t;console.warn(`Computed graph for ${e.localName} incomplete; circular?`)}t.constructor.__orderedComputedDeps=e}return e}function Ni(t){const e=t[wi];const i={};const s=t[yi.COMPUTE];const r=[];let o=0;for(let t in e){const s=e[t];o+=i[t]=s.args.filter((t=>!t.literal)).length+(s.dynamicFn?1:0)}for(let t in s){if(!e[t]){r.push(t)}}return{counts:i,ready:r,total:o}}function Ri(t,e,i,s,r){let o=Ki(t,e,i,s,r);if(o===vi){return false}let n=r.methodInfo;if(t.__dataHasAccessor&&t.__dataHasAccessor[n]){return t._setPendingProperty(n,o,true)}else{t[n]=o;return false}}function ji(t,e,i){let s=t.__dataLinkedPaths;if(s){let r;for(let o in s){let n=s[o];if(ze(o,e)){r=Pe(o,n,e);t._setPendingPropertyOrPath(r,i,true,true)}else if(ze(n,e)){r=Pe(n,o,e);t._setPendingPropertyOrPath(r,i,true,true)}}}}function Li(t,e,i,s,r,o,n){i.bindings=i.bindings||[];let a={kind:s,target:r,parts:o,literal:n,isCompound:o.length!==1};i.bindings.push(a);if(Gi(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||He(r)+"-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;Hi(t,e,a,s,l)}}function Hi(t,e,i,s,r){if(!s.literal){if(i.kind==="attribute"&&i.target[0]==="-"){console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character')}else{let o=s.dependencies;let n={index:r,binding:i,part:s,evaluator:t};for(let i=0;i<o.length;i++){let s=o[i];if(typeof s=="string"){s=ms(s);s.wildcard=true}t._addTemplatePropertyEffect(e,s.rootProperty,{fn:Wi,info:n,trigger:s})}}}}function Wi(t,e,i,s,r,o,n){let a=n[r.index];let l=r.binding;let h=r.part;if(o&&h.source&&e.length>h.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let s=i[e];e=Pe(h.source,l.target,e);if(a._setPendingPropertyOrPath(e,s,false,true)){t._enqueueClient(a)}}else{let n=r.evaluator._evaluateBinding(t,h,e,i,s,o);if(n!==vi){Ui(t,a,l,h,n)}}}function Ui(t,e,i,s,r){r=$i(e,r,i,s);if(Kt){r=Kt(r,i.target,i.kind,e)}if(i.kind=="attribute"){t._valueToNodeAttribute(e,r,i.target)}else{let s=i.target;if(e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]){if(!e[yi.READ_ONLY]||!e[yi.READ_ONLY][s]){if(e._setPendingProperty(s,r)){t._enqueueClient(e)}}}else{t._setUnmanagedPropertyToNode(e,s,r)}}}function $i(t,e,i,s){if(i.isCompound){let r=t.__dataCompoundStorage[i.target];r[s.compoundIndex]=e;e=r.join("")}if(i.kind!=="attribute"){if(i.target==="textContent"||i.target==="value"&&(t.localName==="input"||t.localName==="textarea")){e=e==undefined?"":e}}return e}function Gi(t){return Boolean(t.target)&&t.kind!="attribute"&&t.kind!="text"&&!t.isCompound&&t.parts[0].mode==="{"}function Yi(t,e){let{nodeList:i,nodeInfoList:s}=e;if(s.length){for(let e=0;e<s.length;e++){let r=s[e];let o=i[e];let n=r.bindings;if(n){for(let e=0;e<n.length;e++){let i=n[e];qi(o,i);Vi(o,t,i)}}o.__dataHost=t}}}function qi(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={});let s=e.parts;let r=new Array(s.length);for(let t=0;t<s.length;t++){r[t]=s[t].literal}let o=e.target;i[o]=r;if(e.literal&&e.kind=="property"){if(o==="className"){t=Ce(t)}t[o]=e.literal}}}function Vi(t,e,i){if(i.listenerEvent){let s=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){Pi(t,e,i.target,s.source,s.negate)}))}}function Ji(t,e,i,s,r,o){o=e.static||o&&(typeof o!=="object"||o[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:r,dynamicFn:o};for(let r=0,o;r<e.args.length&&(o=e.args[r]);r++){if(!o.literal){t._addPropertyEffect(o.rootProperty,i,{fn:s,info:n,trigger:o})}}if(o){t._addPropertyEffect(e.methodName,i,{fn:s,info:n})}return n}function Ki(t,e,i,s,r){let o=t._methodHost||t;let n=o[r.methodName];if(n){let s=t._marshalArgs(r.args,e,i);return s===vi?vi:n.apply(o,s)}else if(!r.dynamicFn){console.warn("method `"+r.methodName+"` not defined")}}const Zi=[];const Xi="(?:"+"[a-zA-Z_$][\\w.:$\\-*]*"+")";const Qi="(?:"+"[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?"+")";const ts="(?:"+"'(?:[^'\\\\]|\\\\.)*'"+")";const es="(?:"+'"(?:[^"\\\\]|\\\\.)*"'+")";const is="(?:"+ts+"|"+es+")";const ss="(?:("+Xi+"|"+Qi+"|"+is+")\\s*"+")";const rs="(?:"+ss+"(?:,\\s*"+ss+")*"+")";const os="(?:"+"\\(\\s*"+"(?:"+rs+"?"+")"+"\\)\\s*"+")";const ns="("+Xi+"\\s*"+os+"?"+")";const as="(\\[\\[|{{)"+"\\s*";const ls="(?:]]|}})";const hs="(?:(!)\\s*)?";const cs=as+hs+ns+ls;const us=new RegExp(cs,"g");function ds(t){let e="";for(let i=0;i<t.length;i++){let s=t[i].literal;e+=s||""}return e}function fs(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t=e[1];let i={methodName:t,static:true,args:Zi};if(e[2].trim()){let t=e[2].replace(/\\,/g,"&comma;").split(",");return ps(t,i)}else{return i}}return null}function ps(t,e){e.args=t.map((function(t){let i=ms(t);if(!i.literal){e.static=false}return i}),this);return e}function ms(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1");let i={name:e,value:"",literal:false};let s=e[0];if(s==="-"){s=e[1]}if(s>="0"&&s<="9"){s="#"}switch(s){case"'":case'"':i.value=e.slice(1,-1);i.literal=true;break;case"#":i.value=Number(e);i.literal=true;break}if(!i.literal){i.rootProperty=Se(e);i.structured=Te(e);if(i.structured){i.wildcard=e.slice(-2)==".*";if(i.wildcard){i.name=e.slice(0,-2)}}}return i}function bs(t,e,i){let s=Be(t,i);if(s===undefined){s=e[i]}return s}function gs(t,e,i,s){const r={indexSplices:s};if(ie&&!t._overrideLegacyUndefined){e.splices=r}t.notifyPath(i+".splices",r);t.notifyPath(i+".length",e.length);if(ie&&!t._overrideLegacyUndefined){r.indexSplices=[]}}function vs(t,e,i,s,r,o){gs(t,e,i,[{index:s,addedCount:r,removed:o,object:e,type:"splice"}])}function ys(t){return t[0].toUpperCase()+t.substring(1)}const ws=he((t=>{const e=bi(si(t));class i extends e{constructor(){super();this.__isPropertyEffectsClient=true}get PROPERTY_EFFECT_TYPES(){return yi}_initializeProperties(){super._initializeProperties();this._registerHost();this.__dataClientsReady=false;this.__dataPendingClients=null;this.__dataToNotify=null;this.__dataLinkedPaths=null;this.__dataHasPaths=false;this.__dataCompoundStorage=this.__dataCompoundStorage||null;this.__dataHost=this.__dataHost||null;this.__dataTemp={};this.__dataClientsInitialized=false}_registerHost(){if(xs.length){let t=xs[xs.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[yi.READ_ONLY];for(let i in t){if(!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==yi.READ_ONLY);let s=_i(this,e,true)[t];if(!s){s=this[e][t]=[]}s.push(i)}_removePropertyEffect(t,e,i){let s=_i(this,e,true)[t];let r=s.indexOf(i);if(r>=0){s.splice(r,1)}}_hasPropertyEffect(t,e){let i=this[e];return Boolean(i&&i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,yi.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,yi.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,yi.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,yi.COMPUTE)}_setPendingPropertyOrPath(t,e,i,s){if(s||Se(Array.isArray(t)?t[0]:t)!==t){if(!s){let i=Be(this,t);t=Ie(this,t,e);if(!t||!super._shouldPropertyChange(t,e,i)){return false}}this.__dataHasPaths=true;if(this._setPendingProperty(t,e,i)){ji(this,t,e);return true}}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t]){return this._setPendingProperty(t,e,i)}else{this[t]=e}}return false}_setUnmanagedPropertyToNode(t,e,i){if(i!==t[e]||typeof i=="object"){if(e==="className"){t=Ce(t)}t[e]=i}}_setPendingProperty(t,e,i){let s=this.__dataHasPaths&&Te(t);let r=s?this.__dataTemp:this.__data;if(this._shouldPropertyChange(t,e,r[t])){if(!this.__dataPending){this.__dataPending={};this.__dataOld={}}if(!(t in this.__dataOld)){this.__dataOld[t]=this.__data[t]}if(s){this.__dataTemp[t]=e}else{this.__data[t]=e}this.__dataPending[t]=e;if(s||this[yi.NOTIFY]&&this[yi.NOTIFY][t]){this.__dataToNotify=this.__dataToNotify||{};this.__dataToNotify[t]=i}return true}return false}_setProperty(t,e){if(this._setPendingProperty(t,e,true)){this._invalidateProperties()}}_invalidateProperties(){if(this.__dataReady){this._flushProperties()}}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[];if(t!==this){this.__dataPendingClients.push(t)}}_flushClients(){if(!this.__dataClientsReady){this.__dataClientsReady=true;this._readyClients();this.__dataReady=true}else{this.__enableOrFlushClients()}}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];if(!i.__dataEnabled){i._enableProperties()}else if(i.__dataPending){i._flushProperties()}}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t){if(e||!this[yi.READ_ONLY]||!this[yi.READ_ONLY][i]){this._setPendingPropertyOrPath(i,t[i],true)}}this._invalidateProperties()}ready(){this._flushProperties();if(!this.__dataClientsReady){this._flushClients()}if(this.__dataPending){this._flushProperties()}}_propertiesChanged(t,e,i){let s=this.__dataHasPaths;this.__dataHasPaths=false;let r;Fi(this,e,i,s);r=this.__dataToNotify;this.__dataToNotify=null;this._propagatePropertyChanges(e,i,s);this._flushClients();ki(this,this[yi.REFLECT],e,i,s);ki(this,this[yi.OBSERVE],e,i,s);if(r){Ti(this,r,e,i,s)}if(this.__dataCounter==1){this.__dataTemp={}}}_propagatePropertyChanges(t,e,i){if(this[yi.PROPAGATE]){ki(this,this[yi.PROPAGATE],t,e,i)}if(this.__templateInfo){this._runEffectsForTemplate(this.__templateInfo,t,e,i)}}_runEffectsForTemplate(t,e,i,s){const r=(e,s)=>{ki(this,t.propertyEffects,e,i,s,t.nodeList);for(let r=t.firstChild;r;r=r.nextSibling){this._runEffectsForTemplate(r,e,i,s)}};if(t.runEffects){t.runEffects(r,e,s)}else{r(e,s)}}linkPaths(t,e){t=Fe(t);e=Fe(e);this.__dataLinkedPaths=this.__dataLinkedPaths||{};this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=Fe(t);if(this.__dataLinkedPaths){delete this.__dataLinkedPaths[t]}}notifySplices(t,e){let i={path:""};let s=Be(this,t,i);gs(this,s,i.path,e)}get(t,e){return Be(e||this,t)}set(t,e,i){if(i){Ie(i,t,e)}else{if(!this[yi.READ_ONLY]||!this[yi.READ_ONLY][t]){if(this._setPendingPropertyOrPath(t,e,true)){this._invalidateProperties()}}}}push(t,...e){let i={path:""};let s=Be(this,t,i);let r=s.length;let o=s.push(...e);if(e.length){vs(this,s,i.path,r,e.length,[])}return o}pop(t){let e={path:""};let i=Be(this,t,e);let s=Boolean(i.length);let r=i.pop();if(s){vs(this,i,e.path,i.length,0,[r])}return r}splice(t,e,i,...s){let r={path:""};let o=Be(this,t,r);if(e<0){e=o.length-Math.floor(-e)}else if(e){e=Math.floor(e)}let n;if(arguments.length===2){n=o.splice(e)}else{n=o.splice(e,i,...s)}if(s.length||n.length){vs(this,o,r.path,e,s.length,n)}return n}shift(t){let e={path:""};let i=Be(this,t,e);let s=Boolean(i.length);let r=i.shift();if(s){vs(this,i,e.path,0,0,[r])}return r}unshift(t,...e){let i={path:""};let s=Be(this,t,i);let r=s.unshift(...e);if(e.length){vs(this,s,i.path,0,e.length,[])}return r}notifyPath(t,e){let i;if(arguments.length==1){let s={path:""};e=Be(this,t,s);i=s.path}else if(Array.isArray(t)){i=Fe(t)}else{i=t}if(this._setPendingPropertyOrPath(i,e,true,true)){this._invalidateProperties()}}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,yi.READ_ONLY);if(e){this["_set"+ys(t)]=function(e){this._setProperty(t,e)}}}_createPropertyObserver(t,e,i){let s={property:t,method:e,dynamicFn:Boolean(i)};this._addPropertyEffect(t,yi.OBSERVE,{fn:Ci,info:s,trigger:{name:t}});if(i){this._addPropertyEffect(e,yi.OBSERVE,{fn:Ci,info:s,trigger:{name:e}})}}_createMethodObserver(t,e){let i=fs(t);if(!i){throw new Error("Malformed observer expression '"+t+"'")}Ji(this,i,yi.OBSERVE,Ki,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,yi.NOTIFY,{fn:zi,info:{eventName:He(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);if(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.')}else{this._addPropertyEffect(t,yi.REFLECT,{fn:Ei,info:{attrName:e}})}}_createComputedProperty(t,e,i){let s=fs(e);if(!s){throw new Error("Malformed computed expression '"+e+"'")}const r=Ji(this,s,yi.COMPUTE,Ri,t,i);_i(this,wi)[t]=r}_marshalArgs(t,e,i){const s=this.__data;const r=[];for(let o=0,n=t.length;o<n;o++){let{name:n,structured:a,wildcard:l,value:h,literal:c}=t[o];if(!c){if(l){const t=ze(n,e);const r=bs(s,i,t?e:n);h={path:t?e:n,value:r,base:t?Be(s,n):r}}else{h=a?bs(s,i,n):s[n]}}if(ie&&!this._overrideLegacyUndefined&&h===undefined&&t.length>1){return vi}r[o]=h}return r}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);let s=this.__preBoundTemplateInfo==i;if(!s){for(let t in i.propertyEffects){this._createPropertyAccessor(t)}}if(e){i=Object.create(i);i.wasPreBound=s;if(!this.__templateInfo){this.__templateInfo=i}else{const e=t._parentTemplateInfo||this.__templateInfo;const s=e.lastChild;i.parent=e;e.lastChild=i;i.previousSibling=s;if(s){s.nextSibling=i}else{e.firstChild=i}}}else{this.__preBoundTemplateInfo=i}return i}static _addTemplatePropertyEffect(t,e,i){let s=t.hostProps=t.hostProps||{};s[e]=true;let r=t.propertyEffects=t.propertyEffects||{};let o=r[e]=r[e]||[];o.push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,true);xs.push(this);let i=super._stampTemplate(t,e);xs.pop();e.nodeList=i.nodeList;if(!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling){t.push(e)}}i.templateInfo=e;Yi(this,e);if(this.__dataClientsReady){this._runEffectsForTemplate(e,this.__data,null,false);this._flushClients()}return i}_removeBoundDom(t){const e=t.templateInfo;const{previousSibling:i,nextSibling:s,parent:r}=e;if(i){i.nextSibling=s}else if(r){r.firstChild=s}if(s){s.previousSibling=i}else if(r){r.lastChild=i}e.nextSibling=e.previousSibling=null;let o=e.childNodes;for(let t=0;t<o.length;t++){let e=o[t];Ce(Ce(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,s){let r=e._parseTemplateNode.call(this,t,i,s);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);if(e){t.textContent=ds(e)||" ";Li(this,i,s,"text","textContent",e);r=true}}return r}static _parseTemplateNodeAttribute(t,i,s,r,o){let n=this._parseBindings(o,i);if(n){let e=r;let o="property";if(xi.test(r)){o="attribute"}else if(r[r.length-1]=="$"){r=r.slice(0,-1);o="attribute"}let a=ds(n);if(a&&o=="attribute"){if(r=="class"&&t.hasAttribute("class")){a+=" "+t.getAttribute(r)}t.setAttribute(r,a)}if(o=="attribute"&&e=="disable-upgrade$"){t.setAttribute(r,"")}if(t.localName==="input"&&e==="value"){t.setAttribute(e,"")}t.removeAttribute(e);if(o==="property"){r=Le(r)}Li(this,i,s,o,r,n,a);return true}else{return e._parseTemplateNodeAttribute.call(this,t,i,s,r,o)}}static _parseTemplateNestedTemplate(t,i,s){let r=e._parseTemplateNestedTemplate.call(this,t,i,s);const o=t.parentNode;const n=s.templateInfo;const a=o.localName==="dom-if";const l=o.localName==="dom-repeat";if(re&&(a||l)){o.removeChild(t);s=s.parentInfo;s.templateInfo=n;s.noted=true;r=false}let h=n.hostProps;if(oe&&a){if(h){i.hostProps=Object.assign(i.hostProps||{},h);if(!re){s.parentInfo.noted=true}}}else{let t="{";for(let e in h){let r=[{mode:t,source:e,dependencies:[e],hostProp:true}];Li(this,i,s,"property","_host_"+e,r)}}return r}static _parseBindings(t,e){let i=[];let s=0;let r;while((r=us.exec(t))!==null){if(r.index>s){i.push({literal:t.slice(s,r.index)})}let o=r[1][0];let n=Boolean(r[2]);let a=r[3].trim();let l=false,h="",c=-1;if(o=="{"&&(c=a.indexOf("::"))>0){h=a.substring(c+2);a=a.substring(0,c);l=true}let u=fs(a);let d=[];if(u){let{args:t,methodName:i}=u;for(let e=0;e<t.length;e++){let i=t[e];if(!i.literal){d.push(i)}}let s=e.dynamicFns;if(s&&s[i]||u.static){d.push(i);u.dynamicFn=true}}else{d.push(a)}i.push({source:a,mode:o,negate:n,customEvent:l,signature:u,dependencies:d,event:h});s=us.lastIndex}if(s&&s<t.length){let e=t.substring(s);if(e){i.push({literal:e})}}if(i.length){return i}else{return null}}static _evaluateBinding(t,e,i,s,r,o){let n;if(e.signature){n=Ki(t,i,s,r,e.signature)}else if(i!=e.source){n=Be(t,e.source)}else{if(o&&Te(i)){n=Be(t,i)}else{n=t.__data[i]}}if(e.negate){n=!n}return n}}return i}));const xs=[];
686
686
  /**
687
687
  @license
688
688
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -691,7 +691,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
691
691
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
692
692
  Code distributed by Google as part of the polymer project is also
693
693
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
694
- */function xs(t){const e={};for(let i in t){const s=t[i];e[i]=typeof s==="function"?{type:s}:s}return e}const _s=le((t=>{const e=Ze(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof r?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;if(i){e=xs(i)}}t.__ownProperties=e}return t.__ownProperties}class r 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);if(t){t.finalize()}this.__finalized=true;this._finalizeClass()}}static _finalizeClass(){const t=s(this);if(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(){if(super.connectedCallback){super.connectedCallback()}this._enableProperties()}disconnectedCallback(){if(super.disconnectedCallback){super.disconnectedCallback()}}}return r}));
694
+ */function _s(t){const e={};for(let i in t){const s=t[i];e[i]=typeof s==="function"?{type:s}:s}return e}const ks=he((t=>{const e=Xe(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof r?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;if(i){e=_s(i)}}t.__ownProperties=e}return t.__ownProperties}class r 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);if(t){t.finalize()}this.__finalized=true;this._finalizeClass()}}static _finalizeClass(){const t=s(this);if(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(){if(super.connectedCallback){super.connectedCallback()}this._enableProperties()}disconnectedCallback(){if(super.disconnectedCallback){super.disconnectedCallback()}}}return r}));
695
695
  /**
696
696
  * @fileoverview
697
697
  * @suppress {checkPrototypalTypes}
@@ -702,7 +702,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
702
702
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
703
703
  * Google as part of the polymer project is also subject to an additional IP
704
704
  * rights grant found at http://polymer.github.io/PATENTS.txt
705
- */const ks="3.5.1";const As=window.ShadyCSS&&window.ShadyCSS["cssBuild"];const Ds=le((t=>{const e=_s(ys(t));function i(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let i in e){let s=e[i];if("value"in s){t.__propertyDefaults=t.__propertyDefaults||{};t.__propertyDefaults[i]=s}}}return t.__propertyDefaults}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",t))){t.__ownObservers=t.hasOwnProperty(JSCompiler_renameProperty("observers",t))?t.observers:null}return t.__ownObservers}function r(t,e,i,s){if(i.computed){i.readOnly=true}if(i.computed){if(t._hasReadOnlyEffect(e)){console.warn(`Cannot redefine computed property '${e}'.`)}else{t._createComputedProperty(e,i.computed,s)}}if(i.readOnly&&!t._hasReadOnlyEffect(e)){t._createReadOnlyProperty(e,!i.computed)}else if(i.readOnly===false&&t._hasReadOnlyEffect(e)){console.warn(`Cannot make readOnly property '${e}' non-readOnly.`)}if(i.reflectToAttribute&&!t._hasReflectEffect(e)){t._createReflectedProperty(e)}else if(i.reflectToAttribute===false&&t._hasReflectEffect(e)){console.warn(`Cannot make reflected property '${e}' non-reflected.`)}if(i.notify&&!t._hasNotifyEffect(e)){t._createNotifyingProperty(e)}else if(i.notify===false&&t._hasNotifyEffect(e)){console.warn(`Cannot make notify property '${e}' non-notify.`)}if(i.observer){t._createPropertyObserver(e,i.observer,s[i.observer])}t._addPropertyToAttributeMap(e)}function o(t,e,i,s){if(!As){const r=e.content.querySelectorAll("style");const o=_e(e);const n=ke(i);const a=e.content.firstElementChild;for(let i=0;i<n.length;i++){let r=n[i];r.textContent=t._processStyleText(r.textContent,s);e.content.insertBefore(r,a)}let l=0;for(let e=0;e<o.length;e++){let i=o[e];let n=r[l];if(n!==i){i=i.cloneNode(true);n.parentNode.insertBefore(i,n)}else{l++}i.textContent=t._processStyleText(i.textContent,s)}}if(window.ShadyCSS){window.ShadyCSS.prepareTemplate(e,i)}if(ne&&As&&qt){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)}}}function n(t){let e=null;if(t&&(!Kt||Zt)){e=pe.import(t,"template");if(Kt&&!e){throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`)}}return e}class a extends e{static get polymerElementVersion(){return ks}static _finalizeClass(){e._finalizeClass.call(this);const t=s(this);if(t){this.createObservers(t,this._properties)}this._prepareTemplate()}static _prepareTemplate(){let t=this.template;if(t){if(typeof t==="string"){console.error("template getter must return HTMLTemplateElement");t=null}else if(!Xt){t=t.cloneNode(true)}}this.prototype._template=t}static createProperties(t){for(let e in t){r(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:undefined;if(typeof t==="function"){t=t()}this._template=t!==undefined?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(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=Gt(t.url)}else{const t=pe.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=Vt;this.importPath=this.constructor.importPath;let t=i(this.constructor);if(!t){return}for(let e in t){let i=t[e];if(this._canApplyPropertyDefault(e)){let t=typeof i.value=="function"?i.value.call(this):i.value;if(this._hasAccessor(e)){this._setPendingProperty(e,t,true)}else{this[e]=t}}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return $t(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=true;const i=this.importPath;const s=i?Ut(i):"";o(this,e,t,s);this.prototype._bindTemplate(e)}}connectedCallback(){if(window.ShadyCSS&&this._template){window.ShadyCSS.styleElement(this)}super.connectedCallback()}ready(){if(this._template){this.root=this._stampTemplate(this._template);this.$=this.root.$}super.ready()}_readyClients(){if(this._template){this.root=this._attachDom(this.root)}super._readyClients()}_attachDom(t){const e=De(this);if(e.attachShadow){if(t){if(!e.shadowRoot){e.attachShadow({mode:"open",shadyUpgradeFragment:t});e.shadowRoot.appendChild(t);if(this.constructor._styleSheet){e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet]}}if(te&&window.ShadyDOM){window.ShadyDOM.flushInitial(e.shadowRoot)}return e.shadowRoot}return null}else{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){if(window.ShadyCSS){window.ShadyCSS.styleSubtree(this,t)}}resolveUrl(t,e){if(!e&&this.importPath){e=Ut(this.importPath)}return Ut(t,e)}static _parseTemplateContent(t,i,s){i.dynamicFns=i.dynamicFns||this._properties;return e._parseTemplateContent.call(this,t,i,s)}static _addTemplatePropertyEffect(t,i,s){if(Qt&&!(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.`)}return e._addTemplatePropertyEffect.call(this,t,i,s)}}return a}));
705
+ */const As="3.5.1";const Ds=window.ShadyCSS&&window.ShadyCSS["cssBuild"];const Cs=he((t=>{const e=ks(ws(t));function i(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let i in e){let s=e[i];if("value"in s){t.__propertyDefaults=t.__propertyDefaults||{};t.__propertyDefaults[i]=s}}}return t.__propertyDefaults}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",t))){t.__ownObservers=t.hasOwnProperty(JSCompiler_renameProperty("observers",t))?t.observers:null}return t.__ownObservers}function r(t,e,i,s){if(i.computed){i.readOnly=true}if(i.computed){if(t._hasReadOnlyEffect(e)){console.warn(`Cannot redefine computed property '${e}'.`)}else{t._createComputedProperty(e,i.computed,s)}}if(i.readOnly&&!t._hasReadOnlyEffect(e)){t._createReadOnlyProperty(e,!i.computed)}else if(i.readOnly===false&&t._hasReadOnlyEffect(e)){console.warn(`Cannot make readOnly property '${e}' non-readOnly.`)}if(i.reflectToAttribute&&!t._hasReflectEffect(e)){t._createReflectedProperty(e)}else if(i.reflectToAttribute===false&&t._hasReflectEffect(e)){console.warn(`Cannot make reflected property '${e}' non-reflected.`)}if(i.notify&&!t._hasNotifyEffect(e)){t._createNotifyingProperty(e)}else if(i.notify===false&&t._hasNotifyEffect(e)){console.warn(`Cannot make notify property '${e}' non-notify.`)}if(i.observer){t._createPropertyObserver(e,i.observer,s[i.observer])}t._addPropertyToAttributeMap(e)}function o(t,e,i,s){if(!Ds){const r=e.content.querySelectorAll("style");const o=ke(e);const n=Ae(i);const a=e.content.firstElementChild;for(let i=0;i<n.length;i++){let r=n[i];r.textContent=t._processStyleText(r.textContent,s);e.content.insertBefore(r,a)}let l=0;for(let e=0;e<o.length;e++){let i=o[e];let n=r[l];if(n!==i){i=i.cloneNode(true);n.parentNode.insertBefore(i,n)}else{l++}i.textContent=t._processStyleText(i.textContent,s)}}if(window.ShadyCSS){window.ShadyCSS.prepareTemplate(e,i)}if(ae&&Ds&&Vt){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)}}}function n(t){let e=null;if(t&&(!Zt||Xt)){e=me.import(t,"template");if(Zt&&!e){throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`)}}return e}class a extends e{static get polymerElementVersion(){return As}static _finalizeClass(){e._finalizeClass.call(this);const t=s(this);if(t){this.createObservers(t,this._properties)}this._prepareTemplate()}static _prepareTemplate(){let t=this.template;if(t){if(typeof t==="string"){console.error("template getter must return HTMLTemplateElement");t=null}else if(!Qt){t=t.cloneNode(true)}}this.prototype._template=t}static createProperties(t){for(let e in t){r(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:undefined;if(typeof t==="function"){t=t()}this._template=t!==undefined?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(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=Yt(t.url)}else{const t=me.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=Jt;this.importPath=this.constructor.importPath;let t=i(this.constructor);if(!t){return}for(let e in t){let i=t[e];if(this._canApplyPropertyDefault(e)){let t=typeof i.value=="function"?i.value.call(this):i.value;if(this._hasAccessor(e)){this._setPendingProperty(e,t,true)}else{this[e]=t}}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return Gt(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=true;const i=this.importPath;const s=i?$t(i):"";o(this,e,t,s);this.prototype._bindTemplate(e)}}connectedCallback(){if(window.ShadyCSS&&this._template){window.ShadyCSS.styleElement(this)}super.connectedCallback()}ready(){if(this._template){this.root=this._stampTemplate(this._template);this.$=this.root.$}super.ready()}_readyClients(){if(this._template){this.root=this._attachDom(this.root)}super._readyClients()}_attachDom(t){const e=Ce(this);if(e.attachShadow){if(t){if(!e.shadowRoot){e.attachShadow({mode:"open",shadyUpgradeFragment:t});e.shadowRoot.appendChild(t);if(this.constructor._styleSheet){e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet]}}if(ee&&window.ShadyDOM){window.ShadyDOM.flushInitial(e.shadowRoot)}return e.shadowRoot}return null}else{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){if(window.ShadyCSS){window.ShadyCSS.styleSubtree(this,t)}}resolveUrl(t,e){if(!e&&this.importPath){e=$t(this.importPath)}return $t(t,e)}static _parseTemplateContent(t,i,s){i.dynamicFns=i.dynamicFns||this._properties;return e._parseTemplateContent.call(this,t,i,s)}static _addTemplatePropertyEffect(t,i,s){if(te&&!(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.`)}return e._addTemplatePropertyEffect.call(this,t,i,s)}}return a}));
706
706
  /**
707
707
  @license
708
708
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -711,7 +711,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
711
711
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
712
712
  Code distributed by Google as part of the polymer project is also
713
713
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
714
- */const Cs=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Ts{constructor(t,e){Ps(t,e);const i=e.reduce(((e,i,s)=>e+Ss(i)+t[s+1]),t[0]);this.value=i.toString()}toString(){return this.value}}function Ss(t){if(t instanceof Ts){return t.value}else{throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}}function Ms(t){if(t instanceof HTMLTemplateElement){return t.innerHTML}else if(t instanceof Ts){return Ss(t)}else{throw new Error(`non-template value passed to Polymer's html function: ${t}`)}}const zs=function t(e,...i){Ps(e,i);const s=document.createElement("template");let r=i.reduce(((t,i,s)=>t+Ms(i)+e[s+1]),e[0]);if(Cs){r=Cs.createHTML(r)}s.innerHTML=r;return s};const Ps=(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")}};
714
+ */const Ts=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Ss{constructor(t,e){Es(t,e);const i=e.reduce(((e,i,s)=>e+Ms(i)+t[s+1]),t[0]);this.value=i.toString()}toString(){return this.value}}function Ms(t){if(t instanceof Ss){return t.value}else{throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}}function zs(t){if(t instanceof HTMLTemplateElement){return t.innerHTML}else if(t instanceof Ss){return Ms(t)}else{throw new Error(`non-template value passed to Polymer's html function: ${t}`)}}const Ps=function t(e,...i){Es(e,i);const s=document.createElement("template");let r=i.reduce(((t,i,s)=>t+zs(i)+e[s+1]),e[0]);if(Ts){r=Ts.createHTML(r)}s.innerHTML=r;return s};const Es=(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")}};
715
715
  /**
716
716
  @license
717
717
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -720,22 +720,22 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
720
720
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
721
721
  Code distributed by Google as part of the polymer project is also
722
722
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
723
- */const Es=Ds(HTMLElement);
723
+ */const Fs=Cs(HTMLElement);
724
724
  /**
725
725
  * @license
726
726
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
727
727
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
728
- */class Fs{static detectScrollType(){const t=document.createElement("div");t.textContent="ABCD";t.dir="rtl";t.style.fontSize="14px";t.style.width="4px";t.style.height="1px";t.style.position="absolute";t.style.top="-1000px";t.style.overflow="scroll";document.body.appendChild(t);let e="reverse";if(t.scrollLeft>0){e="default"}else{t.scrollLeft=2;if(t.scrollLeft<2){e="negative"}}document.body.removeChild(t);return e}static getNormalizedScrollLeft(t,e,i){const{scrollLeft:s}=i;if(e!=="rtl"||!t){return s}switch(t){case"negative":return i.scrollWidth-i.clientWidth+s;case"reverse":return i.scrollWidth-i.clientWidth-s;default:return s}}static setNormalizedScrollLeft(t,e,i,s){if(e!=="rtl"||!t){i.scrollLeft=s;return}switch(t){case"negative":i.scrollLeft=i.clientWidth-i.scrollWidth+s;break;case"reverse":i.scrollLeft=i.scrollWidth-i.clientWidth-s;break;default:i.scrollLeft=s;break}}}
728
+ */class Os{static detectScrollType(){const t=document.createElement("div");t.textContent="ABCD";t.dir="rtl";t.style.fontSize="14px";t.style.width="4px";t.style.height="1px";t.style.position="absolute";t.style.top="-1000px";t.style.overflow="scroll";document.body.appendChild(t);let e="reverse";if(t.scrollLeft>0){e="default"}else{t.scrollLeft=2;if(t.scrollLeft<2){e="negative"}}document.body.removeChild(t);return e}static getNormalizedScrollLeft(t,e,i){const{scrollLeft:s}=i;if(e!=="rtl"||!t){return s}switch(t){case"negative":return i.scrollWidth-i.clientWidth+s;case"reverse":return i.scrollWidth-i.clientWidth-s;default:return s}}static setNormalizedScrollLeft(t,e,i,s){if(e!=="rtl"||!t){i.scrollLeft=s;return}switch(t){case"negative":i.scrollLeft=i.clientWidth-i.scrollWidth+s;break;case"reverse":i.scrollLeft=i.scrollWidth-i.clientWidth-s;break;default:i.scrollLeft=s;break}}}
729
729
  /**
730
730
  * @license
731
731
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
732
732
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
733
- */const Os=[];function Bs(){const t=js();Os.forEach((e=>{Rs(e,t)}))}let Is;const Ns=new MutationObserver(Bs);Ns.observe(document.documentElement,{attributes:true,attributeFilter:["dir"]});function Rs(t,e,i=t.getAttribute("dir")){if(e){t.setAttribute("dir",e)}else if(i!=null){t.removeAttribute("dir")}}function js(){return document.documentElement.getAttribute("dir")}const Ls=t=>class e extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:true,converter:{fromAttribute:t=>!t?"":t,toAttribute:t=>t===""?null:t}}}}static finalize(){super.finalize();if(!Is){Is=Fs.detectScrollType()}}connectedCallback(){super.connectedCallback();if(!this.hasAttribute("dir")||this.__restoreSubscription){this.__subscribe();Rs(this,js(),null)}}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i);if(t!=="dir"){return}const s=js();const r=i===s&&Os.indexOf(this)===-1;const o=!i&&e&&Os.indexOf(this)===-1;const n=i!==s&&e===s;if(r||o){this.__subscribe();Rs(this,s,i)}else if(n){this.__unsubscribe()}}disconnectedCallback(){super.disconnectedCallback();this.__restoreSubscription=Os.includes(this);this.__unsubscribe()}_valueToNodeAttribute(t,e,i){if(i==="dir"&&e===""&&!t.hasAttribute("dir")){return}super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){if(t==="dir"&&!e){this.dir=""}else{super._attributeToProperty(t,e,i)}}__subscribe(){if(!Os.includes(this)){Os.push(this)}}__unsubscribe(){if(Os.includes(this)){Os.splice(Os.indexOf(this),1)}}__getNormalizedScrollLeft(t){return Fs.getNormalizedScrollLeft(Is,this.getAttribute("dir")||"ltr",t)}__setNormalizedScrollLeft(t,e){return Fs.setNormalizedScrollLeft(Is,this.getAttribute("dir")||"ltr",t,e)}}
733
+ */const Bs=[];function Is(){const t=Ls();Bs.forEach((e=>{js(e,t)}))}let Ns;const Rs=new MutationObserver(Is);Rs.observe(document.documentElement,{attributes:true,attributeFilter:["dir"]});function js(t,e,i=t.getAttribute("dir")){if(e){t.setAttribute("dir",e)}else if(i!=null){t.removeAttribute("dir")}}function Ls(){return document.documentElement.getAttribute("dir")}const Hs=t=>class e extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:true,converter:{fromAttribute:t=>!t?"":t,toAttribute:t=>t===""?null:t}}}}static finalize(){super.finalize();if(!Ns){Ns=Os.detectScrollType()}}connectedCallback(){super.connectedCallback();if(!this.hasAttribute("dir")||this.__restoreSubscription){this.__subscribe();js(this,Ls(),null)}}attributeChangedCallback(t,e,i){super.attributeChangedCallback(t,e,i);if(t!=="dir"){return}const s=Ls();const r=i===s&&Bs.indexOf(this)===-1;const o=!i&&e&&Bs.indexOf(this)===-1;const n=i!==s&&e===s;if(r||o){this.__subscribe();js(this,s,i)}else if(n){this.__unsubscribe()}}disconnectedCallback(){super.disconnectedCallback();this.__restoreSubscription=Bs.includes(this);this.__unsubscribe()}_valueToNodeAttribute(t,e,i){if(i==="dir"&&e===""&&!t.hasAttribute("dir")){return}super._valueToNodeAttribute(t,e,i)}_attributeToProperty(t,e,i){if(t==="dir"&&!e){this.dir=""}else{super._attributeToProperty(t,e,i)}}__subscribe(){if(!Bs.includes(this)){Bs.push(this)}}__unsubscribe(){if(Bs.includes(this)){Bs.splice(Bs.indexOf(this),1)}}__getNormalizedScrollLeft(t){return Os.getNormalizedScrollLeft(Ns,this.getAttribute("dir")||"ltr",t)}__setNormalizedScrollLeft(t,e){return Os.setNormalizedScrollLeft(Ns,this.getAttribute("dir")||"ltr",t,e)}}
734
734
  /**
735
735
  * @license
736
736
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
737
737
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
738
- */;class Hs extends(Tt(Ls(Es))){static get is(){return"vaadin-input-container"}static get template(){return zs`
738
+ */;class Ws extends(St(Hs(Fs))){static get is(){return"vaadin-input-container"}static get template(){return Ps`
739
739
  <style>
740
740
  :host {
741
741
  display: flex;
@@ -786,12 +786,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
786
786
  <slot name="prefix"></slot>
787
787
  <slot></slot>
788
788
  <slot name="suffix"></slot>
789
- `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:true},readonly:{type:Boolean,reflectToAttribute:true},invalid:{type:Boolean,reflectToAttribute:true}}}ready(){super.ready();this.addEventListener("pointerdown",(t=>{if(t.target===this){t.preventDefault()}}));this.addEventListener("click",(t=>{if(t.target===this){this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:true}).forEach((t=>t.focus&&t.focus()))}}))}}customElements.define(Hs.is,Hs);
789
+ `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:true},readonly:{type:Boolean,reflectToAttribute:true},invalid:{type:Boolean,reflectToAttribute:true}}}ready(){super.ready();this.addEventListener("pointerdown",(t=>{if(t.target===this){t.preventDefault()}}));this.addEventListener("click",(t=>{if(t.target===this){this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:true}).forEach((t=>t.focus&&t.focus()))}}))}}customElements.define(Ws.is,Ws);
790
790
  /**
791
791
  * @license
792
792
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
793
793
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
794
- */const Ws=p`
794
+ */const Us=p`
795
795
  :host {
796
796
  /* Square */
797
797
  --lumo-space-xs: 0.25rem;
@@ -814,12 +814,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
814
814
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
815
815
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
816
816
  }
817
- `;const Us=document.createElement("template");Us.innerHTML=`<style>${Ws.toString().replace(":host","html")}</style>`;document.head.appendChild(Us.content);
817
+ `;const $s=document.createElement("template");$s.innerHTML=`<style>${Us.toString().replace(":host","html")}</style>`;document.head.appendChild($s.content);
818
818
  /**
819
819
  * @license
820
820
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
821
821
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
822
- */const $s=p`
822
+ */const Gs=p`
823
823
  :host {
824
824
  top: var(--lumo-space-m);
825
825
  right: var(--lumo-space-m);
@@ -882,7 +882,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
882
882
  opacity: 1;
883
883
  }
884
884
  }
885
- `;gt("",$s,{moduleId:"lumo-overlay"});gt("vaadin-overlay",$s,{moduleId:"lumo-vaadin-overlay"});
885
+ `;vt("",Gs,{moduleId:"lumo-overlay"});vt("vaadin-overlay",Gs,{moduleId:"lumo-vaadin-overlay"});
886
886
  /**
887
887
  @license
888
888
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -891,7 +891,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
891
891
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
892
892
  Code distributed by Google as part of the polymer project is also
893
893
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
894
- */function Gs(t,e,i){return{index:t,removed:e,addedCount:i}}const Ys=0;const qs=1;const Vs=2;const Js=3;function Ks(t,e,i,s,r,o){let n=o-r+1;let a=i-e+1;let l=new Array(n);for(let t=0;t<n;t++){l[t]=new Array(a);l[t][0]=t}for(let t=0;t<a;t++)l[0][t]=t;for(let i=1;i<n;i++){for(let o=1;o<a;o++){if(ir(t[e+o-1],s[r+i-1]))l[i][o]=l[i-1][o-1];else{let t=l[i-1][o]+1;let e=l[i][o-1]+1;l[i][o]=t<e?t:e}}}return l}function Zs(t){let e=t.length-1;let i=t[0].length-1;let s=t[e][i];let r=[];while(e>0||i>0){if(e==0){r.push(Vs);i--;continue}if(i==0){r.push(Js);e--;continue}let o=t[e-1][i-1];let n=t[e-1][i];let a=t[e][i-1];let l;if(n<a)l=n<o?n:o;else l=a<o?a:o;if(l==o){if(o==s){r.push(Ys)}else{r.push(qs);s=o}e--;i--}else if(l==n){r.push(Js);e--;s=n}else{r.push(Vs);i--;s=a}}r.reverse();return r}function Xs(t,e,i,s,r,o){let n=0;let a=0;let l;let h=Math.min(i-e,o-r);if(e==0&&r==0)n=Qs(t,s,h);if(i==t.length&&o==s.length)a=tr(t,s,h-n);e+=n;r+=n;i-=a;o-=a;if(i-e==0&&o-r==0)return[];if(e==i){l=Gs(e,[],0);while(r<o)l.removed.push(s[r++]);return[l]}else if(r==o)return[Gs(e,[],i-e)];let c=Zs(Ks(t,e,i,s,r,o));l=undefined;let u=[];let d=e;let f=r;for(let t=0;t<c.length;t++){switch(c[t]){case Ys:if(l){u.push(l);l=undefined}d++;f++;break;case qs:if(!l)l=Gs(d,[],0);l.addedCount++;d++;l.removed.push(s[f]);f++;break;case Vs:if(!l)l=Gs(d,[],0);l.addedCount++;d++;break;case Js:if(!l)l=Gs(d,[],0);l.removed.push(s[f]);f++;break}}if(l){u.push(l)}return u}function Qs(t,e,i){for(let s=0;s<i;s++)if(!ir(t[s],e[s]))return s;return i}function tr(t,e,i){let s=t.length;let r=e.length;let o=0;while(o<i&&ir(t[--s],e[--r]))o++;return o}function er(t,e){return Xs(t,0,t.length,e,0,e.length)}function ir(t,e){return t===e}
894
+ */function Ys(t,e,i){return{index:t,removed:e,addedCount:i}}const qs=0;const Vs=1;const Js=2;const Ks=3;function Zs(t,e,i,s,r,o){let n=o-r+1;let a=i-e+1;let l=new Array(n);for(let t=0;t<n;t++){l[t]=new Array(a);l[t][0]=t}for(let t=0;t<a;t++)l[0][t]=t;for(let i=1;i<n;i++){for(let o=1;o<a;o++){if(sr(t[e+o-1],s[r+i-1]))l[i][o]=l[i-1][o-1];else{let t=l[i-1][o]+1;let e=l[i][o-1]+1;l[i][o]=t<e?t:e}}}return l}function Xs(t){let e=t.length-1;let i=t[0].length-1;let s=t[e][i];let r=[];while(e>0||i>0){if(e==0){r.push(Js);i--;continue}if(i==0){r.push(Ks);e--;continue}let o=t[e-1][i-1];let n=t[e-1][i];let a=t[e][i-1];let l;if(n<a)l=n<o?n:o;else l=a<o?a:o;if(l==o){if(o==s){r.push(qs)}else{r.push(Vs);s=o}e--;i--}else if(l==n){r.push(Ks);e--;s=n}else{r.push(Js);i--;s=a}}r.reverse();return r}function Qs(t,e,i,s,r,o){let n=0;let a=0;let l;let h=Math.min(i-e,o-r);if(e==0&&r==0)n=tr(t,s,h);if(i==t.length&&o==s.length)a=er(t,s,h-n);e+=n;r+=n;i-=a;o-=a;if(i-e==0&&o-r==0)return[];if(e==i){l=Ys(e,[],0);while(r<o)l.removed.push(s[r++]);return[l]}else if(r==o)return[Ys(e,[],i-e)];let c=Xs(Zs(t,e,i,s,r,o));l=undefined;let u=[];let d=e;let f=r;for(let t=0;t<c.length;t++){switch(c[t]){case qs:if(l){u.push(l);l=undefined}d++;f++;break;case Vs:if(!l)l=Ys(d,[],0);l.addedCount++;d++;l.removed.push(s[f]);f++;break;case Js:if(!l)l=Ys(d,[],0);l.addedCount++;d++;break;case Ks:if(!l)l=Ys(d,[],0);l.removed.push(s[f]);f++;break}}if(l){u.push(l)}return u}function tr(t,e,i){for(let s=0;s<i;s++)if(!sr(t[s],e[s]))return s;return i}function er(t,e,i){let s=t.length;let r=e.length;let o=0;while(o<i&&sr(t[--s],e[--r]))o++;return o}function ir(t,e){return Qs(t,0,t.length,e,0,e.length)}function sr(t,e){return t===e}
895
895
  /**
896
896
  @license
897
897
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -900,7 +900,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
900
900
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
901
901
  Code distributed by Google as part of the polymer project is also
902
902
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
903
- */function sr(t){return t.localName==="slot"}let rr=class{static getFlattenedNodes(t){const e=De(t);if(sr(t)){t=t;return e.assignedNodes({flatten:true})}else{return Array.from(e.childNodes).map((t=>{if(sr(t)){t=t;return De(t).assignedNodes({flatten:true})}else{return[t]}})).reduce(((t,e)=>t.concat(e)),[])}}constructor(t,e){this._shadyChildrenObserver=null;this._nativeChildrenObserver=null;this._connected=false;this._target=t;this.callback=e;this._effectiveNodes=[];this._observer=null;this._scheduled=false;this._boundSchedule=()=>{this._schedule()};this.connect();this._schedule()}connect(){if(sr(this._target)){this._listenSlots([this._target])}else if(De(this._target).children){this._listenSlots(De(this._target).children);if(window.ShadyDOM){this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,(t=>{this._processMutations(t)}))}else{this._nativeChildrenObserver=new MutationObserver((t=>{this._processMutations(t)}));this._nativeChildrenObserver.observe(this._target,{childList:true})}}this._connected=true}disconnect(){if(sr(this._target)){this._unlistenSlots([this._target])}else if(De(this._target).children){this._unlistenSlots(De(this._target).children);if(window.ShadyDOM&&this._shadyChildrenObserver){window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver);this._shadyChildrenObserver=null}else if(this._nativeChildrenObserver){this._nativeChildrenObserver.disconnect();this._nativeChildrenObserver=null}}this._connected=false}_schedule(){if(!this._scheduled){this._scheduled=true;Je.run((()=>this.flush()))}}_processMutations(t){this._processSlotMutations(t);this.flush()}_processSlotMutations(t){if(t){for(let e=0;e<t.length;e++){let i=t[e];if(i.addedNodes){this._listenSlots(i.addedNodes)}if(i.removedNodes){this._unlistenSlots(i.removedNodes)}}}}flush(){if(!this._connected){return false}if(window.ShadyDOM){ShadyDOM.flush()}if(this._nativeChildrenObserver){this._processSlotMutations(this._nativeChildrenObserver.takeRecords())}else if(this._shadyChildrenObserver){this._processSlotMutations(this._shadyChildrenObserver.takeRecords())}this._scheduled=false;let t={target:this._target,addedNodes:[],removedNodes:[]};let e=this.constructor.getFlattenedNodes(this._target);let i=er(e,this._effectiveNodes);for(let e=0,s;e<i.length&&(s=i[e]);e++){for(let e=0,i;e<s.removed.length&&(i=s.removed[e]);e++){t.removedNodes.push(i)}}for(let s=0,r;s<i.length&&(r=i[s]);s++){for(let i=r.index;i<r.index+r.addedCount;i++){t.addedNodes.push(e[i])}}this._effectiveNodes=e;let s=false;if(t.addedNodes.length||t.removedNodes.length){s=true;this.callback.call(this._target,t)}return s}_listenSlots(t){for(let e=0;e<t.length;e++){let i=t[e];if(sr(i)){i.addEventListener("slotchange",this._boundSchedule)}}}_unlistenSlots(t){for(let e=0;e<t.length;e++){let i=t[e];if(sr(i)){i.removeEventListener("slotchange",this._boundSchedule)}}}};
903
+ */function rr(t){return t.localName==="slot"}let or=class{static getFlattenedNodes(t){const e=Ce(t);if(rr(t)){t=t;return e.assignedNodes({flatten:true})}else{return Array.from(e.childNodes).map((t=>{if(rr(t)){t=t;return Ce(t).assignedNodes({flatten:true})}else{return[t]}})).reduce(((t,e)=>t.concat(e)),[])}}constructor(t,e){this._shadyChildrenObserver=null;this._nativeChildrenObserver=null;this._connected=false;this._target=t;this.callback=e;this._effectiveNodes=[];this._observer=null;this._scheduled=false;this._boundSchedule=()=>{this._schedule()};this.connect();this._schedule()}connect(){if(rr(this._target)){this._listenSlots([this._target])}else if(Ce(this._target).children){this._listenSlots(Ce(this._target).children);if(window.ShadyDOM){this._shadyChildrenObserver=window.ShadyDOM.observeChildren(this._target,(t=>{this._processMutations(t)}))}else{this._nativeChildrenObserver=new MutationObserver((t=>{this._processMutations(t)}));this._nativeChildrenObserver.observe(this._target,{childList:true})}}this._connected=true}disconnect(){if(rr(this._target)){this._unlistenSlots([this._target])}else if(Ce(this._target).children){this._unlistenSlots(Ce(this._target).children);if(window.ShadyDOM&&this._shadyChildrenObserver){window.ShadyDOM.unobserveChildren(this._shadyChildrenObserver);this._shadyChildrenObserver=null}else if(this._nativeChildrenObserver){this._nativeChildrenObserver.disconnect();this._nativeChildrenObserver=null}}this._connected=false}_schedule(){if(!this._scheduled){this._scheduled=true;Ke.run((()=>this.flush()))}}_processMutations(t){this._processSlotMutations(t);this.flush()}_processSlotMutations(t){if(t){for(let e=0;e<t.length;e++){let i=t[e];if(i.addedNodes){this._listenSlots(i.addedNodes)}if(i.removedNodes){this._unlistenSlots(i.removedNodes)}}}}flush(){if(!this._connected){return false}if(window.ShadyDOM){ShadyDOM.flush()}if(this._nativeChildrenObserver){this._processSlotMutations(this._nativeChildrenObserver.takeRecords())}else if(this._shadyChildrenObserver){this._processSlotMutations(this._shadyChildrenObserver.takeRecords())}this._scheduled=false;let t={target:this._target,addedNodes:[],removedNodes:[]};let e=this.constructor.getFlattenedNodes(this._target);let i=ir(e,this._effectiveNodes);for(let e=0,s;e<i.length&&(s=i[e]);e++){for(let e=0,i;e<s.removed.length&&(i=s.removed[e]);e++){t.removedNodes.push(i)}}for(let s=0,r;s<i.length&&(r=i[s]);s++){for(let i=r.index;i<r.index+r.addedCount;i++){t.addedNodes.push(e[i])}}this._effectiveNodes=e;let s=false;if(t.addedNodes.length||t.removedNodes.length){s=true;this.callback.call(this._target,t)}return s}_listenSlots(t){for(let e=0;e<t.length;e++){let i=t[e];if(rr(i)){i.addEventListener("slotchange",this._boundSchedule)}}}_unlistenSlots(t){for(let e=0;e<t.length;e++){let i=t[e];if(rr(i)){i.removeEventListener("slotchange",this._boundSchedule)}}}};
904
904
  /**
905
905
  @license
906
906
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -909,7 +909,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
909
909
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
910
910
  Code distributed by Google as part of the polymer project is also
911
911
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
912
- */let or=false;let nr=[];let ar=[];function lr(){or=true;requestAnimationFrame((function(){or=false;hr(nr);setTimeout((function(){cr(ar)}))}))}function hr(t){while(t.length){ur(t.shift())}}function cr(t){for(let e=0,i=t.length;e<i;e++){ur(t.shift())}}function ur(t){const e=t[0];const i=t[1];const s=t[2];try{i.apply(e,s)}catch(t){setTimeout((()=>{throw t}))}}function dr(t,e,i){if(!or){lr()}ar.push([t,e,i])}
912
+ */let nr=false;let ar=[];let lr=[];function hr(){nr=true;requestAnimationFrame((function(){nr=false;cr(ar);setTimeout((function(){ur(lr)}))}))}function cr(t){while(t.length){dr(t.shift())}}function ur(t){for(let e=0,i=t.length;e<i;e++){dr(t.shift())}}function dr(t){const e=t[0];const i=t[1];const s=t[2];try{i.apply(e,s)}catch(t){setTimeout((()=>{throw t}))}}function fr(t,e,i){if(!nr){hr()}lr.push([t,e,i])}
913
913
  /**
914
914
  @license
915
915
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -918,7 +918,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
918
918
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
919
919
  Code distributed by Google as part of the polymer project is also
920
920
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
921
- */function fr(t,e,i,s,r){let o;if(r){o=typeof i==="object"&&i!==null;if(o){s=t.__dataTemp[e]}}let n=s!==i&&(s===s||i===i);if(o&&n){t.__dataTemp[e]=i}return n}const pr=le((t=>{class e extends t{_shouldPropertyChange(t,e,i){return fr(this,t,e,i,true)}}return e}));const mr=le((t=>{class e extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,i){return fr(this,t,e,i,this.mutableData)}}return e}));pr._mutablePropertyChange=fr;
921
+ */function pr(t,e,i,s,r){let o;if(r){o=typeof i==="object"&&i!==null;if(o){s=t.__dataTemp[e]}}let n=s!==i&&(s===s||i===i);if(o&&n){t.__dataTemp[e]=i}return n}const mr=he((t=>{class e extends t{_shouldPropertyChange(t,e,i){return pr(this,t,e,i,true)}}return e}));const br=he((t=>{class e extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,i){return pr(this,t,e,i,this.mutableData)}}return e}));mr._mutablePropertyChange=pr;
922
922
  /**
923
923
  @license
924
924
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -927,32 +927,32 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
927
927
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
928
928
  Code distributed by Google as part of the polymer project is also
929
929
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
930
- */let br=null;function gr(){return br}gr.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:gr,writable:true}});const vr=ys(gr);const yr=pr(vr);function wr(t,e){br=t;Object.setPrototypeOf(t,e.prototype);new e;br=null}const xr=ys(class{});function _r(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){if(t){s.__polymerTextContent__=s.textContent;s.textContent=""}else{s.textContent=s.__polymerTextContent__}}else if(s.localName==="slot"){if(t){s.__polymerReplaced__=document.createComment("hidden-slot");De(De(s).parentNode).replaceChild(s.__polymerReplaced__,s)}else{const t=s.__polymerReplaced__;if(t){De(De(t).parentNode).replaceChild(s,t)}}}else if(s.style){if(t){s.__polymerDisplay__=s.style.display;s.style.display="none"}else{s.style.display=s.__polymerDisplay__}}}s.__hideTemplateChildren__=t;if(s._showHideChildren){s._showHideChildren(t)}}}class kr extends xr{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}if(this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__){this._showHideChildren(true)}let i=this.__templatizeOptions;if(t&&i.instanceProps||!i.instanceProps){this._enableProperties()}}_configureProperties(t){let e=this.__templatizeOptions;if(e.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){if(this._setPendingPropertyOrPath(t,e,false,true)){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;if(s){s._addEventListenerToNode(t,e,i)}}}_showHideChildren(t){_r(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){if(t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"){t.__polymerTextContent__=i}else{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 true}}const Ar=pr(kr);function Dr(t){let e=t.__dataHost;return e&&e._methodHost||e}function Cr(t,e,i){let s=i.mutableData?Ar:kr;if(Er.mixin){s=Er.mixin(s)}let r=class extends s{};r.prototype.__templatizeOptions=i;r.prototype._bindTemplate(t);Mr(r,t,e,i);return r}function Tr(t,e,i,s){let r=i.forwardHostProp;if(r&&e.hasHostProps){const o=t.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(o){let t=i.mutableData?yr:vr;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:Sr(t,r)});n.prototype._createNotifyingProperty("_host_"+t)}if(Qt&&s){Fr(e,i,s)}}if(t.__dataProto){Object.assign(t.__data,t.__dataProto)}if(o){wr(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){e="_host_"+e;if(e in t){const i=t[e];delete t[e];t.__data[e]=i}}}}}function Sr(t,e){return function t(i,s,r){e.call(i.__templatizeOwner,s.substring("_host_".length),r[s])}}function Mr(t,e,i,s){let r=i.hostProps||{};for(let e in s.instanceProps){delete r[e];let i=s.notifyInstanceProp;if(i){t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:zr(e,i)})}}if(s.forwardHostProp&&e.__dataHost){for(let e in r){if(!i.hasHostProps){i.hasHostProps=true}t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Pr()})}}}function zr(t,e){return function t(i,s,r){e.call(i.__templatizeOwner,i,s,r[s])}}function Pr(){return function t(e,i,s){e.__dataHost._setPendingPropertyOrPath("_host_"+i,s[i],true,true)}}function Er(t,e,i){if(Kt&&!Dr(t)){throw new Error("strictTemplatePolicy: template owner not trusted")}i=i||{};if(t.__templatizeOwner){throw new Error("A <template> can only be templatized once")}t.__templatizeOwner=e;const s=e?e.constructor:kr;let r=s._parseTemplate(t);let o=r.templatizeInstanceClass;if(!o){o=Cr(t,r,i);r.templatizeInstanceClass=o}const n=Dr(t);Tr(t,r,i,n);let a=class t extends o{};a.prototype._methodHost=n;a.prototype.__dataHost=t;a.prototype.__templatizeOwner=e;a.prototype.__hostProps=r.hostProps;a=a;return a}function Fr(t,e,i){const s=i.constructor._properties;const{propertyEffects:r}=t;const{instanceProps:o}=e;for(let t in r){if(!s[t]&&!(o&&o[t])){const e=r[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}}}}}function Or(t,e){let i;while(e){if(i=e.__dataHost?e:e.__templatizeInstance){if(i.__dataHost!=t){e=i.__dataHost}else{return i}}else{e=De(e).parentNode}}return null}
930
+ */let gr=null;function vr(){return gr}vr.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:vr,writable:true}});const yr=ws(vr);const wr=mr(yr);function xr(t,e){gr=t;Object.setPrototypeOf(t,e.prototype);new e;gr=null}const _r=ws(class{});function kr(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){if(t){s.__polymerTextContent__=s.textContent;s.textContent=""}else{s.textContent=s.__polymerTextContent__}}else if(s.localName==="slot"){if(t){s.__polymerReplaced__=document.createComment("hidden-slot");Ce(Ce(s).parentNode).replaceChild(s.__polymerReplaced__,s)}else{const t=s.__polymerReplaced__;if(t){Ce(Ce(t).parentNode).replaceChild(s,t)}}}else if(s.style){if(t){s.__polymerDisplay__=s.style.display;s.style.display="none"}else{s.style.display=s.__polymerDisplay__}}}s.__hideTemplateChildren__=t;if(s._showHideChildren){s._showHideChildren(t)}}}class Ar extends _r{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}if(this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__){this._showHideChildren(true)}let i=this.__templatizeOptions;if(t&&i.instanceProps||!i.instanceProps){this._enableProperties()}}_configureProperties(t){let e=this.__templatizeOptions;if(e.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){if(this._setPendingPropertyOrPath(t,e,false,true)){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;if(s){s._addEventListenerToNode(t,e,i)}}}_showHideChildren(t){kr(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){if(t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"){t.__polymerTextContent__=i}else{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 true}}const Dr=mr(Ar);function Cr(t){let e=t.__dataHost;return e&&e._methodHost||e}function Tr(t,e,i){let s=i.mutableData?Dr:Ar;if(Fr.mixin){s=Fr.mixin(s)}let r=class extends s{};r.prototype.__templatizeOptions=i;r.prototype._bindTemplate(t);zr(r,t,e,i);return r}function Sr(t,e,i,s){let r=i.forwardHostProp;if(r&&e.hasHostProps){const o=t.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(o){let t=i.mutableData?wr:yr;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:Mr(t,r)});n.prototype._createNotifyingProperty("_host_"+t)}if(te&&s){Or(e,i,s)}}if(t.__dataProto){Object.assign(t.__data,t.__dataProto)}if(o){xr(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){e="_host_"+e;if(e in t){const i=t[e];delete t[e];t.__data[e]=i}}}}}function Mr(t,e){return function t(i,s,r){e.call(i.__templatizeOwner,s.substring("_host_".length),r[s])}}function zr(t,e,i,s){let r=i.hostProps||{};for(let e in s.instanceProps){delete r[e];let i=s.notifyInstanceProp;if(i){t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Pr(e,i)})}}if(s.forwardHostProp&&e.__dataHost){for(let e in r){if(!i.hasHostProps){i.hasHostProps=true}t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Er()})}}}function Pr(t,e){return function t(i,s,r){e.call(i.__templatizeOwner,i,s,r[s])}}function Er(){return function t(e,i,s){e.__dataHost._setPendingPropertyOrPath("_host_"+i,s[i],true,true)}}function Fr(t,e,i){if(Zt&&!Cr(t)){throw new Error("strictTemplatePolicy: template owner not trusted")}i=i||{};if(t.__templatizeOwner){throw new Error("A <template> can only be templatized once")}t.__templatizeOwner=e;const s=e?e.constructor:Ar;let r=s._parseTemplate(t);let o=r.templatizeInstanceClass;if(!o){o=Tr(t,r,i);r.templatizeInstanceClass=o}const n=Cr(t);Sr(t,r,i,n);let a=class t extends o{};a.prototype._methodHost=n;a.prototype.__dataHost=t;a.prototype.__templatizeOwner=e;a.prototype.__hostProps=r.hostProps;a=a;return a}function Or(t,e,i){const s=i.constructor._properties;const{propertyEffects:r}=t;const{instanceProps:o}=e;for(let t in r){if(!s[t]&&!(o&&o[t])){const e=r[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}}}}}function Br(t,e){let i;while(e){if(i=e.__dataHost?e:e.__templatizeInstance){if(i.__dataHost!=t){e=i.__dataHost}else{return i}}else{e=Ce(e).parentNode}}return null}
931
931
  /**
932
932
  * @license
933
933
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
934
934
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
935
- */const Br=t=>t.test(navigator.userAgent);const Ir=t=>t.test(navigator.platform);const Nr=t=>t.test(navigator.vendor);Br(/Android/);Br(/Chrome/)&&Nr(/Google Inc/);const Rr=Br(/Firefox/);const jr=Ir(/^iPad/)||Ir(/^Mac/)&&navigator.maxTouchPoints>1;const Lr=Ir(/^iPhone/);const Hr=Lr||jr;Br(/^((?!chrome|android).)*safari/i);const Wr=(()=>{try{document.createEvent("TouchEvent");return true}catch(t){return false}})();
935
+ */const Ir=t=>t.test(navigator.userAgent);const Nr=t=>t.test(navigator.platform);const Rr=t=>t.test(navigator.vendor);Ir(/Android/);Ir(/Chrome/)&&Rr(/Google Inc/);const jr=Ir(/Firefox/);const Lr=Nr(/^iPad/)||Nr(/^Mac/)&&navigator.maxTouchPoints>1;const Hr=Nr(/^iPhone/);const Wr=Hr||Lr;Ir(/^((?!chrome|android).)*safari/i);const Ur=(()=>{try{document.createEvent("TouchEvent");return true}catch(t){return false}})();
936
936
  /**
937
937
  * @license
938
938
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
939
939
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
940
- */const Ur=le((t=>class e extends t{constructor(){super();this.__controllers=new Set}connectedCallback(){super.connectedCallback();this.__controllers.forEach((t=>{if(t.hostConnected){t.hostConnected()}}))}disconnectedCallback(){super.disconnectedCallback();this.__controllers.forEach((t=>{if(t.hostDisconnected){t.hostDisconnected()}}))}addController(t){this.__controllers.add(t);if(this.$!==undefined&&this.isConnected&&t.hostConnected){t.hostConnected()}}removeController(t){this.__controllers.delete(t)}}));
940
+ */const $r=he((t=>class e extends t{constructor(){super();this.__controllers=new Set}connectedCallback(){super.connectedCallback();this.__controllers.forEach((t=>{if(t.hostConnected){t.hostConnected()}}))}disconnectedCallback(){super.disconnectedCallback();this.__controllers.forEach((t=>{if(t.hostDisconnected){t.hostDisconnected()}}))}addController(t){this.__controllers.add(t);if(this.$!==undefined&&this.isConnected&&t.hostConnected){t.hostConnected()}}removeController(t){this.__controllers.delete(t)}}));
941
941
  /**
942
942
  * @license
943
943
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
944
944
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
945
- */let $r=false;window.addEventListener("keydown",(()=>{$r=true}),{capture:true});window.addEventListener("mousedown",(()=>{$r=false}),{capture:true});function Gr(){return $r}function Yr(t){const e=t.style;if(e.visibility==="hidden"||e.display==="none"){return true}const i=window.getComputedStyle(t);if(i.visibility==="hidden"||i.display==="none"){return true}return false}function qr(t){if(!Xr(t)){return-1}const e=t.getAttribute("tabindex")||0;return Number(e)}function Vr(t,e){const i=Math.max(t.tabIndex,0);const s=Math.max(e.tabIndex,0);return i===0||s===0?s>i:i>s}function Jr(t,e){const i=[];while(t.length>0&&e.length>0){if(Vr(t[0],e[0])){i.push(e.shift())}else{i.push(t.shift())}}return i.concat(t,e)}function Kr(t){const e=t.length;if(e<2){return t}const i=Math.ceil(e/2);const s=Kr(t.slice(0,i));const r=Kr(t.slice(i));return Jr(s,r)}function Zr(t,e){if(t.nodeType!==Node.ELEMENT_NODE||Yr(t)){return false}const i=t;const s=qr(i);let r=s>0;if(s>=0){e.push(i)}let o=[];if(i.localName==="slot"){o=i.assignedNodes({flatten:true})}else{o=(i.shadowRoot||i).children}[...o].forEach((t=>{r=Zr(t,e)||r}));return r}function Xr(t){if(t.matches('[tabindex="-1"]')){return false}if(t.matches("input, select, textarea, button, object")){return t.matches(":not([disabled])")}return t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Qr(t){return t.getRootNode().activeElement===t}function to(t){const e=[];const i=Zr(t,e);if(i){return Kr(e)}return e}
945
+ */let Gr=false;window.addEventListener("keydown",(()=>{Gr=true}),{capture:true});window.addEventListener("mousedown",(()=>{Gr=false}),{capture:true});function Yr(){return Gr}function qr(t){const e=t.style;if(e.visibility==="hidden"||e.display==="none"){return true}const i=window.getComputedStyle(t);if(i.visibility==="hidden"||i.display==="none"){return true}return false}function Vr(t){if(!Qr(t)){return-1}const e=t.getAttribute("tabindex")||0;return Number(e)}function Jr(t,e){const i=Math.max(t.tabIndex,0);const s=Math.max(e.tabIndex,0);return i===0||s===0?s>i:i>s}function Kr(t,e){const i=[];while(t.length>0&&e.length>0){if(Jr(t[0],e[0])){i.push(e.shift())}else{i.push(t.shift())}}return i.concat(t,e)}function Zr(t){const e=t.length;if(e<2){return t}const i=Math.ceil(e/2);const s=Zr(t.slice(0,i));const r=Zr(t.slice(i));return Kr(s,r)}function Xr(t,e){if(t.nodeType!==Node.ELEMENT_NODE||qr(t)){return false}const i=t;const s=Vr(i);let r=s>0;if(s>=0){e.push(i)}let o=[];if(i.localName==="slot"){o=i.assignedNodes({flatten:true})}else{o=(i.shadowRoot||i).children}[...o].forEach((t=>{r=Xr(t,e)||r}));return r}function Qr(t){if(t.matches('[tabindex="-1"]')){return false}if(t.matches("input, select, textarea, button, object")){return t.matches(":not([disabled])")}return t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function to(t){return t.getRootNode().activeElement===t}function eo(t){const e=[];const i=Xr(t,e);if(i){return Zr(e)}return e}
946
946
  /**
947
947
  * @license
948
948
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
949
949
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
950
- */const eo=[];class io{constructor(t){this.host=t;this.__trapNode=null;this.__onKeyDown=this.__onKeyDown.bind(this)}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){this.__trapNode=t;if(this.__focusableElements.length===0){this.__trapNode=null;throw new Error("The trap node should have at least one focusable descendant or be focusable itself.")}eo.push(this);if(this.__focusedElementIndex===-1){this.__focusableElements[0].focus()}}releaseFocus(){this.__trapNode=null;eo.pop()}__onKeyDown(t){if(!this.__trapNode){return}if(this!==Array.from(eo).pop()){return}if(t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=false){const e=this.__focusableElements;const i=t?-1:1;const s=this.__focusedElementIndex;const r=(e.length+s+i)%e.length;const o=e[r];o.focus();if(o.localName==="input"){o.select()}}get __focusableElements(){return to(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Qr).pop())}}
950
+ */const io=[];class so{constructor(t){this.host=t;this.__trapNode=null;this.__onKeyDown=this.__onKeyDown.bind(this)}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){this.__trapNode=t;if(this.__focusableElements.length===0){this.__trapNode=null;throw new Error("The trap node should have at least one focusable descendant or be focusable itself.")}io.push(this);if(this.__focusedElementIndex===-1){this.__focusableElements[0].focus()}}releaseFocus(){this.__trapNode=null;io.pop()}__onKeyDown(t){if(!this.__trapNode){return}if(this!==Array.from(io).pop()){return}if(t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=false){const e=this.__focusableElements;const i=t?-1:1;const s=this.__focusedElementIndex;const r=(e.length+s+i)%e.length;const o=e[r];o.focus();if(o.localName==="input"){o.select()}}get __focusableElements(){return eo(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(to).pop())}}
951
951
  /**
952
952
  * @license
953
953
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
954
954
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
955
- */class so extends(Tt(Ls(Ur(Es)))){static get template(){return zs`
955
+ */class ro extends(St(Hs($r(Fs)))){static get template(){return Ps`
956
956
  <style>
957
957
  :host {
958
958
  z-index: 200;
@@ -1024,12 +1024,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1024
1024
  <slot></slot>
1025
1025
  </div>
1026
1026
  </div>
1027
- `}static get is(){return"vaadin-overlay"}static get properties(){return{opened:{type:Boolean,notify:true,observer:"_openedChanged",reflectToAttribute:true},owner:Element,renderer:Function,template:{type:Object,notify:true},content:{type:Object,notify:true},withBackdrop:{type:Boolean,value:false,reflectToAttribute:true},model:Object,modeless:{type:Boolean,value:false,reflectToAttribute:true,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:true,observer:"_hiddenChanged"},focusTrap:{type:Boolean,value:false},restoreFocusOnClose:{type:Boolean,value:false},restoreFocusNode:{type:HTMLElement},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldRenderer:Object,_oldOpened:Boolean}}static get observers(){return["_templateOrRendererChanged(template, 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);this._observer=new rr(this,(t=>{this._setTemplateFromNodes(t.addedNodes)}));this._boundIronOverlayCanceledListener=this._ironOverlayCanceled.bind(this);if(Hr){this._boundIosResizeListener=()=>this._detectIosNavbar()}this.__focusTrapController=new io(this)}ready(){super.ready();this._observer.flush();this.addEventListener("click",(()=>{}));this.$.backdrop.addEventListener("click",(()=>{}));this.addController(this.__focusTrapController)}_detectIosNavbar(){if(!this.opened){return}const t=window.innerHeight;const e=window.innerWidth;const i=e>t;const s=document.documentElement.clientHeight;if(i&&s>t){this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-t}px`)}else{this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}}_setTemplateFromNodes(t){this.template=t.find((t=>t.localName&&t.localName==="template"))||this.template}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(!e.defaultPrevented){this.opened=false}}connectedCallback(){super.connectedCallback();if(this._boundIosResizeListener){this._detectIosNavbar();window.addEventListener("resize",this._boundIosResizeListener)}}disconnectedCallback(){super.disconnectedCallback();if(this._boundIosResizeListener){window.removeEventListener("resize",this._boundIosResizeListener)}}requestContentUpdate(){if(this.renderer){this.renderer.call(this.owner,this.content,this.owner,this.model)}}_ironOverlayCanceled(t){t.preventDefault()}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=false;this._mouseUpInside=false;return}if(!this._last){return}const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(this.opened&&!e.defaultPrevented){this.close(t)}}_keydownListener(t){if(!this._last){return}if(this.modeless&&!t.composedPath().includes(this.$.overlay)){return}if(t.key==="Escape"){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(this.opened&&!e.defaultPrevented){this.close(t)}}}_ensureTemplatized(){this._setTemplateFromNodes(Array.from(this.children))}_openedChanged(t,e){if(!this._instance){this._ensureTemplatized()}if(t){this.__restoreFocusNode=this._getActiveElement();this._animatedOpening();dr(this,(()=>{if(this.focusTrap){this.__focusTrapController.trapFocus(this.$.overlay)}const t=new CustomEvent("vaadin-overlay-open",{bubbles:true});this.dispatchEvent(t)}));document.addEventListener("keydown",this._boundKeydownListener);if(!this.modeless){this._addGlobalListeners()}}else if(e){if(this.focusTrap){this.__focusTrapController.releaseFocus()}this._animatedClosing();document.removeEventListener("keydown",this._boundKeydownListener);if(!this.modeless){this._removeGlobalListeners()}}}_hiddenChanged(t){if(t&&this.hasAttribute("closing")){this._flushAnimation("closing")}}_shouldAnimate(){const t=getComputedStyle(this).getPropertyValue("animation-name");const e=getComputedStyle(this).getPropertyValue("display")==="none";return!e&&t&&t!=="none"}_enqueueAnimation(t,e){const i=`__${t}Handler`;const s=t=>{if(t&&t.target!==this){return}e();this.removeEventListener("animationend",s);delete this[i]};this[i]=s;this.addEventListener("animationend",s)}_flushAnimation(t){const e=`__${t}Handler`;if(typeof this[e]==="function"){this[e]()}}_animatedOpening(){if(this.parentNode===document.body&&this.hasAttribute("closing")){this._flushAnimation("closing")}this._attachOverlay();if(!this.modeless){this._enterModalState()}this.setAttribute("opening","");if(this._shouldAnimate()){this._enqueueAnimation("opening",(()=>{this._finishOpening()}))}else{this._finishOpening()}}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder");this.parentNode.insertBefore(this._placeholder,this);document.body.appendChild(this);this.bringToFront()}_finishOpening(){document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener);this.removeAttribute("opening")}_finishClosing(){document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener);this._detachOverlay();this.$.overlay.style.removeProperty("pointer-events");this.removeAttribute("closing")}_animatedClosing(){if(this.hasAttribute("opening")){this._flushAnimation("opening")}if(this._placeholder){this._exitModalState();const t=this.restoreFocusNode||this.__restoreFocusNode;if(this.restoreFocusOnClose&&t){const e=this._getActiveElement();if(e===document.body||this._deepContains(e)){setTimeout((()=>t.focus()))}this.__restoreFocusNode=null}this.setAttribute("closing","");this.dispatchEvent(new CustomEvent("vaadin-overlay-closing"));if(this._shouldAnimate()){this._enqueueAnimation("closing",(()=>{this._finishClosing()}))}else{this._finishClosing()}}}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder);this._placeholder.parentNode.removeChild(this._placeholder)}static get __attachedInstances(){return Array.from(document.body.children).filter((t=>t instanceof so&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0))}get _last(){return this===so.__attachedInstances.pop()}_modelessChanged(t){if(!t){if(this.opened){this._addGlobalListeners();this._enterModalState()}}else{this._removeGlobalListeners();this._exitModalState()}}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener);document.addEventListener("mouseup",this._boundMouseUpListener);document.documentElement.addEventListener("click",this._boundOutsideClickListener,true)}_enterModalState(){if(document.body.style.pointerEvents!=="none"){this._previousDocumentPointerEvents=document.body.style.pointerEvents;document.body.style.pointerEvents="none"}so.__attachedInstances.forEach((t=>{if(t!==this){t.shadowRoot.querySelector('[part="overlay"]').style.pointerEvents="none"}}))}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener);document.removeEventListener("mouseup",this._boundMouseUpListener);document.documentElement.removeEventListener("click",this._boundOutsideClickListener,true)}_exitModalState(){if(this._previousDocumentPointerEvents!==undefined){document.body.style.pointerEvents=this._previousDocumentPointerEvents;delete this._previousDocumentPointerEvents}const t=so.__attachedInstances;let e;while(e=t.pop()){if(e===this){continue}e.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events");if(!e.modeless){break}}}_removeOldContent(){if(!this.content||!this._contentNodes){return}this._observer.disconnect();this._contentNodes.forEach((t=>{if(t.parentNode===this.content){this.content.removeChild(t)}}));if(this._originalContentPart){this.$.content.parentNode.replaceChild(this._originalContentPart,this.$.content);this.$.content=this._originalContentPart;this._originalContentPart=undefined}this._observer.connect();this._contentNodes=undefined;this.content=undefined}_stampOverlayTemplate(t){this._removeOldContent();if(!t._Templatizer){t._Templatizer=Er(t,this,{forwardHostProp(t,e){if(this._instance){this._instance.forwardHostProp(t,e)}}})}this._instance=new t._Templatizer({});this._contentNodes=Array.from(this._instance.root.childNodes);const e=t._templateRoot||(t._templateRoot=t.getRootNode());if(e!==document){if(!this.$.content.shadowRoot){this.$.content.attachShadow({mode:"open"})}let t=Array.from(e.querySelectorAll("style")).reduce(((t,e)=>t+e.textContent),"");t=t.replace(/:host/g,":host-nomatch");if(t){const e=document.createElement("style");e.textContent=t;this.$.content.shadowRoot.appendChild(e);this._contentNodes.unshift(e)}this.$.content.shadowRoot.appendChild(this._instance.root);this.content=this.$.content.shadowRoot}else{this.appendChild(this._instance.root);this.content=this}}_removeNewRendererOrTemplate(t,e,i,s){if(t!==e){this.template=undefined}else if(i!==s){this.renderer=undefined}}_templateOrRendererChanged(t,e,i,s,r){if(t&&e){this._removeNewRendererOrTemplate(t,this._oldTemplate,e,this._oldRenderer);throw new Error("You should only use either a renderer or a template for overlay content")}const o=this._oldOwner!==i||this._oldModel!==s;this._oldModel=s;this._oldOwner=i;const n=this._oldTemplate!==t;this._oldTemplate=t;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==r;this._oldOpened=r;if(a){this.content=this;this.content.innerHTML="";delete this.content._$litPart$}if(t&&n){this._stampOverlayTemplate(t)}else if(e&&(a||l||o)){if(r){this.requestContentUpdate()}}}_getActiveElement(){let t=document.activeElement||document.body;while(t.shadowRoot&&t.shadowRoot.activeElement){t=t.shadowRoot.activeElement}return t}_deepContains(t){if(this.contains(t)){return true}let e=t;const i=t.ownerDocument;while(e&&e!==i&&e!==this){e=e.parentNode||e.host}return e===this}bringToFront(){let t="";const e=so.__attachedInstances.filter((t=>t!==this)).pop();if(e){const i=e.__zIndex;t=i+1}this.style.zIndex=t;this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(so.is,so);
1027
+ `}static get is(){return"vaadin-overlay"}static get properties(){return{opened:{type:Boolean,notify:true,observer:"_openedChanged",reflectToAttribute:true},owner:Element,renderer:Function,template:{type:Object,notify:true},content:{type:Object,notify:true},withBackdrop:{type:Boolean,value:false,reflectToAttribute:true},model:Object,modeless:{type:Boolean,value:false,reflectToAttribute:true,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:true,observer:"_hiddenChanged"},focusTrap:{type:Boolean,value:false},restoreFocusOnClose:{type:Boolean,value:false},restoreFocusNode:{type:HTMLElement},_mouseDownInside:{type:Boolean},_mouseUpInside:{type:Boolean},_instance:{type:Object},_originalContentPart:Object,_contentNodes:Array,_oldOwner:Element,_oldModel:Object,_oldTemplate:Object,_oldRenderer:Object,_oldOpened:Boolean}}static get observers(){return["_templateOrRendererChanged(template, 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);this._observer=new or(this,(t=>{this._setTemplateFromNodes(t.addedNodes)}));this._boundIronOverlayCanceledListener=this._ironOverlayCanceled.bind(this);if(Wr){this._boundIosResizeListener=()=>this._detectIosNavbar()}this.__focusTrapController=new so(this)}ready(){super.ready();this._observer.flush();this.addEventListener("click",(()=>{}));this.$.backdrop.addEventListener("click",(()=>{}));this.addController(this.__focusTrapController)}_detectIosNavbar(){if(!this.opened){return}const t=window.innerHeight;const e=window.innerWidth;const i=e>t;const s=document.documentElement.clientHeight;if(i&&s>t){this.style.setProperty("--vaadin-overlay-viewport-bottom",`${s-t}px`)}else{this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}}_setTemplateFromNodes(t){this.template=t.find((t=>t.localName&&t.localName==="template"))||this.template}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(!e.defaultPrevented){this.opened=false}}connectedCallback(){super.connectedCallback();if(this._boundIosResizeListener){this._detectIosNavbar();window.addEventListener("resize",this._boundIosResizeListener)}}disconnectedCallback(){super.disconnectedCallback();if(this._boundIosResizeListener){window.removeEventListener("resize",this._boundIosResizeListener)}}requestContentUpdate(){if(this.renderer){this.renderer.call(this.owner,this.content,this.owner,this.model)}}_ironOverlayCanceled(t){t.preventDefault()}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=false;this._mouseUpInside=false;return}if(!this._last){return}const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(this.opened&&!e.defaultPrevented){this.close(t)}}_keydownListener(t){if(!this._last){return}if(this.modeless&&!t.composedPath().includes(this.$.overlay)){return}if(t.key==="Escape"){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:true,cancelable:true,detail:{sourceEvent:t}});this.dispatchEvent(e);if(this.opened&&!e.defaultPrevented){this.close(t)}}}_ensureTemplatized(){this._setTemplateFromNodes(Array.from(this.children))}_openedChanged(t,e){if(!this._instance){this._ensureTemplatized()}if(t){this.__restoreFocusNode=this._getActiveElement();this._animatedOpening();fr(this,(()=>{if(this.focusTrap){this.__focusTrapController.trapFocus(this.$.overlay)}const t=new CustomEvent("vaadin-overlay-open",{bubbles:true});this.dispatchEvent(t)}));document.addEventListener("keydown",this._boundKeydownListener);if(!this.modeless){this._addGlobalListeners()}}else if(e){if(this.focusTrap){this.__focusTrapController.releaseFocus()}this._animatedClosing();document.removeEventListener("keydown",this._boundKeydownListener);if(!this.modeless){this._removeGlobalListeners()}}}_hiddenChanged(t){if(t&&this.hasAttribute("closing")){this._flushAnimation("closing")}}_shouldAnimate(){const t=getComputedStyle(this).getPropertyValue("animation-name");const e=getComputedStyle(this).getPropertyValue("display")==="none";return!e&&t&&t!=="none"}_enqueueAnimation(t,e){const i=`__${t}Handler`;const s=t=>{if(t&&t.target!==this){return}e();this.removeEventListener("animationend",s);delete this[i]};this[i]=s;this.addEventListener("animationend",s)}_flushAnimation(t){const e=`__${t}Handler`;if(typeof this[e]==="function"){this[e]()}}_animatedOpening(){if(this.parentNode===document.body&&this.hasAttribute("closing")){this._flushAnimation("closing")}this._attachOverlay();if(!this.modeless){this._enterModalState()}this.setAttribute("opening","");if(this._shouldAnimate()){this._enqueueAnimation("opening",(()=>{this._finishOpening()}))}else{this._finishOpening()}}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder");this.parentNode.insertBefore(this._placeholder,this);document.body.appendChild(this);this.bringToFront()}_finishOpening(){document.addEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener);this.removeAttribute("opening")}_finishClosing(){document.removeEventListener("iron-overlay-canceled",this._boundIronOverlayCanceledListener);this._detachOverlay();this.$.overlay.style.removeProperty("pointer-events");this.removeAttribute("closing")}_animatedClosing(){if(this.hasAttribute("opening")){this._flushAnimation("opening")}if(this._placeholder){this._exitModalState();const t=this.restoreFocusNode||this.__restoreFocusNode;if(this.restoreFocusOnClose&&t){const e=this._getActiveElement();if(e===document.body||this._deepContains(e)){setTimeout((()=>t.focus()))}this.__restoreFocusNode=null}this.setAttribute("closing","");this.dispatchEvent(new CustomEvent("vaadin-overlay-closing"));if(this._shouldAnimate()){this._enqueueAnimation("closing",(()=>{this._finishClosing()}))}else{this._finishClosing()}}}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder);this._placeholder.parentNode.removeChild(this._placeholder)}static get __attachedInstances(){return Array.from(document.body.children).filter((t=>t instanceof ro&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0))}get _last(){return this===ro.__attachedInstances.pop()}_modelessChanged(t){if(!t){if(this.opened){this._addGlobalListeners();this._enterModalState()}}else{this._removeGlobalListeners();this._exitModalState()}}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener);document.addEventListener("mouseup",this._boundMouseUpListener);document.documentElement.addEventListener("click",this._boundOutsideClickListener,true)}_enterModalState(){if(document.body.style.pointerEvents!=="none"){this._previousDocumentPointerEvents=document.body.style.pointerEvents;document.body.style.pointerEvents="none"}ro.__attachedInstances.forEach((t=>{if(t!==this){t.shadowRoot.querySelector('[part="overlay"]').style.pointerEvents="none"}}))}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener);document.removeEventListener("mouseup",this._boundMouseUpListener);document.documentElement.removeEventListener("click",this._boundOutsideClickListener,true)}_exitModalState(){if(this._previousDocumentPointerEvents!==undefined){document.body.style.pointerEvents=this._previousDocumentPointerEvents;delete this._previousDocumentPointerEvents}const t=ro.__attachedInstances;let e;while(e=t.pop()){if(e===this){continue}e.shadowRoot.querySelector('[part="overlay"]').style.removeProperty("pointer-events");if(!e.modeless){break}}}_removeOldContent(){if(!this.content||!this._contentNodes){return}this._observer.disconnect();this._contentNodes.forEach((t=>{if(t.parentNode===this.content){this.content.removeChild(t)}}));if(this._originalContentPart){this.$.content.parentNode.replaceChild(this._originalContentPart,this.$.content);this.$.content=this._originalContentPart;this._originalContentPart=undefined}this._observer.connect();this._contentNodes=undefined;this.content=undefined}_stampOverlayTemplate(t){this._removeOldContent();if(!t._Templatizer){t._Templatizer=Fr(t,this,{forwardHostProp(t,e){if(this._instance){this._instance.forwardHostProp(t,e)}}})}this._instance=new t._Templatizer({});this._contentNodes=Array.from(this._instance.root.childNodes);const e=t._templateRoot||(t._templateRoot=t.getRootNode());if(e!==document){if(!this.$.content.shadowRoot){this.$.content.attachShadow({mode:"open"})}let t=Array.from(e.querySelectorAll("style")).reduce(((t,e)=>t+e.textContent),"");t=t.replace(/:host/g,":host-nomatch");if(t){const e=document.createElement("style");e.textContent=t;this.$.content.shadowRoot.appendChild(e);this._contentNodes.unshift(e)}this.$.content.shadowRoot.appendChild(this._instance.root);this.content=this.$.content.shadowRoot}else{this.appendChild(this._instance.root);this.content=this}}_removeNewRendererOrTemplate(t,e,i,s){if(t!==e){this.template=undefined}else if(i!==s){this.renderer=undefined}}_templateOrRendererChanged(t,e,i,s,r){if(t&&e){this._removeNewRendererOrTemplate(t,this._oldTemplate,e,this._oldRenderer);throw new Error("You should only use either a renderer or a template for overlay content")}const o=this._oldOwner!==i||this._oldModel!==s;this._oldModel=s;this._oldOwner=i;const n=this._oldTemplate!==t;this._oldTemplate=t;const a=this._oldRenderer!==e;this._oldRenderer=e;const l=this._oldOpened!==r;this._oldOpened=r;if(a){this.content=this;this.content.innerHTML="";delete this.content._$litPart$}if(t&&n){this._stampOverlayTemplate(t)}else if(e&&(a||l||o)){if(r){this.requestContentUpdate()}}}_getActiveElement(){let t=document.activeElement||document.body;while(t.shadowRoot&&t.shadowRoot.activeElement){t=t.shadowRoot.activeElement}return t}_deepContains(t){if(this.contains(t)){return true}let e=t;const i=t.ownerDocument;while(e&&e!==i&&e!==this){e=e.parentNode||e.host}return e===this}bringToFront(){let t="";const e=ro.__attachedInstances.filter((t=>t!==this)).pop();if(e){const i=e.__zIndex;t=i+1}this.style.zIndex=t;this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}}customElements.define(ro.is,ro);
1028
1028
  /**
1029
1029
  * @license
1030
1030
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
1031
1031
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1032
- */const ro=p`
1032
+ */const oo=p`
1033
1033
  :host([opening]),
1034
1034
  :host([closing]) {
1035
1035
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -1059,7 +1059,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1059
1059
  opacity: 0;
1060
1060
  }
1061
1061
  }
1062
- `;gt("",ro,{moduleId:"lumo-menu-overlay-core"});const oo=p`
1062
+ `;vt("",oo,{moduleId:"lumo-menu-overlay-core"});const no=p`
1063
1063
  /* Small viewport (bottom sheet) styles */
1064
1064
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
1065
1065
  @media (max-width: 420px), (max-height: 420px) {
@@ -1121,7 +1121,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1121
1121
  transform: translateY(150%);
1122
1122
  }
1123
1123
  }
1124
- `;const no=[$s,ro,oo];gt("",no,{moduleId:"lumo-menu-overlay"});const ao=p`
1124
+ `;const ao=[Gs,oo,no];vt("",ao,{moduleId:"lumo-menu-overlay"});const lo=p`
1125
1125
  [part='overlay'] {
1126
1126
  /*
1127
1127
  Width:
@@ -1169,7 +1169,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1169
1169
  max-height: 70vh;
1170
1170
  }
1171
1171
  }
1172
- `;gt("vaadin-date-picker-overlay",[no,ao],{moduleId:"lumo-date-picker-overlay"});const lo=p`
1172
+ `;vt("vaadin-date-picker-overlay",[ao,lo],{moduleId:"lumo-date-picker-overlay"});const ho=p`
1173
1173
  :host {
1174
1174
  /* Sizing */
1175
1175
  --lumo-button-size: var(--lumo-size-m);
@@ -1422,7 +1422,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1422
1422
  margin-left: 0;
1423
1423
  margin-right: 0;
1424
1424
  }
1425
- `;gt("vaadin-button",lo,{moduleId:"lumo-button"});const ho=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i;const co=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function uo(){function t(){return true}return go(t)}function fo(){try{if(po()){return true}if(!mo()){return false}if(co){return!bo()}return!uo()}catch(t){return false}}function po(){return localStorage.getItem("vaadin.developmentmode.force")}function mo(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function bo(){if(co){const t=Object.keys(co).map((t=>co[t])).filter((t=>t.productionMode));if(t.length>0){return true}}return false}function go(t,e){if(typeof t!=="function"){return}const i=ho.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"]||{};const vo=function(t,e){if(window.Vaadin.developmentMode){return go(t,e)}};if(window.Vaadin.developmentMode===undefined){window.Vaadin.developmentMode=fo()}function yo(){}const wo=function(){if(typeof vo==="function"){return vo(yo)}};
1425
+ `;vt("vaadin-button",ho,{moduleId:"lumo-button"});const co=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i;const uo=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function fo(){function t(){return true}return vo(t)}function po(){try{if(mo()){return true}if(!bo()){return false}if(uo){return!go()}return!fo()}catch(t){return false}}function mo(){return localStorage.getItem("vaadin.developmentmode.force")}function bo(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function go(){if(uo){const t=Object.keys(uo).map((t=>uo[t])).filter((t=>t.productionMode));if(t.length>0){return true}}return false}function vo(t,e){if(typeof t!=="function"){return}const i=co.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"]||{};const yo=function(t,e){if(window.Vaadin.developmentMode){return vo(t,e)}};if(window.Vaadin.developmentMode===undefined){window.Vaadin.developmentMode=po()}function wo(){}const xo=function(){if(typeof yo==="function"){return yo(wo)}};
1426
1426
  /**
1427
1427
  * @license
1428
1428
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1431,7 +1431,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1431
1431
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1432
1432
  * Code distributed by Google as part of the polymer project is also
1433
1433
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1434
- */let xo=0;let _o=0;const ko=[];let Ao=0;let Do=false;const Co=document.createTextNode("");new window.MutationObserver(To).observe(Co,{characterData:true});function To(){Do=false;const t=ko.length;for(let e=0;e<t;e++){const t=ko[e];if(t){try{t()}catch(t){setTimeout((()=>{throw t}))}}}ko.splice(0,t);_o+=t}const So={after(t){return{run(e){return window.setTimeout(e,t)},cancel(t){window.clearTimeout(t)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}};const Mo={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){if(window.cancelIdleCallback){window.cancelIdleCallback(t)}else{window.clearTimeout(t)}}};const zo={run(t){if(!Do){Do=true;Co.textContent=Ao;Ao+=1}ko.push(t);const e=xo;xo+=1;return e},cancel(t){const e=t-_o;if(e>=0){if(!ko[e]){throw new Error(`invalid async handle: ${t}`)}ko[e]=null}}};
1434
+ */let _o=0;let ko=0;const Ao=[];let Do=0;let Co=false;const To=document.createTextNode("");new window.MutationObserver(So).observe(To,{characterData:true});function So(){Co=false;const t=Ao.length;for(let e=0;e<t;e++){const t=Ao[e];if(t){try{t()}catch(t){setTimeout((()=>{throw t}))}}}Ao.splice(0,t);ko+=t}const Mo={after(t){return{run(e){return window.setTimeout(e,t)},cancel(t){window.clearTimeout(t)}}},run(t,e){return window.setTimeout(t,e)},cancel(t){window.clearTimeout(t)}};const zo={run(t){return window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16)},cancel(t){if(window.cancelIdleCallback){window.cancelIdleCallback(t)}else{window.clearTimeout(t)}}};const Po={run(t){if(!Co){Co=true;To.textContent=Do;Do+=1}Ao.push(t);const e=_o;_o+=1;return e},cancel(t){const e=t-ko;if(e>=0){if(!Ao[e]){throw new Error(`invalid async handle: ${t}`)}Ao[e]=null}}};
1435
1435
  /**
1436
1436
  @license
1437
1437
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1440,32 +1440,32 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1440
1440
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1441
1441
  Code distributed by Google as part of the polymer project is also
1442
1442
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1443
- */class Po{static debounce(t,e,i){if(t instanceof Po){t._cancelAsync()}else{t=new Po}t.setConfig(e,i);return 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;Eo.delete(this);this._callback()}))}cancel(){if(this.isActive()){this._cancelAsync();Eo.delete(this)}}_cancelAsync(){if(this.isActive()){this._asyncModule.cancel(this._timer);this._timer=null}}flush(){if(this.isActive()){this.cancel();this._callback()}}isActive(){return this._timer!=null}}let Eo=new Set;function Fo(t){Eo.add(t)}
1443
+ */class Eo{static debounce(t,e,i){if(t instanceof Eo){t._cancelAsync()}else{t=new Eo}t.setConfig(e,i);return 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;Fo.delete(this);this._callback()}))}cancel(){if(this.isActive()){this._cancelAsync();Fo.delete(this)}}_cancelAsync(){if(this.isActive()){this._asyncModule.cancel(this._timer);this._timer=null}}flush(){if(this.isActive()){this.cancel();this._callback()}}isActive(){return this._timer!=null}}let Fo=new Set;function Oo(t){Fo.add(t)}
1444
1444
  /**
1445
1445
  * @license
1446
1446
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
1447
1447
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1448
- */window.Vaadin=window.Vaadin||{};window.Vaadin.registrations=window.Vaadin.registrations||[];window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{};window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){wo()};let Oo;const Bo=new Set;const Io=t=>class e extends(Ls(t)){static get version(){return"23.3.19"}static finalize(){super.finalize();const{is:t}=this;if(t&&!Bo.has(t)){window.Vaadin.registrations.push(this);Bo.add(t);if(window.Vaadin.developmentModeCallback){Oo=Po.debounce(Oo,Mo,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}));Fo(Oo)}}}constructor(){super();if(document.doctype===null){console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}}
1448
+ */window.Vaadin=window.Vaadin||{};window.Vaadin.registrations=window.Vaadin.registrations||[];window.Vaadin.developmentModeCallback=window.Vaadin.developmentModeCallback||{};window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){xo()};let Bo;const Io=new Set;const No=t=>class e extends(Hs(t)){static get version(){return"23.3.25"}static finalize(){super.finalize();const{is:t}=this;if(t&&!Io.has(t)){window.Vaadin.registrations.push(this);Io.add(t);if(window.Vaadin.developmentModeCallback){Bo=Eo.debounce(Bo,zo,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}));Oo(Bo)}}}constructor(){super();if(document.doctype===null){console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}}
1449
1449
  /**
1450
1450
  * @license
1451
1451
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
1452
1452
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1453
- */;let No=0;function Ro(){return No++}
1453
+ */;let Ro=0;function jo(){return Ro++}
1454
1454
  /**
1455
1455
  * @license
1456
1456
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
1457
1457
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1458
- */class jo extends EventTarget{static generateId(t,e){const i=t||"default";return`${i}-${e.localName}-${Ro()}`}constructor(t,e,i,s,r){super();this.host=t;this.slotName=e;this.slotFactory=i;this.slotInitializer=s;if(r){this.defaultId=jo.generateId(e,t)}}hostConnected(){if(!this.initialized){let t=this.getSlotChild();if(!t){t=this.attachDefaultNode()}else{this.node=t;this.initCustomNode(t)}this.initNode(t);this.observe();this.initialized=true}}attachDefaultNode(){const{host:t,slotName:e,slotFactory:i}=this;let s=this.defaultNode;if(!s&&i){s=i(t);if(s instanceof Element){if(e!==""){s.setAttribute("slot",e)}this.node=s;this.defaultNode=s}}if(s){t.appendChild(s)}return s}getSlotChild(){const{slotName:t}=this;return Array.from(this.host.childNodes).find((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t===""))}initNode(t){const{slotInitializer:e}=this;if(e){e(this.host,t)}}initCustomNode(t){}teardownNode(t){}observe(){const{slotName:t}=this;const e=t===""?"slot:not([name])":`slot[name=${t}]`;const i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new rr(i,(t=>{const e=this.node;const i=t.addedNodes.find((t=>t!==e));if(t.removedNodes.length){t.removedNodes.forEach((t=>{this.teardownNode(t)}))}if(i){if(e&&e.isConnected){this.host.removeChild(e)}this.node=i;if(i!==this.defaultNode){this.initCustomNode(i);this.initNode(i)}}}))}}
1458
+ */class Lo extends EventTarget{static generateId(t,e){const i=t||"default";return`${i}-${e.localName}-${jo()}`}constructor(t,e,i,s,r){super();this.host=t;this.slotName=e;this.slotFactory=i;this.slotInitializer=s;if(r){this.defaultId=Lo.generateId(e,t)}}hostConnected(){if(!this.initialized){let t=this.getSlotChild();if(!t){t=this.attachDefaultNode()}else{this.node=t;this.initCustomNode(t)}this.initNode(t);this.observe();this.initialized=true}}attachDefaultNode(){const{host:t,slotName:e,slotFactory:i}=this;let s=this.defaultNode;if(!s&&i){s=i(t);if(s instanceof Element){if(e!==""){s.setAttribute("slot",e)}this.node=s;this.defaultNode=s}}if(s){t.appendChild(s)}return s}getSlotChild(){const{slotName:t}=this;return Array.from(this.host.childNodes).find((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t===""))}initNode(t){const{slotInitializer:e}=this;if(e){e(this.host,t)}}initCustomNode(t){}teardownNode(t){}observe(){const{slotName:t}=this;const e=t===""?"slot:not([name])":`slot[name=${t}]`;const i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new or(i,(t=>{const e=this.node;const i=t.addedNodes.find((t=>t!==e));if(t.removedNodes.length){t.removedNodes.forEach((t=>{this.teardownNode(t)}))}if(i){if(e&&e.isConnected){this.host.removeChild(e)}this.node=i;if(i!==this.defaultNode){this.initCustomNode(i);this.initNode(i)}}}))}}
1459
1459
  /**
1460
1460
  * @license
1461
1461
  * Copyright (c) 2022 Vaadin Ltd.
1462
1462
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1463
- */class Lo extends jo{constructor(t){super(t,"tooltip");this.setTarget(t)}initCustomNode(t){t.target=this.target;if(this.context!==undefined){t.context=this.context}if(this.manual!==undefined){t.manual=this.manual}if(this.opened!==undefined){t.opened=this.opened}if(this.position!==undefined){t._position=this.position}if(this.shouldShow!==undefined){t.shouldShow=this.shouldShow}}setContext(t){this.context=t;const e=this.node;if(e){e.context=t}}setManual(t){this.manual=t;const e=this.node;if(e){e.manual=t}}setOpened(t){this.opened=t;const e=this.node;if(e){e.opened=t}}setPosition(t){this.position=t;const e=this.node;if(e){e._position=t}}setShouldShow(t){this.shouldShow=t;const e=this.node;if(e){e.shouldShow=t}}setTarget(t){this.target=t;const e=this.node;if(e){e.target=t}}}
1463
+ */class Ho extends Lo{constructor(t){super(t,"tooltip");this.setTarget(t)}initCustomNode(t){t.target=this.target;if(this.context!==undefined){t.context=this.context}if(this.manual!==undefined){t.manual=this.manual}if(this.opened!==undefined){t.opened=this.opened}if(this.position!==undefined){t._position=this.position}if(this.shouldShow!==undefined){t.shouldShow=this.shouldShow}}setContext(t){this.context=t;const e=this.node;if(e){e.context=t}}setManual(t){this.manual=t;const e=this.node;if(e){e.manual=t}}setOpened(t){this.opened=t;const e=this.node;if(e){e.opened=t}}setPosition(t){this.position=t;const e=this.node;if(e){e._position=t}}setShouldShow(t){this.shouldShow=t;const e=this.node;if(e){e.shouldShow=t}}setTarget(t){this.target=t;const e=this.node;if(e){e.target=t}}}
1464
1464
  /**
1465
1465
  * @license
1466
1466
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
1467
1467
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1468
- */const Ho=le((t=>class e extends t{static get properties(){return{disabled:{type:Boolean,value:false,observer:"_disabledChanged",reflectToAttribute:true}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){if(t){this.setAttribute("aria-disabled","true")}else{this.removeAttribute("aria-disabled")}}click(){if(!this.disabled){super.click()}}}));
1468
+ */const Wo=he((t=>class e extends t{static get properties(){return{disabled:{type:Boolean,value:false,observer:"_disabledChanged",reflectToAttribute:true}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){if(t){this.setAttribute("aria-disabled","true")}else{this.removeAttribute("aria-disabled")}}click(){if(!this.disabled){super.click()}}}));
1469
1469
  /**
1470
1470
  @license
1471
1471
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1474,37 +1474,37 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1474
1474
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1475
1475
  Code distributed by Google as part of the polymer project is also
1476
1476
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1477
- */const Wo=false;const Uo=t=>t;const $o=typeof document.head.style.touchAction==="string";const Go="__polymerGestures";const Yo="__polymerGesturesHandled";const qo="__polymerGesturesTouchAction";const Vo=25;const Jo=5;const Ko=2;const Zo=["mousedown","mousemove","mouseup","click"];const Xo=[0,1,4,2];const Qo=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return false}}();function tn(t){return Zo.indexOf(t)>-1}let en=false;(function(){try{const t=Object.defineProperty({},"passive",{get(){en=true}});window.addEventListener("test",null,t);window.removeEventListener("test",null,t)}catch(t){}})();function sn(t){if(tn(t)||t==="touchend"){return}if($o&&en&&Wo){return{passive:true}}}const rn=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const on={button:true,command:true,fieldset:true,input:true,keygen:true,optgroup:true,option:true,select:true,textarea:true};function nn(t){const e=t.type;if(!tn(e)){return false}if(e==="mousemove"){let e=t.buttons===undefined?1:t.buttons;if(t instanceof window.MouseEvent&&!Qo){e=Xo[t.which]||0}return Boolean(e&1)}const i=t.button===undefined?0:t.button;return i===0}function an(t){if(t.type==="click"){if(t.detail===0){return true}const e=bn(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE){return true}const i=e.getBoundingClientRect();const s=t.pageX,r=t.pageY;return!(s>=i.left&&s<=i.right&&r>=i.top&&r<=i.bottom)}return false}const ln={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:false}};function hn(t){let e="auto";const i=dn(t);for(let t=0,s;t<i.length;t++){s=i[t];if(s[qo]){e=s[qo];break}}return e}function cn(t,e,i){t.movefn=e;t.upfn=i;document.addEventListener("mousemove",e);document.addEventListener("mouseup",i)}function un(t){document.removeEventListener("mousemove",t.movefn);document.removeEventListener("mouseup",t.upfn);t.movefn=null;t.upfn=null}const dn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[];const fn={};const pn=[];function mn(t,e){let i=document.elementFromPoint(t,e);let s=i;while(s&&s.shadowRoot&&!window.ShadyDOM){const r=s;s=s.shadowRoot.elementFromPoint(t,e);if(r===s){break}if(s){i=s}}return i}function bn(t){const e=dn(t);return e.length>0?e[0]:t.target}function gn(t){const e=t.type;const i=t.currentTarget;const s=i[Go];if(!s){return}const r=s[e];if(!r){return}if(!t[Yo]){t[Yo]={};if(e.startsWith("touch")){const i=t.changedTouches[0];if(e==="touchstart"){if(t.touches.length===1){ln.touch.id=i.identifier}}if(ln.touch.id!==i.identifier){return}if(!$o){if(e==="touchstart"||e==="touchmove"){vn(t)}}}}const o=t[Yo];if(o.skip){return}for(let e=0,i;e<pn.length;e++){i=pn[e];if(r[i.name]&&!o[i.name]){if(i.flow&&i.flow.start.indexOf(t.type)>-1&&i.reset){i.reset()}}}for(let i=0,s;i<pn.length;i++){s=pn[i];if(r[s.name]&&!o[s.name]){o[s.name]=true;s[e](t)}}}function vn(t){const e=t.changedTouches[0];const i=t.type;if(i==="touchstart"){ln.touch.x=e.clientX;ln.touch.y=e.clientY;ln.touch.scrollDecided=false}else if(i==="touchmove"){if(ln.touch.scrollDecided){return}ln.touch.scrollDecided=true;const i=hn(t);let s=false;const r=Math.abs(ln.touch.x-e.clientX);const o=Math.abs(ln.touch.y-e.clientY);if(!t.cancelable);else if(i==="none"){s=true}else if(i==="pan-x"){s=o>r}else if(i==="pan-y"){s=r>o}if(s){t.preventDefault()}else{Dn("track")}}}function yn(t,e,i){if(fn[e]){wn(t,e,i);return true}return false}function wn(t,e,i){const s=fn[e];const r=s.deps;const o=s.name;let n=t[Go];if(!n){t[Go]=n={}}for(let e=0,i,s;e<r.length;e++){i=r[e];if(rn&&tn(i)&&i!=="click"){continue}s=n[i];if(!s){n[i]=s={_count:0}}if(s._count===0){t.addEventListener(i,gn,sn(i))}s[o]=(s[o]||0)+1;s._count=(s._count||0)+1}t.addEventListener(e,i);if(s.touchAction){kn(t,s.touchAction)}}function xn(t){pn.push(t);for(let e=0;e<t.emits.length;e++){fn[t.emits[e]]=t}}function _n(t){for(let e=0,i;e<pn.length;e++){i=pn[e];for(let e=0,s;e<i.emits.length;e++){s=i.emits[e];if(s===t){return i}}}return null}function kn(t,e){if($o&&t instanceof HTMLElement){zo.run((()=>{t.style.touchAction=e}))}t[qo]=e}function An(t,e,i){const s=new Event(e,{bubbles:true,cancelable:true,composed:true});s.detail=i;Uo(t).dispatchEvent(s);if(s.defaultPrevented){const t=i.preventer||i.sourceEvent;if(t&&t.preventDefault){t.preventDefault()}}}function Dn(t){const e=_n(t);if(e.info){e.info.prevent=true}}xn({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){un(this.info)},mousedown(t){if(!nn(t)){return}const e=bn(t);const i=this;const s=t=>{if(!nn(t)){Cn("up",e,t);un(i.info)}};const r=t=>{if(nn(t)){Cn("up",e,t)}un(i.info)};cn(this.info,s,r);Cn("down",e,t)},touchstart(t){Cn("down",bn(t),t.changedTouches[0],t)},touchend(t){Cn("up",bn(t),t.changedTouches[0],t)}});function Cn(t,e,i,s){if(!e){return}An(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:s,prevent(t){return Dn(t)}})}xn({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:false,moves:[],addMove(t){if(this.moves.length>Ko){this.moves.shift()}this.moves.push(t)},movefn:null,upfn:null,prevent:false},reset(){this.info.state="start";this.info.started=false;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=false;un(this.info)},mousedown(t){if(!nn(t)){return}const e=bn(t);const i=this;const s=t=>{const s=t.clientX,r=t.clientY;if(Tn(i.info,s,r)){i.info.state=i.info.started?t.type==="mouseup"?"end":"track":"start";if(i.info.state==="start"){Dn("tap")}i.info.addMove({x:s,y:r});if(!nn(t)){i.info.state="end";un(i.info)}if(e){Sn(i.info,e,t)}i.info.started=true}};const r=t=>{if(i.info.started){s(t)}un(i.info)};cn(this.info,s,r);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=bn(t);const i=t.changedTouches[0];const s=i.clientX,r=i.clientY;if(Tn(this.info,s,r)){if(this.info.state==="start"){Dn("tap")}this.info.addMove({x:s,y:r});Sn(this.info,e,i);this.info.state="track";this.info.started=true}},touchend(t){const e=bn(t);const i=t.changedTouches[0];if(this.info.started){this.info.state="end";this.info.addMove({x:i.clientX,y:i.clientY});Sn(this.info,e,i)}}});function Tn(t,e,i){if(t.prevent){return false}if(t.started){return true}const s=Math.abs(t.x-e);const r=Math.abs(t.y-i);return s>=Jo||r>=Jo}function Sn(t,e,i){if(!e){return}const s=t.moves[t.moves.length-2];const r=t.moves[t.moves.length-1];const o=r.x-t.x;const n=r.y-t.y;let a,l=0;if(s){a=r.x-s.x;l=r.y-s.y}An(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:o,dy:n,ddx:a,ddy:l,sourceEvent:i,hover(){return mn(i.clientX,i.clientY)}})}xn({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:false},reset(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=false},mousedown(t){if(nn(t)){this.info.x=t.clientX;this.info.y=t.clientY}},click(t){if(nn(t)){Mn(this.info,t)}},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},touchend(t){Mn(this.info,t.changedTouches[0],t)}});function Mn(t,e,i){const s=Math.abs(e.clientX-t.x);const r=Math.abs(e.clientY-t.y);const o=bn(i||e);if(!o||on[o.localName]&&o.hasAttribute("disabled")){return}if(isNaN(s)||isNaN(r)||s<=Vo&&r<=Vo||an(e)){if(!t.prevent){An(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i})}}}
1477
+ */const Uo=false;const $o=t=>t;const Go=typeof document.head.style.touchAction==="string";const Yo="__polymerGestures";const qo="__polymerGesturesHandled";const Vo="__polymerGesturesTouchAction";const Jo=25;const Ko=5;const Zo=2;const Xo=["mousedown","mousemove","mouseup","click"];const Qo=[0,1,4,2];const tn=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(t){return false}}();function en(t){return Xo.indexOf(t)>-1}let sn=false;(function(){try{const t=Object.defineProperty({},"passive",{get(){sn=true}});window.addEventListener("test",null,t);window.removeEventListener("test",null,t)}catch(t){}})();function rn(t){if(en(t)||t==="touchend"){return}if(Go&&sn&&Uo){return{passive:true}}}const on=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/);const nn={button:true,command:true,fieldset:true,input:true,keygen:true,optgroup:true,option:true,select:true,textarea:true};function an(t){const e=t.type;if(!en(e)){return false}if(e==="mousemove"){let e=t.buttons===undefined?1:t.buttons;if(t instanceof window.MouseEvent&&!tn){e=Qo[t.which]||0}return Boolean(e&1)}const i=t.button===undefined?0:t.button;return i===0}function ln(t){if(t.type==="click"){if(t.detail===0){return true}const e=gn(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE){return true}const i=e.getBoundingClientRect();const s=t.pageX,r=t.pageY;return!(s>=i.left&&s<=i.right&&r>=i.top&&r<=i.bottom)}return false}const hn={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:false}};function cn(t){let e="auto";const i=fn(t);for(let t=0,s;t<i.length;t++){s=i[t];if(s[Vo]){e=s[Vo];break}}return e}function un(t,e,i){t.movefn=e;t.upfn=i;document.addEventListener("mousemove",e);document.addEventListener("mouseup",i)}function dn(t){document.removeEventListener("mousemove",t.movefn);document.removeEventListener("mouseup",t.upfn);t.movefn=null;t.upfn=null}const fn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[];const pn={};const mn=[];function bn(t,e){let i=document.elementFromPoint(t,e);let s=i;while(s&&s.shadowRoot&&!window.ShadyDOM){const r=s;s=s.shadowRoot.elementFromPoint(t,e);if(r===s){break}if(s){i=s}}return i}function gn(t){const e=fn(t);return e.length>0?e[0]:t.target}function vn(t){const e=t.type;const i=t.currentTarget;const s=i[Yo];if(!s){return}const r=s[e];if(!r){return}if(!t[qo]){t[qo]={};if(e.startsWith("touch")){const i=t.changedTouches[0];if(e==="touchstart"){if(t.touches.length===1){hn.touch.id=i.identifier}}if(hn.touch.id!==i.identifier){return}if(!Go){if(e==="touchstart"||e==="touchmove"){yn(t)}}}}const o=t[qo];if(o.skip){return}for(let e=0,i;e<mn.length;e++){i=mn[e];if(r[i.name]&&!o[i.name]){if(i.flow&&i.flow.start.indexOf(t.type)>-1&&i.reset){i.reset()}}}for(let i=0,s;i<mn.length;i++){s=mn[i];if(r[s.name]&&!o[s.name]){o[s.name]=true;s[e](t)}}}function yn(t){const e=t.changedTouches[0];const i=t.type;if(i==="touchstart"){hn.touch.x=e.clientX;hn.touch.y=e.clientY;hn.touch.scrollDecided=false}else if(i==="touchmove"){if(hn.touch.scrollDecided){return}hn.touch.scrollDecided=true;const i=cn(t);let s=false;const r=Math.abs(hn.touch.x-e.clientX);const o=Math.abs(hn.touch.y-e.clientY);if(!t.cancelable);else if(i==="none"){s=true}else if(i==="pan-x"){s=o>r}else if(i==="pan-y"){s=r>o}if(s){t.preventDefault()}else{Cn("track")}}}function wn(t,e,i){if(pn[e]){xn(t,e,i);return true}return false}function xn(t,e,i){const s=pn[e];const r=s.deps;const o=s.name;let n=t[Yo];if(!n){t[Yo]=n={}}for(let e=0,i,s;e<r.length;e++){i=r[e];if(on&&en(i)&&i!=="click"){continue}s=n[i];if(!s){n[i]=s={_count:0}}if(s._count===0){t.addEventListener(i,vn,rn(i))}s[o]=(s[o]||0)+1;s._count=(s._count||0)+1}t.addEventListener(e,i);if(s.touchAction){An(t,s.touchAction)}}function _n(t){mn.push(t);for(let e=0;e<t.emits.length;e++){pn[t.emits[e]]=t}}function kn(t){for(let e=0,i;e<mn.length;e++){i=mn[e];for(let e=0,s;e<i.emits.length;e++){s=i.emits[e];if(s===t){return i}}}return null}function An(t,e){if(Go&&t instanceof HTMLElement){Po.run((()=>{t.style.touchAction=e}))}t[Vo]=e}function Dn(t,e,i){const s=new Event(e,{bubbles:true,cancelable:true,composed:true});s.detail=i;$o(t).dispatchEvent(s);if(s.defaultPrevented){const t=i.preventer||i.sourceEvent;if(t&&t.preventDefault){t.preventDefault()}}}function Cn(t){const e=kn(t);if(e.info){e.info.prevent=true}}_n({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){dn(this.info)},mousedown(t){if(!an(t)){return}const e=gn(t);const i=this;const s=t=>{if(!an(t)){Tn("up",e,t);dn(i.info)}};const r=t=>{if(an(t)){Tn("up",e,t)}dn(i.info)};un(this.info,s,r);Tn("down",e,t)},touchstart(t){Tn("down",gn(t),t.changedTouches[0],t)},touchend(t){Tn("up",gn(t),t.changedTouches[0],t)}});function Tn(t,e,i,s){if(!e){return}Dn(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:s,prevent(t){return Cn(t)}})}_n({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:false,moves:[],addMove(t){if(this.moves.length>Zo){this.moves.shift()}this.moves.push(t)},movefn:null,upfn:null,prevent:false},reset(){this.info.state="start";this.info.started=false;this.info.moves=[];this.info.x=0;this.info.y=0;this.info.prevent=false;dn(this.info)},mousedown(t){if(!an(t)){return}const e=gn(t);const i=this;const s=t=>{const s=t.clientX,r=t.clientY;if(Sn(i.info,s,r)){i.info.state=i.info.started?t.type==="mouseup"?"end":"track":"start";if(i.info.state==="start"){Cn("tap")}i.info.addMove({x:s,y:r});if(!an(t)){i.info.state="end";dn(i.info)}if(e){Mn(i.info,e,t)}i.info.started=true}};const r=t=>{if(i.info.started){s(t)}dn(i.info)};un(this.info,s,r);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=gn(t);const i=t.changedTouches[0];const s=i.clientX,r=i.clientY;if(Sn(this.info,s,r)){if(this.info.state==="start"){Cn("tap")}this.info.addMove({x:s,y:r});Mn(this.info,e,i);this.info.state="track";this.info.started=true}},touchend(t){const e=gn(t);const i=t.changedTouches[0];if(this.info.started){this.info.state="end";this.info.addMove({x:i.clientX,y:i.clientY});Mn(this.info,e,i)}}});function Sn(t,e,i){if(t.prevent){return false}if(t.started){return true}const s=Math.abs(t.x-e);const r=Math.abs(t.y-i);return s>=Ko||r>=Ko}function Mn(t,e,i){if(!e){return}const s=t.moves[t.moves.length-2];const r=t.moves[t.moves.length-1];const o=r.x-t.x;const n=r.y-t.y;let a,l=0;if(s){a=r.x-s.x;l=r.y-s.y}Dn(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:o,dy:n,ddx:a,ddy:l,sourceEvent:i,hover(){return bn(i.clientX,i.clientY)}})}_n({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:false},reset(){this.info.x=NaN;this.info.y=NaN;this.info.prevent=false},mousedown(t){if(an(t)){this.info.x=t.clientX;this.info.y=t.clientY}},click(t){if(an(t)){zn(this.info,t)}},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX;this.info.y=e.clientY},touchend(t){zn(this.info,t.changedTouches[0],t)}});function zn(t,e,i){const s=Math.abs(e.clientX-t.x);const r=Math.abs(e.clientY-t.y);const o=gn(i||e);if(!o||nn[o.localName]&&o.hasAttribute("disabled")){return}if(isNaN(s)||isNaN(r)||s<=Jo&&r<=Jo||ln(e)){if(!t.prevent){Dn(o,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i})}}}
1478
1478
  /**
1479
1479
  * @license
1480
1480
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
1481
1481
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1482
- */const zn=le((t=>class e 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);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}}));
1482
+ */const Pn=he((t=>class e 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);break}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}}));
1483
1483
  /**
1484
1484
  * @license
1485
1485
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
1486
1486
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1487
- */const Pn=t=>class e extends(Ho(zn(t))){get _activeKeys(){return[" "]}ready(){super.ready();yn(this,"down",(t=>{if(this._shouldSetActive(t)){this._setActive(true)}}));yn(this,"up",(()=>{this._setActive(false)}))}disconnectedCallback(){super.disconnectedCallback();this._setActive(false)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t);if(this._shouldSetActive(t)&&this._activeKeys.includes(t.key)){this._setActive(true);document.addEventListener("keyup",(t=>{if(this._activeKeys.includes(t.key)){this._setActive(false)}}),{once:true})}}_setActive(t){this.toggleAttribute("active",t)}}
1487
+ */const En=t=>class e extends(Wo(Pn(t))){get _activeKeys(){return[" "]}ready(){super.ready();wn(this,"down",(t=>{if(this._shouldSetActive(t)){this._setActive(true)}}));wn(this,"up",(()=>{this._setActive(false)}))}disconnectedCallback(){super.disconnectedCallback();this._setActive(false)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t);if(this._shouldSetActive(t)&&this._activeKeys.includes(t.key)){this._setActive(true);document.addEventListener("keyup",(t=>{if(this._activeKeys.includes(t.key)){this._setActive(false)}}),{once:true})}}_setActive(t){this.toggleAttribute("active",t)}}
1488
1488
  /**
1489
1489
  * @license
1490
1490
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
1491
1491
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1492
- */;const En=le((t=>class e extends t{get _keyboardActive(){return Gr()}ready(){this.addEventListener("focusin",(t=>{if(this._shouldSetFocus(t)){this._setFocused(true)}}));this.addEventListener("focusout",(t=>{if(this._shouldRemoveFocus(t)){this._setFocused(false)}}));super.ready()}disconnectedCallback(){super.disconnectedCallback();if(this.hasAttribute("focused")){this._setFocused(false)}}_setFocused(t){this.toggleAttribute("focused",t);this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return true}_shouldRemoveFocus(t){return true}}));
1492
+ */;const Fn=he((t=>class e extends t{get _keyboardActive(){return Yr()}ready(){this.addEventListener("focusin",(t=>{if(this._shouldSetFocus(t)){this._setFocused(true)}}));this.addEventListener("focusout",(t=>{if(this._shouldRemoveFocus(t)){this._setFocused(false)}}));super.ready()}disconnectedCallback(){super.disconnectedCallback();if(this.hasAttribute("focused")){this._setFocused(false)}}_setFocused(t){this.toggleAttribute("focused",t);this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return true}_shouldRemoveFocus(t){return true}}));
1493
1493
  /**
1494
1494
  * @license
1495
1495
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
1496
1496
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1497
- */const Fn=t=>class e extends(Ho(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:true,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e);if(t){if(this.tabindex!==undefined){this._lastTabIndex=this.tabindex}this.tabindex=-1}else if(e){this.tabindex=this._lastTabIndex}}_tabindexChanged(t){if(this.disabled&&t!==-1){this._lastTabIndex=t;this.tabindex=-1}}}
1497
+ */const On=t=>class e extends(Wo(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:true,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e);if(t){if(this.tabindex!==undefined){this._lastTabIndex=this.tabindex}this.tabindex=-1}else if(e){this.tabindex=this._lastTabIndex}}_tabindexChanged(t){if(this.disabled&&t!==-1){this._lastTabIndex=t;this.tabindex=-1}}}
1498
1498
  /**
1499
1499
  * @license
1500
1500
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
1501
1501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1502
- */;const On=t=>class e extends(Pn(Fn(En(t)))){static get properties(){return{tabindex:{value:0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready();if(!this.hasAttribute("role")){this.setAttribute("role","button")}}_onKeyDown(t){super._onKeyDown(t);if(this._activeKeys.includes(t.key)){t.preventDefault();this.click()}}}
1502
+ */;const Bn=t=>class e extends(En(On(Fn(t)))){static get properties(){return{tabindex:{value:0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready();if(!this.hasAttribute("role")){this.setAttribute("role","button")}}_onKeyDown(t){super._onKeyDown(t);if(this._activeKeys.includes(t.key)){t.preventDefault();this.click()}}}
1503
1503
  /**
1504
1504
  * @license
1505
1505
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
1506
1506
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1507
- */;class Bn extends(On(Io(Tt(Ur(Es))))){static get is(){return"vaadin-button"}static get template(){return zs`
1507
+ */;class In extends(Bn(No(St($r(Fs))))){static get is(){return"vaadin-button"}static get template(){return Ps`
1508
1508
  <style>
1509
1509
  :host {
1510
1510
  display: inline-block;
@@ -1563,7 +1563,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1563
1563
  </span>
1564
1564
  </div>
1565
1565
  <slot name="tooltip"></slot>
1566
- `}ready(){super.ready();this._tooltipController=new Lo(this);this.addController(this._tooltipController)}}customElements.define(Bn.is,Bn);gt("vaadin-date-picker-overlay-content",p`
1566
+ `}ready(){super.ready();this._tooltipController=new Ho(this);this.addController(this._tooltipController)}}customElements.define(In.is,In);vt("vaadin-date-picker-overlay-content",p`
1567
1567
  :host {
1568
1568
  position: relative;
1569
1569
  /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
@@ -1751,7 +1751,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1751
1751
  padding-left: 50px;
1752
1752
  }
1753
1753
  }
1754
- `,{moduleId:"lumo-date-picker-overlay-content"});gt("vaadin-month-calendar",p`
1754
+ `,{moduleId:"lumo-date-picker-overlay-content"});vt("vaadin-month-calendar",p`
1755
1755
  :host {
1756
1756
  -moz-user-select: none;
1757
1757
  -webkit-user-select: none;
@@ -1891,17 +1891,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1891
1891
  :host([disabled]) * {
1892
1892
  color: var(--lumo-disabled-text-color) !important;
1893
1893
  }
1894
- `,{moduleId:"lumo-month-calendar"});const In=document.createElement("template");In.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(In.content);
1894
+ `,{moduleId:"lumo-month-calendar"});const Nn=document.createElement("template");Nn.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(Nn.content);
1895
1895
  /**
1896
1896
  * @license
1897
1897
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
1898
1898
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1899
- */const Nn=document.createElement("template");Nn.innerHTML=`\n <style>\n @font-face {\n font-family: 'lumo-icons';\n 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==) format('woff');\n font-weight: normal;\n font-style: normal;\n }\n\n html {\n --lumo-icons-align-center: "\\ea01";\n --lumo-icons-align-left: "\\ea02";\n --lumo-icons-align-right: "\\ea03";\n --lumo-icons-angle-down: "\\ea04";\n --lumo-icons-angle-left: "\\ea05";\n --lumo-icons-angle-right: "\\ea06";\n --lumo-icons-angle-up: "\\ea07";\n --lumo-icons-arrow-down: "\\ea08";\n --lumo-icons-arrow-left: "\\ea09";\n --lumo-icons-arrow-right: "\\ea0a";\n --lumo-icons-arrow-up: "\\ea0b";\n --lumo-icons-bar-chart: "\\ea0c";\n --lumo-icons-bell: "\\ea0d";\n --lumo-icons-calendar: "\\ea0e";\n --lumo-icons-checkmark: "\\ea0f";\n --lumo-icons-chevron-down: "\\ea10";\n --lumo-icons-chevron-left: "\\ea11";\n --lumo-icons-chevron-right: "\\ea12";\n --lumo-icons-chevron-up: "\\ea13";\n --lumo-icons-clock: "\\ea14";\n --lumo-icons-cog: "\\ea15";\n --lumo-icons-cross: "\\ea16";\n --lumo-icons-download: "\\ea17";\n --lumo-icons-dropdown: "\\ea18";\n --lumo-icons-edit: "\\ea19";\n --lumo-icons-error: "\\ea1a";\n --lumo-icons-eye: "\\ea1b";\n --lumo-icons-eye-disabled: "\\ea1c";\n --lumo-icons-menu: "\\ea1d";\n --lumo-icons-minus: "\\ea1e";\n --lumo-icons-ordered-list: "\\ea1f";\n --lumo-icons-phone: "\\ea20";\n --lumo-icons-photo: "\\ea21";\n --lumo-icons-play: "\\ea22";\n --lumo-icons-plus: "\\ea23";\n --lumo-icons-redo: "\\ea24";\n --lumo-icons-reload: "\\ea25";\n --lumo-icons-search: "\\ea26";\n --lumo-icons-undo: "\\ea27";\n --lumo-icons-unordered-list: "\\ea28";\n --lumo-icons-upload: "\\ea29";\n --lumo-icons-user: "\\ea2a";\n }\n </style>\n`;document.head.appendChild(Nn.content);
1899
+ */const Rn=document.createElement("template");Rn.innerHTML=`\n <style>\n @font-face {\n font-family: 'lumo-icons';\n 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==) format('woff');\n font-weight: normal;\n font-style: normal;\n }\n\n html {\n --lumo-icons-align-center: "\\ea01";\n --lumo-icons-align-left: "\\ea02";\n --lumo-icons-align-right: "\\ea03";\n --lumo-icons-angle-down: "\\ea04";\n --lumo-icons-angle-left: "\\ea05";\n --lumo-icons-angle-right: "\\ea06";\n --lumo-icons-angle-up: "\\ea07";\n --lumo-icons-arrow-down: "\\ea08";\n --lumo-icons-arrow-left: "\\ea09";\n --lumo-icons-arrow-right: "\\ea0a";\n --lumo-icons-arrow-up: "\\ea0b";\n --lumo-icons-bar-chart: "\\ea0c";\n --lumo-icons-bell: "\\ea0d";\n --lumo-icons-calendar: "\\ea0e";\n --lumo-icons-checkmark: "\\ea0f";\n --lumo-icons-chevron-down: "\\ea10";\n --lumo-icons-chevron-left: "\\ea11";\n --lumo-icons-chevron-right: "\\ea12";\n --lumo-icons-chevron-up: "\\ea13";\n --lumo-icons-clock: "\\ea14";\n --lumo-icons-cog: "\\ea15";\n --lumo-icons-cross: "\\ea16";\n --lumo-icons-download: "\\ea17";\n --lumo-icons-dropdown: "\\ea18";\n --lumo-icons-edit: "\\ea19";\n --lumo-icons-error: "\\ea1a";\n --lumo-icons-eye: "\\ea1b";\n --lumo-icons-eye-disabled: "\\ea1c";\n --lumo-icons-menu: "\\ea1d";\n --lumo-icons-minus: "\\ea1e";\n --lumo-icons-ordered-list: "\\ea1f";\n --lumo-icons-phone: "\\ea20";\n --lumo-icons-photo: "\\ea21";\n --lumo-icons-play: "\\ea22";\n --lumo-icons-plus: "\\ea23";\n --lumo-icons-redo: "\\ea24";\n --lumo-icons-reload: "\\ea25";\n --lumo-icons-search: "\\ea26";\n --lumo-icons-undo: "\\ea27";\n --lumo-icons-unordered-list: "\\ea28";\n --lumo-icons-upload: "\\ea29";\n --lumo-icons-user: "\\ea2a";\n }\n </style>\n`;document.head.appendChild(Rn.content);
1900
1900
  /**
1901
1901
  * @license
1902
1902
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
1903
1903
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1904
- */const Rn=p`
1904
+ */const jn=p`
1905
1905
  [part$='button'] {
1906
1906
  flex: none;
1907
1907
  width: 1em;
@@ -1928,12 +1928,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1928
1928
  font-family: 'lumo-icons';
1929
1929
  display: block;
1930
1930
  }
1931
- `;gt("",Rn,{moduleId:"lumo-field-button"});
1931
+ `;vt("",jn,{moduleId:"lumo-field-button"});
1932
1932
  /**
1933
1933
  * @license
1934
1934
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
1935
1935
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1936
- */const jn=p`
1936
+ */const Ln=p`
1937
1937
  :host([has-helper]) [part='helper-text']::before {
1938
1938
  content: '';
1939
1939
  display: block;
@@ -1989,7 +1989,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1989
1989
  * @license
1990
1990
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
1991
1991
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1992
- */;const Ln=p`
1992
+ */;const Hn=p`
1993
1993
  [part='label'] {
1994
1994
  align-self: flex-start;
1995
1995
  color: var(--lumo-secondary-text-color);
@@ -2085,12 +2085,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2085
2085
  margin-left: 0;
2086
2086
  margin-right: calc(var(--lumo-border-radius-m) / 4);
2087
2087
  }
2088
- `;gt("",Ln,{moduleId:"lumo-required-field"});
2088
+ `;vt("",Hn,{moduleId:"lumo-required-field"});
2089
2089
  /**
2090
2090
  * @license
2091
2091
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
2092
2092
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2093
- */const Hn=p`
2093
+ */const Wn=p`
2094
2094
  :host {
2095
2095
  --lumo-text-field-size: var(--lumo-size-m);
2096
2096
  color: var(--lumo-body-text-color);
@@ -2214,7 +2214,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2214
2214
  [part='clear-button']::before {
2215
2215
  content: var(--lumo-icons-cross);
2216
2216
  }
2217
- `;const Wn=[Ln,Rn,jn,Hn];gt("",Wn,{moduleId:"lumo-input-field-shared-styles"});const Un=p`
2217
+ `;const Un=[Hn,jn,Ln,Wn];vt("",Un,{moduleId:"lumo-input-field-shared-styles"});const $n=p`
2218
2218
  :host {
2219
2219
  outline: none;
2220
2220
  }
@@ -2240,7 +2240,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2240
2240
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
2241
2241
  --_lumo-text-field-overflow-mask-image: none;
2242
2242
  }
2243
- `;gt("vaadin-date-picker",[Wn,Un],{moduleId:"lumo-date-picker"});
2243
+ `;vt("vaadin-date-picker",[Un,$n],{moduleId:"lumo-date-picker"});
2244
2244
  /**
2245
2245
  * @fileoverview
2246
2246
  * @suppress {checkPrototypalTypes}
@@ -2251,22 +2251,22 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2251
2251
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2252
2252
  * Google as part of the polymer project is also subject to an additional IP
2253
2253
  * rights grant found at http://polymer.github.io/PATENTS.txt
2254
- */const $n="disable-upgrade";const Gn=t=>{while(t){const e=Object.getOwnPropertyDescriptor(t,"observedAttributes");if(e){return e.get}t=Object.getPrototypeOf(t.prototype).constructor}return()=>[]};const Yn=le((t=>{const e=Ds(t);let i=Gn(e);class s extends e{constructor(){super()}static get observedAttributes(){return i.call(this).concat($n)}_initializeProperties(){if(this.hasAttribute($n)){this.__isUpgradeDisabled=true}else{super._initializeProperties()}}_enableProperties(){if(!this.__isUpgradeDisabled){super._enableProperties()}}_canApplyPropertyDefault(t){return super._canApplyPropertyDefault(t)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(t))}attributeChangedCallback(t,e,i,s){if(t==$n){if(this.__isUpgradeDisabled&&i==null){super._initializeProperties();this.__isUpgradeDisabled=false;if(De(this).isConnected){super.connectedCallback()}}}else{super.attributeChangedCallback(t,e,i,s)}}connectedCallback(){if(!this.__isUpgradeDisabled){super.connectedCallback()}}disconnectedCallback(){if(!this.__isUpgradeDisabled){super.disconnectedCallback()}}}return s}));
2254
+ */const Gn="disable-upgrade";const Yn=t=>{while(t){const e=Object.getOwnPropertyDescriptor(t,"observedAttributes");if(e){return e.get}t=Object.getPrototypeOf(t.prototype).constructor}return()=>[]};const qn=he((t=>{const e=Cs(t);let i=Yn(e);class s extends e{constructor(){super()}static get observedAttributes(){return i.call(this).concat(Gn)}_initializeProperties(){if(this.hasAttribute(Gn)){this.__isUpgradeDisabled=true}else{super._initializeProperties()}}_enableProperties(){if(!this.__isUpgradeDisabled){super._enableProperties()}}_canApplyPropertyDefault(t){return super._canApplyPropertyDefault(t)&&!(this.__isUpgradeDisabled&&this._isPropertyPending(t))}attributeChangedCallback(t,e,i,s){if(t==Gn){if(this.__isUpgradeDisabled&&i==null){super._initializeProperties();this.__isUpgradeDisabled=false;if(Ce(this).isConnected){super.connectedCallback()}}}else{super.attributeChangedCallback(t,e,i,s)}}connectedCallback(){if(!this.__isUpgradeDisabled){super.connectedCallback()}}disconnectedCallback(){if(!this.__isUpgradeDisabled){super.disconnectedCallback()}}}return s}));
2255
2255
  /**
2256
2256
  * @license
2257
2257
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2258
2258
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2259
- */function qn(t){const e=[];while(t){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t);t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}function Vn(t){if(!t){return new Set}return new Set(t.split(" "))}function Jn(t){return[...t].join(" ")}function Kn(t,e,i){const s=Vn(t.getAttribute(e));s.add(i);t.setAttribute(e,Jn(s))}function Zn(t,e,i){const s=Vn(t.getAttribute(e));s.delete(i);if(s.size===0){t.removeAttribute(e);return}t.setAttribute(e,Jn(s))}
2259
+ */function Vn(t){const e=[];while(t){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}if(t.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(t);t=t.host;continue}if(t.assignedSlot){t=t.assignedSlot;continue}t=t.parentNode}return e}function Jn(t){if(!t){return new Set}return new Set(t.split(" "))}function Kn(t){return[...t].join(" ")}function Zn(t,e,i){const s=Jn(t.getAttribute(e));s.add(i);t.setAttribute(e,Kn(s))}function Xn(t,e,i){const s=Jn(t.getAttribute(e));s.delete(i);if(s.size===0){t.removeAttribute(e);return}t.setAttribute(e,Kn(s))}
2260
2260
  /**
2261
2261
  * @license
2262
2262
  * Copyright (c) 2017 - 2022 Vaadin Ltd.
2263
2263
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2264
- */const Xn={start:"top",end:"bottom"};const Qn={start:"left",end:"right"};const ta=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{if(t.target.__overlay){t.target.__overlay._updatePosition()}}))}))}));const ea=t=>class e 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:false},noVerticalOverlap:{type:Boolean,value:false},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();if(this.opened){this.__addUpdatePositionEventListeners()}}disconnectedCallback(){super.disconnectedCallback();this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition);this.__positionTargetAncestorRootNodes=qn(this.positionTarget);this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,true)}))}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition);if(this.__positionTargetAncestorRootNodes){this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,true)}));this.__positionTargetAncestorRootNodes=null}}__overlayOpenedChanged(t,e){this.__removeUpdatePositionEventListeners();if(e){e.__overlay=null;ta.unobserve(e);if(t){this.__addUpdatePositionEventListeners();e.__overlay=this;ta.observe(e)}}if(t){const t=getComputedStyle(this);if(!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()))}}get __isRTL(){return this.getAttribute("dir")==="rtl"}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){if(!this.contains(t.target)){this._updatePosition()}}_updatePosition(){if(!this.positionTarget||!this.opened){return}const t=this.positionTarget.getBoundingClientRect();const e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__shouldAlignStartHorizontally(t,this.__isRTL);const s=!this.__isRTL&&i||this.__isRTL&&!i;this.style.alignItems=s?"flex-start":"flex-end";const r=this.getBoundingClientRect();const o=this.__calculatePositionInOneDimension(t,r,this.noVerticalOverlap,Xn,this,e);const n=this.__calculatePositionInOneDimension(t,r,this.noHorizontalOverlap,Qn,this,i);Object.assign(this.style,o,n);this.toggleAttribute("bottom-aligned",!e);this.toggleAttribute("top-aligned",e);this.toggleAttribute("end-aligned",!s);this.toggleAttribute("start-aligned",s)}__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);const r=!e&&this.horizontalAlign==="start"||e&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,i,s,this.__margins,r,this.noHorizontalOverlap,Qn)}__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);const s=this.verticalAlign==="top";return this.__shouldAlignStart(t,e,i,this.__margins,s,this.noVerticalOverlap,Xn)}__shouldAlignStart(t,e,i,s,r,o,n){const a=i-t[o?n.end:n.start]-s[n.end];const l=t[o?n.start:n.end]-s[n.start];const h=r?a:l;const c=r?l:a;const u=h>c||h>e;return r===u}__adjustBottomProperty(t,e,i){let s;if(t===e.end){if(e.end===Xn.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>t&&this.__oldViewportHeight){const e=this.__oldViewportHeight-t;s=i-e}this.__oldViewportHeight=t}if(e.end===Qn.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>t&&this.__oldViewportWidth){const e=this.__oldViewportWidth-t;s=i-e}this.__oldViewportWidth=t}}return s}__calculatePositionInOneDimension(t,e,i,s,r,o){const n=o?s.start:s.end;const a=o?s.end:s.start;const l=parseFloat(r.style[n]||getComputedStyle(r)[n]);const h=this.__adjustBottomProperty(n,s,l);const c=e[o?s.start:s.end]-t[i===o?s.end:s.start];const u=h?`${h}px`:`${l+c*(o?-1:1)}px`;return{[n]:u,[a]:""}}}
2264
+ */const Qn={start:"top",end:"bottom"};const ta={start:"left",end:"right"};const ea=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{if(t.target.__overlay){t.target.__overlay._updatePosition()}}))}))}));const ia=t=>class e 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:false},noVerticalOverlap:{type:Boolean,value:false},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();if(this.opened){this.__addUpdatePositionEventListeners()}}disconnectedCallback(){super.disconnectedCallback();this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition);this.__positionTargetAncestorRootNodes=Vn(this.positionTarget);this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,true)}))}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition);if(this.__positionTargetAncestorRootNodes){this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,true)}));this.__positionTargetAncestorRootNodes=null}}__overlayOpenedChanged(t,e){this.__removeUpdatePositionEventListeners();if(e){e.__overlay=null;ea.unobserve(e);if(t){this.__addUpdatePositionEventListeners();e.__overlay=this;ea.observe(e)}}if(t){const t=getComputedStyle(this);if(!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()))}}get __isRTL(){return this.getAttribute("dir")==="rtl"}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){if(!this.contains(t.target)){this._updatePosition()}}_updatePosition(){if(!this.positionTarget||!this.opened){return}const t=this.positionTarget.getBoundingClientRect();const e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__shouldAlignStartHorizontally(t,this.__isRTL);const s=!this.__isRTL&&i||this.__isRTL&&!i;this.style.alignItems=s?"flex-start":"flex-end";const r=this.getBoundingClientRect();const o=this.__calculatePositionInOneDimension(t,r,this.noVerticalOverlap,Qn,this,e);const n=this.__calculatePositionInOneDimension(t,r,this.noHorizontalOverlap,ta,this,i);Object.assign(this.style,o,n);this.toggleAttribute("bottom-aligned",!e);this.toggleAttribute("top-aligned",e);this.toggleAttribute("end-aligned",!s);this.toggleAttribute("start-aligned",s)}__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);const r=!e&&this.horizontalAlign==="start"||e&&this.horizontalAlign==="end";return this.__shouldAlignStart(t,i,s,this.__margins,r,this.noHorizontalOverlap,ta)}__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);const s=this.verticalAlign==="top";return this.__shouldAlignStart(t,e,i,this.__margins,s,this.noVerticalOverlap,Qn)}__shouldAlignStart(t,e,i,s,r,o,n){const a=i-t[o?n.end:n.start]-s[n.end];const l=t[o?n.start:n.end]-s[n.start];const h=r?a:l;const c=r?l:a;const u=h>c||h>e;return r===u}__adjustBottomProperty(t,e,i){let s;if(t===e.end){if(e.end===Qn.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>t&&this.__oldViewportHeight){const e=this.__oldViewportHeight-t;s=i-e}this.__oldViewportHeight=t}if(e.end===ta.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>t&&this.__oldViewportWidth){const e=this.__oldViewportWidth-t;s=i-e}this.__oldViewportWidth=t}}return s}__calculatePositionInOneDimension(t,e,i,s,r,o){const n=o?s.start:s.end;const a=o?s.end:s.start;const l=parseFloat(r.style[n]||getComputedStyle(r)[n]);const h=this.__adjustBottomProperty(n,s,l);const c=e[o?s.start:s.end]-t[i===o?s.end:s.start];const u=h?`${h}px`:`${l+c*(o?-1:1)}px`;return{[n]:u,[a]:""}}}
2265
2265
  /**
2266
2266
  * @license
2267
2267
  * Copyright (c) 2016 - 2022 Vaadin Ltd.
2268
2268
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2269
- */;const ia=p`
2269
+ */;const sa=p`
2270
2270
  :host([dir='rtl']) [part='input-field'] {
2271
2271
  direction: ltr;
2272
2272
  }
@@ -2275,7 +2275,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2275
2275
  direction: rtl;
2276
2276
  text-align: left;
2277
2277
  }
2278
- `;const sa=p`
2278
+ `;const ra=p`
2279
2279
  [part='overlay'] {
2280
2280
  display: flex;
2281
2281
  flex: auto;
@@ -2289,7 +2289,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2289
2289
  * @license
2290
2290
  * Copyright (c) 2016 - 2022 Vaadin Ltd.
2291
2291
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2292
- */;gt("vaadin-date-picker-overlay",sa,{moduleId:"vaadin-date-picker-overlay-styles"});let ra;class oa extends(Yn(ea(so))){static get is(){return"vaadin-date-picker-overlay"}static get template(){if(!ra){ra=super.template.cloneNode(true);ra.content.querySelector('[part~="overlay"]').removeAttribute("tabindex")}return ra}}customElements.define(oa.is,oa);
2292
+ */;vt("vaadin-date-picker-overlay",ra,{moduleId:"vaadin-date-picker-overlay-styles"});let oa;class na extends(qn(ia(ro))){static get is(){return"vaadin-date-picker-overlay"}static get template(){if(!oa){oa=super.template.cloneNode(true);oa.content.querySelector('[part~="overlay"]').removeAttribute("tabindex")}return oa}}customElements.define(na.is,na);
2293
2293
  /**
2294
2294
  @license
2295
2295
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2298,7 +2298,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2298
2298
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2299
2299
  Code distributed by Google as part of the polymer project is also
2300
2300
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2301
- */class na{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;aa.delete(this);this._callback()}))}cancel(){if(this.isActive()){this._cancelAsync();aa.delete(this)}}_cancelAsync(){if(this.isActive()){this._asyncModule.cancel(this._timer);this._timer=null}}flush(){if(this.isActive()){this.cancel();this._callback()}}isActive(){return this._timer!=null}static debounce(t,e,i){if(t instanceof na){t._cancelAsync()}else{t=new na}t.setConfig(e,i);return t}}let aa=new Set;const la=function(t){aa.add(t)};const ha=function(){const t=Boolean(aa.size);aa.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}}));return t};
2301
+ */class aa{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;la.delete(this);this._callback()}))}cancel(){if(this.isActive()){this._cancelAsync();la.delete(this)}}_cancelAsync(){if(this.isActive()){this._asyncModule.cancel(this._timer);this._timer=null}}flush(){if(this.isActive()){this.cancel();this._callback()}}isActive(){return this._timer!=null}static debounce(t,e,i){if(t instanceof aa){t._cancelAsync()}else{t=new aa}t.setConfig(e,i);return t}}let la=new Set;const ha=function(t){la.add(t)};const ca=function(){const t=Boolean(la.size);la.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}}));return t};
2302
2302
  /**
2303
2303
  @license
2304
2304
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2307,7 +2307,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2307
2307
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2308
2308
  Code distributed by Google as part of the polymer project is also
2309
2309
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2310
- */const ca=function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush();if(window.ShadyCSS&&window.ShadyCSS.ScopingShim){window.ShadyCSS.ScopingShim.flush()}e=ha()}while(t||e)};
2310
+ */const ua=function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush();if(window.ShadyCSS&&window.ShadyCSS.ScopingShim){window.ShadyCSS.ScopingShim.flush()}e=ca()}while(t||e)};
2311
2311
  /**
2312
2312
  @license
2313
2313
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2316,7 +2316,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2316
2316
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2317
2317
  Code distributed by Google as part of the polymer project is also
2318
2318
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2319
- */let ua=false;function da(){if(Xt&&!Yt){if(!ua){ua=true;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(t)}return true}return false}
2319
+ */let da=false;function fa(){if(Qt&&!qt){if(!da){da=true;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}";document.head.appendChild(t)}return true}return false}
2320
2320
  /**
2321
2321
  @license
2322
2322
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2325,17 +2325,17 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2325
2325
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2326
2326
  Code distributed by Google as part of the polymer project is also
2327
2327
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2328
- */const fa=mr(Es);class pa extends fa{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:!oe,readOnly:true},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=false;this.__shouldMeasureChunk=false;this.__shouldContinueChunking=false;this.__chunkingId=0;this.__sortFn=null;this.__filterFn=null;this.__observePaths=null;this.__ctor=null;this.__isDetached=true;this.template=null}disconnectedCallback(){super.disconnectedCallback();this.__isDetached=true;for(let t=0;t<this.__instances.length;t++){this.__detachInstance(t)}if(this.__chunkingId){cancelAnimationFrame(this.__chunkingId)}}connectedCallback(){super.connectedCallback();if(!da()){this.style.display="none"}if(this.__isDetached){this.__isDetached=false;let t=De(De(this).parentNode);for(let e=0;e<this.__instances.length;e++){this.__attachInstance(e,t)}if(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")){t.disconnect();this.__render()}else{throw new Error("dom-repeat requires a <template> child")}}));t.observe(this,{childList:true});return false}let i={};i[this.as]=true;i[this.indexAs]=true;i[this.itemsIndexAs]=true;this.__ctor=Er(e,this,{mutableData:this.mutableData,parentModel:true,instanceProps:i,forwardHostProp:function(t,e){let i=this.__instances;for(let s=0,r;s<i.length&&(r=i[s]);s++){r.forwardHostProp(t,e)}},notifyInstanceProp:function(t,e,i){if(Pe(this.as,e)){let s=t[this.itemsIndexAs];if(e==this.as){this.items[s]=i}let r=ze(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,e);this.notifyPath(r,i)}}})}return true}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t==="string"){let e=t;let i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t);if(this.items){this.__debounceRender(this.__render)}}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t);if(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){this.__debounceRender(this.__render,this.delay)}else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++){if(t.indexOf(e[i])===0){this.__debounceRender(this.__render,this.delay)}}}}}__itemsChanged(t){if(this.items&&!Array.isArray(this.items)){console.warn("dom-repeat expected array for `items`, found",this.items)}if(!this.__handleItemPath(t.path,t.value)){if(t.path==="items"){this.__itemsArrayChanged=true}this.__debounceRender(this.__render)}}__debounceRender(t,e=0){this.__renderDebouncer=na.debounce(this.__renderDebouncer,e>0?Ve.after(e):Je,t.bind(this));la(this.__renderDebouncer)}render(){this.__debounceRender(this.__render);ca()}__render(){if(!this.__ensureTemplatized()){return}let t=this.items||[];const e=this.__sortAndFilterItems(t);const i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e);if(this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)){cancelAnimationFrame(this.__chunkingId);this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null;this.__continueChunking()}))}this._setRenderedItemCount(this.__instances.length);if(!oe||this.notifyDomChange){this.dispatchEvent(new CustomEvent("dom-change",{bubbles:true,composed:true}))}}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++){e[i]=i}if(this.__filterFn){e=e.filter(((e,i,s)=>this.__filterFn(t[e],i,s)))}if(this.__sortFn){e.sort(((e,i)=>this.__sortFn(t[e],t[i])))}return e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;if(!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances){e=Math.min(t,this.initialCount);s=Math.max(e-i,0);this.__chunkCount=s||1}else{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()}this.__itemsArrayChanged=false;return e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime;const e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}if(this.__shouldContinueChunking){this.__debounceRender(this.__render)}}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let e=this.__instances[r];let o=i[r];let n=t[o];s[o]=r;if(e){e._setPendingProperty(this.as,n);e._setPendingProperty(this.indexAs,r);e._setPendingProperty(this.itemsIndexAs,o);e._flushProperties()}else{this.__insertInstance(n,r,o)}}for(let t=this.__instances.length-1;t>=r;t--){this.__detachAndRemoveInstance(t)}}__detachInstance(t){let e=this.__instances[t];const i=De(e.root);for(let t=0;t<e.children.length;t++){let s=e.children[t];i.appendChild(s)}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t);this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};s[this.as]=t;s[this.indexAs]=e;s[this.itemsIndexAs]=i;return new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1];let o=r?r.children[0]:this;De(De(this).parentNode).insertBefore(s.root,o);this.__instances[e]=s;return 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);let s=i.indexOf(".");let r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let t=s<0?"":i.substring(s+1);this.__handleObservedPaths(t);let o=this.__itemsIdxToInstIdx[r];let n=this.__instances[o];if(n){let i=this.as+(t?"."+t:"");n._setPendingPropertyOrPath(i,e,false,true);n._flushProperties()}return true}}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 Or(this.template,t)}}customElements.define(pa.is,pa);
2328
+ */const pa=br(Fs);class ma extends pa{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:!ne,readOnly:true},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=false;this.__shouldMeasureChunk=false;this.__shouldContinueChunking=false;this.__chunkingId=0;this.__sortFn=null;this.__filterFn=null;this.__observePaths=null;this.__ctor=null;this.__isDetached=true;this.template=null}disconnectedCallback(){super.disconnectedCallback();this.__isDetached=true;for(let t=0;t<this.__instances.length;t++){this.__detachInstance(t)}if(this.__chunkingId){cancelAnimationFrame(this.__chunkingId)}}connectedCallback(){super.connectedCallback();if(!fa()){this.style.display="none"}if(this.__isDetached){this.__isDetached=false;let t=Ce(Ce(this).parentNode);for(let e=0;e<this.__instances.length;e++){this.__attachInstance(e,t)}if(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")){t.disconnect();this.__render()}else{throw new Error("dom-repeat requires a <template> child")}}));t.observe(this,{childList:true});return false}let i={};i[this.as]=true;i[this.indexAs]=true;i[this.itemsIndexAs]=true;this.__ctor=Fr(e,this,{mutableData:this.mutableData,parentModel:true,instanceProps:i,forwardHostProp:function(t,e){let i=this.__instances;for(let s=0,r;s<i.length&&(r=i[s]);s++){r.forwardHostProp(t,e)}},notifyInstanceProp:function(t,e,i){if(Ee(this.as,e)){let s=t[this.itemsIndexAs];if(e==this.as){this.items[s]=i}let r=Pe(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,e);this.notifyPath(r,i)}}})}return true}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t==="string"){let e=t;let i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t);if(this.items){this.__debounceRender(this.__render)}}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t);if(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){this.__debounceRender(this.__render,this.delay)}else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++){if(t.indexOf(e[i])===0){this.__debounceRender(this.__render,this.delay)}}}}}__itemsChanged(t){if(this.items&&!Array.isArray(this.items)){console.warn("dom-repeat expected array for `items`, found",this.items)}if(!this.__handleItemPath(t.path,t.value)){if(t.path==="items"){this.__itemsArrayChanged=true}this.__debounceRender(this.__render)}}__debounceRender(t,e=0){this.__renderDebouncer=aa.debounce(this.__renderDebouncer,e>0?Je.after(e):Ke,t.bind(this));ha(this.__renderDebouncer)}render(){this.__debounceRender(this.__render);ua()}__render(){if(!this.__ensureTemplatized()){return}let t=this.items||[];const e=this.__sortAndFilterItems(t);const i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e);if(this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)){cancelAnimationFrame(this.__chunkingId);this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null;this.__continueChunking()}))}this._setRenderedItemCount(this.__instances.length);if(!ne||this.notifyDomChange){this.dispatchEvent(new CustomEvent("dom-change",{bubbles:true,composed:true}))}}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++){e[i]=i}if(this.__filterFn){e=e.filter(((e,i,s)=>this.__filterFn(t[e],i,s)))}if(this.__sortFn){e.sort(((e,i)=>this.__sortFn(t[e],t[i])))}return e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;if(!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances){e=Math.min(t,this.initialCount);s=Math.max(e-i,0);this.__chunkCount=s||1}else{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()}this.__itemsArrayChanged=false;return e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime;const e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}if(this.__shouldContinueChunking){this.__debounceRender(this.__render)}}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let e=this.__instances[r];let o=i[r];let n=t[o];s[o]=r;if(e){e._setPendingProperty(this.as,n);e._setPendingProperty(this.indexAs,r);e._setPendingProperty(this.itemsIndexAs,o);e._flushProperties()}else{this.__insertInstance(n,r,o)}}for(let t=this.__instances.length-1;t>=r;t--){this.__detachAndRemoveInstance(t)}}__detachInstance(t){let e=this.__instances[t];const i=Ce(e.root);for(let t=0;t<e.children.length;t++){let s=e.children[t];i.appendChild(s)}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t);this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};s[this.as]=t;s[this.indexAs]=e;s[this.itemsIndexAs]=i;return new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1];let o=r?r.children[0]:this;Ce(Ce(this).parentNode).insertBefore(s.root,o);this.__instances[e]=s;return 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);let s=i.indexOf(".");let r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let t=s<0?"":i.substring(s+1);this.__handleObservedPaths(t);let o=this.__itemsIdxToInstIdx[r];let n=this.__instances[o];if(n){let i=this.as+(t?"."+t:"");n._setPendingPropertyOrPath(i,e,false,true);n._flushProperties()}return true}}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 Br(this.template,t)}}customElements.define(ma.is,ma);
2329
2329
  /**
2330
2330
  * @license
2331
2331
  * Copyright (c) 2016 - 2022 Vaadin Ltd.
2332
2332
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2333
- */function ma(t){let e=t.getDay();if(e===0){e=7}const i=4-e;const s=new Date(t.getTime()+i*24*3600*1e3);const r=new Date(0,0);r.setFullYear(s.getFullYear());const o=s.getTime()-r.getTime();const n=Math.round(o/(24*3600*1e3));return Math.floor(n/7+1)}function ba(t,e){return t instanceof Date&&e instanceof Date&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function ga(t,e,i){return(!e||t>=e)&&(!i||t<=i)}function va(t,e){return e.filter((t=>t!==undefined)).reduce(((e,i)=>{if(!i){return e}if(!e){return i}const s=Math.abs(t.getTime()-i.getTime());const r=Math.abs(e.getTime()-t.getTime());return s<r?i:e}))}function ya(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function wa(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 r=e+Math.floor(t.getFullYear()/100)*100;if(t<new Date(r-50,i,s)){r-=100}else if(t>new Date(r+50,i,s)){r+=100}return r}function xa(t){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/.exec(t);if(!e){return undefined}const i=new Date(0,0);i.setFullYear(parseInt(e[1],10));i.setMonth(parseInt(e[2],10)-1);i.setDate(parseInt(e[3],10));return i}
2333
+ */function ba(t){let e=t.getDay();if(e===0){e=7}const i=4-e;const s=new Date(t.getTime()+i*24*3600*1e3);const r=new Date(0,0);r.setFullYear(s.getFullYear());const o=s.getTime()-r.getTime();const n=Math.round(o/(24*3600*1e3));return Math.floor(n/7+1)}function ga(t,e){return t instanceof Date&&e instanceof Date&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function va(t,e,i){return(!e||t>=e)&&(!i||t<=i)}function ya(t,e){return e.filter((t=>t!==undefined)).reduce(((e,i)=>{if(!i){return e}if(!e){return i}const s=Math.abs(t.getTime()-i.getTime());const r=Math.abs(e.getTime()-t.getTime());return s<r?i:e}))}function wa(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function xa(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 r=e+Math.floor(t.getFullYear()/100)*100;if(t<new Date(r-50,i,s)){r-=100}else if(t>new Date(r+50,i,s)){r+=100}return r}function _a(t){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/.exec(t);if(!e){return undefined}const i=new Date(0,0);i.setFullYear(parseInt(e[1],10));i.setMonth(parseInt(e[2],10)-1);i.setDate(parseInt(e[3],10));return i}
2334
2334
  /**
2335
2335
  * @license
2336
2336
  * Copyright (c) 2016 - 2022 Vaadin Ltd.
2337
2337
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2338
- */class _a extends(En(Tt(Es))){static get template(){return zs`
2338
+ */class ka extends(Fn(St(Fs))){static get template(){return Ps`
2339
2339
  <style>
2340
2340
  :host {
2341
2341
  display: block;
@@ -2435,12 +2435,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2435
2435
  </template>
2436
2436
  </tbody>
2437
2437
  </table>
2438
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{month:{type:Date,value:new Date},selectedDate:{type:Date,notify:true},focusedDate:Date,showWeekNumbers:{type:Boolean,value:false},i18n:{type:Object},ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Date,value:null},maxDate:{type:Date,value:null},_days:{type:Array,computed:"_getDays(month, i18n.firstDayOfWeek, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:true,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n.firstDayOfWeek)","__focusedDateChanged(focusedDate, _days)"]}ready(){super.ready();yn(this.$.monthGrid,"tap",this._handleTap.bind(this))}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part=date]")].find((t=>ba(t.date,this.focusedDate)))}_isDisabled(t,e,i){const s=new Date(0,0);s.setFullYear(t.getFullYear());s.setMonth(t.getMonth());s.setDate(1);const r=new Date(0,0);r.setFullYear(t.getFullYear());r.setMonth(t.getMonth()+1);r.setDate(0);if(e&&i&&e.getMonth()===i.getMonth()&&e.getMonth()===t.getMonth()&&i.getDate()-e.getDate()>=0){return false}return!ga(s,e,i)&&!ga(r,e,i)}_getTitle(t,e){if(t===undefined||e===undefined){return}return this.i18n.formatTitle(e[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=false;setTimeout((()=>{this._notTapping=true}),300)}_dateAdd(t,e){t.setDate(t.getDate()+e)}_applyFirstDayOfWeek(t,e){if(t===undefined||e===undefined){return}return t.slice(e).concat(t.slice(0,e))}_getWeekDayNames(t,e,i,s){if(t===undefined||e===undefined||i===undefined||s===undefined){return}t=this._applyFirstDayOfWeek(t,s);e=this._applyFirstDayOfWeek(e,s);t=t.map(((t,i)=>({weekDay:t,weekDayShort:e[i]})));return t}__focusedDateChanged(t,e){if(e.some((e=>ba(e,t)))){this.removeAttribute("aria-hidden")}else{this.setAttribute("aria-hidden","true")}}_getDate(t){return t?t.getDate():""}_showWeekNumbersChanged(t,e){if(t&&e===1){this.setAttribute("week-numbers","")}else{this.removeAttribute("week-numbers")}}_showWeekSeparator(t,e){return t&&e===1}_isToday(t){return ba(new Date,t)}_getDays(t,e){if(t===undefined||e===undefined){return}const i=new Date(0,0);i.setFullYear(t.getFullYear());i.setMonth(t.getMonth());i.setDate(1);while(i.getDay()!==e){this._dateAdd(i,-1)}const s=[];const r=i.getMonth();const o=t.getMonth();while(i.getMonth()===o||i.getMonth()===r){s.push(i.getMonth()===o?new Date(i.getTime()):null);this._dateAdd(i,1)}return s}_getWeeks(t){return t.reduce(((t,e,i)=>{if(i%7===0){t.push([])}t[t.length-1].push(e);return t}),[])}_handleTap(t){if(!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:true,composed:true}))}}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const e=t.reduce(((t,e)=>!t&&e?e:t));return ma(e)}__isDayFocused(t,e){return ba(t,e)}__isDaySelected(t,e){return ba(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e)){return"true"}}__isDayDisabled(t,e,i){return!ga(t,e,i)}__getDayAriaDisabled(t,e,i){if(t===undefined||e===undefined||i===undefined){return}if(this.__isDayDisabled(t,e,i)){return"true"}}__getDayAriaLabel(t){if(!t){return""}let e=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;if(this._isToday(t)){e+=`, ${this.i18n.today}`}return e}__getDayTabindex(t,e){if(this.__isDayFocused(t,e)){return"0"}return"-1"}}customElements.define(_a.is,_a);
2438
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{month:{type:Date,value:new Date},selectedDate:{type:Date,notify:true},focusedDate:Date,showWeekNumbers:{type:Boolean,value:false},i18n:{type:Object},ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Date,value:null},maxDate:{type:Date,value:null},_days:{type:Array,computed:"_getDays(month, i18n.firstDayOfWeek, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:true,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n.firstDayOfWeek)","__focusedDateChanged(focusedDate, _days)"]}ready(){super.ready();wn(this.$.monthGrid,"tap",this._handleTap.bind(this))}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part=date]")].find((t=>ga(t.date,this.focusedDate)))}_isDisabled(t,e,i){const s=new Date(0,0);s.setFullYear(t.getFullYear());s.setMonth(t.getMonth());s.setDate(1);const r=new Date(0,0);r.setFullYear(t.getFullYear());r.setMonth(t.getMonth()+1);r.setDate(0);if(e&&i&&e.getMonth()===i.getMonth()&&e.getMonth()===t.getMonth()&&i.getDate()-e.getDate()>=0){return false}return!va(s,e,i)&&!va(r,e,i)}_getTitle(t,e){if(t===undefined||e===undefined){return}return this.i18n.formatTitle(e[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=false;setTimeout((()=>{this._notTapping=true}),300)}_dateAdd(t,e){t.setDate(t.getDate()+e)}_applyFirstDayOfWeek(t,e){if(t===undefined||e===undefined){return}return t.slice(e).concat(t.slice(0,e))}_getWeekDayNames(t,e,i,s){if(t===undefined||e===undefined||i===undefined||s===undefined){return}t=this._applyFirstDayOfWeek(t,s);e=this._applyFirstDayOfWeek(e,s);t=t.map(((t,i)=>({weekDay:t,weekDayShort:e[i]})));return t}__focusedDateChanged(t,e){if(e.some((e=>ga(e,t)))){this.removeAttribute("aria-hidden")}else{this.setAttribute("aria-hidden","true")}}_getDate(t){return t?t.getDate():""}_showWeekNumbersChanged(t,e){if(t&&e===1){this.setAttribute("week-numbers","")}else{this.removeAttribute("week-numbers")}}_showWeekSeparator(t,e){return t&&e===1}_isToday(t){return ga(new Date,t)}_getDays(t,e){if(t===undefined||e===undefined){return}const i=new Date(0,0);i.setFullYear(t.getFullYear());i.setMonth(t.getMonth());i.setDate(1);while(i.getDay()!==e){this._dateAdd(i,-1)}const s=[];const r=i.getMonth();const o=t.getMonth();while(i.getMonth()===o||i.getMonth()===r){s.push(i.getMonth()===o?new Date(i.getTime()):null);this._dateAdd(i,1)}return s}_getWeeks(t){return t.reduce(((t,e,i)=>{if(i%7===0){t.push([])}t[t.length-1].push(e);return t}),[])}_handleTap(t){if(!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:true,composed:true}))}}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const e=t.reduce(((t,e)=>!t&&e?e:t));return ba(e)}__isDayFocused(t,e){return ga(t,e)}__isDaySelected(t,e){return ga(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e)){return"true"}}__isDayDisabled(t,e,i){return!va(t,e,i)}__getDayAriaDisabled(t,e,i){if(t===undefined||e===undefined||i===undefined){return}if(this.__isDayDisabled(t,e,i)){return"true"}}__getDayAriaLabel(t){if(!t){return""}let e=`${this._getDate(t)} ${this.i18n.monthNames[t.getMonth()]} ${t.getFullYear()}, ${this.i18n.weekdays[t.getDay()]}`;if(this._isToday(t)){e+=`, ${this.i18n.today}`}return e}__getDayTabindex(t,e){if(this.__isDayFocused(t,e)){return"0"}return"-1"}}customElements.define(ka.is,ka);
2439
2439
  /**
2440
2440
  * @license
2441
2441
  * Copyright (c) 2016 - 2022 Vaadin Ltd.
2442
2442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2443
- */class ka extends Es{static get template(){return zs`
2443
+ */class Aa extends Fs{static get template(){return Ps`
2444
2444
  <style>
2445
2445
  :host {
2446
2446
  display: block;
@@ -2490,17 +2490,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2490
2490
  <div class="buffer"></div>
2491
2491
  <div id="fullHeight"></div>
2492
2492
  </div>
2493
- `}static get is(){return"vaadin-infinite-scroller"}static get properties(){return{bufferSize:{type:Number,value:20},_initialScroll:{value:5e5},_initialIndex:{value:0},_buffers:Array,_preventScrollEvent:Boolean,_mayHaveMomentum:Boolean,_initialized:Boolean,active:{type:Boolean,observer:"_activated"}}}ready(){super.ready();this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")];this.$.fullHeight.style.height=`${this._initialScroll*2}px`;const t=this.querySelector("template");this._TemplateClass=Er(t,this,{forwardHostProp(t,e){if(t!=="index"){this._buffers.forEach((i=>{[...i.children].forEach((i=>{i._itemWrapper.instance[t]=e}))}))}}});if(Rr){this.$.scroller.tabIndex=-1}}forceUpdate(){if(this._debouncerUpdateClones){this._buffers[0].updated=this._buffers[1].updated=false;this._updateClones();this._debouncerUpdateClones.cancel()}}_activated(t){if(t&&!this._initialized){this._createPool();this._initialized=true}}_finishInit(){if(!this._initDone){this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))}));if(!this._buffers[0].translateY){this._reset()}this._initDone=true}}_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=false;this._buffers.reverse()}_scroll(){if(this._scrollDisabled){return}const t=this.$.scroller.scrollTop;if(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight){this._initialIndex=~~this.position;this._reset()}const e=this.itemHeight+this.bufferOffset;const i=t>this._buffers[1].translateY+e;const s=t<this._buffers[0].translateY+e;if(i||s){this._translateBuffer(s);this._updateClones()}if(!this._preventScrollEvent){this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:false,composed:true}));this._mayHaveMomentum=true}this._preventScrollEvent=false;this._debouncerScrollFinish=Po.debounce(this._debouncerScrollFinish,So.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();if(!this._isVisible(this._buffers[0],t)&&!this._isVisible(this._buffers[1],t)){this.position=this.position}}))}get bufferOffset(){return this._buffers[0].offsetTop}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=true;if(t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2){this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY}else{this._initialIndex=~~t;this._reset();this._scrollDisabled=true;this.$.scroller.scrollTop+=t%1*this.itemHeight;this._scrollDisabled=false}if(this._mayHaveMomentum){this.$.scroller.classList.add("notouchscroll");this._mayHaveMomentum=false;setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10)}}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height");const 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}_reset(){this._scrollDisabled=true;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=false;this._updateClones(true);this._debouncerUpdateClones=Po.debounce(this._debouncerUpdateClones,So.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=false;this._updateClones()}));this._scrollDisabled=false}_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=ka._contentIndex=ka._contentIndex+1||0;const r=`vaadin-infinite-scroller-item-content-${s}`;const o=document.createElement("slot");o.setAttribute("name",r);o._itemWrapper=i;e.appendChild(o);i.setAttribute("slot",r);this.appendChild(i);setTimeout((()=>{if(this._isVisible(i,t)){this._ensureStampedInstance(i)}}),1)}}));setTimeout((()=>{dr(this,this._finishInit.bind(this))}),1)}_ensureStampedInstance(t){if(t.firstElementChild){return}const e=t.instance;t.instance=new this._TemplateClass({});t.appendChild(t.instance.root);Object.keys(e).forEach((i=>{t.instance.set(i,e[i])}))}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():undefined;this._buffers.forEach(((i,s)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*s;[...i.children].forEach(((i,s)=>{const o=i._itemWrapper;if(!t||this._isVisible(o,e)){o.instance.index=r+s}}));i.updated=true}}))}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}customElements.define(ka.is,ka);
2493
+ `}static get is(){return"vaadin-infinite-scroller"}static get properties(){return{bufferSize:{type:Number,value:20},_initialScroll:{value:5e5},_initialIndex:{value:0},_buffers:Array,_preventScrollEvent:Boolean,_mayHaveMomentum:Boolean,_initialized:Boolean,active:{type:Boolean,observer:"_activated"}}}ready(){super.ready();this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")];this.$.fullHeight.style.height=`${this._initialScroll*2}px`;const t=this.querySelector("template");this._TemplateClass=Fr(t,this,{forwardHostProp(t,e){if(t!=="index"){this._buffers.forEach((i=>{[...i.children].forEach((i=>{i._itemWrapper.instance[t]=e}))}))}}});if(jr){this.$.scroller.tabIndex=-1}}forceUpdate(){if(this._debouncerUpdateClones){this._buffers[0].updated=this._buffers[1].updated=false;this._updateClones();this._debouncerUpdateClones.cancel()}}_activated(t){if(t&&!this._initialized){this._createPool();this._initialized=true}}_finishInit(){if(!this._initDone){this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))}));if(!this._buffers[0].translateY){this._reset()}this._initDone=true}}_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=false;this._buffers.reverse()}_scroll(){if(this._scrollDisabled){return}const t=this.$.scroller.scrollTop;if(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight){this._initialIndex=~~this.position;this._reset()}const e=this.itemHeight+this.bufferOffset;const i=t>this._buffers[1].translateY+e;const s=t<this._buffers[0].translateY+e;if(i||s){this._translateBuffer(s);this._updateClones()}if(!this._preventScrollEvent){this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:false,composed:true}));this._mayHaveMomentum=true}this._preventScrollEvent=false;this._debouncerScrollFinish=Eo.debounce(this._debouncerScrollFinish,Mo.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();if(!this._isVisible(this._buffers[0],t)&&!this._isVisible(this._buffers[1],t)){this.position=this.position}}))}get bufferOffset(){return this._buffers[0].offsetTop}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=true;if(t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2){this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY}else{this._initialIndex=~~t;this._reset();this._scrollDisabled=true;this.$.scroller.scrollTop+=t%1*this.itemHeight;this._scrollDisabled=false}if(this._mayHaveMomentum){this.$.scroller.classList.add("notouchscroll");this._mayHaveMomentum=false;setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10)}}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height");const 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}_reset(){this._scrollDisabled=true;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=false;this._updateClones(true);this._debouncerUpdateClones=Eo.debounce(this._debouncerUpdateClones,Mo.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=false;this._updateClones()}));this._scrollDisabled=false}_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=Aa._contentIndex=Aa._contentIndex+1||0;const r=`vaadin-infinite-scroller-item-content-${s}`;const o=document.createElement("slot");o.setAttribute("name",r);o._itemWrapper=i;e.appendChild(o);i.setAttribute("slot",r);this.appendChild(i);setTimeout((()=>{if(this._isVisible(i,t)){this._ensureStampedInstance(i)}}),1)}}));setTimeout((()=>{fr(this,this._finishInit.bind(this))}),1)}_ensureStampedInstance(t){if(t.firstElementChild){return}const e=t.instance;t.instance=new this._TemplateClass({});t.appendChild(t.instance.root);Object.keys(e).forEach((i=>{t.instance.set(i,e[i])}))}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():undefined;this._buffers.forEach(((i,s)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*s;[...i.children].forEach(((i,s)=>{const o=i._itemWrapper;if(!t||this._isVisible(o,e)){o.instance.index=r+s}}));i.updated=true}}))}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}customElements.define(Aa.is,Aa);
2494
2494
  /**
2495
2495
  * @license
2496
2496
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2497
2497
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2498
- */class Aa{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(){if(this._mediaQuery){this._mediaQuery.addListener(this._boundQueryHandler)}}_removeListener(){if(this._mediaQuery){this._mediaQuery.removeListener(this._boundQueryHandler)}this._mediaQuery=null}_queryHandler(t){if(typeof this.callback==="function"){this.callback(t.matches)}}}
2498
+ */class Da{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(){if(this._mediaQuery){this._mediaQuery.addListener(this._boundQueryHandler)}}_removeListener(){if(this._mediaQuery){this._mediaQuery.removeListener(this._boundQueryHandler)}this._mediaQuery=null}_queryHandler(t){if(typeof this.callback==="function"){this.callback(t.matches)}}}
2499
2499
  /**
2500
2500
  * @license
2501
2501
  * Copyright (c) 2016 - 2022 Vaadin Ltd.
2502
2502
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2503
- */class Da extends(Ur(Tt(Ls(Es)))){static get template(){return zs`
2503
+ */class Ca extends($r(St(Hs(Fs)))){static get template(){return Ps`
2504
2504
  <style>
2505
2505
  :host {
2506
2506
  display: flex;
@@ -2680,87 +2680,87 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2680
2680
  [[i18n.cancel]]
2681
2681
  </vaadin-button>
2682
2682
  </div>
2683
- `}static get is(){return"vaadin-date-picker-overlay-content"}static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Date,value:null},focusedDate:{type:Date,notify:true,observer:"_focusedDateChanged"},_focusedMonthDate:Number,initialPosition:{type:Date,observer:"_initialPositionChanged"},_originDate:{value:new Date},_visibleMonthIndex:Number,_desktopMode:Boolean,_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:Date,maxDate:Date,label:String}}get __isRTL(){return this.getAttribute("dir")==="rtl"}get __useSubMonthScrolling(){return this.$.monthScroller.clientHeight<this.$.monthScroller.itemHeight+this.$.monthScroller.bufferOffset}get calendars(){return[...this.shadowRoot.querySelectorAll("vaadin-month-calendar")]}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}ready(){super.ready();this.setAttribute("role","dialog");yn(this.$.scrollers,"track",this._track.bind(this));yn(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this));yn(this.shadowRoot.querySelector('[part="today-button"]'),"tap",this._onTodayTap.bind(this));yn(this.shadowRoot.querySelector('[part="cancel-button"]'),"tap",this._cancel.bind(this));yn(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this));yn(this.shadowRoot.querySelector('[part="years"]'),"tap",this._onYearTap.bind(this));yn(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this));this.addController(new Aa(this._desktopMediaQuery,(t=>{this._desktopMode=t})))}connectedCallback(){super.connectedCallback();this._closeYearScroller();this._toggleAnimateClass(true);kn(this.$.scrollers,"pan-y")}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()}_selectDate(t){this.selectedDate=t;this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:true,composed:true}))}_focusedDateChanged(t){this.revealDate(t)}_isCurrentYear(t){return t===0}_isSelectedYear(t,e){if(e){return e.getFullYear()===this._originDate.getFullYear()+t}}revealDate(t,e=true){if(!t){return}const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(t);this._scrollToPosition(i+s,e);return}const s=this.$.monthScroller.position>i;const r=Math.max(this.$.monthScroller.itemHeight,this.$.monthScroller.clientHeight-this.$.monthScroller.bufferOffset*2);const o=r/this.$.monthScroller.itemHeight;const n=this.$.monthScroller.position+o-1<i;if(s){this._scrollToPosition(i,e)}else if(n){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;while(e.getDate()<t.getDate()){e.setDate(e.getDate()+1);if(e.getDay()===this.i18n.firstDayOfWeek){i+=1}}return i/6}_initialPositionChanged(t){this.scrollToDate(t)}_repositionYearScroller(){this._visibleMonthIndex=Math.floor(this.$.monthScroller.position);this.$.yearScroller.position=(this.$.monthScroller.position+this._originDate.getMonth())/12}_repositionMonthScroller(){this.$.monthScroller.position=this.$.yearScroller.position*12-this._originDate.getMonth();this._visibleMonthIndex=Math.floor(this.$.monthScroller.position)}_onMonthScroll(){this._repositionYearScroller();this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller();this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=false;setTimeout((()=>{this._notTapping=true}),300);this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=true;this._debouncer=Po.debounce(this._debouncer,So.after(300),(()=>{this._ignoreTaps=false}))}_formatDisplayed(t,e,i){if(t){return e(ya(t))}return i}_onTodayTap(){const t=new Date;if(Math.abs(this.$.monthScroller.position-this._differenceInMonths(t,this._originDate))<.001){this._selectDate(t);this._close()}else{this._scrollToCurrentMonth()}}_scrollToCurrentMonth(){if(this.focusedDate){this.focusedDate=new Date}this.scrollToDate(new Date,true)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=t.detail.y-(this.$.yearScroller.getBoundingClientRect().top+this.$.yearScroller.clientHeight/2);const i=e/this.$.yearScroller.itemHeight;this._scrollToPosition(this.$.monthScroller.position+i*12,true)}}_scrollToPosition(t,e){if(this._targetPosition!==undefined){this._targetPosition=t;return}if(!e){this.$.monthScroller.position=t;this._targetPosition=undefined;this._repositionYearScroller();this.__tryFocusDate();return}this._targetPosition=t;let i;this._revealPromise=new Promise((t=>{i=t}));const s=(t,e,i,s)=>{t/=s/2;if(t<1){return i/2*t*t+e}t-=1;return-i/2*(t*(t-2)-1)+e};let r=0;const o=this.$.monthScroller.position;const n=t=>{r=r||t;const e=t-r;if(e<this.scrollDuration){const t=s(e,o,this._targetPosition-o,this.scrollDuration);this.$.monthScroller.position=t;window.requestAnimationFrame(n)}else{this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:true,composed:true,detail:{position:this._targetPosition,oldPosition:o}}));this.$.monthScroller.position=this._targetPosition;this._targetPosition=undefined;i();this._revealPromise=undefined}setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(n)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10){return}if(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3){this._toggleAnimateClass(true)}const e=this._translateX+t.detail.ddx;this._translateX=this._limit(e,{min:0,max:this._yearScrollerWidth})}_track(t){if(this._desktopMode){return}switch(t.detail.state){case"start":this._toggleAnimateClass(false);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(true);if(this._translateX>=this._yearScrollerWidth/2){this._closeYearScroller()}else{this._openYearScroller()}break}}_toggleAnimateClass(t){if(t){this.classList.add("animate")}else{this.classList.remove("animate")}}_toggleYearScroller(){if(this._isYearScrollerVisible()){this._closeYearScroller()}else{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){if(!this._desktopMode){this.$.monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`;this.$.yearScroller.style.transform=`translateX(${t}px)`}}_yearAfterXYears(t){const e=new Date(this._originDate);e.setFullYear(parseInt(t)+this._originDate.getFullYear());return e.getFullYear()}_yearAfterXMonths(t){return this._dateAfterXMonths(t).getFullYear()}_dateAfterXMonths(t){const e=new Date(this._originDate);e.setDate(1);e.setMonth(parseInt(t)+this._originDate.getMonth());return e}_differenceInMonths(t,e){const i=(t.getFullYear()-e.getFullYear())*12;return i-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:true,composed:true}))}_cancel(){this.focusedDate=this.selectedDate;this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){if(ba(t,this.selectedDate)){this._clear();this.focusedDate=t}else{this._selectDate(t)}}__onMonthCalendarKeyDown(t){let e=false;switch(t.key){case"ArrowDown":this._moveFocusByDays(7);e=true;break;case"ArrowUp":this._moveFocusByDays(-7);e=true;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1);e=true;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1);e=true;break;case"Enter":this._selectDate(this.focusedDate);this._close();e=true;break;case" ":this.__toggleDate(this.focusedDate);e=true;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate");e=true;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate");e=true;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1);e=true;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1);e=true;break;case"Tab":this._onTabKeyDown(t,"calendar");break}if(e){t.preventDefault();t.stopPropagation()}}_onTabKeyDown(t,e){t.stopPropagation();switch(e){case"calendar":if(t.shiftKey){t.preventDefault();if(this.hasAttribute("fullscreen")){this.$.cancelButton.focus()}else{this.__focusInput()}}break;case"today":if(t.shiftKey){t.preventDefault();this.focusDateElement()}break;case"cancel":if(!t.shiftKey){t.preventDefault();if(this.hasAttribute("fullscreen")){this.focusDateElement()}else{this.__focusInput()}}break}}__onTodayButtonKeyDown(t){if(t.key==="Tab"){this._onTabKeyDown(t,"today")}}__onCancelButtonKeyDown(t){if(t.key==="Tab"){this._onTabKeyDown(t,"cancel")}}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:true,composed:true}))}__tryFocusDate(){const t=this.__pendingDateFocus;if(t){const t=this.focusableDateElement;if(t&&ba(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;if(!e){this._focusedMonthDate=i.getDate()}await this.focusDateElement(false)}async focusDateElement(t=true){this.__pendingDateFocus=this.focusedDate;if(!this.calendars.length){await new Promise((t=>{setTimeout(t)}))}if(t){this.revealDate(this.focusedDate)}if(this._revealPromise){await this._revealPromise}this.__tryFocusDate()}_focusClosestDate(t){this.focusDate(va(t,[this.minDate,this.maxDate]))}_moveFocusByDays(t){const e=this.focusedDate;const i=new Date(0,0);i.setFullYear(e.getFullYear());i.setMonth(e.getMonth());i.setDate(e.getDate()+t);if(this._dateAllowed(i,this.minDate,this.maxDate)){this.focusDate(i)}else if(this._dateAllowed(e,this.minDate,this.maxDate)){if(t>0){this.focusDate(this.maxDate)}else{this.focusDate(this.minDate)}}else{this._focusClosestDate(e)}}_moveFocusByMonths(t){const e=this.focusedDate;const i=new Date(0,0);i.setFullYear(e.getFullYear());i.setMonth(e.getMonth()+t);const s=i.getMonth();i.setDate(this._focusedMonthDate||(this._focusedMonthDate=e.getDate()));if(i.getMonth()!==s){i.setDate(0)}if(this._dateAllowed(i,this.minDate,this.maxDate)){this.focusDate(i,true)}else if(this._dateAllowed(e,this.minDate,this.maxDate)){if(t>0){this.focusDate(this.maxDate)}else{this.focusDate(this.minDate)}}else{this._focusClosestDate(e)}}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear());if(e==="minDate"){i.setMonth(t.getMonth());i.setDate(1)}else{i.setMonth(t.getMonth()+1);i.setDate(0)}if(this._dateAllowed(i,this.minDate,this.maxDate)){this.focusDate(i)}else if(this._dateAllowed(t,this.minDate,this.maxDate)){this.focusDate(this[e])}else{this._focusClosestDate(t)}}_dateAllowed(t,e,i){return(!e||t>=e)&&(!i||t<=i)}_isTodayAllowed(t,e){const i=new Date;const s=new Date(0,0);s.setFullYear(i.getFullYear());s.setMonth(i.getMonth());s.setDate(i.getDate());return this._dateAllowed(s,t,e)}}customElements.define(Da.is,Da);
2683
+ `}static get is(){return"vaadin-date-picker-overlay-content"}static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Date,value:null},focusedDate:{type:Date,notify:true,observer:"_focusedDateChanged"},_focusedMonthDate:Number,initialPosition:{type:Date,observer:"_initialPositionChanged"},_originDate:{value:new Date},_visibleMonthIndex:Number,_desktopMode:Boolean,_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:Date,maxDate:Date,label:String}}get __isRTL(){return this.getAttribute("dir")==="rtl"}get __useSubMonthScrolling(){return this.$.monthScroller.clientHeight<this.$.monthScroller.itemHeight+this.$.monthScroller.bufferOffset}get calendars(){return[...this.shadowRoot.querySelectorAll("vaadin-month-calendar")]}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}ready(){super.ready();this.setAttribute("role","dialog");wn(this.$.scrollers,"track",this._track.bind(this));wn(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this));wn(this.shadowRoot.querySelector('[part="today-button"]'),"tap",this._onTodayTap.bind(this));wn(this.shadowRoot.querySelector('[part="cancel-button"]'),"tap",this._cancel.bind(this));wn(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this));wn(this.shadowRoot.querySelector('[part="years"]'),"tap",this._onYearTap.bind(this));wn(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this));this.addController(new Da(this._desktopMediaQuery,(t=>{this._desktopMode=t})))}connectedCallback(){super.connectedCallback();this._closeYearScroller();this._toggleAnimateClass(true);An(this.$.scrollers,"pan-y")}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()}_selectDate(t){this.selectedDate=t;this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:true,composed:true}))}_focusedDateChanged(t){this.revealDate(t)}_isCurrentYear(t){return t===0}_isSelectedYear(t,e){if(e){return e.getFullYear()===this._originDate.getFullYear()+t}}revealDate(t,e=true){if(!t){return}const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(t);this._scrollToPosition(i+s,e);return}const s=this.$.monthScroller.position>i;const r=Math.max(this.$.monthScroller.itemHeight,this.$.monthScroller.clientHeight-this.$.monthScroller.bufferOffset*2);const o=r/this.$.monthScroller.itemHeight;const n=this.$.monthScroller.position+o-1<i;if(s){this._scrollToPosition(i,e)}else if(n){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;while(e.getDate()<t.getDate()){e.setDate(e.getDate()+1);if(e.getDay()===this.i18n.firstDayOfWeek){i+=1}}return i/6}_initialPositionChanged(t){this.scrollToDate(t)}_repositionYearScroller(){this._visibleMonthIndex=Math.floor(this.$.monthScroller.position);this.$.yearScroller.position=(this.$.monthScroller.position+this._originDate.getMonth())/12}_repositionMonthScroller(){this.$.monthScroller.position=this.$.yearScroller.position*12-this._originDate.getMonth();this._visibleMonthIndex=Math.floor(this.$.monthScroller.position)}_onMonthScroll(){this._repositionYearScroller();this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller();this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=false;setTimeout((()=>{this._notTapping=true}),300);this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=true;this._debouncer=Eo.debounce(this._debouncer,Mo.after(300),(()=>{this._ignoreTaps=false}))}_formatDisplayed(t,e,i){if(t){return e(wa(t))}return i}_onTodayTap(){const t=new Date;if(Math.abs(this.$.monthScroller.position-this._differenceInMonths(t,this._originDate))<.001){this._selectDate(t);this._close()}else{this._scrollToCurrentMonth()}}_scrollToCurrentMonth(){if(this.focusedDate){this.focusedDate=new Date}this.scrollToDate(new Date,true)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=t.detail.y-(this.$.yearScroller.getBoundingClientRect().top+this.$.yearScroller.clientHeight/2);const i=e/this.$.yearScroller.itemHeight;this._scrollToPosition(this.$.monthScroller.position+i*12,true)}}_scrollToPosition(t,e){if(this._targetPosition!==undefined){this._targetPosition=t;return}if(!e){this.$.monthScroller.position=t;this._targetPosition=undefined;this._repositionYearScroller();this.__tryFocusDate();return}this._targetPosition=t;let i;this._revealPromise=new Promise((t=>{i=t}));const s=(t,e,i,s)=>{t/=s/2;if(t<1){return i/2*t*t+e}t-=1;return-i/2*(t*(t-2)-1)+e};let r=0;const o=this.$.monthScroller.position;const n=t=>{r=r||t;const e=t-r;if(e<this.scrollDuration){const t=s(e,o,this._targetPosition-o,this.scrollDuration);this.$.monthScroller.position=t;window.requestAnimationFrame(n)}else{this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:true,composed:true,detail:{position:this._targetPosition,oldPosition:o}}));this.$.monthScroller.position=this._targetPosition;this._targetPosition=undefined;i();this._revealPromise=undefined}setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(n)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){if(Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10){return}if(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3){this._toggleAnimateClass(true)}const e=this._translateX+t.detail.ddx;this._translateX=this._limit(e,{min:0,max:this._yearScrollerWidth})}_track(t){if(this._desktopMode){return}switch(t.detail.state){case"start":this._toggleAnimateClass(false);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(true);if(this._translateX>=this._yearScrollerWidth/2){this._closeYearScroller()}else{this._openYearScroller()}break}}_toggleAnimateClass(t){if(t){this.classList.add("animate")}else{this.classList.remove("animate")}}_toggleYearScroller(){if(this._isYearScrollerVisible()){this._closeYearScroller()}else{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){if(!this._desktopMode){this.$.monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`;this.$.yearScroller.style.transform=`translateX(${t}px)`}}_yearAfterXYears(t){const e=new Date(this._originDate);e.setFullYear(parseInt(t)+this._originDate.getFullYear());return e.getFullYear()}_yearAfterXMonths(t){return this._dateAfterXMonths(t).getFullYear()}_dateAfterXMonths(t){const e=new Date(this._originDate);e.setDate(1);e.setMonth(parseInt(t)+this._originDate.getMonth());return e}_differenceInMonths(t,e){const i=(t.getFullYear()-e.getFullYear())*12;return i-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:true,composed:true}))}_cancel(){this.focusedDate=this.selectedDate;this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){if(ga(t,this.selectedDate)){this._clear();this.focusedDate=t}else{this._selectDate(t)}}__onMonthCalendarKeyDown(t){let e=false;switch(t.key){case"ArrowDown":this._moveFocusByDays(7);e=true;break;case"ArrowUp":this._moveFocusByDays(-7);e=true;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1);e=true;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1);e=true;break;case"Enter":this._selectDate(this.focusedDate);this._close();e=true;break;case" ":this.__toggleDate(this.focusedDate);e=true;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate");e=true;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate");e=true;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1);e=true;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1);e=true;break;case"Tab":this._onTabKeyDown(t,"calendar");break}if(e){t.preventDefault();t.stopPropagation()}}_onTabKeyDown(t,e){t.stopPropagation();switch(e){case"calendar":if(t.shiftKey){t.preventDefault();if(this.hasAttribute("fullscreen")){this.$.cancelButton.focus()}else{this.__focusInput()}}break;case"today":if(t.shiftKey){t.preventDefault();this.focusDateElement()}break;case"cancel":if(!t.shiftKey){t.preventDefault();if(this.hasAttribute("fullscreen")){this.focusDateElement()}else{this.__focusInput()}}break}}__onTodayButtonKeyDown(t){if(t.key==="Tab"){this._onTabKeyDown(t,"today")}}__onCancelButtonKeyDown(t){if(t.key==="Tab"){this._onTabKeyDown(t,"cancel")}}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:true,composed:true}))}__tryFocusDate(){const t=this.__pendingDateFocus;if(t){const t=this.focusableDateElement;if(t&&ga(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;if(!e){this._focusedMonthDate=i.getDate()}await this.focusDateElement(false)}async focusDateElement(t=true){this.__pendingDateFocus=this.focusedDate;if(!this.calendars.length){await new Promise((t=>{setTimeout(t)}))}if(t){this.revealDate(this.focusedDate)}if(this._revealPromise){await this._revealPromise}this.__tryFocusDate()}_focusClosestDate(t){this.focusDate(ya(t,[this.minDate,this.maxDate]))}_moveFocusByDays(t){const e=this.focusedDate;const i=new Date(0,0);i.setFullYear(e.getFullYear());i.setMonth(e.getMonth());i.setDate(e.getDate()+t);if(this._dateAllowed(i,this.minDate,this.maxDate)){this.focusDate(i)}else if(this._dateAllowed(e,this.minDate,this.maxDate)){if(t>0){this.focusDate(this.maxDate)}else{this.focusDate(this.minDate)}}else{this._focusClosestDate(e)}}_moveFocusByMonths(t){const e=this.focusedDate;const i=new Date(0,0);i.setFullYear(e.getFullYear());i.setMonth(e.getMonth()+t);const s=i.getMonth();i.setDate(this._focusedMonthDate||(this._focusedMonthDate=e.getDate()));if(i.getMonth()!==s){i.setDate(0)}if(this._dateAllowed(i,this.minDate,this.maxDate)){this.focusDate(i,true)}else if(this._dateAllowed(e,this.minDate,this.maxDate)){if(t>0){this.focusDate(this.maxDate)}else{this.focusDate(this.minDate)}}else{this._focusClosestDate(e)}}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear());if(e==="minDate"){i.setMonth(t.getMonth());i.setDate(1)}else{i.setMonth(t.getMonth()+1);i.setDate(0)}if(this._dateAllowed(i,this.minDate,this.maxDate)){this.focusDate(i)}else if(this._dateAllowed(t,this.minDate,this.maxDate)){this.focusDate(this[e])}else{this._focusClosestDate(t)}}_dateAllowed(t,e,i){return(!e||t>=e)&&(!i||t<=i)}_isTodayAllowed(t,e){const i=new Date;const s=new Date(0,0);s.setFullYear(i.getFullYear());s.setMonth(i.getMonth());s.setDate(i.getDate());return this._dateAllowed(s,t,e)}}customElements.define(Ca.is,Ca);
2684
2684
  /**
2685
2685
  * @license
2686
2686
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2687
2687
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2688
- */const Ca=le((t=>class e extends(En(Fn(t))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:true,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super();this._boundOnBlur=this._onBlur.bind(this);this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready();if(this.autofocus&&!this.disabled){requestAnimationFrame((()=>{this.focus();this.setAttribute("focus-ring","")}))}}focus(){if(!this.focusElement||this.disabled){return}this.focusElement.focus();this._setFocused(true)}blur(){if(!this.focusElement){return}this.focusElement.blur();this._setFocused(false)}click(){if(this.focusElement&&!this.disabled){this.focusElement.click()}}_focusElementChanged(t,e){if(t){t.disabled=this.disabled;this._addFocusListeners(t);this.__forwardTabIndex(this.tabindex)}else if(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}_disabledChanged(t,e){super._disabledChanged(t,e);if(this.focusElement){this.focusElement.disabled=t}if(t){this.blur()}}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){if(t!==undefined&&this.focusElement){this.focusElement.tabIndex=t;if(t!==-1){this.tabindex=undefined}}if(this.disabled&&t){if(t!==-1){this._lastTabIndex=t}this.tabindex=undefined}}}));
2688
+ */const Ta=he((t=>class e extends(Fn(On(t))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:true,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super();this._boundOnBlur=this._onBlur.bind(this);this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready();if(this.autofocus&&!this.disabled){requestAnimationFrame((()=>{this.focus();this.setAttribute("focus-ring","")}))}}focus(){if(!this.focusElement||this.disabled){return}this.focusElement.focus();this._setFocused(true)}blur(){if(!this.focusElement){return}this.focusElement.blur();this._setFocused(false)}click(){if(this.focusElement&&!this.disabled){this.focusElement.click()}}_focusElementChanged(t,e){if(t){t.disabled=this.disabled;this._addFocusListeners(t);this.__forwardTabIndex(this.tabindex)}else if(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}_disabledChanged(t,e){super._disabledChanged(t,e);if(this.focusElement){this.focusElement.disabled=t}if(t){this.blur()}}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){if(t!==undefined&&this.focusElement){this.focusElement.tabIndex=t;if(t!==-1){this.tabindex=undefined}}if(this.disabled&&t){if(t!==-1){this._lastTabIndex=t}this.tabindex=undefined}}}));
2689
2689
  /**
2690
2690
  * @license
2691
2691
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2692
2692
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2693
- */class Ta extends jo{constructor(t){super(t,"error-message",(()=>document.createElement("div")),((t,e)=>{this.__updateErrorId(e);this.__updateHasError()}),true)}get errorId(){return this.node&&this.node.id}setErrorMessage(t){this.errorMessage=t;this.__updateHasError()}setInvalid(t){this.invalid=t;this.__updateHasError()}initCustomNode(t){this.__updateErrorId(t);if(t.textContent&&!this.errorMessage){this.errorMessage=t.textContent.trim()}this.__updateHasError()}teardownNode(t){let e=this.getSlotChild();if(!e&&t!==this.defaultNode){e=this.attachDefaultNode();this.initNode(e)}this.__updateHasError()}__isNotEmpty(t){return Boolean(t&&t.trim()!=="")}__updateHasError(){const t=this.node;const e=Boolean(this.invalid&&this.__isNotEmpty(this.errorMessage));if(t){t.textContent=e?this.errorMessage:"";t.hidden=!e;if(e){t.setAttribute("role","alert")}else{t.removeAttribute("role")}}this.host.toggleAttribute("has-error-message",e)}__updateErrorId(t){if(!t.id){t.id=this.defaultId}}}
2693
+ */class Sa extends Lo{constructor(t){super(t,"error-message",(()=>document.createElement("div")),((t,e)=>{this.__updateErrorId(e);this.__updateHasError()}),true)}get errorId(){return this.node&&this.node.id}setErrorMessage(t){this.errorMessage=t;this.__updateHasError()}setInvalid(t){this.invalid=t;this.__updateHasError()}initCustomNode(t){this.__updateErrorId(t);if(t.textContent&&!this.errorMessage){this.errorMessage=t.textContent.trim()}this.__updateHasError()}teardownNode(t){let e=this.getSlotChild();if(!e&&t!==this.defaultNode){e=this.attachDefaultNode();this.initNode(e)}this.__updateHasError()}__isNotEmpty(t){return Boolean(t&&t.trim()!=="")}__updateHasError(){const t=this.node;const e=Boolean(this.invalid&&this.__isNotEmpty(this.errorMessage));if(t){t.textContent=e?this.errorMessage:"";t.hidden=!e;if(e){t.setAttribute("role","alert")}else{t.removeAttribute("role")}}this.host.toggleAttribute("has-error-message",e)}__updateErrorId(t){if(!t.id){t.id=this.defaultId}}}
2694
2694
  /**
2695
2695
  * @license
2696
2696
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2697
2697
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2698
- */class Sa{constructor(t){this.host=t;this.__required=false}setTarget(t){this.__target=t;this.__setAriaRequiredAttribute(this.__required);this.__setLabelIdToAriaAttribute(this.__labelId);this.__setErrorIdToAriaAttribute(this.__errorId);this.__setHelperIdToAriaAttribute(this.__helperId)}setRequired(t){this.__setAriaRequiredAttribute(t);this.__required=t}setLabelId(t){this.__setLabelIdToAriaAttribute(t,this.__labelId);this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId);this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId);this.__helperId=t}get __isGroupField(){return this.__target===this.host}__setLabelIdToAriaAttribute(t,e){this.__setAriaAttributeId("aria-labelledby",t,e)}__setErrorIdToAriaAttribute(t,e){if(this.__isGroupField){this.__setAriaAttributeId("aria-labelledby",t,e)}else{this.__setAriaAttributeId("aria-describedby",t,e)}}__setHelperIdToAriaAttribute(t,e){if(this.__isGroupField){this.__setAriaAttributeId("aria-labelledby",t,e)}else{this.__setAriaAttributeId("aria-describedby",t,e)}}__setAriaRequiredAttribute(t){if(!this.__target){return}if(["input","textarea"].includes(this.__target.localName)){return}if(t){this.__target.setAttribute("aria-required","true")}else{this.__target.removeAttribute("aria-required")}}__setAriaAttributeId(t,e,i){if(!this.__target){return}if(i){Zn(this.__target,t,i)}if(e){Kn(this.__target,t,e)}}}
2698
+ */class Ma{constructor(t){this.host=t;this.__required=false}setTarget(t){this.__target=t;this.__setAriaRequiredAttribute(this.__required);this.__setLabelIdToAriaAttribute(this.__labelId);this.__setErrorIdToAriaAttribute(this.__errorId);this.__setHelperIdToAriaAttribute(this.__helperId)}setRequired(t){this.__setAriaRequiredAttribute(t);this.__required=t}setLabelId(t){this.__setLabelIdToAriaAttribute(t,this.__labelId);this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId);this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId);this.__helperId=t}get __isGroupField(){return this.__target===this.host}__setLabelIdToAriaAttribute(t,e){this.__setAriaAttributeId("aria-labelledby",t,e)}__setErrorIdToAriaAttribute(t,e){if(this.__isGroupField){this.__setAriaAttributeId("aria-labelledby",t,e)}else{this.__setAriaAttributeId("aria-describedby",t,e)}}__setHelperIdToAriaAttribute(t,e){if(this.__isGroupField){this.__setAriaAttributeId("aria-labelledby",t,e)}else{this.__setAriaAttributeId("aria-describedby",t,e)}}__setAriaRequiredAttribute(t){if(!this.__target){return}if(["input","textarea"].includes(this.__target.localName)){return}if(t){this.__target.setAttribute("aria-required","true")}else{this.__target.removeAttribute("aria-required")}}__setAriaAttributeId(t,e,i){if(!this.__target){return}if(i){Xn(this.__target,t,i)}if(e){Zn(this.__target,t,e)}}}
2699
2699
  /**
2700
2700
  * @license
2701
2701
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2702
2702
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2703
- */class Ma extends jo{constructor(t){super(t,"helper",null,null,true)}get helperId(){return this.node&&this.node.id}initCustomNode(t){this.__updateHelperId(t);this.__observeHelper(t);const e=this.__hasHelper(t);this.__toggleHasHelper(e)}teardownNode(t){if(this.__helperIdObserver){this.__helperIdObserver.disconnect()}const e=this.getSlotChild();if(e&&e!==this.defaultNode){const t=this.__hasHelper(e);this.__toggleHasHelper(t)}else{this.__applyDefaultHelper(this.helperText,e)}}setHelperText(t){this.helperText=t;const e=this.getSlotChild();if(!e||e===this.defaultNode){this.__applyDefaultHelper(t,e)}}__hasHelper(t){if(!t){return false}return t.children.length>0||t.nodeType===Node.ELEMENT_NODE&&customElements.get(t.localName)||this.__isNotEmpty(t.textContent)}__isNotEmpty(t){return t&&t.trim()!==""}__applyDefaultHelper(t,e){const i=this.__isNotEmpty(t);if(i&&!e){this.slotFactory=()=>document.createElement("div");e=this.attachDefaultNode();this.__updateHelperId(e);this.__observeHelper(e)}if(e){e.textContent=t}this.__toggleHasHelper(i)}__observeHelper(t){this.__helperObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target;const i=e===this.node;if(t.type==="attributes"){if(i&&e.id!==this.defaultId){this.__updateHelperId(e)}}else if(i||e.parentElement===this.node){const t=this.__hasHelper(this.node);this.__toggleHasHelper(t)}}))}));this.__helperObserver.observe(t,{attributes:true,attributeFilter:["id"],childList:true,subtree:true,characterData:true})}__toggleHasHelper(t){this.host.toggleAttribute("has-helper",t);this.dispatchEvent(new CustomEvent("helper-changed",{detail:{hasHelper:t,node:this.node}}))}__updateHelperId(t){if(!t.id){t.id=this.defaultId}}}
2703
+ */class za extends Lo{constructor(t){super(t,"helper",null,null,true)}get helperId(){return this.node&&this.node.id}initCustomNode(t){this.__updateHelperId(t);this.__observeHelper(t);const e=this.__hasHelper(t);this.__toggleHasHelper(e)}teardownNode(t){if(this.__helperIdObserver){this.__helperIdObserver.disconnect()}const e=this.getSlotChild();if(e&&e!==this.defaultNode){const t=this.__hasHelper(e);this.__toggleHasHelper(t)}else{this.__applyDefaultHelper(this.helperText,e)}}setHelperText(t){this.helperText=t;const e=this.getSlotChild();if(!e||e===this.defaultNode){this.__applyDefaultHelper(t,e)}}__hasHelper(t){if(!t){return false}return t.children.length>0||t.nodeType===Node.ELEMENT_NODE&&customElements.get(t.localName)||this.__isNotEmpty(t.textContent)}__isNotEmpty(t){return t&&t.trim()!==""}__applyDefaultHelper(t,e){const i=this.__isNotEmpty(t);if(i&&!e){this.slotFactory=()=>document.createElement("div");e=this.attachDefaultNode();this.__updateHelperId(e);this.__observeHelper(e)}if(e){e.textContent=t}this.__toggleHasHelper(i)}__observeHelper(t){this.__helperObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target;const i=e===this.node;if(t.type==="attributes"){if(i&&e.id!==this.defaultId){this.__updateHelperId(e)}}else if(i||e.parentElement===this.node){const t=this.__hasHelper(this.node);this.__toggleHasHelper(t)}}))}));this.__helperObserver.observe(t,{attributes:true,attributeFilter:["id"],childList:true,subtree:true,characterData:true})}__toggleHasHelper(t){this.host.toggleAttribute("has-helper",t);this.dispatchEvent(new CustomEvent("helper-changed",{detail:{hasHelper:t,node:this.node}}))}__updateHelperId(t){if(!t.id){t.id=this.defaultId}}}
2704
2704
  /**
2705
2705
  * @license
2706
2706
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2707
2707
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2708
- */class za extends jo{constructor(t){super(t,"label",(()=>document.createElement("label")),((t,e)=>{this.__updateLabelId(e);this.__updateDefaultLabel(this.label);this.__observeLabel(e)}),true)}get labelId(){return this.node.id}initCustomNode(t){this.__updateLabelId(t);const e=this.__hasLabel(t);this.__toggleHasLabel(e)}teardownNode(t){if(this.__labelObserver){this.__labelObserver.disconnect()}let e=this.getSlotChild();if(!e&&t!==this.defaultNode){e=this.attachDefaultNode();this.initNode(e)}const i=this.__hasLabel(e);this.__toggleHasLabel(i)}setLabel(t){this.label=t;this.__updateDefaultLabel(t)}__hasLabel(t){if(!t){return false}return t.children.length>0||this.__isNotEmpty(t.textContent)}__isNotEmpty(t){return Boolean(t&&t.trim()!=="")}__observeLabel(t){this.__labelObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target;const i=e===this.node;if(t.type==="attributes"){if(i&&e.id!==this.defaultId){this.__updateLabelId(e)}}else if(i||e.parentElement===this.node){const t=this.__hasLabel(this.node);this.__toggleHasLabel(t)}}))}));this.__labelObserver.observe(t,{attributes:true,attributeFilter:["id"],childList:true,subtree:true,characterData:true})}__toggleHasLabel(t){this.host.toggleAttribute("has-label",t);this.dispatchEvent(new CustomEvent("label-changed",{detail:{hasLabel:t,node:this.node}}))}__updateDefaultLabel(t){if(this.defaultNode){this.defaultNode.textContent=t;if(this.defaultNode===this.node){const e=this.__isNotEmpty(t);this.__toggleHasLabel(e)}}}__updateLabelId(t){if(!t.id){t.id=this.defaultId}}}
2708
+ */class Pa extends Lo{constructor(t){super(t,"label",(()=>document.createElement("label")),((t,e)=>{this.__updateLabelId(e);this.__updateDefaultLabel(this.label);this.__observeLabel(e)}),true)}get labelId(){return this.node.id}initCustomNode(t){this.__updateLabelId(t);const e=this.__hasLabel(t);this.__toggleHasLabel(e)}teardownNode(t){if(this.__labelObserver){this.__labelObserver.disconnect()}let e=this.getSlotChild();if(!e&&t!==this.defaultNode){e=this.attachDefaultNode();this.initNode(e)}const i=this.__hasLabel(e);this.__toggleHasLabel(i)}setLabel(t){this.label=t;this.__updateDefaultLabel(t)}__hasLabel(t){if(!t){return false}return t.children.length>0||this.__isNotEmpty(t.textContent)}__isNotEmpty(t){return Boolean(t&&t.trim()!=="")}__observeLabel(t){this.__labelObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target;const i=e===this.node;if(t.type==="attributes"){if(i&&e.id!==this.defaultId){this.__updateLabelId(e)}}else if(i||e.parentElement===this.node){const t=this.__hasLabel(this.node);this.__toggleHasLabel(t)}}))}));this.__labelObserver.observe(t,{attributes:true,attributeFilter:["id"],childList:true,subtree:true,characterData:true})}__toggleHasLabel(t){this.host.toggleAttribute("has-label",t);this.dispatchEvent(new CustomEvent("label-changed",{detail:{hasLabel:t,node:this.node}}))}__updateDefaultLabel(t){if(this.defaultNode){this.defaultNode.textContent=t;if(this.defaultNode===this.node){const e=this.__isNotEmpty(t);this.__toggleHasLabel(e)}}}__updateLabelId(t){if(!t.id){t.id=this.defaultId}}}
2709
2709
  /**
2710
2710
  * @license
2711
2711
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2712
2712
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2713
- */const Pa=le((t=>class e extends(Ur(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}get _labelId(){return this._labelController.labelId}get _labelNode(){return this._labelController.node}constructor(){super();this._labelController=new za(this)}ready(){super.ready();this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}}));
2713
+ */const Ea=he((t=>class e extends($r(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}get _labelId(){return this._labelController.labelId}get _labelNode(){return this._labelController.node}constructor(){super();this._labelController=new Pa(this)}ready(){super.ready();this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}}));
2714
2714
  /**
2715
2715
  * @license
2716
2716
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2717
2717
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2718
- */const Ea=le((t=>class e extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:true,notify:true,value:false},required:{type:Boolean,reflectToAttribute:true}}}validate(){const t=this.checkValidity();this._setInvalid(!t);this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}}));return t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){if(this._shouldSetInvalid(t)){this.invalid=t}}_shouldSetInvalid(t){return true}}));
2718
+ */const Fa=he((t=>class e extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:true,notify:true,value:false},required:{type:Boolean,reflectToAttribute:true}}}validate(){const t=this.checkValidity();this._setInvalid(!t);this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}}));return t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){if(this._shouldSetInvalid(t)){this.invalid=t}}_shouldSetInvalid(t){return true}}));
2719
2719
  /**
2720
2720
  * @license
2721
2721
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2722
2722
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2723
- */const Fa=t=>class e extends(Ea(Pa(Ur(t)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}get _errorId(){return this._errorController.errorId}get _errorNode(){return this._errorController.node}get _helperId(){return this._helperController.helperId}get _helperNode(){return this._helperController.node}constructor(){super();this._fieldAriaController=new Sa(this);this._helperController=new Ma(this);this._errorController=new Ta(this);this._labelController.addEventListener("label-changed",(t=>{const{hasLabel:e,node:i}=t.detail;this.__labelChanged(e,i)}));this._helperController.addEventListener("helper-changed",(t=>{const{hasHelper:e,node:i}=t.detail;this.__helperChanged(e,i)}))}ready(){super.ready();this.addController(this._fieldAriaController);this.addController(this._helperController);this.addController(this._errorController)}__helperChanged(t,e){if(t){this._fieldAriaController.setHelperId(e.id)}else{this._fieldAriaController.setHelperId(null)}}__labelChanged(t,e){if(t){this._fieldAriaController.setLabelId(e.id)}else{this._fieldAriaController.setLabelId(null)}}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){if(t){this._fieldAriaController.setTarget(t)}}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t);setTimeout((()=>{if(t){this._fieldAriaController.setErrorId(this._errorController.errorId)}else{this._fieldAriaController.setErrorId(null)}}))}}
2723
+ */const Oa=t=>class e extends(Fa(Ea($r(t)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}get _errorId(){return this._errorController.errorId}get _errorNode(){return this._errorController.node}get _helperId(){return this._helperController.helperId}get _helperNode(){return this._helperController.node}constructor(){super();this._fieldAriaController=new Ma(this);this._helperController=new za(this);this._errorController=new Sa(this);this._labelController.addEventListener("label-changed",(t=>{const{hasLabel:e,node:i}=t.detail;this.__labelChanged(e,i)}));this._helperController.addEventListener("helper-changed",(t=>{const{hasHelper:e,node:i}=t.detail;this.__helperChanged(e,i)}))}ready(){super.ready();this.addController(this._fieldAriaController);this.addController(this._helperController);this.addController(this._errorController)}__helperChanged(t,e){if(t){this._fieldAriaController.setHelperId(e.id)}else{this._fieldAriaController.setHelperId(null)}}__labelChanged(t,e){if(t){this._fieldAriaController.setLabelId(e.id)}else{this._fieldAriaController.setLabelId(null)}}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){if(t){this._fieldAriaController.setTarget(t)}}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t);setTimeout((()=>{if(t){this._fieldAriaController.setErrorId(this._errorController.errorId)}else{this._fieldAriaController.setErrorId(null)}}))}}
2724
2724
  /**
2725
2725
  * @license
2726
2726
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2727
2727
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2728
- */;const Oa=le((t=>class e 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){if(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){if(!this.stateTarget){return}if(t==="invalid"){this._delegateAttribute("aria-invalid",e?"true":false)}if(typeof e==="boolean"){this.stateTarget.toggleAttribute(t,e)}else if(e){this.stateTarget.setAttribute(t,e)}else{this.stateTarget.removeAttribute(t)}}_delegateProperty(t,e){if(!this.stateTarget){return}this.stateTarget[t]=e}}));
2728
+ */;const Ba=he((t=>class e 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){if(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){if(!this.stateTarget){return}if(t==="invalid"){this._delegateAttribute("aria-invalid",e?"true":false)}if(typeof e==="boolean"){this.stateTarget.toggleAttribute(t,e)}else if(e){this.stateTarget.setAttribute(t,e)}else{this.stateTarget.removeAttribute(t)}}_delegateProperty(t,e){if(!this.stateTarget){return}this.stateTarget[t]=e}}));
2729
2729
  /**
2730
2730
  * @license
2731
2731
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2732
2732
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2733
- */const Ba=le((t=>class e extends t{static get properties(){return{inputElement:{type:Object,readOnly:true,observer:"_inputElementChanged"},type:{type:String,readOnly:true},value:{type:String,value:"",observer:"_valueChanged",notify:true},_hasInputValue:{type:Boolean,value:false,observer:"_hasInputValueChanged"}}}constructor(){super();this._boundOnInput=this.__onInput.bind(this);this._boundOnChange=this._onChange.bind(this)}clear(){this.value=""}_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){if(!this.inputElement){return}if(t!=null){this.inputElement.value=t}else{this.inputElement.value=""}}_inputElementChanged(t,e){if(t){this._addInputListeners(t)}else if(e){this._removeInputListeners(e)}}_hasInputValueChanged(t,e){if(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=false}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue);if(t===""&&e===undefined){return}if(this.__userInput){return}this._forwardInputValue(t)}get _hasValue(){return this.value!=null&&this.value!==""}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}}));
2733
+ */const Ia=he((t=>class e extends t{static get properties(){return{inputElement:{type:Object,readOnly:true,observer:"_inputElementChanged"},type:{type:String,readOnly:true},value:{type:String,value:"",observer:"_valueChanged",notify:true},_hasInputValue:{type:Boolean,value:false,observer:"_hasInputValueChanged"}}}constructor(){super();this._boundOnInput=this.__onInput.bind(this);this._boundOnChange=this._onChange.bind(this)}clear(){this.value=""}_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){if(!this.inputElement){return}if(t!=null){this.inputElement.value=t}else{this.inputElement.value=""}}_inputElementChanged(t,e){if(t){this._addInputListeners(t)}else if(e){this._removeInputListeners(e)}}_hasInputValueChanged(t,e){if(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=false}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue);if(t===""&&e===undefined){return}if(this.__userInput){return}this._forwardInputValue(t)}get _hasValue(){return this.value!=null&&this.value!==""}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}}));
2734
2734
  /**
2735
2735
  * @license
2736
2736
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2737
2737
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2738
- */const Ia=le((t=>class e extends(Oa(Ea(Ba(t)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready();this._createConstraintsObserver()}checkValidity(){if(this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((t=>this[t])))){return this.inputElement.checkValidity()}return!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);const s=this.__previousHasConstraints&&!i;if((this._hasValue||this.invalid)&&i){this.validate()}else if(s){this._setInvalid(false)}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)||t===0}}));
2738
+ */const Na=he((t=>class e extends(Ba(Fa(Ia(t)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready();this._createConstraintsObserver()}checkValidity(){if(this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((t=>this[t])))){return this.inputElement.checkValidity()}return!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);const s=this.__previousHasConstraints&&!i;if((this._hasValue||this.invalid)&&i){this.validate()}else if(s){this._setInvalid(false)}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)||t===0}}));
2739
2739
  /**
2740
2740
  * @license
2741
2741
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2742
2742
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2743
- */const Na=new WeakMap;function Ra(t){if(!Na.has(t)){Na.set(t,new Set)}return Na.get(t)}function ja(t,e){const i=document.createElement("style");i.textContent=t;if(e===document){document.head.appendChild(i)}else{e.insertBefore(i,e.firstChild)}}const La=le((t=>class e extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback();this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode();const e=Ra(t);this.slotStyles.forEach((i=>{if(!e.has(i)){ja(i,t);e.add(i)}}))}}));
2743
+ */const Ra=new WeakMap;function ja(t){if(!Ra.has(t)){Ra.set(t,new Set)}return Ra.get(t)}function La(t,e){const i=document.createElement("style");i.textContent=t;if(e===document){document.head.appendChild(i)}else{e.insertBefore(i,e.firstChild)}}const Ha=he((t=>class e extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback();this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode();const e=ja(t);this.slotStyles.forEach((i=>{if(!e.has(i)){La(i,t);e.add(i)}}))}}));
2744
2744
  /**
2745
2745
  * @license
2746
2746
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2747
2747
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2748
- */const Ha=t=>class e extends(La(Ca(Ia(Fa(zn(t)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:false},clearButtonVisible:{type:Boolean,reflectToAttribute:true,value:false},name:{type:String,reflectToAttribute:true},placeholder:{type:String,reflectToAttribute:true},readonly:{type:Boolean,value:false,reflectToAttribute:true},title:{type:String,reflectToAttribute:true}}}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 clearElement(){console.warn(`Please implement the 'clearElement' property in <${this.localName}>`);return null}get slotStyles(){return[`\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n `]}ready(){super.ready();if(this.clearElement){this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t)));this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t)))}}_onClearButtonClick(t){t.preventDefault();this.__clear()}_onClearButtonMouseDown(t){t.preventDefault();if(!Wr){this.inputElement.focus()}}_onFocus(t){super._onFocus(t);if(this.autoselect&&this.inputElement){this.inputElement.select()}}_onEscape(t){super._onEscape(t);if(this.clearButtonVisible&&!!this.value){t.stopPropagation();this.__clear()}}_onChange(t){t.stopPropagation();this.validate();this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__clear(){this.clear();this.inputElement.dispatchEvent(new Event("input",{bubbles:true,composed:true}));this.inputElement.dispatchEvent(new Event("change",{bubbles:true}))}_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);if(this.allowedCharPattern&&!this.__shouldAcceptKey(t)){t.preventDefault();this._markInputPrevented()}}_markInputPrevented(){this.setAttribute("input-prevented","");this._preventInputDebouncer=Po.debounce(this._preventInputDebouncer,So.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");if(!this.__allowedTextRegExp.test(e)){t.preventDefault();this._markInputPrevented()}}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");if(!this.__allowedTextRegExp.test(e)){t.preventDefault();this._markInputPrevented()}}}_onBeforeInput(t){if(this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)){t.preventDefault();this._markInputPrevented()}}_allowedCharPatternChanged(t){if(t){try{this.__allowedCharRegExp=new RegExp(`^${t}$`);this.__allowedTextRegExp=new RegExp(`^${t}*$`)}catch(t){console.error(t)}}}}
2748
+ */const Wa=t=>class e extends(Ha(Ta(Na(Oa(Pn(t)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:false},clearButtonVisible:{type:Boolean,reflectToAttribute:true,value:false},name:{type:String,reflectToAttribute:true},placeholder:{type:String,reflectToAttribute:true},readonly:{type:Boolean,value:false,reflectToAttribute:true},title:{type:String,reflectToAttribute:true}}}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 clearElement(){console.warn(`Please implement the 'clearElement' property in <${this.localName}>`);return null}get slotStyles(){return[`\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n `]}ready(){super.ready();if(this.clearElement){this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t)));this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t)))}}_onClearButtonClick(t){t.preventDefault();this.__clear()}_onClearButtonMouseDown(t){t.preventDefault();if(!Ur){this.inputElement.focus()}}_onFocus(t){super._onFocus(t);if(this.autoselect&&this.inputElement){this.inputElement.select()}}_onEscape(t){super._onEscape(t);if(this.clearButtonVisible&&!!this.value){t.stopPropagation();this.__clear()}}_onChange(t){t.stopPropagation();this.validate();this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__clear(){this.clear();this.inputElement.dispatchEvent(new Event("input",{bubbles:true,composed:true}));this.inputElement.dispatchEvent(new Event("change",{bubbles:true}))}_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);if(this.allowedCharPattern&&!this.__shouldAcceptKey(t)){t.preventDefault();this._markInputPrevented()}}_markInputPrevented(){this.setAttribute("input-prevented","");this._preventInputDebouncer=Eo.debounce(this._preventInputDebouncer,Mo.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||t.key.length!==1||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");if(!this.__allowedTextRegExp.test(e)){t.preventDefault();this._markInputPrevented()}}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");if(!this.__allowedTextRegExp.test(e)){t.preventDefault();this._markInputPrevented()}}}_onBeforeInput(t){if(this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)){t.preventDefault();this._markInputPrevented()}}_allowedCharPatternChanged(t){if(t){try{this.__allowedCharRegExp=new RegExp(`^${t}$`);this.__allowedTextRegExp=new RegExp(`^${t}*$`)}catch(t){console.error(t)}}}}
2749
2749
  /**
2750
2750
  * @license
2751
2751
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2752
2752
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2753
- */;class Wa extends jo{constructor(t,e){super(t,"input",(()=>document.createElement("input")),((t,i)=>{if(t.value){i.setAttribute("value",t.value)}if(t.type){i.setAttribute("type",t.type)}i.id=this.defaultId;if(typeof e==="function"){e(i)}}),true)}}
2753
+ */;class Ua extends Lo{constructor(t,e){super(t,"input",(()=>document.createElement("input")),((t,i)=>{if(t.value){i.setAttribute("value",t.value)}if(t.type){i.setAttribute("type",t.type)}i.id=this.defaultId;if(typeof e==="function"){e(i)}}),true)}}
2754
2754
  /**
2755
2755
  * @license
2756
2756
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2757
2757
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2758
- */class Ua{constructor(t,e){this.input=t;this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this);e.addEventListener("label-changed",(t=>{this.__initLabel(t.detail.node)}));this.__initLabel(e.node)}__initLabel(t){if(t){t.addEventListener("click",this.__preventDuplicateLabelClick);if(this.input){t.setAttribute("for",this.input.id)}}}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation();this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}
2758
+ */class $a{constructor(t,e){this.input=t;this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this);e.addEventListener("label-changed",(t=>{this.__initLabel(t.detail.node)}));this.__initLabel(e.node)}__initLabel(t){if(t){t.addEventListener("click",this.__preventDuplicateLabelClick);if(this.input){t.setAttribute("for",this.input.id)}}}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation();this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}
2759
2759
  /**
2760
2760
  * @license
2761
2761
  * Copyright (c) 2021 - 2022 Vaadin Ltd..
2762
2762
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2763
- */const $a=p`
2763
+ */const Ga=p`
2764
2764
  [part='clear-button'] {
2765
2765
  display: none;
2766
2766
  cursor: default;
@@ -2778,7 +2778,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2778
2778
  * @license
2779
2779
  * Copyright (c) 2021 - 2022 Vaadin Ltd..
2780
2780
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2781
- */;const Ga=p`
2781
+ */;const Ya=p`
2782
2782
  :host {
2783
2783
  display: inline-flex;
2784
2784
  outline: none;
@@ -2804,7 +2804,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2804
2804
  * @license
2805
2805
  * Copyright (c) 2021 - 2022 Vaadin Ltd..
2806
2806
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2807
- */;const Ya=p`
2807
+ */;const qa=p`
2808
2808
  [class$='container'] {
2809
2809
  display: flex;
2810
2810
  flex-direction: column;
@@ -2817,22 +2817,22 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2817
2817
  * @license
2818
2818
  * Copyright (c) 2021 - 2022 Vaadin Ltd..
2819
2819
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2820
- */;const qa=[Ga,Ya,$a];
2820
+ */;const Va=[Ya,qa,Ga];
2821
2821
  /**
2822
2822
  * @license
2823
2823
  * Copyright (c) 2021 - 2022 Vaadin Ltd.
2824
2824
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2825
- */class Va{constructor(t){this.host=t;t.addEventListener("opened-changed",(()=>{if(!t.opened){this.__setVirtualKeyboardEnabled(false)}}));t.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(true)));t.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(true)))}__setVirtualKeyboardEnabled(t){if(this.host.inputElement){this.host.inputElement.inputMode=t?"":"none"}}}
2825
+ */class Ja{constructor(t){this.host=t;t.addEventListener("opened-changed",(()=>{if(!t.opened){this.__setVirtualKeyboardEnabled(false)}}));t.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(true)));t.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(true)))}__setVirtualKeyboardEnabled(t){if(this.host.inputElement){this.host.inputElement.inputMode=t?"":"none"}}}
2826
2826
  /**
2827
2827
  * @license
2828
2828
  * Copyright (c) 2016 - 2022 Vaadin Ltd.
2829
2829
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2830
- */const Ja=t=>class e extends(Ur(Ca(Ia(zn(t))))){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,notify:true,value:""},initialPosition:String,opened:{type:Boolean,reflectToAttribute:true,notify:true,observer:"_openedChanged"},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean},_fullscreen:{type:Boolean,value:false},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,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,week:"Week",calendar:"Calendar",today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const e=String(t.year).replace(/\d+/,(t=>"0000".substr(t.length)+t));return[t.month+1,t.day,e].join("/")},parseDate(t){const e=t.split("/");const i=new Date;let s,r=i.getMonth(),o=i.getFullYear();if(e.length===3){r=parseInt(e[0])-1;s=parseInt(e[1]);o=parseInt(e[2]);if(e[2].length<3&&o>=0){const t=this.referenceDate?xa(this.referenceDate):new Date;o=wa(t,o,r,s)}}else if(e.length===2){r=parseInt(e[0])-1;s=parseInt(e[1])}else if(e.length===1){s=parseInt(e[0])}if(s!==undefined){return{day:s,month:r,year:o}}},formatTitle:(t,e)=>`${t} ${e}`})},min:{type:String},max:{type:String},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)"},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)"},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Hr},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)"]}static get constraints(){return[...super.constraints,"min","max"]}get clearElement(){return null}get _inputValue(){return this.inputElement?this.inputElement.value:undefined}set _inputValue(t){if(this.inputElement){this.inputElement.value=t}}get _nativeInput(){if(this.inputElement){return this.inputElement.focusElement||this.inputElement}return null}constructor(){super();this._boundOnClick=this._onClick.bind(this);this._boundOnScroll=this._onScroll.bind(this)}_onFocus(t){super._onFocus(t);if(this._noInput){t.target.blur()}}_onBlur(t){super._onBlur(t);if(!this.opened){if(this.autoOpenDisabled){this._selectParsedOrFocusedDate()}this.validate();if(this._inputValue===""&&this.value!==""){this.value=""}}}ready(){super.ready();this.addEventListener("click",this._boundOnClick);this.addController(new Aa(this._fullscreenMediaQuery,(t=>{this._fullscreen=t})));this.addController(new Va(this))}disconnectedCallback(){super.disconnectedCallback();this.opened=false}_propertiesChanged(t,e,i){super._propertiesChanged(t,e,i);if("value"in e&&this.__dispatchChange){this.dispatchEvent(new CustomEvent("change",{bubbles:true}));this.__dispatchChange=false}}open(){if(!this.disabled&&!this.readonly){this.opened=true}}close(){if(this._overlayInitialized||this.autoOpenDisabled){this.$.overlay.close()}}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade");this._overlayInitialized=true;this.$.overlay.addEventListener("opened-changed",(t=>{this.opened=t.detail.value}));this.$.overlay.addEventListener("vaadin-overlay-escape-press",(()=>{this._focusedDate=this._selectedDate;this._close()}));this._overlayContent.addEventListener("close",(()=>{this._close()}));this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this));this._overlayContent.addEventListener("date-tap",(t=>{this.__userConfirmedDate=true;this._selectDate(t.detail.date);this._close()}));this._overlayContent.addEventListener("date-selected",(t=>{this.__userConfirmedDate=!!t.detail.date;this._selectDate(t.detail.date)}));this._overlayContent.addEventListener("focusin",(()=>{if(this._keyboardActive){this._setFocused(true)}}));this.addEventListener("mousedown",(()=>this.__bringToFront()));this.addEventListener("touchstart",(()=>this.__bringToFront()))}checkValidity(){const t=!this._inputValue||!!this._selectedDate&&this._inputValue===this._getFormattedDate(this.i18n.formatDate,this._selectedDate);const e=!this._selectedDate||ga(this._selectedDate,this._minDate,this._maxDate);let i=true;if(this.inputElement){if(this.inputElement.checkValidity){i=this.inputElement.checkValidity()}else if(this.inputElement.validate){i=this.inputElement.validate()}}return t&&e&&i}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){return!this.opened}_setFocused(t){super._setFocused(t);this._shouldKeepFocusRing=t&&this._keyboardActive}_selectDate(t){const e=this._formatISO(t);if(this.value!==e){this.__dispatchChange=true}this._selectedDate=t}_close(){this._focus();this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(t,e,i,s,r,o){const n=e&&(!o||r);const a=i&&r;return!t||n||a||!s.parseDate}_formatISO(t){if(!(t instanceof Date)){return""}const e=(t,e="00")=>(e+t).substr((e+t).length-e.length);let i="";let s="0000";let r=t.getFullYear();if(r<0){r=-r;i="-";s="000000"}else if(t.getFullYear()>=1e4){i="+";s="000000"}const o=i+e(r,s);const n=e(t.getMonth()+1);const a=e(t.getDate());return[o,n,a].join("-")}_inputElementChanged(t){super._inputElementChanged(t);if(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){if(t&&!this._overlayInitialized){this._initOverlay()}if(this._overlayInitialized){this.$.overlay.opened=t}if(this.inputElement){this.inputElement.setAttribute("aria-expanded",t)}}_selectedDateChanged(t,e){if(t===undefined||e===undefined){return}const i=this._formatISO(t);if(!this.__keepInputValue){this._applyInputValue(t)}if(i!==this.value){this.validate();this.value=i}this._ignoreFocusedDateChange=true;this._focusedDate=t;this._ignoreFocusedDateChange=false}_focusedDateChanged(t,e){if(t===undefined||e===undefined){return}if(!this._ignoreFocusedDateChange&&!this._noInput){this._applyInputValue(t)}}__getOverlayTheme(t,e){if(e){return t}}_valueChanged(t,e){const i=xa(t);if(t&&!i){this.value=e;return}if(t){if(!ba(this._selectedDate,i)){this._selectedDate=i;if(e!==undefined){this.validate()}}}else{this._selectedDate=null}this._toggleHasValue(this._hasValue)}_onOverlayOpened(){const t=xa(this.initialPosition);const e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;if(t||ga(e,this._minDate,this._maxDate)){this._overlayContent.initialPosition=e}else{this._overlayContent.initialPosition=va(e,[this._minDate,this._maxDate])}this._overlayContent.scrollToDate(this._overlayContent.focusedDate||this._overlayContent.initialPosition);this._ignoreFocusedDateChange=true;this._overlayContent.focusedDate=this._overlayContent.focusedDate||this._overlayContent.initialPosition;this._ignoreFocusedDateChange=false;window.addEventListener("scroll",this._boundOnScroll,true);if(this._focusOverlayOnOpen){this._overlayContent.focusDateElement();this._focusOverlayOnOpen=false}else{this._focus()}if(this._noInput&&this.focusElement){this.focusElement.blur();this._overlayContent.focusDateElement()}}_selectParsedOrFocusedDate(){this._ignoreFocusedDateChange=true;if(this.i18n.parseDate){const t=this._inputValue||"";const e=this._getParsedDate(t);if(this._isValidDate(e)){this._selectDate(e)}else{this.__keepInputValue=true;this._selectDate(null);this._selectedDate=null;this.__keepInputValue=false}}else if(this._focusedDate){this._selectDate(this._focusedDate)}this._ignoreFocusedDateChange=false}_onOverlayClosed(){window.removeEventListener("scroll",this._boundOnScroll,true);if(this.__userConfirmedDate){this.__userConfirmedDate=false}else{this._selectParsedOrFocusedDate()}if(this._nativeInput&&this._nativeInput.selectionStart){this._nativeInput.selectionStart=this._nativeInput.selectionEnd}if(!this.value){this.validate()}}_onScroll(t){if(t.target===window||!this._overlayContent.contains(t.target)){this._overlayContent._repositionYearScroller()}}_focus(){if(!this._noInput){this.inputElement.focus()}}_focusAndSelect(){this._focus();this._setSelectionRange(0,this._inputValue.length)}_applyInputValue(t){this._inputValue=t?this._getFormattedDate(this.i18n.formatDate,t):""}_getFormattedDate(t,e){return t(ya(e))}_setSelectionRange(t,e){if(this._nativeInput&&this._nativeInput.setSelectionRange){this._nativeInput.setSelectionRange(t,e)}}_isValidDate(t){return t&&!isNaN(t.getTime())}_onChange(t){if(this._inputValue===""){this.__dispatchChange=true}t.stopPropagation()}_onClick(t){if(!this._isClearButton(t)){this._onHostClick(t)}}_onHostClick(t){if(!this.autoOpenDisabled||this._noInput){t.preventDefault();this.open()}}_onClearButtonClick(t){t.preventDefault();this.value="";this._inputValue="";this.validate();this.dispatchEvent(new CustomEvent("change",{bubbles:true}))}_onKeyDown(t){super._onKeyDown(t);if(this._noInput){const e=[9];if(e.indexOf(t.keyCode)===-1){t.preventDefault()}}switch(t.key){case"ArrowDown":case"ArrowUp":t.preventDefault();if(this.opened){this._overlayContent.focusDateElement()}else{this._focusOverlayOnOpen=true;this.open()}break;case"Tab":if(this.opened){t.preventDefault();t.stopPropagation();this._setSelectionRange(0,0);if(t.shiftKey){this._overlayContent.focusCancel()}else{this._overlayContent.focusDateElement()}}break}}_onEnter(t){const e=this.value;if(this.opened){this.close()}else{this._selectParsedOrFocusedDate()}if(e===this.value){this.validate()}}_onEscape(t){if(this.opened){return}if(this.clearButtonVisible&&!!this.value){t.stopPropagation();this._onClearButtonClick(t);return}if(this.autoOpenDisabled){if(this.inputElement.value===""){this._selectDate(null)}this._applyInputValue(this._selectedDate)}else{this._focusedDate=this._selectedDate;this._selectParsedOrFocusedDate()}}_getParsedDate(t=this._inputValue){const e=this.i18n.parseDate&&this.i18n.parseDate(t);const i=e&&xa(`${e.year}-${e.month+1}-${e.day}`);return i}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this.inputElement.value&&!this.autoOpenDisabled){this.open()}this._userInputValueChanged()}_userInputValueChanged(){if(this._inputValue){const t=this._getParsedDate();if(this._isValidDate(t)){this._ignoreFocusedDateChange=true;if(!ba(t,this._focusedDate)){this._focusedDate=t}this._ignoreFocusedDateChange=false}}}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}__computeMinOrMaxDate(t){return xa(t)}}
2830
+ */const Ka=t=>class e extends($r(Ta(Na(Pn(t))))){static get properties(){return{_selectedDate:{type:Date},_focusedDate:Date,value:{type:String,notify:true,value:""},initialPosition:String,opened:{type:Boolean,reflectToAttribute:true,notify:true,observer:"_openedChanged"},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean},_fullscreen:{type:Boolean,value:false},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,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,week:"Week",calendar:"Calendar",today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const e=String(t.year).replace(/\d+/,(t=>"0000".substr(t.length)+t));return[t.month+1,t.day,e].join("/")},parseDate(t){const e=t.split("/");const i=new Date;let s,r=i.getMonth(),o=i.getFullYear();if(e.length===3){r=parseInt(e[0])-1;s=parseInt(e[1]);o=parseInt(e[2]);if(e[2].length<3&&o>=0){const t=this.referenceDate?_a(this.referenceDate):new Date;o=xa(t,o,r,s)}}else if(e.length===2){r=parseInt(e[0])-1;s=parseInt(e[1])}else if(e.length===1){s=parseInt(e[0])}if(s!==undefined){return{day:s,month:r,year:o}}},formatTitle:(t,e)=>`${t} ${e}`})},min:{type:String},max:{type:String},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)"},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)"},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Wr},_focusOverlayOnOpen:Boolean,_overlayInitialized:Boolean}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n.formatDate)","_focusedDateChanged(_focusedDate, i18n.formatDate)"]}static get constraints(){return[...super.constraints,"min","max"]}get clearElement(){return null}get _inputValue(){return this.inputElement?this.inputElement.value:undefined}set _inputValue(t){if(this.inputElement){this.inputElement.value=t}}get _nativeInput(){if(this.inputElement){return this.inputElement.focusElement||this.inputElement}return null}constructor(){super();this._boundOnClick=this._onClick.bind(this);this._boundOnScroll=this._onScroll.bind(this)}_onFocus(t){super._onFocus(t);if(this._noInput){t.target.blur()}}_onBlur(t){super._onBlur(t);if(!this.opened){if(this.autoOpenDisabled){this._selectParsedOrFocusedDate()}this.validate();if(this._inputValue===""&&this.value!==""){this.value=""}}}ready(){super.ready();this.addEventListener("click",this._boundOnClick);this.addController(new Da(this._fullscreenMediaQuery,(t=>{this._fullscreen=t})));this.addController(new Ja(this))}disconnectedCallback(){super.disconnectedCallback();this.opened=false}_propertiesChanged(t,e,i){super._propertiesChanged(t,e,i);if("value"in e&&this.__dispatchChange){this.dispatchEvent(new CustomEvent("change",{bubbles:true}));this.__dispatchChange=false}}open(){if(!this.disabled&&!this.readonly){this.opened=true}}close(){if(this._overlayInitialized||this.autoOpenDisabled){this.$.overlay.close()}}_initOverlay(){this.$.overlay.removeAttribute("disable-upgrade");this._overlayInitialized=true;this.$.overlay.addEventListener("opened-changed",(t=>{this.opened=t.detail.value}));this.$.overlay.addEventListener("vaadin-overlay-escape-press",(()=>{this._focusedDate=this._selectedDate;this._close()}));this._overlayContent.addEventListener("close",(()=>{this._close()}));this._overlayContent.addEventListener("focus-input",this._focusAndSelect.bind(this));this._overlayContent.addEventListener("date-tap",(t=>{this.__userConfirmedDate=true;this._selectDate(t.detail.date);this._close()}));this._overlayContent.addEventListener("date-selected",(t=>{this.__userConfirmedDate=!!t.detail.date;this._selectDate(t.detail.date)}));this._overlayContent.addEventListener("focusin",(()=>{if(this._keyboardActive){this._setFocused(true)}}));this.addEventListener("mousedown",(()=>this.__bringToFront()));this.addEventListener("touchstart",(()=>this.__bringToFront()))}checkValidity(){const t=!this._inputValue||!!this._selectedDate&&this._inputValue===this._getFormattedDate(this.i18n.formatDate,this._selectedDate);const e=!this._selectedDate||va(this._selectedDate,this._minDate,this._maxDate);let i=true;if(this.inputElement){if(this.inputElement.checkValidity){i=this.inputElement.checkValidity()}else if(this.inputElement.validate){i=this.inputElement.validate()}}return t&&e&&i}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){return!this.opened}_setFocused(t){super._setFocused(t);this._shouldKeepFocusRing=t&&this._keyboardActive}_selectDate(t){const e=this._formatISO(t);if(this.value!==e){this.__dispatchChange=true}this._selectedDate=t}_close(){this._focus();this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(t,e,i,s,r,o){const n=e&&(!o||r);const a=i&&r;return!t||n||a||!s.parseDate}_formatISO(t){if(!(t instanceof Date)){return""}const e=(t,e="00")=>(e+t).substr((e+t).length-e.length);let i="";let s="0000";let r=t.getFullYear();if(r<0){r=-r;i="-";s="000000"}else if(t.getFullYear()>=1e4){i="+";s="000000"}const o=i+e(r,s);const n=e(t.getMonth()+1);const a=e(t.getDate());return[o,n,a].join("-")}_inputElementChanged(t){super._inputElementChanged(t);if(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){if(t&&!this._overlayInitialized){this._initOverlay()}if(this._overlayInitialized){this.$.overlay.opened=t}if(this.inputElement){this.inputElement.setAttribute("aria-expanded",t)}}_selectedDateChanged(t,e){if(t===undefined||e===undefined){return}const i=this._formatISO(t);if(!this.__keepInputValue){this._applyInputValue(t)}if(i!==this.value){this.validate();this.value=i}this._ignoreFocusedDateChange=true;this._focusedDate=t;this._ignoreFocusedDateChange=false}_focusedDateChanged(t,e){if(t===undefined||e===undefined){return}if(!this._ignoreFocusedDateChange&&!this._noInput){this._applyInputValue(t)}}__getOverlayTheme(t,e){if(e){return t}}_valueChanged(t,e){const i=_a(t);if(t&&!i){this.value=e;return}if(t){if(!ga(this._selectedDate,i)){this._selectedDate=i;if(e!==undefined){this.validate()}}}else{this._selectedDate=null}this._toggleHasValue(this._hasValue)}_onOverlayOpened(){const t=_a(this.initialPosition);const e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;if(t||va(e,this._minDate,this._maxDate)){this._overlayContent.initialPosition=e}else{this._overlayContent.initialPosition=ya(e,[this._minDate,this._maxDate])}this._overlayContent.scrollToDate(this._overlayContent.focusedDate||this._overlayContent.initialPosition);this._ignoreFocusedDateChange=true;this._overlayContent.focusedDate=this._overlayContent.focusedDate||this._overlayContent.initialPosition;this._ignoreFocusedDateChange=false;window.addEventListener("scroll",this._boundOnScroll,true);if(this._focusOverlayOnOpen){this._overlayContent.focusDateElement();this._focusOverlayOnOpen=false}else{this._focus()}if(this._noInput&&this.focusElement){this.focusElement.blur();this._overlayContent.focusDateElement()}}_selectParsedOrFocusedDate(){this._ignoreFocusedDateChange=true;if(this.i18n.parseDate){const t=this._inputValue||"";const e=this._getParsedDate(t);if(this._isValidDate(e)){this._selectDate(e)}else{this.__keepInputValue=true;this._selectDate(null);this._selectedDate=null;this.__keepInputValue=false}}else if(this._focusedDate){this._selectDate(this._focusedDate)}this._ignoreFocusedDateChange=false}_onOverlayClosed(){window.removeEventListener("scroll",this._boundOnScroll,true);if(this.__userConfirmedDate){this.__userConfirmedDate=false}else{this._selectParsedOrFocusedDate()}if(this._nativeInput&&this._nativeInput.selectionStart){this._nativeInput.selectionStart=this._nativeInput.selectionEnd}if(!this.value){this.validate()}}_onScroll(t){if(t.target===window||!this._overlayContent.contains(t.target)){this._overlayContent._repositionYearScroller()}}_focus(){if(!this._noInput){this.inputElement.focus()}}_focusAndSelect(){this._focus();this._setSelectionRange(0,this._inputValue.length)}_applyInputValue(t){this._inputValue=t?this._getFormattedDate(this.i18n.formatDate,t):""}_getFormattedDate(t,e){return t(wa(e))}_setSelectionRange(t,e){if(this._nativeInput&&this._nativeInput.setSelectionRange){this._nativeInput.setSelectionRange(t,e)}}_isValidDate(t){return t&&!isNaN(t.getTime())}_onChange(t){if(this._inputValue===""){this.__dispatchChange=true}t.stopPropagation()}_onClick(t){if(!this._isClearButton(t)){this._onHostClick(t)}}_onHostClick(t){if(!this.autoOpenDisabled||this._noInput){t.preventDefault();this.open()}}_onClearButtonClick(t){t.preventDefault();this.value="";this._inputValue="";this.validate();this.dispatchEvent(new CustomEvent("change",{bubbles:true}))}_onKeyDown(t){super._onKeyDown(t);if(this._noInput){const e=[9];if(e.indexOf(t.keyCode)===-1){t.preventDefault()}}switch(t.key){case"ArrowDown":case"ArrowUp":t.preventDefault();if(this.opened){this._overlayContent.focusDateElement()}else{this._focusOverlayOnOpen=true;this.open()}break;case"Tab":if(this.opened){t.preventDefault();t.stopPropagation();this._setSelectionRange(0,0);if(t.shiftKey){this._overlayContent.focusCancel()}else{this._overlayContent.focusDateElement()}}break}}_onEnter(t){const e=this.value;if(this.opened){this.close()}else{this._selectParsedOrFocusedDate()}if(e===this.value){this.validate()}}_onEscape(t){if(this.opened){return}if(this.clearButtonVisible&&!!this.value){t.stopPropagation();this._onClearButtonClick(t);return}if(this.autoOpenDisabled){if(this.inputElement.value===""){this._selectDate(null)}this._applyInputValue(this._selectedDate)}else{this._focusedDate=this._selectedDate;this._selectParsedOrFocusedDate()}}_getParsedDate(t=this._inputValue){const e=this.i18n.parseDate&&this.i18n.parseDate(t);const i=e&&_a(`${e.year}-${e.month+1}-${e.day}`);return i}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this.inputElement.value&&!this.autoOpenDisabled){this.open()}this._userInputValueChanged()}_userInputValueChanged(){if(this._inputValue){const t=this._getParsedDate();if(this._isValidDate(t)){this._ignoreFocusedDateChange=true;if(!ga(t,this._focusedDate)){this._focusedDate=t}this._ignoreFocusedDateChange=false}}}get _overlayContent(){return this.$.overlay.content.querySelector("#overlay-content")}__computeMinOrMaxDate(t){return _a(t)}}
2831
2831
  /**
2832
2832
  * @license
2833
2833
  * Copyright (c) 2016 - 2022 Vaadin Ltd.
2834
2834
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2835
- */;gt("vaadin-date-picker",[qa,ia],{moduleId:"vaadin-date-picker-styles"});class Ka extends(Ja(Ha(Tt(Io(Es))))){static get is(){return"vaadin-date-picker"}static get template(){return zs`
2835
+ */;vt("vaadin-date-picker",[Va,sa],{moduleId:"vaadin-date-picker-styles"});class Za extends(Ka(Wa(St(No(Fs))))){static get is(){return"vaadin-date-picker"}static get template(){return Ps`
2836
2836
  <style>
2837
2837
  :host([opened]) {
2838
2838
  pointer-events: auto;
@@ -2895,5 +2895,5 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2895
2895
  </vaadin-date-picker-overlay>
2896
2896
 
2897
2897
  <slot name="tooltip"></slot>
2898
- `}get clearElement(){return this.$.clearButton}ready(){super.ready();this.addController(new Wa(this,(t=>{this._setInputElement(t);this._setFocusElement(t);this.stateTarget=t;this.ariaTarget=t})));this.addController(new Ua(this.inputElement,this._labelController));this._tooltipController=new Lo(this);this.addController(this._tooltipController);this._tooltipController.setPosition("top");this._tooltipController.setShouldShow((t=>!t.opened));const t=this.shadowRoot.querySelector('[part="toggle-button"]');t.addEventListener("mousedown",(t=>t.preventDefault()))}_initOverlay(){super._initOverlay();this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){if(t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)){t.preventDefault()}}_toggle(t){t.stopPropagation();this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_openedChanged(t){super._openedChanged(t);this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]');this.$.overlay.noVerticalOverlap=true}}customElements.define(Ka.is,Ka);const Za='@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 Xa=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=true;this.activateTicketSearch=false;this.gameId="";this.playerId="";this.session="";this.postMessage=false;this.language="en";this.quickFiltersActive=false;this.clientStyling="";this.clientStylingUrlContent="";this.showFilterModal=false;this.showClearButton=false;this.filterData={};this.filterDataReset={ticketDrawId:"",filterFromCalendar:"",filterToCalendar:""};this.limitStylingAppends=false;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(){if(document.getElementById("#FilterById"))document.getElementById("#FilterById").value="";if(!this.limitStylingAppends&&this.stylingContainer){if(this.clientStyling)this.setClientStyling();if(this.clientStylingUrlContent)this.setClientStylingURL();this.limitStylingAppends=true}}filterSelectionHandler(t){if(this.postMessage)window.postMessage({type:"filterSelection",event:t},window.location.href);if(this.filterData.ticketDrawId||this.filterData.filterFromCalendar||this.filterData.filterToCalendar)this.filterSelection.emit(t)}filterSelectionResetHandler(t){if(this.postMessage)window.postMessage({type:"filterSelectionReset",event:t},window.location.href);this.filterSelectionReset.emit(t)}modalCloseEvent(){this.showFilterModal=false}toggleFilterModal(){this.showFilterModal=true}filterSearch(){this.modalCloseEvent();this.showClearButton=true;this.filterSelectionHandler(this.filterData);console.log(this.showClearButton)}resetSearch(){this.showClearButton=false;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()},n("filterOpen",this.language)),console.log("in filter Open",this.showClearButton,this.quickFiltersActive),this.showClearButton||this.quickFiltersActive?i("button",{class:"FilterClear",onClick:()=>this.resetSearch()},n("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"},this.activateTicketSearch?n("filterModalTicketTitle",this.language):n("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:this.activateTicketSearch?n("filterTicketPlaceholder",this.language):n("filterDrawPlaceholder",this.language)}),i("p",null,n("filterOrDate",this.language)),i("div",{class:"FilterCalendarWrapper"},i("vaadin-date-picker",{value:this.filterData.filterFromCalendar,onChange:t=>this.handleFilterFrom(t),placeholder:n("filterFromCalendar",this.language),class:"VaadinDatePicker"}),i("vaadin-date-picker",{value:this.filterData.filterToCalendar,onChange:t=>this.handleFilterTo(t),placeholder:n("filterToCalendar",this.language),class:"VaadinDatePicker"}))),i("div",{class:"FilterModalFooter"},i("button",{class:"FilterModalButton",onClick:()=>this.filterSearch()},n("filterModalButton",this.language)))))}};Xa.style=Za;const Qa="en";const tl=["ro","en"];const el={en:{drawResultsHeader:"Last draw results",drawId:"Draw ID",drawName:"Game name",drawDate:"Draw Date",drawNumbersGridDraw:"Draw numbers Grid ",drawNumbersGridTicket:"Draw numbers Grid ",ticketResult:"Ticket result",amountWon:"Amount won",numberOfDraws:"Number of draws",multiplier:"Multiplier:",ticketPurchaseDate:"Ticket Purchase Date",ticketStatus:"Ticket Status",ticketId:"Ticket ID",ticketAmount:"Ticket Amount",winUpTo:"Win up to"},ro:{drawResultsHeader:"Ultimele rezultate extragere",drawId:"Id extragere",drawName:"Numele jocului",drawDate:"Data extragerii",drawNumbersGridDraw:"Numerele extrase Grid",drawNumbersGridTicket:"Numerele extrase Grid",ticketResult:"Rezultatul biletului",amountWon:"Suma castigata",numberOfDraws:"Numarul de extrageri",multiplier:"Multiplicator:",ticketPurchaseDate:"Data achizitionarii biletului",ticketStatus:"Statusul biletului",ticketId:"Id biletul",ticketAmount:"Valoarea biletului",winUpTo:"Poti castiga"},fr:{drawResultsHeader:"Résultats du dernier tirage",drawId:"ID de tirage",drawName:"Nom du jeu",drawDate:"Date du tirage",drawNumbersGridDraw:"Tirage des numéros Grille",drawNumbersGridTicket:"Tirage des numéros Grille",ticketResult:"Résultat du ticket",amountWon:"Montant gagné",numberOfDraws:"Nombre de tirages",multiplier:"Multiplicateur",ticketPurchaseDate:"Date d'achat du billet",ticketStatus:"Statut du ticket",ticketId:"ID de billets",ticketAmount:"Montant du billet",winUpTo:"Gagnez jusqu'à"},ar:{drawResultsHeader:"نتائج آخر سحب",drawId:"معرّف السحب",drawName:"اسم اللعبة",drawDate:"تاريخ السحب",drawNumbersGridDraw:"شبكة أرقام السحب",drawNumbersGridTicket:"شبكة أرقام السحب",ticketResult:"نتيجة التذكرة",amountWon:"المبلغ الذي تم ربحه",numberOfDraws:"عدد السحوبات",multiplier:"مضاعف",ticketPurchaseDate:"تاريخ شراء التذكرة",ticketStatus:"حالة التذكرة",ticketId:"معرّف التذكرة",ticketAmount:"مبلغ التذكرة",winUpTo:"ربح يصل إلى"}};const il=(t,e)=>{const i=e;return el[i!==undefined&&tl.includes(i)?i:Qa][t]};const sl='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.TicketInfo{display:flex;flex-direction:row;gap:15px;background-color:#009993;color:#fff;padding:12px;font-size:14px}.DrawResultsArea{margin-top:15px}.DrawResultsArea.TicketDraws .Content{padding:0;border:0}.DrawResultsArea.TicketDraws .DrawResultsBody{padding:0;margin-bottom:5px;border-radius:0;border:0}.DrawResultsSection{max-width:600px;margin:0px auto;border-radius:4px}.DrawResultsHeader{display:flex;justify-content:space-between;padding:10px 20px;background-color:#009993;color:#fff;font-size:14px;border-radius:4px 4px 0 0}.DrawResultsHeader h4{text-transform:uppercase;font-weight:400;margin:0;padding-top:15px}.DrawResultsBody{padding:20px;margin-bottom:5px;border-radius:0 0 4px 4px;border:1px solid #009993}.DrawResultsBody>div{margin:10px 0}.DrawResultsBody .NumberOfDrawsContainer{display:table;width:100%}.DrawNumbersGrid{display:flex;flex-direction:column;gap:5px}.DrawNumbersGrid label{display:block;margin-bottom:7px}.Toggle{cursor:pointer;display:inline-block}.ToggleSwitch{display:inline-block;background:#ccc;border-radius:16px;width:58px;height:24px;position:relative;vertical-align:middle;transition:background 0.25s}.ToggleSwitch:before,.ToggleSwitch:after{content:""}.ToggleSwitch:before{display:block;background:linear-gradient(to bottom, #fff 0%, #eee 100%);border-radius:50%;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.25);width:16px;height:16px;position:absolute;top:4px;left:4px;transition:left 0.25s}.Toggle:hover .ToggleSwitch:before{background:linear-gradient(to bottom, #fff 0%, #fff 100%);box-shadow:0 0 0 1px rgba(0, 0, 0, 0.5)}.ToggleCheckbox:checked+.ToggleSwitch{background:#56c080}.ToggleCheckbox:checked+.ToggleSwitch:before{left:38px}.ToggleCheckbox{position:absolute;visibility:hidden}.Label{position:relative}.DrawTicketsContainer{display:flex;flex-direction:column;margin:20px auto 0}.DrawMultipler{margin-top:15px}.ExpandableBoxes{position:relative;display:flex;flex-direction:column;border:1px solid #ccc;border-radius:5px;background-color:white}.ExpandableBox{border-bottom:1px solid #ccc;transition:height 300ms ease-in-out;overflow:hidden;height:80px}.ExpandableBox:last-child{border-bottom:0}.ExpandableBoxHeader{position:relative;list-style:none;outline:0;cursor:pointer;text-transform:uppercase;transition:color 300ms ease-in-out;margin-bottom:24px;margin-left:5px}.ShowBox>.ExpandableBoxHeader{color:#009993}.ExpandableBoxHeader::-webkit-details-marker{display:none}.ExpandableBoxHeader:before,.ExpandableBoxHeader:after{content:"";position:absolute}.ExpandableBoxHeader:before{right:21px;top:50%;height:2px;margin-top:-1px;width:16px;background:#009993}.ExpandableBoxHeader:after{right:28px;top:50%;height:16px;margin-top:-8px;width:2px;margin-left:-1px;background:#009993;transition:all 300ms ease-in-out}.ShowBox .ExpandableBoxHeader:after{opacity:0;transform:translateY(25%)}.ExpandableBoxBody{padding-top:0;font-weight:lighter;margin-left:5px}.ExpandableBox.ShowBox{height:300px}';const rl=class{constructor(e){t(this,e);this.language="en";this.drawMode=false;this.drawId="";this.gameName="";this.ticketDate="";this.ticketStatus="";this.ticketId="";this.ticketAmount="";this.ticketMultiplier=false;this.ticketDrawCount=0;this.ticketNumbers="";this.sessionId="";this.clientStyling="";this.clientStylingUrlContent="";this.ticketDrawData="";this.multiplier=3;this.isLoading=true;this.hasErrors=false;this.errorText="";this.ticketData=[];this.ticketDataLoaded=false;this.ticketDraws=[];this.toggleDrawer=[false];this.limitStylingAppends=false;this.ticketDrawDetails=[];this.ticketDrawDetailsFlag=true;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)}}connectedCallback(){let t=[];if(this.ticketNumbers){this.gridNumbers=JSON.parse(this.ticketNumbers)}if(this.drawId){t.push(this.getDrawData())}Promise.all(t).then((()=>{this.isLoading=false})).catch((t=>{console.log("error ",t);this.isLoading=false}))}componentWillRender(){if(this.ticketDrawData&&this.ticketDrawDetailsFlag){this.ticketDrawDetails=JSON.parse(this.ticketDrawData);this.ticketDrawDetails.forEach((t=>{this.getDrawData(t.drawId).then((e=>t.drawData=e))}));this.ticketDrawDetailsFlag=false}}componentDidRender(){if(!this.limitStylingAppends&&this.stylingContainer){if(this.clientStyling)this.setClientStyling();if(this.clientStylingUrlContent)this.setClientStylingURL();this.limitStylingAppends=true}}getDrawData(t){this.isLoading=true;return new Promise(((e,i)=>{let s=new URL(`${this.endpoint}/games/${this.gameId}/draws/${t?t:this.drawId}`);fetch(s.href).then((t=>t.json())).then((i=>{if(t){e(i)}else{this.drawData=i;e(true)}this.isLoading=false})).catch((t=>{i(t);this.isLoading=false}))}))}drawerToggle(t){this.toggleDrawer=this.toggleDrawer.map(((e,i)=>{if(i==t){return!e}return e}));if(t>=this.toggleDrawer.length){this.toggleDrawer.push(true)}}render(){if(this.isLoading){return i("p",null,"Loading, please wait ...")}else if(this.hasErrors){i("p",null,this.errorText)}else{return i("section",{class:"DrawResultsSection",ref:t=>this.stylingContainer=t},this.drawMode?i("div",{class:"DrawResultsArea"},this.drawData&&i("div",null,i("div",{class:"DrawResultsHeader"},i("span",null,il("drawId",this.language),": ",this.drawData.id),i("span",null,il("drawDate",this.language),": ",this.drawData.date.slice(0,10))),i("div",{class:"DrawResultsBody"},i("div",{class:"DrawNumbersGrid"},i("p",null,il("drawNumbersGridDraw",this.language),"0:"),i("div",{class:"BulletContainer"},i("lottery-grid",{"selected-numbers":this.drawData.winningNumbers.join(","),"display-selected":true,selectable:false,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},il("multiplier",this.language)," ",this.multiplier)))))):i("div",{class:"DrawResultsArea TicketDraws"},i("div",{class:"DrawResultsBody"},i("div",{class:"TicketIdContainer"},i("label",{class:"Label"},il("ticketId",this.language),": ",i("span",null,this.ticketId))),i("div",{class:"TicketAmountContainer"},i("label",{class:"Label"},il("ticketAmount",this.language)," ",i("span",null,this.ticketAmount))),i("div",{class:"DrawNumbersGrid"},this.gridNumbers.map(((t,e)=>i("div",null,i("label",{class:"Label"},il("drawNumbersGridTicket",this.language)," ",String.fromCharCode(e+65),":"),i("div",{class:"BulletContainer"},i("lottery-grid",{"selected-numbers":t.join(","),selectable:false,"display-selected":true,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})))))),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},il("multiplier",this.language)," ",JSON.stringify(this.ticketMultiplier))),i("div",{class:"NumberOfDrawsContainer"},i("label",{class:"Label"},il("numberOfDraws",this.language),": ",this.ticketDrawCount),i("div",{class:"DrawTicketsContainer"},this.ticketDrawDetails&&this.ticketDrawDetails.length>0&&i("div",{class:"ExpandableBoxes"},this.ticketDrawDetails.map(((t,e)=>{var s,r,o,n,a;return i("div",{class:{ExpandableBox:true,ShowBox:this.toggleDrawer[e]},onClick:()=>this.drawerToggle(e)},i("div",{class:"ExpandableBoxHeader"},i("div",{class:"TicketResultContainer"},i("p",null,il("ticketResult",this.language),": ",t.state)),t.state=="won"&&i("div",{class:"AmountWonContainer"},i("p",null,il("amountWon",this.language),": ",Number(t.amount).toLocaleString("en")," ",t.currency)),t.state=="lost"&&i("div",{class:"DrawIdContainer"},i("p",null,il("drawId",this.language),": ",t.drawId))),i("div",{class:"ExpandableBoxBody"},i("div",{class:"DrawIdContainer"},i("p",null,il("drawId",this.language),": ",t.drawId)),i("div",{class:"DrawDateContainer"},i("p",null,il("drawDate",this.language),": ",(s=t.drawData)===null||s===void 0?void 0:s.date.slice(0,10)," | ",(r=t.drawData)===null||r===void 0?void 0:r.date.slice(11,19))),i("div",{class:"DrawNumbersGrid"},t.drawData&&i("div",{class:"BulletContainer"},i("label",{class:"Label"},il("drawNumbersGridDraw",this.language)," ",String.fromCharCode(e+10),":"),i("lottery-grid",{"selected-numbers":(n=(o=t.drawData)===null||o===void 0?void 0:o.winningNumbers)===null||n===void 0?void 0:n.join(","),selectable:false,"display-selected":true,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent}))),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},il("multiplier",this.language)," ",(a=t.drawData)===null||a===void 0?void 0:a.multiplier))))}))))))))}}};rl.style=sl;export{Xa as helper_filters,rl as lottery_draw_results};
2899
- //# sourceMappingURL=p-f8578814.entry.js.map
2898
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready();this.addController(new Ua(this,(t=>{this._setInputElement(t);this._setFocusElement(t);this.stateTarget=t;this.ariaTarget=t})));this.addController(new $a(this.inputElement,this._labelController));this._tooltipController=new Ho(this);this.addController(this._tooltipController);this._tooltipController.setPosition("top");this._tooltipController.setShouldShow((t=>!t.opened));const t=this.shadowRoot.querySelector('[part="toggle-button"]');t.addEventListener("mousedown",(t=>t.preventDefault()))}_initOverlay(){super._initOverlay();this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){if(t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)){t.preventDefault()}}_toggle(t){t.stopPropagation();this[this._overlayInitialized&&this.$.overlay.opened?"close":"open"]()}_openedChanged(t){super._openedChanged(t);this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]');this.$.overlay.noVerticalOverlap=true}}customElements.define(Za.is,Za);const Xa='@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 Qa=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=true;this.activateTicketSearch=false;this.gameId="";this.playerId="";this.session="";this.postMessage=false;this.language="en";this.quickFiltersActive=false;this.clientStyling="";this.clientStylingUrlContent="";this.showFilterModal=false;this.showClearButton=false;this.filterData={};this.filterDataReset={ticketDrawId:"",filterFromCalendar:"",filterToCalendar:""};this.limitStylingAppends=false;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(){if(document.getElementById("#FilterById"))document.getElementById("#FilterById").value="";if(!this.limitStylingAppends&&this.stylingContainer){if(this.clientStyling)this.setClientStyling();if(this.clientStylingUrlContent)this.setClientStylingURL();this.limitStylingAppends=true}}filterSelectionHandler(t){if(this.postMessage)window.postMessage({type:"filterSelection",event:t},window.location.href);if(this.filterData.ticketDrawId||this.filterData.filterFromCalendar||this.filterData.filterToCalendar)this.filterSelection.emit(t)}filterSelectionResetHandler(t){if(this.postMessage)window.postMessage({type:"filterSelectionReset",event:t},window.location.href);this.filterSelectionReset.emit(t)}modalCloseEvent(){this.showFilterModal=false}toggleFilterModal(){this.showFilterModal=true}filterSearch(){this.modalCloseEvent();this.showClearButton=true;this.filterSelectionHandler(this.filterData);console.log(this.showClearButton)}resetSearch(){this.showClearButton=false;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()},n("filterOpen",this.language)),console.log("in filter Open",this.showClearButton,this.quickFiltersActive),this.showClearButton||this.quickFiltersActive?i("button",{class:"FilterClear",onClick:()=>this.resetSearch()},n("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"},this.activateTicketSearch?n("filterModalTicketTitle",this.language):n("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:this.activateTicketSearch?n("filterTicketPlaceholder",this.language):n("filterDrawPlaceholder",this.language)}),i("p",null,n("filterOrDate",this.language)),i("div",{class:"FilterCalendarWrapper"},i("vaadin-date-picker",{value:this.filterData.filterFromCalendar,onChange:t=>this.handleFilterFrom(t),placeholder:n("filterFromCalendar",this.language),class:"VaadinDatePicker"}),i("vaadin-date-picker",{value:this.filterData.filterToCalendar,onChange:t=>this.handleFilterTo(t),placeholder:n("filterToCalendar",this.language),class:"VaadinDatePicker"}))),i("div",{class:"FilterModalFooter"},i("button",{class:"FilterModalButton",onClick:()=>this.filterSearch()},n("filterModalButton",this.language)))))}};Qa.style=Xa;const tl="en";const el=["ro","en"];const il={en:{drawResultsHeader:"Last draw results",drawId:"Draw ID",drawName:"Game name",drawDate:"Draw Date",drawNumbersGridDraw:"Draw numbers Grid ",drawNumbersGridTicket:"Draw numbers Grid ",ticketResult:"Ticket result",amountWon:"Amount won",numberOfDraws:"Number of draws",multiplier:"Multiplier:",ticketPurchaseDate:"Ticket Purchase Date",ticketStatus:"Ticket Status",ticketId:"Ticket ID",ticketAmount:"Ticket Amount",winUpTo:"Win up to"},ro:{drawResultsHeader:"Ultimele rezultate extragere",drawId:"Id extragere",drawName:"Numele jocului",drawDate:"Data extragerii",drawNumbersGridDraw:"Numerele extrase Grid",drawNumbersGridTicket:"Numerele extrase Grid",ticketResult:"Rezultatul biletului",amountWon:"Suma castigata",numberOfDraws:"Numarul de extrageri",multiplier:"Multiplicator:",ticketPurchaseDate:"Data achizitionarii biletului",ticketStatus:"Statusul biletului",ticketId:"Id biletul",ticketAmount:"Valoarea biletului",winUpTo:"Poti castiga"},fr:{drawResultsHeader:"Résultats du dernier tirage",drawId:"ID de tirage",drawName:"Nom du jeu",drawDate:"Date du tirage",drawNumbersGridDraw:"Tirage des numéros Grille",drawNumbersGridTicket:"Tirage des numéros Grille",ticketResult:"Résultat du ticket",amountWon:"Montant gagné",numberOfDraws:"Nombre de tirages",multiplier:"Multiplicateur",ticketPurchaseDate:"Date d'achat du billet",ticketStatus:"Statut du ticket",ticketId:"ID de billets",ticketAmount:"Montant du billet",winUpTo:"Gagnez jusqu'à"},ar:{drawResultsHeader:"نتائج آخر سحب",drawId:"معرّف السحب",drawName:"اسم اللعبة",drawDate:"تاريخ السحب",drawNumbersGridDraw:"شبكة أرقام السحب",drawNumbersGridTicket:"شبكة أرقام السحب",ticketResult:"نتيجة التذكرة",amountWon:"المبلغ الذي تم ربحه",numberOfDraws:"عدد السحوبات",multiplier:"مضاعف",ticketPurchaseDate:"تاريخ شراء التذكرة",ticketStatus:"حالة التذكرة",ticketId:"معرّف التذكرة",ticketAmount:"مبلغ التذكرة",winUpTo:"ربح يصل إلى"}};const sl=(t,e)=>{const i=e;return il[i!==undefined&&el.includes(i)?i:tl][t]};const rl='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.TicketInfo{display:flex;flex-direction:row;gap:15px;background-color:#009993;color:#fff;padding:12px;font-size:14px}.DrawResultsArea{margin-top:15px}.DrawResultsArea.TicketDraws .Content{padding:0;border:0}.DrawResultsArea.TicketDraws .DrawResultsBody{padding:0;margin-bottom:5px;border-radius:0;border:0}.DrawResultsSection{max-width:600px;margin:0px auto;border-radius:4px}.DrawResultsHeader{display:flex;justify-content:space-between;padding:10px 20px;background-color:#009993;color:#fff;font-size:14px;border-radius:4px 4px 0 0}.DrawResultsHeader h4{text-transform:uppercase;font-weight:400;margin:0;padding-top:15px}.DrawResultsBody{padding:20px;margin-bottom:5px;border-radius:0 0 4px 4px;border:1px solid #009993}.DrawResultsBody>div{margin:10px 0}.DrawResultsBody .NumberOfDrawsContainer{display:table;width:100%}.DrawNumbersGrid{display:flex;flex-direction:column;gap:5px}.DrawNumbersGrid label{display:block;margin-bottom:7px}.Toggle{cursor:pointer;display:inline-block}.ToggleSwitch{display:inline-block;background:#ccc;border-radius:16px;width:58px;height:24px;position:relative;vertical-align:middle;transition:background 0.25s}.ToggleSwitch:before,.ToggleSwitch:after{content:""}.ToggleSwitch:before{display:block;background:linear-gradient(to bottom, #fff 0%, #eee 100%);border-radius:50%;box-shadow:0 0 0 1px rgba(0, 0, 0, 0.25);width:16px;height:16px;position:absolute;top:4px;left:4px;transition:left 0.25s}.Toggle:hover .ToggleSwitch:before{background:linear-gradient(to bottom, #fff 0%, #fff 100%);box-shadow:0 0 0 1px rgba(0, 0, 0, 0.5)}.ToggleCheckbox:checked+.ToggleSwitch{background:#56c080}.ToggleCheckbox:checked+.ToggleSwitch:before{left:38px}.ToggleCheckbox{position:absolute;visibility:hidden}.Label{position:relative}.DrawTicketsContainer{display:flex;flex-direction:column;margin:20px auto 0}.DrawMultipler{margin-top:15px}.ExpandableBoxes{position:relative;display:flex;flex-direction:column;border:1px solid #ccc;border-radius:5px;background-color:white}.ExpandableBox{border-bottom:1px solid #ccc;transition:height 300ms ease-in-out;overflow:hidden;height:80px}.ExpandableBox:last-child{border-bottom:0}.ExpandableBoxHeader{position:relative;list-style:none;outline:0;cursor:pointer;text-transform:uppercase;transition:color 300ms ease-in-out;margin-bottom:24px;margin-left:5px}.ShowBox>.ExpandableBoxHeader{color:#009993}.ExpandableBoxHeader::-webkit-details-marker{display:none}.ExpandableBoxHeader:before,.ExpandableBoxHeader:after{content:"";position:absolute}.ExpandableBoxHeader:before{right:21px;top:50%;height:2px;margin-top:-1px;width:16px;background:#009993}.ExpandableBoxHeader:after{right:28px;top:50%;height:16px;margin-top:-8px;width:2px;margin-left:-1px;background:#009993;transition:all 300ms ease-in-out}.ShowBox .ExpandableBoxHeader:after{opacity:0;transform:translateY(25%)}.ExpandableBoxBody{padding-top:0;font-weight:lighter;margin-left:5px}.ExpandableBox.ShowBox{height:300px}';const ol=class{constructor(e){t(this,e);this.language="en";this.drawMode=false;this.drawId="";this.gameName="";this.ticketDate="";this.ticketStatus="";this.ticketId="";this.ticketAmount="";this.ticketMultiplier=false;this.ticketDrawCount=0;this.ticketNumbers="";this.sessionId="";this.clientStyling="";this.clientStylingUrlContent="";this.ticketDrawData="";this.multiplier=3;this.isLoading=true;this.hasErrors=false;this.errorText="";this.ticketData=[];this.ticketDataLoaded=false;this.ticketDraws=[];this.toggleDrawer=[false];this.limitStylingAppends=false;this.ticketDrawDetails=[];this.ticketDrawDetailsFlag=true;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)}}connectedCallback(){let t=[];if(this.ticketNumbers){this.gridNumbers=JSON.parse(this.ticketNumbers)}if(this.drawId){t.push(this.getDrawData())}Promise.all(t).then((()=>{this.isLoading=false})).catch((t=>{console.log("error ",t);this.isLoading=false}))}componentWillRender(){if(this.ticketDrawData&&this.ticketDrawDetailsFlag){this.ticketDrawDetails=JSON.parse(this.ticketDrawData);this.ticketDrawDetails.forEach((t=>{this.getDrawData(t.drawId).then((e=>t.drawData=e))}));this.ticketDrawDetailsFlag=false}}componentDidRender(){if(!this.limitStylingAppends&&this.stylingContainer){if(this.clientStyling)this.setClientStyling();if(this.clientStylingUrlContent)this.setClientStylingURL();this.limitStylingAppends=true}}getDrawData(t){this.isLoading=true;return new Promise(((e,i)=>{let s=new URL(`${this.endpoint}/games/${this.gameId}/draws/${t?t:this.drawId}`);fetch(s.href).then((t=>t.json())).then((i=>{if(t){e(i)}else{this.drawData=i;e(true)}this.isLoading=false})).catch((t=>{i(t);this.isLoading=false}))}))}drawerToggle(t){this.toggleDrawer=this.toggleDrawer.map(((e,i)=>{if(i==t){return!e}return e}));if(t>=this.toggleDrawer.length){this.toggleDrawer.push(true)}}render(){if(this.isLoading){return i("p",null,"Loading, please wait ...")}else if(this.hasErrors){i("p",null,this.errorText)}else{return i("section",{class:"DrawResultsSection",ref:t=>this.stylingContainer=t},this.drawMode?i("div",{class:"DrawResultsArea"},this.drawData&&i("div",null,i("div",{class:"DrawResultsHeader"},i("span",null,sl("drawId",this.language),": ",this.drawData.id),i("span",null,sl("drawDate",this.language),": ",this.drawData.date.slice(0,10))),i("div",{class:"DrawResultsBody"},i("div",{class:"DrawNumbersGrid"},i("p",null,sl("drawNumbersGridDraw",this.language),"0:"),i("div",{class:"BulletContainer"},i("lottery-grid",{"selected-numbers":this.drawData.winningNumbers.join(","),"display-selected":true,selectable:false,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},sl("multiplier",this.language)," ",this.multiplier)))))):i("div",{class:"DrawResultsArea TicketDraws"},i("div",{class:"DrawResultsBody"},i("div",{class:"TicketIdContainer"},i("label",{class:"Label"},sl("ticketId",this.language),": ",i("span",null,this.ticketId))),i("div",{class:"TicketAmountContainer"},i("label",{class:"Label"},sl("ticketAmount",this.language)," ",i("span",null,this.ticketAmount))),i("div",{class:"DrawNumbersGrid"},this.gridNumbers.map(((t,e)=>i("div",null,i("label",{class:"Label"},sl("drawNumbersGridTicket",this.language)," ",String.fromCharCode(e+65),":"),i("div",{class:"BulletContainer"},i("lottery-grid",{"selected-numbers":t.join(","),selectable:false,"display-selected":true,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})))))),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},sl("multiplier",this.language)," ",JSON.stringify(this.ticketMultiplier))),i("div",{class:"NumberOfDrawsContainer"},i("label",{class:"Label"},sl("numberOfDraws",this.language),": ",this.ticketDrawCount),i("div",{class:"DrawTicketsContainer"},this.ticketDrawDetails&&this.ticketDrawDetails.length>0&&i("div",{class:"ExpandableBoxes"},this.ticketDrawDetails.map(((t,e)=>{var s,r,o,n,a;return i("div",{class:{ExpandableBox:true,ShowBox:this.toggleDrawer[e]},onClick:()=>this.drawerToggle(e)},i("div",{class:"ExpandableBoxHeader"},i("div",{class:"TicketResultContainer"},i("p",null,sl("ticketResult",this.language),": ",t.state)),t.state=="won"&&i("div",{class:"AmountWonContainer"},i("p",null,sl("amountWon",this.language),": ",Number(t.amount).toLocaleString("en")," ",t.currency)),t.state=="lost"&&i("div",{class:"DrawIdContainer"},i("p",null,sl("drawId",this.language),": ",t.drawId))),i("div",{class:"ExpandableBoxBody"},i("div",{class:"DrawIdContainer"},i("p",null,sl("drawId",this.language),": ",t.drawId)),i("div",{class:"DrawDateContainer"},i("p",null,sl("drawDate",this.language),": ",(s=t.drawData)===null||s===void 0?void 0:s.date.slice(0,10)," | ",(r=t.drawData)===null||r===void 0?void 0:r.date.slice(11,19))),i("div",{class:"DrawNumbersGrid"},t.drawData&&i("div",{class:"BulletContainer"},i("label",{class:"Label"},sl("drawNumbersGridDraw",this.language)," ",String.fromCharCode(e+10),":"),i("lottery-grid",{"selected-numbers":(n=(o=t.drawData)===null||o===void 0?void 0:o.winningNumbers)===null||n===void 0?void 0:n.join(","),selectable:false,"display-selected":true,language:this.language,"grid-type":"ticket","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent}))),i("div",{class:"DrawMultipler"},i("label",{class:"Label"},sl("multiplier",this.language)," ",(a=t.drawData)===null||a===void 0?void 0:a.multiplier))))}))))))))}}};ol.style=rl;export{Qa as helper_filters,ol as lottery_draw_results};
2899
+ //# sourceMappingURL=p-80db59a3.entry.js.map