@everymatrix/general-registration 1.53.11 → 1.53.12

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- import{r as t,c as e,h as i,g as r,H as o}from"./p-30224c7b.js";import"@everymatrix/player-consents/dist";const s={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",OnlyNumbers:"Should contains only numbers.",InvalidFieldSize:"The length must be exactly 11 digits."},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",OnlyNumbers:"Csak számokat kell tartalmaznia.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie."},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",OnlyNumbers:"Treba sadržavati samo brojeve.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki."},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",OnlyNumbers:"Sadece sayılar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır."},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",OnlyNumbers:"Deve conter apenas números",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos."},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",OnlyNumbers:"Solo debe contener números",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos."}},n=(t,e,i)=>{let r=s[void 0!==e?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==";
1
+ import{r as t,c as e,h as i,g as r,H as o}from"./p-30224c7b.js";const s={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",numberLengthError:"The number should be between {min} and {max}",lengthError:"The length should be between {minLength} and {maxLength}",requiredError:"This input is required.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",passwordStrength:"Password strength",passwordStrengthWeak:"is not adequate",passwordStrengthStrong:"is adequate",SpecialCharactersNotAllowed:"Should not contain special characters",InvalidEmailFormat:"Invalid email format.",EmailNotMatching:"Emails not matching!",PasswordNotMatching:"Passwords not matching",MustIncludeNumber:"Password must include a number",MustContainCapital:"Password must include a capital letter",MustIncludePunctation:"Password must include punctuation",OnlyNumbers:"Should contains only numbers.",InvalidFieldSize:"The length must be exactly 11 digits."},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",numberLengthError:"A számnak {min} és {max} között kell lennie",lengthError:"A hossznak {minLength} és {maxLength} között kell lennie",requiredError:"Ez a beviteli mező kötelező.",invalidOriginalPasswordError:"Initial password field does not validate all criteria.",passwordStrength:"Jelszó erőssége",passwordStrengthWeak:"nem megfelelő",passwordStrengthStrong:"megfelelő",SpecialCharactersNotAllowed:"Nem tartalmazhat speciális karaktereket",InvalidEmailFormat:"Érvénytelen e-mail formátum.",EmailNotMatching:"Az e-mailek nem egyeznek!",PasswordNotMatching:"A jelszavak nem egyeznek",MustIncludeNumber:"A jelszónak tartalmaznia kell egy számot",MustContainCapital:"A jelszónak tartalmaznia kell egy nagybetűt",MustIncludePunctation:"A jelszónak tartalmaznia kell írásjelet",OnlyNumbers:"Csak számokat kell tartalmaznia.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie."},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",numberLengthError:"Broj bi trebao biti između {min} i {max}",lengthError:"Duljina bi trebala biti između {minLength} i {maxLength}",requiredError:"Ovaj unos je obavezan.",invalidOriginalPasswordError:"Lozinke se ne podudaraju",passwordStrength:"Lozinka",passwordStrengthWeak:"nije dovoljno jaka",passwordStrengthStrong:"je dovoljno jaka",SpecialCharactersNotAllowed:"Ne smije sadržavati posebne znakove",InvalidEmailFormat:"Nevažeći format e-maila",EmailNotMatching:"E-mailovi se ne podudaraju!",PasswordNotMatching:"Lozinke se ne podudaraju",MustIncludeNumber:"Lozinka mora sadržavati broj",MustContainCapital:"Lozinka mora sadržavati veliko slovo",MustIncludePunctation:"Lozinka mora sadržavati barem jedan znak",OnlyNumbers:"Treba sadržavati samo brojeve.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki."},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",numberLengthError:"Sayı {min} ve {max} arasında olmalıdır",lengthError:"Uzunluk {minLength} ve {maxLength} arasında olmalıdır",requiredError:"Bu alan zorunludur.",invalidOriginalPasswordError:"İlk şifre alanı tüm kriterleri karşılamıyor.",passwordStrength:"Şifre gücü",passwordStrengthWeak:"yetersiz",passwordStrengthStrong:"yeterli",SpecialCharactersNotAllowed:"Özel karakter içermemelidir",InvalidEmailFormat:"Geçersiz e-posta formatı.",EmailNotMatching:"E-postalar uyuşmuyor!",PasswordNotMatching:"Şifreler uyuşmuyor",MustIncludeNumber:"bir sayı içermelidir",MustContainCapital:"büyük harf içermelidir",MustIncludePunctation:"noktalama işareti içermelidir",OnlyNumbers:"Sadece sayılar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır."},"pt-br":{dateError:"A data selecionada deve estar entre {min} e {max}",dateError2:"A data selecionada não está dentro de um intervalo válido",numberLengthError:"O número deve estar entre {min} e {max}",lengthError:"O comprimento deve estar entre {minLength} e {maxLength}",requiredError:"Este campo é obrigatório",invalidOriginalPasswordError:"O campo de senha inicial não faz parte dos critérios válidos",PasswordStrength:"Força da senha",PasswordStrengthWeak:"Não é adequado",PasswordStrengthStrong:"é apropriado",SpecialCharactersNotAllowed:"Não deve conter caracteres especiais",InvalidEmailFormat:"Formato de email inválido",EmailNotMatching:"E-mail não corresponde",PasswordNotMatching:"Senha não corresponde",MustIncludeNumber:"A senha deve incluir um número",MustContainCapital:"A senha deve incluir uma letra maiúscula",MustIncludePunctation:"A senha deve incluir um sinal de pontuação",OnlyNumbers:"Deve conter apenas números",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos."},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",numberLengthError:"El número debe ser entre {min} y {max}",lengthError:"La longitud deber ser entre {minLength} y {maxLength}",requiredError:"Este campo es requerido",invalidOriginalPasswordError:"El campo de contraseña inicial no es parte del criterio válido",PasswordStrength:"La fortaleza de la contraseña",PasswordStrengthWeak:"no es adecuada",PasswordStrengthStrong:"es adecuada",SpecialCharactersNotAllowed:"No debe contener caracteres especiales",InvalidEmailFormat:"Formato inválido de correo",EmailNotMatching:"El correo electrónico no coincide",PasswordNotMatching:"La contraseña no coincide",MustIncludeNumber:"La contraseña debe incluir un número",MustContainCapital:"La contraseña debe incluir una letra mayúscula",MustIncludePunctation:"La contraseña debe incluir un signo de puntuación",OnlyNumbers:"Solo debe contener números",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos."}},n=(t,e,i)=>{let r=s[void 0!==e?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},a="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==";
2
2
  /**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
@@ -20,19 +20,19 @@ const c=window,u=c.ShadowRoot&&(void 0===c.ShadyCSS||c.ShadyCSS.nativeShadow)&&"
20
20
  * @license
21
21
  * Copyright 2017 Google LLC
22
22
  * SPDX-License-Identifier: BSD-3-Clause
23
- */;var g;const b=window,_=b.trustedTypes,y=_?_.emptyScript:"",w=b.reactiveElementPolyfillSupport,E={toAttribute(t,e){switch(e){case Boolean:t=t?y: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}},x=(t,e)=>e!==t&&(e==e||t==t),A={attribute:!0,type:String,converter:E,reflect:!1,hasChanged:x},k="finalized";class S 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 r=this._$Ep(i,e);void 0!==r&&(this._$Ev.set(r,i),t.push(r))})),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,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||A}static finalize(){if(this.hasOwnProperty(k))return!1;this[k]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const i of e)this.createProperty(i,t[i])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const t of i)e.unshift(v(t))}else void 0!==t&&e.push(v(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{u?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),r=c.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=A){var r;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const s=(void 0!==(null===(r=i.converter)||void 0===r?void 0:r.toAttribute)?i.converter:E).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,o=r._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=r.getPropertyOptions(o),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:E;this._$El=o,this[o]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||x)(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))):r=!1),!this.isUpdatePending&&r&&(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){}}
23
+ */;var g;const b=window,_=b.trustedTypes,y=_?_.emptyScript:"",E=b.reactiveElementPolyfillSupport,w={toAttribute(t,e){switch(e){case Boolean:t=t?y: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}},x=(t,e)=>e!==t&&(e==e||t==t),k={attribute:!0,type:String,converter:w,reflect:!1,hasChanged:x},A="finalized";class S 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 r=this._$Ep(i,e);void 0!==r&&(this._$Ev.set(r,i),t.push(r))})),t}static createProperty(t,e=k){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,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||k}static finalize(){if(this.hasOwnProperty(A))return!1;this[A]=!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(v(t))}else void 0!==t&&e.push(v(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{u?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),r=c.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=k){var r;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const s=(void 0!==(null===(r=i.converter)||void 0===r?void 0:r.toAttribute)?i.converter:w).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,o=r._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=r.getPropertyOptions(o),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:w;this._$El=o,this[o]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||x)(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))):r=!1),!this.isUpdatePending&&r&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(i)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
24
24
  /**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
28
  */
29
- var I;S[k]=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==w||w({ReactiveElement:S}),(null!==(g=b.reactiveElementVersions)&&void 0!==g?g:b.reactiveElementVersions=[]).push("1.6.3");const T=window,D=T.trustedTypes,N=D?D.createPolicy("lit-html",{createHTML:t=>t}):void 0,O="$lit$",C=`lit$${(Math.random()+"").slice(9)}$`,R="?"+C,z=`<${R}>`,G=document,U=()=>G.createComment(""),M=t=>null===t||"object"!=typeof t&&"function"!=typeof t,L=Array.isArray,P="[ \t\n\f\r]",B=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,F=/-->/g,j=/>/g,V=RegExp(`>|${P}(?:([^\\s"'>=/]+)(${P}*=${P}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),q=/'/g,W=/"/g,Y=/^(?:script|style|textarea|title)$/i,H=Symbol.for("lit-noChange"),X=Symbol.for("lit-nothing"),K=new WeakMap,Z=G.createTreeWalker(G,129,null,!1);function $(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==N?N.createHTML(e):e}class J{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,s=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,r=[];let o,s=2===e?"<svg>":"",n=B;for(let e=0;e<i;e++){const i=t[e];let a,l,h=-1,c=0;for(;c<i.length&&(n.lastIndex=c,l=n.exec(i),null!==l);)c=n.lastIndex,n===B?"!--"===l[1]?n=F:void 0!==l[1]?n=j:void 0!==l[2]?(Y.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=V):void 0!==l[3]&&(n=V):n===V?">"===l[0]?(n=null!=o?o:B,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?V:'"'===l[3]?W:q):n===W||n===q?n=V:n===F||n===j?n=B:(n=V,o=void 0);const u=n===V&&t[e+1].startsWith("/>")?" ":"";s+=n===B?i+z:h>=0?(r.push(a),i.slice(0,h)+O+i.slice(h)+C+u):i+C+(-2===h?(r.push(void 0),e):u)}return[$(t,s+(t[i]||"<?>")+(2===e?"</svg>":"")),r]})(t,e);if(this.el=J.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!==(r=Z.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(O)||e.startsWith(C)){const i=h[s++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+O).split(C),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?st:"@"===e[1]?nt:it})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(Y.test(r.tagName)){const t=r.textContent.split(C),e=t.length-1;if(e>0){r.textContent=D?D.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],U()),Z.nextNode(),a.push({type:2,index:++o});r.append(t[e],U())}}}else if(8===r.nodeType)if(r.data===R)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(C,t+1));)a.push({type:7,index:o}),t+=C.length-1}o++}}static createElement(t,e){const i=G.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,r){var o,s,n,a;if(e===H)return e;let l=void 0!==r?null===(o=i._$Co)||void 0===o?void 0:o[r]:i._$Cl;const h=M(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,r)),void 0!==r?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[r]=l:i._$Cl=l),void 0!==l&&(e=Q(t,l._$AS(t,e.values),l,r)),e}class tt{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:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:G).importNode(i,!0);Z.currentNode=o;let s=Z.nextNode(),n=0,a=0,l=r[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new et(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new at(s,this,t)),this._$AV.push(e),l=r[++a]}n!==(null==l?void 0:l.index)&&(s=Z.nextNode(),n++)}return Z.currentNode=G,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,r){var o;this.type=2,this._$AH=X,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),M(t)?t===X||null==t||""===t?(this._$AH!==X&&this._$AR(),this._$AH=X):t!==this._$AH&&t!==H&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>L(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==X&&M(this._$AH)?this._$AA.nextSibling.data=t:this.$(G.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=J.createElement($(r.h,r.h[0]),this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new tt(o,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 J(t)),e}T(t){L(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new et(this.k(U()),this.k(U()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$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 it{constructor(t,e,i,r,o){this.type=1,this._$AH=X,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=X}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let s=!1;if(void 0===o)t=Q(this,t,e,0),s=!M(t)||t!==this._$AH&&t!==H,s&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=Q(this,r[i+n],e,n),a===H&&(a=this._$AH[n]),s||(s=!M(a)||a!==this._$AH[n]),a===X?t=X:t!==X&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===X?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===X?void 0:t}}const ot=D?D.emptyScript:"";class st extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==X?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}}class nt extends it{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Q(this,t,e,0))&&void 0!==i?i:X)===H)return;const r=this._$AH,o=t===X&&r!==X||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==X&&(r===X||o);o&&this.element.removeEventListener(this.name,this,r),s&&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 at{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){Q(this,t)}}const lt=T.litHtmlPolyfillSupport;
29
+ var C;S[A]=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==E||E({ReactiveElement:S}),(null!==(g=b.reactiveElementVersions)&&void 0!==g?g:b.reactiveElementVersions=[]).push("1.6.3");const T=window,N=T.trustedTypes,I=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,D="$lit$",O=`lit$${(Math.random()+"").slice(9)}$`,z="?"+O,R=`<${z}>`,M=document,G=()=>M.createComment(""),U=t=>null===t||"object"!=typeof t&&"function"!=typeof t,B=Array.isArray,L="[ \t\n\f\r]",P=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,j=/-->/g,H=/>/g,F=RegExp(`>|${L}(?:([^\\s"'>=/]+)(${L}*=${L}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),q=/'/g,V=/"/g,W=/^(?:script|style|textarea|title)$/i,Y=Symbol.for("lit-noChange"),K=Symbol.for("lit-nothing"),X=new WeakMap,$=M.createTreeWalker(M,129,null,!1);function Z(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==I?I.createHTML(e):e}class J{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,s=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,r=[];let o,s=2===e?"<svg>":"",n=P;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===P?"!--"===l[1]?n=j:void 0!==l[1]?n=H:void 0!==l[2]?(W.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=F):void 0!==l[3]&&(n=F):n===F?">"===l[0]?(n=null!=o?o:P,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?F:'"'===l[3]?V:q):n===V||n===q?n=F:n===j||n===H?n=P:(n=F,o=void 0);const u=n===F&&t[e+1].startsWith("/>")?" ":"";s+=n===P?i+R:h>=0?(r.push(a),i.slice(0,h)+D+i.slice(h)+O+u):i+O+(-2===h?(r.push(void 0),e):u)}return[Z(t,s+(t[i]||"<?>")+(2===e?"</svg>":"")),r]})(t,e);if(this.el=J.createElement(l,i),$.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=$.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(D)||e.startsWith(O)){const i=h[s++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+D).split(O),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?rt:"?"===e[1]?st:"@"===e[1]?nt:it})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(W.test(r.tagName)){const t=r.textContent.split(O),e=t.length-1;if(e>0){r.textContent=N?N.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],G()),$.nextNode(),a.push({type:2,index:++o});r.append(t[e],G())}}}else if(8===r.nodeType)if(r.data===z)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(O,t+1));)a.push({type:7,index:o}),t+=O.length-1}o++}}static createElement(t,e){const i=M.createElement("template");return i.innerHTML=t,i}}function Q(t,e,i=t,r){var o,s,n,a;if(e===Y)return e;let l=void 0!==r?null===(o=i._$Co)||void 0===o?void 0:o[r]:i._$Cl;const h=U(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,r)),void 0!==r?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[r]=l:i._$Cl=l),void 0!==l&&(e=Q(t,l._$AS(t,e.values),l,r)),e}class tt{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:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:M).importNode(i,!0);$.currentNode=o;let s=$.nextNode(),n=0,a=0,l=r[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new et(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new at(s,this,t)),this._$AV.push(e),l=r[++a]}n!==(null==l?void 0:l.index)&&(s=$.nextNode(),n++)}return $.currentNode=M,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class et{constructor(t,e,i,r){var o;this.type=2,this._$AH=K,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Q(this,t,e),U(t)?t===K||null==t||""===t?(this._$AH!==K&&this._$AR(),this._$AH=K):t!==this._$AH&&t!==Y&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>B(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==K&&U(this._$AH)?this._$AA.nextSibling.data=t:this.$(M.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=J.createElement(Z(r.h,r.h[0]),this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new tt(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=X.get(t.strings);return void 0===e&&X.set(t.strings,e=new J(t)),e}T(t){B(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new et(this.k(G()),this.k(G()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$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 it{constructor(t,e,i,r,o){this.type=1,this._$AH=K,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=K}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let s=!1;if(void 0===o)t=Q(this,t,e,0),s=!U(t)||t!==this._$AH&&t!==Y,s&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=Q(this,r[i+n],e,n),a===Y&&(a=this._$AH[n]),s||(s=!U(a)||a!==this._$AH[n]),a===K?t=K:t!==K&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===K?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class rt extends it{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===K?void 0:t}}const ot=N?N.emptyScript:"";class st extends it{constructor(){super(...arguments),this.type=4}j(t){t&&t!==K?this.element.setAttribute(this.name,ot):this.element.removeAttribute(this.name)}}class nt extends it{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Q(this,t,e,0))&&void 0!==i?i:K)===Y)return;const r=this._$AH,o=t===K&&r!==K||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==K&&(r===K||o);o&&this.element.removeEventListener(this.name,this,r),s&&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 at{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){Q(this,t)}}const lt=T.litHtmlPolyfillSupport;
30
30
  /**
31
31
  * @license
32
32
  * Copyright 2017 Google LLC
33
33
  * SPDX-License-Identifier: BSD-3-Clause
34
34
  */
35
- var ht,ct;null==lt||lt(J,et),(null!==(I=T.litHtmlVersions)&&void 0!==I?I:T.litHtmlVersions=[]).push("2.8.0");class ut extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var r,o;const s=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let n=s._$litPart$;if(void 0===n){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;s._$litPart$=n=new et(e.insertBefore(U(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return H}}ut.finalized=!0,ut._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:ut});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ut}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.3.3");
35
+ var ht,ct;null==lt||lt(J,et),(null!==(C=T.litHtmlVersions)&&void 0!==C?C:T.litHtmlVersions=[]).push("2.8.0");class ut extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var r,o;const s=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let n=s._$litPart$;if(void 0===n){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;s._$litPart$=n=new et(e.insertBefore(G(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Y}}ut.finalized=!0,ut._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:ut});const dt=globalThis.litElementPolyfillSupport;null==dt||dt({LitElement:ut}),(null!==(ct=globalThis.litElementVersions)&&void 0!==ct?ct:globalThis.litElementVersions=[]).push("3.3.3");
36
36
  /**
37
37
  * @license
38
38
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
@@ -43,12 +43,12 @@ const mt=t=>class extends t{static get properties(){return{_theme:{type:String,r
43
43
  * @license
44
44
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
45
45
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
46
- */,pt=[];function ft(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function vt(t,e,i={}){t&&ft(customElements.get(t))&&console.warn(`The custom element definition for "${t}"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.`),e=function(t=[]){return[t].flat(1/0).filter((t=>t instanceof p||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,i):pt.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId})}function gt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():pt}function bt(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function _t(t){const e=[];return t.include&&[].concat(t.include).forEach((t=>{const i=gt().find((e=>e.moduleId===t));i?e.push(..._t(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)}),t.styles),e}function yt(t){const e=`${t}-default-theme`,i=gt().filter((i=>i.moduleId!==e&&function(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}(i.themeFor,t))).map((t=>({...t,styles:[..._t(t),...t.styles],includePriority:bt(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));return i.length>0?i:gt().filter((t=>t.moduleId===e))}const wt=t=>class extends(mt(t)){static finalize(){if(super.finalize(),this.elementStyles)return;const t=this.prototype._template;t&&!ft(this)&&function(t,e){const i=document.createElement("style");i.innerHTML=t.map((t=>t.cssText)).join("\n"),e.content.appendChild(i)}(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...super.finalizeStyles(t),...e]:e}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype);this.__themes=[...(t?t.constructor.__themes:[])||[],...yt(this.is)];const e=this.__themes.flatMap((t=>t.styles));return e.filter(((t,i)=>i===e.lastIndexOf(t)))}}
46
+ */,pt=[];function ft(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function vt(t,e,i={}){t&&ft(customElements.get(t))&&console.warn(`The custom element definition for "${t}"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.`),e=function(t=[]){return[t].flat(1/0).filter((t=>t instanceof p||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,i):pt.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId})}function gt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():pt}function bt(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function _t(t){const e=[];return t.include&&[].concat(t.include).forEach((t=>{const i=gt().find((e=>e.moduleId===t));i?e.push(..._t(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)}),t.styles),e}function yt(t){const e=`${t}-default-theme`,i=gt().filter((i=>i.moduleId!==e&&function(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}(i.themeFor,t))).map((t=>({...t,styles:[..._t(t),...t.styles],includePriority:bt(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));return i.length>0?i:gt().filter((t=>t.moduleId===e))}const Et=t=>class extends(mt(t)){static finalize(){if(super.finalize(),this.elementStyles)return;const t=this.prototype._template;t&&!ft(this)&&function(t,e){const i=document.createElement("style");i.innerHTML=t.map((t=>t.cssText)).join("\n"),e.content.appendChild(i)}(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...super.finalizeStyles(t),...e]:e}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype);this.__themes=[...(t?t.constructor.__themes:[])||[],...yt(this.is)];const e=this.__themes.flatMap((t=>t.styles));return e.filter(((t,i)=>i===e.lastIndexOf(t)))}}
47
47
  /**
48
48
  * @license
49
49
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
50
50
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
51
- */,Et=(t,...e)=>{const i=document.createElement("style");i.id=t,i.textContent=e.map((t=>t.toString())).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",i)},xt=(t,...e)=>{Et(`lumo-${t}`,e)};xt("color-props",f`
51
+ */,wt=(t,...e)=>{const i=document.createElement("style");i.id=t,i.textContent=e.map((t=>t.toString())).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",i)},xt=(t,...e)=>{wt(`lumo-${t}`,e)};xt("color-props",f`
52
52
  :host {
53
53
  /* Base (background) */
54
54
  --lumo-base-color: #fff;
@@ -368,7 +368,7 @@ const mt=t=>class extends t{static get properties(){return{_theme:{type:String,r
368
368
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
369
369
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
370
370
  */
371
- const At=f`
371
+ const kt=f`
372
372
  :host {
373
373
  /* prettier-ignore */
374
374
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -480,7 +480,7 @@ const At=f`
480
480
  border-left: none;
481
481
  border-right: 2px solid var(--lumo-contrast-30pct);
482
482
  }
483
- `,{moduleId:"lumo-typography"}),xt("typography-props",At),vt("vaadin-checkbox",f`
483
+ `,{moduleId:"lumo-typography"}),xt("typography-props",kt),vt("vaadin-checkbox",f`
484
484
  :host {
485
485
  color: var(--lumo-body-text-color);
486
486
  font-size: var(--lumo-font-size-m);
@@ -652,7 +652,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
652
652
  Code distributed by Google as part of the polymer project is also
653
653
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
654
654
  */
655
- let kt,St,It=/(url\()([^)]*)(\))/g,Tt=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Dt(t,e){if(t&&Tt.test(t))return t;if("//"===t)return t;if(void 0===kt){kt=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",kt="http://a/c%20d"===t.href}catch(t){}}if(e||(e=document.baseURI||window.location.href),kt)try{return new URL(t,e).href}catch(e){return t}return St||(St=document.implementation.createHTMLDocument("temp"),St.base=St.createElement("base"),St.head.appendChild(St.base),St.anchor=St.createElement("a"),St.body.appendChild(St.anchor)),St.base.href=e,St.anchor.href=t,St.anchor.href||t}function Nt(t,e){return t.replace(It,(function(t,i,r,o){return i+"'"+Dt(r.replace(/["']/g,""),e)+"'"+o}))}function Ot(t){return t.substring(0,t.lastIndexOf("/")+1)}
655
+ let At,St,Ct=/(url\()([^)]*)(\))/g,Tt=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function Nt(t,e){if(t&&Tt.test(t))return t;if("//"===t)return t;if(void 0===At){At=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",At="http://a/c%20d"===t.href}catch(t){}}if(e||(e=document.baseURI||window.location.href),At)try{return new URL(t,e).href}catch(e){return t}return St||(St=document.implementation.createHTMLDocument("temp"),St.base=St.createElement("base"),St.head.appendChild(St.base),St.anchor=St.createElement("a"),St.body.appendChild(St.anchor)),St.base.href=e,St.anchor.href=t,St.anchor.href||t}function It(t,e){return t.replace(Ct,(function(t,i,r,o){return i+"'"+Nt(r.replace(/["']/g,""),e)+"'"+o}))}function Dt(t){return t.substring(0,t.lastIndexOf("/")+1)}
656
656
  /**
657
657
  @license
658
658
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -661,7 +661,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
661
661
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
662
662
  Code distributed by Google as part of the polymer project is also
663
663
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
664
- */const Ct=!window.ShadyDOM||!window.ShadyDOM.inUse,Rt=Ct&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let zt=window.Polymer&&window.Polymer.rootPath||Ot(document.baseURI||window.location.href),Gt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Ut=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Mt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Lt=window.Polymer&&window.Polymer.legacyOptimizations||!1,Pt=window.Polymer&&window.Polymer.legacyWarnings||!1,Bt=window.Polymer&&window.Polymer.syncInitialRender||!1,Ft=window.Polymer&&window.Polymer.legacyUndefined||!1,jt=window.Polymer&&window.Polymer.orderedComputed||!1,Vt=window.Polymer&&window.Polymer.removeNestedTemplates||!1,qt=window.Polymer&&window.Polymer.fastDomIf||!1,Wt=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Yt=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,Ht=0;const Xt=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let i=Ht++;return function(r){let o=r.__mixinSet;if(o&&o[i])return r;let s=e,n=s.get(r);if(!n){n=t(r),s.set(r,n);let e=Object.create(n.__mixinSet||o||null);e[i]=!0,n.__mixinSet=e}return n}};
664
+ */const Ot=!window.ShadyDOM||!window.ShadyDOM.inUse,zt=Ot&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let Rt=window.Polymer&&window.Polymer.rootPath||Dt(document.baseURI||window.location.href),Mt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Gt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ut=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Bt=window.Polymer&&window.Polymer.legacyOptimizations||!1,Lt=window.Polymer&&window.Polymer.legacyWarnings||!1,Pt=window.Polymer&&window.Polymer.syncInitialRender||!1,jt=window.Polymer&&window.Polymer.legacyUndefined||!1,Ht=window.Polymer&&window.Polymer.orderedComputed||!1,Ft=window.Polymer&&window.Polymer.removeNestedTemplates||!1,qt=window.Polymer&&window.Polymer.fastDomIf||!1,Vt=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Wt=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,Yt=0;const Kt=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let i=Yt++;return function(r){let o=r.__mixinSet;if(o&&o[i])return r;let s=e,n=s.get(r);if(!n){n=t(r),s.set(r,n);let e=Object.create(n.__mixinSet||o||null);e[i]=!0,n.__mixinSet=e}return n}};
665
665
  /**
666
666
  @license
667
667
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -670,7 +670,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
670
670
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
671
671
  Code distributed by Google as part of the polymer project is also
672
672
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
673
- */let Kt={},Zt={};function $t(t,e){Kt[t]=Zt[t.toLowerCase()]=e}function Jt(t){return Kt[t]||Zt[t.toLowerCase()]}class Qt extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=Jt(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,r){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Dt(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Ot(e)}return this.__assetpath}register(t){if(t=t||this.id){if(Ut&&void 0!==Jt(t))throw $t(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,$t(t,this),(e=this).querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}var e}}Qt.prototype.modules=Kt,customElements.define("dom-module",Qt);
673
+ */let Xt={},$t={};function Zt(t,e){Xt[t]=$t[t.toLowerCase()]=e}function Jt(t){return Xt[t]||$t[t.toLowerCase()]}class Qt extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=Jt(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,r){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Nt(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Dt(e)}return this.__assetpath}register(t){if(t=t||this.id){if(Gt&&void 0!==Jt(t))throw Zt(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Zt(t,this),(e=this).querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}var e}}Qt.prototype.modules=Xt,customElements.define("dom-module",Qt);
674
674
  /**
675
675
  @license
676
676
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -680,7 +680,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
680
680
  Code distributed by Google as part of the polymer project is also
681
681
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
682
682
  */
683
- const te="link[rel=import][type~=css]",ee="include",ie="shady-unscoped";function re(t){return Qt.import(t)}function oe(t){const e=Nt((t.body?t.body:t).textContent,t.baseURI),i=document.createElement("style");return i.textContent=e,i}function se(t){const e=t.trim().split(/\s+/),i=[];for(let t=0;t<e.length;t++)i.push(...ne(e[t]));return i}function ne(t){const e=re(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(void 0===e._styles){const t=[];t.push(...le(e));const i=e.querySelector("template");i&&t.push(...ae(i,e.assetpath)),e._styles=t}return e._styles}function ae(t,e){if(!t._styles){const i=[],r=t.content.querySelectorAll("style");for(let t=0;t<r.length;t++){let o=r[t],s=o.getAttribute(ee);s&&i.push(...se(s).filter((function(t,e,i){return i.indexOf(t)===e}))),e&&(o.textContent=Nt(o.textContent,e)),i.push(o)}t._styles=i}return t._styles}function le(t){const e=[],i=t.querySelectorAll(te);for(let t=0;t<i.length;t++){let r=i[t];if(r.import){const t=r.import,i=r.hasAttribute(ie);if(i&&!t._unscopedStyle){const e=oe(t);e.setAttribute(ie,""),t._unscopedStyle=e}else t._style||(t._style=oe(t));e.push(i?t._unscopedStyle:t._style)}}return e}
683
+ const te="link[rel=import][type~=css]",ee="include",ie="shady-unscoped";function re(t){return Qt.import(t)}function oe(t){const e=It((t.body?t.body:t).textContent,t.baseURI),i=document.createElement("style");return i.textContent=e,i}function se(t){const e=t.trim().split(/\s+/),i=[];for(let t=0;t<e.length;t++)i.push(...ne(e[t]));return i}function ne(t){const e=re(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(void 0===e._styles){const t=[];t.push(...le(e));const i=e.querySelector("template");i&&t.push(...ae(i,e.assetpath)),e._styles=t}return e._styles}function ae(t,e){if(!t._styles){const i=[],r=t.content.querySelectorAll("style");for(let t=0;t<r.length;t++){let o=r[t],s=o.getAttribute(ee);s&&i.push(...se(s).filter((function(t,e,i){return i.indexOf(t)===e}))),e&&(o.textContent=It(o.textContent,e)),i.push(o)}t._styles=i}return t._styles}function le(t){const e=[],i=t.querySelectorAll(te);for(let t=0;t<i.length;t++){let r=i[t];if(r.import){const t=r.import,i=r.hasAttribute(ie);if(i&&!t._unscopedStyle){const e=oe(t);e.setAttribute(ie,""),t._unscopedStyle=e}else t._style||(t._style=oe(t));e.push(i?t._unscopedStyle:t._style)}}return e}
684
684
  /**
685
685
  @license
686
686
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -707,7 +707,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
707
707
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
708
708
  Code distributed by Google as part of the polymer project is also
709
709
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
710
- */const _e={},ye=/-[a-z]/g,we=/([A-Z])/g;function Ee(t){return _e[t]||(_e[t]=t.indexOf("-")<0?t:t.replace(ye,(t=>t[1].toUpperCase())))}function xe(t){return _e[t]||(_e[t]=t.replace(we,"-$1").toLowerCase())}
710
+ */const _e={},ye=/-[a-z]/g,Ee=/([A-Z])/g;function we(t){return _e[t]||(_e[t]=t.indexOf("-")<0?t:t.replace(ye,(t=>t[1].toUpperCase())))}function xe(t){return _e[t]||(_e[t]=t.replace(Ee,"-$1").toLowerCase())}
711
711
  /**
712
712
  @license
713
713
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -716,7 +716,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
716
716
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
717
717
  Code distributed by Google as part of the polymer project is also
718
718
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
719
- */let Ae=0,ke=0,Se=[],Ie=0,Te=!1,De=document.createTextNode("");new window.MutationObserver((function(){Te=!1;const t=Se.length;for(let e=0;e<t;e++){let t=Se[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}Se.splice(0,t),ke+=t})).observe(De,{characterData:!0});const Ne={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},Oe={run:t=>(Te||(Te=!0,De.textContent=Ie++),Se.push(t),Ae++),cancel(t){const e=t-ke;if(e>=0){if(!Se[e])throw new Error("invalid async handle: "+t);Se[e]=null}}},Ce=Oe,Re=Xt((t=>class extends t{static createProperties(t){const e=this.prototype;for(let i in t)i in e||e._createPropertyAccessor(i)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let e=this.__dataAttributes[t];return e||(e=this.constructor.attributeNameForProperty(t),this.__dataAttributes[e]=t),e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,i){let r=this.__data[t],o=this._shouldPropertyChange(t,e,r);return o&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=r),this.__data[t]=e,this.__dataPending[t]=e),o}_isPropertyPending(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ce.run((()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())})))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const t=this.__data,e=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(t,e,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,i)),this.__dataCounter--}_shouldPropertiesChange(t,e,i){return Boolean(e)}_propertiesChanged(t,e,i){}_shouldPropertyChange(t,e,i){return i!==e&&(i==i||e==e)}attributeChangedCallback(t,e,i,r){e!==i&&this._attributeToProperty(t,i),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,i,r)}_attributeToProperty(t,e,i){if(!this.__serializing){const r=this.__dataAttributes,o=r&&r[t]||t;this[o]=this._deserializeValue(e,i||this.constructor.typeForProperty(o))}}_propertyToAttribute(t,e,i){this.__serializing=!0,this._valueToNodeAttribute(this,i=arguments.length<3?this[t]:i,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,i){const r=this._serializeValue(e);"class"!==i&&"name"!==i&&"slot"!==i||(t=he(t)),void 0===r?t.removeAttribute(i):t.setAttribute(i,""===r&&window.trustedTypes?window.trustedTypes.emptyScript:r)}_serializeValue(t){return"boolean"==typeof t?t?"":void 0:null!=t?t.toString():void 0}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}})),ze={};let Ge=HTMLElement.prototype;for(;Ge;){let t=Object.getOwnPropertyNames(Ge);for(let e=0;e<t.length;e++)ze[t[e]]=!0;Ge=Object.getPrototypeOf(Ge)}const Ue=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1,Me=Xt((t=>{const e=Re(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(Ee(t[e]))}static attributeNameForProperty(t){return xe(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){this.hasAttribute(t)||this._valueToNodeAttribute(this,e,t)}_serializeValue(t){if("object"==typeof t){if(t instanceof Date)return t.toString();if(t){if(Ue(t))return t;try{return JSON.stringify(t)}catch(t){return""}}}return super._serializeValue(t)}_deserializeValue(t,e){let i;switch(e){case Object:try{i=JSON.parse(t)}catch(e){i=t}break;case Array:try{i=JSON.parse(t)}catch(e){i=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:i=isNaN(t)?String(t):Number(t),i=new Date(i);break;default:i=super._deserializeValue(t,e)}return i}_definePropertyAccessor(t,e){!function(t,e){if(!ze[e]){let i=t[e];void 0!==i&&(t.__data?t._setPendingProperty(e,i):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=i))}}(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}})),Le={"dom-if":!0,"dom-repeat":!0};let Pe=!1,Be=!1;const Fe=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,i,r)=>{const o=i.getAttribute(r);t&&r.startsWith("on-")?e.setAttribute(r,t.createScript(o,r)):e.setAttribute(r,o)}})();function je(t){let e=t.getAttribute("is");if(e&&Le[e]){let i=t;for(i.removeAttribute("is"),t=i.ownerDocument.createElement(e),i.parentNode.replaceChild(t,i),t.appendChild(i);i.attributes.length;){const{name:e}=i.attributes[0];Fe(t,i,e),i.removeAttribute(e)}}return t}function Ve(t,e){let i=e.parentInfo&&Ve(t,e.parentInfo);if(!i)return t;for(let t=i.firstChild,r=0;t;t=t.nextSibling)if(e.parentIndex===r++)return t}function qe(t,e,i,r){r.id&&(e[r.id]=i)}function We(t,e,i){if(i.events&&i.events.length)for(let r,o=0,s=i.events;o<s.length&&(r=s[o]);o++)t._addMethodEventListenerToNode(e,r.name,r.value,t)}function Ye(t,e,i,r){i.templateInfo&&(e._templateInfo=i.templateInfo,e._parentTemplateInfo=r)}const He=Xt((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let i=t._templateInfo={};i.nodeInfoList=[],i.nestedTemplate=Boolean(e),i.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,i,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,i){return this._parseTemplateNode(t.content,e,i)}static _parseTemplateNode(t,e,i){let r=!1,o=t;return"template"!=o.localName||o.hasAttribute("preserve-content")?"slot"===o.localName&&(e.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(o,e,i)||r,function(t){(function(){if(!Pe){Pe=!0;const t=document.createElement("textarea");t.placeholder="a",Be=t.placeholder===t.textContent}return Be})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}(o),o.firstChild&&this._parseTemplateChildNodes(o,e,i),o.hasAttributes&&o.hasAttributes()&&(r=this._parseTemplateNodeAttributes(o,e,i)||r),r||i.noted}static _parseTemplateChildNodes(t,e,i){if("script"!==t.localName&&"style"!==t.localName)for(let r,o=t.firstChild,s=0;o;o=r){if("template"==o.localName&&(o=je(o)),r=o.nextSibling,o.nodeType===Node.TEXT_NODE){let i=r;for(;i&&i.nodeType===Node.TEXT_NODE;)o.textContent+=i.textContent,r=i.nextSibling,t.removeChild(i),i=r;if(e.stripWhiteSpace&&!o.textContent.trim()){t.removeChild(o);continue}}let n={parentIndex:s,parentInfo:i};this._parseTemplateNode(o,e,n)&&(n.infoIndex=e.nodeInfoList.push(n)-1),o.parentNode&&s++}}static _parseTemplateNestedTemplate(t,e,i){let r=t,o=this._parseTemplate(r,e);return(o.content=r.content.ownerDocument.createDocumentFragment()).appendChild(r.content),i.templateInfo=o,!0}static _parseTemplateNodeAttributes(t,e,i){let r=!1,o=Array.from(t.attributes);for(let s,n=o.length-1;s=o[n];n--)r=this._parseTemplateNodeAttribute(t,e,i,s.name,s.value)||r;return r}static _parseTemplateNodeAttribute(t,e,i,r,o){return"on-"===r.slice(0,3)?(t.removeAttribute(r),i.events=i.events||[],i.events.push({name:r.slice(3),value:o}),!0):"id"===r&&(i.id=o,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let i=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,r=document.importNode(e.content||t.content,!0);r.__noInsertionPoint=!e.hasInsertionPoint;let o=r.nodeList=new Array(i.length);r.$={};for(let t,s=0,n=i.length;s<n&&(t=i[s]);s++){let i=o[s]=Ve(r,t);qe(0,r.$,i,t),Ye(0,i,t,e),We(this,i,t)}return r}_addMethodEventListenerToNode(t,e,i,r){let o=function(t,e,i){return t=t._methodHost||t,function(e){t[i]?t[i](e,e.detail):console.warn("listener method `"+i+"` not defined")}}(r=r||t,0,i);return this._addEventListenerToNode(t,e,o),o}_addEventListenerToNode(t,e,i){t.addEventListener(e,i)}_removeEventListenerFromNode(t,e,i){t.removeEventListener(e,i)}}));
719
+ */let ke=0,Ae=0,Se=[],Ce=0,Te=!1,Ne=document.createTextNode("");new window.MutationObserver((function(){Te=!1;const t=Se.length;for(let e=0;e<t;e++){let t=Se[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}Se.splice(0,t),Ae+=t})).observe(Ne,{characterData:!0});const Ie={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},De={run:t=>(Te||(Te=!0,Ne.textContent=Ce++),Se.push(t),ke++),cancel(t){const e=t-Ae;if(e>=0){if(!Se[e])throw new Error("invalid async handle: "+t);Se[e]=null}}},Oe=De,ze=Kt((t=>class extends t{static createProperties(t){const e=this.prototype;for(let i in t)i in e||e._createPropertyAccessor(i)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let e=this.__dataAttributes[t];return e||(e=this.constructor.attributeNameForProperty(t),this.__dataAttributes[e]=t),e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,i){let r=this.__data[t],o=this._shouldPropertyChange(t,e,r);return o&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=r),this.__data[t]=e,this.__dataPending[t]=e),o}_isPropertyPending(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Oe.run((()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())})))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const t=this.__data,e=this.__dataPending,i=this.__dataOld;this._shouldPropertiesChange(t,e,i)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,i)),this.__dataCounter--}_shouldPropertiesChange(t,e,i){return Boolean(e)}_propertiesChanged(t,e,i){}_shouldPropertyChange(t,e,i){return i!==e&&(i==i||e==e)}attributeChangedCallback(t,e,i,r){e!==i&&this._attributeToProperty(t,i),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,i,r)}_attributeToProperty(t,e,i){if(!this.__serializing){const r=this.__dataAttributes,o=r&&r[t]||t;this[o]=this._deserializeValue(e,i||this.constructor.typeForProperty(o))}}_propertyToAttribute(t,e,i){this.__serializing=!0,this._valueToNodeAttribute(this,i=arguments.length<3?this[t]:i,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,i){const r=this._serializeValue(e);"class"!==i&&"name"!==i&&"slot"!==i||(t=he(t)),void 0===r?t.removeAttribute(i):t.setAttribute(i,""===r&&window.trustedTypes?window.trustedTypes.emptyScript:r)}_serializeValue(t){return"boolean"==typeof t?t?"":void 0:null!=t?t.toString():void 0}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}})),Re={};let Me=HTMLElement.prototype;for(;Me;){let t=Object.getOwnPropertyNames(Me);for(let e=0;e<t.length;e++)Re[t[e]]=!0;Me=Object.getPrototypeOf(Me)}const Ge=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1,Ue=Kt((t=>{const e=ze(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(we(t[e]))}static attributeNameForProperty(t){return xe(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){this.hasAttribute(t)||this._valueToNodeAttribute(this,e,t)}_serializeValue(t){if("object"==typeof t){if(t instanceof Date)return t.toString();if(t){if(Ge(t))return t;try{return JSON.stringify(t)}catch(t){return""}}}return super._serializeValue(t)}_deserializeValue(t,e){let i;switch(e){case Object:try{i=JSON.parse(t)}catch(e){i=t}break;case Array:try{i=JSON.parse(t)}catch(e){i=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:i=isNaN(t)?String(t):Number(t),i=new Date(i);break;default:i=super._deserializeValue(t,e)}return i}_definePropertyAccessor(t,e){!function(t,e){if(!Re[e]){let i=t[e];void 0!==i&&(t.__data?t._setPendingProperty(e,i):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=i))}}(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}})),Be={"dom-if":!0,"dom-repeat":!0};let Le=!1,Pe=!1;const je=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,i,r)=>{const o=i.getAttribute(r);t&&r.startsWith("on-")?e.setAttribute(r,t.createScript(o,r)):e.setAttribute(r,o)}})();function He(t){let e=t.getAttribute("is");if(e&&Be[e]){let i=t;for(i.removeAttribute("is"),t=i.ownerDocument.createElement(e),i.parentNode.replaceChild(t,i),t.appendChild(i);i.attributes.length;){const{name:e}=i.attributes[0];je(t,i,e),i.removeAttribute(e)}}return t}function Fe(t,e){let i=e.parentInfo&&Fe(t,e.parentInfo);if(!i)return t;for(let t=i.firstChild,r=0;t;t=t.nextSibling)if(e.parentIndex===r++)return t}function qe(t,e,i,r){r.id&&(e[r.id]=i)}function Ve(t,e,i){if(i.events&&i.events.length)for(let r,o=0,s=i.events;o<s.length&&(r=s[o]);o++)t._addMethodEventListenerToNode(e,r.name,r.value,t)}function We(t,e,i,r){i.templateInfo&&(e._templateInfo=i.templateInfo,e._parentTemplateInfo=r)}const Ye=Kt((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let i=t._templateInfo={};i.nodeInfoList=[],i.nestedTemplate=Boolean(e),i.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,i,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,i){return this._parseTemplateNode(t.content,e,i)}static _parseTemplateNode(t,e,i){let r=!1,o=t;return"template"!=o.localName||o.hasAttribute("preserve-content")?"slot"===o.localName&&(e.hasInsertionPoint=!0):r=this._parseTemplateNestedTemplate(o,e,i)||r,function(t){(function(){if(!Le){Le=!0;const t=document.createElement("textarea");t.placeholder="a",Pe=t.placeholder===t.textContent}return Pe})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}(o),o.firstChild&&this._parseTemplateChildNodes(o,e,i),o.hasAttributes&&o.hasAttributes()&&(r=this._parseTemplateNodeAttributes(o,e,i)||r),r||i.noted}static _parseTemplateChildNodes(t,e,i){if("script"!==t.localName&&"style"!==t.localName)for(let r,o=t.firstChild,s=0;o;o=r){if("template"==o.localName&&(o=He(o)),r=o.nextSibling,o.nodeType===Node.TEXT_NODE){let i=r;for(;i&&i.nodeType===Node.TEXT_NODE;)o.textContent+=i.textContent,r=i.nextSibling,t.removeChild(i),i=r;if(e.stripWhiteSpace&&!o.textContent.trim()){t.removeChild(o);continue}}let n={parentIndex:s,parentInfo:i};this._parseTemplateNode(o,e,n)&&(n.infoIndex=e.nodeInfoList.push(n)-1),o.parentNode&&s++}}static _parseTemplateNestedTemplate(t,e,i){let r=t,o=this._parseTemplate(r,e);return(o.content=r.content.ownerDocument.createDocumentFragment()).appendChild(r.content),i.templateInfo=o,!0}static _parseTemplateNodeAttributes(t,e,i){let r=!1,o=Array.from(t.attributes);for(let s,n=o.length-1;s=o[n];n--)r=this._parseTemplateNodeAttribute(t,e,i,s.name,s.value)||r;return r}static _parseTemplateNodeAttribute(t,e,i,r,o){return"on-"===r.slice(0,3)?(t.removeAttribute(r),i.events=i.events||[],i.events.push({name:r.slice(3),value:o}),!0):"id"===r&&(i.id=o,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let i=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,r=document.importNode(e.content||t.content,!0);r.__noInsertionPoint=!e.hasInsertionPoint;let o=r.nodeList=new Array(i.length);r.$={};for(let t,s=0,n=i.length;s<n&&(t=i[s]);s++){let i=o[s]=Fe(r,t);qe(0,r.$,i,t),We(0,i,t,e),Ve(this,i,t)}return r}_addMethodEventListenerToNode(t,e,i,r){let o=function(t,e,i){return t=t._methodHost||t,function(e){t[i]?t[i](e,e.detail):console.warn("listener method `"+i+"` not defined")}}(r=r||t,0,i);return this._addEventListenerToNode(t,e,o),o}_addEventListenerToNode(t,e,i){t.addEventListener(e,i)}_removeEventListenerFromNode(t,e,i){t.removeEventListener(e,i)}}));
720
720
  /**
721
721
  * @fileoverview
722
722
  * @suppress {checkPrototypalTypes}
@@ -727,7 +727,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
727
727
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
728
728
  * Google as part of the polymer project is also subject to an additional IP
729
729
  * rights grant found at http://polymer.github.io/PATENTS.txt
730
- */let Xe=0;const Ke=[],Ze={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},$e="__computeInfo",Je=/[A-Z]/;function Qe(t,e,i){let r=t[e];if(r){if(!t.hasOwnProperty(e)&&(r=t[e]=Object.create(t[e]),i))for(let t in r){let e=r[t],i=r[t]=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]}}else r=t[e]={};return r}function ti(t,e,i,r,o,s){if(e){let n=!1;const a=Xe++;for(let l in i){let h=e[o?ue(l):l];if(h)for(let e,c=0,u=h.length;c<u&&(e=h[c]);c++)e.info&&e.info.lastRun===a||o&&!ii(l,e.trigger)||(e.info&&(e.info.lastRun=a),e.fn(t,l,i,r,e.info,o,s),n=!0)}return n}return!1}function ei(t,e,i,r,o,s,n,a){let l=!1,h=e[n?ue(r):r];if(h)for(let e,c=0,u=h.length;c<u&&(e=h[c]);c++)e.info&&e.info.lastRun===i||n&&!ii(r,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(t,r,o,s,e.info,n,a),l=!0);return l}function ii(t,e){if(e){let i=e.name;return i==t||!(!e.structured||!de(i,t))||!(!e.wildcard||!me(i,t))}return!0}function ri(t,e,i,r,o){let s="string"==typeof o.method?t[o.method]:o.method,n=o.property;s?s.call(t,t.__data[n],r[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function oi(t,e,i){let r=ue(e);return r!==e&&(si(t,xe(r)+"-changed",i[e],e),!0)}function si(t,e,i,r){let o={value:i,queueProperty:!0};r&&(o.path=r),he(t).dispatchEvent(new CustomEvent(e,{detail:o}))}function ni(t,e,i,r,o,s){let n=(s?ue(e):e)!=e?e:null,a=n?ge(t,n):t.__data[e];n&&void 0===a&&(a=i[e]),si(t,o.eventName,a,n)}function ai(t,e,i,r,o){let s=t.__data[e];Gt&&(s=Gt(s,o.attrName,"attribute",t)),t._propertyToAttribute(e,o.attrName,s)}const li=(t,e,i)=>{let r=0,o=e.length-1,s=-1;for(;r<=o;){const n=r+o>>1,a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0)r=n+1;else{if(!(a>0)){s=n;break}o=n-1}}s<0&&(s=o+1),e.splice(s,0,t)},hi=(t,e,i,r,o)=>{const s=e[o?ue(t):t];if(s)for(let e=0;e<s.length;e++){const n=s[e];n.info.lastRun===Xe||o&&!ii(t,n.trigger)||(n.info.lastRun=Xe,li(n.info,i,r))}};function ci(t,e,i,r,o){let s=gi(t,e,i,0,o);if(s===Ke)return!1;let n=o.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function ui(t,e,i,r,o,s,n){i.bindings=i.bindings||[];let a={kind:r,target:o,parts:s,literal:n,isCompound:1!==s.length};if(i.bindings.push(a),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||xe(o)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let r=a.parts[i];r.compoundIndex=i,di(t,e,a,r,l)}}function di(t,e,i,r,o){if(!r.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let s=r.dependencies,n={index:o,binding:i,part:r,evaluator:t};for(let i=0;i<s.length;i++){let r=s[i];"string"==typeof r&&(r=Ai(r),r.wildcard=!0),t._addTemplatePropertyEffect(e,r.rootProperty,{fn:mi,info:n,trigger:r})}}}function mi(t,e,i,r,o,s,n){let a=n[o.index],l=o.binding,h=o.part;if(s&&h.source&&e.length>h.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let r=i[e];e=pe(h.source,l.target,e),a._setPendingPropertyOrPath(e,r,!1,!0)&&t._enqueueClient(a)}else{let n=o.evaluator._evaluateBinding(t,h,e,i,r,s);n!==Ke&&function(t,e,i,r,o){if(o=function(t,e,i,r){if(i.isCompound){let o=t.__dataCompoundStorage[i.target];o[r.compoundIndex]=e,e=o.join("")}return"attribute"!==i.kind&&("textContent"!==i.target&&("value"!==i.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e)),e}(e,o,i,r),Gt&&(o=Gt(o,i.target,i.kind,e)),"attribute"==i.kind)t._valueToNodeAttribute(e,o,i.target);else{let r=i.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[r]?e[Ze.READ_ONLY]&&e[Ze.READ_ONLY][r]||e._setPendingProperty(r,o)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,r,o)}}(t,a,l,h,n)}}function pi(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),r=e.parts,o=new Array(r.length);for(let t=0;t<r.length;t++)o[t]=r[t].literal;let s=e.target;i[s]=o,e.literal&&"property"==e.kind&&("className"===s&&(t=he(t)),t[s]=e.literal)}}function fi(t,e,i){if(i.listenerEvent){let r=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){!function(t,e,i,r,o){let s,n=t.detail,a=n&&n.path;a?(r=pe(i,r,a),s=n&&n.value):s=t.currentTarget[i],s=o?!s:s,e[Ze.READ_ONLY]&&e[Ze.READ_ONLY][r]||!e._setPendingPropertyOrPath(r,s,!0,Boolean(a))||n&&n.queueProperty||e._invalidateProperties()}(t,e,i.target,r.source,r.negate)}))}}function vi(t,e,i,r,o,s){let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:s=e.static||s&&("object"!=typeof s||s[e.methodName])};for(let o,s=0;s<e.args.length&&(o=e.args[s]);s++)o.literal||t._addPropertyEffect(o.rootProperty,i,{fn:r,info:n,trigger:o});return s&&t._addPropertyEffect(e.methodName,i,{fn:r,info:n}),n}function gi(t,e,i,r,o){let s=t._methodHost||t,n=s[o.methodName];if(n){let r=t._marshalArgs(o.args,e,i);return r===Ke?Ke:n.apply(s,r)}o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const bi=[],_i="(?:[a-zA-Z_$][\\w.:$\\-*]*)",yi="(?:("+_i+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",wi=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+_i+"\\s*(?:\\(\\s*(?:(?:"+yi+"(?:,\\s*"+yi+")*)?)\\)\\s*)?)(?:]]|}})","g");function Ei(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].literal||"";return e}function xi(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:bi};return e[2].trim()?function(t,e){return e.args=t.map((function(t){let i=Ai(t);return i.literal||(e.static=!1),i}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t):t}return null}function Ai(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:e,value:"",literal:!1},r=e[0];switch("-"===r&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':i.value=e.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(e),i.literal=!0}return i.literal||(i.rootProperty=ue(e),i.structured=ce(e),i.structured&&(i.wildcard=".*"==e.slice(-2),i.wildcard&&(i.name=e.slice(0,-2)))),i}function ki(t,e,i){let r=ge(t,i);return void 0===r&&(r=e[i]),r}function Si(t,e,i,r){const o={indexSplices:r};Ft&&!t._overrideLegacyUndefined&&(e.splices=o),t.notifyPath(i+".splices",o),t.notifyPath(i+".length",e.length),Ft&&!t._overrideLegacyUndefined&&(o.indexSplices=[])}function Ii(t,e,i,r,o,s){Si(t,e,i,[{index:r,addedCount:o,removed:s,object:e,type:"splice"}])}const Ti=Xt((t=>{const e=He(Me(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return Ze}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Di.length){let t=Di[Di.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[Ze.READ_ONLY];for(let i in t)e&&e[i]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=t[i])}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==Ze.READ_ONLY);let r=Qe(this,e,!0)[t];r||(r=this[e][t]=[]),r.push(i)}_removePropertyEffect(t,e,i){let r=Qe(this,e,!0)[t],o=r.indexOf(i);o>=0&&r.splice(o,1)}_hasPropertyEffect(t,e){let i=this[e];return Boolean(i&&i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,Ze.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,Ze.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,Ze.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,Ze.COMPUTE)}_setPendingPropertyOrPath(t,e,i,r){if(r||ue(Array.isArray(t)?t[0]:t)!==t){if(!r){let i=ge(this,t);if(!(t=be(this,t,e))||!super._shouldPropertyChange(t,e,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,i))return function(t,e,i){let r=t.__dataLinkedPaths;if(r){let o;for(let s in r){let n=r[s];me(s,e)?(o=pe(s,n,e),t._setPendingPropertyOrPath(o,i,!0,!0)):me(n,e)&&(o=pe(n,s,e),t._setPendingPropertyOrPath(o,i,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,i);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,i){i===t[e]&&"object"!=typeof i||("className"===e&&(t=he(t)),t[e]=i)}_setPendingProperty(t,e,i){let r=this.__dataHasPaths&&ce(t);return!!this._shouldPropertyChange(t,e,(r?this.__dataTemp:this.__data)[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),r?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(r||this[Ze.NOTIFY]&&this[Ze.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=i),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t)!e&&this[Ze.READ_ONLY]&&this[Ze.READ_ONLY][i]||this._setPendingPropertyOrPath(i,t[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,i){let r,o=this.__dataHasPaths;this.__dataHasPaths=!1,function(t,e,i,r){let o=t[Ze.COMPUTE];if(o)if(jt){Xe++;const s=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[Ze.COMPUTE];let r,{counts:o,ready:s,total:n}=function(t){const e=t[$e],i={},r=t[Ze.COMPUTE],o=[];let s=0;for(let t in e){const r=e[t];s+=i[t]=r.args.filter((t=>!t.literal)).length+(r.dynamicFn?1:0)}for(let t in r)e[t]||o.push(t);return{counts:i,ready:o,total:s}}(t);for(;r=s.shift();){e.set(r,e.size);const t=i[r];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--o[e]&&s.push(e)}))}0!==n&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)hi(t,o,n,s,r);let a;for(;a=n.shift();)ci(t,"",e,0,a)&&hi(a.methodInfo,o,n,s,r);Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let s=e;for(;ti(t,o,s,i,r);)Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}(this,e,i,o),r=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,i,o),this._flushClients(),ti(this,this[Ze.REFLECT],e,i,o),ti(this,this[Ze.OBSERVE],e,i,o),r&&function(t,e,i,r,o){let s,n,a=t[Ze.NOTIFY],l=Xe++;for(let n in e)e[n]&&(a&&ei(t,a,l,n,i,r,o)||o&&oi(t,n,i))&&(s=!0);s&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,r,e,i,o),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,i){this[Ze.PROPAGATE]&&ti(this,this[Ze.PROPAGATE],t,e,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,i)}_runEffectsForTemplate(t,e,i,r){const o=(e,r)=>{ti(this,t.propertyEffects,e,i,r,t.nodeList);for(let o=t.firstChild;o;o=o.nextSibling)this._runEffectsForTemplate(o,e,i,r)};t.runEffects?t.runEffects(o,e,r):o(e,r)}linkPaths(t,e){t=fe(t),e=fe(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=fe(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let i={path:""};Si(this,ge(this,t,i),i.path,e)}get(t,e){return ge(e||this,t)}set(t,e,i){i?be(i,t,e):this[Ze.READ_ONLY]&&this[Ze.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let i={path:""},r=ge(this,t,i),o=r.length,s=r.push(...e);return e.length&&Ii(this,r,i.path,o,e.length,[]),s}pop(t){let e={path:""},i=ge(this,t,e),r=Boolean(i.length),o=i.pop();return r&&Ii(this,i,e.path,i.length,0,[o]),o}splice(t,e,i,...r){let o,s={path:""},n=ge(this,t,s);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),o=2===arguments.length?n.splice(e):n.splice(e,i,...r),(r.length||o.length)&&Ii(this,n,s.path,e,r.length,o),o}shift(t){let e={path:""},i=ge(this,t,e),r=Boolean(i.length),o=i.shift();return r&&Ii(this,i,e.path,0,0,[o]),o}unshift(t,...e){let i={path:""},r=ge(this,t,i),o=r.unshift(...e);return e.length&&Ii(this,r,i.path,0,e.length,[]),o}notifyPath(t,e){let i;if(1==arguments.length){let r={path:""};e=ge(this,t,r),i=r.path}else i=Array.isArray(t)?fe(t):t;this._setPendingPropertyOrPath(i,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var i;this._addPropertyEffect(t,Ze.READ_ONLY),e&&(this["_set"+(i=t,i[0].toUpperCase()+i.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,i){let r={property:t,method:e,dynamicFn:Boolean(i)};this._addPropertyEffect(t,Ze.OBSERVE,{fn:ri,info:r,trigger:{name:t}}),i&&this._addPropertyEffect(e,Ze.OBSERVE,{fn:ri,info:r,trigger:{name:e}})}_createMethodObserver(t,e){let i=xi(t);if(!i)throw new Error("Malformed observer expression '"+t+"'");vi(this,i,Ze.OBSERVE,gi,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,Ze.NOTIFY,{fn:ni,info:{eventName:xe(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,Ze.REFLECT,{fn:ai,info:{attrName:e}})}_createComputedProperty(t,e,i){let r=xi(e);if(!r)throw new Error("Malformed computed expression '"+e+"'");const o=vi(this,r,Ze.COMPUTE,ci,t,i);Qe(this,$e)[t]=o}_marshalArgs(t,e,i){const r=this.__data,o=[];for(let s=0,n=t.length;s<n;s++){let{name:n,structured:a,wildcard:l,value:h,literal:c}=t[s];if(!c)if(l){const t=me(n,e),o=ki(r,i,t?e:n);h={path:t?e:n,value:o,base:t?ge(r,n):o}}else h=a?ki(r,i,n):r[n];if(Ft&&!this._overrideLegacyUndefined&&void 0===h&&t.length>1)return Ke;o[s]=h}return o}static addPropertyEffect(t,e,i){this.prototype._addPropertyEffect(t,e,i)}static createPropertyObserver(t,e,i){this.prototype._createPropertyObserver(t,e,i)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,i){this.prototype._createComputedProperty(t,e,i)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let i=this.constructor._parseTemplate(t),r=this.__preBoundTemplateInfo==i;if(!r)for(let t in i.propertyEffects)this._createPropertyAccessor(t);if(e)if(i=Object.create(i),i.wasPreBound=r,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,r=e.lastChild;i.parent=e,e.lastChild=i,i.previousSibling=r,r?r.nextSibling=i:e.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(t,e,i){(t.hostProps=t.hostProps||{})[e]=!0;let r=t.propertyEffects=t.propertyEffects||{};(r[e]=r[e]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Di.push(this);let i=super._stampTemplate(t,e);if(Di.pop(),e.nodeList=i.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling)t.push(e)}return i.templateInfo=e,function(t,e){let{nodeList:i,nodeInfoList:r}=e;if(r.length)for(let e=0;e<r.length;e++){let o=i[e],s=r[e].bindings;if(s)for(let e=0;e<s.length;e++){let i=s[e];pi(o,i),fi(o,t,i)}o.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:i,nextSibling:r,parent:o}=e;i?i.nextSibling=r:o&&(o.firstChild=r),r?r.previousSibling=i:o&&(o.lastChild=i),e.nextSibling=e.previousSibling=null;let s=e.childNodes;for(let t=0;t<s.length;t++){let e=s[t];he(he(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,r){let o=e._parseTemplateNode.call(this,t,i,r);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);e&&(t.textContent=Ei(e)||" ",ui(this,i,r,"text","textContent",e),o=!0)}return o}static _parseTemplateNodeAttribute(t,i,r,o,s){let n=this._parseBindings(s,i);if(n){let e=o,s="property";Je.test(o)?s="attribute":"$"==o[o.length-1]&&(o=o.slice(0,-1),s="attribute");let a=Ei(n);return a&&"attribute"==s&&("class"==o&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(o)),t.setAttribute(o,a)),"attribute"==s&&"disable-upgrade$"==e&&t.setAttribute(o,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===s&&(o=Ee(o)),ui(this,i,r,s,o,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,i,r,o,s)}static _parseTemplateNestedTemplate(t,i,r){let o=e._parseTemplateNestedTemplate.call(this,t,i,r);const s=t.parentNode,n=r.templateInfo,a="dom-if"===s.localName;Vt&&(a||"dom-repeat"===s.localName)&&(s.removeChild(t),(r=r.parentInfo).templateInfo=n,r.noted=!0,o=!1);let l=n.hostProps;if(qt&&a)l&&(i.hostProps=Object.assign(i.hostProps||{},l),Vt||(r.parentInfo.noted=!0));else{let t="{";for(let e in l)ui(this,i,r,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}return o}static _parseBindings(t,e){let i,r=[],o=0;for(;null!==(i=wi.exec(t));){i.index>o&&r.push({literal:t.slice(o,i.index)});let s=i[1][0],n=Boolean(i[2]),a=i[3].trim(),l=!1,h="",c=-1;"{"==s&&(c=a.indexOf("::"))>0&&(h=a.substring(c+2),a=a.substring(0,c),l=!0);let u=xi(a),d=[];if(u){let{args:t,methodName:i}=u;for(let e=0;e<t.length;e++){let i=t[e];i.literal||d.push(i)}let r=e.dynamicFns;(r&&r[i]||u.static)&&(d.push(i),u.dynamicFn=!0)}else d.push(a);r.push({source:a,mode:s,negate:n,customEvent:l,signature:u,dependencies:d,event:h}),o=wi.lastIndex}if(o&&o<t.length){let e=t.substring(o);e&&r.push({literal:e})}return r.length?r:null}static _evaluateBinding(t,e,i,r,o,s){let n;return n=e.signature?gi(t,i,r,0,e.signature):i!=e.source?ge(t,e.source):s&&ce(i)?ge(t,i):t.__data[i],e.negate&&(n=!n),n}}})),Di=[],Ni=Xt((t=>{const e=Re(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof o?e:null}function r(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const i=t.properties;i&&(e=
730
+ */let Ke=0;const Xe=[],$e={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ze="__computeInfo",Je=/[A-Z]/;function Qe(t,e,i){let r=t[e];if(r){if(!t.hasOwnProperty(e)&&(r=t[e]=Object.create(t[e]),i))for(let t in r){let e=r[t],i=r[t]=Array(e.length);for(let t=0;t<e.length;t++)i[t]=e[t]}}else r=t[e]={};return r}function ti(t,e,i,r,o,s){if(e){let n=!1;const a=Ke++;for(let l in i){let h=e[o?ue(l):l];if(h)for(let e,c=0,u=h.length;c<u&&(e=h[c]);c++)e.info&&e.info.lastRun===a||o&&!ii(l,e.trigger)||(e.info&&(e.info.lastRun=a),e.fn(t,l,i,r,e.info,o,s),n=!0)}return n}return!1}function ei(t,e,i,r,o,s,n,a){let l=!1,h=e[n?ue(r):r];if(h)for(let e,c=0,u=h.length;c<u&&(e=h[c]);c++)e.info&&e.info.lastRun===i||n&&!ii(r,e.trigger)||(e.info&&(e.info.lastRun=i),e.fn(t,r,o,s,e.info,n,a),l=!0);return l}function ii(t,e){if(e){let i=e.name;return i==t||!(!e.structured||!de(i,t))||!(!e.wildcard||!me(i,t))}return!0}function ri(t,e,i,r,o){let s="string"==typeof o.method?t[o.method]:o.method,n=o.property;s?s.call(t,t.__data[n],r[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function oi(t,e,i){let r=ue(e);return r!==e&&(si(t,xe(r)+"-changed",i[e],e),!0)}function si(t,e,i,r){let o={value:i,queueProperty:!0};r&&(o.path=r),he(t).dispatchEvent(new CustomEvent(e,{detail:o}))}function ni(t,e,i,r,o,s){let n=(s?ue(e):e)!=e?e:null,a=n?ge(t,n):t.__data[e];n&&void 0===a&&(a=i[e]),si(t,o.eventName,a,n)}function ai(t,e,i,r,o){let s=t.__data[e];Mt&&(s=Mt(s,o.attrName,"attribute",t)),t._propertyToAttribute(e,o.attrName,s)}const li=(t,e,i)=>{let r=0,o=e.length-1,s=-1;for(;r<=o;){const n=r+o>>1,a=i.get(e[n].methodInfo)-i.get(t.methodInfo);if(a<0)r=n+1;else{if(!(a>0)){s=n;break}o=n-1}}s<0&&(s=o+1),e.splice(s,0,t)},hi=(t,e,i,r,o)=>{const s=e[o?ue(t):t];if(s)for(let e=0;e<s.length;e++){const n=s[e];n.info.lastRun===Ke||o&&!ii(t,n.trigger)||(n.info.lastRun=Ke,li(n.info,i,r))}};function ci(t,e,i,r,o){let s=gi(t,e,i,0,o);if(s===Xe)return!1;let n=o.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function ui(t,e,i,r,o,s,n){i.bindings=i.bindings||[];let a={kind:r,target:o,parts:s,literal:n,isCompound:1!==s.length};if(i.bindings.push(a),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(a)){let{event:t,negate:e}=a.parts[0];a.listenerEvent=t||xe(o)+"-changed",a.listenerNegate=e}let l=e.nodeInfoList.length;for(let i=0;i<a.parts.length;i++){let r=a.parts[i];r.compoundIndex=i,di(t,e,a,r,l)}}function di(t,e,i,r,o){if(!r.literal)if("attribute"===i.kind&&"-"===i.target[0])console.warn("Cannot set attribute "+i.target+' because "-" is not a valid attribute starting character');else{let s=r.dependencies,n={index:o,binding:i,part:r,evaluator:t};for(let i=0;i<s.length;i++){let r=s[i];"string"==typeof r&&(r=ki(r),r.wildcard=!0),t._addTemplatePropertyEffect(e,r.rootProperty,{fn:mi,info:n,trigger:r})}}}function mi(t,e,i,r,o,s,n){let a=n[o.index],l=o.binding,h=o.part;if(s&&h.source&&e.length>h.source.length&&"property"==l.kind&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let r=i[e];e=pe(h.source,l.target,e),a._setPendingPropertyOrPath(e,r,!1,!0)&&t._enqueueClient(a)}else{let n=o.evaluator._evaluateBinding(t,h,e,i,r,s);n!==Xe&&function(t,e,i,r,o){if(o=function(t,e,i,r){if(i.isCompound){let o=t.__dataCompoundStorage[i.target];o[r.compoundIndex]=e,e=o.join("")}return"attribute"!==i.kind&&("textContent"!==i.target&&("value"!==i.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e)),e}(e,o,i,r),Mt&&(o=Mt(o,i.target,i.kind,e)),"attribute"==i.kind)t._valueToNodeAttribute(e,o,i.target);else{let r=i.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[r]?e[$e.READ_ONLY]&&e[$e.READ_ONLY][r]||e._setPendingProperty(r,o)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,r,o)}}(t,a,l,h,n)}}function pi(t,e){if(e.isCompound){let i=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),r=e.parts,o=new Array(r.length);for(let t=0;t<r.length;t++)o[t]=r[t].literal;let s=e.target;i[s]=o,e.literal&&"property"==e.kind&&("className"===s&&(t=he(t)),t[s]=e.literal)}}function fi(t,e,i){if(i.listenerEvent){let r=i.parts[0];t.addEventListener(i.listenerEvent,(function(t){!function(t,e,i,r,o){let s,n=t.detail,a=n&&n.path;a?(r=pe(i,r,a),s=n&&n.value):s=t.currentTarget[i],s=o?!s:s,e[$e.READ_ONLY]&&e[$e.READ_ONLY][r]||!e._setPendingPropertyOrPath(r,s,!0,Boolean(a))||n&&n.queueProperty||e._invalidateProperties()}(t,e,i.target,r.source,r.negate)}))}}function vi(t,e,i,r,o,s){let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:s=e.static||s&&("object"!=typeof s||s[e.methodName])};for(let o,s=0;s<e.args.length&&(o=e.args[s]);s++)o.literal||t._addPropertyEffect(o.rootProperty,i,{fn:r,info:n,trigger:o});return s&&t._addPropertyEffect(e.methodName,i,{fn:r,info:n}),n}function gi(t,e,i,r,o){let s=t._methodHost||t,n=s[o.methodName];if(n){let r=t._marshalArgs(o.args,e,i);return r===Xe?Xe:n.apply(s,r)}o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const bi=[],_i="(?:[a-zA-Z_$][\\w.:$\\-*]*)",yi="(?:("+_i+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Ei=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+_i+"\\s*(?:\\(\\s*(?:(?:"+yi+"(?:,\\s*"+yi+")*)?)\\)\\s*)?)(?:]]|}})","g");function wi(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].literal||"";return e}function xi(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:bi};return e[2].trim()?function(t,e){return e.args=t.map((function(t){let i=ki(t);return i.literal||(e.static=!1),i}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t):t}return null}function ki(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),i={name:e,value:"",literal:!1},r=e[0];switch("-"===r&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':i.value=e.slice(1,-1),i.literal=!0;break;case"#":i.value=Number(e),i.literal=!0}return i.literal||(i.rootProperty=ue(e),i.structured=ce(e),i.structured&&(i.wildcard=".*"==e.slice(-2),i.wildcard&&(i.name=e.slice(0,-2)))),i}function Ai(t,e,i){let r=ge(t,i);return void 0===r&&(r=e[i]),r}function Si(t,e,i,r){const o={indexSplices:r};jt&&!t._overrideLegacyUndefined&&(e.splices=o),t.notifyPath(i+".splices",o),t.notifyPath(i+".length",e.length),jt&&!t._overrideLegacyUndefined&&(o.indexSplices=[])}function Ci(t,e,i,r,o,s){Si(t,e,i,[{index:r,addedCount:o,removed:s,object:e,type:"splice"}])}const Ti=Kt((t=>{const e=Ye(Ue(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return $e}_initializeProperties(){super._initializeProperties(),this._registerHost(),this.__dataClientsReady=!1,this.__dataPendingClients=null,this.__dataToNotify=null,this.__dataLinkedPaths=null,this.__dataHasPaths=!1,this.__dataCompoundStorage=this.__dataCompoundStorage||null,this.__dataHost=this.__dataHost||null,this.__dataTemp={},this.__dataClientsInitialized=!1}_registerHost(){if(Ni.length){let t=Ni[Ni.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[$e.READ_ONLY];for(let i in t)e&&e[i]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[i]=this.__dataPending[i]=t[i])}_addPropertyEffect(t,e,i){this._createPropertyAccessor(t,e==$e.READ_ONLY);let r=Qe(this,e,!0)[t];r||(r=this[e][t]=[]),r.push(i)}_removePropertyEffect(t,e,i){let r=Qe(this,e,!0)[t],o=r.indexOf(i);o>=0&&r.splice(o,1)}_hasPropertyEffect(t,e){let i=this[e];return Boolean(i&&i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,$e.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,$e.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,$e.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,$e.COMPUTE)}_setPendingPropertyOrPath(t,e,i,r){if(r||ue(Array.isArray(t)?t[0]:t)!==t){if(!r){let i=ge(this,t);if(!(t=be(this,t,e))||!super._shouldPropertyChange(t,e,i))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,i))return function(t,e,i){let r=t.__dataLinkedPaths;if(r){let o;for(let s in r){let n=r[s];me(s,e)?(o=pe(s,n,e),t._setPendingPropertyOrPath(o,i,!0,!0)):me(n,e)&&(o=pe(n,s,e),t._setPendingPropertyOrPath(o,i,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,i);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,i){i===t[e]&&"object"!=typeof i||("className"===e&&(t=he(t)),t[e]=i)}_setPendingProperty(t,e,i){let r=this.__dataHasPaths&&ce(t);return!!this._shouldPropertyChange(t,e,(r?this.__dataTemp:this.__data)[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),r?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(r||this[$e.NOTIFY]&&this[$e.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=i),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let i=t[e];i.__dataEnabled?i.__dataPending&&i._flushProperties():i._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let i in t)!e&&this[$e.READ_ONLY]&&this[$e.READ_ONLY][i]||this._setPendingPropertyOrPath(i,t[i],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,i){let r,o=this.__dataHasPaths;this.__dataHasPaths=!1,function(t,e,i,r){let o=t[$e.COMPUTE];if(o)if(Ht){Ke++;const s=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[$e.COMPUTE];let r,{counts:o,ready:s,total:n}=function(t){const e=t[Ze],i={},r=t[$e.COMPUTE],o=[];let s=0;for(let t in e){const r=e[t];s+=i[t]=r.args.filter((t=>!t.literal)).length+(r.dynamicFn?1:0)}for(let t in r)e[t]||o.push(t);return{counts:i,ready:o,total:s}}(t);for(;r=s.shift();){e.set(r,e.size);const t=i[r];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--o[e]&&s.push(e)}))}0!==n&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)hi(t,o,n,s,r);let a;for(;a=n.shift();)ci(t,"",e,0,a)&&hi(a.methodInfo,o,n,s,r);Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let s=e;for(;ti(t,o,s,i,r);)Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),s=t.__dataPending,t.__dataPending=null}}(this,e,i,o),r=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,i,o),this._flushClients(),ti(this,this[$e.REFLECT],e,i,o),ti(this,this[$e.OBSERVE],e,i,o),r&&function(t,e,i,r,o){let s,n,a=t[$e.NOTIFY],l=Ke++;for(let n in e)e[n]&&(a&&ei(t,a,l,n,i,r,o)||o&&oi(t,n,i))&&(s=!0);s&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,r,e,i,o),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,i){this[$e.PROPAGATE]&&ti(this,this[$e.PROPAGATE],t,e,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,i)}_runEffectsForTemplate(t,e,i,r){const o=(e,r)=>{ti(this,t.propertyEffects,e,i,r,t.nodeList);for(let o=t.firstChild;o;o=o.nextSibling)this._runEffectsForTemplate(o,e,i,r)};t.runEffects?t.runEffects(o,e,r):o(e,r)}linkPaths(t,e){t=fe(t),e=fe(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=fe(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let i={path:""};Si(this,ge(this,t,i),i.path,e)}get(t,e){return ge(e||this,t)}set(t,e,i){i?be(i,t,e):this[$e.READ_ONLY]&&this[$e.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let i={path:""},r=ge(this,t,i),o=r.length,s=r.push(...e);return e.length&&Ci(this,r,i.path,o,e.length,[]),s}pop(t){let e={path:""},i=ge(this,t,e),r=Boolean(i.length),o=i.pop();return r&&Ci(this,i,e.path,i.length,0,[o]),o}splice(t,e,i,...r){let o,s={path:""},n=ge(this,t,s);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),o=2===arguments.length?n.splice(e):n.splice(e,i,...r),(r.length||o.length)&&Ci(this,n,s.path,e,r.length,o),o}shift(t){let e={path:""},i=ge(this,t,e),r=Boolean(i.length),o=i.shift();return r&&Ci(this,i,e.path,0,0,[o]),o}unshift(t,...e){let i={path:""},r=ge(this,t,i),o=r.unshift(...e);return e.length&&Ci(this,r,i.path,0,e.length,[]),o}notifyPath(t,e){let i;if(1==arguments.length){let r={path:""};e=ge(this,t,r),i=r.path}else i=Array.isArray(t)?fe(t):t;this._setPendingPropertyOrPath(i,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var i;this._addPropertyEffect(t,$e.READ_ONLY),e&&(this["_set"+(i=t,i[0].toUpperCase()+i.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,i){let r={property:t,method:e,dynamicFn:Boolean(i)};this._addPropertyEffect(t,$e.OBSERVE,{fn:ri,info:r,trigger:{name:t}}),i&&this._addPropertyEffect(e,$e.OBSERVE,{fn:ri,info:r,trigger:{name:e}})}_createMethodObserver(t,e){let i=xi(t);if(!i)throw new Error("Malformed observer expression '"+t+"'");vi(this,i,$e.OBSERVE,gi,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,$e.NOTIFY,{fn:ni,info:{eventName:xe(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,$e.REFLECT,{fn:ai,info:{attrName:e}})}_createComputedProperty(t,e,i){let r=xi(e);if(!r)throw new Error("Malformed computed expression '"+e+"'");const o=vi(this,r,$e.COMPUTE,ci,t,i);Qe(this,Ze)[t]=o}_marshalArgs(t,e,i){const r=this.__data,o=[];for(let s=0,n=t.length;s<n;s++){let{name:n,structured:a,wildcard:l,value:h,literal:c}=t[s];if(!c)if(l){const t=me(n,e),o=Ai(r,i,t?e:n);h={path:t?e:n,value:o,base:t?ge(r,n):o}}else h=a?Ai(r,i,n):r[n];if(jt&&!this._overrideLegacyUndefined&&void 0===h&&t.length>1)return Xe;o[s]=h}return o}static addPropertyEffect(t,e,i){this.prototype._addPropertyEffect(t,e,i)}static createPropertyObserver(t,e,i){this.prototype._createPropertyObserver(t,e,i)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,i){this.prototype._createComputedProperty(t,e,i)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let i=this.constructor._parseTemplate(t),r=this.__preBoundTemplateInfo==i;if(!r)for(let t in i.propertyEffects)this._createPropertyAccessor(t);if(e)if(i=Object.create(i),i.wasPreBound=r,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,r=e.lastChild;i.parent=e,e.lastChild=i,i.previousSibling=r,r?r.nextSibling=i:e.firstChild=i}else this.__templateInfo=i;else this.__preBoundTemplateInfo=i;return i}static _addTemplatePropertyEffect(t,e,i){(t.hostProps=t.hostProps||{})[e]=!0;let r=t.propertyEffects=t.propertyEffects||{};(r[e]=r[e]||[]).push(i)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),Ni.push(this);let i=super._stampTemplate(t,e);if(Ni.pop(),e.nodeList=i.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=i.firstChild;e;e=e.nextSibling)t.push(e)}return i.templateInfo=e,function(t,e){let{nodeList:i,nodeInfoList:r}=e;if(r.length)for(let e=0;e<r.length;e++){let o=i[e],s=r[e].bindings;if(s)for(let e=0;e<s.length;e++){let i=s[e];pi(o,i),fi(o,t,i)}o.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),i}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:i,nextSibling:r,parent:o}=e;i?i.nextSibling=r:o&&(o.firstChild=r),r?r.previousSibling=i:o&&(o.lastChild=i),e.nextSibling=e.previousSibling=null;let s=e.childNodes;for(let t=0;t<s.length;t++){let e=s[t];he(he(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,i,r){let o=e._parseTemplateNode.call(this,t,i,r);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,i);e&&(t.textContent=wi(e)||" ",ui(this,i,r,"text","textContent",e),o=!0)}return o}static _parseTemplateNodeAttribute(t,i,r,o,s){let n=this._parseBindings(s,i);if(n){let e=o,s="property";Je.test(o)?s="attribute":"$"==o[o.length-1]&&(o=o.slice(0,-1),s="attribute");let a=wi(n);return a&&"attribute"==s&&("class"==o&&t.hasAttribute("class")&&(a+=" "+t.getAttribute(o)),t.setAttribute(o,a)),"attribute"==s&&"disable-upgrade$"==e&&t.setAttribute(o,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===s&&(o=we(o)),ui(this,i,r,s,o,n,a),!0}return e._parseTemplateNodeAttribute.call(this,t,i,r,o,s)}static _parseTemplateNestedTemplate(t,i,r){let o=e._parseTemplateNestedTemplate.call(this,t,i,r);const s=t.parentNode,n=r.templateInfo,a="dom-if"===s.localName;Ft&&(a||"dom-repeat"===s.localName)&&(s.removeChild(t),(r=r.parentInfo).templateInfo=n,r.noted=!0,o=!1);let l=n.hostProps;if(qt&&a)l&&(i.hostProps=Object.assign(i.hostProps||{},l),Ft||(r.parentInfo.noted=!0));else{let t="{";for(let e in l)ui(this,i,r,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}return o}static _parseBindings(t,e){let i,r=[],o=0;for(;null!==(i=Ei.exec(t));){i.index>o&&r.push({literal:t.slice(o,i.index)});let s=i[1][0],n=Boolean(i[2]),a=i[3].trim(),l=!1,h="",c=-1;"{"==s&&(c=a.indexOf("::"))>0&&(h=a.substring(c+2),a=a.substring(0,c),l=!0);let u=xi(a),d=[];if(u){let{args:t,methodName:i}=u;for(let e=0;e<t.length;e++){let i=t[e];i.literal||d.push(i)}let r=e.dynamicFns;(r&&r[i]||u.static)&&(d.push(i),u.dynamicFn=!0)}else d.push(a);r.push({source:a,mode:s,negate:n,customEvent:l,signature:u,dependencies:d,event:h}),o=Ei.lastIndex}if(o&&o<t.length){let e=t.substring(o);e&&r.push({literal:e})}return r.length?r:null}static _evaluateBinding(t,e,i,r,o,s){let n;return n=e.signature?gi(t,i,r,0,e.signature):i!=e.source?ge(t,e.source):s&&ce(i)?ge(t,i):t.__data[i],e.negate&&(n=!n),n}}})),Ni=[],Ii=Kt((t=>{const e=ze(t);function i(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof o?e:null}function r(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const i=t.properties;i&&(e=
731
731
  /**
732
732
  @license
733
733
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -737,7 +737,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
737
737
  Code distributed by Google as part of the polymer project is also
738
738
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
739
739
  */
740
- function(t){const e={};for(let i in t){const r=t[i];e[i]="function"==typeof r?{type:r}:r}return e}(i))}t.__ownProperties=e}return t.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=i(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=r(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=i(this);this.__properties=Object.assign({},t&&t._properties,r(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o})),Oi=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ci=Xt((t=>{const e=Ni(Ti(t));function i(t,e,i,r){i.computed&&(i.readOnly=!0),i.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,i.computed,r)),i.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!i.computed):!1===i.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),i.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===i.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),i.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===i.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),i.observer&&t._createPropertyObserver(e,i.observer,r[i.observer]),t._addPropertyToAttributeMap(e)}return class extends e{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){e._finalizeClass.call(this);const t=((i=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",i))||(i.__ownObservers=i.hasOwnProperty(JSCompiler_renameProperty("observers",i))?i.observers:null),i.__ownObservers);var i;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):Lt||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)i(this.prototype,e,t[e],t)}static createObservers(t,e){const i=this.prototype;for(let r=0;r<t.length;r++)i._createMethodObserver(t[r],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!Ut||Mt)&&(e=Qt.import(t,"template"),Ut&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=Ot(t.url);else{const t=Qt.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=zt,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let i in e){let r=e[i];"value"in r&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[i]=r)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let i=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof i.value?i.value.call(this):i.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return Nt(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const i=this.importPath;(function(t,e,i,r){if(!Oi){const o=e.content.querySelectorAll("style"),s=ae(e),n=function(t){let e=re(t);return e?le(e):[]}(i),a=e.content.firstElementChild;for(let i=0;i<n.length;i++){let o=n[i];o.textContent=t._processStyleText(o.textContent,r),e.content.insertBefore(o,a)}let l=0;for(let e=0;e<s.length;e++){let i=s[e],n=o[l];n!==i?(i=i.cloneNode(!0),n.parentNode.insertBefore(i,n)):l++,i.textContent=t._processStyleText(i.textContent,r)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,i),Yt&&Oi&&Rt){const i=e.content.querySelectorAll("style");if(i){let e="";Array.from(i).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}})(this,e,t,i?Dt(i):""),this.prototype._bindTemplate(e)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(t){const e=he(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Bt&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=Dt(this.importPath)),Dt(t,e)}static _parseTemplateContent(t,i,r){return i.dynamicFns=i.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,i,r)}static _addTemplatePropertyEffect(t,i,r){return!Pt||i in this._properties||r.info.part.signature&&r.info.part.signature.static||r.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${i}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,i,r)}}})),Ri=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class zi{constructor(t,e){Mi(t,e);const i=e.reduce(((e,i,r)=>e+Gi(i)+t[r+1]),t[0]);this.value=i.toString()}toString(){return this.value}}function Gi(t){if(t instanceof zi)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const Ui=function(t,...e){Mi(t,e);const i=document.createElement("template");let r=e.reduce(((e,i,r)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof zi)return Gi(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(i)+t[r+1]),t[0]);return Ri&&(r=Ri.createHTML(r)),i.innerHTML=r,i},Mi=(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")},Li=Ci(HTMLElement),Pi=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Bi=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Fi(t,e){if("function"!=typeof t)return;const i=Pi.exec(t.toString());if(i)try{t=new Function(i[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};function ji(){
740
+ function(t){const e={};for(let i in t){const r=t[i];e[i]="function"==typeof r?{type:r}:r}return e}(i))}t.__ownProperties=e}return t.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=i(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=r(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=i(this);this.__properties=Object.assign({},t&&t._properties,r(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o})),Di=window.ShadyCSS&&window.ShadyCSS.cssBuild,Oi=Kt((t=>{const e=Ii(Ti(t));function i(t,e,i,r){i.computed&&(i.readOnly=!0),i.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,i.computed,r)),i.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!i.computed):!1===i.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),i.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===i.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),i.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===i.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),i.observer&&t._createPropertyObserver(e,i.observer,r[i.observer]),t._addPropertyToAttributeMap(e)}return class extends e{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){e._finalizeClass.call(this);const t=((i=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",i))||(i.__ownObservers=i.hasOwnProperty(JSCompiler_renameProperty("observers",i))?i.observers:null),i.__ownObservers);var i;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):Bt||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)i(this.prototype,e,t[e],t)}static createObservers(t,e){const i=this.prototype;for(let r=0;r<t.length;r++)i._createMethodObserver(t[r],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!Gt||Ut)&&(e=Qt.import(t,"template"),Gt&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=Dt(t.url);else{const t=Qt.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=Rt,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let i in e){let r=e[i];"value"in r&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[i]=r)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let i=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof i.value?i.value.call(this):i.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return It(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const i=this.importPath;(function(t,e,i,r){if(!Di){const o=e.content.querySelectorAll("style"),s=ae(e),n=function(t){let e=re(t);return e?le(e):[]}(i),a=e.content.firstElementChild;for(let i=0;i<n.length;i++){let o=n[i];o.textContent=t._processStyleText(o.textContent,r),e.content.insertBefore(o,a)}let l=0;for(let e=0;e<s.length;e++){let i=s[e],n=o[l];n!==i?(i=i.cloneNode(!0),n.parentNode.insertBefore(i,n)):l++,i.textContent=t._processStyleText(i.textContent,r)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,i),Wt&&Di&&zt){const i=e.content.querySelectorAll("style");if(i){let e="";Array.from(i).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}})(this,e,t,i?Nt(i):""),this.prototype._bindTemplate(e)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(t){const e=he(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Pt&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=Nt(this.importPath)),Nt(t,e)}static _parseTemplateContent(t,i,r){return i.dynamicFns=i.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,i,r)}static _addTemplatePropertyEffect(t,i,r){return!Lt||i in this._properties||r.info.part.signature&&r.info.part.signature.static||r.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${i}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,i,r)}}})),zi=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Ri{constructor(t,e){Ui(t,e);const i=e.reduce(((e,i,r)=>e+Mi(i)+t[r+1]),t[0]);this.value=i.toString()}toString(){return this.value}}function Mi(t){if(t instanceof Ri)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const Gi=function(t,...e){Ui(t,e);const i=document.createElement("template");let r=e.reduce(((e,i,r)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof Ri)return Mi(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(i)+t[r+1]),t[0]);return zi&&(r=zi.createHTML(r)),i.innerHTML=r,i},Ui=(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")},Bi=Oi(HTMLElement),Li=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Pi=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function ji(t,e){if("function"!=typeof t)return;const i=Li.exec(t.toString());if(i)try{t=new Function(i[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};function Hi(){
741
741
  /*! vaadin-dev-mode:start
742
742
  (function () {
743
743
  'use strict';
@@ -1216,7 +1216,7 @@ try {
1216
1216
 
1217
1217
  }());
1218
1218
 
1219
- vaadin-dev-mode:end **/}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&(Bi?!(Bi&&Object.keys(Bi).map((t=>Bi[t])).filter((t=>t.productionMode)).length>0):!Fi((function(){return!0})))}catch(t){return!1}}());
1219
+ vaadin-dev-mode:end **/}void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&(Pi?!(Pi&&Object.keys(Pi).map((t=>Pi[t])).filter((t=>t.productionMode)).length>0):!ji((function(){return!0})))}catch(t){return!1}}());
1220
1220
  /**
1221
1221
  * @license
1222
1222
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1226,7 +1226,7 @@ try {
1226
1226
  * Code distributed by Google as part of the polymer project is also
1227
1227
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1228
1228
  */
1229
- let Vi=0,qi=0;const Wi=[];let Yi=!1;const Hi={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},Xi={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},Ki={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},Zi={run(t){Yi||(Yi=!0,queueMicrotask((()=>function(){Yi=!1;const t=Wi.length;for(let e=0;e<t;e++){const t=Wi[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}Wi.splice(0,t),qi+=t}()))),Wi.push(t);const e=Vi;return Vi+=1,e},cancel(t){const e=t-qi;if(e>=0){if(!Wi[e])throw new Error(`invalid async handle: ${t}`);Wi[e]=null}}},$i=new Set;class Ji{static debounce(t,e,i){return t instanceof Ji?t._cancelAsync():t=new Ji,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run((()=>{this._timer=null,$i.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),$i.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}function Qi(t){$i.add(t)}function tr(){const t=Boolean($i.size);return $i.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}})),t}const er=()=>{let t;do{t=tr()}while(t)},ir=[];
1229
+ let Fi=0,qi=0;const Vi=[];let Wi=!1;const Yi={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},Ki={run:t=>window.requestAnimationFrame(t),cancel(t){window.cancelAnimationFrame(t)}},Xi={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},$i={run(t){Wi||(Wi=!0,queueMicrotask((()=>function(){Wi=!1;const t=Vi.length;for(let e=0;e<t;e++){const t=Vi[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}Vi.splice(0,t),qi+=t}()))),Vi.push(t);const e=Fi;return Fi+=1,e},cancel(t){const e=t-qi;if(e>=0){if(!Vi[e])throw new Error(`invalid async handle: ${t}`);Vi[e]=null}}},Zi=new Set;class Ji{static debounce(t,e,i){return t instanceof Ji?t._cancelAsync():t=new Ji,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run((()=>{this._timer=null,Zi.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),Zi.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}function Qi(t){Zi.add(t)}function tr(){const t=Boolean(Zi.size);return Zi.forEach((t=>{try{t.flush()}catch(t){setTimeout((()=>{throw t}))}})),t}const er=()=>{let t;do{t=tr()}while(t)},ir=[];
1230
1230
  /**
1231
1231
  * @license
1232
1232
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
@@ -1236,7 +1236,7 @@ let Vi=0,qi=0;const Wi=[];let Yi=!1;const Hi={after:t=>({run:e=>window.setTimeou
1236
1236
  * @license
1237
1237
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1238
1238
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1239
- */;let nr;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){!function(t,e){if(window.Vaadin.developmentMode)Fi(t,e)}(ji)};const ar=new Set,lr=t=>class extends(sr(t)){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:t}=this;t&&!ar.has(t)&&(window.Vaadin.registrations.push(this),ar.add(t),window.Vaadin.developmentModeCallback&&(nr=Ji.debounce(nr,Ki,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),Qi(nr)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
1239
+ */;let nr;window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){!function(t,e){if(window.Vaadin.developmentMode)ji(t,e)}(Hi)};const ar=new Set,lr=t=>class extends(sr(t)){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:t}=this;t&&!ar.has(t)&&(window.Vaadin.registrations.push(this),ar.add(t),window.Vaadin.developmentModeCallback&&(nr=Ji.debounce(nr,Xi,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),Qi(nr)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
1240
1240
  /**
1241
1241
  * @license
1242
1242
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
@@ -1271,12 +1271,12 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1271
1271
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1272
1272
  Code distributed by Google as part of the polymer project is also
1273
1273
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1274
- */const gr=!1,br=t=>t,_r="string"==typeof document.head.style.touchAction,yr="__polymerGestures",wr="__polymerGesturesHandled",Er="__polymerGesturesTouchAction",xr=["mousedown","mousemove","mouseup","click"],Ar=[0,1,4,2],kr=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function Sr(t){return xr.indexOf(t)>-1}let Ir=!1;function Tr(t){if(!Sr(t)&&"touchend"!==t)return _r&&Ir&&gr?{passive:!0}:void 0}!function(){try{const t=Object.defineProperty({},"passive",{get(){Ir=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();const Dr=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Nr={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Or(t){const e=t.type;if(!Sr(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!kr&&(e=Ar[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}const Cr={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Rr(t,e,i){t.movefn=e,t.upfn=i,document.addEventListener("mousemove",e),document.addEventListener("mouseup",i)}function zr(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const Gr=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Ur={},Mr=[];function Lr(t){const e=Gr(t);return e.length>0?e[0]:t.target}function Pr(t){const e=t.type,i=t.currentTarget[yr];if(!i)return;const r=i[e];if(!r)return;if(!t[wr]&&(t[wr]={},e.startsWith("touch"))){const i=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(Cr.touch.id=i.identifier),Cr.touch.id!==i.identifier)return;_r||"touchstart"!==e&&"touchmove"!==e||function(t){const e=t.changedTouches[0],i=t.type;if("touchstart"===i)Cr.touch.x=e.clientX,Cr.touch.y=e.clientY,Cr.touch.scrollDecided=!1;else if("touchmove"===i){if(Cr.touch.scrollDecided)return;Cr.touch.scrollDecided=!0;const i=function(t){let e="auto";const i=Gr(t);for(let t,r=0;r<i.length;r++)if(t=i[r],t[Er]){e=t[Er];break}return e}(t);let r=!1;const o=Math.abs(Cr.touch.x-e.clientX),s=Math.abs(Cr.touch.y-e.clientY);t.cancelable&&("none"===i?r=!0:"pan-x"===i?r=s>o:"pan-y"===i&&(r=o>s)),r?t.preventDefault():qr("track")}}(t)}const o=t[wr];if(!o.skip){for(let e,i=0;i<Mr.length;i++)e=Mr[i],r[e.name]&&!o[e.name]&&e.flow&&e.flow.start.indexOf(t.type)>-1&&e.reset&&e.reset();for(let i,s=0;s<Mr.length;s++)i=Mr[s],r[i.name]&&!o[i.name]&&(o[i.name]=!0,i[e](t))}}function Br(t,e,i){return!!Ur[e]&&(function(t,e,i){const r=Ur[e],o=r.deps,s=r.name;let n=t[yr];n||(t[yr]=n={});for(let e,i,r=0;r<o.length;r++)e=o[r],Dr&&Sr(e)&&"click"!==e||(i=n[e],i||(n[e]=i={_count:0}),0===i._count&&t.addEventListener(e,Pr,Tr(e)),i[s]=(i[s]||0)+1,i._count=(i._count||0)+1);t.addEventListener(e,i),r.touchAction&&jr(t,r.touchAction)}(t,e,i),!0)}function Fr(t){Mr.push(t),t.emits.forEach((e=>{Ur[e]=t}))}function jr(t,e){_r&&t instanceof HTMLElement&&Zi.run((()=>{t.style.touchAction=e})),t[Er]=e}function Vr(t,e,i){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=i,br(t).dispatchEvent(r),r.defaultPrevented){const t=i.preventer||i.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function qr(t){const e=function(t){for(let e,i=0;i<Mr.length;i++){e=Mr[i];for(let i,r=0;r<e.emits.length;r++)if(i=e.emits[r],i===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function Wr(t,e,i,r){e&&Vr(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:r,prevent:t=>qr(t)})}function Yr(t,e,i){if(t.prevent)return!1;if(t.started)return!0;const r=Math.abs(t.x-e),o=Math.abs(t.y-i);return r>=5||o>=5}function Hr(t,e,i){if(!e)return;const r=t.moves[t.moves.length-2],o=t.moves[t.moves.length-1];let s,n=0;r&&(s=o.x-r.x,n=o.y-r.y),Vr(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:o.x-t.x,dy:o.y-t.y,ddx:s,ddy:n,sourceEvent:i,hover:()=>function(t,e){let i=document.elementFromPoint(t,e),r=i;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const o=r;if(r=r.shadowRoot.elementFromPoint(t,e),o===r)break;r&&(i=r)}return i}(i.clientX,i.clientY)})}function Xr(t,e,i){const r=Math.abs(e.clientX-t.x),o=Math.abs(e.clientY-t.y),s=Lr(i||e);!s||Nr[s.localName]&&s.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=25&&o<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;const e=Lr(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const i=e.getBoundingClientRect(),r=t.pageX,o=t.pageY;return!(r>=i.left&&r<=i.right&&o>=i.top&&o<=i.bottom)}return!1}(e))&&(t.prevent||Vr(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i}))}
1274
+ */const gr=!1,br=t=>t,_r="string"==typeof document.head.style.touchAction,yr="__polymerGestures",Er="__polymerGesturesHandled",wr="__polymerGesturesTouchAction",xr=["mousedown","mousemove","mouseup","click"],kr=[0,1,4,2],Ar=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function Sr(t){return xr.indexOf(t)>-1}let Cr=!1;function Tr(t){if(!Sr(t)&&"touchend"!==t)return _r&&Cr&&gr?{passive:!0}:void 0}!function(){try{const t=Object.defineProperty({},"passive",{get(){Cr=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();const Nr=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Ir={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Dr(t){const e=t.type;if(!Sr(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!Ar&&(e=kr[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}const Or={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function zr(t,e,i){t.movefn=e,t.upfn=i,document.addEventListener("mousemove",e),document.addEventListener("mouseup",i)}function Rr(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const Mr=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Gr={},Ur=[];function Br(t){const e=Mr(t);return e.length>0?e[0]:t.target}function Lr(t){const e=t.type,i=t.currentTarget[yr];if(!i)return;const r=i[e];if(!r)return;if(!t[Er]&&(t[Er]={},e.startsWith("touch"))){const i=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(Or.touch.id=i.identifier),Or.touch.id!==i.identifier)return;_r||"touchstart"!==e&&"touchmove"!==e||function(t){const e=t.changedTouches[0],i=t.type;if("touchstart"===i)Or.touch.x=e.clientX,Or.touch.y=e.clientY,Or.touch.scrollDecided=!1;else if("touchmove"===i){if(Or.touch.scrollDecided)return;Or.touch.scrollDecided=!0;const i=function(t){let e="auto";const i=Mr(t);for(let t,r=0;r<i.length;r++)if(t=i[r],t[wr]){e=t[wr];break}return e}(t);let r=!1;const o=Math.abs(Or.touch.x-e.clientX),s=Math.abs(Or.touch.y-e.clientY);t.cancelable&&("none"===i?r=!0:"pan-x"===i?r=s>o:"pan-y"===i&&(r=o>s)),r?t.preventDefault():qr("track")}}(t)}const o=t[Er];if(!o.skip){for(let e,i=0;i<Ur.length;i++)e=Ur[i],r[e.name]&&!o[e.name]&&e.flow&&e.flow.start.indexOf(t.type)>-1&&e.reset&&e.reset();for(let i,s=0;s<Ur.length;s++)i=Ur[s],r[i.name]&&!o[i.name]&&(o[i.name]=!0,i[e](t))}}function Pr(t,e,i){return!!Gr[e]&&(function(t,e,i){const r=Gr[e],o=r.deps,s=r.name;let n=t[yr];n||(t[yr]=n={});for(let e,i,r=0;r<o.length;r++)e=o[r],Nr&&Sr(e)&&"click"!==e||(i=n[e],i||(n[e]=i={_count:0}),0===i._count&&t.addEventListener(e,Lr,Tr(e)),i[s]=(i[s]||0)+1,i._count=(i._count||0)+1);t.addEventListener(e,i),r.touchAction&&Hr(t,r.touchAction)}(t,e,i),!0)}function jr(t){Ur.push(t),t.emits.forEach((e=>{Gr[e]=t}))}function Hr(t,e){_r&&t instanceof HTMLElement&&$i.run((()=>{t.style.touchAction=e})),t[wr]=e}function Fr(t,e,i){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=i,br(t).dispatchEvent(r),r.defaultPrevented){const t=i.preventer||i.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function qr(t){const e=function(t){for(let e,i=0;i<Ur.length;i++){e=Ur[i];for(let i,r=0;r<e.emits.length;r++)if(i=e.emits[r],i===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function Vr(t,e,i,r){e&&Fr(e,t,{x:i.clientX,y:i.clientY,sourceEvent:i,preventer:r,prevent:t=>qr(t)})}function Wr(t,e,i){if(t.prevent)return!1;if(t.started)return!0;const r=Math.abs(t.x-e),o=Math.abs(t.y-i);return r>=5||o>=5}function Yr(t,e,i){if(!e)return;const r=t.moves[t.moves.length-2],o=t.moves[t.moves.length-1];let s,n=0;r&&(s=o.x-r.x,n=o.y-r.y),Fr(e,"track",{state:t.state,x:i.clientX,y:i.clientY,dx:o.x-t.x,dy:o.y-t.y,ddx:s,ddy:n,sourceEvent:i,hover:()=>function(t,e){let i=document.elementFromPoint(t,e),r=i;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const o=r;if(r=r.shadowRoot.elementFromPoint(t,e),o===r)break;r&&(i=r)}return i}(i.clientX,i.clientY)})}function Kr(t,e,i){const r=Math.abs(e.clientX-t.x),o=Math.abs(e.clientY-t.y),s=Br(i||e);!s||Ir[s.localName]&&s.hasAttribute("disabled")||(isNaN(r)||isNaN(o)||r<=25&&o<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;const e=Br(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const i=e.getBoundingClientRect(),r=t.pageX,o=t.pageY;return!(r>=i.left&&r<=i.right&&o>=i.top&&o<=i.bottom)}return!1}(e))&&(t.prevent||Fr(s,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i}))}
1275
1275
  /**
1276
1276
  * @license
1277
1277
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1278
1278
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1279
- */Fr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){zr(this.info)},mousedown(t){if(!Or(t))return;const e=Lr(t),i=this;Rr(this.info,(t=>{Or(t)||(Wr("up",e,t),zr(i.info))}),(t=>{Or(t)&&Wr("up",e,t),zr(i.info)})),Wr("down",e,t)},touchstart(t){Wr("down",Lr(t),t.changedTouches[0],t)},touchend(t){Wr("up",Lr(t),t.changedTouches[0],t)}}),Fr({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,zr(this.info)},mousedown(t){if(!Or(t))return;const e=Lr(t),i=this,r=t=>{const r=t.clientX,o=t.clientY;Yr(i.info,r,o)&&(i.info.state=i.info.started?"mouseup"===t.type?"end":"track":"start","start"===i.info.state&&qr("tap"),i.info.addMove({x:r,y:o}),Or(t)||(i.info.state="end",zr(i.info)),e&&Hr(i.info,e,t),i.info.started=!0)};Rr(this.info,r,(t=>{i.info.started&&r(t),zr(i.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){const e=Lr(t),i=t.changedTouches[0],r=i.clientX,o=i.clientY;Yr(this.info,r,o)&&("start"===this.info.state&&qr("tap"),this.info.addMove({x:r,y:o}),Hr(this.info,e,i),this.info.state="track",this.info.started=!0)},touchend(t){const e=Lr(t),i=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),Hr(this.info,e,i))}}),Fr({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(t){Or(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Or(t)&&Xr(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){Xr(this.info,t.changedTouches[0],t)}});const Kr=Xt((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),Zr=Xt((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}})),$r=t=>class extends(Kr(Zr(t))){get _activeKeys(){return[" "]}ready(){super.ready(),Br(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),Br(this,"up",(()=>{this._setActive(!1)}))}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",(t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)}),{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}}
1279
+ */jr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Rr(this.info)},mousedown(t){if(!Dr(t))return;const e=Br(t),i=this;zr(this.info,(t=>{Dr(t)||(Vr("up",e,t),Rr(i.info))}),(t=>{Dr(t)&&Vr("up",e,t),Rr(i.info)})),Vr("down",e,t)},touchstart(t){Vr("down",Br(t),t.changedTouches[0],t)},touchend(t){Vr("up",Br(t),t.changedTouches[0],t)}}),jr({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Rr(this.info)},mousedown(t){if(!Dr(t))return;const e=Br(t),i=this,r=t=>{const r=t.clientX,o=t.clientY;Wr(i.info,r,o)&&(i.info.state=i.info.started?"mouseup"===t.type?"end":"track":"start","start"===i.info.state&&qr("tap"),i.info.addMove({x:r,y:o}),Dr(t)||(i.info.state="end",Rr(i.info)),e&&Yr(i.info,e,t),i.info.started=!0)};zr(this.info,r,(t=>{i.info.started&&r(t),Rr(i.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){const e=Br(t),i=t.changedTouches[0],r=i.clientX,o=i.clientY;Wr(this.info,r,o)&&("start"===this.info.state&&qr("tap"),this.info.addMove({x:r,y:o}),Yr(this.info,e,i),this.info.state="track",this.info.started=!0)},touchend(t){const e=Br(t),i=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:i.clientX,y:i.clientY}),Yr(this.info,e,i))}}),jr({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(t){Dr(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Dr(t)&&Kr(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){Kr(this.info,t.changedTouches[0],t)}});const Xr=Kt((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),$r=Kt((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}})),Zr=t=>class extends(Xr($r(t))){get _activeKeys(){return[" "]}ready(){super.ready(),Pr(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),Pr(this,"up",(()=>{this._setActive(!1)}))}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",(t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)}),{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}}
1280
1280
  /**
1281
1281
  * @license
1282
1282
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
@@ -1292,12 +1292,12 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1292
1292
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1293
1293
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1294
1294
  */
1295
- const oo=Xt((t=>class extends t{get _keyboardActive(){return Jr}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}})),so=t=>class extends(Kr(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}
1295
+ const oo=Kt((t=>class extends t{get _keyboardActive(){return Jr}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}})),so=t=>class extends(Xr(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}
1296
1296
  /**
1297
1297
  * @license
1298
1298
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1299
1299
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1300
- */,no=Xt((t=>class extends(oo(so(t))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame((()=>{this.focus(),this.setAttribute("focus-ring","")}))}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}})),ao=Xt((t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,i)=>{this._delegateAttribute(e,t[i])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,i)=>{this._delegateProperty(e,t[i])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}})),lo=Xt((t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=null!=t?t:"")}_inputElementChanged(t,e){t?this._addInputListeners(t):e&&this._removeInputListeners(e)}_hasInputValueChanged(t,e){(t||e)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=e.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue),""===t&&void 0===e||this.__userInput||this._forwardInputValue(t)}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),ho=Xt((t=>class extends(ao(Kr(lo(t)))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(t){this._toggleChecked(t.target.checked)}_toggleChecked(t){this.checked=t}}));
1300
+ */,no=Kt((t=>class extends(oo(so(t))){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame((()=>{this.focus(),this.setAttribute("focus-ring","")}))}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}})),ao=Kt((t=>class extends t{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(t){t&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,i)=>{this._delegateAttribute(e,t[i])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,i)=>{this._delegateProperty(e,t[i])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}})),lo=Kt((t=>class extends t{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return null!=this.value&&""!==this.value}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(t){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=t)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(t){t.addEventListener("input",this._boundOnInput),t.addEventListener("change",this._boundOnChange)}_removeInputListeners(t){t.removeEventListener("input",this._boundOnInput),t.removeEventListener("change",this._boundOnChange)}_forwardInputValue(t){this.inputElement&&(this._inputElementValue=null!=t?t:"")}_inputElementChanged(t,e){t?this._addInputListeners(t):e&&this._removeInputListeners(e)}_hasInputValueChanged(t,e){(t||e)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(t){this._setHasInputValue(t),this._onInput(t)}_onInput(t){const e=t.composedPath()[0];this.__userInput=t.isTrusted,this.value=e.value,this.__userInput=!1}_onChange(t){}_toggleHasValue(t){this.toggleAttribute("has-value",t)}_valueChanged(t,e){this._toggleHasValue(this._hasValue),""===t&&void 0===e||this.__userInput||this._forwardInputValue(t)}_setHasInputValue(t){const e=t.composedPath()[0];this._hasInputValue=e.value.length>0}})),ho=Kt((t=>class extends(ao(Xr(lo(t)))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(t){this._toggleChecked(t.target.checked)}_toggleChecked(t){this.checked=t}}));
1301
1301
  /**
1302
1302
  * @license
1303
1303
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
@@ -1313,7 +1313,7 @@ class co extends fr{constructor(t,e){super(t,"input","input",{initializer:(t,i)=
1313
1313
  * @license
1314
1314
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1315
1315
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1316
- */const uo=Xt((t=>"function"==typeof t.prototype.addController?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}}));
1316
+ */const uo=Kt((t=>"function"==typeof t.prototype.addController?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}}));
1317
1317
  /**
1318
1318
  * @license
1319
1319
  * Copyright (c) 2022 - 2023 Vaadin Ltd.
@@ -1328,7 +1328,7 @@ class co extends fr{constructor(t,e){super(t,"input","input",{initializer:(t,i)=
1328
1328
  * @license
1329
1329
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1330
1330
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1331
- */const fo=Xt((t=>class extends(uo(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new po(this),this._labelController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-label",t.detail.hasContent)}))}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}}));
1331
+ */const fo=Kt((t=>class extends(uo(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new po(this),this._labelController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-label",t.detail.hasContent)}))}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}}));
1332
1332
  /**
1333
1333
  * @license
1334
1334
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
@@ -1338,7 +1338,7 @@ class co extends fr{constructor(t,e){super(t,"input","input",{initializer:(t,i)=
1338
1338
  * @license
1339
1339
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1340
1340
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1341
- */const go=t=>class extends(fo(ho(no($r(t))))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name"]}constructor(){super(),this._setType("checkbox"),this.value="on"}ready(){super.ready(),this.addController(new co(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new vo(this.inputElement,this._labelController))}_shouldSetActive(t){return"a"!==t.target.localName&&super._shouldSetActive(t)}_toggleChecked(t){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(t)}}
1341
+ */const go=t=>class extends(fo(ho(no(Zr(t))))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name"]}constructor(){super(),this._setType("checkbox"),this.value="on"}ready(){super.ready(),this.addController(new co(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new vo(this.inputElement,this._labelController))}_shouldSetActive(t){return"a"!==t.target.localName&&super._shouldSetActive(t)}_toggleChecked(t){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(t)}}
1342
1342
  /**
1343
1343
  * @license
1344
1344
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
@@ -1427,7 +1427,7 @@ vt("vaadin-checkbox",f`
1427
1427
  outline-width: 2px;
1428
1428
  }
1429
1429
  }
1430
- `,{moduleId:"vaadin-checkbox-styles"});class bo extends(go(lr(wt(Li)))){static get is(){return"vaadin-checkbox"}static get template(){return Ui`
1430
+ `,{moduleId:"vaadin-checkbox-styles"});class bo extends(go(lr(Et(Bi)))){static get is(){return"vaadin-checkbox"}static get template(){return Gi`
1431
1431
  <div class="vaadin-checkbox-container">
1432
1432
  <div part="checkbox" aria-hidden="true"></div>
1433
1433
  <slot name="input"></slot>
@@ -1641,18 +1641,18 @@ const _o=f`
1641
1641
  * Copyright (c) 2023 Vaadin Ltd.
1642
1642
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1643
1643
  */
1644
- const wo=new Map;function Eo(t){return wo.has(t)||wo.set(t,new WeakMap),wo.get(t)}function xo(t,e){t&&t.removeAttribute(e)}function Ao(t,e){if(!t||!e)return;const i=Eo(e);if(i.has(t))return;const r=hr(t.getAttribute(e));i.set(t,new Set(r))}function ko(t,e,i={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:r,oldId:o,fromUser:s}=i,n=Eo(e),a=n.get(t);if(!s&&a)return o&&a.delete(o),void(r&&a.add(r));s&&(a?r||n.delete(t):Ao(t,e),xo(t,e)),function(t,e,i){const r=hr(t.getAttribute(e));r.delete(i),0!==r.size?t.setAttribute(e,cr(r)):t.removeAttribute(e)}(t,e,o);const l=r||cr(a);l&&ur(t,e,l)}
1644
+ const Eo=new Map;function wo(t){return Eo.has(t)||Eo.set(t,new WeakMap),Eo.get(t)}function xo(t,e){t&&t.removeAttribute(e)}function ko(t,e){if(!t||!e)return;const i=wo(e);if(i.has(t))return;const r=hr(t.getAttribute(e));i.set(t,new Set(r))}function Ao(t,e,i={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:r,oldId:o,fromUser:s}=i,n=wo(e),a=n.get(t);if(!s&&a)return o&&a.delete(o),void(r&&a.add(r));s&&(a?r||n.delete(t):ko(t,e),xo(t,e)),function(t,e,i){const r=hr(t.getAttribute(e));r.delete(i),0!==r.size?t.setAttribute(e,cr(r)):t.removeAttribute(e)}(t,e,o);const l=r||cr(a);l&&ur(t,e,l)}
1645
1645
  /**
1646
1646
  * @license
1647
1647
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1648
1648
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1649
1649
  */
1650
- class So{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){this.__setLabelIdToAriaAttribute(t,e?this.__labelIdFromUser:this.__labelId,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){var e;this.__target&&(t?(Ao(e=this.__target,"aria-labelledby"),xo(e,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const i=Eo(e),r=i.get(t);r&&0!==r.size?ur(t,e,cr(r)):t.removeAttribute(e),i.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){ko(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){ko(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){ko(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}
1650
+ class So{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){this.__setLabelIdToAriaAttribute(t,e?this.__labelIdFromUser:this.__labelId,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){var e;this.__target&&(t?(ko(e=this.__target,"aria-labelledby"),xo(e,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const i=wo(e),r=i.get(t);r&&0!==r.size?ur(t,e,cr(r)):t.removeAttribute(e),i.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Ao(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Ao(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Ao(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}
1651
1651
  /**
1652
1652
  * @license
1653
1653
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1654
1654
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1655
- */class Io extends mo{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,r=Boolean(i&&e&&""!==e.trim());t&&(t.textContent=r?e:"",t.hidden=!r,r?t.setAttribute("role","alert"):t.removeAttribute("role")),super.updateDefaultNode(t)}}
1655
+ */class Co extends mo{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,r=Boolean(i&&e&&""!==e.trim());t&&(t.textContent=r?e:"",t.hidden=!r,r?t.setAttribute("role","alert"):t.removeAttribute("role")),super.updateDefaultNode(t)}}
1656
1656
  /**
1657
1657
  * @license
1658
1658
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
@@ -1662,7 +1662,7 @@ class So{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__targe
1662
1662
  * @license
1663
1663
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1664
1664
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1665
- */const Do=Xt((t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}})),No=t=>class extends(Do(fo(uo(t)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new So(this),this._helperController=new To(this),this._errorController=new Io(this),this._errorController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)})),this._labelController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.__labelChanged(e,i)})),this._helperController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,i)}))}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,e){this._fieldAriaController.setHelperId(t?e.id:null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,e){this._fieldAriaController.setLabelId(t?e.id:null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout((()=>{if(t){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)}))}}
1665
+ */const No=Kt((t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}})),Io=t=>class extends(No(fo(uo(t)))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new So(this),this._helperController=new To(this),this._errorController=new Co(this),this._errorController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)})),this._labelController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.__labelChanged(e,i)})),this._helperController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:i}=t.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,i)}))}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(t,e){this._fieldAriaController.setHelperId(t?e.id:null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,e){this._fieldAriaController.setLabelId(t?e.id:null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout((()=>{if(t){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)}))}}
1666
1666
  /**
1667
1667
  * @license
1668
1668
  * Copyright (c) 2018 - 2023 Vaadin Ltd.
@@ -1672,7 +1672,7 @@ class So{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__targe
1672
1672
  * @license
1673
1673
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
1674
1674
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1675
- */class Oo extends(No(oo(Kr(lr(wt(Li)))))){static get is(){return"vaadin-checkbox-group"}static get template(){return Ui`
1675
+ */class Do extends(Io(oo(Xr(lr(Et(Bi)))))){static get is(){return"vaadin-checkbox-group"}static get template(){return Gi`
1676
1676
  <style>
1677
1677
  :host {
1678
1678
  display: inline-flex;
@@ -1724,18 +1724,18 @@ class So{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__targe
1724
1724
  </div>
1725
1725
 
1726
1726
  <slot name="tooltip"></slot>
1727
- `}static get properties(){return{value:{type:Array,value:()=>[],notify:!0,observer:"__valueChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new vr(this),this._tooltipController.addEventListener("tooltip-changed",(t=>{const e=t.detail.node;if(e&&e.isConnected){const t=this.__checkboxes.map((t=>t.inputElement));this._tooltipController.setAriaTarget(t)}else this._tooltipController.setAriaTarget([])}))}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const t=this.shadowRoot.querySelector("slot:not([name])");this._observer=new dr(t,(({addedNodes:t,removedNodes:e})=>{const i=this.__filterCheckboxes(t),r=this.__filterCheckboxes(e);i.forEach(this.__registerCheckbox),r.forEach(this.__unregisterCheckbox);const o=this.__checkboxes.map((t=>t.inputElement));this._tooltipController.setAriaTarget(o),this.__warnOfCheckboxesWithoutValue(i)})),this.addController(this._tooltipController)}checkValidity(){return!this.required||this.value.length>0}__filterCheckboxes(t){return t.filter((t=>t instanceof bo))}__warnOfCheckboxesWithoutValue(t){t.some((t=>{const{value:e}=t;return!(t.hasAttribute("value")||e&&"on"!==e)}))&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(t){t.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(t.disabled=!0),t.checked?this.__addCheckboxToValue(t.value):this.value.includes(t.value)&&(t.checked=!0)}__unregisterCheckbox(t){t.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),t.checked&&this.__removeCheckboxFromValue(t.value)}_disabledChanged(t,e){super._disabledChanged(t,e),(t||void 0!==e)&&e!==t&&this.__checkboxes.forEach((e=>{e.disabled=t}))}__addCheckboxToValue(t){this.value.includes(t)||(this.value=[...this.value,t])}__removeCheckboxFromValue(t){this.value.includes(t)&&(this.value=this.value.filter((e=>e!==t)))}__onCheckboxCheckedChanged(t){const e=t.target;e.checked?this.__addCheckboxToValue(e.value):this.__removeCheckboxFromValue(e.value)}__valueChanged(t,e){0===t.length&&void 0===e||(this.toggleAttribute("has-value",t.length>0),this.__checkboxes.forEach((e=>{e.checked=t.includes(e.value)})),void 0!==e&&this.validate())}_shouldRemoveFocus(t){return!this.contains(t.relatedTarget)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}}l(Oo);const Co=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedValues=[],this.value=null,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce(((t,e)=>(t[e.name]=this.selectedValues.includes(e.name),t)),{}),this.emitValueHandler(!0)}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.selectedValues=this.options.map((t=>t.name)),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return n("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"checkboxgroup__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}handleParentCheckbox(t){this.selectedValues=t.target.checked?this.options.map((t=>t.name)):[]}renderLabel(){return i("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},i("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return i("div",{key:"fa45026502fd8d46aa537aee03210ad68d30e577",class:`checkboxgroup__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"15ded4fd896920c6244806e49f300c124c27186d",class:"checkboxgroup__wrapper--flex"},i("vaadin-checkbox",{key:"d7eaa205877f8f12c9ef7d4f77018665806f5c7c",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||"true"===this.defaultValue,indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:t=>this.handleParentCheckbox(t)},this.renderLabel()),this.tooltip&&i("img",{key:"aca39ed398415a6e2cef861be40dad33e0398759",class:"checkboxgroup__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("small",{key:"a1a6e1c3c02edcca572b8826ffba06835ca451c3",class:"checkboxgroup__error-message"},this.errorMessage),i("vaadin-checkbox-group",{key:"9f5f8a945e4ba13d7d0da6d362c15d00a7796b71",theme:"vertical",value:this.selectedValues,"on-value-changed":t=>{this.selectedValues=t.detail.value}},this.options.map((t=>i("vaadin-checkbox",{class:"checkbox__input",name:t.name,value:t.name,label:t.displayName})))))}get element(){return r(this)}static get watchers(){return{isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};Co.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}';const Ro=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.value="",this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleClick(){this.value=this.inputReference.checked.toString(),this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return n("requiredError",this.language)}renderLabel(){return i("label",{class:"checkbox__label",htmlFor:`${this.name}__input`},i("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?i("div",{class:"checkbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return i("div",{key:"0aae00d291d1da02adae1bc91e79ccd579aa5c7f",class:`checkbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("input",{key:"4b8c61d322b5065d8abe4e2687e270511fadc97f",class:"checkbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.inputReference=t,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel(),i("small",{key:"934263cb58a0d379e8b7dc1f5004ad7e61c63ce0",class:"checkbox__error-message"},this.errorMessage),i("div",{key:"88cc71329d88b6325d792226e64ff7f93e940178",class:"checkbox__wrapper--relative"},this.tooltip&&i("img",{key:"3708dc613dc920bac6557f2a8020bbafd97d9127",class:"checkbox__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ro.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.checkbox__label-text{font-size:16px}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}';
1727
+ `}static get properties(){return{value:{type:Array,value:()=>[],notify:!0,observer:"__valueChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new vr(this),this._tooltipController.addEventListener("tooltip-changed",(t=>{const e=t.detail.node;if(e&&e.isConnected){const t=this.__checkboxes.map((t=>t.inputElement));this._tooltipController.setAriaTarget(t)}else this._tooltipController.setAriaTarget([])}))}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const t=this.shadowRoot.querySelector("slot:not([name])");this._observer=new dr(t,(({addedNodes:t,removedNodes:e})=>{const i=this.__filterCheckboxes(t),r=this.__filterCheckboxes(e);i.forEach(this.__registerCheckbox),r.forEach(this.__unregisterCheckbox);const o=this.__checkboxes.map((t=>t.inputElement));this._tooltipController.setAriaTarget(o),this.__warnOfCheckboxesWithoutValue(i)})),this.addController(this._tooltipController)}checkValidity(){return!this.required||this.value.length>0}__filterCheckboxes(t){return t.filter((t=>t instanceof bo))}__warnOfCheckboxesWithoutValue(t){t.some((t=>{const{value:e}=t;return!(t.hasAttribute("value")||e&&"on"!==e)}))&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(t){t.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(t.disabled=!0),t.checked?this.__addCheckboxToValue(t.value):this.value.includes(t.value)&&(t.checked=!0)}__unregisterCheckbox(t){t.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),t.checked&&this.__removeCheckboxFromValue(t.value)}_disabledChanged(t,e){super._disabledChanged(t,e),(t||void 0!==e)&&e!==t&&this.__checkboxes.forEach((e=>{e.disabled=t}))}__addCheckboxToValue(t){this.value.includes(t)||(this.value=[...this.value,t])}__removeCheckboxFromValue(t){this.value.includes(t)&&(this.value=this.value.filter((e=>e!==t)))}__onCheckboxCheckedChanged(t){const e=t.target;e.checked?this.__addCheckboxToValue(e.value):this.__removeCheckboxFromValue(e.value)}__valueChanged(t,e){0===t.length&&void 0===e||(this.toggleAttribute("has-value",t.length>0),this.__checkboxes.forEach((e=>{e.checked=t.includes(e.value)})),void 0!==e&&this.validate())}_shouldRemoveFocus(t){return!this.contains(t.relatedTarget)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}}l(Do);const Oo=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedValues=[],this.value=null,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce(((t,e)=>(t[e.name]=this.selectedValues.includes(e.name),t)),{}),this.emitValueHandler(!0)}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.selectedValues=this.options.map((t=>t.name)),this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return n("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"checkboxgroup__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}handleParentCheckbox(t){this.selectedValues=t.target.checked?this.options.map((t=>t.name)):[]}renderLabel(){return i("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},i("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return i("div",{key:"fa45026502fd8d46aa537aee03210ad68d30e577",class:`checkboxgroup__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"15ded4fd896920c6244806e49f300c124c27186d",class:"checkboxgroup__wrapper--flex"},i("vaadin-checkbox",{key:"d7eaa205877f8f12c9ef7d4f77018665806f5c7c",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||"true"===this.defaultValue,indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:t=>this.handleParentCheckbox(t)},this.renderLabel()),this.tooltip&&i("img",{key:"aca39ed398415a6e2cef861be40dad33e0398759",class:"checkboxgroup__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("small",{key:"a1a6e1c3c02edcca572b8826ffba06835ca451c3",class:"checkboxgroup__error-message"},this.errorMessage),i("vaadin-checkbox-group",{key:"9f5f8a945e4ba13d7d0da6d362c15d00a7796b71",theme:"vertical",value:this.selectedValues,"on-value-changed":t=>{this.selectedValues=t.detail.value}},this.options.map((t=>i("vaadin-checkbox",{class:"checkbox__input",name:t.name,value:t.name,label:t.displayName})))))}get element(){return r(this)}static get watchers(){return{isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};Oo.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}vaadin-checkbox-group{margin-top:5px;margin-left:40px}.checkboxgroup{font-family:"Roboto";font-style:normal;font-size:15px}.checkboxgroup__wrapper{position:relative}.checkboxgroup__wrapper--flex{display:flex;gap:5px;align-content:flex-start}.checkboxgroup__wrapper--relative{position:relative;display:inline}.checkboxgroup__input{vertical-align:baseline}.checkboxgroup__input[indeterminate]::part(checkbox)::after,.checkboxgroup__input[indeterminate]::part(checkbox),.checkboxgroup__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkboxgroup__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;padding-left:10px;vertical-align:baseline}.checkboxgroup__label-text{font-size:16px}.checkboxgroup__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkboxgroup__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkboxgroup__tooltip-icon{width:16px;height:auto}.checkboxgroup__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkboxgroup__tooltip.visible{opacity:1}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}';const zo=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.value="",this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleClick(){this.value=this.inputReference.checked.toString(),this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return n("requiredError",this.language)}renderLabel(){return i("label",{class:"checkbox__label",htmlFor:`${this.name}__input`},i("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?i("div",{class:"checkbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return i("div",{key:"0aae00d291d1da02adae1bc91e79ccd579aa5c7f",class:`checkbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("input",{key:"4b8c61d322b5065d8abe4e2687e270511fadc97f",class:"checkbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.inputReference=t,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel(),i("small",{key:"934263cb58a0d379e8b7dc1f5004ad7e61c63ce0",class:"checkbox__error-message"},this.errorMessage),i("div",{key:"88cc71329d88b6325d792226e64ff7f93e940178",class:"checkbox__wrapper--relative"},this.tooltip&&i("img",{key:"3708dc613dc920bac6557f2a8020bbafd97d9127",class:"checkbox__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};zo.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.checkbox__label-text{font-size:16px}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.checkbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.checkbox__tooltip-icon{width:16px;height:auto}.checkbox__tooltip{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.checkbox__tooltip.visible{opacity:1}';
1728
1728
  /**
1729
1729
  * @license
1730
1730
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1731
1731
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1732
1732
  */
1733
- class zo extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}l(zo);const Go=(t,...e)=>{Et(`lumo-${t}`,e)};
1733
+ class Ro extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}l(Ro);const Mo=(t,...e)=>{wt(`lumo-${t}`,e)};
1734
1734
  /**
1735
1735
  * @license
1736
1736
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1737
1737
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1738
- */Go("color-props",f`
1738
+ */Mo("color-props",f`
1739
1739
  :host {
1740
1740
  /* Base (background) */
1741
1741
  --lumo-base-color: #fff;
@@ -1935,7 +1935,7 @@ class zo extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
1935
1935
  background-color: var(--lumo-contrast-10pct);
1936
1936
  border-radius: var(--lumo-border-radius-m);
1937
1937
  }
1938
- `,{moduleId:"lumo-color"}),Go("sizing-props",f`
1938
+ `,{moduleId:"lumo-color"}),Mo("sizing-props",f`
1939
1939
  :host {
1940
1940
  --lumo-size-xs: 1.625rem;
1941
1941
  --lumo-size-s: 1.875rem;
@@ -1956,7 +1956,7 @@ class zo extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
1956
1956
  --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
1957
1957
  --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
1958
1958
  }
1959
- `,Go("style-props",f`
1959
+ `,Mo("style-props",f`
1960
1960
  :host {
1961
1961
  /* Border radius */
1962
1962
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -1979,7 +1979,7 @@ class zo extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
1979
1979
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
1980
1980
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1981
1981
  */
1982
- const Uo=f`
1982
+ const Go=f`
1983
1983
  :host {
1984
1984
  /* prettier-ignore */
1985
1985
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -2091,7 +2091,7 @@ const Uo=f`
2091
2091
  border-left: none;
2092
2092
  border-right: 2px solid var(--lumo-contrast-30pct);
2093
2093
  }
2094
- `,{moduleId:"lumo-typography"}),Go("typography-props",Uo),vt("vaadin-input-container",f`
2094
+ `,{moduleId:"lumo-typography"}),Mo("typography-props",Go),vt("vaadin-input-container",f`
2095
2095
  :host {
2096
2096
  background-color: var(--lumo-contrast-10pct);
2097
2097
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -2264,7 +2264,7 @@ const Uo=f`
2264
2264
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
2265
2265
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2266
2266
  */
2267
- class Mo extends(wt(sr(Li))){static get is(){return"vaadin-input-container"}static get template(){return Ui`
2267
+ class Uo extends(Et(sr(Bi))){static get is(){return"vaadin-input-container"}static get template(){return Gi`
2268
2268
  <style>
2269
2269
  :host {
2270
2270
  display: flex;
@@ -2334,18 +2334,18 @@ class Mo extends(wt(sr(Li))){static get is(){return"vaadin-input-container"}stat
2334
2334
  <slot name="prefix"></slot>
2335
2335
  <slot></slot>
2336
2336
  <slot name="suffix"></slot>
2337
- `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",(t=>{t.target===this&&t.preventDefault()})),this.addEventListener("click",(t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((t=>t.focus&&t.focus()))}))}}l(Mo);
2337
+ `}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",(t=>{t.target===this&&t.preventDefault()})),this.addEventListener("click",(t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((t=>t.focus&&t.focus()))}))}}l(Uo);
2338
2338
  /**
2339
2339
  * @license
2340
2340
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2341
2341
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2342
2342
  */
2343
- class Lo extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}l(Lo);const Po=(t,...e)=>{Et(`lumo-${t}`,e)};
2343
+ class Bo extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}l(Bo);const Lo=(t,...e)=>{wt(`lumo-${t}`,e)};
2344
2344
  /**
2345
2345
  * @license
2346
2346
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2347
2347
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2348
- */Po("sizing-props",f`
2348
+ */Lo("sizing-props",f`
2349
2349
  :host {
2350
2350
  --lumo-size-xs: 1.625rem;
2351
2351
  --lumo-size-s: 1.875rem;
@@ -2360,7 +2360,7 @@ class Lo extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
2360
2360
  /* For backwards compatibility */
2361
2361
  --lumo-icon-size: var(--lumo-icon-size-m);
2362
2362
  }
2363
- `),Po("spacing-props",f`
2363
+ `),Lo("spacing-props",f`
2364
2364
  :host {
2365
2365
  /* Square */
2366
2366
  --lumo-space-xs: 0.25rem;
@@ -2389,7 +2389,7 @@ class Lo extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
2389
2389
  --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
2390
2390
  --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
2391
2391
  }
2392
- `,Po("style-props",f`
2392
+ `,Lo("style-props",f`
2393
2393
  :host {
2394
2394
  /* Border radius */
2395
2395
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -2406,7 +2406,7 @@ class Lo extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
2406
2406
  /* Clickable element cursor */
2407
2407
  --lumo-clickable-cursor: default;
2408
2408
  }
2409
- `),Po("color-props",f`
2409
+ `),Lo("color-props",f`
2410
2410
  :host {
2411
2411
  /* Base (background) */
2412
2412
  --lumo-base-color: #fff;
@@ -2612,7 +2612,7 @@ class Lo extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
2612
2612
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2613
2613
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2614
2614
  */
2615
- const Bo=f`
2615
+ const Po=f`
2616
2616
  :host {
2617
2617
  /* prettier-ignore */
2618
2618
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -2724,13 +2724,13 @@ const Bo=f`
2724
2724
  border-left: none;
2725
2725
  border-right: 2px solid var(--lumo-contrast-30pct);
2726
2726
  }
2727
- `,{moduleId:"lumo-typography"}),Po("typography-props",Bo);
2727
+ `,{moduleId:"lumo-typography"}),Lo("typography-props",Po);
2728
2728
  /**
2729
2729
  * @license
2730
2730
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2731
2731
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2732
2732
  */
2733
- const Fo=f`
2733
+ const jo=f`
2734
2734
  :host {
2735
2735
  top: var(--lumo-space-m);
2736
2736
  right: var(--lumo-space-m);
@@ -2793,13 +2793,13 @@ const Fo=f`
2793
2793
  opacity: 1;
2794
2794
  }
2795
2795
  }
2796
- `;vt("",Fo,{moduleId:"lumo-overlay"});
2796
+ `;vt("",jo,{moduleId:"lumo-overlay"});
2797
2797
  /**
2798
2798
  * @license
2799
2799
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
2800
2800
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2801
2801
  */
2802
- const jo=f`
2802
+ const Ho=f`
2803
2803
  :host([opening]),
2804
2804
  :host([closing]) {
2805
2805
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -2829,7 +2829,7 @@ const jo=f`
2829
2829
  opacity: 0;
2830
2830
  }
2831
2831
  }
2832
- `;vt("",jo,{moduleId:"lumo-menu-overlay-core"});const Vo=[Fo,jo,f`
2832
+ `;vt("",Ho,{moduleId:"lumo-menu-overlay-core"});const Fo=[jo,Ho,f`
2833
2833
  /* Small viewport (bottom sheet) styles */
2834
2834
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
2835
2835
  @media (max-width: 420px), (max-height: 420px) {
@@ -2891,7 +2891,7 @@ const jo=f`
2891
2891
  transform: translateY(150%);
2892
2892
  }
2893
2893
  }
2894
- `];vt("",Vo,{moduleId:"lumo-menu-overlay"}),vt("vaadin-date-picker-overlay",[Vo,f`
2894
+ `];vt("",Fo,{moduleId:"lumo-menu-overlay"}),vt("vaadin-date-picker-overlay",[Fo,f`
2895
2895
  [part='overlay'] {
2896
2896
  /*
2897
2897
  Width:
@@ -3194,30 +3194,30 @@ const jo=f`
3194
3194
  * Copyright 2019 Google LLC
3195
3195
  * SPDX-License-Identifier: BSD-3-Clause
3196
3196
  */
3197
- const qo=window,Wo=qo.ShadowRoot&&(void 0===qo.ShadyCSS||qo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yo=Symbol(),Ho=new WeakMap;class Xo{constructor(t,e,i){if(this._$cssResult$=!0,i!==Yo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Wo&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Ho.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Ho.set(e,t))}return t}toString(){return this.cssText}}const Ko=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1]),t[0]);return new Xo(i,t,Yo)},Zo=Wo?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new Xo("string"==typeof t?t:t+"",void 0,Yo))(e)})(t):t
3197
+ const qo=window,Vo=qo.ShadowRoot&&(void 0===qo.ShadyCSS||qo.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Wo=Symbol(),Yo=new WeakMap;class Ko{constructor(t,e,i){if(this._$cssResult$=!0,i!==Wo)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Vo&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Yo.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Yo.set(e,t))}return t}toString(){return this.cssText}}const Xo=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1]),t[0]);return new Ko(i,t,Wo)},$o=Vo?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new Ko("string"==typeof t?t:t+"",void 0,Wo))(e)})(t):t
3198
3198
  /**
3199
3199
  * @license
3200
3200
  * Copyright 2017 Google LLC
3201
3201
  * SPDX-License-Identifier: BSD-3-Clause
3202
- */;var $o;const Jo=window,Qo=Jo.trustedTypes,ts=Qo?Qo.emptyScript:"",es=Jo.reactiveElementPolyfillSupport,is={toAttribute(t,e){switch(e){case Boolean:t=t?ts: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}},rs=(t,e)=>e!==t&&(e==e||t==t),os={attribute:!0,type:String,converter:is,reflect:!1,hasChanged:rs},ss="finalized";class ns 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 r=this._$Ep(i,e);void 0!==r&&(this._$Ev.set(r,i),t.push(r))})),t}static createProperty(t,e=os){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,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||os}static finalize(){if(this.hasOwnProperty(ss))return!1;this[ss]=!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(Zo(t))}else void 0!==t&&e.push(Zo(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{Wo?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),r=qo.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=os){var r;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const s=(void 0!==(null===(r=i.converter)||void 0===r?void 0:r.toAttribute)?i.converter:is).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,o=r._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=r.getPropertyOptions(o),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:is;this._$El=o,this[o]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||rs)(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))):r=!1),!this.isUpdatePending&&r&&(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){}}
3202
+ */;var Zo;const Jo=window,Qo=Jo.trustedTypes,ts=Qo?Qo.emptyScript:"",es=Jo.reactiveElementPolyfillSupport,is={toAttribute(t,e){switch(e){case Boolean:t=t?ts: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}},rs=(t,e)=>e!==t&&(e==e||t==t),os={attribute:!0,type:String,converter:is,reflect:!1,hasChanged:rs},ss="finalized";class ns 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 r=this._$Ep(i,e);void 0!==r&&(this._$Ev.set(r,i),t.push(r))})),t}static createProperty(t,e=os){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,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||os}static finalize(){if(this.hasOwnProperty(ss))return!1;this[ss]=!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($o(t))}else void 0!==t&&e.push($o(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{Vo?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),r=qo.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=os){var r;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const s=(void 0!==(null===(r=i.converter)||void 0===r?void 0:r.toAttribute)?i.converter:is).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,o=r._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=r.getPropertyOptions(o),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:is;this._$El=o,this[o]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||rs)(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))):r=!1),!this.isUpdatePending&&r&&(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){}}
3203
3203
  /**
3204
3204
  * @license
3205
3205
  * Copyright 2017 Google LLC
3206
3206
  * SPDX-License-Identifier: BSD-3-Clause
3207
3207
  */
3208
- var as;ns[ss]=!0,ns.elementProperties=new Map,ns.elementStyles=[],ns.shadowRootOptions={mode:"open"},null==es||es({ReactiveElement:ns}),(null!==($o=Jo.reactiveElementVersions)&&void 0!==$o?$o:Jo.reactiveElementVersions=[]).push("1.6.3");const ls=window,hs=ls.trustedTypes,cs=hs?hs.createPolicy("lit-html",{createHTML:t=>t}):void 0,us="$lit$",ds=`lit$${(Math.random()+"").slice(9)}$`,ms="?"+ds,ps=`<${ms}>`,fs=document,vs=()=>fs.createComment(""),gs=t=>null===t||"object"!=typeof t&&"function"!=typeof t,bs=Array.isArray,_s="[ \t\n\f\r]",ys=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ws=/-->/g,Es=/>/g,xs=RegExp(`>|${_s}(?:([^\\s"'>=/]+)(${_s}*=${_s}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),As=/'/g,ks=/"/g,Ss=/^(?:script|style|textarea|title)$/i,Is=Symbol.for("lit-noChange"),Ts=Symbol.for("lit-nothing"),Ds=new WeakMap,Ns=fs.createTreeWalker(fs,129,null,!1);function Os(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==cs?cs.createHTML(e):e}class Cs{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,s=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,r=[];let o,s=2===e?"<svg>":"",n=ys;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===ys?"!--"===l[1]?n=ws:void 0!==l[1]?n=Es:void 0!==l[2]?(Ss.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=xs):void 0!==l[3]&&(n=xs):n===xs?">"===l[0]?(n=null!=o?o:ys,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?xs:'"'===l[3]?ks:As):n===ks||n===As?n=xs:n===ws||n===Es?n=ys:(n=xs,o=void 0);const u=n===xs&&t[e+1].startsWith("/>")?" ":"";s+=n===ys?i+ps:h>=0?(r.push(a),i.slice(0,h)+us+i.slice(h)+ds+u):i+ds+(-2===h?(r.push(void 0),e):u)}return[Os(t,s+(t[i]||"<?>")+(2===e?"</svg>":"")),r]})(t,e);if(this.el=Cs.createElement(l,i),Ns.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=Ns.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(us)||e.startsWith(ds)){const i=h[s++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+us).split(ds),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?Ms:"?"===e[1]?Ps:"@"===e[1]?Bs:Us})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(Ss.test(r.tagName)){const t=r.textContent.split(ds),e=t.length-1;if(e>0){r.textContent=hs?hs.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],vs()),Ns.nextNode(),a.push({type:2,index:++o});r.append(t[e],vs())}}}else if(8===r.nodeType)if(r.data===ms)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(ds,t+1));)a.push({type:7,index:o}),t+=ds.length-1}o++}}static createElement(t,e){const i=fs.createElement("template");return i.innerHTML=t,i}}function Rs(t,e,i=t,r){var o,s,n,a;if(e===Is)return e;let l=void 0!==r?null===(o=i._$Co)||void 0===o?void 0:o[r]:i._$Cl;const h=gs(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,r)),void 0!==r?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[r]=l:i._$Cl=l),void 0!==l&&(e=Rs(t,l._$AS(t,e.values),l,r)),e}class zs{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:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:fs).importNode(i,!0);Ns.currentNode=o;let s=Ns.nextNode(),n=0,a=0,l=r[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new Gs(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new Fs(s,this,t)),this._$AV.push(e),l=r[++a]}n!==(null==l?void 0:l.index)&&(s=Ns.nextNode(),n++)}return Ns.currentNode=fs,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Gs{constructor(t,e,i,r){var o;this.type=2,this._$AH=Ts,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Rs(this,t,e),gs(t)?t===Ts||null==t||""===t?(this._$AH!==Ts&&this._$AR(),this._$AH=Ts):t!==this._$AH&&t!==Is&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>bs(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Ts&&gs(this._$AH)?this._$AA.nextSibling.data=t:this.$(fs.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Cs.createElement(Os(r.h,r.h[0]),this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new zs(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Ds.get(t.strings);return void 0===e&&Ds.set(t.strings,e=new Cs(t)),e}T(t){bs(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new Gs(this.k(vs()),this.k(vs()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$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 Us{constructor(t,e,i,r,o){this.type=1,this._$AH=Ts,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ts}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let s=!1;if(void 0===o)t=Rs(this,t,e,0),s=!gs(t)||t!==this._$AH&&t!==Is,s&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=Rs(this,r[i+n],e,n),a===Is&&(a=this._$AH[n]),s||(s=!gs(a)||a!==this._$AH[n]),a===Ts?t=Ts:t!==Ts&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===Ts?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Ms extends Us{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ts?void 0:t}}const Ls=hs?hs.emptyScript:"";class Ps extends Us{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Ts?this.element.setAttribute(this.name,Ls):this.element.removeAttribute(this.name)}}class Bs extends Us{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=Rs(this,t,e,0))&&void 0!==i?i:Ts)===Is)return;const r=this._$AH,o=t===Ts&&r!==Ts||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==Ts&&(r===Ts||o);o&&this.element.removeEventListener(this.name,this,r),s&&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 Fs{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){Rs(this,t)}}const js=ls.litHtmlPolyfillSupport;
3208
+ var as;ns[ss]=!0,ns.elementProperties=new Map,ns.elementStyles=[],ns.shadowRootOptions={mode:"open"},null==es||es({ReactiveElement:ns}),(null!==(Zo=Jo.reactiveElementVersions)&&void 0!==Zo?Zo:Jo.reactiveElementVersions=[]).push("1.6.3");const ls=window,hs=ls.trustedTypes,cs=hs?hs.createPolicy("lit-html",{createHTML:t=>t}):void 0,us="$lit$",ds=`lit$${(Math.random()+"").slice(9)}$`,ms="?"+ds,ps=`<${ms}>`,fs=document,vs=()=>fs.createComment(""),gs=t=>null===t||"object"!=typeof t&&"function"!=typeof t,bs=Array.isArray,_s="[ \t\n\f\r]",ys=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Es=/-->/g,ws=/>/g,xs=RegExp(`>|${_s}(?:([^\\s"'>=/]+)(${_s}*=${_s}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),ks=/'/g,As=/"/g,Ss=/^(?:script|style|textarea|title)$/i,Cs=Symbol.for("lit-noChange"),Ts=Symbol.for("lit-nothing"),Ns=new WeakMap,Is=fs.createTreeWalker(fs,129,null,!1);function Ds(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==cs?cs.createHTML(e):e}class Os{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,s=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,r=[];let o,s=2===e?"<svg>":"",n=ys;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===ys?"!--"===l[1]?n=Es:void 0!==l[1]?n=ws:void 0!==l[2]?(Ss.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=xs):void 0!==l[3]&&(n=xs):n===xs?">"===l[0]?(n=null!=o?o:ys,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?xs:'"'===l[3]?As:ks):n===As||n===ks?n=xs:n===Es||n===ws?n=ys:(n=xs,o=void 0);const u=n===xs&&t[e+1].startsWith("/>")?" ":"";s+=n===ys?i+ps:h>=0?(r.push(a),i.slice(0,h)+us+i.slice(h)+ds+u):i+ds+(-2===h?(r.push(void 0),e):u)}return[Ds(t,s+(t[i]||"<?>")+(2===e?"</svg>":"")),r]})(t,e);if(this.el=Os.createElement(l,i),Is.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=Is.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(us)||e.startsWith(ds)){const i=h[s++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+us).split(ds),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?Us:"?"===e[1]?Ls:"@"===e[1]?Ps:Gs})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(Ss.test(r.tagName)){const t=r.textContent.split(ds),e=t.length-1;if(e>0){r.textContent=hs?hs.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],vs()),Is.nextNode(),a.push({type:2,index:++o});r.append(t[e],vs())}}}else if(8===r.nodeType)if(r.data===ms)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(ds,t+1));)a.push({type:7,index:o}),t+=ds.length-1}o++}}static createElement(t,e){const i=fs.createElement("template");return i.innerHTML=t,i}}function zs(t,e,i=t,r){var o,s,n,a;if(e===Cs)return e;let l=void 0!==r?null===(o=i._$Co)||void 0===o?void 0:o[r]:i._$Cl;const h=gs(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,r)),void 0!==r?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[r]=l:i._$Cl=l),void 0!==l&&(e=zs(t,l._$AS(t,e.values),l,r)),e}class Rs{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:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:fs).importNode(i,!0);Is.currentNode=o;let s=Is.nextNode(),n=0,a=0,l=r[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new Ms(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new js(s,this,t)),this._$AV.push(e),l=r[++a]}n!==(null==l?void 0:l.index)&&(s=Is.nextNode(),n++)}return Is.currentNode=fs,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Ms{constructor(t,e,i,r){var o;this.type=2,this._$AH=Ts,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=zs(this,t,e),gs(t)?t===Ts||null==t||""===t?(this._$AH!==Ts&&this._$AR(),this._$AH=Ts):t!==this._$AH&&t!==Cs&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>bs(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==Ts&&gs(this._$AH)?this._$AA.nextSibling.data=t:this.$(fs.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Os.createElement(Ds(r.h,r.h[0]),this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new Rs(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=Ns.get(t.strings);return void 0===e&&Ns.set(t.strings,e=new Os(t)),e}T(t){bs(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new Ms(this.k(vs()),this.k(vs()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$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 Gs{constructor(t,e,i,r,o){this.type=1,this._$AH=Ts,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Ts}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let s=!1;if(void 0===o)t=zs(this,t,e,0),s=!gs(t)||t!==this._$AH&&t!==Cs,s&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=zs(this,r[i+n],e,n),a===Cs&&(a=this._$AH[n]),s||(s=!gs(a)||a!==this._$AH[n]),a===Ts?t=Ts:t!==Ts&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===Ts?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Us extends Gs{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Ts?void 0:t}}const Bs=hs?hs.emptyScript:"";class Ls extends Gs{constructor(){super(...arguments),this.type=4}j(t){t&&t!==Ts?this.element.setAttribute(this.name,Bs):this.element.removeAttribute(this.name)}}class Ps extends Gs{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=zs(this,t,e,0))&&void 0!==i?i:Ts)===Cs)return;const r=this._$AH,o=t===Ts&&r!==Ts||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==Ts&&(r===Ts||o);o&&this.element.removeEventListener(this.name,this,r),s&&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 js{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){zs(this,t)}}const Hs=ls.litHtmlPolyfillSupport;
3209
3209
  /**
3210
3210
  * @license
3211
3211
  * Copyright 2017 Google LLC
3212
3212
  * SPDX-License-Identifier: BSD-3-Clause
3213
3213
  */
3214
- var Vs,qs;null==js||js(Cs,Gs),(null!==(as=ls.litHtmlVersions)&&void 0!==as?as:ls.litHtmlVersions=[]).push("2.8.0");class Ws extends ns{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var r,o;const s=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let n=s._$litPart$;if(void 0===n){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;s._$litPart$=n=new Gs(e.insertBefore(vs(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Is}}Ws.finalized=!0,Ws._$litElement$=!0,null===(Vs=globalThis.litElementHydrateSupport)||void 0===Vs||Vs.call(globalThis,{LitElement:Ws});const Ys=globalThis.litElementPolyfillSupport;null==Ys||Ys({LitElement:Ws}),(null!==(qs=globalThis.litElementVersions)&&void 0!==qs?qs:globalThis.litElementVersions=[]).push("3.3.3");
3214
+ var Fs,qs;null==Hs||Hs(Os,Ms),(null!==(as=ls.litHtmlVersions)&&void 0!==as?as:ls.litHtmlVersions=[]).push("2.8.0");class Vs extends ns{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var r,o;const s=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let n=s._$litPart$;if(void 0===n){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;s._$litPart$=n=new Ms(e.insertBefore(vs(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return Cs}}Vs.finalized=!0,Vs._$litElement$=!0,null===(Fs=globalThis.litElementHydrateSupport)||void 0===Fs||Fs.call(globalThis,{LitElement:Vs});const Ws=globalThis.litElementPolyfillSupport;null==Ws||Ws({LitElement:Vs}),(null!==(qs=globalThis.litElementVersions)&&void 0!==qs?qs:globalThis.litElementVersions=[]).push("3.3.3");
3215
3215
  /**
3216
3216
  * @license
3217
3217
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
3218
3218
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3219
3219
  */
3220
- const Hs=Ko`
3220
+ const Ys=Xo`
3221
3221
  :host {
3222
3222
  display: inline-block;
3223
3223
  position: relative;
@@ -3277,12 +3277,12 @@ const Hs=Ko`
3277
3277
  outline-color: GrayText;
3278
3278
  }
3279
3279
  }
3280
- `,Xs=t=>class extends($r(so(oo(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}}
3280
+ `,Ks=t=>class extends(Zr(so(oo(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}}
3281
3281
  /**
3282
3282
  * @license
3283
3283
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
3284
3284
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3285
- */;vt("vaadin-button",Hs,{moduleId:"vaadin-button-styles"});class Ks extends(Xs(lr(wt(uo(Li))))){static get is(){return"vaadin-button"}static get template(){return(t=>t`
3285
+ */;vt("vaadin-button",Ys,{moduleId:"vaadin-button-styles"});class Xs extends(Ks(lr(Et(uo(Bi))))){static get is(){return"vaadin-button"}static get template(){return(t=>t`
3286
3286
  <div class="vaadin-button-container">
3287
3287
  <span part="prefix" aria-hidden="true">
3288
3288
  <slot name="prefix"></slot>
@@ -3300,7 +3300,7 @@ const Hs=Ko`
3300
3300
  * @license
3301
3301
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
3302
3302
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3303
- */)(Ui)}ready(){super.ready(),this._tooltipController=new vr(this),this.addController(this._tooltipController)}}l(Ks),vt("vaadin-date-picker-year",f`
3303
+ */)(Gi)}ready(){super.ready(),this._tooltipController=new vr(this),this.addController(this._tooltipController)}}l(Xs),vt("vaadin-date-picker-year",f`
3304
3304
  :host([current]) [part='year-number'] {
3305
3305
  color: var(--lumo-primary-text-color);
3306
3306
  }
@@ -3614,7 +3614,7 @@ const Hs=Ko`
3614
3614
  :host([disabled]) * {
3615
3615
  color: var(--lumo-disabled-text-color) !important;
3616
3616
  }
3617
- `,{moduleId:"lumo-month-calendar"});const Zs=document.createElement("template");Zs.innerHTML="\n <style>\n @keyframes vaadin-date-picker-month-calendar-focus-date {\n 50% {\n box-shadow: 0 0 0 2px transparent;\n }\n }\n </style>\n",document.head.appendChild(Zs.content),Po("font-icons",f`
3617
+ `,{moduleId:"lumo-month-calendar"});const $s=document.createElement("template");$s.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($s.content),Lo("font-icons",f`
3618
3618
  @font-face {
3619
3619
  font-family: 'lumo-icons';
3620
3620
  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==)
@@ -3673,7 +3673,7 @@ const Hs=Ko`
3673
3673
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
3674
3674
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3675
3675
  */
3676
- const $s=f`
3676
+ const Zs=f`
3677
3677
  [part$='button'] {
3678
3678
  flex: none;
3679
3679
  width: 1em;
@@ -3700,7 +3700,7 @@ const $s=f`
3700
3700
  font-family: 'lumo-icons';
3701
3701
  display: block;
3702
3702
  }
3703
- `;vt("",$s,{moduleId:"lumo-field-button"});
3703
+ `;vt("",Zs,{moduleId:"lumo-field-button"});
3704
3704
  /**
3705
3705
  * @license
3706
3706
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
@@ -3864,7 +3864,7 @@ const Js=f`
3864
3864
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
3865
3865
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3866
3866
  */
3867
- const tn=[Qs,$s,Js,f`
3867
+ const tn=[Qs,Zs,Js,f`
3868
3868
  :host {
3869
3869
  --lumo-text-field-size: var(--lumo-size-m);
3870
3870
  color: var(--lumo-body-text-color);
@@ -4051,65 +4051,65 @@ let pn=new WeakMap,fn=new WeakMap,vn={},gn=0;const bn=t=>t&&t.nodeType===Node.EL
4051
4051
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
4052
4052
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4053
4053
  */
4054
- class wn{constructor(t,e){this.host=t,this.callback="function"==typeof e?e:()=>t}showModal(){const t=this.callback();this.__showOthers=yn(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}
4054
+ class En{constructor(t,e){this.host=t,this.callback="function"==typeof e?e:()=>t}showModal(){const t=this.callback();this.__showOthers=yn(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}
4055
4055
  /**
4056
4056
  * @license
4057
4057
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
4058
4058
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4059
- */class En{saveFocus(t){this.focusNode=t||Qr()}restoreFocus(){const t=this.focusNode;t&&(Qr()===document.body?setTimeout((()=>t.focus())):t.focus(),this.focusNode=null)}}
4059
+ */class wn{saveFocus(t){this.focusNode=t||Qr()}restoreFocus(){const t=this.focusNode;t&&(Qr()===document.body?setTimeout((()=>t.focus())):t.focus(),this.focusNode=null)}}
4060
4060
  /**
4061
4061
  * @license
4062
4062
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
4063
4063
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4064
- */const xn=[];class An{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(t){const e=[];return ro(t,e)?eo(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(io).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");xn.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,xn.pop()}__onKeyDown(t){this.__trapNode&&this===Array.from(xn).pop()&&"Tab"===t.key&&(t.preventDefault(),this.__focusNextElement(t.shiftKey))}__focusNextElement(t=!1){const e=this.__focusableElements,i=e[(e.length+this.__focusedElementIndex+(t?-1:1))%e.length];i.focus(),"input"===i.localName&&i.select()}}
4064
+ */const xn=[];class kn{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(t){const e=[];return ro(t,e)?eo(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(io).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");xn.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,xn.pop()}__onKeyDown(t){this.__trapNode&&this===Array.from(xn).pop()&&"Tab"===t.key&&(t.preventDefault(),this.__focusNextElement(t.shiftKey))}__focusNextElement(t=!1){const e=this.__focusableElements,i=e[(e.length+this.__focusedElementIndex+(t?-1:1))%e.length];i.focus(),"input"===i.localName&&i.select()}}
4065
4065
  /**
4066
4066
  * @license
4067
4067
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
4068
4068
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4069
- */const kn=t=>class extends(uo(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new wn(this),this.__focusTrapController=new An(this),this.__focusRestorationController=new En}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=Qr();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const i=t.ownerDocument;for(;e&&e!==i&&e!==this;)e=e.parentNode||e.host;return e===this}}
4069
+ */const An=t=>class extends(uo(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new En(this),this.__focusTrapController=new kn(this),this.__focusRestorationController=new wn}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=Qr();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const i=t.ownerDocument;for(;e&&e!==i&&e!==this;)e=e.parentNode||e.host;return e===this}}
4070
4070
  /**
4071
4071
  * @license
4072
4072
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
4073
4073
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4074
- */,Sn=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0)),In=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===Sn().pop())()}bringToFront(){let t="";const e=Sn().filter((t=>t!==this)).pop();e&&(t=e.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Sn().forEach((t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=Sn();let e;for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}}
4074
+ */,Sn=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0)),Cn=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===Sn().pop())()}bringToFront(){let t="";const e=Sn().filter((t=>t!==this)).pop();e&&(t=e.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Sn().forEach((t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=Sn();let e;for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}}
4075
4075
  /**
4076
4076
  * @license
4077
4077
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
4078
4078
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4079
- */,Tn=t=>class extends(kn(In(t))){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),un&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}))}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,e=window.innerWidth,i=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",e>t&&i>t?i-t+"px":"0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,e,i,r){const o=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i,this._oldOwner=e;const s=this._oldRenderer!==t;this._oldRenderer=t;const n=this._oldOpened!==r;this._oldOpened=r,s&&(this.innerHTML="",delete this._$litPart$),r&&t&&(s||n||o)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,e){t?(this._saveFocus(),this._animatedOpening(),nn(this,(()=>{this._trapFocus();const t=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(t)})),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):e&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return!("none"===t.getPropertyValue("display"))&&e&&"none"!==e}_enqueueAnimation(t,e){const i=`__${t}Handler`,r=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(t){const e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(t))return;const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&(!this.modeless||t.composedPath().includes(this.$.overlay))&&"Escape"===t.key){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}}
4079
+ */,Tn=t=>class extends(An(Cn(t))){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),un&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}))}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,e=window.innerWidth,i=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",e>t&&i>t?i-t+"px":"0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,e,i,r){const o=this._oldOwner!==e||this._oldModel!==i;this._oldModel=i,this._oldOwner=e;const s=this._oldRenderer!==t;this._oldRenderer=t;const n=this._oldOpened!==r;this._oldOpened=r,s&&(this.innerHTML="",delete this._$litPart$),r&&t&&(s||n||o)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,e){t?(this._saveFocus(),this._animatedOpening(),nn(this,(()=>{this._trapFocus();const t=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(t)})),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):e&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return!("none"===t.getPropertyValue("display"))&&e&&"none"!==e}_enqueueAnimation(t,e){const i=`__${t}Handler`,r=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",r),delete this[i])};this[i]=r,this.addEventListener("animationend",r)}_flushAnimation(t){const e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(t))return;const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&(!this.modeless||t.composedPath().includes(this.$.overlay))&&"Escape"===t.key){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}}
4080
4080
  /**
4081
4081
  * @license
4082
4082
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
4083
4083
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4084
- */,Dn={start:"top",end:"bottom"},Nn={start:"left",end:"right"},On=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),Cn=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value:0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t=t.assignedSlot?t.assignedSlot:t.parentNode:(e.push(t),t=t.host)}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)}))}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,On.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,On.observe(e))),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const t=this.positionTarget.getBoundingClientRect(),e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__isRTL,r=this.__shouldAlignStartHorizontally(t,i),o=!i&&r||i&&!r;this.style.alignItems=o?"flex-start":"flex-end";const s=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(t,s,this.noVerticalOverlap,Dn,this,e),a=this.__calculatePositionInOneDimension(t,s,this.noHorizontalOverlap,Nn,this,r);Object.assign(this.style,n,a),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!o),this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(t,e){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth);return this.__shouldAlignStart(t,i,r,this.__margins,!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign,this.noHorizontalOverlap,Nn)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);return this.__shouldAlignStart(t,e,i,this.__margins,"top"===this.verticalAlign,this.noVerticalOverlap,Dn)}__shouldAlignStart(t,e,i,r,o,s,n){const a=i-t[s?n.end:n.start]-r[n.end],l=t[s?n.start:n.end]-r[n.start],h=o?a:l;return o===(h>(o?l:a)||h>e)}__adjustBottomProperty(t,e,i){let r;if(t===e.end){if(e.end===Dn.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);i>t&&this.__oldViewportHeight&&(r=i-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===Nn.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);i>t&&this.__oldViewportWidth&&(r=i-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return r}__calculatePositionInOneDimension(t,e,i,r,o,s){const n=s?r.start:r.end,a=s?r.end:r.start,l=parseFloat(o.style[n]||getComputedStyle(o)[n]),h=this.__adjustBottomProperty(n,r,l),c=h?`${h}px`:`${l+(e[s?r.start:r.end]-t[i===s?r.end:r.start])*(s?-1:1)}px`;return{[n]:c,[a]:""}}}
4084
+ */,Nn={start:"top",end:"bottom"},In={start:"left",end:"right"},Dn=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),On=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value:0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t=t.assignedSlot?t.assignedSlot:t.parentNode:(e.push(t),t=t.host)}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)}))}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,Dn.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,Dn.observe(e))),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const t=this.positionTarget.getBoundingClientRect(),e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const i=this.__isRTL,r=this.__shouldAlignStartHorizontally(t,i),o=!i&&r||i&&!r;this.style.alignItems=o?"flex-start":"flex-end";const s=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(t,s,this.noVerticalOverlap,Nn,this,e),a=this.__calculatePositionInOneDimension(t,s,this.noHorizontalOverlap,In,this,r);Object.assign(this.style,n,a),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!o),this.toggleAttribute("start-aligned",o)}__shouldAlignStartHorizontally(t,e){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth);return this.__shouldAlignStart(t,i,r,this.__margins,!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign,this.noHorizontalOverlap,In)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight);return this.__shouldAlignStart(t,e,i,this.__margins,"top"===this.verticalAlign,this.noVerticalOverlap,Nn)}__shouldAlignStart(t,e,i,r,o,s,n){const a=i-t[s?n.end:n.start]-r[n.end],l=t[s?n.start:n.end]-r[n.start],h=o?a:l;return o===(h>(o?l:a)||h>e)}__adjustBottomProperty(t,e,i){let r;if(t===e.end){if(e.end===Nn.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);i>t&&this.__oldViewportHeight&&(r=i-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===In.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);i>t&&this.__oldViewportWidth&&(r=i-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return r}__calculatePositionInOneDimension(t,e,i,r,o,s){const n=s?r.start:r.end,a=s?r.end:r.start,l=parseFloat(o.style[n]||getComputedStyle(o)[n]),h=this.__adjustBottomProperty(n,r,l),c=h?`${h}px`:`${l+(e[s?r.start:r.end]-t[i===s?r.end:r.start])*(s?-1:1)}px`;return{[n]:c,[a]:""}}}
4085
4085
  /**
4086
4086
  * @license
4087
4087
  * Copyright 2019 Google LLC
4088
4088
  * SPDX-License-Identifier: BSD-3-Clause
4089
- */,Rn=globalThis,zn=Rn.ShadowRoot&&(void 0===Rn.ShadyCSS||Rn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Gn=Symbol(),Un=new WeakMap;class Mn{constructor(t,e,i){if(this._$cssResult$=!0,i!==Gn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(zn&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Un.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Un.set(e,t))}return t}toString(){return this.cssText}}const Ln=zn?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new Mn("string"==typeof t?t:t+"",void 0,Gn))(e)})(t):t
4089
+ */,zn=globalThis,Rn=zn.ShadowRoot&&(void 0===zn.ShadyCSS||zn.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Mn=Symbol(),Gn=new WeakMap;class Un{constructor(t,e,i){if(this._$cssResult$=!0,i!==Mn)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Rn&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Gn.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Gn.set(e,t))}return t}toString(){return this.cssText}}const Bn=Rn?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new Un("string"==typeof t?t:t+"",void 0,Mn))(e)})(t):t
4090
4090
  /**
4091
4091
  * @license
4092
4092
  * Copyright 2017 Google LLC
4093
4093
  * SPDX-License-Identifier: BSD-3-Clause
4094
- */,{is:Pn,defineProperty:Bn,getOwnPropertyDescriptor:Fn,getOwnPropertyNames:jn,getOwnPropertySymbols:Vn,getPrototypeOf:qn}=Object,Wn=globalThis,Yn=Wn.trustedTypes,Hn=Yn?Yn.emptyScript:"",Xn=Wn.reactiveElementPolyfillSupport,Kn={toAttribute(t,e){switch(e){case Boolean:t=t?Hn: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}},Zn=(t,e)=>!Pn(t,e),$n={attribute:!0,type:String,converter:Kn,reflect:!1,hasChanged:Zn};Symbol.metadata??=Symbol("metadata"),Wn.litPropertyMetadata??=new WeakMap;class Jn extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=$n){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Bn(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:o}=Fn(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const s=r?.call(this);o.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??$n}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=qn(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...jn(t),...Vn(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}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(Ln(t))}else void 0!==t&&e.push(Ln(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(zn)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),r=Rn.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(void 0!==r&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:Kn).toAttribute(e,i.type);this._$Em=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){const i=this.constructor,r=i._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=i.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Kn;this._$Em=r,this[r]=o.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??Zn)(this[t],e))return;this.P(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],i)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}Jn.elementStyles=[],Jn.shadowRootOptions={mode:"open"},Jn.elementProperties=new Map,Jn.finalized=new Map,Xn?.({ReactiveElement:Jn}),(Wn.reactiveElementVersions??=[]).push("2.0.4");
4094
+ */,{is:Ln,defineProperty:Pn,getOwnPropertyDescriptor:jn,getOwnPropertyNames:Hn,getOwnPropertySymbols:Fn,getPrototypeOf:qn}=Object,Vn=globalThis,Wn=Vn.trustedTypes,Yn=Wn?Wn.emptyScript:"",Kn=Vn.reactiveElementPolyfillSupport,Xn={toAttribute(t,e){switch(e){case Boolean:t=t?Yn: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}},$n=(t,e)=>!Ln(t,e),Zn={attribute:!0,type:String,converter:Xn,reflect:!1,hasChanged:$n};Symbol.metadata??=Symbol("metadata"),Vn.litPropertyMetadata??=new WeakMap;class Jn extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Zn){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Pn(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){const{get:r,set:o}=jn(this.prototype,t)??{get(){return this[e]},set(t){this[e]=t}};return{get(){return r?.call(this)},set(e){const s=r?.call(this);o.call(this,e),this.requestUpdate(t,s,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??Zn}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=qn(this);t.finalize(),void 0!==t.l&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty("finalized"))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty("properties")){const t=this.properties,e=[...Hn(t),...Fn(t)];for(const i of e)this.createProperty(i,t[i])}const t=this[Symbol.metadata];if(null!==t){const e=litPropertyMetadata.get(t);if(void 0!==e)for(const[t,i]of e)this.elementProperties.set(t,i)}this._$Eh=new Map;for(const[t,e]of this.elementProperties){const i=this._$Eu(t,e);void 0!==i&&this._$Eh.set(i,t)}this.elementStyles=this.finalizeStyles(this.styles)}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(Bn(t))}else void 0!==t&&e.push(Bn(t));return e}static _$Eu(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach((t=>t(this)))}addController(t){(this._$EO??=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){const t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{if(Rn)t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet));else for(const i of e){const e=document.createElement("style"),r=zn.litNonce;void 0!==r&&e.setAttribute("nonce",r),e.textContent=i.cssText,t.appendChild(e)}})(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??=this.createRenderRoot(),this.enableUpdating(!0),this._$EO?.forEach((t=>t.hostConnected?.()))}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach((t=>t.hostDisconnected?.()))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EC(t,e){const i=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,i);if(void 0!==r&&!0===i.reflect){const o=(void 0!==i.converter?.toAttribute?i.converter:Xn).toAttribute(e,i.type);this._$Em=t,null==o?this.removeAttribute(r):this.setAttribute(r,o),this._$Em=null}}_$AK(t,e){const i=this.constructor,r=i._$Eh.get(t);if(void 0!==r&&this._$Em!==r){const t=i.getPropertyOptions(r),o="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==t.converter?.fromAttribute?t.converter:Xn;this._$Em=r,this[r]=o.fromAttribute(e,t.type),this._$Em=null}}requestUpdate(t,e,i){if(void 0!==t){if(i??=this.constructor.getPropertyOptions(t),!(i.hasChanged??$n)(this[t],e))return;this.P(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$ET())}P(t,e,i){this._$AL.has(t)||this._$AL.set(t,e),!0===i.reflect&&this._$Em!==t&&(this._$Ej??=new Set).add(t)}async _$ET(){this.isUpdatePending=!0;try{await this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??=this.createRenderRoot(),this._$Ep){for(const[t,e]of this._$Ep)this[t]=e;this._$Ep=void 0}const t=this.constructor.elementProperties;if(t.size>0)for(const[e,i]of t)!0!==i.wrapped||this._$AL.has(e)||void 0===this[e]||this.P(e,this[e],i)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach((t=>t.hostUpdate?.())),this.update(e)):this._$EU()}catch(e){throw t=!1,this._$EU(),e}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach((t=>t.hostUpdated?.())),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&=this._$Ej.forEach((t=>this._$EC(t,this[t]))),this._$EU()}updated(t){}firstUpdated(t){}}Jn.elementStyles=[],Jn.shadowRootOptions={mode:"open"},Jn.elementProperties=new Map,Jn.finalized=new Map,Kn?.({ReactiveElement:Jn}),(Vn.reactiveElementVersions??=[]).push("2.0.4");
4095
4095
  /**
4096
4096
  * @license
4097
4097
  * Copyright 2017 Google LLC
4098
4098
  * SPDX-License-Identifier: BSD-3-Clause
4099
4099
  */
4100
- const Qn=globalThis,ta=Qn.trustedTypes,ea=ta?ta.createPolicy("lit-html",{createHTML:t=>t}):void 0,ia="$lit$",ra=`lit$${Math.random().toFixed(9).slice(2)}$`,oa="?"+ra,sa=`<${oa}>`,na=document,aa=()=>na.createComment(""),la=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ha=Array.isArray,ca="[ \t\n\f\r]",ua=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,da=/-->/g,ma=/>/g,pa=RegExp(`>|${ca}(?:([^\\s"'>=/]+)(${ca}*=${ca}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),fa=/'/g,va=/"/g,ga=/^(?:script|style|textarea|title)$/i,ba=Symbol.for("lit-noChange"),_a=Symbol.for("lit-nothing"),ya=new WeakMap,wa=na.createTreeWalker(na,129);function Ea(t,e){if(!ha(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ea?ea.createHTML(e):e}class xa{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,s=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,r=[];let o,s=2===e?"<svg>":3===e?"<math>":"",n=ua;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===ua?"!--"===l[1]?n=da:void 0!==l[1]?n=ma:void 0!==l[2]?(ga.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=pa):void 0!==l[3]&&(n=pa):n===pa?">"===l[0]?(n=o??ua,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?pa:'"'===l[3]?va:fa):n===va||n===fa?n=pa:n===da||n===ma?n=ua:(n=pa,o=void 0);const u=n===pa&&t[e+1].startsWith("/>")?" ":"";s+=n===ua?i+sa:h>=0?(r.push(a),i.slice(0,h)+ia+i.slice(h)+ra+u):i+ra+(-2===h?e:u)}return[Ea(t,s+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]})(t,e);if(this.el=xa.createElement(l,i),wa.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=wa.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(ia)){const e=h[s++],i=r.getAttribute(t).split(ra),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?Ta:"?"===n[1]?Da:"@"===n[1]?Na:Ia}),r.removeAttribute(t)}else t.startsWith(ra)&&(a.push({type:6,index:o}),r.removeAttribute(t));if(ga.test(r.tagName)){const t=r.textContent.split(ra),e=t.length-1;if(e>0){r.textContent=ta?ta.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],aa()),wa.nextNode(),a.push({type:2,index:++o});r.append(t[e],aa())}}}else if(8===r.nodeType)if(r.data===oa)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(ra,t+1));)a.push({type:7,index:o}),t+=ra.length-1}o++}}static createElement(t,e){const i=na.createElement("template");return i.innerHTML=t,i}}function Aa(t,e,i=t,r){if(e===ba)return e;let o=void 0!==r?i._$Co?.[r]:i._$Cl;const s=la(e)?void 0:e._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),void 0===s?o=void 0:(o=new s(t),o._$AT(t,i,r)),void 0!==r?(i._$Co??=[])[r]=o:i._$Cl=o),void 0!==o&&(e=Aa(t,o._$AS(t,e.values),o,r)),e}class ka{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){const{el:{content:e},parts:i}=this._$AD,r=(t?.creationScope??na).importNode(e,!0);wa.currentNode=r;let o=wa.nextNode(),s=0,n=0,a=i[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new Sa(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new Oa(o,this,t)),this._$AV.push(e),a=i[++n]}s!==a?.index&&(o=wa.nextNode(),s++)}return wa.currentNode=na,r}p(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 Sa{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=_a,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Aa(this,t,e),la(t)?t===_a||null==t||""===t?(this._$AH!==_a&&this._$AR(),this._$AH=_a):t!==this._$AH&&t!==ba&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>ha(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==_a&&la(this._$AH)?this._$AA.nextSibling.data=t:this.T(na.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=xa.createElement(Ea(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new ka(r,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=ya.get(t.strings);return void 0===e&&ya.set(t.strings,e=new xa(t)),e}k(t){ha(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new Sa(this.O(aa()),this.O(aa()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Ia{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,o){this.type=1,this._$AH=_a,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_a}_$AI(t,e=this,i,r){const o=this.strings;let s=!1;if(void 0===o)t=Aa(this,t,e,0),s=!la(t)||t!==this._$AH&&t!==ba,s&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=Aa(this,r[i+n],e,n),a===ba&&(a=this._$AH[n]),s||=!la(a)||a!==this._$AH[n],a===_a?t=_a:t!==_a&&(t+=(a??"")+o[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===_a?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ta extends Ia{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===_a?void 0:t}}class Da extends Ia{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==_a)}}class Na extends Ia{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){if((t=Aa(this,t,e,0)??_a)===ba)return;const i=this._$AH,r=t===_a&&i!==_a||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==_a&&(i===_a||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Oa{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){Aa(this,t)}}const Ca=Qn.litHtmlPolyfillSupport;Ca?.(xa,Sa),(Qn.litHtmlVersions??=[]).push("3.2.1");
4100
+ const Qn=globalThis,ta=Qn.trustedTypes,ea=ta?ta.createPolicy("lit-html",{createHTML:t=>t}):void 0,ia="$lit$",ra=`lit$${Math.random().toFixed(9).slice(2)}$`,oa="?"+ra,sa=`<${oa}>`,na=document,aa=()=>na.createComment(""),la=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ha=Array.isArray,ca="[ \t\n\f\r]",ua=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,da=/-->/g,ma=/>/g,pa=RegExp(`>|${ca}(?:([^\\s"'>=/]+)(${ca}*=${ca}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),fa=/'/g,va=/"/g,ga=/^(?:script|style|textarea|title)$/i,ba=Symbol.for("lit-noChange"),_a=Symbol.for("lit-nothing"),ya=new WeakMap,Ea=na.createTreeWalker(na,129);function wa(t,e){if(!ha(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==ea?ea.createHTML(e):e}class xa{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,s=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,r=[];let o,s=2===e?"<svg>":3===e?"<math>":"",n=ua;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===ua?"!--"===l[1]?n=da:void 0!==l[1]?n=ma:void 0!==l[2]?(ga.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=pa):void 0!==l[3]&&(n=pa):n===pa?">"===l[0]?(n=o??ua,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?pa:'"'===l[3]?va:fa):n===va||n===fa?n=pa:n===da||n===ma?n=ua:(n=pa,o=void 0);const u=n===pa&&t[e+1].startsWith("/>")?" ":"";s+=n===ua?i+sa:h>=0?(r.push(a),i.slice(0,h)+ia+i.slice(h)+ra+u):i+ra+(-2===h?e:u)}return[wa(t,s+(t[i]||"<?>")+(2===e?"</svg>":3===e?"</math>":"")),r]})(t,e);if(this.el=xa.createElement(l,i),Ea.currentNode=this.el.content,2===e||3===e){const t=this.el.content.firstChild;t.replaceWith(...t.childNodes)}for(;null!==(r=Ea.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes())for(const t of r.getAttributeNames())if(t.endsWith(ia)){const e=h[s++],i=r.getAttribute(t).split(ra),n=/([.?@])?(.*)/.exec(e);a.push({type:1,index:o,name:n[2],strings:i,ctor:"."===n[1]?Ta:"?"===n[1]?Na:"@"===n[1]?Ia:Ca}),r.removeAttribute(t)}else t.startsWith(ra)&&(a.push({type:6,index:o}),r.removeAttribute(t));if(ga.test(r.tagName)){const t=r.textContent.split(ra),e=t.length-1;if(e>0){r.textContent=ta?ta.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],aa()),Ea.nextNode(),a.push({type:2,index:++o});r.append(t[e],aa())}}}else if(8===r.nodeType)if(r.data===oa)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(ra,t+1));)a.push({type:7,index:o}),t+=ra.length-1}o++}}static createElement(t,e){const i=na.createElement("template");return i.innerHTML=t,i}}function ka(t,e,i=t,r){if(e===ba)return e;let o=void 0!==r?i._$Co?.[r]:i._$Cl;const s=la(e)?void 0:e._$litDirective$;return o?.constructor!==s&&(o?._$AO?.(!1),void 0===s?o=void 0:(o=new s(t),o._$AT(t,i,r)),void 0!==r?(i._$Co??=[])[r]=o:i._$Cl=o),void 0!==o&&(e=ka(t,o._$AS(t,e.values),o,r)),e}class Aa{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){const{el:{content:e},parts:i}=this._$AD,r=(t?.creationScope??na).importNode(e,!0);Ea.currentNode=r;let o=Ea.nextNode(),s=0,n=0,a=i[0];for(;void 0!==a;){if(s===a.index){let e;2===a.type?e=new Sa(o,o.nextSibling,this,t):1===a.type?e=new a.ctor(o,a.name,a.strings,this,t):6===a.type&&(e=new Da(o,this,t)),this._$AV.push(e),a=i[++n]}s!==a?.index&&(o=Ea.nextNode(),s++)}return Ea.currentNode=na,r}p(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 Sa{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,i,r){this.type=2,this._$AH=_a,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cv=r?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===t?.nodeType&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ka(this,t,e),la(t)?t===_a||null==t||""===t?(this._$AH!==_a&&this._$AR(),this._$AH=_a):t!==this._$AH&&t!==ba&&this._(t):void 0!==t._$litType$?this.$(t):void 0!==t.nodeType?this.T(t):(t=>ha(t)||"function"==typeof t?.[Symbol.iterator])(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==_a&&la(this._$AH)?this._$AA.nextSibling.data=t:this.T(na.createTextNode(t)),this._$AH=t}$(t){const{values:e,_$litType$:i}=t,r="number"==typeof i?this._$AC(t):(void 0===i.el&&(i.el=xa.createElement(wa(i.h,i.h[0]),this.options)),i);if(this._$AH?._$AD===r)this._$AH.p(e);else{const t=new Aa(r,this),i=t.u(this.options);t.p(e),this.T(i),this._$AH=t}}_$AC(t){let e=ya.get(t.strings);return void 0===e&&ya.set(t.strings,e=new xa(t)),e}k(t){ha(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new Sa(this.O(aa()),this.O(aa()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){void 0===this._$AM&&(this._$Cv=t,this._$AP?.(t))}}class Ca{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,r,o){this.type=1,this._$AH=_a,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=_a}_$AI(t,e=this,i,r){const o=this.strings;let s=!1;if(void 0===o)t=ka(this,t,e,0),s=!la(t)||t!==this._$AH&&t!==ba,s&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=ka(this,r[i+n],e,n),a===ba&&(a=this._$AH[n]),s||=!la(a)||a!==this._$AH[n],a===_a?t=_a:t!==_a&&(t+=(a??"")+o[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===_a?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}}class Ta extends Ca{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===_a?void 0:t}}class Na extends Ca{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==_a)}}class Ia extends Ca{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){if((t=ka(this,t,e,0)??_a)===ba)return;const i=this._$AH,r=t===_a&&i!==_a||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,o=t!==_a&&(i===_a||r);r&&this.element.removeEventListener(this.name,this,i),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){"function"==typeof this._$AH?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}}class Da{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){ka(this,t)}}const Oa=Qn.litHtmlPolyfillSupport;Oa?.(xa,Sa),(Qn.litHtmlVersions??=[]).push("3.2.1");
4101
4101
  /**
4102
4102
  * @license
4103
4103
  * Copyright 2017 Google LLC
4104
4104
  * SPDX-License-Identifier: BSD-3-Clause
4105
4105
  */
4106
- class Ra extends Jn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const r=i?.renderBefore??e;let o=r._$litPart$;if(void 0===o){const t=i?.renderBefore??null;r._$litPart$=o=new Sa(e.insertBefore(aa(),t),t,void 0,i??{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ba}}Ra._$litElement$=!0,Ra.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:Ra});const za=globalThis.litElementPolyfillSupport;za?.({LitElement:Ra}),(globalThis.litElementVersions??=[]).push("4.1.1");
4106
+ class za extends Jn{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){const t=super.createRenderRoot();return this.renderOptions.renderBefore??=t.firstChild,t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{const r=i?.renderBefore??e;let o=r._$litPart$;if(void 0===o){const t=i?.renderBefore??null;r._$litPart$=o=new Sa(e.insertBefore(aa(),t),t,void 0,i??{})}return o._$AI(t),o})(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return ba}}za._$litElement$=!0,za.finalized=!0,globalThis.litElementHydrateSupport?.({LitElement:za});const Ra=globalThis.litElementPolyfillSupport;Ra?.({LitElement:za}),(globalThis.litElementVersions??=[]).push("4.1.1");
4107
4107
  /**
4108
4108
  * @license
4109
4109
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
4110
4110
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4111
4111
  */
4112
- const Ga=((t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1]),t[0]);return new Mn(i,t,Gn)})`
4112
+ const Ma=((t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1]),t[0]);return new Un(i,t,Mn)})`
4113
4113
  :host {
4114
4114
  z-index: 200;
4115
4115
  position: fixed;
@@ -4178,7 +4178,7 @@ const Ga=((t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0==
4178
4178
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
4179
4179
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4180
4180
  */
4181
- vt("vaadin-date-picker-overlay",[Ga,Ko`
4181
+ vt("vaadin-date-picker-overlay",[Ma,Xo`
4182
4182
  [part='overlay'] {
4183
4183
  display: flex;
4184
4184
  flex: auto;
@@ -4193,36 +4193,36 @@ vt("vaadin-date-picker-overlay",[Ga,Ko`
4193
4193
  outline: 3px solid;
4194
4194
  }
4195
4195
  }
4196
- `],{moduleId:"vaadin-date-picker-overlay-styles"});class Ua extends(Cn(Tn(sr(wt(Li))))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ui`
4196
+ `],{moduleId:"vaadin-date-picker-overlay-styles"});class Ga extends(On(Tn(sr(Et(Bi))))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Gi`
4197
4197
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
4198
4198
  <div part="overlay" id="overlay">
4199
4199
  <div part="content" id="content">
4200
4200
  <slot></slot>
4201
4201
  </div>
4202
4202
  </div>
4203
- `}}function Ma(t,e){return t instanceof Date&&e instanceof Date&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function La(t,e,i){return(!e||t>=e)&&(!i||t<=i)}function Pa(t,e){return e.filter((t=>void 0!==t)).reduce(((e,i)=>i?e?Math.abs(t.getTime()-i.getTime())<Math.abs(e.getTime()-t.getTime())?i:e:i:e))}function Ba(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function Fa(t){const e=new Date,i=new Date(e);return i.setDate(1),i.setMonth(parseInt(t)+e.getMonth()),i}function ja(t){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!e)return;const i=new Date(0,0);return i.setFullYear(parseInt(e[1],10)),i.setMonth(parseInt(e[2],10)-1),i.setDate(parseInt(e[3],10)),i}
4203
+ `}}function Ua(t,e){return t instanceof Date&&e instanceof Date&&t.getFullYear()===e.getFullYear()&&t.getMonth()===e.getMonth()&&t.getDate()===e.getDate()}function Ba(t,e,i){return(!e||t>=e)&&(!i||t<=i)}function La(t,e){return e.filter((t=>void 0!==t)).reduce(((e,i)=>i?e?Math.abs(t.getTime()-i.getTime())<Math.abs(e.getTime()-t.getTime())?i:e:i:e))}function Pa(t){return{day:t.getDate(),month:t.getMonth(),year:t.getFullYear()}}function ja(t){const e=new Date,i=new Date(e);return i.setDate(1),i.setMonth(parseInt(t)+e.getMonth()),i}function Ha(t){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(t);if(!e)return;const i=new Date(0,0);return i.setFullYear(parseInt(e[1],10)),i.setMonth(parseInt(e[2],10)-1),i.setDate(parseInt(e[3],10)),i}
4204
4204
  /**
4205
4205
  * @license
4206
4206
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
4207
4207
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4208
- */l(Ua);const Va=document.createElement("template");Va.innerHTML='\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class qa extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Va.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+2*this.bufferSize?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach((t=>{this.$[t.id]=t})),this.$.scroller.addEventListener("scroll",(()=>this._scroll())),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=2*this._initialScroll+"px",hn&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))})),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t<this._buffers[0].translateY+e;(t>this._buffers[1].translateY+e||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Ji.debounce(this._debouncerScrollFinish,Hi.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();this._isVisible(this._buffers[0],t)||this._isVisible(this._buffers[1],t)||(this.position=this.position)}))}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach((t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`})),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Ji.debounce(this._debouncerUpdateClones,Hi.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()})),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach((e=>{for(let i=0;i<this.bufferSize;i++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const r=`vaadin-infinite-scroller-item-content-${pr()}`,o=document.createElement("slot");o.setAttribute("name",r),o._itemWrapper=i,e.appendChild(o),i.setAttribute("slot",r),this.appendChild(i),this._isVisible(i,t)&&this._ensureStampedInstance(i)}})),requestAnimationFrame((()=>{this._finishInit()}))}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach((i=>{t.instance[i]=e[i]}))}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach(((i,r)=>{if(!i.updated){const o=this._firstIndex+this.bufferSize*r;[...i.children].forEach(((i,r)=>{const s=i._itemWrapper;t&&!this._isVisible(s,e)||this._updateElement(s.instance,o+r)})),i.updated=!0}}))}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}
4208
+ */l(Ga);const Fa=document.createElement("template");Fa.innerHTML='\n <style>\n :host {\n display: block;\n overflow: hidden;\n height: 500px;\n }\n\n #scroller {\n position: relative;\n height: 100%;\n overflow: auto;\n outline: none;\n margin-right: -40px;\n -webkit-overflow-scrolling: touch;\n overflow-x: hidden;\n }\n\n #scroller.notouchscroll {\n -webkit-overflow-scrolling: auto;\n }\n\n #scroller::-webkit-scrollbar {\n display: none;\n }\n\n .buffer {\n position: absolute;\n width: var(--vaadin-infinite-scroller-buffer-width, 100%);\n box-sizing: border-box;\n padding-right: 40px;\n top: var(--vaadin-infinite-scroller-buffer-offset, 0);\n animation: fadein 0.2s;\n }\n\n @keyframes fadein {\n from {\n opacity: 0;\n }\n to {\n opacity: 1;\n }\n }\n </style>\n\n <div id="scroller">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class qa extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Fa.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+2*this.bufferSize?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout((()=>{this.$.scroller.classList.remove("notouchscroll")}),10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach((t=>{this.$[t.id]=t})),this.$.scroller.addEventListener("scroll",(()=>this._scroll())),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=2*this._initialScroll+"px",hn&&(this.$.scroller.tabIndex=-1))}forceUpdate(){this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel())}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach((t=>{[...t.children].forEach((t=>{this._ensureStampedInstance(t._itemWrapper)}))})),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>2*this._initialScroll-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t<this._buffers[0].translateY+e;(t>this._buffers[1].translateY+e||i)&&(this._translateBuffer(i),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Ji.debounce(this._debouncerScrollFinish,Yi.after(200),(()=>{const t=this.$.scroller.getBoundingClientRect();this._isVisible(this._buffers[0],t)||this._isVisible(this._buffers[1],t)||(this.position=this.position)}))}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach((t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`})),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Ji.debounce(this._debouncerUpdateClones,Yi.after(200),(()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()})),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach((e=>{for(let i=0;i<this.bufferSize;i++){const i=document.createElement("div");i.style.height=`${this.itemHeight}px`,i.instance={};const r=`vaadin-infinite-scroller-item-content-${pr()}`,o=document.createElement("slot");o.setAttribute("name",r),o._itemWrapper=i,e.appendChild(o),i.setAttribute("slot",r),this.appendChild(i),this._isVisible(i,t)&&this._ensureStampedInstance(i)}})),requestAnimationFrame((()=>{this._finishInit()}))}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach((i=>{t.instance[i]=e[i]}))}_updateClones(t){this._firstIndex=~~((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach(((i,r)=>{if(!i.updated){const o=this._firstIndex+this.bufferSize*r;[...i.children].forEach(((i,r)=>{const s=i._itemWrapper;t&&!this._isVisible(s,e)||this._updateElement(s.instance,o+r)})),i.updated=!0}}))}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}
4209
4209
  /**
4210
4210
  * @license
4211
4211
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
4212
4212
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4213
- */const Wa=document.createElement("template");Wa.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n",l(class extends qa{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Wa.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=Fa(e)}});
4213
+ */const Va=document.createElement("template");Va.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 270px;\n position: absolute;\n top: 0;\n left: 0;\n right: 0;\n bottom: 0;\n height: 100%;\n }\n </style>\n",l(class extends qa{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Va.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=ja(e)}});
4214
4214
  /**
4215
4215
  * @license
4216
4216
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
4217
4217
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4218
4218
  */
4219
- const Ya=document.createElement("template");Ya.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n",l(class extends qa{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Ya.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}});
4219
+ const Wa=document.createElement("template");Wa.innerHTML="\n <style>\n :host {\n --vaadin-infinite-scroller-item-height: 80px;\n width: 50px;\n display: block;\n height: 100%;\n position: absolute;\n right: 0;\n transform: translateX(100%);\n -webkit-tap-highlight-color: transparent;\n -webkit-user-select: none;\n -moz-user-select: none;\n user-select: none;\n /* Center the year scroller position. */\n --vaadin-infinite-scroller-buffer-offset: 50%;\n }\n\n :host::before {\n content: '';\n display: block;\n background: transparent;\n width: 0;\n height: 0;\n position: absolute;\n left: 0;\n top: 50%;\n transform: translateY(-50%);\n border-width: 6px;\n border-style: solid;\n border-color: transparent;\n border-left-color: #000;\n }\n </style>\n",l(class extends qa{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(Wa.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}});
4220
4220
  /**
4221
4221
  * @license
4222
4222
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
4223
4223
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4224
4224
  */
4225
- class Ha extends(wt(Li)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ui`
4225
+ class Ya extends(Et(Bi)){static get is(){return"vaadin-date-picker-year"}static get template(){return Gi`
4226
4226
  <style>
4227
4227
  :host {
4228
4228
  display: block;
@@ -4241,7 +4241,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
4241
4241
  Code distributed by Google as part of the polymer project is also
4242
4242
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4243
4243
  */
4244
- function Xa(t,e,i,r,o){let s;o&&(s="object"==typeof i&&null!==i,s&&(r=t.__dataTemp[e]));let n=r!==i&&(r==r||i==i);return s&&n&&(t.__dataTemp[e]=i),n}l(Ha);const Ka=Xt((t=>class extends t{_shouldPropertyChange(t,e,i){return Xa(this,t,e,i,!0)}})),Za=Xt((t=>class extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,i){return Xa(this,t,e,i,this.mutableData)}}));Ka._mutablePropertyChange=Xa;
4244
+ function Ka(t,e,i,r,o){let s;o&&(s="object"==typeof i&&null!==i,s&&(r=t.__dataTemp[e]));let n=r!==i&&(r==r||i==i);return s&&n&&(t.__dataTemp[e]=i),n}l(Ya);const Xa=Kt((t=>class extends t{_shouldPropertyChange(t,e,i){return Ka(this,t,e,i,!0)}})),$a=Kt((t=>class extends t{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(t,e,i){return Ka(this,t,e,i,this.mutableData)}}));Xa._mutablePropertyChange=Ka;
4245
4245
  /**
4246
4246
  @license
4247
4247
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -4251,7 +4251,7 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
4251
4251
  Code distributed by Google as part of the polymer project is also
4252
4252
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4253
4253
  */
4254
- let $a=null;function Ja(){return $a}Ja.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Ja,writable:!0}});const Qa=Ti(Ja),tl=Ka(Qa),el=Ti(class{});class il extends el{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let t=this.root.firstChild;t;t=t.nextSibling)e.push(t),t.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let e in t)this._setPendingProperty(e,t[e])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,(t=>{t.model=this,i(t)}));else{let r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(t,e,i)}}_showHideChildren(t){!function(t,e){for(let i=0;i<e.length;i++){let r=e[i];if(Boolean(t)!=Boolean(r.__hideTemplateChildren__))if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),he(he(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const t=r.__polymerReplaced__;t&&he(he(t).parentNode).replaceChild(r,t)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&"textContent"==e?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do{t=t.__dataHost.__dataHost}while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}const rl=Ka(il);function ol(t){let e=t.__dataHost;return e&&e._methodHost||e}function sl(t,e){return function(t,i,r){e.call(t.__templatizeOwner,i.substring(6),r[i])}}function nl(t,e){return function(t,i,r){e.call(t.__templatizeOwner,t,i,r[i])}}function al(t,e,i){if(Ut&&!ol(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=e;let r=(e?e.constructor:il)._parseTemplate(t),o=r.templatizeInstanceClass;o||(o=function(t,e,i){let r=i.mutableData?rl:il;al.mixin&&(r=al.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=i,o.prototype._bindTemplate(t),function(t,e,i,r){let o=i.hostProps||{};for(let e in r.instanceProps){delete o[e];let i=r.notifyInstanceProp;i&&t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:nl(0,i)})}if(r.forwardHostProp&&e.__dataHost)for(let e in o)i.hasHostProps||(i.hasHostProps=!0),t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}})}(o,t,e,i),o}(t,r,i),r.templatizeInstanceClass=o);const s=ol(t);!function(t,e,i,r){let o=i.forwardHostProp;if(o&&e.hasHostProps){const s="template"==t.localName;let n=e.templatizeTemplateClass;if(!n){if(s){let t=i.mutableData?tl:Qa;class r extends t{}n=e.templatizeTemplateClass=r}else{const i=t.constructor;class r extends i{}n=e.templatizeTemplateClass=r}let a=e.hostProps;for(let t in a)n.prototype._addPropertyEffect("_host_"+t,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:sl(0,o)}),n.prototype._createNotifyingProperty("_host_"+t);Pt&&r&&function(t,e,i){const r=i.constructor._properties,{propertyEffects:o}=t,{instanceProps:s}=e;for(let t in o)if(!(r[t]||s&&s[t])){const e=o[t];for(let i=0;i<e.length;i++){const{part:r}=e[i].info;if(!r.signature||!r.signature.static){console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(e,i,r)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),s)!function(t,e){$a=t,Object.setPrototypeOf(t,e.prototype),new e,$a=null}(t,n),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,n.prototype);const i=e.hostProps;for(let e in i)if(e="_host_"+e,e in t){const i=t[e];delete t[e],t.__data[e]=i}}}}(t,r,i,s);let n=class extends o{};return n.prototype._methodHost=s,n.prototype.__dataHost=t,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=r.hostProps,n}
4254
+ let Za=null;function Ja(){return Za}Ja.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Ja,writable:!0}});const Qa=Ti(Ja),tl=Xa(Qa),el=Ti(class{});class il extends el{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let t=this.root.firstChild;t;t=t.nextSibling)e.push(t),t.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let e in t)this._setPendingProperty(e,t[e])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,(t=>{t.model=this,i(t)}));else{let r=this.__dataHost.__dataHost;r&&r._addEventListenerToNode(t,e,i)}}_showHideChildren(t){!function(t,e){for(let i=0;i<e.length;i++){let r=e[i];if(Boolean(t)!=Boolean(r.__hideTemplateChildren__))if(r.nodeType===Node.TEXT_NODE)t?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if("slot"===r.localName)if(t)r.__polymerReplaced__=document.createComment("hidden-slot"),he(he(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const t=r.__polymerReplaced__;t&&he(he(t).parentNode).replaceChild(r,t)}else r.style&&(t?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=t,r._showHideChildren&&r._showHideChildren(t)}}(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&"textContent"==e?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do{t=t.__dataHost.__dataHost}while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}const rl=Xa(il);function ol(t){let e=t.__dataHost;return e&&e._methodHost||e}function sl(t,e){return function(t,i,r){e.call(t.__templatizeOwner,i.substring(6),r[i])}}function nl(t,e){return function(t,i,r){e.call(t.__templatizeOwner,t,i,r[i])}}function al(t,e,i){if(Gt&&!ol(t))throw new Error("strictTemplatePolicy: template owner not trusted");if(i=i||{},t.__templatizeOwner)throw new Error("A <template> can only be templatized once");t.__templatizeOwner=e;let r=(e?e.constructor:il)._parseTemplate(t),o=r.templatizeInstanceClass;o||(o=function(t,e,i){let r=i.mutableData?rl:il;al.mixin&&(r=al.mixin(r));let o=class extends r{};return o.prototype.__templatizeOptions=i,o.prototype._bindTemplate(t),function(t,e,i,r){let o=i.hostProps||{};for(let e in r.instanceProps){delete o[e];let i=r.notifyInstanceProp;i&&t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:nl(0,i)})}if(r.forwardHostProp&&e.__dataHost)for(let e in o)i.hasHostProps||(i.hasHostProps=!0),t.prototype._addPropertyEffect(e,t.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}})}(o,t,e,i),o}(t,r,i),r.templatizeInstanceClass=o);const s=ol(t);!function(t,e,i,r){let o=i.forwardHostProp;if(o&&e.hasHostProps){const s="template"==t.localName;let n=e.templatizeTemplateClass;if(!n){if(s){let t=i.mutableData?tl:Qa;class r extends t{}n=e.templatizeTemplateClass=r}else{const i=t.constructor;class r extends i{}n=e.templatizeTemplateClass=r}let a=e.hostProps;for(let t in a)n.prototype._addPropertyEffect("_host_"+t,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:sl(0,o)}),n.prototype._createNotifyingProperty("_host_"+t);Lt&&r&&function(t,e,i){const r=i.constructor._properties,{propertyEffects:o}=t,{instanceProps:s}=e;for(let t in o)if(!(r[t]||s&&s[t])){const e=o[t];for(let i=0;i<e.length;i++){const{part:r}=e[i].info;if(!r.signature||!r.signature.static){console.warn(`Property '${t}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}(e,i,r)}if(t.__dataProto&&Object.assign(t.__data,t.__dataProto),s)!function(t,e){Za=t,Object.setPrototypeOf(t,e.prototype),new e,Za=null}(t,n),t.__dataTemp={},t.__dataPending=null,t.__dataOld=null,t._enableProperties();else{Object.setPrototypeOf(t,n.prototype);const i=e.hostProps;for(let e in i)if(e="_host_"+e,e in t){const i=t[e];delete t[e],t.__data[e]=i}}}}(t,r,i,s);let n=class extends o{};return n.prototype._methodHost=s,n.prototype.__dataHost=t,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=r.hostProps,n}
4255
4255
  /**
4256
4256
  @license
4257
4257
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -4281,13 +4281,13 @@ The complete set of contributors may be found at http://polymer.github.io/CONTRI
4281
4281
  Code distributed by Google as part of the polymer project is also
4282
4282
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4283
4283
  */
4284
- const ml=Za(Li);class pl extends ml{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:!Wt,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),function(){if(Lt&&!Ct){if(!dl){dl=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=he(he(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let t=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");t.disconnect(),this.__render()}));return t.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=al(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(t,e){let i=this.__instances;for(let r,o=0;o<i.length&&(r=i[o]);o++)r.forwardHostProp(t,e)},notifyInstanceProp:function(t,e,i){if((r=this.as)===(o=e)||de(r,o)||me(r,o)){let r=t[this.itemsIndexAs];e==this.as&&(this.items[r]=i);let o=pe(this.as,`${JSCompiler_renameProperty("items",this)}.${r}`,e);this.notifyPath(o,i)}var r,o}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if("string"==typeof t){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)0===t.indexOf(e[i])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||("items"===t.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=ll.debounce(this.__renderDebouncer,e>0?Ne.after(e):Oe,t.bind(this)),hl.add(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),ul()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null,this.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),Wt&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter(((e,i,r)=>this.__filterFn(t[e],i,r)))),this.__sortFn&&e.sort(((e,i)=>this.__sortFn(t[e],t[i]))),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),r=Math.max(e-i,0),this.__chunkCount=r||1):(r=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+r,t)),this.__shouldMeasureChunk=r===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this.__chunkCount*(this._targetFrameTime/t))||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const r=this.__itemsIdxToInstIdx={};let o;for(o=0;o<e;o++){let e=this.__instances[o],s=i[o],n=t[s];r[s]=o,e?(e._setPendingProperty(this.as,n),e._setPendingProperty(this.indexAs,o),e._setPendingProperty(this.itemsIndexAs,s),e._flushProperties()):this.__insertInstance(n,o,s)}for(let t=this.__instances.length-1;t>=o;t--)this.__detachAndRemoveInstance(t)}__detachInstance(t){let e=this.__instances[t];const i=he(e.root);for(let t=0;t<e.children.length;t++)i.appendChild(e.children[t]);return e}__attachInstance(t,e){e.insertBefore(this.__instances[t].root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let r={};return r[this.as]=t,r[this.indexAs]=e,r[this.itemsIndexAs]=i,new this.__ctor(r)}__insertInstance(t,e,i){const r=this.__stampInstance(t,e,i);let o=this.__instances[e+1],s=o?o.children[0]:this;return he(he(this).parentNode).insertBefore(r.root,s),this.__instances[e]=r,r}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),r=i.indexOf("."),o=r<0?i:i.substring(0,r);if(o==parseInt(o,10)){let t=r<0?"":i.substring(r+1);this.__handleObservedPaths(t);let s=this.__instances[this.__itemsIdxToInstIdx[o]];return s&&(s._setPendingPropertyOrPath(this.as+(t?"."+t:""),e,!1,!0),s._flushProperties()),!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return function(t,e){let i;for(;e;)if(i=e.__dataHost?e:e.__templatizeInstance){if(i.__dataHost==t)return i;e=i.__dataHost}else e=he(e).parentNode;return null}(this.template,t)}}customElements.define(pl.is,pl);
4284
+ const ml=$a(Bi);class pl extends ml{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:!Vt,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),function(){if(Bt&&!Ot){if(!dl){dl=!0;const t=document.createElement("style");t.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(t)}return!0}return!1}()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=he(he(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let t=new MutationObserver((()=>{if(!this.querySelector("template"))throw new Error("dom-repeat requires a <template> child");t.disconnect(),this.__render()}));return t.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=al(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(t,e){let i=this.__instances;for(let r,o=0;o<i.length&&(r=i[o]);o++)r.forwardHostProp(t,e)},notifyInstanceProp:function(t,e,i){if((r=this.as)===(o=e)||de(r,o)||me(r,o)){let r=t[this.itemsIndexAs];e==this.as&&(this.items[r]=i);let o=pe(this.as,`${JSCompiler_renameProperty("items",this)}.${r}`,e);this.notifyPath(o,i)}var r,o}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if("string"==typeof t){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn)if(t){if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)0===t.indexOf(e[i])&&this.__debounceRender(this.__render,this.delay)}}else this.__debounceRender(this.__render,this.delay)}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||("items"===t.path&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=ll.debounce(this.__renderDebouncer,e>0?Ie.after(e):De,t.bind(this)),hl.add(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),ul()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame((()=>{this.__chunkingId=null,this.__continueChunking()}))),this._setRenderedItemCount(this.__instances.length),Vt&&!this.notifyDomChange||this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter(((e,i,r)=>this.__filterFn(t[e],i,r)))),this.__sortFn&&e.sort(((e,i)=>this.__sortFn(t[e],t[i]))),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let r;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),r=Math.max(e-i,0),this.__chunkCount=r||1):(r=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+r,t)),this.__shouldMeasureChunk=r===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime;this.__chunkCount=Math.round(this.__chunkCount*(this._targetFrameTime/t))||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const r=this.__itemsIdxToInstIdx={};let o;for(o=0;o<e;o++){let e=this.__instances[o],s=i[o],n=t[s];r[s]=o,e?(e._setPendingProperty(this.as,n),e._setPendingProperty(this.indexAs,o),e._setPendingProperty(this.itemsIndexAs,s),e._flushProperties()):this.__insertInstance(n,o,s)}for(let t=this.__instances.length-1;t>=o;t--)this.__detachAndRemoveInstance(t)}__detachInstance(t){let e=this.__instances[t];const i=he(e.root);for(let t=0;t<e.children.length;t++)i.appendChild(e.children[t]);return e}__attachInstance(t,e){e.insertBefore(this.__instances[t].root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let r={};return r[this.as]=t,r[this.indexAs]=e,r[this.itemsIndexAs]=i,new this.__ctor(r)}__insertInstance(t,e,i){const r=this.__stampInstance(t,e,i);let o=this.__instances[e+1],s=o?o.children[0]:this;return he(he(this).parentNode).insertBefore(r.root,s),this.__instances[e]=r,r}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),r=i.indexOf("."),o=r<0?i:i.substring(0,r);if(o==parseInt(o,10)){let t=r<0?"":i.substring(r+1);this.__handleObservedPaths(t);let s=this.__instances[this.__itemsIdxToInstIdx[o]];return s&&(s._setPendingPropertyOrPath(this.as+(t?"."+t:""),e,!1,!0),s._flushProperties()),!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return function(t,e){let i;for(;e;)if(i=e.__dataHost?e:e.__templatizeInstance){if(i.__dataHost==t)return i;e=i.__dataHost}else e=he(e).parentNode;return null}(this.template,t)}}customElements.define(pl.is,pl);
4285
4285
  /**
4286
4286
  * @license
4287
4287
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
4288
4288
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4289
4289
  */
4290
- const fl=t=>class extends(oo(t)){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find((t=>Ma(t.date,this.focusedDate)))}ready(){super.ready(),Br(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,e,i){const r=new Date(0,0);r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(1);const o=new Date(0,0);return o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()+1),o.setDate(0),!(e&&i&&e.getMonth()===i.getMonth()&&e.getMonth()===t.getMonth()&&i.getDate()-e.getDate()>=0||La(r,e,i)||La(o,e,i))}_getTitle(t,e){if(void 0!==t&&void 0!==e)return e.formatTitle(e.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300)}_dateAdd(t,e){t.setDate(t.getDate()+e)}_applyFirstDayOfWeek(t,e){if(void 0!==t&&void 0!==e)return t.slice(e).concat(t.slice(0,e))}_getWeekDayNames(t,e){if(void 0===t||void 0===e)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:o}=t,s=this._applyFirstDayOfWeek(r,o);return this._applyFirstDayOfWeek(i,o).map(((t,e)=>({weekDay:t,weekDayShort:s[e]})))}__focusedDateChanged(t,e){Array.isArray(e)&&e.some((e=>Ma(e,t)))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,e){return t&&e&&1===e.firstDayOfWeek}_isToday(t){return Ma(new Date,t)}_getDays(t,e){if(void 0===t||void 0===e)return[];const i=new Date(0,0);for(i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()),i.setDate(1);i.getDay()!==e.firstDayOfWeek;)this._dateAdd(i,-1);const r=[],o=i.getMonth(),s=t.getMonth();for(;i.getMonth()===s||i.getMonth()===o;)r.push(i.getMonth()===s?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(t){return t.reduce(((t,e,i)=>(i%7==0&&t.push([]),t[t.length-1].push(e),t)),[])}_handleTap(t){this.ignoreTaps||this._notTapping||!t.target.date||t.target.hasAttribute("disabled")||(this.selectedDate=t.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:!0,composed:!0})))}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const e=t.reduce(((t,e)=>!t&&e?e:t));
4290
+ const fl=t=>class extends(oo(t)){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find((t=>Ua(t.date,this.focusedDate)))}ready(){super.ready(),Pr(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(t,e,i){const r=new Date(0,0);r.setFullYear(t.getFullYear()),r.setMonth(t.getMonth()),r.setDate(1);const o=new Date(0,0);return o.setFullYear(t.getFullYear()),o.setMonth(t.getMonth()+1),o.setDate(0),!(e&&i&&e.getMonth()===i.getMonth()&&e.getMonth()===t.getMonth()&&i.getDate()-e.getDate()>=0||Ba(r,e,i)||Ba(o,e,i))}_getTitle(t,e){if(void 0!==t&&void 0!==e)return e.formatTitle(e.monthNames[t.getMonth()],t.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300)}_dateAdd(t,e){t.setDate(t.getDate()+e)}_applyFirstDayOfWeek(t,e){if(void 0!==t&&void 0!==e)return t.slice(e).concat(t.slice(0,e))}_getWeekDayNames(t,e){if(void 0===t||void 0===e)return[];const{weekdays:i,weekdaysShort:r,firstDayOfWeek:o}=t,s=this._applyFirstDayOfWeek(r,o);return this._applyFirstDayOfWeek(i,o).map(((t,e)=>({weekDay:t,weekDayShort:s[e]})))}__focusedDateChanged(t,e){Array.isArray(e)&&e.some((e=>Ua(e,t)))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(t){return t?t.getDate():""}_showWeekSeparator(t,e){return t&&e&&1===e.firstDayOfWeek}_isToday(t){return Ua(new Date,t)}_getDays(t,e){if(void 0===t||void 0===e)return[];const i=new Date(0,0);for(i.setFullYear(t.getFullYear()),i.setMonth(t.getMonth()),i.setDate(1);i.getDay()!==e.firstDayOfWeek;)this._dateAdd(i,-1);const r=[],o=i.getMonth(),s=t.getMonth();for(;i.getMonth()===s||i.getMonth()===o;)r.push(i.getMonth()===s?new Date(i.getTime()):null),this._dateAdd(i,1);return r}_getWeeks(t){return t.reduce(((t,e,i)=>(i%7==0&&t.push([]),t[t.length-1].push(e),t)),[])}_handleTap(t){this.ignoreTaps||this._notTapping||!t.target.date||t.target.hasAttribute("disabled")||(this.selectedDate=t.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:t.target.date},bubbles:!0,composed:!0})))}_preventDefault(t){t.preventDefault()}__getWeekNumber(t){const e=t.reduce(((t,e)=>!t&&e?e:t));
4291
4291
  /**
4292
4292
  * @license
4293
4293
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
@@ -4304,7 +4304,7 @@ return function(t){let e=t.getDay();0===e&&(e=7);const i=4-e,r=new Date(t.getTim
4304
4304
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
4305
4305
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4306
4306
  */
4307
- vt("vaadin-month-calendar",Ko`
4307
+ vt("vaadin-month-calendar",Xo`
4308
4308
  :host {
4309
4309
  display: block;
4310
4310
  }
@@ -4360,7 +4360,7 @@ vt("vaadin-month-calendar",Ko`
4360
4360
  outline: 3px solid;
4361
4361
  }
4362
4362
  }
4363
- `,{moduleId:"vaadin-month-calendar-styles"});class vl extends(fl(wt(Li))){static get template(){return Ui`
4363
+ `,{moduleId:"vaadin-month-calendar-styles"});class vl extends(fl(Et(Bi))){static get template(){return Gi`
4364
4364
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
4365
4365
  <table
4366
4366
  id="monthGrid"
@@ -4402,7 +4402,7 @@ vt("vaadin-month-calendar",Ko`
4402
4402
  </template>
4403
4403
  </tbody>
4404
4404
  </table>
4405
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&1===e.firstDayOfWeek?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,i,r,o){const s=["date"];return this.__isDayDisabled(t,r,o)&&s.push("disabled"),this.__isDayFocused(t,e)&&s.push("focused"),this.__isDaySelected(t,i)&&s.push("selected"),this._isToday(t)&&s.push("today"),s.join(" ")}__isDayFocused(t,e){return Ma(t,e)}__isDaySelected(t,e){return Ma(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,i){return!La(t,e,i)}__getDayAriaDisabled(t,e,i){if(void 0!==t&&void 0!==e&&void 0!==i)return this.__isDayDisabled(t,e,i)?"true":void 0}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}l(vl);
4405
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&1===e.firstDayOfWeek?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,i,r,o){const s=["date"];return this.__isDayDisabled(t,r,o)&&s.push("disabled"),this.__isDayFocused(t,e)&&s.push("focused"),this.__isDaySelected(t,i)&&s.push("selected"),this._isToday(t)&&s.push("today"),s.join(" ")}__isDayFocused(t,e){return Ua(t,e)}__isDaySelected(t,e){return Ua(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,i){return!Ba(t,e,i)}__getDayAriaDisabled(t,e,i){if(void 0!==t&&void 0!==e&&void 0!==i)return this.__isDayDisabled(t,e,i)?"true":void 0}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}l(vl);
4406
4406
  /**
4407
4407
  * @license
4408
4408
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
@@ -4413,7 +4413,7 @@ class gl{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=t
4413
4413
  * @license
4414
4414
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
4415
4415
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4416
- */const bl=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}_addListeners(){jr(this.$.scrollers,"pan-y"),Br(this.$.scrollers,"track",this._track.bind(this)),Br(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Br(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Br(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new gl(this._desktopMediaQuery,(t=>{this._desktopMode=t}))),this.addController(new fr(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onTodayButtonKeyDown(t))),Br(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new fr(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onCancelButtonKeyDown(t))),Br(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,e){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,e),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new fr(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",(()=>{this._onMonthScroll()})),t.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()})),t.addEventListener("keydown",(t=>{this.__onMonthCalendarKeyDown(t)})),t.addEventListener("init-done",(()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach((t=>{t.addEventListener("selected-date-changed",(t=>{this.selectedDate=t.detail.value}))})),this.calendars=t})),this._monthScroller=t}}))}__initYearScroller(){this.addController(new fr(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),Br(t,"tap",(t=>{this._onYearTap(t)})),t.addEventListener("custom-scroll",(()=>{this._onYearScroll()})),t.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()})),t.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]})),this._yearScroller=t}}))}__updateCancelButton(t,e){t&&(t.textContent=e&&e.cancel)}__updateTodayButton(t,e,i,r){t&&(t.textContent=e&&e.today,t.disabled=!this._isTodayAllowed(i,r))}__updateCalendars(t,e,i,r,o,s,n,a,l){t&&t.length&&t.forEach((t=>{t.i18n=e,t.minDate=i,t.maxDate=r,t.focusedDate=s,t.selectedDate=o,t.showWeekNumbers=n,t.ignoreTaps=a,l?t.setAttribute("theme",l):t.removeAttribute("theme")}))}__updateYears(t,e,i){t&&t.length&&t.forEach((t=>{t.selectedDate=e,i?t.setAttribute("theme",i):t.removeAttribute("theme")}))}_selectDate(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,e=!0){if(!t)return;const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const r=this._calculateWeekScrollOffset(t);return void this._scrollToPosition(i+r,e)}const r=this._monthScroller.position>i,o=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,s=this._monthScroller.position+o-1<i;r?this._scrollToPosition(i,e):s&&this._scrollToPosition(i-o+1,e)}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(1);let i=0;for(;e.getDate()<t.getDate();)e.setDate(e.getDate()+1),e.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Ji.debounce(this._debouncer,Hi.after(300),(()=>{this._ignoreTaps=!1}))}_formatDisplayed(t,e,i){return t&&e&&"function"==typeof e.formatDate?e.formatDate(Ba(t)):i}_onTodayTap(){const t=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2);this._scrollToPosition(this._monthScroller.position+e/this._yearScroller.itemHeight*12,!0)}}_scrollToPosition(t,e){if(void 0!==this._targetPosition)return void(this._targetPosition=t);if(!e)return this._monthScroller.position=t,this._targetPosition=void 0,this._repositionYearScroller(),void this.__tryFocusDate();let i;this._targetPosition=t,this._revealPromise=new Promise((t=>{i=t}));let r=0;const o=this._monthScroller.position,s=t=>{r||(r=t);const e=t-r;if(e<this.scrollDuration){const t=((t,e,i)=>(t/=this.scrollDuration/2)<1?i/2*t*t+e:-i/2*((t-=1)*(t-2)-1)+e)(e,o,this._targetPosition-o);this._monthScroller.position=t,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:o}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10||(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),this._translateX=this._limit(this._translateX+t.detail.ddx,{min:0,max:this._yearScrollerWidth}))}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(t){t?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return Fa(t).getFullYear()}_differenceInMonths(t,e){return 12*(t.getFullYear()-e.getFullYear())-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){Ma(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let e=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),e=!0;break;case"ArrowUp":this._moveFocusByDays(-7),e=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),e=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),e=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),e=!0;break;case" ":this.__toggleDate(this.focusedDate),e=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),e=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),e=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),e=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),e=!0;break;case"Tab":this._onTabKeyDown(t,"calendar")}e&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,e){switch(t.stopPropagation(),e){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const t=this.focusableDateElement;t&&Ma(t.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,t.focus())}}async focusDate(t,e){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,e||(this._focusedMonthDate=i.getDate()),await this.focusDateElement(!1)}async focusDateElement(t=!0){this.__pendingDateFocus=this.focusedDate,this.calendars.length||await new Promise((t=>{nn(this,(()=>{ul(),t()}))})),t&&this.revealDate(this.focusedDate),this._revealPromise&&await this._revealPromise,this.__tryFocusDate()}_focusClosestDate(t){this.focusDate(Pa(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,e,i){this._dateAllowed(t)?this.focusDate(t,i):this._dateAllowed(this.focusedDate)?this.focusDate(e>0?this.maxDate:this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,e){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+t),e&&i.setDate(this.focusedDate.getDate()+e),i}_moveFocusByDays(t){const e=this._getDateDiff(0,t);this._focusAllowedDate(e,t,!1)}_moveFocusByMonths(t){const e=this._getDateDiff(t),i=e.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),e.setDate(this._focusedMonthDate),e.getMonth()!==i&&e.setDate(0),this._focusAllowedDate(e,t,!0)}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear()),"minDate"===e?(i.setMonth(t.getMonth()),i.setDate(1)):(i.setMonth(t.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(t)?this.focusDate(this[e]):this._focusClosestDate(t)}_dateAllowed(t,e=this.minDate,i=this.maxDate){return(!e||t>=e)&&(!i||t<=i)}_isTodayAllowed(t,e){const i=new Date,r=new Date(0,0);return r.setFullYear(i.getFullYear()),r.setMonth(i.getMonth()),r.setDate(i.getDate()),this._dateAllowed(r,t,e)}}
4416
+ */const bl=t=>class extends t{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map((t=>t.focusableDateElement)).find(Boolean)}_addListeners(){Hr(this.$.scrollers,"pan-y"),Pr(this.$.scrollers,"track",this._track.bind(this)),Pr(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),Pr(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),Pr(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new gl(this._desktopMediaQuery,(t=>{this._desktopMode=t}))),this.addController(new fr(this,"today-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onTodayButtonKeyDown(t))),Pr(t,"tap",this._onTodayTap.bind(this)),this._todayButton=t}})),this.addController(new fr(this,"cancel-button","vaadin-button",{observe:!1,initializer:t=>{t.setAttribute("theme","tertiary"),t.addEventListener("keydown",(t=>this.__onCancelButtonKeyDown(t))),Pr(t,"tap",this._cancel.bind(this)),this._cancelButton=t}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(t,e){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(t):0;this._scrollToPosition(this._differenceInMonths(t,this._originDate)+i,e),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new fr(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:t=>{t.addEventListener("custom-scroll",(()=>{this._onMonthScroll()})),t.addEventListener("touchstart",(()=>{this._onMonthScrollTouchStart()})),t.addEventListener("keydown",(t=>{this.__onMonthCalendarKeyDown(t)})),t.addEventListener("init-done",(()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach((t=>{t.addEventListener("selected-date-changed",(t=>{this.selectedDate=t.detail.value}))})),this.calendars=t})),this._monthScroller=t}}))}__initYearScroller(){this.addController(new fr(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:t=>{t.setAttribute("aria-hidden","true"),Pr(t,"tap",(t=>{this._onYearTap(t)})),t.addEventListener("custom-scroll",(()=>{this._onYearScroll()})),t.addEventListener("touchstart",(()=>{this._onYearScrollTouchStart()})),t.addEventListener("init-done",(()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]})),this._yearScroller=t}}))}__updateCancelButton(t,e){t&&(t.textContent=e&&e.cancel)}__updateTodayButton(t,e,i,r){t&&(t.textContent=e&&e.today,t.disabled=!this._isTodayAllowed(i,r))}__updateCalendars(t,e,i,r,o,s,n,a,l){t&&t.length&&t.forEach((t=>{t.i18n=e,t.minDate=i,t.maxDate=r,t.focusedDate=s,t.selectedDate=o,t.showWeekNumbers=n,t.ignoreTaps=a,l?t.setAttribute("theme",l):t.removeAttribute("theme")}))}__updateYears(t,e,i){t&&t.length&&t.forEach((t=>{t.selectedDate=e,i?t.setAttribute("theme",i):t.removeAttribute("theme")}))}_selectDate(t){this.selectedDate=t,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:t},bubbles:!0,composed:!0}))}_desktopModeChanged(t){this.toggleAttribute("desktop",t)}_focusedDateChanged(t){this.revealDate(t)}revealDate(t,e=!0){if(!t)return;const i=this._differenceInMonths(t,this._originDate);if(this.__useSubMonthScrolling){const r=this._calculateWeekScrollOffset(t);return void this._scrollToPosition(i+r,e)}const r=this._monthScroller.position>i,o=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-2*this._monthScroller.bufferOffset)/this._monthScroller.itemHeight,s=this._monthScroller.position+o-1<i;r?this._scrollToPosition(i,e):s&&this._scrollToPosition(i-o+1,e)}_calculateWeekScrollOffset(t){const e=new Date(0,0);e.setFullYear(t.getFullYear()),e.setMonth(t.getMonth()),e.setDate(1);let i=0;for(;e.getDate()<t.getDate();)e.setDate(e.getDate()+1),e.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/6}_initialPositionChanged(t){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(t)}_repositionYearScroller(){const t=this._monthScroller.position;this._visibleMonthIndex=Math.floor(t),this._yearScroller.position=(t+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=12*this._yearScroller.position-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout((()=>{this._notTapping=!0}),300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Ji.debounce(this._debouncer,Yi.after(300),(()=>{this._ignoreTaps=!1}))}_formatDisplayed(t,e,i){return t&&e&&"function"==typeof e.formatDate?e.formatDate(Pa(t)):i}_onTodayTap(){const t=new Date;Math.abs(this._monthScroller.position-this._differenceInMonths(t,this._originDate))<.001?(this._selectDate(t),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(t){if(!this._ignoreTaps&&!this._notTapping){const e=t.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2);this._scrollToPosition(this._monthScroller.position+e/this._yearScroller.itemHeight*12,!0)}}_scrollToPosition(t,e){if(void 0!==this._targetPosition)return void(this._targetPosition=t);if(!e)return this._monthScroller.position=t,this._targetPosition=void 0,this._repositionYearScroller(),void this.__tryFocusDate();let i;this._targetPosition=t,this._revealPromise=new Promise((t=>{i=t}));let r=0;const o=this._monthScroller.position,s=t=>{r||(r=t);const e=t-r;if(e<this.scrollDuration){const t=((t,e,i)=>(t/=this.scrollDuration/2)<1?i/2*t*t+e:-i/2*((t-=1)*(t-2)-1)+e)(e,o,this._targetPosition-o);this._monthScroller.position=t,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:o}})),this._monthScroller.position=this._targetPosition,this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}_limit(t,e){return Math.min(e.max,Math.max(e.min,t))}_handleTrack(t){Math.abs(t.detail.dx)<10||Math.abs(t.detail.ddy)>10||(Math.abs(t.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0),this._translateX=this._limit(this._translateX+t.detail.ddx,{min:0,max:this._yearScrollerWidth}))}_track(t){if(!this._desktopMode)switch(t.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(t);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller()}}_toggleAnimateClass(t){t?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(t){this._desktopMode||(this._monthScroller.style.transform=`translateX(${t-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${t}px)`)}_yearAfterXMonths(t){return ja(t).getFullYear()}_differenceInMonths(t,e){return 12*(t.getFullYear()-e.getFullYear())-e.getMonth()+t.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(t){t.preventDefault()}__toggleDate(t){Ua(t,this.selectedDate)?(this._clear(),this.focusedDate=t):this._selectDate(t)}__onMonthCalendarKeyDown(t){let e=!1;switch(t.key){case"ArrowDown":this._moveFocusByDays(7),e=!0;break;case"ArrowUp":this._moveFocusByDays(-7),e=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),e=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),e=!0;break;case"Enter":this._selectDate(this.focusedDate),this._close(),e=!0;break;case" ":this.__toggleDate(this.focusedDate),e=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),e=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),e=!0;break;case"PageDown":this._moveFocusByMonths(t.shiftKey?12:1),e=!0;break;case"PageUp":this._moveFocusByMonths(t.shiftKey?-12:-1),e=!0;break;case"Tab":this._onTabKeyDown(t,"calendar")}e&&(t.preventDefault(),t.stopPropagation())}_onTabKeyDown(t,e){switch(t.stopPropagation(),e){case"calendar":t.shiftKey&&(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":t.shiftKey&&(t.preventDefault(),this.focusDateElement());break;case"cancel":t.shiftKey||(t.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput())}}__onTodayButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"today")}__onCancelButtonKeyDown(t){"Tab"===t.key&&this._onTabKeyDown(t,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const t=this.focusableDateElement;t&&Ua(t.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,t.focus())}}async focusDate(t,e){const i=t||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,e||(this._focusedMonthDate=i.getDate()),await this.focusDateElement(!1)}async focusDateElement(t=!0){this.__pendingDateFocus=this.focusedDate,this.calendars.length||await new Promise((t=>{nn(this,(()=>{ul(),t()}))})),t&&this.revealDate(this.focusedDate),this._revealPromise&&await this._revealPromise,this.__tryFocusDate()}_focusClosestDate(t){this.focusDate(La(t,[this.minDate,this.maxDate]))}_focusAllowedDate(t,e,i){this._dateAllowed(t)?this.focusDate(t,i):this._dateAllowed(this.focusedDate)?this.focusDate(e>0?this.maxDate:this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(t,e){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+t),e&&i.setDate(this.focusedDate.getDate()+e),i}_moveFocusByDays(t){const e=this._getDateDiff(0,t);this._focusAllowedDate(e,t,!1)}_moveFocusByMonths(t){const e=this._getDateDiff(t),i=e.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),e.setDate(this._focusedMonthDate),e.getMonth()!==i&&e.setDate(0),this._focusAllowedDate(e,t,!0)}_moveFocusInsideMonth(t,e){const i=new Date(0,0);i.setFullYear(t.getFullYear()),"minDate"===e?(i.setMonth(t.getMonth()),i.setDate(1)):(i.setMonth(t.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(t)?this.focusDate(this[e]):this._focusClosestDate(t)}_dateAllowed(t,e=this.minDate,i=this.maxDate){return(!e||t>=e)&&(!i||t<=i)}_isTodayAllowed(t,e){const i=new Date,r=new Date(0,0);return r.setFullYear(i.getFullYear()),r.setMonth(i.getMonth()),r.setDate(i.getDate()),this._dateAllowed(r,t,e)}}
4417
4417
  /**
4418
4418
  * @license
4419
4419
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
@@ -4424,7 +4424,7 @@ class gl{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=t
4424
4424
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
4425
4425
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4426
4426
  */
4427
- vt("vaadin-date-picker-overlay-content",Ko`
4427
+ vt("vaadin-date-picker-overlay-content",Xo`
4428
4428
  :host {
4429
4429
  display: flex;
4430
4430
  flex-direction: column;
@@ -4484,7 +4484,7 @@ vt("vaadin-date-picker-overlay-content",Ko`
4484
4484
  z-index: 2;
4485
4485
  flex-shrink: 0;
4486
4486
  }
4487
- `,{moduleId:"vaadin-date-picker-overlay-content-styles"});class _l extends(bl(uo(wt(sr(Li))))){static get template(){return Ui`
4487
+ `,{moduleId:"vaadin-date-picker-overlay-content-styles"});class _l extends(bl(uo(Et(sr(Bi))))){static get template(){return Gi`
4488
4488
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
4489
4489
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
4490
4490
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -4510,40 +4510,40 @@ vt("vaadin-date-picker-overlay-content",Ko`
4510
4510
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
4511
4511
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4512
4512
  */
4513
- const yl=new WeakMap,wl=Xt((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return yl.has(t)||yl.set(t,new Set),yl.get(t)}(t);this.slotStyles.forEach((i=>{e.has(i)||(function(t,e){const i=document.createElement("style");i.textContent=t,e===document?document.head.appendChild(i):e.insertBefore(i,e.firstChild)}(i,t),e.add(i))}))}})),El=t=>class extends(lo(Zr(t))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t))),this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t))))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),mn||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
4513
+ const yl=new WeakMap,El=Kt((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return yl.has(t)||yl.set(t,new Set),yl.get(t)}(t);this.slotStyles.forEach((i=>{e.has(i)||(function(t,e){const i=document.createElement("style");i.textContent=t,e===document?document.head.appendChild(i):e.insertBefore(i,e.firstChild)}(i,t),e.add(i))}))}})),wl=t=>class extends(lo($r(t))){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",(t=>this._onClearButtonMouseDown(t))),this.clearElement.addEventListener("click",(t=>this._onClearButtonClick(t))))}_onClearButtonClick(t){t.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(t){t.preventDefault(),mn||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this.clear(),this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
4514
4514
  /**
4515
4515
  * @license
4516
4516
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
4517
4517
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4518
- */,xl=Xt((t=>class extends(ao(Do(lo(t)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((t=>this[t])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t)return;const i=this._hasValidConstraints(e),r=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return Boolean(t)||0===t}})),Al=t=>class extends(wl(no(xl(No(El(Zr(t))))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Ji.debounce(this._preventInputDebouncer,Hi.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}}
4518
+ */,xl=Kt((t=>class extends(ao(No(lo(t)))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map((t=>this[t])))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(t){return t.some((t=>this.__isValidConstraint(t)))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(t,...e){if(!t)return;const i=this._hasValidConstraints(e),r=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}__isValidConstraint(t){return Boolean(t)||0===t}})),kl=t=>class extends(El(no(xl(Io(wl($r(t))))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return["\n :is(input[slot='input'], textarea[slot='textarea'])::placeholder {\n font: inherit;\n color: inherit;\n }\n "]}_onFocus(t){super._onFocus(t),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(t){t.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:t},bubbles:t.bubbles,cancelable:t.cancelable}))}_addInputListeners(t){super._addInputListeners(t),t.addEventListener("paste",this._boundOnPaste),t.addEventListener("drop",this._boundOnDrop),t.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(t){super._removeInputListeners(t),t.removeEventListener("paste",this._boundOnPaste),t.removeEventListener("drop",this._boundOnDrop),t.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(t){super._onKeyDown(t),this.allowedCharPattern&&!this.__shouldAcceptKey(t)&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Ji.debounce(this._preventInputDebouncer,Yi.after(200),(()=>{this.removeAttribute("input-prevented")}))}__shouldAcceptKey(t){return t.metaKey||t.ctrlKey||!t.key||1!==t.key.length||this.__allowedCharRegExp.test(t.key)}_onPaste(t){if(this.allowedCharPattern){const e=t.clipboardData.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onDrop(t){if(this.allowedCharPattern){const e=t.dataTransfer.getData("text");this.__allowedTextRegExp.test(e)||(t.preventDefault(),this._markInputPrevented())}}_onBeforeInput(t){this.allowedCharPattern&&t.data&&!this.__allowedTextRegExp.test(t.data)&&(t.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(t){if(t)try{this.__allowedCharRegExp=new RegExp(`^${t}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${t}*$`,"u")}catch(t){console.error(t)}}}
4519
4519
  /**
4520
4520
  * @license
4521
4521
  * Copyright 2019 Google LLC
4522
4522
  * SPDX-License-Identifier: BSD-3-Clause
4523
- */,kl=window,Sl=kl.ShadowRoot&&(void 0===kl.ShadyCSS||kl.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Il=Symbol(),Tl=new WeakMap;class Dl{constructor(t,e,i){if(this._$cssResult$=!0,i!==Il)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Sl&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Tl.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Tl.set(e,t))}return t}toString(){return this.cssText}}const Nl=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1]),t[0]);return new Dl(i,t,Il)},Ol=Sl?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new Dl("string"==typeof t?t:t+"",void 0,Il))(e)})(t):t
4523
+ */,Al=window,Sl=Al.ShadowRoot&&(void 0===Al.ShadyCSS||Al.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Cl=Symbol(),Tl=new WeakMap;class Nl{constructor(t,e,i){if(this._$cssResult$=!0,i!==Cl)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Sl&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Tl.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Tl.set(e,t))}return t}toString(){return this.cssText}}const Il=(t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1]),t[0]);return new Nl(i,t,Cl)},Dl=Sl?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new Nl("string"==typeof t?t:t+"",void 0,Cl))(e)})(t):t
4524
4524
  /**
4525
4525
  * @license
4526
4526
  * Copyright 2017 Google LLC
4527
4527
  * SPDX-License-Identifier: BSD-3-Clause
4528
- */;var Cl;const Rl=window,zl=Rl.trustedTypes,Gl=zl?zl.emptyScript:"",Ul=Rl.reactiveElementPolyfillSupport,Ml={toAttribute(t,e){switch(e){case Boolean:t=t?Gl: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}},Ll=(t,e)=>e!==t&&(e==e||t==t),Pl={attribute:!0,type:String,converter:Ml,reflect:!1,hasChanged:Ll},Bl="finalized";class Fl 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 r=this._$Ep(i,e);void 0!==r&&(this._$Ev.set(r,i),t.push(r))})),t}static createProperty(t,e=Pl){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,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Pl}static finalize(){if(this.hasOwnProperty(Bl))return!1;this[Bl]=!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(Ol(t))}else void 0!==t&&e.push(Ol(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{Sl?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),r=kl.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=Pl){var r;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const s=(void 0!==(null===(r=i.converter)||void 0===r?void 0:r.toAttribute)?i.converter:Ml).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,o=r._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=r.getPropertyOptions(o),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:Ml;this._$El=o,this[o]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Ll)(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))):r=!1),!this.isUpdatePending&&r&&(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){}}
4528
+ */;var Ol;const zl=window,Rl=zl.trustedTypes,Ml=Rl?Rl.emptyScript:"",Gl=zl.reactiveElementPolyfillSupport,Ul={toAttribute(t,e){switch(e){case Boolean:t=t?Ml: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}},Bl=(t,e)=>e!==t&&(e==e||t==t),Ll={attribute:!0,type:String,converter:Ul,reflect:!1,hasChanged:Bl},Pl="finalized";class jl 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 r=this._$Ep(i,e);void 0!==r&&(this._$Ev.set(r,i),t.push(r))})),t}static createProperty(t,e=Ll){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,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Ll}static finalize(){if(this.hasOwnProperty(Pl))return!1;this[Pl]=!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(Dl(t))}else void 0!==t&&e.push(Dl(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{Sl?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),r=Al.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=Ll){var r;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const s=(void 0!==(null===(r=i.converter)||void 0===r?void 0:r.toAttribute)?i.converter:Ul).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,o=r._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=r.getPropertyOptions(o),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:Ul;this._$El=o,this[o]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Bl)(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))):r=!1),!this.isUpdatePending&&r&&(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){}}
4529
4529
  /**
4530
4530
  * @license
4531
4531
  * Copyright 2017 Google LLC
4532
4532
  * SPDX-License-Identifier: BSD-3-Clause
4533
4533
  */
4534
- var jl;Fl[Bl]=!0,Fl.elementProperties=new Map,Fl.elementStyles=[],Fl.shadowRootOptions={mode:"open"},null==Ul||Ul({ReactiveElement:Fl}),(null!==(Cl=Rl.reactiveElementVersions)&&void 0!==Cl?Cl:Rl.reactiveElementVersions=[]).push("1.6.3");const Vl=window,ql=Vl.trustedTypes,Wl=ql?ql.createPolicy("lit-html",{createHTML:t=>t}):void 0,Yl="$lit$",Hl=`lit$${(Math.random()+"").slice(9)}$`,Xl="?"+Hl,Kl=`<${Xl}>`,Zl=document,$l=()=>Zl.createComment(""),Jl=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Ql=Array.isArray,th="[ \t\n\f\r]",eh=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ih=/-->/g,rh=/>/g,oh=RegExp(`>|${th}(?:([^\\s"'>=/]+)(${th}*=${th}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),sh=/'/g,nh=/"/g,ah=/^(?:script|style|textarea|title)$/i,lh=Symbol.for("lit-noChange"),hh=Symbol.for("lit-nothing"),ch=new WeakMap,uh=Zl.createTreeWalker(Zl,129,null,!1);function dh(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Wl?Wl.createHTML(e):e}class mh{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,s=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,r=[];let o,s=2===e?"<svg>":"",n=eh;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===eh?"!--"===l[1]?n=ih:void 0!==l[1]?n=rh:void 0!==l[2]?(ah.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=oh):void 0!==l[3]&&(n=oh):n===oh?">"===l[0]?(n=null!=o?o:eh,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?oh:'"'===l[3]?nh:sh):n===nh||n===sh?n=oh:n===ih||n===rh?n=eh:(n=oh,o=void 0);const u=n===oh&&t[e+1].startsWith("/>")?" ":"";s+=n===eh?i+Kl:h>=0?(r.push(a),i.slice(0,h)+Yl+i.slice(h)+Hl+u):i+Hl+(-2===h?(r.push(void 0),e):u)}return[dh(t,s+(t[i]||"<?>")+(2===e?"</svg>":"")),r]})(t,e);if(this.el=mh.createElement(l,i),uh.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=uh.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(Yl)||e.startsWith(Hl)){const i=h[s++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+Yl).split(Hl),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?bh:"?"===e[1]?yh:"@"===e[1]?wh:gh})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(ah.test(r.tagName)){const t=r.textContent.split(Hl),e=t.length-1;if(e>0){r.textContent=ql?ql.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],$l()),uh.nextNode(),a.push({type:2,index:++o});r.append(t[e],$l())}}}else if(8===r.nodeType)if(r.data===Xl)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(Hl,t+1));)a.push({type:7,index:o}),t+=Hl.length-1}o++}}static createElement(t,e){const i=Zl.createElement("template");return i.innerHTML=t,i}}function ph(t,e,i=t,r){var o,s,n,a;if(e===lh)return e;let l=void 0!==r?null===(o=i._$Co)||void 0===o?void 0:o[r]:i._$Cl;const h=Jl(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,r)),void 0!==r?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[r]=l:i._$Cl=l),void 0!==l&&(e=ph(t,l._$AS(t,e.values),l,r)),e}class fh{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:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:Zl).importNode(i,!0);uh.currentNode=o;let s=uh.nextNode(),n=0,a=0,l=r[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new vh(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new Eh(s,this,t)),this._$AV.push(e),l=r[++a]}n!==(null==l?void 0:l.index)&&(s=uh.nextNode(),n++)}return uh.currentNode=Zl,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class vh{constructor(t,e,i,r){var o;this.type=2,this._$AH=hh,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ph(this,t,e),Jl(t)?t===hh||null==t||""===t?(this._$AH!==hh&&this._$AR(),this._$AH=hh):t!==this._$AH&&t!==lh&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Ql(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==hh&&Jl(this._$AH)?this._$AA.nextSibling.data=t:this.$(Zl.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=mh.createElement(dh(r.h,r.h[0]),this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new fh(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=ch.get(t.strings);return void 0===e&&ch.set(t.strings,e=new mh(t)),e}T(t){Ql(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new vh(this.k($l()),this.k($l()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$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 gh{constructor(t,e,i,r,o){this.type=1,this._$AH=hh,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=hh}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let s=!1;if(void 0===o)t=ph(this,t,e,0),s=!Jl(t)||t!==this._$AH&&t!==lh,s&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=ph(this,r[i+n],e,n),a===lh&&(a=this._$AH[n]),s||(s=!Jl(a)||a!==this._$AH[n]),a===hh?t=hh:t!==hh&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===hh?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class bh extends gh{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===hh?void 0:t}}const _h=ql?ql.emptyScript:"";class yh extends gh{constructor(){super(...arguments),this.type=4}j(t){t&&t!==hh?this.element.setAttribute(this.name,_h):this.element.removeAttribute(this.name)}}class wh extends gh{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ph(this,t,e,0))&&void 0!==i?i:hh)===lh)return;const r=this._$AH,o=t===hh&&r!==hh||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==hh&&(r===hh||o);o&&this.element.removeEventListener(this.name,this,r),s&&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 Eh{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){ph(this,t)}}const xh=Vl.litHtmlPolyfillSupport;
4534
+ var Hl;jl[Pl]=!0,jl.elementProperties=new Map,jl.elementStyles=[],jl.shadowRootOptions={mode:"open"},null==Gl||Gl({ReactiveElement:jl}),(null!==(Ol=zl.reactiveElementVersions)&&void 0!==Ol?Ol:zl.reactiveElementVersions=[]).push("1.6.3");const Fl=window,ql=Fl.trustedTypes,Vl=ql?ql.createPolicy("lit-html",{createHTML:t=>t}):void 0,Wl="$lit$",Yl=`lit$${(Math.random()+"").slice(9)}$`,Kl="?"+Yl,Xl=`<${Kl}>`,$l=document,Zl=()=>$l.createComment(""),Jl=t=>null===t||"object"!=typeof t&&"function"!=typeof t,Ql=Array.isArray,th="[ \t\n\f\r]",eh=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ih=/-->/g,rh=/>/g,oh=RegExp(`>|${th}(?:([^\\s"'>=/]+)(${th}*=${th}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),sh=/'/g,nh=/"/g,ah=/^(?:script|style|textarea|title)$/i,lh=Symbol.for("lit-noChange"),hh=Symbol.for("lit-nothing"),ch=new WeakMap,uh=$l.createTreeWalker($l,129,null,!1);function dh(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Vl?Vl.createHTML(e):e}class mh{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,s=0;const n=t.length-1,a=this.parts,[l,h]=((t,e)=>{const i=t.length-1,r=[];let o,s=2===e?"<svg>":"",n=eh;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===eh?"!--"===l[1]?n=ih:void 0!==l[1]?n=rh:void 0!==l[2]?(ah.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=oh):void 0!==l[3]&&(n=oh):n===oh?">"===l[0]?(n=null!=o?o:eh,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?oh:'"'===l[3]?nh:sh):n===nh||n===sh?n=oh:n===ih||n===rh?n=eh:(n=oh,o=void 0);const u=n===oh&&t[e+1].startsWith("/>")?" ":"";s+=n===eh?i+Xl:h>=0?(r.push(a),i.slice(0,h)+Wl+i.slice(h)+Yl+u):i+Yl+(-2===h?(r.push(void 0),e):u)}return[dh(t,s+(t[i]||"<?>")+(2===e?"</svg>":"")),r]})(t,e);if(this.el=mh.createElement(l,i),uh.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=uh.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(Wl)||e.startsWith(Yl)){const i=h[s++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+Wl).split(Yl),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?bh:"?"===e[1]?yh:"@"===e[1]?Eh:gh})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(ah.test(r.tagName)){const t=r.textContent.split(Yl),e=t.length-1;if(e>0){r.textContent=ql?ql.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],Zl()),uh.nextNode(),a.push({type:2,index:++o});r.append(t[e],Zl())}}}else if(8===r.nodeType)if(r.data===Kl)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(Yl,t+1));)a.push({type:7,index:o}),t+=Yl.length-1}o++}}static createElement(t,e){const i=$l.createElement("template");return i.innerHTML=t,i}}function ph(t,e,i=t,r){var o,s,n,a;if(e===lh)return e;let l=void 0!==r?null===(o=i._$Co)||void 0===o?void 0:o[r]:i._$Cl;const h=Jl(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,r)),void 0!==r?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[r]=l:i._$Cl=l),void 0!==l&&(e=ph(t,l._$AS(t,e.values),l,r)),e}class fh{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:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:$l).importNode(i,!0);uh.currentNode=o;let s=uh.nextNode(),n=0,a=0,l=r[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new vh(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new wh(s,this,t)),this._$AV.push(e),l=r[++a]}n!==(null==l?void 0:l.index)&&(s=uh.nextNode(),n++)}return uh.currentNode=$l,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class vh{constructor(t,e,i,r){var o;this.type=2,this._$AH=hh,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ph(this,t,e),Jl(t)?t===hh||null==t||""===t?(this._$AH!==hh&&this._$AR(),this._$AH=hh):t!==this._$AH&&t!==lh&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>Ql(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==hh&&Jl(this._$AH)?this._$AA.nextSibling.data=t:this.$($l.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=mh.createElement(dh(r.h,r.h[0]),this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new fh(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=ch.get(t.strings);return void 0===e&&ch.set(t.strings,e=new mh(t)),e}T(t){Ql(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new vh(this.k(Zl()),this.k(Zl()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$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 gh{constructor(t,e,i,r,o){this.type=1,this._$AH=hh,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=hh}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let s=!1;if(void 0===o)t=ph(this,t,e,0),s=!Jl(t)||t!==this._$AH&&t!==lh,s&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=ph(this,r[i+n],e,n),a===lh&&(a=this._$AH[n]),s||(s=!Jl(a)||a!==this._$AH[n]),a===hh?t=hh:t!==hh&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===hh?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class bh extends gh{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===hh?void 0:t}}const _h=ql?ql.emptyScript:"";class yh extends gh{constructor(){super(...arguments),this.type=4}j(t){t&&t!==hh?this.element.setAttribute(this.name,_h):this.element.removeAttribute(this.name)}}class Eh extends gh{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=ph(this,t,e,0))&&void 0!==i?i:hh)===lh)return;const r=this._$AH,o=t===hh&&r!==hh||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==hh&&(r===hh||o);o&&this.element.removeEventListener(this.name,this,r),s&&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 wh{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){ph(this,t)}}const xh=Fl.litHtmlPolyfillSupport;
4535
4535
  /**
4536
4536
  * @license
4537
4537
  * Copyright 2017 Google LLC
4538
4538
  * SPDX-License-Identifier: BSD-3-Clause
4539
4539
  */
4540
- var Ah,kh;null==xh||xh(mh,vh),(null!==(jl=Vl.litHtmlVersions)&&void 0!==jl?jl:Vl.litHtmlVersions=[]).push("2.8.0");class Sh extends Fl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var r,o;const s=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let n=s._$litPart$;if(void 0===n){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;s._$litPart$=n=new vh(e.insertBefore($l(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return lh}}Sh.finalized=!0,Sh._$litElement$=!0,null===(Ah=globalThis.litElementHydrateSupport)||void 0===Ah||Ah.call(globalThis,{LitElement:Sh});const Ih=globalThis.litElementPolyfillSupport;null==Ih||Ih({LitElement:Sh}),(null!==(kh=globalThis.litElementVersions)&&void 0!==kh?kh:globalThis.litElementVersions=[]).push("3.3.3");
4540
+ var kh,Ah;null==xh||xh(mh,vh),(null!==(Hl=Fl.litHtmlVersions)&&void 0!==Hl?Hl:Fl.litHtmlVersions=[]).push("2.8.0");class Sh extends jl{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var r,o;const s=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let n=s._$litPart$;if(void 0===n){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;s._$litPart$=n=new vh(e.insertBefore(Zl(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return lh}}Sh.finalized=!0,Sh._$litElement$=!0,null===(kh=globalThis.litElementHydrateSupport)||void 0===kh||kh.call(globalThis,{LitElement:Sh});const Ch=globalThis.litElementPolyfillSupport;null==Ch||Ch({LitElement:Sh}),(null!==(Ah=globalThis.litElementVersions)&&void 0!==Ah?Ah:globalThis.litElementVersions=[]).push("3.3.3");
4541
4541
  /**
4542
4542
  * @license
4543
4543
  * Copyright (c) 2021 - 2023 Vaadin Ltd..
4544
4544
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4545
4545
  */
4546
- const Th=[Nl`
4546
+ const Th=[Il`
4547
4547
  :host {
4548
4548
  display: inline-flex;
4549
4549
  outline: none;
@@ -4582,7 +4582,7 @@ const Th=[Nl`
4582
4582
  * @license
4583
4583
  * Copyright (c) 2021 - 2023 Vaadin Ltd..
4584
4584
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4585
- */,Nl`
4585
+ */,Il`
4586
4586
  [class$='container'] {
4587
4587
  display: flex;
4588
4588
  flex-direction: column;
@@ -4595,7 +4595,7 @@ const Th=[Nl`
4595
4595
  * @license
4596
4596
  * Copyright (c) 2021 - 2023 Vaadin Ltd..
4597
4597
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4598
- */,Nl`
4598
+ */,Il`
4599
4599
  [part='clear-button'] {
4600
4600
  display: none;
4601
4601
  cursor: default;
@@ -4613,17 +4613,17 @@ const Th=[Nl`
4613
4613
  * @license
4614
4614
  * Copyright (c) 2021 - 2023 Vaadin Ltd..
4615
4615
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4616
- */],Dh=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e)return;if(void 0===t)return;const{classList:i}=e;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));t.length>0&&i.remove(...t)}const r="string"==typeof t?t.split(" "):[];r.length>0&&i.add(...r),this.__previousClasses=r}}
4616
+ */],Nh=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e)return;if(void 0===t)return;const{classList:i}=e;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));t.length>0&&i.remove(...t)}const r="string"==typeof t?t.split(" "):[];r.length>0&&i.add(...r),this.__previousClasses=r}}
4617
4617
  /**
4618
4618
  * @license
4619
4619
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
4620
4620
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4621
- */;class Nh{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)})),t.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(!0))),t.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(!0)))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}
4621
+ */;class Ih{constructor(t){this.host=t,t.addEventListener("opened-changed",(()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)})),t.addEventListener("blur",(()=>this.__setVirtualKeyboardEnabled(!0))),t.addEventListener("touchstart",(()=>this.__setVirtualKeyboardEnabled(!0)))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}
4622
4622
  /**
4623
4623
  * @license
4624
4624
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
4625
4625
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4626
- */const Oh=t=>class extends(Dh(uo(no(xl(Zr(t)))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const e=String(t.year).replace(/\d+/u,(t=>"0000".substr(t.length)+t));return[t.month+1,t.day,e].join("/")},parseDate(t){const e=t.split("/"),i=new Date;let r,o=i.getMonth(),s=i.getFullYear();if(3===e.length?(o=parseInt(e[0])-1,r=parseInt(e[1]),s=parseInt(e[2]),e[2].length<3&&s>=0&&(s=function(t,e,i=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+100*Math.floor(t.getFullYear()/100);return t<new Date(o-50,i,r)?o-=100:t>new Date(o+50,i,r)&&(o+=100),o}(this.referenceDate?ja(this.referenceDate):new Date,s,o,r))):2===e.length?(o=parseInt(e[0])-1,r=parseInt(e[1])):1===e.length&&(r=parseInt(e[0])),void 0!==r)return{day:r,month:o,year:s}},formatTitle:(t,e)=>`${t} ${e}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:un},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(t){super._inputElementValue=t,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(t){super._onFocus(t),this._noInput&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new gl(this._fullscreenMediaQuery,(t=>{this._fullscreen=t}))),this.addController(new Nh(this));const t=this.$.overlay;this._overlayElement=t,t.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",(()=>this.__bringToFront())),this.addEventListener("touchstart",(()=>this.__bringToFront()))}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(t){if(t.firstChild)return;const e=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(e),this._overlayContent=e,e.addEventListener("close",(()=>{this._close()})),e.addEventListener("focus-input",this._focusAndSelect.bind(this)),e.addEventListener("date-tap",(t=>{this.__userConfirmedDate=!0,this._selectDate(t.detail.date),this._close()})),e.addEventListener("date-selected",(t=>{this.__userConfirmedDate=!!t.detail.date,this._selectDate(t.detail.date)})),e.addEventListener("focusin",(()=>{this._keyboardActive&&this._setFocused(!0)})),e.addEventListener("focused-date-changed",(t=>{this._focusedDate=t.detail.value}))}__parseDate(t){if(!this.i18n.parseDate)return;let e=this.i18n.parseDate(t);return e&&(e=ja(`${e.year}-${e.month+1}-${e.day}`)),e&&!isNaN(e.getTime())?e:void 0}__formatDate(t){if(this.i18n.formatDate)return this.i18n.formatDate(Ba(t))}checkValidity(){const t=this._inputElementValue,e=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),i=!this._selectedDate||La(this._selectedDate,this._minDate,this._maxDate);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),e&&i&&r}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){return!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(t){const e=this.value;this._selectedDate=t,e!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(t,e,i,r,o,s){return!t||e&&(!s||o)||i&&o||!r.parseDate}_formatISO(t){if(!(t instanceof Date))return"";const e=(t,e="00")=>(e+t).substr((e+t).length-e.length);let i="",r="0000",o=t.getFullYear();return o<0?(o=-o,i="-",r="000000"):t.getFullYear()>=1e4&&(i="+",r="000000"),[i+e(o,r),e(t.getMonth()+1),e(t.getDate())].join("-")}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,e){void 0!==t&&void 0!==e&&(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,e){void 0!==t&&void 0!==e&&(this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(t))}_valueChanged(t,e){const i=ja(t);!t||i?(t?Ma(this._selectedDate,i)||(this._selectedDate=i,void 0!==e&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)):this.value=e}__updateOverlayContent(t,e,i,r,o,s,n,a){t&&(t.i18n=e,t.label=i,t.minDate=r,t.maxDate=o,t.focusedDate=s,t.selectedDate=n,t.showWeekNumbers=a)}__updateOverlayContentTheme(t,e){t&&(e?t.setAttribute("theme",e):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,e){t&&t.toggleAttribute("fullscreen",e)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const t=this._overlayContent;t.reset();const e=this._getInitialPosition();t.initialPosition=e;const i=t.focusedDate||e;t.scrollToDate(i),this._ignoreFocusedDateChange=!0,t.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement()),this.__showOthers=yn(this._noInput?t:[r,t])}_getInitialPosition(){const t=ja(this.initialPosition),e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||La(e,this._minDate,this._maxDate)?e:Pa(e,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this.__parseDate(this._inputElementValue||"");t?this._selectDate(t):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.value||this._keyboardActive||this.validate()}_onScroll(t){t.target!==window&&this._overlayContent.contains(t.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,e){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,e)}_onChange(t){t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){this.autoOpenDisabled&&!this._noInput||(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&-1===[9].indexOf(t.keyCode)&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(t){const e=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),e===this.value&&this.validate()}_onEscape(t){if(!this.opened)return this.clearButtonVisible&&this.value?(t.stopPropagation(),void this._onClearButtonClick(t)):void(this.autoOpenDisabled?(""===this.inputElement.value&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate()))}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(this.opened||!this._inputElementValue||this.autoOpenDisabled||this.open(),this._inputElementValue){const t=this.__parseDate(this._inputElementValue);t&&(this._ignoreFocusedDateChange=!0,Ma(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(t){return ja(t)}}
4626
+ */const Dh=t=>class extends(Nh(uo(no(xl($r(t)))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(t){const e=String(t.year).replace(/\d+/u,(t=>"0000".substr(t.length)+t));return[t.month+1,t.day,e].join("/")},parseDate(t){const e=t.split("/"),i=new Date;let r,o=i.getMonth(),s=i.getFullYear();if(3===e.length?(o=parseInt(e[0])-1,r=parseInt(e[1]),s=parseInt(e[2]),e[2].length<3&&s>=0&&(s=function(t,e,i=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+100*Math.floor(t.getFullYear()/100);return t<new Date(o-50,i,r)?o-=100:t>new Date(o+50,i,r)&&(o+=100),o}(this.referenceDate?Ha(this.referenceDate):new Date,s,o,r))):2===e.length?(o=parseInt(e[0])-1,r=parseInt(e[1])):1===e.length&&(r=parseInt(e[0])),void 0!==r)return{day:r,month:o,year:s}},formatTitle:(t,e)=>`${t} ${e}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:un},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(t){super._inputElementValue=t,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}_onFocus(t){super._onFocus(t),this._noInput&&t.target.blur()}_onBlur(t){super._onBlur(t),this.opened||(this._selectParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new gl(this._fullscreenMediaQuery,(t=>{this._fullscreen=t}))),this.addController(new Ih(this));const t=this.$.overlay;this._overlayElement=t,t.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",(()=>this.__bringToFront())),this.addEventListener("touchstart",(()=>this.__bringToFront()))}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(t){if(t.firstChild)return;const e=document.createElement("vaadin-date-picker-overlay-content");t.appendChild(e),this._overlayContent=e,e.addEventListener("close",(()=>{this._close()})),e.addEventListener("focus-input",this._focusAndSelect.bind(this)),e.addEventListener("date-tap",(t=>{this.__userConfirmedDate=!0,this._selectDate(t.detail.date),this._close()})),e.addEventListener("date-selected",(t=>{this.__userConfirmedDate=!!t.detail.date,this._selectDate(t.detail.date)})),e.addEventListener("focusin",(()=>{this._keyboardActive&&this._setFocused(!0)})),e.addEventListener("focused-date-changed",(t=>{this._focusedDate=t.detail.value}))}__parseDate(t){if(!this.i18n.parseDate)return;let e=this.i18n.parseDate(t);return e&&(e=Ha(`${e.year}-${e.month+1}-${e.day}`)),e&&!isNaN(e.getTime())?e:void 0}__formatDate(t){if(this.i18n.formatDate)return this.i18n.formatDate(Pa(t))}checkValidity(){const t=this._inputElementValue,e=!t||!!this._selectedDate&&t===this.__formatDate(this._selectedDate),i=!this._selectedDate||Ba(this._selectedDate,this._minDate,this._maxDate);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),e&&i&&r}_shouldSetFocus(t){return!this._shouldKeepFocusRing}_shouldRemoveFocus(t){return!this.opened}_setFocused(t){super._setFocused(t),this._shouldKeepFocusRing=t&&this._keyboardActive}__dispatchChange(){this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}_selectDate(t){const e=this.value;this._selectedDate=t,e!==this.value&&this.__dispatchChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame((()=>{this.$.overlay.bringToFront()}))}_isNoInput(t,e,i,r,o,s){return!t||e&&(!s||o)||i&&o||!r.parseDate}_formatISO(t){if(!(t instanceof Date))return"";const e=(t,e="00")=>(e+t).substr((e+t).length-e.length);let i="",r="0000",o=t.getFullYear();return o<0?(o=-o,i="-",r="000000"):t.getFullYear()>=1e4&&(i="+",r="000000"),[i+e(o,r),e(t.getMonth()+1),e(t.getDate())].join("-")}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.autocomplete="off",t.setAttribute("role","combobox"),t.setAttribute("aria-haspopup","dialog"),t.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(t){this.inputElement&&this.inputElement.setAttribute("aria-expanded",t)}_selectedDateChanged(t,e){void 0!==t&&void 0!==e&&(this.__keepInputValue||this._applyInputValue(t),this.value=this._formatISO(t),this._ignoreFocusedDateChange=!0,this._focusedDate=t,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(t,e){void 0!==t&&void 0!==e&&(this._ignoreFocusedDateChange||this._noInput||this._applyInputValue(t))}_valueChanged(t,e){const i=Ha(t);!t||i?(t?Ua(this._selectedDate,i)||(this._selectedDate=i,void 0!==e&&this.validate()):this._selectedDate=null,this._toggleHasValue(this._hasValue)):this.value=e}__updateOverlayContent(t,e,i,r,o,s,n,a){t&&(t.i18n=e,t.label=i,t.minDate=r,t.maxDate=o,t.focusedDate=s,t.selectedDate=n,t.showWeekNumbers=a)}__updateOverlayContentTheme(t,e){t&&(e?t.setAttribute("theme",e):t.removeAttribute("theme"))}__updateOverlayContentFullScreen(t,e){t&&t.toggleAttribute("fullscreen",e)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._close()}_onOverlayOpened(){const t=this._overlayContent;t.reset();const e=this._getInitialPosition();t.initialPosition=e;const i=t.focusedDate||e;t.scrollToDate(i),this._ignoreFocusedDateChange=!0,t.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(t.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement()),this.__showOthers=yn(this._noInput?t:[r,t])}_getInitialPosition(){const t=Ha(this.initialPosition),e=this._selectedDate||this._overlayContent.initialPosition||t||new Date;return t||Ba(e,this._minDate,this._maxDate)?e:La(e,[this._minDate,this._maxDate])}_selectParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const t=this.__parseDate(this._inputElementValue||"");t?this._selectDate(t):(this.__keepInputValue=!0,this._selectDate(null),this._selectedDate=null,this.__keepInputValue=!1)}else this._focusedDate&&this._selectDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this.__userConfirmedDate?this.__userConfirmedDate=!1:this._selectParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),this.value||this._keyboardActive||this.validate()}_onScroll(t){t.target!==window&&this._overlayContent.contains(t.target)||this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(t){this._inputElementValue=t?this.__formatDate(t):""}_setSelectionRange(t,e){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(t,e)}_onChange(t){t.stopPropagation()}_onClick(t){this._isClearButton(t)||this._onHostClick(t)}_onHostClick(t){this.autoOpenDisabled&&!this._noInput||(t.preventDefault(),this.open())}_onClearButtonClick(t){t.preventDefault(),this._inputElementValue="",this.value="",this.__dispatchChange()}_onKeyDown(t){switch(super._onKeyDown(t),this._noInput&&-1===[9].indexOf(t.keyCode)&&t.preventDefault(),t.key){case"ArrowDown":case"ArrowUp":t.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(t.preventDefault(),t.stopPropagation(),this._setSelectionRange(0,0),t.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement())}}_onEnter(t){const e=this.value;this.opened?this.close():this._selectParsedOrFocusedDate(),e===this.value&&this.validate()}_onEscape(t){if(!this.opened)return this.clearButtonVisible&&this.value?(t.stopPropagation(),void this._onClearButtonClick(t)):void(this.autoOpenDisabled?(""===this.inputElement.value&&this._selectDate(null),this._applyInputValue(this._selectedDate)):(this._focusedDate=this._selectedDate,this._selectParsedOrFocusedDate()))}_isClearButton(t){return t.composedPath()[0]===this.clearElement}_onInput(){if(this.opened||!this._inputElementValue||this.autoOpenDisabled||this.open(),this._inputElementValue){const t=this.__parseDate(this._inputElementValue);t&&(this._ignoreFocusedDateChange=!0,Ua(t,this._focusedDate)||(this._focusedDate=t),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(t){return Ha(t)}}
4627
4627
  /**
4628
4628
  * @license
4629
4629
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
@@ -4634,7 +4634,7 @@ const Th=[Nl`
4634
4634
  * Copyright (c) 2016 - 2023 Vaadin Ltd.
4635
4635
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4636
4636
  */
4637
- vt("vaadin-date-picker",[Th,Ko`
4637
+ vt("vaadin-date-picker",[Th,Xo`
4638
4638
  :host([opened]) {
4639
4639
  pointer-events: auto;
4640
4640
  }
@@ -4647,7 +4647,7 @@ vt("vaadin-date-picker",[Th,Ko`
4647
4647
  direction: rtl;
4648
4648
  text-align: left;
4649
4649
  }
4650
- `],{moduleId:"vaadin-date-picker-styles"});class Ch extends(Oh(Al(wt(lr(Li))))){static get is(){return"vaadin-date-picker"}static get template(){return Ui`
4650
+ `],{moduleId:"vaadin-date-picker-styles"});class Oh extends(Dh(kl(Et(lr(Bi))))){static get is(){return"vaadin-date-picker"}static get template(){return Gi`
4651
4651
  <div class="vaadin-date-picker-container">
4652
4652
  <div part="label">
4653
4653
  <slot name="label"></slot>
@@ -4689,18 +4689,18 @@ vt("vaadin-date-picker",[Th,Ko`
4689
4689
  ></vaadin-date-picker-overlay>
4690
4690
 
4691
4691
  <slot name="tooltip"></slot>
4692
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new co(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new vo(this.inputElement,this._labelController)),this._tooltipController=new vr(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",(t=>t.preventDefault())),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function Rh(t){return Rh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Rh(t)}function zh(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Gh(t){zh(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===Rh(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Uh(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Mh(t,e){return zh(2,arguments),function(t,e){zh(2,arguments);var i=Gh(t).getTime(),r=Uh(e);return new Date(i+r)}(t,-Uh(e))}function Lh(t){zh(1,arguments);var e=Gh(t),i=e.getUTCDay(),r=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function Ph(t){zh(1,arguments);var e=Gh(t),i=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(i+1,0,4),r.setUTCHours(0,0,0,0);var o=Lh(r),s=new Date(0);s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0);var n=Lh(s);return e.getTime()>=o.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}l(Ch);function Bh(t){zh(1,arguments);var e=Gh(t),i=Lh(e).getTime()-function(t){zh(1,arguments);var e=Ph(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),Lh(i)}(e).getTime();return Math.round(i/6048e5)+1}var Fh={};function jh(){return Fh}function Vh(t,e){var i,r,o,s,n,a,l,h;zh(1,arguments);var c=jh(),u=Uh(null!==(i=null!==(r=null!==(o=null!==(s=null==e?void 0:e.weekStartsOn)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==o?o:c.weekStartsOn)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Gh(t),m=d.getUTCDay(),p=(m<u?7:0)+m-u;return d.setUTCDate(d.getUTCDate()-p),d.setUTCHours(0,0,0,0),d}function qh(t,e){var i,r,o,s,n,a,l,h;zh(1,arguments);var c=Gh(t),u=c.getUTCFullYear(),d=jh(),m=Uh(null!==(i=null!==(r=null!==(o=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==r?r:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(u+1,0,m),p.setUTCHours(0,0,0,0);var f=Vh(p,e),v=new Date(0);v.setUTCFullYear(u,0,m),v.setUTCHours(0,0,0,0);var g=Vh(v,e);return c.getTime()>=f.getTime()?u+1:c.getTime()>=g.getTime()?u:u-1}function Wh(t,e){zh(1,arguments);var i=Gh(t),r=Vh(i,e).getTime()-function(t,e){var i,r,o,s,n,a,l,h;zh(1,arguments);var c=jh(),u=Uh(null!==(i=null!==(r=null!==(o=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:c.firstWeekContainsDate)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),d=qh(t,e),m=new Date(0);return m.setUTCFullYear(d,0,u),m.setUTCHours(0,0,0,0),Vh(m,e)}(i,e).getTime();return Math.round(r/6048e5)+1}function Yh(t,e){for(var i=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return i+r}const Hh=function(t,e){var i=t.getUTCFullYear(),r=i>0?i:1-i;return Yh("yy"===e?r%100:r,e.length)},Xh=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):Yh(i+1,2)},Kh=function(t,e){return Yh(t.getUTCDate(),e.length)},Zh=function(t,e){return Yh(t.getUTCHours()%12||12,e.length)},$h=function(t,e){return Yh(t.getUTCHours(),e.length)},Jh=function(t,e){return Yh(t.getUTCMinutes(),e.length)},Qh=function(t,e){return Yh(t.getUTCSeconds(),e.length)},tc=function(t,e){var i=e.length,r=t.getUTCMilliseconds();return Yh(Math.floor(r*Math.pow(10,i-3)),e.length)};function ec(t,e){var i=t>0?"-":"+",r=Math.abs(t),o=Math.floor(r/60),s=r%60;if(0===s)return i+String(o);var n=e||"";return i+String(o)+n+Yh(s,2)}function ic(t,e){return t%60==0?(t>0?"-":"+")+Yh(Math.abs(t)/60,2):rc(t,e)}function rc(t,e){var i=e||"",r=t>0?"-":"+",o=Math.abs(t);return r+Yh(Math.floor(o/60),2)+i+Yh(o%60,2)}const oc={G:function(t,e,i){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(r,{width:"abbreviated"});case"GGGGG":return i.era(r,{width:"narrow"});default:return i.era(r,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var r=t.getUTCFullYear();return i.ordinalNumber(r>0?r:1-r,{unit:"year"})}return Hh(t,e)},Y:function(t,e,i,r){var o=qh(t,r),s=o>0?o:1-o;return"YY"===e?Yh(s%100,2):"Yo"===e?i.ordinalNumber(s,{unit:"year"}):Yh(s,e.length)},R:function(t,e){return Yh(Ph(t),e.length)},u:function(t,e){return Yh(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Yh(r,2);case"Qo":return i.ordinalNumber(r,{unit:"quarter"});case"QQQ":return i.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(r,{width:"narrow",context:"formatting"});default:return i.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,i){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Yh(r,2);case"qo":return i.ordinalNumber(r,{unit:"quarter"});case"qqq":return i.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(r,{width:"narrow",context:"standalone"});default:return i.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,i){var r=t.getUTCMonth();switch(e){case"M":case"MM":return Xh(t,e);case"Mo":return i.ordinalNumber(r+1,{unit:"month"});case"MMM":return i.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(r,{width:"narrow",context:"formatting"});default:return i.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,i){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return Yh(r+1,2);case"Lo":return i.ordinalNumber(r+1,{unit:"month"});case"LLL":return i.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(r,{width:"narrow",context:"standalone"});default:return i.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,i,r){var o=Wh(t,r);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):Yh(o,e.length)},I:function(t,e,i){var r=Bh(t);return"Io"===e?i.ordinalNumber(r,{unit:"week"}):Yh(r,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):Kh(t,e)},D:function(t,e,i){var r=function(t){zh(1,arguments);var e=Gh(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime();return Math.floor((i-r)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(r,{unit:"dayOfYear"}):Yh(r,e.length)},E:function(t,e,i){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,i,r){var o=t.getUTCDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Yh(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,i,r){var o=t.getUTCDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Yh(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,i){var r=t.getUTCDay(),o=0===r?7:r;switch(e){case"i":return String(o);case"ii":return Yh(o,e.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,i){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,i){var r,o=t.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){var r,o=t.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),i.ordinalNumber(r,{unit:"hour"})}return Zh(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):$h(t,e)},K:function(t,e,i){var r=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(r,{unit:"hour"}):Yh(r,e.length)},k:function(t,e,i){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?i.ordinalNumber(r,{unit:"hour"}):Yh(r,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Jh(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Qh(t,e)},S:function(t,e){return tc(t,e)},X:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return ic(o);case"XXXX":case"XX":return rc(o);default:return rc(o,":")}},x:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return ic(o);case"xxxx":case"xx":return rc(o);default:return rc(o,":")}},O:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ec(o,":");default:return"GMT"+rc(o,":")}},z:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ec(o,":");default:return"GMT"+rc(o,":")}},t:function(t,e,i,r){return Yh(Math.floor((r._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,r){return Yh((r._originalDate||t).getTime(),e.length)}};var sc=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},nc=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},ac={p:nc,P:function(t,e){var i,r=t.match(/(P+)(p+)?/)||[],o=r[1],s=r[2];if(!s)return sc(t,e);switch(o){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",sc(o,e)).replace("{{time}}",nc(s,e))}};const lc=ac;function hc(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var cc=["D","DD"],uc=["YY","YYYY"];function dc(t){return-1!==cc.indexOf(t)}function mc(t){return-1!==uc.indexOf(t)}function pc(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var fc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function vc(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var gc,bc={date:vc({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:vc({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:vc({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},_c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function yc(t){return function(e,i){var r;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=null!=i&&i.width?String(i.width):o;r=t.formattingValues[s]||t.formattingValues[o]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;r=t.values[a]||t.values[n]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function wc(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.width,o=e.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!o)return null;var s,n=o[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return s=t.valueCallback?t.valueCallback(l):l,{value:s=i.valueCallback?i.valueCallback(s):s,rest:e.slice(n.length)}}}const Ec={code:"en-US",formatDistance:function(t,e,i){var r,o=fc[t];return r="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+r:r+" ago":r},formatLong:bc,formatRelative:function(t){return _c[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:yc({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:yc({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:yc({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:yc({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:yc({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(gc={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(gc.matchPattern);if(!i)return null;var r=i[0],o=t.match(gc.parsePattern);if(!o)return null;var s=gc.valueCallback?gc.valueCallback(o[0]):o[0];return{value:s=e.valueCallback?e.valueCallback(s):s,rest:t.slice(r.length)}}),era:wc({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:wc({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:wc({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:wc({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:wc({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var xc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ac=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,kc=/^'([^]*?)'?$/,Sc=/''/g,Ic=/[a-zA-Z]/;function Tc(t,e,i){var r,o,s,n,a,l,h,c,u,d,m,p,f,v,g,b,_,y;zh(2,arguments);var w=String(e),E=jh(),x=null!==(r=null!==(o=null==i?void 0:i.locale)&&void 0!==o?o:E.locale)&&void 0!==r?r:Ec,A=Uh(null!==(s=null!==(n=null!==(a=null!==(l=null==i?void 0:i.firstWeekContainsDate)&&void 0!==l?l:null==i||null===(h=i.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==a?a:E.firstWeekContainsDate)&&void 0!==n?n:null===(u=E.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==s?s:1);if(!(A>=1&&A<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var k=Uh(null!==(m=null!==(p=null!==(f=null!==(v=null==i?void 0:i.weekStartsOn)&&void 0!==v?v:null==i||null===(g=i.locale)||void 0===g||null===(b=g.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==f?f:E.weekStartsOn)&&void 0!==p?p:null===(_=E.locale)||void 0===_||null===(y=_.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:0);if(!(k>=0&&k<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var S=Gh(t);if(!function(t){if(zh(1,arguments),!function(t){return zh(1,arguments),t instanceof Date||"object"===Rh(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=Gh(t);return!isNaN(Number(e))}(S))throw new RangeError("Invalid time value");var I=Mh(S,hc(S)),T={firstWeekContainsDate:A,weekStartsOn:k,locale:x,_originalDate:S};return w.match(Ac).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,lc[e])(t,x.formatLong):t})).join("").match(xc).map((function(r){if("''"===r)return"'";var o,s,n=r[0];if("'"===n)return(s=(o=r).match(kc))?s[1].replace(Sc,"'"):o;var a=oc[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!mc(r)||pc(r,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!dc(r)||pc(r,e,String(t)),a(I,r,x.localize,T);if(n.match(Ic))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return r})).join("")}function Dc(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=Array(e);i<e;i++)r[i]=t[i];return r}function Nc(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Dc(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Dc(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return n=t.done,t},e:function(t){a=!0,s=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw s}}}}function Oc(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function Cc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function Rc(t,e){return Rc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},Rc(t,e)}function zc(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&Rc(t,e)}function Gc(t){return Gc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Gc(t)}function Uc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Uc=function(){return!!t})()}function Mc(t){var e=Uc();return function(){var i,r=Gc(t);if(e){var o=Gc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function(t,e){if(e&&("object"==Rh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Cc(t)}(this,i)}}function Lc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Pc(t){var e=function(t){if("object"!=Rh(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=Rh(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==Rh(e)?e:e+""}function Bc(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Pc(r.key),r)}}function Fc(t,e,i){return e&&Bc(t.prototype,e),i&&Bc(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function jc(t,e,i){return(e=Pc(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Vc=function(){function t(){Lc(this,t),jc(this,"priority",void 0),jc(this,"subPriority",0)}return Fc(t,[{key:"validate",value:function(){return!0}}]),t}(),qc=function(){zc(e,Vc);var t=Mc(e);function e(i,r,o,s,n){var a;return Lc(this,e),(a=t.call(this)).value=i,a.validateValue=r,a.setValue=o,a.priority=s,n&&(a.subPriority=n),a}return Fc(e,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,i){return this.setValue(t,e,this.value,i)}}]),e}(),Wc=function(){zc(e,Vc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",10),jc(Cc(i),"subPriority",-1),i}return Fc(e,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var i=new Date(0);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}}]),e}(),Yc=function(){function t(){Lc(this,t),jc(this,"incompatibleTokens",void 0),jc(this,"priority",void 0),jc(this,"subPriority",void 0)}return Fc(t,[{key:"run",value:function(t,e,i,r){var o=this.parse(t,e,i,r);return o?{setter:new qc(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),Hc=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",140),jc(Cc(i),"incompatibleTokens",["R","u","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,i){return e.era=i,t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Xc=/^(1[0-2]|0?\d)/,Kc=/^(3[0-1]|[0-2]?\d)/,Zc=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,$c=/^(5[0-3]|[0-4]?\d)/,Jc=/^(2[0-3]|[0-1]?\d)/,Qc=/^(2[0-4]|[0-1]?\d)/,tu=/^(1[0-1]|0?\d)/,eu=/^(1[0-2]|0?\d)/,iu=/^[0-5]?\d/,ru=/^[0-5]?\d/,ou=/^\d/,su=/^\d{1,2}/,nu=/^\d{1,3}/,au=/^\d{1,4}/,lu=/^-?\d+/,hu=/^-?\d/,cu=/^-?\d{1,2}/,uu=/^-?\d{1,3}/,du=/^-?\d{1,4}/,mu=/^([+-])(\d{2})(\d{2})?|Z/,pu=/^([+-])(\d{2})(\d{2})|Z/,fu=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,vu=/^([+-])(\d{2}):(\d{2})|Z/,gu=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function bu(t,e){return t?{value:e(t.value),rest:t.rest}:t}function _u(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function yu(t,e){var i=e.match(t);return i?"Z"===i[0]?{value:0,rest:e.slice(1)}:{value:("+"===i[1]?1:-1)*(36e5*(i[2]?parseInt(i[2],10):0)+6e4*(i[3]?parseInt(i[3],10):0)+1e3*(i[5]?parseInt(i[5],10):0)),rest:e.slice(i[0].length)}:null}function wu(t){return _u(lu,t)}function Eu(t,e){switch(t){case 1:return _u(ou,e);case 2:return _u(su,e);case 3:return _u(nu,e);case 4:return _u(au,e);default:return _u(new RegExp("^\\d{1,"+t+"}"),e)}}function xu(t,e){switch(t){case 1:return _u(hu,e);case 2:return _u(cu,e);case 3:return _u(uu,e);case 4:return _u(du,e);default:return _u(new RegExp("^-?\\d{1,"+t+"}"),e)}}function Au(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function ku(t,e){var i,r=e>0,o=r?e:1-e;if(o<=50)i=t||100;else{var s=o+50;i=t+100*Math.floor(s/100)-(t>=s%100?100:0)}return r?i:1-i}function Su(t){return t%400==0||t%4==0&&t%100!=0}var Iu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",130),jc(Cc(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){var r=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return bu(Eu(4,t),r);case"yo":return bu(i.ordinalNumber(t,{unit:"year"}),r);default:return bu(Eu(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i){var r=t.getUTCFullYear();if(i.isTwoDigitYear){var o=ku(i.year,r);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Tu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",130),jc(Cc(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){var r=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return bu(Eu(4,t),r);case"Yo":return bu(i.ordinalNumber(t,{unit:"year"}),r);default:return bu(Eu(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i,r){var o=qh(t,r);if(i.isTwoDigitYear){var s=ku(i.year,o);return t.setUTCFullYear(s,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Vh(t,r)}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Vh(t,r)}}]),e}(),Du=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",130),jc(Cc(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e){return xu("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){var r=new Date(0);return r.setUTCFullYear(i,0,4),r.setUTCHours(0,0,0,0),Lh(r)}}]),e}(),Nu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",130),jc(Cc(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e){return xu("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Ou=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",120),jc(Cc(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return Eu(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),Cu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",120),jc(Cc(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return Eu(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),Ru=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),jc(Cc(i),"priority",110),i}return Fc(e,[{key:"parse",value:function(t,e,i){var r=function(t){return t-1};switch(e){case"M":return bu(_u(Xc,t),r);case"MM":return bu(Eu(2,t),r);case"Mo":return bu(i.ordinalNumber(t,{unit:"month"}),r);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),zu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",110),jc(Cc(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){var r=function(t){return t-1};switch(e){case"L":return bu(_u(Xc,t),r);case"LL":return bu(Eu(2,t),r);case"Lo":return bu(i.ordinalNumber(t,{unit:"month"}),r);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Gu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",100),jc(Cc(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return _u($c,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return Eu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,r){return Vh(function(t,e,i){zh(2,arguments);var r=Gh(t),o=Uh(e),s=Wh(r,i)-o;return r.setUTCDate(r.getUTCDate()-7*s),r}(t,i,r),r)}}]),e}(),Uu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",100),jc(Cc(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return _u($c,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return Eu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return Lh(function(t,e){zh(2,arguments);var i=Gh(t),r=Uh(e),o=Bh(i)-r;return i.setUTCDate(i.getUTCDate()-7*o),i}(t,i))}}]),e}(),Mu=[31,28,31,30,31,30,31,31,30,31,30,31],Lu=[31,29,31,30,31,30,31,31,30,31,30,31],Pu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",90),jc(Cc(i),"subPriority",1),jc(Cc(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return _u(Kc,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return Eu(e.length,t)}}},{key:"validate",value:function(t,e){var i=Su(t.getUTCFullYear()),r=t.getUTCMonth();return i?e>=1&&e<=Lu[r]:e>=1&&e<=Mu[r]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),Bu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",90),jc(Cc(i),"subpriority",1),jc(Cc(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return _u(Zc,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return Eu(e.length,t)}}},{key:"validate",value:function(t,e){return Su(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,i){return t.setUTCMonth(0,i),t.setUTCHours(0,0,0,0),t}}]),e}();function Fu(t,e,i){var r,o,s,n,a,l,h,c;zh(2,arguments);var u=jh(),d=Uh(null!==(r=null!==(o=null!==(s=null!==(n=null==i?void 0:i.weekStartsOn)&&void 0!==n?n:null==i||null===(a=i.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==s?s:u.weekStartsOn)&&void 0!==o?o:null===(h=u.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==r?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Gh(t),p=Uh(e),f=((p%7+7)%7<d?7:0)+p-m.getUTCDay();return m.setUTCDate(m.getUTCDate()+f),m}var ju=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",90),jc(Cc(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,r){return(t=Fu(t,i,r)).setUTCHours(0,0,0,0),t}}]),e}(),Vu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",90),jc(Cc(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i,r){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return bu(Eu(e.length,t),o);case"eo":return bu(i.ordinalNumber(t,{unit:"day"}),o);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,r){return(t=Fu(t,i,r)).setUTCHours(0,0,0,0),t}}]),e}(),qu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",90),jc(Cc(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i,r){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return bu(Eu(e.length,t),o);case"co":return bu(i.ordinalNumber(t,{unit:"day"}),o);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,r){return(t=Fu(t,i,r)).setUTCHours(0,0,0,0),t}}]),e}(),Wu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",90),jc(Cc(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){var r=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return Eu(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return bu(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return bu(i.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return bu(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),r);default:return bu(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,i){return t=function(t,e){zh(2,arguments);var i=Uh(e);i%7==0&&(i-=7);var r=Gh(t),o=((i%7+7)%7<1?7:0)+i-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(t,i),t.setUTCHours(0,0,0,0),t}}]),e}(),Yu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",80),jc(Cc(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(Au(i),0,0,0),t}}]),e}(),Hu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",80),jc(Cc(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(Au(i),0,0,0),t}}]),e}(),Xu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",80),jc(Cc(i),"incompatibleTokens",["a","b","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(Au(i),0,0,0),t}}]),e}(),Ku=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",70),jc(Cc(i),"incompatibleTokens",["H","K","k","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return _u(eu,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return Eu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,i){var r=t.getUTCHours()>=12;return t.setUTCHours(r&&i<12?i+12:r||12!==i?i:0,0,0,0),t}}]),e}(),Zu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",70),jc(Cc(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return _u(Jc,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return Eu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,i){return t.setUTCHours(i,0,0,0),t}}]),e}(),$u=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",70),jc(Cc(i),"incompatibleTokens",["h","H","k","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return _u(tu,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return Eu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){var r=t.getUTCHours()>=12;return t.setUTCHours(r&&i<12?i+12:i,0,0,0),t}}]),e}(),Ju=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",70),jc(Cc(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return _u(Qc,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return Eu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,i){return t.setUTCHours(i<=24?i%24:i,0,0,0),t}}]),e}(),Qu=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",60),jc(Cc(i),"incompatibleTokens",["t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return _u(iu,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return Eu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCMinutes(i,0,0),t}}]),e}(),td=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",50),jc(Cc(i),"incompatibleTokens",["t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return _u(ru,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return Eu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCSeconds(i,0),t}}]),e}(),ed=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",30),jc(Cc(i),"incompatibleTokens",["t","T"]),i}return Fc(e,[{key:"parse",value:function(t,e){return bu(Eu(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,i){return t.setUTCMilliseconds(i),t}}]),e}(),id=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",10),jc(Cc(i),"incompatibleTokens",["t","T","x"]),i}return Fc(e,[{key:"parse",value:function(t,e){switch(e){case"X":return yu(mu,t);case"XX":return yu(pu,t);case"XXXX":return yu(fu,t);case"XXXXX":return yu(gu,t);default:return yu(vu,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),rd=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",10),jc(Cc(i),"incompatibleTokens",["t","T","X"]),i}return Fc(e,[{key:"parse",value:function(t,e){switch(e){case"x":return yu(mu,t);case"xx":return yu(pu,t);case"xxxx":return yu(fu,t);case"xxxxx":return yu(gu,t);default:return yu(vu,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),od=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",40),jc(Cc(i),"incompatibleTokens","*"),i}return Fc(e,[{key:"parse",value:function(t){return wu(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),sd=function(){zc(e,Yc);var t=Mc(e);function e(){var i;Lc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return jc(Cc(i=t.call.apply(t,[this].concat(o))),"priority",20),jc(Cc(i),"incompatibleTokens","*"),i}return Fc(e,[{key:"parse",value:function(t){return wu(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),nd={G:new Hc,y:new Iu,Y:new Tu,R:new Du,u:new Nu,Q:new Ou,q:new Cu,M:new Ru,L:new zu,w:new Gu,I:new Uu,d:new Pu,D:new Bu,E:new ju,e:new Vu,c:new qu,i:new Wu,a:new Yu,b:new Hu,B:new Xu,h:new Ku,H:new Zu,K:new $u,k:new Ju,m:new Qu,s:new td,S:new ed,X:new id,x:new rd,t:new od,T:new sd},ad=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ld=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hd=/^'([^]*?)'?$/,cd=/''/g,ud=/\S/,dd=/[a-zA-Z]/;function md(t,e,i,r){var o,s,n,a,l,h,c,u,d,m,p,f,v,g,b,_,y,w;zh(3,arguments);var E=String(t),x=String(e),A=jh(),k=null!==(o=null!==(s=null==r?void 0:r.locale)&&void 0!==s?s:A.locale)&&void 0!==o?o:Ec;if(!k.match)throw new RangeError("locale must contain match property");var S=Uh(null!==(n=null!==(a=null!==(l=null!==(h=null==r?void 0:r.firstWeekContainsDate)&&void 0!==h?h:null==r||null===(c=r.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:A.firstWeekContainsDate)&&void 0!==a?a:null===(d=A.locale)||void 0===d||null===(m=d.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==n?n:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var I=Uh(null!==(p=null!==(f=null!==(v=null!==(g=null==r?void 0:r.weekStartsOn)&&void 0!==g?g:null==r||null===(b=r.locale)||void 0===b||null===(_=b.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==v?v:A.weekStartsOn)&&void 0!==f?f:null===(y=A.locale)||void 0===y||null===(w=y.options)||void 0===w?void 0:w.weekStartsOn)&&void 0!==p?p:0);if(!(I>=0&&I<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===x)return""===E?Gh(i):new Date(NaN);var T,D={firstWeekContainsDate:S,weekStartsOn:I,locale:k},N=[new Wc],O=x.match(ld).map((function(t){var e=t[0];return e in lc?(0,lc[e])(t,k.formatLong):t})).join("").match(ad),C=[],R=Nc(O);try{var z=function(){var e=T.value;null!=r&&r.useAdditionalWeekYearTokens||!mc(e)||pc(e,x,t),null!=r&&r.useAdditionalDayOfYearTokens||!dc(e)||pc(e,x,t);var i=e[0],o=nd[i];if(o){var s=o.incompatibleTokens;if(Array.isArray(s)){var n=C.find((function(t){return s.includes(t.token)||t.token===i}));if(n)throw new RangeError("The format string mustn't contain `".concat(n.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===o.incompatibleTokens&&C.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));C.push({token:i,fullToken:e});var a=o.run(E,e,k.match,D);if(!a)return{v:new Date(NaN)};N.push(a.setter),E=a.rest}else{if(i.match(dd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(hd)[1].replace(cd,"'")),0!==E.indexOf(e))return{v:new Date(NaN)};E=E.slice(e.length)}};for(R.s();!(T=R.n()).done;){var G=z();if("object"===Rh(G))return G.v}}catch(t){R.e(t)}finally{R.f()}if(E.length>0&&ud.test(E))return new Date(NaN);var U=N.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,i){return i.indexOf(t)===e})).map((function(t){return N.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),M=Gh(i);if(isNaN(M.getTime()))return new Date(NaN);var L,P=Mh(M,hc(M)),B={},F=Nc(U);try{for(F.s();!(L=F.n()).done;){var j=L.value;if(!j.validate(P,D))return new Date(NaN);var V=j.set(P,B,D);Array.isArray(V)?(P=V[0],Oc(B,V[1])):P=V}}catch(t){F.e(t)}finally{F.f()}return P}function pd(t,e){zh(2,arguments);var i=Gh(t),r=Gh(e);return i.getTime()>r.getTime()}function fd(t,e){zh(2,arguments);var i=Gh(t),r=Gh(e);return i.getTime()<r.getTime()}const vd=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.clientStyling="",this.emitOnClick=!1,this.limitStylingAppends=!1,this.showTooltip=!1,this.touched=!1,this.formatDate=t=>{const{year:e,month:i,day:r}=t;return Tc(new Date(e,i,r),this.dateFormat||"yyyy-MM-dd")},this.parseDate=t=>{const e=md(t,this.dateFormat||"yyyy-MM-dd",new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var t,e;this.minDate=md((null===(t=this.validation.min)||void 0===t?void 0:t.toString())||"","yyyy-MM-dd",new Date),this.maxDate=md((null===(e=this.validation.max)||void 0===e?void 0:e.toString())||"","yyyy-MM-dd",new Date)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const t=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');t&&t.addEventListener("click",(()=>this.handleCalendarIconClick()))}this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(t){this.value=t.target.value,this.touched=!0,this.valueAsDate=md(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return!fd(this.valueAsDate,this.minDate)&&!pd(this.valueAsDate,this.maxDate)&&this.inputReference.validity.valid}setErrorMessage(){return fd(this.valueAsDate,this.minDate)||pd(this.valueAsDate,this.maxDate)?n("dateError2",this.language):this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?n("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):this.inputReference.validity.valueMissing?n("requiredError",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"date__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"fc9cd0a618c7b6e62962c0800399a470fffa1fc4",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("label",{key:"abc7c1715dd2d0c60dd2ac6d028355de910be501",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),i("vaadin-date-picker",{key:"a6b40a978b573d41490457d708f9a7ac78622a6f",id:`${this.name}__input`,type:"date",class:`date__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:t=>this.handleInput(t),onBlur:this.handleBlur}),i("small",{key:"d802ea7b25a64802aca3a7491107fcee7af2a23c",class:"date__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"46edd200a9ce9eba27414a6434c6b3d5e9dc9964",class:"date__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return r(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};vd.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:rgba(204, 0, 0, 0.7019607843)}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}';const gd=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.value=t.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,r;if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return n(`${i}`,this.language)?n(`${i}`,this.language):r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return n("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return n("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(r=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===r?void 0:r.errorMessage;return n(`${t}`,this.language)?n(`${t}`,this.language):e}}renderTooltip(){return this.showTooltip?i("div",{class:"email__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"23ac67984ab7a0f4db01e5fe01f4f326b4c6a912",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"aa2405e435aea20f1678dd74776a8ce4094bc95b",class:"email__wrapper--flex"},i("label",{key:"970b83bbcf082d1721c1647993fecd076939b65d",class:"email__label "+(this.validation.mandatory?"email__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"2f03eaf161aab9b45282c1bc0de15bea8455427c",class:"email__wrapper--relative"},this.tooltip&&i("img",{key:"3c34b91f0b478cf04f5aabc5fdd33a8ed73d091b",class:"email__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"491f83c0f562893c02e3425b4d54eecc214e3c95",id:`${this.name}__input`,type:"email",class:`email__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"edb6660d958cc5d0cb41b0db195bd7e847ecbefe",class:"email__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};gd.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.email__tooltip.visible{opacity:1}';const bd=class{constructor(e){t(this,e),this.type="text",this.clientStyling="",this.translationUrl="",this.emitOnClick=!1,this.handleClick=t=>{this.emitOnClick&&(t.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))}}connectedCallback(){var t;this.translationUrl&&(t=this.translationUrl,new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])s[e][i]=t[e][i]})),e(!0)}))})))}renderInput(){var t;switch(null===(t=this.type)||void 0===t?void 0:t.toLowerCase()){case"text":return i("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return i("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return i("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return i("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return i("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return i("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return i("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick});case"password":return i("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return i("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return i("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return i("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});default:return i("p",null,"The ",this.type," input type is not valid")}}render(){return i(o,{key:"e1c49fc91ead165c05b30c21ac568486e55c8096",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};bd.style=":host{display:block;height:100%}";const _d={en:{GmErr_AMOUNT_INVALID:"The specified amount is invalid.",GmErr_REGISTER_OVERAGE:"The registration has exceeded the allowable limit.",GmErr_REGISTER_UNDERAGE:"The registration is under the allowable limit.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"User authentication failed due to too many unsuccessful attempts.",GmErr_USER_ACCOUNT_BLOCKED:"The user account is blocked.",GmErr_USER_NOT_VERIFIED:"The user has not been verified.",GmErr_USER_NOT_FOUND:"No user found with the provided information.",GmErr_USER_ID_INVALID:"The user ID provided is invalid.",GmErr_USER_AUTH_FAILED:"User authentication failed.",GmErr_USER_DUPLICATED:"The user already exists in the system.",GmErr_USER_NOT_ACTIVATED:"The user account has not been activated.",GmErr_PASSWORD_CONTAINS_EMAIL:"The password cannot contain the email address.",GmErr_PASSWORD_CONTAINS_USERNAME:"The password cannot contain the username.",GmErr_PASSWORD_CONTAINS_SPACES:"The password cannot contain spaces.",GmErr_USER_4TS_CHECK_EXISTS:"The user 4TS check already exists.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"The user is excluded from registration.",GmErr_USER_NAV_EXCLUDED_LOGIN:"The user is excluded from login.",GmErr_USERNAME_REQUIRED:"A username is required.",GmErr_USER_EMAIL_NOT_VERIFIED:"The user's email address has not been verified.",GmErr_EMAIL_ALREADY_EXISTS:"User with same email already exists",GmErr_EMAIL_REQUIRED:"An email address is required.",GmErr_USERNAME_ALREADY_EXISTS:"The username is already taken.",GmErr_DUPLICATE_PERSONAL_ID:"Duplicate personal ID found.",GmErr_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_INVALID_CODE:"The code provided is invalid.",GmErr_EXPIRED_TOKEN:"The token has expired.",GmErr_ATTEMPTS_EXCEEDED:"The maximum number of attempts has been exceeded.",GmErr_BLOCK_USER_INCORRECT_CODE:"The user has been blocked due to an incorrect code.",GmErr_TOKEN_NOT_FOUND:"The token was not found.",GmErr_INVALID_PHONE_NUMBER:"The phone number provided is invalid.",GmErr_CODE_MISSING:"The code is missing.",GmErr_UNREGISTERED_USER:"The user is not registered.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Maximum attempts to generate a code have been exceeded.",GmErr_UNEXPECTED_EXCEPTION:"An unexpected exception occurred.",GmErr_INVALID_USER_ID:"The user ID provided is invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"This action is not allowed.",GmErr_CAN_NOT_FIND_ROLE:"Unable to find the specified role.",GmErr_NO_SESSION_PROVIDED:"No session was provided.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No active session found for this user.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"The user has already been anonymized.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No role has been set up to be assigned.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"The provided session does not belong to the user.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"The provided session does not exist.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"The role has already been assigned to the user.",GmErr_ASSIGN_USER_ROLE_FAILED:"Failed to assign a role to the user.",GmErr_BadRequest_1000:"There was a problem with the personal identification number",CountryRestricted:"Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",nextButton:"Next",backButton:"Back",doneButton:"Done",generalError:"Something went wrong... Please try again.",successMessage:"Register successful"},hu:{GmErr_AMOUNT_INVALID:"A megadott összeg érvénytelen.",GmErr_REGISTER_OVERAGE:"A regisztráció túllépte a megengedett határt.",GmErr_REGISTER_UNDERAGE:"A regisztráció a megengedett határ alatt van.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"A felhasználó hitelesítése túl sok sikertelen próbálkozás miatt meghiúsult.",GmErr_USER_ACCOUNT_BLOCKED:"A felhasználói fiók le van tiltva.",GmErr_USER_NOT_VERIFIED:"A felhasználó nincs ellenőrizve.",GmErr_USER_NOT_FOUND:"A megadott adatokkal nem található felhasználó.",GmErr_USER_ID_INVALID:"A megadott felhasználói azonosító érvénytelen.",GmErr_USER_AUTH_FAILED:"A felhasználó hitelesítése meghiúsult.",GmErr_USER_DUPLICATED:"A felhasználó már létezik a rendszerben.",GmErr_USER_NOT_ACTIVATED:"A felhasználó fiókja nincs aktiválva.",GmErr_PASSWORD_CONTAINS_EMAIL:"A jelszó nem tartalmazhat e-mail címet.",GmErr_PASSWORD_CONTAINS_USERNAME:"A jelszó nem tartalmazhat felhasználónevet.",GmErr_PASSWORD_CONTAINS_SPACES:"A jelszó nem tartalmazhat szóközöket.",GmErr_USER_4TS_CHECK_EXISTS:"A felhasználó 4TS ellenőrzése már létezik.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"A felhasználó kizárva a regisztrációból.",GmErr_USER_NAV_EXCLUDED_LOGIN:"A felhasználó kizárva a bejelentkezésből.",GmErr_USERNAME_REQUIRED:"Felhasználónév megadása szükséges.",GmErr_USER_EMAIL_NOT_VERIFIED:"A felhasználó e-mail címe nincs megerősítve.",GmErr_EMAIL_ALREADY_EXISTS:"A megadott e-mail címmel már létezik felhasználó",GmErr_EMAIL_REQUIRED:"E-mail cím megadása szükséges.",GmErr_USERNAME_ALREADY_EXISTS:"A felhasználónév már foglalt.",GmErr_DUPLICATE_PERSONAL_ID:"Már létező személyes azonosító.",GmErr_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_INVALID_CODE:"A megadott kód érvénytelen.",GmErr_EXPIRED_TOKEN:"A token lejárt.",GmErr_ATTEMPTS_EXCEEDED:"A megengedett próbálkozások száma túllépve.",GmErr_BLOCK_USER_INCORRECT_CODE:"A felhasználó blokkolva lett a hibás kód miatt.",GmErr_TOKEN_NOT_FOUND:"A token nem található.",GmErr_INVALID_PHONE_NUMBER:"A megadott telefonszám érvénytelen.",GmErr_CODE_MISSING:"A szükséges kód hiányzik.",GmErr_UNREGISTERED_USER:"A felhasználó nincs regisztrálva.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túllépték a kódgenerálási próbálkozások számát.",GmErr_UNEXPECTED_EXCEPTION:"Váratlan kivétel történt.",GmErr_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_NOT_ALLOWED_EXCEPTION:"Ez a művelet nem engedélyezett.",GmErr_CAN_NOT_FIND_ROLE:"A megadott szerepkör nem található.",GmErr_NO_SESSION_PROVIDED:"Nem került megadásra munkamenet.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nincs aktív munkamenet ehhez a felhasználóhoz.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"A felhasználó már anonimizálva lett.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nincs beállítva hozzárendelhető szerepkör.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A megadott munkamenet nem tartozik a felhasználóhoz.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A megadott munkamenet nem létezik.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A szerepkör már hozzá lett rendelve a felhasználóhoz.",GmErr_ASSIGN_USER_ROLE_FAILED:"Nem sikerült a felhasználói szerepkört hozzárendelni.",GmErr_BadRequest_1000:"Probléma volt a személyi azonosító számmal",CountryRestricted:"Sajnálatos módon olyan országból próbál regisztrálni, ahonnan nem fogadhatunk játékot. Emiatt nem tudjuk feldolgozni a regisztrációját.",nextButton:"Következő",backButton:"Vissza",doneButton:"Kész",generalError:"Valami hiba történt... Próbáld újra.",successMessage:"Sikeres regisztráció"},hr:{GmErr_AMOUNT_INVALID:"Navedeni iznos je nevažeći.",GmErr_REGISTER_OVERAGE:"Registracija je premašila dopušteni limit.",GmErr_REGISTER_UNDERAGE:"Registracija je ispod dopuštenog limita.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Neuspješno autentificiranje korisnika zbog previše pokušaja.",GmErr_USER_ACCOUNT_BLOCKED:"Korisnički račun je blokiran.",GmErr_USER_NOT_VERIFIED:"Korisnik nije verificiran.",GmErr_USER_NOT_FOUND:"Korisnik s navedenim podacima nije pronađen.",GmErr_USER_ID_INVALID:"Navedeni ID korisnika je nevažeći.",GmErr_USER_AUTH_FAILED:"Neuspješno autentificiranje korisnika.",GmErr_USER_DUPLICATED:"Korisnik već postoji u sustavu.",GmErr_USER_NOT_ACTIVATED:"Korisnički račun nije aktiviran.",GmErr_PASSWORD_CONTAINS_EMAIL:"Lozinka ne smije sadržavati e-mail adresu.",GmErr_PASSWORD_CONTAINS_USERNAME:"Lozinka ne smije sadržavati korisničko ime.",GmErr_PASSWORD_CONTAINS_SPACES:"Lozinka ne smije sadržavati razmake.",GmErr_USER_4TS_CHECK_EXISTS:"4TS provjera korisnika već postoji.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Korisnik je isključen iz registracije.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Korisnik je isključen iz prijave.",GmErr_USERNAME_REQUIRED:"Korisničko ime je obavezno.",GmErr_USER_EMAIL_NOT_VERIFIED:"E-mail adresa korisnika nije verificirana.",GmErr_EMAIL_ALREADY_EXISTS:"Korisnik s istom e-mail adresom već postoji",GmErr_EMAIL_REQUIRED:"E-mail adresa je obavezna.",GmErr_USERNAME_ALREADY_EXISTS:"Korisničko ime je već zauzeto.",GmErr_DUPLICATE_PERSONAL_ID:"Pronađen je duplicirani osobni ID.",GmErr_INVALID_USER_DOCUMENT:"Dokument korisnika je nevažeći.",GmErr_INVALID_CODE:"Navedeni kod je nevažeći.",GmErr_EXPIRED_TOKEN:"Token je istekao.",GmErr_ATTEMPTS_EXCEEDED:"Prekoračen je maksimalni broj pokušaja.",GmErr_BLOCK_USER_INCORRECT_CODE:"Korisnik je blokiran zbog pogrešnog koda.",GmErr_TOKEN_NOT_FOUND:"Token nije pronađen.",GmErr_INVALID_PHONE_NUMBER:"Navedeni broj telefona je nevažeći.",GmErr_CODE_MISSING:"Nedostaje potrebni kod.",GmErr_UNREGISTERED_USER:"Korisnik nije registriran.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Prekoračen je broj pokušaja generiranja koda.",GmErr_UNEXPECTED_EXCEPTION:"Došlo je do neočekivane iznimke.",GmErr_INVALID_USER_ID:"Navedeni ID korisnika je nevažeći.",GmErr_NOT_ALLOWED_EXCEPTION:"Ova radnja nije dopuštena.",GmErr_CAN_NOT_FIND_ROLE:"Navedena uloga nije pronađena.",GmErr_NO_SESSION_PROVIDED:"Nema pružene sesije.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nema aktivne sesije za ovog korisnika.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Korisnik je već anonimiziran.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nema postavljene uloge za dodjeljivanje.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Pružena sesija ne pripada korisniku.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Pružena sesija ne postoji.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Uloga je već dodijeljena korisniku.",GmErr_ASSIGN_USER_ROLE_FAILED:"Neuspješno dodjeljivanje uloge korisniku.",GmErr_BadRequest_1000:"Došlo je do problema s OIB-om",CountryRestricted:"Nažalost, prijavljujete se iz zemlje iz koje ne možemo prihvatiti igru. Nismo u mogućnosti obraditi registraciju iz navedenog razloga.",nextButton:"Sljedeće",backButton:"Nazad",doneButton:"Gotovo",generalError:"Korisnik s ovim podacima već postoji.",successMessage:"Register successful"},"pt-br":{GmErr_AMOUNT_INVALID:"O valor especificado é inválido.",GmErr_REGISTER_OVERAGE:"A inscrição excedeu o limite permitido.",GmErr_REGISTER_UNDERAGE:"A inscrição está abaixo do limite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Falha na autenticação do usuário devido a muitas tentativas sem sucesso.",GmErr_USER_ACCOUNT_BLOCKED:"A conta do usuário está bloqueada.",GmErr_USER_NOT_VERIFIED:"O usuário não foi verificado.",GmErr_USER_NOT_FOUND:"Nenhum usuário encontrado com as informações fornecidas.",GmErr_USER_ID_INVALID:"O ID do usuário fornecido é inválido.",GmErr_USER_AUTH_FAILED:"Falha na autenticação do usuário.",GmErr_USER_DUPLICATED:"O usuário já existe no sistema.",GmErr_USER_NOT_ACTIVATED:"A conta do usuário não está ativada.",GmErr_PASSWORD_CONTAINS_EMAIL:"A senha não pode conter o endereço de e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"A senha não pode conter o nome de usuário.",GmErr_PASSWORD_CONTAINS_SPACES:"A senha não pode conter espaços.",GmErr_USER_4TS_CHECK_EXISTS:"A verificação 4TS do usuário já existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"O usuário está excluído da inscrição.",GmErr_USER_NAV_EXCLUDED_LOGIN:"O usuário está excluído do login.",GmErr_USERNAME_REQUIRED:"O nome de usuário é obrigatório.",GmErr_USER_EMAIL_NOT_VERIFIED:"O e-mail do usuário não foi verificado.",GmErr_EMAIL_ALREADY_EXISTS:"Usuário com o mesmo e-mail já existe",GmErr_EMAIL_REQUIRED:"Um endereço de e-mail é obrigatório.",GmErr_USERNAME_ALREADY_EXISTS:"O nome de usuário já está em uso.",GmErr_DUPLICATE_PERSONAL_ID:"ID pessoal duplicado encontrado.",GmErr_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_INVALID_CODE:"O código fornecido é inválido.",GmErr_EXPIRED_TOKEN:"O token expirou.",GmErr_ATTEMPTS_EXCEEDED:"O número máximo de tentativas foi excedido.",GmErr_BLOCK_USER_INCORRECT_CODE:"O usuário foi bloqueado devido a um código incorreto.",GmErr_TOKEN_NOT_FOUND:"O token não foi encontrado.",GmErr_INVALID_PHONE_NUMBER:"O número de telefone fornecido é inválido.",GmErr_CODE_MISSING:"O código necessário está faltando.",GmErr_UNREGISTERED_USER:"O usuário não está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"O número máximo de tentativas para gerar um código foi excedido.",GmErr_UNEXPECTED_EXCEPTION:"Ocorreu uma exceção inesperada.",GmErr_INVALID_USER_ID:"O ID do usuário fornecido é inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta ação não é permitida.",GmErr_CAN_NOT_FIND_ROLE:"Não foi possível encontrar a função especificada.",GmErr_NO_SESSION_PROVIDED:"Nenhuma sessão foi fornecida.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nenhuma sessão ativa encontrada para este usuário.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"O usuário já foi anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nenhuma função foi configurada para ser atribuída.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A sessão fornecida não pertence ao usuário.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A sessão fornecida não existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A função já foi atribuída ao usuário.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falha ao atribuir a função ao usuário.",GmErr_BadRequest_1000:"Houve um problema com o número de identificação pessoal",CountryRestricted:"Infelizmente, você está tentando se registrar a partir de um país onde não podemos aceitar jogos. Não podemos processar seu registro por esse motivo.",nextButton:"Seguindo",backButton:"Voltar",doneButton:"Terminar",generalError:"Alguma coisa deu errado. Por favor tente outra vez",successMessage:"Registro bem-sucedido"},"es-mx":{GmErr_AMOUNT_INVALID:"El monto especificado es inválido.",GmErr_REGISTER_OVERAGE:"La inscripción ha excedido el límite permitido.",GmErr_REGISTER_UNDERAGE:"La inscripción está por debajo del límite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Autenticación de usuario fallida debido a demasiados intentos fallidos.",GmErr_USER_ACCOUNT_BLOCKED:"La cuenta del usuario está bloqueada.",GmErr_USER_NOT_VERIFIED:"El usuario no ha sido verificado.",GmErr_USER_NOT_FOUND:"No se encontró ningún usuario con la información proporcionada.",GmErr_USER_ID_INVALID:"El ID de usuario proporcionado es inválido.",GmErr_USER_AUTH_FAILED:"La autenticación del usuario falló.",GmErr_USER_DUPLICATED:"El usuario ya existe en el sistema.",GmErr_USER_NOT_ACTIVATED:"La cuenta del usuario no está activada.",GmErr_PASSWORD_CONTAINS_EMAIL:"La contraseña no puede contener la dirección de correo electrónico.",GmErr_PASSWORD_CONTAINS_USERNAME:"La contraseña no puede contener el nombre de usuario.",GmErr_PASSWORD_CONTAINS_SPACES:"La contraseña no puede contener espacios.",GmErr_USER_4TS_CHECK_EXISTS:"La verificación 4TS del usuario ya existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"El usuario está excluido del registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"El usuario está excluido del inicio de sesión.",GmErr_USERNAME_REQUIRED:"Se requiere un nombre de usuario.",GmErr_USER_EMAIL_NOT_VERIFIED:"La dirección de correo electrónico del usuario no ha sido verificada.",GmErr_EMAIL_ALREADY_EXISTS:"Ya existe un usuario con el mismo correo electrónico",GmErr_EMAIL_REQUIRED:"Se requiere una dirección de correo electrónico.",GmErr_USERNAME_ALREADY_EXISTS:"El nombre de usuario ya está en uso.",GmErr_DUPLICATE_PERSONAL_ID:"Se encontró un ID personal duplicado.",GmErr_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_INVALID_CODE:"El código proporcionado es inválido.",GmErr_EXPIRED_TOKEN:"El token ha expirado.",GmErr_ATTEMPTS_EXCEEDED:"Se ha excedido el número máximo de intentos.",GmErr_BLOCK_USER_INCORRECT_CODE:"El usuario ha sido bloqueado debido a un código incorrecto.",GmErr_TOKEN_NOT_FOUND:"No se encontró el token.",GmErr_INVALID_PHONE_NUMBER:"El número de teléfono proporcionado es inválido.",GmErr_CODE_MISSING:"Falta el código necesario.",GmErr_UNREGISTERED_USER:"El usuario no está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Se ha excedido el número máximo de intentos para generar un código.",GmErr_UNEXPECTED_EXCEPTION:"Ocurrió una excepción inesperada.",GmErr_INVALID_USER_ID:"El ID de usuario proporcionado es inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta acción no está permitida.",GmErr_CAN_NOT_FIND_ROLE:"No se pudo encontrar el rol especificado.",GmErr_NO_SESSION_PROVIDED:"No se proporcionó ninguna sesión.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No se encontró ninguna sesión activa para este usuario.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"El usuario ya ha sido anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No se ha configurado ningún rol para ser asignado.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La sesión proporcionada no pertenece al usuario.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La sesión proporcionada no existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"El rol ya ha sido asignado al usuario.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falló la asignación del rol al usuario.",GmErr_BadRequest_1000:"Hubo un problema con el número de identificación personal",CountryRestricted:"Desafortunadamente, estás intentando registrarte desde un país donde no podemos aceptar juegos. No podemos procesar tu registro por esta razón.",nextButton:"Siguiente",backButton:"Atrás",doneButton:"Terminar",generalError:"Algo salió mal... Por favor intente de nuevo",successMessage:"Registro exitoso"},tr:{nextButton:"Next",backButton:"Back",doneButton:"Done",GmErr_BadRequest_Duplicate_User:"A user with this information already exists.",GmErr_BadRequest_PasswordContainsUsername:"The password cannot be the same as the username.",GmErr_BadRequest_PasswordContainsEmail:"The password cannot be the same as the email.",GmErr_BadRequest_Duplicate_PersonalId:"There is already a registration with the data you entered or you entered your data in an incorrect format.",GmErr_Forbidden_UserAccount_NavExcluded:"User is NAV Excluded. Registration was denied.",GmErr_BadRequest_ModelValidationFailed:"Something went wrong... Please try again.",GmErr_BadInternalConfigs:"Something went wrong... Please try again.",GmErr_Unauthorized:"Something went wrong... Please try again.",GmErr_NotFound:"Something went wrong... Please try again.",GmErr_UnexpectedException:"Something went wrong... Please try again.",CountryRestricted:"Maalesef, oyun kabul edemediğimiz bir ülkeden kayıt yapmaya çalışıyorsunuz. Bu nedenle kaydınızı işleme alamıyoruz.",generalError:"Something went wrong... Please try again.",successMessage:"Register successful"},"en-us":{GmErr_AMOUNT_INVALID:"The specified amount is invalid.",GmErr_REGISTER_OVERAGE:"The registration has exceeded the allowable limit.",GmErr_REGISTER_UNDERAGE:"The registration is under the allowable limit.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"User authentication failed due to too many unsuccessful attempts.",GmErr_USER_ACCOUNT_BLOCKED:"The user account is blocked.",GmErr_USER_NOT_VERIFIED:"The user has not been verified.",GmErr_USER_NOT_FOUND:"No user found with the provided information.",GmErr_USER_ID_INVALID:"The user ID provided is invalid.",GmErr_USER_AUTH_FAILED:"User authentication failed.",GmErr_USER_DUPLICATED:"The user already exists in the system.",GmErr_USER_NOT_ACTIVATED:"The user account has not been activated.",GmErr_PASSWORD_CONTAINS_EMAIL:"The password cannot contain the email address.",GmErr_PASSWORD_CONTAINS_USERNAME:"The password cannot contain the username.",GmErr_PASSWORD_CONTAINS_SPACES:"The password cannot contain spaces.",GmErr_USER_4TS_CHECK_EXISTS:"The user 4TS check already exists.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"The user is excluded from registration.",GmErr_USER_NAV_EXCLUDED_LOGIN:"The user is excluded from login.",GmErr_USERNAME_REQUIRED:"A username is required.",GmErr_USER_EMAIL_NOT_VERIFIED:"The user's email address has not been verified.",GmErr_EMAIL_ALREADY_EXISTS:"User with same email already exists",GmErr_EMAIL_REQUIRED:"An email address is required.",GmErr_USERNAME_ALREADY_EXISTS:"The username is already taken.",GmErr_DUPLICATE_PERSONAL_ID:"Duplicate personal ID found.",GmErr_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_INVALID_CODE:"The code provided is invalid.",GmErr_EXPIRED_TOKEN:"The token has expired.",GmErr_ATTEMPTS_EXCEEDED:"The maximum number of attempts has been exceeded.",GmErr_BLOCK_USER_INCORRECT_CODE:"The user has been blocked due to an incorrect code.",GmErr_TOKEN_NOT_FOUND:"The token was not found.",GmErr_INVALID_PHONE_NUMBER:"The phone number provided is invalid.",GmErr_CODE_MISSING:"The code is missing.",GmErr_UNREGISTERED_USER:"The user is not registered.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Maximum attempts to generate a code have been exceeded.",GmErr_UNEXPECTED_EXCEPTION:"An unexpected exception occurred.",GmErr_INVALID_USER_ID:"The user ID provided is invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"This action is not allowed.",GmErr_CAN_NOT_FIND_ROLE:"Unable to find the specified role.",GmErr_NO_SESSION_PROVIDED:"No session was provided.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No active session found for this user.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"The user has already been anonymized.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No role has been set up to be assigned.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"The provided session does not belong to the user.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"The provided session does not exist.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"The role has already been assigned to the user.",GmErr_ASSIGN_USER_ROLE_FAILED:"Failed to assign a role to the user.",GmErr_BadRequest_1000:"There was a problem with the personal identification number",CountryRestricted:"Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",nextButton:"Next",backButton:"Back",doneButton:"Done",generalError:"Something went wrong... Please try again.",successMessage:"Register successful"},ro:{GmErr_AMOUNT_INVALID:"Suma specificată este invalidă.",GmErr_REGISTER_OVERAGE:"Înregistrarea a depășit limita permisă.",GmErr_REGISTER_UNDERAGE:"Înregistrarea este sub limita permisă.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Autentificarea utilizatorului a eșuat din cauza prea multor încercări nereușite.",GmErr_USER_ACCOUNT_BLOCKED:"Contul utilizatorului este blocat.",GmErr_USER_NOT_VERIFIED:"Utilizatorul nu a fost verificat.",GmErr_USER_NOT_FOUND:"Nu s-a găsit niciun utilizator cu informațiile furnizate.",GmErr_USER_ID_INVALID:"ID-ul utilizatorului furnizat este invalid.",GmErr_USER_AUTH_FAILED:"Autentificarea utilizatorului a eșuat.",GmErr_USER_DUPLICATED:"Utilizatorul există deja în sistem.",GmErr_USER_NOT_ACTIVATED:"Contul utilizatorului nu a fost activat.",GmErr_PASSWORD_CONTAINS_EMAIL:"Parola nu poate conține adresa de email.",GmErr_PASSWORD_CONTAINS_USERNAME:"Parola nu poate conține numele de utilizator.",GmErr_PASSWORD_CONTAINS_SPACES:"Parola nu poate conține spații.",GmErr_USER_4TS_CHECK_EXISTS:"Verificarea utilizatorului 4TS există deja.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Utilizatorul este exclus de la înregistrare.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Utilizatorul este exclus de la autentificare.",GmErr_USERNAME_REQUIRED:"Este necesar un nume de utilizator.",GmErr_USER_EMAIL_NOT_VERIFIED:"Adresa de email a utilizatorului nu a fost verificată.",GmErr_EMAIL_ALREADY_EXISTS:"Un utilizator cu același email există deja.",GmErr_EMAIL_REQUIRED:"Este necesară o adresă de email.",GmErr_USERNAME_ALREADY_EXISTS:"Numele de utilizator este deja utilizat.",GmErr_DUPLICATE_PERSONAL_ID:"S-a găsit un ID personal duplicat.",GmErr_INVALID_USER_DOCUMENT:"Documentul utilizatorului este invalid.",GmErr_INVALID_CODE:"Codul furnizat este invalid.",GmErr_EXPIRED_TOKEN:"Token-ul a expirat.",GmErr_ATTEMPTS_EXCEEDED:"Numărul maxim de încercări a fost depășit.",GmErr_BLOCK_USER_INCORRECT_CODE:"Utilizatorul a fost blocat din cauza unui cod incorect.",GmErr_TOKEN_NOT_FOUND:"Token-ul nu a fost găsit.",GmErr_INVALID_PHONE_NUMBER:"Numărul de telefon furnizat este invalid.",GmErr_CODE_MISSING:"Lipsește codul.",GmErr_UNREGISTERED_USER:"Utilizatorul nu este înregistrat.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"S-a depășit numărul maxim de încercări pentru generarea unui cod.",GmErr_UNEXPECTED_EXCEPTION:"A apărut o eroare neașteptată.",GmErr_INVALID_USER_ID:"ID-ul utilizatorului furnizat este invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"Acțiunea nu este permisă.",GmErr_CAN_NOT_FIND_ROLE:"Nu s-a găsit rolul specificat.",GmErr_NO_SESSION_PROVIDED:"Nu a fost furnizată nicio sesiune.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nu a fost găsită nicio sesiune activă pentru acest utilizator.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Utilizatorul a fost deja anonimizat.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nu a fost configurat niciun rol de atribuit.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Sesiunea furnizată nu aparține utilizatorului.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Sesiunea furnizată nu există.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Rolul a fost deja atribuit utilizatorului.",GmErr_ASSIGN_USER_ROLE_FAILED:"Atribuirea rolului utilizatorului a eșuat.",GmErr_BadRequest_1000:"A apărut o problemă cu numărul de identificare personal.",CountryRestricted:"Din păcate, încercați să vă înregistrați dintr-o țară unde nu putem accepta jocuri. Din acest motiv, nu vă putem procesa înregistrarea.",nextButton:"Următorul",backButton:"Înapoi",doneButton:"Finalizat",generalError:"Ceva a mers prost... Vă rugăm să încercați din nou.",successMessage:"Înregistrare reușită"},fr:{GmErr_AMOUNT_INVALID:"Le montant spécifié est invalide.",GmErr_REGISTER_OVERAGE:"L'inscription a dépassé la limite autorisée.",GmErr_REGISTER_UNDERAGE:"L'inscription est en dessous de la limite autorisée.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Échec de l'authentification utilisateur en raison de trop nombreuses tentatives infructueuses.",GmErr_USER_ACCOUNT_BLOCKED:"Le compte utilisateur est bloqué.",GmErr_USER_NOT_VERIFIED:"L'utilisateur n'a pas été vérifié.",GmErr_USER_NOT_FOUND:"Aucun utilisateur trouvé avec les informations fournies.",GmErr_USER_ID_INVALID:"L'identifiant utilisateur fourni est invalide.",GmErr_USER_AUTH_FAILED:"Échec de l'authentification utilisateur.",GmErr_USER_DUPLICATED:"L'utilisateur existe déjà dans le système.",GmErr_USER_NOT_ACTIVATED:"Le compte utilisateur n'a pas été activé.",GmErr_PASSWORD_CONTAINS_EMAIL:"Le mot de passe ne peut pas contenir l'adresse e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"Le mot de passe ne peut pas contenir le nom d'utilisateur.",GmErr_PASSWORD_CONTAINS_SPACES:"Le mot de passe ne peut pas contenir d'espaces.",GmErr_USER_4TS_CHECK_EXISTS:"La vérification utilisateur 4TS existe déjà.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"L'utilisateur est exclu de l'enregistrement.",GmErr_USER_NAV_EXCLUDED_LOGIN:"L'utilisateur est exclu de la connexion.",GmErr_USERNAME_REQUIRED:"Un nom d'utilisateur est requis.",GmErr_USER_EMAIL_NOT_VERIFIED:"L'adresse e-mail de l'utilisateur n'a pas été vérifiée.",GmErr_EMAIL_ALREADY_EXISTS:"Un utilisateur avec la même adresse e-mail existe déjà.",GmErr_EMAIL_REQUIRED:"Une adresse e-mail est requise.",GmErr_USERNAME_ALREADY_EXISTS:"Le nom d'utilisateur est déjà pris.",GmErr_DUPLICATE_PERSONAL_ID:"Un identifiant personnel dupliqué a été trouvé.",GmErr_INVALID_USER_DOCUMENT:"Le document utilisateur est invalide.",GmErr_INVALID_CODE:"Le code fourni est invalide.",GmErr_EXPIRED_TOKEN:"Le jeton a expiré.",GmErr_ATTEMPTS_EXCEEDED:"Le nombre maximum de tentatives a été dépassé.",GmErr_BLOCK_USER_INCORRECT_CODE:"L'utilisateur a été bloqué en raison d'un code incorrect.",GmErr_TOKEN_NOT_FOUND:"Le jeton n'a pas été trouvé.",GmErr_INVALID_PHONE_NUMBER:"Le numéro de téléphone fourni est invalide.",GmErr_CODE_MISSING:"Le code est manquant.",GmErr_UNREGISTERED_USER:"L'utilisateur n'est pas enregistré.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Le nombre maximum de tentatives pour générer un code a été dépassé.",GmErr_UNEXPECTED_EXCEPTION:"Une exception inattendue s'est produite.",GmErr_INVALID_USER_ID:"L'identifiant utilisateur fourni est invalide.",GmErr_NOT_ALLOWED_EXCEPTION:"Cette action n'est pas autorisée.",GmErr_CAN_NOT_FIND_ROLE:"Impossible de trouver le rôle spécifié.",GmErr_NO_SESSION_PROVIDED:"Aucune session n'a été fournie.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Aucune session active n'a été trouvée pour cet utilisateur.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"L'utilisateur a déjà été anonymisé.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Aucun rôle n'a été configuré pour être attribué.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La session fournie n'appartient pas à l'utilisateur.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La session fournie n'existe pas.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Le rôle a déjà été attribué à l'utilisateur.",GmErr_ASSIGN_USER_ROLE_FAILED:"Échec de l'attribution d'un rôle à l'utilisateur.",GmErr_BadRequest_1000:"Un problème est survenu avec le numéro d'identification personnel.",CountryRestricted:"Malheureusement, vous essayez de vous inscrire depuis un pays où nous ne pouvons pas accepter les jeux. Nous ne pouvons pas traiter votre inscription pour cette raison.",nextButton:"Suivant",backButton:"Retour"},es:{GmErr_AMOUNT_INVALID:"El monto especificado no es válido.",GmErr_REGISTER_OVERAGE:"El registro ha excedido el límite permitido.",GmErr_REGISTER_UNDERAGE:"El registro está por debajo del límite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"La autenticación del usuario falló debido a demasiados intentos fallidos.",GmErr_USER_ACCOUNT_BLOCKED:"La cuenta del usuario está bloqueada.",GmErr_USER_NOT_VERIFIED:"El usuario no ha sido verificado.",GmErr_USER_NOT_FOUND:"No se encontró un usuario con la información proporcionada.",GmErr_USER_ID_INVALID:"El ID de usuario proporcionado no es válido.",GmErr_USER_AUTH_FAILED:"La autenticación del usuario falló.",GmErr_USER_DUPLICATED:"El usuario ya existe en el sistema.",GmErr_USER_NOT_ACTIVATED:"La cuenta del usuario no ha sido activada.",GmErr_PASSWORD_CONTAINS_EMAIL:"La contraseña no puede contener la dirección de correo electrónico.",GmErr_PASSWORD_CONTAINS_USERNAME:"La contraseña no puede contener el nombre de usuario.",GmErr_PASSWORD_CONTAINS_SPACES:"La contraseña no puede contener espacios.",GmErr_USER_4TS_CHECK_EXISTS:"La verificación del usuario 4TS ya existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"El usuario está excluido del registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"El usuario está excluido del inicio de sesión.",GmErr_USERNAME_REQUIRED:"Se requiere un nombre de usuario.",GmErr_USER_EMAIL_NOT_VERIFIED:"La dirección de correo electrónico del usuario no ha sido verificada.",GmErr_EMAIL_ALREADY_EXISTS:"Un usuario con el mismo correo electrónico ya existe.",GmErr_EMAIL_REQUIRED:"Se requiere una dirección de correo electrónico.",GmErr_USERNAME_ALREADY_EXISTS:"El nombre de usuario ya está en uso.",GmErr_DUPLICATE_PERSONAL_ID:"Se encontró un ID personal duplicado.",GmErr_INVALID_USER_DOCUMENT:"El documento del usuario no es válido.",GmErr_INVALID_CODE:"El código proporcionado no es válido.",GmErr_EXPIRED_TOKEN:"El token ha expirado.",GmErr_ATTEMPTS_EXCEEDED:"Se ha superado el número máximo de intentos.",GmErr_BLOCK_USER_INCORRECT_CODE:"El usuario ha sido bloqueado debido a un código incorrecto.",GmErr_TOKEN_NOT_FOUND:"No se encontró el token.",GmErr_INVALID_PHONE_NUMBER:"El número de teléfono proporcionado no es válido.",GmErr_CODE_MISSING:"Falta el código.",GmErr_UNREGISTERED_USER:"El usuario no está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Se ha superado el número máximo de intentos para generar un código.",GmErr_UNEXPECTED_EXCEPTION:"Ocurrió una excepción inesperada.",GmErr_INVALID_USER_ID:"El ID de usuario proporcionado no es válido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta acción no está permitida.",GmErr_CAN_NOT_FIND_ROLE:"No se pudo encontrar el rol especificado.",GmErr_NO_SESSION_PROVIDED:"No se proporcionó ninguna sesión.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No se encontró ninguna sesión activa para este usuario.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"El usuario ya ha sido anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No se ha configurado ningún rol para asignar.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La sesión proporcionada no pertenece al usuario.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La sesión proporcionada no existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"El rol ya ha sido asignado al usuario.",GmErr_ASSIGN_USER_ROLE_FAILED:"No se pudo asignar un rol al usuario.",GmErr_BadRequest_1000:"Hubo un problema con el número de identificación personal.",CountryRestricted:"Lamentablemente, estás intentando registrarte desde un país donde no podemos aceptar el juego. No podemos procesar tu registro por esta razón.",nextButton:"Siguiente",backButton:"Atrás",doneButton:"Hecho",generalError:"Algo salió mal... Por favor, inténtalo de nuevo.",successMessage:"Registro exitoso"},pt:{GmErr_AMOUNT_INVALID:"O valor especificado é inválido.",GmErr_REGISTER_OVERAGE:"O registro excedeu o limite permitido.",GmErr_REGISTER_UNDERAGE:"O registro está abaixo do limite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"A autenticação do usuário falhou devido a muitas tentativas malsucedidas.",GmErr_USER_ACCOUNT_BLOCKED:"A conta do usuário está bloqueada.",GmErr_USER_NOT_VERIFIED:"O usuário não foi verificado.",GmErr_USER_NOT_FOUND:"Nenhum usuário encontrado com as informações fornecidas.",GmErr_USER_ID_INVALID:"O ID de usuário fornecido é inválido.",GmErr_USER_AUTH_FAILED:"A autenticação do usuário falhou.",GmErr_USER_DUPLICATED:"O usuário já existe no sistema.",GmErr_USER_NOT_ACTIVATED:"A conta do usuário não foi ativada.",GmErr_PASSWORD_CONTAINS_EMAIL:"A senha não pode conter o endereço de e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"A senha não pode conter o nome de usuário.",GmErr_PASSWORD_CONTAINS_SPACES:"A senha não pode conter espaços.",GmErr_USER_4TS_CHECK_EXISTS:"A verificação do usuário 4TS já existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"O usuário está excluído do registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"O usuário está excluído do login.",GmErr_USERNAME_REQUIRED:"É necessário um nome de usuário.",GmErr_USER_EMAIL_NOT_VERIFIED:"O endereço de e-mail do usuário não foi verificado.",GmErr_EMAIL_ALREADY_EXISTS:"Um usuário com o mesmo e-mail já existe.",GmErr_EMAIL_REQUIRED:"É necessário um endereço de e-mail.",GmErr_USERNAME_ALREADY_EXISTS:"O nome de usuário já está em uso.",GmErr_DUPLICATE_PERSONAL_ID:"ID pessoal duplicado encontrado.",GmErr_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_INVALID_CODE:"O código fornecido é inválido.",GmErr_EXPIRED_TOKEN:"O token expirou.",GmErr_ATTEMPTS_EXCEEDED:"O número máximo de tentativas foi excedido.",GmErr_BLOCK_USER_INCORRECT_CODE:"O usuário foi bloqueado devido a um código incorreto.",GmErr_TOKEN_NOT_FOUND:"O token não foi encontrado.",GmErr_INVALID_PHONE_NUMBER:"O número de telefone fornecido é inválido.",GmErr_CODE_MISSING:"O código está ausente.",GmErr_UNREGISTERED_USER:"O usuário não está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"O número máximo de tentativas para gerar um código foi excedido.",GmErr_UNEXPECTED_EXCEPTION:"Ocorreu uma exceção inesperada.",GmErr_INVALID_USER_ID:"O ID de usuário fornecido é inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Essa ação não é permitida.",GmErr_CAN_NOT_FIND_ROLE:"Não foi possível encontrar a função especificada.",GmErr_NO_SESSION_PROVIDED:"Nenhuma sessão foi fornecida.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nenhuma sessão ativa encontrada para este usuário.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"O usuário já foi anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nenhuma função foi configurada para ser atribuída.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A sessão fornecida não pertence ao usuário.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A sessão fornecida não existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A função já foi atribuída ao usuário.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falha ao atribuir uma função ao usuário.",GmErr_BadRequest_1000:"Houve um problema com o número de identificação pessoal.",CountryRestricted:"Infelizmente, você está tentando se registrar de um país onde não podemos aceitar jogos. Não podemos processar seu registro por este motivo.",nextButton:"Próximo",backButton:"Voltar",doneButton:"Concluído",generalError:"Algo deu errado... Por favor, tente novamente.",successMessage:"Registro bem-sucedido"},de:{GmErr_AMOUNT_INVALID:"Der angegebene Betrag ist ungültig.",GmErr_REGISTER_OVERAGE:"Die Registrierung hat das zulässige Limit überschritten.",GmErr_REGISTER_UNDERAGE:"Die Registrierung liegt unterhalb des zulässigen Limits.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Die Benutzeranmeldung ist aufgrund zu vieler fehlgeschlagener Versuche fehlgeschlagen.",GmErr_USER_ACCOUNT_BLOCKED:"Das Benutzerkonto ist gesperrt.",GmErr_USER_NOT_VERIFIED:"Der Benutzer wurde nicht verifiziert.",GmErr_USER_NOT_FOUND:"Kein Benutzer mit den angegebenen Informationen gefunden.",GmErr_USER_ID_INVALID:"Die angegebene Benutzer-ID ist ungültig.",GmErr_USER_AUTH_FAILED:"Die Benutzeranmeldung ist fehlgeschlagen.",GmErr_USER_DUPLICATED:"Der Benutzer ist bereits im System vorhanden.",GmErr_USER_NOT_ACTIVATED:"Das Benutzerkonto wurde nicht aktiviert.",GmErr_PASSWORD_CONTAINS_EMAIL:"Das Passwort darf keine E-Mail-Adresse enthalten.",GmErr_PASSWORD_CONTAINS_USERNAME:"Das Passwort darf keinen Benutzernamen enthalten.",GmErr_PASSWORD_CONTAINS_SPACES:"Das Passwort darf keine Leerzeichen enthalten.",GmErr_USER_4TS_CHECK_EXISTS:"Die 4TS-Überprüfung des Benutzers existiert bereits.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Der Benutzer ist von der Registrierung ausgeschlossen.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Der Benutzer ist vom Login ausgeschlossen.",GmErr_USERNAME_REQUIRED:"Ein Benutzername ist erforderlich.",GmErr_USER_EMAIL_NOT_VERIFIED:"Die E-Mail-Adresse des Benutzers wurde nicht verifiziert.",GmErr_EMAIL_ALREADY_EXISTS:"Ein Benutzer mit derselben E-Mail-Adresse existiert bereits.",GmErr_EMAIL_REQUIRED:"Eine E-Mail-Adresse ist erforderlich.",GmErr_USERNAME_ALREADY_EXISTS:"Der Benutzername ist bereits vergeben.",GmErr_DUPLICATE_PERSONAL_ID:"Doppelte persönliche ID gefunden.",GmErr_INVALID_USER_DOCUMENT:"Das Benutzerdokument ist ungültig.",GmErr_INVALID_CODE:"Der angegebene Code ist ungültig.",GmErr_EXPIRED_TOKEN:"Das Token ist abgelaufen.",GmErr_ATTEMPTS_EXCEEDED:"Die maximale Anzahl an Versuchen wurde überschritten.",GmErr_BLOCK_USER_INCORRECT_CODE:"Der Benutzer wurde aufgrund eines falschen Codes gesperrt.",GmErr_TOKEN_NOT_FOUND:"Das Token wurde nicht gefunden.",GmErr_INVALID_PHONE_NUMBER:"Die angegebene Telefonnummer ist ungültig.",GmErr_CODE_MISSING:"Der Code fehlt.",GmErr_UNREGISTERED_USER:"Der Benutzer ist nicht registriert.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Die maximale Anzahl an Versuchen, einen Code zu generieren, wurde überschritten.",GmErr_UNEXPECTED_EXCEPTION:"Es ist ein unerwarteter Fehler aufgetreten.",GmErr_INVALID_USER_ID:"Die angegebene Benutzer-ID ist ungültig.",GmErr_NOT_ALLOWED_EXCEPTION:"Diese Aktion ist nicht erlaubt.",GmErr_CAN_NOT_FIND_ROLE:"Die angegebene Rolle konnte nicht gefunden werden.",GmErr_NO_SESSION_PROVIDED:"Es wurde keine Sitzung bereitgestellt.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Es wurde keine aktive Sitzung für diesen Benutzer gefunden.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Der Benutzer wurde bereits anonymisiert.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Es wurde keine Rolle zur Zuweisung eingerichtet.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Die bereitgestellte Sitzung gehört nicht dem Benutzer.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Die bereitgestellte Sitzung existiert nicht.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Die Rolle wurde dem Benutzer bereits zugewiesen.",GmErr_ASSIGN_USER_ROLE_FAILED:"Die Zuweisung einer Rolle an den Benutzer ist fehlgeschlagen.",GmErr_BadRequest_1000:"Es gab ein Problem mit der persönlichen Identifikationsnummer.",CountryRestricted:"Leider versuchen Sie, sich aus einem Land zu registrieren, in dem wir kein Spiel zulassen können. Aus diesem Grund können wir Ihre Registrierung nicht verarbeiten.",nextButton:"Weiter",backButton:"Zurück",doneButton:"Fertig",generalError:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",successMessage:"Registrierung erfolgreich"}},yd=(t,e,i)=>{let r=_d[_d[e]?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r},wd=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.registrationStepUpdated=e(this,"registrationStepUpdated",7),this.language="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.btag=null,this.emitOnClick=!1,this.isConsentValid=!1,this.isConsentReady=!1,this.isLoading=!0,this.forms=[],this.limitStylingAppends=!1,this.autofilled=!1,this.listOfInputValues=[],this.listOfInputValidity=[],this.listOfActions=[],this.listOfInputs=[],this.emitValue=!1,this.backButtonPressed=!1,this.registerErrors=!1,this.extraActions=[],this.registrationStepsState={regId:null},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,this.clientStyling=t,setTimeout((()=>{this.host.shadowRoot.prepend(e)}),1)}))}}sendStep(){this.registrationStepUpdated.emit(this.registrationStep),window.postMessage({type:"registrationStepUpdated",step:this.registrationStep},window.location.href)}handleStylingChange(t,e){t!==e&&this.setClientStyling()}handleStylingUrlChange(t,e){t!==e&&this.setClientStylingURL()}setFormValidity(){this.errorMessage="",this.listOfInputValidity&&(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)),this.listOfInputs.some((t=>t.autofill))&&(this.autofilled=!0)}addBtag(){this.addBtagValue()}checkInputsValidityHandler(t){this.listOfInputValidity.find((e=>e.name==t.detail.name)).isValid=t.detail.valid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}getInputsValueHandler(t){this.listOfInputValues.find((e=>{e.name==t.detail.name&&(e.value=t.detail.value,e.type=t.detail.type||null)})),this.stepsStateMachine({event:"set",type:"values"})}componentWillLoad(){return this.getRegisterConfig().then((t=>{this.formatConfig(t),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),this.stepsStateMachine({event:"set",type:"inputs"})}))}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}messageHandler(t){t.data&&"isConsentsValid"!=t.data.type||(this.listOfInputValidity.find((t=>"Consents"===t.name)).isValid=!!t.data.isValid,this.isConsentValid=!!t.data.isValid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity))}nextHandler(t){t.preventDefault(),this.emitValue=!0,this.setRegisterStep()}backHandler(t){t.preventDefault(),this.registrationStep=this.stepChange("decrement"),this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})}dispatchRegisterCredentialsEvent(){let t="",e="";Object.keys(this.registrationStepsState).forEach((i=>{this.registrationStepsState[i].registerUserData&&(t||(t=this.registrationStepsState[i].registerUserData.Email?this.registrationStepsState[i].registerUserData.Email.value:t),e||(e=this.registrationStepsState[i].registerUserData.Password?this.registrationStepsState[i].registerUserData.Password.value:e))})),this.registerCredentialsEvent=new CustomEvent("RegisterCredentials",{bubbles:!0,detail:{userNameEmail:t,userPassword:e}}),window.dispatchEvent(this.registerCredentialsEvent)}stepsStateMachine(t){const e=()=>{localStorage.setItem("registrationStepsState",JSON.stringify(this.registrationStepsState))};switch(t.event){case"set":if("inputs"==t.type){const t=this.registrationStepsState[this.registrationStep];t.fields=this.listOfInputs,t.actions=this.listOfActions,t.fieldsValidity=this.listOfInputValidity}"values"==t.type&&(this.registrationStepsState[this.registrationStep].registerUserData=this.listOfInputValues.reduce(((t,e)=>(t[e.name]={value:e.value,isDuplicate:e.isDuplicate},t)),{})),e();break;case"get":const i=JSON.parse(localStorage.getItem("registrationStepsState"));if(!i)return;if("inputs"==t.type){const t=this.registrationStepsState[this.registrationStep];this.listOfInputs=t.fields,this.listOfActions=t.actions,this.listOfInputValidity=t.fieldsValidity}if("values"==t.type){const t=i[this.registrationStep].registerUserData;this.listOfInputValues=Object.keys(t).map((e=>({name:e,value:t[e].value,isDuplicate:t[e].isDuplicate}))),this.listOfInputValues.forEach((t=>{const e=this.listOfInputs.find((e=>e.name===t.name));e&&(e.defaultValue=t.value,"togglecheckbox"===e.inputType&&e.data.subFields.forEach((t=>{const e=this.listOfInputValues.find((e=>e.name===t.name));t.defaultValue=e.value})))}))}this.isConsentReady=this.listOfActions.some((t=>"/Consents"===t)),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}}getRegisterConfig(t){const e=new URL(`${this.endpoint}/v1/player/legislation/registration/config`),i=new Headers;i.append("Content-Type","application/json"),i.append("Accept","application/json"),t&&e.searchParams.append("registrationId",t);const r={method:"GET",headers:i};return new Promise(((t,i)=>{this.isLoading=!0,fetch(e.href,r).then((t=>t.json())).then((e=>{this.isLoading=!1,t(e)})).catch((t=>{this.isLoading=!1,console.error(t),i(t)})).finally((()=>{this.isLoading=!1}))}))}setRegisterStep(){this.isLoadingPOST=!0;const t=new URL(`${this.endpoint}/v1/player/legislation/registration/step`),e={registrationId:this.registrationID,registerUserDto:this.listOfInputValues.filter((t=>!t.isDuplicate)).reduce(((t,e)=>("TypeOfPublicArea"===e.name?t[e.name]=e.value.toLowerCase():"tel"===e.type?(t.MobilePrefix=e.value.prefix,t[e.name]=e.value.phone):"checkboxgroup"===e.type?null!==e.value&&Object.entries(e.value).forEach((([e,i])=>{t[e]=i?"true":"false"})):t[e.name]="toggle"===e.type?e.value?"true":"false":e.value,t)),{}),step:this.registrationStep},i=new Headers;i.append("Content-Type","application/json"),i.append("Accept","application/json");const r={method:"POST",body:JSON.stringify(e),headers:i};fetch(t.href,r).then((t=>t.ok?t.json():t.json().then((t=>{this.errorCode=t.thirdPartyResponse.errorCode,this.errorMessage="GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode?t.thirdPartyResponse.message:"GmErr_Forbidden_UserAccount_NavExcluded"===this.errorCode?yd(`${this.errorCode}`,this.language):"GmErr_BadRequest"==this.errorCode?t.thirdPartyResponse.message:yd(`${this.errorCode}`,this.language)||yd("generalError",this.language)})))).then((t=>{this.isLoadingPOST=!1,this.registrationID=t.registrationId,this.listOfActions.some((t=>"/register"==t))?(this.listOfActions.some((t=>"/generate-2FA-code/Generate2FACode"==t))&&this.extraActions.push("2fa"),localStorage.getItem("playerConsents")&&localStorage.removeItem("playerConsents"),this.setRegister()):(this.isConsentValid&&window.postMessage({type:"setUpPlayerConsents",registerid:this.registrationID}),this.registrationStep=this.stepChange("increment"),Object.keys(this.registrationStepsState).find((t=>t==this.registrationStep))?(this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})):this.getRegisterConfig(this.registrationID).then((t=>{this.formatConfig(t),this.stepsStateMachine({event:"set",type:"inputs"})})))})).catch((t=>{this.isLoadingPOST=!1,console.error(t)})).finally((()=>{this.isLoadingPOST=!1}))}setRegister(){this.isLoading=!0,this.registerErrors=!1;const t=new URL(`${this.endpoint}/v1/player/legislation/register`),e=new Headers;e.append("Content-Type","application/json"),e.append("Accept","application/json");const i={method:"PUT",body:JSON.stringify({registrationId:this.registrationID}),headers:e};fetch(t.href,i).then((t=>t.ok?t.json():(this.registerErrors=!0,t.json().then((t=>{this.errorCode=t.thirdPartyResponse.errorCode,this.errorMessage="GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode||"GmErr_BadRequest"==this.errorCode?t.thirdPartyResponse.message:yd(`${this.errorCode}`,this.language)||yd("generalError",this.language),window.postMessage({type:"registrationFailed",errorMessage:null==t?void 0:t.thirdPartyResponse.message},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:this.errorMessage}},window.location.href)}))))).then((t=>{this.isLoading=!1,this.registerErrors||(this.dispatchRegisterCredentialsEvent(),window.postMessage({type:"registrationSuccessful",userId:null==t?void 0:t.userId,extraActions:this.extraActions},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:yd("successMessage",this.language)}},window.location.href))})).catch((t=>{this.isLoading=!1,console.error(t)})).finally((()=>{this.isLoading=!1}))}formatConfig(t){if(this.listOfInputs=t.content.fields.flatMap((t=>{const e=t.validate.custom.find((t=>"duplicate-input"===t.rule)),i=Object.assign({},t);return e?[i,Object.assign(Object.assign({},t),{name:`${t.name}Duplicate`,displayName:e.displayName,isDuplicateInput:!0})]:[i]})),this.listOfInputValidity=this.listOfInputs.reduce(((t,e)=>{var i;return"togglecheckbox"===(null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase())?e.data.subFields.forEach((e=>{t.push({name:e.name,isValid:this.setInitialValidStatus(e)})})):t.push({name:e.name,isValid:this.setInitialValidStatus(e)}),t}),[]),this.listOfInputValues=this.listOfInputs.reduce(((t,e)=>{var i;const r=null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase();return"togglecheckbox"===r&&e.data.subFields.forEach((e=>{var i;t.push({name:e.name,value:"checkbox"==(null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase())?"false":null,isDuplicate:e.isDuplicateInput||!1,type:"togglecheckbox"===r?"togglecheckbox":null})})),t.push({name:e.name,value:"checkbox"===r||"togglecheckbox"===r?"false":null,isDuplicate:e.isDuplicateInput||!1,type:"checkboxgroup"===r?"checkboxgroup":"togglecheckbox"===r?"toggle":null}),t}),[]),this.btag&&this.addBtagValue(),this.listOfActions=t.content.actions.map((t=>t)),this.registrationID=t.content.registrationID,this.registrationStep=t.content.step,this.listOfActions.some((t=>"/register"==t))&&(this.lastStep=this.registrationStep),this.listOfActions.some((t=>"/Consents"==t))){if(this.isConsentReady)return this.listOfInputValidity.find((t=>"Consents"===t.name)).isValid=!1,void(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity));this.listOfInputValidity.push({name:"Consents",isValid:!1}),this.isConsentReady=!0}else this.isConsentReady=!1;var e;this.translationUrl?(e=this.translationUrl,new Promise((t=>{fetch(e).then((t=>t.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])_d[t][i]=e[t][i]})),t(!0)}))}))).then((()=>{this.listOfInputs.forEach((t=>{var e,i;return this.addTranslation(t),"togglecheckbox"===(null===(e=t.inputType)||void 0===e?void 0:e.toLowerCase())&&t.data.subFields.forEach((t=>this.addTranslation(t))),"checkboxgroup"===(null===(i=t.inputType)||void 0===i?void 0:i.toLowerCase())&&(this.addTranslation(t),t.data.subFields.forEach((t=>this.addTranslation(t)))),t}))})).catch((t=>{console.error("Failed to fetch translations:",t)})).finally((()=>{this.forms=[...this.forms,{[this.registrationStep]:this.listOfInputs}]})):this.forms=[...this.forms,{[this.registrationStep]:this.listOfInputs}],this.registrationStepsState.regId=this.registrationID,this.registrationStepsState[this.registrationStep]||(this.registrationStepsState[this.registrationStep]={fields:[],fieldsValidity:[],registerUserData:{},actions:[]})}addBtagValue(){const t=this.listOfInputs.find((t=>"btag"===t.name.toLowerCase()));t&&(t.defaultValue=this.btag);const e=this.listOfInputValues.find((t=>"btag"===t.name.toLowerCase()));e&&(e.value=this.btag)}addTranslation(t){_d[_d[this.language]?this.language:"en"][t.name]&&Object.keys(_d[this.language][t.name]).forEach((e=>{t[e]=_d[this.language][t.name][e]}))}setInitialValidStatus(t){var e,i,r,o;return"checkbox"==(null===(e=t.inputType)||void 0===e?void 0:e.toLowerCase())&&0==(null===(i=t.validate)||void 0===i?void 0:i.mandatory)||("checkbox"!==(null===(r=t.inputType)||void 0===r?void 0:r.toLowerCase())||!(null===(o=t.validate)||void 0===o?void 0:o.mandatory)||"true"===t.defaultValue)&&null!==t.defaultValue}stepChange(t){const e=parseInt(this.registrationStep.replace("Step",""));return"increment"===t?"Step"+(e+1):"decrement"===t?"Step"+(e-1):void 0}getInvalidStatus(t){return t.filter((t=>0==t.isValid)).length>0}renderForm(){return this.forms.map(((t,e)=>i("form",{action:".",id:`RegistrationForm${this.registrationStep}`,class:"registration__form "+(this.registrationStep!==`Step${e+1}`?"hidden":""),ref:t=>this.form=t},t[this.registrationStep]&&t[this.registrationStep].map((t=>i("general-input",{type:t.inputType,name:t.name,displayName:t.displayName,validation:t.validate,action:t.action||null,options:t.data?"checkboxgroup"==t.inputType.toLowerCase()||"togglecheckbox"==t.inputType.toLowerCase()?t.data.subFields:t.data.values:[],defaultValue:t.defaultValue,autofilled:t.autofill,emitValue:this.emitValue,language:this.language,isDuplicateInput:t.isDuplicateInput,"client-styling":this.clientStyling,tooltip:t.tooltip,placeholder:null==t.placeholder?"":t.placeholder,dateFormat:this.dateFormat,"translation-url":this.translationUrl,emitOnClick:this.emitOnClick}))),this.isConsentReady&&this.renderConsents(),this.buttonInsideForm&&this.renderButtons(),i("div",{class:"registration__wrapper--flex"},i("p",{class:"registration__error-message",innerHTML:this.errorMessage})))))}renderConsents(){return i("div",{class:"consentsContainer"},i("player-consents",{endpoint:this.endpoint}))}renderButtons(){return i("div",{class:"registration__buttons-wrapper "+(this.autofilled?"registration__buttons-wrapper--autofilled":"")},this.isLoadingPOST&&i("slot",{name:"spinner"})&&i("svg",{class:"spinner",viewBox:"0 0 50 50"},i("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"})),!this.isLoadingPOST&&i("button",{class:"registration__button registration__button--next "+(this.isFormValid?"":"registration__button--disabled"),type:"submit",form:`RegistrationForm${this.registrationStep}`,onClick:t=>this.nextHandler(t),disabled:!this.isFormValid},yd(this.lastStep===this.registrationStep?"doneButton":"nextButton",this.language)),i("button",{class:"registration__button registration__button--back "+("Step1"==this.registrationStep?"registration__button--first-step":""),onClick:t=>this.backHandler(t)},yd("backButton",this.language)))}render(){return this.isLoading?i("p",null,"Please wait, loading ..."):i("div",{class:`registration registration__${this.registrationStep}`},this.renderForm(),!this.buttonInsideForm&&this.renderButtons())}get host(){return r(this)}static get watchers(){return{registrationStep:["sendStep"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],forms:["setFormValidity"],btag:["addBtag"]}}};wd.style='*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: "Roboto";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: 13px;\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}';const Ed=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.value=t.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return n(`${i}`,this.language)?n(`${i}`,this.language):r}return this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?n("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):this.inputReference.validity.valueMissing?n("requiredError",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"number__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"2032f77ca52b330ae2e8f484d7a0aba60ee7b9d5",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"0786901cd928bba86597180f058bff43fba522b6",class:"number__wrapper--flex"},i("label",{key:"ff7f39306cef7aeba3e0e4508df03c5a945e748b",class:"number__label "+(this.validation.mandatory?"number__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"dced91223621551472fee374d56f1ad7476f4191",class:"number__wrapper--relative"},this.tooltip&&i("img",{key:"a804a983e342e4d117126720a32c4c34a2b267dc",class:"number__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"fd59afaedf7d9f761684b057a1809474d735cc26",ref:t=>this.inputReference=t,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${t}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"ca11558b5704b69311626736ab84a298449b98d7",class:"number__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ed.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}';
4692
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new co(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new vo(this.inputElement,this._labelController)),this._tooltipController=new vr(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",(t=>t.preventDefault())),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}function zh(t){return zh="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},zh(t)}function Rh(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function Mh(t){Rh(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===zh(t)&&"[object Date]"===e?new Date(t.getTime()):"number"==typeof t||"[object Number]"===e?new Date(t):("string"!=typeof t&&"[object String]"!==e||"undefined"==typeof console||(console.warn("Starting with v2.0.0-beta.1 date-fns doesn't accept strings as date arguments. Please use `parseISO` to parse strings. See: https://github.com/date-fns/date-fns/blob/master/docs/upgradeGuide.md#string-arguments"),console.warn((new Error).stack)),new Date(NaN))}function Gh(t){if(null===t||!0===t||!1===t)return NaN;var e=Number(t);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Uh(t,e){return Rh(2,arguments),function(t,e){Rh(2,arguments);var i=Mh(t).getTime(),r=Gh(e);return new Date(i+r)}(t,-Gh(e))}function Bh(t){Rh(1,arguments);var e=Mh(t),i=e.getUTCDay(),r=(i<1?7:0)+i-1;return e.setUTCDate(e.getUTCDate()-r),e.setUTCHours(0,0,0,0),e}function Lh(t){Rh(1,arguments);var e=Mh(t),i=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(i+1,0,4),r.setUTCHours(0,0,0,0);var o=Bh(r),s=new Date(0);s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0);var n=Bh(s);return e.getTime()>=o.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}l(Oh);function Ph(t){Rh(1,arguments);var e=Mh(t),i=Bh(e).getTime()-function(t){Rh(1,arguments);var e=Lh(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),Bh(i)}(e).getTime();return Math.round(i/6048e5)+1}var jh={};function Hh(){return jh}function Fh(t,e){var i,r,o,s,n,a,l,h;Rh(1,arguments);var c=Hh(),u=Gh(null!==(i=null!==(r=null!==(o=null!==(s=null==e?void 0:e.weekStartsOn)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.weekStartsOn)&&void 0!==o?o:c.weekStartsOn)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var d=Mh(t),m=d.getUTCDay(),p=(m<u?7:0)+m-u;return d.setUTCDate(d.getUTCDate()-p),d.setUTCHours(0,0,0,0),d}function qh(t,e){var i,r,o,s,n,a,l,h;Rh(1,arguments);var c=Mh(t),u=c.getUTCFullYear(),d=Hh(),m=Gh(null!==(i=null!==(r=null!==(o=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:d.firstWeekContainsDate)&&void 0!==r?r:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var p=new Date(0);p.setUTCFullYear(u+1,0,m),p.setUTCHours(0,0,0,0);var f=Fh(p,e),v=new Date(0);v.setUTCFullYear(u,0,m),v.setUTCHours(0,0,0,0);var g=Fh(v,e);return c.getTime()>=f.getTime()?u+1:c.getTime()>=g.getTime()?u:u-1}function Vh(t,e){Rh(1,arguments);var i=Mh(t),r=Fh(i,e).getTime()-function(t,e){var i,r,o,s,n,a,l,h;Rh(1,arguments);var c=Hh(),u=Gh(null!==(i=null!==(r=null!==(o=null!==(s=null==e?void 0:e.firstWeekContainsDate)&&void 0!==s?s:null==e||null===(n=e.locale)||void 0===n||null===(a=n.options)||void 0===a?void 0:a.firstWeekContainsDate)&&void 0!==o?o:c.firstWeekContainsDate)&&void 0!==r?r:null===(l=c.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1),d=qh(t,e),m=new Date(0);return m.setUTCFullYear(d,0,u),m.setUTCHours(0,0,0,0),Fh(m,e)}(i,e).getTime();return Math.round(r/6048e5)+1}function Wh(t,e){for(var i=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return i+r}const Yh=function(t,e){var i=t.getUTCFullYear(),r=i>0?i:1-i;return Wh("yy"===e?r%100:r,e.length)},Kh=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):Wh(i+1,2)},Xh=function(t,e){return Wh(t.getUTCDate(),e.length)},$h=function(t,e){return Wh(t.getUTCHours()%12||12,e.length)},Zh=function(t,e){return Wh(t.getUTCHours(),e.length)},Jh=function(t,e){return Wh(t.getUTCMinutes(),e.length)},Qh=function(t,e){return Wh(t.getUTCSeconds(),e.length)},tc=function(t,e){var i=e.length,r=t.getUTCMilliseconds();return Wh(Math.floor(r*Math.pow(10,i-3)),e.length)};function ec(t,e){var i=t>0?"-":"+",r=Math.abs(t),o=Math.floor(r/60),s=r%60;if(0===s)return i+String(o);var n=e||"";return i+String(o)+n+Wh(s,2)}function ic(t,e){return t%60==0?(t>0?"-":"+")+Wh(Math.abs(t)/60,2):rc(t,e)}function rc(t,e){var i=e||"",r=t>0?"-":"+",o=Math.abs(t);return r+Wh(Math.floor(o/60),2)+i+Wh(o%60,2)}const oc={G:function(t,e,i){var r=t.getUTCFullYear()>0?1:0;switch(e){case"G":case"GG":case"GGG":return i.era(r,{width:"abbreviated"});case"GGGGG":return i.era(r,{width:"narrow"});default:return i.era(r,{width:"wide"})}},y:function(t,e,i){if("yo"===e){var r=t.getUTCFullYear();return i.ordinalNumber(r>0?r:1-r,{unit:"year"})}return Yh(t,e)},Y:function(t,e,i,r){var o=qh(t,r),s=o>0?o:1-o;return"YY"===e?Wh(s%100,2):"Yo"===e?i.ordinalNumber(s,{unit:"year"}):Wh(s,e.length)},R:function(t,e){return Wh(Lh(t),e.length)},u:function(t,e){return Wh(t.getUTCFullYear(),e.length)},Q:function(t,e,i){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"Q":return String(r);case"QQ":return Wh(r,2);case"Qo":return i.ordinalNumber(r,{unit:"quarter"});case"QQQ":return i.quarter(r,{width:"abbreviated",context:"formatting"});case"QQQQQ":return i.quarter(r,{width:"narrow",context:"formatting"});default:return i.quarter(r,{width:"wide",context:"formatting"})}},q:function(t,e,i){var r=Math.ceil((t.getUTCMonth()+1)/3);switch(e){case"q":return String(r);case"qq":return Wh(r,2);case"qo":return i.ordinalNumber(r,{unit:"quarter"});case"qqq":return i.quarter(r,{width:"abbreviated",context:"standalone"});case"qqqqq":return i.quarter(r,{width:"narrow",context:"standalone"});default:return i.quarter(r,{width:"wide",context:"standalone"})}},M:function(t,e,i){var r=t.getUTCMonth();switch(e){case"M":case"MM":return Kh(t,e);case"Mo":return i.ordinalNumber(r+1,{unit:"month"});case"MMM":return i.month(r,{width:"abbreviated",context:"formatting"});case"MMMMM":return i.month(r,{width:"narrow",context:"formatting"});default:return i.month(r,{width:"wide",context:"formatting"})}},L:function(t,e,i){var r=t.getUTCMonth();switch(e){case"L":return String(r+1);case"LL":return Wh(r+1,2);case"Lo":return i.ordinalNumber(r+1,{unit:"month"});case"LLL":return i.month(r,{width:"abbreviated",context:"standalone"});case"LLLLL":return i.month(r,{width:"narrow",context:"standalone"});default:return i.month(r,{width:"wide",context:"standalone"})}},w:function(t,e,i,r){var o=Vh(t,r);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):Wh(o,e.length)},I:function(t,e,i){var r=Ph(t);return"Io"===e?i.ordinalNumber(r,{unit:"week"}):Wh(r,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):Xh(t,e)},D:function(t,e,i){var r=function(t){Rh(1,arguments);var e=Mh(t),i=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime();return Math.floor((i-r)/864e5)+1}(t);return"Do"===e?i.ordinalNumber(r,{unit:"dayOfYear"}):Wh(r,e.length)},E:function(t,e,i){var r=t.getUTCDay();switch(e){case"E":case"EE":case"EEE":return i.day(r,{width:"abbreviated",context:"formatting"});case"EEEEE":return i.day(r,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},e:function(t,e,i,r){var o=t.getUTCDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"e":return String(s);case"ee":return Wh(s,2);case"eo":return i.ordinalNumber(s,{unit:"day"});case"eee":return i.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return i.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(o,{width:"short",context:"formatting"});default:return i.day(o,{width:"wide",context:"formatting"})}},c:function(t,e,i,r){var o=t.getUTCDay(),s=(o-r.weekStartsOn+8)%7||7;switch(e){case"c":return String(s);case"cc":return Wh(s,e.length);case"co":return i.ordinalNumber(s,{unit:"day"});case"ccc":return i.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return i.day(o,{width:"narrow",context:"standalone"});case"cccccc":return i.day(o,{width:"short",context:"standalone"});default:return i.day(o,{width:"wide",context:"standalone"})}},i:function(t,e,i){var r=t.getUTCDay(),o=0===r?7:r;switch(e){case"i":return String(o);case"ii":return Wh(o,e.length);case"io":return i.ordinalNumber(o,{unit:"day"});case"iii":return i.day(r,{width:"abbreviated",context:"formatting"});case"iiiii":return i.day(r,{width:"narrow",context:"formatting"});case"iiiiii":return i.day(r,{width:"short",context:"formatting"});default:return i.day(r,{width:"wide",context:"formatting"})}},a:function(t,e,i){var r=t.getUTCHours()/12>=1?"pm":"am";switch(e){case"a":case"aa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"aaa":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},b:function(t,e,i){var r,o=t.getUTCHours();switch(r=12===o?"noon":0===o?"midnight":o/12>=1?"pm":"am",e){case"b":case"bb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"bbb":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},B:function(t,e,i){var r,o=t.getUTCHours();switch(r=o>=17?"evening":o>=12?"afternoon":o>=4?"morning":"night",e){case"B":case"BB":case"BBB":return i.dayPeriod(r,{width:"abbreviated",context:"formatting"});case"BBBBB":return i.dayPeriod(r,{width:"narrow",context:"formatting"});default:return i.dayPeriod(r,{width:"wide",context:"formatting"})}},h:function(t,e,i){if("ho"===e){var r=t.getUTCHours()%12;return 0===r&&(r=12),i.ordinalNumber(r,{unit:"hour"})}return $h(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):Zh(t,e)},K:function(t,e,i){var r=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(r,{unit:"hour"}):Wh(r,e.length)},k:function(t,e,i){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?i.ordinalNumber(r,{unit:"hour"}):Wh(r,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):Jh(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):Qh(t,e)},S:function(t,e){return tc(t,e)},X:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return ic(o);case"XXXX":case"XX":return rc(o);default:return rc(o,":")}},x:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return ic(o);case"xxxx":case"xx":return rc(o);default:return rc(o,":")}},O:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+ec(o,":");default:return"GMT"+rc(o,":")}},z:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+ec(o,":");default:return"GMT"+rc(o,":")}},t:function(t,e,i,r){return Wh(Math.floor((r._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,r){return Wh((r._originalDate||t).getTime(),e.length)}};var sc=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});default:return e.date({width:"full"})}},nc=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});default:return e.time({width:"full"})}},ac={p:nc,P:function(t,e){var i,r=t.match(/(P+)(p+)?/)||[],o=r[1],s=r[2];if(!s)return sc(t,e);switch(o){case"P":i=e.dateTime({width:"short"});break;case"PP":i=e.dateTime({width:"medium"});break;case"PPP":i=e.dateTime({width:"long"});break;default:i=e.dateTime({width:"full"})}return i.replace("{{date}}",sc(o,e)).replace("{{time}}",nc(s,e))}};const lc=ac;function hc(t){var e=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return e.setUTCFullYear(t.getFullYear()),t.getTime()-e.getTime()}var cc=["D","DD"],uc=["YY","YYYY"];function dc(t){return-1!==cc.indexOf(t)}function mc(t){return-1!==uc.indexOf(t)}function pc(t,e,i){if("YYYY"===t)throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("YY"===t)throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("D"===t)throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if("DD"===t)throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(i,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var fc={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function vc(t){return function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},i=e.width?String(e.width):t.defaultWidth;return t.formats[i]||t.formats[t.defaultWidth]}}var gc,bc={date:vc({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:vc({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:vc({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},_c={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function yc(t){return function(e,i){var r;if("formatting"===(null!=i&&i.context?String(i.context):"standalone")&&t.formattingValues){var o=t.defaultFormattingWidth||t.defaultWidth,s=null!=i&&i.width?String(i.width):o;r=t.formattingValues[s]||t.formattingValues[o]}else{var n=t.defaultWidth,a=null!=i&&i.width?String(i.width):t.defaultWidth;r=t.values[a]||t.values[n]}return r[t.argumentCallback?t.argumentCallback(e):e]}}function Ec(t){return function(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=i.width,o=e.match(r&&t.matchPatterns[r]||t.matchPatterns[t.defaultMatchWidth]);if(!o)return null;var s,n=o[0],a=r&&t.parsePatterns[r]||t.parsePatterns[t.defaultParseWidth],l=Array.isArray(a)?function(t){for(var e=0;e<t.length;e++)if(t[e].test(n))return e}(a):function(t){for(var e in t)if(t.hasOwnProperty(e)&&t[e].test(n))return e}(a);return s=t.valueCallback?t.valueCallback(l):l,{value:s=i.valueCallback?i.valueCallback(s):s,rest:e.slice(n.length)}}}const wc={code:"en-US",formatDistance:function(t,e,i){var r,o=fc[t];return r="string"==typeof o?o:1===e?o.one:o.other.replace("{{count}}",e.toString()),null!=i&&i.addSuffix?i.comparison&&i.comparison>0?"in "+r:r+" ago":r},formatLong:bc,formatRelative:function(t){return _c[t]},localize:{ordinalNumber:function(t){var e=Number(t),i=e%100;if(i>20||i<10)switch(i%10){case 1:return e+"st";case 2:return e+"nd";case 3:return e+"rd"}return e+"th"},era:yc({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:yc({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:function(t){return t-1}}),month:yc({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:yc({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:yc({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})},match:{ordinalNumber:(gc={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:function(t){return parseInt(t,10)}},function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=t.match(gc.matchPattern);if(!i)return null;var r=i[0],o=t.match(gc.parsePattern);if(!o)return null;var s=gc.valueCallback?gc.valueCallback(o[0]):o[0];return{value:s=e.valueCallback?e.valueCallback(s):s,rest:t.slice(r.length)}}),era:Ec({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Ec({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:function(t){return t+1}}),month:Ec({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Ec({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Ec({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})},options:{weekStartsOn:0,firstWeekContainsDate:1}};var xc=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,kc=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Ac=/^'([^]*?)'?$/,Sc=/''/g,Cc=/[a-zA-Z]/;function Tc(t,e,i){var r,o,s,n,a,l,h,c,u,d,m,p,f,v,g,b,_,y;Rh(2,arguments);var E=String(e),w=Hh(),x=null!==(r=null!==(o=null==i?void 0:i.locale)&&void 0!==o?o:w.locale)&&void 0!==r?r:wc,k=Gh(null!==(s=null!==(n=null!==(a=null!==(l=null==i?void 0:i.firstWeekContainsDate)&&void 0!==l?l:null==i||null===(h=i.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.firstWeekContainsDate)&&void 0!==a?a:w.firstWeekContainsDate)&&void 0!==n?n:null===(u=w.locale)||void 0===u||null===(d=u.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==s?s:1);if(!(k>=1&&k<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var A=Gh(null!==(m=null!==(p=null!==(f=null!==(v=null==i?void 0:i.weekStartsOn)&&void 0!==v?v:null==i||null===(g=i.locale)||void 0===g||null===(b=g.options)||void 0===b?void 0:b.weekStartsOn)&&void 0!==f?f:w.weekStartsOn)&&void 0!==p?p:null===(_=w.locale)||void 0===_||null===(y=_.options)||void 0===y?void 0:y.weekStartsOn)&&void 0!==m?m:0);if(!(A>=0&&A<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!x.localize)throw new RangeError("locale must contain localize property");if(!x.formatLong)throw new RangeError("locale must contain formatLong property");var S=Mh(t);if(!function(t){if(Rh(1,arguments),!function(t){return Rh(1,arguments),t instanceof Date||"object"===zh(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=Mh(t);return!isNaN(Number(e))}(S))throw new RangeError("Invalid time value");var C=Uh(S,hc(S)),T={firstWeekContainsDate:k,weekStartsOn:A,locale:x,_originalDate:S};return E.match(kc).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,lc[e])(t,x.formatLong):t})).join("").match(xc).map((function(r){if("''"===r)return"'";var o,s,n=r[0];if("'"===n)return(s=(o=r).match(Ac))?s[1].replace(Sc,"'"):o;var a=oc[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!mc(r)||pc(r,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!dc(r)||pc(r,e,String(t)),a(C,r,x.localize,T);if(n.match(Cc))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return r})).join("")}function Nc(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,r=Array(e);i<e;i++)r[i]=t[i];return r}function Ic(t,e){var i="undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"];if(!i){if(Array.isArray(t)||(i=function(t,e){if(t){if("string"==typeof t)return Nc(t,e);var i={}.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?Nc(t,e):void 0}}(t))||e&&t&&"number"==typeof t.length){i&&(t=i);var r=0,o=function(){};return{s:o,n:function(){return r>=t.length?{done:!0}:{done:!1,value:t[r++]}},e:function(t){throw t},f:o}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,n=!0,a=!1;return{s:function(){i=i.call(t)},n:function(){var t=i.next();return n=t.done,t},e:function(t){a=!0,s=t},f:function(){try{n||null==i.return||i.return()}finally{if(a)throw s}}}}function Dc(t,e){if(null==t)throw new TypeError("assign requires that input parameter not be null or undefined");for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i]);return t}function Oc(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function zc(t,e){return zc=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},zc(t,e)}function Rc(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),Object.defineProperty(t,"prototype",{writable:!1}),e&&zc(t,e)}function Mc(t){return Mc=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},Mc(t)}function Gc(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(Gc=function(){return!!t})()}function Uc(t){var e=Gc();return function(){var i,r=Mc(t);if(e){var o=Mc(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function(t,e){if(e&&("object"==zh(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return Oc(t)}(this,i)}}function Bc(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function Lc(t){var e=function(t){if("object"!=zh(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=zh(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==zh(e)?e:e+""}function Pc(t,e){for(var i=0;i<e.length;i++){var r=e[i];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,Lc(r.key),r)}}function jc(t,e,i){return e&&Pc(t.prototype,e),i&&Pc(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function Hc(t,e,i){return(e=Lc(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Fc=function(){function t(){Bc(this,t),Hc(this,"priority",void 0),Hc(this,"subPriority",0)}return jc(t,[{key:"validate",value:function(){return!0}}]),t}(),qc=function(){Rc(e,Fc);var t=Uc(e);function e(i,r,o,s,n){var a;return Bc(this,e),(a=t.call(this)).value=i,a.validateValue=r,a.setValue=o,a.priority=s,n&&(a.subPriority=n),a}return jc(e,[{key:"validate",value:function(t,e){return this.validateValue(t,this.value,e)}},{key:"set",value:function(t,e,i){return this.setValue(t,e,this.value,i)}}]),e}(),Vc=function(){Rc(e,Fc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",10),Hc(Oc(i),"subPriority",-1),i}return jc(e,[{key:"set",value:function(t,e){if(e.timestampIsSet)return t;var i=new Date(0);return i.setFullYear(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate()),i.setHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),t.getUTCMilliseconds()),i}}]),e}(),Wc=function(){function t(){Bc(this,t),Hc(this,"incompatibleTokens",void 0),Hc(this,"priority",void 0),Hc(this,"subPriority",void 0)}return jc(t,[{key:"run",value:function(t,e,i,r){var o=this.parse(t,e,i,r);return o?{setter:new qc(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),Yc=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",140),Hc(Oc(i),"incompatibleTokens",["R","u","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"G":case"GG":case"GGG":return i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"});case"GGGGG":return i.era(t,{width:"narrow"});default:return i.era(t,{width:"wide"})||i.era(t,{width:"abbreviated"})||i.era(t,{width:"narrow"})}}},{key:"set",value:function(t,e,i){return e.era=i,t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Kc=/^(1[0-2]|0?\d)/,Xc=/^(3[0-1]|[0-2]?\d)/,$c=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Zc=/^(5[0-3]|[0-4]?\d)/,Jc=/^(2[0-3]|[0-1]?\d)/,Qc=/^(2[0-4]|[0-1]?\d)/,tu=/^(1[0-1]|0?\d)/,eu=/^(1[0-2]|0?\d)/,iu=/^[0-5]?\d/,ru=/^[0-5]?\d/,ou=/^\d/,su=/^\d{1,2}/,nu=/^\d{1,3}/,au=/^\d{1,4}/,lu=/^-?\d+/,hu=/^-?\d/,cu=/^-?\d{1,2}/,uu=/^-?\d{1,3}/,du=/^-?\d{1,4}/,mu=/^([+-])(\d{2})(\d{2})?|Z/,pu=/^([+-])(\d{2})(\d{2})|Z/,fu=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,vu=/^([+-])(\d{2}):(\d{2})|Z/,gu=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function bu(t,e){return t?{value:e(t.value),rest:t.rest}:t}function _u(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function yu(t,e){var i=e.match(t);return i?"Z"===i[0]?{value:0,rest:e.slice(1)}:{value:("+"===i[1]?1:-1)*(36e5*(i[2]?parseInt(i[2],10):0)+6e4*(i[3]?parseInt(i[3],10):0)+1e3*(i[5]?parseInt(i[5],10):0)),rest:e.slice(i[0].length)}:null}function Eu(t){return _u(lu,t)}function wu(t,e){switch(t){case 1:return _u(ou,e);case 2:return _u(su,e);case 3:return _u(nu,e);case 4:return _u(au,e);default:return _u(new RegExp("^\\d{1,"+t+"}"),e)}}function xu(t,e){switch(t){case 1:return _u(hu,e);case 2:return _u(cu,e);case 3:return _u(uu,e);case 4:return _u(du,e);default:return _u(new RegExp("^-?\\d{1,"+t+"}"),e)}}function ku(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function Au(t,e){var i,r=e>0,o=r?e:1-e;if(o<=50)i=t||100;else{var s=o+50;i=t+100*Math.floor(s/100)-(t>=s%100?100:0)}return r?i:1-i}function Su(t){return t%400==0||t%4==0&&t%100!=0}var Cu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",130),Hc(Oc(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){var r=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return bu(wu(4,t),r);case"yo":return bu(i.ordinalNumber(t,{unit:"year"}),r);default:return bu(wu(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i){var r=t.getUTCFullYear();if(i.isTwoDigitYear){var o=Au(i.year,r);return t.setUTCFullYear(o,0,1),t.setUTCHours(0,0,0,0),t}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Tu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",130),Hc(Oc(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){var r=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return bu(wu(4,t),r);case"Yo":return bu(i.ordinalNumber(t,{unit:"year"}),r);default:return bu(wu(e.length,t),r)}}},{key:"validate",value:function(t,e){return e.isTwoDigitYear||e.year>0}},{key:"set",value:function(t,e,i,r){var o=qh(t,r);if(i.isTwoDigitYear){var s=Au(i.year,o);return t.setUTCFullYear(s,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Fh(t,r)}return t.setUTCFullYear("era"in e&&1!==e.era?1-i.year:i.year,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),Fh(t,r)}}]),e}(),Nu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",130),Hc(Oc(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e){return xu("R"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){var r=new Date(0);return r.setUTCFullYear(i,0,4),r.setUTCHours(0,0,0,0),Bh(r)}}]),e}(),Iu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",130),Hc(Oc(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e){return xu("u"===e?4:e.length,t)}},{key:"set",value:function(t,e,i){return t.setUTCFullYear(i,0,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Du=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",120),Hc(Oc(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return wu(e.length,t);case"Qo":return i.ordinalNumber(t,{unit:"quarter"});case"QQQ":return i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"});case"QQQQQ":return i.quarter(t,{width:"narrow",context:"formatting"});default:return i.quarter(t,{width:"wide",context:"formatting"})||i.quarter(t,{width:"abbreviated",context:"formatting"})||i.quarter(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),Ou=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",120),Hc(Oc(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return wu(e.length,t);case"qo":return i.ordinalNumber(t,{unit:"quarter"});case"qqq":return i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"});case"qqqqq":return i.quarter(t,{width:"narrow",context:"standalone"});default:return i.quarter(t,{width:"wide",context:"standalone"})||i.quarter(t,{width:"abbreviated",context:"standalone"})||i.quarter(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=1&&e<=4}},{key:"set",value:function(t,e,i){return t.setUTCMonth(3*(i-1),1),t.setUTCHours(0,0,0,0),t}}]),e}(),zu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),Hc(Oc(i),"priority",110),i}return jc(e,[{key:"parse",value:function(t,e,i){var r=function(t){return t-1};switch(e){case"M":return bu(_u(Kc,t),r);case"MM":return bu(wu(2,t),r);case"Mo":return bu(i.ordinalNumber(t,{unit:"month"}),r);case"MMM":return i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"});case"MMMMM":return i.month(t,{width:"narrow",context:"formatting"});default:return i.month(t,{width:"wide",context:"formatting"})||i.month(t,{width:"abbreviated",context:"formatting"})||i.month(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Ru=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",110),Hc(Oc(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){var r=function(t){return t-1};switch(e){case"L":return bu(_u(Kc,t),r);case"LL":return bu(wu(2,t),r);case"Lo":return bu(i.ordinalNumber(t,{unit:"month"}),r);case"LLL":return i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"});case"LLLLL":return i.month(t,{width:"narrow",context:"standalone"});default:return i.month(t,{width:"wide",context:"standalone"})||i.month(t,{width:"abbreviated",context:"standalone"})||i.month(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){return t.setUTCMonth(i,1),t.setUTCHours(0,0,0,0),t}}]),e}(),Mu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",100),Hc(Oc(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return _u(Zc,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return wu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,r){return Fh(function(t,e,i){Rh(2,arguments);var r=Mh(t),o=Gh(e),s=Vh(r,i)-o;return r.setUTCDate(r.getUTCDate()-7*s),r}(t,i,r),r)}}]),e}(),Gu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",100),Hc(Oc(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return _u(Zc,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return wu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return Bh(function(t,e){Rh(2,arguments);var i=Mh(t),r=Gh(e),o=Ph(i)-r;return i.setUTCDate(i.getUTCDate()-7*o),i}(t,i))}}]),e}(),Uu=[31,28,31,30,31,30,31,31,30,31,30,31],Bu=[31,29,31,30,31,30,31,31,30,31,30,31],Lu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",90),Hc(Oc(i),"subPriority",1),Hc(Oc(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return _u(Xc,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return wu(e.length,t)}}},{key:"validate",value:function(t,e){var i=Su(t.getUTCFullYear()),r=t.getUTCMonth();return i?e>=1&&e<=Bu[r]:e>=1&&e<=Uu[r]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),Pu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",90),Hc(Oc(i),"subpriority",1),Hc(Oc(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return _u($c,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return wu(e.length,t)}}},{key:"validate",value:function(t,e){return Su(t.getUTCFullYear())?e>=1&&e<=366:e>=1&&e<=365}},{key:"set",value:function(t,e,i){return t.setUTCMonth(0,i),t.setUTCHours(0,0,0,0),t}}]),e}();function ju(t,e,i){var r,o,s,n,a,l,h,c;Rh(2,arguments);var u=Hh(),d=Gh(null!==(r=null!==(o=null!==(s=null!==(n=null==i?void 0:i.weekStartsOn)&&void 0!==n?n:null==i||null===(a=i.locale)||void 0===a||null===(l=a.options)||void 0===l?void 0:l.weekStartsOn)&&void 0!==s?s:u.weekStartsOn)&&void 0!==o?o:null===(h=u.locale)||void 0===h||null===(c=h.options)||void 0===c?void 0:c.weekStartsOn)&&void 0!==r?r:0);if(!(d>=0&&d<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=Mh(t),p=Gh(e),f=((p%7+7)%7<d?7:0)+p-m.getUTCDay();return m.setUTCDate(m.getUTCDate()+f),m}var Hu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",90),Hc(Oc(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"E":case"EE":case"EEE":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"EEEEE":return i.day(t,{width:"narrow",context:"formatting"});case"EEEEEE":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,r){return(t=ju(t,i,r)).setUTCHours(0,0,0,0),t}}]),e}(),Fu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",90),Hc(Oc(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i,r){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"e":case"ee":return bu(wu(e.length,t),o);case"eo":return bu(i.ordinalNumber(t,{unit:"day"}),o);case"eee":return i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});case"eeeee":return i.day(t,{width:"narrow",context:"formatting"});case"eeeeee":return i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"});default:return i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,r){return(t=ju(t,i,r)).setUTCHours(0,0,0,0),t}}]),e}(),qu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",90),Hc(Oc(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i,r){var o=function(t){var e=7*Math.floor((t-1)/7);return(t+r.weekStartsOn+6)%7+e};switch(e){case"c":case"cc":return bu(wu(e.length,t),o);case"co":return bu(i.ordinalNumber(t,{unit:"day"}),o);case"ccc":return i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});case"ccccc":return i.day(t,{width:"narrow",context:"standalone"});case"cccccc":return i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"});default:return i.day(t,{width:"wide",context:"standalone"})||i.day(t,{width:"abbreviated",context:"standalone"})||i.day(t,{width:"short",context:"standalone"})||i.day(t,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(t,e){return e>=0&&e<=6}},{key:"set",value:function(t,e,i,r){return(t=ju(t,i,r)).setUTCHours(0,0,0,0),t}}]),e}(),Vu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",90),Hc(Oc(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){var r=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return wu(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return bu(i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),r);case"iiiii":return bu(i.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return bu(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),r);default:return bu(i.day(t,{width:"wide",context:"formatting"})||i.day(t,{width:"abbreviated",context:"formatting"})||i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),r)}}},{key:"validate",value:function(t,e){return e>=1&&e<=7}},{key:"set",value:function(t,e,i){return t=function(t,e){Rh(2,arguments);var i=Gh(e);i%7==0&&(i-=7);var r=Mh(t),o=((i%7+7)%7<1?7:0)+i-r.getUTCDay();return r.setUTCDate(r.getUTCDate()+o),r}(t,i),t.setUTCHours(0,0,0,0),t}}]),e}(),Wu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",80),Hc(Oc(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"a":case"aa":case"aaa":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"aaaaa":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ku(i),0,0,0),t}}]),e}(),Yu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",80),Hc(Oc(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"b":case"bb":case"bbb":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"bbbbb":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ku(i),0,0,0),t}}]),e}(),Ku=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",80),Hc(Oc(i),"incompatibleTokens",["a","b","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"B":case"BB":case"BBB":return i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"});case"BBBBB":return i.dayPeriod(t,{width:"narrow",context:"formatting"});default:return i.dayPeriod(t,{width:"wide",context:"formatting"})||i.dayPeriod(t,{width:"abbreviated",context:"formatting"})||i.dayPeriod(t,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(t,e,i){return t.setUTCHours(ku(i),0,0,0),t}}]),e}(),Xu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",70),Hc(Oc(i),"incompatibleTokens",["H","K","k","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return _u(eu,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return wu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=12}},{key:"set",value:function(t,e,i){var r=t.getUTCHours()>=12;return t.setUTCHours(r&&i<12?i+12:r||12!==i?i:0,0,0,0),t}}]),e}(),$u=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",70),Hc(Oc(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return _u(Jc,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return wu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=23}},{key:"set",value:function(t,e,i){return t.setUTCHours(i,0,0,0),t}}]),e}(),Zu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",70),Hc(Oc(i),"incompatibleTokens",["h","H","k","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return _u(tu,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return wu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=11}},{key:"set",value:function(t,e,i){var r=t.getUTCHours()>=12;return t.setUTCHours(r&&i<12?i+12:i,0,0,0),t}}]),e}(),Ju=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",70),Hc(Oc(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return _u(Qc,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return wu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=24}},{key:"set",value:function(t,e,i){return t.setUTCHours(i<=24?i%24:i,0,0,0),t}}]),e}(),Qu=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",60),Hc(Oc(i),"incompatibleTokens",["t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return _u(iu,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return wu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCMinutes(i,0,0),t}}]),e}(),td=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",50),Hc(Oc(i),"incompatibleTokens",["t","T"]),i}return jc(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return _u(ru,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return wu(e.length,t)}}},{key:"validate",value:function(t,e){return e>=0&&e<=59}},{key:"set",value:function(t,e,i){return t.setUTCSeconds(i,0),t}}]),e}(),ed=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",30),Hc(Oc(i),"incompatibleTokens",["t","T"]),i}return jc(e,[{key:"parse",value:function(t,e){return bu(wu(e.length,t),(function(t){return Math.floor(t*Math.pow(10,3-e.length))}))}},{key:"set",value:function(t,e,i){return t.setUTCMilliseconds(i),t}}]),e}(),id=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",10),Hc(Oc(i),"incompatibleTokens",["t","T","x"]),i}return jc(e,[{key:"parse",value:function(t,e){switch(e){case"X":return yu(mu,t);case"XX":return yu(pu,t);case"XXXX":return yu(fu,t);case"XXXXX":return yu(gu,t);default:return yu(vu,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),rd=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",10),Hc(Oc(i),"incompatibleTokens",["t","T","X"]),i}return jc(e,[{key:"parse",value:function(t,e){switch(e){case"x":return yu(mu,t);case"xx":return yu(pu,t);case"xxxx":return yu(fu,t);case"xxxxx":return yu(gu,t);default:return yu(vu,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),od=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",40),Hc(Oc(i),"incompatibleTokens","*"),i}return jc(e,[{key:"parse",value:function(t){return Eu(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),sd=function(){Rc(e,Wc);var t=Uc(e);function e(){var i;Bc(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return Hc(Oc(i=t.call.apply(t,[this].concat(o))),"priority",20),Hc(Oc(i),"incompatibleTokens","*"),i}return jc(e,[{key:"parse",value:function(t){return Eu(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),nd={G:new Yc,y:new Cu,Y:new Tu,R:new Nu,u:new Iu,Q:new Du,q:new Ou,M:new zu,L:new Ru,w:new Mu,I:new Gu,d:new Lu,D:new Pu,E:new Hu,e:new Fu,c:new qu,i:new Vu,a:new Wu,b:new Yu,B:new Ku,h:new Xu,H:new $u,K:new Zu,k:new Ju,m:new Qu,s:new td,S:new ed,X:new id,x:new rd,t:new od,T:new sd},ad=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ld=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,hd=/^'([^]*?)'?$/,cd=/''/g,ud=/\S/,dd=/[a-zA-Z]/;function md(t,e,i,r){var o,s,n,a,l,h,c,u,d,m,p,f,v,g,b,_,y,E;Rh(3,arguments);var w=String(t),x=String(e),k=Hh(),A=null!==(o=null!==(s=null==r?void 0:r.locale)&&void 0!==s?s:k.locale)&&void 0!==o?o:wc;if(!A.match)throw new RangeError("locale must contain match property");var S=Gh(null!==(n=null!==(a=null!==(l=null!==(h=null==r?void 0:r.firstWeekContainsDate)&&void 0!==h?h:null==r||null===(c=r.locale)||void 0===c||null===(u=c.options)||void 0===u?void 0:u.firstWeekContainsDate)&&void 0!==l?l:k.firstWeekContainsDate)&&void 0!==a?a:null===(d=k.locale)||void 0===d||null===(m=d.options)||void 0===m?void 0:m.firstWeekContainsDate)&&void 0!==n?n:1);if(!(S>=1&&S<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var C=Gh(null!==(p=null!==(f=null!==(v=null!==(g=null==r?void 0:r.weekStartsOn)&&void 0!==g?g:null==r||null===(b=r.locale)||void 0===b||null===(_=b.options)||void 0===_?void 0:_.weekStartsOn)&&void 0!==v?v:k.weekStartsOn)&&void 0!==f?f:null===(y=k.locale)||void 0===y||null===(E=y.options)||void 0===E?void 0:E.weekStartsOn)&&void 0!==p?p:0);if(!(C>=0&&C<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===x)return""===w?Mh(i):new Date(NaN);var T,N={firstWeekContainsDate:S,weekStartsOn:C,locale:A},I=[new Vc],D=x.match(ld).map((function(t){var e=t[0];return e in lc?(0,lc[e])(t,A.formatLong):t})).join("").match(ad),O=[],z=Ic(D);try{var R=function(){var e=T.value;null!=r&&r.useAdditionalWeekYearTokens||!mc(e)||pc(e,x,t),null!=r&&r.useAdditionalDayOfYearTokens||!dc(e)||pc(e,x,t);var i=e[0],o=nd[i];if(o){var s=o.incompatibleTokens;if(Array.isArray(s)){var n=O.find((function(t){return s.includes(t.token)||t.token===i}));if(n)throw new RangeError("The format string mustn't contain `".concat(n.fullToken,"` and `").concat(e,"` at the same time"))}else if("*"===o.incompatibleTokens&&O.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));O.push({token:i,fullToken:e});var a=o.run(w,e,A.match,N);if(!a)return{v:new Date(NaN)};I.push(a.setter),w=a.rest}else{if(i.match(dd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(hd)[1].replace(cd,"'")),0!==w.indexOf(e))return{v:new Date(NaN)};w=w.slice(e.length)}};for(z.s();!(T=z.n()).done;){var M=R();if("object"===zh(M))return M.v}}catch(t){z.e(t)}finally{z.f()}if(w.length>0&&ud.test(w))return new Date(NaN);var G=I.map((function(t){return t.priority})).sort((function(t,e){return e-t})).filter((function(t,e,i){return i.indexOf(t)===e})).map((function(t){return I.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),U=Mh(i);if(isNaN(U.getTime()))return new Date(NaN);var B,L=Uh(U,hc(U)),P={},j=Ic(G);try{for(j.s();!(B=j.n()).done;){var H=B.value;if(!H.validate(L,N))return new Date(NaN);var F=H.set(L,P,N);Array.isArray(F)?(L=F[0],Dc(P,F[1])):L=F}}catch(t){j.e(t)}finally{j.f()}return L}function pd(t,e){Rh(2,arguments);var i=Mh(t),r=Mh(e);return i.getTime()>r.getTime()}function fd(t,e){Rh(2,arguments);var i=Mh(t),r=Mh(e);return i.getTime()<r.getTime()}const vd=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.clientStyling="",this.emitOnClick=!1,this.limitStylingAppends=!1,this.showTooltip=!1,this.touched=!1,this.formatDate=t=>{const{year:e,month:i,day:r}=t;return Tc(new Date(e,i,r),this.dateFormat||"yyyy-MM-dd")},this.parseDate=t=>{const e=md(t,this.dateFormat||"yyyy-MM-dd",new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var t,e;this.minDate=md((null===(t=this.validation.min)||void 0===t?void 0:t.toString())||"","yyyy-MM-dd",new Date),this.maxDate=md((null===(e=this.validation.max)||void 0===e?void 0:e.toString())||"","yyyy-MM-dd",new Date)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.datePicker=this.element.shadowRoot.querySelector("vaadin-date-picker"),this.inputReference=this.element.shadowRoot.querySelector("input"),this.datePicker){const t=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');t&&t.addEventListener("click",(()=>this.handleCalendarIconClick()))}this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(t){this.value=t.target.value,this.touched=!0,this.valueAsDate=md(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return!fd(this.valueAsDate,this.minDate)&&!pd(this.valueAsDate,this.maxDate)&&this.inputReference.validity.valid}setErrorMessage(){return fd(this.valueAsDate,this.minDate)||pd(this.valueAsDate,this.maxDate)?n("dateError2",this.language):this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?n("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):this.inputReference.validity.valueMissing?n("requiredError",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"date__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"fc9cd0a618c7b6e62962c0800399a470fffa1fc4",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("label",{key:"abc7c1715dd2d0c60dd2ac6d028355de910be501",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),i("vaadin-date-picker",{key:"a6b40a978b573d41490457d708f9a7ac78622a6f",id:`${this.name}__input`,type:"date",class:`date__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:t=>this.handleInput(t),onBlur:this.handleBlur}),i("small",{key:"d802ea7b25a64802aca3a7491107fcee7af2a23c",class:"date__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"46edd200a9ce9eba27414a6434c6b3d5e9dc9964",class:"date__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return r(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};vd.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.date{font-family:"Roboto";font-style:normal}.date__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.date__wrapper--autofilled{pointer-events:none}.date__wrapper--autofilled .date__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__wrapper--autofilled .date__input::part(input-field){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.date__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.date__input{border:none;width:inherit;position:relative}.date__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.date__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.date__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.date__input>input{padding:5px 15px}.date__input::part(toggle-button){position:relative;right:10px}.date__error-message{position:absolute;top:calc(100% + 5px);left:0;color:rgba(204, 0, 0, 0.7019607843)}.date__tooltip-icon{position:absolute;right:0;bottom:10px}.date__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.date__tooltip.visible{opacity:1}';const gd=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.value=t.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,r;if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return n(`${i}`,this.language)?n(`${i}`,this.language):r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return n("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return n("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(r=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===r?void 0:r.errorMessage;return n(`${t}`,this.language)?n(`${t}`,this.language):e}}renderTooltip(){return this.showTooltip?i("div",{class:"email__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"23ac67984ab7a0f4db01e5fe01f4f326b4c6a912",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"aa2405e435aea20f1678dd74776a8ce4094bc95b",class:"email__wrapper--flex"},i("label",{key:"970b83bbcf082d1721c1647993fecd076939b65d",class:"email__label "+(this.validation.mandatory?"email__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"2f03eaf161aab9b45282c1bc0de15bea8455427c",class:"email__wrapper--relative"},this.tooltip&&i("img",{key:"3c34b91f0b478cf04f5aabc5fdd33a8ed73d091b",class:"email__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"491f83c0f562893c02e3425b4d54eecc214e3c95",id:`${this.name}__input`,type:"email",class:`email__input ${t}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"edb6660d958cc5d0cb41b0db195bd7e847ecbefe",class:"email__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};gd.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.email{font-family:"Roboto";font-style:normal}.email__wrapper{position:relative;width:100%}.email__wrapper--autofilled{pointer-events:none}.email__wrapper--autofilled .email__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__wrapper--autofilled .email__input{color:var(--emw--color-black, #000000)}.email__wrapper--flex{display:flex;gap:5px}.email__wrapper--relative{position:relative}.email__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.email__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.email__input{font-family:inherit;border-radius:4px;width:100%;height:40px;border:2px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;font-size:16px;font-weight:300;line-height:1.5;padding:10px}.email__input:focus{outline-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.email__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__input::placeholder{color:var(--emw--color-gray-150, #828282)}.email__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.email__tooltip-icon{width:16px;height:auto}.email__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.email__tooltip.visible{opacity:1}';const bd=class{constructor(e){t(this,e),this.type="text",this.clientStyling="",this.translationUrl="",this.emitOnClick=!1,this.handleClick=t=>{this.emitOnClick&&(t.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))}}connectedCallback(){var t;this.translationUrl&&(t=this.translationUrl,new Promise((e=>{fetch(t).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{for(let i in t[e])s[e][i]=t[e][i]})),e(!0)}))})))}renderInput(){var t;switch(null===(t=this.type)||void 0===t?void 0:t.toLowerCase()){case"text":return i("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return i("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return i("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return i("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return i("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return i("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return i("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick});case"password":return i("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return i("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return i("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return i("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});default:return i("p",null,"The ",this.type," input type is not valid")}}render(){return i(o,{key:"e1c49fc91ead165c05b30c21ac568486e55c8096",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};bd.style=":host{display:block;height:100%}";const _d={en:{GmErr_AMOUNT_INVALID:"The specified amount is invalid.",GmErr_REGISTER_OVERAGE:"The registration has exceeded the allowable limit.",GmErr_REGISTER_UNDERAGE:"The registration is under the allowable limit.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"User authentication failed due to too many unsuccessful attempts.",GmErr_USER_ACCOUNT_BLOCKED:"The user account is blocked.",GmErr_USER_NOT_VERIFIED:"The user has not been verified.",GmErr_USER_NOT_FOUND:"No user found with the provided information.",GmErr_USER_ID_INVALID:"The user ID provided is invalid.",GmErr_USER_AUTH_FAILED:"User authentication failed.",GmErr_USER_DUPLICATED:"The user already exists in the system.",GmErr_USER_NOT_ACTIVATED:"The user account has not been activated.",GmErr_PASSWORD_CONTAINS_EMAIL:"The password cannot contain the email address.",GmErr_PASSWORD_CONTAINS_USERNAME:"The password cannot contain the username.",GmErr_PASSWORD_CONTAINS_SPACES:"The password cannot contain spaces.",GmErr_USER_4TS_CHECK_EXISTS:"The user 4TS check already exists.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"The user is excluded from registration.",GmErr_USER_NAV_EXCLUDED_LOGIN:"The user is excluded from login.",GmErr_USERNAME_REQUIRED:"A username is required.",GmErr_USER_EMAIL_NOT_VERIFIED:"The user's email address has not been verified.",GmErr_EMAIL_ALREADY_EXISTS:"User with same email already exists",GmErr_EMAIL_REQUIRED:"An email address is required.",GmErr_USERNAME_ALREADY_EXISTS:"The username is already taken.",GmErr_DUPLICATE_PERSONAL_ID:"Duplicate personal ID found.",GmErr_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_INVALID_CODE:"The code provided is invalid.",GmErr_EXPIRED_TOKEN:"The token has expired.",GmErr_ATTEMPTS_EXCEEDED:"The maximum number of attempts has been exceeded.",GmErr_BLOCK_USER_INCORRECT_CODE:"The user has been blocked due to an incorrect code.",GmErr_TOKEN_NOT_FOUND:"The token was not found.",GmErr_INVALID_PHONE_NUMBER:"The phone number provided is invalid.",GmErr_CODE_MISSING:"The code is missing.",GmErr_UNREGISTERED_USER:"The user is not registered.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Maximum attempts to generate a code have been exceeded.",GmErr_UNEXPECTED_EXCEPTION:"An unexpected exception occurred.",GmErr_INVALID_USER_ID:"The user ID provided is invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"This action is not allowed.",GmErr_CAN_NOT_FIND_ROLE:"Unable to find the specified role.",GmErr_NO_SESSION_PROVIDED:"No session was provided.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No active session found for this user.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"The user has already been anonymized.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No role has been set up to be assigned.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"The provided session does not belong to the user.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"The provided session does not exist.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"The role has already been assigned to the user.",GmErr_ASSIGN_USER_ROLE_FAILED:"Failed to assign a role to the user.",GmErr_BadRequest_1000:"There was a problem with the personal identification number",CountryRestricted:"Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",nextButton:"Next",backButton:"Back",doneButton:"Done",generalError:"Something went wrong... Please try again.",successMessage:"Register successful"},hu:{GmErr_AMOUNT_INVALID:"A megadott összeg érvénytelen.",GmErr_REGISTER_OVERAGE:"A regisztráció túllépte a megengedett határt.",GmErr_REGISTER_UNDERAGE:"A regisztráció a megengedett határ alatt van.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"A felhasználó hitelesítése túl sok sikertelen próbálkozás miatt meghiúsult.",GmErr_USER_ACCOUNT_BLOCKED:"A felhasználói fiók le van tiltva.",GmErr_USER_NOT_VERIFIED:"A felhasználó nincs ellenőrizve.",GmErr_USER_NOT_FOUND:"A megadott adatokkal nem található felhasználó.",GmErr_USER_ID_INVALID:"A megadott felhasználói azonosító érvénytelen.",GmErr_USER_AUTH_FAILED:"A felhasználó hitelesítése meghiúsult.",GmErr_USER_DUPLICATED:"A felhasználó már létezik a rendszerben.",GmErr_USER_NOT_ACTIVATED:"A felhasználó fiókja nincs aktiválva.",GmErr_PASSWORD_CONTAINS_EMAIL:"A jelszó nem tartalmazhat e-mail címet.",GmErr_PASSWORD_CONTAINS_USERNAME:"A jelszó nem tartalmazhat felhasználónevet.",GmErr_PASSWORD_CONTAINS_SPACES:"A jelszó nem tartalmazhat szóközöket.",GmErr_USER_4TS_CHECK_EXISTS:"A felhasználó 4TS ellenőrzése már létezik.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"A felhasználó kizárva a regisztrációból.",GmErr_USER_NAV_EXCLUDED_LOGIN:"A felhasználó kizárva a bejelentkezésből.",GmErr_USERNAME_REQUIRED:"Felhasználónév megadása szükséges.",GmErr_USER_EMAIL_NOT_VERIFIED:"A felhasználó e-mail címe nincs megerősítve.",GmErr_EMAIL_ALREADY_EXISTS:"A megadott e-mail címmel már létezik felhasználó",GmErr_EMAIL_REQUIRED:"E-mail cím megadása szükséges.",GmErr_USERNAME_ALREADY_EXISTS:"A felhasználónév már foglalt.",GmErr_DUPLICATE_PERSONAL_ID:"Már létező személyes azonosító.",GmErr_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_INVALID_CODE:"A megadott kód érvénytelen.",GmErr_EXPIRED_TOKEN:"A token lejárt.",GmErr_ATTEMPTS_EXCEEDED:"A megengedett próbálkozások száma túllépve.",GmErr_BLOCK_USER_INCORRECT_CODE:"A felhasználó blokkolva lett a hibás kód miatt.",GmErr_TOKEN_NOT_FOUND:"A token nem található.",GmErr_INVALID_PHONE_NUMBER:"A megadott telefonszám érvénytelen.",GmErr_CODE_MISSING:"A szükséges kód hiányzik.",GmErr_UNREGISTERED_USER:"A felhasználó nincs regisztrálva.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túllépték a kódgenerálási próbálkozások számát.",GmErr_UNEXPECTED_EXCEPTION:"Váratlan kivétel történt.",GmErr_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_NOT_ALLOWED_EXCEPTION:"Ez a művelet nem engedélyezett.",GmErr_CAN_NOT_FIND_ROLE:"A megadott szerepkör nem található.",GmErr_NO_SESSION_PROVIDED:"Nem került megadásra munkamenet.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nincs aktív munkamenet ehhez a felhasználóhoz.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"A felhasználó már anonimizálva lett.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nincs beállítva hozzárendelhető szerepkör.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A megadott munkamenet nem tartozik a felhasználóhoz.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A megadott munkamenet nem létezik.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A szerepkör már hozzá lett rendelve a felhasználóhoz.",GmErr_ASSIGN_USER_ROLE_FAILED:"Nem sikerült a felhasználói szerepkört hozzárendelni.",GmErr_BadRequest_1000:"Probléma volt a személyi azonosító számmal",CountryRestricted:"Sajnálatos módon olyan országból próbál regisztrálni, ahonnan nem fogadhatunk játékot. Emiatt nem tudjuk feldolgozni a regisztrációját.",nextButton:"Következő",backButton:"Vissza",doneButton:"Kész",generalError:"Valami hiba történt... Próbáld újra.",successMessage:"Sikeres regisztráció"},hr:{GmErr_AMOUNT_INVALID:"Navedeni iznos je nevažeći.",GmErr_REGISTER_OVERAGE:"Registracija je premašila dopušteni limit.",GmErr_REGISTER_UNDERAGE:"Registracija je ispod dopuštenog limita.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Neuspješno autentificiranje korisnika zbog previše pokušaja.",GmErr_USER_ACCOUNT_BLOCKED:"Korisnički račun je blokiran.",GmErr_USER_NOT_VERIFIED:"Korisnik nije verificiran.",GmErr_USER_NOT_FOUND:"Korisnik s navedenim podacima nije pronađen.",GmErr_USER_ID_INVALID:"Navedeni ID korisnika je nevažeći.",GmErr_USER_AUTH_FAILED:"Neuspješno autentificiranje korisnika.",GmErr_USER_DUPLICATED:"Korisnik već postoji u sustavu.",GmErr_USER_NOT_ACTIVATED:"Korisnički račun nije aktiviran.",GmErr_PASSWORD_CONTAINS_EMAIL:"Lozinka ne smije sadržavati e-mail adresu.",GmErr_PASSWORD_CONTAINS_USERNAME:"Lozinka ne smije sadržavati korisničko ime.",GmErr_PASSWORD_CONTAINS_SPACES:"Lozinka ne smije sadržavati razmake.",GmErr_USER_4TS_CHECK_EXISTS:"4TS provjera korisnika već postoji.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Korisnik je isključen iz registracije.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Korisnik je isključen iz prijave.",GmErr_USERNAME_REQUIRED:"Korisničko ime je obavezno.",GmErr_USER_EMAIL_NOT_VERIFIED:"E-mail adresa korisnika nije verificirana.",GmErr_EMAIL_ALREADY_EXISTS:"Korisnik s istom e-mail adresom već postoji",GmErr_EMAIL_REQUIRED:"E-mail adresa je obavezna.",GmErr_USERNAME_ALREADY_EXISTS:"Korisničko ime je već zauzeto.",GmErr_DUPLICATE_PERSONAL_ID:"Pronađen je duplicirani osobni ID.",GmErr_INVALID_USER_DOCUMENT:"Dokument korisnika je nevažeći.",GmErr_INVALID_CODE:"Navedeni kod je nevažeći.",GmErr_EXPIRED_TOKEN:"Token je istekao.",GmErr_ATTEMPTS_EXCEEDED:"Prekoračen je maksimalni broj pokušaja.",GmErr_BLOCK_USER_INCORRECT_CODE:"Korisnik je blokiran zbog pogrešnog koda.",GmErr_TOKEN_NOT_FOUND:"Token nije pronađen.",GmErr_INVALID_PHONE_NUMBER:"Navedeni broj telefona je nevažeći.",GmErr_CODE_MISSING:"Nedostaje potrebni kod.",GmErr_UNREGISTERED_USER:"Korisnik nije registriran.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Prekoračen je broj pokušaja generiranja koda.",GmErr_UNEXPECTED_EXCEPTION:"Došlo je do neočekivane iznimke.",GmErr_INVALID_USER_ID:"Navedeni ID korisnika je nevažeći.",GmErr_NOT_ALLOWED_EXCEPTION:"Ova radnja nije dopuštena.",GmErr_CAN_NOT_FIND_ROLE:"Navedena uloga nije pronađena.",GmErr_NO_SESSION_PROVIDED:"Nema pružene sesije.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nema aktivne sesije za ovog korisnika.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Korisnik je već anonimiziran.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nema postavljene uloge za dodjeljivanje.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Pružena sesija ne pripada korisniku.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Pružena sesija ne postoji.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Uloga je već dodijeljena korisniku.",GmErr_ASSIGN_USER_ROLE_FAILED:"Neuspješno dodjeljivanje uloge korisniku.",GmErr_BadRequest_1000:"Došlo je do problema s OIB-om",CountryRestricted:"Nažalost, prijavljujete se iz zemlje iz koje ne možemo prihvatiti igru. Nismo u mogućnosti obraditi registraciju iz navedenog razloga.",nextButton:"Sljedeće",backButton:"Nazad",doneButton:"Gotovo",generalError:"Korisnik s ovim podacima već postoji.",successMessage:"Register successful"},"pt-br":{GmErr_AMOUNT_INVALID:"O valor especificado é inválido.",GmErr_REGISTER_OVERAGE:"A inscrição excedeu o limite permitido.",GmErr_REGISTER_UNDERAGE:"A inscrição está abaixo do limite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Falha na autenticação do usuário devido a muitas tentativas sem sucesso.",GmErr_USER_ACCOUNT_BLOCKED:"A conta do usuário está bloqueada.",GmErr_USER_NOT_VERIFIED:"O usuário não foi verificado.",GmErr_USER_NOT_FOUND:"Nenhum usuário encontrado com as informações fornecidas.",GmErr_USER_ID_INVALID:"O ID do usuário fornecido é inválido.",GmErr_USER_AUTH_FAILED:"Falha na autenticação do usuário.",GmErr_USER_DUPLICATED:"O usuário já existe no sistema.",GmErr_USER_NOT_ACTIVATED:"A conta do usuário não está ativada.",GmErr_PASSWORD_CONTAINS_EMAIL:"A senha não pode conter o endereço de e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"A senha não pode conter o nome de usuário.",GmErr_PASSWORD_CONTAINS_SPACES:"A senha não pode conter espaços.",GmErr_USER_4TS_CHECK_EXISTS:"A verificação 4TS do usuário já existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"O usuário está excluído da inscrição.",GmErr_USER_NAV_EXCLUDED_LOGIN:"O usuário está excluído do login.",GmErr_USERNAME_REQUIRED:"O nome de usuário é obrigatório.",GmErr_USER_EMAIL_NOT_VERIFIED:"O e-mail do usuário não foi verificado.",GmErr_EMAIL_ALREADY_EXISTS:"Usuário com o mesmo e-mail já existe",GmErr_EMAIL_REQUIRED:"Um endereço de e-mail é obrigatório.",GmErr_USERNAME_ALREADY_EXISTS:"O nome de usuário já está em uso.",GmErr_DUPLICATE_PERSONAL_ID:"ID pessoal duplicado encontrado.",GmErr_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_INVALID_CODE:"O código fornecido é inválido.",GmErr_EXPIRED_TOKEN:"O token expirou.",GmErr_ATTEMPTS_EXCEEDED:"O número máximo de tentativas foi excedido.",GmErr_BLOCK_USER_INCORRECT_CODE:"O usuário foi bloqueado devido a um código incorreto.",GmErr_TOKEN_NOT_FOUND:"O token não foi encontrado.",GmErr_INVALID_PHONE_NUMBER:"O número de telefone fornecido é inválido.",GmErr_CODE_MISSING:"O código necessário está faltando.",GmErr_UNREGISTERED_USER:"O usuário não está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"O número máximo de tentativas para gerar um código foi excedido.",GmErr_UNEXPECTED_EXCEPTION:"Ocorreu uma exceção inesperada.",GmErr_INVALID_USER_ID:"O ID do usuário fornecido é inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta ação não é permitida.",GmErr_CAN_NOT_FIND_ROLE:"Não foi possível encontrar a função especificada.",GmErr_NO_SESSION_PROVIDED:"Nenhuma sessão foi fornecida.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nenhuma sessão ativa encontrada para este usuário.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"O usuário já foi anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nenhuma função foi configurada para ser atribuída.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A sessão fornecida não pertence ao usuário.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A sessão fornecida não existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A função já foi atribuída ao usuário.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falha ao atribuir a função ao usuário.",GmErr_BadRequest_1000:"Houve um problema com o número de identificação pessoal",CountryRestricted:"Infelizmente, você está tentando se registrar a partir de um país onde não podemos aceitar jogos. Não podemos processar seu registro por esse motivo.",nextButton:"Seguindo",backButton:"Voltar",doneButton:"Terminar",generalError:"Alguma coisa deu errado. Por favor tente outra vez",successMessage:"Registro bem-sucedido"},"es-mx":{GmErr_AMOUNT_INVALID:"El monto especificado es inválido.",GmErr_REGISTER_OVERAGE:"La inscripción ha excedido el límite permitido.",GmErr_REGISTER_UNDERAGE:"La inscripción está por debajo del límite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Autenticación de usuario fallida debido a demasiados intentos fallidos.",GmErr_USER_ACCOUNT_BLOCKED:"La cuenta del usuario está bloqueada.",GmErr_USER_NOT_VERIFIED:"El usuario no ha sido verificado.",GmErr_USER_NOT_FOUND:"No se encontró ningún usuario con la información proporcionada.",GmErr_USER_ID_INVALID:"El ID de usuario proporcionado es inválido.",GmErr_USER_AUTH_FAILED:"La autenticación del usuario falló.",GmErr_USER_DUPLICATED:"El usuario ya existe en el sistema.",GmErr_USER_NOT_ACTIVATED:"La cuenta del usuario no está activada.",GmErr_PASSWORD_CONTAINS_EMAIL:"La contraseña no puede contener la dirección de correo electrónico.",GmErr_PASSWORD_CONTAINS_USERNAME:"La contraseña no puede contener el nombre de usuario.",GmErr_PASSWORD_CONTAINS_SPACES:"La contraseña no puede contener espacios.",GmErr_USER_4TS_CHECK_EXISTS:"La verificación 4TS del usuario ya existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"El usuario está excluido del registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"El usuario está excluido del inicio de sesión.",GmErr_USERNAME_REQUIRED:"Se requiere un nombre de usuario.",GmErr_USER_EMAIL_NOT_VERIFIED:"La dirección de correo electrónico del usuario no ha sido verificada.",GmErr_EMAIL_ALREADY_EXISTS:"Ya existe un usuario con el mismo correo electrónico",GmErr_EMAIL_REQUIRED:"Se requiere una dirección de correo electrónico.",GmErr_USERNAME_ALREADY_EXISTS:"El nombre de usuario ya está en uso.",GmErr_DUPLICATE_PERSONAL_ID:"Se encontró un ID personal duplicado.",GmErr_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_INVALID_CODE:"El código proporcionado es inválido.",GmErr_EXPIRED_TOKEN:"El token ha expirado.",GmErr_ATTEMPTS_EXCEEDED:"Se ha excedido el número máximo de intentos.",GmErr_BLOCK_USER_INCORRECT_CODE:"El usuario ha sido bloqueado debido a un código incorrecto.",GmErr_TOKEN_NOT_FOUND:"No se encontró el token.",GmErr_INVALID_PHONE_NUMBER:"El número de teléfono proporcionado es inválido.",GmErr_CODE_MISSING:"Falta el código necesario.",GmErr_UNREGISTERED_USER:"El usuario no está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Se ha excedido el número máximo de intentos para generar un código.",GmErr_UNEXPECTED_EXCEPTION:"Ocurrió una excepción inesperada.",GmErr_INVALID_USER_ID:"El ID de usuario proporcionado es inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta acción no está permitida.",GmErr_CAN_NOT_FIND_ROLE:"No se pudo encontrar el rol especificado.",GmErr_NO_SESSION_PROVIDED:"No se proporcionó ninguna sesión.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No se encontró ninguna sesión activa para este usuario.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"El usuario ya ha sido anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No se ha configurado ningún rol para ser asignado.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La sesión proporcionada no pertenece al usuario.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La sesión proporcionada no existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"El rol ya ha sido asignado al usuario.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falló la asignación del rol al usuario.",GmErr_BadRequest_1000:"Hubo un problema con el número de identificación personal",CountryRestricted:"Desafortunadamente, estás intentando registrarte desde un país donde no podemos aceptar juegos. No podemos procesar tu registro por esta razón.",nextButton:"Siguiente",backButton:"Atrás",doneButton:"Terminar",generalError:"Algo salió mal... Por favor intente de nuevo",successMessage:"Registro exitoso"},tr:{nextButton:"Next",backButton:"Back",doneButton:"Done",GmErr_BadRequest_Duplicate_User:"A user with this information already exists.",GmErr_BadRequest_PasswordContainsUsername:"The password cannot be the same as the username.",GmErr_BadRequest_PasswordContainsEmail:"The password cannot be the same as the email.",GmErr_BadRequest_Duplicate_PersonalId:"There is already a registration with the data you entered or you entered your data in an incorrect format.",GmErr_Forbidden_UserAccount_NavExcluded:"User is NAV Excluded. Registration was denied.",GmErr_BadRequest_ModelValidationFailed:"Something went wrong... Please try again.",GmErr_BadInternalConfigs:"Something went wrong... Please try again.",GmErr_Unauthorized:"Something went wrong... Please try again.",GmErr_NotFound:"Something went wrong... Please try again.",GmErr_UnexpectedException:"Something went wrong... Please try again.",CountryRestricted:"Maalesef, oyun kabul edemediğimiz bir ülkeden kayıt yapmaya çalışıyorsunuz. Bu nedenle kaydınızı işleme alamıyoruz.",generalError:"Something went wrong... Please try again.",successMessage:"Register successful"},"en-us":{GmErr_AMOUNT_INVALID:"The specified amount is invalid.",GmErr_REGISTER_OVERAGE:"The registration has exceeded the allowable limit.",GmErr_REGISTER_UNDERAGE:"The registration is under the allowable limit.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"User authentication failed due to too many unsuccessful attempts.",GmErr_USER_ACCOUNT_BLOCKED:"The user account is blocked.",GmErr_USER_NOT_VERIFIED:"The user has not been verified.",GmErr_USER_NOT_FOUND:"No user found with the provided information.",GmErr_USER_ID_INVALID:"The user ID provided is invalid.",GmErr_USER_AUTH_FAILED:"User authentication failed.",GmErr_USER_DUPLICATED:"The user already exists in the system.",GmErr_USER_NOT_ACTIVATED:"The user account has not been activated.",GmErr_PASSWORD_CONTAINS_EMAIL:"The password cannot contain the email address.",GmErr_PASSWORD_CONTAINS_USERNAME:"The password cannot contain the username.",GmErr_PASSWORD_CONTAINS_SPACES:"The password cannot contain spaces.",GmErr_USER_4TS_CHECK_EXISTS:"The user 4TS check already exists.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"The user is excluded from registration.",GmErr_USER_NAV_EXCLUDED_LOGIN:"The user is excluded from login.",GmErr_USERNAME_REQUIRED:"A username is required.",GmErr_USER_EMAIL_NOT_VERIFIED:"The user's email address has not been verified.",GmErr_EMAIL_ALREADY_EXISTS:"User with same email already exists",GmErr_EMAIL_REQUIRED:"An email address is required.",GmErr_USERNAME_ALREADY_EXISTS:"The username is already taken.",GmErr_DUPLICATE_PERSONAL_ID:"Duplicate personal ID found.",GmErr_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_INVALID_CODE:"The code provided is invalid.",GmErr_EXPIRED_TOKEN:"The token has expired.",GmErr_ATTEMPTS_EXCEEDED:"The maximum number of attempts has been exceeded.",GmErr_BLOCK_USER_INCORRECT_CODE:"The user has been blocked due to an incorrect code.",GmErr_TOKEN_NOT_FOUND:"The token was not found.",GmErr_INVALID_PHONE_NUMBER:"The phone number provided is invalid.",GmErr_CODE_MISSING:"The code is missing.",GmErr_UNREGISTERED_USER:"The user is not registered.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Maximum attempts to generate a code have been exceeded.",GmErr_UNEXPECTED_EXCEPTION:"An unexpected exception occurred.",GmErr_INVALID_USER_ID:"The user ID provided is invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"This action is not allowed.",GmErr_CAN_NOT_FIND_ROLE:"Unable to find the specified role.",GmErr_NO_SESSION_PROVIDED:"No session was provided.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No active session found for this user.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"The user has already been anonymized.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No role has been set up to be assigned.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"The provided session does not belong to the user.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"The provided session does not exist.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"The role has already been assigned to the user.",GmErr_ASSIGN_USER_ROLE_FAILED:"Failed to assign a role to the user.",GmErr_BadRequest_1000:"There was a problem with the personal identification number",CountryRestricted:"Unfortunately, you are attempting to register from a country where we cannot accept gameplay. We are unable to process your registration for this reason.",nextButton:"Next",backButton:"Back",doneButton:"Done",generalError:"Something went wrong... Please try again.",successMessage:"Register successful"},ro:{GmErr_AMOUNT_INVALID:"Suma specificată este invalidă.",GmErr_REGISTER_OVERAGE:"Înregistrarea a depășit limita permisă.",GmErr_REGISTER_UNDERAGE:"Înregistrarea este sub limita permisă.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Autentificarea utilizatorului a eșuat din cauza prea multor încercări nereușite.",GmErr_USER_ACCOUNT_BLOCKED:"Contul utilizatorului este blocat.",GmErr_USER_NOT_VERIFIED:"Utilizatorul nu a fost verificat.",GmErr_USER_NOT_FOUND:"Nu s-a găsit niciun utilizator cu informațiile furnizate.",GmErr_USER_ID_INVALID:"ID-ul utilizatorului furnizat este invalid.",GmErr_USER_AUTH_FAILED:"Autentificarea utilizatorului a eșuat.",GmErr_USER_DUPLICATED:"Utilizatorul există deja în sistem.",GmErr_USER_NOT_ACTIVATED:"Contul utilizatorului nu a fost activat.",GmErr_PASSWORD_CONTAINS_EMAIL:"Parola nu poate conține adresa de email.",GmErr_PASSWORD_CONTAINS_USERNAME:"Parola nu poate conține numele de utilizator.",GmErr_PASSWORD_CONTAINS_SPACES:"Parola nu poate conține spații.",GmErr_USER_4TS_CHECK_EXISTS:"Verificarea utilizatorului 4TS există deja.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Utilizatorul este exclus de la înregistrare.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Utilizatorul este exclus de la autentificare.",GmErr_USERNAME_REQUIRED:"Este necesar un nume de utilizator.",GmErr_USER_EMAIL_NOT_VERIFIED:"Adresa de email a utilizatorului nu a fost verificată.",GmErr_EMAIL_ALREADY_EXISTS:"Un utilizator cu același email există deja.",GmErr_EMAIL_REQUIRED:"Este necesară o adresă de email.",GmErr_USERNAME_ALREADY_EXISTS:"Numele de utilizator este deja utilizat.",GmErr_DUPLICATE_PERSONAL_ID:"S-a găsit un ID personal duplicat.",GmErr_INVALID_USER_DOCUMENT:"Documentul utilizatorului este invalid.",GmErr_INVALID_CODE:"Codul furnizat este invalid.",GmErr_EXPIRED_TOKEN:"Token-ul a expirat.",GmErr_ATTEMPTS_EXCEEDED:"Numărul maxim de încercări a fost depășit.",GmErr_BLOCK_USER_INCORRECT_CODE:"Utilizatorul a fost blocat din cauza unui cod incorect.",GmErr_TOKEN_NOT_FOUND:"Token-ul nu a fost găsit.",GmErr_INVALID_PHONE_NUMBER:"Numărul de telefon furnizat este invalid.",GmErr_CODE_MISSING:"Lipsește codul.",GmErr_UNREGISTERED_USER:"Utilizatorul nu este înregistrat.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"S-a depășit numărul maxim de încercări pentru generarea unui cod.",GmErr_UNEXPECTED_EXCEPTION:"A apărut o eroare neașteptată.",GmErr_INVALID_USER_ID:"ID-ul utilizatorului furnizat este invalid.",GmErr_NOT_ALLOWED_EXCEPTION:"Acțiunea nu este permisă.",GmErr_CAN_NOT_FIND_ROLE:"Nu s-a găsit rolul specificat.",GmErr_NO_SESSION_PROVIDED:"Nu a fost furnizată nicio sesiune.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nu a fost găsită nicio sesiune activă pentru acest utilizator.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Utilizatorul a fost deja anonimizat.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nu a fost configurat niciun rol de atribuit.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Sesiunea furnizată nu aparține utilizatorului.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Sesiunea furnizată nu există.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Rolul a fost deja atribuit utilizatorului.",GmErr_ASSIGN_USER_ROLE_FAILED:"Atribuirea rolului utilizatorului a eșuat.",GmErr_BadRequest_1000:"A apărut o problemă cu numărul de identificare personal.",CountryRestricted:"Din păcate, încercați să vă înregistrați dintr-o țară unde nu putem accepta jocuri. Din acest motiv, nu vă putem procesa înregistrarea.",nextButton:"Următorul",backButton:"Înapoi",doneButton:"Finalizat",generalError:"Ceva a mers prost... Vă rugăm să încercați din nou.",successMessage:"Înregistrare reușită"},fr:{GmErr_AMOUNT_INVALID:"Le montant spécifié est invalide.",GmErr_REGISTER_OVERAGE:"L'inscription a dépassé la limite autorisée.",GmErr_REGISTER_UNDERAGE:"L'inscription est en dessous de la limite autorisée.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Échec de l'authentification utilisateur en raison de trop nombreuses tentatives infructueuses.",GmErr_USER_ACCOUNT_BLOCKED:"Le compte utilisateur est bloqué.",GmErr_USER_NOT_VERIFIED:"L'utilisateur n'a pas été vérifié.",GmErr_USER_NOT_FOUND:"Aucun utilisateur trouvé avec les informations fournies.",GmErr_USER_ID_INVALID:"L'identifiant utilisateur fourni est invalide.",GmErr_USER_AUTH_FAILED:"Échec de l'authentification utilisateur.",GmErr_USER_DUPLICATED:"L'utilisateur existe déjà dans le système.",GmErr_USER_NOT_ACTIVATED:"Le compte utilisateur n'a pas été activé.",GmErr_PASSWORD_CONTAINS_EMAIL:"Le mot de passe ne peut pas contenir l'adresse e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"Le mot de passe ne peut pas contenir le nom d'utilisateur.",GmErr_PASSWORD_CONTAINS_SPACES:"Le mot de passe ne peut pas contenir d'espaces.",GmErr_USER_4TS_CHECK_EXISTS:"La vérification utilisateur 4TS existe déjà.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"L'utilisateur est exclu de l'enregistrement.",GmErr_USER_NAV_EXCLUDED_LOGIN:"L'utilisateur est exclu de la connexion.",GmErr_USERNAME_REQUIRED:"Un nom d'utilisateur est requis.",GmErr_USER_EMAIL_NOT_VERIFIED:"L'adresse e-mail de l'utilisateur n'a pas été vérifiée.",GmErr_EMAIL_ALREADY_EXISTS:"Un utilisateur avec la même adresse e-mail existe déjà.",GmErr_EMAIL_REQUIRED:"Une adresse e-mail est requise.",GmErr_USERNAME_ALREADY_EXISTS:"Le nom d'utilisateur est déjà pris.",GmErr_DUPLICATE_PERSONAL_ID:"Un identifiant personnel dupliqué a été trouvé.",GmErr_INVALID_USER_DOCUMENT:"Le document utilisateur est invalide.",GmErr_INVALID_CODE:"Le code fourni est invalide.",GmErr_EXPIRED_TOKEN:"Le jeton a expiré.",GmErr_ATTEMPTS_EXCEEDED:"Le nombre maximum de tentatives a été dépassé.",GmErr_BLOCK_USER_INCORRECT_CODE:"L'utilisateur a été bloqué en raison d'un code incorrect.",GmErr_TOKEN_NOT_FOUND:"Le jeton n'a pas été trouvé.",GmErr_INVALID_PHONE_NUMBER:"Le numéro de téléphone fourni est invalide.",GmErr_CODE_MISSING:"Le code est manquant.",GmErr_UNREGISTERED_USER:"L'utilisateur n'est pas enregistré.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Le nombre maximum de tentatives pour générer un code a été dépassé.",GmErr_UNEXPECTED_EXCEPTION:"Une exception inattendue s'est produite.",GmErr_INVALID_USER_ID:"L'identifiant utilisateur fourni est invalide.",GmErr_NOT_ALLOWED_EXCEPTION:"Cette action n'est pas autorisée.",GmErr_CAN_NOT_FIND_ROLE:"Impossible de trouver le rôle spécifié.",GmErr_NO_SESSION_PROVIDED:"Aucune session n'a été fournie.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Aucune session active n'a été trouvée pour cet utilisateur.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"L'utilisateur a déjà été anonymisé.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Aucun rôle n'a été configuré pour être attribué.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La session fournie n'appartient pas à l'utilisateur.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La session fournie n'existe pas.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Le rôle a déjà été attribué à l'utilisateur.",GmErr_ASSIGN_USER_ROLE_FAILED:"Échec de l'attribution d'un rôle à l'utilisateur.",GmErr_BadRequest_1000:"Un problème est survenu avec le numéro d'identification personnel.",CountryRestricted:"Malheureusement, vous essayez de vous inscrire depuis un pays où nous ne pouvons pas accepter les jeux. Nous ne pouvons pas traiter votre inscription pour cette raison.",nextButton:"Suivant",backButton:"Retour"},es:{GmErr_AMOUNT_INVALID:"El monto especificado no es válido.",GmErr_REGISTER_OVERAGE:"El registro ha excedido el límite permitido.",GmErr_REGISTER_UNDERAGE:"El registro está por debajo del límite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"La autenticación del usuario falló debido a demasiados intentos fallidos.",GmErr_USER_ACCOUNT_BLOCKED:"La cuenta del usuario está bloqueada.",GmErr_USER_NOT_VERIFIED:"El usuario no ha sido verificado.",GmErr_USER_NOT_FOUND:"No se encontró un usuario con la información proporcionada.",GmErr_USER_ID_INVALID:"El ID de usuario proporcionado no es válido.",GmErr_USER_AUTH_FAILED:"La autenticación del usuario falló.",GmErr_USER_DUPLICATED:"El usuario ya existe en el sistema.",GmErr_USER_NOT_ACTIVATED:"La cuenta del usuario no ha sido activada.",GmErr_PASSWORD_CONTAINS_EMAIL:"La contraseña no puede contener la dirección de correo electrónico.",GmErr_PASSWORD_CONTAINS_USERNAME:"La contraseña no puede contener el nombre de usuario.",GmErr_PASSWORD_CONTAINS_SPACES:"La contraseña no puede contener espacios.",GmErr_USER_4TS_CHECK_EXISTS:"La verificación del usuario 4TS ya existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"El usuario está excluido del registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"El usuario está excluido del inicio de sesión.",GmErr_USERNAME_REQUIRED:"Se requiere un nombre de usuario.",GmErr_USER_EMAIL_NOT_VERIFIED:"La dirección de correo electrónico del usuario no ha sido verificada.",GmErr_EMAIL_ALREADY_EXISTS:"Un usuario con el mismo correo electrónico ya existe.",GmErr_EMAIL_REQUIRED:"Se requiere una dirección de correo electrónico.",GmErr_USERNAME_ALREADY_EXISTS:"El nombre de usuario ya está en uso.",GmErr_DUPLICATE_PERSONAL_ID:"Se encontró un ID personal duplicado.",GmErr_INVALID_USER_DOCUMENT:"El documento del usuario no es válido.",GmErr_INVALID_CODE:"El código proporcionado no es válido.",GmErr_EXPIRED_TOKEN:"El token ha expirado.",GmErr_ATTEMPTS_EXCEEDED:"Se ha superado el número máximo de intentos.",GmErr_BLOCK_USER_INCORRECT_CODE:"El usuario ha sido bloqueado debido a un código incorrecto.",GmErr_TOKEN_NOT_FOUND:"No se encontró el token.",GmErr_INVALID_PHONE_NUMBER:"El número de teléfono proporcionado no es válido.",GmErr_CODE_MISSING:"Falta el código.",GmErr_UNREGISTERED_USER:"El usuario no está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Se ha superado el número máximo de intentos para generar un código.",GmErr_UNEXPECTED_EXCEPTION:"Ocurrió una excepción inesperada.",GmErr_INVALID_USER_ID:"El ID de usuario proporcionado no es válido.",GmErr_NOT_ALLOWED_EXCEPTION:"Esta acción no está permitida.",GmErr_CAN_NOT_FIND_ROLE:"No se pudo encontrar el rol especificado.",GmErr_NO_SESSION_PROVIDED:"No se proporcionó ninguna sesión.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"No se encontró ninguna sesión activa para este usuario.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"El usuario ya ha sido anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"No se ha configurado ningún rol para asignar.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"La sesión proporcionada no pertenece al usuario.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"La sesión proporcionada no existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"El rol ya ha sido asignado al usuario.",GmErr_ASSIGN_USER_ROLE_FAILED:"No se pudo asignar un rol al usuario.",GmErr_BadRequest_1000:"Hubo un problema con el número de identificación personal.",CountryRestricted:"Lamentablemente, estás intentando registrarte desde un país donde no podemos aceptar el juego. No podemos procesar tu registro por esta razón.",nextButton:"Siguiente",backButton:"Atrás",doneButton:"Hecho",generalError:"Algo salió mal... Por favor, inténtalo de nuevo.",successMessage:"Registro exitoso"},pt:{GmErr_AMOUNT_INVALID:"O valor especificado é inválido.",GmErr_REGISTER_OVERAGE:"O registro excedeu o limite permitido.",GmErr_REGISTER_UNDERAGE:"O registro está abaixo do limite permitido.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"A autenticação do usuário falhou devido a muitas tentativas malsucedidas.",GmErr_USER_ACCOUNT_BLOCKED:"A conta do usuário está bloqueada.",GmErr_USER_NOT_VERIFIED:"O usuário não foi verificado.",GmErr_USER_NOT_FOUND:"Nenhum usuário encontrado com as informações fornecidas.",GmErr_USER_ID_INVALID:"O ID de usuário fornecido é inválido.",GmErr_USER_AUTH_FAILED:"A autenticação do usuário falhou.",GmErr_USER_DUPLICATED:"O usuário já existe no sistema.",GmErr_USER_NOT_ACTIVATED:"A conta do usuário não foi ativada.",GmErr_PASSWORD_CONTAINS_EMAIL:"A senha não pode conter o endereço de e-mail.",GmErr_PASSWORD_CONTAINS_USERNAME:"A senha não pode conter o nome de usuário.",GmErr_PASSWORD_CONTAINS_SPACES:"A senha não pode conter espaços.",GmErr_USER_4TS_CHECK_EXISTS:"A verificação do usuário 4TS já existe.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"O usuário está excluído do registro.",GmErr_USER_NAV_EXCLUDED_LOGIN:"O usuário está excluído do login.",GmErr_USERNAME_REQUIRED:"É necessário um nome de usuário.",GmErr_USER_EMAIL_NOT_VERIFIED:"O endereço de e-mail do usuário não foi verificado.",GmErr_EMAIL_ALREADY_EXISTS:"Um usuário com o mesmo e-mail já existe.",GmErr_EMAIL_REQUIRED:"É necessário um endereço de e-mail.",GmErr_USERNAME_ALREADY_EXISTS:"O nome de usuário já está em uso.",GmErr_DUPLICATE_PERSONAL_ID:"ID pessoal duplicado encontrado.",GmErr_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_INVALID_CODE:"O código fornecido é inválido.",GmErr_EXPIRED_TOKEN:"O token expirou.",GmErr_ATTEMPTS_EXCEEDED:"O número máximo de tentativas foi excedido.",GmErr_BLOCK_USER_INCORRECT_CODE:"O usuário foi bloqueado devido a um código incorreto.",GmErr_TOKEN_NOT_FOUND:"O token não foi encontrado.",GmErr_INVALID_PHONE_NUMBER:"O número de telefone fornecido é inválido.",GmErr_CODE_MISSING:"O código está ausente.",GmErr_UNREGISTERED_USER:"O usuário não está registrado.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"O número máximo de tentativas para gerar um código foi excedido.",GmErr_UNEXPECTED_EXCEPTION:"Ocorreu uma exceção inesperada.",GmErr_INVALID_USER_ID:"O ID de usuário fornecido é inválido.",GmErr_NOT_ALLOWED_EXCEPTION:"Essa ação não é permitida.",GmErr_CAN_NOT_FIND_ROLE:"Não foi possível encontrar a função especificada.",GmErr_NO_SESSION_PROVIDED:"Nenhuma sessão foi fornecida.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Nenhuma sessão ativa encontrada para este usuário.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"O usuário já foi anonimizado.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Nenhuma função foi configurada para ser atribuída.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"A sessão fornecida não pertence ao usuário.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"A sessão fornecida não existe.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"A função já foi atribuída ao usuário.",GmErr_ASSIGN_USER_ROLE_FAILED:"Falha ao atribuir uma função ao usuário.",GmErr_BadRequest_1000:"Houve um problema com o número de identificação pessoal.",CountryRestricted:"Infelizmente, você está tentando se registrar de um país onde não podemos aceitar jogos. Não podemos processar seu registro por este motivo.",nextButton:"Próximo",backButton:"Voltar",doneButton:"Concluído",generalError:"Algo deu errado... Por favor, tente novamente.",successMessage:"Registro bem-sucedido"},de:{GmErr_AMOUNT_INVALID:"Der angegebene Betrag ist ungültig.",GmErr_REGISTER_OVERAGE:"Die Registrierung hat das zulässige Limit überschritten.",GmErr_REGISTER_UNDERAGE:"Die Registrierung liegt unterhalb des zulässigen Limits.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Die Benutzeranmeldung ist aufgrund zu vieler fehlgeschlagener Versuche fehlgeschlagen.",GmErr_USER_ACCOUNT_BLOCKED:"Das Benutzerkonto ist gesperrt.",GmErr_USER_NOT_VERIFIED:"Der Benutzer wurde nicht verifiziert.",GmErr_USER_NOT_FOUND:"Kein Benutzer mit den angegebenen Informationen gefunden.",GmErr_USER_ID_INVALID:"Die angegebene Benutzer-ID ist ungültig.",GmErr_USER_AUTH_FAILED:"Die Benutzeranmeldung ist fehlgeschlagen.",GmErr_USER_DUPLICATED:"Der Benutzer ist bereits im System vorhanden.",GmErr_USER_NOT_ACTIVATED:"Das Benutzerkonto wurde nicht aktiviert.",GmErr_PASSWORD_CONTAINS_EMAIL:"Das Passwort darf keine E-Mail-Adresse enthalten.",GmErr_PASSWORD_CONTAINS_USERNAME:"Das Passwort darf keinen Benutzernamen enthalten.",GmErr_PASSWORD_CONTAINS_SPACES:"Das Passwort darf keine Leerzeichen enthalten.",GmErr_USER_4TS_CHECK_EXISTS:"Die 4TS-Überprüfung des Benutzers existiert bereits.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Der Benutzer ist von der Registrierung ausgeschlossen.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Der Benutzer ist vom Login ausgeschlossen.",GmErr_USERNAME_REQUIRED:"Ein Benutzername ist erforderlich.",GmErr_USER_EMAIL_NOT_VERIFIED:"Die E-Mail-Adresse des Benutzers wurde nicht verifiziert.",GmErr_EMAIL_ALREADY_EXISTS:"Ein Benutzer mit derselben E-Mail-Adresse existiert bereits.",GmErr_EMAIL_REQUIRED:"Eine E-Mail-Adresse ist erforderlich.",GmErr_USERNAME_ALREADY_EXISTS:"Der Benutzername ist bereits vergeben.",GmErr_DUPLICATE_PERSONAL_ID:"Doppelte persönliche ID gefunden.",GmErr_INVALID_USER_DOCUMENT:"Das Benutzerdokument ist ungültig.",GmErr_INVALID_CODE:"Der angegebene Code ist ungültig.",GmErr_EXPIRED_TOKEN:"Das Token ist abgelaufen.",GmErr_ATTEMPTS_EXCEEDED:"Die maximale Anzahl an Versuchen wurde überschritten.",GmErr_BLOCK_USER_INCORRECT_CODE:"Der Benutzer wurde aufgrund eines falschen Codes gesperrt.",GmErr_TOKEN_NOT_FOUND:"Das Token wurde nicht gefunden.",GmErr_INVALID_PHONE_NUMBER:"Die angegebene Telefonnummer ist ungültig.",GmErr_CODE_MISSING:"Der Code fehlt.",GmErr_UNREGISTERED_USER:"Der Benutzer ist nicht registriert.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Die maximale Anzahl an Versuchen, einen Code zu generieren, wurde überschritten.",GmErr_UNEXPECTED_EXCEPTION:"Es ist ein unerwarteter Fehler aufgetreten.",GmErr_INVALID_USER_ID:"Die angegebene Benutzer-ID ist ungültig.",GmErr_NOT_ALLOWED_EXCEPTION:"Diese Aktion ist nicht erlaubt.",GmErr_CAN_NOT_FIND_ROLE:"Die angegebene Rolle konnte nicht gefunden werden.",GmErr_NO_SESSION_PROVIDED:"Es wurde keine Sitzung bereitgestellt.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Es wurde keine aktive Sitzung für diesen Benutzer gefunden.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Der Benutzer wurde bereits anonymisiert.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Es wurde keine Rolle zur Zuweisung eingerichtet.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Die bereitgestellte Sitzung gehört nicht dem Benutzer.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Die bereitgestellte Sitzung existiert nicht.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Die Rolle wurde dem Benutzer bereits zugewiesen.",GmErr_ASSIGN_USER_ROLE_FAILED:"Die Zuweisung einer Rolle an den Benutzer ist fehlgeschlagen.",GmErr_BadRequest_1000:"Es gab ein Problem mit der persönlichen Identifikationsnummer.",CountryRestricted:"Leider versuchen Sie, sich aus einem Land zu registrieren, in dem wir kein Spiel zulassen können. Aus diesem Grund können wir Ihre Registrierung nicht verarbeiten.",nextButton:"Weiter",backButton:"Zurück",doneButton:"Fertig",generalError:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",successMessage:"Registrierung erfolgreich"}},yd=(t,e,i)=>{let r=_d[_d[e]?e:"en"][t];if(void 0!==i)for(const[t,e]of Object.entries(i.values)){const i=new RegExp(`{${t}}`,"g");r=r.replace(i,e)}return r};function Ed(){}function wd(t){return t()}function xd(){return Object.create(null)}function kd(t){t.forEach(wd)}function Ad(t){return"function"==typeof t}function Sd(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function Cd(t,...e){if(null==t){for(const t of e)t(void 0);return Ed}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Td(t,e,i){t.$$.on_destroy.push(Cd(e,i))}function Nd(t){return t??""}function Id(t,e){t.appendChild(e)}function Dd(t,e,i){const r=function(t){if(!t)return document;const e=t.getRootNode?t.getRootNode():t.ownerDocument;return e&&e.host?e:t.ownerDocument}(t);if(!r.getElementById(e)){const t=Md("style");t.id=e,t.textContent=i,function(t,e){Id(t.head||t,e)}(r,t)}}function Od(t,e,i){t.insertBefore(e,i||null)}function zd(t){t.parentNode&&t.parentNode.removeChild(t)}function Rd(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function Md(t){return document.createElement(t)}function Gd(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Ud(t){return document.createTextNode(t)}function Bd(){return Ud(" ")}function Ld(){return Ud("")}function Pd(t,e,i,r){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)}function jd(t,e,i){null==i?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function Hd(t,e,i){const r=e.toLowerCase();r in t?t[r]="boolean"==typeof t[r]&&""===i||i:e in t?t[e]="boolean"==typeof t[e]&&""===i||i:jd(t,e,i)}function Fd(t,e){t.data!==(e=""+e)&&(t.data=e)}class qd{is_svg=!1;e=void 0;n=void 0;t=void 0;a=void 0;constructor(t=!1){this.is_svg=t,this.e=this.n=null}c(t){this.h(t)}m(t,e,i=null){this.e||(this.e=this.is_svg?Gd(e.nodeName):Md(11===e.nodeType?"TEMPLATE":e.nodeName),this.t="TEMPLATE"!==e.tagName?e:e.content,this.c(t)),this.i(i)}h(t){this.e.innerHTML=t,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(t){for(let e=0;e<this.n.length;e+=1)Od(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(zd)}}let Vd;function Wd(t){Vd=t}function Yd(t){(function(){if(!Vd)throw new Error("Function called outside component initialization");return Vd})().$$.on_mount.push(t)}const Kd=[],Xd=[];let $d=[];const Zd=[],Jd=Promise.resolve();let Qd=!1;function tm(t){$d.push(t)}const em=new Set;let im=0;function rm(){if(0!==im)return;const t=Vd;do{try{for(;im<Kd.length;){const t=Kd[im];im++,Wd(t),om(t.$$)}}catch(t){throw Kd.length=0,im=0,t}for(Wd(null),Kd.length=0,im=0;Xd.length;)Xd.pop()();for(let t=0;t<$d.length;t+=1){const e=$d[t];em.has(e)||(em.add(e),e())}$d.length=0}while(Kd.length);for(;Zd.length;)Zd.pop()();Qd=!1,em.clear(),Wd(t)}function om(t){if(null!==t.fragment){t.update(),kd(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(tm)}}const sm=new Set;function nm(t){return void 0!==t?.length?t:Array.from(t)}function am(t,e,i,r,o,s,n=null,a=[-1]){const l=Vd;Wd(t);const h=t.$$={fragment:null,ctx:[],props:s,update:Ed,not_equal:o,bound:xd(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:xd(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};n&&n(h.root);let c=!1;if(h.ctx=i?i(t,e.props||{},((e,i,...r)=>{const s=r.length?r[0]:i;return h.ctx&&o(h.ctx[e],h.ctx[e]=s)&&(!h.skip_bound&&h.bound[e]&&h.bound[e](s),c&&function(t,e){-1===t.$$.dirty[0]&&(Kd.push(t),Qd||(Qd=!0,Jd.then(rm)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),i})):[],h.update(),c=!0,kd(h.before_update),h.fragment=!!r&&r(h.ctx),e.target){if(e.hydrate){const t=function(t){return Array.from(t.childNodes)}(e.target);h.fragment&&h.fragment.l(t),t.forEach(zd)}else h.fragment&&h.fragment.c();e.intro&&function(t){t&&t.i&&(sm.delete(t),t.i(void 0))}(t.$$.fragment),function(t,e,i){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,i),tm((()=>{const e=t.$$.on_mount.map(wd).filter(Ad);t.$$.on_destroy?t.$$.on_destroy.push(...e):kd(e),t.$$.on_mount=[]})),o.forEach(tm)}(t,e.target,e.anchor),rm()}Wd(l)}let lm;function hm(t,e,i,r){const o=i[t]?.type;if(e="Boolean"===o&&"boolean"!=typeof e?null!=e:e,!r||!i[t])return e;if("toAttribute"===r)switch(o){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return e??null;default:return e}else switch(o){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}function cm(t,e,i,r,o){let s=class extends lm{constructor(){super(t,i,o),this.$$p_d=e}static get observedAttributes(){return Object.keys(e).map((t=>(e[t].attribute||t).toLowerCase()))}};return Object.keys(e).forEach((t=>{Object.defineProperty(s.prototype,t,{get(){return this.$$c&&t in this.$$c?this.$$c[t]:this.$$d[t]},set(i){i=hm(t,i,e),this.$$d[t]=i,this.$$c?.$set({[t]:i})}})})),r.forEach((t=>{Object.defineProperty(s.prototype,t,{get(){return this.$$c?.[t]}})})),t.element=s,s}"function"==typeof HTMLElement&&(lm=class extends HTMLElement{$$ctor;$$s;$$c;$$cn=!1;$$d={};$$r=!1;$$p_d={};$$l={};$$l_u=new Map;constructor(t,e,i){super(),this.$$ctor=t,this.$$s=e,i&&this.attachShadow({mode:"open"})}addEventListener(t,e,i){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(e),this.$$c){const i=this.$$c.$on(t,e);this.$$l_u.set(e,i)}super.addEventListener(t,e,i)}removeEventListener(t,e,i){if(super.removeEventListener(t,e,i),this.$$c){const t=this.$$l_u.get(e);t&&(t(),this.$$l_u.delete(e))}}async connectedCallback(){if(this.$$cn=!0,!this.$$c){let t=function(t){return()=>{let e;return{c:function(){e=Md("slot"),"default"!==t&&jd(e,"name",t)},m:function(t,i){Od(t,e,i)},d:function(t){t&&zd(e)}}}};if(await Promise.resolve(),!this.$$cn||this.$$c)return;const e={},i=function(t){const e={};return t.childNodes.forEach((t=>{e[t.slot||"default"]=!0})),e}(this);for(const r of this.$$s)r in i&&(e[r]=[t(r)]);for(const t of this.attributes){const e=this.$$g_p(t.name);e in this.$$d||(this.$$d[e]=hm(e,t.value,this.$$p_d,"toProp"))}for(const t in this.$$p_d)!(t in this.$$d)&&void 0!==this[t]&&(this.$$d[t]=this[t],delete this[t]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:{...this.$$d,$$slots:e,$$scope:{ctx:[]}}});const r=()=>{this.$$r=!0;for(const t in this.$$p_d)if(this.$$d[t]=this.$$c.$$.ctx[this.$$c.$$.props[t]],this.$$p_d[t].reflect){const e=hm(t,this.$$d[t],this.$$p_d,"toAttribute");null==e?this.removeAttribute(this.$$p_d[t].attribute||t):this.setAttribute(this.$$p_d[t].attribute||t,e)}this.$$r=!1};this.$$c.$$.after_update.push(r),r();for(const t in this.$$l)for(const e of this.$$l[t]){const i=this.$$c.$on(t,e);this.$$l_u.set(e,i)}this.$$l={}}}attributeChangedCallback(t,e,i){this.$$r||(t=this.$$g_p(t),this.$$d[t]=hm(t,i,this.$$p_d,"toProp"),this.$$c?.$set({[t]:this.$$d[t]}))}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then((()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0)}))}$$g_p(t){return Object.keys(this.$$p_d).find((e=>this.$$p_d[e].attribute===t||!this.$$p_d[e].attribute&&e.toLowerCase()===t))||t}});class um{$$=void 0;$$set=void 0;$destroy(){(function(t,e){const i=t.$$;null!==i.fragment&&(function(t){const e=[],i=[];$d.forEach((r=>-1===t.indexOf(r)?e.push(r):i.push(r))),i.forEach((t=>t())),$d=e}(i.after_update),kd(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])})(this,1),this.$destroy=Ed}$on(t,e){if(!Ad(e))return Ed;const i=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return i.push(e),()=>{const t=i.indexOf(e);-1!==t&&i.splice(t,1)}}$set(t){this.$$set&&!function(t){return 0===Object.keys(t).length}(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}function dm(t){Dd(t,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}")}function mm(t){let e;return{c(){e=Md("div"),e.innerHTML='<section class="LoaderContainer" part="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(i,r){Od(i,e,r),t[3](e)},p:Ed,i:Ed,o:Ed,d(i){i&&zd(e),t[3](null)}}}function pm(t,e,i){let r,{clientstyling:o=""}=e,{clientstylingurl:s=""}=e;return t.$$set=t=>{"clientstyling"in t&&i(1,o=t.clientstyling),"clientstylingurl"in t&&i(2,s=t.clientstylingurl)},t.$$.update=()=>{3&t.$$.dirty&&o&&r&&(()=>{let t=document.createElement("style");t.innerHTML=o,r.appendChild(t)})(),5&t.$$.dirty&&s&&r&&(()=>{let t=new URL(s),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{r.appendChild(e)}),1),setTimeout((()=>{}),500)}))})()},[r,o,s,function(t){Xd[t?"unshift":"push"]((()=>{r=t,i(0,r)}))}]}typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");class fm extends um{constructor(t){super(),am(this,t,pm,mm,Sd,{clientstyling:1,clientstylingurl:2},dm)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),rm()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),rm()}}cm(fm,{clientstyling:{},clientstylingurl:{}},[],[],!0);const vm=Object.freeze(Object.defineProperty({__proto__:null,default:fm},Symbol.toStringTag,{value:"Module"})),gm=Object.freeze({__proto__:null,A:Hd,G:vm,H:qd,S:um,a:Sd,b:am,c:cm,d:Gd,e:jd,f:Od,g:Id,h:zd,i:Ad,j:rm,k:Dd,l:Md,m:Nd,n:Ed,o:Td,p:Yd,q:Xd,r:kd,s:Cd,t:nm,u:Rd,v:Bd,w:Ld,x:Pd,y:Ud,z:Fd}),bm=[];function _m(t,e=Ed){let i;const r=new Set;function o(e){if(Sd(t,e)&&(t=e,i)){const e=!bm.length;for(const e of r)e[1](),bm.push(e,t);if(e){for(let t=0;t<bm.length;t+=2)bm[t][0](bm[t+1]);bm.length=0}}}function s(e){o(e(t))}return{set:o,update:s,subscribe:function(n,a=Ed){const l=[n,a];return r.add(l),1===r.size&&(i=e(o,s)||Ed),n(t),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}function ym(t,e,i){const r=!Array.isArray(t),o=r?[t]:t;if(!o.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const s=e.length<2;return function(t,e){return{subscribe:_m(t,e).subscribe}}(i,((t,i)=>{let n=!1;const a=[];let l=0,h=Ed;const c=()=>{if(l)return;h();const o=e(r?a[0]:a,t,i);s?t(o):h=Ad(o)?o:Ed},u=o.map(((t,e)=>Cd(t,(t=>{a[e]=t,l&=~(1<<e),n&&c()}),(()=>{l|=1<<e}))));return n=!0,c(),function(){kd(u),h(),n=!1}}))}function Em(t){return t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var wm=function(t){return function(t){return!!t&&"object"==typeof t}(t)&&!function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===xm}(t)}(t)},xm="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function km(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Tm(function(t){return Array.isArray(t)?[]:{}}(t),t,e):t}function Am(t,e,i){return t.concat(e).map((function(t){return km(t,i)}))}function Sm(t){return Object.keys(t).concat(function(t){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(t).filter((function(e){return Object.propertyIsEnumerable.call(t,e)})):[]}(t))}function Cm(t,e){try{return e in t}catch{return!1}}function Tm(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||Am,i.isMergeableObject=i.isMergeableObject||wm,i.cloneUnlessOtherwiseSpecified=km;var r=Array.isArray(e);return r===Array.isArray(t)?r?i.arrayMerge(t,e,i):function(t,e,i){var r={};return i.isMergeableObject(t)&&Sm(t).forEach((function(e){r[e]=km(t[e],i)})),Sm(e).forEach((function(o){(function(t,e){return Cm(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(r[o]=Cm(t,o)&&i.isMergeableObject(e[o])?function(t,e){if(!e.customMerge)return Tm;var i=e.customMerge(t);return"function"==typeof i?i:Tm}(o,i)(t[o],e[o],i):km(e[o],i))})),r}(t,e,i):km(e,i)}Tm.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,i){return Tm(t,i,e)}),{})};const Nm=Em(Tm);var Im=function(t,e){return Im=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(t,e){t.__proto__=e}||function(t,e){for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&(t[i]=e[i])},Im(t,e)};function Dm(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Class extends value "+String(e)+" is not a constructor or null");function i(){this.constructor=t}Im(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Om=function(){return Om=Object.assign||function(t){for(var e,i=1,r=arguments.length;i<r;i++)for(var o in e=arguments[i])Object.prototype.hasOwnProperty.call(e,o)&&(t[o]=e[o]);return t},Om.apply(this,arguments)};function zm(t,e,i){if(i||2===arguments.length)for(var r,o=0,s=e.length;o<s;o++)(r||!(o in e))&&(r||(r=Array.prototype.slice.call(e,0,o)),r[o]=e[o]);return t.concat(r||Array.prototype.slice.call(e))}function Rm(t,e){return(e&&e.strategy?e.strategy:Bm)(t,{cache:e&&e.cache?e.cache:qm,serializer:e&&e.serializer?e.serializer:Hm})}function Mm(t,e,i,r){var o=function(t){return null==t||"number"==typeof t||"boolean"==typeof t}(r)?r:i(r),s=e.get(o);return typeof s>"u"&&(s=t.call(this,r),e.set(o,s)),s}function Gm(t,e,i){var r=Array.prototype.slice.call(arguments,3),o=i(r),s=e.get(o);return typeof s>"u"&&(s=t.apply(this,r),e.set(o,s)),s}function Um(t,e,i,r,o){return i.bind(e,t,r,o)}function Bm(t,e){return Um(t,this,1===t.length?Mm:Gm,e.cache.create(),e.serializer)}var Lm,Pm,jm,Hm=function(){return JSON.stringify(arguments)},Fm=function(){function t(){this.cache=Object.create(null)}return t.prototype.get=function(t){return this.cache[t]},t.prototype.set=function(t,e){this.cache[t]=e},t}(),qm={create:function(){return new Fm}},Vm={variadic:function(t,e){return Um(t,this,Gm,e.cache.create(),e.serializer)},monadic:function(t,e){return Um(t,this,Mm,e.cache.create(),e.serializer)}};function Wm(t){return t.type===Pm.literal}function Ym(t){return t.type===Pm.argument}function Km(t){return t.type===Pm.number}function Xm(t){return t.type===Pm.date}function $m(t){return t.type===Pm.time}function Zm(t){return t.type===Pm.select}function Jm(t){return t.type===Pm.plural}function Qm(t){return t.type===Pm.pound}function tp(t){return t.type===Pm.tag}function ep(t){return!(!t||"object"!=typeof t||t.type!==jm.number)}function ip(t){return!(!t||"object"!=typeof t||t.type!==jm.dateTime)}!function(t){t[t.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",t[t.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",t[t.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",t[t.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",t[t.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",t[t.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",t[t.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",t[t.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",t[t.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",t[t.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",t[t.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",t[t.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",t[t.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",t[t.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",t[t.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",t[t.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",t[t.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",t[t.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",t[t.INVALID_TAG=23]="INVALID_TAG",t[t.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",t[t.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",t[t.UNCLOSED_TAG=27]="UNCLOSED_TAG"}(Lm||(Lm={})),function(t){t[t.literal=0]="literal",t[t.argument=1]="argument",t[t.number=2]="number",t[t.date=3]="date",t[t.time=4]="time",t[t.select=5]="select",t[t.plural=6]="plural",t[t.pound=7]="pound",t[t.tag=8]="tag"}(Pm||(Pm={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(jm||(jm={}));var rp=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,op=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function sp(t){var e={};return t.replace(op,(function(t){var i=t.length;switch(t[0]){case"G":e.era=4===i?"long":5===i?"narrow":"short";break;case"y":e.year=2===i?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":e.month=["numeric","2-digit","short","long","narrow"][i-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":e.day=["numeric","2-digit"][i-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":e.weekday=4===i?"long":5===i?"narrow":"short";break;case"e":if(i<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"c":if(i<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");e.weekday=["short","long","narrow","short"][i-4];break;case"a":e.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":e.hourCycle="h12",e.hour=["numeric","2-digit"][i-1];break;case"H":e.hourCycle="h23",e.hour=["numeric","2-digit"][i-1];break;case"K":e.hourCycle="h11",e.hour=["numeric","2-digit"][i-1];break;case"k":e.hourCycle="h24",e.hour=["numeric","2-digit"][i-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":e.minute=["numeric","2-digit"][i-1];break;case"s":e.second=["numeric","2-digit"][i-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":e.timeZoneName=i<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return""})),e}var np=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function ap(t){return t.replace(/^(.*?)-/,"")}var lp=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,hp=/^(@+)?(\+|#+)?[rs]?$/g,cp=/(\*)(0+)|(#+)(0+)|(0+)/g,up=/^(0+)$/;function dp(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(hp,(function(t,i,r){return"string"!=typeof r?(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length):"+"===r?e.minimumSignificantDigits=i.length:"#"===i[0]?e.maximumSignificantDigits=i.length:(e.minimumSignificantDigits=i.length,e.maximumSignificantDigits=i.length+("string"==typeof r?r.length:0)),""})),e}function mp(t){switch(t){case"sign-auto":return{signDisplay:"auto"};case"sign-accounting":case"()":return{currencySign:"accounting"};case"sign-always":case"+!":return{signDisplay:"always"};case"sign-accounting-always":case"()!":return{signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return{signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return{signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return{signDisplay:"never"}}}function pp(t){var e;if("E"===t[0]&&"E"===t[1]?(e={notation:"engineering"},t=t.slice(2)):"E"===t[0]&&(e={notation:"scientific"},t=t.slice(1)),e){var i=t.slice(0,2);if("+!"===i?(e.signDisplay="always",t=t.slice(2)):"+?"===i&&(e.signDisplay="exceptZero",t=t.slice(2)),!up.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function fp(t){return mp(t)||{}}function vp(t){for(var e={},i=0,r=t;i<r.length;i++){var o=r[i];switch(o.stem){case"percent":case"%":e.style="percent";continue;case"%x100":e.style="percent",e.scale=100;continue;case"currency":e.style="currency",e.currency=o.options[0];continue;case"group-off":case",_":e.useGrouping=!1;continue;case"precision-integer":case".":e.maximumFractionDigits=0;continue;case"measure-unit":case"unit":e.style="unit",e.unit=ap(o.options[0]);continue;case"compact-short":case"K":e.notation="compact",e.compactDisplay="short";continue;case"compact-long":case"KK":e.notation="compact",e.compactDisplay="long";continue;case"scientific":e=Om(Om(Om({},e),{notation:"scientific"}),o.options.reduce((function(t,e){return Om(Om({},t),fp(e))}),{}));continue;case"engineering":e=Om(Om(Om({},e),{notation:"engineering"}),o.options.reduce((function(t,e){return Om(Om({},t),fp(e))}),{}));continue;case"notation-simple":e.notation="standard";continue;case"unit-width-narrow":e.currencyDisplay="narrowSymbol",e.unitDisplay="narrow";continue;case"unit-width-short":e.currencyDisplay="code",e.unitDisplay="short";continue;case"unit-width-full-name":e.currencyDisplay="name",e.unitDisplay="long";continue;case"unit-width-iso-code":e.currencyDisplay="symbol";continue;case"scale":e.scale=parseFloat(o.options[0]);continue;case"rounding-mode-floor":e.roundingMode="floor";continue;case"rounding-mode-ceiling":e.roundingMode="ceil";continue;case"rounding-mode-down":e.roundingMode="trunc";continue;case"rounding-mode-up":e.roundingMode="expand";continue;case"rounding-mode-half-even":e.roundingMode="halfEven";continue;case"rounding-mode-half-down":e.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":e.roundingMode="halfExpand";continue;case"integer-width":if(o.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");o.options[0].replace(cp,(function(t,i,r,o,s,n){if(i)e.minimumIntegerDigits=r.length;else{if(o&&s)throw new Error("We currently do not support maximum integer digits");if(n)throw new Error("We currently do not support exact integer digits")}return""}));continue}if(up.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(lp.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(lp,(function(t,i,r,o,s,n){return"*"===r?e.minimumFractionDigits=i.length:o&&"#"===o[0]?e.maximumFractionDigits=o.length:s&&n?(e.minimumFractionDigits=s.length,e.maximumFractionDigits=s.length+n.length):(e.minimumFractionDigits=i.length,e.maximumFractionDigits=i.length),""}));var s=o.options[0];"w"===s?e=Om(Om({},e),{trailingZeroDisplay:"stripIfInteger"}):s&&(e=Om(Om({},e),dp(s)))}else if(hp.test(o.stem))e=Om(Om({},e),dp(o.stem));else{var n=mp(o.stem);n&&(e=Om(Om({},e),n));var a=pp(o.stem);a&&(e=Om(Om({},e),a))}}return e}var gp={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function bp(t){var e=t.hourCycle;if(void 0===e&&t.hourCycles&&t.hourCycles.length&&(e=t.hourCycles[0]),e)switch(e){case"h24":return"k";case"h23":return"H";case"h12":return"h";case"h11":return"K";default:throw new Error("Invalid hourCycle")}var i,r=t.language;return"root"!==r&&(i=t.maximize().region),(gp[i||""]||gp[r||""]||gp["".concat(r,"-001")]||gp["001"])[0]}var _p,yp=new RegExp("^".concat(rp.source,"*")),Ep=new RegExp("".concat(rp.source,"*$"));function wp(t,e){return{start:t,end:e}}var xp=!!String.prototype.startsWith&&"_a".startsWith("a",1),kp=!!String.fromCodePoint,Ap=!!Object.fromEntries,Sp=!!String.prototype.codePointAt,Cp=!!String.prototype.trimStart,Tp=!!String.prototype.trimEnd,Np=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Ip=!0;try{Ip="a"===(null===(_p=Bp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===_p?void 0:_p[0])}catch{Ip=!1}var Dp,Op=xp?function(t,e,i){return t.startsWith(e,i)}:function(t,e,i){return t.slice(i,i+e.length)===e},zp=kp?String.fromCodePoint:function(){for(var t=[],e=0;e<arguments.length;e++)t[e]=arguments[e];for(var i,r="",o=t.length,s=0;o>s;){if((i=t[s++])>1114111)throw RangeError(i+" is not a valid code point");r+=i<65536?String.fromCharCode(i):String.fromCharCode(55296+((i-=65536)>>10),i%1024+56320)}return r},Rp=Ap?Object.fromEntries:function(t){for(var e={},i=0,r=t;i<r.length;i++){var o=r[i];e[o[0]]=o[1]}return e},Mp=Sp?function(t,e){return t.codePointAt(e)}:function(t,e){var i=t.length;if(!(e<0||e>=i)){var r,o=t.charCodeAt(e);return o<55296||o>56319||e+1===i||(r=t.charCodeAt(e+1))<56320||r>57343?o:r-56320+(o-55296<<10)+65536}},Gp=Cp?function(t){return t.trimStart()}:function(t){return t.replace(yp,"")},Up=Tp?function(t){return t.trimEnd()}:function(t){return t.replace(Ep,"")};function Bp(t,e){return new RegExp(t,e)}if(Ip){var Lp=Bp("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Dp=function(t,e){var i;return Lp.lastIndex=e,null!==(i=Lp.exec(t)[1])&&void 0!==i?i:""}}else Dp=function(t,e){for(var i=[];;){var r=Mp(t,e);if(void 0===r||qp(r)||Vp(r))break;i.push(r),e+=r>=65536?2:1}return zp.apply(void 0,i)};var Pp,jp=function(){function t(t,e){void 0===e&&(e={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!e.ignoreTag,this.locale=e.locale,this.requiresOtherClause=!!e.requiresOtherClause,this.shouldParseSkeletons=!!e.shouldParseSkeletons}return t.prototype.parse=function(){if(0!==this.offset())throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},t.prototype.parseMessage=function(t,e,i){for(var r=[];!this.isEOF();){var o=this.char();if(123===o){if((s=this.parseArgument(t,i)).err)return s;r.push(s.val)}else{if(125===o&&t>0)break;if(35!==o||"plural"!==e&&"selectordinal"!==e){if(60===o&&!this.ignoreTag&&47===this.peek()){if(i)break;return this.error(Lm.UNMATCHED_CLOSING_TAG,wp(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Hp(this.peek()||0)){if((s=this.parseTag(t,e)).err)return s;r.push(s.val)}else{var s;if((s=this.parseLiteral(t,e)).err)return s;r.push(s.val)}}else{var n=this.clonePosition();this.bump(),r.push({type:Pm.pound,location:wp(n,this.clonePosition())})}}}return{val:r,err:null}},t.prototype.parseTag=function(t,e){var i=this.clonePosition();this.bump();var r=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return{val:{type:Pm.literal,value:"<".concat(r,"/>"),location:wp(i,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,e,!0);if(o.err)return o;var s=o.val,n=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Hp(this.char()))return this.error(Lm.INVALID_TAG,wp(n,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(Lm.UNMATCHED_CLOSING_TAG,wp(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Pm.tag,value:r,children:s,location:wp(i,this.clonePosition())},err:null}:this.error(Lm.INVALID_TAG,wp(n,this.clonePosition())))}return this.error(Lm.UNCLOSED_TAG,wp(i,this.clonePosition()))}return this.error(Lm.INVALID_TAG,wp(i,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Fp(this.char());)this.bump();return this.message.slice(t,this.offset())},t.prototype.parseLiteral=function(t,e){for(var i=this.clonePosition(),r="";;){var o=this.tryParseQuote(e);if(o)r+=o;else{var s=this.tryParseUnquoted(t,e);if(s)r+=s;else{var n=this.tryParseLeftAngleBracket();if(!n)break;r+=n}}}var a=wp(i,this.clonePosition());return{val:{type:Pm.literal,value:r,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&function(t){return Hp(t)||47===t}(this.peek()||0)?null:(this.bump(),"<")},t.prototype.tryParseQuote=function(t){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if("plural"===t||"selectordinal"===t)break;return null;default:return null}this.bump();var e=[this.char()];for(this.bump();!this.isEOF();){var i=this.char();if(39===i){if(39!==this.peek()){this.bump();break}e.push(39),this.bump()}else e.push(i);this.bump()}return zp.apply(void 0,e)},t.prototype.tryParseUnquoted=function(t,e){if(this.isEOF())return null;var i=this.char();return 60===i||123===i||35===i&&("plural"===e||"selectordinal"===e)||125===i&&t>0?null:(this.bump(),zp(i))},t.prototype.parseArgument=function(t,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Lm.EXPECT_ARGUMENT_CLOSING_BRACE,wp(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Lm.EMPTY_ARGUMENT,wp(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Lm.MALFORMED_ARGUMENT,wp(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Lm.EXPECT_ARGUMENT_CLOSING_BRACE,wp(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Pm.argument,value:r,location:wp(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Lm.EXPECT_ARGUMENT_CLOSING_BRACE,wp(i,this.clonePosition())):this.parseArgumentOptions(t,e,r,i);default:return this.error(Lm.MALFORMED_ARGUMENT,wp(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),i=Dp(this.message,e);return this.bumpTo(e+i.length),{value:i,location:wp(t,this.clonePosition())}},t.prototype.parseArgumentOptions=function(t,e,i,r){var o,s=this.clonePosition(),n=this.parseIdentifierIfPossible().value,a=this.clonePosition();switch(n){case"":return this.error(Lm.EXPECT_ARGUMENT_TYPE,wp(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((g=this.parseSimpleArgStyleIfPossible()).err)return g;if(0===(m=Up(g.val)).length)return this.error(Lm.EXPECT_ARGUMENT_STYLE,wp(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:wp(h,this.clonePosition())}}if((b=this.tryParseArgumentClose(r)).err)return b;var c=wp(r,this.clonePosition());if(l&&Op(l?.style,"::",0)){var u=Gp(l.style.slice(2));if("number"===n)return(g=this.parseNumberSkeletonFromString(u,l.styleLocation)).err?g:{val:{type:Pm.number,value:i,location:c,style:g.val},err:null};if(0===u.length)return this.error(Lm.EXPECT_DATE_TIME_SKELETON,c);var d=u;this.locale&&(d=function(t,e){for(var i="",r=0;r<t.length;r++){var o=t.charAt(r);if("j"===o){for(var s=0;r+1<t.length&&t.charAt(r+1)===o;)s++,r++;var n=1+(1&s),a=s<2?1:3+(s>>1),l=bp(e);for(("H"==l||"k"==l)&&(a=0);a-- >0;)i+="a";for(;n-- >0;)i=l+i}else i+="J"===o?"H":o}return i}(u,this.locale));var m={type:jm.dateTime,pattern:d,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?sp(d):{}};return{val:{type:"date"===n?Pm.date:Pm.time,value:i,location:c,style:m},err:null}}return{val:{type:"number"===n?Pm.number:"date"===n?Pm.date:Pm.time,value:i,location:c,style:null!==(o=l?.style)&&void 0!==o?o:null},err:null};case"plural":case"selectordinal":case"select":var p=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(Lm.EXPECT_SELECT_ARGUMENT_OPTIONS,wp(p,Om({},p)));this.bumpSpace();var f=this.parseIdentifierIfPossible(),v=0;if("select"!==n&&"offset"===f.value){if(!this.bumpIf(":"))return this.error(Lm.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,wp(this.clonePosition(),this.clonePosition()));var g;if(this.bumpSpace(),(g=this.tryParseDecimalInteger(Lm.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Lm.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return g;this.bumpSpace(),f=this.parseIdentifierIfPossible(),v=g.val}var b,_=this.tryParsePluralOrSelectOptions(t,n,e,f);if(_.err)return _;if((b=this.tryParseArgumentClose(r)).err)return b;var y=wp(r,this.clonePosition());return"select"===n?{val:{type:Pm.select,value:i,options:Rp(_.val),location:y},err:null}:{val:{type:Pm.plural,value:i,options:Rp(_.val),offset:v,pluralType:"plural"===n?"cardinal":"ordinal",location:y},err:null};default:return this.error(Lm.INVALID_ARGUMENT_TYPE,wp(s,a))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(Lm.EXPECT_ARGUMENT_CLOSING_BRACE,wp(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},t.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,e=this.clonePosition();!this.isEOF();)switch(this.char()){case 39:this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(Lm.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,wp(i,this.clonePosition()));this.bump();break;case 123:t+=1,this.bump();break;case 125:if(!(t>0))return{val:this.message.slice(e.offset,this.offset()),err:null};t-=1;break;default:this.bump()}return{val:this.message.slice(e.offset,this.offset()),err:null}},t.prototype.parseNumberSkeletonFromString=function(t,e){var i=[];try{i=function(t){if(0===t.length)throw new Error("Number skeleton cannot be empty");for(var e=t.split(np).filter((function(t){return t.length>0})),i=[],r=0,o=e;r<o.length;r++){var s=o[r].split("/");if(0===s.length)throw new Error("Invalid number skeleton");for(var n=s[0],a=s.slice(1),l=0,h=a;l<h.length;l++)if(0===h[l].length)throw new Error("Invalid number skeleton");i.push({stem:n,options:a})}return i}(t)}catch{return this.error(Lm.INVALID_NUMBER_SKELETON,e)}return{val:{type:jm.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?vp(i):{}},err:null}},t.prototype.tryParsePluralOrSelectOptions=function(t,e,i,r){for(var o,s=!1,n=[],a=new Set,l=r.value,h=r.location;;){if(0===l.length){var c=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var u=this.tryParseDecimalInteger(Lm.EXPECT_PLURAL_ARGUMENT_SELECTOR,Lm.INVALID_PLURAL_ARGUMENT_SELECTOR);if(u.err)return u;h=wp(c,this.clonePosition()),l=this.message.slice(c.offset,this.offset())}if(a.has(l))return this.error("select"===e?Lm.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Lm.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===l&&(s=!0),this.bumpSpace();var d=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?Lm.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Lm.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,wp(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,e,i);if(m.err)return m;var p=this.tryParseArgumentClose(d);if(p.err)return p;n.push([l,{value:m.val,location:wp(d,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,h=o.location}return 0===n.length?this.error("select"===e?Lm.EXPECT_SELECT_ARGUMENT_SELECTOR:Lm.EXPECT_PLURAL_ARGUMENT_SELECTOR,wp(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(Lm.MISSING_OTHER_CLAUSE,wp(this.clonePosition(),this.clonePosition())):{val:n,err:null}},t.prototype.tryParseDecimalInteger=function(t,e){var i=1,r=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(i=-1);for(var o=!1,s=0;!this.isEOF();){var n=this.char();if(!(n>=48&&n<=57))break;o=!0,s=10*s+(n-48),this.bump()}var a=wp(r,this.clonePosition());return o?Np(s*=i)?{val:s,err:null}:this.error(e,a):this.error(t,a)},t.prototype.offset=function(){return this.position.offset},t.prototype.isEOF=function(){return this.offset()===this.message.length},t.prototype.clonePosition=function(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}},t.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var e=Mp(this.message,t);if(void 0===e)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return e},t.prototype.error=function(t,e){return{val:null,err:{kind:t,message:this.message,location:e}}},t.prototype.bump=function(){if(!this.isEOF()){var t=this.char();10===t?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2)}},t.prototype.bumpIf=function(t){if(Op(this.message,t,this.offset())){for(var e=0;e<t.length;e++)this.bump();return!0}return!1},t.prototype.bumpUntil=function(t){var e=this.offset(),i=this.message.indexOf(t,e);return i>=0?(this.bumpTo(i),!0):(this.bumpTo(this.message.length),!1)},t.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var e=this.offset();if(e===t)break;if(e>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},t.prototype.bumpSpace=function(){for(;!this.isEOF()&&qp(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset();return this.message.charCodeAt(e+(t>=65536?2:1))??null},t}();function Hp(t){return t>=97&&t<=122||t>=65&&t<=90}function Fp(t){return 45===t||46===t||t>=48&&t<=57||95===t||t>=97&&t<=122||t>=65&&t<=90||183==t||t>=192&&t<=214||t>=216&&t<=246||t>=248&&t<=893||t>=895&&t<=8191||t>=8204&&t<=8205||t>=8255&&t<=8256||t>=8304&&t<=8591||t>=11264&&t<=12271||t>=12289&&t<=55295||t>=63744&&t<=64975||t>=65008&&t<=65533||t>=65536&&t<=983039}function qp(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function Vp(t){return t>=33&&t<=35||36===t||t>=37&&t<=39||40===t||41===t||42===t||43===t||44===t||45===t||t>=46&&t<=47||t>=58&&t<=59||t>=60&&t<=62||t>=63&&t<=64||91===t||92===t||93===t||94===t||96===t||123===t||124===t||125===t||126===t||161===t||t>=162&&t<=165||166===t||167===t||169===t||171===t||172===t||174===t||176===t||177===t||182===t||187===t||191===t||215===t||247===t||t>=8208&&t<=8213||t>=8214&&t<=8215||8216===t||8217===t||8218===t||t>=8219&&t<=8220||8221===t||8222===t||8223===t||t>=8224&&t<=8231||t>=8240&&t<=8248||8249===t||8250===t||t>=8251&&t<=8254||t>=8257&&t<=8259||8260===t||8261===t||8262===t||t>=8263&&t<=8273||8274===t||8275===t||t>=8277&&t<=8286||t>=8592&&t<=8596||t>=8597&&t<=8601||t>=8602&&t<=8603||t>=8604&&t<=8607||8608===t||t>=8609&&t<=8610||8611===t||t>=8612&&t<=8613||8614===t||t>=8615&&t<=8621||8622===t||t>=8623&&t<=8653||t>=8654&&t<=8655||t>=8656&&t<=8657||8658===t||8659===t||8660===t||t>=8661&&t<=8691||t>=8692&&t<=8959||t>=8960&&t<=8967||8968===t||8969===t||8970===t||8971===t||t>=8972&&t<=8991||t>=8992&&t<=8993||t>=8994&&t<=9e3||9001===t||9002===t||t>=9003&&t<=9083||9084===t||t>=9085&&t<=9114||t>=9115&&t<=9139||t>=9140&&t<=9179||t>=9180&&t<=9185||t>=9186&&t<=9254||t>=9255&&t<=9279||t>=9280&&t<=9290||t>=9291&&t<=9311||t>=9472&&t<=9654||9655===t||t>=9656&&t<=9664||9665===t||t>=9666&&t<=9719||t>=9720&&t<=9727||t>=9728&&t<=9838||9839===t||t>=9840&&t<=10087||10088===t||10089===t||10090===t||10091===t||10092===t||10093===t||10094===t||10095===t||10096===t||10097===t||10098===t||10099===t||10100===t||10101===t||t>=10132&&t<=10175||t>=10176&&t<=10180||10181===t||10182===t||t>=10183&&t<=10213||10214===t||10215===t||10216===t||10217===t||10218===t||10219===t||10220===t||10221===t||10222===t||10223===t||t>=10224&&t<=10239||t>=10240&&t<=10495||t>=10496&&t<=10626||10627===t||10628===t||10629===t||10630===t||10631===t||10632===t||10633===t||10634===t||10635===t||10636===t||10637===t||10638===t||10639===t||10640===t||10641===t||10642===t||10643===t||10644===t||10645===t||10646===t||10647===t||10648===t||t>=10649&&t<=10711||10712===t||10713===t||10714===t||10715===t||t>=10716&&t<=10747||10748===t||10749===t||t>=10750&&t<=11007||t>=11008&&t<=11055||t>=11056&&t<=11076||t>=11077&&t<=11078||t>=11079&&t<=11084||t>=11085&&t<=11123||t>=11124&&t<=11125||t>=11126&&t<=11157||11158===t||t>=11159&&t<=11263||t>=11776&&t<=11777||11778===t||11779===t||11780===t||11781===t||t>=11782&&t<=11784||11785===t||11786===t||11787===t||11788===t||11789===t||t>=11790&&t<=11798||11799===t||t>=11800&&t<=11801||11802===t||11803===t||11804===t||11805===t||t>=11806&&t<=11807||11808===t||11809===t||11810===t||11811===t||11812===t||11813===t||11814===t||11815===t||11816===t||11817===t||t>=11818&&t<=11822||11823===t||t>=11824&&t<=11833||t>=11834&&t<=11835||t>=11836&&t<=11839||11840===t||11841===t||11842===t||t>=11843&&t<=11855||t>=11856&&t<=11857||11858===t||t>=11859&&t<=11903||t>=12289&&t<=12291||12296===t||12297===t||12298===t||12299===t||12300===t||12301===t||12302===t||12303===t||12304===t||12305===t||t>=12306&&t<=12307||12308===t||12309===t||12310===t||12311===t||12312===t||12313===t||12314===t||12315===t||12316===t||12317===t||t>=12318&&t<=12319||12320===t||12336===t||64830===t||64831===t||t>=65093&&t<=65094}function Wp(t){t.forEach((function(t){if(delete t.location,Zm(t)||Jm(t))for(var e in t.options)delete t.options[e].location,Wp(t.options[e].value);else Km(t)&&ep(t.style)||(Xm(t)||$m(t))&&ip(t.style)?delete t.style.location:tp(t)&&Wp(t.children)}))}function Yp(t,e){void 0===e&&(e={}),e=Om({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var i=new jp(t,e).parse();if(i.err){var r=SyntaxError(Lm[i.err.kind]);throw r.location=i.err.location,r.originalMessage=i.err.message,r}return e?.captureLocation||Wp(i.val),i.val}!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(Pp||(Pp={}));var Kp,Xp=function(t){function e(e,i,r){var o=t.call(this,e)||this;return o.code=i,o.originalMessage=r,o}return Dm(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),$p=function(t){function e(e,i,r,o){return t.call(this,'Invalid values for "'.concat(e,'": "').concat(i,'". Options are "').concat(Object.keys(r).join('", "'),'"'),Pp.INVALID_VALUE,o)||this}return Dm(e,t),e}(Xp),Zp=function(t){function e(e,i,r){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(i),Pp.INVALID_VALUE,r)||this}return Dm(e,t),e}(Xp),Jp=function(t){function e(e,i){return t.call(this,'The intl string context variable "'.concat(e,'" was not provided to the string "').concat(i,'"'),Pp.MISSING_VALUE,i)||this}return Dm(e,t),e}(Xp);function Qp(t){return"function"==typeof t}function tf(t,e,i,r,o,s,n){if(1===t.length&&Wm(t[0]))return[{type:Kp.literal,value:t[0].value}];for(var a=[],l=0,h=t;l<h.length;l++){var c=h[l];if(Wm(c))a.push({type:Kp.literal,value:c.value});else if(Qm(c))"number"==typeof s&&a.push({type:Kp.literal,value:i.getNumberFormat(e).format(s)});else{var u=c.value;if(!o||!(u in o))throw new Jp(u,n);var d=o[u];if(Ym(c))(!d||"string"==typeof d||"number"==typeof d)&&(d="string"==typeof d||"number"==typeof d?String(d):""),a.push({type:"string"==typeof d?Kp.literal:Kp.object,value:d});else if(Xm(c)){var m="string"==typeof c.style?r.date[c.style]:ip(c.style)?c.style.parsedOptions:void 0;a.push({type:Kp.literal,value:i.getDateTimeFormat(e,m).format(d)})}else if($m(c))m="string"==typeof c.style?r.time[c.style]:ip(c.style)?c.style.parsedOptions:r.time.medium,a.push({type:Kp.literal,value:i.getDateTimeFormat(e,m).format(d)});else if(Km(c))(m="string"==typeof c.style?r.number[c.style]:ep(c.style)?c.style.parsedOptions:void 0)&&m.scale&&(d*=m.scale||1),a.push({type:Kp.literal,value:i.getNumberFormat(e,m).format(d)});else{if(tp(c)){var p=c.children,f=c.value,v=o[f];if(!Qp(v))throw new Zp(f,"function",n);var g=v(tf(p,e,i,r,o,s).map((function(t){return t.value})));Array.isArray(g)||(g=[g]),a.push.apply(a,g.map((function(t){return{type:"string"==typeof t?Kp.literal:Kp.object,value:t}})))}if(Zm(c)){if(!(b=c.options[d]||c.options.other))throw new $p(c.value,d,Object.keys(c.options),n);a.push.apply(a,tf(b.value,e,i,r,o))}else if(Jm(c)){var b;if(!(b=c.options["=".concat(d)])){if(!Intl.PluralRules)throw new Xp('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Pp.MISSING_INTL_API,n);var _=i.getPluralRules(e,{type:c.pluralType}).select(d-(c.offset||0));b=c.options[_]||c.options.other}if(!b)throw new $p(c.value,d,Object.keys(c.options),n);a.push.apply(a,tf(b.value,e,i,r,o,d-(c.offset||0)))}}}}return function(t){return t.length<2?t:t.reduce((function(t,e){var i=t[t.length-1];return i&&i.type===Kp.literal&&e.type===Kp.literal?i.value+=e.value:t.push(e),t}),[])}(a)}function ef(t){return{create:function(){return{get:function(e){return t[e]},set:function(e,i){t[e]=i}}}}}!function(t){t[t.literal=0]="literal",t[t.object=1]="object"}(Kp||(Kp={}));var rf=function(){function t(e,i,r,o){void 0===i&&(i=t.defaultLocale);var s=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(t){var e=s.formatToParts(t);if(1===e.length)return e[0].value;var i=e.reduce((function(t,e){return t.length&&e.type===Kp.literal&&"string"==typeof t[t.length-1]?t[t.length-1]+=e.value:t.push(e.value),t}),[]);return i.length<=1?i[0]||"":i},this.formatToParts=function(t){return tf(s.ast,s.locales,s.formatters,s.formats,t,void 0,s.message)},this.resolvedOptions=function(){var t;return{locale:(null===(t=s.resolvedLocale)||void 0===t?void 0:t.toString())||Intl.NumberFormat.supportedLocalesOf(s.locales)[0]}},this.getAst=function(){return s.ast},this.locales=i,this.resolvedLocale=t.resolveLocale(i),"string"==typeof e){if(this.message=e,!t.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var n=function(t,e){var i={};for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(r=Object.getOwnPropertySymbols(t);o<r.length;o++)e.indexOf(r[o])<0&&Object.prototype.propertyIsEnumerable.call(t,r[o])&&(i[r[o]]=t[r[o]])}return i}(o||{},["formatters"]);this.ast=t.__parse(e,Om(Om({},n),{locale:this.resolvedLocale}))}else this.ast=e;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=function(t,e){return e?Object.keys(t).reduce((function(i,r){return i[r]=function(t,e){return e?Om(Om(Om({},t||{}),e||{}),Object.keys(t).reduce((function(i,r){return i[r]=Om(Om({},t[r]),e[r]||{}),i}),{})):t}(t[r],e[r]),i}),Om({},t)):t}(t.formats,r),this.formatters=o&&o.formatters||function(t){return void 0===t&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Rm((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,zm([void 0],e,!1)))}),{cache:ef(t.number),strategy:Vm.variadic}),getDateTimeFormat:Rm((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,zm([void 0],e,!1)))}),{cache:ef(t.dateTime),strategy:Vm.variadic}),getPluralRules:Rm((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,zm([void 0],e,!1)))}),{cache:ef(t.pluralRules),strategy:Vm.variadic})}}(this.formatterCache)}return Object.defineProperty(t,"defaultLocale",{get:function(){return t.memoizedDefaultLocale||(t.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),t.memoizedDefaultLocale},enumerable:!1,configurable:!0}),t.memoizedDefaultLocale=null,t.resolveLocale=function(t){if(!(typeof Intl.Locale>"u")){var e=Intl.NumberFormat.supportedLocalesOf(t);return e.length>0?new Intl.Locale(e[0]):new Intl.Locale("string"==typeof t?t:t[0])}},t.__parse=Yp,t.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},t}();const of={},sf=(t,e,i)=>i&&(e in of||(of[e]={}),t in of[e]||(of[e][t]=i),i),nf=(t,e)=>{if(null==e)return;if(e in of&&t in of[e])return of[e][t];const i=If(e);for(let r=0;r<i.length;r++){const o=cf(i[r],t);if(o)return sf(t,e,o)}};let af;const lf=_m({});function hf(t){return t in af}function cf(t,e){if(!hf(t))return null;const i=function(t){return af[t]||null}(t);return function(t,e){if(null==e)return;if(e in t)return t[e];const i=e.split(".");let r=t;for(let t=0;t<i.length;t++)if("object"==typeof r){if(t>0){const e=i.slice(t,i.length).join(".");if(e in r){r=r[e];break}}r=r[i[t]]}else r=void 0;return r}(i,e)}function uf(t,...e){delete of[t],lf.update((i=>(i[t]=Nm.all([i[t]||{},...e]),i)))}ym([lf],(([t])=>Object.keys(t))),lf.subscribe((t=>af=t));const df={};function mf(t){return df[t]}function pf(t){return null!=t&&If(t).some((t=>{var e;return null==(e=mf(t))?void 0:e.size}))}const ff={};function vf(t){if(!pf(t))return t in ff?ff[t]:Promise.resolve();const e=function(t){return If(t).map((t=>{const e=mf(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return ff[t]=Promise.all(e.map((([t,e])=>function(t,e){return Promise.all(e.map((e=>(function(t,e){df[t].delete(e),0===df[t].size&&delete df[t]}(t,e),e().then((t=>t.default||t)))))).then((e=>uf(t,...e)))}(t,e)))).then((()=>{if(pf(t))return vf(t);delete ff[t]})),ff[t]}const gf={fallbackLocale:null,loadingDelay:200,formats:{number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0};function bf(){return gf}const _f=_m(!1);var yf=Object.defineProperty,Ef=Object.defineProperties,wf=Object.getOwnPropertyDescriptors,xf=Object.getOwnPropertySymbols,kf=Object.prototype.hasOwnProperty,Af=Object.prototype.propertyIsEnumerable,Sf=(t,e,i)=>e in t?yf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;let Cf;const Tf=_m(null);function Nf(t){return t.split("-").map(((t,e,i)=>i.slice(0,e+1).join("-"))).reverse()}function If(t,e=bf().fallbackLocale){const i=Nf(t);return e?[...new Set([...i,...Nf(e)])]:i}function Df(){return Cf??void 0}Tf.subscribe((t=>{Cf=t??void 0,typeof window<"u"&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Of=((t,e)=>Ef(t,wf(e)))(((t,e)=>{for(var i in e)kf.call(e,i)&&Sf(t,i,e[i]);if(xf)for(var i of xf(e))Af.call(e,i)&&Sf(t,i,e[i]);return t})({},Tf),{set:t=>{if(t&&function(t){if(null==t)return;const e=If(t);for(let t=0;t<e.length;t++){const i=e[t];if(hf(i))return i}}(t)&&pf(t)){const{loadingDelay:e}=bf();let i;return typeof window<"u"&&null!=Df()&&e?i=window.setTimeout((()=>_f.set(!0)),e):_f.set(!0),vf(t).then((()=>{Tf.set(t)})).finally((()=>{clearTimeout(i),_f.set(!1)}))}return Tf.set(t)}}),zf=t=>{const e=Object.create(null);return i=>{const r=JSON.stringify(i);return r in e?e[r]:e[r]=t(i)}};var Rf=Object.defineProperty,Mf=Object.getOwnPropertySymbols,Gf=Object.prototype.hasOwnProperty,Uf=Object.prototype.propertyIsEnumerable,Bf=(t,e,i)=>e in t?Rf(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Lf=(t,e)=>{for(var i in e||(e={}))Gf.call(e,i)&&Bf(t,i,e[i]);if(Mf)for(var i of Mf(e))Uf.call(e,i)&&Bf(t,i,e[i]);return t},Pf=(t,e)=>{var i={};for(var r in t)Gf.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&Mf)for(var r of Mf(t))e.indexOf(r)<0&&Uf.call(t,r)&&(i[r]=t[r]);return i};const jf=(t,e)=>{const{formats:i}=bf();if(t in i&&e in i[t])return i[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Hf=zf((t=>{var e=t,{locale:i,format:r}=e,o=Pf(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=jf("number",r)),new Intl.NumberFormat(i,o)})),Ff=zf((t=>{var e=t,{locale:i,format:r}=e,o=Pf(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=jf("date",r):0===Object.keys(o).length&&(o=jf("date","short")),new Intl.DateTimeFormat(i,o)})),qf=zf((t=>{var e=t,{locale:i,format:r}=e,o=Pf(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=jf("time",r):0===Object.keys(o).length&&(o=jf("time","short")),new Intl.DateTimeFormat(i,o)})),Vf=zf(((t,e=Df())=>new rf(t,e,bf().formats,{ignoreTag:bf().ignoreTag}))),Wf=(t,e={})=>{var i,r,o,s;let n=e;"object"==typeof t&&(n=t,t=n.id);const{values:a,locale:l=Df(),default:h}=n;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=nf(t,l);if(c){if("string"!=typeof c)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c}else c=null!=(s=null!=(o=null==(r=(i=bf()).handleMissingMessage)?void 0:r.call(i,{locale:l,id:t,defaultValue:h}))?o:h)?s:t;if(!a)return c;let u=c;try{u=Vf(c,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return u},Yf=(t,e)=>((t={})=>{var e=t,{locale:i=Df()}=e,r=Pf(e,["locale"]);return qf(Lf({locale:i},r))})(e).format(t),Kf=(t,e)=>((t={})=>{var e=t,{locale:i=Df()}=e,r=Pf(e,["locale"]);return Ff(Lf({locale:i},r))})(e).format(t),Xf=(t,e)=>((t={})=>{var e=t,{locale:i=Df()}=e,r=Pf(e,["locale"]);return Hf(Lf({locale:i},r))})(e).format(t),$f=(t,e=Df())=>nf(t,e),Zf=ym([Of,lf],(()=>Wf));function Jf(t,e){uf(t,e)}ym([Of],(()=>Yf)),ym([Of],(()=>Kf)),ym([Of],(()=>Xf)),ym([Of,lf],(()=>$f));const Qf={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};if(typeof window<"u"){let t=function(t){return function(...e){try{return t.apply(this,e)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}};customElements.define=t(customElements.define),Promise.resolve().then((function(){return gm})).then((t=>t.G)).then((({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)}))}function tv(){let t,e;return{c(){t=Gd("svg"),e=Gd("path"),jd(e,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),jd(t,"xmlns","http://www.w3.org/2000/svg"),jd(t,"viewBox","0 0 512 512")},m(i,r){Od(i,t,r),Id(t,e)},p:Ed,i:Ed,o:Ed,d(e){e&&zd(t)}}}function ev(t){Dd(t,"svelte-ltb9q9",'.DisplayNone.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:none}.ContainerCenter.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{margin-bottom:30px}.AccordionHeader.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{margin-bottom:10px}.AccordionContent.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:block;padding:10px 0}.AccordionContent.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9:last-of-type{padding-bottom:0}.ConsentItem.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9:last-of-type{margin-bottom:0}.ConsentItem.svelte-ltb9q9 .ConsentName.svelte-ltb9q9.svelte-ltb9q9{margin:0}.ConsentItem.svelte-ltb9q9 .ConsentDescription.svelte-ltb9q9.svelte-ltb9q9{font-size:0.8rem}.ToggleSwitch.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{width:53px;height:30px}.ToggleSwitch.Big.svelte-ltb9q9 .Slider.svelte-ltb9q9.svelte-ltb9q9:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-ltb9q9 input.svelte-ltb9q9:checked+.Slider.svelte-ltb9q9:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9.svelte-ltb9q9{opacity:0;width:0;height:0}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:checked+.Slider.svelte-ltb9q9{background-color:var(--emw--color-primary, #307fe2)}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:disabled+.Slider.svelte-ltb9q9{opacity:0.1}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:checked+.Slider.svelte-ltb9q9:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-ltb9q9 input.svelte-ltb9q9:focus+.Slider.svelte-ltb9q9{box-shadow:0 0 1px var(--emw--color-primary, #307fe2)}.ToggleSwitch.svelte-ltb9q9 .Slider.svelte-ltb9q9.svelte-ltb9q9{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-ltb9q9 .Slider.svelte-ltb9q9.svelte-ltb9q9:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-ltb9q9 .Slider.Round.svelte-ltb9q9.svelte-ltb9q9{border-radius:34px}.ToggleSwitch.svelte-ltb9q9 .Slider.Round.svelte-ltb9q9.svelte-ltb9q9:before{border-radius:50%}.SaveConsentsButton.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 50px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9:disabled{background:var(--emw--color-pale, var(--emw--color-gray-50, #707070))}.ConsentErrorContainer.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-ltb9q9 circle-exclamation-icon.svelte-ltb9q9.svelte-ltb9q9{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-ltb9q9.svelte-ltb9q9.svelte-ltb9q9{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox.svelte-ltb9q9.svelte-ltb9q9{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__wrapper.svelte-ltb9q9.svelte-ltb9q9{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-ltb9q9.svelte-ltb9q9{position:relative}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__input.svelte-ltb9q9.svelte-ltb9q9{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__label.svelte-ltb9q9.svelte-ltb9q9{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-ltb9q9.svelte-ltb9q9{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__error-message.svelte-ltb9q9.svelte-ltb9q9{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-ltb9q9.svelte-ltb9q9{width:16px;height:auto}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__tooltip.svelte-ltb9q9.svelte-ltb9q9{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-ltb9q9 .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-ltb9q9.svelte-ltb9q9{opacity:1}')}function iv(t,e,i){const r=t.slice();return r[65]=e[i],r}function rv(t,e,i){const r=t.slice();return r[62]=e[i],r[63]=e,r[64]=i,r}function ov(t,e,i){const r=t.slice();return r[65]=e[i],r}function sv(t){let e,i,r=nm(t[9]),o=[];for(let e=0;e<r.length;e+=1)o[e]=hv(iv(t,r,e));return{c(){e=Md("div"),i=Md("form");for(let t=0;t<o.length;t+=1)o[t].c();jd(i,"class","checkbox svelte-ltb9q9"),jd(e,"class","legacyStyle")},m(r,s){Od(r,e,s),Id(e,i);for(let t=0;t<o.length;t+=1)o[t]&&o[t].m(i,null);t[31](i)},p(t,e){if(590336&e[0]){let s;for(r=nm(t[9]),s=0;s<r.length;s+=1){const n=iv(t,r,s);o[s]?o[s].p(n,e):(o[s]=hv(n),o[s].c(),o[s].m(i,null))}for(;s<o.length;s+=1)o[s].d(1);o.length=r.length}},d(i){i&&zd(e),Rd(o,i),t[31](null)}}}function nv(t){let e,i,r,o,s,n,a,l,h=t[16]("title")||t[16]("description"),c=(t[16]("saveButtonContent")||"Save Consents")+"",u=h&&cv(t),d=nm(t[8]),m=[];for(let e=0;e<d.length;e+=1)m[e]=vv(rv(t,d,e));let p=t[6]&&gv(t);return{c(){u&&u.c(),e=Bd();for(let t=0;t<m.length;t+=1)m[t].c();i=Bd(),r=Md("button"),s=Bd(),p&&p.c(),n=Ld(),jd(r,"class","SaveConsentsButton svelte-ltb9q9"),r.disabled=o=!t[14]},m(o,h){u&&u.m(o,h),Od(o,e,h);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(o,h);Od(o,i,h),Od(o,r,h),r.innerHTML=c,Od(o,s,h),p&&p.m(o,h),Od(o,n,h),a||(l=Pd(r,"click",t[17]),a=!0)},p(t,s){if(65536&s[0]&&(h=t[16]("title")||t[16]("description")),h?u?u.p(t,s):(u=cv(t),u.c(),u.m(e.parentNode,e)):u&&(u.d(1),u=null),867080&s[0]){let e;for(d=nm(t[8]),e=0;e<d.length;e+=1){const r=rv(t,d,e);m[e]?m[e].p(r,s):(m[e]=vv(r),m[e].c(),m[e].m(i.parentNode,i))}for(;e<m.length;e+=1)m[e].d(1);m.length=d.length}65536&s[0]&&c!==(c=(t[16]("saveButtonContent")||"Save Consents")+"")&&(r.innerHTML=c),16384&s[0]&&o!==(o=!t[14])&&(r.disabled=o),t[6]?p?p.p(t,s):(p=gv(t),p.c(),p.m(n.parentNode,n)):p&&(p.d(1),p=null)},d(t){t&&(zd(e),zd(i),zd(r),zd(s),zd(n)),u&&u.d(t),Rd(m,t),p&&p.d(t),a=!1,l()}}}function av(t){let e,i,r;return{c(){e=Md("div"),i=Md("strong"),r=Ud(t[7]),jd(i,"class","ErrorMessage svelte-ltb9q9"),jd(e,"class","ContainerCenter svelte-ltb9q9")},m(t,o){Od(t,e,o),Id(e,i),Id(i,r)},p(t,e){128&e[0]&&Fd(r,t[7])},d(t){t&&zd(e)}}}function lv(t){let e;return{c(){e=Md("general-animation-loading"),Hd(e,"clientstyling",t[1]),Hd(e,"clientstylingurl",t[2])},m(t,i){Od(t,e,i)},p(t,i){2&i[0]&&Hd(e,"clientstyling",t[1]),4&i[0]&&Hd(e,"clientstylingurl",t[2])},d(t){t&&zd(e)}}}function hv(t){let e,i,r,o,s,n,a,l,h,c,u,d,m,p,f,v,g,b=(t[16](`${t[65].tagCode}__description`)||t[65].tagCode)+"",_=t[65].mustAccept?" *":"";function y(...e){return t[30](t[65],...e)}return{c(){e=Md("div"),i=Md("input"),s=Bd(),n=Md("label"),a=Md("div"),l=new qd(!1),h=Ud(_),u=Bd(),d=Md("small"),p=Bd(),jd(i,"class","checkbox__input svelte-ltb9q9"),jd(i,"type","checkbox"),i.checked=r="1"===t[65].status,jd(i,"id",o=`${t[65].tagCode}__input`),l.a=h,jd(a,"class","checkbox__label-text svelte-ltb9q9"),jd(n,"class","checkbox__label svelte-ltb9q9"),jd(n,"for",c=`${t[65].tagCode}__input`),jd(d,"class","checkbox__error-message svelte-ltb9q9"),jd(d,"id",m="checkBoxError__"+t[65].tagCode),jd(e,"class",f="checkbox__wrapper "+t[65].tagCode+"__input svelte-ltb9q9")},m(t,r){Od(t,e,r),Id(e,i),Id(e,s),Id(e,n),Id(n,a),l.m(b,a),Id(a,h),Id(e,u),Id(e,d),Id(e,p),v||(g=Pd(i,"input",y),v=!0)},p(s,a){t=s,512&a[0]&&r!==(r="1"===t[65].status)&&(i.checked=r),512&a[0]&&o!==(o=`${t[65].tagCode}__input`)&&jd(i,"id",o),66048&a[0]&&b!==(b=(t[16](`${t[65].tagCode}__description`)||t[65].tagCode)+"")&&l.p(b),512&a[0]&&_!==(_=t[65].mustAccept?" *":"")&&Fd(h,_),512&a[0]&&c!==(c=`${t[65].tagCode}__input`)&&jd(n,"for",c),512&a[0]&&m!==(m="checkBoxError__"+t[65].tagCode)&&jd(d,"id",m),512&a[0]&&f!==(f="checkbox__wrapper "+t[65].tagCode+"__input svelte-ltb9q9")&&jd(e,"class",f)},d(t){t&&zd(e),v=!1,g()}}}function cv(t){let e,i,r=t[16]("title"),o=t[16]("description"),s=r&&uv(t),n=o&&dv(t);return{c(){e=Md("div"),s&&s.c(),i=Bd(),n&&n.c(),jd(e,"class","PlayerConsentsHeader svelte-ltb9q9")},m(t,r){Od(t,e,r),s&&s.m(e,null),Id(e,i),n&&n.m(e,null)},p(t,a){65536&a[0]&&(r=t[16]("title")),r?s?s.p(t,a):(s=uv(t),s.c(),s.m(e,i)):s&&(s.d(1),s=null),65536&a[0]&&(o=t[16]("description")),o?n?n.p(t,a):(n=dv(t),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(t){t&&zd(e),s&&s.d(),n&&n.d()}}}function uv(t){let e,i,r=t[16]("title")+"";return{c(){e=Md("h2"),i=Ud(r),jd(e,"class","PlayerConsentsTitle")},m(t,r){Od(t,e,r),Id(e,i)},p(t,e){65536&e[0]&&r!==(r=t[16]("title")+"")&&Fd(i,r)},d(t){t&&zd(e)}}}function dv(t){let e,i,r=t[16]("description")+"";return{c(){e=Md("p"),i=Ud(r),jd(e,"class","PlayerConsentsDescription")},m(t,r){Od(t,e,r),Id(e,i)},p(t,e){65536&e[0]&&r!==(r=t[16]("description")+"")&&Fd(i,r)},d(t){t&&zd(e)}}}function mv(){let t;return{c(){t=Md("sup"),t.textContent="*",jd(t,"class","ConsentRequired svelte-ltb9q9")},m(e,i){Od(e,t,i)},d(e){e&&zd(t)}}}function pv(t){let e,i=(t[16](`${t[65].tagCode}__description`)||t[65].description)+"";return{c(){e=Md("p"),jd(e,"class","ConsentDescription svelte-ltb9q9")},m(t,r){Od(t,e,r),e.innerHTML=i},p(t,r){66304&r[0]&&i!==(i=(t[16](`${t[65].tagCode}__description`)||t[65].description)+"")&&(e.innerHTML=i)},d(t){t&&zd(e)}}}function fv(t){let e,i,r,o,s,n,a,l,h,c,u,d,m,p,f,v=(t[16](`${t[65].tagCode}__name`)||t[65].friendlyName)+"",g=!0===t[65].mustAccept&&mv(),b="true"===t[3]&&pv(t);function _(...e){return t[29](t[65],...e)}return{c(){e=Md("div"),i=Md("div"),r=Md("h4"),o=new qd(!1),s=Bd(),g&&g.c(),n=Bd(),b&&b.c(),a=Bd(),l=Md("label"),h=Md("input"),d=Bd(),m=Md("span"),o.a=s,jd(r,"class","ConsentName svelte-ltb9q9"),jd(i,"class","ConsentContent"),jd(h,"type","checkbox"),h.disabled=c=!0===t[65].mustAccept&&!0===t[12][t[65].tagCode],h.checked=u=t[13][t[65].tagCode],jd(h,"class","svelte-ltb9q9"),jd(m,"class","Slider Round svelte-ltb9q9"),jd(l,"class","ToggleSwitch svelte-ltb9q9"),jd(e,"class","ConsentItem svelte-ltb9q9")},m(t,c){Od(t,e,c),Id(e,i),Id(i,r),o.m(v,r),Id(r,s),g&&g.m(r,null),Id(i,n),b&&b.m(i,null),Id(e,a),Id(e,l),Id(l,h),Id(l,d),Id(l,m),p||(f=Pd(h,"input",_),p=!0)},p(e,s){t=e,66304&s[0]&&v!==(v=(t[16](`${t[65].tagCode}__name`)||t[65].friendlyName)+"")&&o.p(v),!0===t[65].mustAccept?g||(g=mv(),g.c(),g.m(r,null)):g&&(g.d(1),g=null),"true"===t[3]?b?b.p(t,s):(b=pv(t),b.c(),b.m(i,null)):b&&(b.d(1),b=null),4864&s[0]&&c!==(c=!0===t[65].mustAccept&&!0===t[12][t[65].tagCode])&&(h.disabled=c),8960&s[0]&&u!==(u=t[13][t[65].tagCode])&&(h.checked=u)},d(t){t&&zd(e),g&&g.d(),b&&b.d(),p=!1,f()}}}function vv(t){let e,i,r,o,s,n,a,l,h,c,u,d,m=(t[16](`${t[62].categoryTagCode}__category`)||t[62].friendlyName)+"";function p(){t[26].call(n,t[62])}function f(){return t[27](t[62])}function v(...e){return t[28](t[62],...e)}let g=nm(t[9].filter(v)),b=[];for(let e=0;e<g.length;e+=1)b[e]=fv(ov(t,g,e));return{c(){e=Md("div"),i=Md("div"),r=Md("h3"),o=Bd(),s=Md("label"),n=Md("input"),a=Bd(),l=Md("span"),h=Bd(),c=Md("div");for(let t=0;t<b.length;t+=1)b[t].c();jd(n,"type","checkbox"),jd(n,"class","svelte-ltb9q9"),jd(l,"class","Slider Round svelte-ltb9q9"),jd(s,"class","ToggleSwitch Big svelte-ltb9q9"),jd(i,"class","AccordionHeader svelte-ltb9q9"),jd(c,"class","AccordionContent svelte-ltb9q9"),jd(e,"class","AccordionItem svelte-ltb9q9")},m(v,g){Od(v,e,g),Id(e,i),Id(i,r),r.innerHTML=m,Id(i,o),Id(i,s),Id(s,n),n.checked=t[11][t[62].categoryTagCode],Id(s,a),Id(s,l),Id(e,h),Id(e,c);for(let t=0;t<b.length;t+=1)b[t]&&b[t].m(c,null);u||(d=[Pd(n,"change",p),Pd(n,"change",f)],u=!0)},p(e,i){if(t=e,65792&i[0]&&m!==(m=(t[16](`${t[62].categoryTagCode}__category`)||t[62].friendlyName)+"")&&(r.innerHTML=m),2304&i[0]&&(n.checked=t[11][t[62].categoryTagCode]),602888&i[0]){let e;for(g=nm(t[9].filter(v)),e=0;e<g.length;e+=1){const r=ov(t,g,e);b[e]?b[e].p(r,i):(b[e]=fv(r),b[e].c(),b[e].m(c,null))}for(;e<b.length;e+=1)b[e].d(1);b.length=g.length}},d(t){t&&zd(e),Rd(b,t),u=!1,kd(d)}}}function gv(t){let e,i,r,o,s;return{c(){e=Md("div"),i=Md("circle-exclamation-icon"),r=Bd(),o=Md("strong"),s=Ud(t[6]),Hd(i,"class","svelte-ltb9q9"),jd(o,"class","ErrorMessage svelte-ltb9q9"),jd(e,"class","ConsentErrorContainer svelte-ltb9q9")},m(t,n){Od(t,e,n),Id(e,i),Id(e,r),Id(e,o),Id(o,s)},p(t,e){64&e[0]&&Fd(s,t[6])},d(t){t&&zd(e)}}}function bv(t){let e,i,r;function o(t){return t[10]?lv:t[7]?av:t[0]?nv:t[0]?void 0:sv}let s=o(t),n=s&&s(t);return{c(){e=Md("div"),i=Md("div"),n&&n.c(),jd(i,"class","ConsentsContainer svelte-ltb9q9"),jd(e,"class",r=Nd(t[5]?"DisplayNone":"")+" svelte-ltb9q9")},m(r,o){Od(r,e,o),Id(e,i),n&&n.m(i,null),t[32](i)},p(t,a){s===(s=o(t))&&n?n.p(t,a):(n&&n.d(1),n=s&&s(t),n&&(n.c(),n.m(i,null))),32&a[0]&&r!==(r=Nd(t[5]?"DisplayNone":"")+" svelte-ltb9q9")&&jd(e,"class",r)},i:Ed,o:Ed,d(i){i&&zd(e),n&&n.d(),t[32](null)}}}function _v(t,e,i){let r;Td(t,Zf,(t=>i(16,r=t)));let o,s,n,{session:a=""}=e,{userid:l=""}=e,{endpoint:h=""}=e,{clientstyling:c=""}=e,{clientstylingurl:u=""}=e,{lang:d="en"}=e,{displayconsentdescription:m=""}=e,{translationurl:p=""}=e,{modalconsents:f="false"}=e,v=!1,g=!1,b=!1,_="",y="",E="",w="",x=[],k=[],A=[],S=!0,C=!0,T={},N={},I={},D={},O={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},z=!1;Object.keys(Qf).forEach((t=>{Jf(t,Qf[t])}));const R=(t,e=!1)=>{e?i(7,w=t):(U(),i(6,E=t))},M=async(t,e,i,o=!1)=>{try{const o=await fetch(t,i);if(!o.ok)throw new Error(r(e));const s=await o.json();return b?s:s.filter((t=>!0===t.showOnRegister))}catch(t){throw R(t instanceof TypeError?r(e):t.message,o),t}},G=async()=>{const t=new URL(`${h}/api/v1/gm/consents`);if(t.searchParams.append("Status","Active"),!b)return await M(t.href,"fetchConsentsError",{method:"GET"},!0);const e=new URL(`${h}/api/v1/gm/user-consents/${y}`);return await Promise.all([M(t.href,"fetchConsentsError",{method:"GET"},!0),M(e.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":_,"Content-Type":"application/json"}})])},U=()=>{i(13,D={...I}),i(11,T={...N})},B=t=>{A.filter((e=>e.category.categoryTagCode===t)).forEach((e=>{e.status=e.status===O.denied.value?O.accepted.value:O.denied.value,i(13,D[e.tagCode]=T[t]||!1,D)})),i(14,s=H())},L=(t,e,o)=>{const s=A.find((t=>t.id===o)),a=e?"value":"key";let l;if(!e&&s.mustAccept){const t=Array.from(n.children);for(const e of t)if(l=Array.from(e.children).find((t=>t.getAttribute("id")===`checkBoxError__${s.tagCode}`)),l)break}if(s.status===O.accepted[a]?(s.status=O.denied[a],l&&(l.innerHTML=r("requiredError"))):(s.status=O.accepted[a],l&&(l.innerHTML="")),e){i(13,D[s.tagCode]=!D[s.tagCode],D);const t=A.filter((t=>t.category.categoryTagCode===e.categoryTagCode)).every((t=>t.status!==O.denied.value));i(11,T[e.categoryTagCode]=t,T)}P()},P=(t=>{let e;return function(...i){const r=this;clearTimeout(e),e=setTimeout((()=>{t.apply(r,i)}),500)}})((()=>j())),j=()=>{i(14,s=H()),a||(window.postMessage({type:"isConsentsValid",isValid:s}),localStorage.setItem("playerConsents",JSON.stringify(A)))},H=()=>0===A.filter((t=>A.some((e=>t.tagCode===e.tagCode&&e.mustAccept&&(t.status===O.denied.key||t.status===O.denied.value))))).length,F=t=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:t}},window.location.href)};return Yd((()=>{setTimeout((()=>{i(25,g=!0)}),50);const t=t=>(t=>{t.data&&"setUpPlayerConsents"!==t.data.type||(t=>{const e=new URL(`${h}/api/v2/gm/legislation/consents`),r={method:"POST",body:JSON.stringify({playerConsents:A,registrationId:t}),headers:{"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,r).then((t=>{t.ok||(z=!0)})).catch((t=>(console.error(t),F(t)))).finally((()=>{i(10,S=!1)}))})(t.data.registerid)})(t);return window.addEventListener("message",t),()=>{window.removeEventListener("message",t)}})),t.$$set=t=>{"session"in t&&i(0,a=t.session),"userid"in t&&i(20,l=t.userid),"endpoint"in t&&i(21,h=t.endpoint),"clientstyling"in t&&i(1,c=t.clientstyling),"clientstylingurl"in t&&i(2,u=t.clientstylingurl),"lang"in t&&i(22,d=t.lang),"displayconsentdescription"in t&&i(3,m=t.displayconsentdescription),"translationurl"in t&&i(23,p=t.translationurl),"modalconsents"in t&&i(24,f=t.modalconsents)},t.$$.update=()=>{33554433&t.$$.dirty[0]&&g&&a&&(a&&(_=a,b=!0),l&&(y=l),(async()=>{try{let t=[],e=[];if(b?[t,e]=await G():t=await G(),i(10,S=!1),k=[...t],i(8,x=(t=>{const e=new Map;return t.forEach((t=>{e.has(t.category.categoryTagCode)||e.set(t.category.categoryTagCode,t.category)})),Array.from(e.values())})(k).sort(((t,e)=>t.categoryTagCode.localeCompare(e.categoryTagCode)))),i(11,T=(t=>{const e=localStorage.getItem("categoryToggle"+y);if(null===e){const e=t.reduce(((t,e)=>(t[e.categoryTagCode]=!1,t)),{});return localStorage.setItem("categoryToggle"+y,JSON.stringify(e)),e}return JSON.parse(e)})(x)),N={...T},i(9,A=[...e]),k.forEach((t=>{let e=A.find((e=>e.tagCode===t.tagCode));e||(e={...t,status:O.denied.value},A.push(e)),e.description=t.description,e.orderNumber=t.orderNumber})),"true"===f){if(i(9,A=A.filter((t=>t.status===O.expired.value))),0!==A.length)return;R(r("wrongModalConfig"),!0)}A.forEach((t=>{i(12,I[t.tagCode]=t.status===O.accepted.value,I)})),i(13,D={...I})}catch(t){throw i(10,S=!1),R(t instanceof TypeError?r("invalidUrl"):t.message,!0),t}})()),1&t.$$.dirty[0]&&(a||(()=>{z=!1;const t=new URL(`${h}/api/v2/gm/legislation/consents`);fetch(t.href,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then((t=>t.ok?t.json():(z=!0,t.json().then((t=>(console.error(t),F(t))))))).then((t=>{if(!z){if(k=t,localStorage.getItem("playerConsents")){try{i(9,A=JSON.parse(localStorage.getItem("playerConsents")))}catch(t){return console.error(t),F(t)}return}return i(9,A=k.map((t=>({id:t.id,status:O.denied.key,friendlyName:t.friendlyName,tagCode:t.tagCode,selected:null,mustAccept:t.mustAccept})))),localStorage.setItem("playerConsents",JSON.stringify(A)),A}})).catch((t=>(console.error(t),F(t)))).finally((()=>{i(10,S=!1)}))})()),22&t.$$.dirty[0]&&o&&(c&&(()=>{let t=document.createElement("style");t.innerHTML=c,o.appendChild(t)})(),u&&(()=>{try{i(5,v=!0);let t=new URL(u),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,setTimeout((()=>{o.appendChild(e)}),1),setTimeout((()=>{i(5,v=!1)}),500)}))}catch(t){const e=t instanceof TypeError?r("invalidUrl"):t.message;R(e)}})()),4194304&t.$$.dirty[0]&&d&&function(t){Of.set(t)}(d),8388608&t.$$.dirty[0]&&p&&(()=>{let t=new URL(p);fetch(t.href).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{Jf(e,t[e])}))})).catch((t=>{console.log(t)}))})()},[a,c,u,m,o,v,E,w,x,A,S,T,I,D,s,n,r,async()=>{if(!C)return;C=!1;const t=[],e=[];if(Object.keys(D).forEach((i=>{const r=A.find((t=>t.tagCode===i));D[i]!==I[i]&&(r?t.push({tagCode:i,status:D[i]?O.accepted.value:O.denied.value}):e.push({tagCode:i,status:D[i]?O.accepted.value:O.denied.value}))})),!b)return localStorage.setItem("categoryToggle"+y,JSON.stringify(T)),N={...T},window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(e)},window.location.href),void(C=!0);const o=new URL(`${h}/api/v1/gm/user-consents/${y}`);try{const r=await Promise.allSettled([e.length>0&&M(o.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":_,"Content-Type":"application/json"},body:JSON.stringify({userConsents:e})}),t.length>0&&M(o.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":_,"Content-Type":"application/json"},body:JSON.stringify({userConsents:t})})]);r.forEach(((r,o)=>{if("rejected"===r.status||!1===r.value.ok){const r=o<e.length?e[o]:t[o-e.length];i(13,D[r.tagCode]=I[r.tagCode],D)}})),r.every((t=>"fulfilled"===t.status))&&(localStorage.setItem("categoryToggle"+y,JSON.stringify(T)),N={...T},window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),i(12,I={...D}))}catch(t){R(t instanceof TypeError?r("saveChangesError"):t.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href)}finally{C=!0,i(14,s=!1)}},B,L,l,h,d,p,f,g,function(t){T[t.categoryTagCode]=this.checked,i(11,T)},t=>B(t.categoryTagCode),(t,e)=>e.category.categoryTagCode===t.categoryTagCode,t=>L(0,t.category,t.id),t=>L(0,null,t.id),function(t){Xd[t?"unshift":"push"]((()=>{n=t,i(15,n)}))},function(t){Xd[t?"unshift":"push"]((()=>{o=t,i(4,o)}))}]}customElements.define("circle-exclamation-icon",cm(class extends um{constructor(t){super(),am(this,t,null,tv,Sd,{})}},{},[],[],!0));class yv extends um{constructor(t){super(),am(this,t,_v,bv,Sd,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,lang:22,displayconsentdescription:3,translationurl:23,modalconsents:24},ev,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),rm()}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),rm()}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),rm()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),rm()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),rm()}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),rm()}get displayconsentdescription(){return this.$$.ctx[3]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),rm()}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),rm()}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),rm()}}cm(yv,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0),customElements.define=function(t){return function(...e){try{return t.apply(this,e)}catch(t){if(t instanceof DOMException&&t.message.includes("has already been used with this registry")||t.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw t}}}(customElements.define),!customElements.get("player-consents")&&customElements.define("player-consents",yv.element);const Ev=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.registrationStepUpdated=e(this,"registrationStepUpdated",7),this.language="en",this.clientStyling="",this.clientStylingUrl="",this.translationUrl="",this.btag=null,this.emitOnClick=!1,this.isConsentValid=!1,this.isConsentReady=!1,this.isLoading=!0,this.forms=[],this.limitStylingAppends=!1,this.autofilled=!1,this.listOfInputValues=[],this.listOfInputValidity=[],this.listOfActions=[],this.listOfInputs=[],this.emitValue=!1,this.backButtonPressed=!1,this.registerErrors=!1,this.extraActions=[],this.registrationStepsState={regId:null},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(t)},this.setClientStylingURL=()=>{let t=new URL(this.clientStylingUrl),e=document.createElement("style");fetch(t.href).then((t=>t.text())).then((t=>{e.innerHTML=t,this.clientStyling=t,setTimeout((()=>{this.host.shadowRoot.prepend(e)}),1)}))}}sendStep(){this.registrationStepUpdated.emit(this.registrationStep),window.postMessage({type:"registrationStepUpdated",step:this.registrationStep},window.location.href)}handleStylingChange(t,e){t!==e&&this.setClientStyling()}handleStylingUrlChange(t,e){t!==e&&this.setClientStylingURL()}setFormValidity(){this.errorMessage="",this.listOfInputValidity&&(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)),this.listOfInputs.some((t=>t.autofill))&&(this.autofilled=!0)}addBtag(){this.addBtagValue()}checkInputsValidityHandler(t){this.listOfInputValidity.find((e=>e.name==t.detail.name)).isValid=t.detail.valid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}getInputsValueHandler(t){this.listOfInputValues.find((e=>{e.name==t.detail.name&&(e.value=t.detail.value,e.type=t.detail.type||null)})),this.stepsStateMachine({event:"set",type:"values"})}componentWillLoad(){return this.getRegisterConfig().then((t=>{this.formatConfig(t),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),this.stepsStateMachine({event:"set",type:"inputs"})}))}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0)}messageHandler(t){t.data&&"isConsentsValid"!=t.data.type||(this.listOfInputValidity.find((t=>"Consents"===t.name)).isValid=!!t.data.isValid,this.isConsentValid=!!t.data.isValid,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity))}nextHandler(t){t.preventDefault(),this.emitValue=!0,this.setRegisterStep()}backHandler(t){t.preventDefault(),this.registrationStep=this.stepChange("decrement"),this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})}dispatchRegisterCredentialsEvent(){let t="",e="";Object.keys(this.registrationStepsState).forEach((i=>{this.registrationStepsState[i].registerUserData&&(t||(t=this.registrationStepsState[i].registerUserData.Email?this.registrationStepsState[i].registerUserData.Email.value:t),e||(e=this.registrationStepsState[i].registerUserData.Password?this.registrationStepsState[i].registerUserData.Password.value:e))})),this.registerCredentialsEvent=new CustomEvent("RegisterCredentials",{bubbles:!0,detail:{userNameEmail:t,userPassword:e}}),window.dispatchEvent(this.registerCredentialsEvent)}stepsStateMachine(t){const e=()=>{localStorage.setItem("registrationStepsState",JSON.stringify(this.registrationStepsState))};switch(t.event){case"set":if("inputs"==t.type){const t=this.registrationStepsState[this.registrationStep];t.fields=this.listOfInputs,t.actions=this.listOfActions,t.fieldsValidity=this.listOfInputValidity}"values"==t.type&&(this.registrationStepsState[this.registrationStep].registerUserData=this.listOfInputValues.reduce(((t,e)=>(t[e.name]={value:e.value,isDuplicate:e.isDuplicate},t)),{})),e();break;case"get":const i=JSON.parse(localStorage.getItem("registrationStepsState"));if(!i)return;if("inputs"==t.type){const t=this.registrationStepsState[this.registrationStep];this.listOfInputs=t.fields,this.listOfActions=t.actions,this.listOfInputValidity=t.fieldsValidity}if("values"==t.type){const t=i[this.registrationStep].registerUserData;this.listOfInputValues=Object.keys(t).map((e=>({name:e,value:t[e].value,isDuplicate:t[e].isDuplicate}))),this.listOfInputValues.forEach((t=>{const e=this.listOfInputs.find((e=>e.name===t.name));e&&(e.defaultValue=t.value,"togglecheckbox"===e.inputType&&e.data.subFields.forEach((t=>{const e=this.listOfInputValues.find((e=>e.name===t.name));t.defaultValue=e.value})))}))}this.isConsentReady=this.listOfActions.some((t=>"/Consents"===t)),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}}getRegisterConfig(t){const e=new URL(`${this.endpoint}/v1/player/legislation/registration/config`),i=new Headers;i.append("Content-Type","application/json"),i.append("Accept","application/json"),t&&e.searchParams.append("registrationId",t);const r={method:"GET",headers:i};return new Promise(((t,i)=>{this.isLoading=!0,fetch(e.href,r).then((t=>t.json())).then((e=>{this.isLoading=!1,t(e)})).catch((t=>{this.isLoading=!1,console.error(t),i(t)})).finally((()=>{this.isLoading=!1}))}))}setRegisterStep(){this.isLoadingPOST=!0;const t=new URL(`${this.endpoint}/v1/player/legislation/registration/step`),e={registrationId:this.registrationID,registerUserDto:this.listOfInputValues.filter((t=>!t.isDuplicate)).reduce(((t,e)=>("TypeOfPublicArea"===e.name?t[e.name]=e.value.toLowerCase():"tel"===e.type?(t.MobilePrefix=e.value.prefix,t[e.name]=e.value.phone):"checkboxgroup"===e.type?null!==e.value&&Object.entries(e.value).forEach((([e,i])=>{t[e]=i?"true":"false"})):t[e.name]="toggle"===e.type?e.value?"true":"false":e.value,t)),{}),step:this.registrationStep},i=new Headers;i.append("Content-Type","application/json"),i.append("Accept","application/json");const r={method:"POST",body:JSON.stringify(e),headers:i};fetch(t.href,r).then((t=>t.ok?t.json():t.json().then((t=>{this.errorCode=t.thirdPartyResponse.errorCode,this.errorMessage="GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode?t.thirdPartyResponse.message:"GmErr_Forbidden_UserAccount_NavExcluded"===this.errorCode?yd(`${this.errorCode}`,this.language):"GmErr_BadRequest"==this.errorCode?t.thirdPartyResponse.message:yd(`${this.errorCode}`,this.language)||yd("generalError",this.language)})))).then((t=>{this.isLoadingPOST=!1,this.registrationID=t.registrationId,this.listOfActions.some((t=>"/register"==t))?(this.listOfActions.some((t=>"/generate-2FA-code/Generate2FACode"==t))&&this.extraActions.push("2fa"),localStorage.getItem("playerConsents")&&localStorage.removeItem("playerConsents"),this.setRegister()):(this.isConsentValid&&window.postMessage({type:"setUpPlayerConsents",registerid:this.registrationID}),this.registrationStep=this.stepChange("increment"),Object.keys(this.registrationStepsState).find((t=>t==this.registrationStep))?(this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})):this.getRegisterConfig(this.registrationID).then((t=>{this.formatConfig(t),this.stepsStateMachine({event:"set",type:"inputs"})})))})).catch((t=>{this.isLoadingPOST=!1,console.error(t)})).finally((()=>{this.isLoadingPOST=!1}))}setRegister(){this.isLoading=!0,this.registerErrors=!1;const t=new URL(`${this.endpoint}/v1/player/legislation/register`),e=new Headers;e.append("Content-Type","application/json"),e.append("Accept","application/json");const i={method:"PUT",body:JSON.stringify({registrationId:this.registrationID}),headers:e};fetch(t.href,i).then((t=>t.ok?t.json():(this.registerErrors=!0,t.json().then((t=>{this.errorCode=t.thirdPartyResponse.errorCode,this.errorMessage="GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode||"GmErr_BadRequest"==this.errorCode?t.thirdPartyResponse.message:yd(`${this.errorCode}`,this.language)||yd("generalError",this.language),window.postMessage({type:"registrationFailed",errorMessage:null==t?void 0:t.thirdPartyResponse.message},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"error",message:this.errorMessage}},window.location.href)}))))).then((t=>{this.isLoading=!1,this.registerErrors||(this.dispatchRegisterCredentialsEvent(),window.postMessage({type:"registrationSuccessful",userId:null==t?void 0:t.userId,extraActions:this.extraActions},window.location.href),window.postMessage({type:"WidgetNotification",data:{type:"success",message:yd("successMessage",this.language)}},window.location.href))})).catch((t=>{this.isLoading=!1,console.error(t)})).finally((()=>{this.isLoading=!1}))}formatConfig(t){if(this.listOfInputs=t.content.fields.flatMap((t=>{const e=t.validate.custom.find((t=>"duplicate-input"===t.rule)),i=Object.assign({},t);return e?[i,Object.assign(Object.assign({},t),{name:`${t.name}Duplicate`,displayName:e.displayName,isDuplicateInput:!0})]:[i]})),this.listOfInputValidity=this.listOfInputs.reduce(((t,e)=>{var i;return"togglecheckbox"===(null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase())?e.data.subFields.forEach((e=>{t.push({name:e.name,isValid:this.setInitialValidStatus(e)})})):t.push({name:e.name,isValid:this.setInitialValidStatus(e)}),t}),[]),this.listOfInputValues=this.listOfInputs.reduce(((t,e)=>{var i;const r=null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase();return"togglecheckbox"===r&&e.data.subFields.forEach((e=>{var i;t.push({name:e.name,value:"checkbox"==(null===(i=e.inputType)||void 0===i?void 0:i.toLowerCase())?"false":null,isDuplicate:e.isDuplicateInput||!1,type:"togglecheckbox"===r?"togglecheckbox":null})})),t.push({name:e.name,value:"checkbox"===r||"togglecheckbox"===r?"false":null,isDuplicate:e.isDuplicateInput||!1,type:"checkboxgroup"===r?"checkboxgroup":"togglecheckbox"===r?"toggle":null}),t}),[]),this.btag&&this.addBtagValue(),this.listOfActions=t.content.actions.map((t=>t)),this.registrationID=t.content.registrationID,this.registrationStep=t.content.step,this.listOfActions.some((t=>"/register"==t))&&(this.lastStep=this.registrationStep),this.listOfActions.some((t=>"/Consents"==t))){if(this.isConsentReady)return this.listOfInputValidity.find((t=>"Consents"===t.name)).isValid=!1,void(this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity));this.listOfInputValidity.push({name:"Consents",isValid:!1}),this.isConsentReady=!0}else this.isConsentReady=!1;var e;this.translationUrl?(e=this.translationUrl,new Promise((t=>{fetch(e).then((t=>t.json())).then((e=>{Object.keys(e).forEach((t=>{for(let i in e[t])_d[t][i]=e[t][i]})),t(!0)}))}))).then((()=>{this.listOfInputs.forEach((t=>{var e,i;return this.addTranslation(t),"togglecheckbox"===(null===(e=t.inputType)||void 0===e?void 0:e.toLowerCase())&&t.data.subFields.forEach((t=>this.addTranslation(t))),"checkboxgroup"===(null===(i=t.inputType)||void 0===i?void 0:i.toLowerCase())&&(this.addTranslation(t),t.data.subFields.forEach((t=>this.addTranslation(t)))),t}))})).catch((t=>{console.error("Failed to fetch translations:",t)})).finally((()=>{this.forms=[...this.forms,{[this.registrationStep]:this.listOfInputs}]})):this.forms=[...this.forms,{[this.registrationStep]:this.listOfInputs}],this.registrationStepsState.regId=this.registrationID,this.registrationStepsState[this.registrationStep]||(this.registrationStepsState[this.registrationStep]={fields:[],fieldsValidity:[],registerUserData:{},actions:[]})}addBtagValue(){const t=this.listOfInputs.find((t=>"btag"===t.name.toLowerCase()));t&&(t.defaultValue=this.btag);const e=this.listOfInputValues.find((t=>"btag"===t.name.toLowerCase()));e&&(e.value=this.btag)}addTranslation(t){_d[_d[this.language]?this.language:"en"][t.name]&&Object.keys(_d[this.language][t.name]).forEach((e=>{t[e]=_d[this.language][t.name][e]}))}setInitialValidStatus(t){var e,i,r,o;return"checkbox"==(null===(e=t.inputType)||void 0===e?void 0:e.toLowerCase())&&0==(null===(i=t.validate)||void 0===i?void 0:i.mandatory)||("checkbox"!==(null===(r=t.inputType)||void 0===r?void 0:r.toLowerCase())||!(null===(o=t.validate)||void 0===o?void 0:o.mandatory)||"true"===t.defaultValue)&&null!==t.defaultValue}stepChange(t){const e=parseInt(this.registrationStep.replace("Step",""));return"increment"===t?"Step"+(e+1):"decrement"===t?"Step"+(e-1):void 0}getInvalidStatus(t){return t.filter((t=>0==t.isValid)).length>0}renderForm(){return this.forms.map(((t,e)=>i("form",{action:".",id:`RegistrationForm${this.registrationStep}`,class:"registration__form "+(this.registrationStep!==`Step${e+1}`?"hidden":""),ref:t=>this.form=t},t[this.registrationStep]&&t[this.registrationStep].map((t=>i("general-input",{type:t.inputType,name:t.name,displayName:t.displayName,validation:t.validate,action:t.action||null,options:t.data?"checkboxgroup"==t.inputType.toLowerCase()||"togglecheckbox"==t.inputType.toLowerCase()?t.data.subFields:t.data.values:[],defaultValue:t.defaultValue,autofilled:t.autofill,emitValue:this.emitValue,language:this.language,isDuplicateInput:t.isDuplicateInput,"client-styling":this.clientStyling,tooltip:t.tooltip,placeholder:null==t.placeholder?"":t.placeholder,dateFormat:this.dateFormat,"translation-url":this.translationUrl,emitOnClick:this.emitOnClick}))),this.isConsentReady&&this.renderConsents(),this.buttonInsideForm&&this.renderButtons(),i("div",{class:"registration__wrapper--flex"},i("p",{class:"registration__error-message",innerHTML:this.errorMessage})))))}renderConsents(){return i("div",{class:"consentsContainer"},i("player-consents",{endpoint:this.endpoint}))}renderButtons(){return i("div",{class:"registration__buttons-wrapper "+(this.autofilled?"registration__buttons-wrapper--autofilled":"")},this.isLoadingPOST&&i("slot",{name:"spinner"})&&i("svg",{class:"spinner",viewBox:"0 0 50 50"},i("circle",{class:"path",cx:"25",cy:"25",r:"20",fill:"none","stroke-width":"5"})),!this.isLoadingPOST&&i("button",{class:"registration__button registration__button--next "+(this.isFormValid?"":"registration__button--disabled"),type:"submit",form:`RegistrationForm${this.registrationStep}`,onClick:t=>this.nextHandler(t),disabled:!this.isFormValid},yd(this.lastStep===this.registrationStep?"doneButton":"nextButton",this.language)),i("button",{class:"registration__button registration__button--back "+("Step1"==this.registrationStep?"registration__button--first-step":""),onClick:t=>this.backHandler(t)},yd("backButton",this.language)))}render(){return this.isLoading?i("p",null,"Please wait, loading ..."):i("div",{class:`registration registration__${this.registrationStep}`},this.renderForm(),!this.buttonInsideForm&&this.renderButtons())}get host(){return r(this)}static get watchers(){return{registrationStep:["sendStep"],clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"],forms:["setFormValidity"],btag:["addBtag"]}}};Ev.style='*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: "Roboto";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: 13px;\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}';const wv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.value=t.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return n(`${i}`,this.language)?n(`${i}`,this.language):r}return this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?n("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):this.inputReference.validity.valueMissing?n("requiredError",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"number__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"2032f77ca52b330ae2e8f484d7a0aba60ee7b9d5",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"0786901cd928bba86597180f058bff43fba522b6",class:"number__wrapper--flex"},i("label",{key:"ff7f39306cef7aeba3e0e4508df03c5a945e748b",class:"number__label "+(this.validation.mandatory?"number__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"dced91223621551472fee374d56f1ad7476f4191",class:"number__wrapper--relative"},this.tooltip&&i("img",{key:"a804a983e342e4d117126720a32c4c34a2b267dc",class:"number__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"fd59afaedf7d9f761684b057a1809474d735cc26",ref:t=>this.inputReference=t,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${t}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"ca11558b5704b69311626736ab84a298449b98d7",class:"number__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};wv.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.number{font-family:"Roboto";font-style:normal}.number__wrapper{position:relative;width:100%}.number__wrapper--autofilled{pointer-events:none}.number__wrapper--autofilled .number__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__wrapper--autofilled .number__input{color:var(--emw--color-black, #000000)}.number__wrapper--flex{display:flex;gap:5px}.number__wrapper--relative{position:relative}.number__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.number__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.number__input{font-family:inherit;border-radius:5px;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:16px;line-height:18px;position:relative;-moz-appearance:textfield;}.number__input:focus{outline-color:#3E3E3E}.number__input::-webkit-outer-spin-button,.number__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.number__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__input::placeholder{color:#979797}.number__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.number__tooltip-icon{width:16px;height:auto}.number__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.number__tooltip.visible{opacity:1}';
4693
4693
  /**
4694
4694
  * @license
4695
4695
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
4696
4696
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4697
4697
  */
4698
- class xd extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}l(xd);const Ad=(t,...e)=>{Et(`lumo-${t}`,e)};
4698
+ class xv extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}l(xv);const kv=(t,...e)=>{wt(`lumo-${t}`,e)};
4699
4699
  /**
4700
4700
  * @license
4701
4701
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
4702
4702
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4703
- */Ad("color-props",f`
4703
+ */kv("color-props",f`
4704
4704
  :host {
4705
4705
  /* Base (background) */
4706
4706
  --lumo-base-color: #fff;
@@ -4900,7 +4900,7 @@ class xd extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
4900
4900
  background-color: var(--lumo-contrast-10pct);
4901
4901
  border-radius: var(--lumo-border-radius-m);
4902
4902
  }
4903
- `,{moduleId:"lumo-color"}),Ad("font-icons",f`
4903
+ `,{moduleId:"lumo-color"}),kv("font-icons",f`
4904
4904
  @font-face {
4905
4905
  font-family: 'lumo-icons';
4906
4906
  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==)
@@ -4953,7 +4953,7 @@ class xd extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
4953
4953
  --lumo-icons-upload: '\\ea29';
4954
4954
  --lumo-icons-user: '\\ea2a';
4955
4955
  }
4956
- `),Ad("sizing-props",f`
4956
+ `),kv("sizing-props",f`
4957
4957
  :host {
4958
4958
  --lumo-size-xs: 1.625rem;
4959
4959
  --lumo-size-s: 1.875rem;
@@ -4968,7 +4968,7 @@ class xd extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
4968
4968
  /* For backwards compatibility */
4969
4969
  --lumo-icon-size: var(--lumo-icon-size-m);
4970
4970
  }
4971
- `),Ad("spacing-props",f`
4971
+ `),kv("spacing-props",f`
4972
4972
  :host {
4973
4973
  /* Square */
4974
4974
  --lumo-space-xs: 0.25rem;
@@ -4997,7 +4997,7 @@ class xd extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
4997
4997
  --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
4998
4998
  --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
4999
4999
  }
5000
- `,Ad("style-props",f`
5000
+ `,kv("style-props",f`
5001
5001
  :host {
5002
5002
  /* Border radius */
5003
5003
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -5020,7 +5020,7 @@ class xd extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
5020
5020
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
5021
5021
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5022
5022
  */
5023
- const kd=f`
5023
+ const Av=f`
5024
5024
  :host {
5025
5025
  /* prettier-ignore */
5026
5026
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -5132,13 +5132,13 @@ const kd=f`
5132
5132
  border-left: none;
5133
5133
  border-right: 2px solid var(--lumo-contrast-30pct);
5134
5134
  }
5135
- `,{moduleId:"lumo-typography"}),Ad("typography-props",kd);
5135
+ `,{moduleId:"lumo-typography"}),kv("typography-props",Av);
5136
5136
  /**
5137
5137
  * @license
5138
5138
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
5139
5139
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5140
5140
  */
5141
- const Sd=f`
5141
+ const Sv=f`
5142
5142
  [part$='button'] {
5143
5143
  flex: none;
5144
5144
  width: 1em;
@@ -5165,13 +5165,13 @@ const Sd=f`
5165
5165
  font-family: 'lumo-icons';
5166
5166
  display: block;
5167
5167
  }
5168
- `;vt("",Sd,{moduleId:"lumo-field-button"});
5168
+ `;vt("",Sv,{moduleId:"lumo-field-button"});
5169
5169
  /**
5170
5170
  * @license
5171
5171
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
5172
5172
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5173
5173
  */
5174
- const Id=f`
5174
+ const Cv=f`
5175
5175
  :host([has-helper]) [part='helper-text']::before {
5176
5176
  content: '';
5177
5177
  display: block;
@@ -5227,7 +5227,7 @@ const Id=f`
5227
5227
  * @license
5228
5228
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
5229
5229
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5230
- */,Td=f`
5230
+ */,Tv=f`
5231
5231
  [part='label'] {
5232
5232
  align-self: flex-start;
5233
5233
  color: var(--lumo-secondary-text-color);
@@ -5323,13 +5323,13 @@ const Id=f`
5323
5323
  margin-left: 0;
5324
5324
  margin-right: calc(var(--lumo-border-radius-m) / 4);
5325
5325
  }
5326
- `;vt("",Td,{moduleId:"lumo-required-field"});
5326
+ `;vt("",Tv,{moduleId:"lumo-required-field"});
5327
5327
  /**
5328
5328
  * @license
5329
5329
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
5330
5330
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5331
5331
  */
5332
- const Dd=[Td,Sd,Id,f`
5332
+ const Nv=[Tv,Sv,Cv,f`
5333
5333
  :host {
5334
5334
  --lumo-text-field-size: var(--lumo-size-m);
5335
5335
  color: var(--lumo-body-text-color);
@@ -5463,29 +5463,29 @@ const Dd=[Td,Sd,Id,f`
5463
5463
  [part='clear-button']::before {
5464
5464
  content: var(--lumo-icons-cross);
5465
5465
  }
5466
- `];vt("",Dd,{moduleId:"lumo-input-field-shared-styles"}),
5466
+ `];vt("",Nv,{moduleId:"lumo-input-field-shared-styles"}),
5467
5467
  /**
5468
5468
  * @license
5469
5469
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
5470
5470
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5471
5471
  */
5472
- vt("vaadin-text-field",Dd,{moduleId:"lumo-text-field-styles"});
5472
+ vt("vaadin-text-field",Nv,{moduleId:"lumo-text-field-styles"});
5473
5473
  /**
5474
5474
  * @license
5475
5475
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
5476
5476
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5477
5477
  */
5478
- const Nd=t=>class extends(Al(t)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(t){this.__dataValue=t}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.value&&t.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),t.value=""),this.value&&(t.value=this.value))}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}_onInput(t){super._onInput(t),this.invalid&&this.validate()}_valueChanged(t,e){super._valueChanged(t,e),void 0!==e&&this.invalid&&this.validate()}}
5478
+ const Iv=t=>class extends(kl(t)){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(t){this.__dataValue=t}_inputElementChanged(t){super._inputElementChanged(t),t&&(t.value&&t.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),t.value=""),this.value&&(t.value=this.value))}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}_onInput(t){super._onInput(t),this.invalid&&this.validate()}_valueChanged(t,e){super._valueChanged(t,e),void 0!==e&&this.invalid&&this.validate()}}
5479
5479
  /**
5480
5480
  * @license
5481
5481
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
5482
5482
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5483
- */,Od=t=>class extends(Nd(t)){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new co(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new vo(this.inputElement,this._labelController))}}
5483
+ */,Dv=t=>class extends(Iv(t)){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new co(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new vo(this.inputElement,this._labelController))}}
5484
5484
  /**
5485
5485
  * @license
5486
5486
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
5487
5487
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5488
- */;vt("vaadin-text-field",Th,{moduleId:"vaadin-text-field-styles"});class Cd extends(Od(wt(lr(Li)))){static get is(){return"vaadin-text-field"}static get template(){return Ui`
5488
+ */;vt("vaadin-text-field",Th,{moduleId:"vaadin-text-field-styles"});class Ov extends(Dv(Et(lr(Bi)))){static get is(){return"vaadin-text-field"}static get template(){return Gi`
5489
5489
  <style>
5490
5490
  [part='input-field'] {
5491
5491
  flex-grow: 0;
@@ -5520,7 +5520,7 @@ const Nd=t=>class extends(Al(t)){static get properties(){return{autocomplete:{ty
5520
5520
  </div>
5521
5521
  </div>
5522
5522
  <slot name="tooltip"></slot>
5523
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new vr(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}l(Cd);const Rd=f`
5523
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new vr(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}l(Ov);const zv=f`
5524
5524
  :host {
5525
5525
  /* Sizing */
5526
5526
  --lumo-button-size: var(--lumo-size-m);
@@ -5769,7 +5769,7 @@ const Nd=t=>class extends(Al(t)){static get properties(){return{autocomplete:{ty
5769
5769
  margin-left: 0;
5770
5770
  margin-right: 0;
5771
5771
  }
5772
- `;vt("vaadin-button",Rd,{moduleId:"lumo-button"}),vt("vaadin-password-field-button",[Rd,f`
5772
+ `;vt("vaadin-button",zv,{moduleId:"lumo-button"}),vt("vaadin-password-field-button",[zv,f`
5773
5773
  :host {
5774
5774
  position: absolute;
5775
5775
  right: 0;
@@ -5782,7 +5782,7 @@ const Nd=t=>class extends(Al(t)){static get properties(){return{autocomplete:{ty
5782
5782
  background: transparent;
5783
5783
  outline: none;
5784
5784
  }
5785
- `],{moduleId:"lumo-password-field-button"}),vt("vaadin-password-field",[Dd,f`
5785
+ `],{moduleId:"lumo-password-field-button"}),vt("vaadin-password-field",[Nv,f`
5786
5786
  [part='reveal-button']::before {
5787
5787
  content: var(--lumo-icons-eye);
5788
5788
  }
@@ -5806,30 +5806,30 @@ const Nd=t=>class extends(Al(t)){static get properties(){return{autocomplete:{ty
5806
5806
  * Copyright 2019 Google LLC
5807
5807
  * SPDX-License-Identifier: BSD-3-Clause
5808
5808
  */
5809
- const zd=window,Gd=zd.ShadowRoot&&(void 0===zd.ShadyCSS||zd.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ud=Symbol(),Md=new WeakMap;class Ld{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ud)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Gd&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Md.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Md.set(e,t))}return t}toString(){return this.cssText}}const Pd=Gd?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new Ld("string"==typeof t?t:t+"",void 0,Ud))(e)})(t):t
5809
+ const Rv=window,Mv=Rv.ShadowRoot&&(void 0===Rv.ShadyCSS||Rv.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Gv=Symbol(),Uv=new WeakMap;class Bv{constructor(t,e,i){if(this._$cssResult$=!0,i!==Gv)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Mv&&void 0===t){const i=void 0!==e&&1===e.length;i&&(t=Uv.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Uv.set(e,t))}return t}toString(){return this.cssText}}const Lv=Mv?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return(t=>new Bv("string"==typeof t?t:t+"",void 0,Gv))(e)})(t):t
5810
5810
  /**
5811
5811
  * @license
5812
5812
  * Copyright 2017 Google LLC
5813
5813
  * SPDX-License-Identifier: BSD-3-Clause
5814
- */;var Bd;const Fd=window,jd=Fd.trustedTypes,Vd=jd?jd.emptyScript:"",qd=Fd.reactiveElementPolyfillSupport,Wd={toAttribute(t,e){switch(e){case Boolean:t=t?Vd: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}},Yd=(t,e)=>e!==t&&(e==e||t==t),Hd={attribute:!0,type:String,converter:Wd,reflect:!1,hasChanged:Yd},Xd="finalized";class Kd 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 r=this._$Ep(i,e);void 0!==r&&(this._$Ev.set(r,i),t.push(r))})),t}static createProperty(t,e=Hd){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,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Hd}static finalize(){if(this.hasOwnProperty(Xd))return!1;this[Xd]=!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(Pd(t))}else void 0!==t&&e.push(Pd(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{Gd?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),r=zd.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=Hd){var r;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const s=(void 0!==(null===(r=i.converter)||void 0===r?void 0:r.toAttribute)?i.converter:Wd).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,o=r._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=r.getPropertyOptions(o),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:Wd;this._$El=o,this[o]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Yd)(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))):r=!1),!this.isUpdatePending&&r&&(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){}}
5814
+ */;var Pv;const jv=window,Hv=jv.trustedTypes,Fv=Hv?Hv.emptyScript:"",qv=jv.reactiveElementPolyfillSupport,Vv={toAttribute(t,e){switch(e){case Boolean:t=t?Fv: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}},Wv=(t,e)=>e!==t&&(e==e||t==t),Yv={attribute:!0,type:String,converter:Vv,reflect:!1,hasChanged:Wv},Kv="finalized";class Xv 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 r=this._$Ep(i,e);void 0!==r&&(this._$Ev.set(r,i),t.push(r))})),t}static createProperty(t,e=Yv){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,r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Object.defineProperty(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){return{get(){return this[e]},set(r){const o=this[t];this[e]=r,this.requestUpdate(t,o,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||Yv}static finalize(){if(this.hasOwnProperty(Kv))return!1;this[Kv]=!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(Lv(t))}else void 0!==t&&e.push(Lv(t));return e}static _$Ep(t,e){const i=e.attribute;return!1===i?void 0:"string"==typeof i?i:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,i;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(i=t.hostConnected)||void 0===i||i.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{Mv?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const i=document.createElement("style"),r=Rv.litNonce;void 0!==r&&i.setAttribute("nonce",r),i.textContent=e.cssText,t.appendChild(i)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$EO(t,e,i=Yv){var r;const o=this.constructor._$Ep(t,i);if(void 0!==o&&!0===i.reflect){const s=(void 0!==(null===(r=i.converter)||void 0===r?void 0:r.toAttribute)?i.converter:Vv).toAttribute(e,i.type);this._$El=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$El=null}}_$AK(t,e){var i;const r=this.constructor,o=r._$Ev.get(t);if(void 0!==o&&this._$El!==o){const t=r.getPropertyOptions(o),s="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(i=t.converter)||void 0===i?void 0:i.fromAttribute)?t.converter:Vv;this._$El=o,this[o]=s.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,i){let r=!0;void 0!==t&&(((i=i||this.constructor.getPropertyOptions(t)).hasChanged||Wv)(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))):r=!1),!this.isUpdatePending&&r&&(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){}}
5815
5815
  /**
5816
5816
  * @license
5817
5817
  * Copyright 2017 Google LLC
5818
5818
  * SPDX-License-Identifier: BSD-3-Clause
5819
5819
  */
5820
- var Zd;Kd[Xd]=!0,Kd.elementProperties=new Map,Kd.elementStyles=[],Kd.shadowRootOptions={mode:"open"},null==qd||qd({ReactiveElement:Kd}),(null!==(Bd=Fd.reactiveElementVersions)&&void 0!==Bd?Bd:Fd.reactiveElementVersions=[]).push("1.6.3");const $d=window,Jd=$d.trustedTypes,Qd=Jd?Jd.createPolicy("lit-html",{createHTML:t=>t}):void 0,tm="$lit$",em=`lit$${(Math.random()+"").slice(9)}$`,im="?"+em,rm=`<${im}>`,om=document,sm=()=>om.createComment(""),nm=t=>null===t||"object"!=typeof t&&"function"!=typeof t,am=Array.isArray,lm="[ \t\n\f\r]",hm=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,cm=/-->/g,um=/>/g,dm=RegExp(`>|${lm}(?:([^\\s"'>=/]+)(${lm}*=${lm}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),mm=/'/g,pm=/"/g,fm=/^(?:script|style|textarea|title)$/i,vm=Symbol.for("lit-noChange"),gm=Symbol.for("lit-nothing"),bm=new WeakMap,_m=om.createTreeWalker(om,129,null,!1);function ym(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Qd?Qd.createHTML(e):e}const wm=(t,e)=>{const i=t.length-1,r=[];let o,s=2===e?"<svg>":"",n=hm;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===hm?"!--"===l[1]?n=cm:void 0!==l[1]?n=um:void 0!==l[2]?(fm.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=dm):void 0!==l[3]&&(n=dm):n===dm?">"===l[0]?(n=null!=o?o:hm,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?dm:'"'===l[3]?pm:mm):n===pm||n===mm?n=dm:n===cm||n===um?n=hm:(n=dm,o=void 0);const u=n===dm&&t[e+1].startsWith("/>")?" ":"";s+=n===hm?i+rm:h>=0?(r.push(a),i.slice(0,h)+tm+i.slice(h)+em+u):i+em+(-2===h?(r.push(void 0),e):u)}return[ym(t,s+(t[i]||"<?>")+(2===e?"</svg>":"")),r]};class Em{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,s=0;const n=t.length-1,a=this.parts,[l,h]=wm(t,e);if(this.el=Em.createElement(l,i),_m.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=_m.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(tm)||e.startsWith(em)){const i=h[s++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+tm).split(em),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?Im:"?"===e[1]?Dm:"@"===e[1]?Nm:Sm})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(fm.test(r.tagName)){const t=r.textContent.split(em),e=t.length-1;if(e>0){r.textContent=Jd?Jd.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],sm()),_m.nextNode(),a.push({type:2,index:++o});r.append(t[e],sm())}}}else if(8===r.nodeType)if(r.data===im)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(em,t+1));)a.push({type:7,index:o}),t+=em.length-1}o++}}static createElement(t,e){const i=om.createElement("template");return i.innerHTML=t,i}}function xm(t,e,i=t,r){var o,s,n,a;if(e===vm)return e;let l=void 0!==r?null===(o=i._$Co)||void 0===o?void 0:o[r]:i._$Cl;const h=nm(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,r)),void 0!==r?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[r]=l:i._$Cl=l),void 0!==l&&(e=xm(t,l._$AS(t,e.values),l,r)),e}class Am{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:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:om).importNode(i,!0);_m.currentNode=o;let s=_m.nextNode(),n=0,a=0,l=r[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new km(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new Om(s,this,t)),this._$AV.push(e),l=r[++a]}n!==(null==l?void 0:l.index)&&(s=_m.nextNode(),n++)}return _m.currentNode=om,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class km{constructor(t,e,i,r){var o;this.type=2,this._$AH=gm,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=xm(this,t,e),nm(t)?t===gm||null==t||""===t?(this._$AH!==gm&&this._$AR(),this._$AH=gm):t!==this._$AH&&t!==vm&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>am(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==gm&&nm(this._$AH)?this._$AA.nextSibling.data=t:this.$(om.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=Em.createElement(ym(r.h,r.h[0]),this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new Am(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=bm.get(t.strings);return void 0===e&&bm.set(t.strings,e=new Em(t)),e}T(t){am(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new km(this.k(sm()),this.k(sm()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$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 Sm{constructor(t,e,i,r,o){this.type=1,this._$AH=gm,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=gm}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let s=!1;if(void 0===o)t=xm(this,t,e,0),s=!nm(t)||t!==this._$AH&&t!==vm,s&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=xm(this,r[i+n],e,n),a===vm&&(a=this._$AH[n]),s||(s=!nm(a)||a!==this._$AH[n]),a===gm?t=gm:t!==gm&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===gm?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Im extends Sm{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===gm?void 0:t}}const Tm=Jd?Jd.emptyScript:"";class Dm extends Sm{constructor(){super(...arguments),this.type=4}j(t){t&&t!==gm?this.element.setAttribute(this.name,Tm):this.element.removeAttribute(this.name)}}class Nm extends Sm{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=xm(this,t,e,0))&&void 0!==i?i:gm)===vm)return;const r=this._$AH,o=t===gm&&r!==gm||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==gm&&(r===gm||o);o&&this.element.removeEventListener(this.name,this,r),s&&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 Om{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){xm(this,t)}}const Cm=$d.litHtmlPolyfillSupport;
5820
+ var $v;Xv[Kv]=!0,Xv.elementProperties=new Map,Xv.elementStyles=[],Xv.shadowRootOptions={mode:"open"},null==qv||qv({ReactiveElement:Xv}),(null!==(Pv=jv.reactiveElementVersions)&&void 0!==Pv?Pv:jv.reactiveElementVersions=[]).push("1.6.3");const Zv=window,Jv=Zv.trustedTypes,Qv=Jv?Jv.createPolicy("lit-html",{createHTML:t=>t}):void 0,tg="$lit$",eg=`lit$${(Math.random()+"").slice(9)}$`,ig="?"+eg,rg=`<${ig}>`,og=document,sg=()=>og.createComment(""),ng=t=>null===t||"object"!=typeof t&&"function"!=typeof t,ag=Array.isArray,lg="[ \t\n\f\r]",hg=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,cg=/-->/g,ug=/>/g,dg=RegExp(`>|${lg}(?:([^\\s"'>=/]+)(${lg}*=${lg}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),mg=/'/g,pg=/"/g,fg=/^(?:script|style|textarea|title)$/i,vg=Symbol.for("lit-noChange"),gg=Symbol.for("lit-nothing"),bg=new WeakMap,_g=og.createTreeWalker(og,129,null,!1);function yg(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==Qv?Qv.createHTML(e):e}const Eg=(t,e)=>{const i=t.length-1,r=[];let o,s=2===e?"<svg>":"",n=hg;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===hg?"!--"===l[1]?n=cg:void 0!==l[1]?n=ug:void 0!==l[2]?(fg.test(l[2])&&(o=RegExp("</"+l[2],"g")),n=dg):void 0!==l[3]&&(n=dg):n===dg?">"===l[0]?(n=null!=o?o:hg,h=-1):void 0===l[1]?h=-2:(h=n.lastIndex-l[2].length,a=l[1],n=void 0===l[3]?dg:'"'===l[3]?pg:mg):n===pg||n===mg?n=dg:n===cg||n===ug?n=hg:(n=dg,o=void 0);const u=n===dg&&t[e+1].startsWith("/>")?" ":"";s+=n===hg?i+rg:h>=0?(r.push(a),i.slice(0,h)+tg+i.slice(h)+eg+u):i+eg+(-2===h?(r.push(void 0),e):u)}return[yg(t,s+(t[i]||"<?>")+(2===e?"</svg>":"")),r]};class wg{constructor({strings:t,_$litType$:e},i){let r;this.parts=[];let o=0,s=0;const n=t.length-1,a=this.parts,[l,h]=Eg(t,e);if(this.el=wg.createElement(l,i),_g.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(r=_g.nextNode())&&a.length<n;){if(1===r.nodeType){if(r.hasAttributes()){const t=[];for(const e of r.getAttributeNames())if(e.endsWith(tg)||e.startsWith(eg)){const i=h[s++];if(t.push(e),void 0!==i){const t=r.getAttribute(i.toLowerCase()+tg).split(eg),e=/([.?@])?(.*)/.exec(i);a.push({type:1,index:o,name:e[2],strings:t,ctor:"."===e[1]?Cg:"?"===e[1]?Ng:"@"===e[1]?Ig:Sg})}else a.push({type:6,index:o})}for(const e of t)r.removeAttribute(e)}if(fg.test(r.tagName)){const t=r.textContent.split(eg),e=t.length-1;if(e>0){r.textContent=Jv?Jv.emptyScript:"";for(let i=0;i<e;i++)r.append(t[i],sg()),_g.nextNode(),a.push({type:2,index:++o});r.append(t[e],sg())}}}else if(8===r.nodeType)if(r.data===ig)a.push({type:2,index:o});else{let t=-1;for(;-1!==(t=r.data.indexOf(eg,t+1));)a.push({type:7,index:o}),t+=eg.length-1}o++}}static createElement(t,e){const i=og.createElement("template");return i.innerHTML=t,i}}function xg(t,e,i=t,r){var o,s,n,a;if(e===vg)return e;let l=void 0!==r?null===(o=i._$Co)||void 0===o?void 0:o[r]:i._$Cl;const h=ng(e)?void 0:e._$litDirective$;return(null==l?void 0:l.constructor)!==h&&(null===(s=null==l?void 0:l._$AO)||void 0===s||s.call(l,!1),void 0===h?l=void 0:(l=new h(t),l._$AT(t,i,r)),void 0!==r?(null!==(n=(a=i)._$Co)&&void 0!==n?n:a._$Co=[])[r]=l:i._$Cl=l),void 0!==l&&(e=xg(t,l._$AS(t,e.values),l,r)),e}class kg{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:r}=this._$AD,o=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:og).importNode(i,!0);_g.currentNode=o;let s=_g.nextNode(),n=0,a=0,l=r[0];for(;void 0!==l;){if(n===l.index){let e;2===l.type?e=new Ag(s,s.nextSibling,this,t):1===l.type?e=new l.ctor(s,l.name,l.strings,this,t):6===l.type&&(e=new Dg(s,this,t)),this._$AV.push(e),l=r[++a]}n!==(null==l?void 0:l.index)&&(s=_g.nextNode(),n++)}return _g.currentNode=og,o}v(t){let e=0;for(const i of this._$AV)void 0!==i&&(void 0!==i.strings?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class Ag{constructor(t,e,i,r){var o;this.type=2,this._$AH=gg,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=r,this._$Cp=null===(o=null==r?void 0:r.isConnected)||void 0===o||o}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=xg(this,t,e),ng(t)?t===gg||null==t||""===t?(this._$AH!==gg&&this._$AR(),this._$AH=gg):t!==this._$AH&&t!==vg&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>ag(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==gg&&ng(this._$AH)?this._$AA.nextSibling.data=t:this.$(og.createTextNode(t)),this._$AH=t}g(t){var e;const{values:i,_$litType$:r}=t,o="number"==typeof r?this._$AC(t):(void 0===r.el&&(r.el=wg.createElement(yg(r.h,r.h[0]),this.options)),r);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===o)this._$AH.v(i);else{const t=new kg(o,this),e=t.u(this.options);t.v(i),this.$(e),this._$AH=t}}_$AC(t){let e=bg.get(t.strings);return void 0===e&&bg.set(t.strings,e=new wg(t)),e}T(t){ag(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,r=0;for(const o of t)r===e.length?e.push(i=new Ag(this.k(sg()),this.k(sg()),this,this.options)):i=e[r],i._$AI(o),r++;r<e.length&&(this._$AR(i&&i._$AB.nextSibling,r),e.length=r)}_$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 Sg{constructor(t,e,i,r,o){this.type=1,this._$AH=gg,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=o,i.length>2||""!==i[0]||""!==i[1]?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=gg}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,i,r){const o=this.strings;let s=!1;if(void 0===o)t=xg(this,t,e,0),s=!ng(t)||t!==this._$AH&&t!==vg,s&&(this._$AH=t);else{const r=t;let n,a;for(t=o[0],n=0;n<o.length-1;n++)a=xg(this,r[i+n],e,n),a===vg&&(a=this._$AH[n]),s||(s=!ng(a)||a!==this._$AH[n]),a===gg?t=gg:t!==gg&&(t+=(null!=a?a:"")+o[n+1]),this._$AH[n]=a}s&&!r&&this.j(t)}j(t){t===gg?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class Cg extends Sg{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===gg?void 0:t}}const Tg=Jv?Jv.emptyScript:"";class Ng extends Sg{constructor(){super(...arguments),this.type=4}j(t){t&&t!==gg?this.element.setAttribute(this.name,Tg):this.element.removeAttribute(this.name)}}class Ig extends Sg{constructor(t,e,i,r,o){super(t,e,i,r,o),this.type=5}_$AI(t,e=this){var i;if((t=null!==(i=xg(this,t,e,0))&&void 0!==i?i:gg)===vg)return;const r=this._$AH,o=t===gg&&r!==gg||t.capture!==r.capture||t.once!==r.once||t.passive!==r.passive,s=t!==gg&&(r===gg||o);o&&this.element.removeEventListener(this.name,this,r),s&&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 Dg{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){xg(this,t)}}const Og=Zv.litHtmlPolyfillSupport;
5821
5821
  /**
5822
5822
  * @license
5823
5823
  * Copyright 2017 Google LLC
5824
5824
  * SPDX-License-Identifier: BSD-3-Clause
5825
5825
  */
5826
- var Rm,zm;null==Cm||Cm(Em,km),(null!==(Zd=$d.litHtmlVersions)&&void 0!==Zd?Zd:$d.litHtmlVersions=[]).push("2.8.0");class Gm extends Kd{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var r,o;const s=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let n=s._$litPart$;if(void 0===n){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;s._$litPart$=n=new km(e.insertBefore(sm(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return vm}}Gm.finalized=!0,Gm._$litElement$=!0,null===(Rm=globalThis.litElementHydrateSupport)||void 0===Rm||Rm.call(globalThis,{LitElement:Gm});const Um=globalThis.litElementPolyfillSupport;null==Um||Um({LitElement:Gm}),(null!==(zm=globalThis.litElementVersions)&&void 0!==zm?zm:globalThis.litElementVersions=[]).push("3.3.3");
5826
+ var zg,Rg;null==Og||Og(wg,Ag),(null!==($v=Zv.litHtmlVersions)&&void 0!==$v?$v:Zv.litHtmlVersions=[]).push("2.8.0");class Mg extends Xv{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const i=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=i.firstChild),i}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,i)=>{var r,o;const s=null!==(r=null==i?void 0:i.renderBefore)&&void 0!==r?r:e;let n=s._$litPart$;if(void 0===n){const t=null!==(o=null==i?void 0:i.renderBefore)&&void 0!==o?o:null;s._$litPart$=n=new Ag(e.insertBefore(sg(),t),t,void 0,null!=i?i:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return vg}}Mg.finalized=!0,Mg._$litElement$=!0,null===(zg=globalThis.litElementHydrateSupport)||void 0===zg||zg.call(globalThis,{LitElement:Mg});const Gg=globalThis.litElementPolyfillSupport;null==Gg||Gg({LitElement:Mg}),(null!==(Rg=globalThis.litElementVersions)&&void 0!==Rg?Rg:globalThis.litElementVersions=[]).push("3.3.3");
5827
5827
  /**
5828
5828
  * @license
5829
5829
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
5830
5830
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5831
5831
  */
5832
- const Mm=((t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1]),t[0]);return new Ld(i,t,Ud)})`
5832
+ const Ug=((t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+t[r+1]),t[0]);return new Bv(i,t,Gv)})`
5833
5833
  :host {
5834
5834
  display: inline-block;
5835
5835
  position: relative;
@@ -5889,12 +5889,12 @@ const Mm=((t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0==
5889
5889
  outline-color: GrayText;
5890
5890
  }
5891
5891
  }
5892
- `,Lm=t=>class extends($r(so(oo(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}}
5892
+ `,Bg=t=>class extends(Zr(so(oo(t)))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}}
5893
5893
  /**
5894
5894
  * @license
5895
5895
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
5896
5896
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5897
- */;vt("vaadin-button",Mm,{moduleId:"vaadin-button-styles"});class Pm extends(Lm(lr(wt(uo(Li))))){static get is(){return"vaadin-button"}static get template(){return(t=>t`
5897
+ */;vt("vaadin-button",Ug,{moduleId:"vaadin-button-styles"});class Lg extends(Bg(lr(Et(uo(Bi))))){static get is(){return"vaadin-button"}static get template(){return(t=>t`
5898
5898
  <div class="vaadin-button-container">
5899
5899
  <span part="prefix" aria-hidden="true">
5900
5900
  <slot name="prefix"></slot>
@@ -5912,13 +5912,13 @@ const Mm=((t,...e)=>{const i=1===t.length?t[0]:e.reduce(((e,i,r)=>e+(t=>{if(!0==
5912
5912
  * @license
5913
5913
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
5914
5914
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5915
- */)(Ui)}ready(){super.ready(),this._tooltipController=new vr(this),this.addController(this._tooltipController)}}l(Pm),l(
5915
+ */)(Gi)}ready(){super.ready(),this._tooltipController=new vr(this),this.addController(this._tooltipController)}}l(Lg),l(
5916
5916
  /**
5917
5917
  * @license
5918
5918
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
5919
5919
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5920
5920
  */
5921
- class extends Pm{static get is(){return"vaadin-password-field-button"}static get template(){return Ui`
5921
+ class extends Lg{static get is(){return"vaadin-password-field-button"}static get template(){return Gi`
5922
5922
  <style>
5923
5923
  :host {
5924
5924
  display: block;
@@ -5935,22 +5935,22 @@ class extends Pm{static get is(){return"vaadin-password-field-button"}static get
5935
5935
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
5936
5936
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5937
5937
  */
5938
- const Bm=Ui`
5938
+ const Pg=Gi`
5939
5939
  <div part="reveal-button" slot="suffix">
5940
5940
  <slot name="reveal"></slot>
5941
5941
  </div>
5942
- `;let Fm;l(class extends Cd{static get is(){return"vaadin-password-field"}static get template(){if(!Fm){Fm=super.template.cloneNode(!0);const t=Bm.content.querySelector('[part="reveal-button"]');Fm.content.querySelector('[part="input-field"]').appendChild(t)}return Fm}static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n.*)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){return[...super.slotStyles,`\n ${this.localName} [slot="input"]::-ms-reveal {\n display: none;\n }\n `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new fr(this,"reveal","vaadin-password-field-button",{initializer:t=>{t.disabled=this.disabled,t.addEventListener("click",this.__boundRevealButtonClick),t.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(t){super._onChange(t),this.__lastChange=this.inputElement.value}_shouldSetFocus(t){return t.target===this.inputElement||t.target===this._revealNode}_shouldRemoveFocus(t){return!(t.relatedTarget===this._revealNode||t.relatedTarget===this.inputElement&&t.target===this._revealNode)}_setFocused(t){if(super._setFocused(t),t){const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}else this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})))}__updateAriaLabel(t){t.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",t.reveal)}__i18nChanged(t){this.__updateAriaLabel(t.base)}_revealButtonHiddenChanged(t){this._toggleRevealHidden(t)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(t){this._revealNode&&(t?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(t){this._revealNode&&this._revealNode.setAttribute("aria-pressed",t?"true":"false")}_passwordVisibleChanged(t){this._setType(t?"text":"password"),this._updateToggleState(t)}_disabledChanged(t,e){super._disabledChanged(t,e),this._revealNode&&(this._revealNode.disabled=t)}});const jm=class{constructor(i){t(this,i),this.sendOriginalValidityState=e(this,"sendOriginalValidityState",7),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.value="",this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=t=>{this.value=t.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleRevealField=t=>{t.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=t=>{this.value=t.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}originalValidityChangedHandler(t){this.isDuplicateInput&&(t.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,""!==this.value&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&!0===this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",(t=>{this.handleRevealField(t)})),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(t){this.passwordComplexity=this.validation.custom.filter((t=>"regex"===t.rule)).map((e=>{const i=new RegExp(e.pattern).test(t);return{rule:e.displayName,ruleKey:e.errorKey,passed:i}}))}setValidity(){var t,e;return(!this.isDuplicateInput||this.duplicateInputValue===this.value)&&!!(null===(t=this.passwordComplexity)||void 0===t?void 0:t.every((t=>t.passed)))&&(null===(e=this.inputReference)||void 0===e?void 0:e.validity.valid)}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,r;if(this.isDuplicateInput&&!this.originalValid)return n("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return n(`${i}`,this.language)?n(`${i}`,this.language):r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return n("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return n("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(r=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===r?void 0:r.errorMessage;return n(`${t}`,this.language)?n(`${t}`,this.language):e}}renderTooltip(){return this.showTooltip?i("div",{class:"password__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}renderComplexityPopup(){const t=this.passwordComplexity.length,e=this.passwordComplexity.filter((t=>t.passed)).length/t,r=this.passwordComplexity.every((t=>t.passed));return i("div",{class:"password__complexity "+(this.showPopup?"":"password__complexity--hidden")},i("div",{class:"password__complexity--strength"},i("p",{class:"password__complexity--text"},n("passwordStrength",this.language)," ",i("span",{class:"password__complexity--text-bold"},n(r?"passwordStrengthStrong":"passwordStrengthWeak",this.language))),i("meter",{value:e,min:"0",max:"1"})),i("div",null,this.passwordComplexity.map(((t,e)=>i("div",{key:e},i("input",{class:"password__complexity--checkbox",type:"checkbox",checked:t.passed,disabled:!0}),i("span",null,n(`${t.ruleKey}`,this.language)?n(`${t.ruleKey}`,this.language):t.rule))))))}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"c704b51efdf53817beb1541b4794e0b11b490a24",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"e590afa403084ff95a8735ade400ab81ad16937f",class:"password__wrapper--flex"},i("label",{key:"9d8db00b59c4b9594538aeacee3ef5a0e678c0e9",class:"password__label "+(this.validation.mandatory?"password__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"bb39f6018cf688fafcd0b5bef91ba079edf09daf",class:"password__wrapper--relative"},this.tooltip&&i("img",{key:"d8dbd086da34a8c7db9b5826654530bdb888c927",class:"password__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("vaadin-password-field",{key:"ae1c212d663fe379561b1c514087629409196ac3",type:"password",id:`${this.name}__input`,class:`password__input ${t}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),i("small",{key:"2fa1e25239a7314399c16b2f897873b7a31e9f77",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.isDuplicateInput&&this.renderComplexityPopup())}get element(){return r(this)}static get watchers(){return{isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};jm.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.password{font-family:"Roboto";font-style:normal}.password__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.password__wrapper--autofilled{pointer-events:none}.password__wrapper--autofilled .password__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.password__wrapper--autofilled .password__input::part(input-field){color:var(--emw--color-black, #000000)}.password__wrapper--flex{display:flex;gap:5px}.password__wrapper--relative{position:relative}.password__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.password__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.password__input{width:inherit;border:none}.password__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.password__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.password__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);background-color:var(--emw--color-white, #FFFFFF);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;position:relative;margin-bottom:unset;height:44px;padding:0;width:100%}.password__input::part(reveal-button){position:relative;right:10px}.password__input::part(reveal-button)::before{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.password__input>input{padding:5px 15px}.password__input>input:placeholder-shown{color:var(--emw--color-gray-150, #828282)}.password__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.password__complexity{position:relative;padding:10px;display:flex;flex-direction:column;gap:20px;justify-content:center;margin-top:20px;font-weight:300;background:var(--emw--color-white, #FFFFFF);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;height:150px;border:1px solid #B0B0B0;}.password__complexity meter{border-color:transparent;}.password__complexity meter[value="1"]::-moz-meter-bar{background-color:var(--emw--color-valid, #48952a)}.password__complexity meter[value="1"]::-webkit-meter-optimum-value{background-color:var(--emw--color-valid, #48952a)}.password__complexity meter:not([value="1"])::-moz-meter-bar{background-color:var(--emw--color-error, #FD2839)}.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value{background-color:var(--emw--color-error, #FD2839)}.password__complexity--strength{display:flex;justify-content:space-evenly;align-items:center}.password__complexity--strength meter::-moz-meter-bar{background:#B0B0B0}.password__complexity--hidden{display:none}.password__complexity--text-bold{font-weight:500}.password__complexity--checkbox{margin-right:5px}.password__complexity:after{content:"";position:absolute;width:25px;height:25px;border-top:1px solid var(--emw--color-gray-150, #828282);border-right:0 solid var(--emw--color-gray-150, #828282);border-left:1px solid var(--emw--color-gray-150, #828282);border-bottom:0 solid var(--emw--color-gray-150, #828282);bottom:92%;left:50%;margin-left:-25px;transform:rotate(45deg);margin-top:-25px;background-color:var(--emw--color-white, #FFFFFF)}.password__tooltip-icon{width:16px;height:auto}.password__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-150, #828282);color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.password__tooltip.visible{opacity:1}';const Vm=class{constructor(i){t(this,i),this.sendInputValue=e(this,"sendInputValue",7),this.sendValidityState=e(this,"sendValidityState",7),this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}validityStateHandler(t){this.sendValidityState.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(t){this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return n("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"radio__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return i("fieldset",{key:"3d90735f7dc8fef6a96dc85b8f9ba22880cb205f",class:`radio__fieldset ${this.name}__input`,ref:t=>this.stylingContainer=t},i("legend",{key:"9472ed76f5c7fabb90d2b3d39eeb9e18f05a30dd",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map((t=>i("div",{class:"radio__wrapper"},i("input",{type:"radio",class:"radio__input",id:`${t.label}__input`,ref:t=>this.inputReference=t,value:t.value,name:this.name,required:this.validation.mandatory,onClick:t=>this.handleClick(t)}),i("label",{htmlFor:`${t.label}__input`},t.label)))),i("small",{key:"2ae0947580bb8a0a3d889a2d9ebd0b82458fdfd2",class:"radio__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"4f3cbf341f1c559bbdf44ca5d169be7a64d46e97",class:"radio__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Vm.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}";
5942
+ `;let jg;l(class extends Ov{static get is(){return"vaadin-password-field"}static get template(){if(!jg){jg=super.template.cloneNode(!0);const t=Pg.content.querySelector('[part="reveal-button"]');jg.content.querySelector('[part="input-field"]').appendChild(t)}return jg}static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n.*)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){return[...super.slotStyles,`\n ${this.localName} [slot="input"]::-ms-reveal {\n display: none;\n }\n `]}get _revealNode(){return this._revealButtonController&&this._revealButtonController.node}ready(){super.ready(),this._revealPart=this.shadowRoot.querySelector('[part="reveal-button"]'),this._revealButtonController=new fr(this,"reveal","vaadin-password-field-button",{initializer:t=>{t.disabled=this.disabled,t.addEventListener("click",this.__boundRevealButtonClick),t.addEventListener("mousedown",this.__boundRevealButtonMouseDown)}}),this.addController(this._revealButtonController),this.__updateAriaLabel(this.i18n),this._updateToggleState(!1),this._toggleRevealHidden(this.revealButtonHidden),this.inputElement&&(this.inputElement.autocapitalize="off")}_onChange(t){super._onChange(t),this.__lastChange=this.inputElement.value}_shouldSetFocus(t){return t.target===this.inputElement||t.target===this._revealNode}_shouldRemoveFocus(t){return!(t.relatedTarget===this._revealNode||t.relatedTarget===this.inputElement&&t.target===this._revealNode)}_setFocused(t){if(super._setFocused(t),t){const t=this.getRootNode().activeElement===this._revealNode;this.toggleAttribute("focus-ring",this._keyboardActive&&!t)}else this._setPasswordVisible(!1),this.__lastChange!==this.inputElement.value&&(this.__lastChange=this.inputElement.value,this.dispatchEvent(new CustomEvent("change",{bubbles:!0})))}__updateAriaLabel(t){t.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",t.reveal)}__i18nChanged(t){this.__updateAriaLabel(t.base)}_revealButtonHiddenChanged(t){this._toggleRevealHidden(t)}_togglePasswordVisibility(){this._setPasswordVisible(!this.passwordVisible)}_onRevealButtonClick(){this._togglePasswordVisibility()}_onRevealButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_toggleRevealHidden(t){this._revealNode&&(t?(this._revealPart.setAttribute("hidden",""),this._revealNode.setAttribute("tabindex","-1"),this._revealNode.setAttribute("aria-hidden","true")):(this._revealPart.removeAttribute("hidden"),this._revealNode.setAttribute("tabindex","0"),this._revealNode.removeAttribute("aria-hidden")))}_updateToggleState(t){this._revealNode&&this._revealNode.setAttribute("aria-pressed",t?"true":"false")}_passwordVisibleChanged(t){this._setType(t?"text":"password"),this._updateToggleState(t)}_disabledChanged(t,e){super._disabledChanged(t,e),this._revealNode&&(this._revealNode.disabled=t)}});const Hg=class{constructor(i){t(this,i),this.sendOriginalValidityState=e(this,"sendOriginalValidityState",7),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.value="",this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=t=>{this.value=t.target.value,this.calculateComplexity(this.value),this.showPopup=!0,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleRevealField=t=>{t.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=t=>{this.value=t.target.value,this.showPopup=!1,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()},this.handleFocus=()=>{this.showPopup=!0,this.calculateComplexity(this.value)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}valueChanged(){this.isDuplicateInput||(this.calculateComplexity(this.value),this.sendOriginalValidityState.emit({name:this.name,valid:this.setValidity()}))}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}originalValidityChangedHandler(t){this.isDuplicateInput&&(t.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,""!==this.value&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&!0===this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",(t=>{this.handleRevealField(t)})),this.defaultValue&&(this.value=this.defaultValue,this.calculateComplexity(this.value),this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.duplicateInputValue=this.defaultValue,this.touched=!0)),this.isValid=this.setValidity()}disconnectedCallback(){this.passwordButton.removeEventListener("click",this.handleRevealField)}calculateComplexity(t){this.passwordComplexity=this.validation.custom.filter((t=>"regex"===t.rule)).map((e=>{const i=new RegExp(e.pattern).test(t);return{rule:e.displayName,ruleKey:e.errorKey,passed:i}}))}setValidity(){var t,e;return(!this.isDuplicateInput||this.duplicateInputValue===this.value)&&!!(null===(t=this.passwordComplexity)||void 0===t?void 0:t.every((t=>t.passed)))&&(null===(e=this.inputReference)||void 0===e?void 0:e.validity.valid)}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,r;if(this.isDuplicateInput&&!this.originalValid)return n("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return n(`${i}`,this.language)?n(`${i}`,this.language):r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return n("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return n("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(r=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===r?void 0:r.errorMessage;return n(`${t}`,this.language)?n(`${t}`,this.language):e}}renderTooltip(){return this.showTooltip?i("div",{class:"password__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}renderComplexityPopup(){const t=this.passwordComplexity.length,e=this.passwordComplexity.filter((t=>t.passed)).length/t,r=this.passwordComplexity.every((t=>t.passed));return i("div",{class:"password__complexity "+(this.showPopup?"":"password__complexity--hidden")},i("div",{class:"password__complexity--strength"},i("p",{class:"password__complexity--text"},n("passwordStrength",this.language)," ",i("span",{class:"password__complexity--text-bold"},n(r?"passwordStrengthStrong":"passwordStrengthWeak",this.language))),i("meter",{value:e,min:"0",max:"1"})),i("div",null,this.passwordComplexity.map(((t,e)=>i("div",{key:e},i("input",{class:"password__complexity--checkbox",type:"checkbox",checked:t.passed,disabled:!0}),i("span",null,n(`${t.ruleKey}`,this.language)?n(`${t.ruleKey}`,this.language):t.rule))))))}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"c704b51efdf53817beb1541b4794e0b11b490a24",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"e590afa403084ff95a8735ade400ab81ad16937f",class:"password__wrapper--flex"},i("label",{key:"9d8db00b59c4b9594538aeacee3ef5a0e678c0e9",class:"password__label "+(this.validation.mandatory?"password__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"bb39f6018cf688fafcd0b5bef91ba079edf09daf",class:"password__wrapper--relative"},this.tooltip&&i("img",{key:"d8dbd086da34a8c7db9b5826654530bdb888c927",class:"password__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("vaadin-password-field",{key:"ae1c212d663fe379561b1c514087629409196ac3",type:"password",id:`${this.name}__input`,class:`password__input ${t}`,name:this.name,readOnly:this.autofilled,value:this.defaultValue,required:this.validation.mandatory,maxlength:this.validation.maxLength,minlength:this.validation.minLength,pattern:this.validationPattern,placeholder:`${this.placeholder}`,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),i("small",{key:"2fa1e25239a7314399c16b2f897873b7a31e9f77",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.isDuplicateInput&&this.renderComplexityPopup())}get element(){return r(this)}static get watchers(){return{isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};Hg.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.password{font-family:"Roboto";font-style:normal}.password__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.password__wrapper--autofilled{pointer-events:none}.password__wrapper--autofilled .password__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.password__wrapper--autofilled .password__input::part(input-field){color:var(--emw--color-black, #000000)}.password__wrapper--flex{display:flex;gap:5px}.password__wrapper--relative{position:relative}.password__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.password__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.password__input{width:inherit;border:none}.password__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.password__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.password__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);background-color:var(--emw--color-white, #FFFFFF);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;position:relative;margin-bottom:unset;height:44px;padding:0;width:100%}.password__input::part(reveal-button){position:relative;right:10px}.password__input::part(reveal-button)::before{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.password__input>input{padding:5px 15px}.password__input>input:placeholder-shown{color:var(--emw--color-gray-150, #828282)}.password__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.password__complexity{position:relative;padding:10px;display:flex;flex-direction:column;gap:20px;justify-content:center;margin-top:20px;font-weight:300;background:var(--emw--color-white, #FFFFFF);-webkit-border-radius:5px;-moz-border-radius:5px;border-radius:5px;height:150px;border:1px solid #B0B0B0;}.password__complexity meter{border-color:transparent;}.password__complexity meter[value="1"]::-moz-meter-bar{background-color:var(--emw--color-valid, #48952a)}.password__complexity meter[value="1"]::-webkit-meter-optimum-value{background-color:var(--emw--color-valid, #48952a)}.password__complexity meter:not([value="1"])::-moz-meter-bar{background-color:var(--emw--color-error, #FD2839)}.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value{background-color:var(--emw--color-error, #FD2839)}.password__complexity--strength{display:flex;justify-content:space-evenly;align-items:center}.password__complexity--strength meter::-moz-meter-bar{background:#B0B0B0}.password__complexity--hidden{display:none}.password__complexity--text-bold{font-weight:500}.password__complexity--checkbox{margin-right:5px}.password__complexity:after{content:"";position:absolute;width:25px;height:25px;border-top:1px solid var(--emw--color-gray-150, #828282);border-right:0 solid var(--emw--color-gray-150, #828282);border-left:1px solid var(--emw--color-gray-150, #828282);border-bottom:0 solid var(--emw--color-gray-150, #828282);bottom:92%;left:50%;margin-left:-25px;transform:rotate(45deg);margin-top:-25px;background-color:var(--emw--color-white, #FFFFFF)}.password__tooltip-icon{width:16px;height:auto}.password__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-150, #828282);color:#2B2D3F;padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.password__tooltip.visible{opacity:1}';const Fg=class{constructor(i){t(this,i),this.sendInputValue=e(this,"sendInputValue",7),this.sendValidityState=e(this,"sendValidityState",7),this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}validityStateHandler(t){this.sendValidityState.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(t){this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return n("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"radio__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return i("fieldset",{key:"3d90735f7dc8fef6a96dc85b8f9ba22880cb205f",class:`radio__fieldset ${this.name}__input`,ref:t=>this.stylingContainer=t},i("legend",{key:"9472ed76f5c7fabb90d2b3d39eeb9e18f05a30dd",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map((t=>i("div",{class:"radio__wrapper"},i("input",{type:"radio",class:"radio__input",id:`${t.label}__input`,ref:t=>this.inputReference=t,value:t.value,name:this.name,required:this.validation.mandatory,onClick:t=>this.handleClick(t)}),i("label",{htmlFor:`${t.label}__input`},t.label)))),i("small",{key:"2ae0947580bb8a0a3d889a2d9ebd0b82458fdfd2",class:"radio__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"4f3cbf341f1c559bbdf44ca5d169be7a64d46e97",class:"radio__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Fg.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.radio__fieldset{border:none;position:relative}.radio__wrapper{display:flex;gap:5px}.radio__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.radio__tooltip-icon{position:absolute;right:0;bottom:10px}.radio__tooltip{position:absolute;bottom:35px;right:10px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.radio__tooltip.visible{opacity:1}";
5943
5943
  /**
5944
5944
  * @license
5945
5945
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
5946
5946
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5947
5947
  */
5948
- class qm extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}l(qm);const Wm=(t,...e)=>{Et(`lumo-${t}`,e)};
5948
+ class qg extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}l(qg);const Vg=(t,...e)=>{wt(`lumo-${t}`,e)};
5949
5949
  /**
5950
5950
  * @license
5951
5951
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
5952
5952
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5953
- */Wm("font-icons",f`
5953
+ */Vg("font-icons",f`
5954
5954
  @font-face {
5955
5955
  font-family: 'lumo-icons';
5956
5956
  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==)
@@ -6003,7 +6003,7 @@ class qm extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
6003
6003
  --lumo-icons-upload: '\\ea29';
6004
6004
  --lumo-icons-user: '\\ea2a';
6005
6005
  }
6006
- `),Wm("sizing-props",f`
6006
+ `),Vg("sizing-props",f`
6007
6007
  :host {
6008
6008
  --lumo-size-xs: 1.625rem;
6009
6009
  --lumo-size-s: 1.875rem;
@@ -6018,7 +6018,7 @@ class qm extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
6018
6018
  /* For backwards compatibility */
6019
6019
  --lumo-icon-size: var(--lumo-icon-size-m);
6020
6020
  }
6021
- `),Wm("spacing-props",f`
6021
+ `),Vg("spacing-props",f`
6022
6022
  :host {
6023
6023
  /* Square */
6024
6024
  --lumo-space-xs: 0.25rem;
@@ -6047,7 +6047,7 @@ class qm extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
6047
6047
  --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
6048
6048
  --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
6049
6049
  }
6050
- `,Wm("style-props",f`
6050
+ `,Vg("style-props",f`
6051
6051
  :host {
6052
6052
  /* Border radius */
6053
6053
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -6070,7 +6070,7 @@ class qm extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static g
6070
6070
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
6071
6071
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6072
6072
  */
6073
- const Ym=f`
6073
+ const Wg=f`
6074
6074
  :host {
6075
6075
  /* prettier-ignore */
6076
6076
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -6182,7 +6182,7 @@ const Ym=f`
6182
6182
  border-left: none;
6183
6183
  border-right: 2px solid var(--lumo-contrast-30pct);
6184
6184
  }
6185
- `,{moduleId:"lumo-typography"}),Wm("typography-props",Ym);const Hm=f`
6185
+ `,{moduleId:"lumo-typography"}),Vg("typography-props",Wg);const Yg=f`
6186
6186
  :host {
6187
6187
  display: flex;
6188
6188
  align-items: center;
@@ -6261,7 +6261,7 @@ const Ym=f`
6261
6261
  width: var(--lumo-icon-size-m);
6262
6262
  height: var(--lumo-icon-size-m);
6263
6263
  }
6264
- `;vt("vaadin-item",Hm,{moduleId:"lumo-item"}),vt("vaadin-combo-box-item",[Hm,f`
6264
+ `;vt("vaadin-item",Yg,{moduleId:"lumo-item"}),vt("vaadin-combo-box-item",[Yg,f`
6265
6265
  :host {
6266
6266
  transition: background-color 100ms;
6267
6267
  overflow: hidden;
@@ -6279,7 +6279,7 @@ const Ym=f`
6279
6279
  * Copyright (c) 2022 - 2023 Vaadin Ltd.
6280
6280
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6281
6281
  */
6282
- const Xm=f`
6282
+ const Kg=f`
6283
6283
  [part~='loader'] {
6284
6284
  box-sizing: border-box;
6285
6285
  width: var(--lumo-icon-size-s);
@@ -6324,7 +6324,7 @@ const Xm=f`
6324
6324
  * @license
6325
6325
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
6326
6326
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6327
- */,Km=f`
6327
+ */,Xg=f`
6328
6328
  :host {
6329
6329
  top: var(--lumo-space-m);
6330
6330
  right: var(--lumo-space-m);
@@ -6387,13 +6387,13 @@ const Xm=f`
6387
6387
  opacity: 1;
6388
6388
  }
6389
6389
  }
6390
- `;vt("",Km,{moduleId:"lumo-overlay"});
6390
+ `;vt("",Xg,{moduleId:"lumo-overlay"});
6391
6391
  /**
6392
6392
  * @license
6393
6393
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
6394
6394
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6395
6395
  */
6396
- const Zm=f`
6396
+ const $g=f`
6397
6397
  :host([opening]),
6398
6398
  :host([closing]) {
6399
6399
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -6423,7 +6423,7 @@ const Zm=f`
6423
6423
  opacity: 0;
6424
6424
  }
6425
6425
  }
6426
- `;vt("",Zm,{moduleId:"lumo-menu-overlay-core"}),vt("",[Km,Zm,f`
6426
+ `;vt("",$g,{moduleId:"lumo-menu-overlay-core"}),vt("",[Xg,$g,f`
6427
6427
  /* Small viewport (bottom sheet) styles */
6428
6428
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
6429
6429
  @media (max-width: 420px), (max-height: 420px) {
@@ -6485,7 +6485,7 @@ const Zm=f`
6485
6485
  transform: translateY(150%);
6486
6486
  }
6487
6487
  }
6488
- `],{moduleId:"lumo-menu-overlay"}),vt("vaadin-combo-box-overlay",[Km,Zm,f`
6488
+ `],{moduleId:"lumo-menu-overlay"}),vt("vaadin-combo-box-overlay",[Xg,$g,f`
6489
6489
  [part='content'] {
6490
6490
  padding: 0;
6491
6491
  }
@@ -6506,7 +6506,7 @@ const Zm=f`
6506
6506
  :host([bottom-aligned]) [part~='overlay'] {
6507
6507
  margin-bottom: var(--lumo-space-xs);
6508
6508
  }
6509
- `,Xm,f`
6509
+ `,Kg,f`
6510
6510
  [part~='loader'] {
6511
6511
  position: absolute;
6512
6512
  z-index: 1;
@@ -6536,7 +6536,7 @@ const Zm=f`
6536
6536
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
6537
6537
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6538
6538
  */
6539
- const $m=f`
6539
+ const Zg=f`
6540
6540
  [part$='button'] {
6541
6541
  flex: none;
6542
6542
  width: 1em;
@@ -6563,13 +6563,13 @@ const $m=f`
6563
6563
  font-family: 'lumo-icons';
6564
6564
  display: block;
6565
6565
  }
6566
- `;vt("",$m,{moduleId:"lumo-field-button"});
6566
+ `;vt("",Zg,{moduleId:"lumo-field-button"});
6567
6567
  /**
6568
6568
  * @license
6569
6569
  * Copyright (c) 2017 - 2023 Vaadin Ltd.
6570
6570
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6571
6571
  */
6572
- const Jm=[yo,$m,_o,f`
6572
+ const Jg=[yo,Zg,_o,f`
6573
6573
  :host {
6574
6574
  --lumo-text-field-size: var(--lumo-size-m);
6575
6575
  color: var(--lumo-body-text-color);
@@ -6703,7 +6703,7 @@ const Jm=[yo,$m,_o,f`
6703
6703
  [part='clear-button']::before {
6704
6704
  content: var(--lumo-icons-cross);
6705
6705
  }
6706
- `];vt("",Jm,{moduleId:"lumo-input-field-shared-styles"}),vt("vaadin-combo-box",[Jm,f`
6706
+ `];vt("",Jg,{moduleId:"lumo-input-field-shared-styles"}),vt("vaadin-combo-box",[Jg,f`
6707
6707
  :host {
6708
6708
  outline: none;
6709
6709
  }
@@ -6717,12 +6717,12 @@ const Jm=[yo,$m,_o,f`
6717
6717
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
6718
6718
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6719
6719
  */
6720
- const Qm=t=>class extends t{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item.*, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(t,e,i){"hidden"===t&&null!==i?this.index=void 0:super.attributeChangedCallback(t,e,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const t=this._owner.getAttribute("dir");t&&this.setAttribute("dir",t)}requestContentUpdate(){this.renderer&&this.renderer(this,this._owner,{index:this.index,item:this.item,focused:this.focused,selected:this.selected})}__rendererOrItemChanged(t,e,i){void 0!==i&&void 0!==e&&(this._oldRenderer!==t&&(this.innerHTML="",delete this._$litPart$),t&&(this._oldRenderer=t,this.requestContentUpdate()))}__updateLabel(t,e){e||(this.textContent=t)}}
6720
+ const Qg=t=>class extends t{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item.*, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(t,e,i){"hidden"===t&&null!==i?this.index=void 0:super.attributeChangedCallback(t,e,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const t=this._owner.getAttribute("dir");t&&this.setAttribute("dir",t)}requestContentUpdate(){this.renderer&&this.renderer(this,this._owner,{index:this.index,item:this.item,focused:this.focused,selected:this.selected})}__rendererOrItemChanged(t,e,i){void 0!==i&&void 0!==e&&(this._oldRenderer!==t&&(this.innerHTML="",delete this._$litPart$),t&&(this._oldRenderer=t,this.requestContentUpdate()))}__updateLabel(t,e){e||(this.textContent=t)}}
6721
6721
  /**
6722
6722
  * @license
6723
6723
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
6724
6724
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6725
- */;class tp extends(Qm(wt(sr(Li)))){static get template(){return Ui`
6725
+ */;class tb extends(Qg(Et(sr(Bi)))){static get template(){return Gi`
6726
6726
  <style>
6727
6727
  :host {
6728
6728
  display: block;
@@ -6736,18 +6736,18 @@ const Qm=t=>class extends t{static get properties(){return{index:{type:Number},i
6736
6736
  <div part="content">
6737
6737
  <slot></slot>
6738
6738
  </div>
6739
- `}static get is(){return"vaadin-combo-box-item"}}l(tp);
6739
+ `}static get is(){return"vaadin-combo-box-item"}}l(tb);
6740
6740
  /**
6741
6741
  * @license
6742
6742
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
6743
6743
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6744
6744
  */
6745
- const ep=t=>class extends(Cn(t)){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const t=this._comboBox,e=t&&t.getAttribute("dir");e&&this.setAttribute("dir",e)}_shouldCloseOnOutsideClick(t){const e=t.composedPath();return!e.includes(this.positionTarget)&&!e.includes(this)}_setOverlayWidth(t,e){if(t&&e){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${t.clientWidth}px`);const i=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);""===i?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,i),this._updatePosition()}}}
6745
+ const eb=t=>class extends(On(t)){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const t=this._comboBox,e=t&&t.getAttribute("dir");e&&this.setAttribute("dir",e)}_shouldCloseOnOutsideClick(t){const e=t.composedPath();return!e.includes(this.positionTarget)&&!e.includes(this)}_setOverlayWidth(t,e){if(t&&e){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${t.clientWidth}px`);const i=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);""===i?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,i),this._updatePosition()}}}
6746
6746
  /**
6747
6747
  * @license
6748
6748
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
6749
6749
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6750
- */;vt("vaadin-combo-box-overlay",[Ga,f`
6750
+ */;vt("vaadin-combo-box-overlay",[Ma,f`
6751
6751
  #overlay {
6752
6752
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
6753
6753
  }
@@ -6757,7 +6757,7 @@ const ep=t=>class extends(Cn(t)){static get observers(){return["_setOverlayWidth
6757
6757
  flex-direction: column;
6758
6758
  height: 100%;
6759
6759
  }
6760
- `],{moduleId:"vaadin-combo-box-overlay-styles"});class ip extends(ep(Tn(sr(wt(Li))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return Ui`
6760
+ `],{moduleId:"vaadin-combo-box-overlay-styles"});class ib extends(eb(Tn(sr(Et(Bi))))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return Gi`
6761
6761
  <div id="backdrop" part="backdrop" hidden></div>
6762
6762
  <div part="overlay" id="overlay">
6763
6763
  <div part="loader"></div>
@@ -6769,7 +6769,7 @@ const ep=t=>class extends(Cn(t)){static get observers(){return["_setOverlayWidth
6769
6769
  * Copyright (c) 2023 Vaadin Ltd.
6770
6770
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6771
6771
  */
6772
- function rp(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
6772
+ function rb(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
6773
6773
  /**
6774
6774
  * @license
6775
6775
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
@@ -6778,12 +6778,12 @@ function rp(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
6778
6778
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
6779
6779
  * Code distributed by Google as part of the polymer project is also
6780
6780
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
6781
- */l(ip);const op=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),sp=op&&op[1]>=8,np={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){return Math.max(0,this._virtualCount-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(t){t=this._clamp(t,0,this._maxVirtualStart),this._virtualStartVal=t},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(t){(t%=this._physicalCount)<0&&(t=this._physicalCount+t),this._physicalStartVal=t},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(t){this._physicalCountVal=t},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return Boolean(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let t=this._firstVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;t=this._iterateItems(((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i}))||0,this._firstVisibleIndexVal=t}return t},get lastVisibleIndex(){let t=this._lastVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;this._iterateItems(((i,r)=>{e<this._scrollBottom&&(t=r),e+=this._getPhysicalSizeIncrement(i)})),this._lastVisibleIndexVal=t}return t},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const t=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=t-this._scrollPosition;const i=e>=0;if(this._scrollPosition=t,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const t=Math.round(e/this._physicalAverage);this._virtualStart+=t,this._physicalStart+=t,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const t=this._getReusables(i);i?(this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length):(this._virtualStart-=t.indexes.length,this._physicalStart-=t.indexes.length),this._update(t.indexes,i?null:t.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),Zi)}},_getReusables(t){let e,i,r;const o=[],s=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const c=this._scrollPosition,u=this._scrollBottom;for(t?(e=this._physicalStart,i=c-h):(e=this._physicalEnd,i=this._physicalBottom+this._scrollOffset-u);r=this._getPhysicalSizeIncrement(e),i-=r,!(o.length>=l||i<=s);)if(t){if(a+o.length+1>=this._virtualCount)break;if(h+r>=c-this._scrollOffset)break;o.push(e),h+=r,e=(e+1)%l}else{if(n-o.length<=0)break;if(h+this._physicalSize-r<=u)break;o.push(e),h-=r,e=0===e?l-1:e-1}return{indexes:o,physicalTop:h-this._scrollOffset}},_update(t,e){if(!(t&&0===t.length||0===this._physicalCount)){if(this._assignModels(t),this._updateMetrics(t),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(t){const e=this._clamp(this._physicalCount+t,3,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(.5*this._physicalCount);if(!(e<0)){if(e>0){const t=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let t=0;t<e;t++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-t)/e,i=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===i||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),Ki):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),Zi))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){const t=this._getReusables(!0);this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length,this._update(t.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(t){"items"===t.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Xi))},_iterateItems(t,e){let i,r,o,s;if(2===arguments.length&&e){for(s=0;s<e.length;s++)if(i=e[s],r=this._computeVidx(i),null!=(o=t.call(this,i,r)))return o}else{for(i=this._physicalStart,r=this._virtualStart;i<this._physicalCount;i++,r++)if(null!=(o=t.call(this,i,r)))return o;for(i=0;i<this._physicalStart;i++,r++)if(null!=(o=t.call(this,i,r)))return o}},_computeVidx(t){return t>=this._physicalStart?this._virtualStart+(t-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+t},_positionItems(){this._adjustScrollPosition();let t=this._physicalTop;this._iterateItems((e=>{this.translate3d(0,`${t}px`,0,this._physicalItems[e]),t+=this._physicalSizes[e]}))},_getPhysicalSizeIncrement(t){return this._physicalSizes[t]},_adjustScrollPosition(){const t=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==t){this._physicalTop-=t;const e=this._scrollPosition;!sp&&e>0&&this._resetScrollPosition(e-t)}},_resetScrollPosition(t){this.scrollTarget&&t>=0&&(this._scrollTop=t,this._scrollPosition=this._scrollTop)},_updateScrollerSize(t){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(t||0===this._scrollHeight||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(t){if("number"!=typeof t||t<0||t>this.items.length-1)return;if(er(),0===this._physicalCount)return;t=this._clamp(t,0,this._virtualCount-1),(!this._isIndexRendered(t)||t>=this._maxVirtualStart)&&(this._virtualStart=t-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,i=this._virtualStart,r=0;const o=this._hiddenContentSize;for(;i<t&&r<=o;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,i+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",(()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)}),Xi)},_isIndexRendered(t){return t>=this._virtualStart&&t<=this._virtualEnd},_getPhysicalIndex(t){return(this._physicalStart+(t-this._virtualStart))%this._physicalCount},_clamp:(t,e,i)=>Math.min(i,Math.max(e,t)),_debounce(t,e,i){this._debouncers||(this._debouncers={}),this._debouncers[t]=Ji.debounce(this._debouncers[t],i,e.bind(this)),Qi(this._debouncers[t])}},ap=1e3;class lp{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:r,elementsContainer:o,reorderElements:s}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=r,this.elementsContainer=o||r,this.reorderElements=s,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver((()=>this._resizeHandler())),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",(()=>this._scrollHandler())),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",(t=>this.__onWheel(t))),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",(()=>{this.__mouseDown=!0})),this.scrollTarget.addEventListener("mouseup",(()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()})))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}scrollToIndex(t){if("number"!=typeof t||isNaN(t)||0===this.size||!this.scrollTarget.offsetHeight)return;t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this.size-this._virtualCount):i<e?t<ap?(i=t,this._vidxOffset=0):(i=ap,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler()}flush(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),er(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach((r=>{r.__virtualIndex>=t&&r.__virtualIndex<=e&&(this.__updateElement(r,r.__virtualIndex,!0),i.push(r))})),this.__afterElementsUpdated(i)}_updateMetrics(t){er();let e=0,i=0;const r=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((t=>{i+=this._physicalSizes[t],this._physicalSizes[t]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[t])),e+=this._physicalSizes[t],this._physicalAverageCount+=this._physicalSizes[t]?1:0}),t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==r&&(this._physicalAverage=Math.round((o*r+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;return"border-box"===e.boxSizing?i:i+(parseFloat(e.paddingBottom)||0)+(parseFloat(e.paddingTop)||0)+(parseFloat(e.borderBottomWidth)||0)+(parseFloat(e.borderTopWidth)||0)}__updateElement(t,e,i){t.style.paddingTop&&(t.style.paddingTop=""),this.__preventElementUpdates||t.__lastUpdatedIndex===e&&!i||(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach((t=>{const e=t.offsetHeight;if(0===e)t.style.paddingTop=`${this.__placeholderHeight}px`,this.__placeholderClearDebouncer=Ji.debounce(this.__placeholderClearDebouncer,Xi,(()=>this._resizeHandler()));else{this.__elementHeightQueue.push(e),this.__elementHeightQueue.shift();const t=this.__elementHeightQueue.filter((t=>void 0!==t));this.__placeholderHeight=Math.round(t.reduce(((t,e)=>t+e),0)/t.length)}}))}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find((e=>e.__virtualIndex===t));return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){t!==this.size&&(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__size=t,this._physicalItems?(this._updateScrollerSize(),this._virtualCount=this.items.length,this._render()):(this._itemsChanged({path:"items"}),this.__preventElementUpdates=!0,er(),this.__preventElementUpdates=!1),this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame((()=>this._resizeHandler())),this._resizeHandler(),er())}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,1e5)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=Boolean("rtl"===t.direction),this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach((t=>{t.style.position="absolute",i.appendChild(t),this.__resizeObserver.observe(t)})),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems(((t,i)=>{const r=this._physicalItems[t];r.hidden=i>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),e.push(r))}),t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout((()=>{this.__clientFull=!0})),this.__clientFull||super._isClientFull()}translate3d(t,e,i,r){r.style.transform=`translateY(${e})`}toggleScrollListener(){}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=Ji.debounce(this.__fixInvalidItemPositioningDebouncer,Hi.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),(()=>this.__fixInvalidItemPositioning()))),this.reorderElements&&(this.__scrollReorderDebouncer=Ji.debounce(this.__scrollReorderDebouncer,Hi.after(this.timeouts.SCROLL_REORDER),(()=>this.__reorderElements()))),this.__previousScrollTop=this._scrollTop,0===this._scrollTop&&0!==this.firstVisibleIndex&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalBottom<this._scrollBottom;if(this._physicalTop>this._scrollTop&&0!==this.adjustedFirstVisibleIndex||t&&this.adjustedLastVisibleIndex!==this.size-1){const e=t,i=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(e?-1:1),this._scrollHandler(),this._ratio=i}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame)return this._deltaYAcc+=e,void t.preventDefault();e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Ji.debounce(this.__debouncerWheelAnimationFrame,Xi,(()=>{this._wheelAnimationFrame=!1}));const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=Ji.debounce(this._debouncerIgnoreNewWheel,Hi.after(this.timeouts.IGNORE_WHEEL),(()=>{this._ignoreNewWheel=!1}))):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(t,e,i){return t!==this.scrollTarget&&t!==this.scrollTarget.getRootNode().host&&(!(!this._canScroll(t,e,i)||-1===["auto","scroll"].indexOf(getComputedStyle(t).overflow))||(t!==this&&t.parentElement?this._hasScrolledAncestor(t.parentElement,e,i):void 0))}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const e=Math.ceil(this._optPhysicalSize/this._physicalAverage);super._increasePoolIfNeeded(Math.max(t,Math.min(100,e-this._physicalCount)))}else super._increasePoolIfNeeded(t)}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter((t=>!t.hidden))}__reorderElements(){if(this.__mouseDown)return void(this.__pendingReorder=!0);this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=e.find((t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement)))||e[0];if(!i)return;const r=i.__virtualIndex-t,o=e.indexOf(i)-r;if(o>0)for(let t=0;t<o;t++)this.elementsContainer.appendChild(e[t]);else if(o<0)for(let t=e.length+o;t<e.length;t++)this.elementsContainer.insertBefore(e[t],e[0]);if(dn){const{transform:t}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout((()=>{this.scrollTarget.style.transform=t}))}}_adjustVirtualIndexOffset(t){if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const t=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.offsetHeight);this._vidxOffset=Math.round(t*this.size-t*this._virtualCount)}else{const t=this._vidxOffset,e=ap,i=100;0===this._scrollTop?(this._vidxOffset=0,t!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<e&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,i),super.scrollToIndex(this.firstVisibleIndex+(t-this._vidxOffset)));const r=this.size-this._virtualCount;this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=r,t!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-e&&this._vidxOffset<r&&(this._vidxOffset+=Math.min(r-this._vidxOffset,i),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-t)))}}}Object.setPrototypeOf(lp.prototype,np);class hp{constructor(t){this.__adapter=new lp(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}
6781
+ */l(ib);const ob=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),sb=ob&&ob[1]>=8,nb={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){return Math.max(0,this._virtualCount-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(t){t=this._clamp(t,0,this._maxVirtualStart),this._virtualStartVal=t},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(t){(t%=this._physicalCount)<0&&(t=this._physicalCount+t),this._physicalStartVal=t},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(t){this._physicalCountVal=t},get _optPhysicalSize(){return 0===this._viewportHeight?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return Boolean(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let t=this._firstVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;t=this._iterateItems(((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i}))||0,this._firstVisibleIndexVal=t}return t},get lastVisibleIndex(){let t=this._lastVisibleIndexVal;if(null==t){let e=this._physicalTop+this._scrollOffset;this._iterateItems(((i,r)=>{e<this._scrollBottom&&(t=r),e+=this._getPhysicalSizeIncrement(i)})),this._lastVisibleIndexVal=t}return t},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const t=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=t-this._scrollPosition;const i=e>=0;if(this._scrollPosition=t,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const t=Math.round(e/this._physicalAverage);this._virtualStart+=t,this._physicalStart+=t,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const t=this._getReusables(i);i?(this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length):(this._virtualStart-=t.indexes.length,this._physicalStart-=t.indexes.length),this._update(t.indexes,i?null:t.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),$i)}},_getReusables(t){let e,i,r;const o=[],s=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let h=this._physicalTop+this._scrollOffset;const c=this._scrollPosition,u=this._scrollBottom;for(t?(e=this._physicalStart,i=c-h):(e=this._physicalEnd,i=this._physicalBottom+this._scrollOffset-u);r=this._getPhysicalSizeIncrement(e),i-=r,!(o.length>=l||i<=s);)if(t){if(a+o.length+1>=this._virtualCount)break;if(h+r>=c-this._scrollOffset)break;o.push(e),h+=r,e=(e+1)%l}else{if(n-o.length<=0)break;if(h+this._physicalSize-r<=u)break;o.push(e),h-=r,e=0===e?l-1:e-1}return{indexes:o,physicalTop:h-this._scrollOffset}},_update(t,e){if(!(t&&0===t.length||0===this._physicalCount)){if(this._assignModels(t),this._updateMetrics(t),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return 0!==this._scrollBottom&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(t){const e=this._clamp(this._physicalCount+t,3,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(.5*this._physicalCount);if(!(e<0)){if(e>0){const t=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let t=0;t<e;t++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-t)/e,i=Math.round(.5*this._physicalCount)}this._virtualEnd>=this._virtualCount-1||0===i||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),Xi):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),$i))}},_render(){if(this.isAttached&&this._isVisible)if(0!==this._physicalCount){const t=this._getReusables(!0);this._physicalTop=t.physicalTop,this._virtualStart+=t.indexes.length,this._physicalStart+=t.indexes.length,this._update(t.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(3))},_itemsChanged(t){"items"===t.path&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Ki))},_iterateItems(t,e){let i,r,o,s;if(2===arguments.length&&e){for(s=0;s<e.length;s++)if(i=e[s],r=this._computeVidx(i),null!=(o=t.call(this,i,r)))return o}else{for(i=this._physicalStart,r=this._virtualStart;i<this._physicalCount;i++,r++)if(null!=(o=t.call(this,i,r)))return o;for(i=0;i<this._physicalStart;i++,r++)if(null!=(o=t.call(this,i,r)))return o}},_computeVidx(t){return t>=this._physicalStart?this._virtualStart+(t-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+t},_positionItems(){this._adjustScrollPosition();let t=this._physicalTop;this._iterateItems((e=>{this.translate3d(0,`${t}px`,0,this._physicalItems[e]),t+=this._physicalSizes[e]}))},_getPhysicalSizeIncrement(t){return this._physicalSizes[t]},_adjustScrollPosition(){const t=0===this._virtualStart?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(0!==t){this._physicalTop-=t;const e=this._scrollPosition;!sb&&e>0&&this._resetScrollPosition(e-t)}},_resetScrollPosition(t){this.scrollTarget&&t>=0&&(this._scrollTop=t,this._scrollPosition=this._scrollTop)},_updateScrollerSize(t){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(t||0===this._scrollHeight||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(t){if("number"!=typeof t||t<0||t>this.items.length-1)return;if(er(),0===this._physicalCount)return;t=this._clamp(t,0,this._virtualCount-1),(!this._isIndexRendered(t)||t>=this._maxVirtualStart)&&(this._virtualStart=t-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,i=this._virtualStart,r=0;const o=this._hiddenContentSize;for(;i<t&&r<=o;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,i+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",(()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)}),Ki)},_isIndexRendered(t){return t>=this._virtualStart&&t<=this._virtualEnd},_getPhysicalIndex(t){return(this._physicalStart+(t-this._virtualStart))%this._physicalCount},_clamp:(t,e,i)=>Math.min(i,Math.max(e,t)),_debounce(t,e,i){this._debouncers||(this._debouncers={}),this._debouncers[t]=Ji.debounce(this._debouncers[t],i,e.bind(this)),Qi(this._debouncers[t])}},ab=1e3;class lb{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:r,elementsContainer:o,reorderElements:s}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=r,this.elementsContainer=o||r,this.reorderElements=s,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver((()=>this._resizeHandler())),"visible"===getComputedStyle(this.scrollTarget).overflow&&(this.scrollTarget.style.overflow="auto"),"static"===getComputedStyle(this.scrollContainer).position&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",(()=>this._scrollHandler())),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",(t=>this.__onWheel(t))),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",(()=>{this.__mouseDown=!0})),this.scrollTarget.addEventListener("mouseup",(()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()})))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}scrollToIndex(t){if("number"!=typeof t||isNaN(t)||0===this.size||!this.scrollTarget.offsetHeight)return;t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this.size-this._virtualCount):i<e?t<ab?(i=t,this._vidxOffset=0):(i=ab,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler()}flush(){0!==this.scrollTarget.offsetHeight&&(this._resizeHandler(),er(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach((r=>{r.__virtualIndex>=t&&r.__virtualIndex<=e&&(this.__updateElement(r,r.__virtualIndex,!0),i.push(r))})),this.__afterElementsUpdated(i)}_updateMetrics(t){er();let e=0,i=0;const r=this._physicalAverageCount,o=this._physicalAverage;this._iterateItems((t=>{i+=this._physicalSizes[t],this._physicalSizes[t]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[t])),e+=this._physicalSizes[t],this._physicalAverageCount+=this._physicalSizes[t]?1:0}),t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==r&&(this._physicalAverage=Math.round((o*r+e)/this._physicalAverageCount))}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;return"border-box"===e.boxSizing?i:i+(parseFloat(e.paddingBottom)||0)+(parseFloat(e.paddingTop)||0)+(parseFloat(e.borderBottomWidth)||0)+(parseFloat(e.borderTopWidth)||0)}__updateElement(t,e,i){t.style.paddingTop&&(t.style.paddingTop=""),this.__preventElementUpdates||t.__lastUpdatedIndex===e&&!i||(this.updateElement(t,e),t.__lastUpdatedIndex=e)}__afterElementsUpdated(t){t.forEach((t=>{const e=t.offsetHeight;if(0===e)t.style.paddingTop=`${this.__placeholderHeight}px`,this.__placeholderClearDebouncer=Ji.debounce(this.__placeholderClearDebouncer,Ki,(()=>this._resizeHandler()));else{this.__elementHeightQueue.push(e),this.__elementHeightQueue.shift();const t=this.__elementHeightQueue.filter((t=>void 0!==t));this.__placeholderHeight=Math.round(t.reduce(((t,e)=>t+e),0)/t.length)}}))}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find((e=>e.__virtualIndex===t));return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){t!==this.size&&(this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__size=t,this._physicalItems?(this._updateScrollerSize(),this._virtualCount=this.items.length,this._render()):(this._itemsChanged({path:"items"}),this.__preventElementUpdates=!0,er(),this.__preventElementUpdates=!1),this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame((()=>this._resizeHandler())),this._resizeHandler(),er())}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t}get items(){return{length:Math.min(this.size,1e5)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=Boolean("rtl"===t.direction),this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach((t=>{t.style.position="absolute",i.appendChild(t),this.__resizeObserver.observe(t)})),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems(((t,i)=>{const r=this._physicalItems[t];r.hidden=i>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=i+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),e.push(r))}),t),this.__afterElementsUpdated(e)}_isClientFull(){return setTimeout((()=>{this.__clientFull=!0})),this.__clientFull||super._isClientFull()}translate3d(t,e,i,r){r.style.transform=`translateY(${e})`}toggleScrollListener(){}_scrollHandler(){if(0===this.scrollTarget.offsetHeight)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),0!==this._physicalCount){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}t&&(this.__fixInvalidItemPositioningDebouncer=Ji.debounce(this.__fixInvalidItemPositioningDebouncer,Yi.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),(()=>this.__fixInvalidItemPositioning()))),this.reorderElements&&(this.__scrollReorderDebouncer=Ji.debounce(this.__scrollReorderDebouncer,Yi.after(this.timeouts.SCROLL_REORDER),(()=>this.__reorderElements()))),this.__previousScrollTop=this._scrollTop,0===this._scrollTop&&0!==this.firstVisibleIndex&&Math.abs(t)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalBottom<this._scrollBottom;if(this._physicalTop>this._scrollTop&&0!==this.adjustedFirstVisibleIndex||t&&this.adjustedLastVisibleIndex!==this.size-1){const e=t,i=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(e?-1:1),this._scrollHandler(),this._ratio=i}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame)return this._deltaYAcc+=e,void t.preventDefault();e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=Ji.debounce(this.__debouncerWheelAnimationFrame,Ki,(()=>{this._wheelAnimationFrame=!1}));const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=Ji.debounce(this._debouncerIgnoreNewWheel,Yi.after(this.timeouts.IGNORE_WHEEL),(()=>{this._ignoreNewWheel=!1}))):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(t,e,i){return t!==this.scrollTarget&&t!==this.scrollTarget.getRootNode().host&&(!(!this._canScroll(t,e,i)||-1===["auto","scroll"].indexOf(getComputedStyle(t).overflow))||(t!==this&&t.parentElement?this._hasScrolledAncestor(t.parentElement,e,i):void 0))}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const e=Math.ceil(this._optPhysicalSize/this._physicalAverage);super._increasePoolIfNeeded(Math.max(t,Math.min(100,e-this._physicalCount)))}else super._increasePoolIfNeeded(t)}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter((t=>!t.hidden))}__reorderElements(){if(this.__mouseDown)return void(this.__pendingReorder=!0);this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=e.find((t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement)))||e[0];if(!i)return;const r=i.__virtualIndex-t,o=e.indexOf(i)-r;if(o>0)for(let t=0;t<o;t++)this.elementsContainer.appendChild(e[t]);else if(o<0)for(let t=e.length+o;t<e.length;t++)this.elementsContainer.insertBefore(e[t],e[0]);if(dn){const{transform:t}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout((()=>{this.scrollTarget.style.transform=t}))}}_adjustVirtualIndexOffset(t){if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const t=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.offsetHeight);this._vidxOffset=Math.round(t*this.size-t*this._virtualCount)}else{const t=this._vidxOffset,e=ab,i=100;0===this._scrollTop?(this._vidxOffset=0,t!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<e&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,i),super.scrollToIndex(this.firstVisibleIndex+(t-this._vidxOffset)));const r=this.size-this._virtualCount;this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=r,t!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-e&&this._vidxOffset<r&&(this._vidxOffset+=Math.min(r-this._vidxOffset,i),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-t)))}}}Object.setPrototypeOf(lb.prototype,nb);class hb{constructor(t){this.__adapter=new lb(t)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t}scrollToIndex(t){this.__adapter.scrollToIndex(t)}update(t=0,e=this.size-1){this.__adapter.update(t,e)}flush(){this.__adapter.flush()}}
6782
6782
  /**
6783
6783
  * @license
6784
6784
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
6785
6785
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6786
- */const cp=class{toString(){return""}},up=t=>class extends t{static get properties(){return{items:{type:Array,observer:"__itemsChanged"},focusedIndex:{type:Number,observer:"__focusedIndexChanged"},loading:{type:Boolean,observer:"__loadingChanged"},opened:{type:Boolean,observer:"__openedChanged"},selectedItem:{type:Object,observer:"__selectedItemChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map((t=>parseInt(t,10))).reduce(((t,e)=>t+e))}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${pr()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(t=>t.stopPropagation())),this.__patchWheelOverScrolling(),this.__virtualizer=new hp({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector})}requestContentUpdate(){this.__virtualizer&&this.__virtualizer.update()}scrollIntoView(t){if(!(this.opened&&t>=0))return;const e=this._visibleItemsCount();let i=t;t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),i=t-e+1):t>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const r=[...this.children].find((t=>!t.hidden&&t.index===this.__virtualizer.lastVisibleIndex));if(!r||t!==r.index)return;const o=r.getBoundingClientRect(),s=this.getBoundingClientRect(),n=o.bottom-s.bottom+this._viewportTotalPaddingBottom;n>0&&(this.scrollTop+=n)}_isItemSelected(t,e,i){return!(t instanceof cp)&&(i&&void 0!==t&&void 0!==e?rp(i,t)===rp(i,e):t===e)}__itemsChanged(t){this.__virtualizer&&t&&(this.__virtualizer.size=t.length,this.__virtualizer.flush(),this.requestContentUpdate())}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&this.requestContentUpdate()}__selectedItemChanged(){this.requestContentUpdate()}__focusedIndexChanged(t,e){t!==e&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,e){(t||e)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map((()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t}))}_updateElement(t,e){const i=this.items[e],r=this.focusedIndex,o=this._isItemSelected(i,this.selectedItem,this.itemIdPath);t.setProperties({item:i,index:e,label:this.getItemLabel(i),selected:o,renderer:this.renderer,focused:!this.loading&&r===e}),t.id=`${this.__hostTagName}-item-${e}`,t.setAttribute("role",void 0!==e&&"option"),t.setAttribute("aria-selected",o.toString()),t.setAttribute("aria-posinset",e+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),i instanceof cp&&this.__requestItemByIndex(e)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",(t=>{(0===this.scrollTop&&t.deltaY<0||this.scrollHeight-this.scrollTop-this.clientHeight<=1&&t.deltaY>0)&&t.preventDefault()}))}__requestItemByIndex(t){requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t,currentScrollerPos:this._oldScrollerPosition}}))}))}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}}
6786
+ */const cb=class{toString(){return""}},ub=t=>class extends t{static get properties(){return{items:{type:Array,observer:"__itemsChanged"},focusedIndex:{type:Number,observer:"__focusedIndexChanged"},loading:{type:Boolean,observer:"__loadingChanged"},opened:{type:Boolean,observer:"__openedChanged"},selectedItem:{type:Object,observer:"__selectedItemChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(void 0===this._cachedViewportTotalPaddingBottom){const t=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[t.paddingBottom,t.borderBottomWidth].map((t=>parseInt(t,10))).reduce(((t,e)=>t+e))}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${pr()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(t=>t.stopPropagation())),this.__patchWheelOverScrolling(),this.__virtualizer=new hb({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector})}requestContentUpdate(){this.__virtualizer&&this.__virtualizer.update()}scrollIntoView(t){if(!(this.opened&&t>=0))return;const e=this._visibleItemsCount();let i=t;t>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(t),i=t-e+1):t>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const r=[...this.children].find((t=>!t.hidden&&t.index===this.__virtualizer.lastVisibleIndex));if(!r||t!==r.index)return;const o=r.getBoundingClientRect(),s=this.getBoundingClientRect(),n=o.bottom-s.bottom+this._viewportTotalPaddingBottom;n>0&&(this.scrollTop+=n)}_isItemSelected(t,e,i){return!(t instanceof cb)&&(i&&void 0!==t&&void 0!==e?rb(i,t)===rb(i,e):t===e)}__itemsChanged(t){this.__virtualizer&&t&&(this.__virtualizer.size=t.length,this.__virtualizer.flush(),this.requestContentUpdate())}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&this.requestContentUpdate()}__selectedItemChanged(){this.requestContentUpdate()}__focusedIndexChanged(t,e){t!==e&&this.requestContentUpdate(),t>=0&&!this.loading&&this.scrollIntoView(t)}__rendererChanged(t,e){(t||e)&&this.requestContentUpdate()}__createElements(t){return[...Array(t)].map((()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t}))}_updateElement(t,e){const i=this.items[e],r=this.focusedIndex,o=this._isItemSelected(i,this.selectedItem,this.itemIdPath);t.setProperties({item:i,index:e,label:this.getItemLabel(i),selected:o,renderer:this.renderer,focused:!this.loading&&r===e}),t.id=`${this.__hostTagName}-item-${e}`,t.setAttribute("role",void 0!==e&&"option"),t.setAttribute("aria-selected",o.toString()),t.setAttribute("aria-posinset",e+1),t.setAttribute("aria-setsize",this.items.length),this.theme?t.setAttribute("theme",this.theme):t.removeAttribute("theme"),i instanceof cb&&this.__requestItemByIndex(e)}__onItemClick(t){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:t.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",(t=>{(0===this.scrollTop&&t.deltaY<0||this.scrollHeight-this.scrollTop-this.clientHeight<=1&&t.deltaY>0)&&t.preventDefault()}))}__requestItemByIndex(t){requestAnimationFrame((()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:t,currentScrollerPos:this._oldScrollerPosition}}))}))}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}}
6787
6787
  /**
6788
6788
  * @license
6789
6789
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
@@ -6793,7 +6793,7 @@ function rp(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
6793
6793
  * @license
6794
6794
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
6795
6795
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6796
- */class dp extends(up(Li)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return Ui`
6796
+ */class db extends(ub(Bi)){static get is(){return"vaadin-combo-box-scroller"}static get template(){return Gi`
6797
6797
  <style>
6798
6798
  :host {
6799
6799
  display: block;
@@ -6820,18 +6820,18 @@ function rp(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
6820
6820
  <div id="selector">
6821
6821
  <slot></slot>
6822
6822
  </div>
6823
- `}}l(dp);
6823
+ `}}l(db);
6824
6824
  /**
6825
6825
  * @license
6826
6826
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
6827
6827
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6828
6828
  */
6829
- const mp=t=>class extends(xl(t)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}}
6829
+ const mb=t=>class extends(xl(t)){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}}
6830
6830
  /**
6831
6831
  * @license
6832
6832
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
6833
6833
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6834
- */,pp=t=>class extends t{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged"},size:{type:Number,observer:"_sizeChanged"},dataProvider:{type:Object,observer:"_dataProviderChanged"},_pendingRequests:{value:()=>({})},__placeHolder:{value:new cp},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}ready(){super.ready(),this._scroller.addEventListener("index-requested",(t=>{const e=t.detail.index,i=t.detail.currentScrollerPos,r=Math.floor(1.5*this.pageSize);if(!this._shouldSkipIndex(e,r,i)&&void 0!==e){const t=this._getPageForIndex(e);this._shouldLoadPage(t)&&this._loadPage(t)}}))}_dataProviderFilterChanged(t){void 0!==this.__previousDataProviderFilter||""!==t?this.__previousDataProviderFilter!==t&&(this.__previousDataProviderFilter=t,this._pendingRequests={},this.loading=this._shouldFetchData(),this.size=void 0,this.clearCache()):this.__previousDataProviderFilter=t}_shouldFetchData(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}_ensureFirstPage(t){t&&this._shouldLoadPage(0)&&this._loadPage(0)}_shouldSkipIndex(t,e,i){return 0!==i&&t>=i-e&&t<=i+e}_shouldLoadPage(t){if(!this.filteredItems||this._forceNextRequest)return this._forceNextRequest=!1,!0;const e=this.filteredItems[t*this.pageSize];return void 0!==e?e instanceof cp:void 0===this.size}_loadPage(t){if(this._pendingRequests[t]||!this.dataProvider)return;const e={page:t,pageSize:this.pageSize,filter:this.filter},i=(r,o)=>{if(this._pendingRequests[t]!==i)return;const s=this.filteredItems?[...this.filteredItems]:[];s.splice(e.page*e.pageSize,r.length,...r),this.filteredItems=s,this.opened||this._isInputFocused()||this._commitValue(),void 0!==o&&(this.size=o),delete this._pendingRequests[t],0===Object.keys(this._pendingRequests).length&&(this.loading=!1)};this._pendingRequests[t]=i,this.loading=!0,this.dataProvider(e,i)}_getPageForIndex(t){return Math.floor(t/this.pageSize)}clearCache(){if(!this.dataProvider)return;this._pendingRequests={};const t=[];for(let e=0;e<(this.size||0);e++)t.push(this.__placeHolder);this.filteredItems=t,this._shouldFetchData()?(this._forceNextRequest=!1,this._loadPage(0)):this._forceNextRequest=!0}_sizeChanged(t=0){const e=(this.filteredItems||[]).slice(0,t);for(let i=0;i<t;i++)e[i]=void 0!==e[i]?e[i]:this.__placeHolder;this.filteredItems=e,this._flushPendingRequests(t)}_pageSizeChanged(t,e){if(Math.floor(t)!==t||t<1)throw this.pageSize=e,new Error("`pageSize` value must be an integer > 0");this.clearCache()}_dataProviderChanged(t,e){this._ensureItemsOrDataProvider((()=>{this.dataProvider=e})),this.clearCache()}_ensureItemsOrDataProvider(t){if(void 0!==this.items&&void 0!==this.dataProvider)throw t(),new Error("Using `items` and `dataProvider` together is not supported");this.dataProvider&&!this.filteredItems&&(this.filteredItems=[])}_warnDataProviderValue(t,e){if(t&&""!==e&&null==this.selectedItem){const t=this.__getItemIndexByValue(this.filteredItems,e);(t<0||!this._getItemLabel(this.filteredItems[t]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}_flushPendingRequests(t){if(this._pendingRequests){const e=Math.ceil(t/this.pageSize);Object.entries(this._pendingRequests).forEach((([i,r])=>{parseInt(i)>=e&&r([],t)}))}}}
6834
+ */,pb=t=>class extends t{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged"},size:{type:Number,observer:"_sizeChanged"},dataProvider:{type:Object,observer:"_dataProviderChanged"},_pendingRequests:{value:()=>({})},__placeHolder:{value:new cb},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}ready(){super.ready(),this._scroller.addEventListener("index-requested",(t=>{const e=t.detail.index,i=t.detail.currentScrollerPos,r=Math.floor(1.5*this.pageSize);if(!this._shouldSkipIndex(e,r,i)&&void 0!==e){const t=this._getPageForIndex(e);this._shouldLoadPage(t)&&this._loadPage(t)}}))}_dataProviderFilterChanged(t){void 0!==this.__previousDataProviderFilter||""!==t?this.__previousDataProviderFilter!==t&&(this.__previousDataProviderFilter=t,this._pendingRequests={},this.loading=this._shouldFetchData(),this.size=void 0,this.clearCache()):this.__previousDataProviderFilter=t}_shouldFetchData(){return!!this.dataProvider&&(this.opened||this.filter&&this.filter.length)}_ensureFirstPage(t){t&&this._shouldLoadPage(0)&&this._loadPage(0)}_shouldSkipIndex(t,e,i){return 0!==i&&t>=i-e&&t<=i+e}_shouldLoadPage(t){if(!this.filteredItems||this._forceNextRequest)return this._forceNextRequest=!1,!0;const e=this.filteredItems[t*this.pageSize];return void 0!==e?e instanceof cb:void 0===this.size}_loadPage(t){if(this._pendingRequests[t]||!this.dataProvider)return;const e={page:t,pageSize:this.pageSize,filter:this.filter},i=(r,o)=>{if(this._pendingRequests[t]!==i)return;const s=this.filteredItems?[...this.filteredItems]:[];s.splice(e.page*e.pageSize,r.length,...r),this.filteredItems=s,this.opened||this._isInputFocused()||this._commitValue(),void 0!==o&&(this.size=o),delete this._pendingRequests[t],0===Object.keys(this._pendingRequests).length&&(this.loading=!1)};this._pendingRequests[t]=i,this.loading=!0,this.dataProvider(e,i)}_getPageForIndex(t){return Math.floor(t/this.pageSize)}clearCache(){if(!this.dataProvider)return;this._pendingRequests={};const t=[];for(let e=0;e<(this.size||0);e++)t.push(this.__placeHolder);this.filteredItems=t,this._shouldFetchData()?(this._forceNextRequest=!1,this._loadPage(0)):this._forceNextRequest=!0}_sizeChanged(t=0){const e=(this.filteredItems||[]).slice(0,t);for(let i=0;i<t;i++)e[i]=void 0!==e[i]?e[i]:this.__placeHolder;this.filteredItems=e,this._flushPendingRequests(t)}_pageSizeChanged(t,e){if(Math.floor(t)!==t||t<1)throw this.pageSize=e,new Error("`pageSize` value must be an integer > 0");this.clearCache()}_dataProviderChanged(t,e){this._ensureItemsOrDataProvider((()=>{this.dataProvider=e})),this.clearCache()}_ensureItemsOrDataProvider(t){if(void 0!==this.items&&void 0!==this.dataProvider)throw t(),new Error("Using `items` and `dataProvider` together is not supported");this.dataProvider&&!this.filteredItems&&(this.filteredItems=[])}_warnDataProviderValue(t,e){if(t&&""!==e&&null==this.selectedItem){const t=this.__getItemIndexByValue(this.filteredItems,e);(t<0||!this._getItemLabel(this.filteredItems[t]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}_flushPendingRequests(t){if(this._pendingRequests){const e=Math.ceil(t/this.pageSize);Object.entries(this._pendingRequests).forEach((([i,r])=>{parseInt(i)>=e&&r([],t)}))}}}
6835
6835
  /**
6836
6836
  * @license
6837
6837
  * Copyright (c) 2021 - 2023 Vaadin Ltd.
@@ -6842,12 +6842,12 @@ const mp=t=>class extends(xl(t)){static get properties(){return{pattern:{type:St
6842
6842
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
6843
6843
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6844
6844
  */
6845
- function fp(t){return null!=t}function vp(t,e){return t.findIndex((t=>!(t instanceof cp)&&e(t)))}const gp=t=>class extends(Dh(uo(Do(oo(Zr(lo(Kr(t)))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:Function,items:{type:Array,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged"},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1},filter:{type:String,value:"",notify:!0},selectedItem:{type:Object,notify:!0},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged"},itemValuePath:{type:String,value:"value"},itemIdPath:String,_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array},_closeOnBlurIsPrevented:Boolean,_scroller:Object,_overlayOpened:{type:Boolean,observer:"_overlayOpenedChanged"}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, theme)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(t){super._inputElementChanged(t);const e=this._nativeInput;e&&(e.autocomplete="off",e.autocapitalize="off",e.setAttribute("role","combobox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-expanded",!!this.opened),e.setAttribute("spellcheck","false"),e.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const t=()=>{requestAnimationFrame((()=>{this._overlayElement.bringToFront()}))};var e;this.addEventListener("mousedown",t),this.addEventListener("touchstart",t),e=this,window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(e):e.querySelector("template")&&console.warn(`WARNING: <template> inside <${e.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`),this.addController(new Nh(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach((t=>{t.requestContentUpdate()})))}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(t,e,i){super._propertiesChanged(t,e,i),void 0!==e.filter&&this._filterChanged(e.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",(t=>t.preventDefault())),t.addEventListener("opened-changed",(t=>{this._overlayOpened=t.detail.value})),this._overlayElement=t}_initScroller(t){const e=`${this._tagNamePrefix}-scroller`,i=this._overlayElement;i.renderer=t=>{t.firstChild||t.appendChild(document.createElement(e))},i.requestContentUpdate();const r=i.querySelector(e);r.owner=t||this,r.getItemLabel=this._getItemLabel.bind(this),r.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._scroller=r}_updateScroller(t,e,i,r,o,s,n,a,l){t&&(i&&(t.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),t.setProperties({items:i?e:[],opened:i,loading:r,selectedItem:o,itemIdPath:s,focusedIndex:n,renderer:a,theme:l}))}_openedOrItemsChanged(t,e,i){this._overlayOpened=!(!t||!(i||e&&e.length))}_overlayOpenedChanged(t,e){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):e&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,e){void 0!==e&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&io(this.inputElement)}_updateActiveDescendant(t){const e=this._nativeInput;if(!e)return;const i=this._getItemElements().find((e=>e.index===t));i?e.setAttribute("aria-activedescendant",i.id):e.removeAttribute("aria-activedescendant")}_openedChanged(t,e){if(void 0===e)return;t?(this._openedWithFocusRing=this.hasAttribute("focus-ring"),this._isInputFocused()||mn||this.inputElement&&this.inputElement.focus(),this._overlayElement.restoreFocusOnClose=!0):(this._onClosed(),this._openedWithFocusRing&&this._isInputFocused()&&this.setAttribute("focus-ring",""));const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!t),t?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onKeyDown(t){super._onKeyDown(t),"Tab"===t.key?this._overlayElement.restoreFocusOnClose=!1:"ArrowDown"===t.key?(this._onArrowDown(),t.preventDefault()):"ArrowUp"===t.key&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){let e=t&&this.itemLabelPath?rp(this.itemLabelPath,t):void 0;return null==e&&(e=t?t.toString():""),e}_getItemValue(t){let e=t&&this.itemValuePath?rp(this.itemValuePath,t):void 0;return void 0===e&&(e=t?t.toString():""),e}_onArrowDown(){if(this.opened){const t=this._dropdownItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const t=this._dropdownItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){this._focusedIndex>-1&&(this._inputElementValue=this._getItemLabel(this._dropdownItems[this._focusedIndex]),this._markAllSelectionRange())}_setSelectionRange(t,e){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,e)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){const t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){this.opened||this.loading?this.close():this._commitValue()}_onEnter(t){const e=this._focusedIndex<0&&""!==this._inputElementValue&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;if(!this.allowCustomValue&&e)return t.preventDefault(),void t.stopPropagation();this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_onEscape(t){this.autoOpenDisabled?this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0?(t.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.clearButtonVisible&&!this.opened&&this.value&&(t.stopPropagation(),this._onClearAction()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&(t.stopPropagation(),this._onClearAction())}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",(t=>t.preventDefault())),t.addEventListener("click",(()=>{mn&&!this._isInputFocused()&&document.activeElement.blur()})))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){this.loading&&!this.allowCustomValue||this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const t=this._dropdownItems[this._focusedIndex];this.selectedItem!==t&&(this.selectedItem=t),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(""===this._inputElementValue||void 0===this._inputElementValue)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const t=[this.selectedItem,...this._dropdownItems||[]],e=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!e){const t=this._inputElementValue;this._lastCustomValue=t;const e=new CustomEvent("custom-value-set",{detail:t,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(e),e.defaultPrevented||(this.value=t)}else this.allowCustomValue||this.opened||!e?this._inputElementValue=this.selectedItem?this._getItemLabel(this.selectedItem):this.value||"":this.value=this._getItemValue(e)}this._detectAndDispatchChange(),this._clearSelectionRange(),this.filter=""}_onInput(t){const e=this._inputElementValue,i={};this.filter===e?this._filterChanged(this.filter):i.filter=e,this.opened||this._isClearButton(t)||this.autoOpenDisabled||(i.opened=!0),this.setProperties(i)}_onChange(t){t.stopPropagation()}_itemLabelPathChanged(t){"string"!=typeof t&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(t){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,t):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){""!==this.filter?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this._inputElementValue=this.allowCustomValue&&!this.selectedItem?this.value:this._getItemLabel(this.selectedItem)}_selectedItemChanged(t){if(null==t)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const e=this._getItemValue(t);if(this.value!==e&&(this.value=e,this.value!==e))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,e){""===t&&void 0===e||(fp(t)?(this._getItemValue(this.selectedItem)!==t&&this._selectItemForValue(t),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=t),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this.filter="",this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(t,e){this._ensureItemsOrDataProvider((()=>{this.items=e})),t?this.filteredItems=t.slice(0):e&&(this.filteredItems=null)}_filteredItemsChanged(t,e){this._setDropdownItems(t);const i=e?e[this._focusedIndex]:null,r=this.__getItemIndexByValue(t,this.value);null==this.selectedItem&&r>=0&&(this.selectedItem=t[r]);const o=this.__getItemIndexByValue(t,this._getItemValue(i));this._focusedIndex=o>-1?o:this.__getItemIndexByLabel(this.filteredItems,this.filter)}_filterItems(t,e){if(!t)return t;const i=t.filter((t=>(e=e?e.toString().toLowerCase():"",this._getItemLabel(t).toString().toLowerCase().indexOf(e)>-1)));return i}_selectItemForValue(t){const e=this.__getItemIndexByValue(this.filteredItems,t),i=this.selectedItem;this.selectedItem=e>=0?this.filteredItems[e]:this.dataProvider&&void 0===this.selectedItem?void 0:null,null===this.selectedItem&&null===i&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(t){this._dropdownItems=t}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t){this._scroller&&this._scroller.scrollIntoView(t)}__getItemIndexByValue(t,e){return t&&fp(e)?vp(t,(t=>this._getItemValue(t)===e)):-1}__getItemIndexByLabel(t,e){return t&&e?vp(t,(t=>this._getItemLabel(t).toString().toLowerCase()===e.toString().toLowerCase())):-1}_overlaySelectedItemChanged(t){t.stopPropagation(),t.detail.item instanceof cp||this.opened&&(this._focusedIndex=this.filteredItems.indexOf(t.detail.item),this.close())}_setFocused(t){if(super._setFocused(t),!t&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue)return void delete this._lastCustomValue;this._closeOrCommit()}}_shouldRemoveFocus(t){return!(t.relatedTarget&&t.relatedTarget.localName===`${this._tagNamePrefix}-item`||t.relatedTarget===this._overlayElement&&(t.composedPath()[0].focus(),1))}_onTouchend(t){this.clearElement&&t.composedPath()[0]===this.clearElement&&(t.preventDefault(),this._onClearAction())}}
6845
+ function fb(t){return null!=t}function vb(t,e){return t.findIndex((t=>!(t instanceof cb)&&e(t)))}const gb=t=>class extends(Nh(uo(No(oo($r(lo(Xr(t)))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:Function,items:{type:Array,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged"},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1},filter:{type:String,value:"",notify:!0},selectedItem:{type:Object,notify:!0},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged"},itemValuePath:{type:String,value:"value"},itemIdPath:String,_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array},_closeOnBlurIsPrevented:Boolean,_scroller:Object,_overlayOpened:{type:Boolean,observer:"_overlayOpenedChanged"}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, theme)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(t){super._inputElementChanged(t);const e=this._nativeInput;e&&(e.autocomplete="off",e.autocapitalize="off",e.setAttribute("role","combobox"),e.setAttribute("aria-autocomplete","list"),e.setAttribute("aria-expanded",!!this.opened),e.setAttribute("spellcheck","false"),e.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const t=()=>{requestAnimationFrame((()=>{this._overlayElement.bringToFront()}))};var e;this.addEventListener("mousedown",t),this.addEventListener("touchstart",t),e=this,window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(e):e.querySelector("template")&&console.warn(`WARNING: <template> inside <${e.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`),this.addController(new Ih(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach((t=>{t.requestContentUpdate()})))}open(){this.disabled||this.readonly||(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(t,e,i){super._propertiesChanged(t,e,i),void 0!==e.filter&&this._filterChanged(e.filter)}_initOverlay(){const t=this.$.overlay;t._comboBox=this,t.addEventListener("touchend",this._boundOnOverlayTouchAction),t.addEventListener("touchmove",this._boundOnOverlayTouchAction),t.addEventListener("mousedown",(t=>t.preventDefault())),t.addEventListener("opened-changed",(t=>{this._overlayOpened=t.detail.value})),this._overlayElement=t}_initScroller(t){const e=`${this._tagNamePrefix}-scroller`,i=this._overlayElement;i.renderer=t=>{t.firstChild||t.appendChild(document.createElement(e))},i.requestContentUpdate();const r=i.querySelector(e);r.owner=t||this,r.getItemLabel=this._getItemLabel.bind(this),r.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged),this._scroller=r}_updateScroller(t,e,i,r,o,s,n,a,l){t&&(i&&(t.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),t.setProperties({items:i?e:[],opened:i,loading:r,selectedItem:o,itemIdPath:s,focusedIndex:n,renderer:a,theme:l}))}_openedOrItemsChanged(t,e,i){this._overlayOpened=!(!t||!(i||e&&e.length))}_overlayOpenedChanged(t,e){t?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):e&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(t,e){void 0!==e&&this._updateActiveDescendant(t)}_isInputFocused(){return this.inputElement&&io(this.inputElement)}_updateActiveDescendant(t){const e=this._nativeInput;if(!e)return;const i=this._getItemElements().find((e=>e.index===t));i?e.setAttribute("aria-activedescendant",i.id):e.removeAttribute("aria-activedescendant")}_openedChanged(t,e){if(void 0===e)return;t?(this._openedWithFocusRing=this.hasAttribute("focus-ring"),this._isInputFocused()||mn||this.inputElement&&this.inputElement.focus(),this._overlayElement.restoreFocusOnClose=!0):(this._onClosed(),this._openedWithFocusRing&&this._isInputFocused()&&this.setAttribute("focus-ring",""));const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!t),t?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(t){return t.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(t){t.preventDefault(),this.inputElement.focus()}_onClearButtonClick(t){t.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(t){t.preventDefault(),this.opened?this.close():this.open()}_onHostClick(t){this.autoOpenDisabled||(t.preventDefault(),this.open())}_onClick(t){this._isClearButton(t)?this._onClearButtonClick(t):t.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(t):this._onHostClick(t)}_onKeyDown(t){super._onKeyDown(t),"Tab"===t.key?this._overlayElement.restoreFocusOnClose=!1:"ArrowDown"===t.key?(this._onArrowDown(),t.preventDefault()):"ArrowUp"===t.key&&(this._onArrowUp(),t.preventDefault())}_getItemLabel(t){let e=t&&this.itemLabelPath?rb(this.itemLabelPath,t):void 0;return null==e&&(e=t?t.toString():""),e}_getItemValue(t){let e=t&&this.itemValuePath?rb(this.itemValuePath,t):void 0;return void 0===e&&(e=t?t.toString():""),e}_onArrowDown(){if(this.opened){const t=this._dropdownItems;t&&(this._focusedIndex=Math.min(t.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const t=this._dropdownItems;t&&(this._focusedIndex=t.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){this._focusedIndex>-1&&(this._inputElementValue=this._getItemLabel(this._dropdownItems[this._focusedIndex]),this._markAllSelectionRange())}_setSelectionRange(t,e){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(t,e)}_markAllSelectionRange(){void 0!==this._inputElementValue&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(void 0!==this._inputElementValue){const t=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(t,t)}}_closeOrCommit(){this.opened||this.loading?this.close():this._commitValue()}_onEnter(t){const e=this._focusedIndex<0&&""!==this._inputElementValue&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;if(!this.allowCustomValue&&e)return t.preventDefault(),void t.stopPropagation();this.opened&&(t.preventDefault(),t.stopPropagation()),this._closeOrCommit()}_onEscape(t){this.autoOpenDisabled?this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0?(t.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.clearButtonVisible&&!this.opened&&this.value&&(t.stopPropagation(),this._onClearAction()):this.opened?(t.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&(t.stopPropagation(),this._onClearAction())}_toggleElementChanged(t){t&&(t.addEventListener("mousedown",(t=>t.preventDefault())),t.addEventListener("click",(()=>{mn&&!this._isInputFocused()&&document.activeElement.blur()})))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){this.loading&&!this.allowCustomValue||this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const t=this._dropdownItems[this._focusedIndex];this.selectedItem!==t&&(this.selectedItem=t),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(""===this._inputElementValue||void 0===this._inputElementValue)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const t=[this.selectedItem,...this._dropdownItems||[]],e=t[this.__getItemIndexByLabel(t,this._inputElementValue)];if(this.allowCustomValue&&!e){const t=this._inputElementValue;this._lastCustomValue=t;const e=new CustomEvent("custom-value-set",{detail:t,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(e),e.defaultPrevented||(this.value=t)}else this.allowCustomValue||this.opened||!e?this._inputElementValue=this.selectedItem?this._getItemLabel(this.selectedItem):this.value||"":this.value=this._getItemValue(e)}this._detectAndDispatchChange(),this._clearSelectionRange(),this.filter=""}_onInput(t){const e=this._inputElementValue,i={};this.filter===e?this._filterChanged(this.filter):i.filter=e,this.opened||this._isClearButton(t)||this.autoOpenDisabled||(i.opened=!0),this.setProperties(i)}_onChange(t){t.stopPropagation()}_itemLabelPathChanged(t){"string"!=typeof t&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(t){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,t):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){""!==this.filter?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this._inputElementValue=this.allowCustomValue&&!this.selectedItem?this.value:this._getItemLabel(this.selectedItem)}_selectedItemChanged(t){if(null==t)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const e=this._getItemValue(t);if(this.value!==e&&(this.value=e,this.value!==e))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(t)}}_valueChanged(t,e){""===t&&void 0===e||(fb(t)?(this._getItemValue(this.selectedItem)!==t&&this._selectItemForValue(t),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=t),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this.filter="",this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(t,e){this._ensureItemsOrDataProvider((()=>{this.items=e})),t?this.filteredItems=t.slice(0):e&&(this.filteredItems=null)}_filteredItemsChanged(t,e){this._setDropdownItems(t);const i=e?e[this._focusedIndex]:null,r=this.__getItemIndexByValue(t,this.value);null==this.selectedItem&&r>=0&&(this.selectedItem=t[r]);const o=this.__getItemIndexByValue(t,this._getItemValue(i));this._focusedIndex=o>-1?o:this.__getItemIndexByLabel(this.filteredItems,this.filter)}_filterItems(t,e){if(!t)return t;const i=t.filter((t=>(e=e?e.toString().toLowerCase():"",this._getItemLabel(t).toString().toLowerCase().indexOf(e)>-1)));return i}_selectItemForValue(t){const e=this.__getItemIndexByValue(this.filteredItems,t),i=this.selectedItem;this.selectedItem=e>=0?this.filteredItems[e]:this.dataProvider&&void 0===this.selectedItem?void 0:null,null===this.selectedItem&&null===i&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(t){this._dropdownItems=t}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(t){this._scroller&&this._scroller.scrollIntoView(t)}__getItemIndexByValue(t,e){return t&&fb(e)?vb(t,(t=>this._getItemValue(t)===e)):-1}__getItemIndexByLabel(t,e){return t&&e?vb(t,(t=>this._getItemLabel(t).toString().toLowerCase()===e.toString().toLowerCase())):-1}_overlaySelectedItemChanged(t){t.stopPropagation(),t.detail.item instanceof cb||this.opened&&(this._focusedIndex=this.filteredItems.indexOf(t.detail.item),this.close())}_setFocused(t){if(super._setFocused(t),!t&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue)return void delete this._lastCustomValue;this._closeOrCommit()}}_shouldRemoveFocus(t){return!(t.relatedTarget&&t.relatedTarget.localName===`${this._tagNamePrefix}-item`||t.relatedTarget===this._overlayElement&&(t.composedPath()[0].focus(),1))}_onTouchend(t){this.clearElement&&t.composedPath()[0]===this.clearElement&&(t.preventDefault(),this._onClearAction())}}
6846
6846
  /**
6847
6847
  * @license
6848
6848
  * Copyright (c) 2015 - 2023 Vaadin Ltd.
6849
6849
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6850
- */;vt("vaadin-combo-box",Th,{moduleId:"vaadin-combo-box-styles"});class bp extends(pp(gp(mp(Al(wt(lr(Li))))))){static get is(){return"vaadin-combo-box"}static get template(){return Ui`
6850
+ */;vt("vaadin-combo-box",Th,{moduleId:"vaadin-combo-box-styles"});class bb extends(pb(gb(mb(kl(Et(lr(Bi))))))){static get is(){return"vaadin-combo-box"}static get template(){return Gi`
6851
6851
  <style>
6852
6852
  :host([opened]) {
6853
6853
  pointer-events: auto;
@@ -6893,4 +6893,4 @@ function fp(t){return null!=t}function vp(t,e){return t.findIndex((t=>!(t instan
6893
6893
  ></vaadin-combo-box-overlay>
6894
6894
 
6895
6895
  <slot name="tooltip"></slot>
6896
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new co(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new vo(this.inputElement,this._labelController)),this._tooltipController=new vr(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}l(bp);const _p=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.defaultValue="",this.options=[],this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.touched=!1,this.handleChange=t=>{this.touched=!0;const e=t.target.value,i=this.options.find((t=>t.value.toLowerCase()===e.toLowerCase()));this.value=i?i.value:e,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.displayedOptions=this.options.map((t=>({label:t.label,value:t.value.toUpperCase()})))}componentWillLoad(){if(this.action&&!this.options.length&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];return this.getOptions(t).then((t=>{const e=Object.keys(t)[0];this.displayedOptions=t[e].map((t=>({label:t.Name,value:t.Alpha2Code})))}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue.toUpperCase(),this.valueHandler({name:this.name,value:this.value}))}getOptions(t){const e=new URL(t);return new Promise(((t,i)=>{fetch(e.href).then((t=>t.json())).then((e=>{t(e)})).catch((t=>{console.error(t),i(t)}))}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return n("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"select__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"3d298b9709617233adacd88b8acb7d6298d35627",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"9ba53148a200b925da11ad0dea5589e9634ffb03",class:"select__wrapper--flex"},i("label",{key:"eb2fa2233926ada4da750e47304325d0d7ea3985",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),i("div",{key:"3cbe968f9a7c612d0b8d0517621a933cccd1bd58",class:"select__wrapper--relative"},this.tooltip&&i("img",{key:"9fa9be645ed72897a95705b0e17b3aee855eb6d4",class:"select__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("vaadin-combo-box",{key:"f596a5fa5b480791080dfa63359ed30eeabfaa02",name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",readOnly:this.autofilled,required:this.validation.mandatory,value:this.defaultValue,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleChange,onBlur:this.handleBlur}),i("small",{key:"a9c652406489ba1d23497c55aa14e7b67fa701bd",class:"select__error-message"},this.errorMessage))}get element(){return r(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};_p.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__input>input{padding:5px 15px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}';const yp=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.phoneValue=t.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.touched=!0,this.errorMessage=this.setErrorMessage()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.phoneValue=this.defaultValue.phone||null)}componentWillLoad(){if(this.action&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];return this.getPhoneCodes(t).then((t=>{this.phoneCodesOptions=t.phoneCodes.map((t=>({label:t.Prefix,value:t.Prefix})))}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(t){const e=new URL(t);return new Promise(((t,i)=>{fetch(e.href).then((t=>t.json())).then((e=>{t(e)})).catch((t=>{console.error(t),i(t)}))}))}handlePrefixInput(t){this.prefixValue=t.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return n(`${i}`,this.language)?n(`${i}`,this.language):r}return this.inputReference.validity.tooShort||this.inputReference.validity.tooLong?n("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}}):this.inputReference.validity.valueMissing?n("requiredError",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"tel__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"5febd36c339710683111039d477196daac87853c",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"fb779beee03992b23478ffcaac85095420048ceb",class:"tel__wrapper--flex-label"},i("label",{key:"5b69271c1c8bf403a003d765adb40a553e09466e",class:"tel__label "+(this.validation.mandatory?"tel__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"040c487308231459fc92eba2e643a80639df09d6",class:"tel__wrapper--relative"},this.tooltip&&i("img",{key:"91efd4656c718c75e5047413daf10c22c37e8f93",class:"tel__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("div",{key:"6215f80b6bccb3dfb03dbbc485c850725633627c",class:`tel__wrapper--flex ${t}`},i("vaadin-combo-box",{key:"3b7b1ef3415619c51d74f5fc7c5e034acb8f037f",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.autofilled,onChange:t=>this.handlePrefixInput(t)}),i("input",{key:"886553206896c367ba96f015d81b44ea86f741ea",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:this.phoneValue,placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),i("small",{key:"d4c88d386c3342c789527d925e9cd061494b785c",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};yp.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.tel__wrapper--flex--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__prefix::part(toggle-button){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}';const wp=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.defaultValue="",this.clientStyling="",this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.value="",this.validationPattern="",this.duplicateInputValue=null,this.touched=!1,this.handleInput=t=>{this.value=t.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)}),500)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&!0===this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.isValid=this.setValidity()}setValidity(){var t;return(!this.isDuplicateInput||this.duplicateInputValue===this.value)&&(null===(t=this.inputReference)||void 0===t?void 0:t.validity.valid)}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,r;if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return n(`${i}`,this.language)?n(`${i}`,this.language):r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return n("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return n("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(r=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===r?void 0:r.errorMessage;return n(`${t}`,this.language)?n(`${t}`,this.language):e}}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"bfb803110a70b89dd484e993c204b572f0115a17",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},i("div",{key:"6e9f8f5aada98821d5dc78ccb8b1431ba23b81ab",class:"text__wrapper--flex"},i("label",{key:"05cf07855121a79641475a5b020774cf8120d1ed",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"f8c48a999f6827a61ec392ce99858c19559c77d2",class:"text__wrapper--relative"},this.tooltip&&i("img",{key:"e866f1df104ce57c29164e73b4ad4d017c7201cd",class:"text__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"d761c265b1487fe73af54568b6da7fed82656b8d",name:this.name,id:`${this.name}__input`,value:this.defaultValue,type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"5c8df34dd47959eb1668cdf389524d145c69fa84",class:"text__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};wp.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}';const Ep=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields="true"===this.defaultValue,this.value="",this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return n("requiredError",this.language)}renderLabel(){return i("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},i("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?i("div",{class:"togglecheckbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return i("div",{key:"8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed",class:`togglecheckbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"18e2ec43ff98738323ddab1e134d6d215978e1c7",class:"togglecheckbox__wrapper--flex"},i("input",{key:"640b3ba4fd34bd813239533236e51f452e735409",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.checkboxReference=t,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),i("small",{key:"efd70a691559cfa98e93561dd945a0fe92909718",class:"togglecheckbox__error-message"},this.errorMessage),i("div",{key:"e56a8fafa17da25d01f894fe6e6c143c318d2aab",class:"togglecheckbox__wrapper--relative"},this.tooltip&&i("img",{key:"8b59366827b8f4f8ca5581203a2dca44ae8132d5",class:"togglecheckbox__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("div",{key:"475e27345b51396c36e78b5a1e06edd980bc3ae1",class:"togglecheckbox__fields-wrapper "+(this.showFields?"":"hidden")},this.options.map((t=>i("general-input",{type:t.inputType,name:t.name,displayName:t.displayName,validation:t.validate,action:t.action||null,defaultValue:t.defaultValue,autofilled:t.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:t.tooltip,placeholder:null==t.placeholder?"":t.placeholder})))))}};Ep.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}';export{Co as checkbox_group_input,Ro as checkbox_input,vd as date_input,gd as email_input,bd as general_input,wd as general_registration,Ed as number_input,jm as password_input,Vm as radio_input,_p as select_input,yp as tel_input,wp as text_input,Ep as toggle_checkbox_input}
6896
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new co(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new vo(this.inputElement,this._labelController)),this._tooltipController=new vr(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t)}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t)}}l(bb);const _b=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.defaultValue="",this.options=[],this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.touched=!1,this.handleChange=t=>{this.touched=!0;const e=t.target.value,i=this.options.find((t=>t.value.toLowerCase()===e.toLowerCase()));this.value=i?i.value:e,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.displayedOptions=this.options.map((t=>({label:t.label,value:t.value.toUpperCase()})))}componentWillLoad(){if(this.action&&!this.options.length&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];return this.getOptions(t).then((t=>{const e=Object.keys(t)[0];this.displayedOptions=t[e].map((t=>({label:t.Name,value:t.Alpha2Code})))}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue.toUpperCase(),this.valueHandler({name:this.name,value:this.value}))}getOptions(t){const e=new URL(t);return new Promise(((t,i)=>{fetch(e.href).then((t=>t.json())).then((e=>{t(e)})).catch((t=>{console.error(t),i(t)}))}))}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return n("requiredError",this.language)}renderTooltip(){return this.showTooltip?i("div",{class:"select__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"3d298b9709617233adacd88b8acb7d6298d35627",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"9ba53148a200b925da11ad0dea5589e9634ffb03",class:"select__wrapper--flex"},i("label",{key:"eb2fa2233926ada4da750e47304325d0d7ea3985",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),i("div",{key:"3cbe968f9a7c612d0b8d0517621a933cccd1bd58",class:"select__wrapper--relative"},this.tooltip&&i("img",{key:"9fa9be645ed72897a95705b0e17b3aee855eb6d4",class:"select__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("vaadin-combo-box",{key:"f596a5fa5b480791080dfa63359ed30eeabfaa02",name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",readOnly:this.autofilled,required:this.validation.mandatory,value:this.defaultValue,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleChange,onBlur:this.handleBlur}),i("small",{key:"a9c652406489ba1d23497c55aa14e7b67fa701bd",class:"select__error-message"},this.errorMessage))}get element(){return r(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};_b.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%}vaadin-combo-box>input{background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--registration-typography, var(--emw--color-black, #000000));font-weight:300;font-size:16px;-webkit-font-smoothing:initial;}.select{font-family:"Roboto";font-style:normal}.select__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.select__wrapper--autofilled{pointer-events:none}.select__wrapper--autofilled .select__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__wrapper--autofilled .select__input::part(input-field){color:var(--emw--color-black, #000000)}.select__wrapper--flex{display:flex;gap:5px}.select__wrapper--relative{position:relative}.select__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.select__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.select__input[invalid]::part(input-field){border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__input vaadin-date-picker-overlay-content>vaadin-button{color:var(--emw--color-black, #000000)}.select__input::part(input-field){border-radius:4px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-size:16px;font-weight:300;line-height:1.5;padding:0;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.select__input>input{padding:5px 15px}.select__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.select__tooltip-icon{width:16px;height:auto}.select__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.select__tooltip.visible{opacity:1}';const yb=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.phoneValue=t.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.isValid=this.setValidity(),this.touched=!0,this.errorMessage=this.setErrorMessage()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(t){this.sendValidityState.emit(t)}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.phoneValue=this.defaultValue.phone||null)}componentWillLoad(){if(this.action&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];return this.getPhoneCodes(t).then((t=>{this.phoneCodesOptions=t.phoneCodes.map((t=>({label:t.Prefix,value:t.Prefix})))}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(t){const e=new URL(t);return new Promise(((t,i)=>{fetch(e.href).then((t=>t.json())).then((e=>{t(e)})).catch((t=>{console.error(t),i(t)}))}))}handlePrefixInput(t){this.prefixValue=t.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e;if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return n(`${i}`,this.language)?n(`${i}`,this.language):r}return this.inputReference.validity.tooShort||this.inputReference.validity.tooLong?n("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}}):this.inputReference.validity.valueMissing?n("requiredError",this.language):void 0}renderTooltip(){return this.showTooltip?i("div",{class:"tel__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"5febd36c339710683111039d477196daac87853c",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"fb779beee03992b23478ffcaac85095420048ceb",class:"tel__wrapper--flex-label"},i("label",{key:"5b69271c1c8bf403a003d765adb40a553e09466e",class:"tel__label "+(this.validation.mandatory?"tel__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"040c487308231459fc92eba2e643a80639df09d6",class:"tel__wrapper--relative"},this.tooltip&&i("img",{key:"91efd4656c718c75e5047413daf10c22c37e8f93",class:"tel__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("div",{key:"6215f80b6bccb3dfb03dbbc485c850725633627c",class:`tel__wrapper--flex ${t}`},i("vaadin-combo-box",{key:"3b7b1ef3415619c51d74f5fc7c5e034acb8f037f",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.autofilled,onChange:t=>this.handlePrefixInput(t)}),i("input",{key:"886553206896c367ba96f015d81b44ea86f741ea",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:this.phoneValue,placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),i("small",{key:"d4c88d386c3342c789527d925e9cd061494b785c",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};yb.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.tel__wrapper--flex--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__prefix::part(toggle-button){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}';const Eb=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.defaultValue="",this.clientStyling="",this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.value="",this.validationPattern="",this.duplicateInputValue=null,this.touched=!1,this.handleInput=t=>{this.value=t.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)}),500)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&!0===this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.isValid=this.setValidity()}setValidity(){var t;return(!this.isDuplicateInput||this.duplicateInputValue===this.value)&&(null===(t=this.inputReference)||void 0===t?void 0:t.validity.valid)}setPattern(){var t,e;if((null===(t=this.validation.custom)||void 0===t?void 0:t.length)>0)return null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.pattern}setErrorMessage(){var t,e,i,r;if(this.inputReference.validity.patternMismatch){const i=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey,r=null===(e=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===e?void 0:e.errorMessage;return n(`${i}`,this.language)?n(`${i}`,this.language):r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return n("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return n("requiredError",this.language);if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const t=null===(i=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===i?void 0:i.errorKey,e=null===(r=this.validation.custom.find((t=>"duplicate-input"===t.rule)))||void 0===r?void 0:r.errorMessage;return n(`${t}`,this.language)?n(`${t}`,this.language):e}}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){let t="";return this.touched&&(t=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"bfb803110a70b89dd484e993c204b572f0115a17",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},i("div",{key:"6e9f8f5aada98821d5dc78ccb8b1431ba23b81ab",class:"text__wrapper--flex"},i("label",{key:"05cf07855121a79641475a5b020774cf8120d1ed",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"f8c48a999f6827a61ec392ce99858c19559c77d2",class:"text__wrapper--relative"},this.tooltip&&i("img",{key:"e866f1df104ce57c29164e73b4ad4d017c7201cd",class:"text__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"d761c265b1487fe73af54568b6da7fed82656b8d",name:this.name,id:`${this.name}__input`,value:this.defaultValue,type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"5c8df34dd47959eb1668cdf389524d145c69fa84",class:"text__error-message"},this.errorMessage))}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Eb.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.text{font-family:"Roboto";font-style:normal}.text__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px;height:100%}.text__wrapper--autofilled{pointer-events:none}.text__wrapper--autofilled .text__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__wrapper--autofilled .text__input::part(input-field){color:var(--emw--color-black, #000000)}.text__wrapper--flex{display:flex;gap:5px}.text__wrapper--relative{position:relative}.text__label{font-family:inherit;font-style:normal;font-weight:500;font-size:16px;line-height:20px;color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.text__label--required::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C));margin-left:2px}.text__input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);border-radius:5px;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px}.text__input:focus{border:1px solid var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__input::placeholder{color:var(--emw--color-gray-150, #828282)}.text__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.text__tooltip-icon{width:16px;height:auto}.text__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.text__tooltip.visible{opacity:1}';const wb=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.defaultValue="",this.clientStyling="",this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields="true"===this.defaultValue,this.value="",this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)}}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){t.composedPath()[0]!==this.tooltipIconReference&&t.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(){this.showFields=this.checkboxReference.checked,this.errorMessage=this.setErrorMessage(),this.isValid=this.setValidity(),this.valueHandler({name:this.name,value:this.checkboxReference.checked?"true":"false",type:"toggle"})}setValidity(){return this.checkboxReference.validity.valid}setErrorMessage(){if(this.checkboxReference.validity.valueMissing)return n("requiredError",this.language)}renderLabel(){return i("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},i("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?i("div",{class:"togglecheckbox__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}render(){return i("div",{key:"8c8e9bb2ae7feadf3a5fc38b9913e38d7ccb9aed",class:`togglecheckbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"18e2ec43ff98738323ddab1e134d6d215978e1c7",class:"togglecheckbox__wrapper--flex"},i("input",{key:"640b3ba4fd34bd813239533236e51f452e735409",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:t=>this.checkboxReference=t,name:this.name,checked:"true"===this.defaultValue,readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),i("small",{key:"efd70a691559cfa98e93561dd945a0fe92909718",class:"togglecheckbox__error-message"},this.errorMessage),i("div",{key:"e56a8fafa17da25d01f894fe6e6c143c318d2aab",class:"togglecheckbox__wrapper--relative"},this.tooltip&&i("img",{key:"8b59366827b8f4f8ca5581203a2dca44ae8132d5",class:"togglecheckbox__tooltip-icon",src:a,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("div",{key:"475e27345b51396c36e78b5a1e06edd980bc3ae1",class:"togglecheckbox__fields-wrapper "+(this.showFields?"":"hidden")},this.options.map((t=>i("general-input",{type:t.inputType,name:t.name,displayName:t.displayName,validation:t.validate,action:t.action||null,defaultValue:t.defaultValue,autofilled:t.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:t.tooltip,placeholder:null==t.placeholder?"":t.placeholder})))))}};wb.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.togglecheckbox{font-family:"Roboto";font-style:normal;font-size:15px}.togglecheckbox__wrapper{position:relative}.togglecheckbox__wrapper--flex{display:flex;gap:10px;align-items:baseline}.togglecheckbox__wrapper--relative{position:relative;display:inline}.togglecheckbox__input{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__label{font-style:inherit;font-family:inherit;font-weight:400;font-size:16px;color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.togglecheckbox__label-text{font-size:16px}.togglecheckbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #D0046C))}.togglecheckbox__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.togglecheckbox__tooltip-icon{width:16px;height:auto}.togglecheckbox__tooltip{position:absolute;top:0;right:0;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.togglecheckbox__tooltip.visible{opacity:1}.togglecheckbox__fields-wrapper{margin-top:40px;display:flex;flex-direction:column;gap:40px}.hidden{display:none}';export{Oo as checkbox_group_input,zo as checkbox_input,vd as date_input,gd as email_input,bd as general_input,Ev as general_registration,wv as number_input,Hg as password_input,Fg as radio_input,_b as select_input,yb as tel_input,Eb as text_input,wb as toggle_checkbox_input}