@everymatrix/general-registration-multistep 1.87.33 → 1.87.34

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"./index-9ed15dae.js";const s={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",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.",invalidPassword:"Password does not meet 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",MustIncludeLowercase:"Password must include one lowercase character",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend",enterIEAddressManually:"For IRE, enter the address manually",postalLookUpNoAddressFound:"No addresses found for this postal code",searchingForAddresses:"Searching for addresses...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:"},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",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.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",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",MustIncludeLowercase:"A jelszónak legalább egy kisbetűt kell tartalmaznia",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:"},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",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",invalidPassword:"Lozinka ne zadovoljava sve kriterije",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",MustIncludeLowercase:"Lozinka mora sadržavati barem jedno malo slovo",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:"},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",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.",invalidPassword:"Şifre 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",MustIncludeLowercase:"Şifre en az bir küçük harf içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:"},"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",dateFormatError:"A data selecionada está em um formato diferente do exigido.",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",invalidPassword:"A senha não atende a todos os critérios",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",MustIncludeLowercase:"A senha deve conter pelo menos uma letra minúscula",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",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",invalidPassword:"La contraseña no cumple con todos los criterios",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",MustIncludeLowercase:"La contraseña debe contener al menos una letra minúscula",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:"},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :"}},n={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},a=(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},l="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",h=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value=null,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(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.showCheckboxes=!0,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 a("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){const e=t.target.checked;this.showCheckboxes=e,this.selectedValues=e?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:"9985f4050655bc2233090f63abb0e22f2fe0b556",class:`checkboxgroup__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"9922e45ae7ee74b137ffc8552b3d714b7e3b1f59",class:"checkboxgroup__wrapper--flex"},i("vaadin-checkbox",{key:"f18bae7c3ee6df76edcde75924eb1ad51a227443",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:"3dc2ce07e4d5f8de7ed4707b5e140fb4752ca86b",class:"checkboxgroup__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("small",{key:"d55f25f75aa20007ff58cf45b6632517f49b6c00",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&i("vaadin-checkbox-group",{key:"210c3cc2868a07a403494e04336c4f3091eea0e4",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{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};h.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, #22B04E))}.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, #22B04E))}.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::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}';const d=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value="",this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.vaadinCheckbox.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCheckbox(t){this.value=t.target.checked.toString(),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return a("requiredError",this.language)}renderLabel(){var t;return i("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},i("div",{class:{"checkbox__label-text":!0,mandatory:null===(t=this.validation)||void 0===t?void 0:t.mandatory},innerHTML:this.displayName}))}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:"80ed581cec5bb009ea5ea009f11c6453fe24ef7b",class:`checkbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("vaadin-checkbox",{key:"42d793f607af77435f629218f9bdac7736522bc3",class:"checkbox__input",required:this.validation.mandatory,checked:"true"===this.defaultValue,onChange:t=>this.handleCheckbox(t),"error-message":!this.isValid&&this.errorMessage,ref:t=>this.vaadinCheckbox=t},this.renderLabel()),this.tooltip&&i("img",{key:"ce3870810ede8f3905fd8c07c0892ab0d909bab5",class:"checkboxgroup__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};function c(t){return c="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},c(t)}function u(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function m(t){u(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===c(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 p(t){if(u(1,arguments),!function(t){return u(1,arguments),t instanceof Date||"object"===c(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=m(t);return!isNaN(Number(e))}function v(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 _(t,e){return u(2,arguments),function(t,e){u(2,arguments);var i=m(t).getTime(),r=v(e);return new Date(i+r)}(t,-v(e))}function f(t){u(1,arguments);var e=m(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 g(t){u(1,arguments);var e=m(t),i=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(i+1,0,4),r.setUTCHours(0,0,0,0);var o=f(r),s=new Date(0);s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0);var n=f(s);return e.getTime()>=o.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}d.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.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;padding:0px;vertical-align:baseline}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.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}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input::part(required-indicator)::after{display:none}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}';function b(t){u(1,arguments);var e=m(t),i=f(e).getTime()-function(t){u(1,arguments);var e=g(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),f(i)}(e).getTime();return Math.round(i/6048e5)+1}var E={};function y(){return E}function w(t,e){var i,r,o,s,n,a,l,h;u(1,arguments);var d=y(),c=v(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:d.weekStartsOn)&&void 0!==r?r:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=m(t),_=p.getUTCDay(),f=(_<c?7:0)+_-c;return p.setUTCDate(p.getUTCDate()-f),p.setUTCHours(0,0,0,0),p}function k(t,e){var i,r,o,s,n,a,l,h;u(1,arguments);var d=m(t),c=d.getUTCFullYear(),p=y(),_=v(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:p.firstWeekContainsDate)&&void 0!==r?r:null===(l=p.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(c+1,0,_),f.setUTCHours(0,0,0,0);var g=w(f,e),b=new Date(0);b.setUTCFullYear(c,0,_),b.setUTCHours(0,0,0,0);var E=w(b,e);return d.getTime()>=g.getTime()?c+1:d.getTime()>=E.getTime()?c:c-1}function x(t,e){u(1,arguments);var i=m(t),r=w(i,e).getTime()-function(t,e){var i,r,o,s,n,a,l,h;u(1,arguments);var d=y(),c=v(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),m=k(t,e),p=new Date(0);return p.setUTCFullYear(m,0,c),p.setUTCHours(0,0,0,0),w(p,e)}(i,e).getTime();return Math.round(r/6048e5)+1}function S(t,e){for(var i=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return i+r}const A=function(t,e){var i=t.getUTCFullYear(),r=i>0?i:1-i;return S("yy"===e?r%100:r,e.length)},C=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):S(i+1,2)},I=function(t,e){return S(t.getUTCDate(),e.length)},T=function(t,e){return S(t.getUTCHours()%12||12,e.length)},R=function(t,e){return S(t.getUTCHours(),e.length)},O=function(t,e){return S(t.getUTCMinutes(),e.length)},D=function(t,e){return S(t.getUTCSeconds(),e.length)},N=function(t,e){var i=e.length,r=t.getUTCMilliseconds();return S(Math.floor(r*Math.pow(10,i-3)),e.length)};function z(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+S(s,2)}function G(t,e){return t%60==0?(t>0?"-":"+")+S(Math.abs(t)/60,2):M(t,e)}function M(t,e){var i=e||"",r=t>0?"-":"+",o=Math.abs(t);return r+S(Math.floor(o/60),2)+i+S(o%60,2)}const B={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 A(t,e)},Y:function(t,e,i,r){var o=k(t,r),s=o>0?o:1-o;return"YY"===e?S(s%100,2):"Yo"===e?i.ordinalNumber(s,{unit:"year"}):S(s,e.length)},R:function(t,e){return S(g(t),e.length)},u:function(t,e){return S(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 S(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 S(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 C(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 S(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=x(t,r);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):S(o,e.length)},I:function(t,e,i){var r=b(t);return"Io"===e?i.ordinalNumber(r,{unit:"week"}):S(r,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):I(t,e)},D:function(t,e,i){var r=function(t){u(1,arguments);var e=m(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"}):S(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 S(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 S(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 S(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 T(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):R(t,e)},K:function(t,e,i){var r=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(r,{unit:"hour"}):S(r,e.length)},k:function(t,e,i){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?i.ordinalNumber(r,{unit:"hour"}):S(r,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):O(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):D(t,e)},S:function(t,e){return N(t,e)},X:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return G(o);case"XXXX":case"XX":return M(o);default:return M(o,":")}},x:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return G(o);case"xxxx":case"xx":return M(o);default:return M(o,":")}},O:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+z(o,":");default:return"GMT"+M(o,":")}},z:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+z(o,":");default:return"GMT"+M(o,":")}},t:function(t,e,i,r){return S(Math.floor((r._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,r){return S((r._originalDate||t).getTime(),e.length)}};var U=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"})}},P=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"})}},L={p:P,P:function(t,e){var i,r=t.match(/(P+)(p+)?/)||[],o=r[1],s=r[2];if(!s)return U(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}}",U(o,e)).replace("{{time}}",P(s,e))}};const j=L;function F(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 V=["D","DD"],H=["YY","YYYY"];function q(t){return-1!==V.indexOf(t)}function $(t){return-1!==H.indexOf(t)}function X(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 K={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 W(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 Y,Z={date:W({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:W({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:W({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Q={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function J(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 tt(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 et={code:"en-US",formatDistance:function(t,e,i){var r,o=K[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:Z,formatRelative:function(t){return Q[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:J({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:J({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:J({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:J({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:J({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:(Y={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(Y.matchPattern);if(!i)return null;var r=i[0],o=t.match(Y.parsePattern);if(!o)return null;var s=Y.valueCallback?Y.valueCallback(o[0]):o[0];return{value:s=e.valueCallback?e.valueCallback(s):s,rest:t.slice(r.length)}}),era:tt({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:tt({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:tt({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:tt({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:tt({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 it=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ot=/^'([^]*?)'?$/,st=/''/g,nt=/[a-zA-Z]/;function at(t,e,i){var r,o,s,n,a,l,h,d,c,f,g,b,E,w,k,x,S,A;u(2,arguments);var C=String(e),I=y(),T=null!==(r=null!==(o=null==i?void 0:i.locale)&&void 0!==o?o:I.locale)&&void 0!==r?r:et,R=v(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===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==a?a:I.firstWeekContainsDate)&&void 0!==n?n:null===(c=I.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==s?s:1);if(!(R>=1&&R<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var O=v(null!==(g=null!==(b=null!==(E=null!==(w=null==i?void 0:i.weekStartsOn)&&void 0!==w?w:null==i||null===(k=i.locale)||void 0===k||null===(x=k.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==E?E:I.weekStartsOn)&&void 0!==b?b:null===(S=I.locale)||void 0===S||null===(A=S.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==g?g:0);if(!(O>=0&&O<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var D=m(t);if(!p(D))throw new RangeError("Invalid time value");var N=_(D,F(D)),z={firstWeekContainsDate:R,weekStartsOn:O,locale:T,_originalDate:D};return C.match(rt).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,j[e])(t,T.formatLong):t})).join("").match(it).map((function(r){if("''"===r)return"'";var o,s,n=r[0];if("'"===n)return(s=(o=r).match(ot))?s[1].replace(st,"'"):o;var a=B[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!$(r)||X(r,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!q(r)||X(r,e,String(t)),a(N,r,T.localize,z);if(n.match(nt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return r})).join("")}function lt(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 ht(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 lt(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)?lt(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 dt(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 ct(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ut(t,e){return ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ut(t,e)}function mt(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&&ut(t,e)}function pt(t){return pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pt(t)}function vt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vt=function(){return!!t})()}function _t(t){var e=vt();return function(){var i,r=pt(t);if(e){var o=pt(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ct(t)}(this,i)}}function ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gt(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function bt(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,gt(r.key),r)}}function Et(t,e,i){return e&&bt(t.prototype,e),i&&bt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function yt(t,e,i){return(e=gt(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var wt=function(){function t(){ft(this,t),yt(this,"priority",void 0),yt(this,"subPriority",0)}return Et(t,[{key:"validate",value:function(){return!0}}]),t}(),kt=function(){mt(e,wt);var t=_t(e);function e(i,r,o,s,n){var a;return ft(this,e),(a=t.call(this)).value=i,a.validateValue=r,a.setValue=o,a.priority=s,n&&(a.subPriority=n),a}return Et(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}(),xt=function(){mt(e,wt);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",10),yt(ct(i),"subPriority",-1),i}return Et(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}(),St=function(){function t(){ft(this,t),yt(this,"incompatibleTokens",void 0),yt(this,"priority",void 0),yt(this,"subPriority",void 0)}return Et(t,[{key:"run",value:function(t,e,i,r){var o=this.parse(t,e,i,r);return o?{setter:new kt(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),At=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",140),yt(ct(i),"incompatibleTokens",["R","u","t","T"]),i}return Et(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}(),Ct=/^(1[0-2]|0?\d)/,It=/^(3[0-1]|[0-2]?\d)/,Tt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Rt=/^(5[0-3]|[0-4]?\d)/,Ot=/^(2[0-3]|[0-1]?\d)/,Dt=/^(2[0-4]|[0-1]?\d)/,Nt=/^(1[0-1]|0?\d)/,zt=/^(1[0-2]|0?\d)/,Gt=/^[0-5]?\d/,Mt=/^[0-5]?\d/,Bt=/^\d/,Ut=/^\d{1,2}/,Pt=/^\d{1,3}/,Lt=/^\d{1,4}/,jt=/^-?\d+/,Ft=/^-?\d/,Vt=/^-?\d{1,2}/,Ht=/^-?\d{1,3}/,qt=/^-?\d{1,4}/,$t=/^([+-])(\d{2})(\d{2})?|Z/,Xt=/^([+-])(\d{2})(\d{2})|Z/,Kt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Wt=/^([+-])(\d{2}):(\d{2})|Z/,Yt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Zt(t,e){return t?{value:e(t.value),rest:t.rest}:t}function Qt(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function Jt(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 te(t){return Qt(jt,t)}function ee(t,e){switch(t){case 1:return Qt(Bt,e);case 2:return Qt(Ut,e);case 3:return Qt(Pt,e);case 4:return Qt(Lt,e);default:return Qt(new RegExp("^\\d{1,"+t+"}"),e)}}function ie(t,e){switch(t){case 1:return Qt(Ft,e);case 2:return Qt(Vt,e);case 3:return Qt(Ht,e);case 4:return Qt(qt,e);default:return Qt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function re(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function oe(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 se(t){return t%400==0||t%4==0&&t%100!=0}var ne=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",130),yt(ct(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){var r=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return Zt(ee(4,t),r);case"yo":return Zt(i.ordinalNumber(t,{unit:"year"}),r);default:return Zt(ee(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=oe(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}(),ae=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",130),yt(ct(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){var r=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return Zt(ee(4,t),r);case"Yo":return Zt(i.ordinalNumber(t,{unit:"year"}),r);default:return Zt(ee(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=k(t,r);if(i.isTwoDigitYear){var s=oe(i.year,o);return t.setUTCFullYear(s,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),w(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),w(t,r)}}]),e}(),le=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",130),yt(ct(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e){return ie("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),f(r)}}]),e}(),he=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",130),yt(ct(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e){return ie("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}(),de=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",120),yt(ct(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return ee(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}(),ce=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",120),yt(ct(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return ee(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}(),ue=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),yt(ct(i),"priority",110),i}return Et(e,[{key:"parse",value:function(t,e,i){var r=function(t){return t-1};switch(e){case"M":return Zt(Qt(Ct,t),r);case"MM":return Zt(ee(2,t),r);case"Mo":return Zt(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}(),me=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",110),yt(ct(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){var r=function(t){return t-1};switch(e){case"L":return Zt(Qt(Ct,t),r);case"LL":return Zt(ee(2,t),r);case"Lo":return Zt(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}(),pe=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",100),yt(ct(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return Qt(Rt,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return ee(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,r){return w(function(t,e,i){u(2,arguments);var r=m(t),o=v(e),s=x(r,i)-o;return r.setUTCDate(r.getUTCDate()-7*s),r}(t,i,r),r)}}]),e}(),ve=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",100),yt(ct(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return Qt(Rt,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return ee(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return f(function(t,e){u(2,arguments);var i=m(t),r=v(e),o=b(i)-r;return i.setUTCDate(i.getUTCDate()-7*o),i}(t,i))}}]),e}(),_e=[31,28,31,30,31,30,31,31,30,31,30,31],fe=[31,29,31,30,31,30,31,31,30,31,30,31],ge=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",90),yt(ct(i),"subPriority",1),yt(ct(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return Qt(It,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return ee(e.length,t)}}},{key:"validate",value:function(t,e){var i=se(t.getUTCFullYear()),r=t.getUTCMonth();return i?e>=1&&e<=fe[r]:e>=1&&e<=_e[r]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),be=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",90),yt(ct(i),"subpriority",1),yt(ct(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return Qt(Tt,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return ee(e.length,t)}}},{key:"validate",value:function(t,e){return se(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 Ee(t,e,i){var r,o,s,n,a,l,h,d;u(2,arguments);var c=y(),p=v(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:c.weekStartsOn)&&void 0!==o?o:null===(h=c.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=m(t),f=v(e),g=((f%7+7)%7<p?7:0)+f-_.getUTCDay();return _.setUTCDate(_.getUTCDate()+g),_}var ye=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",90),yt(ct(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return Et(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=Ee(t,i,r)).setUTCHours(0,0,0,0),t}}]),e}(),we=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",90),yt(ct(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return Et(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 Zt(ee(e.length,t),o);case"eo":return Zt(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=Ee(t,i,r)).setUTCHours(0,0,0,0),t}}]),e}(),ke=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",90),yt(ct(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return Et(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 Zt(ee(e.length,t),o);case"co":return Zt(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=Ee(t,i,r)).setUTCHours(0,0,0,0),t}}]),e}(),xe=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",90),yt(ct(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){var r=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return ee(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return Zt(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 Zt(i.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Zt(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),r);default:return Zt(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){u(2,arguments);var i=v(e);i%7==0&&(i-=7);var r=m(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}(),Se=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",80),yt(ct(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return Et(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(re(i),0,0,0),t}}]),e}(),Ae=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",80),yt(ct(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return Et(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(re(i),0,0,0),t}}]),e}(),Ce=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",80),yt(ct(i),"incompatibleTokens",["a","b","t","T"]),i}return Et(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(re(i),0,0,0),t}}]),e}(),Ie=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",70),yt(ct(i),"incompatibleTokens",["H","K","k","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return Qt(zt,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return ee(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}(),Te=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",70),yt(ct(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return Qt(Ot,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return ee(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}(),Re=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",70),yt(ct(i),"incompatibleTokens",["h","H","k","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return Qt(Nt,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return ee(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}(),Oe=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",70),yt(ct(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return Qt(Dt,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return ee(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}(),De=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",60),yt(ct(i),"incompatibleTokens",["t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return Qt(Gt,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return ee(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}(),Ne=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",50),yt(ct(i),"incompatibleTokens",["t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return Qt(Mt,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return ee(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}(),ze=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",30),yt(ct(i),"incompatibleTokens",["t","T"]),i}return Et(e,[{key:"parse",value:function(t,e){return Zt(ee(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}(),Ge=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",10),yt(ct(i),"incompatibleTokens",["t","T","x"]),i}return Et(e,[{key:"parse",value:function(t,e){switch(e){case"X":return Jt($t,t);case"XX":return Jt(Xt,t);case"XXXX":return Jt(Kt,t);case"XXXXX":return Jt(Yt,t);default:return Jt(Wt,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Me=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",10),yt(ct(i),"incompatibleTokens",["t","T","X"]),i}return Et(e,[{key:"parse",value:function(t,e){switch(e){case"x":return Jt($t,t);case"xx":return Jt(Xt,t);case"xxxx":return Jt(Kt,t);case"xxxxx":return Jt(Yt,t);default:return Jt(Wt,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Be=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",40),yt(ct(i),"incompatibleTokens","*"),i}return Et(e,[{key:"parse",value:function(t){return te(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),Ue=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",20),yt(ct(i),"incompatibleTokens","*"),i}return Et(e,[{key:"parse",value:function(t){return te(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),Pe={G:new At,y:new ne,Y:new ae,R:new le,u:new he,Q:new de,q:new ce,M:new ue,L:new me,w:new pe,I:new ve,d:new ge,D:new be,E:new ye,e:new we,c:new ke,i:new xe,a:new Se,b:new Ae,B:new Ce,h:new Ie,H:new Te,K:new Re,k:new Oe,m:new De,s:new Ne,S:new ze,X:new Ge,x:new Me,t:new Be,T:new Ue},Le=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,je=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fe=/^'([^]*?)'?$/,Ve=/''/g,He=/\S/,qe=/[a-zA-Z]/;function $e(t,e,i,r){var o,s,n,a,l,h,d,p,f,g,b,E,w,k,x,S,A,C;u(3,arguments);var I=String(t),T=String(e),R=y(),O=null!==(o=null!==(s=null==r?void 0:r.locale)&&void 0!==s?s:R.locale)&&void 0!==o?o:et;if(!O.match)throw new RangeError("locale must contain match property");var D=v(null!==(n=null!==(a=null!==(l=null!==(h=null==r?void 0:r.firstWeekContainsDate)&&void 0!==h?h:null==r||null===(d=r.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==l?l:R.firstWeekContainsDate)&&void 0!==a?a:null===(f=R.locale)||void 0===f||null===(g=f.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==n?n:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=v(null!==(b=null!==(E=null!==(w=null!==(k=null==r?void 0:r.weekStartsOn)&&void 0!==k?k:null==r||null===(x=r.locale)||void 0===x||null===(S=x.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==w?w:R.weekStartsOn)&&void 0!==E?E:null===(A=R.locale)||void 0===A||null===(C=A.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==b?b:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===T)return""===I?m(i):new Date(NaN);var z,G={firstWeekContainsDate:D,weekStartsOn:N,locale:O},M=[new xt],B=T.match(je).map((function(t){var e=t[0];return e in j?(0,j[e])(t,O.formatLong):t})).join("").match(Le),U=[],P=ht(B);try{var L=function(){var e=z.value;null!=r&&r.useAdditionalWeekYearTokens||!$(e)||X(e,T,t),null!=r&&r.useAdditionalDayOfYearTokens||!q(e)||X(e,T,t);var i=e[0],o=Pe[i];if(o){var s=o.incompatibleTokens;if(Array.isArray(s)){var n=U.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&&U.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));U.push({token:i,fullToken:e});var a=o.run(I,e,O.match,G);if(!a)return{v:new Date(NaN)};M.push(a.setter),I=a.rest}else{if(i.match(qe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(Fe)[1].replace(Ve,"'")),0!==I.indexOf(e))return{v:new Date(NaN)};I=I.slice(e.length)}};for(P.s();!(z=P.n()).done;){var V=L();if("object"===c(V))return V.v}}catch(t){P.e(t)}finally{P.f()}if(I.length>0&&He.test(I))return new Date(NaN);var H=M.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 M.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),K=m(i);if(isNaN(K.getTime()))return new Date(NaN);var W,Y=_(K,F(K)),Z={},Q=ht(H);try{for(Q.s();!(W=Q.n()).done;){var J=W.value;if(!J.validate(Y,G))return new Date(NaN);var tt=J.set(Y,Z,G);Array.isArray(tt)?(Y=tt[0],dt(Z,tt[1])):Y=tt}}catch(t){Q.e(t)}finally{Q.f()}return Y}function Xe(t,e){u(2,arguments);var i=m(t),r=m(e);return i.getTime()>r.getTime()}function Ke(t,e){u(2,arguments);var i=m(t),r=m(e);return i.getTime()<r.getTime()}function We(t,e,i){return u(2,arguments),p($e(t,e,new Date,i))}const Ye=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.touched=!1,this.formatDate=t=>{const{year:e,month:i,day:r}=t;return at(new Date(e,i,r),this.dateFormat)},this.parseDate=t=>{const e=$e(t,this.dateFormat,new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.handleDocumentIdUpdate=t=>{this.name===n.BIRTHDATE&&(this.value=t.detail,this.valueAsDate=$e(this.value||"",n.DATE_FORMAT,new Date),this.touched=!0,this.datePicker&&(this.datePicker.value=this.value),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.valueHandler({name:this.name,value:this.value}))},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat="yyyy-MM-dd",this.emitOnClick=!1,this.enableSouthAfricanMode=void 0,this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}get formattedValue(){return this.value?at($e(this.value,"yyyy-MM-dd",new Date),this.dateFormat):""}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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})}handleCustomRegistrationChange(t){t?window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate):window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t,e;this.minDate=$e((null===(t=this.validation.min)||void 0===t?void 0:t.toString())||"","yyyy-MM-dd",new Date),this.maxDate=$e((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.addEventListener("opened-changed",(t=>{!0===t.detail.value?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)}))}this.enableSouthAfricanMode&&window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value})),this.isValid=this.setValidity()}disconnectedCallback(){this.enableSouthAfricanMode&&window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}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=$e(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0),this.enableSouthAfricanMode&&window.dispatchEvent(new CustomEvent("birthDateUpdated",{detail:{birthDate:this.value}}))}setValidity(){return!(Ke(this.valueAsDate,this.minDate)||Xe(this.valueAsDate,this.maxDate)||!We(this.formattedValue,this.dateFormat))&&this.inputReference.validity.valid}setErrorMessage(){return this.inputReference.validity.valueMissing?a("requiredError",this.language):this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?a("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):Ke(this.valueAsDate,this.minDate)||Xe(this.valueAsDate,this.maxDate)?a("dateError2",this.language):We(this.formattedValue,this.dateFormat)?void 0:a("dateFormatError",this.language)}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:"9399c1be2edcbe3ed5c0e133cad52b1917e77e96",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("label",{key:"1094491a5fc441c4f704441d376ed965d6946637",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName,i("span",{key:"14dd041cce018e22d82919f46eabc88f83e639e8",class:this.validation.mandatory?"date__label--required":""})),i("vaadin-date-picker",{key:"eb720200d8d2b07ab00bca70c8e4a25dfc5cd08f",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)}),i("small",{key:"eedeea67c67bdc92ae1bb3e79cab745384bb0db7",class:"date__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"2b9cbbb972e4d07124a3d548eb932a26a44f75f3",class:"date__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],enableSouthAfricanMode:["handleCustomRegistrationChange"]}}};Ye.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, #22B04E));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, #22B04E))}.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:var(--emw--color-error, var(--emw--color-red, #ed0909))}.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 Ze=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),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)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(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.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});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 a(`${i}`,this.language)?a(`${i}`,this.language):r}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 a(`${t}`,this.language)?a(`${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:"723df8f3a6e8c57fe19082400971daf50f5c981d",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"581d6e02b63d1c659ae44424518f64db450d5365",class:"email__wrapper--flex"},i("label",{key:"11e6a848f6f04903989b3ab2075865f6e279c087",class:"email__label "+(this.validation.mandatory?"email__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"73e11520cffbddda1a2aeb4b560e7f4cf456e2fb",class:"email__wrapper--relative"},this.tooltip&&i("img",{key:"e8571ce14b9b98311daf1712ebde7d6da9b5a6a6",class:"email__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"dd05ef0b4d906598c6d5775a78ccbdc9ea81cb8c",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:"0d2d41207f8274d8c6f69143131265ef5b458689",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ze.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, #22B04E));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, #22B04E))}.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}';var Qe=Object.defineProperty,Je=Object.defineProperties,ti=Object.getOwnPropertyDescriptors,ei=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable,oi=(t,e,i)=>e in t?Qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,si=(t,e)=>{for(var i in e||(e={}))ii.call(e,i)&&oi(t,i,e[i]);if(ei)for(var i of ei(e))ri.call(e,i)&&oi(t,i,e[i]);return t},ni=(t,e)=>Je(t,ti(e)),ai=(t,e,i)=>(oi(t,"symbol"!=typeof e?e+"":e,i),i),li=(t,e,i)=>new Promise(((r,o)=>{var s=t=>{try{a(i.next(t))}catch(t){o(t)}},n=t=>{try{a(i.throw(t))}catch(t){o(t)}},a=t=>t.done?r(t.value):Promise.resolve(t.value).then(s,n);a((i=i.apply(t,e)).next())}))
1
+ import{r as t,c as e,h as i,g as r,H as o}from"./index-9ed15dae.js";const s={en:{dateError:"The selected date should be between {min} and {max}",dateError2:"The selected date is not within the accepted range",dateFormatError:"The selected date has a different format then the one required.",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.",invalidPassword:"Password does not meet 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",MustIncludeLowercase:"Password must include one lowercase character",OnlyNumbers:"The input should contain only digits.",InvalidFieldSize:"The length must be exactly 11 digits.",InvalidDocumentNumber:"Only numerical characters are allowed.",twofaDescription:"<p> We have sent the verification code to <p> {destination}. </p> </p> <p> Please insert the PIN below. </p>",twofaResendMessage:"Didn't receive the verification code?",twofaResendButton:"Resend",enterIEAddressManually:"For IRE, enter the address manually",postalLookUpNoAddressFound:"No addresses found for this postal code",searchingForAddresses:"Searching for addresses...",SAIdLengthError:"SA ID must be 13 digits",SAIdInvalidError:"Invalid SA ID",PassportLengthError:"Passport number must be 8 or 9 digits.",PasswordMustContain:"Password must contain:"},hu:{dateError:"A választott dátumnak {min} és {max} között kell lennie",dateError2:"A kiválasztott dátum nincs az elfogadott tartományon belül",dateFormatError:"A kiválasztott dátum formátuma eltér a szükségestől.",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.",invalidPassword:"A jelszó nem felel meg minden kritériumnak",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",MustIncludeLowercase:"A jelszónak legalább egy kisbetűt kell tartalmaznia",OnlyNumbers:"Csak számjegyeket tartalmazhat.",InvalidFieldSize:"A hosszúságnak pontosan 11 számjegynek kell lennie.",InvalidDocumentNumber:"Csak számjegyek engedélyezettek.",twofaDescription:"<p> A megerősítő kódot elküldtük a következő címre: <p> {destination}. </p> </p> <p> Kérjük, írja be az alábbi PIN-kódot. </p>",twofaResendMessage:"Nem kapta meg a megerősítő kódot?",twofaResendButton:"Újraküldés",PassportLengthError:"Az útlevélszámnak 9 számjegyűnek kell lennie",SAIdLengthError:"A dél-afrikai személyi számnak 13 számjegyűnek kell lennie",SAIdInvalidError:"Érvénytelen dél-afrikai személyi szám",PasswordMustContain:"A jelszónak tartalmaznia kell:"},hr:{dateError:"Odabrani datum treba biti između {min} i {max}",dateError2:"Odabrani datum nije unutar prihvaćenog raspona",dateFormatError:"Odabrani datum je u drugačijem formatu od potrebnog.",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",invalidPassword:"Lozinka ne zadovoljava sve kriterije",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",MustIncludeLowercase:"Lozinka mora sadržavati barem jedno malo slovo",OnlyNumbers:"Smije sadržavati samo znamenke.",InvalidFieldSize:"Dužina mora biti točno 11 znamenki.",InvalidDocumentNumber:"Dopušteni su samo numerički znakovi.",twofaDescription:"<p> Poslali smo verifikacijski kod na: <p> {destination}. </p> </p> <p> Molimo unesite PIN ispod. </p>",twofaResendMessage:"Niste primili verifikacijski kod?",twofaResendButton:"Ponovno pošalji",PassportLengthError:"Broj putovnice mora imati 9 znamenki",SAIdLengthError:"Južnoafrički osobni broj mora imati 13 znamenki",SAIdInvalidError:"Nevažeći južnoafrički osobni broj",PasswordMustContain:"Lozinka mora sadržavati:"},tr:{dateError:"Seçilen tarih {min} ve {max} arasında olmalıdır",dateError2:"Seçilen tarih kabul edilen aralıkta değil",dateFormatError:"Seçilen tarihin formatı, gereken formattan farklı.",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.",invalidPassword:"Şifre 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",MustIncludeLowercase:"Şifre en az bir küçük harf içermelidir",OnlyNumbers:"Yalnızca rakamlar içermelidir.",InvalidFieldSize:"Uzunluk tam olarak 11 rakam olmalıdır.",InvalidDocumentNumber:"Sadece sayısal karakterlere izin verilir.",twofaDescription:"<p> Doğrulama kodunu şu adrese gönderdik: <p> {destination}. </p> </p> <p> Lütfen aşağıya PIN kodunu girin. </p>",twofaResendMessage:"Doğrulama kodunu almadınız mı?",twofaResendButton:"Yeniden gönder",PassportLengthError:"Pasaport numarası 9 haneli olmalıdır",SAIdLengthError:"Güney Afrika kimlik numarası 13 haneli olmalıdır",SAIdInvalidError:"Geçersiz Güney Afrika kimlik numarası",PasswordMustContain:"Şifre şunları içermelidir:"},"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",dateFormatError:"A data selecionada está em um formato diferente do exigido.",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",invalidPassword:"A senha não atende a todos os critérios",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",MustIncludeLowercase:"A senha deve conter pelo menos uma letra minúscula",OnlyNumbers:"Deve conter apenas dígitos.",InvalidFieldSize:"O comprimento deve ser exatamente 11 dígitos.",InvalidDocumentNumber:"Apenas caracteres numéricos são permitidos.",twofaDescription:"<p> Enviamos o código de verificação para: <p> {destination}. </p> </p> <p> Por favor, insira o PIN abaixo. </p>",twofaResendMessage:"Não recebeu o código de verificação?",twofaResendButton:"Reenviar",PassportLengthError:"O número do passaporte deve ter 9 dígitos",SAIdLengthError:"O número de identificação da África do Sul deve ter 13 dígitos",SAIdInvalidError:"Número de identificação da África do Sul inválido",PasswordMustContain:"A senha deve conter:"},"es-mx":{dateError:"La fecha seleccionada debe ser entre {min} y {max}",dateError2:"La fecha seleccionada no está dentro de un rango válido",dateFormatError:"La fecha seleccionada tiene un formato diferente al requerido.",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",invalidPassword:"La contraseña no cumple con todos los criterios",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",MustIncludeLowercase:"La contraseña debe contener al menos una letra minúscula",OnlyNumbers:"Debe contener solo dígitos.",InvalidFieldSize:"La longitud debe ser exactamente de 11 dígitos.",InvalidDocumentNumber:"Solo se permiten caracteres numéricos.",twofaDescription:"<p> Hemos enviado el código de verificación a: <p> {destination}. </p> </p> <p> Por favor, ingrese el PIN a continuación. </p>",twofaResendMessage:"¿No recibiste el código de verificación?",twofaResendButton:"Reenviar",PassportLengthError:"El número de pasaporte debe tener 9 dígitos",SAIdLengthError:"El número de identificación de Sudáfrica debe tener 13 dígitos",SAIdInvalidError:"Número de identificación de Sudáfrica inválido",PasswordMustContain:"La contraseña debe contener:"},fr:{dateError:"La date sélectionnée doit être comprise entre {min} et {max}",dateError2:"La date sélectionnée n’est pas dans la plage autorisée",dateFormatError:"Le format de la date sélectionnée est incorrect.",numberLengthError:"Le nombre doit être compris entre {min} et {max}",lengthError:"La longueur doit être comprise entre {minLength} et {maxLength}",requiredError:"Ce champ est obligatoire.",invalidOriginalPasswordError:"Le mot de passe initial ne respecte pas tous les critères.",invalidPassword:"Le mot de passe ne respecte pas tous les critères",passwordStrength:"Robustesse du mot de passe",passwordStrengthWeak:"est insuffisante",passwordStrengthStrong:"est suffisante",SpecialCharactersNotAllowed:"Ne doit pas contenir de caractères spéciaux",InvalidEmailFormat:"Format d’adresse e-mail invalide.",EmailNotMatching:"Les adresses e-mail ne correspondent pas !",PasswordNotMatching:"Les mots de passe ne correspondent pas",MustIncludeNumber:"Le mot de passe doit contenir un chiffre",MustContainCapital:"Le mot de passe doit contenir une lettre majuscule",MustIncludePunctation:"Le mot de passe doit contenir un caractère de ponctuation",MustIncludeLowercase:"Le mot de passe doit contenir une lettre minuscule",OnlyNumbers:"Ce champ ne doit contenir que des chiffres.",InvalidFieldSize:"La longueur doit être exactement de 11 chiffres.",InvalidDocumentNumber:"Seuls les caractères numériques sont autorisés.",twofaDescription:"<p>Nous avons envoyé le code de vérification à <p>{destination}</p>.</p><p>Veuillez saisir le code PIN ci-dessous.</p>",twofaResendMessage:"Vous n’avez pas reçu le code de vérification ?",twofaResendButton:"Renvoyer",enterIEAddressManually:"Pour l’Irlande, saisissez l’adresse manuellement",postalLookUpNoAddressFound:"Aucune adresse trouvée pour ce code postal",searchingForAddresses:"Recherche d’adresses...",SAIdLengthError:"L’identifiant sud-africain doit comporter 13 chiffres",SAIdInvalidError:"Identifiant sud-africain invalide",PassportLengthError:"Le numéro de passeport doit comporter 8 ou 9 chiffres.",PasswordMustContain:"Le mot de passe doit contenir :"}},n={DOCUMENT_NUMBER:"DocumentNumber",FIRSTNAME_ON_DOCUMENT:"FirstnameOnDocument",LASTNAME_ON_DOCUMENT:"LastnameOnDocument",PASSPORT:"Passport",SOUTH_AFRICAN_ID:"SouthAfricanID",BIRTHDATE:"BirthDate",PASSPORT_NUMERIC_REGEX:/^\d{8,9}$/,SA_ID_BASIC_REGEX:/^\d{13}$/,SOUTH_AFRICAN_ID_LENGTH:13,NON_LETTERS_REGEX:/[^A-Za-z]/g,DATE_FORMAT:"yyyy-MM-dd",PASSWORD_COMPLEXITY_PASSED:"passed",PASSWORD_COMPLEXITY_FAILED:"failed"},a=(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},l="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",h=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value=null,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedValues=[],this.showCheckboxes=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(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.showCheckboxes=!0,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 a("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){const e=t.target.checked;this.showCheckboxes=e,this.selectedValues=e?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:"9985f4050655bc2233090f63abb0e22f2fe0b556",class:`checkboxgroup__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"9922e45ae7ee74b137ffc8552b3d714b7e3b1f59",class:"checkboxgroup__wrapper--flex"},i("vaadin-checkbox",{key:"f18bae7c3ee6df76edcde75924eb1ad51a227443",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:"3dc2ce07e4d5f8de7ed4707b5e140fb4752ca86b",class:"checkboxgroup__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("small",{key:"d55f25f75aa20007ff58cf45b6632517f49b6c00",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&i("vaadin-checkbox-group",{key:"210c3cc2868a07a403494e04336c4f3091eea0e4",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{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};h.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, #22B04E))}.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, #22B04E))}.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::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}';const d=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value="",this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.vaadinCheckbox.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCheckbox(t){this.value=t.target.checked.toString(),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return a("requiredError",this.language)}renderLabel(){var t;return i("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},i("div",{class:{"checkbox__label-text":!0,mandatory:null===(t=this.validation)||void 0===t?void 0:t.mandatory},innerHTML:this.displayName}))}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:"80ed581cec5bb009ea5ea009f11c6453fe24ef7b",class:`checkbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("vaadin-checkbox",{key:"42d793f607af77435f629218f9bdac7736522bc3",class:"checkbox__input",required:this.validation.mandatory,checked:"true"===this.defaultValue,onChange:t=>this.handleCheckbox(t),"error-message":!this.isValid&&this.errorMessage,ref:t=>this.vaadinCheckbox=t},this.renderLabel()),this.tooltip&&i("img",{key:"ce3870810ede8f3905fd8c07c0892ab0d909bab5",class:"checkboxgroup__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};function c(t){return c="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},c(t)}function u(t,e){if(e.length<t)throw new TypeError(t+" argument"+(t>1?"s":"")+" required, but only "+e.length+" present")}function m(t){u(1,arguments);var e=Object.prototype.toString.call(t);return t instanceof Date||"object"===c(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 p(t){if(u(1,arguments),!function(t){return u(1,arguments),t instanceof Date||"object"===c(t)&&"[object Date]"===Object.prototype.toString.call(t)}(t)&&"number"!=typeof t)return!1;var e=m(t);return!isNaN(Number(e))}function v(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 _(t,e){return u(2,arguments),function(t,e){u(2,arguments);var i=m(t).getTime(),r=v(e);return new Date(i+r)}(t,-v(e))}function f(t){u(1,arguments);var e=m(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 g(t){u(1,arguments);var e=m(t),i=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(i+1,0,4),r.setUTCHours(0,0,0,0);var o=f(r),s=new Date(0);s.setUTCFullYear(i,0,4),s.setUTCHours(0,0,0,0);var n=f(s);return e.getTime()>=o.getTime()?i+1:e.getTime()>=n.getTime()?i:i-1}d.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.checkbox{font-family:"Roboto";font-style:normal;font-size:15px}.checkbox__wrapper{display:flex;gap:10px;position:relative;align-items:baseline}.checkbox__wrapper--relative{position:relative}.checkbox__input[indeterminate]::part(checkbox)::after,.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.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;padding:0px;vertical-align:baseline}.checkbox__label a{color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.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}.checkbox__input::part(checkbox){background-color:var(--emw--color-white, #FFFFFF);transform:scale(0.8, 0.8);border-radius:var(--emw--border-radius-small, 2px);box-shadow:0 0px 0px 2px var(--emw--color-gray, #7a7a7a)}.checkbox__input::part(required-indicator)::after{display:none}.checkbox__input[indeterminate]::part(checkbox),.checkbox__input[checked]::part(checkbox){background-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));box-shadow:none}.checkbox__label-text.mandatory::after{content:"*";font-family:inherit;color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));margin-left:2px}';function b(t){u(1,arguments);var e=m(t),i=f(e).getTime()-function(t){u(1,arguments);var e=g(t),i=new Date(0);return i.setUTCFullYear(e,0,4),i.setUTCHours(0,0,0,0),f(i)}(e).getTime();return Math.round(i/6048e5)+1}var E={};function y(){return E}function w(t,e){var i,r,o,s,n,a,l,h;u(1,arguments);var d=y(),c=v(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:d.weekStartsOn)&&void 0!==r?r:null===(l=d.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.weekStartsOn)&&void 0!==i?i:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=m(t),_=p.getUTCDay(),f=(_<c?7:0)+_-c;return p.setUTCDate(p.getUTCDate()-f),p.setUTCHours(0,0,0,0),p}function k(t,e){var i,r,o,s,n,a,l,h;u(1,arguments);var d=m(t),c=d.getUTCFullYear(),p=y(),_=v(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:p.firstWeekContainsDate)&&void 0!==r?r:null===(l=p.locale)||void 0===l||null===(h=l.options)||void 0===h?void 0:h.firstWeekContainsDate)&&void 0!==i?i:1);if(!(_>=1&&_<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var f=new Date(0);f.setUTCFullYear(c+1,0,_),f.setUTCHours(0,0,0,0);var g=w(f,e),b=new Date(0);b.setUTCFullYear(c,0,_),b.setUTCHours(0,0,0,0);var E=w(b,e);return d.getTime()>=g.getTime()?c+1:d.getTime()>=E.getTime()?c:c-1}function x(t,e){u(1,arguments);var i=m(t),r=w(i,e).getTime()-function(t,e){var i,r,o,s,n,a,l,h;u(1,arguments);var d=y(),c=v(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),m=k(t,e),p=new Date(0);return p.setUTCFullYear(m,0,c),p.setUTCHours(0,0,0,0),w(p,e)}(i,e).getTime();return Math.round(r/6048e5)+1}function S(t,e){for(var i=t<0?"-":"",r=Math.abs(t).toString();r.length<e;)r="0"+r;return i+r}const A=function(t,e){var i=t.getUTCFullYear(),r=i>0?i:1-i;return S("yy"===e?r%100:r,e.length)},C=function(t,e){var i=t.getUTCMonth();return"M"===e?String(i+1):S(i+1,2)},I=function(t,e){return S(t.getUTCDate(),e.length)},T=function(t,e){return S(t.getUTCHours()%12||12,e.length)},O=function(t,e){return S(t.getUTCHours(),e.length)},R=function(t,e){return S(t.getUTCMinutes(),e.length)},D=function(t,e){return S(t.getUTCSeconds(),e.length)},N=function(t,e){var i=e.length,r=t.getUTCMilliseconds();return S(Math.floor(r*Math.pow(10,i-3)),e.length)};function z(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+S(s,2)}function G(t,e){return t%60==0?(t>0?"-":"+")+S(Math.abs(t)/60,2):M(t,e)}function M(t,e){var i=e||"",r=t>0?"-":"+",o=Math.abs(t);return r+S(Math.floor(o/60),2)+i+S(o%60,2)}const B={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 A(t,e)},Y:function(t,e,i,r){var o=k(t,r),s=o>0?o:1-o;return"YY"===e?S(s%100,2):"Yo"===e?i.ordinalNumber(s,{unit:"year"}):S(s,e.length)},R:function(t,e){return S(g(t),e.length)},u:function(t,e){return S(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 S(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 S(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 C(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 S(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=x(t,r);return"wo"===e?i.ordinalNumber(o,{unit:"week"}):S(o,e.length)},I:function(t,e,i){var r=b(t);return"Io"===e?i.ordinalNumber(r,{unit:"week"}):S(r,e.length)},d:function(t,e,i){return"do"===e?i.ordinalNumber(t.getUTCDate(),{unit:"date"}):I(t,e)},D:function(t,e,i){var r=function(t){u(1,arguments);var e=m(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"}):S(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 S(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 S(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 S(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 T(t,e)},H:function(t,e,i){return"Ho"===e?i.ordinalNumber(t.getUTCHours(),{unit:"hour"}):O(t,e)},K:function(t,e,i){var r=t.getUTCHours()%12;return"Ko"===e?i.ordinalNumber(r,{unit:"hour"}):S(r,e.length)},k:function(t,e,i){var r=t.getUTCHours();return 0===r&&(r=24),"ko"===e?i.ordinalNumber(r,{unit:"hour"}):S(r,e.length)},m:function(t,e,i){return"mo"===e?i.ordinalNumber(t.getUTCMinutes(),{unit:"minute"}):R(t,e)},s:function(t,e,i){return"so"===e?i.ordinalNumber(t.getUTCSeconds(),{unit:"second"}):D(t,e)},S:function(t,e){return N(t,e)},X:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();if(0===o)return"Z";switch(e){case"X":return G(o);case"XXXX":case"XX":return M(o);default:return M(o,":")}},x:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"x":return G(o);case"xxxx":case"xx":return M(o);default:return M(o,":")}},O:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"O":case"OO":case"OOO":return"GMT"+z(o,":");default:return"GMT"+M(o,":")}},z:function(t,e,i,r){var o=(r._originalDate||t).getTimezoneOffset();switch(e){case"z":case"zz":case"zzz":return"GMT"+z(o,":");default:return"GMT"+M(o,":")}},t:function(t,e,i,r){return S(Math.floor((r._originalDate||t).getTime()/1e3),e.length)},T:function(t,e,i,r){return S((r._originalDate||t).getTime(),e.length)}};var U=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"})}},P=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"})}},L={p:P,P:function(t,e){var i,r=t.match(/(P+)(p+)?/)||[],o=r[1],s=r[2];if(!s)return U(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}}",U(o,e)).replace("{{time}}",P(s,e))}};const j=L;function F(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 V=["D","DD"],H=["YY","YYYY"];function q(t){return-1!==V.indexOf(t)}function $(t){return-1!==H.indexOf(t)}function X(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 K={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 W(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 Y,Z={date:W({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:W({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:W({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Q={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function J(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 tt(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 et={code:"en-US",formatDistance:function(t,e,i){var r,o=K[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:Z,formatRelative:function(t){return Q[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:J({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:J({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:J({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:J({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:J({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:(Y={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(Y.matchPattern);if(!i)return null;var r=i[0],o=t.match(Y.parsePattern);if(!o)return null;var s=Y.valueCallback?Y.valueCallback(o[0]):o[0];return{value:s=e.valueCallback?e.valueCallback(s):s,rest:t.slice(r.length)}}),era:tt({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:tt({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:tt({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:tt({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:tt({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 it=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,rt=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ot=/^'([^]*?)'?$/,st=/''/g,nt=/[a-zA-Z]/;function at(t,e,i){var r,o,s,n,a,l,h,d,c,f,g,b,E,w,k,x,S,A;u(2,arguments);var C=String(e),I=y(),T=null!==(r=null!==(o=null==i?void 0:i.locale)&&void 0!==o?o:I.locale)&&void 0!==r?r:et,O=v(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===(d=h.options)||void 0===d?void 0:d.firstWeekContainsDate)&&void 0!==a?a:I.firstWeekContainsDate)&&void 0!==n?n:null===(c=I.locale)||void 0===c||null===(f=c.options)||void 0===f?void 0:f.firstWeekContainsDate)&&void 0!==s?s:1);if(!(O>=1&&O<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var R=v(null!==(g=null!==(b=null!==(E=null!==(w=null==i?void 0:i.weekStartsOn)&&void 0!==w?w:null==i||null===(k=i.locale)||void 0===k||null===(x=k.options)||void 0===x?void 0:x.weekStartsOn)&&void 0!==E?E:I.weekStartsOn)&&void 0!==b?b:null===(S=I.locale)||void 0===S||null===(A=S.options)||void 0===A?void 0:A.weekStartsOn)&&void 0!==g?g:0);if(!(R>=0&&R<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!T.localize)throw new RangeError("locale must contain localize property");if(!T.formatLong)throw new RangeError("locale must contain formatLong property");var D=m(t);if(!p(D))throw new RangeError("Invalid time value");var N=_(D,F(D)),z={firstWeekContainsDate:O,weekStartsOn:R,locale:T,_originalDate:D};return C.match(rt).map((function(t){var e=t[0];return"p"===e||"P"===e?(0,j[e])(t,T.formatLong):t})).join("").match(it).map((function(r){if("''"===r)return"'";var o,s,n=r[0];if("'"===n)return(s=(o=r).match(ot))?s[1].replace(st,"'"):o;var a=B[n];if(a)return null!=i&&i.useAdditionalWeekYearTokens||!$(r)||X(r,e,String(t)),null!=i&&i.useAdditionalDayOfYearTokens||!q(r)||X(r,e,String(t)),a(N,r,T.localize,z);if(n.match(nt))throw new RangeError("Format string contains an unescaped latin alphabet character `"+n+"`");return r})).join("")}function lt(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 ht(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 lt(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)?lt(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 dt(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 ct(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ut(t,e){return ut=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,e){return t.__proto__=e,t},ut(t,e)}function mt(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&&ut(t,e)}function pt(t){return pt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(t){return t.__proto__||Object.getPrototypeOf(t)},pt(t)}function vt(){try{var t=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(t){}return(vt=function(){return!!t})()}function _t(t){var e=vt();return function(){var i,r=pt(t);if(e){var o=pt(this).constructor;i=Reflect.construct(r,arguments,o)}else i=r.apply(this,arguments);return function(t,e){if(e&&("object"==c(e)||"function"==typeof e))return e;if(void 0!==e)throw new TypeError("Derived constructors may only return object or undefined");return ct(t)}(this,i)}}function ft(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function gt(t){var e=function(t){if("object"!=c(t)||!t)return t;var e=t[Symbol.toPrimitive];if(void 0!==e){var i=e.call(t,"string");if("object"!=c(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(t)}(t);return"symbol"==c(e)?e:e+""}function bt(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,gt(r.key),r)}}function Et(t,e,i){return e&&bt(t.prototype,e),i&&bt(t,i),Object.defineProperty(t,"prototype",{writable:!1}),t}function yt(t,e,i){return(e=gt(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var wt=function(){function t(){ft(this,t),yt(this,"priority",void 0),yt(this,"subPriority",0)}return Et(t,[{key:"validate",value:function(){return!0}}]),t}(),kt=function(){mt(e,wt);var t=_t(e);function e(i,r,o,s,n){var a;return ft(this,e),(a=t.call(this)).value=i,a.validateValue=r,a.setValue=o,a.priority=s,n&&(a.subPriority=n),a}return Et(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}(),xt=function(){mt(e,wt);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",10),yt(ct(i),"subPriority",-1),i}return Et(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}(),St=function(){function t(){ft(this,t),yt(this,"incompatibleTokens",void 0),yt(this,"priority",void 0),yt(this,"subPriority",void 0)}return Et(t,[{key:"run",value:function(t,e,i,r){var o=this.parse(t,e,i,r);return o?{setter:new kt(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(){return!0}}]),t}(),At=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",140),yt(ct(i),"incompatibleTokens",["R","u","t","T"]),i}return Et(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}(),Ct=/^(1[0-2]|0?\d)/,It=/^(3[0-1]|[0-2]?\d)/,Tt=/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,Ot=/^(5[0-3]|[0-4]?\d)/,Rt=/^(2[0-3]|[0-1]?\d)/,Dt=/^(2[0-4]|[0-1]?\d)/,Nt=/^(1[0-1]|0?\d)/,zt=/^(1[0-2]|0?\d)/,Gt=/^[0-5]?\d/,Mt=/^[0-5]?\d/,Bt=/^\d/,Ut=/^\d{1,2}/,Pt=/^\d{1,3}/,Lt=/^\d{1,4}/,jt=/^-?\d+/,Ft=/^-?\d/,Vt=/^-?\d{1,2}/,Ht=/^-?\d{1,3}/,qt=/^-?\d{1,4}/,$t=/^([+-])(\d{2})(\d{2})?|Z/,Xt=/^([+-])(\d{2})(\d{2})|Z/,Kt=/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,Wt=/^([+-])(\d{2}):(\d{2})|Z/,Yt=/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/;function Zt(t,e){return t?{value:e(t.value),rest:t.rest}:t}function Qt(t,e){var i=e.match(t);return i?{value:parseInt(i[0],10),rest:e.slice(i[0].length)}:null}function Jt(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 te(t){return Qt(jt,t)}function ee(t,e){switch(t){case 1:return Qt(Bt,e);case 2:return Qt(Ut,e);case 3:return Qt(Pt,e);case 4:return Qt(Lt,e);default:return Qt(new RegExp("^\\d{1,"+t+"}"),e)}}function ie(t,e){switch(t){case 1:return Qt(Ft,e);case 2:return Qt(Vt,e);case 3:return Qt(Ht,e);case 4:return Qt(qt,e);default:return Qt(new RegExp("^-?\\d{1,"+t+"}"),e)}}function re(t){switch(t){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;default:return 0}}function oe(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 se(t){return t%400==0||t%4==0&&t%100!=0}var ne=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",130),yt(ct(i),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){var r=function(t){return{year:t,isTwoDigitYear:"yy"===e}};switch(e){case"y":return Zt(ee(4,t),r);case"yo":return Zt(i.ordinalNumber(t,{unit:"year"}),r);default:return Zt(ee(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=oe(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}(),ae=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",130),yt(ct(i),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){var r=function(t){return{year:t,isTwoDigitYear:"YY"===e}};switch(e){case"Y":return Zt(ee(4,t),r);case"Yo":return Zt(i.ordinalNumber(t,{unit:"year"}),r);default:return Zt(ee(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=k(t,r);if(i.isTwoDigitYear){var s=oe(i.year,o);return t.setUTCFullYear(s,0,r.firstWeekContainsDate),t.setUTCHours(0,0,0,0),w(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),w(t,r)}}]),e}(),le=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",130),yt(ct(i),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e){return ie("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),f(r)}}]),e}(),he=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",130),yt(ct(i),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e){return ie("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}(),de=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",120),yt(ct(i),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"Q":case"QQ":return ee(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}(),ce=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",120),yt(ct(i),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"q":case"qq":return ee(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}(),ue=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),yt(ct(i),"priority",110),i}return Et(e,[{key:"parse",value:function(t,e,i){var r=function(t){return t-1};switch(e){case"M":return Zt(Qt(Ct,t),r);case"MM":return Zt(ee(2,t),r);case"Mo":return Zt(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}(),me=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",110),yt(ct(i),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){var r=function(t){return t-1};switch(e){case"L":return Zt(Qt(Ct,t),r);case"LL":return Zt(ee(2,t),r);case"Lo":return Zt(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}(),pe=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",100),yt(ct(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"w":return Qt(Ot,t);case"wo":return i.ordinalNumber(t,{unit:"week"});default:return ee(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i,r){return w(function(t,e,i){u(2,arguments);var r=m(t),o=v(e),s=x(r,i)-o;return r.setUTCDate(r.getUTCDate()-7*s),r}(t,i,r),r)}}]),e}(),ve=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",100),yt(ct(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"I":return Qt(Ot,t);case"Io":return i.ordinalNumber(t,{unit:"week"});default:return ee(e.length,t)}}},{key:"validate",value:function(t,e){return e>=1&&e<=53}},{key:"set",value:function(t,e,i){return f(function(t,e){u(2,arguments);var i=m(t),r=v(e),o=b(i)-r;return i.setUTCDate(i.getUTCDate()-7*o),i}(t,i))}}]),e}(),_e=[31,28,31,30,31,30,31,31,30,31,30,31],fe=[31,29,31,30,31,30,31,31,30,31,30,31],ge=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",90),yt(ct(i),"subPriority",1),yt(ct(i),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"d":return Qt(It,t);case"do":return i.ordinalNumber(t,{unit:"date"});default:return ee(e.length,t)}}},{key:"validate",value:function(t,e){var i=se(t.getUTCFullYear()),r=t.getUTCMonth();return i?e>=1&&e<=fe[r]:e>=1&&e<=_e[r]}},{key:"set",value:function(t,e,i){return t.setUTCDate(i),t.setUTCHours(0,0,0,0),t}}]),e}(),be=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",90),yt(ct(i),"subpriority",1),yt(ct(i),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"D":case"DD":return Qt(Tt,t);case"Do":return i.ordinalNumber(t,{unit:"date"});default:return ee(e.length,t)}}},{key:"validate",value:function(t,e){return se(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 Ee(t,e,i){var r,o,s,n,a,l,h,d;u(2,arguments);var c=y(),p=v(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:c.weekStartsOn)&&void 0!==o?o:null===(h=c.locale)||void 0===h||null===(d=h.options)||void 0===d?void 0:d.weekStartsOn)&&void 0!==r?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var _=m(t),f=v(e),g=((f%7+7)%7<p?7:0)+f-_.getUTCDay();return _.setUTCDate(_.getUTCDate()+g),_}var ye=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",90),yt(ct(i),"incompatibleTokens",["D","i","e","c","t","T"]),i}return Et(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=Ee(t,i,r)).setUTCHours(0,0,0,0),t}}]),e}(),we=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",90),yt(ct(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),i}return Et(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 Zt(ee(e.length,t),o);case"eo":return Zt(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=Ee(t,i,r)).setUTCHours(0,0,0,0),t}}]),e}(),ke=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",90),yt(ct(i),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),i}return Et(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 Zt(ee(e.length,t),o);case"co":return Zt(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=Ee(t,i,r)).setUTCHours(0,0,0,0),t}}]),e}(),xe=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",90),yt(ct(i),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){var r=function(t){return 0===t?7:t};switch(e){case"i":case"ii":return ee(e.length,t);case"io":return i.ordinalNumber(t,{unit:"day"});case"iii":return Zt(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 Zt(i.day(t,{width:"narrow",context:"formatting"}),r);case"iiiiii":return Zt(i.day(t,{width:"short",context:"formatting"})||i.day(t,{width:"narrow",context:"formatting"}),r);default:return Zt(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){u(2,arguments);var i=v(e);i%7==0&&(i-=7);var r=m(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}(),Se=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",80),yt(ct(i),"incompatibleTokens",["b","B","H","k","t","T"]),i}return Et(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(re(i),0,0,0),t}}]),e}(),Ae=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",80),yt(ct(i),"incompatibleTokens",["a","B","H","k","t","T"]),i}return Et(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(re(i),0,0,0),t}}]),e}(),Ce=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",80),yt(ct(i),"incompatibleTokens",["a","b","t","T"]),i}return Et(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(re(i),0,0,0),t}}]),e}(),Ie=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",70),yt(ct(i),"incompatibleTokens",["H","K","k","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"h":return Qt(zt,t);case"ho":return i.ordinalNumber(t,{unit:"hour"});default:return ee(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}(),Te=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",70),yt(ct(i),"incompatibleTokens",["a","b","h","K","k","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"H":return Qt(Rt,t);case"Ho":return i.ordinalNumber(t,{unit:"hour"});default:return ee(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}(),Oe=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",70),yt(ct(i),"incompatibleTokens",["h","H","k","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"K":return Qt(Nt,t);case"Ko":return i.ordinalNumber(t,{unit:"hour"});default:return ee(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}(),Re=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",70),yt(ct(i),"incompatibleTokens",["a","b","h","H","K","t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"k":return Qt(Dt,t);case"ko":return i.ordinalNumber(t,{unit:"hour"});default:return ee(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}(),De=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",60),yt(ct(i),"incompatibleTokens",["t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"m":return Qt(Gt,t);case"mo":return i.ordinalNumber(t,{unit:"minute"});default:return ee(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}(),Ne=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",50),yt(ct(i),"incompatibleTokens",["t","T"]),i}return Et(e,[{key:"parse",value:function(t,e,i){switch(e){case"s":return Qt(Mt,t);case"so":return i.ordinalNumber(t,{unit:"second"});default:return ee(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}(),ze=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",30),yt(ct(i),"incompatibleTokens",["t","T"]),i}return Et(e,[{key:"parse",value:function(t,e){return Zt(ee(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}(),Ge=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",10),yt(ct(i),"incompatibleTokens",["t","T","x"]),i}return Et(e,[{key:"parse",value:function(t,e){switch(e){case"X":return Jt($t,t);case"XX":return Jt(Xt,t);case"XXXX":return Jt(Kt,t);case"XXXXX":return Jt(Yt,t);default:return Jt(Wt,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Me=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",10),yt(ct(i),"incompatibleTokens",["t","T","X"]),i}return Et(e,[{key:"parse",value:function(t,e){switch(e){case"x":return Jt($t,t);case"xx":return Jt(Xt,t);case"xxxx":return Jt(Kt,t);case"xxxxx":return Jt(Yt,t);default:return Jt(Wt,t)}}},{key:"set",value:function(t,e,i){return e.timestampIsSet?t:new Date(t.getTime()-i)}}]),e}(),Be=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",40),yt(ct(i),"incompatibleTokens","*"),i}return Et(e,[{key:"parse",value:function(t){return te(t)}},{key:"set",value:function(t,e,i){return[new Date(1e3*i),{timestampIsSet:!0}]}}]),e}(),Ue=function(){mt(e,St);var t=_t(e);function e(){var i;ft(this,e);for(var r=arguments.length,o=new Array(r),s=0;s<r;s++)o[s]=arguments[s];return yt(ct(i=t.call.apply(t,[this].concat(o))),"priority",20),yt(ct(i),"incompatibleTokens","*"),i}return Et(e,[{key:"parse",value:function(t){return te(t)}},{key:"set",value:function(t,e,i){return[new Date(i),{timestampIsSet:!0}]}}]),e}(),Pe={G:new At,y:new ne,Y:new ae,R:new le,u:new he,Q:new de,q:new ce,M:new ue,L:new me,w:new pe,I:new ve,d:new ge,D:new be,E:new ye,e:new we,c:new ke,i:new xe,a:new Se,b:new Ae,B:new Ce,h:new Ie,H:new Te,K:new Oe,k:new Re,m:new De,s:new Ne,S:new ze,X:new Ge,x:new Me,t:new Be,T:new Ue},Le=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,je=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Fe=/^'([^]*?)'?$/,Ve=/''/g,He=/\S/,qe=/[a-zA-Z]/;function $e(t,e,i,r){var o,s,n,a,l,h,d,p,f,g,b,E,w,k,x,S,A,C;u(3,arguments);var I=String(t),T=String(e),O=y(),R=null!==(o=null!==(s=null==r?void 0:r.locale)&&void 0!==s?s:O.locale)&&void 0!==o?o:et;if(!R.match)throw new RangeError("locale must contain match property");var D=v(null!==(n=null!==(a=null!==(l=null!==(h=null==r?void 0:r.firstWeekContainsDate)&&void 0!==h?h:null==r||null===(d=r.locale)||void 0===d||null===(p=d.options)||void 0===p?void 0:p.firstWeekContainsDate)&&void 0!==l?l:O.firstWeekContainsDate)&&void 0!==a?a:null===(f=O.locale)||void 0===f||null===(g=f.options)||void 0===g?void 0:g.firstWeekContainsDate)&&void 0!==n?n:1);if(!(D>=1&&D<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var N=v(null!==(b=null!==(E=null!==(w=null!==(k=null==r?void 0:r.weekStartsOn)&&void 0!==k?k:null==r||null===(x=r.locale)||void 0===x||null===(S=x.options)||void 0===S?void 0:S.weekStartsOn)&&void 0!==w?w:O.weekStartsOn)&&void 0!==E?E:null===(A=O.locale)||void 0===A||null===(C=A.options)||void 0===C?void 0:C.weekStartsOn)&&void 0!==b?b:0);if(!(N>=0&&N<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(""===T)return""===I?m(i):new Date(NaN);var z,G={firstWeekContainsDate:D,weekStartsOn:N,locale:R},M=[new xt],B=T.match(je).map((function(t){var e=t[0];return e in j?(0,j[e])(t,R.formatLong):t})).join("").match(Le),U=[],P=ht(B);try{var L=function(){var e=z.value;null!=r&&r.useAdditionalWeekYearTokens||!$(e)||X(e,T,t),null!=r&&r.useAdditionalDayOfYearTokens||!q(e)||X(e,T,t);var i=e[0],o=Pe[i];if(o){var s=o.incompatibleTokens;if(Array.isArray(s)){var n=U.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&&U.length>0)throw new RangeError("The format string mustn't contain `".concat(e,"` and any other token at the same time"));U.push({token:i,fullToken:e});var a=o.run(I,e,R.match,G);if(!a)return{v:new Date(NaN)};M.push(a.setter),I=a.rest}else{if(i.match(qe))throw new RangeError("Format string contains an unescaped latin alphabet character `"+i+"`");if("''"===e?e="'":"'"===i&&(e=e.match(Fe)[1].replace(Ve,"'")),0!==I.indexOf(e))return{v:new Date(NaN)};I=I.slice(e.length)}};for(P.s();!(z=P.n()).done;){var V=L();if("object"===c(V))return V.v}}catch(t){P.e(t)}finally{P.f()}if(I.length>0&&He.test(I))return new Date(NaN);var H=M.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 M.filter((function(e){return e.priority===t})).sort((function(t,e){return e.subPriority-t.subPriority}))})).map((function(t){return t[0]})),K=m(i);if(isNaN(K.getTime()))return new Date(NaN);var W,Y=_(K,F(K)),Z={},Q=ht(H);try{for(Q.s();!(W=Q.n()).done;){var J=W.value;if(!J.validate(Y,G))return new Date(NaN);var tt=J.set(Y,Z,G);Array.isArray(tt)?(Y=tt[0],dt(Z,tt[1])):Y=tt}}catch(t){Q.e(t)}finally{Q.f()}return Y}function Xe(t,e){u(2,arguments);var i=m(t),r=m(e);return i.getTime()>r.getTime()}function Ke(t,e){u(2,arguments);var i=m(t),r=m(e);return i.getTime()<r.getTime()}function We(t,e,i){return u(2,arguments),p($e(t,e,new Date,i))}const Ye=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.touched=!1,this.formatDate=t=>{const{year:e,month:i,day:r}=t;return at(new Date(e,i,r),this.dateFormat)},this.parseDate=t=>{const e=$e(t,this.dateFormat,new Date);return{year:e.getFullYear(),month:e.getMonth(),day:e.getDate()}},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.handleDocumentIdUpdate=t=>{this.name===n.BIRTHDATE&&(this.value=t.detail,this.valueAsDate=$e(this.value||"",n.DATE_FORMAT,new Date),this.touched=!0,this.datePicker&&(this.datePicker.value=this.value),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.valueHandler({name:this.name,value:this.value}))},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.dateFormat="yyyy-MM-dd",this.emitOnClick=!1,this.enableSouthAfricanMode=void 0,this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}get formattedValue(){return this.value?at($e(this.value,"yyyy-MM-dd",new Date),this.dateFormat):""}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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})}handleCustomRegistrationChange(t){t?window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate):window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t,e;this.minDate=$e((null===(t=this.validation.min)||void 0===t?void 0:t.toString())||"","yyyy-MM-dd",new Date),this.maxDate=$e((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.addEventListener("opened-changed",(t=>{!0===t.detail.value?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)}))}this.enableSouthAfricanMode&&window.addEventListener("documentIdUpdated",this.handleDocumentIdUpdate),this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value})),this.isValid=this.setValidity()}disconnectedCallback(){this.enableSouthAfricanMode&&window.removeEventListener("documentIdUpdated",this.handleDocumentIdUpdate)}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=$e(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0),this.enableSouthAfricanMode&&window.dispatchEvent(new CustomEvent("birthDateUpdated",{detail:{birthDate:this.value}}))}setValidity(){return!(Ke(this.valueAsDate,this.minDate)||Xe(this.valueAsDate,this.maxDate)||!We(this.formattedValue,this.dateFormat))&&this.inputReference.validity.valid}setErrorMessage(){return this.inputReference.validity.valueMissing?a("requiredError",this.language):this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow?a("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}}):Ke(this.valueAsDate,this.minDate)||Xe(this.valueAsDate,this.maxDate)?a("dateError2",this.language):We(this.formattedValue,this.dateFormat)?void 0:a("dateFormatError",this.language)}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:"9399c1be2edcbe3ed5c0e133cad52b1917e77e96",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("label",{key:"1094491a5fc441c4f704441d376ed965d6946637",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName,i("span",{key:"14dd041cce018e22d82919f46eabc88f83e639e8",class:this.validation.mandatory?"date__label--required":""})),i("vaadin-date-picker",{key:"eb720200d8d2b07ab00bca70c8e4a25dfc5cd08f",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)}),i("small",{key:"eedeea67c67bdc92ae1bb3e79cab745384bb0db7",class:"date__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"2b9cbbb972e4d07124a3d548eb932a26a44f75f3",class:"date__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],enableSouthAfricanMode:["handleCustomRegistrationChange"]}}};Ye.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, #22B04E));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, #22B04E))}.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:var(--emw--color-error, var(--emw--color-red, #ed0909))}.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 Ze=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),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)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(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.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});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 a(`${i}`,this.language)?a(`${i}`,this.language):r}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 a(`${t}`,this.language)?a(`${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:"723df8f3a6e8c57fe19082400971daf50f5c981d",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"581d6e02b63d1c659ae44424518f64db450d5365",class:"email__wrapper--flex"},i("label",{key:"11e6a848f6f04903989b3ab2075865f6e279c087",class:"email__label "+(this.validation.mandatory?"email__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"73e11520cffbddda1a2aeb4b560e7f4cf456e2fb",class:"email__wrapper--relative"},this.tooltip&&i("img",{key:"e8571ce14b9b98311daf1712ebde7d6da9b5a6a6",class:"email__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"dd05ef0b4d906598c6d5775a78ccbdc9ea81cb8c",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:"0d2d41207f8274d8c6f69143131265ef5b458689",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ze.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, #22B04E));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, #22B04E))}.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}';var Qe=Object.defineProperty,Je=Object.defineProperties,ti=Object.getOwnPropertyDescriptors,ei=Object.getOwnPropertySymbols,ii=Object.prototype.hasOwnProperty,ri=Object.prototype.propertyIsEnumerable,oi=(t,e,i)=>e in t?Qe(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,si=(t,e)=>{for(var i in e||(e={}))ii.call(e,i)&&oi(t,i,e[i]);if(ei)for(var i of ei(e))ri.call(e,i)&&oi(t,i,e[i]);return t},ni=(t,e)=>Je(t,ti(e)),ai=(t,e,i)=>(oi(t,"symbol"!=typeof e?e+"":e,i),i),li=(t,e,i)=>new Promise(((r,o)=>{var s=t=>{try{a(i.next(t))}catch(t){o(t)}},n=t=>{try{a(i.throw(t))}catch(t){o(t)}},a=t=>t.done?r(t.value):Promise.resolve(t.value).then(s,n);a((i=i.apply(t,e)).next())}))
2
2
  /**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -19,7 +19,7 @@ const ci=globalThis,ui=ci.ShadowRoot&&(void 0===ci.ShadyCSS||ci.ShadyCSS.nativeS
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */,{is:bi,defineProperty:Ei,getOwnPropertyDescriptor:yi,getOwnPropertyNames:wi,getOwnPropertySymbols:ki,getPrototypeOf:xi}=Object,Si=globalThis,Ai=Si.trustedTypes,Ci=Ai?Ai.emptyScript:"",Ii=Si.reactiveElementPolyfillSupport,Ti={toAttribute(t,e){switch(e){case Boolean:t=t?Ci: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}},Ri=(t,e)=>!bi(t,e),Oi={attribute:!0,type:String,converter:Ti,reflect:!1,useDefault:!1,hasChanged:Ri};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=Si.litPropertyMetadata||(Si.litPropertyMetadata=new WeakMap);let Di=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Oi){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Ei(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){var r;const{get:o,set:s}=null!=(r=yi(this.prototype,t))?r:{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const r=null==o?void 0:o.call(this);null==s||s.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:Oi}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=xi(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=[...wi(t),...ki(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(gi(t))}else void 0!==t&&e.push(gi(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(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e,i;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$EO)||e.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(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return fi(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var i;const r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(void 0!==o&&!0===r.reflect){const s=(void 0!==(null==(i=r.converter)?void 0:i.toAttribute)?r.converter:Ti).toAttribute(e,r.type);this._$Em=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var i,r,o;const s=this.constructor,n=s._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=s.getPropertyOptions(n),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:Ti;this._$Em=n;const l=a.fromAttribute(e,t.type);this[n]=null!=(o=null!=l?l:null==(r=this._$Ej)?void 0:r.get(n))?o:l,this._$Em=null}}requestUpdate(t,e,i,r=!1,o){var s,n;if(void 0!==t){const a=this.constructor;if(!1===r&&(o=this[t]),null!=i||(i=a.getPropertyOptions(t)),!((null!=(s=i.hasChanged)?s:Ri)(o,e)||i.useDefault&&i.reflect&&o===(null==(n=this._$Ej)?void 0:n.get(t))&&!this.hasAttribute(a._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:r,wrapped:o},s){var n,a,l;i&&!(null!=(n=this._$Ej)?n:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(a=null!=s?s:e)?a:this[t]),!0!==o||void 0!==s)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===r&&this._$Em!==t&&(null!=(l=this._$Eq)?l:this._$Eq=new Set).add(t))}_$EP(){return li(this,null,(function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&(yield t),!this.isUpdatePending}))}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(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){const{wrapped:t}=i,r=this[e];!0!==t||this._$AL.has(e)||void 0===r||this.C(e,void 0,i,r)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(t){}firstUpdated(t){}};var Ni;Di.elementStyles=[],Di.shadowRootOptions={mode:"open"},Di.elementProperties=new Map,Di.finalized=new Map,null==Ii||Ii({ReactiveElement:Di}),(null!=(Ni=Si.reactiveElementVersions)?Ni:Si.reactiveElementVersions=[]).push("2.1.2");
22
+ */,{is:bi,defineProperty:Ei,getOwnPropertyDescriptor:yi,getOwnPropertyNames:wi,getOwnPropertySymbols:ki,getPrototypeOf:xi}=Object,Si=globalThis,Ai=Si.trustedTypes,Ci=Ai?Ai.emptyScript:"",Ii=Si.reactiveElementPolyfillSupport,Ti={toAttribute(t,e){switch(e){case Boolean:t=t?Ci: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}},Oi=(t,e)=>!bi(t,e),Ri={attribute:!0,type:String,converter:Ti,reflect:!1,useDefault:!1,hasChanged:Oi};null!=Symbol.metadata||(Symbol.metadata=Symbol("metadata")),null!=Si.litPropertyMetadata||(Si.litPropertyMetadata=new WeakMap);let Di=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),(null!=(e=this.l)?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ri){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),r=this.getPropertyDescriptor(t,i,e);void 0!==r&&Ei(this.prototype,t,r)}}static getPropertyDescriptor(t,e,i){var r;const{get:o,set:s}=null!=(r=yi(this.prototype,t))?r:{get(){return this[e]},set(t){this[e]=t}};return{get:o,set(e){const r=null==o?void 0:o.call(this);null==s||s.call(this,e),this.requestUpdate(t,r,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return null!=(e=this.elementProperties.get(t))?e:Ri}static _$Ei(){if(this.hasOwnProperty("elementProperties"))return;const t=xi(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=[...wi(t),...ki(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(gi(t))}else void 0!==t&&e.push(gi(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(){var t;this._$ES=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$E_(),this.requestUpdate(),null==(t=this.constructor.l)||t.forEach((t=>t(this)))}addController(t){var e,i;(null!=(e=this._$EO)?e:this._$EO=new Set).add(t),void 0!==this.renderRoot&&this.isConnected&&(null==(i=t.hostConnected)||i.call(t))}removeController(t){var e;null==(e=this._$EO)||e.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(){var t;const e=null!=(t=this.shadowRoot)?t:this.attachShadow(this.constructor.shadowRootOptions);return fi(e,this.constructor.elementStyles),e}connectedCallback(){var t;null!=this.renderRoot||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostConnected)?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostDisconnected)?void 0:e.call(t)}))}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var i;const r=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,r);if(void 0!==o&&!0===r.reflect){const s=(void 0!==(null==(i=r.converter)?void 0:i.toAttribute)?r.converter:Ti).toAttribute(e,r.type);this._$Em=t,null==s?this.removeAttribute(o):this.setAttribute(o,s),this._$Em=null}}_$AK(t,e){var i,r,o;const s=this.constructor,n=s._$Eh.get(t);if(void 0!==n&&this._$Em!==n){const t=s.getPropertyOptions(n),a="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null==(i=t.converter)?void 0:i.fromAttribute)?t.converter:Ti;this._$Em=n;const l=a.fromAttribute(e,t.type);this[n]=null!=(o=null!=l?l:null==(r=this._$Ej)?void 0:r.get(n))?o:l,this._$Em=null}}requestUpdate(t,e,i,r=!1,o){var s,n;if(void 0!==t){const a=this.constructor;if(!1===r&&(o=this[t]),null!=i||(i=a.getPropertyOptions(t)),!((null!=(s=i.hasChanged)?s:Oi)(o,e)||i.useDefault&&i.reflect&&o===(null==(n=this._$Ej)?void 0:n.get(t))&&!this.hasAttribute(a._$Eu(t,i))))return;this.C(t,e,i)}!1===this.isUpdatePending&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:r,wrapped:o},s){var n,a,l;i&&!(null!=(n=this._$Ej)?n:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,null!=(a=null!=s?s:e)?a:this[t]),!0!==o||void 0!==s)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),!0===r&&this._$Em!==t&&(null!=(l=this._$Eq)?l:this._$Eq=new Set).add(t))}_$EP(){return li(this,null,(function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&(yield t),!this.isUpdatePending}))}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(null!=this.renderRoot||(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){const{wrapped:t}=i,r=this[e];!0!==t||this._$AL.has(e)||void 0===r||this.C(e,void 0,i,r)}}let e=!1;const i=this._$AL;try{e=this.shouldUpdate(i),e?(this.willUpdate(i),null==(t=this._$EO)||t.forEach((t=>{var e;return null==(e=t.hostUpdate)?void 0:e.call(t)})),this.update(i)):this._$EM()}catch(t){throw e=!1,this._$EM(),t}e&&this._$AE(i)}willUpdate(t){}_$AE(t){var e;null==(e=this._$EO)||e.forEach((t=>{var e;return null==(e=t.hostUpdated)?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach((t=>this._$ET(t,this[t])))),this._$EM()}updated(t){}firstUpdated(t){}};var Ni;Di.elementStyles=[],Di.shadowRootOptions={mode:"open"},Di.elementProperties=new Map,Di.finalized=new Map,null==Ii||Ii({ReactiveElement:Di}),(null!=(Ni=Si.reactiveElementVersions)?Ni:Si.reactiveElementVersions=[]).push("2.1.2");
23
23
  /**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
@@ -41,7 +41,7 @@ const yr=t=>class extends t{static get properties(){return{_theme:{type:String,r
41
41
  * @license
42
42
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
43
43
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
44
- */,wr=[],kr=new Set,xr=new Set;function Sr(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Ar(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function Cr(t){return t.map((t=>t.cssText)).join("\n")}const Ir="vaadin-themable-mixin-style";function Tr(t){t.prototype instanceof fr?t.elementStyles=t.finalizeStyles(t.styles):t.prototype._template.content.getElementById(Ir).textContent=Cr(t.getStylesForThis()),xr.forEach((e=>{const i=customElements.get(e);i!==t&&i.prototype instanceof t&&Tr(i)}))}function Rr(t,e,i={}){e=function(t=[]){return[t].flat(1/0).filter((t=>t instanceof vi||(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):wr.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId}),t&&xr.forEach((i=>{if(Ar(t,i)&&function(t){return Sr(customElements.get(t))}(i)){const t=customElements.get(i);!function(t,e){const i=t.__themes;return!(!i||!e)&&i.some((t=>t.styles.some((t=>e.some((e=>e.cssText===t.cssText))))))}(t,e)?(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),Tr(t),function(t){kr.forEach((e=>{const i=e.deref();i instanceof t?function(t){if(!t.shadowRoot)return;const e=t.constructor;t instanceof fr?([...t.shadowRoot.querySelectorAll("style")].forEach((t=>t.remove())),fi(t.shadowRoot,e.elementStyles)):t.shadowRoot.getElementById(Ir).textContent=e.prototype._template.content.getElementById(Ir).textContent}(i):i||kr.delete(e)}))}(t)}}))}function Or(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():wr}function Dr(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function Nr(t){const e=[];return t.include&&[].concat(t.include).forEach((t=>{const i=Or().find((e=>e.moduleId===t));i?e.push(...Nr(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)}),t.styles),e}function zr(t){const e=`${t}-default-theme`,i=Or().filter((i=>i.moduleId!==e&&Ar(i.themeFor,t))).map((t=>ni(si({},t),{styles:[...Nr(t),...t.styles],includePriority:Dr(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));return i.length>0?i:Or().filter((t=>t.moduleId===e))}const Gr=t=>class extends(yr(t)){constructor(){super(),kr.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&xr.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||Sr(this)||function(t,e){const i=document.createElement("style");i.id=Ir,i.textContent=Cr(t),e.content.appendChild(i)}(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...[t].flat(1/0),...e]:e}static getStylesForThis(){const e=t.__themes||[],i=Object.getPrototypeOf(this.prototype);this.__themes=[...e,...(i?i.constructor.__themes:[])||[],...zr(this.is)];const r=this.__themes.flatMap((t=>t.styles));return r.filter(((t,e)=>e===r.lastIndexOf(t)))}}
44
+ */,wr=[],kr=new Set,xr=new Set;function Sr(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function Ar(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}function Cr(t){return t.map((t=>t.cssText)).join("\n")}const Ir="vaadin-themable-mixin-style";function Tr(t){t.prototype instanceof fr?t.elementStyles=t.finalizeStyles(t.styles):t.prototype._template.content.getElementById(Ir).textContent=Cr(t.getStylesForThis()),xr.forEach((e=>{const i=customElements.get(e);i!==t&&i.prototype instanceof t&&Tr(i)}))}function Or(t,e,i={}){e=function(t=[]){return[t].flat(1/0).filter((t=>t instanceof vi||(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):wr.push({themeFor:t,styles:e,include:i.include,moduleId:i.moduleId}),t&&xr.forEach((i=>{if(Ar(t,i)&&function(t){return Sr(customElements.get(t))}(i)){const t=customElements.get(i);!function(t,e){const i=t.__themes;return!(!i||!e)&&i.some((t=>t.styles.some((t=>e.some((e=>e.cssText===t.cssText))))))}(t,e)?(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`):console.warn(`Registering styles that already exist for ${i}`),Tr(t),function(t){kr.forEach((e=>{const i=e.deref();i instanceof t?function(t){if(!t.shadowRoot)return;const e=t.constructor;t instanceof fr?([...t.shadowRoot.querySelectorAll("style")].forEach((t=>t.remove())),fi(t.shadowRoot,e.elementStyles)):t.shadowRoot.getElementById(Ir).textContent=e.prototype._template.content.getElementById(Ir).textContent}(i):i||kr.delete(e)}))}(t)}}))}function Rr(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():wr}function Dr(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function Nr(t){const e=[];return t.include&&[].concat(t.include).forEach((t=>{const i=Rr().find((e=>e.moduleId===t));i?e.push(...Nr(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)}),t.styles),e}function zr(t){const e=`${t}-default-theme`,i=Rr().filter((i=>i.moduleId!==e&&Ar(i.themeFor,t))).map((t=>ni(si({},t),{styles:[...Nr(t),...t.styles],includePriority:Dr(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));return i.length>0?i:Rr().filter((t=>t.moduleId===e))}const Gr=t=>class extends(yr(t)){constructor(){super(),kr.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&xr.add(this.is),this.elementStyles)return;const t=this.prototype._template;!t||Sr(this)||function(t,e){const i=document.createElement("style");i.id=Ir,i.textContent=Cr(t),e.content.appendChild(i)}(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...[t].flat(1/0),...e]:e}static getStylesForThis(){const e=t.__themes||[],i=Object.getPrototypeOf(this.prototype);this.__themes=[...e,...(i?i.constructor.__themes:[])||[],...zr(this.is)];const r=this.__themes.flatMap((t=>t.styles));return r.filter(((t,e)=>e===r.lastIndexOf(t)))}}
45
45
  /**
46
46
  * @license
47
47
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -131,7 +131,7 @@ const yr=t=>class extends t{static get properties(){return{_theme:{type:String,r
131
131
  --lumo-disabled-text-color: GrayText;
132
132
  }
133
133
  }
134
- `),Rr("",_i`
134
+ `),Or("",_i`
135
135
  [theme~='dark'] {
136
136
  /* Base (background) */
137
137
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -466,7 +466,7 @@ const Br=_i`
466
466
  --lumo-line-height-s: 1.375;
467
467
  --lumo-line-height-m: 1.625;
468
468
  }
469
- `;Rr("",_i`
469
+ `;Or("",_i`
470
470
  body,
471
471
  :host {
472
472
  font-family: var(--lumo-font-family);
@@ -558,7 +558,7 @@ const Br=_i`
558
558
  border-left: none;
559
559
  border-right: 2px solid var(--lumo-contrast-30pct);
560
560
  }
561
- `,{moduleId:"lumo-typography"}),Mr("typography-props",Br),Rr("vaadin-checkbox",_i`
561
+ `,{moduleId:"lumo-typography"}),Mr("typography-props",Br),Or("vaadin-checkbox",_i`
562
562
  :host {
563
563
  color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
564
564
  font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
@@ -928,7 +928,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
928
928
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
929
929
  Code distributed by Google as part of the polymer project is also
930
930
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
931
- */;function xo(t){return t.indexOf(".")>=0}function So(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function Ao(t,e){return 0===t.indexOf(e+".")}function Co(t,e){return 0===e.indexOf(t+".")}function Io(t,e,i){return e+i.slice(t.length)}function To(t){if(Array.isArray(t)){let e=[];for(let i=0;i<t.length;i++){let r=t[i].toString().split(".");for(let t=0;t<r.length;t++)e.push(r[t])}return e.join(".")}return t}function Ro(t){return Array.isArray(t)?To(t).split("."):t.toString().split(".")}function Oo(t,e,i){let r=t,o=Ro(e);for(let t=0;t<o.length;t++){if(!r)return;r=r[o[t]]}return i&&(i.path=o.join(".")),r}function Do(t,e,i){let r=t,o=Ro(e),s=o[o.length-1];if(o.length>1){for(let t=0;t<o.length-1;t++)if(r=r[o[t]],!r)return;r[s]=i}else r[e]=i;return o.join(".")}
931
+ */;function xo(t){return t.indexOf(".")>=0}function So(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function Ao(t,e){return 0===t.indexOf(e+".")}function Co(t,e){return 0===e.indexOf(t+".")}function Io(t,e,i){return e+i.slice(t.length)}function To(t){if(Array.isArray(t)){let e=[];for(let i=0;i<t.length;i++){let r=t[i].toString().split(".");for(let t=0;t<r.length;t++)e.push(r[t])}return e.join(".")}return t}function Oo(t){return Array.isArray(t)?To(t).split("."):t.toString().split(".")}function Ro(t,e,i){let r=t,o=Oo(e);for(let t=0;t<o.length;t++){if(!r)return;r=r[o[t]]}return i&&(i.path=o.join(".")),r}function Do(t,e,i){let r=t,o=Oo(e),s=o[o.length-1];if(o.length>1){for(let t=0;t<o.length-1;t++)if(r=r[o[t]],!r)return;r[s]=i}else r[e]=i;return o.join(".")}
932
932
  /**
933
933
  @license
934
934
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -966,7 +966,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
966
966
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
967
967
  * Google as part of the polymer project is also subject to an additional IP
968
968
  * rights grant found at http://polymer.github.io/PATENTS.txt
969
- */let ls=0;const hs=[],ds={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},cs="__computeInfo",us=/[A-Z]/;function ms(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 ps(t,e,i,r,o,s){if(e){let n=!1;const a=ls++;for(let l in i){let h=e[o?So(l):l];if(h)for(let e,d=0,c=h.length;d<c&&(e=h[d]);d++)(!e.info||e.info.lastRun!==a)&&(!o||_s(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 vs(t,e,i,r,o,s,n,a){let l=!1,h=e[n?So(r):r];if(h)for(let e,d=0,c=h.length;d<c&&(e=h[d]);d++)(!e.info||e.info.lastRun!==i)&&(!n||_s(r,e.trigger))&&(e.info&&(e.info.lastRun=i),e.fn(t,r,o,s,e.info,n,a),l=!0);return l}function _s(t,e){if(e){let i=e.name;return i==t||!(!e.structured||!Ao(i,t))||!(!e.wildcard||!Co(i,t))}return!0}function fs(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 gs(t,e,i){let r=So(e);return r!==e&&(bs(t,Bo(r)+"-changed",i[e],e),!0)}function bs(t,e,i,r){let o={value:i,queueProperty:!0};r&&(o.path=r),ko(t).dispatchEvent(new CustomEvent(e,{detail:o}))}function Es(t,e,i,r,o,s){let n=(s?So(e):e)!=e?e:null,a=n?Oo(t,n):t.__data[e];n&&void 0===a&&(a=i[e]),bs(t,o.eventName,a,n)}function ys(t,e,i,r,o){let s=t.__data[e];Kr&&(s=Kr(s,o.attrName,"attribute",t)),t._propertyToAttribute(e,o.attrName,s)}const ws=(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)},ks=(t,e,i,r,o)=>{const s=e[o?So(t):t];if(s)for(let e=0;e<s.length;e++){const n=s[e];n.info.lastRun!==ls&&(!o||_s(t,n.trigger))&&(n.info.lastRun=ls,ws(n.info,i,r))}};function xs(t,e,i,r,o){let s=Os(t,e,i,0,o);if(s===hs)return!1;let n=o.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function Ss(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!!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||Bo(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,As(t,e,a,r,l)}}function As(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=Us(r),r.wildcard=!0),t._addTemplatePropertyEffect(e,r.rootProperty,{fn:Cs,info:n,trigger:r})}}}function Cs(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=Io(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!==hs&&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),Kr&&(o=Kr(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[ds.READ_ONLY]||!e[ds.READ_ONLY][r])&&e._setPendingProperty(r,o)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,r,o)}}(t,a,l,h,n)}}function Is(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=ko(t)),t[s]=e.literal)}}function Ts(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=Io(i,r,a),s=n&&n.value):s=t.currentTarget[i],s=o?!s:s,(!e[ds.READ_ONLY]||!e[ds.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,s,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}(t,e,i.target,r.source,r.negate)}))}}function Rs(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 Os(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===hs?hs:n.apply(s,r)}o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Ds=[],Ns="(?:[a-zA-Z_$][\\w.:$\\-*]*)",zs="(?:("+Ns+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Gs=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Ns+"\\s*(?:\\(\\s*(?:(?:"+zs+"(?:,\\s*"+zs+")*)?)\\)\\s*)?)(?:]]|}})","g");function Ms(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].literal||"";return e}function Bs(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Ds};return e[2].trim()?function(t,e){return e.args=t.map((function(t){let i=Us(t);return i.literal||(e.static=!1),i}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t):t}return null}function Us(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=So(e),i.structured=xo(e),i.structured&&(i.wildcard=".*"==e.slice(-2),i.wildcard&&(i.name=e.slice(0,-2)))),i}function Ps(t,e,i){let r=Oo(t,i);return void 0===r&&(r=e[i]),r}function Ls(t,e,i,r){const o={indexSplices:r};to&&!t._overrideLegacyUndefined&&(e.splices=o),t.notifyPath(i+".splices",o),t.notifyPath(i+".length",e.length),to&&!t._overrideLegacyUndefined&&(o.indexSplices=[])}function js(t,e,i,r,o,s){Ls(t,e,i,[{index:r,addedCount:o,removed:s,object:e,type:"splice"}])}const Fs=ao((t=>{const e=as(Zo(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return ds}_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(Vs.length){let t=Vs[Vs.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[ds.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==ds.READ_ONLY);let r=ms(this,e,!0)[t];r||(r=this[e][t]=[]),r.push(i)}_removePropertyEffect(t,e,i){let r=ms(this,e,!0)[t],o=r.indexOf(i);o>=0&&r.splice(o,1)}_hasPropertyEffect(t,e){let i=this[e];return!(!i||!i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,ds.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,ds.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,ds.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,ds.COMPUTE)}_setPendingPropertyOrPath(t,e,i,r){if(r||So(Array.isArray(t)?t[0]:t)!==t){if(!r){let i=Oo(this,t);if(!(t=Do(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];Co(s,e)?(o=Io(s,n,e),t._setPendingPropertyOrPath(o,i,!0,!0)):Co(n,e)&&(o=Io(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=ko(t)),t[e]=i)}_setPendingProperty(t,e,i){let r=this.__dataHasPaths&&xo(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[ds.NOTIFY]&&this[ds.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[ds.READ_ONLY]||!this[ds.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[ds.COMPUTE];if(o)if(eo){ls++;const s=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[ds.COMPUTE];let r,{counts:o,ready:s,total:n}=function(t){const e=t[cs],i={},r=t[ds.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)ks(t,o,n,s,r);let a;for(;a=n.shift();)xs(t,"",e,0,a)&&ks(a.methodInfo,o,n,s,r);Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let s=e;for(;ps(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(),ps(this,this[ds.REFLECT],e,i,o),ps(this,this[ds.OBSERVE],e,i,o),r&&function(t,e,i,r,o){let s,n,a=t[ds.NOTIFY],l=ls++;for(let n in e)e[n]&&(a&&vs(t,a,l,n,i,r,o)||o&&gs(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[ds.PROPAGATE]&&ps(this,this[ds.PROPAGATE],t,e,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,i)}_runEffectsForTemplate(t,e,i,r){const o=(e,r)=>{ps(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=To(t),e=To(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=To(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let i={path:""};Ls(this,Oo(this,t,i),i.path,e)}get(t,e){return Oo(e||this,t)}set(t,e,i){i?Do(i,t,e):(!this[ds.READ_ONLY]||!this[ds.READ_ONLY][t])&&this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let i={path:""},r=Oo(this,t,i),o=r.length,s=r.push(...e);return e.length&&js(this,r,i.path,o,e.length,[]),s}pop(t){let e={path:""},i=Oo(this,t,e),r=!!i.length,o=i.pop();return r&&js(this,i,e.path,i.length,0,[o]),o}splice(t,e,i,...r){let o,s={path:""},n=Oo(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)&&js(this,n,s.path,e,r.length,o),o}shift(t){let e={path:""},i=Oo(this,t,e),r=!!i.length,o=i.shift();return r&&js(this,i,e.path,0,0,[o]),o}unshift(t,...e){let i={path:""},r=Oo(this,t,i),o=r.unshift(...e);return e.length&&js(this,r,i.path,0,e.length,[]),o}notifyPath(t,e){let i;if(1==arguments.length){let r={path:""};e=Oo(this,t,r),i=r.path}else i=Array.isArray(t)?To(t):t;this._setPendingPropertyOrPath(i,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,ds.READ_ONLY),e&&(this["_set"+function(t){return t[0].toUpperCase()+t.substring(1)}(t)]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,i){let r={property:t,method:e,dynamicFn:!!i};this._addPropertyEffect(t,ds.OBSERVE,{fn:fs,info:r,trigger:{name:t}}),i&&this._addPropertyEffect(e,ds.OBSERVE,{fn:fs,info:r,trigger:{name:e}})}_createMethodObserver(t,e){let i=Bs(t);if(!i)throw new Error("Malformed observer expression '"+t+"'");Rs(this,i,ds.OBSERVE,Os,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,ds.NOTIFY,{fn:Es,info:{eventName:Bo(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,ds.REFLECT,{fn:ys,info:{attrName:e}})}_createComputedProperty(t,e,i){let r=Bs(e);if(!r)throw new Error("Malformed computed expression '"+e+"'");const o=Rs(this,r,ds.COMPUTE,xs,t,i);ms(this,cs)[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:d}=t[s];if(!d)if(l){const t=Co(n,e),o=Ps(r,i,t?e:n);h={path:t?e:n,value:o,base:t?Oo(r,n):o}}else h=a?Ps(r,i,n):r[n];if(to&&!this._overrideLegacyUndefined&&void 0===h&&t.length>1)return hs;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),Vs.push(this);let i=super._stampTemplate(t,e);if(Vs.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];Is(o,i),Ts(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];ko(ko(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=Ms(e)||" ",Ss(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";us.test(o)?s="attribute":"$"==o[o.length-1]&&(o=o.slice(0,-1),s="attribute");let a=Ms(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=Mo(o)),Ss(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;io&&(a||"dom-repeat"===s.localName)&&(s.removeChild(t),(r=r.parentInfo).templateInfo=n,r.noted=!0,o=!1);let l=n.hostProps;if(ro&&a)l&&(i.hostProps=Object.assign(i.hostProps||{},l),io||(r.parentInfo.noted=!0));else{let t="{";for(let e in l)Ss(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=Gs.exec(t));){i.index>o&&r.push({literal:t.slice(o,i.index)});let s=i[1][0],n=!!i[2],a=i[3].trim(),l=!1,h="",d=-1;"{"==s&&(d=a.indexOf("::"))>0&&(h=a.substring(d+2),a=a.substring(0,d),l=!0);let c=Bs(a),u=[];if(c){let{args:t,methodName:i}=c;for(let e=0;e<t.length;e++){let i=t[e];i.literal||u.push(i)}let r=e.dynamicFns;(r&&r[i]||c.static)&&(u.push(i),c.dynamicFn=!0)}else u.push(a);r.push({source:a,mode:s,negate:n,customEvent:l,signature:c,dependencies:u,event:h}),o=Gs.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?Os(t,i,r,0,e.signature):i!=e.source?Oo(t,e.source):s&&xo(i)?Oo(t,i):t.__data[i],e.negate&&(n=!n),n}}})),Vs=[],Hs=ao((t=>{const e=Xo(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=
969
+ */let ls=0;const hs=[],ds={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},cs="__computeInfo",us=/[A-Z]/;function ms(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 ps(t,e,i,r,o,s){if(e){let n=!1;const a=ls++;for(let l in i){let h=e[o?So(l):l];if(h)for(let e,d=0,c=h.length;d<c&&(e=h[d]);d++)(!e.info||e.info.lastRun!==a)&&(!o||_s(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 vs(t,e,i,r,o,s,n,a){let l=!1,h=e[n?So(r):r];if(h)for(let e,d=0,c=h.length;d<c&&(e=h[d]);d++)(!e.info||e.info.lastRun!==i)&&(!n||_s(r,e.trigger))&&(e.info&&(e.info.lastRun=i),e.fn(t,r,o,s,e.info,n,a),l=!0);return l}function _s(t,e){if(e){let i=e.name;return i==t||!(!e.structured||!Ao(i,t))||!(!e.wildcard||!Co(i,t))}return!0}function fs(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 gs(t,e,i){let r=So(e);return r!==e&&(bs(t,Bo(r)+"-changed",i[e],e),!0)}function bs(t,e,i,r){let o={value:i,queueProperty:!0};r&&(o.path=r),ko(t).dispatchEvent(new CustomEvent(e,{detail:o}))}function Es(t,e,i,r,o,s){let n=(s?So(e):e)!=e?e:null,a=n?Ro(t,n):t.__data[e];n&&void 0===a&&(a=i[e]),bs(t,o.eventName,a,n)}function ys(t,e,i,r,o){let s=t.__data[e];Kr&&(s=Kr(s,o.attrName,"attribute",t)),t._propertyToAttribute(e,o.attrName,s)}const ws=(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)},ks=(t,e,i,r,o)=>{const s=e[o?So(t):t];if(s)for(let e=0;e<s.length;e++){const n=s[e];n.info.lastRun!==ls&&(!o||_s(t,n.trigger))&&(n.info.lastRun=ls,ws(n.info,i,r))}};function xs(t,e,i,r,o){let s=Rs(t,e,i,0,o);if(s===hs)return!1;let n=o.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,s,!0):(t[n]=s,!1)}function Ss(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!!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||Bo(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,As(t,e,a,r,l)}}function As(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=Us(r),r.wildcard=!0),t._addTemplatePropertyEffect(e,r.rootProperty,{fn:Cs,info:n,trigger:r})}}}function Cs(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=Io(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!==hs&&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),Kr&&(o=Kr(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[ds.READ_ONLY]||!e[ds.READ_ONLY][r])&&e._setPendingProperty(r,o)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,r,o)}}(t,a,l,h,n)}}function Is(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=ko(t)),t[s]=e.literal)}}function Ts(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=Io(i,r,a),s=n&&n.value):s=t.currentTarget[i],s=o?!s:s,(!e[ds.READ_ONLY]||!e[ds.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,s,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}(t,e,i.target,r.source,r.negate)}))}}function Os(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 Rs(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===hs?hs:n.apply(s,r)}o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Ds=[],Ns="(?:[a-zA-Z_$][\\w.:$\\-*]*)",zs="(?:("+Ns+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",Gs=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+Ns+"\\s*(?:\\(\\s*(?:(?:"+zs+"(?:,\\s*"+zs+")*)?)\\)\\s*)?)(?:]]|}})","g");function Ms(t){let e="";for(let i=0;i<t.length;i++)e+=t[i].literal||"";return e}function Bs(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Ds};return e[2].trim()?function(t,e){return e.args=t.map((function(t){let i=Us(t);return i.literal||(e.static=!1),i}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t):t}return null}function Us(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=So(e),i.structured=xo(e),i.structured&&(i.wildcard=".*"==e.slice(-2),i.wildcard&&(i.name=e.slice(0,-2)))),i}function Ps(t,e,i){let r=Ro(t,i);return void 0===r&&(r=e[i]),r}function Ls(t,e,i,r){const o={indexSplices:r};to&&!t._overrideLegacyUndefined&&(e.splices=o),t.notifyPath(i+".splices",o),t.notifyPath(i+".length",e.length),to&&!t._overrideLegacyUndefined&&(o.indexSplices=[])}function js(t,e,i,r,o,s){Ls(t,e,i,[{index:r,addedCount:o,removed:s,object:e,type:"splice"}])}const Fs=ao((t=>{const e=as(Zo(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return ds}_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(Vs.length){let t=Vs[Vs.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[ds.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==ds.READ_ONLY);let r=ms(this,e,!0)[t];r||(r=this[e][t]=[]),r.push(i)}_removePropertyEffect(t,e,i){let r=ms(this,e,!0)[t],o=r.indexOf(i);o>=0&&r.splice(o,1)}_hasPropertyEffect(t,e){let i=this[e];return!(!i||!i[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,ds.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,ds.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,ds.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,ds.COMPUTE)}_setPendingPropertyOrPath(t,e,i,r){if(r||So(Array.isArray(t)?t[0]:t)!==t){if(!r){let i=Ro(this,t);if(!(t=Do(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];Co(s,e)?(o=Io(s,n,e),t._setPendingPropertyOrPath(o,i,!0,!0)):Co(n,e)&&(o=Io(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=ko(t)),t[e]=i)}_setPendingProperty(t,e,i){let r=this.__dataHasPaths&&xo(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[ds.NOTIFY]&&this[ds.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[ds.READ_ONLY]||!this[ds.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[ds.COMPUTE];if(o)if(eo){ls++;const s=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const i=t[ds.COMPUTE];let r,{counts:o,ready:s,total:n}=function(t){const e=t[cs],i={},r=t[ds.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)ks(t,o,n,s,r);let a;for(;a=n.shift();)xs(t,"",e,0,a)&&ks(a.methodInfo,o,n,s,r);Object.assign(i,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let s=e;for(;ps(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(),ps(this,this[ds.REFLECT],e,i,o),ps(this,this[ds.OBSERVE],e,i,o),r&&function(t,e,i,r,o){let s,n,a=t[ds.NOTIFY],l=ls++;for(let n in e)e[n]&&(a&&vs(t,a,l,n,i,r,o)||o&&gs(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[ds.PROPAGATE]&&ps(this,this[ds.PROPAGATE],t,e,i),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,i)}_runEffectsForTemplate(t,e,i,r){const o=(e,r)=>{ps(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=To(t),e=To(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=To(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let i={path:""};Ls(this,Ro(this,t,i),i.path,e)}get(t,e){return Ro(e||this,t)}set(t,e,i){i?Do(i,t,e):(!this[ds.READ_ONLY]||!this[ds.READ_ONLY][t])&&this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let i={path:""},r=Ro(this,t,i),o=r.length,s=r.push(...e);return e.length&&js(this,r,i.path,o,e.length,[]),s}pop(t){let e={path:""},i=Ro(this,t,e),r=!!i.length,o=i.pop();return r&&js(this,i,e.path,i.length,0,[o]),o}splice(t,e,i,...r){let o,s={path:""},n=Ro(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)&&js(this,n,s.path,e,r.length,o),o}shift(t){let e={path:""},i=Ro(this,t,e),r=!!i.length,o=i.shift();return r&&js(this,i,e.path,0,0,[o]),o}unshift(t,...e){let i={path:""},r=Ro(this,t,i),o=r.unshift(...e);return e.length&&js(this,r,i.path,0,e.length,[]),o}notifyPath(t,e){let i;if(1==arguments.length){let r={path:""};e=Ro(this,t,r),i=r.path}else i=Array.isArray(t)?To(t):t;this._setPendingPropertyOrPath(i,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){this._addPropertyEffect(t,ds.READ_ONLY),e&&(this["_set"+function(t){return t[0].toUpperCase()+t.substring(1)}(t)]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,i){let r={property:t,method:e,dynamicFn:!!i};this._addPropertyEffect(t,ds.OBSERVE,{fn:fs,info:r,trigger:{name:t}}),i&&this._addPropertyEffect(e,ds.OBSERVE,{fn:fs,info:r,trigger:{name:e}})}_createMethodObserver(t,e){let i=Bs(t);if(!i)throw new Error("Malformed observer expression '"+t+"'");Os(this,i,ds.OBSERVE,Rs,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,ds.NOTIFY,{fn:Es,info:{eventName:Bo(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,ds.REFLECT,{fn:ys,info:{attrName:e}})}_createComputedProperty(t,e,i){let r=Bs(e);if(!r)throw new Error("Malformed computed expression '"+e+"'");const o=Os(this,r,ds.COMPUTE,xs,t,i);ms(this,cs)[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:d}=t[s];if(!d)if(l){const t=Co(n,e),o=Ps(r,i,t?e:n);h={path:t?e:n,value:o,base:t?Ro(r,n):o}}else h=a?Ps(r,i,n):r[n];if(to&&!this._overrideLegacyUndefined&&void 0===h&&t.length>1)return hs;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),Vs.push(this);let i=super._stampTemplate(t,e);if(Vs.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];Is(o,i),Ts(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];ko(ko(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=Ms(e)||" ",Ss(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";us.test(o)?s="attribute":"$"==o[o.length-1]&&(o=o.slice(0,-1),s="attribute");let a=Ms(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=Mo(o)),Ss(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;io&&(a||"dom-repeat"===s.localName)&&(s.removeChild(t),(r=r.parentInfo).templateInfo=n,r.noted=!0,o=!1);let l=n.hostProps;if(ro&&a)l&&(i.hostProps=Object.assign(i.hostProps||{},l),io||(r.parentInfo.noted=!0));else{let t="{";for(let e in l)Ss(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=Gs.exec(t));){i.index>o&&r.push({literal:t.slice(o,i.index)});let s=i[1][0],n=!!i[2],a=i[3].trim(),l=!1,h="",d=-1;"{"==s&&(d=a.indexOf("::"))>0&&(h=a.substring(d+2),a=a.substring(0,d),l=!0);let c=Bs(a),u=[];if(c){let{args:t,methodName:i}=c;for(let e=0;e<t.length;e++){let i=t[e];i.literal||u.push(i)}let r=e.dynamicFns;(r&&r[i]||c.static)&&(u.push(i),c.dynamicFn=!0)}else u.push(a);r.push({source:a,mode:s,negate:n,customEvent:l,signature:c,dependencies:u,event:h}),o=Gs.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?Rs(t,i,r,0,e.signature):i!=e.source?Ro(t,e.source):s&&xo(i)?Ro(t,i):t.__data[i],e.negate&&(n=!n),n}}})),Vs=[],Hs=ao((t=>{const e=Xo(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=
970
970
  /**
971
971
  @license
972
972
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1518,12 +1518,12 @@ class Tn{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this.
1518
1518
  * @license
1519
1519
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1520
1520
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1521
- */let Rn=0;function On(){return Rn++}
1521
+ */let On=0;function Rn(){return On++}
1522
1522
  /**
1523
1523
  * @license
1524
1524
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1525
1525
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1526
- */class Dn extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${On()}`}constructor(t,e,i,r={}){super();const{initializer:o,multiple:s,observe:n,useUniqueId:a,uniqueIdPrefix:l}=r;this.host=t,this.slotName=e,this.tagName=i,this.observe="boolean"!=typeof n||n,this.multiple="boolean"==typeof s&&s,this.slotInitializer=o,s&&(this.nodes=[]),a&&(this.defaultId=this.constructor.generateId(t,l||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(0===t.length){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach((t=>{this.initAddedNode(t)}))}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let r=this.defaultNode;return!r&&i&&(r=document.createElement(i),r instanceof Element&&(""!==e&&r.setAttribute("slot",e),this.defaultNode=r)),r&&(this.node=r,t.appendChild(r)),r}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=this.host.shadowRoot.querySelector(""===t?"slot:not([name])":`slot[name=${t}]`);this.__slotObserver=new Tn(e,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node],r=t.filter((t=>{return!((e=t).nodeType===Node.TEXT_NODE&&""===e.textContent.trim()||i.includes(t));var e}));e.length&&(this.nodes=i.filter((t=>!e.includes(t))),e.forEach((t=>{this.teardownNode(t)}))),r&&r.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...i,...r].filter((t=>t!==this.defaultNode)),r.forEach((t=>{this.initAddedNode(t)}))):(this.node&&this.node.remove(),this.node=r[0],this.initAddedNode(this.node)))}))}}
1526
+ */class Dn extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${Rn()}`}constructor(t,e,i,r={}){super();const{initializer:o,multiple:s,observe:n,useUniqueId:a,uniqueIdPrefix:l}=r;this.host=t,this.slotName=e,this.tagName=i,this.observe="boolean"!=typeof n||n,this.multiple="boolean"==typeof s&&s,this.slotInitializer=o,s&&(this.nodes=[]),a&&(this.defaultId=this.constructor.generateId(t,l||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(0===t.length){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach((t=>{this.initAddedNode(t)}))}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let r=this.defaultNode;return!r&&i&&(r=document.createElement(i),r instanceof Element&&(""!==e&&r.setAttribute("slot",e),this.defaultNode=r)),r&&(this.node=r,t.appendChild(r)),r}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=this.host.shadowRoot.querySelector(""===t?"slot:not([name])":`slot[name=${t}]`);this.__slotObserver=new Tn(e,(({addedNodes:t,removedNodes:e})=>{const i=this.multiple?this.nodes:[this.node],r=t.filter((t=>{return!((e=t).nodeType===Node.TEXT_NODE&&""===e.textContent.trim()||i.includes(t));var e}));e.length&&(this.nodes=i.filter((t=>!e.includes(t))),e.forEach((t=>{this.teardownNode(t)}))),r&&r.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...i,...r].filter((t=>t!==this.defaultNode)),r.forEach((t=>{this.initAddedNode(t)}))):(this.node&&this.node.remove(),this.node=r[0],this.initAddedNode(this.node)))}))}}
1527
1527
  /**
1528
1528
  * @license
1529
1529
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
@@ -1568,13 +1568,13 @@ const wa=ao((t=>class extends t{get _keyboardActive(){return pa()}ready(){this.a
1568
1568
  * @license
1569
1569
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1570
1570
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1571
- */function Ta(t){return Ia.has(t)||Ia.set(t,new WeakMap),Ia.get(t)}function Ra(t,e){t&&t.removeAttribute(e)}function Oa(t,e){if(!t||!e)return;const i=Ta(e);if(i.has(t))return;const r=An(t.getAttribute(e));i.set(t,new Set(r))}function Da(t,e,i={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:r,oldId:o,fromUser:s}=i,n=Ta(e),a=n.get(t);if(!s&&a)return o&&a.delete(o),void(r&&a.add(r));s&&(a?r||n.delete(t):Oa(t,e),Ra(t,e)),function(t,e,i){const r=An(t.getAttribute(e));r.delete(i),0!==r.size?t.setAttribute(e,Cn(r)):t.removeAttribute(e)}(t,e,o);const l=r||Cn(a);l&&In(t,e,l)}
1571
+ */function Ta(t){return Ia.has(t)||Ia.set(t,new WeakMap),Ia.get(t)}function Oa(t,e){t&&t.removeAttribute(e)}function Ra(t,e){if(!t||!e)return;const i=Ta(e);if(i.has(t))return;const r=An(t.getAttribute(e));i.set(t,new Set(r))}function Da(t,e,i={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:r,oldId:o,fromUser:s}=i,n=Ta(e),a=n.get(t);if(!s&&a)return o&&a.delete(o),void(r&&a.add(r));s&&(a?r||n.delete(t):Ra(t,e),Oa(t,e)),function(t,e,i){const r=An(t.getAttribute(e));r.delete(i),0!==r.size?t.setAttribute(e,Cn(r)):t.removeAttribute(e)}(t,e,o);const l=r||Cn(a);l&&In(t,e,l)}
1572
1572
  /**
1573
1573
  * @license
1574
1574
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1575
1575
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1576
1576
  */
1577
- class Na{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){this.__target&&(t?(function(t,e){Oa(t,e),Ra(t,e)}(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const i=Ta(e),r=i.get(t);r&&0!==r.size?In(t,e,Cn(r)):t.removeAttribute(e),i.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Da(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Da(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Da(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")))}}
1577
+ class Na{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){this.__target&&(t?(function(t,e){Ra(t,e),Oa(t,e)}(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const i=Ta(e),r=i.get(t);r&&0!==r.size?In(t,e,Cn(r)):t.removeAttribute(e),i.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Da(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Da(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Da(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")))}}
1578
1578
  /**
1579
1579
  * @license
1580
1580
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -1640,7 +1640,7 @@ class Na{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__targe
1640
1640
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1641
1641
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1642
1642
  */
1643
- Rr("vaadin-checkbox",_i`
1643
+ Or("vaadin-checkbox",_i`
1644
1644
  :host {
1645
1645
  display: inline-block;
1646
1646
  }
@@ -1923,7 +1923,7 @@ const Wa=_i`
1923
1923
  margin-left: 0;
1924
1924
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1925
1925
  }
1926
- `;Rr("",Ya,{moduleId:"lumo-required-field"}),Rr("vaadin-checkbox-group",[Ya,Wa,_i`
1926
+ `;Or("",Ya,{moduleId:"lumo-required-field"}),Or("vaadin-checkbox-group",[Ya,Wa,_i`
1927
1927
  :host {
1928
1928
  color: var(--lumo-body-text-color);
1929
1929
  font-size: var(--lumo-font-size-m);
@@ -1983,7 +1983,7 @@ const Za=t=>class extends(Ha(wa(ha(t)))){static get properties(){return{value:{t
1983
1983
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1984
1984
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1985
1985
  */
1986
- Rr("vaadin-checkbox-group",_i`
1986
+ Or("vaadin-checkbox-group",_i`
1987
1987
  :host {
1988
1988
  display: inline-flex;
1989
1989
  }
@@ -2104,7 +2104,7 @@ const Ja=_i`
2104
2104
  opacity: 1;
2105
2105
  }
2106
2106
  }
2107
- `;Rr("",Ja,{moduleId:"lumo-overlay"});
2107
+ `;Or("",Ja,{moduleId:"lumo-overlay"});
2108
2108
  /**
2109
2109
  * @license
2110
2110
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -2140,7 +2140,7 @@ const tl=_i`
2140
2140
  opacity: 0;
2141
2141
  }
2142
2142
  }
2143
- `;Rr("",tl,{moduleId:"lumo-menu-overlay-core"});const el=[Ja,tl,_i`
2143
+ `;Or("",tl,{moduleId:"lumo-menu-overlay-core"});const el=[Ja,tl,_i`
2144
2144
  /* Small viewport (bottom sheet) styles */
2145
2145
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
2146
2146
  @media (max-width: 450px), (max-height: 450px) {
@@ -2202,7 +2202,7 @@ const tl=_i`
2202
2202
  transform: translateY(150%);
2203
2203
  }
2204
2204
  }
2205
- `];Rr("",el,{moduleId:"lumo-menu-overlay"}),Rr("vaadin-date-picker-overlay",[el,_i`
2205
+ `];Or("",el,{moduleId:"lumo-menu-overlay"}),Or("vaadin-date-picker-overlay",[el,_i`
2206
2206
  [part='overlay'] {
2207
2207
  /*
2208
2208
  Width:
@@ -2523,7 +2523,7 @@ const tl=_i`
2523
2523
  margin-left: 0;
2524
2524
  margin-right: 0;
2525
2525
  }
2526
- `;Rr("vaadin-button",il,{moduleId:"lumo-button"}),Rr("vaadin-date-picker-year",_i`
2526
+ `;Or("vaadin-button",il,{moduleId:"lumo-button"}),Or("vaadin-date-picker-year",_i`
2527
2527
  :host([current]) [part='year-number'] {
2528
2528
  color: var(--lumo-primary-text-color);
2529
2529
  }
@@ -2547,7 +2547,7 @@ const tl=_i`
2547
2547
  color: var(--lumo-disabled-text-color);
2548
2548
  content: '\\2022';
2549
2549
  }
2550
- `,{moduleId:"lumo-date-picker-year"}),Rr("vaadin-date-picker-overlay-content",_i`
2550
+ `,{moduleId:"lumo-date-picker-year"}),Or("vaadin-date-picker-overlay-content",_i`
2551
2551
  :host {
2552
2552
  position: relative;
2553
2553
  /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
@@ -2697,7 +2697,7 @@ const tl=_i`
2697
2697
  padding-left: 50px;
2698
2698
  }
2699
2699
  }
2700
- `,{moduleId:"lumo-date-picker-overlay-content"}),Rr("vaadin-month-calendar",_i`
2700
+ `,{moduleId:"lumo-date-picker-overlay-content"}),Or("vaadin-month-calendar",_i`
2701
2701
  :host {
2702
2702
  -moz-user-select: none;
2703
2703
  -webkit-user-select: none;
@@ -2844,7 +2844,7 @@ const tl=_i`
2844
2844
  :host([disabled]) * {
2845
2845
  color: var(--lumo-disabled-text-color) !important;
2846
2846
  }
2847
- `,{moduleId:"lumo-month-calendar"}),Rr("vaadin-input-container",_i`
2847
+ `,{moduleId:"lumo-month-calendar"}),Or("vaadin-input-container",_i`
2848
2848
  :host {
2849
2849
  background: var(--_background);
2850
2850
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -3055,7 +3055,7 @@ const rl=_i`
3055
3055
  font-family: 'lumo-icons';
3056
3056
  display: block;
3057
3057
  }
3058
- `;Rr("",rl,{moduleId:"lumo-field-button"});
3058
+ `;Or("",rl,{moduleId:"lumo-field-button"});
3059
3059
  /**
3060
3060
  * @license
3061
3061
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
@@ -3192,7 +3192,7 @@ const ol=[Ya,rl,Wa,_i`
3192
3192
  [part='clear-button']::before {
3193
3193
  content: var(--lumo-icons-cross);
3194
3194
  }
3195
- `];Rr("",ol,{moduleId:"lumo-input-field-shared-styles"}),Rr("vaadin-date-picker",[ol,_i`
3195
+ `];Or("",ol,{moduleId:"lumo-input-field-shared-styles"}),Or("vaadin-date-picker",[ol,_i`
3196
3196
  [part='toggle-button']::before {
3197
3197
  content: var(--lumo-icons-calendar);
3198
3198
  }
@@ -3231,7 +3231,7 @@ const sl=t=>class extends t{static get properties(){return{disabled:{type:Boolea
3231
3231
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3232
3232
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3233
3233
  */
3234
- Rr("vaadin-input-container",_i`
3234
+ Or("vaadin-input-container",_i`
3235
3235
  :host {
3236
3236
  display: flex;
3237
3237
  align-items: center;
@@ -3404,17 +3404,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3404
3404
  * @license
3405
3405
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3406
3406
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3407
- */const Rl=t=>class extends(za(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Al(this),this.__focusTrapController=new Tl(this),this.__focusRestorationController=new Cl}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!pa();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=ma();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}}
3407
+ */const Ol=t=>class extends(za(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Al(this),this.__focusTrapController=new Tl(this),this.__focusRestorationController=new Cl}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const t=!pa();this.__focusRestorationController.restoreFocus({preventScroll:t})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=ma();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}}
3408
3408
  /**
3409
3409
  * @license
3410
3410
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3411
3411
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3412
- */,Ol=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0)),Dl=()=>Ol().filter((t=>t.$.overlay)),Nl=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===Dl().pop())()}bringToFront(){let t="";const e=Ol().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"),Dl().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=Dl();let e;for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}}
3412
+ */,Rl=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0)),Dl=()=>Rl().filter((t=>t.$.overlay)),Nl=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===Dl().pop())()}bringToFront(){let t="";const e=Rl().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"),Dl().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=Dl();let e;for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}}
3413
3413
  /**
3414
3414
  * @license
3415
3415
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3416
3416
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3417
- */,zl=t=>class extends(Rl(Nl(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),_l&&(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>t,i=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",e&&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,n=void 0!==this._oldRenderer;this._oldRenderer=t;const a=this._oldOpened!==r;this._oldOpened=r,s&&n&&(this.innerHTML="",delete this._$litPart$),r&&t&&(s||a||o)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,e){t?(this._saveFocus(),this._animatedOpening(),ul(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)}}}
3417
+ */,zl=t=>class extends(Ol(Nl(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),_l&&(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>t,i=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",e&&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,n=void 0!==this._oldRenderer;this._oldRenderer=t;const a=this._oldOpened!==r;this._oldOpened=r,s&&n&&(this.innerHTML="",delete this._$litPart$),r&&t&&(s||a||o)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,e){t?(this._saveFocus(),this._animatedOpening(),ul(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)}}}
3418
3418
  /**
3419
3419
  * @license
3420
3420
  * Copyright (c) 2024 Vaadin Ltd.
@@ -3440,7 +3440,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3440
3440
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3441
3441
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3442
3442
  */
3443
- Rr("vaadin-date-picker-overlay",[al,_i`
3443
+ Or("vaadin-date-picker-overlay",[al,_i`
3444
3444
  [part='overlay'] {
3445
3445
  display: flex;
3446
3446
  flex: auto;
@@ -3538,7 +3538,7 @@ const jl=_i`
3538
3538
  * @license
3539
3539
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3540
3540
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3541
- */Rr("vaadin-button",jl,{moduleId:"vaadin-button-styles"});class Vl extends(Fl(xn(Gr(za(Qs))))){static get is(){return"vaadin-button"}static get template(){return Ys`
3541
+ */Or("vaadin-button",jl,{moduleId:"vaadin-button-styles"});class Vl extends(Fl(xn(Gr(za(Qs))))){static get is(){return"vaadin-button"}static get template(){return Ys`
3542
3542
  <div class="vaadin-button-container">
3543
3543
  <span part="prefix" aria-hidden="true">
3544
3544
  <slot name="prefix"></slot>
@@ -3570,7 +3570,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3570
3570
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3571
3571
  Code distributed by Google as part of the polymer project is also
3572
3572
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3573
- */},th=function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Jl()}while(t||e)},eh=document.createElement("template");eh.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" tabindex="-1">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class ih extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(eh.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")}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),th()}_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=mn.debounce(this._debouncerScrollFinish,ln.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=mn.debounce(this._debouncerUpdateClones,ln.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-${On()}`,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=Math.round((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}}
3573
+ */},th=function(){let t,e;do{t=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Jl()}while(t||e)},eh=document.createElement("template");eh.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" tabindex="-1">\n <div class="buffer"></div>\n <div class="buffer"></div>\n <div id="fullHeight"></div>\n </div>\n';class ih extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(eh.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")}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),th()}_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=mn.debounce(this._debouncerScrollFinish,ln.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=mn.debounce(this._debouncerUpdateClones,ln.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-${Rn()}`,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=Math.round((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}}
3574
3574
  /**
3575
3575
  * @license
3576
3576
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
@@ -3663,7 +3663,7 @@ const xh=t=>class extends(wa(t)){static get properties(){return{month:{type:Obje
3663
3663
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3664
3664
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3665
3665
  */
3666
- Rr("vaadin-month-calendar",_i`
3666
+ Or("vaadin-month-calendar",_i`
3667
3667
  :host {
3668
3668
  display: block;
3669
3669
  }
@@ -3783,7 +3783,7 @@ class Ah{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=t
3783
3783
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3784
3784
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3785
3785
  */
3786
- Rr("vaadin-date-picker-overlay-content",_i`
3786
+ Or("vaadin-date-picker-overlay-content",_i`
3787
3787
  :host {
3788
3788
  display: flex;
3789
3789
  flex-direction: column;
@@ -3869,12 +3869,12 @@ Rr("vaadin-date-picker-overlay-content",_i`
3869
3869
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3870
3870
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3871
3871
  */
3872
- const Th=new WeakMap,Rh=ao((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return Th.has(t)||Th.set(t,new Set),Th.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))}))}})),Oh=t=>class extends(Aa(da(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(),gl||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
3872
+ const Th=new WeakMap,Oh=ao((t=>class extends t{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const t=this.getRootNode(),e=function(t){return Th.has(t)||Th.set(t,new Set),Th.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))}))}})),Rh=t=>class extends(Aa(da(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(),gl||this.inputElement.focus()}_onEscape(t){super._onEscape(t),this.clearButtonVisible&&this.value&&!this.readonly&&(t.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}}
3873
3873
  /**
3874
3874
  * @license
3875
3875
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3876
3876
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3877
- */,Dh=ao((t=>class extends(Sa(Va(Aa(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!!t||0===t}})),Nh=t=>class extends(Rh(xa(Dh(Ha(Oh(da(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.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=mn.debounce(this._preventInputDebouncer,ln.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)}}}
3877
+ */,Dh=ao((t=>class extends(Sa(Va(Aa(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!!t||0===t}})),Nh=t=>class extends(Oh(xa(Dh(Ha(Rh(da(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.target===this.inputElement&&(t.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=mn.debounce(this._preventInputDebouncer,ln.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)}}}
3878
3878
  /**
3879
3879
  * @license
3880
3880
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
@@ -3970,7 +3970,7 @@ const Th=new WeakMap,Rh=ao((t=>class extends t{get slotStyles(){return{}}connect
3970
3970
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3971
3971
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3972
3972
  */
3973
- Rr("vaadin-date-picker",[Mh,_i`
3973
+ Or("vaadin-date-picker",[Mh,_i`
3974
3974
  :host([opened]) {
3975
3975
  pointer-events: auto;
3976
3976
  }
@@ -4031,7 +4031,7 @@ Rr("vaadin-date-picker",[Mh,_i`
4031
4031
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4032
4032
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4033
4033
  */
4034
- Rr("vaadin-text-field",ol,{moduleId:"lumo-text-field-styles"});
4034
+ Or("vaadin-text-field",ol,{moduleId:"lumo-text-field-styles"});
4035
4035
  /**
4036
4036
  * @license
4037
4037
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -4047,7 +4047,7 @@ const jh=t=>class extends(Nh(t)){static get properties(){return{autocomplete:{ty
4047
4047
  * @license
4048
4048
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4049
4049
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4050
- */;Rr("vaadin-text-field",Mh,{moduleId:"vaadin-text-field-styles"});class Vh extends(Fh(Gr(xn(Qs)))){static get is(){return"vaadin-text-field"}static get template(){return Ys`
4050
+ */;Or("vaadin-text-field",Mh,{moduleId:"vaadin-text-field-styles"});class Vh extends(Fh(Gr(xn(Qs)))){static get is(){return"vaadin-text-field"}static get template(){return Ys`
4051
4051
  <div class="vaadin-field-container">
4052
4052
  <div part="label">
4053
4053
  <slot name="label"></slot>
@@ -4076,7 +4076,7 @@ const jh=t=>class extends(Nh(t)){static get properties(){return{autocomplete:{ty
4076
4076
  </div>
4077
4077
  </div>
4078
4078
  <slot name="tooltip"></slot>
4079
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Nn(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}hi(Vh),Rr("vaadin-password-field-button",[il,_i`
4079
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Nn(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}hi(Vh),Or("vaadin-password-field-button",[il,_i`
4080
4080
  :host {
4081
4081
  position: absolute;
4082
4082
  right: 0;
@@ -4089,7 +4089,7 @@ const jh=t=>class extends(Nh(t)){static get properties(){return{autocomplete:{ty
4089
4089
  background: transparent;
4090
4090
  outline: none;
4091
4091
  }
4092
- `],{moduleId:"lumo-password-field-button"}),Rr("vaadin-password-field",[ol,_i`
4092
+ `],{moduleId:"lumo-password-field-button"}),Or("vaadin-password-field",[ol,_i`
4093
4093
  [part='reveal-button']::before {
4094
4094
  content: var(--lumo-icons-eye);
4095
4095
  }
@@ -4113,13 +4113,13 @@ const jh=t=>class extends(Nh(t)){static get properties(){return{autocomplete:{ty
4113
4113
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4114
4114
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4115
4115
  */
4116
- Rr("vaadin-password-field-button",jl,{moduleId:"vaadin-password-field-button-styles"});class Hh extends(Fl(yn(Gr(Qs)))){static get is(){return"vaadin-password-field-button"}static get template(){return Ys``}}hi(Hh);
4116
+ Or("vaadin-password-field-button",jl,{moduleId:"vaadin-password-field-button-styles"});class Hh extends(Fl(yn(Gr(Qs)))){static get is(){return"vaadin-password-field-button"}static get template(){return Ys``}}hi(Hh);
4117
4117
  /**
4118
4118
  * @license
4119
4119
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4120
4120
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4121
4121
  */
4122
- const qh=t=>class extends(Rh(ha(wa(Aa(t))))){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 Dn(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&&t.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",t.reveal)}__i18nChanged(t){this.__updateAriaLabel(t)}_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)}}
4122
+ const qh=t=>class extends(Oh(ha(wa(Aa(t))))){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 Dn(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&&t.reveal&&this._revealNode&&this._revealNode.setAttribute("aria-label",t.reveal)}__i18nChanged(t){this.__updateAriaLabel(t)}_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)}}
4123
4123
  /**
4124
4124
  * @license
4125
4125
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -4212,7 +4212,7 @@ const qh=t=>class extends(Rh(ha(wa(Aa(t))))){static get properties(){return{reve
4212
4212
  width: var(--lumo-icon-size-m);
4213
4213
  height: var(--lumo-icon-size-m);
4214
4214
  }
4215
- `;Rr("vaadin-item",Wh,{moduleId:"lumo-item"});const Yh=_i`
4215
+ `;Or("vaadin-item",Wh,{moduleId:"lumo-item"});const Yh=_i`
4216
4216
  :host {
4217
4217
  transition: background-color 100ms;
4218
4218
  overflow: hidden;
@@ -4224,7 +4224,7 @@ const qh=t=>class extends(Rh(ha(wa(Aa(t))))){static get properties(){return{reve
4224
4224
  :host([focused]:not([disabled])) {
4225
4225
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
4226
4226
  }
4227
- `;Rr("vaadin-combo-box-item",[Wh,Yh],{moduleId:"lumo-combo-box-item"});
4227
+ `;Or("vaadin-combo-box-item",[Wh,Yh],{moduleId:"lumo-combo-box-item"});
4228
4228
  /**
4229
4229
  * @license
4230
4230
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
@@ -4301,12 +4301,12 @@ const Zh=_i`
4301
4301
  top: var(--lumo-space-s);
4302
4302
  margin-inline: auto 0;
4303
4303
  }
4304
- `;Rr("vaadin-combo-box-overlay",[Ja,tl,Qh,Zh,Jh,_i`
4304
+ `;Or("vaadin-combo-box-overlay",[Ja,tl,Qh,Zh,Jh,_i`
4305
4305
  :host {
4306
4306
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
4307
4307
  --_vaadin-combo-box-items-container-border-style: solid;
4308
4308
  }
4309
- `],{moduleId:"lumo-combo-box-overlay"}),Rr("vaadin-combo-box",[ol,_i`
4309
+ `],{moduleId:"lumo-combo-box-overlay"}),Or("vaadin-combo-box",[ol,_i`
4310
4310
  [part='toggle-button']::before {
4311
4311
  content: var(--lumo-icons-dropdown);
4312
4312
  }
@@ -4346,7 +4346,7 @@ const id=t=>class extends(Ul(t)){static get observers(){return["_setOverlayWidth
4346
4346
  * @license
4347
4347
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4348
4348
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4349
- */;Rr("vaadin-combo-box-overlay",[al,_i`
4349
+ */;Or("vaadin-combo-box-overlay",[al,_i`
4350
4350
  #overlay {
4351
4351
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
4352
4352
  }
@@ -4387,7 +4387,7 @@ function od(t,e){return t.split(".").reduce(((t,e)=>t?t[e]:void 0),e)}
4387
4387
  * @license
4388
4388
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4389
4389
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4390
- */const cd=class{toString(){return""}},ud=t=>class extends t{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,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}-${On()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(t=>t.stopPropagation())),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(t){if(!this.__virtualizer||!(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 cd)&&(i&&void 0!==t&&void 0!==e?od(i,t)===od(i,e):t===e)}__initVirtualizer(){this.__virtualizer=new dd({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(t){t&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(t,e){(t||e)&&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}),"function"==typeof this.itemClassNameGenerator?t.className=this.itemClassNameGenerator(i):""!==t.className&&(t.className=""),t.performUpdate&&!t.hasUpdated&&t.performUpdate(),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 cd&&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}}))}))}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}}
4390
+ */const cd=class{toString(){return""}},ud=t=>class extends t{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,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}-${Rn()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",(t=>t.stopPropagation())),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(t){if(!this.__virtualizer||!(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 cd)&&(i&&void 0!==t&&void 0!==e?od(i,t)===od(i,e):t===e)}__initVirtualizer(){this.__virtualizer=new dd({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(t){t&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(t){t&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(t,e){(t||e)&&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}),"function"==typeof this.itemClassNameGenerator?t.className=this.itemClassNameGenerator(i):""!==t.className&&(t.className=""),t.performUpdate&&!t.hasUpdated&&t.performUpdate(),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 cd&&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}}))}))}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}}
4391
4391
  /**
4392
4392
  * @license
4393
4393
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
@@ -4465,7 +4465,7 @@ const pd=t=>class extends(Dh(t)){static get properties(){return{pattern:{type:St
4465
4465
  * @license
4466
4466
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4467
4467
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4468
- */;Rr("vaadin-combo-box",Mh,{moduleId:"vaadin-combo-box-styles"});class Sd extends(Ed(xd(pd(Nh(Gr(xn(Qs))))))){static get is(){return"vaadin-combo-box"}static get template(){return Ys`
4468
+ */;Or("vaadin-combo-box",Mh,{moduleId:"vaadin-combo-box-styles"});class Sd extends(Ed(xd(pd(Nh(Gr(xn(Qs))))))){static get is(){return"vaadin-combo-box"}static get template(){return Ys`
4469
4469
  <style>
4470
4470
  :host([opened]) {
4471
4471
  pointer-events: auto;
@@ -4510,7 +4510,7 @@ const pd=t=>class extends(Dh(t)){static get properties(){return{pattern:{type:St
4510
4510
  ></vaadin-combo-box-overlay>
4511
4511
 
4512
4512
  <slot name="tooltip"></slot>
4513
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new qa(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new $a(this.inputElement,this._labelController)),this._tooltipController=new Nn(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)}}hi(Sd),Rr("vaadin-multi-select-combo-box-chip",[rl,_i`
4513
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new qa(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new $a(this.inputElement,this._labelController)),this._tooltipController=new Nn(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)}}hi(Sd),Or("vaadin-multi-select-combo-box-chip",[rl,_i`
4514
4514
  :host {
4515
4515
  font-size: var(--lumo-font-size-xxs);
4516
4516
  line-height: 1;
@@ -4599,23 +4599,23 @@ const pd=t=>class extends(Dh(t)){static get properties(){return{pattern:{type:St
4599
4599
  -webkit-text-fill-color: var(--lumo-disabled-text-color);
4600
4600
  pointer-events: none;
4601
4601
  }
4602
- `],{moduleId:"lumo-multi-select-combo-box-chip"}),Rr("vaadin-multi-select-combo-box-item",[Wh,Yh,_i`
4602
+ `],{moduleId:"lumo-multi-select-combo-box-chip"}),Or("vaadin-multi-select-combo-box-item",[Wh,Yh,_i`
4603
4603
  @media (any-hover: hover) {
4604
4604
  :host(:hover[readonly]) {
4605
4605
  background-color: transparent;
4606
4606
  cursor: default;
4607
4607
  }
4608
4608
  }
4609
- `],{moduleId:"lumo-multi-select-combo-box-item"}),Rr("vaadin-multi-select-combo-box-overlay",[Ja,tl,Qh,Zh,Jh,_i`
4609
+ `],{moduleId:"lumo-multi-select-combo-box-item"}),Or("vaadin-multi-select-combo-box-overlay",[Ja,tl,Qh,Zh,Jh,_i`
4610
4610
  :host {
4611
4611
  --_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
4612
4612
  --_vaadin-multi-select-combo-box-items-container-border-style: solid;
4613
4613
  }
4614
- `],{moduleId:"lumo-multi-select-combo-box-overlay"}),Rr("vaadin-multi-select-combo-box-container",_i`
4614
+ `],{moduleId:"lumo-multi-select-combo-box-overlay"}),Or("vaadin-multi-select-combo-box-container",_i`
4615
4615
  :host([auto-expand-vertically]) {
4616
4616
  padding-block: var(--lumo-space-xs);
4617
4617
  }
4618
- `,{moduleId:"lumo-multi-select-combo-box-container"}),Rr("vaadin-multi-select-combo-box",[ol,_i`
4618
+ `,{moduleId:"lumo-multi-select-combo-box-container"}),Or("vaadin-multi-select-combo-box",[ol,_i`
4619
4619
  :host([has-value]) {
4620
4620
  padding-inline-start: 0;
4621
4621
  }
@@ -4709,7 +4709,7 @@ class Ad extends(Gr(Qs)){static get is(){return"vaadin-multi-select-combo-box-ch
4709
4709
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4710
4710
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4711
4711
  */
4712
- Rr("vaadin-multi-select-combo-box-container",_i`
4712
+ Or("vaadin-multi-select-combo-box-container",_i`
4713
4713
  #wrapper {
4714
4714
  display: flex;
4715
4715
  width: 100%;
@@ -4739,7 +4739,7 @@ class Id extends(td(Gr(yn(Qs)))){static get is(){return"vaadin-multi-select-comb
4739
4739
  <div part="content">
4740
4740
  <slot></slot>
4741
4741
  </div>
4742
- `}}hi(Id),Rr("vaadin-multi-select-combo-box-overlay",[al,_i`
4742
+ `}}hi(Id),Or("vaadin-multi-select-combo-box-overlay",[al,_i`
4743
4743
  #overlay {
4744
4744
  width: var(
4745
4745
  --vaadin-multi-select-combo-box-overlay-width,
@@ -4764,7 +4764,7 @@ class Id extends(td(Gr(yn(Qs)))){static get is(){return"vaadin-multi-select-comb
4764
4764
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4765
4765
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4766
4766
  */
4767
- class Rd extends(ud(Qs)){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return Ys`
4767
+ class Od extends(ud(Qs)){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return Ys`
4768
4768
  <style>
4769
4769
  :host {
4770
4770
  display: block;
@@ -4791,13 +4791,13 @@ class Rd extends(ud(Qs)){static get is(){return"vaadin-multi-select-combo-box-sc
4791
4791
  <div id="selector">
4792
4792
  <slot></slot>
4793
4793
  </div>
4794
- `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(t,e,i){return!(t instanceof cd||this.owner.readonly)&&this.owner._findIndex(t,this.owner.selectedItems,i)>-1}_updateElement(t,e){super._updateElement(t,e),t.toggleAttribute("readonly",this.owner.readonly)}}hi(Rd);
4794
+ `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(t,e,i){return!(t instanceof cd||this.owner.readonly)&&this.owner._findIndex(t,this.owner.selectedItems,i)>-1}_updateElement(t,e){super._updateElement(t,e),t.toggleAttribute("readonly",this.owner.readonly)}}hi(Od);
4795
4795
  /**
4796
4796
  * @license
4797
4797
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4798
4798
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4799
4799
  */
4800
- class Od extends(Ed(xd(Gr(Qs)))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return Ys`
4800
+ class Rd extends(Ed(xd(Gr(Qs)))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return Ys`
4801
4801
  <style>
4802
4802
  :host([opened]) {
4803
4803
  pointer-events: auto;
@@ -4815,7 +4815,7 @@ class Od extends(Ed(xd(Gr(Qs)))){static get is(){return"vaadin-multi-select-comb
4815
4815
  no-vertical-overlap
4816
4816
  restore-focus-node="[[inputElement]]"
4817
4817
  ></vaadin-multi-select-combo-box-overlay>
4818
- `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&(!this.readonly||0!==this.selectedItems.length)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(t){if(this.readonly)super._setDropdownItems(this.selectedItems);else if(!this.filter&&this.selectedItemsOnTop)if(t&&t.length&&this.topGroup&&this.topGroup.length){const e=t.filter((t=>-1===this._comboBox._findIndex(t,this.topGroup,this.itemIdPath)));super._setDropdownItems(this.topGroup.concat(e))}else super._setDropdownItems(t);else super._setDropdownItems(t)}_topGroupChanged(t){t&&this._setDropdownItems(this.filteredItems)}_initScroller(){const t=this.getRootNode().host;this._comboBox=t,super._initScroller(t)}_onEnter(t){if(this.opened){if(t.preventDefault(),t.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}}else super._onEnter(t)}_onEscape(t){if(this.readonly)return t.stopPropagation(),void(this.opened&&this.close());super._onEscape(t)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(t){t||(this._ignoreCommitValue=!0),super._setFocused(t),!t&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue)return this._ignoreCommitValue=!1,this.clear(),void(this._inputElementValue="");super._detectAndDispatchChange()}_overlaySelectedItemChanged(t){t.stopPropagation(),!this.readonly&&(t.detail.item instanceof cd||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:t.detail.item}}))))}_shouldFetchData(){return!this.readonly&&super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(t){this._ignoreCommitValue&&t.stopImmediatePropagation()}}hi(Od);
4818
+ `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&(!this.readonly||0!==this.selectedItems.length)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(t){if(this.readonly)super._setDropdownItems(this.selectedItems);else if(!this.filter&&this.selectedItemsOnTop)if(t&&t.length&&this.topGroup&&this.topGroup.length){const e=t.filter((t=>-1===this._comboBox._findIndex(t,this.topGroup,this.itemIdPath)));super._setDropdownItems(this.topGroup.concat(e))}else super._setDropdownItems(t);else super._setDropdownItems(t)}_topGroupChanged(t){t&&this._setDropdownItems(this.filteredItems)}_initScroller(){const t=this.getRootNode().host;this._comboBox=t,super._initScroller(t)}_onEnter(t){if(this.opened){if(t.preventDefault(),t.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}}else super._onEnter(t)}_onEscape(t){if(this.readonly)return t.stopPropagation(),void(this.opened&&this.close());super._onEscape(t)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(t){t||(this._ignoreCommitValue=!0),super._setFocused(t),!t&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue)return this._ignoreCommitValue=!1,this.clear(),void(this._inputElementValue="");super._detectAndDispatchChange()}_overlaySelectedItemChanged(t){t.stopPropagation(),!this.readonly&&(t.detail.item instanceof cd||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:t.detail.item}}))))}_shouldFetchData(){return!this.readonly&&super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(t){this._ignoreCommitValue&&t.stopImmediatePropagation()}}hi(Rd);
4819
4819
  /**
4820
4820
  * @license
4821
4821
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
@@ -4826,7 +4826,7 @@ const Dd=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resiza
4826
4826
  * @license
4827
4827
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4828
4828
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4829
- */Rr("vaadin-multi-select-combo-box",[Mh,_i`
4829
+ */Or("vaadin-multi-select-combo-box",[Mh,_i`
4830
4830
  :host {
4831
4831
  --input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
4832
4832
  --_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
@@ -4935,7 +4935,7 @@ const Dd=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.resiza
4935
4935
  </div>
4936
4936
 
4937
4937
  <slot name="tooltip"></slot>
4938
- `}static get properties(){return{autoExpandHorizontally:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandHorizontallyChanged"},autoExpandVertically:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandVerticallyChanged"},autoOpenDisabled:Boolean,clearButtonVisible:{type:Boolean,reflectToAttribute:!0,observer:"_clearButtonVisibleChanged",value:!1},items:{type:Array},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemLabelPath:{type:String,value:"label"},itemValuePath:{type:String,value:"value"},itemIdPath:{type:String},i18n:{type:Object,value:()=>({cleared:"Selection cleared",focused:"focused. Press Backspace to remove",selected:"added to selection",deselected:"removed from selection",total:"{count} items selected"})},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,value:!1,reflectToAttribute:!0},overlayClass:{type:String},readonly:{type:Boolean,value:!1,observer:"_readonlyChanged",reflectToAttribute:!0},selectedItems:{type:Array,value:()=>[],notify:!0},opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},size:{type:Number},pageSize:{type:Number,value:50,observer:"_pageSizeChanged"},dataProvider:{type:Object},allowCustomValue:{type:Boolean,value:!1},placeholder:{type:String,observer:"_placeholderChanged"},renderer:Function,filter:{type:String,value:"",notify:!0},filteredItems:Array,selectedItemsOnTop:{type:Boolean,value:!1},value:{type:String},_overflowItems:{type:Array,value:()=>[]},_focusedChipIndex:{type:Number,value:-1,observer:"_focusedChipIndexChanged"},_lastFilter:{type:String},_topGroup:{type:Array}}}static get observers(){return["_selectedItemsChanged(selectedItems, selectedItems.*)","__updateOverflowChip(_overflow, _overflowItems, disabled, readonly)","__updateTopGroup(selectedItemsOnTop, selectedItems, opened)"]}get slotStyles(){return[...super.slotStyles,`\n ${this.localName}[has-value] input::placeholder {\n color: transparent !important;\n forced-color-adjust: none;\n }\n `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new qa(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new $a(this.inputElement,this._labelController)),this._tooltipController=new Nn(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new Dn(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:t=>{t.addEventListener("mousedown",(t=>this._preventBlur(t))),this._overflow=t}}),this.addController(this._overflowController),this.__updateChips(),yd(this)}checkValidity(){return!(this.required&&!this.readonly)||this._hasValue}clear(){this.__updateSelection([]),Ba(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(t,e){super._disabledChanged(t,e),(t||e)&&this.__updateChips()}_inputElementChanged(t){super._inputElementChanged(t),t&&this.$.comboBox._setInputElement(t)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(t,e){if(this.stateTarget){if("required"===t)return void this._delegateAttribute("aria-required",!!e&&"true");super._delegateAttribute(t,e)}}_autoExpandHorizontallyChanged(t,e){(t||e)&&this.__updateChips()}_autoExpandVerticallyChanged(t,e){(t||e)&&this.__updateChips()}_clearButtonVisibleChanged(t,e){(t||e)&&this.__updateChips()}_onFilteredItemsChanged(t){const{value:e}=t.detail;(Array.isArray(e)||null==e)&&(this.filteredItems=e)}_readonlyChanged(t,e){(t||e)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.__updateChips()}_pageSizeChanged(t,e){(Math.floor(t)!==t||t<=0)&&(this.pageSize=e,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(t){const e=this.__tmpA11yPlaceholder;e!==t&&(this.__savedPlaceholder=t,e&&(this.placeholder=e))}_selectedItemsChanged(t){if(this._toggleHasValue(this._hasValue),this._hasValue){const e=this._mergeItemLabels(t);void 0===this.__tmpA11yPlaceholder&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=e,this.placeholder=e}else void 0!==this.__tmpA11yPlaceholder&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(t){return this.$.comboBox._getItemLabel(t)}_mergeItemLabels(t){return t.map((t=>this._getItemLabel(t))).join(", ")}_findIndex(t,e,i){if(i&&t){for(let r=0;r<e.length;r++)if(e[r]&&e[r][i]===t[i])return r;return-1}return e.indexOf(t)}__clearInternalValue(t=!1){!this.keepFilter||t?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(t,e,i){const r=e?"selected":"deselected",o=this.i18n.total.replace("{count}",i||0);Ba(`${t} ${this.i18n[r]} ${o}`)}__removeItem(t){const e=[...this.selectedItems];e.splice(e.indexOf(t),1),this.__updateSelection(e);const i=this._getItemLabel(t);this.__announceItem(i,!1,e.length)}__selectItem(t){const e=[...this.selectedItems],i=this._findIndex(t,e,this.itemIdPath),r=this._getItemLabel(t);let o=!1;if(-1!==i){const t=this._lastFilter;if(t&&t.toLowerCase()===r.toLowerCase())return void this.__clearInternalValue();e.splice(i,1)}else e.push(t),o=!0;this.__updateSelection(e),this.__clearInternalValue(),this.__announceItem(r,o,e.length)}__updateSelection(t){this.selectedItems=t,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(t,e,i){t?i||(this._topGroup=[...e]):this._topGroup=[]}__createChip(t){const e=document.createElement("vaadin-multi-select-combo-box-chip");e.setAttribute("slot","chip"),e.item=t,e.disabled=this.disabled,e.readonly=this.readonly;const i=this._getItemLabel(t);return e.label=i,e.setAttribute("title",i),"function"==typeof this.itemClassNameGenerator&&(e.className=this.itemClassNameGenerator(t)),e.addEventListener("item-removed",(t=>this._onItemRemoved(t))),e.addEventListener("mousedown",(t=>this._preventBlur(t))),e}__getOverflowWidth(){const t=this._overflow;t.style.visibility="hidden",t.removeAttribute("hidden");const e=t.getAttribute("count");t.setAttribute("count","99");const i=getComputedStyle(t),r=t.clientWidth+parseInt(i.marginInlineStart);return t.setAttribute("count",e),t.setAttribute("hidden",""),t.style.visibility="",r}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach((t=>{t.remove()}));const t=[...this.selectedItems],e=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let r=e-i;t.length>1&&(r-=this.__getOverflowWidth());const o=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const e=[];for(let i=t.length-1,r=null;i>=0;i--){const o=this.__createChip(t[i]);this.insertBefore(o,r),r=o,e.unshift(o)}const s=[];if(!this.autoExpandVertically&&this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth<i){for(;e.length>1;){e.pop().remove(),s.unshift(t.pop());const r=s.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=r)break}1===e.length&&(e[0].style.maxWidth=`${Math.max(o,r)}px`)}this._overflowItems=s}else{for(let e=t.length-1,i=null;e>=0;e--){const s=this.__createChip(t[e]);if(this.insertBefore(s,i),!this.autoExpandVertically&&this.$.chips.clientWidth>r){if(null!==i){s.remove();break}s.style.maxWidth=`${Math.max(o,r)}px`}t.pop(),i=s}this._overflowItems=t}}__updateOverflowChip(t,e,i,r){if(t){const o=e.length;t.label=`${o}`,t.setAttribute("count",`${o}`),t.setAttribute("title",this._mergeItemLabels(e)),t.toggleAttribute("hidden",0===o),t.disabled=i,t.readonly=r}}_onClearButtonTouchend(t){t.preventDefault(),t.stopPropagation(),this.clear()}_onClearButtonClick(t){t.stopPropagation(),this.clear()}_onChange(t){t.stopPropagation()}_onEscape(t){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(t.stopPropagation(),this.selectedItems=[])}_onKeyDown(t){super._onKeyDown(t);const e=this._chips;if(!this.readonly&&e.length>0)switch(t.key){case"Backspace":this._onBackSpace(e);break;case"ArrowLeft":this._onArrowLeft(e,t);break;case"ArrowRight":this._onArrowRight(e,t);break;default:this._focusedChipIndex=-1}}_onArrowLeft(t,e){if(0!==this.inputElement.selectionStart)return;const i=this._focusedChipIndex;let r;-1!==i&&e.preventDefault(),this.__isRTL?i===t.length-1?r=-1:i>-1&&(r=i+1):-1===i?r=t.length-1:i>0&&(r=i-1),void 0!==r&&(this._focusedChipIndex=r)}_onArrowRight(t,e){if(0!==this.inputElement.selectionStart)return;const i=this._focusedChipIndex;let r;-1!==i&&e.preventDefault(),this.__isRTL?-1===i?r=t.length-1:i>0&&(r=i-1):i===t.length-1?r=-1:i>-1&&(r=i+1),void 0!==r&&(this._focusedChipIndex=r)}_onBackSpace(t){if(0!==this.inputElement.selectionStart)return;const e=this._focusedChipIndex;-1===e?this._focusedChipIndex=t.length-1:(this.__removeItem(t[e].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(t,e){if(t>-1||e>-1){const e=this._chips;e.forEach(((e,i)=>{e.toggleAttribute("focused",i===t)})),t>-1&&Ba(`${this._getItemLabel(e[t].item)} ${this.i18n.focused}`)}}_onComboBoxChange(){const t=this.$.comboBox.selectedItem;t&&this.__selectItem(t)}_onComboBoxItemSelected(t){this.__selectItem(t.detail.item)}_onCustomValueSet(t){t.preventDefault(),t.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:t.detail,composed:!0,bubbles:!0}))}_onItemRemoved(t){this.__removeItem(t.detail.item)}_preventBlur(t){t.preventDefault()}}hi(zd),Rr("vaadin-notification-card",_i`
4938
+ `}static get properties(){return{autoExpandHorizontally:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandHorizontallyChanged"},autoExpandVertically:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_autoExpandVerticallyChanged"},autoOpenDisabled:Boolean,clearButtonVisible:{type:Boolean,reflectToAttribute:!0,observer:"_clearButtonVisibleChanged",value:!1},items:{type:Array},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemLabelPath:{type:String,value:"label"},itemValuePath:{type:String,value:"value"},itemIdPath:{type:String},i18n:{type:Object,value:()=>({cleared:"Selection cleared",focused:"focused. Press Backspace to remove",selected:"added to selection",deselected:"removed from selection",total:"{count} items selected"})},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,value:!1,reflectToAttribute:!0},overlayClass:{type:String},readonly:{type:Boolean,value:!1,observer:"_readonlyChanged",reflectToAttribute:!0},selectedItems:{type:Array,value:()=>[],notify:!0},opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},size:{type:Number},pageSize:{type:Number,value:50,observer:"_pageSizeChanged"},dataProvider:{type:Object},allowCustomValue:{type:Boolean,value:!1},placeholder:{type:String,observer:"_placeholderChanged"},renderer:Function,filter:{type:String,value:"",notify:!0},filteredItems:Array,selectedItemsOnTop:{type:Boolean,value:!1},value:{type:String},_overflowItems:{type:Array,value:()=>[]},_focusedChipIndex:{type:Number,value:-1,observer:"_focusedChipIndexChanged"},_lastFilter:{type:String},_topGroup:{type:Array}}}static get observers(){return["_selectedItemsChanged(selectedItems, selectedItems.*)","__updateOverflowChip(_overflow, _overflowItems, disabled, readonly)","__updateTopGroup(selectedItemsOnTop, selectedItems, opened)"]}get slotStyles(){return[...super.slotStyles,`\n ${this.localName}[has-value] input::placeholder {\n color: transparent !important;\n forced-color-adjust: none;\n }\n `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new qa(this,(t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t}))),this.addController(new $a(this.inputElement,this._labelController)),this._tooltipController=new Nn(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow((t=>!t.opened)),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new Dn(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:t=>{t.addEventListener("mousedown",(t=>this._preventBlur(t))),this._overflow=t}}),this.addController(this._overflowController),this.__updateChips(),yd(this)}checkValidity(){return!(this.required&&!this.readonly)||this._hasValue}clear(){this.__updateSelection([]),Ba(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(t,e){super._disabledChanged(t,e),(t||e)&&this.__updateChips()}_inputElementChanged(t){super._inputElementChanged(t),t&&this.$.comboBox._setInputElement(t)}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(t,e){if(this.stateTarget){if("required"===t)return void this._delegateAttribute("aria-required",!!e&&"true");super._delegateAttribute(t,e)}}_autoExpandHorizontallyChanged(t,e){(t||e)&&this.__updateChips()}_autoExpandVerticallyChanged(t,e){(t||e)&&this.__updateChips()}_clearButtonVisibleChanged(t,e){(t||e)&&this.__updateChips()}_onFilteredItemsChanged(t){const{value:e}=t.detail;(Array.isArray(e)||null==e)&&(this.filteredItems=e)}_readonlyChanged(t,e){(t||e)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.__updateChips()}_pageSizeChanged(t,e){(Math.floor(t)!==t||t<=0)&&(this.pageSize=e,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(t){const e=this.__tmpA11yPlaceholder;e!==t&&(this.__savedPlaceholder=t,e&&(this.placeholder=e))}_selectedItemsChanged(t){if(this._toggleHasValue(this._hasValue),this._hasValue){const e=this._mergeItemLabels(t);void 0===this.__tmpA11yPlaceholder&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=e,this.placeholder=e}else void 0!==this.__tmpA11yPlaceholder&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(t){return this.$.comboBox._getItemLabel(t)}_mergeItemLabels(t){return t.map((t=>this._getItemLabel(t))).join(", ")}_findIndex(t,e,i){if(i&&t){for(let r=0;r<e.length;r++)if(e[r]&&e[r][i]===t[i])return r;return-1}return e.indexOf(t)}__clearInternalValue(t=!1){!this.keepFilter||t?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(t,e,i){const r=e?"selected":"deselected",o=this.i18n.total.replace("{count}",i||0);Ba(`${t} ${this.i18n[r]} ${o}`)}__removeItem(t){const e=[...this.selectedItems];e.splice(e.indexOf(t),1),this.__updateSelection(e);const i=this._getItemLabel(t);this.__announceItem(i,!1,e.length)}__selectItem(t){const e=[...this.selectedItems],i=this._findIndex(t,e,this.itemIdPath),r=this._getItemLabel(t);let o=!1;if(-1!==i){const t=this._lastFilter;if(t&&t.toLowerCase()===r.toLowerCase())return void this.__clearInternalValue();e.splice(i,1)}else e.push(t),o=!0;this.__updateSelection(e),this.__clearInternalValue(),this.__announceItem(r,o,e.length)}__updateSelection(t){this.selectedItems=t,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(t,e,i){t?i||(this._topGroup=[...e]):this._topGroup=[]}__createChip(t){const e=document.createElement("vaadin-multi-select-combo-box-chip");e.setAttribute("slot","chip"),e.item=t,e.disabled=this.disabled,e.readonly=this.readonly;const i=this._getItemLabel(t);return e.label=i,e.setAttribute("title",i),"function"==typeof this.itemClassNameGenerator&&(e.className=this.itemClassNameGenerator(t)),e.addEventListener("item-removed",(t=>this._onItemRemoved(t))),e.addEventListener("mousedown",(t=>this._preventBlur(t))),e}__getOverflowWidth(){const t=this._overflow;t.style.visibility="hidden",t.removeAttribute("hidden");const e=t.getAttribute("count");t.setAttribute("count","99");const i=getComputedStyle(t),r=t.clientWidth+parseInt(i.marginInlineStart);return t.setAttribute("count",e),t.setAttribute("hidden",""),t.style.visibility="",r}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach((t=>{t.remove()}));const t=[...this.selectedItems],e=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let r=e-i;t.length>1&&(r-=this.__getOverflowWidth());const o=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const e=[];for(let i=t.length-1,r=null;i>=0;i--){const o=this.__createChip(t[i]);this.insertBefore(o,r),r=o,e.unshift(o)}const s=[];if(!this.autoExpandVertically&&this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth<i){for(;e.length>1;){e.pop().remove(),s.unshift(t.pop());const r=s.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=r)break}1===e.length&&(e[0].style.maxWidth=`${Math.max(o,r)}px`)}this._overflowItems=s}else{for(let e=t.length-1,i=null;e>=0;e--){const s=this.__createChip(t[e]);if(this.insertBefore(s,i),!this.autoExpandVertically&&this.$.chips.clientWidth>r){if(null!==i){s.remove();break}s.style.maxWidth=`${Math.max(o,r)}px`}t.pop(),i=s}this._overflowItems=t}}__updateOverflowChip(t,e,i,r){if(t){const o=e.length;t.label=`${o}`,t.setAttribute("count",`${o}`),t.setAttribute("title",this._mergeItemLabels(e)),t.toggleAttribute("hidden",0===o),t.disabled=i,t.readonly=r}}_onClearButtonTouchend(t){t.preventDefault(),t.stopPropagation(),this.clear()}_onClearButtonClick(t){t.stopPropagation(),this.clear()}_onChange(t){t.stopPropagation()}_onEscape(t){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(t.stopPropagation(),this.selectedItems=[])}_onKeyDown(t){super._onKeyDown(t);const e=this._chips;if(!this.readonly&&e.length>0)switch(t.key){case"Backspace":this._onBackSpace(e);break;case"ArrowLeft":this._onArrowLeft(e,t);break;case"ArrowRight":this._onArrowRight(e,t);break;default:this._focusedChipIndex=-1}}_onArrowLeft(t,e){if(0!==this.inputElement.selectionStart)return;const i=this._focusedChipIndex;let r;-1!==i&&e.preventDefault(),this.__isRTL?i===t.length-1?r=-1:i>-1&&(r=i+1):-1===i?r=t.length-1:i>0&&(r=i-1),void 0!==r&&(this._focusedChipIndex=r)}_onArrowRight(t,e){if(0!==this.inputElement.selectionStart)return;const i=this._focusedChipIndex;let r;-1!==i&&e.preventDefault(),this.__isRTL?-1===i?r=t.length-1:i>0&&(r=i-1):i===t.length-1?r=-1:i>-1&&(r=i+1),void 0!==r&&(this._focusedChipIndex=r)}_onBackSpace(t){if(0!==this.inputElement.selectionStart)return;const e=this._focusedChipIndex;-1===e?this._focusedChipIndex=t.length-1:(this.__removeItem(t[e].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(t,e){if(t>-1||e>-1){const e=this._chips;e.forEach(((e,i)=>{e.toggleAttribute("focused",i===t)})),t>-1&&Ba(`${this._getItemLabel(e[t].item)} ${this.i18n.focused}`)}}_onComboBoxChange(){const t=this.$.comboBox.selectedItem;t&&this.__selectItem(t)}_onComboBoxItemSelected(t){this.__selectItem(t.detail.item)}_onCustomValueSet(t){t.preventDefault(),t.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:t.detail,composed:!0,bubbles:!0}))}_onItemRemoved(t){this.__removeItem(t.detail.item)}_preventBlur(t){t.preventDefault()}}hi(zd),Or("vaadin-notification-card",_i`
4939
4939
  :host {
4940
4940
  position: relative;
4941
4941
  margin: var(--lumo-space-s);
@@ -5265,13 +5265,13 @@ class Gd extends(Nl(Gr(xn(Qs)))){static get template(){return Ys`
5265
5265
  margin: var(--lumo-space-s) var(--lumo-border-radius-m);
5266
5266
  background-color: var(--lumo-contrast-10pct);
5267
5267
  }
5268
- `;Rr("vaadin-list-box",Ud,{moduleId:"lumo-list-box"}),
5268
+ `;Or("vaadin-list-box",Ud,{moduleId:"lumo-list-box"}),
5269
5269
  /**
5270
5270
  * @license
5271
5271
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5272
5272
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5273
5273
  */
5274
- Rr("vaadin-select-item",Wh,{moduleId:"lumo-select-item"}),Rr("vaadin-select-list-box",Ud,{moduleId:"lumo-select-list-box"}),Rr("vaadin-select",[ol,_i`
5274
+ Or("vaadin-select-item",Wh,{moduleId:"lumo-select-item"}),Or("vaadin-select-list-box",Ud,{moduleId:"lumo-select-list-box"}),Or("vaadin-select",[ol,_i`
5275
5275
  :host(:not([theme*='align'])) ::slotted([slot='value']) {
5276
5276
  text-align: start;
5277
5277
  }
@@ -5314,7 +5314,7 @@ Rr("vaadin-select-item",Wh,{moduleId:"lumo-select-item"}),Rr("vaadin-select-list
5314
5314
  --_lumo-selected-item-height: var(--lumo-size-s);
5315
5315
  --_lumo-selected-item-padding: 0;
5316
5316
  }
5317
- `],{moduleId:"lumo-select"}),Rr("vaadin-select-value-button",_i`
5317
+ `],{moduleId:"lumo-select"}),Or("vaadin-select-value-button",_i`
5318
5318
  :host {
5319
5319
  font-family: var(--lumo-font-family);
5320
5320
  font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
@@ -5333,7 +5333,7 @@ Rr("vaadin-select-item",Wh,{moduleId:"lumo-select-item"}),Rr("vaadin-select-list
5333
5333
  ::slotted(*:hover) {
5334
5334
  background-color: transparent;
5335
5335
  }
5336
- `,{moduleId:"lumo-select-value-button"}),Rr("vaadin-select-overlay",[el,_i`
5336
+ `,{moduleId:"lumo-select-value-button"}),Or("vaadin-select-overlay",[el,_i`
5337
5337
  :host {
5338
5338
  --_lumo-item-selected-icon-display: block;
5339
5339
  }
@@ -5447,7 +5447,7 @@ const qd=t=>class extends(Ul(zl(yn(t)))){static get observers(){return["_updateO
5447
5447
  * @license
5448
5448
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5449
5449
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5450
- */;Rr("vaadin-select-overlay",[al,_i`
5450
+ */;Or("vaadin-select-overlay",[al,_i`
5451
5451
  :host {
5452
5452
  align-items: flex-start;
5453
5453
  justify-content: flex-start;
@@ -5475,7 +5475,7 @@ const qd=t=>class extends(Ul(zl(yn(t)))){static get observers(){return["_updateO
5475
5475
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5476
5476
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5477
5477
  */
5478
- Rr("vaadin-select-value-button",_i`
5478
+ Or("vaadin-select-value-button",_i`
5479
5479
  :host {
5480
5480
  display: inline-block;
5481
5481
  position: relative;
@@ -5553,12 +5553,12 @@ const Kd=_i`
5553
5553
  * @license
5554
5554
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5555
5555
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5556
- */const Yd=t=>class extends(Bh(xa(Sa(da(Ha(t)))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${On()}`,this._srLabelController=new ja(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Wd(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new Ah(this._phoneMediaQuery,(t=>{this._phone=t}))),this._tooltipController=new Nn(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(t){super._requiredChanged(t),!1===t&&this.validate()}__itemsChanged(t,e){(t||e)&&this.requestContentUpdate()}_assignMenuElement(t){t&&t!==this.__lastMenuElement&&(this._menuElement=t,this.__initMenuItems(t),t.addEventListener("items-changed",(()=>{this.__initMenuItems(t)})),t.addEventListener("selected-changed",(()=>this.__updateValueButton())),t.addEventListener("keydown",(t=>this._onKeyDownInside(t)),!0),t.addEventListener("click",(t=>{const e=t.composedPath().find((t=>t._hasVaadinItemMixin));this.__dispatchChangePending=!(!e||void 0===e.value||e.value===this.value),this.opened=!1}),!0),this.__lastMenuElement=t)}__initMenuItems(t){t.items&&(this._items=t.items)}_valueChanged(t,e){this.toggleAttribute("has-value",!!t),void 0!==e&&!this.__dispatchChangePending&&this.validate()}_onClick(t){this.disabled||(t.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(t){t.preventDefault()}_onKeyDown(t){if(t.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened)if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(t.key))t.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(t.key)&&1===t.key.length){const e=this._menuElement.selected,i=this._menuElement._searchKey(void 0!==e?e:-1,t.key);i>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=i)}}_onKeyDownInside(t){/^(Tab)$/u.test(t.key)&&(this.opened=!1)}_openedChanged(t,e,i){if(e&&i){if(t){if(this.disabled||this.readonly)return void(this.opened=!1);this._updateAriaLive(!1),e.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const t=this.hasAttribute("focus-ring");this._openedWithFocusRing=t,t&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=t}}_updateAriaExpanded(t,e){e&&e.setAttribute("aria-expanded",t?"true":"false")}_updateAriaLive(t){this.focusElement&&(t?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(t){let e;const i=t.getAttribute("label");e=i?this.__createItemElement({label:i}):t.cloneNode(!0),e._sourceItem=t,this.__appendValueItemElement(e,this.focusElement),e.selected=!0}__createItemElement(t){const e=document.createElement(t.component||"vaadin-select-item");return t.label&&(e.textContent=t.label),t.value&&(e.value=t.value),t.disabled&&(e.disabled=t.disabled),t.className&&(e.className=t.className),e}__appendValueItemElement(t,e){e.appendChild(t),t.removeAttribute("tabindex"),t.removeAttribute("aria-selected"),t.removeAttribute("role"),t.removeAttribute("focused"),t.removeAttribute("focus-ring"),t.removeAttribute("active"),t.setAttribute("id",this._itemId)}_accessibleNameChanged(t){this._srLabelController.setLabel(t),this._setCustomAriaLabelledBy(t?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(t){this._setCustomAriaLabelledBy(t)}_setCustomAriaLabelledBy(t){const e=this._getLabelIdWithItemId(t);this._fieldAriaController.setLabelId(e,!0)}_getLabelIdWithItemId(t){return t?`${t} ${this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:""}`.trim():null}__updateValueButton(){const t=this.focusElement;if(!t)return;t.innerHTML="";const e=this._items[this._menuElement.selected];if(t.removeAttribute("placeholder"),this._hasContent(e))this.__attachSelectedItem(e);else if(this.placeholder){const e=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(e,t),t.setAttribute("placeholder","")}!this._valueChanging&&e&&(this._selectedChanging=!0,this.value=e.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging),Da(t,"aria-labelledby",e||this.placeholder?{newId:this._itemId}:{oldId:this._itemId}),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(t){return!!t&&(!!(t.hasAttribute("label")?t.getAttribute("label"):t.textContent.trim())||t.childElementCount>0)}_updateSelectedItem(t,e){if(e){const i=null==t?t:t.toString();this._menuElement.selected=e.reduce(((t,e,r)=>void 0===t&&e.value===i?r:t),void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(t,e){if(!this.items||0===this.items.length)return void(t.textContent="");let i=t.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),t.appendChild(i)),i.textContent="",this.items.forEach((t=>{i.appendChild(this.__createItemElement(t))}))}__dispatchChange(){return li(this,null,(function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1}))}}
5556
+ */const Yd=t=>class extends(Bh(xa(Sa(da(Ha(t)))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${Rn()}`,this._srLabelController=new ja(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Wd(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new Ah(this._phoneMediaQuery,(t=>{this._phone=t}))),this._tooltipController=new Nn(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(t){super._requiredChanged(t),!1===t&&this.validate()}__itemsChanged(t,e){(t||e)&&this.requestContentUpdate()}_assignMenuElement(t){t&&t!==this.__lastMenuElement&&(this._menuElement=t,this.__initMenuItems(t),t.addEventListener("items-changed",(()=>{this.__initMenuItems(t)})),t.addEventListener("selected-changed",(()=>this.__updateValueButton())),t.addEventListener("keydown",(t=>this._onKeyDownInside(t)),!0),t.addEventListener("click",(t=>{const e=t.composedPath().find((t=>t._hasVaadinItemMixin));this.__dispatchChangePending=!(!e||void 0===e.value||e.value===this.value),this.opened=!1}),!0),this.__lastMenuElement=t)}__initMenuItems(t){t.items&&(this._items=t.items)}_valueChanged(t,e){this.toggleAttribute("has-value",!!t),void 0!==e&&!this.__dispatchChangePending&&this.validate()}_onClick(t){this.disabled||(t.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(t){t.preventDefault()}_onKeyDown(t){if(t.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened)if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(t.key))t.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(t.key)&&1===t.key.length){const e=this._menuElement.selected,i=this._menuElement._searchKey(void 0!==e?e:-1,t.key);i>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=i)}}_onKeyDownInside(t){/^(Tab)$/u.test(t.key)&&(this.opened=!1)}_openedChanged(t,e,i){if(e&&i){if(t){if(this.disabled||this.readonly)return void(this.opened=!1);this._updateAriaLive(!1),e.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const t=this.hasAttribute("focus-ring");this._openedWithFocusRing=t,t&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=t}}_updateAriaExpanded(t,e){e&&e.setAttribute("aria-expanded",t?"true":"false")}_updateAriaLive(t){this.focusElement&&(t?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(t){let e;const i=t.getAttribute("label");e=i?this.__createItemElement({label:i}):t.cloneNode(!0),e._sourceItem=t,this.__appendValueItemElement(e,this.focusElement),e.selected=!0}__createItemElement(t){const e=document.createElement(t.component||"vaadin-select-item");return t.label&&(e.textContent=t.label),t.value&&(e.value=t.value),t.disabled&&(e.disabled=t.disabled),t.className&&(e.className=t.className),e}__appendValueItemElement(t,e){e.appendChild(t),t.removeAttribute("tabindex"),t.removeAttribute("aria-selected"),t.removeAttribute("role"),t.removeAttribute("focused"),t.removeAttribute("focus-ring"),t.removeAttribute("active"),t.setAttribute("id",this._itemId)}_accessibleNameChanged(t){this._srLabelController.setLabel(t),this._setCustomAriaLabelledBy(t?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(t){this._setCustomAriaLabelledBy(t)}_setCustomAriaLabelledBy(t){const e=this._getLabelIdWithItemId(t);this._fieldAriaController.setLabelId(e,!0)}_getLabelIdWithItemId(t){return t?`${t} ${this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:""}`.trim():null}__updateValueButton(){const t=this.focusElement;if(!t)return;t.innerHTML="";const e=this._items[this._menuElement.selected];if(t.removeAttribute("placeholder"),this._hasContent(e))this.__attachSelectedItem(e);else if(this.placeholder){const e=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(e,t),t.setAttribute("placeholder","")}!this._valueChanging&&e&&(this._selectedChanging=!0,this.value=e.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging),Da(t,"aria-labelledby",e||this.placeholder?{newId:this._itemId}:{oldId:this._itemId}),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(t){return!!t&&(!!(t.hasAttribute("label")?t.getAttribute("label"):t.textContent.trim())||t.childElementCount>0)}_updateSelectedItem(t,e){if(e){const i=null==t?t:t.toString();this._menuElement.selected=e.reduce(((t,e,r)=>void 0===t&&e.value===i?r:t),void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(t,e){if(!this.items||0===this.items.length)return void(t.textContent="");let i=t.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),t.appendChild(i)),i.textContent="",this.items.forEach((t=>{i.appendChild(this.__createItemElement(t))}))}__dispatchChange(){return li(this,null,(function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1}))}}
5557
5557
  /**
5558
5558
  * @license
5559
5559
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5560
5560
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5561
- */;Rr("vaadin-select",[zh,Gh,Kd],{moduleId:"vaadin-select-styles"});class Zd extends(Yd(xn(Gr(Qs)))){static get is(){return"vaadin-select"}static get template(){return Ys`
5561
+ */;Or("vaadin-select",[zh,Gh,Kd],{moduleId:"vaadin-select-styles"});class Zd extends(Yd(xn(Gr(Qs)))){static get is(){return"vaadin-select"}static get template(){return Ys`
5562
5562
  <style>
5563
5563
  :host {
5564
5564
  position: relative;
@@ -5711,7 +5711,7 @@ const Kd=_i`
5711
5711
  transform: scale(1.02);
5712
5712
  }
5713
5713
  }
5714
- `;Rr("vaadin-dialog-overlay",[Ja,Qd],{moduleId:"lumo-dialog"}),Rr("vaadin-confirm-dialog-overlay",[Ja,Qd,_i`
5714
+ `;Or("vaadin-dialog-overlay",[Ja,Qd],{moduleId:"lumo-dialog"}),Or("vaadin-confirm-dialog-overlay",[Ja,Qd,_i`
5715
5715
  [part='header'] ::slotted(h3) {
5716
5716
  margin-top: 0 !important;
5717
5717
  margin-bottom: 0 !important;
@@ -5944,7 +5944,7 @@ const Jd=t=>class extends t{static get properties(){return{opened:{type:Boolean,
5944
5944
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
5945
5945
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5946
5946
  */
5947
- Rr("vaadin-confirm-dialog-overlay",[al,tc,_i`
5947
+ Or("vaadin-confirm-dialog-overlay",[al,tc,_i`
5948
5948
  :host {
5949
5949
  --_vaadin-confirm-dialog-content-width: auto;
5950
5950
  --_vaadin-confirm-dialog-content-height: auto;
@@ -6011,7 +6011,7 @@ Rr("vaadin-confirm-dialog-overlay",[al,tc,_i`
6011
6011
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
6012
6012
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6013
6013
  */
6014
- const oc=t=>class extends t{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new Dn(this,"header","h3",{initializer:t=>{this._headerNode=t}}),this.addController(this._headerController),this._messageController=new Dn(this,"","div",{multiple:!0,observe:!1,initializer:t=>{const e=document.createElement("div");e.style.display="contents";const i=`confirm-dialog-message-${On()}`;e.id=i,this.appendChild(e),e.appendChild(t),this._messageNodes=[...this._messageNodes,e]}}),this.addController(this._messageController),this._cancelController=new Dn(this,"cancel-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("cancel",t)}}),this.addController(this._cancelController),this._rejectController=new Dn(this,"reject-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("reject",t)}}),this.addController(this._rejectController),this._confirmController=new Dn(this,"confirm-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("confirm",t)}}),this.addController(this._confirmController)}_initOverlay(t){t.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),t.addEventListener("vaadin-overlay-open",(()=>this.__onDialogOpened())),t.addEventListener("vaadin-overlay-closed",(()=>this.__onDialogClosed())),t.setAttribute("role","alertdialog")}__onDialogOpened(){const t=this._overlayElement;this.__slottedNodes.forEach((e=>{t.appendChild(e)}));const e=t.querySelector('[slot="confirm-button"]');e&&e.focus()}__onDialogClosed(){this.__slottedNodes.forEach((t=>{this.appendChild(t)})),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(t,e,i){!t||!e||(void 0!==i?Da(t,"aria-describedby",{newId:i,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):e.forEach((e=>{Da(t,"aria-describedby",{newId:e.id})})),this.__oldAccessibleDescriptionRef=i)}__setupSlottedButton(t,e){const i=`_${t}Button`,r=`__${t}`;this[i]&&this[i]!==e&&this[i].remove(),e.addEventListener("click",this[r]),this[i]=e}__updateCancelButton(t,e,i,r){t&&(t===this._cancelController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i)),t.toggleAttribute("hidden",!r))}__updateConfirmButton(t,e,i){t&&t===this._confirmController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i))}__updateHeaderNode(t,e){t&&t===this._headerController.defaultNode&&(t.textContent=e)}__updateMessageNodes(t,e){if(t&&t.length>0){const i=t.find((t=>this._messageController.defaultNode&&t===this._messageController.defaultNode.parentElement));i&&(i.firstChild.textContent=e)}}__updateRejectButton(t,e,i,r){t&&(t===this._rejectController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i)),t.toggleAttribute("hidden",!r))}_escPressed(t){t.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(t){return t||"confirmation"}}
6014
+ const oc=t=>class extends t{static get properties(){return{accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this)}get __slottedNodes(){return[this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new Dn(this,"header","h3",{initializer:t=>{this._headerNode=t}}),this.addController(this._headerController),this._messageController=new Dn(this,"","div",{multiple:!0,observe:!1,initializer:t=>{const e=document.createElement("div");e.style.display="contents";const i=`confirm-dialog-message-${Rn()}`;e.id=i,this.appendChild(e),e.appendChild(t),this._messageNodes=[...this._messageNodes,e]}}),this.addController(this._messageController),this._cancelController=new Dn(this,"cancel-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("cancel",t)}}),this.addController(this._cancelController),this._rejectController=new Dn(this,"reject-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("reject",t)}}),this.addController(this._rejectController),this._confirmController=new Dn(this,"confirm-button","vaadin-button",{initializer:t=>{this.__setupSlottedButton("confirm",t)}}),this.addController(this._confirmController)}_initOverlay(t){t.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),t.addEventListener("vaadin-overlay-open",(()=>this.__onDialogOpened())),t.addEventListener("vaadin-overlay-closed",(()=>this.__onDialogClosed())),t.setAttribute("role","alertdialog")}__onDialogOpened(){const t=this._overlayElement;this.__slottedNodes.forEach((e=>{t.appendChild(e)}));const e=t.querySelector('[slot="confirm-button"]');e&&e.focus()}__onDialogClosed(){this.__slottedNodes.forEach((t=>{this.appendChild(t)})),this.dispatchEvent(new CustomEvent("closed"))}__accessibleDescriptionRefChanged(t,e,i){!t||!e||(void 0!==i?Da(t,"aria-describedby",{newId:i,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):e.forEach((e=>{Da(t,"aria-describedby",{newId:e.id})})),this.__oldAccessibleDescriptionRef=i)}__setupSlottedButton(t,e){const i=`_${t}Button`,r=`__${t}`;this[i]&&this[i]!==e&&this[i].remove(),e.addEventListener("click",this[r]),this[i]=e}__updateCancelButton(t,e,i,r){t&&(t===this._cancelController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i)),t.toggleAttribute("hidden",!r))}__updateConfirmButton(t,e,i){t&&t===this._confirmController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i))}__updateHeaderNode(t,e){t&&t===this._headerController.defaultNode&&(t.textContent=e)}__updateMessageNodes(t,e){if(t&&t.length>0){const i=t.find((t=>this._messageController.defaultNode&&t===this._messageController.defaultNode.parentElement));i&&(i.firstChild.textContent=e)}}__updateRejectButton(t,e,i,r){t&&(t===this._rejectController.defaultNode&&(t.textContent=e,t.setAttribute("theme",i)),t.toggleAttribute("hidden",!r))}_escPressed(t){t.defaultPrevented||this.__cancel()}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1}_getAriaLabel(t){return t||"confirmation"}}
6015
6015
  /**
6016
6016
  * @license
6017
6017
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
@@ -6043,7 +6043,7 @@ const oc=t=>class extends t{static get properties(){return{accessibleDescription
6043
6043
  <slot name="reject-button"></slot>
6044
6044
  <slot name="confirm-button"></slot>
6045
6045
  </div>
6046
- `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}hi(sc),Rr("vaadin-tab",_i`
6046
+ `}static get is(){return"vaadin-confirm-dialog"}ready(){super.ready(),this._overlayElement=this.$.dialog.$.overlay,this._initOverlay(this._overlayElement)}}hi(sc),Or("vaadin-tab",_i`
6047
6047
  :host {
6048
6048
  box-sizing: border-box;
6049
6049
  padding: 0.5rem 0.75rem;
@@ -6293,7 +6293,7 @@ const nc=t=>class extends(Pd(t)){ready(){super.ready(),this.setAttribute("role",
6293
6293
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6294
6294
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6295
6295
  */
6296
- Rr("vaadin-tab",_i`
6296
+ Or("vaadin-tab",_i`
6297
6297
  :host {
6298
6298
  display: block;
6299
6299
  }
@@ -6315,7 +6315,7 @@ Rr("vaadin-tab",_i`
6315
6315
  `,{moduleId:"vaadin-tab-styles"});class ac extends(xn(Gr(nc(za(Qs))))){static get template(){return Ys`
6316
6316
  <slot></slot>
6317
6317
  <slot name="tooltip"></slot>
6318
- `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new Nn(this),this.addController(this._tooltipController)}}hi(ac),Rr("vaadin-tabs",_i`
6318
+ `}static get is(){return"vaadin-tab"}ready(){super.ready(),this._tooltipController=new Nn(this),this.addController(this._tooltipController)}}hi(ac),Or("vaadin-tabs",_i`
6319
6319
  :host {
6320
6320
  -webkit-tap-highlight-color: transparent;
6321
6321
  }
@@ -6570,7 +6570,7 @@ const lc=t=>class extends(Nd(Vd(t))){static get properties(){return{orientation:
6570
6570
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6571
6571
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6572
6572
  */
6573
- Rr("vaadin-tabs",_i`
6573
+ Or("vaadin-tabs",_i`
6574
6574
  :host {
6575
6575
  display: flex;
6576
6576
  align-items: center;
@@ -6654,4 +6654,4 @@ Rr("vaadin-tabs",_i`
6654
6654
  </div>
6655
6655
 
6656
6656
  <div on-click="_scrollForward" part="forward-button" aria-hidden="true"></div>
6657
- `}static get is(){return"vaadin-tabs"}}hi(hc);const dc=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(t)},this.setStreamStyling=t=>{if(window.emMessageBus){const e=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(t,(t=>{e.innerHTML=t,this.clientStyling=t,this.host.shadowRoot.prepend(e)}))}},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)}))},this.handleClick=t=>{this.emitOnClick&&(t.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.noValidation=!1,this.clientStyling="",this.clientStylingUrl="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[],this.ignoreCountry=!1,this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.mbSource=void 0,this.limitStylingAppends=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}handleStylingUrlChange(t,e){t!==e&&this.setClientStylingURL()}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])"string"==typeof t[e][i]&&(s[e][i]=t[e][i])})),e(!0)}))})))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}renderInput(){var t;switch(null===(t=this.type)||void 0===t?void 0:t.toLowerCase()){case"text":return this.haspostalcodelookup&&"PostalCode"===this.name?i("postalcode-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,postalcodelength:this.postalcodelength,addresses:this.addresses,ignoreCountry:this.ignoreCountry}):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,haspostalcodelookup:this.haspostalcodelookup,"enable-south-african-mode":this.enableSouthAfricanMode});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,"enable-south-african-mode":this.enableSouthAfricanMode});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,hidePasswordComplexity:this.hidePasswordComplexity,"no-validation":this.noValidation,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"enable-south-african-mode":this.enableSouthAfricanMode});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});case"twofa":return i("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds,"enable-south-african-mode":this.enableSouthAfricanMode,"pin-attempts-exceeded":this.pinAttemptsExceeded,"mb-source":this.mbSource});default:return this.displayName&&""!==this.displayName.trim()?i("div",{class:"general-non-input",innerHTML:this.displayName}):null}}render(){return i(o,{key:"0474aad44033fe0c48473af7938e9ddb77b684e8",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}get host(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"]}}};dc.style=":host{display:block;height:100%}";const cc={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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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",requestTwofaError:"There was an error when sending the code",loadingMessage:"Please wait, loading...",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.",BadRequest_Duplicate_User:"User with same username already exists.",BadRequest:"The request is invalid, please check the API.",Unauthorized:"The player account number, e-mail address or password is incorrect",Forbidden_TooManyAttempts:"You have made too many invalid login attempts, your account has been blocked, please try again later.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",GmErr_BadRequest_ExpiredToken:"The token you are using is expired.",GmErr_BadRequest_INVALID_CODE:"The code you are using is invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"You have made too many attempts to validate your code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"You have made too many attempts to generate your code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"You have been blocked due to an invalid code.",GmErr_BadRequest_CODE_MISSING:"The token is missing for your reqest.",GmErr_BadRequest_TOKEN_NOT_FOUND:"The token is not found for your request.",GmErr_BadRequest_USER_NOT_REGISTERED:"The user is not register. Please register first.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"The phone number you are using is invalid.",GmErr_BadRequest_INVALID_USER_ID:"The user ID is invalid.",GmErr_UnexpectedException:"Something went wrong... Please try again.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error.",verifyButton:"Verify"},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",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"Hiba történt a kód elküldésekor",successMessage:"Sikeres regisztráció",loadingMessage:"Kérjük, várjon, betöltés folyamatban...",GmErr_BadRequest_Duplicate_User:"Egy ilyen információval rendelkező felhasználó már létezik.",GmErr_BadRequest_PasswordContainsUsername:"A jelszó nem lehet azonos a felhasználónévvel.",GmErr_BadRequest_PasswordContainsEmail:"A jelszó nem lehet azonos az e-mail címmel.",GmErr_BadRequest_Duplicate_PersonalId:"Már létezik egy regisztráció az Ön által megadott adatokkal, vagy helytelen formátumban adta meg az adatokat.",GmErr_Forbidden_UserAccount_NavExcluded:"A felhasználó NAV kizárt. A regisztrációt elutasították.",GmErr_BadRequest_ModelValidationFailed:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadInternalConfigs:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_Unauthorized:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_NotFound:"Valami hiba történt... Kérjük, próbálja újra.",BadRequest_Duplicate_User:"Már létezik egy felhasználó ugyanazzal a felhasználónévvel.",BadRequest:"A kérés érvénytelen, kérjük, ellenőrizze az API-t.",Unauthorized:"A játékos számlaszáma, e-mail címe vagy jelszava helytelen",Forbidden_TooManyAttempts:"Túl sok érvénytelen bejelentkezési kísérletet tett, fiókját zárolták, kérjük, próbálja újra később.",Forbidden_UserAccount_NotActive:"Úgy tűnik, még nem erősítette meg e-mail címét. A regisztráció befejezéséhez és fiókjához való hozzáféréshez kérjük, ellenőrizze e-mail fiókját egy megerősítő üzenetért. Ha nem kapta meg az e-mailt, kérjük, ellenőrizze a spam mappát is. Ha segítségre van szüksége, kérhet segítséget az ügyfélszolgálaton keresztül.",GmErr_BadRequest_ExpiredToken:"A használt token lejárt.",GmErr_BadRequest_INVALID_CODE:"A használt kód érvénytelen.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód érvényesítésére.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód generálására.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Érvénytelen kód miatt zárolták.",GmErr_BadRequest_CODE_MISSING:"A kéréshez hiányzik a token.",GmErr_BadRequest_TOKEN_NOT_FOUND:"A kéréshez nem található token.",GmErr_BadRequest_USER_NOT_REGISTERED:"A felhasználó nincs regisztrálva. Kérjük, regisztráljon először.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"A használt telefonszám érvénytelen.",GmErr_BadRequest_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_UnexpectedException:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF válasza megerősíti, hogy a játékos kiskorú vagy nem horvát lakos.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF nem ad választ.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: Belső hiba."},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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"Došlo je do pogreške prilikom slanja koda",successMessage:"Register successful",loadingMessage:"Molimo pričekajte, učitavanje...",GmErr_BadRequest_Duplicate_User:"Korisnik s ovim informacijama već postoji.",GmErr_BadRequest_PasswordContainsUsername:"Lozinka ne može biti ista kao korisničko ime.",GmErr_BadRequest_PasswordContainsEmail:"Lozinka ne može biti ista kao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Već postoji registracija s podacima koje ste unijeli ili ste unijeli podatke u pogrešnom formatu.",GmErr_Forbidden_UserAccount_NavExcluded:"Korisnik je NAV isključen. Registracija je odbijena.",GmErr_BadRequest_ModelValidationFailed:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_BadInternalConfigs:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_Unauthorized:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_NotFound:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",BadRequest_Duplicate_User:"Korisnik s istim korisničkim imenom već postoji.",BadRequest:"Zahtjev je nevažeći, molimo provjerite API.",Unauthorized:"Broj računa igrača, e-mail adresa ili lozinka su netočni",Forbidden_TooManyAttempts:"Napravili ste previše nevažećih pokušaja prijave, vaš račun je blokiran, molimo pokušajte ponovno kasnije.",Forbidden_UserAccount_NotActive:"Čini se da još niste potvrdili svoju e-mail adresu. Da biste dovršili registraciju i pristupili svom računu, provjerite svoju e-mail poštu za poruku s potvrdom. Ako niste primili e-mail, provjerite i mapu neželjene pošte. Ako trebate pomoć, možete zatražiti pomoć putem korisničke službe.",GmErr_BadRequest_ExpiredToken:"Token koji koristite je istekao.",GmErr_BadRequest_INVALID_CODE:"Kod koji koristite je nevažeći.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Napravili ste previše pokušaja za validaciju koda.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Napravili ste previše pokušaja za generiranje koda.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Blokirani ste zbog nevažećeg koda.",GmErr_BadRequest_CODE_MISSING:"Token nedostaje za vaš zahtjev.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Token nije pronađen za vaš zahtjev.",GmErr_BadRequest_USER_NOT_REGISTERED:"Korisnik nije registriran. Molimo registrirajte se prvo.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Broj telefona koji koristite je nevažeći.",GmErr_BadRequest_INVALID_USER_ID:"Korisnički ID je nevažeći.",GmErr_UnexpectedException:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Korisnički dokument je nevažeći.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Odgovor MoF-a potvrđuje da je igrač maloljetan ili nije stanovnik Hrvatske.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: MoF ne daje odgovor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Interna greška."},"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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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",requestTwofaError:"Ocorreu um erro ao enviar o código",successMessage:"Registro bem-sucedido",loadingMessage:"Por favor, aguarde, carregando...",GmErr_BadRequest_Duplicate_User:"Um usuário com essas informações já existe.",GmErr_BadRequest_PasswordContainsUsername:"A senha não pode ser igual ao nome de usuário.",GmErr_BadRequest_PasswordContainsEmail:"A senha não pode ser igual ao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Já existe um registro com os dados que você inseriu ou você inseriu seus dados em um formato incorreto.",GmErr_Forbidden_UserAccount_NavExcluded:"Usuário está NAV Excluído. Registro foi negado.",GmErr_BadRequest_ModelValidationFailed:"Algo deu errado... Por favor, tente novamente.",GmErr_BadInternalConfigs:"Algo deu errado... Por favor, tente novamente.",GmErr_Unauthorized:"Algo deu errado... Por favor, tente novamente.",GmErr_NotFound:"Algo deu errado... Por favor, tente novamente.",BadRequest_Duplicate_User:"Usuário com o mesmo nome de usuário já existe.",BadRequest:"A solicitação é inválida, por favor, verifique a API.",Unauthorized:"O número da conta do jogador, endereço de e-mail ou senha estão incorretos",Forbidden_TooManyAttempts:"Você fez muitas tentativas de login inválidas, sua conta foi bloqueada, por favor, tente novamente mais tarde.",Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu registro e acessar sua conta, verifique sua caixa de entrada de e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar ajuda através do serviço de atendimento ao cliente.",GmErr_BadRequest_ExpiredToken:"O token que você está usando está expirado.",GmErr_BadRequest_INVALID_CODE:"O código que você está usando é inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Você fez muitas tentativas de validar seu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Você fez muitas tentativas de gerar seu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Você foi bloqueado devido a um código inválido.",GmErr_BadRequest_CODE_MISSING:"O token está faltando para sua solicitação.",GmErr_BadRequest_TOKEN_NOT_FOUND:"O token não foi encontrado para sua solicitação.",GmErr_BadRequest_USER_NOT_REGISTERED:"O usuário não está registrado. Por favor, registre-se primeiro.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"O número de telefone que você está usando é inválido.",GmErr_BadRequest_INVALID_USER_ID:"O ID do usuário é inválido.",GmErr_UnexpectedException:"Algo deu errado... Por favor, tente novamente.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno."},"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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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",requestTwofaError:"Se produjo un error al enviar el código",successMessage:"Registro exitoso",loadingMessage:"Por favor, espera, cargando...",GmErr_BadRequest_Duplicate_User:"Ya existe un usuario con esta información.",GmErr_BadRequest_PasswordContainsUsername:"La contraseña no puede ser la misma que el nombre de usuario.",GmErr_BadRequest_PasswordContainsEmail:"La contraseña no puede ser la misma que el correo electrónico.",GmErr_BadRequest_Duplicate_PersonalId:"Ya existe un registro con los datos que ingresaste o ingresaste tus datos en un formato incorrecto.",GmErr_Forbidden_UserAccount_NavExcluded:"El usuario está excluido de NAV. El registro fue denegado.",GmErr_BadRequest_ModelValidationFailed:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_BadInternalConfigs:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_Unauthorized:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_NotFound:"Algo salió mal... Por favor, inténtalo de nuevo.",BadRequest_Duplicate_User:"Ya existe un usuario con el mismo nombre de usuario.",BadRequest:"La solicitud es inválida, por favor verifica la API.",Unauthorized:"El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos",Forbidden_TooManyAttempts:"Has realizado demasiados intentos de inicio de sesión inválidos, tu cuenta ha sido bloqueada, por favor inténtalo de nuevo más tarde.",Forbidden_UserAccount_NotActive:"Parece que aún no has confirmado tu dirección de correo electrónico. Para completar tu registro y acceder a tu cuenta, verifica tu bandeja de entrada de correo electrónico para un mensaje de confirmación. Si no has recibido el correo electrónico, verifica también tu carpeta de spam. Si necesitas ayuda, puedes solicitar ayuda a través del servicio de atención al cliente.",GmErr_BadRequest_ExpiredToken:"El token que estás utilizando ha expirado.",GmErr_BadRequest_INVALID_CODE:"El código que estás utilizando es inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Has realizado demasiados intentos de validar tu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Has realizado demasiados intentos de generar tu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Has sido bloqueado debido a un código inválido.",GmErr_BadRequest_CODE_MISSING:"Falta el token para tu solicitud.",GmErr_BadRequest_TOKEN_NOT_FOUND:"No se encontró el token para tu solicitud.",GmErr_BadRequest_USER_NOT_REGISTERED:"El usuario no está registrado. Por favor, regístrate primero.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"El número de teléfono que estás utilizando es inválido.",GmErr_BadRequest_INVALID_USER_ID:"El ID de usuario es inválido.",GmErr_UnexpectedException:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."},tr:{GmErr_AMOUNT_INVALID:"Belirtilen miktar geçersiz.",GmErr_REGISTER_OVERAGE:"Kayıt izin verilen sınırı aştı.",GmErr_REGISTER_UNDERAGE:"Kayıt izin verilen sınırın altında.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Çok fazla başarısız deneme nedeniyle kullanıcı kimlik doğrulaması başarısız oldu.",GmErr_USER_ACCOUNT_BLOCKED:"Kullanıcı hesabı engellendi.",GmErr_USER_NOT_VERIFIED:"Kullanıcı doğrulanmadı.",GmErr_USER_NOT_FOUND:"Sağlanan bilgilerle kullanıcı bulunamadı.",GmErr_USER_ID_INVALID:"Sağlanan kullanıcı kimliği geçersiz.",GmErr_USER_AUTH_FAILED:"Kullanıcı kimlik doğrulaması başarısız oldu.",GmErr_USER_DUPLICATED:"Kullanıcı sistemde zaten mevcut.",GmErr_USER_NOT_ACTIVATED:"Kullanıcı hesabı etkinleştirilmedi.",GmErr_PASSWORD_CONTAINS_EMAIL:"Parola e-posta adresini içeremez.",GmErr_PASSWORD_CONTAINS_USERNAME:"Parola kullanıcı adını içeremez.",GmErr_PASSWORD_CONTAINS_SPACES:"Parola boşluk içeremez.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_USER_4TS_CHECK_EXISTS:"Kullanıcı 4TS kontrolü zaten mevcut.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Kullanıcı kayıttan hariç tutuldu.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Kullanıcı girişten hariç tutuldu.",GmErr_USERNAME_REQUIRED:"Bir kullanıcı adı gereklidir.",GmErr_USER_EMAIL_NOT_VERIFIED:"Kullanıcının e-posta adresi doğrulanmadı.",GmErr_EMAIL_ALREADY_EXISTS:"Aynı e-posta ile kullanıcı zaten mevcut.",GmErr_EMAIL_REQUIRED:"Bir e-posta adresi gereklidir.",GmErr_USERNAME_ALREADY_EXISTS:"Kullanıcı adı zaten alınmış.",GmErr_DUPLICATE_PERSONAL_ID:"Çift kişisel kimlik bulundu.",GmErr_INVALID_USER_DOCUMENT:"Kullanıcı belgesi geçersiz.",GmErr_INVALID_CODE:"Sağlanan kod geçersiz.",GmErr_EXPIRED_TOKEN:"Token süresi dolmuş.",GmErr_ATTEMPTS_EXCEEDED:"Maksimum deneme sayısı aşıldı.",GmErr_BLOCK_USER_INCORRECT_CODE:"Yanlış kod nedeniyle kullanıcı engellendi.",GmErr_TOKEN_NOT_FOUND:"Token bulunamadı.",GmErr_INVALID_PHONE_NUMBER:"Sağlanan telefon numarası geçersiz.",GmErr_CODE_MISSING:"Kod eksik.",GmErr_UNREGISTERED_USER:"Kullanıcı kayıtlı değil.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Kod oluşturma denemeleri maksimuma ulaştı.",GmErr_UNEXPECTED_EXCEPTION:"Beklenmeyen bir istisna oluştu.",GmErr_INVALID_USER_ID:"Sağlanan kullanıcı kimliği geçersiz.",GmErr_NOT_ALLOWED_EXCEPTION:"Bu işlem izin verilmiyor.",GmErr_CAN_NOT_FIND_ROLE:"Belirtilen rol bulunamıyor.",GmErr_NO_SESSION_PROVIDED:"Oturum sağlanmadı.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Bu kullanıcı için aktif oturum bulunamadı.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Kullanıcı zaten anonimleştirilmiş.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Atanacak bir rol ayarlanmadı.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Sağlanan oturum kullanıcıya ait değil.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Sağlanan oturum mevcut değil.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Rol zaten kullanıcıya atanmış.",GmErr_ASSIGN_USER_ROLE_FAILED:"Kullanıcıya rol atama başarısız oldu.",GmErr_BadRequest_1000:"Kişisel kimlik numarası ile ilgili bir sorun var.",CountryRestricted:"Maalesef, oyun oynayamayacağımız bir ülkeden kayıt yapmaya çalışıyorsunuz. Bu nedenle kaydınızı işleyemiyoruz.",nextButton:"İleri",backButton:"Geri",doneButton:"Tamam",generalError:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",requestTwofaError:"Kod gönderilirken bir hata oluştu",successMessage:"Kayıt başarılı",loadingMessage:"Lütfen bekleyin, yükleniyor...",GmErr_BadRequest_Duplicate_User:"Bu bilgilerle bir kullanıcı zaten mevcut.",GmErr_BadRequest_PasswordContainsUsername:"Parola kullanıcı adı ile aynı olamaz.",GmErr_BadRequest_PasswordContainsEmail:"Parola e-posta ile aynı olamaz.",GmErr_BadRequest_Duplicate_PersonalId:"Girdiğiniz verilerle zaten bir kayıt var veya verilerinizi yanlış formatta girdiniz.",GmErr_Forbidden_UserAccount_NavExcluded:"Kullanıcı NAV hariç tutuldu. Kayıt reddedildi.",GmErr_BadRequest_ModelValidationFailed:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_BadInternalConfigs:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_Unauthorized:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_NotFound:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",BadRequest_Duplicate_User:"Aynı kullanıcı adı ile kullanıcı zaten mevcut.",BadRequest:"İstek geçersiz, lütfen API'yi kontrol edin.",Unauthorized:"Oyuncu hesap numarası, e-posta adresi veya parola yanlış",Forbidden_TooManyAttempts:"Çok fazla geçersiz giriş denemesi yaptınız, hesabınız bloke edildi, lütfen daha sonra tekrar deneyin.",Forbidden_UserAccount_NotActive:"E-posta adresinizi henüz doğrulamadığınız görünüyor. Kaydınızı tamamlamak ve hesabınıza erişmek için e-posta gelen kutunuzu bir onay mesajı için kontrol edin. E-postayı almadıysanız, spam klasörünüzü de kontrol edin. Yardıma ihtiyacınız varsa, müşteri hizmetleri aracılığıyla yardım isteyebilirsiniz.",GmErr_BadRequest_ExpiredToken:"Kullandığınız token süresi dolmuş.",GmErr_BadRequest_INVALID_CODE:"Kullandığınız kod geçersiz.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Kodunuzu doğrulamak için çok fazla deneme yaptınız.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Kodunuzu oluşturmak için çok fazla deneme yaptınız.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Geçersiz kod nedeniyle engellendiniz.",GmErr_BadRequest_CODE_MISSING:"İsteğiniz için token eksik.",GmErr_BadRequest_TOKEN_NOT_FOUND:"İsteğiniz için token bulunamadı.",GmErr_BadRequest_USER_NOT_REGISTERED:"Kullanıcı kayıtlı değil. Lütfen önce kayıt olun.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Kullandığınız telefon numarası geçersiz.",GmErr_BadRequest_INVALID_USER_ID:"Kullanıcı kimliği geçersiz.",GmErr_UnexpectedException:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Kullanıcı belgesi geçersiz.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıtı, oyuncunun reşit olmadığını veya Hırvatistan sakini olmadığını doğruluyor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıt vermiyor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata."},"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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"There was an error when sending the code",successMessage:"Register successful",loadingMessage:"Please wait, loading...",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.",BadRequest_Duplicate_User:"User with same username already exists.",BadRequest:"The request is invalid, please check the API.",Unauthorized:"The player account number, e-mail address or password is incorrect",Forbidden_TooManyAttempts:"You have made too many invalid login attempts, your account has been blocked, please try again later.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",GmErr_BadRequest_ExpiredToken:"The token you are using is expired.",GmErr_BadRequest_INVALID_CODE:"The code you are using is invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"You have made too many attempts to validate your code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"You have made too many attempts to generate your code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"You have been blocked due to an invalid code.",GmErr_BadRequest_CODE_MISSING:"The token is missing for your request.",GmErr_BadRequest_TOKEN_NOT_FOUND:"The token is not found for your request.",GmErr_BadRequest_USER_NOT_REGISTERED:"The user is not registered. Please register first.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"The phone number you are using is invalid.",GmErr_BadRequest_INVALID_USER_ID:"The user ID is invalid.",GmErr_UnexpectedException:"Something went wrong... Please try again.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error."},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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"A apărut o eroare la trimiterea codului",successMessage:"Înregistrare reușită",loadingMessage:"Vă rugăm așteptați, se încarcă...",GmErr_BadRequest_Duplicate_User:"Un utilizator cu aceste informații există deja.",GmErr_BadRequest_PasswordContainsUsername:"Parola nu poate fi aceeași cu numele de utilizator.",GmErr_BadRequest_PasswordContainsEmail:"Parola nu poate fi aceeași cu e-mailul.",GmErr_BadRequest_Duplicate_PersonalId:"Există deja o înregistrare cu datele pe care le-ați introdus sau ați introdus datele într-un format incorect.",GmErr_Forbidden_UserAccount_NavExcluded:"Utilizatorul este exclus NAV. Înregistrarea a fost refuzată.",GmErr_BadRequest_ModelValidationFailed:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_BadInternalConfigs:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_Unauthorized:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_NotFound:"Ceva a mers prost... Vă rugăm să încercați din nou.",BadRequest_Duplicate_User:"Există deja un utilizator cu același nume de utilizator.",BadRequest:"Cererea este invalidă, vă rugăm să verificați API-ul.",Unauthorized:"Numărul contului jucătorului, adresa de e-mail sau parola sunt incorecte",Forbidden_TooManyAttempts:"Ați făcut prea multe încercări de conectare invalide, contul dvs. a fost blocat, vă rugăm să încercați din nou mai târziu.",Forbidden_UserAccount_NotActive:"Se pare că nu v-ați confirmat încă adresa de e-mail. Pentru a finaliza înregistrarea și a accesa contul dvs., verificați căsuța de e-mail pentru un mesaj de confirmare. Dacă nu ați primit e-mailul, verificați și folderul de spam. Dacă aveți nevoie de asistență, puteți solicita ajutor prin serviciul de asistență pentru clienți.",GmErr_BadRequest_ExpiredToken:"Tokenul pe care îl utilizați este expirat.",GmErr_BadRequest_INVALID_CODE:"Codul pe care îl utilizați este invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Ați făcut prea multe încercări de validare a codului.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Ați făcut prea multe încercări de generare a codului.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Ați fost blocat din cauza unui cod invalid.",GmErr_BadRequest_CODE_MISSING:"Tokenul lipsește pentru solicitarea dvs.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Tokenul nu a fost găsit pentru solicitarea dvs.",GmErr_BadRequest_USER_NOT_REGISTERED:"Utilizatorul nu este înregistrat. Vă rugăm să vă înregistrați mai întâi.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Numărul de telefon pe care îl utilizați este invalid.",GmErr_BadRequest_INVALID_USER_ID:"ID-ul utilizatorului este invalid.",GmErr_UnexpectedException:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Documentul utilizatorului este invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Răspunsul MoF confirmă că jucătorul este minor sau nu este rezident croat.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: MoF nu returnează un răspuns.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Eroare internă."},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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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",requestTwofaError:"Une erreur est survenue lors de l'envoi du code",loadingMessage:"Veuillez patienter, chargement...",GmErr_BadRequest_Duplicate_User:"Un utilisateur avec ces informations existe déjà.",GmErr_BadRequest_PasswordContainsUsername:"Le mot de passe ne peut pas être le même que le nom d'utilisateur.",GmErr_BadRequest_PasswordContainsEmail:"Le mot de passe ne peut pas être le même que l'e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Il existe déjà une inscription avec les données que vous avez saisies ou vous avez saisi vos données dans un format incorrect.",GmErr_Forbidden_UserAccount_NavExcluded:"L'utilisateur est exclu NAV. L'inscription a été refusée.",GmErr_BadRequest_ModelValidationFailed:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_BadInternalConfigs:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_Unauthorized:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_NotFound:"Quelque chose a mal tourné... Veuillez réessayer.",BadRequest_Duplicate_User:"Un utilisateur avec le même nom d'utilisateur existe déjà.",BadRequest:"La demande est invalide, veuillez vérifier l'API.",Unauthorized:"Le numéro de compte du joueur, l'adresse e-mail ou le mot de passe est incorrect",Forbidden_TooManyAttempts:"Vous avez fait trop de tentatives de connexion invalides, votre compte a été bloqué, veuillez réessayer plus tard.",Forbidden_UserAccount_NotActive:"Il semble que vous n'avez pas encore confirmé votre adresse e-mail. Pour compléter votre inscription et accéder à votre compte, veuillez vérifier votre boîte de réception pour un message de confirmation. Si vous n'avez pas reçu l'e-mail, veuillez également vérifier votre dossier de spam. Si vous avez besoin d'aide, vous pouvez demander de l'aide via le service client.",GmErr_BadRequest_ExpiredToken:"Le jeton que vous utilisez est expiré.",GmErr_BadRequest_INVALID_CODE:"Le code que vous utilisez est invalide.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Vous avez fait trop de tentatives pour valider votre code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Vous avez fait trop de tentatives pour générer votre code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Vous avez été bloqué en raison d'un code invalide.",GmErr_BadRequest_CODE_MISSING:"Le jeton est manquant pour votre demande.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Le jeton n'a pas été trouvé pour votre demande.",GmErr_BadRequest_USER_NOT_REGISTERED:"L'utilisateur n'est pas enregistré. Veuillez vous inscrire d'abord.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Le numéro de téléphone que vous utilisez est invalide.",GmErr_BadRequest_INVALID_USER_ID:"L'ID utilisateur est invalide.",GmErr_UnexpectedException:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Le document utilisateur est invalide.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : La réponse du MoF confirme que le joueur est mineur ou n'est pas résident croate.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Le MoF ne renvoie pas de réponse.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Erreur interne."},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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"Se produjo un error al enviar el código",successMessage:"Registro exitoso",loadingMessage:"Por favor, espera, cargando...",GmErr_BadRequest_Duplicate_User:"Ya existe un usuario con esta información.",GmErr_BadRequest_PasswordContainsUsername:"La contraseña no puede ser la misma que el nombre de usuario.",GmErr_BadRequest_PasswordContainsEmail:"La contraseña no puede ser la misma que el correo electrónico.",GmErr_BadRequest_Duplicate_PersonalId:"Ya existe un registro con los datos que ingresó o ingresó sus datos en un formato incorrecto.",GmErr_Forbidden_UserAccount_NavExcluded:"El usuario está excluido de NAV. El registro fue denegado.",GmErr_BadRequest_ModelValidationFailed:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_BadInternalConfigs:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_Unauthorized:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_NotFound:"Algo salió mal... Por favor, inténtelo de nuevo.",BadRequest_Duplicate_User:"Ya existe un usuario con el mismo nombre de usuario.",BadRequest:"La solicitud es inválida, por favor verifique la API.",Unauthorized:"El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos",Forbidden_TooManyAttempts:"Ha realizado demasiados intentos de inicio de sesión inválidos, su cuenta ha sido bloqueada, por favor intente de nuevo más tarde.",Forbidden_UserAccount_NotActive:"Parece que aún no ha confirmado su dirección de correo electrónico. Para completar su registro y acceder a su cuenta, verifique su bandeja de entrada de correo electrónico para un mensaje de confirmación. Si no ha recibido el correo electrónico, verifique también su carpeta de spam. Si necesita ayuda, puede solicitar ayuda a través del servicio de atención al cliente.",GmErr_BadRequest_ExpiredToken:"El token que está utilizando ha expirado.",GmErr_BadRequest_INVALID_CODE:"El código que está utilizando es inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Ha realizado demasiados intentos de validar su código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Ha realizado demasiados intentos de generar su código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Ha sido bloqueado debido a un código inválido.",GmErr_BadRequest_CODE_MISSING:"Falta el token para su solicitud.",GmErr_BadRequest_TOKEN_NOT_FOUND:"No se encontró el token para su solicitud.",GmErr_BadRequest_USER_NOT_REGISTERED:"El usuario no está registrado. Por favor, regístrese primero.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"El número de teléfono que está utilizando es inválido.",GmErr_BadRequest_INVALID_USER_ID:"El ID de usuario es inválido.",GmErr_UnexpectedException:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."},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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"Ocorreu um erro ao enviar o código",successMessage:"Registro bem-sucedido",loadingMessage:"Por favor, aguarde, a carregar...",GmErr_BadRequest_Duplicate_User:"Um usuário com essas informações já existe.",GmErr_BadRequest_PasswordContainsUsername:"A senha não pode ser igual ao nome de usuário.",GmErr_BadRequest_PasswordContainsEmail:"A senha não pode ser igual ao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Já existe um registro com os dados que você inseriu ou você inseriu seus dados em um formato incorreto.",GmErr_Forbidden_UserAccount_NavExcluded:"Usuário está NAV Excluído. Registro foi negado.",GmErr_BadRequest_ModelValidationFailed:"Algo deu errado... Por favor, tente novamente.",GmErr_BadInternalConfigs:"Algo deu errado... Por favor, tente novamente.",GmErr_Unauthorized:"Algo deu errado... Por favor, tente novamente.",GmErr_NotFound:"Algo deu errado... Por favor, tente novamente.",BadRequest_Duplicate_User:"Usuário com o mesmo nome de usuário já existe.",BadRequest:"A solicitação é inválida, por favor, verifique a API.",Unauthorized:"O número da conta do jogador, endereço de e-mail ou senha estão incorretos",Forbidden_TooManyAttempts:"Você fez muitas tentativas de login inválidas, sua conta foi bloqueada, por favor, tente novamente mais tarde.",Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu registro e acessar sua conta, verifique sua caixa de entrada de e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar ajuda através do serviço de atendimento ao cliente.",GmErr_BadRequest_ExpiredToken:"O token que você está usando está expirado.",GmErr_BadRequest_INVALID_CODE:"O código que você está usando é inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Você fez muitas tentativas de validar seu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Você fez muitas tentativas de gerar seu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Você foi bloqueado devido a um código inválido.",GmErr_BadRequest_CODE_MISSING:"O token está faltando para sua solicitação.",GmErr_BadRequest_TOKEN_NOT_FOUND:"O token não foi encontrado para sua solicitação.",GmErr_BadRequest_USER_NOT_REGISTERED:"O usuário não está registrado. Por favor, registre-se primeiro.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"O número de telefone que você está usando é inválido.",GmErr_BadRequest_INVALID_USER_ID:"O ID do usuário é inválido.",GmErr_UnexpectedException:"Algo deu errado... Por favor, tente novamente.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno."},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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"Beim Senden des Codes ist ein Fehler aufgetreten",successMessage:"Registrierung erfolgreich",loadingMessage:"Bitte warten, wird geladen...",GmErr_BadRequest_Duplicate_User:"Ein Benutzer mit diesen Informationen existiert bereits.",GmErr_BadRequest_PasswordContainsUsername:"Das Passwort darf nicht mit dem Benutzernamen übereinstimmen.",GmErr_BadRequest_PasswordContainsEmail:"Das Passwort darf nicht mit der E-Mail-Adresse übereinstimmen.",GmErr_BadRequest_Duplicate_PersonalId:"Es gibt bereits eine Registrierung mit den eingegebenen Daten oder Sie haben Ihre Daten in einem falschen Format eingegeben.",GmErr_Forbidden_UserAccount_NavExcluded:"Benutzer ist NAV ausgeschlossen. Registrierung wurde abgelehnt.",GmErr_BadRequest_ModelValidationFailed:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_BadInternalConfigs:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_Unauthorized:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_NotFound:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",BadRequest_Duplicate_User:"Ein Benutzer mit demselben Benutzernamen existiert bereits.",BadRequest:"Die Anfrage ist ungültig, bitte überprüfen Sie die API.",Unauthorized:"Die Kontonummer des Spielers, die E-Mail-Adresse oder das Passwort ist falsch",Forbidden_TooManyAttempts:"Sie haben zu viele ungültige Anmeldeversuche unternommen, Ihr Konto wurde gesperrt, bitte versuchen Sie es später erneut.",Forbidden_UserAccount_NotActive:"Es scheint, dass Sie Ihre E-Mail-Adresse noch nicht bestätigt haben. Um Ihre Registrierung abzuschließen und auf Ihr Konto zuzugreifen, überprüfen Sie bitte Ihr E-Mail-Postfach auf eine Bestätigungsnachricht. Wenn Sie die E-Mail nicht erhalten haben, überprüfen Sie bitte auch Ihren Spam-Ordner. Wenn Sie Hilfe benötigen, können Sie über den Kundenservice Hilfe anfordern.",GmErr_BadRequest_ExpiredToken:"Das von Ihnen verwendete Token ist abgelaufen.",GmErr_BadRequest_INVALID_CODE:"Der von Ihnen verwendete Code ist ungültig.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Sie haben zu viele Versuche unternommen, Ihren Code zu validieren.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Sie haben zu viele Versuche unternommen, Ihren Code zu generieren.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Sie wurden aufgrund eines ungültigen Codes gesperrt.",GmErr_BadRequest_CODE_MISSING:"Das Token fehlt für Ihre Anfrage.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Das Token wurde für Ihre Anfrage nicht gefunden.",GmErr_BadRequest_USER_NOT_REGISTERED:"Der Benutzer ist nicht registriert. Bitte registrieren Sie sich zuerst.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Die von Ihnen verwendete Telefonnummer ist ungültig.",GmErr_BadRequest_INVALID_USER_ID:"Die Benutzer-ID ist ungültig.",GmErr_UnexpectedException:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Das Benutzerdokument ist ungültig.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Die Antwort des MoF bestätigt, dass der Spieler minderjährig ist oder kein kroatischer Einwohner ist.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Das MoF gibt keine Antwort.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Interner Fehler."}},uc="DocumentNumber",mc="DocumentType",pc="Passport",vc="SouthAfricanID",_c="Mobile",fc=/\s+/g,gc=/-/g,bc=(t,e,i)=>{let r=cc[cc[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},Ec=(t,e={})=>{const i=new CustomEvent("track-custom-event",{detail:{type:t,data:e},bubbles:!0,composed:!0});document.dispatchEvent(i)};var yc={},wc={};!function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=yc;function i(t){e.append_styles(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 r(t){let i;return{c(){i=e.element("div"),i.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(r,o){e.insert(r,i,o),t[4](i)},p:e.noop,i:e.noop,o:e.noop,d(r){r&&e.detach(i),t[4](null)}}}function o(t,i,r){let o,{clientstyling:s=""}=i,{clientstylingurl:n=""}=i,{mbsource:a}=i;return e.onMount((()=>()=>{})),t.$$set=t=>{"clientstyling"in t&&r(1,s=t.clientstyling),"clientstylingurl"in t&&r(2,n=t.clientstylingurl),"mbsource"in t&&r(3,a=t.mbsource)},t.$$.update=()=>{3&t.$$.dirty&&s&&o&&e.setClientStyling(o,s),5&t.$$.dirty&&n&&o&&e.setClientStylingURL(o,n),9&t.$$.dirty&&a&&o&&e.setStreamStyling(o,`${a}.Style`,void 0)},[o,s,n,a,function(t){e.binding_callbacks[t?"unshift":"push"]((()=>{o=t,r(0,o)}))}]}class s extends e.SvelteComponent{constructor(t){super(),e.init(this,t,o,r,e.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},i)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(s,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0),t.default=s}(wc);var kc=Object.defineProperty,xc=Object.defineProperties,Sc=Object.getOwnPropertyDescriptors,Ac=Object.getOwnPropertySymbols,Cc=Object.prototype.hasOwnProperty,Ic=Object.prototype.propertyIsEnumerable,Tc=(t,e,i)=>e in t?kc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Rc=(t,e)=>{for(var i in e||(e={}))Cc.call(e,i)&&Tc(t,i,e[i]);if(Ac)for(var i of Ac(e))Ic.call(e,i)&&Tc(t,i,e[i]);return t},Oc=(t,e)=>xc(t,Sc(e)),Dc=(t,e,i)=>(Tc(t,"symbol"!=typeof e?e+"":e,i),i),Nc=(t,e,i)=>new Promise(((r,o)=>{var s=t=>{try{a(i.next(t))}catch(t){o(t)}},n=t=>{try{a(i.throw(t))}catch(t){o(t)}},a=t=>t.done?r(t.value):Promise.resolve(t.value).then(s,n);a((i=i.apply(t,e)).next())}));function zc(){}function Gc(t){return t()}function Mc(){return Object.create(null)}function Bc(t){t.forEach(Gc)}function Uc(t){return"function"==typeof t}function Pc(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function Lc(t,...e){if(null==t){for(const t of e)t(void 0);return zc}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function jc(t,e){t.appendChild(e)}function Fc(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=$c("style");t.id=e,t.textContent=i,function(t,e){jc(t.head||t,e)}(r,t)}}function Vc(t,e,i){t.insertBefore(e,i||null)}function Hc(t){t.parentNode&&t.parentNode.removeChild(t)}function qc(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function $c(t){return document.createElement(t)}function Xc(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Kc(t){return document.createTextNode(t)}function Wc(){return Kc(" ")}function Yc(t,e,i,r){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)}function Zc(t,e,i){null==i?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function Qc(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:Zc(t,e,i)}function Jc(t,e){t.data!==(e=""+e)&&(t.data=e)}class tu{constructor(t=!1){Dc(this,"is_svg",!1),Dc(this,"e"),Dc(this,"n"),Dc(this,"t"),Dc(this,"a"),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?Xc(e.nodeName):$c(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)Vc(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(Hc)}}let eu;function iu(t){eu=t}function ru(t){(function(){if(!eu)throw new Error("Function called outside component initialization");return eu})().$$.on_mount.push(t)}const ou=[],su=[];let nu=[];const au=[],lu=Promise.resolve();let hu=!1;function du(t){nu.push(t)}const cu=new Set;let uu=0;function mu(){if(0!==uu)return;const t=eu;do{try{for(;uu<ou.length;){const t=ou[uu];uu++,iu(t),pu(t.$$)}}catch(t){throw ou.length=0,uu=0,t}for(iu(null),ou.length=0,uu=0;su.length;)su.pop()();for(let t=0;t<nu.length;t+=1){const e=nu[t];cu.has(e)||(cu.add(e),e())}nu.length=0}while(ou.length);for(;au.length;)au.pop()();hu=!1,cu.clear(),iu(t)}function pu(t){if(null!==t.fragment){t.update(),Bc(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(du)}}const vu=new Set;function _u(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function fu(t,e,i,r,o,s,n=null,a=[-1]){const l=eu;iu(t);const h=t.$$={fragment:null,ctx:[],props:s,update:zc,not_equal:o,bound:Mc(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Mc(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};n&&n(h.root);let d=!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),d&&function(t,e){-1===t.$$.dirty[0]&&(ou.push(t),hu||(hu=!0,lu.then(mu)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),i})):[],h.update(),d=!0,Bc(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(Hc)}else h.fragment&&h.fragment.c();e.intro&&function(t){t&&t.i&&(vu.delete(t),t.i(void 0))}(t.$$.fragment),function(t,e,i){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,i),du((()=>{const e=t.$$.on_mount.map(Gc).filter(Uc);t.$$.on_destroy?t.$$.on_destroy.push(...e):Bc(e),t.$$.on_mount=[]})),o.forEach(du)}(t,e.target,e.anchor),mu()}iu(l)}let gu;function bu(t,e,i,r){var o;const s=null==(o=i[t])?void 0:o.type;if(e="Boolean"===s&&"boolean"!=typeof e?null!=e:e,!r||!i[t])return e;if("toAttribute"===r)switch(s){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}function Eu(t,e,i,r,o){let s=class extends gu{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){var r;i=bu(t,i,e),this.$$d[t]=i,null==(r=this.$$c)||r.$set({[t]:i})}})})),r.forEach((t=>{Object.defineProperty(s.prototype,t,{get(){var e;return null==(e=this.$$c)?void 0:e[t]}})})),t.element=s,s}"function"==typeof HTMLElement&&(gu=class extends HTMLElement{constructor(t,e,i){super(),Dc(this,"$$ctor"),Dc(this,"$$s"),Dc(this,"$$c"),Dc(this,"$$cn",!1),Dc(this,"$$d",{}),Dc(this,"$$r",!1),Dc(this,"$$p_d",{}),Dc(this,"$$l",{}),Dc(this,"$$l_u",new Map),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))}}connectedCallback(){return Nc(this,null,(function*(){if(this.$$cn=!0,!this.$$c){let t=function(t){return()=>{let e;return{c:function(){e=$c("slot"),"default"!==t&&Zc(e,"name",t)},m:function(t,i){Vc(t,e,i)},d:function(t){t&&Hc(e)}}}};if(yield 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]=bu(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:Oc(Rc({},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=bu(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){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=bu(t,i,this.$$p_d,"toProp"),null==(r=this.$$c)||r.$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 yu{constructor(){Dc(this,"$$"),Dc(this,"$$set")}$destroy(){(function(t,e){const i=t.$$;null!==i.fragment&&(function(t){const e=[],i=[];nu.forEach((r=>-1===t.indexOf(r)?e.push(r):i.push(r))),i.forEach((t=>t())),nu=e}(i.after_update),Bc(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])})(this,1),this.$destroy=zc}$on(t,e){if(!Uc(e))return zc;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&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const wu="__WIDGET_GLOBAL_STYLE_CACHE__";function ku(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function xu(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function Su(t,e,i,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return i=function(t,e){const i=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{t&&(i.innerHTML=e,t.appendChild(i))}))}(t,e),i;window[wu]||(window[wu]={}),i=function(t,e){return window.emMessageBus.subscribe(e,(i=>{var r;if(!t)return;const o=t.getRootNode(),s=window[wu];let n=null==(r=s[e])?void 0:r.sheet;n?s[e].refCount=s[e].refCount+1:(n=new CSSStyleSheet,n.replaceSync(i),s[e]={sheet:n,refCount:1});const a=o.adoptedStyleSheets||[];a.includes(n)||(o.adoptedStyleSheets=[...a,n])}))}(t,e);const o=i.unsubscribe.bind(i);return i.unsubscribe=()=>{if(window[wu][e]){const t=window[wu][e];t.refCount>1?t.refCount=t.refCount-1:delete window[wu][e]}o()},i}const Au=[];function Cu(t,e=zc){let i;const r=new Set;function o(e){if(Pc(t,e)&&(t=e,i)){const e=!Au.length;for(const e of r)e[1](),Au.push(e,t);if(e){for(let t=0;t<Au.length;t+=2)Au[t][0](Au[t+1]);Au.length=0}}}function s(e){o(e(t))}return{set:o,update:s,subscribe:function(n,a=zc){const l=[n,a];return r.add(l),1===r.size&&(i=e(o,s)||zc),n(t),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}function Iu(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:Cu(t,e).subscribe}}(i,((t,i)=>{let n=!1;const a=[];let l=0,h=zc;const d=()=>{if(l)return;h();const o=e(r?a[0]:a,t,i);s?t(o):h=Uc(o)?o:zc},c=o.map(((t,e)=>Lc(t,(t=>{a[e]=t,l&=~(1<<e),n&&d()}),(()=>{l|=1<<e}))));return n=!0,d(),function(){Bc(c),h(),n=!1}}))}var Tu=function(t){return!(!(e=t)||"object"!=typeof e||function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Ru}(t)}(t));var e},Ru="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Ou(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Gu(function(t){return Array.isArray(t)?[]:{}}(t),t,e):t}function Du(t,e,i){return t.concat(e).map((function(t){return Ou(t,i)}))}function Nu(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 zu(t,e){try{return e in t}catch(t){return!1}}function Gu(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||Du,i.isMergeableObject=i.isMergeableObject||Tu,i.cloneUnlessOtherwiseSpecified=Ou;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)&&Nu(t).forEach((function(e){r[e]=Ou(t[e],i)})),Nu(e).forEach((function(o){(function(t,e){return zu(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(r[o]=zu(t,o)&&i.isMergeableObject(e[o])?function(t,e){if(!e.customMerge)return Gu;var i=e.customMerge(t);return"function"==typeof i?i:Gu}(o,i)(t[o],e[o],i):Ou(e[o],i))})),r}(t,e,i):Ou(e,i)}Gu.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,i){return Gu(t,i,e)}),{})};const Mu=(Bu=Gu)&&Bu.__esModule&&Object.prototype.hasOwnProperty.call(Bu,"default")?Bu.default:Bu;var Bu,Uu=function(t,e){return(Uu=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])})(t,e)};function Pu(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}Uu(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var Lu=function(){return Lu=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},Lu.apply(this,arguments)};function ju(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 Fu(t,e){return(e&&e.strategy?e.strategy:$u)(t,{cache:e&&e.cache?e.cache:Qu,serializer:e&&e.serializer?e.serializer:Yu})}function Vu(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 void 0===s&&(s=t.call(this,r),e.set(o,s)),s}function Hu(t,e,i){var r=Array.prototype.slice.call(arguments,3),o=i(r),s=e.get(o);return void 0===s&&(s=t.apply(this,r),e.set(o,s)),s}function qu(t,e,i,r,o){return i.bind(e,t,r,o)}function $u(t,e){return qu(t,this,1===t.length?Vu:Hu,e.cache.create(),e.serializer)}var Xu,Ku,Wu,Yu=function(){return JSON.stringify(arguments)},Zu=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}(),Qu={create:function(){return new Zu}},Ju={variadic:function(t,e){return qu(t,this,Hu,e.cache.create(),e.serializer)}},tm=function(){return tm=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},tm.apply(this,arguments)};function em(t){return t.type===Ku.literal}function im(t){return t.type===Ku.argument}function rm(t){return t.type===Ku.number}function om(t){return t.type===Ku.date}function sm(t){return t.type===Ku.time}function nm(t){return t.type===Ku.select}function am(t){return t.type===Ku.plural}function lm(t){return t.type===Ku.pound}function hm(t){return t.type===Ku.tag}function dm(t){return!(!t||"object"!=typeof t||t.type!==Wu.number)}function cm(t){return!(!t||"object"!=typeof t||t.type!==Wu.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"}(Xu||(Xu={})),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"}(Ku||(Ku={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(Wu||(Wu={}));var um=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,mm=/(?:[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 pm(t){var e={};return t.replace(mm,(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 vm=function(){return vm=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},vm.apply(this,arguments)},_m=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function fm(t){return t.replace(/^(.*?)-/,"")}var gm=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,bm=/^(@+)?(\+|#+)?[rs]?$/g,Em=/(\*)(0+)|(#+)(0+)|(0+)/g,ym=/^(0+)$/;function wm(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(bm,(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 km(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 xm(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)),!ym.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Sm(t){return km(t)||{}}function Am(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=fm(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=vm(vm(vm({},e),{notation:"scientific"}),o.options.reduce((function(t,e){return vm(vm({},t),Sm(e))}),{}));continue;case"engineering":e=vm(vm(vm({},e),{notation:"engineering"}),o.options.reduce((function(t,e){return vm(vm({},t),Sm(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(Em,(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(ym.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(gm.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(gm,(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=vm(vm({},e),{trailingZeroDisplay:"stripIfInteger"}):s&&(e=vm(vm({},e),wm(s)))}else if(bm.test(o.stem))e=vm(vm({},e),wm(o.stem));else{var n=km(o.stem);n&&(e=vm(vm({},e),n));var a=xm(o.stem);a&&(e=vm(vm({},e),a))}}return e}var Cm={"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 Im(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),(Cm[i||""]||Cm[r||""]||Cm["".concat(r,"-001")]||Cm["001"])[0]}var Tm,Rm=new RegExp("^".concat(um.source,"*")),Om=new RegExp("".concat(um.source,"*$"));function Dm(t,e){return{start:t,end:e}}var Nm=!!String.prototype.startsWith&&"_a".startsWith("a",1),zm=!!String.fromCodePoint,Gm=!!Object.fromEntries,Mm=!!String.prototype.codePointAt,Bm=!!String.prototype.trimStart,Um=!!String.prototype.trimEnd,Pm=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},Lm=!0;try{Lm="a"===(null===(Tm=Km("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Tm?void 0:Tm[0])}catch(Bu){Lm=!1}var jm,Fm=Nm?function(t,e,i){return t.startsWith(e,i)}:function(t,e,i){return t.slice(i,i+e.length)===e},Vm=zm?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},Hm=Gm?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},qm=Mm?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}},$m=Bm?function(t){return t.trimStart()}:function(t){return t.replace(Rm,"")},Xm=Um?function(t){return t.trimEnd()}:function(t){return t.replace(Om,"")};function Km(t,e){return new RegExp(t,e)}if(Lm){var Wm=Km("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");jm=function(t,e){var i;return Wm.lastIndex=e,null!==(i=Wm.exec(t)[1])&&void 0!==i?i:""}}else jm=function(t,e){for(var i=[];;){var r=qm(t,e);if(void 0===r||tp(r)||ep(r))break;i.push(r),e+=r>=65536?2:1}return Vm.apply(void 0,i)};var Ym,Zm=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(Xu.UNMATCHED_CLOSING_TAG,Dm(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Qm(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:Ku.pound,location:Dm(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:Ku.literal,value:"<".concat(r,"/>"),location:Dm(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()||!Qm(this.char()))return this.error(Xu.INVALID_TAG,Dm(n,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(Xu.UNMATCHED_CLOSING_TAG,Dm(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Ku.tag,value:r,children:s,location:Dm(i,this.clonePosition())},err:null}:this.error(Xu.INVALID_TAG,Dm(n,this.clonePosition())))}return this.error(Xu.UNCLOSED_TAG,Dm(i,this.clonePosition()))}return this.error(Xu.INVALID_TAG,Dm(i,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&Jm(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=Dm(i,this.clonePosition());return{val:{type:Ku.literal,value:r,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&function(t){return Qm(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 Vm.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(),Vm(i))},t.prototype.parseArgument=function(t,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Xu.EXPECT_ARGUMENT_CLOSING_BRACE,Dm(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Xu.EMPTY_ARGUMENT,Dm(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Xu.MALFORMED_ARGUMENT,Dm(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Xu.EXPECT_ARGUMENT_CLOSING_BRACE,Dm(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Ku.argument,value:r,location:Dm(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Xu.EXPECT_ARGUMENT_CLOSING_BRACE,Dm(i,this.clonePosition())):this.parseArgumentOptions(t,e,r,i);default:return this.error(Xu.MALFORMED_ARGUMENT,Dm(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),i=jm(this.message,e);return this.bumpTo(e+i.length),{value:i,location:Dm(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(Xu.EXPECT_ARGUMENT_TYPE,Dm(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(m=Xm(f.val)).length)return this.error(Xu.EXPECT_ARGUMENT_STYLE,Dm(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:Dm(h,this.clonePosition())}}if((g=this.tryParseArgumentClose(r)).err)return g;var d=Dm(r,this.clonePosition());if(l&&Fm(null==l?void 0:l.style,"::",0)){var c=$m(l.style.slice(2));if("number"===n)return(f=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?f:{val:{type:Ku.number,value:i,location:d,style:f.val},err:null};if(0===c.length)return this.error(Xu.EXPECT_DATE_TIME_SKELETON,d);var u=c;this.locale&&(u=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=Im(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}(c,this.locale));var m={type:Wu.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?pm(u):{}};return{val:{type:"date"===n?Ku.date:Ku.time,value:i,location:d,style:m},err:null}}return{val:{type:"number"===n?Ku.number:"date"===n?Ku.date:Ku.time,value:i,location:d,style:null!==(o=null==l?void 0: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(Xu.EXPECT_SELECT_ARGUMENT_OPTIONS,Dm(p,tm({},p)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),_=0;if("select"!==n&&"offset"===v.value){if(!this.bumpIf(":"))return this.error(Xu.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Dm(this.clonePosition(),this.clonePosition()));var f;if(this.bumpSpace(),(f=this.tryParseDecimalInteger(Xu.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Xu.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),v=this.parseIdentifierIfPossible(),_=f.val}var g,b=this.tryParsePluralOrSelectOptions(t,n,e,v);if(b.err)return b;if((g=this.tryParseArgumentClose(r)).err)return g;var E=Dm(r,this.clonePosition());return"select"===n?{val:{type:Ku.select,value:i,options:Hm(b.val),location:E},err:null}:{val:{type:Ku.plural,value:i,options:Hm(b.val),offset:_,pluralType:"plural"===n?"cardinal":"ordinal",location:E},err:null};default:return this.error(Xu.INVALID_ARGUMENT_TYPE,Dm(s,a))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(Xu.EXPECT_ARGUMENT_CLOSING_BRACE,Dm(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(Xu.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Dm(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(_m).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(t){return this.error(Xu.INVALID_NUMBER_SKELETON,e)}return{val:{type:Wu.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?Am(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 d=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Xu.EXPECT_PLURAL_ARGUMENT_SELECTOR,Xu.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;h=Dm(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}if(a.has(l))return this.error("select"===e?Xu.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Xu.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===l&&(s=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?Xu.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Xu.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Dm(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,e,i);if(m.err)return m;var p=this.tryParseArgumentClose(u);if(p.err)return p;n.push([l,{value:m.val,location:Dm(u,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,h=o.location}return 0===n.length?this.error("select"===e?Xu.EXPECT_SELECT_ARGUMENT_SELECTOR:Xu.EXPECT_PLURAL_ARGUMENT_SELECTOR,Dm(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(Xu.MISSING_OTHER_CLAUSE,Dm(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=Dm(r,this.clonePosition());return o?Pm(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=qm(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(Fm(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()&&tp(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),i=this.message.charCodeAt(e+(t>=65536?2:1));return null!=i?i:null},t}();function Qm(t){return t>=97&&t<=122||t>=65&&t<=90}function Jm(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 tp(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function ep(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 ip(t){t.forEach((function(t){if(delete t.location,nm(t)||am(t))for(var e in t.options)delete t.options[e].location,ip(t.options[e].value);else rm(t)&&dm(t.style)||(om(t)||sm(t))&&cm(t.style)?delete t.style.location:hm(t)&&ip(t.children)}))}function rp(t,e){void 0===e&&(e={}),e=tm({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var i=new Zm(t,e).parse();if(i.err){var r=SyntaxError(Xu[i.err.kind]);throw r.location=i.err.location,r.originalMessage=i.err.message,r}return null!=e&&e.captureLocation||ip(i.val),i.val}!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(Ym||(Ym={}));var op,sp=function(t){function e(e,i,r){var o=t.call(this,e)||this;return o.code=i,o.originalMessage=r,o}return Pu(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),np=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('", "'),'"'),Ym.INVALID_VALUE,o)||this}return Pu(e,t),e}(sp),ap=function(t){function e(e,i,r){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(i),Ym.INVALID_VALUE,r)||this}return Pu(e,t),e}(sp),lp=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,'"'),Ym.MISSING_VALUE,i)||this}return Pu(e,t),e}(sp);function hp(t){return"function"==typeof t}function dp(t,e,i,r,o,s,n){if(1===t.length&&em(t[0]))return[{type:op.literal,value:t[0].value}];for(var a=[],l=0,h=t;l<h.length;l++){var d=h[l];if(em(d))a.push({type:op.literal,value:d.value});else if(lm(d))"number"==typeof s&&a.push({type:op.literal,value:i.getNumberFormat(e).format(s)});else{var c=d.value;if(!o||!(c in o))throw new lp(c,n);var u=o[c];if(im(d))(!u||"string"==typeof u||"number"==typeof u)&&(u="string"==typeof u||"number"==typeof u?String(u):""),a.push({type:"string"==typeof u?op.literal:op.object,value:u});else if(om(d)){var m="string"==typeof d.style?r.date[d.style]:cm(d.style)?d.style.parsedOptions:void 0;a.push({type:op.literal,value:i.getDateTimeFormat(e,m).format(u)})}else if(sm(d))m="string"==typeof d.style?r.time[d.style]:cm(d.style)?d.style.parsedOptions:r.time.medium,a.push({type:op.literal,value:i.getDateTimeFormat(e,m).format(u)});else if(rm(d))(m="string"==typeof d.style?r.number[d.style]:dm(d.style)?d.style.parsedOptions:void 0)&&m.scale&&(u*=m.scale||1),a.push({type:op.literal,value:i.getNumberFormat(e,m).format(u)});else{if(hm(d)){var p=d.children,v=d.value,_=o[v];if(!hp(_))throw new ap(v,"function",n);var f=_(dp(p,e,i,r,o,s).map((function(t){return t.value})));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map((function(t){return{type:"string"==typeof t?op.literal:op.object,value:t}})))}if(nm(d)){if(!(g=d.options[u]||d.options.other))throw new np(d.value,u,Object.keys(d.options),n);a.push.apply(a,dp(g.value,e,i,r,o))}else if(am(d)){var g;if(!(g=d.options["=".concat(u)])){if(!Intl.PluralRules)throw new sp('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Ym.MISSING_INTL_API,n);var b=i.getPluralRules(e,{type:d.pluralType}).select(u-(d.offset||0));g=d.options[b]||d.options.other}if(!g)throw new np(d.value,u,Object.keys(d.options),n);a.push.apply(a,dp(g.value,e,i,r,o,u-(d.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===op.literal&&e.type===op.literal?i.value+=e.value:t.push(e),t}),[])}(a)}function cp(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"}(op||(op={}));var up=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===op.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 dp(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,Lu(Lu({},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?Lu(Lu(Lu({},t||{}),e||{}),Object.keys(t).reduce((function(i,r){return i[r]=Lu(Lu({},t[r]),e[r]||{}),i}),{})):t}(t[r],e[r]),i}),Lu({},t)):t}(t.formats,r),this.formatters=o&&o.formatters||function(t){return void 0===t&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Fu((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,ju([void 0],e,!1)))}),{cache:cp(t.number),strategy:Ju.variadic}),getDateTimeFormat:Fu((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,ju([void 0],e,!1)))}),{cache:cp(t.dateTime),strategy:Ju.variadic}),getPluralRules:Fu((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,ju([void 0],e,!1)))}),{cache:cp(t.pluralRules),strategy:Ju.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(void 0!==Intl.Locale){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=rp,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 mp={},pp=(t,e,i)=>i&&(e in mp||(mp[e]={}),t in mp[e]||(mp[e][t]=i),i),vp=(t,e)=>{if(null==e)return;if(e in mp&&t in mp[e])return mp[e][t];const i=Pp(e);for(let r=0;r<i.length;r++){const o=bp(i[r],t);if(o)return pp(t,e,o)}};let _p;const fp=Cu({});function gp(t){return t in _p}function bp(t,e){if(!gp(t))return null;const i=function(t){return _p[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 Ep(t,...e){delete mp[t],fp.update((i=>(i[t]=Mu.all([i[t]||{},...e]),i)))}Iu([fp],(([t])=>Object.keys(t))),fp.subscribe((t=>_p=t));const yp={};function wp(t){return yp[t]}function kp(t){return null!=t&&Pp(t).some((t=>{var e;return null==(e=wp(t))?void 0:e.size}))}const xp={};function Sp(t){if(!kp(t))return t in xp?xp[t]:Promise.resolve();const e=function(t){return Pp(t).map((t=>{const e=wp(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return xp[t]=Promise.all(e.map((([t,e])=>function(t,e){return Promise.all(e.map((e=>(function(t,e){yp[t].delete(e),0===yp[t].size&&delete yp[t]}(t,e),e().then((t=>t.default||t)))))).then((e=>Ep(t,...e)))}(t,e)))).then((()=>{if(kp(t))return Sp(t);delete xp[t]})),xp[t]}const Ap={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 Cp(){return Ap}const Ip=Cu(!1);var Tp=Object.defineProperty,Rp=Object.defineProperties,Op=Object.getOwnPropertyDescriptors,Dp=Object.getOwnPropertySymbols,Np=Object.prototype.hasOwnProperty,zp=Object.prototype.propertyIsEnumerable,Gp=(t,e,i)=>e in t?Tp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;let Mp;const Bp=Cu(null);function Up(t){return t.split("-").map(((t,e,i)=>i.slice(0,e+1).join("-"))).reverse()}function Pp(t,e=Cp().fallbackLocale){const i=Up(t);return e?[...new Set([...i,...Up(e)])]:i}function Lp(){return null!=Mp?Mp:void 0}Bp.subscribe((t=>{Mp=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const jp=((t,e)=>Rp(t,Op(e)))(((t,e)=>{for(var i in e||(e={}))Np.call(e,i)&&Gp(t,i,e[i]);if(Dp)for(var i of Dp(e))zp.call(e,i)&&Gp(t,i,e[i]);return t})({},Bp),{set:t=>{if(t&&function(t){if(null==t)return;const e=Pp(t);for(let t=0;t<e.length;t++){const i=e[t];if(gp(i))return i}}(t)&&kp(t)){const{loadingDelay:e}=Cp();let i;return"undefined"!=typeof window&&null!=Lp()&&e?i=window.setTimeout((()=>Ip.set(!0)),e):Ip.set(!0),Sp(t).then((()=>{Bp.set(t)})).finally((()=>{clearTimeout(i),Ip.set(!1)}))}return Bp.set(t)}}),Fp=t=>{const e=Object.create(null);return i=>{const r=JSON.stringify(i);return r in e?e[r]:e[r]=t(i)}};var Vp=Object.defineProperty,Hp=Object.getOwnPropertySymbols,qp=Object.prototype.hasOwnProperty,$p=Object.prototype.propertyIsEnumerable,Xp=(t,e,i)=>e in t?Vp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Kp=(t,e)=>{for(var i in e||(e={}))qp.call(e,i)&&Xp(t,i,e[i]);if(Hp)for(var i of Hp(e))$p.call(e,i)&&Xp(t,i,e[i]);return t},Wp=(t,e)=>{var i={};for(var r in t)qp.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&Hp)for(var r of Hp(t))e.indexOf(r)<0&&$p.call(t,r)&&(i[r]=t[r]);return i};const Yp=(t,e)=>{const{formats:i}=Cp();if(t in i&&e in i[t])return i[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Zp=Fp((t=>{var e=t,{locale:i,format:r}=e,o=Wp(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=Yp("number",r)),new Intl.NumberFormat(i,o)})),Qp=Fp((t=>{var e=t,{locale:i,format:r}=e,o=Wp(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=Yp("date",r):0===Object.keys(o).length&&(o=Yp("date","short")),new Intl.DateTimeFormat(i,o)})),Jp=Fp((t=>{var e=t,{locale:i,format:r}=e,o=Wp(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=Yp("time",r):0===Object.keys(o).length&&(o=Yp("time","short")),new Intl.DateTimeFormat(i,o)})),tv=Fp(((t,e=Lp())=>new up(t,e,Cp().formats,{ignoreTag:Cp().ignoreTag}))),ev=(t,e={})=>{var i,r,o,s;let n=e;"object"==typeof t&&(n=t,t=n.id);const{values:a,locale:l=Lp(),default:h}=n;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=vp(t,l);if(d){if("string"!=typeof d)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d}else d=null!=(s=null!=(o=null==(r=(i=Cp()).handleMissingMessage)?void 0:r.call(i,{locale:l,id:t,defaultValue:h}))?o:h)?s:t;if(!a)return d;let c=d;try{c=tv(d,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return c},iv=(t,e)=>((t={})=>{var e=t,{locale:i=Lp()}=e,r=Wp(e,["locale"]);return Jp(Kp({locale:i},r))})(e).format(t),rv=(t,e)=>((t={})=>{var e=t,{locale:i=Lp()}=e,r=Wp(e,["locale"]);return Qp(Kp({locale:i},r))})(e).format(t),ov=(t,e)=>((t={})=>{var e=t,{locale:i=Lp()}=e,r=Wp(e,["locale"]);return Zp(Kp({locale:i},r))})(e).format(t),sv=(t,e=Lp())=>vp(t,e),nv=Iu([jp,fp],(()=>ev));function av(t,e){Ep(t,e)}Iu([jp],(()=>iv)),Iu([jp],(()=>rv)),Iu([jp],(()=>ov)),Iu([jp,fp],(()=>sv));const lv={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."}};var hv;function dv(){let t,e;return{c(){t=Xc("svg"),e=Xc("path"),Zc(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"),Zc(t,"xmlns","http://www.w3.org/2000/svg"),Zc(t,"viewBox","0 0 512 512")},m(i,r){Vc(i,t,r),jc(t,e)},p:zc,i:zc,o:zc,d(e){e&&Hc(t)}}}function cv(t){Fc(t,"svelte-etk3ty",'.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{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-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{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-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty: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-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{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, 10px);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-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{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-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{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-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}')}function uv(t,e,i){const r=t.slice();return r[64]=e[i],r}function mv(t,e,i){const r=t.slice();return r[61]=e[i],r[62]=e,r[63]=i,r}function pv(t,e,i){const r=t.slice();return r[64]=e[i],r}function vv(t){let e,i,r=_u(t[9]),o=[];for(let e=0;e<r.length;e+=1)o[e]=bv(uv(t,r,e));return{c(){e=$c("div"),i=$c("form");for(let t=0;t<o.length;t+=1)o[t].c();Zc(i,"class","checkbox svelte-etk3ty"),Zc(e,"class","legacyStyle")},m(r,s){Vc(r,e,s),jc(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=_u(t[9]),s=0;s<r.length;s+=1){const n=uv(t,r,s);o[s]?o[s].p(n,e):(o[s]=bv(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&&Hc(e),qc(o,i),t[31](null)}}}function _v(t){let e,i,r,o,s,n,a,l,h=t[16]("title")||t[16]("description"),d=(t[16]("saveButtonContent")||"Save Consents")+"",c=h&&Ev(t),u=_u(t[8]),m=[];for(let e=0;e<u.length;e+=1)m[e]=Av(mv(t,u,e));let p=t[6]&&Cv(t);return{c(){c&&c.c(),e=Wc();for(let t=0;t<m.length;t+=1)m[t].c();i=Wc(),r=$c("button"),s=Wc(),p&&p.c(),n=Kc(""),Zc(r,"class","SaveConsentsButton svelte-etk3ty"),r.disabled=o=!t[14]},m(o,h){c&&c.m(o,h),Vc(o,e,h);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(o,h);Vc(o,i,h),Vc(o,r,h),r.innerHTML=d,Vc(o,s,h),p&&p.m(o,h),Vc(o,n,h),a||(l=Yc(r,"click",t[17]),a=!0)},p(t,s){if(65536&s[0]&&(h=t[16]("title")||t[16]("description")),h?c?c.p(t,s):(c=Ev(t),c.c(),c.m(e.parentNode,e)):c&&(c.d(1),c=null),867088&s[0]){let e;for(u=_u(t[8]),e=0;e<u.length;e+=1){const r=mv(t,u,e);m[e]?m[e].p(r,s):(m[e]=Av(r),m[e].c(),m[e].m(i.parentNode,i))}for(;e<m.length;e+=1)m[e].d(1);m.length=u.length}65536&s[0]&&d!==(d=(t[16]("saveButtonContent")||"Save Consents")+"")&&(r.innerHTML=d),16384&s[0]&&o!==(o=!t[14])&&(r.disabled=o),t[6]?p?p.p(t,s):(p=Cv(t),p.c(),p.m(n.parentNode,n)):p&&(p.d(1),p=null)},d(t){t&&(Hc(e),Hc(i),Hc(r),Hc(s),Hc(n)),c&&c.d(t),qc(m,t),p&&p.d(t),a=!1,l()}}}function fv(t){let e,i,r;return{c(){e=$c("div"),i=$c("strong"),r=Kc(t[7]),Zc(i,"class","ErrorMessage svelte-etk3ty"),Zc(e,"class","ContainerCenter svelte-etk3ty")},m(t,o){Vc(t,e,o),jc(e,i),jc(i,r)},p(t,e){128&e[0]&&Jc(r,t[7])},d(t){t&&Hc(e)}}}function gv(t){let e;return{c(){e=$c("general-animation-loading"),Qc(e,"clientstyling",t[1]),Qc(e,"clientstylingurl",t[2]),Qc(e,"mbsource",t[3])},m(t,i){Vc(t,e,i)},p(t,i){2&i[0]&&Qc(e,"clientstyling",t[1]),4&i[0]&&Qc(e,"clientstylingurl",t[2]),8&i[0]&&Qc(e,"mbsource",t[3])},d(t){t&&Hc(e)}}}function bv(t){let e,i,r,o,s,n,a,l,h,d,c,u,m,p,v,_,f,g=(t[16](`${t[64].tagCode}__description`)||t[64].tagCode)+"",b=t[64].mustAccept?" *":"";function E(...e){return t[30](t[64],...e)}return{c(){e=$c("div"),i=$c("input"),s=Wc(),n=$c("label"),a=$c("div"),l=new tu(!1),h=Kc(b),c=Wc(),u=$c("small"),p=Wc(),Zc(i,"class","checkbox__input svelte-etk3ty"),Zc(i,"type","checkbox"),i.checked=r="1"===t[64].status,Zc(i,"id",o=`${t[64].tagCode}__input`),l.a=h,Zc(a,"class","checkbox__label-text svelte-etk3ty"),Zc(n,"class","checkbox__label svelte-etk3ty"),Zc(n,"for",d=`${t[64].tagCode}__input`),Zc(u,"class","checkbox__error-message svelte-etk3ty"),Zc(u,"id",m="checkBoxError__"+t[64].tagCode),Zc(e,"class",v="checkbox__wrapper "+t[64].tagCode+"__input svelte-etk3ty")},m(t,r){Vc(t,e,r),jc(e,i),jc(e,s),jc(e,n),jc(n,a),l.m(g,a),jc(a,h),jc(e,c),jc(e,u),jc(e,p),_||(f=Yc(i,"input",E),_=!0)},p(s,a){t=s,512&a[0]&&r!==(r="1"===t[64].status)&&(i.checked=r),512&a[0]&&o!==(o=`${t[64].tagCode}__input`)&&Zc(i,"id",o),66048&a[0]&&g!==(g=(t[16](`${t[64].tagCode}__description`)||t[64].tagCode)+"")&&l.p(g),512&a[0]&&b!==(b=t[64].mustAccept?" *":"")&&Jc(h,b),512&a[0]&&d!==(d=`${t[64].tagCode}__input`)&&Zc(n,"for",d),512&a[0]&&m!==(m="checkBoxError__"+t[64].tagCode)&&Zc(u,"id",m),512&a[0]&&v!==(v="checkbox__wrapper "+t[64].tagCode+"__input svelte-etk3ty")&&Zc(e,"class",v)},d(t){t&&Hc(e),_=!1,f()}}}function Ev(t){let e,i,r=t[16]("title"),o=t[16]("description"),s=r&&yv(t),n=o&&wv(t);return{c(){e=$c("div"),s&&s.c(),i=Wc(),n&&n.c(),Zc(e,"class","PlayerConsentsHeader svelte-etk3ty")},m(t,r){Vc(t,e,r),s&&s.m(e,null),jc(e,i),n&&n.m(e,null)},p(t,a){65536&a[0]&&(r=t[16]("title")),r?s?s.p(t,a):(s=yv(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=wv(t),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(t){t&&Hc(e),s&&s.d(),n&&n.d()}}}function yv(t){let e,i,r=t[16]("title")+"";return{c(){e=$c("h2"),i=Kc(r),Zc(e,"class","PlayerConsentsTitle")},m(t,r){Vc(t,e,r),jc(e,i)},p(t,e){65536&e[0]&&r!==(r=t[16]("title")+"")&&Jc(i,r)},d(t){t&&Hc(e)}}}function wv(t){let e,i,r=t[16]("description")+"";return{c(){e=$c("p"),i=Kc(r),Zc(e,"class","PlayerConsentsDescription")},m(t,r){Vc(t,e,r),jc(e,i)},p(t,e){65536&e[0]&&r!==(r=t[16]("description")+"")&&Jc(i,r)},d(t){t&&Hc(e)}}}function kv(){let t;return{c(){t=$c("sup"),t.textContent="*",Zc(t,"class","ConsentRequired svelte-etk3ty")},m(e,i){Vc(e,t,i)},d(e){e&&Hc(t)}}}function xv(t){let e,i=(t[16](`${t[64].tagCode}__description`)||t[64].description)+"";return{c(){e=$c("p"),Zc(e,"class","ConsentDescription svelte-etk3ty")},m(t,r){Vc(t,e,r),e.innerHTML=i},p(t,r){66304&r[0]&&i!==(i=(t[16](`${t[64].tagCode}__description`)||t[64].description)+"")&&(e.innerHTML=i)},d(t){t&&Hc(e)}}}function Sv(t){let e,i,r,o,s,n,a,l,h,d,c,u,m,p,v,_=(t[16](`${t[64].tagCode}__name`)||t[64].friendlyName)+"",f=!0===t[64].mustAccept&&kv(),g="true"===t[4]&&xv(t);function b(...e){return t[29](t[64],...e)}return{c(){e=$c("div"),i=$c("div"),r=$c("h4"),o=new tu(!1),s=Wc(),f&&f.c(),n=Wc(),g&&g.c(),a=Wc(),l=$c("label"),h=$c("input"),u=Wc(),m=$c("span"),o.a=s,Zc(r,"class","ConsentName svelte-etk3ty"),Zc(i,"class","ConsentContent"),Zc(h,"type","checkbox"),h.disabled=d=!0===t[64].mustAccept&&!0===t[12][t[64].tagCode],h.checked=c=t[13][t[64].tagCode],Zc(h,"class","svelte-etk3ty"),Zc(m,"class","Slider Round svelte-etk3ty"),Zc(l,"class","ToggleSwitch svelte-etk3ty"),Zc(e,"class","ConsentItem svelte-etk3ty")},m(t,d){Vc(t,e,d),jc(e,i),jc(i,r),o.m(_,r),jc(r,s),f&&f.m(r,null),jc(i,n),g&&g.m(i,null),jc(e,a),jc(e,l),jc(l,h),jc(l,u),jc(l,m),p||(v=Yc(h,"input",b),p=!0)},p(e,s){t=e,66304&s[0]&&_!==(_=(t[16](`${t[64].tagCode}__name`)||t[64].friendlyName)+"")&&o.p(_),!0===t[64].mustAccept?f||(f=kv(),f.c(),f.m(r,null)):f&&(f.d(1),f=null),"true"===t[4]?g?g.p(t,s):(g=xv(t),g.c(),g.m(i,null)):g&&(g.d(1),g=null),4864&s[0]&&d!==(d=!0===t[64].mustAccept&&!0===t[12][t[64].tagCode])&&(h.disabled=d),8960&s[0]&&c!==(c=t[13][t[64].tagCode])&&(h.checked=c)},d(t){t&&Hc(e),f&&f.d(),g&&g.d(),p=!1,v()}}}function Av(t){let e,i,r,o,s,n,a,l,h,d,c,u,m=(t[16](`${t[61].categoryTagCode}__category`)||t[61].friendlyName)+"";function p(){t[26].call(n,t[61])}function v(){return t[27](t[61])}function _(...e){return t[28](t[61],...e)}let f=_u(t[9].filter(_)),g=[];for(let e=0;e<f.length;e+=1)g[e]=Sv(pv(t,f,e));return{c(){e=$c("div"),i=$c("div"),r=$c("h3"),o=Wc(),s=$c("label"),n=$c("input"),a=Wc(),l=$c("span"),h=Wc(),d=$c("div");for(let t=0;t<g.length;t+=1)g[t].c();Zc(n,"type","checkbox"),Zc(n,"class","svelte-etk3ty"),Zc(l,"class","Slider Round svelte-etk3ty"),Zc(s,"class","ToggleSwitch Big svelte-etk3ty"),Zc(i,"class","AccordionHeader svelte-etk3ty"),Zc(d,"class","AccordionContent svelte-etk3ty"),Zc(e,"class","AccordionItem svelte-etk3ty")},m(_,f){Vc(_,e,f),jc(e,i),jc(i,r),r.innerHTML=m,jc(i,o),jc(i,s),jc(s,n),n.checked=t[11][t[61].categoryTagCode],jc(s,a),jc(s,l),jc(e,h),jc(e,d);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(d,null);c||(u=[Yc(n,"change",p),Yc(n,"change",v)],c=!0)},p(e,i){if(t=e,65792&i[0]&&m!==(m=(t[16](`${t[61].categoryTagCode}__category`)||t[61].friendlyName)+"")&&(r.innerHTML=m),2304&i[0]&&(n.checked=t[11][t[61].categoryTagCode]),602896&i[0]){let e;for(f=_u(t[9].filter(_)),e=0;e<f.length;e+=1){const r=pv(t,f,e);g[e]?g[e].p(r,i):(g[e]=Sv(r),g[e].c(),g[e].m(d,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}},d(t){t&&Hc(e),qc(g,t),c=!1,Bc(u)}}}function Cv(t){let e,i,r,o,s;return{c(){e=$c("div"),i=$c("circle-exclamation-icon"),r=Wc(),o=$c("strong"),s=Kc(t[6]),Qc(i,"class","svelte-etk3ty"),Zc(o,"class","ErrorMessage svelte-etk3ty"),Zc(e,"class","ConsentErrorContainer svelte-etk3ty")},m(t,n){Vc(t,e,n),jc(e,i),jc(e,r),jc(e,o),jc(o,s)},p(t,e){64&e[0]&&Jc(s,t[6])},d(t){t&&Hc(e)}}}function Iv(t){let e,i;function r(t){return t[10]?gv:t[7]?fv:t[0]?_v:t[0]?void 0:vv}let o=r(t),s=o&&o(t);return{c(){e=$c("div"),i=$c("div"),s&&s.c(),Zc(i,"class","ConsentsContainer svelte-etk3ty"),Zc(e,"class"," svelte-etk3ty")},m(r,o){Vc(r,e,o),jc(e,i),s&&s.m(i,null),t[32](i)},p(t,e){o===(o=r(t))&&s?s.p(t,e):(s&&s.d(1),s=o&&o(t),s&&(s.c(),s.m(i,null)))},i:zc,o:zc,d(i){i&&Hc(e),s&&s.d(),t[32](null)}}}function Tv(t,e,i){let r;!function(t,e,i){t.$$.on_destroy.push(Lc(nv,i))}(t,0,(t=>i(16,r=t)));let o,s,n,{session:a=""}=e,{userid:l=""}=e,{endpoint:h=""}=e,{clientstyling:d=""}=e,{clientstylingurl:c=""}=e,{mbsource:u}=e,{lang:m="en"}=e,{displayconsentdescription:p=""}=e,{translationurl:v=""}=e,{modalconsents:_="false"}=e,f=!1,g=!1,b="",E="",y="",w="",k=[],x=[],S=[],A=!0,C=!0,I={},T={},R={},O={},D={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"}},N=!1;Object.keys(lv).forEach((t=>{av(t,lv[t])}));const z=(t,e=!1)=>{e?i(7,w=t):(j(),i(6,y=t))},G=(t,e,i,o=!1)=>Nc(this,null,(function*(){try{const o=yield fetch(t,i);if(!o.ok)throw new Error(r(e));const s=yield o.json();return g?s:s.filter((t=>!0===t.showOnRegister))}catch(t){throw z(t instanceof TypeError?r(e):t.message,o),t}})),M=()=>Nc(this,null,(function*(){try{let t=[],e=[];if(g?[t,e]=yield B():t=yield B(),i(10,A=!1),x=[...t],i(8,k=U(x).sort(((t,e)=>t.categoryTagCode.localeCompare(e.categoryTagCode)))),i(11,I=P(k)),T=Rc({},I),i(9,S=[...e]),x.forEach((t=>{let e=S.find((e=>e.tagCode===t.tagCode));e||(e=Oc(Rc({},t),{status:D.denied.value}),S.push(e)),e.description=t.description,e.orderNumber=t.orderNumber})),"true"===_){if(i(9,S=S.filter((t=>t.status===D.expired.value))),0!==S.length)return;z(r("wrongModalConfig"),!0)}L()}catch(t){throw i(10,A=!1),z(t instanceof TypeError?r("invalidUrl"):t.message,!0),t}})),B=()=>Nc(this,null,(function*(){const t=new URL(`${h}/api/v1/gm/consents`);if(t.searchParams.append("Status","Active"),!g)return yield G(t.href,"fetchConsentsError",{method:"GET"},!0);const e=new URL(`${h}/api/v1/gm/user-consents/${E}`);return yield Promise.all([G(t.href,"fetchConsentsError",{method:"GET"},!0),G(e.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":b,"Content-Type":"application/json"}})])})),U=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())},P=t=>{const e=localStorage.getItem("categoryToggle"+E);if(null===e){const e=t.reduce(((t,e)=>(t[e.categoryTagCode]=!1,t)),{});return localStorage.setItem("categoryToggle"+E,JSON.stringify(e)),e}return JSON.parse(e)},L=()=>{S.forEach((t=>{i(12,R[t.tagCode]=t.status===D.accepted.value,R)})),i(13,O=Rc({},R))},j=()=>{i(13,O=Rc({},R)),i(11,I=Rc({},T))},F=t=>{S.filter((e=>e.category.categoryTagCode===t)).forEach((e=>{e.status=e.status===D.denied.value?D.accepted.value:D.denied.value,i(13,O[e.tagCode]=I[t]||!1,O)})),i(14,s=$())},V=(t,e,o)=>{const s=S.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===D.accepted[a]?(s.status=D.denied[a],l&&(l.innerHTML=r("requiredError"))):(s.status=D.accepted[a],l&&(l.innerHTML="")),e){i(13,O[s.tagCode]=!O[s.tagCode],O);const t=S.filter((t=>t.category.categoryTagCode===e.categoryTagCode)).every((t=>t.status!==D.denied.value));i(11,I[e.categoryTagCode]=t,I)}H()},H=(t=>{let e;return function(...i){const r=this;clearTimeout(e),e=setTimeout((()=>{t.apply(r,i)}),500)}})((()=>q())),q=()=>{i(14,s=$()),a||(window.postMessage({type:"isConsentsValid",isValid:s}),localStorage.setItem("playerConsents",JSON.stringify(S)))},$=()=>0===S.filter((t=>S.some((e=>t.tagCode===e.tagCode&&e.mustAccept&&(t.status===D.denied.key||t.status===D.denied.value))))).length,X=t=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:t}},window.location.href)};return ru((()=>{setTimeout((()=>{i(25,f=!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:S,registrationId:t}),headers:{"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,r).then((t=>{t.ok||(N=!0)})).catch((t=>(console.error(t),X(t)))).finally((()=>{i(10,A=!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,d=t.clientstyling),"clientstylingurl"in t&&i(2,c=t.clientstylingurl),"mbsource"in t&&i(3,u=t.mbsource),"lang"in t&&i(22,m=t.lang),"displayconsentdescription"in t&&i(4,p=t.displayconsentdescription),"translationurl"in t&&i(23,v=t.translationurl),"modalconsents"in t&&i(24,_=t.modalconsents)},t.$$.update=()=>{33554433&t.$$.dirty[0]&&f&&a&&(a&&(b=a,g=!0),l&&(E=l),M()),1&t.$$.dirty[0]&&(a||(()=>{N=!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():(N=!0,t.json().then((t=>(console.error(t),X(t))))))).then((t=>{if(!N){if(x=t,localStorage.getItem("playerConsents")){try{i(9,S=JSON.parse(localStorage.getItem("playerConsents")))}catch(t){return console.error(t),X(t)}return}return i(9,S=x.map((t=>({id:t.id,status:D.denied.key,friendlyName:t.friendlyName,tagCode:t.tagCode,selected:null,mustAccept:t.mustAccept})))),localStorage.setItem("playerConsents",JSON.stringify(S)),S}})).catch((t=>(console.error(t),X(t)))).finally((()=>{i(10,A=!1)}))})()),34&t.$$.dirty[0]&&d&&o&&ku(o,d),36&t.$$.dirty[0]&&c&&o&&xu(o,c),40&t.$$.dirty[0]&&o&&Su(o,`${u}.Style`,void 0),4194304&t.$$.dirty[0]&&m&&function(t){jp.set(t)}(m),8388608&t.$$.dirty[0]&&v&&(()=>{let t=new URL(v);fetch(t.href).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{av(e,t[e])}))})).catch((t=>{console.log(t)}))})()},[a,d,c,u,p,o,y,w,k,S,A,I,R,O,s,n,r,()=>Nc(this,null,(function*(){if(!C)return;C=!1;const t=[],e=[];if(Object.keys(O).forEach((i=>{const r=S.find((t=>t.tagCode===i));O[i]!==R[i]&&(r?t.push({tagCode:i,status:O[i]?D.accepted.value:D.denied.value}):e.push({tagCode:i,status:O[i]?D.accepted.value:D.denied.value}))})),!g)return localStorage.setItem("categoryToggle"+E,JSON.stringify(I)),T=Rc({},I),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(e)},window.location.href),void(C=!0);const o=new URL(`${h}/api/v1/gm/user-consents/${E}`);try{const r=yield Promise.allSettled([e.length>0&&G(o.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":b,"Content-Type":"application/json"},body:JSON.stringify({userConsents:e})}),t.length>0&&G(o.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":b,"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,O[r.tagCode]=R[r.tagCode],O)}})),r.every((t=>"fulfilled"===t.status))&&(localStorage.setItem("categoryToggle"+E,JSON.stringify(I)),T=Rc({},I),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),i(12,R=Rc({},O)))}catch(t){z(t instanceof TypeError?r("saveChangesError"):t.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href)}finally{C=!0,i(14,s=!1)}})),F,V,l,h,m,v,_,f,function(t){I[t.categoryTagCode]=this.checked,i(11,I)},t=>F(t.categoryTagCode),(t,e)=>e.category.categoryTagCode===t.categoryTagCode,t=>V(0,t.category,t.id),t=>V(0,null,t.id),function(t){su[t?"unshift":"push"]((()=>{n=t,i(15,n)}))},function(t){su[t?"unshift":"push"]((()=>{o=t,i(5,o)}))}]}"undefined"!=typeof window&&(customElements.define=(hv=customElements.define,function(...t){try{return hv.apply(this,t)}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}}),Promise.resolve().then((()=>wc)).then((({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)}))),customElements.define("circle-exclamation-icon",Eu(class extends yu{constructor(t){super(),fu(this,t,null,dv,Pc,{})}},{},[],[],!0));class Rv extends yu{constructor(t){super(),fu(this,t,Tv,Iv,Pc,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},cv,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),mu()}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),mu()}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),mu()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),mu()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),mu()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),mu()}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),mu()}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),mu()}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),mu()}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),mu()}}Eu(Rv,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);const Ov=Object.freeze(Object.defineProperty({__proto__:null,default:Rv},Symbol.toStringTag,{value:"Module"}));if(yc.PlayerConsents_ce=Ov,yc.SvelteComponent=yu,yc.append_styles=Fc,yc.binding_callbacks=su,yc.create_custom_element=Eu,yc.detach=Hc,yc.element=$c,yc.flush=mu,yc.init=fu,yc.insert=Vc,yc.noop=zc,yc.onMount=ru,yc.safe_not_equal=Pc,yc.setClientStyling=ku,yc.setClientStylingURL=xu,yc.setStreamStyling=Su,"undefined"!=typeof window){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((()=>yc)).then((t=>t.PlayerConsents_ce)).then((({default:t})=>{!customElements.get("player-consents")&&customElements.define("player-consents",t.element)}))}const Dv=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.registrationStepUpdated=e(this,"registrationStepUpdated",7),this.validationChange=e(this,"validationChange",7),this.isSelectingAddress=!1,this.lastPostalCode=null,this.pinAttemptsExceeded=!1,this.documentIdNineDigits=!1,this.selectedCountry="",this.listOfInputValues=[],this.listOfInputValidity=[],this.listOfActions=[],this.listOfInputs=[],this.conditionalValidationMap={},this.lastStep="",this.emitValue=!1,this.form=null,this.errorCode="",this.backButtonPressed=!1,this.registerErrors=!1,this.extraActions=[],this.registerCredentialsEvent=null,this.twofaDestination="",this.postalcodelength=5,this.registrationStepsState={regId:null},this.getIgnoreCountry=t=>"PostalCode"===t.name&&this.haspostalcodelookup&&!this.listOfInputs.some((t=>"CountryCode"===t.name)),this.getStepClass=t=>this.currentStep===t?"bullet active":this.currentStep>t?"bullet checked":"bullet",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)}))},this.setStreamStyling=t=>{if(window.emMessageBus){const e=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(t,(t=>{e.innerHTML=t,this.clientStyling=t,this.host.shadowRoot.prepend(e)}))}},this.handleInitialClick=t=>{this.isInitalInteraction&&(Ec("register_start",{field:t.target.name}),this.isInitalInteraction=!1)},this.endpoint=void 0,this.language="en",this.clientStyling="",this.mbSource=void 0,this.clientStylingUrl="",this.translationUrl="",this.dateFormat=void 0,this.buttonInsideForm=void 0,this.btag=null,this.emitOnClick=!1,this.haspostalcodelookup=!1,this.ignorebtag=!1,this.enableSouthAfricanMode=!0,this.errorMessage="",this.isFormValid=!1,this.isConsentValid=!1,this.isConsentReady=!1,this.isLoading=!0,this.isLoadingPOST=!1,this.registrationStep="",this.forms={},this.limitStylingAppends=!1,this.autofilled=!1,this.isInitalInteraction=!0,this.addresses=[],this.addressUpdateKey=0,this.currentStep=1}sendStep(){this.registrationStepUpdated.emit(this.registrationStep),window.postMessage({type:"registrationStepUpdated",step:this.registrationStep},window.location.href);const t=Number(this.registrationStep.replace("Step",""));this.currentStep=t}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){var e,i,r,o;this.listOfInputValues.find((e=>{e.name==t.detail.name&&(e.value=t.detail.value,e.type=t.detail.type||null)}));const{name:s,value:n}=t.detail;if(s===mc){let e=t.detail.value;"identitycard"===(e||"").replace(fc,"").toLowerCase()&&(e=vc),window.documentTypeValue=e;const i=this.listOfInputValues.find((t=>t.name===uc));i&&(i.value="");const r=this.listOfInputValidity.find((t=>t.name===uc));return r&&(r.isValid=!1),window.dispatchEvent(new CustomEvent("documentNumberUpdatedExternally",{detail:""})),void window.dispatchEvent(new CustomEvent("documentNumberResetValidation"))}const a=window.documentTypeValue;if(s===uc&&a===pc)if(8===n.length||9===n.length){const t=(t=>{if(!t)return null;const e=t.slice(0,6),i=parseInt(e.slice(0,2),10),r=e.slice(2,4),o=e.slice(4,6),s=$e(`${i>(new Date).getFullYear()%100?1900+i:2e3+i}${r}${o}`,"yyyyMMdd",new Date);return p(s)?at(s,"yyyy-MM-dd"):null})(n);window.dispatchEvent(new CustomEvent("documentIdUpdated",{detail:t||""})),this.documentIdNineDigits=!0}else this.documentIdNineDigits&&window.dispatchEvent(new CustomEvent("documentIdUpdated",{detail:""})),this.documentIdNineDigits=!1;if(s===_c){const o=null!==(i=null===(e=null==t?void 0:t.detail)||void 0===e?void 0:e.value)&&void 0!==i?i:{};let s="string"==typeof o.phone?o.phone:"";s.startsWith("0")&&(s=s.slice(1));const n=this.listOfInputValues.find((t=>t.name===_c));n&&(n.value={prefix:null!==(r=o.prefix)&&void 0!==r?r:"",phone:s})}if(this.haspostalcodelookup){const{name:e,value:i}=t.detail;if("CountryCode"===e&&(this.selectedCountry=i,"GB"===i&&(this.selectedCountry="UK"),this.resetAllAddressFields(),window.dispatchEvent(new CustomEvent("countryCodeUpdated",{detail:{name:e,value:this.selectedCountry}}))),"PostalCode"===e)if(this.listOfInputs.some((t=>"CountryCode"===t.name))||(this.selectedCountry="UK"),!this.isSelectingAddress&&this.addresses.length>0&&i!==this.lastPostalCode&&(this.addresses=[]),i.length>=this.postalcodelength){if(this.isSelectingAddress)return;if(!this.lastPostalCode||this.lastPostalCode!==i||0===this.addresses.length){const t=this.selectedCountry||(null===(o=this.listOfInputValues.find((t=>"CountryCode"===t.name)))||void 0===o?void 0:o.value)||"";"GB"!==this.selectedCountry&&"UK"!==this.selectedCountry||(this.addrDebounce&&clearTimeout(this.addrDebounce),this.addrDebounce=setTimeout((()=>{this.fetchAddresses(t,i)}),500)),this.lastPostalCode=i}}else i.length<this.postalcodelength&&(this.addresses=[],this.lastPostalCode=null)}this.stepsStateMachine({event:"set",type:"values"}),this.handleConditionalValidation(t.detail.name,t.detail.value)}handleAddressSelection(t){const{city:e,address1:i,address2:r}=t.detail;this.listOfInputValues=this.listOfInputValues.map((t=>"address1"===t.name?Object.assign(Object.assign({},t),{value:i||""}):"address2"===t.name?Object.assign(Object.assign({},t),{value:r||""}):"City"===t.name?Object.assign(Object.assign({},t),{value:e||""}):t)),this.forms[this.registrationStep]&&(this.forms[this.registrationStep]=this.forms[this.registrationStep].map((t=>"address1"===t.name?Object.assign(Object.assign({},t),{defaultValue:i}):"address2"===t.name?Object.assign(Object.assign({},t),{defaultValue:r}):"City"===t.name?Object.assign(Object.assign({},t),{defaultValue:e}):t))),this.addressUpdateKey=Date.now(),this.forms=Object.assign({},this.forms),this.stepsStateMachine({event:"set",type:"values"}),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),this.isSelectingAddress=!1}handleCountryCodeUpdateGlobal(t){const{name:e}=t.detail;if("CountryCode"===e){const t=localStorage.getItem("registrationStepsState");if(t){const e=JSON.parse(t);Object.keys(e).forEach((t=>{e[t]&&e[t].registerUserData&&["address1","address2","City","PostalCode"].forEach((i=>{e[t].registerUserData[i]&&(e[t].registerUserData[i].value="")}))})),localStorage.setItem("registrationStepsState",JSON.stringify(e))}}}handleRequestTwofa(){if(!this.twofaDestination)return;const t=new URL(`${this.endpoint}/api/v1/gm/legislation/twoFaCode/`),e=new Headers({"Content-Type":"application/problem+json; charset=utf-8"}),i=JSON.stringify({channel:"Sms",destination:this.twofaDestination});fetch(t.href,{method:"POST",headers:e,body:i}).then((t=>{t.ok||t.json().then((t=>{var e;const i=null===(e=t.thirdPartyResponse)||void 0===e?void 0:e.errorCode;this.errorMessage=bc(i,this.language)||bc("requestTwofaError",this.language)}))})).catch((t=>console.log(t)))}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))}handleBirthDateUpdated(t){var e;const i=t.detail.birthDate;if((null===(e=this.listOfInputValues.find((t=>t.name===mc)))||void 0===e?void 0:e.value)!==pc)return;const r=this.listOfInputValues.find((t=>t.name===uc));if(!i)return r.value="",void window.dispatchEvent(new CustomEvent("documentNumberUpdatedExternally",{detail:""}));const o=i.replace(gc,"").slice(2);r.value=r.value&&r.value.length>=6?o+r.value.slice(6):o,window.dispatchEvent(new CustomEvent("documentNumberUpdatedExternally",{detail:r.value}))}async componentWillLoad(){await customElements.whenDefined("general-input");const t=await this.getRegisterConfig();this.formatConfig(t),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),this.stepsStateMachine({event:"set",type:"inputs"}),this.setupConditionalValidationMap(),this.isLoading=!1}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}setupConditionalValidationMap(){for(const t of this.listOfInputs){const e=[],i=[];for(const r of t.validate.custom)r.correlationField&&r.correlationValue?i.push(r):e.push(r);for(const r of i)if("regex"===r.rule){const i=Object.assign({},t.validate);i.custom=[...e,r];const o=r.correlationField,s=r.correlationValue;this.conditionalValidationMap[o]=this.conditionalValidationMap[o]||{},this.conditionalValidationMap[o][s]=this.conditionalValidationMap[o][s]||{},this.conditionalValidationMap[o][s][t.name]=i}}}handleConditionalValidation(t,e){if(this.conditionalValidationMap[t]&&this.conditionalValidationMap[t][e])for(const[i,r]of Object.entries(this.conditionalValidationMap[t][e])){const t=this.registrationStep&&parseInt(this.registrationStep.replace("Step",""))-1;this.forms[t]&&(this.forms[t][this.registrationStep].find((t=>t.name===i)).validate=r,this.validationChange.emit({validation:r,field:i}))}}nextHandler(t){t.preventDefault(),this.emitValue=!0,this.errorMessage="",this.registerErrors=!1,this.setRegisterStep()}backHandler(t){t.preventDefault(),this.registrationStep=this.stepChange("decrement"),this.errorMessage="",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){var e;const i=()=>{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)),{})),i();break;case"get":const r=JSON.parse(localStorage.getItem("registrationStepsState"));if(!r)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=r[this.registrationStep].registerUserData;this.listOfInputValues=Object.keys(t).map((e=>({name:e,value:t[e].value,isDuplicate:t[e].isDuplicate})));let i=null===(e=this.listOfInputValues.find((t=>t.name===mc)))||void 0===e?void 0:e.value;"Identity Card"===i&&(i=vc),window.documentTypeValue=i,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)}}triggerNotification(t,e="WidgetNotification"){window.postMessage({type:e,data:{type:"error",message:t}},window.location.href)}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.ok?t.json():(this.registerErrors=!0,t.json().then((t=>{this.errorCode=t.thirdPartyResponse.errorCode,this.errorMessage=bc(`${this.errorCode}`,this.language)||bc("generalError",this.language),this.triggerNotification(this.errorMessage)}))))).then((e=>(this.isLoading=!1,e?t(e):i("Get register config is empty or has an error."))),(t=>(console.error("Get register config is empty or has an 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};this.lastStep===this.registrationStep&&Ec("register_submit",{registrationId:this.registrationID}),fetch(t.href,r).then((t=>t.ok?("Step1"===this.registrationStep?Ec("register_step1",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{IBAN:e.registerUserDto.IBAN,username:e.registerUserDto.Username}}):"Step2"===this.registrationStep?Ec("register_step2",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{gender:e.registerUserDto.Gender,fullName:`${e.registerUserDto.FirstnameOnDocument} ${e.registerUserDto.LastNameOnDocument}`,city:e.registerUserDto.City}}):"Step3"===this.registrationStep&&Ec("register_step3",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{OIB:e.registerUserDto.PersonalID,documentType:e.registerUserDto.DocumentType}}),t.json()):t.json().then((t=>(this.errorCode=t.thirdPartyResponse.errorCode,"GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode?this.errorMessage=t.thirdPartyResponse.message:"GmErr_Forbidden_UserAccount_NavExcluded"===this.errorCode?this.errorMessage=bc(`${this.errorCode}`,this.language):"GmErr_BadRequest"==this.errorCode?(this.errorMessage=t.thirdPartyResponse.message,"The Potvrdite SMS is required."==t.thirdPartyResponse.message&&(this.errorMessage=bc("GmErr_BadRequest_INVALID_CODE",this.language))):"GmErr_ATTEMPTS_EXCEEDED"==this.errorCode?(this.pinAttemptsExceeded=!0,this.errorMessage=bc("GmErr_ATTEMPTS_EXCEEDED",this.language)||bc(this.errorCode,this.language)):this.errorMessage=bc(`${this.errorCode}`,this.language)||bc("generalError",this.language),this.triggerNotification(this.errorMessage),Promise.reject(this.errorMessage)))))).then((t=>{this.isLoadingPOST=!1,this.registrationID=t.registrationId,this.listOfActions.find((t=>"/request-2FA"===t))&&(this.twofaDestination=Object.values(this.listOfInputValues.find((t=>"tel"===t.type)).value).join(""),this.handleRequestTwofa()),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"}),this.setupConditionalValidationMap()}),(t=>{this.triggerNotification(t)})))})).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:bc(`${this.errorCode}`,this.language)||bc("generalError",this.language),window.postMessage({type:"registrationFailed",errorMessage:null==t?void 0:t.thirdPartyResponse.message},window.location.href),this.triggerNotification(this.errorMessage),Ec("register_fail",{error:this.errorMessage})}))))).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:bc("successMessage",this.language)}},window.location.href),Ec("register_closed",{userId:t.userId}))})).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.forms=Object.assign(Object.assign({},this.forms),{[this.registrationStep]:this.listOfInputs.map((t=>Object.assign({},t)))}),this.translationUrl&&(e=this.translationUrl,new Promise((t=>{fetch(e).then((t=>t.json())).then((e=>{Object.keys(e).forEach((t=>{cc[t]=cc[t]||{};for(let i in e[t])cc[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)})),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){cc[cc[this.language]?this.language:"en"][t.name]&&Object.keys(cc[this.language][t.name]).forEach((e=>{t[e]=cc[this.language][t.name][e]}))}setInitialValidStatus(t){var e,i,r,o,s;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||!1===(null===(s=t.validate)||void 0===s?void 0:s.mandatory)||!1)}stepChange(t){const e=parseInt(this.registrationStep.replace("Step",""));return"increment"===t?"Step"+(e+1):"decrement"===t?"Step"+(e-1):void 0}getInvalidStatus(t){const e=t.filter((t=>{var e;const i=this.listOfInputs.find((e=>e.name===t.name)),r=null===(e=this.listOfInputValues.find((e=>e.name===t.name)))||void 0===e?void 0:e.value;return!(i&&!i.validate.mandatory&&(null==(o=r)||("string"==typeof o?""===o.trim():Array.isArray(o)?0===o.length:"object"==typeof o&&0===Object.keys(o).length)))&&!1===t.isValid;var o}));return e.length>0}renderErrorMessage(t){return i("p",{class:"registration registration__error-message"},t)}resetAllAddressFields(){this.listOfInputValues=this.listOfInputValues.map((t=>["address1","address2","City","PostalCode"].includes(t.name)?Object.assign(Object.assign({},t),{value:""}):t)),Object.keys(this.forms).forEach((t=>{this.forms[t]=this.forms[t].map((t=>["address1","address2","City","PostalCode"].includes(t.name)?Object.assign(Object.assign({},t),{defaultValue:""}):t))})),this.listOfInputValidity=this.listOfInputValidity.map((t=>["address1","address2","City","PostalCode"].includes(t.name)?Object.assign(Object.assign({},t),{isValid:!1}):t)),this.addresses=[],this.forms=Object.assign({},this.forms)}fetchAddresses(t,e){var i;const r=null===(i=this.listOfInputValues.find((t=>"PostalCode"===t.name)))||void 0===i?void 0:i.value;if(!r||r.length<this.postalcodelength)return;window.dispatchEvent(new CustomEvent("addressFetchStarted",{detail:{postalCode:e}}));const o=new URL(`${this.endpoint}/api/pam/v1/lookup/addresses?country=${t}&postalCode=${e}`),s=new Headers;s.append("Content-Type","application/json"),s.append("Accept","application/json"),fetch(o.href,{method:"GET",headers:s}).then((async t=>{if(!t.ok){const e=await t.json();throw new Error(`Failed to fetch addresses: ${e.message||JSON.stringify(e)}`)}return t.json()})).then((t=>{var e;const i=null===(e=this.listOfInputValues.find((t=>"PostalCode"===t.name)))||void 0===e?void 0:e.value;this.addresses=i&&i.length>=this.postalcodelength&&t.addresses||[]})).catch((()=>{this.addresses=[],this.lastPostalCode=null}))}renderForm(){return i("div",null,i("div",{class:"RegisterTimeline custom__reg"},i("button",{class:"RegisterBackButton "+("Step1"==this.registrationStep?"disabledRegBtn":""),onClick:t=>this.backHandler(t)},i("span",{class:"arrow"},"←"),"Back"),i("div",{class:"RegisterTimelineWrapper"},i("div",{class:"RegisterTimeline__content"},i("div",{class:"step step__one"},i("span",{class:this.getStepClass(1),"data-number":"1"})),i("div",{class:"connector"}),i("div",{class:"step step__two"},i("span",{class:this.getStepClass(2),"data-number":"2"})),i("div",{class:"connector"}),i("div",{class:"step step__three"},i("span",{class:this.getStepClass(3),"data-number":"3"})))),this.errorMessage&&i("p",{class:"RegisterTimeline__errorMsg",innerHTML:this.errorMessage})),i("form",{action:".",id:`RegistrationForm${this.registrationStep}`,class:"registration__form",ref:t=>this.form=t,onClick:this.handleInitialClick},this.forms[this.registrationStep]&&this.forms[this.registrationStep].map((t=>{var e,r;return i("div",{key:t.name,class:"input-wrapper "+(this.ignorebtag&&"Btag"===t.name?"hide-btag":"")},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,mbSource:this.mbSource,isDuplicateInput:t.isDuplicateInput,"client-styling":this.clientStyling,tooltip:t.tooltip,placeholder:null==t.placeholder?"":t.placeholder,"date-format":this.dateFormat,"twofa-destination":this.twofaDestination,"twofa-resend-interval-seconds":null===(e=t.customInfo)||void 0===e?void 0:e.twofaResendIntervalSeconds,"translation-url":this.translationUrl,emitOnClick:this.emitOnClick,onClick:this.handleInitialClick,haspostalcodelookup:this.haspostalcodelookup,addresses:this.haspostalcodelookup?this.addresses:null,postalcodelength:this.haspostalcodelookup?this.postalcodelength:null,"enable-south-african-mode":this.enableSouthAfricanMode,key:["address1","address2","City"].includes(t.name)?`${t.name}-${this.addressUpdateKey}`:t.name,"ignore-country":this.getIgnoreCountry(t),"pin-attempts-exceeded":this.pinAttemptsExceeded}),(null===(r=t.customInfo)||void 0===r?void 0:r.description)&&i("div",{class:"input-description"},t.customInfo.description))})),this.forms[this.registrationStep]&&this.isConsentReady&&this.renderConsents(),this.forms[this.registrationStep]&&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",null,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("div",{class:"registration__buttons-wrapper "+(this.autofilled?"registration__buttons-wrapper--autofilled":"")},i("button",{class:`registration__button registration__button--next ${this.registrationStep} ${!this.isFormValid||this.pinAttemptsExceeded?"registration__button--disabled":""}`,type:"submit",form:`RegistrationForm${this.registrationStep}`,onClick:t=>this.nextHandler(t),disabled:!!this.pinAttemptsExceeded||!this.isFormValid},bc("Step2"===this.registrationStep?"verifyButton":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)},bc("backButton",this.language))))}render(){return this.isLoading&&!this.registerErrors?i("p",{class:"registration registration__loading-message"},bc("loadingMessage",this.language)):!this.isLoading&&this.registerErrors?this.renderErrorMessage(this.errorMessage):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"]}}};Dv.style='@charset "UTF-8";\n*,\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: var(--emw-font-size-small, 13px);\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__loading-message {\n padding-top: 20px;\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, #22B04E));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\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.registration .RegisterTimeline.custom__reg {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n box-sizing: border-box;\n margin-bottom: 40px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimeline__errorMsg {\n width: 100%;\n text-align: center;\n margin-top: 40px;\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n padding: 10px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton {\n appearance: none;\n background: none;\n border: none;\n padding: 0;\n all: unset;\n font-size: var(--emw--pam-page-title, 16px);\n color: var(--emw--color-black, #000000);\n cursor: pointer;\n padding: 8px 8px 8px 0;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton.disabledRegBtn {\n opacity: 0;\n pointer-events: none;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton .arrow {\n margin-right: 6px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n max-width: 100%;\n width: 100%;\n margin-top: 20px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .RegisterTimeline__content {\n width: 300px;\n display: flex;\n align-items: center;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .step {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: var(--emw--pam-page-title, 16px);\n position: relative;\n background-color: var(--emw--registration-input-bg, #f0f5f9);\n color: var(--emw--color-gray-150, #979797);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.active {\n background: var(--emw--color-blue-primary, #111fa3);\n color: var(--emw--color-white, #FFFFFF);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet:not(.checked)::before {\n content: attr(data-number);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.checked {\n background: var(--emw--color-primary, #22B04E);\n color: transparent;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.checked::before {\n content: "✓";\n font-size: 25px;\n color: var(--emw--color-white, #FFFFFF);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .connector {\n flex: 1 1 auto;\n min-width: 40px;\n height: 2px;\n margin: 0 10px;\n border-radius: 2px;\n background-color: var(--emw--color-gray-50, #F9F8F8);\n}\n\n.registration__form {\n grid-template-columns: repeat(1fr);\n}\n\n.registration__error-message {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.hide-btag {\n display: none;\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, #22B04E));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n.input-description {\n margin-top: 5px;\n font-size: var(--emw-font-size-x-small, 12px);\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 Nv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),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)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(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.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return a("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});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 a(`${i}`,this.language)?a(`${i}`,this.language):r}}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:"aea370172d0e55d32dc665a1c340c734334e1caf",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"10e16d10b956c5a647bc68ecffbc2eb0b06fa92a",class:"number__wrapper--flex"},i("label",{key:"0827d47c7278c6fdf8ebdd1dff03b91c39be6812",class:"number__label "+(this.validation.mandatory?"number__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"cb868d01e8555f5e3333240f54d86f0a56641d0f",class:"number__wrapper--relative"},this.tooltip&&i("img",{key:"1aa2b16b59f4bfd4b1dadf2641ec6cb4cfc251bf",class:"number__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"365b70a2eb333878d367d1d414ee0e296c91b3ec",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:"a8639df7ef1e98807a7daffc9da4afd347b1c292",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Nv.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, #22B04E));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}';const zv=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.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)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.noValidation=!1,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(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.noValidation?[]:this.validation.custom.filter((t=>"regex"===t.rule)).map((e=>{const i=new RegExp(e.pattern);let r=!1;return t&&(r=i.test(t)),{rule:e.displayName,ruleKey:e.errorKey,passed:r}}))}setValidity(){var t,e;return!!this.noValidation||(!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,o;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return a("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 a(`${i}`,this.language)?a(`${i}`,this.language):r}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 a(`${t}`,this.language)?a(`${t}`,this.language):e}return(null===(o=this.passwordComplexity)||void 0===o?void 0:o.every((t=>t.passed)))||this.showPopup?void 0:a("invalidPassword",this.language)}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"},a("passwordStrength",this.language)," ",i("span",{class:"password__complexity--text-bold"},a(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,a(`${t.ruleKey}`,this.language)?a(`${t.ruleKey}`,this.language):t.rule))))))}renderCustomComplexityPopup(){return i("div",{class:"customreg-password__complexity "+(this.showPopup?"":"customreg-password__complexity--hidden")},i("p",{class:"customreg-password__complexity--title"},a("PasswordMustContain",this.language)),i("div",{class:"customreg-password__complexity--rules"},this.passwordComplexity.map(((t,e)=>i("div",{class:"customreg-password__complexity--rule",key:e},i("span",{class:`customreg-password__complexity--icon ${t.passed?n.PASSWORD_COMPLEXITY_PASSED:n.PASSWORD_COMPLEXITY_FAILED}`},t.passed?"✓":"✕"),i("span",null,a(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:"fe895585dd908f75eee4ba797dc9c02b237bed7f",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"844bdb3dab98e62cc5d92a761b85adcdc44831d0",class:"password__wrapper--flex"},i("label",{key:"28041267a6df666e7df3660a907f995eff092ae1",class:"password__label "+(this.validation.mandatory?"password__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"79c300643134802f04d8f909fe7bb3895911c88a",class:"password__wrapper--relative"},this.tooltip&&i("img",{key:"43ae58549e42ba59054162c25887ec36eb826aaa",class:"password__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("vaadin-password-field",{key:"0edcfed0ea65666537240f531e5239bd5b11181e",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}),!this.noValidation&&i("small",{key:"c8aeba074e66b771d745194fec535aa0b82de6d8",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&(this.enableSouthAfricanMode?this.renderCustomComplexityPopup():this.renderComplexityPopup()))}get element(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};zv.style='*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.password {\n font-family: "Roboto";\n font-style: normal;\n}\n.password__wrapper {\n position: relative;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 5px;\n container-type: inline-size;\n}\n.password__wrapper--autofilled {\n pointer-events: none;\n}\n.password__wrapper--autofilled .password__label {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__wrapper--autofilled .password__input::part(input-field) {\n color: var(--emw--color-black, #000000);\n}\n.password__wrapper--flex {\n display: flex;\n gap: 5px;\n}\n.password__wrapper--relative {\n position: relative;\n}\n.password__label {\n font-family: inherit;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n line-height: 20px;\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__label--required::after {\n content: "*";\n font-family: inherit;\n color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n margin-left: 2px;\n}\n.password__input {\n width: inherit;\n border: none;\n}\n.password__input[focused]::part(input-field) {\n border-color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n}\n.password__input[invalid]::part(input-field) {\n border: 1px solid var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__input::part(input-field) {\n border-radius: 4px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-100, #E6E6E6);\n color: var(--emw--color-black, #000000);\n background-color: var(--emw--color-white, #FFFFFF);\n font-family: inherit;\n font-style: normal;\n font-weight: 300;\n font-size: 16px;\n line-height: 1.5;\n position: relative;\n margin-bottom: unset;\n height: 44px;\n padding: 0;\n width: 100%;\n}\n.password__input::part(reveal-button) {\n position: relative;\n right: 10px;\n}\n.password__input::part(reveal-button)::before {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__input > input {\n padding: 5px 15px;\n}\n.password__input > input:placeholder-shown {\n color: var(--emw--color-gray-150, #828282);\n}\n.password__error-message {\n position: absolute;\n top: calc(100% + 5px);\n left: 0;\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__complexity {\n height: 150px;\n position: relative;\n padding: 10px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n justify-content: center;\n margin-top: 20px;\n font-weight: 300;\n background: var(--emw--color-white, #FFFFFF);\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n border-radius: 5px;\n border: 1px solid #B0B0B0;\n box-sizing: content-box;\n /* works only in this order */\n}\n.password__complexity meter {\n border-color: transparent; /* Needed for Safari */\n}\n.password__complexity meter[value="1"]::-moz-meter-bar {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter[value="1"]::-webkit-meter-optimum-value {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter:not([value="1"])::-moz-meter-bar {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity--strength {\n display: flex;\n justify-content: space-evenly;\n align-items: center;\n}\n.password__complexity--strength meter::-moz-meter-bar { /* Firefox Pseudo Class */\n background: #B0B0B0;\n}\n.password__complexity--hidden {\n display: none;\n}\n.password__complexity--text-bold {\n font-weight: 500;\n}\n.password__complexity--checkbox {\n margin-right: 5px;\n}\n.password__complexity:after {\n content: "";\n position: absolute;\n width: 25px;\n height: 25px;\n border-top: 1px solid var(--emw--color-gray-150, #828282);\n border-right: 0 solid var(--emw--color-gray-150, #828282);\n border-left: 1px solid var(--emw--color-gray-150, #828282);\n border-bottom: 0 solid var(--emw--color-gray-150, #828282);\n bottom: 92%;\n left: 50%;\n margin-left: -25px;\n transform: rotate(45deg);\n margin-top: -25px;\n background-color: var(--emw--color-white, #FFFFFF);\n}\n@container (max-width: 300px) {\n .password__complexity {\n height: 190px;\n }\n .password__complexity:after {\n width: 14px;\n height: 14px;\n bottom: 96%;\n left: 57%;\n }\n}\n.password__tooltip-icon {\n width: 16px;\n height: auto;\n}\n.password__tooltip {\n position: absolute;\n top: 0;\n left: 20px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-150, #828282);\n color: #2B2D3F;\n padding: 10px;\n border-radius: 5px;\n opacity: 0;\n transition: opacity 0.3s ease-in-out;\n z-index: 10;\n}\n.password__tooltip.visible {\n opacity: 1;\n}\n\n.customreg-password__complexity {\n background: var(--emw--color-white, #FFFFFF);\n border-radius: 6px;\n padding: 14px;\n}\n\n.customreg-password__complexity--title {\n font-size: var(--emw--font-size-small, 14px);\n color: var(--emw--color-black, #000000);\n margin-bottom: 12px;\n}\n\n.customreg-password__complexity--rules {\n display: flex;\n flex-direction: column;\n gap: 10px;\n font-size: var(--emw--font-size-small-xs, 12px);\n}\n\n.customreg-password__complexity--rule {\n display: flex;\n align-items: center;\n color: var(--emw--color-black, #000000);\n}\n\n.customreg-password__complexity--icon {\n width: 20px;\n height: 20px;\n min-width: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n font-weight: bold;\n border-radius: 50%;\n margin-right: 10px;\n}\n\n.customreg-password__complexity--icon.failed {\n background-color: var(--emw--color-error, #FD2839);\n color: var(--emw--color-white, #FFFFFF);\n}\n\n.customreg-password__complexity--icon.passed {\n background-color: var(--emw--color-lottoball-green, #01af15);\n color: var(--emw--color-white, #FFFFFF);\n}\n\n.customreg-password__complexity::after {\n display: none;\n}';const Gv=class{constructor(i){t(this,i),this.sendAddressValue=e(this,"sendAddressValue",7),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value="",this.validationPattern="",this.hasManualAddressBeenTriggered=!1,this.touched=!1,this.maxPostalCodeLength="10",this.handleInput=t=>{const e=t.target.value.toUpperCase();this.value=e,this.touched=!0,this.currentPostalCode=e,this.showNoResultsMessage=!1,this.inputReference&&(this.inputReference.value=e),this.value.length<this.postalcodelength&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),(""===this.value||this.value.length<1)&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.value.length>=this.postalcodelength&&(sessionStorage.setItem("currentPostalCode",this.value),this.showNoResultsMessage=!1,this.addresses&&this.addresses.length>0&&(this.openAddressDropdown=!0));const t=this.isValid;this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),t!==this.isValid&&this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)}),300)},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.showNoResultsMessage=!1,this.openAddressDropdown||(this.showNoResultsMessage=!1)},this.handleFocus=()=>{this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&(this.openAddressDropdown=!0)},this.handlePostalCode=(t,e)=>{t.stopPropagation();const i=`${e.number}`.trim(),r=`${e.street}`.trim(),o=`${e.city}`.trim();this.sendAddressValue.emit({city:o,address1:i,address2:r}),this.value=this.currentPostalCode.toLocaleUpperCase(),this.touched=!0,this.isValid=!0,this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.isFetchingAddresses=!1,this.valueHandler({name:this.name,value:this.value}),this.validityStateHandler({valid:!0,name:this.name}),this.valueHandler({name:"address1",value:i}),this.valueHandler({name:"City",value:o}),r&&this.valueHandler({name:"address2",value:r}),this.refreshTrigger++},this.enterAddressManually=()=>{const t=window.targetInputRefs;if(!t)return;const e=[{name:"PostalCode",ref:t.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:t.address1},{name:"address2",ref:t.address2},{name:"City",ref:t.City}],i=[{name:"PostalCode",ref:t.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:t.address1},{name:"City",ref:t.City}].find((t=>{var e;const i=(null===(e=t.ref)||void 0===e?void 0:e.value)||"";return t.minLength?0===i.length||i.length<t.minLength:0===i.length})),r=(null==i?void 0:i.ref)||t.address1||t.PostalCode;r.scrollIntoView({behavior:"smooth",block:"center"}),this.hasManualAddressBeenTriggered||(this.hasManualAddressBeenTriggered=!0,e.forEach((t=>{var e;if(t.ref){const i=(null===(e=t.ref.shadowRoot)||void 0===e?void 0:e.querySelector("input"))||t.ref;if(i){i.classList.add("pulse-border");const t=()=>{i.classList.remove("pulse-border"),i.removeEventListener("animationend",t)};i.addEventListener("animationend",t)}}}))),r.focus()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.handleOutsideClick=t=>{if(!this.openAddressDropdown)return;const e=t.composedPath?t.composedPath():[],i=e.includes(this.inputReference),r=e.includes(this.addressesDropdownRef),o=e.some((t=>{var e;return t instanceof Element&&(null===(e=t.classList)||void 0===e?void 0:e.contains("option"))}));i||r||o||(this.openAddressDropdown=!1,this.showNoResultsMessage=!1)},this.name="PostalCode",this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.postalcodelength=void 0,this.addresses=void 0,this.ignoreCountry=!1,this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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}),!0!==t||this.value.length||this.valueHandler({name:this.name,value:this.value})}handleAddresses(t){t&&t.length>0?(this.openAddressDropdown=!0,this.showNoResultsMessage=!1):(this.openAddressDropdown=!1,this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength&&setTimeout((()=>{this.currentPostalCode.length>=this.postalcodelength&&!this.isFetchingAddresses&&(this.showNoResultsMessage=!0)}),200)),this.isFetchingAddresses=!1}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleCountryCodeUpdate(t){const{name:e,value:i}=t.detail;this.selectedCountryCode=i,"CountryCode"===e&&(this.resetPostalCodeField(),this.refreshTrigger++)}handleFetchStarted(){this.showNoResultsMessage=!1,this.isFetchingAddresses=!0,this.openAddressDropdown=!1}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}componentDidLoad(){this.defaultValue&&this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.setValidity(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}setValidity(){if(!this.inputReference)return!1;const t=this.inputReference.validity.valid,e=!this.inputReference.value||null!==this.inputReference.value.match(this.validationPattern);return t&&e}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.touched)return"";if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(null==this.inputReference.value.match(this.validationPattern)){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 a(`${i}`,this.language)||r}return""}resetPostalCodeField(){this.value="",this.currentPostalCode="",this.showNoResultsMessage=!1,this.openAddressDropdown=!1,this.isFetchingAddresses=!1,sessionStorage.removeItem("currentPostalCode"),this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name})}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}determineInputValue(){return this.inputReference&&this.name&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.value}render(){var t,e;let r="";this.touched&&(r=1==this.isValid||null==this.isValid?"":"text__input--invalid");let o="UK"===this.selectedCountryCode||"GB"===this.selectedCountryCode||this.ignoreCountry,s=(null===(t=this.addresses)||void 0===t?void 0:t.length)>0&&this.openAddressDropdown&&o,n=this.showNoResultsMessage&&this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&0===(null===(e=this.addresses)||void 0===e?void 0:e.length)&&o,h=this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength;return i("div",{key:"f274a95e0a64ec67f01be8a5cf053d475c16e9ca",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},i("div",{key:"23aa865fd99048cb5c638f0b66b4ff3e8e451d97",class:"text__wrapper--flex"},i("label",{key:"c5d12c1548ec8bfde130a95cc20783f20295a253",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"db2f499ff6ca8f4e3b1a8ac83e7f8856fc1ca888",class:"text__wrapper--relative"},this.tooltip&&i("img",{key:"a1d7ef42855a21f336dbbb337cc8cb644de0c655",class:"text__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("div",{key:"18a6812958691749d0c7c3396ce69a3f46f7f1e4",class:"input__text-wrapper"},i("input",{key:"41aa9e6b8817eee602347d7a3a909f0d81985d3d",name:this.name,id:`${this.name}__input`,value:this.determineInputValue(),type:"text",class:`text__input ${r}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.maxPostalCodeLength,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!o&&i("p",{key:"7083c22e5ebb306ad9ca3c4dc29dcd66bc8b17d5",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},a("enterIEAddressManually",this.language)),s&&i("div",{key:"95ad996e43da19386f4576eb35850c7ba09e1620",class:"input__addresses-container",ref:t=>this.addressesDropdownRef=t},i("div",{key:"3997d92f28ec2ecee49b2480a5edb0a8431aa1c8",class:"options"},this.addresses.map(((t,e)=>i("div",{key:e,class:"option",onClick:e=>this.handlePostalCode(e,t)},t.number," ",t.street," ",t.city))))),h&&i("div",{key:"cf5f9c9f5f96aa2ef316eb44e97768e3552c4a2e",class:"postalcode__loading-spinner"},i("div",{key:"d9b0dda1be9fa871dee4b7d415f84a28b81c3362",class:"loading-spinner"}),i("span",{key:"b5a6c58d910f5be519617288310a8a456e7e8c1c"},a("searchingForAddresses",this.language))),n&&i("div",{key:"2b5503571824ec9f04f58959b8b38ff279fa6d1d",class:"postalcode__no-results-message"},a("postalLookUpNoAddressFound",this.language))),i("small",{key:"00e0cbe15e10c40c8f43939123c10819592fdce2",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};Gv.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}.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, #22B04E));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, #22B04E))}.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}.input__text-wrapper{position:relative}.input__addresses-container{position:relative;left:0;width:100%;background:var(--emw--color-white);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);max-height:200px;overflow-y:auto;z-index:999;margin-top:4px}.input__addresses-container .options{padding:4px 0}.input__addresses-container .option{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6);font-size:14px;line-height:1.4;transition:background-color 0.2s ease;color:var(--emw--registration-gray-800, #333)}.input__addresses-container .option:last-child{border-bottom:none}.input__addresses-container .option:hover{background-color:var(--emw--registration-lightgray-100, #f8f9fa)}.input__addresses-container .option:active{background-color:var(--emw--registration-lightgray-200, #e9ecef)}.input__addresses-container::-webkit-scrollbar{width:6px}.input__addresses-container::-webkit-scrollbar-track{background:var(--emw--registration-lightgray-150, #f1f1f1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb{background:var(--emw--registration-lightgray-300, #c1c1c1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb:hover{background:var(--emw--registration-lightgray-400, #a8a8a8)}.postalcode__no-results-message{color:var(--emw--color-error, var(--emw--color-red, #ed0909));margin-top:10px}.address__manual-input-msg{text-decoration:underline;margin-top:10px;cursor:pointer;transition:opacity 0.3s ease}.address__manual-input-msg:active{opacity:0.7}.postalcode__loading-spinner{display:flex;align-items:center;gap:8px;padding:12px;color:var(--emw--registration-gray-600, #666);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-top:none;background-color:var(--emw--registration-lightgray-50, #f9f9f9)}.loading-spinner{width:14px;height:14px;border:2px solid var(--emw--color-gray-100, #E6E6E6);border-top:2px solid var(--emw--registration-gray-600, #666);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}';const Mv=class{constructor(i){t(this,i),this.sendInputValue=e(this,"sendInputValue",7),this.sendValidityState=e(this,"sendValidityState",7),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(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 a("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:"33493de460303a32a37d253a0fd5f9da59676542",class:`radio__fieldset ${this.name}__input`,ref:t=>this.stylingContainer=t},i("legend",{key:"8aef7aa84a119742e05d72d976c936a560154b3f",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:"bec44ed4007e408ddeb0b0293b82e034c8e165f2",class:"radio__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"a3b0a041beabe3f14661c0af8cd970040d060435",class:"radio__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Mv.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}";const Bv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.touched=!1,this.handleComboChange=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=>{const e=t.currentTarget;e.opened||(this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=t=>{this.touched=!0,this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t;this.displayedOptions=this.options.map((t=>({label:t.label,value:t.value}))),this.isComboBox=(null===(t=this.displayedOptions)||void 0===t?void 0:t.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];return this.getOptions(t).then((t=>{var e;const i=Object.keys(t)[0];this.displayedOptions=t[i].map((t=>({label:t.Name,value:t.Alpha2Code}))),this.isComboBox=(null===(e=this.displayedOptions)||void 0===e?void 0:e.length)>6}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(this.inputReference.value=this.value)),this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",(t=>{if(!0===t.detail.value)this.errorMessage="";else{const e=t.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}}))}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(){var t;return!(null===(t=this.validation)||void 0===t?void 0:t.mandatory)||!!this.value}setErrorMessage(){var t,e,i;if((null===(e=null===(t=this.inputReference)||void 0===t?void 0:t.validity)||void 0===e?void 0:e.valueMissing)||(null===(i=this.vaadinCombo)||void 0===i?void 0:i.invalid))return a("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(){var t,e;let r="";return this.touched&&(r=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"b0ed504667761e5fd77e0ac13382b467448a1944",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"b48d38dc4c2cb3442ff6773a1b1d13191ec4d0e6",class:"select__wrapper--flex"},i("label",{key:"ad592c8c98ecbec1961d22cdfeb8cec910291ea8",class:"select__label",htmlFor:`${this.name}__input`},this.displayName,i("span",{key:"b3c0f2fe9a2d26ade1626878ed9bc1f0b86a23ad",class:this.validation.mandatory?"select__label--required":""})),i("div",{key:"29d0f504d0f51175818dffffb882ac4e6e9c3bde",class:"select__wrapper--relative"},this.tooltip&&i("img",{key:"66e524ffebc43f9418e90b3bd2d7ae62eba47da3",class:"select__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?i("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${r} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:t=>this.vaadinCombo=t,readOnly:this.autofilled,required:null===(t=this.validation)||void 0===t?void 0:t.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):i("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${r} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:t=>this.vaadinCombo=t,readOnly:this.autofilled,required:null===(e=this.validation)||void 0===e?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),i("small",{key:"0143b538740c3a8e9bfcab6bbb44660355c40cf7",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Bv.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}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, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.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:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.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 Uv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.setPhoneValue(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.isValidValue(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.touched=!0,this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.disablePhonePrefix=!1,this.phoneValue="",this.phoneCodesOptions=void 0}setPhoneValue(t){const e=t.replace(/[^0-9]/g,"");this.phoneValue=e,this.inputReference&&(this.inputReference.value=this.phoneValue)}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t;this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.setPhoneValue(null!==(t=this.defaultValue.phone)&&void 0!==t?t:""),this.phoneCodesOptions=[{label:this.prefixValue,value:this.prefixValue}])}componentWillLoad(){if(this.action&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];this.getPhoneCodes(t).then((t=>{this.phoneCodesOptions=t.phoneCodes.map((t=>"object"==typeof t&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t})),this.disablePhonePrefix=this.phoneCodesOptions.length<=1}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.isValidValue(),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)}isValidValue(){return!!this.inputReference&&(!(this.validation.mandatory&&(!this.phoneValue||""===this.phoneValue.trim()))&&(this.phoneValue&&""!==this.phoneValue.trim()?!(this.validation.minLength&&this.phoneValue.length<this.validation.minLength)&&(!(this.validation.maxLength&&this.phoneValue.length>this.validation.maxLength)&&!(this.validationPattern&&!new RegExp(this.validationPattern).test(this.phoneValue))):!this.validation.mandatory))}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 a(`${i}`,this.language)?a(`${i}`,this.language):r}return this.inputReference.validity.tooShort||this.inputReference.validity.tooLong||this.validation.minLength&&this.phoneValue&&this.phoneValue.length<this.validation.minLength||this.validation.maxLength&&this.phoneValue&&this.phoneValue.length>this.validation.maxLength?a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}}):this.inputReference.validity.valueMissing?a("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(){var t;let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"f534de21d5597a3e90912eb87fff893511d09920",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"431fb8cbaea0d2244847823ea4d04d8c73a5341c",class:"tel__wrapper--flex-label"},i("label",{key:"2eb210b2f0c2e0e632997f59fe7aa667578f72fd",class:"tel__label "+(this.validation.mandatory?"tel__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"2d912b828f7d9475a1bbb5bac13495779f31198e",class:"tel__wrapper--relative"},this.tooltip&&i("img",{key:"ce4433263d27dc9d3fb2caf45069d7a92e9ae3a7",class:"tel__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("div",{key:"480cd17eafb4f2ff1e396531429177cb3130eb95",class:`tel__wrapper--flex ${e}`},i("vaadin-combo-box",{key:"5f2292c8509e5f68786d0f462c689102b1c75dc3",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),i("input",{key:"77232e119eed4960f5e1d809507b8585dd112256",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:null!==(t=this.phoneValue)&&void 0!==t?t:"",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:"0d925cee41881c8c822073790e26ca7dc4a81049",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Uv.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;padding-left:4px}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.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, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){height:100%;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__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 Pv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,this.touched=!1,this.handleInput=t=>{const e=t.target,i=!this.enableSouthAfricanMode||this.name!==n.FIRSTNAME_ON_DOCUMENT&&this.name!==n.LASTNAME_ON_DOCUMENT?e.value:e.value.replace(n.NON_LETTERS_REGEX,"");i!==e.value&&(e.value=i),this.value=i,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.updateValidationState(),this.emitValueHandler(!0)}),500)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.updateValidationState()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.haspostalcodelookup=void 0,this.enableSouthAfricanMode=void 0,this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedCountryCode=""}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&this.updateValidationState()),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&this.touched&&this.updateValidationState()}handleValidationChange(t){t.detail.field===this.name&&(this.validation=t.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()))}handleCountryCodeUpdate(t){const{name:e,value:i}=t.detail;this.selectedCountryCode=i,"CountryCode"===e&&["address1","address2","City"].includes(this.name)&&(this.value="",this.touched=!1,this.errorMessage="",this.isValid=!1,this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name}))}handleAddressSelection(t){const{city:e,address1:i,address2:r}=t.detail;if(!["address1","address2","City"].includes(this.name))return;let o="";"address1"===this.name?o=i:"address2"===this.name?o=r:"City"===this.name&&(o=e),this.value=o,this.touched=!0,this.updateValidationState()}connectedCallback(){this.validationPattern=this.setPattern()}handleExternalDocUpdate(t){this.name===n.DOCUMENT_NUMBER&&(this.value=t.detail||"",this.touched=!0,this.inputReference&&(this.inputReference.value=this.value),this.sendInputValue.emit({name:this.name,value:this.value}),this.updateValidationState())}handleDocReset(){this.name===n.DOCUMENT_NUMBER&&(this.value="",this.touched=!1,this.isValid=!1,this.errorMessage="",this.inputReference&&(this.inputReference.value=""),this.validityStateHandler({valid:!1,name:this.name}))}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.haspostalcodelookup&&["address1","address2","City","PostalCode"].includes(this.name)&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.isValidValue()}validateDocument(t,e){const i=t.trim();if(e===n.PASSPORT)return n.PASSPORT_NUMERIC_REGEX.test(i)?{valid:!0}:{valid:!1,errorKey:"PassportLengthError"};if(e===n.SOUTH_AFRICAN_ID){if(i.length!==n.SOUTH_AFRICAN_ID_LENGTH)return{valid:!1,errorKey:"SAIdLengthError"};const t=(t=>{if(!n.SA_ID_BASIC_REGEX.test(t))return!1;const e=t.split("").map((t=>parseInt(t,10)));let i=0;for(let t=0;t<12;t+=2)i+=e[t];let r="";for(let t=1;t<12;t+=2)r+=e[t];return(10-(i+(2*parseInt(r,10)).toString().split("").reduce(((t,e)=>t+parseInt(e,10)),0))%10)%10===e[12]})(i);return t?{valid:!0}:{valid:!1,errorKey:"SAIdInvalidError"}}return{valid:!0}}updateValidationState(){const t=this.isValidValue();this.isValid=t,this.errorMessage=this.touched?t?"":this.setErrorMessage():""}isValidValue(){if(!this.inputReference)return!1;if(this.enableSouthAfricanMode&&this.name===n.DOCUMENT_NUMBER){const t=window.documentTypeValue;return this.validateDocument(this.value,t).valid}return""===this.value.trim()&&!this.validation.mandatory||this.inputReference.validity.valid&&(!this.inputReference.value||null!==this.inputReference.value.match(this.validationPattern))}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;const o=this.value.trim();if(this.enableSouthAfricanMode&&this.name===n.DOCUMENT_NUMBER){const t=window.documentTypeValue,e=this.validateDocument(this.value,t);return e.valid?"":a(e.errorKey,this.language)}if(""===o&&!this.validation.mandatory)return"";if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(null==this.inputReference.value.match(this.validationPattern)){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 a(`${i}`,this.language)||r}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 a(`${t}`,this.language)?a(`${t}`,this.language):e}return""}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:"7e4006b92f6c1e2d8b39694fd85fad7d672c18fd",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},i("div",{key:"e70be4a8daef6cbaa25d438b4d1edaecf6db5159",class:"text__wrapper--flex"},i("label",{key:"0b09f624c460c9d777dd10b887430a4e6de8cacc",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"df36d8f44540b35a65f816ade477c4f4ff077977",class:"text__wrapper--relative"},this.tooltip&&i("img",{key:"85e25624de052cad543c883514ba0c0a522d249f",class:"text__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"bf34796489a118f3c4849c3b8b7680fb77f5a2eb",name:this.name,id:`${this.name}__input`,value:this.value,type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.enableSouthAfricanMode?"":this.validation.minLength,maxlength:this.enableSouthAfricanMode?"":this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"725e4208a8170b6cf34869c44ec8cb29c2c7c93f",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Pv.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}.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, #22B04E));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, #22B04E))}.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}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}';const Lv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(t,e)=>{t.stopPropagation(),window.postMessage({type:`registration${e}Clicked`},window.location.href)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields="true"===this.defaultValue}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){0!==this.options.length&&this.options.forEach((t=>{this.callBackObject[t.name]=e=>{this.handleRevealField(e,t.name)},this.subFieldsObject[t.name].addEventListener("click",this.callBackObject[t.name])}))}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 a("requiredError",this.language)}disconnectedCallback(){this.options.forEach((t=>{this.subFieldsObject[t.name].removeEventListener("click",this.callBackObject[t.name])}))}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:"828751327e59e9649afc04c6c9f7a02ef7dcae8d",class:`togglecheckbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"d02a2a6ef595aaf7142cbc6e9681394ee4db8fee",class:"togglecheckbox__wrapper--flex"},i("input",{key:"fca6401ef6eb178f53471362444d54ed69086429",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:"3781a8fdfeb719422693bcd541a4a3fe708e705a",class:"togglecheckbox__error-message"},this.errorMessage),i("div",{key:"27a4c6b047cd332407ee40c82cf7be1914ed34c9",class:"togglecheckbox__wrapper--relative"},this.tooltip&&i("img",{key:"f1367d7e061d20ad68c24dfbe3147e6b67df746f",class:"togglecheckbox__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("div",{key:"98d42103554de4d14a65eafd1722bf9d587a27f1",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,ref:e=>this.subFieldsObject[t.name]=e})))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};Lv.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, #22B04E))}.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, #22B04E))}.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}';const jv=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.resendCode=e(this,"resendCode",7),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},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)}))},this.setInputRef=(t,e)=>{t&&(this.inputRefs[e]=t)},this.setContainerRef=t=>{t&&(this.containerRef=t)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval((()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)}),1e3)},this.formatTime=()=>{const t=String(Math.floor(this.resendIntervalSecondsLeft/60));let e=String(this.resendIntervalSecondsLeft%60);return 1===e.length&&(e="0"+e),`${t}:${e}`},this.handleInput=(t,e)=>{const i=t.target,r=i.value.slice(-1);if(i.value=r,!r)return;this.code[e]=r,this.enableSouthAfricanMode&&(this.revealedIndexes=[e],this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout((()=>{this.revealedIndexes=[]}),500));const o=this.inputRefs[e+1];o&&o.focus(),this.setValidity(),this.setErrorMessage()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setStreamStyling=t=>{if(window.emMessageBus){const e=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(t,(t=>{e.innerHTML=t,this.clientStyling=t,this.host.shadowRoot.prepend(e)}))}},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.clientStylingUrl="",this.mbSource=void 0,this.limitStylingAppends=!1,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.revealedIndexes=[]}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}handleStylingUrlChange(t,e){t!==e&&this.setClientStylingURL()}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleStylingChange(t,e){t!==e&&this.setClientStyling()}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.setValidity(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}handleKeyDown(t,e){if("Backspace"===t.key){const t=[...this.code];t[e]="",this.code=t,this.enableSouthAfricanMode&&(this.revealedIndexes=this.revealedIndexes.filter((t=>t!==e)));const i=this.inputRefs[e-1];null==i||i.focus()}this.setValidity(),this.setErrorMessage()}handlePaste(t){var e,i;t.preventDefault();const r=null===(i=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("text"))||void 0===i?void 0:i.trim();if(!r)return;const o=r.slice(0,this.validation.maxLength).split("");this.code=[...o,...new Array(this.validation.maxLength-o.length).fill("")],this.enableSouthAfricanMode&&(this.revealedIndexes=o.map(((t,e)=>e)),this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout((()=>{this.revealedIndexes=[]}),500));const s=this.inputRefs[Math.min(o.length,this.inputRefs.length-1)];null==s||s.focus(),this.setValidity(),this.setErrorMessage(),this.enableSouthAfricanMode&&(this.valueHandler({name:this.name,value:this.code.join("")}),this.validityStateHandler({valid:this.isValid,name:this.name}))}setValidity(){const t=this.code.join(""),e=t.length===this.validation.maxLength,i=null!==t.match(this.validationPattern);this.isValid=e&&i}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;if(null!==this.code.join("").match(this.validationPattern))this.errorMessage="";else{const e=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey;e&&(this.errorMessage=a(e,this.language))}}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}getInputDisplayValue(t){const e=this.code[t];return e?this.enableSouthAfricanMode?this.revealedIndexes.includes(t)?e:"*":e:""}render(){return i("div",{key:"08b9139f1c2236dd40a045517a9623ad966f29d3",class:"twofa",ref:t=>this.stylingContainer=t},i("div",{key:"7528885100be3d450ec52aafd6085a4c852710c8",class:"twofa__error-message"},i("p",{key:"51dab3f02156b5eb3b7408f06f2d359cfbda11a7"},this.errorMessage)),i("div",{key:"f336f89ecee0724663b1bbb4d443bb834336b5c1",class:"twofa__description",innerHTML:a("twofaDescription",this.language,{values:{destination:this.destination}})}),i("div",{key:"5127127ccc8e50428f8319fddc9e21606f3b4148",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map(((t,e)=>i("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:this.getInputDisplayValue(e),onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)})))),i("div",{key:"be82ae1192129d571275b78c8097c3023468cf3e",class:"twofa__button-wrapper"},i("p",{key:"11de61d738ffa74bfd44f0d7c88fc4e456647d0c",class:"twofa__resend-message"},a("twofaResendMessage",this.language)),i("button",{key:"84d5c55c4d9bf024164ec52e2100cfcc8c236ac2",class:"twofa__resend-button "+(this.pinAttemptsExceeded?"twofa__resend-button--disabled":""),onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable||this.pinAttemptsExceeded},this.isResendButtonAvailable?a("twofaResendButton",this.language):this.formatTime())))}get host(){return r(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"],clientStylingUrl:["handleStylingUrlChange"],clientStyling:["handleStylingChange"]}}};jv.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}";export{h as checkbox_group_input,d as checkbox_input,Ye as date_input,Ze as email_input,dc as general_input,Dv as general_registration_multistep,Nv as number_input,zv as password_input,Gv as postalcode_input,Mv as radio_input,Bv as select_input,Uv as tel_input,Pv as text_input,Lv as toggle_checkbox_input,jv as twofa_input}
6657
+ `}static get is(){return"vaadin-tabs"}}hi(hc);const dc=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.host.shadowRoot.prepend(t)},this.setStreamStyling=t=>{if(window.emMessageBus){const e=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(t,(t=>{e.innerHTML=t,this.clientStyling=t,this.host.shadowRoot.prepend(e)}))}},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)}))},this.handleClick=t=>{this.emitOnClick&&(t.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.noValidation=!1,this.clientStyling="",this.clientStylingUrl="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60,this.haspostalcodelookup=void 0,this.postalcodelength=void 0,this.addresses=[],this.ignoreCountry=!1,this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.mbSource=void 0,this.limitStylingAppends=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}handleStylingUrlChange(t,e){t!==e&&this.setClientStylingURL()}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])"string"==typeof t[e][i]&&(s[e][i]=t[e][i])})),e(!0)}))})))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}renderInput(){var t;switch(null===(t=this.type)||void 0===t?void 0:t.toLowerCase()){case"text":return this.haspostalcodelookup&&"PostalCode"===this.name?i("postalcode-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,postalcodelength:this.postalcodelength,addresses:this.addresses,ignoreCountry:this.ignoreCountry}):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,haspostalcodelookup:this.haspostalcodelookup,"enable-south-african-mode":this.enableSouthAfricanMode});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,"enable-south-african-mode":this.enableSouthAfricanMode});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,hidePasswordComplexity:this.hidePasswordComplexity,"no-validation":this.noValidation,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,"enable-south-african-mode":this.enableSouthAfricanMode});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});case"twofa":return i("twofa-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,destination:this.twofaDestination,"resend-interval-seconds":this.twofaResendIntervalSeconds,"enable-south-african-mode":this.enableSouthAfricanMode,"pin-attempts-exceeded":this.pinAttemptsExceeded,"mb-source":this.mbSource});default:return this.displayName&&""!==this.displayName.trim()?i("div",{class:"general-non-input",innerHTML:this.displayName}):null}}render(){return i(o,{key:"0474aad44033fe0c48473af7938e9ddb77b684e8",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}get host(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],clientStylingUrl:["handleStylingUrlChange"]}}};dc.style=":host{display:block;height:100%}";const cc={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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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",requestTwofaError:"There was an error when sending the code",loadingMessage:"Please wait, loading...",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.",BadRequest_Duplicate_User:"User with same username already exists.",BadRequest:"The request is invalid, please check the API.",Unauthorized:"The player account number, e-mail address or password is incorrect",Forbidden_TooManyAttempts:"You have made too many invalid login attempts, your account has been blocked, please try again later.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",GmErr_BadRequest_ExpiredToken:"The token you are using is expired.",GmErr_BadRequest_INVALID_CODE:"The code you are using is invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"You have made too many attempts to validate your code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"You have made too many attempts to generate your code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"You have been blocked due to an invalid code.",GmErr_BadRequest_CODE_MISSING:"The token is missing for your reqest.",GmErr_BadRequest_TOKEN_NOT_FOUND:"The token is not found for your request.",GmErr_BadRequest_USER_NOT_REGISTERED:"The user is not register. Please register first.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"The phone number you are using is invalid.",GmErr_BadRequest_INVALID_USER_ID:"The user ID is invalid.",GmErr_UnexpectedException:"Something went wrong... Please try again.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error.",verifyButton:"Verify"},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",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"Hiba történt a kód elküldésekor",successMessage:"Sikeres regisztráció",loadingMessage:"Kérjük, várjon, betöltés folyamatban...",GmErr_BadRequest_Duplicate_User:"Egy ilyen információval rendelkező felhasználó már létezik.",GmErr_BadRequest_PasswordContainsUsername:"A jelszó nem lehet azonos a felhasználónévvel.",GmErr_BadRequest_PasswordContainsEmail:"A jelszó nem lehet azonos az e-mail címmel.",GmErr_BadRequest_Duplicate_PersonalId:"Már létezik egy regisztráció az Ön által megadott adatokkal, vagy helytelen formátumban adta meg az adatokat.",GmErr_Forbidden_UserAccount_NavExcluded:"A felhasználó NAV kizárt. A regisztrációt elutasították.",GmErr_BadRequest_ModelValidationFailed:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadInternalConfigs:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_Unauthorized:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_NotFound:"Valami hiba történt... Kérjük, próbálja újra.",BadRequest_Duplicate_User:"Már létezik egy felhasználó ugyanazzal a felhasználónévvel.",BadRequest:"A kérés érvénytelen, kérjük, ellenőrizze az API-t.",Unauthorized:"A játékos számlaszáma, e-mail címe vagy jelszava helytelen",Forbidden_TooManyAttempts:"Túl sok érvénytelen bejelentkezési kísérletet tett, fiókját zárolták, kérjük, próbálja újra később.",Forbidden_UserAccount_NotActive:"Úgy tűnik, még nem erősítette meg e-mail címét. A regisztráció befejezéséhez és fiókjához való hozzáféréshez kérjük, ellenőrizze e-mail fiókját egy megerősítő üzenetért. Ha nem kapta meg az e-mailt, kérjük, ellenőrizze a spam mappát is. Ha segítségre van szüksége, kérhet segítséget az ügyfélszolgálaton keresztül.",GmErr_BadRequest_ExpiredToken:"A használt token lejárt.",GmErr_BadRequest_INVALID_CODE:"A használt kód érvénytelen.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód érvényesítésére.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Túl sok kísérletet tett a kód generálására.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Érvénytelen kód miatt zárolták.",GmErr_BadRequest_CODE_MISSING:"A kéréshez hiányzik a token.",GmErr_BadRequest_TOKEN_NOT_FOUND:"A kéréshez nem található token.",GmErr_BadRequest_USER_NOT_REGISTERED:"A felhasználó nincs regisztrálva. Kérjük, regisztráljon először.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"A használt telefonszám érvénytelen.",GmErr_BadRequest_INVALID_USER_ID:"A felhasználói azonosító érvénytelen.",GmErr_UnexpectedException:"Valami hiba történt... Kérjük, próbálja újra.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"A felhasználói dokumentum érvénytelen.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF válasza megerősíti, hogy a játékos kiskorú vagy nem horvát lakos.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: A MoF nem ad választ.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"A regisztrációt blokkolták a horvát Pénzügyminisztérium PersonaID ellenőrzési hibája miatt az alábbi okkal: Belső hiba."},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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"Došlo je do pogreške prilikom slanja koda",successMessage:"Register successful",loadingMessage:"Molimo pričekajte, učitavanje...",GmErr_BadRequest_Duplicate_User:"Korisnik s ovim informacijama već postoji.",GmErr_BadRequest_PasswordContainsUsername:"Lozinka ne može biti ista kao korisničko ime.",GmErr_BadRequest_PasswordContainsEmail:"Lozinka ne može biti ista kao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Već postoji registracija s podacima koje ste unijeli ili ste unijeli podatke u pogrešnom formatu.",GmErr_Forbidden_UserAccount_NavExcluded:"Korisnik je NAV isključen. Registracija je odbijena.",GmErr_BadRequest_ModelValidationFailed:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_BadInternalConfigs:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_Unauthorized:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_NotFound:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",BadRequest_Duplicate_User:"Korisnik s istim korisničkim imenom već postoji.",BadRequest:"Zahtjev je nevažeći, molimo provjerite API.",Unauthorized:"Broj računa igrača, e-mail adresa ili lozinka su netočni",Forbidden_TooManyAttempts:"Napravili ste previše nevažećih pokušaja prijave, vaš račun je blokiran, molimo pokušajte ponovno kasnije.",Forbidden_UserAccount_NotActive:"Čini se da još niste potvrdili svoju e-mail adresu. Da biste dovršili registraciju i pristupili svom računu, provjerite svoju e-mail poštu za poruku s potvrdom. Ako niste primili e-mail, provjerite i mapu neželjene pošte. Ako trebate pomoć, možete zatražiti pomoć putem korisničke službe.",GmErr_BadRequest_ExpiredToken:"Token koji koristite je istekao.",GmErr_BadRequest_INVALID_CODE:"Kod koji koristite je nevažeći.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Napravili ste previše pokušaja za validaciju koda.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Napravili ste previše pokušaja za generiranje koda.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Blokirani ste zbog nevažećeg koda.",GmErr_BadRequest_CODE_MISSING:"Token nedostaje za vaš zahtjev.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Token nije pronađen za vaš zahtjev.",GmErr_BadRequest_USER_NOT_REGISTERED:"Korisnik nije registriran. Molimo registrirajte se prvo.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Broj telefona koji koristite je nevažeći.",GmErr_BadRequest_INVALID_USER_ID:"Korisnički ID je nevažeći.",GmErr_UnexpectedException:"Nešto je pošlo po zlu... Molimo pokušajte ponovno.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Korisnički dokument je nevažeći.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Odgovor MoF-a potvrđuje da je igrač maloljetan ili nije stanovnik Hrvatske.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: MoF ne daje odgovor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registracija je blokirana zbog neuspjeha verifikacije PersonaID od strane Ministarstva financija Hrvatske s razlogom: Interna greška."},"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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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",requestTwofaError:"Ocorreu um erro ao enviar o código",successMessage:"Registro bem-sucedido",loadingMessage:"Por favor, aguarde, carregando...",GmErr_BadRequest_Duplicate_User:"Um usuário com essas informações já existe.",GmErr_BadRequest_PasswordContainsUsername:"A senha não pode ser igual ao nome de usuário.",GmErr_BadRequest_PasswordContainsEmail:"A senha não pode ser igual ao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Já existe um registro com os dados que você inseriu ou você inseriu seus dados em um formato incorreto.",GmErr_Forbidden_UserAccount_NavExcluded:"Usuário está NAV Excluído. Registro foi negado.",GmErr_BadRequest_ModelValidationFailed:"Algo deu errado... Por favor, tente novamente.",GmErr_BadInternalConfigs:"Algo deu errado... Por favor, tente novamente.",GmErr_Unauthorized:"Algo deu errado... Por favor, tente novamente.",GmErr_NotFound:"Algo deu errado... Por favor, tente novamente.",BadRequest_Duplicate_User:"Usuário com o mesmo nome de usuário já existe.",BadRequest:"A solicitação é inválida, por favor, verifique a API.",Unauthorized:"O número da conta do jogador, endereço de e-mail ou senha estão incorretos",Forbidden_TooManyAttempts:"Você fez muitas tentativas de login inválidas, sua conta foi bloqueada, por favor, tente novamente mais tarde.",Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu registro e acessar sua conta, verifique sua caixa de entrada de e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar ajuda através do serviço de atendimento ao cliente.",GmErr_BadRequest_ExpiredToken:"O token que você está usando está expirado.",GmErr_BadRequest_INVALID_CODE:"O código que você está usando é inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Você fez muitas tentativas de validar seu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Você fez muitas tentativas de gerar seu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Você foi bloqueado devido a um código inválido.",GmErr_BadRequest_CODE_MISSING:"O token está faltando para sua solicitação.",GmErr_BadRequest_TOKEN_NOT_FOUND:"O token não foi encontrado para sua solicitação.",GmErr_BadRequest_USER_NOT_REGISTERED:"O usuário não está registrado. Por favor, registre-se primeiro.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"O número de telefone que você está usando é inválido.",GmErr_BadRequest_INVALID_USER_ID:"O ID do usuário é inválido.",GmErr_UnexpectedException:"Algo deu errado... Por favor, tente novamente.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno."},"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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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",requestTwofaError:"Se produjo un error al enviar el código",successMessage:"Registro exitoso",loadingMessage:"Por favor, espera, cargando...",GmErr_BadRequest_Duplicate_User:"Ya existe un usuario con esta información.",GmErr_BadRequest_PasswordContainsUsername:"La contraseña no puede ser la misma que el nombre de usuario.",GmErr_BadRequest_PasswordContainsEmail:"La contraseña no puede ser la misma que el correo electrónico.",GmErr_BadRequest_Duplicate_PersonalId:"Ya existe un registro con los datos que ingresaste o ingresaste tus datos en un formato incorrecto.",GmErr_Forbidden_UserAccount_NavExcluded:"El usuario está excluido de NAV. El registro fue denegado.",GmErr_BadRequest_ModelValidationFailed:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_BadInternalConfigs:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_Unauthorized:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_NotFound:"Algo salió mal... Por favor, inténtalo de nuevo.",BadRequest_Duplicate_User:"Ya existe un usuario con el mismo nombre de usuario.",BadRequest:"La solicitud es inválida, por favor verifica la API.",Unauthorized:"El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos",Forbidden_TooManyAttempts:"Has realizado demasiados intentos de inicio de sesión inválidos, tu cuenta ha sido bloqueada, por favor inténtalo de nuevo más tarde.",Forbidden_UserAccount_NotActive:"Parece que aún no has confirmado tu dirección de correo electrónico. Para completar tu registro y acceder a tu cuenta, verifica tu bandeja de entrada de correo electrónico para un mensaje de confirmación. Si no has recibido el correo electrónico, verifica también tu carpeta de spam. Si necesitas ayuda, puedes solicitar ayuda a través del servicio de atención al cliente.",GmErr_BadRequest_ExpiredToken:"El token que estás utilizando ha expirado.",GmErr_BadRequest_INVALID_CODE:"El código que estás utilizando es inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Has realizado demasiados intentos de validar tu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Has realizado demasiados intentos de generar tu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Has sido bloqueado debido a un código inválido.",GmErr_BadRequest_CODE_MISSING:"Falta el token para tu solicitud.",GmErr_BadRequest_TOKEN_NOT_FOUND:"No se encontró el token para tu solicitud.",GmErr_BadRequest_USER_NOT_REGISTERED:"El usuario no está registrado. Por favor, regístrate primero.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"El número de teléfono que estás utilizando es inválido.",GmErr_BadRequest_INVALID_USER_ID:"El ID de usuario es inválido.",GmErr_UnexpectedException:"Algo salió mal... Por favor, inténtalo de nuevo.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."},tr:{GmErr_AMOUNT_INVALID:"Belirtilen miktar geçersiz.",GmErr_REGISTER_OVERAGE:"Kayıt izin verilen sınırı aştı.",GmErr_REGISTER_UNDERAGE:"Kayıt izin verilen sınırın altında.",GmErr_USER_AUTH_FAILED_TOO_MANY_ATTEMPTS:"Çok fazla başarısız deneme nedeniyle kullanıcı kimlik doğrulaması başarısız oldu.",GmErr_USER_ACCOUNT_BLOCKED:"Kullanıcı hesabı engellendi.",GmErr_USER_NOT_VERIFIED:"Kullanıcı doğrulanmadı.",GmErr_USER_NOT_FOUND:"Sağlanan bilgilerle kullanıcı bulunamadı.",GmErr_USER_ID_INVALID:"Sağlanan kullanıcı kimliği geçersiz.",GmErr_USER_AUTH_FAILED:"Kullanıcı kimlik doğrulaması başarısız oldu.",GmErr_USER_DUPLICATED:"Kullanıcı sistemde zaten mevcut.",GmErr_USER_NOT_ACTIVATED:"Kullanıcı hesabı etkinleştirilmedi.",GmErr_PASSWORD_CONTAINS_EMAIL:"Parola e-posta adresini içeremez.",GmErr_PASSWORD_CONTAINS_USERNAME:"Parola kullanıcı adını içeremez.",GmErr_PASSWORD_CONTAINS_SPACES:"Parola boşluk içeremez.",GmErr_PHONE_ALREADY_EXISTS:"User with same phone already exists.",GmErr_USER_4TS_CHECK_EXISTS:"Kullanıcı 4TS kontrolü zaten mevcut.",GmErr_USER_NAV_EXCLUDED_REGISTRATION:"Kullanıcı kayıttan hariç tutuldu.",GmErr_USER_NAV_EXCLUDED_LOGIN:"Kullanıcı girişten hariç tutuldu.",GmErr_USERNAME_REQUIRED:"Bir kullanıcı adı gereklidir.",GmErr_USER_EMAIL_NOT_VERIFIED:"Kullanıcının e-posta adresi doğrulanmadı.",GmErr_EMAIL_ALREADY_EXISTS:"Aynı e-posta ile kullanıcı zaten mevcut.",GmErr_EMAIL_REQUIRED:"Bir e-posta adresi gereklidir.",GmErr_USERNAME_ALREADY_EXISTS:"Kullanıcı adı zaten alınmış.",GmErr_DUPLICATE_PERSONAL_ID:"Çift kişisel kimlik bulundu.",GmErr_INVALID_USER_DOCUMENT:"Kullanıcı belgesi geçersiz.",GmErr_INVALID_CODE:"Sağlanan kod geçersiz.",GmErr_EXPIRED_TOKEN:"Token süresi dolmuş.",GmErr_ATTEMPTS_EXCEEDED:"Maksimum deneme sayısı aşıldı.",GmErr_BLOCK_USER_INCORRECT_CODE:"Yanlış kod nedeniyle kullanıcı engellendi.",GmErr_TOKEN_NOT_FOUND:"Token bulunamadı.",GmErr_INVALID_PHONE_NUMBER:"Sağlanan telefon numarası geçersiz.",GmErr_CODE_MISSING:"Kod eksik.",GmErr_UNREGISTERED_USER:"Kullanıcı kayıtlı değil.",GmErr_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Kod oluşturma denemeleri maksimuma ulaştı.",GmErr_UNEXPECTED_EXCEPTION:"Beklenmeyen bir istisna oluştu.",GmErr_INVALID_USER_ID:"Sağlanan kullanıcı kimliği geçersiz.",GmErr_NOT_ALLOWED_EXCEPTION:"Bu işlem izin verilmiyor.",GmErr_CAN_NOT_FIND_ROLE:"Belirtilen rol bulunamıyor.",GmErr_NO_SESSION_PROVIDED:"Oturum sağlanmadı.",GmErr_NO_ACTIVE_SESSION_FOUND_FOR_THIS_USER:"Bu kullanıcı için aktif oturum bulunamadı.",GmErr_USER_HAS_ALREADY_BEEN_ANONYMIZED:"Kullanıcı zaten anonimleştirilmiş.",GmErr_NO_ROLE_HAS_BEEN_SET_UP_TO_BE_ASSIGNED:"Atanacak bir rol ayarlanmadı.",GmErr_PROVIDED_SESSION_DOES_NOT_BELONG_TO_THE_USER:"Sağlanan oturum kullanıcıya ait değil.",GmErr_PROVIDED_SESSION_DOES_NOT_EXIST:"Sağlanan oturum mevcut değil.",GmErr_ROLE_ALREADY_ASSIGNED_FOR_USER:"Rol zaten kullanıcıya atanmış.",GmErr_ASSIGN_USER_ROLE_FAILED:"Kullanıcıya rol atama başarısız oldu.",GmErr_BadRequest_1000:"Kişisel kimlik numarası ile ilgili bir sorun var.",CountryRestricted:"Maalesef, oyun oynayamayacağımız bir ülkeden kayıt yapmaya çalışıyorsunuz. Bu nedenle kaydınızı işleyemiyoruz.",nextButton:"İleri",backButton:"Geri",doneButton:"Tamam",generalError:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",requestTwofaError:"Kod gönderilirken bir hata oluştu",successMessage:"Kayıt başarılı",loadingMessage:"Lütfen bekleyin, yükleniyor...",GmErr_BadRequest_Duplicate_User:"Bu bilgilerle bir kullanıcı zaten mevcut.",GmErr_BadRequest_PasswordContainsUsername:"Parola kullanıcı adı ile aynı olamaz.",GmErr_BadRequest_PasswordContainsEmail:"Parola e-posta ile aynı olamaz.",GmErr_BadRequest_Duplicate_PersonalId:"Girdiğiniz verilerle zaten bir kayıt var veya verilerinizi yanlış formatta girdiniz.",GmErr_Forbidden_UserAccount_NavExcluded:"Kullanıcı NAV hariç tutuldu. Kayıt reddedildi.",GmErr_BadRequest_ModelValidationFailed:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_BadInternalConfigs:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_Unauthorized:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_NotFound:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",BadRequest_Duplicate_User:"Aynı kullanıcı adı ile kullanıcı zaten mevcut.",BadRequest:"İstek geçersiz, lütfen API'yi kontrol edin.",Unauthorized:"Oyuncu hesap numarası, e-posta adresi veya parola yanlış",Forbidden_TooManyAttempts:"Çok fazla geçersiz giriş denemesi yaptınız, hesabınız bloke edildi, lütfen daha sonra tekrar deneyin.",Forbidden_UserAccount_NotActive:"E-posta adresinizi henüz doğrulamadığınız görünüyor. Kaydınızı tamamlamak ve hesabınıza erişmek için e-posta gelen kutunuzu bir onay mesajı için kontrol edin. E-postayı almadıysanız, spam klasörünüzü de kontrol edin. Yardıma ihtiyacınız varsa, müşteri hizmetleri aracılığıyla yardım isteyebilirsiniz.",GmErr_BadRequest_ExpiredToken:"Kullandığınız token süresi dolmuş.",GmErr_BadRequest_INVALID_CODE:"Kullandığınız kod geçersiz.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Kodunuzu doğrulamak için çok fazla deneme yaptınız.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Kodunuzu oluşturmak için çok fazla deneme yaptınız.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Geçersiz kod nedeniyle engellendiniz.",GmErr_BadRequest_CODE_MISSING:"İsteğiniz için token eksik.",GmErr_BadRequest_TOKEN_NOT_FOUND:"İsteğiniz için token bulunamadı.",GmErr_BadRequest_USER_NOT_REGISTERED:"Kullanıcı kayıtlı değil. Lütfen önce kayıt olun.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Kullandığınız telefon numarası geçersiz.",GmErr_BadRequest_INVALID_USER_ID:"Kullanıcı kimliği geçersiz.",GmErr_UnexpectedException:"Bir şeyler ters gitti... Lütfen tekrar deneyin.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Kullanıcı belgesi geçersiz.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıtı, oyuncunun reşit olmadığını veya Hırvatistan sakini olmadığını doğruluyor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: MoF yanıt vermiyor.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Kayıt, Hırvatistan Maliye Bakanlığı PersonaID doğrulama hatası nedeniyle engellendi: İç hata."},"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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"There was an error when sending the code",successMessage:"Register successful",loadingMessage:"Please wait, loading...",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.",BadRequest_Duplicate_User:"User with same username already exists.",BadRequest:"The request is invalid, please check the API.",Unauthorized:"The player account number, e-mail address or password is incorrect",Forbidden_TooManyAttempts:"You have made too many invalid login attempts, your account has been blocked, please try again later.",Forbidden_UserAccount_NotActive:"It appears that you have not yet confirmed your email address. To complete your registration and access your account, please check your email inbox for a confirmation message. If you haven't received the email, please also check your spam folder. If you need assistance, you can request help via the customer service.",GmErr_BadRequest_ExpiredToken:"The token you are using is expired.",GmErr_BadRequest_INVALID_CODE:"The code you are using is invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"You have made too many attempts to validate your code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"You have made too many attempts to generate your code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"You have been blocked due to an invalid code.",GmErr_BadRequest_CODE_MISSING:"The token is missing for your request.",GmErr_BadRequest_TOKEN_NOT_FOUND:"The token is not found for your request.",GmErr_BadRequest_USER_NOT_REGISTERED:"The user is not registered. Please register first.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"The phone number you are using is invalid.",GmErr_BadRequest_INVALID_USER_ID:"The user ID is invalid.",GmErr_UnexpectedException:"Something went wrong... Please try again.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"The user document is invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF response confirms player IS underaged or IS NOT a Croatian resident.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: MoF fails to return a response.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Registration was blocked due to the Croatian Ministry of Finance PersonaID verification failure with reason: Internal error."},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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"A apărut o eroare la trimiterea codului",successMessage:"Înregistrare reușită",loadingMessage:"Vă rugăm așteptați, se încarcă...",GmErr_BadRequest_Duplicate_User:"Un utilizator cu aceste informații există deja.",GmErr_BadRequest_PasswordContainsUsername:"Parola nu poate fi aceeași cu numele de utilizator.",GmErr_BadRequest_PasswordContainsEmail:"Parola nu poate fi aceeași cu e-mailul.",GmErr_BadRequest_Duplicate_PersonalId:"Există deja o înregistrare cu datele pe care le-ați introdus sau ați introdus datele într-un format incorect.",GmErr_Forbidden_UserAccount_NavExcluded:"Utilizatorul este exclus NAV. Înregistrarea a fost refuzată.",GmErr_BadRequest_ModelValidationFailed:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_BadInternalConfigs:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_Unauthorized:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_NotFound:"Ceva a mers prost... Vă rugăm să încercați din nou.",BadRequest_Duplicate_User:"Există deja un utilizator cu același nume de utilizator.",BadRequest:"Cererea este invalidă, vă rugăm să verificați API-ul.",Unauthorized:"Numărul contului jucătorului, adresa de e-mail sau parola sunt incorecte",Forbidden_TooManyAttempts:"Ați făcut prea multe încercări de conectare invalide, contul dvs. a fost blocat, vă rugăm să încercați din nou mai târziu.",Forbidden_UserAccount_NotActive:"Se pare că nu v-ați confirmat încă adresa de e-mail. Pentru a finaliza înregistrarea și a accesa contul dvs., verificați căsuța de e-mail pentru un mesaj de confirmare. Dacă nu ați primit e-mailul, verificați și folderul de spam. Dacă aveți nevoie de asistență, puteți solicita ajutor prin serviciul de asistență pentru clienți.",GmErr_BadRequest_ExpiredToken:"Tokenul pe care îl utilizați este expirat.",GmErr_BadRequest_INVALID_CODE:"Codul pe care îl utilizați este invalid.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Ați făcut prea multe încercări de validare a codului.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Ați făcut prea multe încercări de generare a codului.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Ați fost blocat din cauza unui cod invalid.",GmErr_BadRequest_CODE_MISSING:"Tokenul lipsește pentru solicitarea dvs.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Tokenul nu a fost găsit pentru solicitarea dvs.",GmErr_BadRequest_USER_NOT_REGISTERED:"Utilizatorul nu este înregistrat. Vă rugăm să vă înregistrați mai întâi.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Numărul de telefon pe care îl utilizați este invalid.",GmErr_BadRequest_INVALID_USER_ID:"ID-ul utilizatorului este invalid.",GmErr_UnexpectedException:"Ceva a mers prost... Vă rugăm să încercați din nou.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Documentul utilizatorului este invalid.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Răspunsul MoF confirmă că jucătorul este minor sau nu este rezident croat.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: MoF nu returnează un răspuns.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Înregistrarea a fost blocată din cauza eșecului verificării PersonaID de către Ministerul Finanțelor din Croația cu motivul: Eroare internă."},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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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",requestTwofaError:"Une erreur est survenue lors de l'envoi du code",loadingMessage:"Veuillez patienter, chargement...",GmErr_BadRequest_Duplicate_User:"Un utilisateur avec ces informations existe déjà.",GmErr_BadRequest_PasswordContainsUsername:"Le mot de passe ne peut pas être le même que le nom d'utilisateur.",GmErr_BadRequest_PasswordContainsEmail:"Le mot de passe ne peut pas être le même que l'e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Il existe déjà une inscription avec les données que vous avez saisies ou vous avez saisi vos données dans un format incorrect.",GmErr_Forbidden_UserAccount_NavExcluded:"L'utilisateur est exclu NAV. L'inscription a été refusée.",GmErr_BadRequest_ModelValidationFailed:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_BadInternalConfigs:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_Unauthorized:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_NotFound:"Quelque chose a mal tourné... Veuillez réessayer.",BadRequest_Duplicate_User:"Un utilisateur avec le même nom d'utilisateur existe déjà.",BadRequest:"La demande est invalide, veuillez vérifier l'API.",Unauthorized:"Le numéro de compte du joueur, l'adresse e-mail ou le mot de passe est incorrect",Forbidden_TooManyAttempts:"Vous avez fait trop de tentatives de connexion invalides, votre compte a été bloqué, veuillez réessayer plus tard.",Forbidden_UserAccount_NotActive:"Il semble que vous n'avez pas encore confirmé votre adresse e-mail. Pour compléter votre inscription et accéder à votre compte, veuillez vérifier votre boîte de réception pour un message de confirmation. Si vous n'avez pas reçu l'e-mail, veuillez également vérifier votre dossier de spam. Si vous avez besoin d'aide, vous pouvez demander de l'aide via le service client.",GmErr_BadRequest_ExpiredToken:"Le jeton que vous utilisez est expiré.",GmErr_BadRequest_INVALID_CODE:"Le code que vous utilisez est invalide.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Vous avez fait trop de tentatives pour valider votre code.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Vous avez fait trop de tentatives pour générer votre code.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Vous avez été bloqué en raison d'un code invalide.",GmErr_BadRequest_CODE_MISSING:"Le jeton est manquant pour votre demande.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Le jeton n'a pas été trouvé pour votre demande.",GmErr_BadRequest_USER_NOT_REGISTERED:"L'utilisateur n'est pas enregistré. Veuillez vous inscrire d'abord.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Le numéro de téléphone que vous utilisez est invalide.",GmErr_BadRequest_INVALID_USER_ID:"L'ID utilisateur est invalide.",GmErr_UnexpectedException:"Quelque chose a mal tourné... Veuillez réessayer.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Le document utilisateur est invalide.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : La réponse du MoF confirme que le joueur est mineur ou n'est pas résident croate.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Le MoF ne renvoie pas de réponse.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"L'inscription a été bloquée en raison de l'échec de la vérification PersonaID par le ministère des Finances croate avec la raison : Erreur interne."},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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"Se produjo un error al enviar el código",successMessage:"Registro exitoso",loadingMessage:"Por favor, espera, cargando...",GmErr_BadRequest_Duplicate_User:"Ya existe un usuario con esta información.",GmErr_BadRequest_PasswordContainsUsername:"La contraseña no puede ser la misma que el nombre de usuario.",GmErr_BadRequest_PasswordContainsEmail:"La contraseña no puede ser la misma que el correo electrónico.",GmErr_BadRequest_Duplicate_PersonalId:"Ya existe un registro con los datos que ingresó o ingresó sus datos en un formato incorrecto.",GmErr_Forbidden_UserAccount_NavExcluded:"El usuario está excluido de NAV. El registro fue denegado.",GmErr_BadRequest_ModelValidationFailed:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_BadInternalConfigs:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_Unauthorized:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_NotFound:"Algo salió mal... Por favor, inténtelo de nuevo.",BadRequest_Duplicate_User:"Ya existe un usuario con el mismo nombre de usuario.",BadRequest:"La solicitud es inválida, por favor verifique la API.",Unauthorized:"El número de cuenta del jugador, la dirección de correo electrónico o la contraseña son incorrectos",Forbidden_TooManyAttempts:"Ha realizado demasiados intentos de inicio de sesión inválidos, su cuenta ha sido bloqueada, por favor intente de nuevo más tarde.",Forbidden_UserAccount_NotActive:"Parece que aún no ha confirmado su dirección de correo electrónico. Para completar su registro y acceder a su cuenta, verifique su bandeja de entrada de correo electrónico para un mensaje de confirmación. Si no ha recibido el correo electrónico, verifique también su carpeta de spam. Si necesita ayuda, puede solicitar ayuda a través del servicio de atención al cliente.",GmErr_BadRequest_ExpiredToken:"El token que está utilizando ha expirado.",GmErr_BadRequest_INVALID_CODE:"El código que está utilizando es inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Ha realizado demasiados intentos de validar su código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Ha realizado demasiados intentos de generar su código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Ha sido bloqueado debido a un código inválido.",GmErr_BadRequest_CODE_MISSING:"Falta el token para su solicitud.",GmErr_BadRequest_TOKEN_NOT_FOUND:"No se encontró el token para su solicitud.",GmErr_BadRequest_USER_NOT_REGISTERED:"El usuario no está registrado. Por favor, regístrese primero.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"El número de teléfono que está utilizando es inválido.",GmErr_BadRequest_INVALID_USER_ID:"El ID de usuario es inválido.",GmErr_UnexpectedException:"Algo salió mal... Por favor, inténtelo de nuevo.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"El documento del usuario es inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: La respuesta del MoF confirma que el jugador es menor de edad o no es residente croata.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: El MoF no devuelve una respuesta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"El registro fue bloqueado debido a la falla de verificación de PersonaID por parte del Ministerio de Finanzas de Croacia con la razón: Error interno."},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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"Ocorreu um erro ao enviar o código",successMessage:"Registro bem-sucedido",loadingMessage:"Por favor, aguarde, a carregar...",GmErr_BadRequest_Duplicate_User:"Um usuário com essas informações já existe.",GmErr_BadRequest_PasswordContainsUsername:"A senha não pode ser igual ao nome de usuário.",GmErr_BadRequest_PasswordContainsEmail:"A senha não pode ser igual ao e-mail.",GmErr_BadRequest_Duplicate_PersonalId:"Já existe um registro com os dados que você inseriu ou você inseriu seus dados em um formato incorreto.",GmErr_Forbidden_UserAccount_NavExcluded:"Usuário está NAV Excluído. Registro foi negado.",GmErr_BadRequest_ModelValidationFailed:"Algo deu errado... Por favor, tente novamente.",GmErr_BadInternalConfigs:"Algo deu errado... Por favor, tente novamente.",GmErr_Unauthorized:"Algo deu errado... Por favor, tente novamente.",GmErr_NotFound:"Algo deu errado... Por favor, tente novamente.",BadRequest_Duplicate_User:"Usuário com o mesmo nome de usuário já existe.",BadRequest:"A solicitação é inválida, por favor, verifique a API.",Unauthorized:"O número da conta do jogador, endereço de e-mail ou senha estão incorretos",Forbidden_TooManyAttempts:"Você fez muitas tentativas de login inválidas, sua conta foi bloqueada, por favor, tente novamente mais tarde.",Forbidden_UserAccount_NotActive:"Parece que você ainda não confirmou seu endereço de e-mail. Para concluir seu registro e acessar sua conta, verifique sua caixa de entrada de e-mail para uma mensagem de confirmação. Se você não recebeu o e-mail, verifique também a pasta de spam. Se precisar de ajuda, você pode solicitar ajuda através do serviço de atendimento ao cliente.",GmErr_BadRequest_ExpiredToken:"O token que você está usando está expirado.",GmErr_BadRequest_INVALID_CODE:"O código que você está usando é inválido.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Você fez muitas tentativas de validar seu código.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Você fez muitas tentativas de gerar seu código.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Você foi bloqueado devido a um código inválido.",GmErr_BadRequest_CODE_MISSING:"O token está faltando para sua solicitação.",GmErr_BadRequest_TOKEN_NOT_FOUND:"O token não foi encontrado para sua solicitação.",GmErr_BadRequest_USER_NOT_REGISTERED:"O usuário não está registrado. Por favor, registre-se primeiro.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"O número de telefone que você está usando é inválido.",GmErr_BadRequest_INVALID_USER_ID:"O ID do usuário é inválido.",GmErr_UnexpectedException:"Algo deu errado... Por favor, tente novamente.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"O documento do usuário é inválido.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: A resposta do MoF confirma que o jogador é menor de idade ou não é residente da Croácia.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: O MoF não retorna uma resposta.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"O registro foi bloqueado devido à falha de verificação do PersonaID pelo Ministério das Finanças da Croácia com o motivo: Erro interno."},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_PHONE_ALREADY_EXISTS:"User with same phone already exists.",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.",requestTwofaError:"Beim Senden des Codes ist ein Fehler aufgetreten",successMessage:"Registrierung erfolgreich",loadingMessage:"Bitte warten, wird geladen...",GmErr_BadRequest_Duplicate_User:"Ein Benutzer mit diesen Informationen existiert bereits.",GmErr_BadRequest_PasswordContainsUsername:"Das Passwort darf nicht mit dem Benutzernamen übereinstimmen.",GmErr_BadRequest_PasswordContainsEmail:"Das Passwort darf nicht mit der E-Mail-Adresse übereinstimmen.",GmErr_BadRequest_Duplicate_PersonalId:"Es gibt bereits eine Registrierung mit den eingegebenen Daten oder Sie haben Ihre Daten in einem falschen Format eingegeben.",GmErr_Forbidden_UserAccount_NavExcluded:"Benutzer ist NAV ausgeschlossen. Registrierung wurde abgelehnt.",GmErr_BadRequest_ModelValidationFailed:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_BadInternalConfigs:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_Unauthorized:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_NotFound:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",BadRequest_Duplicate_User:"Ein Benutzer mit demselben Benutzernamen existiert bereits.",BadRequest:"Die Anfrage ist ungültig, bitte überprüfen Sie die API.",Unauthorized:"Die Kontonummer des Spielers, die E-Mail-Adresse oder das Passwort ist falsch",Forbidden_TooManyAttempts:"Sie haben zu viele ungültige Anmeldeversuche unternommen, Ihr Konto wurde gesperrt, bitte versuchen Sie es später erneut.",Forbidden_UserAccount_NotActive:"Es scheint, dass Sie Ihre E-Mail-Adresse noch nicht bestätigt haben. Um Ihre Registrierung abzuschließen und auf Ihr Konto zuzugreifen, überprüfen Sie bitte Ihr E-Mail-Postfach auf eine Bestätigungsnachricht. Wenn Sie die E-Mail nicht erhalten haben, überprüfen Sie bitte auch Ihren Spam-Ordner. Wenn Sie Hilfe benötigen, können Sie über den Kundenservice Hilfe anfordern.",GmErr_BadRequest_ExpiredToken:"Das von Ihnen verwendete Token ist abgelaufen.",GmErr_BadRequest_INVALID_CODE:"Der von Ihnen verwendete Code ist ungültig.",GmErr_BadRequest_ATTEMPTS_TO_VALIDATE_CODE_EXCEEDED:"Sie haben zu viele Versuche unternommen, Ihren Code zu validieren.",GmErr_BadRequest_ATTEMPTS_TO_GENERATE_CODE_EXCEEDED:"Sie haben zu viele Versuche unternommen, Ihren Code zu generieren.",GmErr_BadRequest_BLOCK_USER_INCORRECT_CODE:"Sie wurden aufgrund eines ungültigen Codes gesperrt.",GmErr_BadRequest_CODE_MISSING:"Das Token fehlt für Ihre Anfrage.",GmErr_BadRequest_TOKEN_NOT_FOUND:"Das Token wurde für Ihre Anfrage nicht gefunden.",GmErr_BadRequest_USER_NOT_REGISTERED:"Der Benutzer ist nicht registriert. Bitte registrieren Sie sich zuerst.",GmErr_BadRequest_INVALID_PHONE_NUMBER:"Die von Ihnen verwendete Telefonnummer ist ungültig.",GmErr_BadRequest_INVALID_USER_ID:"Die Benutzer-ID ist ungültig.",GmErr_UnexpectedException:"Etwas ist schief gelaufen... Bitte versuchen Sie es erneut.",GmErr_BadRequest_INVALID_USER_DOCUMENT:"Das Benutzerdokument ist ungültig.",GmErr_BadRequest_USER_CROATIAN_MOF_VERIFICATION_FAILURE:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Die Antwort des MoF bestätigt, dass der Spieler minderjährig ist oder kein kroatischer Einwohner ist.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_COMMUNICATION_ERROR:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Das MoF gibt keine Antwort.",GmErr_BadRequest_USER_CROATIAN_MOF_PROVIDER_UNEXPECTED_ERROR:"Die Registrierung wurde aufgrund eines Fehlers bei der PersonaID-Verifizierung durch das kroatische Finanzministerium blockiert mit dem Grund: Interner Fehler."}},uc="DocumentNumber",mc="DocumentType",pc="Passport",vc="SouthAfricanID",_c="Mobile",fc=/\s+/g,gc=/-/g,bc=/\D/g,Ec=(t,e,i)=>{let r=cc[cc[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},yc=(t,e={})=>{const i=new CustomEvent("track-custom-event",{detail:{type:t,data:e},bubbles:!0,composed:!0});document.dispatchEvent(i)};var wc={},kc={};!function(t){Object.defineProperty(t,Symbol.toStringTag,{value:"Module"});const e=wc;function i(t){e.append_styles(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 r(t){let i;return{c(){i=e.element("div"),i.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>'},m(r,o){e.insert(r,i,o),t[4](i)},p:e.noop,i:e.noop,o:e.noop,d(r){r&&e.detach(i),t[4](null)}}}function o(t,i,r){let o,{clientstyling:s=""}=i,{clientstylingurl:n=""}=i,{mbsource:a}=i;return e.onMount((()=>()=>{})),t.$$set=t=>{"clientstyling"in t&&r(1,s=t.clientstyling),"clientstylingurl"in t&&r(2,n=t.clientstylingurl),"mbsource"in t&&r(3,a=t.mbsource)},t.$$.update=()=>{3&t.$$.dirty&&s&&o&&e.setClientStyling(o,s),5&t.$$.dirty&&n&&o&&e.setClientStylingURL(o,n),9&t.$$.dirty&&a&&o&&e.setStreamStyling(o,`${a}.Style`,void 0)},[o,s,n,a,function(t){e.binding_callbacks[t?"unshift":"push"]((()=>{o=t,r(0,o)}))}]}class s extends e.SvelteComponent{constructor(t){super(),e.init(this,t,o,r,e.safe_not_equal,{clientstyling:1,clientstylingurl:2,mbsource:3},i)}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),e.flush()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),e.flush()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),e.flush()}}e.create_custom_element(s,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0),t.default=s}(kc);var xc=Object.defineProperty,Sc=Object.defineProperties,Ac=Object.getOwnPropertyDescriptors,Cc=Object.getOwnPropertySymbols,Ic=Object.prototype.hasOwnProperty,Tc=Object.prototype.propertyIsEnumerable,Oc=(t,e,i)=>e in t?xc(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Rc=(t,e)=>{for(var i in e||(e={}))Ic.call(e,i)&&Oc(t,i,e[i]);if(Cc)for(var i of Cc(e))Tc.call(e,i)&&Oc(t,i,e[i]);return t},Dc=(t,e)=>Sc(t,Ac(e)),Nc=(t,e,i)=>(Oc(t,"symbol"!=typeof e?e+"":e,i),i),zc=(t,e,i)=>new Promise(((r,o)=>{var s=t=>{try{a(i.next(t))}catch(t){o(t)}},n=t=>{try{a(i.throw(t))}catch(t){o(t)}},a=t=>t.done?r(t.value):Promise.resolve(t.value).then(s,n);a((i=i.apply(t,e)).next())}));function Gc(){}function Mc(t){return t()}function Bc(){return Object.create(null)}function Uc(t){t.forEach(Mc)}function Pc(t){return"function"==typeof t}function Lc(t,e){return t!=t?e==e:t!==e||t&&"object"==typeof t||"function"==typeof t}function jc(t,...e){if(null==t){for(const t of e)t(void 0);return Gc}const i=t.subscribe(...e);return i.unsubscribe?()=>i.unsubscribe():i}function Fc(t,e){t.appendChild(e)}function Vc(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=Xc("style");t.id=e,t.textContent=i,function(t,e){Fc(t.head||t,e)}(r,t)}}function Hc(t,e,i){t.insertBefore(e,i||null)}function qc(t){t.parentNode&&t.parentNode.removeChild(t)}function $c(t,e){for(let i=0;i<t.length;i+=1)t[i]&&t[i].d(e)}function Xc(t){return document.createElement(t)}function Kc(t){return document.createElementNS("http://www.w3.org/2000/svg",t)}function Wc(t){return document.createTextNode(t)}function Yc(){return Wc(" ")}function Zc(t,e,i,r){return t.addEventListener(e,i,r),()=>t.removeEventListener(e,i,r)}function Qc(t,e,i){null==i?t.removeAttribute(e):t.getAttribute(e)!==i&&t.setAttribute(e,i)}function Jc(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:Qc(t,e,i)}function tu(t,e){t.data!==(e=""+e)&&(t.data=e)}class eu{constructor(t=!1){Nc(this,"is_svg",!1),Nc(this,"e"),Nc(this,"n"),Nc(this,"t"),Nc(this,"a"),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?Kc(e.nodeName):Xc(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)Hc(this.t,this.n[e],t)}p(t){this.d(),this.h(t),this.i(this.a)}d(){this.n.forEach(qc)}}let iu;function ru(t){iu=t}function ou(t){(function(){if(!iu)throw new Error("Function called outside component initialization");return iu})().$$.on_mount.push(t)}const su=[],nu=[];let au=[];const lu=[],hu=Promise.resolve();let du=!1;function cu(t){au.push(t)}const uu=new Set;let mu=0;function pu(){if(0!==mu)return;const t=iu;do{try{for(;mu<su.length;){const t=su[mu];mu++,ru(t),vu(t.$$)}}catch(t){throw su.length=0,mu=0,t}for(ru(null),su.length=0,mu=0;nu.length;)nu.pop()();for(let t=0;t<au.length;t+=1){const e=au[t];uu.has(e)||(uu.add(e),e())}au.length=0}while(su.length);for(;lu.length;)lu.pop()();du=!1,uu.clear(),ru(t)}function vu(t){if(null!==t.fragment){t.update(),Uc(t.before_update);const e=t.dirty;t.dirty=[-1],t.fragment&&t.fragment.p(t.ctx,e),t.after_update.forEach(cu)}}const _u=new Set;function fu(t){return void 0!==(null==t?void 0:t.length)?t:Array.from(t)}function gu(t,e,i,r,o,s,n=null,a=[-1]){const l=iu;ru(t);const h=t.$$={fragment:null,ctx:[],props:s,update:Gc,not_equal:o,bound:Bc(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(l?l.$$.context:[])),callbacks:Bc(),dirty:a,skip_bound:!1,root:e.target||l.$$.root};n&&n(h.root);let d=!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),d&&function(t,e){-1===t.$$.dirty[0]&&(su.push(t),du||(du=!0,hu.then(pu)),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}(t,e)),i})):[],h.update(),d=!0,Uc(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(qc)}else h.fragment&&h.fragment.c();e.intro&&function(t){t&&t.i&&(_u.delete(t),t.i(void 0))}(t.$$.fragment),function(t,e,i){const{fragment:r,after_update:o}=t.$$;r&&r.m(e,i),cu((()=>{const e=t.$$.on_mount.map(Mc).filter(Pc);t.$$.on_destroy?t.$$.on_destroy.push(...e):Uc(e),t.$$.on_mount=[]})),o.forEach(cu)}(t,e.target,e.anchor),pu()}ru(l)}let bu;function Eu(t,e,i,r){var o;const s=null==(o=i[t])?void 0:o.type;if(e="Boolean"===s&&"boolean"!=typeof e?null!=e:e,!r||!i[t])return e;if("toAttribute"===r)switch(s){case"Object":case"Array":return null==e?null:JSON.stringify(e);case"Boolean":return e?"":null;case"Number":return null==e?null:e;default:return e}else switch(s){case"Object":case"Array":return e&&JSON.parse(e);case"Boolean":default:return e;case"Number":return null!=e?+e:e}}function yu(t,e,i,r,o){let s=class extends bu{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){var r;i=Eu(t,i,e),this.$$d[t]=i,null==(r=this.$$c)||r.$set({[t]:i})}})})),r.forEach((t=>{Object.defineProperty(s.prototype,t,{get(){var e;return null==(e=this.$$c)?void 0:e[t]}})})),t.element=s,s}"function"==typeof HTMLElement&&(bu=class extends HTMLElement{constructor(t,e,i){super(),Nc(this,"$$ctor"),Nc(this,"$$s"),Nc(this,"$$c"),Nc(this,"$$cn",!1),Nc(this,"$$d",{}),Nc(this,"$$r",!1),Nc(this,"$$p_d",{}),Nc(this,"$$l",{}),Nc(this,"$$l_u",new Map),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))}}connectedCallback(){return zc(this,null,(function*(){if(this.$$cn=!0,!this.$$c){let t=function(t){return()=>{let e;return{c:function(){e=Xc("slot"),"default"!==t&&Qc(e,"name",t)},m:function(t,i){Hc(t,e,i)},d:function(t){t&&qc(e)}}}};if(yield 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]=Eu(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:Dc(Rc({},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=Eu(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){var r;this.$$r||(t=this.$$g_p(t),this.$$d[t]=Eu(t,i,this.$$p_d,"toProp"),null==(r=this.$$c)||r.$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 wu{constructor(){Nc(this,"$$"),Nc(this,"$$set")}$destroy(){(function(t,e){const i=t.$$;null!==i.fragment&&(function(t){const e=[],i=[];au.forEach((r=>-1===t.indexOf(r)?e.push(r):i.push(r))),i.forEach((t=>t())),au=e}(i.after_update),Uc(i.on_destroy),i.fragment&&i.fragment.d(e),i.on_destroy=i.fragment=null,i.ctx=[])})(this,1),this.$destroy=Gc}$on(t,e){if(!Pc(e))return Gc;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&&0!==Object.keys(t).length&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1)}}"undefined"!=typeof window&&(window.__svelte||(window.__svelte={v:new Set})).v.add("4");const ku="__WIDGET_GLOBAL_STYLE_CACHE__";function xu(t,e){if(t){const i=document.createElement("style");i.innerHTML=e,t.appendChild(i)}}function Su(t,e){if(!t||!e)return;const i=new URL(e);fetch(i.href).then((t=>t.text())).then((e=>{const i=document.createElement("style");i.innerHTML=e,t&&t.appendChild(i)})).catch((t=>{console.error("There was an error while trying to load client styling from URL",t)}))}function Au(t,e,i,r=!1){if(!window.emMessageBus)return;if(!("adoptedStyleSheets"in Document.prototype)||!r)return i=function(t,e){const i=document.createElement("style");return window.emMessageBus.subscribe(e,(e=>{t&&(i.innerHTML=e,t.appendChild(i))}))}(t,e),i;window[ku]||(window[ku]={}),i=function(t,e){return window.emMessageBus.subscribe(e,(i=>{var r;if(!t)return;const o=t.getRootNode(),s=window[ku];let n=null==(r=s[e])?void 0:r.sheet;n?s[e].refCount=s[e].refCount+1:(n=new CSSStyleSheet,n.replaceSync(i),s[e]={sheet:n,refCount:1});const a=o.adoptedStyleSheets||[];a.includes(n)||(o.adoptedStyleSheets=[...a,n])}))}(t,e);const o=i.unsubscribe.bind(i);return i.unsubscribe=()=>{if(window[ku][e]){const t=window[ku][e];t.refCount>1?t.refCount=t.refCount-1:delete window[ku][e]}o()},i}const Cu=[];function Iu(t,e=Gc){let i;const r=new Set;function o(e){if(Lc(t,e)&&(t=e,i)){const e=!Cu.length;for(const e of r)e[1](),Cu.push(e,t);if(e){for(let t=0;t<Cu.length;t+=2)Cu[t][0](Cu[t+1]);Cu.length=0}}}function s(e){o(e(t))}return{set:o,update:s,subscribe:function(n,a=Gc){const l=[n,a];return r.add(l),1===r.size&&(i=e(o,s)||Gc),n(t),()=>{r.delete(l),0===r.size&&i&&(i(),i=null)}}}}function Tu(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:Iu(t,e).subscribe}}(i,((t,i)=>{let n=!1;const a=[];let l=0,h=Gc;const d=()=>{if(l)return;h();const o=e(r?a[0]:a,t,i);s?t(o):h=Pc(o)?o:Gc},c=o.map(((t,e)=>jc(t,(t=>{a[e]=t,l&=~(1<<e),n&&d()}),(()=>{l|=1<<e}))));return n=!0,d(),function(){Uc(c),h(),n=!1}}))}var Ou=function(t){return!(!(e=t)||"object"!=typeof e||function(t){var e=Object.prototype.toString.call(t);return"[object RegExp]"===e||"[object Date]"===e||function(t){return t.$$typeof===Ru}(t)}(t));var e},Ru="function"==typeof Symbol&&Symbol.for?Symbol.for("react.element"):60103;function Du(t,e){return!1!==e.clone&&e.isMergeableObject(t)?Mu(function(t){return Array.isArray(t)?[]:{}}(t),t,e):t}function Nu(t,e,i){return t.concat(e).map((function(t){return Du(t,i)}))}function zu(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 Gu(t,e){try{return e in t}catch(t){return!1}}function Mu(t,e,i){(i=i||{}).arrayMerge=i.arrayMerge||Nu,i.isMergeableObject=i.isMergeableObject||Ou,i.cloneUnlessOtherwiseSpecified=Du;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)&&zu(t).forEach((function(e){r[e]=Du(t[e],i)})),zu(e).forEach((function(o){(function(t,e){return Gu(t,e)&&!(Object.hasOwnProperty.call(t,e)&&Object.propertyIsEnumerable.call(t,e))})(t,o)||(r[o]=Gu(t,o)&&i.isMergeableObject(e[o])?function(t,e){if(!e.customMerge)return Mu;var i=e.customMerge(t);return"function"==typeof i?i:Mu}(o,i)(t[o],e[o],i):Du(e[o],i))})),r}(t,e,i):Du(e,i)}Mu.all=function(t,e){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce((function(t,i){return Mu(t,i,e)}),{})};const Bu=(Uu=Mu)&&Uu.__esModule&&Object.prototype.hasOwnProperty.call(Uu,"default")?Uu.default:Uu;var Uu,Pu=function(t,e){return(Pu=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])})(t,e)};function Lu(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}Pu(t,e),t.prototype=null===e?Object.create(e):(i.prototype=e.prototype,new i)}var ju=function(){return ju=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},ju.apply(this,arguments)};function Fu(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 Vu(t,e){return(e&&e.strategy?e.strategy:Xu)(t,{cache:e&&e.cache?e.cache:Ju,serializer:e&&e.serializer?e.serializer:Zu})}function Hu(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 void 0===s&&(s=t.call(this,r),e.set(o,s)),s}function qu(t,e,i){var r=Array.prototype.slice.call(arguments,3),o=i(r),s=e.get(o);return void 0===s&&(s=t.apply(this,r),e.set(o,s)),s}function $u(t,e,i,r,o){return i.bind(e,t,r,o)}function Xu(t,e){return $u(t,this,1===t.length?Hu:qu,e.cache.create(),e.serializer)}var Ku,Wu,Yu,Zu=function(){return JSON.stringify(arguments)},Qu=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}(),Ju={create:function(){return new Qu}},tm={variadic:function(t,e){return $u(t,this,qu,e.cache.create(),e.serializer)}},em=function(){return em=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},em.apply(this,arguments)};function im(t){return t.type===Wu.literal}function rm(t){return t.type===Wu.argument}function om(t){return t.type===Wu.number}function sm(t){return t.type===Wu.date}function nm(t){return t.type===Wu.time}function am(t){return t.type===Wu.select}function lm(t){return t.type===Wu.plural}function hm(t){return t.type===Wu.pound}function dm(t){return t.type===Wu.tag}function cm(t){return!(!t||"object"!=typeof t||t.type!==Yu.number)}function um(t){return!(!t||"object"!=typeof t||t.type!==Yu.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"}(Ku||(Ku={})),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"}(Wu||(Wu={})),function(t){t[t.number=0]="number",t[t.dateTime=1]="dateTime"}(Yu||(Yu={}));var mm=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,pm=/(?:[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 vm(t){var e={};return t.replace(pm,(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 _m=function(){return _m=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},_m.apply(this,arguments)},fm=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function gm(t){return t.replace(/^(.*?)-/,"")}var bm=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Em=/^(@+)?(\+|#+)?[rs]?$/g,ym=/(\*)(0+)|(#+)(0+)|(0+)/g,wm=/^(0+)$/;function km(t){var e={};return"r"===t[t.length-1]?e.roundingPriority="morePrecision":"s"===t[t.length-1]&&(e.roundingPriority="lessPrecision"),t.replace(Em,(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 xm(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 Sm(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)),!wm.test(t))throw new Error("Malformed concise eng/scientific notation");e.minimumIntegerDigits=t.length}return e}function Am(t){return xm(t)||{}}function Cm(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=gm(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=_m(_m(_m({},e),{notation:"scientific"}),o.options.reduce((function(t,e){return _m(_m({},t),Am(e))}),{}));continue;case"engineering":e=_m(_m(_m({},e),{notation:"engineering"}),o.options.reduce((function(t,e){return _m(_m({},t),Am(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(ym,(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(wm.test(o.stem))e.minimumIntegerDigits=o.stem.length;else if(bm.test(o.stem)){if(o.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");o.stem.replace(bm,(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=_m(_m({},e),{trailingZeroDisplay:"stripIfInteger"}):s&&(e=_m(_m({},e),km(s)))}else if(Em.test(o.stem))e=_m(_m({},e),km(o.stem));else{var n=xm(o.stem);n&&(e=_m(_m({},e),n));var a=Sm(o.stem);a&&(e=_m(_m({},e),a))}}return e}var Im={"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 Tm(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),(Im[i||""]||Im[r||""]||Im["".concat(r,"-001")]||Im["001"])[0]}var Om,Rm=new RegExp("^".concat(mm.source,"*")),Dm=new RegExp("".concat(mm.source,"*$"));function Nm(t,e){return{start:t,end:e}}var zm=!!String.prototype.startsWith&&"_a".startsWith("a",1),Gm=!!String.fromCodePoint,Mm=!!Object.fromEntries,Bm=!!String.prototype.codePointAt,Um=!!String.prototype.trimStart,Pm=!!String.prototype.trimEnd,Lm=Number.isSafeInteger?Number.isSafeInteger:function(t){return"number"==typeof t&&isFinite(t)&&Math.floor(t)===t&&Math.abs(t)<=9007199254740991},jm=!0;try{jm="a"===(null===(Om=Wm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu").exec("a"))||void 0===Om?void 0:Om[0])}catch(Uu){jm=!1}var Fm,Vm=zm?function(t,e,i){return t.startsWith(e,i)}:function(t,e,i){return t.slice(i,i+e.length)===e},Hm=Gm?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},qm=Mm?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},$m=Bm?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}},Xm=Um?function(t){return t.trimStart()}:function(t){return t.replace(Rm,"")},Km=Pm?function(t){return t.trimEnd()}:function(t){return t.replace(Dm,"")};function Wm(t,e){return new RegExp(t,e)}if(jm){var Ym=Wm("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Fm=function(t,e){var i;return Ym.lastIndex=e,null!==(i=Ym.exec(t)[1])&&void 0!==i?i:""}}else Fm=function(t,e){for(var i=[];;){var r=$m(t,e);if(void 0===r||ep(r)||ip(r))break;i.push(r),e+=r>=65536?2:1}return Hm.apply(void 0,i)};var Zm,Qm=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(Ku.UNMATCHED_CLOSING_TAG,Nm(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&Jm(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:Wu.pound,location:Nm(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:Wu.literal,value:"<".concat(r,"/>"),location:Nm(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()||!Jm(this.char()))return this.error(Ku.INVALID_TAG,Nm(n,this.clonePosition()));var a=this.clonePosition();return r!==this.parseTagName()?this.error(Ku.UNMATCHED_CLOSING_TAG,Nm(a,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:Wu.tag,value:r,children:s,location:Nm(i,this.clonePosition())},err:null}:this.error(Ku.INVALID_TAG,Nm(n,this.clonePosition())))}return this.error(Ku.UNCLOSED_TAG,Nm(i,this.clonePosition()))}return this.error(Ku.INVALID_TAG,Nm(i,this.clonePosition()))},t.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&tp(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=Nm(i,this.clonePosition());return{val:{type:Wu.literal,value:r,location:a},err:null}},t.prototype.tryParseLeftAngleBracket=function(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&function(t){return Jm(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 Hm.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(),Hm(i))},t.prototype.parseArgument=function(t,e){var i=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Ku.EXPECT_ARGUMENT_CLOSING_BRACE,Nm(i,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Ku.EMPTY_ARGUMENT,Nm(i,this.clonePosition()));var r=this.parseIdentifierIfPossible().value;if(!r)return this.error(Ku.MALFORMED_ARGUMENT,Nm(i,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Ku.EXPECT_ARGUMENT_CLOSING_BRACE,Nm(i,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:Wu.argument,value:r,location:Nm(i,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Ku.EXPECT_ARGUMENT_CLOSING_BRACE,Nm(i,this.clonePosition())):this.parseArgumentOptions(t,e,r,i);default:return this.error(Ku.MALFORMED_ARGUMENT,Nm(i,this.clonePosition()))}},t.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),e=this.offset(),i=Fm(this.message,e);return this.bumpTo(e+i.length),{value:i,location:Nm(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(Ku.EXPECT_ARGUMENT_TYPE,Nm(s,a));case"number":case"date":case"time":this.bumpSpace();var l=null;if(this.bumpIf(",")){this.bumpSpace();var h=this.clonePosition();if((f=this.parseSimpleArgStyleIfPossible()).err)return f;if(0===(m=Km(f.val)).length)return this.error(Ku.EXPECT_ARGUMENT_STYLE,Nm(this.clonePosition(),this.clonePosition()));l={style:m,styleLocation:Nm(h,this.clonePosition())}}if((g=this.tryParseArgumentClose(r)).err)return g;var d=Nm(r,this.clonePosition());if(l&&Vm(null==l?void 0:l.style,"::",0)){var c=Xm(l.style.slice(2));if("number"===n)return(f=this.parseNumberSkeletonFromString(c,l.styleLocation)).err?f:{val:{type:Wu.number,value:i,location:d,style:f.val},err:null};if(0===c.length)return this.error(Ku.EXPECT_DATE_TIME_SKELETON,d);var u=c;this.locale&&(u=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=Tm(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}(c,this.locale));var m={type:Yu.dateTime,pattern:u,location:l.styleLocation,parsedOptions:this.shouldParseSkeletons?vm(u):{}};return{val:{type:"date"===n?Wu.date:Wu.time,value:i,location:d,style:m},err:null}}return{val:{type:"number"===n?Wu.number:"date"===n?Wu.date:Wu.time,value:i,location:d,style:null!==(o=null==l?void 0: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(Ku.EXPECT_SELECT_ARGUMENT_OPTIONS,Nm(p,em({},p)));this.bumpSpace();var v=this.parseIdentifierIfPossible(),_=0;if("select"!==n&&"offset"===v.value){if(!this.bumpIf(":"))return this.error(Ku.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Nm(this.clonePosition(),this.clonePosition()));var f;if(this.bumpSpace(),(f=this.tryParseDecimalInteger(Ku.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Ku.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE)).err)return f;this.bumpSpace(),v=this.parseIdentifierIfPossible(),_=f.val}var g,b=this.tryParsePluralOrSelectOptions(t,n,e,v);if(b.err)return b;if((g=this.tryParseArgumentClose(r)).err)return g;var E=Nm(r,this.clonePosition());return"select"===n?{val:{type:Wu.select,value:i,options:qm(b.val),location:E},err:null}:{val:{type:Wu.plural,value:i,options:qm(b.val),offset:_,pluralType:"plural"===n?"cardinal":"ordinal",location:E},err:null};default:return this.error(Ku.INVALID_ARGUMENT_TYPE,Nm(s,a))}},t.prototype.tryParseArgumentClose=function(t){return this.isEOF()||125!==this.char()?this.error(Ku.EXPECT_ARGUMENT_CLOSING_BRACE,Nm(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(Ku.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Nm(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(fm).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(t){return this.error(Ku.INVALID_NUMBER_SKELETON,e)}return{val:{type:Yu.number,tokens:i,location:e,parsedOptions:this.shouldParseSkeletons?Cm(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 d=this.clonePosition();if("select"===e||!this.bumpIf("="))break;var c=this.tryParseDecimalInteger(Ku.EXPECT_PLURAL_ARGUMENT_SELECTOR,Ku.INVALID_PLURAL_ARGUMENT_SELECTOR);if(c.err)return c;h=Nm(d,this.clonePosition()),l=this.message.slice(d.offset,this.offset())}if(a.has(l))return this.error("select"===e?Ku.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Ku.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,h);"other"===l&&(s=!0),this.bumpSpace();var u=this.clonePosition();if(!this.bumpIf("{"))return this.error("select"===e?Ku.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Ku.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Nm(this.clonePosition(),this.clonePosition()));var m=this.parseMessage(t+1,e,i);if(m.err)return m;var p=this.tryParseArgumentClose(u);if(p.err)return p;n.push([l,{value:m.val,location:Nm(u,this.clonePosition())}]),a.add(l),this.bumpSpace(),l=(o=this.parseIdentifierIfPossible()).value,h=o.location}return 0===n.length?this.error("select"===e?Ku.EXPECT_SELECT_ARGUMENT_SELECTOR:Ku.EXPECT_PLURAL_ARGUMENT_SELECTOR,Nm(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(Ku.MISSING_OTHER_CLAUSE,Nm(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=Nm(r,this.clonePosition());return o?Lm(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=$m(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(Vm(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()&&ep(this.char());)this.bump()},t.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),e=this.offset(),i=this.message.charCodeAt(e+(t>=65536?2:1));return null!=i?i:null},t}();function Jm(t){return t>=97&&t<=122||t>=65&&t<=90}function tp(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 ep(t){return t>=9&&t<=13||32===t||133===t||t>=8206&&t<=8207||8232===t||8233===t}function ip(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 rp(t){t.forEach((function(t){if(delete t.location,am(t)||lm(t))for(var e in t.options)delete t.options[e].location,rp(t.options[e].value);else om(t)&&cm(t.style)||(sm(t)||nm(t))&&um(t.style)?delete t.style.location:dm(t)&&rp(t.children)}))}function op(t,e){void 0===e&&(e={}),e=em({shouldParseSkeletons:!0,requiresOtherClause:!0},e);var i=new Qm(t,e).parse();if(i.err){var r=SyntaxError(Ku[i.err.kind]);throw r.location=i.err.location,r.originalMessage=i.err.message,r}return null!=e&&e.captureLocation||rp(i.val),i.val}!function(t){t.MISSING_VALUE="MISSING_VALUE",t.INVALID_VALUE="INVALID_VALUE",t.MISSING_INTL_API="MISSING_INTL_API"}(Zm||(Zm={}));var sp,np=function(t){function e(e,i,r){var o=t.call(this,e)||this;return o.code=i,o.originalMessage=r,o}return Lu(e,t),e.prototype.toString=function(){return"[formatjs Error: ".concat(this.code,"] ").concat(this.message)},e}(Error),ap=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('", "'),'"'),Zm.INVALID_VALUE,o)||this}return Lu(e,t),e}(np),lp=function(t){function e(e,i,r){return t.call(this,'Value for "'.concat(e,'" must be of type ').concat(i),Zm.INVALID_VALUE,r)||this}return Lu(e,t),e}(np),hp=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,'"'),Zm.MISSING_VALUE,i)||this}return Lu(e,t),e}(np);function dp(t){return"function"==typeof t}function cp(t,e,i,r,o,s,n){if(1===t.length&&im(t[0]))return[{type:sp.literal,value:t[0].value}];for(var a=[],l=0,h=t;l<h.length;l++){var d=h[l];if(im(d))a.push({type:sp.literal,value:d.value});else if(hm(d))"number"==typeof s&&a.push({type:sp.literal,value:i.getNumberFormat(e).format(s)});else{var c=d.value;if(!o||!(c in o))throw new hp(c,n);var u=o[c];if(rm(d))(!u||"string"==typeof u||"number"==typeof u)&&(u="string"==typeof u||"number"==typeof u?String(u):""),a.push({type:"string"==typeof u?sp.literal:sp.object,value:u});else if(sm(d)){var m="string"==typeof d.style?r.date[d.style]:um(d.style)?d.style.parsedOptions:void 0;a.push({type:sp.literal,value:i.getDateTimeFormat(e,m).format(u)})}else if(nm(d))m="string"==typeof d.style?r.time[d.style]:um(d.style)?d.style.parsedOptions:r.time.medium,a.push({type:sp.literal,value:i.getDateTimeFormat(e,m).format(u)});else if(om(d))(m="string"==typeof d.style?r.number[d.style]:cm(d.style)?d.style.parsedOptions:void 0)&&m.scale&&(u*=m.scale||1),a.push({type:sp.literal,value:i.getNumberFormat(e,m).format(u)});else{if(dm(d)){var p=d.children,v=d.value,_=o[v];if(!dp(_))throw new lp(v,"function",n);var f=_(cp(p,e,i,r,o,s).map((function(t){return t.value})));Array.isArray(f)||(f=[f]),a.push.apply(a,f.map((function(t){return{type:"string"==typeof t?sp.literal:sp.object,value:t}})))}if(am(d)){if(!(g=d.options[u]||d.options.other))throw new ap(d.value,u,Object.keys(d.options),n);a.push.apply(a,cp(g.value,e,i,r,o))}else if(lm(d)){var g;if(!(g=d.options["=".concat(u)])){if(!Intl.PluralRules)throw new np('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',Zm.MISSING_INTL_API,n);var b=i.getPluralRules(e,{type:d.pluralType}).select(u-(d.offset||0));g=d.options[b]||d.options.other}if(!g)throw new ap(d.value,u,Object.keys(d.options),n);a.push.apply(a,cp(g.value,e,i,r,o,u-(d.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===sp.literal&&e.type===sp.literal?i.value+=e.value:t.push(e),t}),[])}(a)}function up(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"}(sp||(sp={}));var mp=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===sp.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 cp(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,ju(ju({},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?ju(ju(ju({},t||{}),e||{}),Object.keys(t).reduce((function(i,r){return i[r]=ju(ju({},t[r]),e[r]||{}),i}),{})):t}(t[r],e[r]),i}),ju({},t)):t}(t.formats,r),this.formatters=o&&o.formatters||function(t){return void 0===t&&(t={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Vu((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.NumberFormat).bind.apply(t,Fu([void 0],e,!1)))}),{cache:up(t.number),strategy:tm.variadic}),getDateTimeFormat:Vu((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.DateTimeFormat).bind.apply(t,Fu([void 0],e,!1)))}),{cache:up(t.dateTime),strategy:tm.variadic}),getPluralRules:Vu((function(){for(var t,e=[],i=0;i<arguments.length;i++)e[i]=arguments[i];return new((t=Intl.PluralRules).bind.apply(t,Fu([void 0],e,!1)))}),{cache:up(t.pluralRules),strategy:tm.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(void 0!==Intl.Locale){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=op,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 pp={},vp=(t,e,i)=>i&&(e in pp||(pp[e]={}),t in pp[e]||(pp[e][t]=i),i),_p=(t,e)=>{if(null==e)return;if(e in pp&&t in pp[e])return pp[e][t];const i=Lp(e);for(let r=0;r<i.length;r++){const o=Ep(i[r],t);if(o)return vp(t,e,o)}};let fp;const gp=Iu({});function bp(t){return t in fp}function Ep(t,e){if(!bp(t))return null;const i=function(t){return fp[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 yp(t,...e){delete pp[t],gp.update((i=>(i[t]=Bu.all([i[t]||{},...e]),i)))}Tu([gp],(([t])=>Object.keys(t))),gp.subscribe((t=>fp=t));const wp={};function kp(t){return wp[t]}function xp(t){return null!=t&&Lp(t).some((t=>{var e;return null==(e=kp(t))?void 0:e.size}))}const Sp={};function Ap(t){if(!xp(t))return t in Sp?Sp[t]:Promise.resolve();const e=function(t){return Lp(t).map((t=>{const e=kp(t);return[t,e?[...e]:[]]})).filter((([,t])=>t.length>0))}(t);return Sp[t]=Promise.all(e.map((([t,e])=>function(t,e){return Promise.all(e.map((e=>(function(t,e){wp[t].delete(e),0===wp[t].size&&delete wp[t]}(t,e),e().then((t=>t.default||t)))))).then((e=>yp(t,...e)))}(t,e)))).then((()=>{if(xp(t))return Ap(t);delete Sp[t]})),Sp[t]}const Cp={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 Ip(){return Cp}const Tp=Iu(!1);var Op=Object.defineProperty,Rp=Object.defineProperties,Dp=Object.getOwnPropertyDescriptors,Np=Object.getOwnPropertySymbols,zp=Object.prototype.hasOwnProperty,Gp=Object.prototype.propertyIsEnumerable,Mp=(t,e,i)=>e in t?Op(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i;let Bp;const Up=Iu(null);function Pp(t){return t.split("-").map(((t,e,i)=>i.slice(0,e+1).join("-"))).reverse()}function Lp(t,e=Ip().fallbackLocale){const i=Pp(t);return e?[...new Set([...i,...Pp(e)])]:i}function jp(){return null!=Bp?Bp:void 0}Up.subscribe((t=>{Bp=null!=t?t:void 0,"undefined"!=typeof window&&null!=t&&document.documentElement.setAttribute("lang",t)}));const Fp=((t,e)=>Rp(t,Dp(e)))(((t,e)=>{for(var i in e||(e={}))zp.call(e,i)&&Mp(t,i,e[i]);if(Np)for(var i of Np(e))Gp.call(e,i)&&Mp(t,i,e[i]);return t})({},Up),{set:t=>{if(t&&function(t){if(null==t)return;const e=Lp(t);for(let t=0;t<e.length;t++){const i=e[t];if(bp(i))return i}}(t)&&xp(t)){const{loadingDelay:e}=Ip();let i;return"undefined"!=typeof window&&null!=jp()&&e?i=window.setTimeout((()=>Tp.set(!0)),e):Tp.set(!0),Ap(t).then((()=>{Up.set(t)})).finally((()=>{clearTimeout(i),Tp.set(!1)}))}return Up.set(t)}}),Vp=t=>{const e=Object.create(null);return i=>{const r=JSON.stringify(i);return r in e?e[r]:e[r]=t(i)}};var Hp=Object.defineProperty,qp=Object.getOwnPropertySymbols,$p=Object.prototype.hasOwnProperty,Xp=Object.prototype.propertyIsEnumerable,Kp=(t,e,i)=>e in t?Hp(t,e,{enumerable:!0,configurable:!0,writable:!0,value:i}):t[e]=i,Wp=(t,e)=>{for(var i in e||(e={}))$p.call(e,i)&&Kp(t,i,e[i]);if(qp)for(var i of qp(e))Xp.call(e,i)&&Kp(t,i,e[i]);return t},Yp=(t,e)=>{var i={};for(var r in t)$p.call(t,r)&&e.indexOf(r)<0&&(i[r]=t[r]);if(null!=t&&qp)for(var r of qp(t))e.indexOf(r)<0&&Xp.call(t,r)&&(i[r]=t[r]);return i};const Zp=(t,e)=>{const{formats:i}=Ip();if(t in i&&e in i[t])return i[t][e];throw new Error(`[svelte-i18n] Unknown "${e}" ${t} format.`)},Qp=Vp((t=>{var e=t,{locale:i,format:r}=e,o=Yp(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return r&&(o=Zp("number",r)),new Intl.NumberFormat(i,o)})),Jp=Vp((t=>{var e=t,{locale:i,format:r}=e,o=Yp(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return r?o=Zp("date",r):0===Object.keys(o).length&&(o=Zp("date","short")),new Intl.DateTimeFormat(i,o)})),tv=Vp((t=>{var e=t,{locale:i,format:r}=e,o=Yp(e,["locale","format"]);if(null==i)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return r?o=Zp("time",r):0===Object.keys(o).length&&(o=Zp("time","short")),new Intl.DateTimeFormat(i,o)})),ev=Vp(((t,e=jp())=>new mp(t,e,Ip().formats,{ignoreTag:Ip().ignoreTag}))),iv=(t,e={})=>{var i,r,o,s;let n=e;"object"==typeof t&&(n=t,t=n.id);const{values:a,locale:l=jp(),default:h}=n;if(null==l)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let d=_p(t,l);if(d){if("string"!=typeof d)return console.warn(`[svelte-i18n] Message with id "${t}" must be of type "string", found: "${typeof d}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),d}else d=null!=(s=null!=(o=null==(r=(i=Ip()).handleMissingMessage)?void 0:r.call(i,{locale:l,id:t,defaultValue:h}))?o:h)?s:t;if(!a)return d;let c=d;try{c=ev(d,l).format(a)}catch(e){e instanceof Error&&console.warn(`[svelte-i18n] Message "${t}" has syntax error:`,e.message)}return c},rv=(t,e)=>((t={})=>{var e=t,{locale:i=jp()}=e,r=Yp(e,["locale"]);return tv(Wp({locale:i},r))})(e).format(t),ov=(t,e)=>((t={})=>{var e=t,{locale:i=jp()}=e,r=Yp(e,["locale"]);return Jp(Wp({locale:i},r))})(e).format(t),sv=(t,e)=>((t={})=>{var e=t,{locale:i=jp()}=e,r=Yp(e,["locale"]);return Qp(Wp({locale:i},r))})(e).format(t),nv=(t,e=jp())=>_p(t,e),av=Tu([Fp,gp],(()=>iv));function lv(t,e){yp(t,e)}Tu([Fp],(()=>rv)),Tu([Fp],(()=>ov)),Tu([Fp],(()=>sv)),Tu([Fp,gp],(()=>nv));const hv={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."}};var dv;function cv(){let t,e;return{c(){t=Kc("svg"),e=Kc("path"),Qc(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"),Qc(t,"xmlns","http://www.w3.org/2000/svg"),Qc(t,"viewBox","0 0 512 512")},m(i,r){Hc(i,t,r),Fc(t,e)},p:Gc,i:Gc,o:Gc,d(e){e&&qc(t)}}}function uv(t){Vc(t,"svelte-etk3ty",'.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{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-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{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-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty: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-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{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, 10px);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-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{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-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{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-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}')}function mv(t,e,i){const r=t.slice();return r[64]=e[i],r}function pv(t,e,i){const r=t.slice();return r[61]=e[i],r[62]=e,r[63]=i,r}function vv(t,e,i){const r=t.slice();return r[64]=e[i],r}function _v(t){let e,i,r=fu(t[9]),o=[];for(let e=0;e<r.length;e+=1)o[e]=Ev(mv(t,r,e));return{c(){e=Xc("div"),i=Xc("form");for(let t=0;t<o.length;t+=1)o[t].c();Qc(i,"class","checkbox svelte-etk3ty"),Qc(e,"class","legacyStyle")},m(r,s){Hc(r,e,s),Fc(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=fu(t[9]),s=0;s<r.length;s+=1){const n=mv(t,r,s);o[s]?o[s].p(n,e):(o[s]=Ev(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&&qc(e),$c(o,i),t[31](null)}}}function fv(t){let e,i,r,o,s,n,a,l,h=t[16]("title")||t[16]("description"),d=(t[16]("saveButtonContent")||"Save Consents")+"",c=h&&yv(t),u=fu(t[8]),m=[];for(let e=0;e<u.length;e+=1)m[e]=Cv(pv(t,u,e));let p=t[6]&&Iv(t);return{c(){c&&c.c(),e=Yc();for(let t=0;t<m.length;t+=1)m[t].c();i=Yc(),r=Xc("button"),s=Yc(),p&&p.c(),n=Wc(""),Qc(r,"class","SaveConsentsButton svelte-etk3ty"),r.disabled=o=!t[14]},m(o,h){c&&c.m(o,h),Hc(o,e,h);for(let t=0;t<m.length;t+=1)m[t]&&m[t].m(o,h);Hc(o,i,h),Hc(o,r,h),r.innerHTML=d,Hc(o,s,h),p&&p.m(o,h),Hc(o,n,h),a||(l=Zc(r,"click",t[17]),a=!0)},p(t,s){if(65536&s[0]&&(h=t[16]("title")||t[16]("description")),h?c?c.p(t,s):(c=yv(t),c.c(),c.m(e.parentNode,e)):c&&(c.d(1),c=null),867088&s[0]){let e;for(u=fu(t[8]),e=0;e<u.length;e+=1){const r=pv(t,u,e);m[e]?m[e].p(r,s):(m[e]=Cv(r),m[e].c(),m[e].m(i.parentNode,i))}for(;e<m.length;e+=1)m[e].d(1);m.length=u.length}65536&s[0]&&d!==(d=(t[16]("saveButtonContent")||"Save Consents")+"")&&(r.innerHTML=d),16384&s[0]&&o!==(o=!t[14])&&(r.disabled=o),t[6]?p?p.p(t,s):(p=Iv(t),p.c(),p.m(n.parentNode,n)):p&&(p.d(1),p=null)},d(t){t&&(qc(e),qc(i),qc(r),qc(s),qc(n)),c&&c.d(t),$c(m,t),p&&p.d(t),a=!1,l()}}}function gv(t){let e,i,r;return{c(){e=Xc("div"),i=Xc("strong"),r=Wc(t[7]),Qc(i,"class","ErrorMessage svelte-etk3ty"),Qc(e,"class","ContainerCenter svelte-etk3ty")},m(t,o){Hc(t,e,o),Fc(e,i),Fc(i,r)},p(t,e){128&e[0]&&tu(r,t[7])},d(t){t&&qc(e)}}}function bv(t){let e;return{c(){e=Xc("general-animation-loading"),Jc(e,"clientstyling",t[1]),Jc(e,"clientstylingurl",t[2]),Jc(e,"mbsource",t[3])},m(t,i){Hc(t,e,i)},p(t,i){2&i[0]&&Jc(e,"clientstyling",t[1]),4&i[0]&&Jc(e,"clientstylingurl",t[2]),8&i[0]&&Jc(e,"mbsource",t[3])},d(t){t&&qc(e)}}}function Ev(t){let e,i,r,o,s,n,a,l,h,d,c,u,m,p,v,_,f,g=(t[16](`${t[64].tagCode}__description`)||t[64].tagCode)+"",b=t[64].mustAccept?" *":"";function E(...e){return t[30](t[64],...e)}return{c(){e=Xc("div"),i=Xc("input"),s=Yc(),n=Xc("label"),a=Xc("div"),l=new eu(!1),h=Wc(b),c=Yc(),u=Xc("small"),p=Yc(),Qc(i,"class","checkbox__input svelte-etk3ty"),Qc(i,"type","checkbox"),i.checked=r="1"===t[64].status,Qc(i,"id",o=`${t[64].tagCode}__input`),l.a=h,Qc(a,"class","checkbox__label-text svelte-etk3ty"),Qc(n,"class","checkbox__label svelte-etk3ty"),Qc(n,"for",d=`${t[64].tagCode}__input`),Qc(u,"class","checkbox__error-message svelte-etk3ty"),Qc(u,"id",m="checkBoxError__"+t[64].tagCode),Qc(e,"class",v="checkbox__wrapper "+t[64].tagCode+"__input svelte-etk3ty")},m(t,r){Hc(t,e,r),Fc(e,i),Fc(e,s),Fc(e,n),Fc(n,a),l.m(g,a),Fc(a,h),Fc(e,c),Fc(e,u),Fc(e,p),_||(f=Zc(i,"input",E),_=!0)},p(s,a){t=s,512&a[0]&&r!==(r="1"===t[64].status)&&(i.checked=r),512&a[0]&&o!==(o=`${t[64].tagCode}__input`)&&Qc(i,"id",o),66048&a[0]&&g!==(g=(t[16](`${t[64].tagCode}__description`)||t[64].tagCode)+"")&&l.p(g),512&a[0]&&b!==(b=t[64].mustAccept?" *":"")&&tu(h,b),512&a[0]&&d!==(d=`${t[64].tagCode}__input`)&&Qc(n,"for",d),512&a[0]&&m!==(m="checkBoxError__"+t[64].tagCode)&&Qc(u,"id",m),512&a[0]&&v!==(v="checkbox__wrapper "+t[64].tagCode+"__input svelte-etk3ty")&&Qc(e,"class",v)},d(t){t&&qc(e),_=!1,f()}}}function yv(t){let e,i,r=t[16]("title"),o=t[16]("description"),s=r&&wv(t),n=o&&kv(t);return{c(){e=Xc("div"),s&&s.c(),i=Yc(),n&&n.c(),Qc(e,"class","PlayerConsentsHeader svelte-etk3ty")},m(t,r){Hc(t,e,r),s&&s.m(e,null),Fc(e,i),n&&n.m(e,null)},p(t,a){65536&a[0]&&(r=t[16]("title")),r?s?s.p(t,a):(s=wv(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=kv(t),n.c(),n.m(e,null)):n&&(n.d(1),n=null)},d(t){t&&qc(e),s&&s.d(),n&&n.d()}}}function wv(t){let e,i,r=t[16]("title")+"";return{c(){e=Xc("h2"),i=Wc(r),Qc(e,"class","PlayerConsentsTitle")},m(t,r){Hc(t,e,r),Fc(e,i)},p(t,e){65536&e[0]&&r!==(r=t[16]("title")+"")&&tu(i,r)},d(t){t&&qc(e)}}}function kv(t){let e,i,r=t[16]("description")+"";return{c(){e=Xc("p"),i=Wc(r),Qc(e,"class","PlayerConsentsDescription")},m(t,r){Hc(t,e,r),Fc(e,i)},p(t,e){65536&e[0]&&r!==(r=t[16]("description")+"")&&tu(i,r)},d(t){t&&qc(e)}}}function xv(){let t;return{c(){t=Xc("sup"),t.textContent="*",Qc(t,"class","ConsentRequired svelte-etk3ty")},m(e,i){Hc(e,t,i)},d(e){e&&qc(t)}}}function Sv(t){let e,i=(t[16](`${t[64].tagCode}__description`)||t[64].description)+"";return{c(){e=Xc("p"),Qc(e,"class","ConsentDescription svelte-etk3ty")},m(t,r){Hc(t,e,r),e.innerHTML=i},p(t,r){66304&r[0]&&i!==(i=(t[16](`${t[64].tagCode}__description`)||t[64].description)+"")&&(e.innerHTML=i)},d(t){t&&qc(e)}}}function Av(t){let e,i,r,o,s,n,a,l,h,d,c,u,m,p,v,_=(t[16](`${t[64].tagCode}__name`)||t[64].friendlyName)+"",f=!0===t[64].mustAccept&&xv(),g="true"===t[4]&&Sv(t);function b(...e){return t[29](t[64],...e)}return{c(){e=Xc("div"),i=Xc("div"),r=Xc("h4"),o=new eu(!1),s=Yc(),f&&f.c(),n=Yc(),g&&g.c(),a=Yc(),l=Xc("label"),h=Xc("input"),u=Yc(),m=Xc("span"),o.a=s,Qc(r,"class","ConsentName svelte-etk3ty"),Qc(i,"class","ConsentContent"),Qc(h,"type","checkbox"),h.disabled=d=!0===t[64].mustAccept&&!0===t[12][t[64].tagCode],h.checked=c=t[13][t[64].tagCode],Qc(h,"class","svelte-etk3ty"),Qc(m,"class","Slider Round svelte-etk3ty"),Qc(l,"class","ToggleSwitch svelte-etk3ty"),Qc(e,"class","ConsentItem svelte-etk3ty")},m(t,d){Hc(t,e,d),Fc(e,i),Fc(i,r),o.m(_,r),Fc(r,s),f&&f.m(r,null),Fc(i,n),g&&g.m(i,null),Fc(e,a),Fc(e,l),Fc(l,h),Fc(l,u),Fc(l,m),p||(v=Zc(h,"input",b),p=!0)},p(e,s){t=e,66304&s[0]&&_!==(_=(t[16](`${t[64].tagCode}__name`)||t[64].friendlyName)+"")&&o.p(_),!0===t[64].mustAccept?f||(f=xv(),f.c(),f.m(r,null)):f&&(f.d(1),f=null),"true"===t[4]?g?g.p(t,s):(g=Sv(t),g.c(),g.m(i,null)):g&&(g.d(1),g=null),4864&s[0]&&d!==(d=!0===t[64].mustAccept&&!0===t[12][t[64].tagCode])&&(h.disabled=d),8960&s[0]&&c!==(c=t[13][t[64].tagCode])&&(h.checked=c)},d(t){t&&qc(e),f&&f.d(),g&&g.d(),p=!1,v()}}}function Cv(t){let e,i,r,o,s,n,a,l,h,d,c,u,m=(t[16](`${t[61].categoryTagCode}__category`)||t[61].friendlyName)+"";function p(){t[26].call(n,t[61])}function v(){return t[27](t[61])}function _(...e){return t[28](t[61],...e)}let f=fu(t[9].filter(_)),g=[];for(let e=0;e<f.length;e+=1)g[e]=Av(vv(t,f,e));return{c(){e=Xc("div"),i=Xc("div"),r=Xc("h3"),o=Yc(),s=Xc("label"),n=Xc("input"),a=Yc(),l=Xc("span"),h=Yc(),d=Xc("div");for(let t=0;t<g.length;t+=1)g[t].c();Qc(n,"type","checkbox"),Qc(n,"class","svelte-etk3ty"),Qc(l,"class","Slider Round svelte-etk3ty"),Qc(s,"class","ToggleSwitch Big svelte-etk3ty"),Qc(i,"class","AccordionHeader svelte-etk3ty"),Qc(d,"class","AccordionContent svelte-etk3ty"),Qc(e,"class","AccordionItem svelte-etk3ty")},m(_,f){Hc(_,e,f),Fc(e,i),Fc(i,r),r.innerHTML=m,Fc(i,o),Fc(i,s),Fc(s,n),n.checked=t[11][t[61].categoryTagCode],Fc(s,a),Fc(s,l),Fc(e,h),Fc(e,d);for(let t=0;t<g.length;t+=1)g[t]&&g[t].m(d,null);c||(u=[Zc(n,"change",p),Zc(n,"change",v)],c=!0)},p(e,i){if(t=e,65792&i[0]&&m!==(m=(t[16](`${t[61].categoryTagCode}__category`)||t[61].friendlyName)+"")&&(r.innerHTML=m),2304&i[0]&&(n.checked=t[11][t[61].categoryTagCode]),602896&i[0]){let e;for(f=fu(t[9].filter(_)),e=0;e<f.length;e+=1){const r=vv(t,f,e);g[e]?g[e].p(r,i):(g[e]=Av(r),g[e].c(),g[e].m(d,null))}for(;e<g.length;e+=1)g[e].d(1);g.length=f.length}},d(t){t&&qc(e),$c(g,t),c=!1,Uc(u)}}}function Iv(t){let e,i,r,o,s;return{c(){e=Xc("div"),i=Xc("circle-exclamation-icon"),r=Yc(),o=Xc("strong"),s=Wc(t[6]),Jc(i,"class","svelte-etk3ty"),Qc(o,"class","ErrorMessage svelte-etk3ty"),Qc(e,"class","ConsentErrorContainer svelte-etk3ty")},m(t,n){Hc(t,e,n),Fc(e,i),Fc(e,r),Fc(e,o),Fc(o,s)},p(t,e){64&e[0]&&tu(s,t[6])},d(t){t&&qc(e)}}}function Tv(t){let e,i;function r(t){return t[10]?bv:t[7]?gv:t[0]?fv:t[0]?void 0:_v}let o=r(t),s=o&&o(t);return{c(){e=Xc("div"),i=Xc("div"),s&&s.c(),Qc(i,"class","ConsentsContainer svelte-etk3ty"),Qc(e,"class"," svelte-etk3ty")},m(r,o){Hc(r,e,o),Fc(e,i),s&&s.m(i,null),t[32](i)},p(t,e){o===(o=r(t))&&s?s.p(t,e):(s&&s.d(1),s=o&&o(t),s&&(s.c(),s.m(i,null)))},i:Gc,o:Gc,d(i){i&&qc(e),s&&s.d(),t[32](null)}}}function Ov(t,e,i){let r;!function(t,e,i){t.$$.on_destroy.push(jc(av,i))}(t,0,(t=>i(16,r=t)));let o,s,n,{session:a=""}=e,{userid:l=""}=e,{endpoint:h=""}=e,{clientstyling:d=""}=e,{clientstylingurl:c=""}=e,{mbsource:u}=e,{lang:m="en"}=e,{displayconsentdescription:p=""}=e,{translationurl:v=""}=e,{modalconsents:_="false"}=e,f=!1,g=!1,b="",E="",y="",w="",k=[],x=[],S=[],A=!0,C=!0,I={},T={},O={},R={},D={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"}},N=!1;Object.keys(hv).forEach((t=>{lv(t,hv[t])}));const z=(t,e=!1)=>{e?i(7,w=t):(j(),i(6,y=t))},G=(t,e,i,o=!1)=>zc(this,null,(function*(){try{const o=yield fetch(t,i);if(!o.ok)throw new Error(r(e));const s=yield o.json();return g?s:s.filter((t=>!0===t.showOnRegister))}catch(t){throw z(t instanceof TypeError?r(e):t.message,o),t}})),M=()=>zc(this,null,(function*(){try{let t=[],e=[];if(g?[t,e]=yield B():t=yield B(),i(10,A=!1),x=[...t],i(8,k=U(x).sort(((t,e)=>t.categoryTagCode.localeCompare(e.categoryTagCode)))),i(11,I=P(k)),T=Rc({},I),i(9,S=[...e]),x.forEach((t=>{let e=S.find((e=>e.tagCode===t.tagCode));e||(e=Dc(Rc({},t),{status:D.denied.value}),S.push(e)),e.description=t.description,e.orderNumber=t.orderNumber})),"true"===_){if(i(9,S=S.filter((t=>t.status===D.expired.value))),0!==S.length)return;z(r("wrongModalConfig"),!0)}L()}catch(t){throw i(10,A=!1),z(t instanceof TypeError?r("invalidUrl"):t.message,!0),t}})),B=()=>zc(this,null,(function*(){const t=new URL(`${h}/api/v1/gm/consents`);if(t.searchParams.append("Status","Active"),!g)return yield G(t.href,"fetchConsentsError",{method:"GET"},!0);const e=new URL(`${h}/api/v1/gm/user-consents/${E}`);return yield Promise.all([G(t.href,"fetchConsentsError",{method:"GET"},!0),G(e.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":b,"Content-Type":"application/json"}})])})),U=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())},P=t=>{const e=localStorage.getItem("categoryToggle"+E);if(null===e){const e=t.reduce(((t,e)=>(t[e.categoryTagCode]=!1,t)),{});return localStorage.setItem("categoryToggle"+E,JSON.stringify(e)),e}return JSON.parse(e)},L=()=>{S.forEach((t=>{i(12,O[t.tagCode]=t.status===D.accepted.value,O)})),i(13,R=Rc({},O))},j=()=>{i(13,R=Rc({},O)),i(11,I=Rc({},T))},F=t=>{S.filter((e=>e.category.categoryTagCode===t)).forEach((e=>{e.status=e.status===D.denied.value?D.accepted.value:D.denied.value,i(13,R[e.tagCode]=I[t]||!1,R)})),i(14,s=$())},V=(t,e,o)=>{const s=S.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===D.accepted[a]?(s.status=D.denied[a],l&&(l.innerHTML=r("requiredError"))):(s.status=D.accepted[a],l&&(l.innerHTML="")),e){i(13,R[s.tagCode]=!R[s.tagCode],R);const t=S.filter((t=>t.category.categoryTagCode===e.categoryTagCode)).every((t=>t.status!==D.denied.value));i(11,I[e.categoryTagCode]=t,I)}H()},H=(t=>{let e;return function(...i){const r=this;clearTimeout(e),e=setTimeout((()=>{t.apply(r,i)}),500)}})((()=>q())),q=()=>{i(14,s=$()),a||(window.postMessage({type:"isConsentsValid",isValid:s}),localStorage.setItem("playerConsents",JSON.stringify(S)))},$=()=>0===S.filter((t=>S.some((e=>t.tagCode===e.tagCode&&e.mustAccept&&(t.status===D.denied.key||t.status===D.denied.value))))).length,X=t=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:t}},window.location.href)};return ou((()=>{setTimeout((()=>{i(25,f=!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:S,registrationId:t}),headers:{"Content-Type":"application/json",Accept:"application/json"}};fetch(e.href,r).then((t=>{t.ok||(N=!0)})).catch((t=>(console.error(t),X(t)))).finally((()=>{i(10,A=!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,d=t.clientstyling),"clientstylingurl"in t&&i(2,c=t.clientstylingurl),"mbsource"in t&&i(3,u=t.mbsource),"lang"in t&&i(22,m=t.lang),"displayconsentdescription"in t&&i(4,p=t.displayconsentdescription),"translationurl"in t&&i(23,v=t.translationurl),"modalconsents"in t&&i(24,_=t.modalconsents)},t.$$.update=()=>{33554433&t.$$.dirty[0]&&f&&a&&(a&&(b=a,g=!0),l&&(E=l),M()),1&t.$$.dirty[0]&&(a||(()=>{N=!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():(N=!0,t.json().then((t=>(console.error(t),X(t))))))).then((t=>{if(!N){if(x=t,localStorage.getItem("playerConsents")){try{i(9,S=JSON.parse(localStorage.getItem("playerConsents")))}catch(t){return console.error(t),X(t)}return}return i(9,S=x.map((t=>({id:t.id,status:D.denied.key,friendlyName:t.friendlyName,tagCode:t.tagCode,selected:null,mustAccept:t.mustAccept})))),localStorage.setItem("playerConsents",JSON.stringify(S)),S}})).catch((t=>(console.error(t),X(t)))).finally((()=>{i(10,A=!1)}))})()),34&t.$$.dirty[0]&&d&&o&&xu(o,d),36&t.$$.dirty[0]&&c&&o&&Su(o,c),40&t.$$.dirty[0]&&o&&Au(o,`${u}.Style`,void 0),4194304&t.$$.dirty[0]&&m&&function(t){Fp.set(t)}(m),8388608&t.$$.dirty[0]&&v&&(()=>{let t=new URL(v);fetch(t.href).then((t=>t.json())).then((t=>{Object.keys(t).forEach((e=>{lv(e,t[e])}))})).catch((t=>{console.log(t)}))})()},[a,d,c,u,p,o,y,w,k,S,A,I,O,R,s,n,r,()=>zc(this,null,(function*(){if(!C)return;C=!1;const t=[],e=[];if(Object.keys(R).forEach((i=>{const r=S.find((t=>t.tagCode===i));R[i]!==O[i]&&(r?t.push({tagCode:i,status:R[i]?D.accepted.value:D.denied.value}):e.push({tagCode:i,status:R[i]?D.accepted.value:D.denied.value}))})),!g)return localStorage.setItem("categoryToggle"+E,JSON.stringify(I)),T=Rc({},I),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(e)},window.location.href),void(C=!0);const o=new URL(`${h}/api/v1/gm/user-consents/${E}`);try{const r=yield Promise.allSettled([e.length>0&&G(o.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":b,"Content-Type":"application/json"},body:JSON.stringify({userConsents:e})}),t.length>0&&G(o.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":b,"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,R[r.tagCode]=O[r.tagCode],R)}})),r.every((t=>"fulfilled"===t.status))&&(localStorage.setItem("categoryToggle"+E,JSON.stringify(I)),T=Rc({},I),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),i(12,O=Rc({},R)))}catch(t){z(t instanceof TypeError?r("saveChangesError"):t.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href)}finally{C=!0,i(14,s=!1)}})),F,V,l,h,m,v,_,f,function(t){I[t.categoryTagCode]=this.checked,i(11,I)},t=>F(t.categoryTagCode),(t,e)=>e.category.categoryTagCode===t.categoryTagCode,t=>V(0,t.category,t.id),t=>V(0,null,t.id),function(t){nu[t?"unshift":"push"]((()=>{n=t,i(15,n)}))},function(t){nu[t?"unshift":"push"]((()=>{o=t,i(5,o)}))}]}"undefined"!=typeof window&&(customElements.define=(dv=customElements.define,function(...t){try{return dv.apply(this,t)}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}}),Promise.resolve().then((()=>kc)).then((({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element)}))),customElements.define("circle-exclamation-icon",yu(class extends wu{constructor(t){super(),gu(this,t,null,cv,Lc,{})}},{},[],[],!0));class Rv extends wu{constructor(t){super(),gu(this,t,Ov,Tv,Lc,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},uv,[-1,-1,-1])}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),pu()}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),pu()}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),pu()}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),pu()}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),pu()}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),pu()}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),pu()}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),pu()}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),pu()}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),pu()}}yu(Rv,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);const Dv=Object.freeze(Object.defineProperty({__proto__:null,default:Rv},Symbol.toStringTag,{value:"Module"}));if(wc.PlayerConsents_ce=Dv,wc.SvelteComponent=wu,wc.append_styles=Vc,wc.binding_callbacks=nu,wc.create_custom_element=yu,wc.detach=qc,wc.element=Xc,wc.flush=pu,wc.init=gu,wc.insert=Hc,wc.noop=Gc,wc.onMount=ou,wc.safe_not_equal=Lc,wc.setClientStyling=xu,wc.setClientStylingURL=Su,wc.setStreamStyling=Au,"undefined"!=typeof window){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((()=>wc)).then((t=>t.PlayerConsents_ce)).then((({default:t})=>{!customElements.get("player-consents")&&customElements.define("player-consents",t.element)}))}const Nv=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.registrationStepUpdated=e(this,"registrationStepUpdated",7),this.validationChange=e(this,"validationChange",7),this.isSelectingAddress=!1,this.lastPostalCode=null,this.pinAttemptsExceeded=!1,this.documentIdNineDigits=!1,this.isTransitioning=!1,this.selectedCountry="",this.listOfInputValues=[],this.listOfInputValidity=[],this.listOfActions=[],this.listOfInputs=[],this.conditionalValidationMap={},this.lastStep="",this.emitValue=!1,this.form=null,this.errorCode="",this.backButtonPressed=!1,this.registerErrors=!1,this.extraActions=[],this.registerCredentialsEvent=null,this.twofaDestination="",this.postalcodelength=5,this.registrationStepsState={regId:null},this.getIgnoreCountry=t=>"PostalCode"===t.name&&this.haspostalcodelookup&&!this.listOfInputs.some((t=>"CountryCode"===t.name)),this.getStepClass=t=>this.currentStep===t?"bullet active":this.currentStep>t?"bullet checked":"bullet",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)}))},this.setStreamStyling=t=>{if(window.emMessageBus){const e=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(t,(t=>{e.innerHTML=t,this.clientStyling=t,this.host.shadowRoot.prepend(e)}))}},this.handleInitialClick=t=>{this.isInitalInteraction&&(yc("register_start",{field:t.target.name}),this.isInitalInteraction=!1)},this.endpoint=void 0,this.language="en",this.clientStyling="",this.mbSource=void 0,this.clientStylingUrl="",this.translationUrl="",this.dateFormat=void 0,this.buttonInsideForm=void 0,this.btag=null,this.emitOnClick=!1,this.haspostalcodelookup=!1,this.ignorebtag=!1,this.enableSouthAfricanMode=!0,this.errorMessage="",this.isFormValid=!1,this.isConsentValid=!1,this.isConsentReady=!1,this.isLoading=!0,this.isLoadingPOST=!1,this.registrationStep="",this.forms={},this.limitStylingAppends=!1,this.autofilled=!1,this.isInitalInteraction=!0,this.addresses=[],this.addressUpdateKey=0,this.currentStep=1}sendStep(){this.registrationStepUpdated.emit(this.registrationStep),window.postMessage({type:"registrationStepUpdated",step:this.registrationStep},window.location.href);const t=Number(this.registrationStep.replace("Step",""));this.currentStep=t}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){var e,i;if(this.isTransitioning)return;const{name:r,value:o,type:s}=t.detail;let n=this.listOfInputValues.find((t=>t.name==r));if(n?(n.value=o,n.type=s||null):(n={name:r,value:o,isDuplicate:!1,type:s||null},this.listOfInputValues=[...this.listOfInputValues,n]),r===mc){let t=o;"identitycard"===(t||"").replace(fc,"").toLowerCase()&&(t=vc),window.documentTypeValue=t;const e=this.listOfInputValues.find((t=>t.name===uc));e&&(e.value="");const i=this.listOfInputValidity.find((t=>t.name===uc));return i&&(i.isValid=!1),window.dispatchEvent(new CustomEvent("documentNumberUpdatedExternally",{detail:""})),window.dispatchEvent(new CustomEvent("documentNumberResetValidation")),void this.stepsStateMachine({event:"set",type:"values"})}const a=window.documentTypeValue;if(r===uc&&a===pc)if(8===o.length||9===o.length){const t=(t=>{if(!t)return null;const e=t.slice(0,6),i=parseInt(e.slice(0,2),10),r=e.slice(2,4),o=e.slice(4,6),s=$e(`${i>(new Date).getFullYear()%100?1900+i:2e3+i}${r}${o}`,"yyyyMMdd",new Date);return p(s)?at(s,"yyyy-MM-dd"):null})(o);window.dispatchEvent(new CustomEvent("documentIdUpdated",{detail:t||""})),this.documentIdNineDigits=!0}else this.documentIdNineDigits&&window.dispatchEvent(new CustomEvent("documentIdUpdated",{detail:""})),this.documentIdNineDigits=!1;if(r===_c){const t=null!=o?o:{};let i="string"==typeof t.phone?t.phone:"";i.startsWith("0")&&(i=i.slice(1));const r=this.listOfInputValues.find((t=>t.name===_c));r&&(r.value={prefix:null!==(e=t.prefix)&&void 0!==e?e:"",phone:i})}if(this.haspostalcodelookup&&("CountryCode"===r&&(this.selectedCountry=o,"GB"===o&&(this.selectedCountry="UK"),this.resetAllAddressFields(),window.dispatchEvent(new CustomEvent("countryCodeUpdated",{detail:{name:r,value:this.selectedCountry}}))),"PostalCode"===r))if(this.listOfInputs.some((t=>"CountryCode"===t.name))||(this.selectedCountry="UK"),!this.isSelectingAddress&&this.addresses.length>0&&o!==this.lastPostalCode&&(this.addresses=[]),o.length>=this.postalcodelength){if(this.isSelectingAddress)return;if(!this.lastPostalCode||this.lastPostalCode!==o||0===this.addresses.length){const t=this.selectedCountry||(null===(i=this.listOfInputValues.find((t=>"CountryCode"===t.name)))||void 0===i?void 0:i.value)||"";"GB"!==this.selectedCountry&&"UK"!==this.selectedCountry||(this.addrDebounce&&clearTimeout(this.addrDebounce),this.addrDebounce=setTimeout((()=>{this.fetchAddresses(t,o)}),500)),this.lastPostalCode=o}}else o.length<this.postalcodelength&&(this.addresses=[],this.lastPostalCode=null);this.stepsStateMachine({event:"set",type:"values"}),this.handleConditionalValidation(r,o)}handleAddressSelection(t){const{city:e,address1:i,address2:r}=t.detail;this.listOfInputValues=this.listOfInputValues.map((t=>"address1"===t.name?Object.assign(Object.assign({},t),{value:i||""}):"address2"===t.name?Object.assign(Object.assign({},t),{value:r||""}):"City"===t.name?Object.assign(Object.assign({},t),{value:e||""}):t)),this.forms[this.registrationStep]&&(this.forms[this.registrationStep]=this.forms[this.registrationStep].map((t=>"address1"===t.name?Object.assign(Object.assign({},t),{defaultValue:i}):"address2"===t.name?Object.assign(Object.assign({},t),{defaultValue:r}):"City"===t.name?Object.assign(Object.assign({},t),{defaultValue:e}):t))),this.addressUpdateKey=Date.now(),this.forms=Object.assign({},this.forms),this.stepsStateMachine({event:"set",type:"values"}),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),this.isSelectingAddress=!1}handleCountryCodeUpdateGlobal(t){const{name:e}=t.detail;if("CountryCode"===e){const t=sessionStorage.getItem("registrationStepsState");if(t){const e=JSON.parse(t);Object.keys(e).forEach((t=>{e[t]&&e[t].registerUserData&&["address1","address2","City","PostalCode"].forEach((i=>{e[t].registerUserData[i]&&(e[t].registerUserData[i].value="")}))})),sessionStorage.setItem("registrationStepsState",JSON.stringify(e))}}}handleRequestTwofa(){if(!this.twofaDestination)return;const t=new URL(`${this.endpoint}/api/v1/gm/legislation/twoFaCode/`),e=new Headers({"Content-Type":"application/problem+json; charset=utf-8"}),i=JSON.stringify({channel:"Sms",destination:this.twofaDestination});fetch(t.href,{method:"POST",headers:e,body:i}).then((t=>{t.ok||t.json().then((t=>{var e;const i=null===(e=t.thirdPartyResponse)||void 0===e?void 0:e.errorCode;this.errorMessage=Ec(i,this.language)||Ec("requestTwofaError",this.language)}))})).catch((t=>console.log(t)))}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))}handleBirthDateUpdated(t){var e;const i=t.detail.birthDate;if((null===(e=this.listOfInputValues.find((t=>t.name===mc)))||void 0===e?void 0:e.value)!==pc)return;const r=this.listOfInputValues.find((t=>t.name===uc));if(!i)return r.value="",void window.dispatchEvent(new CustomEvent("documentNumberUpdatedExternally",{detail:""}));const o=i.replace(gc,"").slice(2);r.value=r.value&&r.value.length>=6?o+r.value.slice(6):o,window.dispatchEvent(new CustomEvent("documentNumberUpdatedExternally",{detail:r.value}))}async componentWillLoad(){await customElements.whenDefined("general-input");const t=performance.getEntriesByType("navigation");t.length>0&&"reload"===t[0].type&&sessionStorage.removeItem("registrationStepsState");const e=await this.getRegisterConfig();this.formatConfig(e),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),this.stepsStateMachine({event:"set",type:"inputs"}),this.setupConditionalValidationMap(),this.isLoading=!1}componentDidLoad(){this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}setupConditionalValidationMap(){for(const t of this.listOfInputs){const e=[],i=[];for(const r of t.validate.custom)r.correlationField&&r.correlationValue?i.push(r):e.push(r);for(const r of i)if("regex"===r.rule){const i=Object.assign({},t.validate);i.custom=[...e,r];const o=r.correlationField,s=r.correlationValue;this.conditionalValidationMap[o]=this.conditionalValidationMap[o]||{},this.conditionalValidationMap[o][s]=this.conditionalValidationMap[o][s]||{},this.conditionalValidationMap[o][s][t.name]=i}}}handleConditionalValidation(t,e){if(this.conditionalValidationMap[t]&&this.conditionalValidationMap[t][e])for(const[i,r]of Object.entries(this.conditionalValidationMap[t][e])){const t=this.registrationStep&&parseInt(this.registrationStep.replace("Step",""))-1;this.forms[t]&&(this.forms[t][this.registrationStep].find((t=>t.name===i)).validate=r,this.validationChange.emit({validation:r,field:i}))}}nextHandler(t){t.preventDefault(),this.emitValue=!0,this.errorMessage="",this.registerErrors=!1,this.setRegisterStep()}backHandler(t){var e,i,r,o;t.preventDefault(),this.isTransitioning=!0;const s=this.registrationStep;let n=this.stepChange("decrement");if("Step3"===s){n="Step1",this.registrationID=null,this.registrationStepsState.regId=null;const t=JSON.parse(sessionStorage.getItem("registrationStepsState"))||{},s=(null===(o=null===(r=null===(i=null===(e=null==t?void 0:t.Step1)||void 0===e?void 0:e.registerUserData)||void 0===i?void 0:i.Mobile)||void 0===r?void 0:r.value)||void 0===o?void 0:o.prefix)||"+27";sessionStorage.removeItem("registrationStepsState"),this.registrationStepsState={regId:null},this.listOfInputValues=[],this.getRegisterConfig().then((t=>{this.formatConfig(t),this.registrationID=t.content.registrationID,setTimeout((()=>{this.listOfInputValues=this.listOfInputs.map((t=>{var e;return"Mobile"===t.name?{name:t.name,value:{prefix:s,phone:""},isDuplicate:!1,type:"tel"}:{name:t.name,value:"checkbox"===(null===(e=t.inputType)||void 0===e?void 0:e.toLowerCase())?"false":null,isDuplicate:t.isDuplicateInput||!1,type:t.inputType}})),this.forms=Object.assign({},this.forms)}),100)}))}this.registrationStep=n;const a=JSON.parse(sessionStorage.getItem("registrationStepsState"));if(a&&a[n]&&a[n].fields){const t=a[n];this.listOfInputValidity=[...t.fieldsValidity],this.listOfInputs=[...t.fields],this.forms=Object.assign(Object.assign({},this.forms),{[n]:this.listOfInputs.map((t=>Object.assign({},t)))});const e=t.registerUserData||{};this.listOfInputValues=Object.keys(e).length>0?Object.keys(e).map((t=>({name:t,value:e[t].value,isDuplicate:e[t].isDuplicate}))):this.listOfInputs.map((t=>{var e;return{name:t.name,value:"checkbox"===(null===(e=t.inputType)||void 0===e?void 0:e.toLowerCase())?"false":null,isDuplicate:t.isDuplicateInput||!1}})),this.forms[n]=this.forms[n].map((t=>{const e=this.listOfInputValues.find((e=>e.name===t.name));return e?Object.assign(Object.assign({},t),{defaultValue:e.value}):t}))}else"Step3"!==s&&this.getRegisterConfig(this.registrationID).then((t=>this.formatConfig(t)));this.forms=Object.assign({},this.forms),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity),setTimeout((()=>{this.isTransitioning=!1}),300)}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){var e;const i=()=>{sessionStorage.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]||(this.registrationStepsState[this.registrationStep]={}),this.registrationStepsState[this.registrationStep].registerUserData=this.listOfInputValues.reduce(((t,e)=>(t[e.name]={value:e.value,isDuplicate:e.isDuplicate},t)),{})),i();break;case"get":const r=JSON.parse(sessionStorage.getItem("registrationStepsState"));if(!r||!r[this.registrationStep])return;if("inputs"==t.type){const t=r[this.registrationStep];this.listOfInputs=t.fields,this.listOfActions=t.actions,this.listOfInputValidity=t.fieldsValidity,this.registrationStepsState[this.registrationStep]||(this.registrationStepsState[this.registrationStep]={}),this.registrationStepsState[this.registrationStep].fields=t.fields,this.registrationStepsState[this.registrationStep].fieldsValidity=t.fieldsValidity}if("values"==t.type){const t=r[this.registrationStep];if(!t||!t.registerUserData||0===Object.keys(t.registerUserData).length)return;const i=t.registerUserData;this.listOfInputValues=Object.keys(i).map((t=>({name:t,value:i[t].value,isDuplicate:i[t].isDuplicate}))),this.registrationStepsState[this.registrationStep]||(this.registrationStepsState[this.registrationStep]={}),this.registrationStepsState[this.registrationStep].registerUserData=i,this.forms[this.registrationStep]&&(this.forms[this.registrationStep]=this.forms[this.registrationStep].map((t=>{const e=this.listOfInputValues.find((e=>e.name===t.name));return e?Object.assign(Object.assign({},t),{defaultValue:e.value}):t})));let o=null===(e=this.listOfInputValues.find((t=>t.name===mc)))||void 0===e?void 0:e.value;"Identity Card"===o&&(o=vc),window.documentTypeValue=o,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));e&&(t.defaultValue=e.value)})))}))}this.isConsentReady=this.listOfActions.some((t=>"/Consents"===t)),this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)}}triggerNotification(t,e="WidgetNotification"){window.postMessage({type:e,data:{type:"error",message:t}},window.location.href)}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.ok?t.json():(this.registerErrors=!0,t.json().then((t=>{this.errorCode=t.thirdPartyResponse.errorCode,this.errorMessage=Ec(`${this.errorCode}`,this.language)||Ec("generalError",this.language),this.triggerNotification(this.errorMessage)}))))).then((e=>(this.isLoading=!1,e?t(e):i("Get register config is empty or has an error."))),(t=>(console.error("Get register config is empty or has an error: ",t),i(t)))).finally((()=>{this.isLoading=!1}))}))}setRegisterStep(){this.isLoadingPOST=!0;const t=new URL(`${this.endpoint}/v1/player/legislation/registration/step/`);this.stepsStateMachine({event:"set",type:"values"});const e=this.registrationStep,i={registrationId:this.registrationID,registerUserDto:this.listOfInputValues.filter((t=>"ValidateSMS"===t.name||!t.isDuplicate)).reduce(((t,e)=>{if("ValidateSMS"===e.name)t[e.name]=e.value;else if("TypeOfPublicArea"===e.name)t[e.name]=e.value?e.value.toLowerCase():"";else if("Mobile"===e.name){const i=e.value;let r="",o="";"object"==typeof i&&null!==i?(r=i.phone||"",o=i.prefix||""):r=i||"";let s=r.toString().replace(bc,"");const n=o.replace(bc,"");n&&s.startsWith(n)&&(s=s.slice(n.length)),s.startsWith("0")&&(s=s.slice(1)),t.MobilePrefix=o,t.Mobile=s}else"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;return t}),{}),step:e},r=new Headers;r.append("Content-Type","application/json"),r.append("Accept","application/json");const o={registerUserDto:i.registerUserDto,step:e};this.registrationID&&"null"!==this.registrationID&&(o.registrationId=this.registrationID);const s={method:"POST",body:JSON.stringify(o),headers:r};this.lastStep===this.registrationStep&&yc("register_submit",{registrationId:this.registrationID}),fetch(t.href,s).then((t=>t.ok?("Step1"===this.registrationStep?yc("register_step1",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{IBAN:i.registerUserDto.IBAN,username:i.registerUserDto.Username}}):"Step2"===this.registrationStep?yc("register_step2",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{gender:i.registerUserDto.Gender,fullName:`${i.registerUserDto.FirstnameOnDocument} ${i.registerUserDto.LastNameOnDocument}`,city:i.registerUserDto.City}}):"Step3"===this.registrationStep&&yc("register_step3",{eventLabel:this.registrationStep,eventAction:"nextStep",eventCategory:"Registration",eventData:{OIB:i.registerUserDto.PersonalID,documentType:i.registerUserDto.DocumentType}}),t.json()):t.json().then((t=>(this.errorCode=t.thirdPartyResponse.errorCode,"GmErr_BadRequest_IdomsoftVerification_ShouldRetry"==this.errorCode?this.errorMessage=t.thirdPartyResponse.message:"GmErr_Forbidden_UserAccount_NavExcluded"===this.errorCode?this.errorMessage=Ec(`${this.errorCode}`,this.language):"GmErr_BadRequest"==this.errorCode?(this.errorMessage=t.thirdPartyResponse.message,"The Potvrdite SMS is required."==t.thirdPartyResponse.message&&(this.errorMessage=Ec("GmErr_BadRequest_INVALID_CODE",this.language))):"GmErr_ATTEMPTS_EXCEEDED"==this.errorCode?(this.pinAttemptsExceeded=!0,this.errorMessage=Ec("GmErr_ATTEMPTS_EXCEEDED",this.language)||Ec(this.errorCode,this.language)):this.errorMessage=Ec(`${this.errorCode}`,this.language)||Ec("generalError",this.language),this.triggerNotification(this.errorMessage),Promise.reject(this.errorMessage)))))).then((t=>{if(this.isLoadingPOST=!1,this.registrationID=t.registrationId,this.listOfActions.find((t=>"/request-2FA"===t))&&(this.twofaDestination=Object.values(this.listOfInputValues.find((t=>"tel"===t.type)).value).join(""),this.handleRequestTwofa()),this.listOfActions.some((t=>"/register"==t)))this.listOfActions.some((t=>"/generate-2FA-code/Generate2FACode"==t))&&this.extraActions.push("2fa"),sessionStorage.getItem("playerConsents")&&sessionStorage.removeItem("playerConsents"),this.setRegister();else{this.isConsentValid&&window.postMessage({type:"setUpPlayerConsents",registerid:this.registrationID}),this.registrationStep=this.stepChange("increment");const t=this.registrationStepsState[this.registrationStep];t&&t.fields&&t.fields.length>0?(this.forms=Object.assign(Object.assign({},this.forms),{[this.registrationStep]:t.fields.map((t=>Object.assign({},t)))}),this.stepsStateMachine({event:"get",type:"inputs"}),this.stepsStateMachine({event:"get",type:"values"})):this.getRegisterConfig(this.registrationID).then((t=>{this.formatConfig(t);const e=JSON.parse(sessionStorage.getItem("registrationStepsState"));e&&e[this.registrationStep]&&this.stepsStateMachine({event:"get",type:"values"}),this.stepsStateMachine({event:"set",type:"inputs"}),this.setupConditionalValidationMap()}),(t=>{this.triggerNotification(t)}))}})).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:Ec(`${this.errorCode}`,this.language)||Ec("generalError",this.language),window.postMessage({type:"registrationFailed",errorMessage:null==t?void 0:t.thirdPartyResponse.message},window.location.href),this.triggerNotification(this.errorMessage),yc("register_fail",{error:this.errorMessage})}))))).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:Ec("successMessage",this.language)}},window.location.href),yc("register_closed",{userId:t.userId}))})).catch((t=>{this.isLoading=!1,console.error(t)})).finally((()=>{this.isLoading=!1}))}formatConfig(t){var e;this.listOfInputs=[],this.listOfInputValues=[],this.listOfInputValidity=[],this.forms=Object.assign({},this.forms),this.registrationStep=t.content.step,this.registrationID=t.content.registrationID,this.listOfActions=t.content.actions.map((t=>t)),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"})})),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.stepsStateMachine({event:"get",type:"values"}),this.btag&&this.addBtagValue(),this.listOfActions.some((t=>"/register"==t))&&(this.lastStep=this.registrationStep),this.listOfActions.some((t=>"/Consents"==t))?this.isConsentReady?(this.listOfInputValidity.find((t=>"Consents"===t.name)).isValid=!1,this.isFormValid=!this.getInvalidStatus(this.listOfInputValidity)):(this.listOfInputValidity.push({name:"Consents",isValid:!1}),this.isConsentReady=!0):this.isConsentReady=!1,this.forms=Object.assign(Object.assign({},this.forms),{[this.registrationStep]:this.listOfInputs.map((t=>Object.assign({},t)))}),this.translationUrl&&(e=this.translationUrl,new Promise((t=>{fetch(e).then((t=>t.json())).then((e=>{Object.keys(e).forEach((t=>{cc[t]=cc[t]||{};for(let i in e[t])cc[t][i]=e[t][i]})),t(!0)}))}))).then((()=>{this.listOfInputs.forEach((t=>{var e,i;this.addTranslation(t),"togglecheckbox"!==(null===(e=t.inputType)||void 0===e?void 0:e.toLowerCase())&&"checkboxgroup"!==(null===(i=t.inputType)||void 0===i?void 0:i.toLowerCase())||t.data.subFields.forEach((t=>this.addTranslation(t)))}))})).catch((t=>{console.error("Failed to fetch translations:",t)})),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){cc[cc[this.language]?this.language:"en"][t.name]&&Object.keys(cc[this.language][t.name]).forEach((e=>{t[e]=cc[this.language][t.name][e]}))}setInitialValidStatus(t){var e,i,r,o,s;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||!1===(null===(s=t.validate)||void 0===s?void 0:s.mandatory)||!1)}stepChange(t){const e=parseInt(this.registrationStep.replace("Step",""));return"increment"===t?"Step"+(e+1):"decrement"===t?"Step"+(e-1):void 0}getInvalidStatus(t){const e=t.filter((t=>{var e;const i=this.listOfInputs.find((e=>e.name===t.name)),r=null===(e=this.listOfInputValues.find((e=>e.name===t.name)))||void 0===e?void 0:e.value;return!(i&&!i.validate.mandatory&&(null==(o=r)||("string"==typeof o?""===o.trim():Array.isArray(o)?0===o.length:"object"==typeof o&&0===Object.keys(o).length)))&&!1===t.isValid;var o}));return e.length>0}renderErrorMessage(t){return i("p",{class:"registration registration__error-message"},t)}resetAllAddressFields(){this.listOfInputValues=this.listOfInputValues.map((t=>["address1","address2","City","PostalCode"].includes(t.name)?Object.assign(Object.assign({},t),{value:""}):t)),Object.keys(this.forms).forEach((t=>{this.forms[t]=this.forms[t].map((t=>["address1","address2","City","PostalCode"].includes(t.name)?Object.assign(Object.assign({},t),{defaultValue:""}):t))})),this.listOfInputValidity=this.listOfInputValidity.map((t=>["address1","address2","City","PostalCode"].includes(t.name)?Object.assign(Object.assign({},t),{isValid:!1}):t)),this.addresses=[],this.forms=Object.assign({},this.forms)}fetchAddresses(t,e){var i;const r=null===(i=this.listOfInputValues.find((t=>"PostalCode"===t.name)))||void 0===i?void 0:i.value;if(!r||r.length<this.postalcodelength)return;window.dispatchEvent(new CustomEvent("addressFetchStarted",{detail:{postalCode:e}}));const o=new URL(`${this.endpoint}/api/pam/v1/lookup/addresses?country=${t}&postalCode=${e}`),s=new Headers;s.append("Content-Type","application/json"),s.append("Accept","application/json"),fetch(o.href,{method:"GET",headers:s}).then((async t=>{if(!t.ok){const e=await t.json();throw new Error(`Failed to fetch addresses: ${e.message||JSON.stringify(e)}`)}return t.json()})).then((t=>{var e;const i=null===(e=this.listOfInputValues.find((t=>"PostalCode"===t.name)))||void 0===e?void 0:e.value;this.addresses=i&&i.length>=this.postalcodelength&&t.addresses||[]})).catch((()=>{this.addresses=[],this.lastPostalCode=null}))}renderForm(){return i("div",null,i("div",{class:"RegisterTimeline custom__reg"},i("button",{class:"RegisterBackButton "+("Step1"==this.registrationStep?"disabledRegBtn":""),onClick:t=>this.backHandler(t)},i("span",{class:"arrow"},"←"),"Back"),i("div",{class:"RegisterTimelineWrapper"},i("div",{class:"RegisterTimeline__content"},i("div",{class:"step step__one"},i("span",{class:this.getStepClass(1),"data-number":"1"})),i("div",{class:"connector"}),i("div",{class:"step step__two"},i("span",{class:this.getStepClass(2),"data-number":"2"})),i("div",{class:"connector"}),i("div",{class:"step step__three"},i("span",{class:this.getStepClass(3),"data-number":"3"})))),this.errorMessage&&i("p",{class:"RegisterTimeline__errorMsg",innerHTML:this.errorMessage})),i("form",{action:".",id:`RegistrationForm${this.registrationStep}`,class:"registration__form",ref:t=>this.form=t,onClick:this.handleInitialClick},this.forms[this.registrationStep]&&this.forms[this.registrationStep].map((t=>{var e,r;return i("div",{key:t.name,class:"input-wrapper "+(this.ignorebtag&&"Btag"===t.name?"hide-btag":"")},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,mbSource:this.mbSource,isDuplicateInput:t.isDuplicateInput,"client-styling":this.clientStyling,tooltip:t.tooltip,placeholder:null==t.placeholder?"":t.placeholder,"date-format":this.dateFormat,"twofa-destination":this.twofaDestination,"twofa-resend-interval-seconds":null===(e=t.customInfo)||void 0===e?void 0:e.twofaResendIntervalSeconds,"translation-url":this.translationUrl,emitOnClick:this.emitOnClick,onClick:this.handleInitialClick,haspostalcodelookup:this.haspostalcodelookup,addresses:this.haspostalcodelookup?this.addresses:null,postalcodelength:this.haspostalcodelookup?this.postalcodelength:null,"enable-south-african-mode":this.enableSouthAfricanMode,"ignore-country":this.getIgnoreCountry(t),"pin-attempts-exceeded":this.pinAttemptsExceeded,key:["address1","address2","City"].includes(t.name)?`${t.name}-${this.addressUpdateKey}-${this.registrationStep}`:`${t.name}-${this.registrationStep}`}),(null===(r=t.customInfo)||void 0===r?void 0:r.description)&&i("div",{class:"input-description"},t.customInfo.description))})),this.forms[this.registrationStep]&&this.isConsentReady&&this.renderConsents(),this.forms[this.registrationStep]&&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",null,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("div",{class:"registration__buttons-wrapper "+(this.autofilled?"registration__buttons-wrapper--autofilled":"")},i("button",{class:`registration__button registration__button--next ${this.registrationStep} ${!this.isFormValid||this.pinAttemptsExceeded?"registration__button--disabled":""}`,type:"submit",form:`RegistrationForm${this.registrationStep}`,onClick:t=>this.nextHandler(t),disabled:!!this.pinAttemptsExceeded||!this.isFormValid},Ec("Step2"===this.registrationStep?"verifyButton":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)},Ec("backButton",this.language))))}render(){return this.isLoading&&!this.registerErrors?i("p",{class:"registration registration__loading-message"},Ec("loadingMessage",this.language)):!this.isLoading&&this.registerErrors?this.renderErrorMessage(this.errorMessage):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"]}}};Nv.style='@charset "UTF-8";\n*,\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: var(--emw-font-size-small, 13px);\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__loading-message {\n padding-top: 20px;\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, #22B04E));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\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.registration .RegisterTimeline.custom__reg {\n display: flex;\n align-items: flex-start;\n flex-direction: column;\n justify-content: center;\n width: 100%;\n box-sizing: border-box;\n margin-bottom: 40px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimeline__errorMsg {\n width: 100%;\n text-align: center;\n margin-top: 40px;\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n padding: 10px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton {\n appearance: none;\n background: none;\n border: none;\n padding: 0;\n all: unset;\n font-size: var(--emw--pam-page-title, 16px);\n color: var(--emw--color-black, #000000);\n cursor: pointer;\n padding: 8px 8px 8px 0;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton.disabledRegBtn {\n opacity: 0;\n pointer-events: none;\n}\n.registration .RegisterTimeline.custom__reg .RegisterBackButton .arrow {\n margin-right: 6px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper {\n display: flex;\n align-items: center;\n justify-content: center;\n box-sizing: border-box;\n max-width: 100%;\n width: 100%;\n margin-top: 20px;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .RegisterTimeline__content {\n width: 300px;\n display: flex;\n align-items: center;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .step {\n flex: 0 0 auto;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet {\n width: 30px;\n height: 30px;\n border-radius: 50%;\n display: inline-flex;\n align-items: center;\n justify-content: center;\n font-size: var(--emw--pam-page-title, 16px);\n position: relative;\n background-color: var(--emw--registration-input-bg, #f0f5f9);\n color: var(--emw--color-gray-150, #979797);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.active {\n background: var(--emw--color-blue-primary, #111fa3);\n color: var(--emw--color-white, #FFFFFF);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet:not(.checked)::before {\n content: attr(data-number);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.checked {\n background: var(--emw--color-primary, #22B04E);\n color: transparent;\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .bullet.checked::before {\n content: "✓";\n font-size: 25px;\n color: var(--emw--color-white, #FFFFFF);\n}\n.registration .RegisterTimeline.custom__reg .RegisterTimelineWrapper .connector {\n flex: 1 1 auto;\n min-width: 40px;\n height: 2px;\n margin: 0 10px;\n border-radius: 2px;\n background-color: var(--emw--color-gray-50, #F9F8F8);\n}\n\n.registration__form {\n grid-template-columns: repeat(1fr);\n}\n\n.registration__error-message {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.hide-btag {\n display: none;\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, #22B04E));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n.input-description {\n margin-top: 5px;\n font-size: var(--emw-font-size-x-small, 12px);\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 zv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),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)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(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.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return a("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});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 a(`${i}`,this.language)?a(`${i}`,this.language):r}}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:"aea370172d0e55d32dc665a1c340c734334e1caf",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"10e16d10b956c5a647bc68ecffbc2eb0b06fa92a",class:"number__wrapper--flex"},i("label",{key:"0827d47c7278c6fdf8ebdd1dff03b91c39be6812",class:"number__label "+(this.validation.mandatory?"number__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"cb868d01e8555f5e3333240f54d86f0a56641d0f",class:"number__wrapper--relative"},this.tooltip&&i("img",{key:"1aa2b16b59f4bfd4b1dadf2641ec6cb4cfc251bf",class:"number__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"365b70a2eb333878d367d1d414ee0e296c91b3ec",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:"a8639df7ef1e98807a7daffc9da4afd347b1c292",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};zv.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, #22B04E));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}';const Gv=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.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)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.noValidation=!1,this.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.passwordComplexity=void 0,this.showPopup=void 0,this.value=""}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(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.noValidation?[]:this.validation.custom.filter((t=>"regex"===t.rule)).map((e=>{const i=new RegExp(e.pattern);let r=!1;return t&&(r=i.test(t)),{rule:e.displayName,ruleKey:e.errorKey,passed:r}}))}setValidity(){var t,e;return!!this.noValidation||(!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,o;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return a("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 a(`${i}`,this.language)?a(`${i}`,this.language):r}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 a(`${t}`,this.language)?a(`${t}`,this.language):e}return(null===(o=this.passwordComplexity)||void 0===o?void 0:o.every((t=>t.passed)))||this.showPopup?void 0:a("invalidPassword",this.language)}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"},a("passwordStrength",this.language)," ",i("span",{class:"password__complexity--text-bold"},a(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,a(`${t.ruleKey}`,this.language)?a(`${t.ruleKey}`,this.language):t.rule))))))}renderCustomComplexityPopup(){return i("div",{class:"customreg-password__complexity "+(this.showPopup?"":"customreg-password__complexity--hidden")},i("p",{class:"customreg-password__complexity--title"},a("PasswordMustContain",this.language)),i("div",{class:"customreg-password__complexity--rules"},this.passwordComplexity.map(((t,e)=>i("div",{class:"customreg-password__complexity--rule",key:e},i("span",{class:`customreg-password__complexity--icon ${t.passed?n.PASSWORD_COMPLEXITY_PASSED:n.PASSWORD_COMPLEXITY_FAILED}`},t.passed?"✓":"✕"),i("span",null,a(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:"fe895585dd908f75eee4ba797dc9c02b237bed7f",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"844bdb3dab98e62cc5d92a761b85adcdc44831d0",class:"password__wrapper--flex"},i("label",{key:"28041267a6df666e7df3660a907f995eff092ae1",class:"password__label "+(this.validation.mandatory?"password__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"79c300643134802f04d8f909fe7bb3895911c88a",class:"password__wrapper--relative"},this.tooltip&&i("img",{key:"43ae58549e42ba59054162c25887ec36eb826aaa",class:"password__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("vaadin-password-field",{key:"0edcfed0ea65666537240f531e5239bd5b11181e",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}),!this.noValidation&&i("small",{key:"c8aeba074e66b771d745194fec535aa0b82de6d8",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&(this.enableSouthAfricanMode?this.renderCustomComplexityPopup():this.renderComplexityPopup()))}get element(){return r(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};Gv.style='*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.password {\n font-family: "Roboto";\n font-style: normal;\n}\n.password__wrapper {\n position: relative;\n width: 100%;\n display: flex;\n flex-direction: column;\n gap: 5px;\n container-type: inline-size;\n}\n.password__wrapper--autofilled {\n pointer-events: none;\n}\n.password__wrapper--autofilled .password__label {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__wrapper--autofilled .password__input::part(input-field) {\n color: var(--emw--color-black, #000000);\n}\n.password__wrapper--flex {\n display: flex;\n gap: 5px;\n}\n.password__wrapper--relative {\n position: relative;\n}\n.password__label {\n font-family: inherit;\n font-style: normal;\n font-weight: 500;\n font-size: 16px;\n line-height: 20px;\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__label--required::after {\n content: "*";\n font-family: inherit;\n color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n margin-left: 2px;\n}\n.password__input {\n width: inherit;\n border: none;\n}\n.password__input[focused]::part(input-field) {\n border-color: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n}\n.password__input[invalid]::part(input-field) {\n border: 1px solid var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__input::part(input-field) {\n border-radius: 4px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-100, #E6E6E6);\n color: var(--emw--color-black, #000000);\n background-color: var(--emw--color-white, #FFFFFF);\n font-family: inherit;\n font-style: normal;\n font-weight: 300;\n font-size: 16px;\n line-height: 1.5;\n position: relative;\n margin-bottom: unset;\n height: 44px;\n padding: 0;\n width: 100%;\n}\n.password__input::part(reveal-button) {\n position: relative;\n right: 10px;\n}\n.password__input::part(reveal-button)::before {\n color: var(--emw--registration-typography, var(--emw--color-black, #000000));\n}\n.password__input > input {\n padding: 5px 15px;\n}\n.password__input > input:placeholder-shown {\n color: var(--emw--color-gray-150, #828282);\n}\n.password__error-message {\n position: absolute;\n top: calc(100% + 5px);\n left: 0;\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n}\n.password__complexity {\n height: 150px;\n position: relative;\n padding: 10px;\n display: flex;\n flex-direction: column;\n gap: 20px;\n justify-content: center;\n margin-top: 20px;\n font-weight: 300;\n background: var(--emw--color-white, #FFFFFF);\n -webkit-border-radius: 5px;\n -moz-border-radius: 5px;\n border-radius: 5px;\n border: 1px solid #B0B0B0;\n box-sizing: content-box;\n /* works only in this order */\n}\n.password__complexity meter {\n border-color: transparent; /* Needed for Safari */\n}\n.password__complexity meter[value="1"]::-moz-meter-bar {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter[value="1"]::-webkit-meter-optimum-value {\n background-color: var(--emw--color-valid, #48952a);\n}\n.password__complexity meter:not([value="1"])::-moz-meter-bar {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity meter:not([value="1"])::-webkit-meter-optimum-value {\n background-color: var(--emw--color-error, #FD2839);\n}\n.password__complexity--strength {\n display: flex;\n justify-content: space-evenly;\n align-items: center;\n}\n.password__complexity--strength meter::-moz-meter-bar { /* Firefox Pseudo Class */\n background: #B0B0B0;\n}\n.password__complexity--hidden {\n display: none;\n}\n.password__complexity--text-bold {\n font-weight: 500;\n}\n.password__complexity--checkbox {\n margin-right: 5px;\n}\n.password__complexity:after {\n content: "";\n position: absolute;\n width: 25px;\n height: 25px;\n border-top: 1px solid var(--emw--color-gray-150, #828282);\n border-right: 0 solid var(--emw--color-gray-150, #828282);\n border-left: 1px solid var(--emw--color-gray-150, #828282);\n border-bottom: 0 solid var(--emw--color-gray-150, #828282);\n bottom: 92%;\n left: 50%;\n margin-left: -25px;\n transform: rotate(45deg);\n margin-top: -25px;\n background-color: var(--emw--color-white, #FFFFFF);\n}\n@container (max-width: 300px) {\n .password__complexity {\n height: 190px;\n }\n .password__complexity:after {\n width: 14px;\n height: 14px;\n bottom: 96%;\n left: 57%;\n }\n}\n.password__tooltip-icon {\n width: 16px;\n height: auto;\n}\n.password__tooltip {\n position: absolute;\n top: 0;\n left: 20px;\n background-color: var(--emw--color-white, #FFFFFF);\n border: 1px solid var(--emw--color-gray-150, #828282);\n color: #2B2D3F;\n padding: 10px;\n border-radius: 5px;\n opacity: 0;\n transition: opacity 0.3s ease-in-out;\n z-index: 10;\n}\n.password__tooltip.visible {\n opacity: 1;\n}\n\n.customreg-password__complexity {\n background: var(--emw--color-white, #FFFFFF);\n border-radius: 6px;\n padding: 14px;\n}\n\n.customreg-password__complexity--title {\n font-size: var(--emw--font-size-small, 14px);\n color: var(--emw--color-black, #000000);\n margin-bottom: 12px;\n}\n\n.customreg-password__complexity--rules {\n display: flex;\n flex-direction: column;\n gap: 10px;\n font-size: var(--emw--font-size-small-xs, 12px);\n}\n\n.customreg-password__complexity--rule {\n display: flex;\n align-items: center;\n color: var(--emw--color-black, #000000);\n}\n\n.customreg-password__complexity--icon {\n width: 20px;\n height: 20px;\n min-width: 20px;\n display: flex;\n align-items: center;\n justify-content: center;\n font-size: 12px;\n font-weight: bold;\n border-radius: 50%;\n margin-right: 10px;\n}\n\n.customreg-password__complexity--icon.failed {\n background-color: var(--emw--color-error, #FD2839);\n color: var(--emw--color-white, #FFFFFF);\n}\n\n.customreg-password__complexity--icon.passed {\n background-color: var(--emw--color-lottoball-green, #01af15);\n color: var(--emw--color-white, #FFFFFF);\n}\n\n.customreg-password__complexity::after {\n display: none;\n}';const Mv=class{constructor(i){t(this,i),this.sendAddressValue=e(this,"sendAddressValue",7),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value="",this.validationPattern="",this.hasManualAddressBeenTriggered=!1,this.touched=!1,this.maxPostalCodeLength="10",this.handleInput=t=>{const e=t.target.value.toUpperCase();this.value=e,this.touched=!0,this.currentPostalCode=e,this.showNoResultsMessage=!1,this.inputReference&&(this.inputReference.value=e),this.value.length<this.postalcodelength&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),(""===this.value||this.value.length<1)&&(this.openAddressDropdown=!1,this.isFetchingAddresses=!1),this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.value.length>=this.postalcodelength&&(sessionStorage.setItem("currentPostalCode",this.value),this.showNoResultsMessage=!1,this.addresses&&this.addresses.length>0&&(this.openAddressDropdown=!0));const t=this.isValid;this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),t!==this.isValid&&this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)}),300)},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.showNoResultsMessage=!1,this.openAddressDropdown||(this.showNoResultsMessage=!1)},this.handleFocus=()=>{this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&(this.openAddressDropdown=!0)},this.handlePostalCode=(t,e)=>{t.stopPropagation();const i=`${e.number}`.trim(),r=`${e.street}`.trim(),o=`${e.city}`.trim();this.sendAddressValue.emit({city:o,address1:i,address2:r}),this.value=this.currentPostalCode.toLocaleUpperCase(),this.touched=!0,this.isValid=!0,this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.isFetchingAddresses=!1,this.valueHandler({name:this.name,value:this.value}),this.validityStateHandler({valid:!0,name:this.name}),this.valueHandler({name:"address1",value:i}),this.valueHandler({name:"City",value:o}),r&&this.valueHandler({name:"address2",value:r}),this.refreshTrigger++},this.enterAddressManually=()=>{const t=window.targetInputRefs;if(!t)return;const e=[{name:"PostalCode",ref:t.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:t.address1},{name:"address2",ref:t.address2},{name:"City",ref:t.City}],i=[{name:"PostalCode",ref:t.PostalCode,minLength:this.postalcodelength},{name:"address1",ref:t.address1},{name:"City",ref:t.City}].find((t=>{var e;const i=(null===(e=t.ref)||void 0===e?void 0:e.value)||"";return t.minLength?0===i.length||i.length<t.minLength:0===i.length})),r=(null==i?void 0:i.ref)||t.address1||t.PostalCode;r.scrollIntoView({behavior:"smooth",block:"center"}),this.hasManualAddressBeenTriggered||(this.hasManualAddressBeenTriggered=!0,e.forEach((t=>{var e;if(t.ref){const i=(null===(e=t.ref.shadowRoot)||void 0===e?void 0:e.querySelector("input"))||t.ref;if(i){i.classList.add("pulse-border");const t=()=>{i.classList.remove("pulse-border"),i.removeEventListener("animationend",t)};i.addEventListener("animationend",t)}}}))),r.focus()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.handleOutsideClick=t=>{if(!this.openAddressDropdown)return;const e=t.composedPath?t.composedPath():[],i=e.includes(this.inputReference),r=e.includes(this.addressesDropdownRef),o=e.some((t=>{var e;return t instanceof Element&&(null===(e=t.classList)||void 0===e?void 0:e.contains("option"))}));i||r||o||(this.openAddressDropdown=!1,this.showNoResultsMessage=!1)},this.name="PostalCode",this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.postalcodelength=void 0,this.addresses=void 0,this.ignoreCountry=!1,this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedCountryCode="",this.currentPostalCode="",this.openAddressDropdown=!1,this.showNoResultsMessage=!1,this.refreshTrigger=0,this.isFetchingAddresses=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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}),!0!==t||this.value.length||this.valueHandler({name:this.name,value:this.value})}handleAddresses(t){t&&t.length>0?(this.openAddressDropdown=!0,this.showNoResultsMessage=!1):(this.openAddressDropdown=!1,this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength&&setTimeout((()=>{this.currentPostalCode.length>=this.postalcodelength&&!this.isFetchingAddresses&&(this.showNoResultsMessage=!0)}),200)),this.isFetchingAddresses=!1}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleCountryCodeUpdate(t){const{name:e,value:i}=t.detail;this.selectedCountryCode=i,"CountryCode"===e&&(this.resetPostalCodeField(),this.refreshTrigger++)}handleFetchStarted(){this.showNoResultsMessage=!1,this.isFetchingAddresses=!0,this.openAddressDropdown=!1}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}componentDidLoad(){this.defaultValue&&this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.setValidity(),document.addEventListener("click",this.handleOutsideClick)}disconnectedCallback(){document.removeEventListener("click",this.handleOutsideClick)}setValidity(){if(!this.inputReference)return!1;const t=this.inputReference.validity.valid,e=!this.inputReference.value||null!==this.inputReference.value.match(this.validationPattern);return t&&e}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.touched)return"";if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(null==this.inputReference.value.match(this.validationPattern)){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 a(`${i}`,this.language)||r}return""}resetPostalCodeField(){this.value="",this.currentPostalCode="",this.showNoResultsMessage=!1,this.openAddressDropdown=!1,this.isFetchingAddresses=!1,sessionStorage.removeItem("currentPostalCode"),this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name})}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}determineInputValue(){return this.inputReference&&this.name&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.value}render(){var t,e;let r="";this.touched&&(r=1==this.isValid||null==this.isValid?"":"text__input--invalid");let o="UK"===this.selectedCountryCode||"GB"===this.selectedCountryCode||this.ignoreCountry,s=(null===(t=this.addresses)||void 0===t?void 0:t.length)>0&&this.openAddressDropdown&&o,n=this.showNoResultsMessage&&this.currentPostalCode&&this.currentPostalCode.length>=this.postalcodelength&&0===(null===(e=this.addresses)||void 0===e?void 0:e.length)&&o,h=this.isFetchingAddresses&&this.currentPostalCode.length>=this.postalcodelength;return i("div",{key:"f274a95e0a64ec67f01be8a5cf053d475c16e9ca",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},i("div",{key:"23aa865fd99048cb5c638f0b66b4ff3e8e451d97",class:"text__wrapper--flex"},i("label",{key:"c5d12c1548ec8bfde130a95cc20783f20295a253",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"db2f499ff6ca8f4e3b1a8ac83e7f8856fc1ca888",class:"text__wrapper--relative"},this.tooltip&&i("img",{key:"a1d7ef42855a21f336dbbb337cc8cb644de0c655",class:"text__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("div",{key:"18a6812958691749d0c7c3396ce69a3f46f7f1e4",class:"input__text-wrapper"},i("input",{key:"41aa9e6b8817eee602347d7a3a909f0d81985d3d",name:this.name,id:`${this.name}__input`,value:this.determineInputValue(),type:"text",class:`text__input ${r}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.maxPostalCodeLength,onInput:this.handleInput,onBlur:this.handleBlur,onFocus:this.handleFocus}),!o&&i("p",{key:"7083c22e5ebb306ad9ca3c4dc29dcd66bc8b17d5",class:"address__manual-input-msg",onClick:()=>this.enterAddressManually()},a("enterIEAddressManually",this.language)),s&&i("div",{key:"95ad996e43da19386f4576eb35850c7ba09e1620",class:"input__addresses-container",ref:t=>this.addressesDropdownRef=t},i("div",{key:"3997d92f28ec2ecee49b2480a5edb0a8431aa1c8",class:"options"},this.addresses.map(((t,e)=>i("div",{key:e,class:"option",onClick:e=>this.handlePostalCode(e,t)},t.number," ",t.street," ",t.city))))),h&&i("div",{key:"cf5f9c9f5f96aa2ef316eb44e97768e3552c4a2e",class:"postalcode__loading-spinner"},i("div",{key:"d9b0dda1be9fa871dee4b7d415f84a28b81c3362",class:"loading-spinner"}),i("span",{key:"b5a6c58d910f5be519617288310a8a456e7e8c1c"},a("searchingForAddresses",this.language))),n&&i("div",{key:"2b5503571824ec9f04f58959b8b38ff279fa6d1d",class:"postalcode__no-results-message"},a("postalLookUpNoAddressFound",this.language))),i("small",{key:"00e0cbe15e10c40c8f43939123c10819592fdce2",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"],addresses:["handleAddresses"]}}};Mv.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}.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, #22B04E));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, #22B04E))}.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}.input__text-wrapper{position:relative}.input__addresses-container{position:relative;left:0;width:100%;background:var(--emw--color-white);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:8px;box-shadow:0 4px 12px rgba(0, 0, 0, 0.1);max-height:200px;overflow-y:auto;z-index:999;margin-top:4px}.input__addresses-container .options{padding:4px 0}.input__addresses-container .option{padding:8px 12px;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-100, #E6E6E6);font-size:14px;line-height:1.4;transition:background-color 0.2s ease;color:var(--emw--registration-gray-800, #333)}.input__addresses-container .option:last-child{border-bottom:none}.input__addresses-container .option:hover{background-color:var(--emw--registration-lightgray-100, #f8f9fa)}.input__addresses-container .option:active{background-color:var(--emw--registration-lightgray-200, #e9ecef)}.input__addresses-container::-webkit-scrollbar{width:6px}.input__addresses-container::-webkit-scrollbar-track{background:var(--emw--registration-lightgray-150, #f1f1f1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb{background:var(--emw--registration-lightgray-300, #c1c1c1);border-radius:3px}.input__addresses-container::-webkit-scrollbar-thumb:hover{background:var(--emw--registration-lightgray-400, #a8a8a8)}.postalcode__no-results-message{color:var(--emw--color-error, var(--emw--color-red, #ed0909));margin-top:10px}.address__manual-input-msg{text-decoration:underline;margin-top:10px;cursor:pointer;transition:opacity 0.3s ease}.address__manual-input-msg:active{opacity:0.7}.postalcode__loading-spinner{display:flex;align-items:center;gap:8px;padding:12px;color:var(--emw--registration-gray-600, #666);border:1px solid var(--emw--color-gray-100, #E6E6E6);border-top:none;background-color:var(--emw--registration-lightgray-50, #f9f9f9)}.loading-spinner{width:14px;height:14px;border:2px solid var(--emw--color-gray-100, #E6E6E6);border-top:2px solid var(--emw--registration-gray-600, #666);border-radius:50%;animation:spin 0.8s linear infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}';const Bv=class{constructor(i){t(this,i),this.sendInputValue=e(this,"sendInputValue",7),this.sendValidityState=e(this,"sendValidityState",7),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.optionsGroup=void 0,this.validation=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(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 a("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:"33493de460303a32a37d253a0fd5f9da59676542",class:`radio__fieldset ${this.name}__input`,ref:t=>this.stylingContainer=t},i("legend",{key:"8aef7aa84a119742e05d72d976c936a560154b3f",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:"bec44ed4007e408ddeb0b0293b82e034c8e165f2",class:"radio__error-message"},this.errorMessage),this.tooltip&&i("img",{key:"a3b0a041beabe3f14661c0af8cd970040d060435",class:"radio__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Bv.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}";const Uv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.touched=!1,this.handleComboChange=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=>{const e=t.currentTarget;e.opened||(this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=t=>{this.touched=!0,this.value=t.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.options=[],this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t;this.displayedOptions=this.options.map((t=>({label:t.label,value:t.value}))),this.isComboBox=(null===(t=this.displayedOptions)||void 0===t?void 0:t.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];return this.getOptions(t).then((t=>{var e;const i=Object.keys(t)[0];this.displayedOptions=t[i].map((t=>({label:t.Name,value:t.Alpha2Code}))),this.isComboBox=(null===(e=this.displayedOptions)||void 0===e?void 0:e.length)>6}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.inputReference&&(this.inputReference.value=this.value)),this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",(t=>{if(!0===t.detail.value)this.errorMessage="";else{const e=t.currentTarget;this.touched=!0,this.value=e.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})}}))}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(){var t;return!(null===(t=this.validation)||void 0===t?void 0:t.mandatory)||!!this.value}setErrorMessage(){var t,e,i;if((null===(e=null===(t=this.inputReference)||void 0===t?void 0:t.validity)||void 0===e?void 0:e.valueMissing)||(null===(i=this.vaadinCombo)||void 0===i?void 0:i.invalid))return a("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(){var t,e;let r="";return this.touched&&(r=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"b0ed504667761e5fd77e0ac13382b467448a1944",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"b48d38dc4c2cb3442ff6773a1b1d13191ec4d0e6",class:"select__wrapper--flex"},i("label",{key:"ad592c8c98ecbec1961d22cdfeb8cec910291ea8",class:"select__label",htmlFor:`${this.name}__input`},this.displayName,i("span",{key:"b3c0f2fe9a2d26ade1626878ed9bc1f0b86a23ad",class:this.validation.mandatory?"select__label--required":""})),i("div",{key:"29d0f504d0f51175818dffffb882ac4e6e9c3bde",class:"select__wrapper--relative"},this.tooltip&&i("img",{key:"66e524ffebc43f9418e90b3bd2d7ae62eba47da3",class:"select__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?i("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${r} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:t=>this.vaadinCombo=t,readOnly:this.autofilled,required:null===(t=this.validation)||void 0===t?void 0:t.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):i("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${r} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:t=>this.vaadinCombo=t,readOnly:this.autofilled,required:null===(e=this.validation)||void 0===e?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),i("small",{key:"0143b538740c3a8e9bfcab6bbb44660355c40cf7",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Uv.style='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}:host{height:100%;--_invalid-hover-highlight:transparent;--vaadin-input-field-invalid-hover-highlight:transparent}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, #22B04E));margin-left:2px}.select__input{border:none;width:inherit;position:relative}.select__input[focused]:not(.text__input--invalid)::part(input-field){border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.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:5px 15px;height:44px}.select__input::part(toggle-button){position:relative;right:10px}.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 Pv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=t=>{this.setPhoneValue(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.isValidValue(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}),500)},this.handleBlur=()=>{this.touched=!0,this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.showLabels=void 0,this.action=void 0,this.validation=void 0,this.defaultValue=void 0,this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.isValid=void 0,this.errorMessage=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.disablePhonePrefix=!1,this.phoneValue="",this.phoneCodesOptions=void 0}setPhoneValue(t){const e=t.replace(/[^0-9]/g,"");this.phoneValue=e,this.inputReference&&(this.inputReference.value=this.phoneValue)}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}connectedCallback(){var t;this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.setPhoneValue(null!==(t=this.defaultValue.phone)&&void 0!==t?t:""),this.phoneCodesOptions=[{label:this.prefixValue,value:this.prefixValue}])}componentWillLoad(){if(this.action&&"GET"==this.action.split(" ")[0]){const t=this.action.split(" ")[1];this.getPhoneCodes(t).then((t=>{this.phoneCodesOptions=t.phoneCodes.map((t=>"object"==typeof t&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t})),this.disablePhonePrefix=this.phoneCodesOptions.length<=1}))}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.isValidValue(),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)}isValidValue(){return!!this.inputReference&&(!(this.validation.mandatory&&(!this.phoneValue||""===this.phoneValue.trim()))&&(this.phoneValue&&""!==this.phoneValue.trim()?!(this.validation.minLength&&this.phoneValue.length<this.validation.minLength)&&(!(this.validation.maxLength&&this.phoneValue.length>this.validation.maxLength)&&!(this.validationPattern&&!new RegExp(this.validationPattern).test(this.phoneValue))):!this.validation.mandatory))}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 a(`${i}`,this.language)?a(`${i}`,this.language):r}return this.inputReference.validity.tooShort||this.inputReference.validity.tooLong||this.validation.minLength&&this.phoneValue&&this.phoneValue.length<this.validation.minLength||this.validation.maxLength&&this.phoneValue&&this.phoneValue.length>this.validation.maxLength?a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}}):this.inputReference.validity.valueMissing?a("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(){var t;let e="";return this.touched&&(e=1==this.isValid||null==this.isValid?"":"text__input--invalid"),i("div",{key:"f534de21d5597a3e90912eb87fff893511d09920",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"431fb8cbaea0d2244847823ea4d04d8c73a5341c",class:"tel__wrapper--flex-label"},i("label",{key:"2eb210b2f0c2e0e632997f59fe7aa667578f72fd",class:"tel__label "+(this.validation.mandatory?"tel__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"2d912b828f7d9475a1bbb5bac13495779f31198e",class:"tel__wrapper--relative"},this.tooltip&&i("img",{key:"ce4433263d27dc9d3fb2caf45069d7a92e9ae3a7",class:"tel__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("div",{key:"480cd17eafb4f2ff1e396531429177cb3130eb95",class:`tel__wrapper--flex ${e}`},i("vaadin-combo-box",{key:"5f2292c8509e5f68786d0f462c689102b1c75dc3",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.disablePhonePrefix,onChange:t=>this.handlePrefixInput(t)}),i("input",{key:"77232e119eed4960f5e1d809507b8585dd112256",type:"tel",ref:t=>this.inputReference=t,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:null!==(t=this.phoneValue)&&void 0!==t?t:"",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:"0d925cee41881c8c822073790e26ca7dc4a81049",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Pv.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;padding-left:4px}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E))}.tel__wrapper--flex-label{display:flex;gap:5px}.tel__wrapper--flex--relative{position:relative}.tel__wrapper .text__input--invalid{border:1px solid var(--emw--color-error, var(--emw--color-red, #ed0909))}.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, #22B04E));margin-left:2px}.tel__prefix{--vaadin-field-default-width:90px}.tel__prefix[focus]{outline:none}.tel__prefix::part(input-field){height:100%;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__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 Lv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.postalcodelength=5,this.touched=!1,this.handleInput=t=>{const e=t.target,i=!this.enableSouthAfricanMode||this.name!==n.FIRSTNAME_ON_DOCUMENT&&this.name!==n.LASTNAME_ON_DOCUMENT?e.value:e.value.replace(n.NON_LETTERS_REGEX,"");i!==e.value&&(e.value=i),this.value=i,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout((()=>{this.updateValidationState(),this.emitValueHandler(!0)}),500)},this.handleBlur=t=>{this.value=t.target.value,this.touched=!0,this.updateValidationState()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.validation=void 0,this.defaultValue="",this.autofilled=void 0,this.tooltip=void 0,this.language=void 0,this.checkValidity=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.haspostalcodelookup=void 0,this.enableSouthAfricanMode=void 0,this.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1,this.selectedCountryCode=""}handleStylingChange(t,e){t!==e&&this.setClientStyling()}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){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}valueChangedHandler(t){this.isDuplicateInput&&this.name===t.detail.name+"Duplicate"&&(this.duplicateInputValue=t.detail.value,this.touched&&this.updateValidationState()),this.name===t.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===t.detail.name&&this.touched&&this.updateValidationState()}handleValidationChange(t){t.detail.field===this.name&&(this.validation=t.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.isValidValue(),this.errorMessage=this.setErrorMessage()))}handleCountryCodeUpdate(t){const{name:e,value:i}=t.detail;this.selectedCountryCode=i,"CountryCode"===e&&["address1","address2","City"].includes(this.name)&&(this.value="",this.touched=!1,this.errorMessage="",this.isValid=!1,this.inputReference&&(this.inputReference.value=""),this.valueHandler({name:this.name,value:""}),this.validityStateHandler({valid:!1,name:this.name}))}handleAddressSelection(t){const{city:e,address1:i,address2:r}=t.detail;if(!["address1","address2","City"].includes(this.name))return;let o="";"address1"===this.name?o=i:"address2"===this.name?o=r:"City"===this.name&&(o=e),this.value=o,this.touched=!0,this.updateValidationState()}connectedCallback(){this.validationPattern=this.setPattern()}handleExternalDocUpdate(t){this.name===n.DOCUMENT_NUMBER&&(this.value=t.detail||"",this.touched=!0,this.inputReference&&(this.inputReference.value=this.value),this.sendInputValue.emit({name:this.name,value:this.value}),this.updateValidationState())}handleDocReset(){this.name===n.DOCUMENT_NUMBER&&(this.value="",this.touched=!1,this.isValid=!1,this.errorMessage="",this.inputReference&&(this.inputReference.value=""),this.validityStateHandler({valid:!1,name:this.name}))}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentWillLoad(){this.defaultValue&&(this.value=this.defaultValue)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.haspostalcodelookup&&["address1","address2","City","PostalCode"].includes(this.name)&&(window.targetInputRefs=window.targetInputRefs||{},window.targetInputRefs[this.name]=this.inputReference),this.isValid=this.isValidValue()}validateDocument(t,e){const i=t.trim();if(e===n.PASSPORT)return n.PASSPORT_NUMERIC_REGEX.test(i)?{valid:!0}:{valid:!1,errorKey:"PassportLengthError"};if(e===n.SOUTH_AFRICAN_ID){if(i.length!==n.SOUTH_AFRICAN_ID_LENGTH)return{valid:!1,errorKey:"SAIdLengthError"};const t=(t=>{if(!n.SA_ID_BASIC_REGEX.test(t))return!1;const e=t.split("").map((t=>parseInt(t,10)));let i=0;for(let t=0;t<12;t+=2)i+=e[t];let r="";for(let t=1;t<12;t+=2)r+=e[t];return(10-(i+(2*parseInt(r,10)).toString().split("").reduce(((t,e)=>t+parseInt(e,10)),0))%10)%10===e[12]})(i);return t?{valid:!0}:{valid:!1,errorKey:"SAIdInvalidError"}}return{valid:!0}}updateValidationState(){const t=this.isValidValue();this.isValid=t,this.errorMessage=this.touched?t?"":this.setErrorMessage():""}isValidValue(){if(!this.inputReference)return!1;if(this.enableSouthAfricanMode&&this.name===n.DOCUMENT_NUMBER){const t=window.documentTypeValue;return this.validateDocument(this.value,t).valid}return""===this.value.trim()&&!this.validation.mandatory||this.inputReference.validity.valid&&(!this.inputReference.value||null!==this.inputReference.value.match(this.validationPattern))}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;const o=this.value.trim();if(this.enableSouthAfricanMode&&this.name===n.DOCUMENT_NUMBER){const t=window.documentTypeValue,e=this.validateDocument(this.value,t);return e.valid?"":a(e.errorKey,this.language)}if(""===o&&!this.validation.mandatory)return"";if(this.inputReference.validity.valueMissing)return a("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return a("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(null==this.inputReference.value.match(this.validationPattern)){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 a(`${i}`,this.language)||r}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 a(`${t}`,this.language)?a(`${t}`,this.language):e}return""}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:"7e4006b92f6c1e2d8b39694fd85fad7d672c18fd",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:t=>this.stylingContainer=t},i("div",{key:"e70be4a8daef6cbaa25d438b4d1edaecf6db5159",class:"text__wrapper--flex"},i("label",{key:"0b09f624c460c9d777dd10b887430a4e6de8cacc",class:"text__label "+(this.validation.mandatory?"text__label--required":""),htmlFor:`${this.name}__input`},this.displayName),i("div",{key:"df36d8f44540b35a65f816ade477c4f4ff077977",class:"text__wrapper--relative"},this.tooltip&&i("img",{key:"85e25624de052cad543c883514ba0c0a522d249f",class:"text__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),i("input",{key:"bf34796489a118f3c4849c3b8b7680fb77f5a2eb",name:this.name,id:`${this.name}__input`,value:this.value,type:"text",class:`text__input ${t}`,placeholder:`${this.placeholder}`,ref:t=>this.inputReference=t,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.enableSouthAfricanMode?"":this.validation.minLength,maxlength:this.enableSouthAfricanMode?"":this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),i("small",{key:"725e4208a8170b6cf34869c44ec8cb29c2c7c93f",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Lv.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}.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, #22B04E));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, #22B04E))}.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}.pulse-border{border:1px solid var(--emw--registration-red-600, #cc4c4c);animation:pulse 0.5s ease-in-out 2 forwards}@keyframes pulse{0%{border-color:var(--emw--registration-red-600, #cc4c4c)}50%{border-color:var(--emw--registration-red-400, #e57373)}100%{border-color:var(--emw--color-gray-100, #E6E6E6)}}';const jv=class{constructor(i){t(this,i),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(t,e)=>{t.stopPropagation(),window.postMessage({type:`registration${e}Clicked`},window.location.href)},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.name=void 0,this.displayName=void 0,this.defaultValue="",this.options=void 0,this.autofilled=void 0,this.tooltip=void 0,this.validation=void 0,this.language=void 0,this.emitValue=void 0,this.clientStyling="",this.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1,this.showFields="true"===this.defaultValue}handleStylingChange(t,e){t!==e&&this.setClientStyling()}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){0!==this.options.length&&this.options.forEach((t=>{this.callBackObject[t.name]=e=>{this.handleRevealField(e,t.name)},this.subFieldsObject[t.name].addEventListener("click",this.callBackObject[t.name])}))}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 a("requiredError",this.language)}disconnectedCallback(){this.options.forEach((t=>{this.subFieldsObject[t.name].removeEventListener("click",this.callBackObject[t.name])}))}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:"828751327e59e9649afc04c6c9f7a02ef7dcae8d",class:`togglecheckbox__wrapper ${this.name}__input`,ref:t=>this.stylingContainer=t},i("div",{key:"d02a2a6ef595aaf7142cbc6e9681394ee4db8fee",class:"togglecheckbox__wrapper--flex"},i("input",{key:"fca6401ef6eb178f53471362444d54ed69086429",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:"3781a8fdfeb719422693bcd541a4a3fe708e705a",class:"togglecheckbox__error-message"},this.errorMessage),i("div",{key:"27a4c6b047cd332407ee40c82cf7be1914ed34c9",class:"togglecheckbox__wrapper--relative"},this.tooltip&&i("img",{key:"f1367d7e061d20ad68c24dfbe3147e6b67df746f",class:"togglecheckbox__tooltip-icon",src:l,alt:"",ref:t=>this.tooltipIconReference=t,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),i("div",{key:"98d42103554de4d14a65eafd1722bf9d587a27f1",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,ref:e=>this.subFieldsObject[t.name]=e})))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};jv.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, #22B04E))}.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, #22B04E))}.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}';const Fv=class{constructor(i){t(this,i),this.registrationWidgetLoaded=e(this,"registrationWidgetLoaded",7),this.sendValidityState=e(this,"sendValidityState",7),this.sendInputValue=e(this,"sendInputValue",7),this.resendCode=e(this,"resendCode",7),this.validationPattern="",this.stylingContainer=null,this.tooltipReference=null,this.tooltipIconReference=null,this.inputRefs=[],this.containerRef=null,this.resendInterval=null,this.resendCodeHandler=()=>{this.triggerResendInterval(),this.resendCode.emit()},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)}))},this.setInputRef=(t,e)=>{t&&(this.inputRefs[e]=t)},this.setContainerRef=t=>{t&&(this.containerRef=t)},this.triggerResendInterval=()=>{this.isResendButtonAvailable=!1,this.resendInterval&&clearInterval(this.resendInterval),this.resendInterval=setInterval((()=>{--this.resendIntervalSecondsLeft<=0&&(clearInterval(this.resendInterval),this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.isResendButtonAvailable=!0)}),1e3)},this.formatTime=()=>{const t=String(Math.floor(this.resendIntervalSecondsLeft/60));let e=String(this.resendIntervalSecondsLeft%60);return 1===e.length&&(e="0"+e),`${t}:${e}`},this.handleInput=(t,e)=>{const i=t.target,r=i.value.slice(-1);if(i.value=r,!r)return;this.code[e]=r,this.enableSouthAfricanMode&&(this.revealedIndexes=[e],this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout((()=>{this.revealedIndexes=[]}),500));const o=this.inputRefs[e+1];o&&o.focus(),this.setValidity(),this.setErrorMessage()},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setStreamStyling=t=>{if(window.emMessageBus){const e=document.createElement("style");this.stylingSubscription=window.emMessageBus.subscribe(t,(t=>{e.innerHTML=t,this.clientStyling=t,this.host.shadowRoot.prepend(e)}))}},this.name="",this.displayName="",this.placeholder="",this.validation=void 0,this.tooltip="",this.language="en",this.emitValue=!0,this.destination="",this.resendIntervalSeconds=60,this.clientStyling="",this.enableSouthAfricanMode=void 0,this.pinAttemptsExceeded=void 0,this.clientStylingUrl="",this.mbSource=void 0,this.limitStylingAppends=!1,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds,this.revealedIndexes=[]}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),1==this.emitValue&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(t){1==t&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}handleStylingUrlChange(t,e){t!==e&&this.setClientStylingURL()}validityStateHandler(t){this.sendValidityState.emit(t)}valueHandler(t){this.sendInputValue.emit(t)}handleClickOutside(t){const e=t.composedPath();e.includes(this.tooltipIconReference)||e.includes(this.tooltipReference)||(this.showTooltip=!1)}handleStylingChange(t,e){t!==e&&this.setClientStyling()}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}disconnectedCallback(){this.stylingSubscription&&this.stylingSubscription.unsubscribe()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.setValidity(),this.registrationWidgetLoaded.emit(),window.postMessage({type:"registrationWidgetLoaded"},window.location.href),!this.limitStylingAppends&&this.host&&(null!=window.emMessageBus?this.setStreamStyling(`${this.mbSource}.Style`):(this.clientStyling&&this.setClientStyling(),this.clientStylingUrl&&this.setClientStylingURL(),this.limitStylingAppends=!0))}handleKeyDown(t,e){if("Backspace"===t.key){const t=[...this.code];t[e]="",this.code=t,this.enableSouthAfricanMode&&(this.revealedIndexes=this.revealedIndexes.filter((t=>t!==e)));const i=this.inputRefs[e-1];null==i||i.focus()}this.setValidity(),this.setErrorMessage()}handlePaste(t){var e,i;t.preventDefault();const r=null===(i=null===(e=t.clipboardData)||void 0===e?void 0:e.getData("text"))||void 0===i?void 0:i.trim();if(!r)return;const o=r.slice(0,this.validation.maxLength).split("");this.code=[...o,...new Array(this.validation.maxLength-o.length).fill("")],this.enableSouthAfricanMode&&(this.revealedIndexes=o.map(((t,e)=>e)),this.revealTimeout&&clearTimeout(this.revealTimeout),this.revealTimeout=setTimeout((()=>{this.revealedIndexes=[]}),500));const s=this.inputRefs[Math.min(o.length,this.inputRefs.length-1)];null==s||s.focus(),this.setValidity(),this.setErrorMessage(),this.enableSouthAfricanMode&&(this.valueHandler({name:this.name,value:this.code.join("")}),this.validityStateHandler({valid:this.isValid,name:this.name}))}setValidity(){const t=this.code.join(""),e=t.length===this.validation.maxLength,i=null!==t.match(this.validationPattern);this.isValid=e&&i}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;if(null!==this.code.join("").match(this.validationPattern))this.errorMessage="";else{const e=null===(t=this.validation.custom.find((t=>"regex"===t.rule)))||void 0===t?void 0:t.errorKey;e&&(this.errorMessage=a(e,this.language))}}renderTooltip(){return this.showTooltip?i("div",{class:"text__tooltip "+(this.showTooltip?"visible":""),ref:t=>this.tooltipReference=t,innerHTML:this.tooltip}):null}getInputDisplayValue(t){const e=this.code[t];return e?this.enableSouthAfricanMode?this.revealedIndexes.includes(t)?e:"*":e:""}render(){return i("div",{key:"08b9139f1c2236dd40a045517a9623ad966f29d3",class:"twofa",ref:t=>this.stylingContainer=t},i("div",{key:"7528885100be3d450ec52aafd6085a4c852710c8",class:"twofa__error-message"},i("p",{key:"51dab3f02156b5eb3b7408f06f2d359cfbda11a7"},this.errorMessage)),i("div",{key:"f336f89ecee0724663b1bbb4d443bb834336b5c1",class:"twofa__description",innerHTML:a("twofaDescription",this.language,{values:{destination:this.destination}})}),i("div",{key:"5127127ccc8e50428f8319fddc9e21606f3b4148",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map(((t,e)=>i("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:this.getInputDisplayValue(e),onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)})))),i("div",{key:"be82ae1192129d571275b78c8097c3023468cf3e",class:"twofa__button-wrapper"},i("p",{key:"11de61d738ffa74bfd44f0d7c88fc4e456647d0c",class:"twofa__resend-message"},a("twofaResendMessage",this.language)),i("button",{key:"84d5c55c4d9bf024164ec52e2100cfcc8c236ac2",class:"twofa__resend-button "+(this.pinAttemptsExceeded?"twofa__resend-button--disabled":""),onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable||this.pinAttemptsExceeded},this.isResendButtonAvailable?a("twofaResendButton",this.language):this.formatTime())))}get host(){return r(this)}static get watchers(){return{isValid:["validityChanged"],emitValue:["emitValueHandler"],clientStylingUrl:["handleStylingUrlChange"],clientStyling:["handleStylingChange"]}}};Fv.style="*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.twofa{display:flex;flex-direction:column;gap:10px}.twofa__description{display:flex;flex-direction:column;gap:10px;align-items:center;justify-content:center}.twofa__error-message{text-align:center;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.twofa__input-wrapper{display:flex;justify-content:center}.twofa__input-wrapper input{width:35px;height:35px;padding:10px;text-align:center;border-radius:var(--emw--border-radius-small, 5px);margin-left:5px;margin-right:5px;border:2px solid var(--emw--otp-border-color, #55525c);font-weight:var(--emw-font-weight-bold, 800);outline:none;transition:all 0.1s}.twofa__input-wrapper input:focus{border:2px solid var(--emw--color-primary, #22B04E);box-shadow:0 0 2px 2px var(--emw--color-primary, #22B04E)}.twofa__button-wrapper{justify-content:center;text-align:center}.twofa__button-wrapper button{border:none;background:none;font-weight:var(--emw-font-weight-bold, 800);color:var(--emw--color-primary, #22B04E);cursor:pointer}";export{h as checkbox_group_input,d as checkbox_input,Ye as date_input,Ze as email_input,dc as general_input,Nv as general_registration_multistep,zv as number_input,Gv as password_input,Mv as postalcode_input,Bv as radio_input,Uv as select_input,Pv as tel_input,Lv as text_input,jv as toggle_checkbox_input,Fv as twofa_input}