@everymatrix/player-account-controller 1.74.3 → 1.74.4

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.
Files changed (155) hide show
  1. package/components/{GeneralLogout-CiyGpZGU.js → GeneralLogout-DIRnj10H.js} +1298 -1284
  2. package/components/{GeneralLogout-Vg76ri4V.js → GeneralLogout-Dd4n6Kp2.js} +1322 -1308
  3. package/components/GeneralLogout-TofSUXEw.cjs +21 -0
  4. package/components/PlayerAccountBettingHistory-85apG_ux.cjs +1 -0
  5. package/components/PlayerAccountBettingHistory-CuMJRUaH.js +310 -0
  6. package/components/PlayerAccountBettingHistory-ZZH1M51O.js +311 -0
  7. package/components/{PlayerAccountBiometrics-C2wumiJ3.js → PlayerAccountBiometrics-D8lv7JzY.js} +5 -5
  8. package/components/{PlayerAccountBiometrics-CH9MN1vT.js → PlayerAccountBiometrics-DzUvqvfR.js} +5 -5
  9. package/components/{PlayerAccountBiometrics-DPdT285K.cjs → PlayerAccountBiometrics-N164JTVo.cjs} +1 -1
  10. package/components/{PlayerAccountClosure-BqrCJaGp.js → PlayerAccountClosure-B7LJRfF_.js} +6 -6
  11. package/components/{PlayerAccountClosure-DG5NrDqY.cjs → PlayerAccountClosure-ByNnHtUf.cjs} +1 -1
  12. package/components/{PlayerAccountClosure-Dda9CHdX.js → PlayerAccountClosure-VNjXTTeE.js} +6 -6
  13. package/components/{PlayerAccountController-DQL2LeOb.js → PlayerAccountController-B47r10OB.js} +362 -332
  14. package/components/PlayerAccountController-DGK3dgIb.cjs +1 -0
  15. package/components/{PlayerAccountController-CVBzkzGD.js → PlayerAccountController-OkqLzDKb.js} +361 -331
  16. package/components/{PlayerAccountGamingLimits-CJksEBIA.js → PlayerAccountGamingLimits-BPAFyYb5.js} +124 -124
  17. package/components/{PlayerAccountGamingLimits-CqPkjNdS.js → PlayerAccountGamingLimits-CSFkUiYY.js} +124 -124
  18. package/components/{PlayerAccountGamingLimits-B2vzRems.cjs → PlayerAccountGamingLimits-DLyOkU8g.cjs} +1 -1
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-BX8_aYoz.js → PlayerAccountGamingLimitsConfirmationModal-DON2ejFa.js} +38 -38
  20. package/components/{PlayerAccountGamingLimitsConfirmationModal-CfPKMMkU.js → PlayerAccountGamingLimitsConfirmationModal-De1JAgPX.js} +38 -38
  21. package/components/PlayerAccountGamingLimitsConfirmationModal-cxg0byfD.cjs +1 -0
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-BD9SWhvO.js → PlayerAccountGamingLimitsGroupEdit-B4l5VAbb.js} +1009 -1009
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-JerzRaIW.cjs → PlayerAccountGamingLimitsGroupEdit-BEb7Fv28.cjs} +2 -2
  24. package/components/{PlayerAccountGamingLimitsGroupEdit-Ageqronh.js → PlayerAccountGamingLimitsGroupEdit-CrgfBvua.js} +1009 -1009
  25. package/components/{PlayerAccountGamingLimitsHistory2-kH5zBkQX.js → PlayerAccountGamingLimitsHistory2-BRgxAXo_.js} +4 -4
  26. package/components/{PlayerAccountGamingLimitsHistory2-BusoJL-w.js → PlayerAccountGamingLimitsHistory2-RFRr_X30.js} +4 -4
  27. package/components/{PlayerAccountGamingLimitsHistory2-B6QgZ3Qd.cjs → PlayerAccountGamingLimitsHistory2-x-v5JjhN.cjs} +1 -1
  28. package/components/{PlayerAccountGamingLimitsInfoCard-BHAREEgX.js → PlayerAccountGamingLimitsInfoCard-BRDuV_cd.js} +7 -7
  29. package/components/{PlayerAccountGamingLimitsInfoCard-BvQ7pktR.js → PlayerAccountGamingLimitsInfoCard-BiwEIF0r.js} +7 -7
  30. package/components/{PlayerAccountGamingLimitsInfoCard-DRRou8s9.cjs → PlayerAccountGamingLimitsInfoCard-XCP1Kxff.cjs} +1 -1
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-owJ6cmPy.js → PlayerAccountGamingLimitsPage2Gm16-BFhDf8Ly.js} +39 -39
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16-oWyrFFWN.cjs → PlayerAccountGamingLimitsPage2Gm16-DsN5QHb_.cjs} +4 -4
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-BJQwwwIU.js → PlayerAccountGamingLimitsPage2Gm16-pzTyrq62.js} +28 -28
  34. package/components/{PlayerAccountGamingLimitsPopup-D0ltWJSo.js → PlayerAccountGamingLimitsPopup-Biyoz4lK.js} +21 -21
  35. package/components/{PlayerAccountGamingLimitsPopup-D16rhs4n.cjs → PlayerAccountGamingLimitsPopup-DNjM-xS5.cjs} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPopup-Bl1xoGPY.js → PlayerAccountGamingLimitsPopup-cBscDgFe.js} +21 -21
  37. package/components/{PlayerAccountGamingLimitsWrapper2-e5y4zRJf.cjs → PlayerAccountGamingLimitsWrapper2-BoG8Um5-.cjs} +1 -1
  38. package/components/{PlayerAccountGamingLimitsWrapper2-Ct9MhOhZ.js → PlayerAccountGamingLimitsWrapper2-Btk8D8Or.js} +6 -6
  39. package/components/{PlayerAccountGamingLimitsWrapper2-VtZ2jIY4.js → PlayerAccountGamingLimitsWrapper2-BwW74eAX.js} +6 -6
  40. package/components/PlayerAccountGeneralConfirmationModal-BFCCI67b.cjs +1 -0
  41. package/components/{PlayerAccountGeneralConfirmationModal-JvzRw4bx.js → PlayerAccountGeneralConfirmationModal-BNoE_P3G.js} +53 -53
  42. package/components/{PlayerAccountGeneralConfirmationModal-T_JYxL62.js → PlayerAccountGeneralConfirmationModal-q4Du5zdg.js} +53 -53
  43. package/components/{PlayerAccountMenu-DPpd0Onj.js → PlayerAccountMenu-BbdWpRLe.js} +7 -7
  44. package/components/{PlayerAccountMenu-C4sG1dhf.js → PlayerAccountMenu-BicTGCSZ.js} +7 -7
  45. package/components/{PlayerAccountMenu-JDfi5y52.cjs → PlayerAccountMenu-CVBew6Nf.cjs} +1 -1
  46. package/components/{PlayerAccountModal-DvJ0OsPC.cjs → PlayerAccountModal-DaIBO9tP.cjs} +1 -1
  47. package/components/{PlayerAccountModal-BGCTA59j.js → PlayerAccountModal-Day4vMPZ.js} +10 -10
  48. package/components/{PlayerAccountModal-DkyQ5JIi.js → PlayerAccountModal-J-6B3L2x.js} +10 -10
  49. package/components/{PlayerAccountNotifications-CdPeCghS.cjs → PlayerAccountNotifications-BbvJAh0S.cjs} +1 -1
  50. package/components/{PlayerAccountNotifications-OJnPC108.js → PlayerAccountNotifications-PuDZBFQ4.js} +6 -6
  51. package/components/{PlayerAccountNotifications-DTtMvV8M.js → PlayerAccountNotifications-wc_EBqY2.js} +6 -6
  52. package/components/{PlayerAccountProductRestriction-Jrbxe9JW.js → PlayerAccountProductRestriction-BrbHcAfU.js} +2468 -2464
  53. package/components/{PlayerAccountProductRestriction-Da6GbBbG.js → PlayerAccountProductRestriction-CLG0mXNs.js} +2489 -2485
  54. package/components/{PlayerAccountProductRestriction-DuSld9Fq.cjs → PlayerAccountProductRestriction-nQ_8_MV1.cjs} +256 -256
  55. package/components/{PlayerAccountSelfExclusion-Clp_vRMQ.cjs → PlayerAccountSelfExclusion---HyNqaB.cjs} +153 -153
  56. package/components/{PlayerAccountSelfExclusion-DVySF-Tq.js → PlayerAccountSelfExclusion-CxHNtxAD.js} +1174 -1152
  57. package/components/{PlayerAccountSelfExclusion-MIfOF_J8.js → PlayerAccountSelfExclusion-DLQ-HVLx.js} +1156 -1134
  58. package/components/{PlayerAccountTimeout-X-RnEi2e.cjs → PlayerAccountTimeout-B98Pp_88.cjs} +1 -1
  59. package/components/{PlayerAccountTimeout-BEU2B8s4.js → PlayerAccountTimeout-BiuDm_C7.js} +43 -43
  60. package/components/{PlayerAccountTimeout-CHGY9L2A.js → PlayerAccountTimeout-BwriD4ZF.js} +43 -43
  61. package/components/{PlayerAccountTransactionsHistory-gBDCo_IB.js → PlayerAccountTransactionsHistory-CKkc0h_L.js} +7 -7
  62. package/components/{PlayerAccountTransactionsHistory-YUkSnVhN.cjs → PlayerAccountTransactionsHistory-D1eLaVcc.cjs} +1 -1
  63. package/components/{PlayerAccountTransactionsHistory-DnFIYed1.js → PlayerAccountTransactionsHistory-DJuFj0z7.js} +7 -7
  64. package/components/{PlayerActiveBonuses-DcuRFKFP.js → PlayerActiveBonuses-DBGj3lj2.js} +6 -6
  65. package/components/{PlayerActiveBonuses-Me5Q3o65.cjs → PlayerActiveBonuses-VMRnoY1_.cjs} +1 -1
  66. package/components/{PlayerActiveBonuses-BWfdGowJ.js → PlayerActiveBonuses-lflDqCU8.js} +6 -6
  67. package/components/{PlayerBonusCard-CkEs_ikq.js → PlayerBonusCard-B58kMR83.js} +7 -7
  68. package/components/{PlayerBonusCard-D8XTVs99.js → PlayerBonusCard-D68dTYiw.js} +7 -7
  69. package/components/{PlayerBonusCard-DgyhSYBs.cjs → PlayerBonusCard-KehruUku.cjs} +1 -1
  70. package/components/{PlayerBonusHistory-ZFIgO-Nk.js → PlayerBonusHistory-BtsC9ZN8.js} +7 -7
  71. package/components/{PlayerBonusHistory-Btorhb5T.js → PlayerBonusHistory-DdcyUG-1.js} +7 -7
  72. package/components/{PlayerBonusHistory-B1tNYVjn.cjs → PlayerBonusHistory-l9JKc1SI.cjs} +1 -1
  73. package/components/{PlayerChangePassword-Cc15tSRv.js → PlayerChangePassword-CQqQIyDU.js} +4 -4
  74. package/components/{PlayerChangePassword-CfCN79eP.cjs → PlayerChangePassword-DYpl0DV7.cjs} +1 -1
  75. package/components/{PlayerChangePassword-Hj0mD9xL.js → PlayerChangePassword-VQJYG-HQ.js} +4 -4
  76. package/components/PlayerDeposit-BLDWbMBK.cjs +1 -0
  77. package/components/{PlayerDeposit-Bm1DOHlW.js → PlayerDeposit-R4oRYCP7.js} +73 -73
  78. package/components/{PlayerDeposit-BpS3fS46.js → PlayerDeposit-nin4U--Y.js} +73 -73
  79. package/components/{PlayerGamingHistory-Dd5-sNUi.js → PlayerGamingHistory-CgSvSixH.js} +53 -53
  80. package/components/{PlayerGamingHistory-DEncqPtG.cjs → PlayerGamingHistory-DrygiT7t.cjs} +1 -1
  81. package/components/{PlayerGamingHistory-DdlUmYIJ.js → PlayerGamingHistory-GxtuAObW.js} +60 -60
  82. package/components/{PlayerPendingWithdrawals-scSFcYAA.js → PlayerPendingWithdrawals-C1tt1OJl.js} +6 -6
  83. package/components/{PlayerPendingWithdrawals-D-KWiMH6.cjs → PlayerPendingWithdrawals-DfQ_PvkY.cjs} +1 -1
  84. package/components/{PlayerPendingWithdrawals-pfC5sUpM.js → PlayerPendingWithdrawals-adHFXpiC.js} +6 -6
  85. package/components/{PlayerProfileInfo-CwZQ79SV.cjs → PlayerProfileInfo-CKJNYYA8.cjs} +1 -1
  86. package/components/{PlayerProfileInfo-DYvdUkJZ.js → PlayerProfileInfo-CrGJ1yEi.js} +95 -95
  87. package/components/{PlayerProfileInfo-1ELKHIQs.js → PlayerProfileInfo-DpEH00v-.js} +108 -108
  88. package/components/{PlayerRealityCheck-DLPtMaP7.js → PlayerRealityCheck-CTGhzTwa.js} +6 -6
  89. package/components/{PlayerRealityCheck-JdOGHDG6.cjs → PlayerRealityCheck-Cq2rIALW.cjs} +1 -1
  90. package/components/{PlayerRealityCheck-pQWsLK1G.js → PlayerRealityCheck-JkP_hy_p.js} +6 -6
  91. package/components/{PlayerTransactionHistory-B7ts1zGr.js → PlayerTransactionHistory-CQPQw37D.js} +6 -6
  92. package/components/{PlayerTransactionHistory-Hz2IWD73.cjs → PlayerTransactionHistory-DPvvu8Wp.cjs} +1 -1
  93. package/components/{PlayerTransactionHistory-CUa0IaZD.js → PlayerTransactionHistory-DQfalEXN.js} +6 -6
  94. package/components/{PlayerWithdrawal-BTfz-sCc.js → PlayerWithdrawal-11j92uAk.js} +6 -6
  95. package/components/{PlayerWithdrawal-P_0MIA-u.cjs → PlayerWithdrawal-BcaC1sEF.cjs} +1 -1
  96. package/components/{PlayerWithdrawal-DYVDpOnE.js → PlayerWithdrawal-yB5c-nTz.js} +6 -6
  97. package/es2015/player-account-controller.cjs +1 -1
  98. package/es2015/player-account-controller.js +1 -1
  99. package/esnext/player-account-controller.js +1 -1
  100. package/package.json +1 -1
  101. package/stencil/{checkbox-group-input_15-0289QK04.cjs → checkbox-group-input_15-BR0ZwfUi.cjs} +260 -260
  102. package/stencil/{checkbox-group-input_15-BAlJ2RSB.js → checkbox-group-input_15-BzVCOEV7.js} +3177 -3171
  103. package/stencil/{checkbox-group-input_15-P5bpc-le.js → checkbox-group-input_15-UyiNBEuH.js} +3173 -3167
  104. package/stencil/{index-13661b98-Cjrw92L5.js → index-13661b98-B9l_O4QH.js} +245 -245
  105. package/stencil/index-13661b98-BWdlHLAA.cjs +1 -0
  106. package/stencil/{index-13661b98-0KqdpSwq.js → index-13661b98-DQ52QmXa.js} +124 -124
  107. package/stencil/{index-1ef3a64c-DuKSFSN8.js → index-1ef3a64c-BJwg6KZV.js} +201 -201
  108. package/stencil/index-1ef3a64c-BkMv_VME.cjs +1 -0
  109. package/stencil/index-1ef3a64c-Cl4fiqPl.js +556 -0
  110. package/stencil/{index-7c5e707a-B54Yjxc3.js → index-7c5e707a-BZ26MA7_.js} +135 -135
  111. package/stencil/{index-7c5e707a-BHFN5Fx4.js → index-7c5e707a-CVVnpkZ1.js} +145 -145
  112. package/stencil/index-7c5e707a-d0LYIjGl.cjs +1 -0
  113. package/stencil/{index-9c0f6c58-BjPD5eYu.js → index-9c0f6c58-8sXzcKbt.js} +223 -223
  114. package/stencil/index-9c0f6c58-CbFwvYJ1.cjs +1 -0
  115. package/stencil/{index-9c0f6c58-BVjt1-QR.js → index-9c0f6c58-DH5Ki39B.js} +118 -118
  116. package/stencil/{index-b2193545-LzjWxki5.js → index-b2193545-BekNYO1T.js} +176 -176
  117. package/stencil/index-b2193545-BteAUmdh.cjs +1 -0
  118. package/stencil/{index-b2193545-DPKCFIaU.js → index-b2193545-DfDFpDFs.js} +169 -169
  119. package/stencil/{pam-change-password-CCtkdO47.cjs → pam-change-password-CnEeGd5H.cjs} +1 -1
  120. package/stencil/{pam-change-password-DTgd0kl_.js → pam-change-password-NFSIJ7d0.js} +1 -1
  121. package/stencil/{pam-change-password-f4a1e7e7-DtYo6Qns.js → pam-change-password-f4a1e7e7-CIk78u1F.js} +1 -1
  122. package/stencil/{pam-change-password-f4a1e7e7-BN6Jj_HN.cjs → pam-change-password-f4a1e7e7-CbbJR39E.cjs} +1 -1
  123. package/stencil/{pam-change-password-f4a1e7e7-D8x0jD6p.js → pam-change-password-f4a1e7e7-rXcaCqmV.js} +1 -1
  124. package/stencil/{pam-change-password-CGyD6M-i.js → pam-change-password-iphXW9aC.js} +1 -1
  125. package/stencil/{player-kyc-verification-XNdgNWvR.js → player-kyc-verification-BJuBsd7A.js} +74 -74
  126. package/stencil/player-kyc-verification-DW2tWbg_.cjs +181 -0
  127. package/stencil/{player-kyc-verification-BN1-EiQk.js → player-kyc-verification-u-XUlDen.js} +21 -21
  128. package/stencil/{ui-skeleton-Cbqo0oYF.cjs → ui-skeleton-Bez-iF-R.cjs} +1 -1
  129. package/stencil/{ui-skeleton-LneRlsD3.js → ui-skeleton-CScGJdv_.js} +2 -2
  130. package/stencil/{ui-skeleton-2XsWxl4S.js → ui-skeleton-CnxOhYAT.js} +2 -2
  131. package/stencil/{ui-skeleton-ae35c6f2-OnzqIAY0.js → ui-skeleton-ae35c6f2-Bl0_r9TX.js} +1 -1
  132. package/stencil/{ui-skeleton-ae35c6f2-8s3Rqu1P.js → ui-skeleton-ae35c6f2-CXRVKjq-.js} +1 -1
  133. package/stencil/{ui-skeleton-ae35c6f2-B4ncHe9g.cjs → ui-skeleton-ae35c6f2-D37mmp9J.cjs} +1 -1
  134. package/stencil/{user-deposit-withdrawal-CSakhNt1.js → user-deposit-withdrawal-B7dnuKq0.js} +45 -45
  135. package/stencil/{user-deposit-withdrawal-BP58nPO1.cjs → user-deposit-withdrawal-KqJCF9Hl.cjs} +2 -2
  136. package/stencil/{user-deposit-withdrawal-DcVKAa80.js → user-deposit-withdrawal-ar8K3Kn7.js} +45 -45
  137. package/stencil/{user-transaction-history-D0jBcRwe.js → user-transaction-history-D86WcqZY.js} +588 -588
  138. package/stencil/{user-transaction-history-BrBScppC.js → user-transaction-history-o1zvVNkt.js} +600 -600
  139. package/stencil/user-transaction-history-xgpDQYWU.cjs +1 -0
  140. package/components/GeneralLogout-COm1JcKW.cjs +0 -21
  141. package/components/PlayerAccountBettingHistory-Bv1Qcp8m.js +0 -311
  142. package/components/PlayerAccountBettingHistory-CE023VGz.cjs +0 -1
  143. package/components/PlayerAccountBettingHistory-Dn9IsrIP.js +0 -310
  144. package/components/PlayerAccountController-BLYf29U_.cjs +0 -1
  145. package/components/PlayerAccountGamingLimitsConfirmationModal-BR2Qm3Iq.cjs +0 -1
  146. package/components/PlayerAccountGeneralConfirmationModal-BajaU0jJ.cjs +0 -1
  147. package/components/PlayerDeposit-CmBFg6tX.cjs +0 -1
  148. package/stencil/index-13661b98-DmQ3LyqA.cjs +0 -1
  149. package/stencil/index-1ef3a64c-DD-PHh2g.cjs +0 -1
  150. package/stencil/index-1ef3a64c-DQk1yZfC.js +0 -556
  151. package/stencil/index-7c5e707a-CFlTnjRT.cjs +0 -1
  152. package/stencil/index-9c0f6c58-DZU9DhI3.cjs +0 -1
  153. package/stencil/index-b2193545-BMFR9-V2.cjs +0 -1
  154. package/stencil/player-kyc-verification-D347xSwD.cjs +0 -181
  155. package/stencil/user-transaction-history-HA_tfHfo.cjs +0 -1
@@ -1,5 +1,5 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const u=require("./index-13661b98-DmQ3LyqA.cjs"),No=require("./pam-change-password-f4a1e7e7-BN6Jj_HN.cjs"),zo="en",ga={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",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"},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",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"},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",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"},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",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"},"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",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"},"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",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"}},y=(i,e,t)=>{const r=e;let n=ga[r!==void 0?r:zo][i];if(t!==void 0)for(const[a,s]of Object.entries(t.values)){const o=new RegExp(`{${a}}`,"g");n=n.replace(o,s)}return n},Lo=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(r=>{for(let n in t[r])ga[r][n]=t[r][n]}),e(!0)})}),se="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",Fo='*,*::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}',Ro=Fo,va=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.value=null,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((i,e)=>(i[e.name]=this.selectedValues.includes(e.name),i),{}),this.emitValueHandler(!0)}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.showCheckboxes=!0,this.selectedValues=this.options.map(i=>i.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 y("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}handleParentCheckbox(i){const e=i.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map(t=>t.name):[]}renderLabel(){return u.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},u.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return u.h("div",{key:"2eab716c27576d42a67d791b546022d58e89e21d",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("div",{key:"9e246685583dd06a156d6b11308b2cb355d37d01",class:"checkboxgroup__wrapper--flex"},u.h("vaadin-checkbox",{key:"ba6a64bdd1d1141407ed65213684d3b4d643effc",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||this.defaultValue==="true",indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:i=>this.handleParentCheckbox(i)},this.renderLabel()),this.tooltip&&u.h("img",{key:"2c23ca2dfe4213d9287958b5e6f09f76e9e3b031",class:"checkboxgroup__tooltip-icon",src:se,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),u.h("small",{key:"3180a35a47e4b57d8634da2f516d0c5c71ee0e9f",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&u.h("vaadin-checkbox-group",{key:"b28fee432aa7bffe6aedf708f1ce9603a52833de",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>u.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return u.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};va.style=Ro;const $o='*,*::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{content:"*"}.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}',Ho=$o,ba=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.value="",this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==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(i){this.value=i.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 y("requiredError",this.language)}renderLabel(){return u.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},u.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?u.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return u.h("div",{key:"e9dfb4e2a6b99d740eaa7d94d1ff3aea9587bcc9",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("vaadin-checkbox",{key:"cc2a8d1c131bd04febf221538f01d7334169d92a",class:"checkbox__input",required:this.validation.mandatory,checked:this.defaultValue==="true",onChange:i=>this.handleCheckbox(i),"error-message":!this.isValid&&this.errorMessage,ref:i=>this.vaadinCheckbox=i},this.renderLabel()),this.tooltip&&u.h("img",{key:"a94be7eefe15593f0cfa90d89bed1f536bd51103",class:"checkboxgroup__tooltip-icon",src:se,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};ba.style=Ho;function _e(i){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(i)}function F(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function Bo(i){return F(1,arguments),i instanceof Date||_e(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function U(i){F(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||_e(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(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 ya(i){if(F(1,arguments),!Bo(i)&&typeof i!="number")return!1;var e=U(i);return!isNaN(Number(e))}function J(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function Uo(i,e){F(2,arguments);var t=U(i).getTime(),r=J(e);return new Date(t+r)}function wa(i,e){F(2,arguments);var t=J(e);return Uo(i,-t)}var qo=864e5;function Wo(i){F(1,arguments);var e=U(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),n=t-r;return Math.floor(n/qo)+1}function We(i){F(1,arguments);var e=1,t=U(i),r=t.getUTCDay(),n=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-n),t.setUTCHours(0,0,0,0),t}function xa(i){F(1,arguments);var e=U(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var n=We(r),a=new Date(0);a.setUTCFullYear(t,0,4),a.setUTCHours(0,0,0,0);var s=We(a);return e.getTime()>=n.getTime()?t+1:e.getTime()>=s.getTime()?t:t-1}function jo(i){F(1,arguments);var e=xa(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=We(t);return r}var Yo=6048e5;function Ca(i){F(1,arguments);var e=U(i),t=We(e).getTime()-jo(e).getTime();return Math.round(t/Yo)+1}var Go={};function Qe(){return Go}function De(i,e){var t,r,n,a,s,o,l,d;F(1,arguments);var h=Qe(),c=J((t=(r=(n=(a=e==null?void 0:e.weekStartsOn)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.weekStartsOn)!==null&&n!==void 0?n:h.weekStartsOn)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(c>=0&&c<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=U(i),m=p.getUTCDay(),b=(m<c?7:0)+m-c;return p.setUTCDate(p.getUTCDate()-b),p.setUTCHours(0,0,0,0),p}function _r(i,e){var t,r,n,a,s,o,l,d;F(1,arguments);var h=U(i),c=h.getUTCFullYear(),p=Qe(),m=J((t=(r=(n=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&n!==void 0?n:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(c+1,0,m),b.setUTCHours(0,0,0,0);var M=De(b,e),S=new Date(0);S.setUTCFullYear(c,0,m),S.setUTCHours(0,0,0,0);var O=De(S,e);return h.getTime()>=M.getTime()?c+1:h.getTime()>=O.getTime()?c:c-1}function Ko(i,e){var t,r,n,a,s,o,l,d;F(1,arguments);var h=Qe(),c=J((t=(r=(n=(a=e==null?void 0:e.firstWeekContainsDate)!==null&&a!==void 0?a:e==null||(s=e.locale)===null||s===void 0||(o=s.options)===null||o===void 0?void 0:o.firstWeekContainsDate)!==null&&n!==void 0?n:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=_r(i,e),m=new Date(0);m.setUTCFullYear(p,0,c),m.setUTCHours(0,0,0,0);var b=De(m,e);return b}var Qo=6048e5;function ka(i,e){F(1,arguments);var t=U(i),r=De(t,e).getTime()-Ko(t,e).getTime();return Math.round(r/Qo)+1}function V(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var Xo={y:function(e,t){var r=e.getUTCFullYear(),n=r>0?r:1-r;return V(t==="yy"?n%100:n,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):V(r+1,2)},d:function(e,t){return V(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return V(e.getUTCHours()%12||12,t.length)},H:function(e,t){return V(e.getUTCHours(),t.length)},m:function(e,t){return V(e.getUTCMinutes(),t.length)},s:function(e,t){return V(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,n=e.getUTCMilliseconds(),a=Math.floor(n*Math.pow(10,r-3));return V(a,t.length)}};const ve=Xo;var Le={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Jo={G:function(e,t,r){var n=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});case"GGGG":default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var n=e.getUTCFullYear(),a=n>0?n:1-n;return r.ordinalNumber(a,{unit:"year"})}return ve.y(e,t)},Y:function(e,t,r,n){var a=_r(e,n),s=a>0?a:1-a;if(t==="YY"){var o=s%100;return V(o,2)}return t==="Yo"?r.ordinalNumber(s,{unit:"year"}):V(s,t.length)},R:function(e,t){var r=xa(e);return V(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return V(r,t.length)},Q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return V(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){var n=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return V(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){var n=e.getUTCMonth();switch(t){case"M":case"MM":return ve.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){var n=e.getUTCMonth();switch(t){case"L":return String(n+1);case"LL":return V(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){var a=ka(e,n);return t==="wo"?r.ordinalNumber(a,{unit:"week"}):V(a,t.length)},I:function(e,t,r){var n=Ca(e);return t==="Io"?r.ordinalNumber(n,{unit:"week"}):V(n,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):ve.d(e,t)},D:function(e,t,r){var n=Wo(e);return t==="Do"?r.ordinalNumber(n,{unit:"dayOfYear"}):V(n,t.length)},E:function(e,t,r){var n=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});case"EEEE":default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){var a=e.getUTCDay(),s=(a-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(s);case"ee":return V(s,2);case"eo":return r.ordinalNumber(s,{unit:"day"});case"eee":return r.day(a,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(a,{width:"short",context:"formatting"});case"eeee":default:return r.day(a,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){var a=e.getUTCDay(),s=(a-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(s);case"cc":return V(s,t.length);case"co":return r.ordinalNumber(s,{unit:"day"});case"ccc":return r.day(a,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(a,{width:"narrow",context:"standalone"});case"cccccc":return r.day(a,{width:"short",context:"standalone"});case"cccc":default:return r.day(a,{width:"wide",context:"standalone"})}},i:function(e,t,r){var n=e.getUTCDay(),a=n===0?7:n;switch(t){case"i":return String(a);case"ii":return V(a,t.length);case"io":return r.ordinalNumber(a,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});case"iiii":default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){var n=e.getUTCHours(),a=n/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},b:function(e,t,r){var n=e.getUTCHours(),a;switch(n===12?a=Le.noon:n===0?a=Le.midnight:a=n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},B:function(e,t,r){var n=e.getUTCHours(),a;switch(n>=17?a=Le.evening:n>=12?a=Le.afternoon:n>=4?a=Le.morning:a=Le.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(a,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(a,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var n=e.getUTCHours()%12;return n===0&&(n=12),r.ordinalNumber(n,{unit:"hour"})}return ve.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ve.H(e,t)},K:function(e,t,r){var n=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(n,{unit:"hour"}):V(n,t.length)},k:function(e,t,r){var n=e.getUTCHours();return n===0&&(n=24),t==="ko"?r.ordinalNumber(n,{unit:"hour"}):V(n,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ve.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ve.s(e,t)},S:function(e,t){return ve.S(e,t)},X:function(e,t,r,n){var a=n._originalDate||e,s=a.getTimezoneOffset();if(s===0)return"Z";switch(t){case"X":return un(s);case"XXXX":case"XX":return Te(s);case"XXXXX":case"XXX":default:return Te(s,":")}},x:function(e,t,r,n){var a=n._originalDate||e,s=a.getTimezoneOffset();switch(t){case"x":return un(s);case"xxxx":case"xx":return Te(s);case"xxxxx":case"xxx":default:return Te(s,":")}},O:function(e,t,r,n){var a=n._originalDate||e,s=a.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+hn(s,":");case"OOOO":default:return"GMT"+Te(s,":")}},z:function(e,t,r,n){var a=n._originalDate||e,s=a.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+hn(s,":");case"zzzz":default:return"GMT"+Te(s,":")}},t:function(e,t,r,n){var a=n._originalDate||e,s=Math.floor(a.getTime()/1e3);return V(s,t.length)},T:function(e,t,r,n){var a=n._originalDate||e,s=a.getTime();return V(s,t.length)}};function hn(i,e){var t=i>0?"-":"+",r=Math.abs(i),n=Math.floor(r/60),a=r%60;if(a===0)return t+String(n);var s=e;return t+String(n)+s+V(a,2)}function un(i,e){if(i%60===0){var t=i>0?"-":"+";return t+V(Math.abs(i)/60,2)}return Te(i,e)}function Te(i,e){var t=e||"",r=i>0?"-":"+",n=Math.abs(i),a=V(Math.floor(n/60),2),s=V(n%60,2);return r+a+t+s}const Zo=Jo;var cn=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Ea=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},el=function(e,t){var r=e.match(/(P+)(p+)?/)||[],n=r[1],a=r[2];if(!a)return cn(e,t);var s;switch(n){case"P":s=t.dateTime({width:"short"});break;case"PP":s=t.dateTime({width:"medium"});break;case"PPP":s=t.dateTime({width:"long"});break;case"PPPP":default:s=t.dateTime({width:"full"});break}return s.replace("{{date}}",cn(n,t)).replace("{{time}}",Ea(a,t))},tl={p:Ea,P:el};const Ui=tl;function Ia(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}var il=["D","DD"],rl=["YY","YYYY"];function Ta(i){return il.indexOf(i)!==-1}function Pa(i){return rl.indexOf(i)!==-1}function Wt(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var nl={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"}},al=function(e,t,r){var n,a=nl[e];return typeof a=="string"?n=a:t===1?n=a.one:n=a.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n};const sl=al;function Ti(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var ol={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},ll={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},dl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},hl={date:Ti({formats:ol,defaultWidth:"full"}),time:Ti({formats:ll,defaultWidth:"full"}),dateTime:Ti({formats:dl,defaultWidth:"full"})};const ul=hl;var cl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},pl=function(e,t,r,n){return cl[e]};const ml=pl;function rt(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",n;if(r==="formatting"&&i.formattingValues){var a=i.defaultFormattingWidth||i.defaultWidth,s=t!=null&&t.width?String(t.width):a;n=i.formattingValues[s]||i.formattingValues[a]}else{var o=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;n=i.values[l]||i.values[o]}var d=i.argumentCallback?i.argumentCallback(e):e;return n[d]}}var fl={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},_l={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},gl={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"]},vl={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"]},bl={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"}},yl={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"}},wl=function(e,t){var r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},xl={ordinalNumber:wl,era:rt({values:fl,defaultWidth:"wide"}),quarter:rt({values:_l,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:rt({values:gl,defaultWidth:"wide"}),day:rt({values:vl,defaultWidth:"wide"}),dayPeriod:rt({values:bl,defaultWidth:"wide",formattingValues:yl,defaultFormattingWidth:"wide"})};const Cl=xl;function nt(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,n=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],a=e.match(n);if(!a)return null;var s=a[0],o=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(o)?El(o,function(c){return c.test(s)}):kl(o,function(c){return c.test(s)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var h=e.slice(s.length);return{value:d,rest:h}}}function kl(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function El(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function Il(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var n=r[0],a=e.match(i.parsePattern);if(!a)return null;var s=i.valueCallback?i.valueCallback(a[0]):a[0];s=t.valueCallback?t.valueCallback(s):s;var o=e.slice(n.length);return{value:s,rest:o}}}var Tl=/^(\d+)(th|st|nd|rd)?/i,Pl=/\d+/i,Sl={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},Al={any:[/^b/i,/^(a|c)/i]},Dl={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Ol={any:[/1/i,/2/i,/3/i,/4/i]},Vl={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},Ml={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]},Nl={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},zl={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]},Ll={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},Fl={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}},Rl={ordinalNumber:Il({matchPattern:Tl,parsePattern:Pl,valueCallback:function(e){return parseInt(e,10)}}),era:nt({matchPatterns:Sl,defaultMatchWidth:"wide",parsePatterns:Al,defaultParseWidth:"any"}),quarter:nt({matchPatterns:Dl,defaultMatchWidth:"wide",parsePatterns:Ol,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:nt({matchPatterns:Vl,defaultMatchWidth:"wide",parsePatterns:Ml,defaultParseWidth:"any"}),day:nt({matchPatterns:Nl,defaultMatchWidth:"wide",parsePatterns:zl,defaultParseWidth:"any"}),dayPeriod:nt({matchPatterns:Ll,defaultMatchWidth:"any",parsePatterns:Fl,defaultParseWidth:"any"})};const $l=Rl;var Hl={code:"en-US",formatDistance:sl,formatLong:ul,formatRelative:ml,localize:Cl,match:$l,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Sa=Hl;var Bl=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ul=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,ql=/^'([^]*?)'?$/,Wl=/''/g,jl=/[a-zA-Z]/;function pn(i,e,t){var r,n,a,s,o,l,d,h,c,p,m,b,M,S;F(2,arguments);var O=String(e),I=Qe(),q=(r=(n=void 0)!==null&&n!==void 0?n:I.locale)!==null&&r!==void 0?r:Sa,W=J((a=(s=(o=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&o!==void 0?o:I.firstWeekContainsDate)!==null&&s!==void 0?s:(d=I.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&a!==void 0?a:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ne=J((c=(p=(m=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&m!==void 0?m:I.weekStartsOn)!==null&&p!==void 0?p:(M=I.locale)===null||M===void 0||(S=M.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&c!==void 0?c:0);if(!(ne>=0&&ne<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!q.localize)throw new RangeError("locale must contain localize property");if(!q.formatLong)throw new RangeError("locale must contain formatLong property");var ge=U(i);if(!ya(ge))throw new RangeError("Invalid time value");var Ze=Ia(ge),et=wa(ge,Ze),tt={firstWeekContainsDate:W,weekStartsOn:ne,locale:q,_originalDate:ge},ki=O.match(Ul).map(function(G){var Z=G[0];if(Z==="p"||Z==="P"){var Ee=Ui[Z];return Ee(G,q.formatLong)}return G}).join("").match(Bl).map(function(G){if(G==="''")return"'";var Z=G[0];if(Z==="'")return Yl(G);var Ee=Zo[Z];if(Ee)return Pa(G)&&Wt(G,e,String(i)),Ta(G)&&Wt(G,e,String(i)),Ee(et,G,q.localize,tt);if(Z.match(jl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");return G}).join("");return ki}function Yl(i){var e=i.match(ql);return e?e[1].replace(Wl,"'"):i}function mn(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function Gl(i,e){if(i){if(typeof i=="string")return mn(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?mn(i,e):void 0}}function fn(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=Gl(i))||e){t&&(i=t);var r=0,n=function(){};return{s:n,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:n}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
- In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var a,s=!0,o=!1;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return s=d.done,d},e:function(d){o=!0,a=d},f:function(){try{s||t.return==null||t.return()}finally{if(o)throw a}}}}function Kl(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function _(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function qi(i,e){return qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},qi(i,e)}function k(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&qi(i,e)}function jt(i){return jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jt(i)}function Aa(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(Aa=function(){return!!i})()}function Ql(i,e){if(e&&(_e(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(i)}function E(i){var e=Aa();return function(){var t,r=jt(i);if(e){var n=jt(this).constructor;t=Reflect.construct(r,arguments,n)}else t=r.apply(this,arguments);return Ql(this,t)}}function w(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function Xl(i,e){if(_e(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(_e(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Da(i){var e=Xl(i,"string");return _e(e)=="symbol"?e:e+""}function Jl(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Da(r.key),r)}}function x(i,e,t){return e&&Jl(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function f(i,e,t){return(e=Da(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var Zl=10,Oa=function(){function i(){w(this,i),f(this,"priority",void 0),f(this,"subPriority",0)}return x(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),ed=function(i){k(t,i);var e=E(t);function t(r,n,a,s,o){var l;return w(this,t),l=e.call(this),l.value=r,l.validateValue=n,l.setValue=a,l.priority=s,o&&(l.subPriority=o),l}return x(t,[{key:"validate",value:function(n,a){return this.validateValue(n,this.value,a)}},{key:"set",value:function(n,a,s){return this.setValue(n,a,this.value,s)}}]),t}(Oa),td=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",Zl),f(_(r),"subPriority",-1),r}return x(t,[{key:"set",value:function(n,a){if(a.timestampIsSet)return n;var s=new Date(0);return s.setFullYear(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate()),s.setHours(n.getUTCHours(),n.getUTCMinutes(),n.getUTCSeconds(),n.getUTCMilliseconds()),s}}]),t}(Oa),P=function(){function i(){w(this,i),f(this,"incompatibleTokens",void 0),f(this,"priority",void 0),f(this,"subPriority",void 0)}return x(i,[{key:"run",value:function(t,r,n,a){var s=this.parse(t,r,n,a);return s?{setter:new ed(s.value,this.validate,this.set,this.priority,this.subPriority),rest:s.rest}:null}},{key:"validate",value:function(t,r,n){return!0}}]),i}(),id=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",140),f(_(r),"incompatibleTokens",["R","u","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"G":case"GG":case"GGG":return s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"});case"GGGGG":return s.era(n,{width:"narrow"});case"GGGG":default:return s.era(n,{width:"wide"})||s.era(n,{width:"abbreviated"})||s.era(n,{width:"narrow"})}}},{key:"set",value:function(n,a,s){return a.era=s,n.setUTCFullYear(s,0,1),n.setUTCHours(0,0,0,0),n}}]),t}(P),rd=6e4,nd=36e5,ad=1e3,$={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},le={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function H(i,e){return i&&{value:e(i.value),rest:i.rest}}function L(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function de(i,e){var t=e.match(i);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,n=t[2]?parseInt(t[2],10):0,a=t[3]?parseInt(t[3],10):0,s=t[5]?parseInt(t[5],10):0;return{value:r*(n*nd+a*rd+s*ad),rest:e.slice(t[0].length)}}function Va(i){return L($.anyDigitsSigned,i)}function R(i,e){switch(i){case 1:return L($.singleDigit,e);case 2:return L($.twoDigits,e);case 3:return L($.threeDigits,e);case 4:return L($.fourDigits,e);default:return L(new RegExp("^\\d{1,"+i+"}"),e)}}function Yt(i,e){switch(i){case 1:return L($.singleDigitSigned,e);case 2:return L($.twoDigitsSigned,e);case 3:return L($.threeDigitsSigned,e);case 4:return L($.fourDigitsSigned,e);default:return L(new RegExp("^-?\\d{1,"+i+"}"),e)}}function gr(i){switch(i){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function Ma(i,e){var t=e>0,r=t?e:1-e,n;if(r<=50)n=i||100;else{var a=r+50,s=Math.floor(a/100)*100,o=i>=a%100;n=i+s-(o?100:0)}return t?n:1-n}function Na(i){return i%400===0||i%4===0&&i%100!==0}var sd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",130),f(_(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){var o=function(d){return{year:d,isTwoDigitYear:a==="yy"}};switch(a){case"y":return H(R(4,n),o);case"yo":return H(s.ordinalNumber(n,{unit:"year"}),o);default:return H(R(a.length,n),o)}}},{key:"validate",value:function(n,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(n,a,s){var o=n.getUTCFullYear();if(s.isTwoDigitYear){var l=Ma(s.year,o);return n.setUTCFullYear(l,0,1),n.setUTCHours(0,0,0,0),n}var d=!("era"in a)||a.era===1?s.year:1-s.year;return n.setUTCFullYear(d,0,1),n.setUTCHours(0,0,0,0),n}}]),t}(P),od=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",130),f(_(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){var o=function(d){return{year:d,isTwoDigitYear:a==="YY"}};switch(a){case"Y":return H(R(4,n),o);case"Yo":return H(s.ordinalNumber(n,{unit:"year"}),o);default:return H(R(a.length,n),o)}}},{key:"validate",value:function(n,a){return a.isTwoDigitYear||a.year>0}},{key:"set",value:function(n,a,s,o){var l=_r(n,o);if(s.isTwoDigitYear){var d=Ma(s.year,l);return n.setUTCFullYear(d,0,o.firstWeekContainsDate),n.setUTCHours(0,0,0,0),De(n,o)}var h=!("era"in a)||a.era===1?s.year:1-s.year;return n.setUTCFullYear(h,0,o.firstWeekContainsDate),n.setUTCHours(0,0,0,0),De(n,o)}}]),t}(P),ld=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",130),f(_(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(n,a){return Yt(a==="R"?4:a.length,n)}},{key:"set",value:function(n,a,s){var o=new Date(0);return o.setUTCFullYear(s,0,4),o.setUTCHours(0,0,0,0),We(o)}}]),t}(P),dd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",130),f(_(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(n,a){return Yt(a==="u"?4:a.length,n)}},{key:"set",value:function(n,a,s){return n.setUTCFullYear(s,0,1),n.setUTCHours(0,0,0,0),n}}]),t}(P),hd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",120),f(_(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"Q":case"QQ":return R(a.length,n);case"Qo":return s.ordinalNumber(n,{unit:"quarter"});case"QQQ":return s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQQ":return s.quarter(n,{width:"narrow",context:"formatting"});case"QQQQ":default:return s.quarter(n,{width:"wide",context:"formatting"})||s.quarter(n,{width:"abbreviated",context:"formatting"})||s.quarter(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,a){return a>=1&&a<=4}},{key:"set",value:function(n,a,s){return n.setUTCMonth((s-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),t}(P),ud=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",120),f(_(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"q":case"qq":return R(a.length,n);case"qo":return s.ordinalNumber(n,{unit:"quarter"});case"qqq":return s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"});case"qqqqq":return s.quarter(n,{width:"narrow",context:"standalone"});case"qqqq":default:return s.quarter(n,{width:"wide",context:"standalone"})||s.quarter(n,{width:"abbreviated",context:"standalone"})||s.quarter(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,a){return a>=1&&a<=4}},{key:"set",value:function(n,a,s){return n.setUTCMonth((s-1)*3,1),n.setUTCHours(0,0,0,0),n}}]),t}(P),cd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),f(_(r),"priority",110),r}return x(t,[{key:"parse",value:function(n,a,s){var o=function(d){return d-1};switch(a){case"M":return H(L($.month,n),o);case"MM":return H(R(2,n),o);case"Mo":return H(s.ordinalNumber(n,{unit:"month"}),o);case"MMM":return s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"});case"MMMMM":return s.month(n,{width:"narrow",context:"formatting"});case"MMMM":default:return s.month(n,{width:"wide",context:"formatting"})||s.month(n,{width:"abbreviated",context:"formatting"})||s.month(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,a){return a>=0&&a<=11}},{key:"set",value:function(n,a,s){return n.setUTCMonth(s,1),n.setUTCHours(0,0,0,0),n}}]),t}(P),pd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",110),f(_(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){var o=function(d){return d-1};switch(a){case"L":return H(L($.month,n),o);case"LL":return H(R(2,n),o);case"Lo":return H(s.ordinalNumber(n,{unit:"month"}),o);case"LLL":return s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"});case"LLLLL":return s.month(n,{width:"narrow",context:"standalone"});case"LLLL":default:return s.month(n,{width:"wide",context:"standalone"})||s.month(n,{width:"abbreviated",context:"standalone"})||s.month(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,a){return a>=0&&a<=11}},{key:"set",value:function(n,a,s){return n.setUTCMonth(s,1),n.setUTCHours(0,0,0,0),n}}]),t}(P);function md(i,e,t){F(2,arguments);var r=U(i),n=J(e),a=ka(r,t)-n;return r.setUTCDate(r.getUTCDate()-a*7),r}var fd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",100),f(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"w":return L($.week,n);case"wo":return s.ordinalNumber(n,{unit:"week"});default:return R(a.length,n)}}},{key:"validate",value:function(n,a){return a>=1&&a<=53}},{key:"set",value:function(n,a,s,o){return De(md(n,s,o),o)}}]),t}(P);function _d(i,e){F(2,arguments);var t=U(i),r=J(e),n=Ca(t)-r;return t.setUTCDate(t.getUTCDate()-n*7),t}var gd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",100),f(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"I":return L($.week,n);case"Io":return s.ordinalNumber(n,{unit:"week"});default:return R(a.length,n)}}},{key:"validate",value:function(n,a){return a>=1&&a<=53}},{key:"set",value:function(n,a,s){return We(_d(n,s))}}]),t}(P),vd=[31,28,31,30,31,30,31,31,30,31,30,31],bd=[31,29,31,30,31,30,31,31,30,31,30,31],yd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",90),f(_(r),"subPriority",1),f(_(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"d":return L($.date,n);case"do":return s.ordinalNumber(n,{unit:"date"});default:return R(a.length,n)}}},{key:"validate",value:function(n,a){var s=n.getUTCFullYear(),o=Na(s),l=n.getUTCMonth();return o?a>=1&&a<=bd[l]:a>=1&&a<=vd[l]}},{key:"set",value:function(n,a,s){return n.setUTCDate(s),n.setUTCHours(0,0,0,0),n}}]),t}(P),wd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",90),f(_(r),"subpriority",1),f(_(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"D":case"DD":return L($.dayOfYear,n);case"Do":return s.ordinalNumber(n,{unit:"date"});default:return R(a.length,n)}}},{key:"validate",value:function(n,a){var s=n.getUTCFullYear(),o=Na(s);return o?a>=1&&a<=366:a>=1&&a<=365}},{key:"set",value:function(n,a,s){return n.setUTCMonth(0,s),n.setUTCHours(0,0,0,0),n}}]),t}(P);function vr(i,e,t){var r,n,a,s,o,l,d,h;F(2,arguments);var c=Qe(),p=J((r=(n=(a=(s=t==null?void 0:t.weekStartsOn)!==null&&s!==void 0?s:t==null||(o=t.locale)===null||o===void 0||(l=o.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&a!==void 0?a:c.weekStartsOn)!==null&&n!==void 0?n:(d=c.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=U(i),b=J(e),M=m.getUTCDay(),S=b%7,O=(S+7)%7,I=(O<p?7:0)+b-M;return m.setUTCDate(m.getUTCDate()+I),m}var xd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",90),f(_(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"E":case"EE":case"EEE":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEEE":return s.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"EEEE":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,a){return a>=0&&a<=6}},{key:"set",value:function(n,a,s,o){return n=vr(n,s,o),n.setUTCHours(0,0,0,0),n}}]),t}(P),Cd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",90),f(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s,o){var l=function(h){var c=Math.floor((h-1)/7)*7;return(h+o.weekStartsOn+6)%7+c};switch(a){case"e":case"ee":return H(R(a.length,n),l);case"eo":return H(s.ordinalNumber(n,{unit:"day"}),l);case"eee":return s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeeee":return s.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"});case"eeee":default:return s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(n,a){return a>=0&&a<=6}},{key:"set",value:function(n,a,s,o){return n=vr(n,s,o),n.setUTCHours(0,0,0,0),n}}]),t}(P),kd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",90),f(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s,o){var l=function(h){var c=Math.floor((h-1)/7)*7;return(h+o.weekStartsOn+6)%7+c};switch(a){case"c":case"cc":return H(R(a.length,n),l);case"co":return H(s.ordinalNumber(n,{unit:"day"}),l);case"ccc":return s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"ccccc":return s.day(n,{width:"narrow",context:"standalone"});case"cccccc":return s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"});case"cccc":default:return s.day(n,{width:"wide",context:"standalone"})||s.day(n,{width:"abbreviated",context:"standalone"})||s.day(n,{width:"short",context:"standalone"})||s.day(n,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(n,a){return a>=0&&a<=6}},{key:"set",value:function(n,a,s,o){return n=vr(n,s,o),n.setUTCHours(0,0,0,0),n}}]),t}(P);function Ed(i,e){F(2,arguments);var t=J(e);t%7===0&&(t=t-7);var r=1,n=U(i),a=n.getUTCDay(),s=t%7,o=(s+7)%7,l=(o<r?7:0)+t-a;return n.setUTCDate(n.getUTCDate()+l),n}var Id=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",90),f(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){var o=function(d){return d===0?7:d};switch(a){case"i":case"ii":return R(a.length,n);case"io":return s.ordinalNumber(n,{unit:"day"});case"iii":return H(s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),o);case"iiiii":return H(s.day(n,{width:"narrow",context:"formatting"}),o);case"iiiiii":return H(s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),o);case"iiii":default:return H(s.day(n,{width:"wide",context:"formatting"})||s.day(n,{width:"abbreviated",context:"formatting"})||s.day(n,{width:"short",context:"formatting"})||s.day(n,{width:"narrow",context:"formatting"}),o)}}},{key:"validate",value:function(n,a){return a>=1&&a<=7}},{key:"set",value:function(n,a,s){return n=Ed(n,s),n.setUTCHours(0,0,0,0),n}}]),t}(P),Td=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",80),f(_(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"a":case"aa":case"aaa":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaaa":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,a,s){return n.setUTCHours(gr(s),0,0,0),n}}]),t}(P),Pd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",80),f(_(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"b":case"bb":case"bbb":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbbb":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,a,s){return n.setUTCHours(gr(s),0,0,0),n}}]),t}(P),Sd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",80),f(_(r),"incompatibleTokens",["a","b","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"B":case"BB":case"BBB":return s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBBB":return s.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return s.dayPeriod(n,{width:"wide",context:"formatting"})||s.dayPeriod(n,{width:"abbreviated",context:"formatting"})||s.dayPeriod(n,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(n,a,s){return n.setUTCHours(gr(s),0,0,0),n}}]),t}(P),Ad=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",70),f(_(r),"incompatibleTokens",["H","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"h":return L($.hour12h,n);case"ho":return s.ordinalNumber(n,{unit:"hour"});default:return R(a.length,n)}}},{key:"validate",value:function(n,a){return a>=1&&a<=12}},{key:"set",value:function(n,a,s){var o=n.getUTCHours()>=12;return o&&s<12?n.setUTCHours(s+12,0,0,0):!o&&s===12?n.setUTCHours(0,0,0,0):n.setUTCHours(s,0,0,0),n}}]),t}(P),Dd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",70),f(_(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"H":return L($.hour23h,n);case"Ho":return s.ordinalNumber(n,{unit:"hour"});default:return R(a.length,n)}}},{key:"validate",value:function(n,a){return a>=0&&a<=23}},{key:"set",value:function(n,a,s){return n.setUTCHours(s,0,0,0),n}}]),t}(P),Od=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",70),f(_(r),"incompatibleTokens",["h","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"K":return L($.hour11h,n);case"Ko":return s.ordinalNumber(n,{unit:"hour"});default:return R(a.length,n)}}},{key:"validate",value:function(n,a){return a>=0&&a<=11}},{key:"set",value:function(n,a,s){var o=n.getUTCHours()>=12;return o&&s<12?n.setUTCHours(s+12,0,0,0):n.setUTCHours(s,0,0,0),n}}]),t}(P),Vd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",70),f(_(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"k":return L($.hour24h,n);case"ko":return s.ordinalNumber(n,{unit:"hour"});default:return R(a.length,n)}}},{key:"validate",value:function(n,a){return a>=1&&a<=24}},{key:"set",value:function(n,a,s){var o=s<=24?s%24:s;return n.setUTCHours(o,0,0,0),n}}]),t}(P),Md=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",60),f(_(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"m":return L($.minute,n);case"mo":return s.ordinalNumber(n,{unit:"minute"});default:return R(a.length,n)}}},{key:"validate",value:function(n,a){return a>=0&&a<=59}},{key:"set",value:function(n,a,s){return n.setUTCMinutes(s,0,0),n}}]),t}(P),Nd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",50),f(_(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(n,a,s){switch(a){case"s":return L($.second,n);case"so":return s.ordinalNumber(n,{unit:"second"});default:return R(a.length,n)}}},{key:"validate",value:function(n,a){return a>=0&&a<=59}},{key:"set",value:function(n,a,s){return n.setUTCSeconds(s,0),n}}]),t}(P),zd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",30),f(_(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(n,a){var s=function(l){return Math.floor(l*Math.pow(10,-a.length+3))};return H(R(a.length,n),s)}},{key:"set",value:function(n,a,s){return n.setUTCMilliseconds(s),n}}]),t}(P),Ld=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",10),f(_(r),"incompatibleTokens",["t","T","x"]),r}return x(t,[{key:"parse",value:function(n,a){switch(a){case"X":return de(le.basicOptionalMinutes,n);case"XX":return de(le.basic,n);case"XXXX":return de(le.basicOptionalSeconds,n);case"XXXXX":return de(le.extendedOptionalSeconds,n);case"XXX":default:return de(le.extended,n)}}},{key:"set",value:function(n,a,s){return a.timestampIsSet?n:new Date(n.getTime()-s)}}]),t}(P),Fd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",10),f(_(r),"incompatibleTokens",["t","T","X"]),r}return x(t,[{key:"parse",value:function(n,a){switch(a){case"x":return de(le.basicOptionalMinutes,n);case"xx":return de(le.basic,n);case"xxxx":return de(le.basicOptionalSeconds,n);case"xxxxx":return de(le.extendedOptionalSeconds,n);case"xxx":default:return de(le.extended,n)}}},{key:"set",value:function(n,a,s){return a.timestampIsSet?n:new Date(n.getTime()-s)}}]),t}(P),Rd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",40),f(_(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(n){return Va(n)}},{key:"set",value:function(n,a,s){return[new Date(s*1e3),{timestampIsSet:!0}]}}]),t}(P),$d=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var n=arguments.length,a=new Array(n),s=0;s<n;s++)a[s]=arguments[s];return r=e.call.apply(e,[this].concat(a)),f(_(r),"priority",20),f(_(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(n){return Va(n)}},{key:"set",value:function(n,a,s){return[new Date(s),{timestampIsSet:!0}]}}]),t}(P),Hd={G:new id,y:new sd,Y:new od,R:new ld,u:new dd,Q:new hd,q:new ud,M:new cd,L:new pd,w:new fd,I:new gd,d:new yd,D:new wd,E:new xd,e:new Cd,c:new kd,i:new Id,a:new Td,b:new Pd,B:new Sd,h:new Ad,H:new Dd,K:new Od,k:new Vd,m:new Md,s:new Nd,S:new zd,X:new Ld,x:new Fd,t:new Rd,T:new $d},Bd=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Ud=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,qd=/^'([^]*?)'?$/,Wd=/''/g,jd=/\S/,Yd=/[a-zA-Z]/;function Re(i,e,t,r){var n,a,s,o,l,d,h,c,p,m,b,M,S,O;F(3,arguments);var I=String(i),q=String(e),W=Qe(),ne=(n=(a=void 0)!==null&&a!==void 0?a:W.locale)!==null&&n!==void 0?n:Sa;if(!ne.match)throw new RangeError("locale must contain match property");var ge=J((s=(o=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:W.firstWeekContainsDate)!==null&&o!==void 0?o:(h=W.locale)===null||h===void 0||(c=h.options)===null||c===void 0?void 0:c.firstWeekContainsDate)!==null&&s!==void 0?s:1);if(!(ge>=1&&ge<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ze=J((p=(m=(b=(M=void 0)!==null&&M!==void 0?M:void 0)!==null&&b!==void 0?b:W.weekStartsOn)!==null&&m!==void 0?m:(S=W.locale)===null||S===void 0||(O=S.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&p!==void 0?p:0);if(!(Ze>=0&&Ze<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(q==="")return I===""?U(t):new Date(NaN);var et={firstWeekContainsDate:ge,weekStartsOn:Ze,locale:ne},tt=[new td],ki=q.match(Ud).map(function(j){var N=j[0];if(N in Ui){var ie=Ui[N];return ie(j,ne.formatLong)}return j}).join("").match(Bd),G=[],Z=fn(ki),Ee;try{var Vo=function(){var N=Ee.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&Pa(N)&&Wt(N,q,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Ta(N)&&Wt(N,q,i);var ie=N[0],Ot=Hd[ie];if(Ot){var on=Ot.incompatibleTokens;if(Array.isArray(on)){var ln=G.find(function(dn){return on.includes(dn.token)||dn.token===ie});if(ln)throw new RangeError("The format string mustn't contain `".concat(ln.fullToken,"` and `").concat(N,"` at the same time"))}else if(Ot.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(N,"` and any other token at the same time"));G.push({token:ie,fullToken:N});var Ii=Ot.run(I,N,ne.match,et);if(!Ii)return{v:new Date(NaN)};tt.push(Ii.setter),I=Ii.rest}else{if(ie.match(Yd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");if(N==="''"?N="'":ie==="'"&&(N=Gd(N)),I.indexOf(N)===0)I=I.slice(N.length);else return{v:new Date(NaN)}}};for(Z.s();!(Ee=Z.n()).done;){var rn=Vo();if(_e(rn)==="object")return rn.v}}catch(j){Z.e(j)}finally{Z.f()}if(I.length>0&&jd.test(I))return new Date(NaN);var Mo=tt.map(function(j){return j.priority}).sort(function(j,N){return N-j}).filter(function(j,N,ie){return ie.indexOf(j)===N}).map(function(j){return tt.filter(function(N){return N.priority===j}).sort(function(N,ie){return ie.subPriority-N.subPriority})}).map(function(j){return j[0]}),Ei=U(t);if(isNaN(Ei.getTime()))return new Date(NaN);var it=wa(Ei,Ia(Ei)),nn={},At=fn(Mo),an;try{for(At.s();!(an=At.n()).done;){var sn=an.value;if(!sn.validate(it,et))return new Date(NaN);var Dt=sn.set(it,nn,et);Array.isArray(Dt)?(it=Dt[0],Kl(nn,Dt[1])):it=Dt}}catch(j){At.e(j)}finally{At.f()}return it}function Gd(i){return i.match(qd)[1].replace(Wd,"'")}function _n(i,e){F(2,arguments);var t=U(i),r=U(e);return t.getTime()>r.getTime()}function gn(i,e){F(2,arguments);var t=U(i),r=U(e);return t.getTime()<r.getTime()}function vn(i,e,t){return F(2,arguments),ya(Re(i,e,new Date,t))}const Kd='*,*::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}',Qd=Kd,za=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.touched=!1,this.formatDate=e=>{const{year:t,month:r,day:n}=e,a=new Date(t,r,n);return pn(a,this.dateFormat)},this.parseDate=e=>{const t=Re(e,this.dateFormat,new Date);return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}get formattedValue(){if(!this.value)return"";const i=Re(this.value,"yyyy-MM-dd",new Date);return pn(i,this.dateFormat)}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var i,e;this.minDate=Re(((i=this.validation.min)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date),this.maxDate=Re(((e=this.validation.max)===null||e===void 0?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 i=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');i&&i.addEventListener("click",()=>this.handleCalendarIconClick()),this.datePicker.addEventListener("opened-changed",e=>{e.detail.value===!0?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)})}this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(i){this.value=i.target.value,this.touched=!0,this.valueAsDate=Re(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return gn(this.valueAsDate,this.minDate)||_n(this.valueAsDate,this.maxDate)||!vn(this.formattedValue,this.dateFormat)?!1:this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return y("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(gn(this.valueAsDate,this.minDate)||_n(this.valueAsDate,this.maxDate))return y("dateError2",this.language);if(!vn(this.formattedValue,this.dateFormat))return y("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"ccbdcfd1e145373d0fb24f7c1e6e5ae1184a80f2",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("label",{key:"960db248a2f7418ed87b25de57b58cc8a4902a25",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),u.h("vaadin-date-picker",{key:"660961b240cc0cff03d8d4bf3687b398cd07befd",id:`${this.name}__input`,type:"date",class:`date__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:e=>this.handleInput(e)}),u.h("small",{key:"ba06bb3d85bb4441ae92a642464a47b798b287eb",class:"date__error-message"},this.errorMessage),this.tooltip&&u.h("img",{key:"7ccb422e319e2a08963e99b242495ba9115517bd",class:"date__tooltip-icon",src:se,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return u.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};za.style=Qd;const Xd='*,*::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}',Jd=Xd,La=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.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 e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.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 i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const n=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,a=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${n}`,this.language)?y(`${n}`,this.language):a}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const n=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,a=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return y(`${n}`,this.language)?y(`${n}`,this.language):a}}renderTooltip(){return this.showTooltip?u.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"532d12855e6014b6c5a81cd11f4c7d83596361c3",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("div",{key:"80f2e930c6360e1e4e27f29b1de3d3c49a3bb47f",class:"email__wrapper--flex"},u.h("label",{key:"68189c133403e6dada30c376bd84b60b35ca56e4",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"b62dd9a877825d51f6735e9b3ca6b3bb3fc21c28",class:"email__wrapper--relative"},this.tooltip&&u.h("img",{key:"ff76c31db244e06af60db2855b907c90ecde2fe2",class:"email__tooltip-icon",src:se,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("input",{key:"137af683d11c63b2bd881fa3110dd1522ead8774",id:`${this.name}__input`,type:"email",class:`email__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),u.h("small",{key:"573a357c4e8464f20d9e60a5fd3a2d0c4ae69e3c",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};La.style=Jd;var Zd=Object.defineProperty,eh=Object.defineProperties,th=Object.getOwnPropertyDescriptors,bn=Object.getOwnPropertySymbols,ih=Object.prototype.hasOwnProperty,rh=Object.prototype.propertyIsEnumerable,Wi=(i,e,t)=>e in i?Zd(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Gt=(i,e)=>{for(var t in e||(e={}))ih.call(e,t)&&Wi(i,t,e[t]);if(bn)for(var t of bn(e))rh.call(e,t)&&Wi(i,t,e[t]);return i},Fa=(i,e)=>eh(i,th(e)),Q=(i,e,t)=>(Wi(i,typeof e!="symbol"?e+"":e,t),t),Kt=(i,e,t)=>new Promise((r,n)=>{var a=l=>{try{o(t.next(l))}catch(d){n(d)}},s=l=>{try{o(t.throw(l))}catch(d){n(d)}},o=l=>l.done?r(l.value):Promise.resolve(l.value).then(a,s);o((t=t.apply(i,e)).next())});/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const c=require("./index-13661b98-BWdlHLAA.cjs"),zs=require("./pam-change-password-f4a1e7e7-CbbJR39E.cjs"),Ls="en",bn={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",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"},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",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"},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",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"},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",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"},"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",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"},"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",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"}},y=(i,e,t)=>{const r=e;let a=bn[r!==void 0?r:Ls][i];if(t!==void 0)for(const[n,o]of Object.entries(t.values)){const s=new RegExp(`{${n}}`,"g");a=a.replace(s,o)}return a},Fs=i=>new Promise(e=>{fetch(i).then(t=>t.json()).then(t=>{Object.keys(t).forEach(r=>{for(let a in t[r])bn[r][a]=t[r][a]}),e(!0)})}),oe="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTIiIGhlaWdodD0iMTIiIHZpZXdCb3g9IjAgMCAxMiAxMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGNpcmNsZSBjeD0iNiIgY3k9IjYiIHI9IjUuNSIgc3Ryb2tlPSIjOTc5Nzk3Ii8+CjxyZWN0IHg9IjUiIHk9IjUiIHdpZHRoPSIyIiBoZWlnaHQ9IjUiIGZpbGw9IiM5Nzk3OTciLz4KPGNpcmNsZSBjeD0iNiIgY3k9IjMiIHI9IjEiIGZpbGw9IiM5Nzk3OTciLz4KPC9zdmc+Cg==",Rs='*,*::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}',$s=Rs,yn=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState",7),this.sendInputValue=c.createEvent(this,"sendInputValue",7),this.value=null,this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}setValue(){this.value=this.options.reduce((i,e)=>(i[e.name]=this.selectedValues.includes(e.name),i),{}),this.emitValueHandler(!0)}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"checkboxgroup"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.isValid=this.setValidity(),this.defaultValue&&(this.showCheckboxes=!0,this.selectedValues=this.options.map(i=>i.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 y("requiredError",this.language)}renderTooltip(){return this.showTooltip?c.h("div",{class:`checkboxgroup__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}handleParentCheckbox(i){const e=i.target.checked;this.showCheckboxes=e,this.selectedValues=e?this.options.map(t=>t.name):[]}renderLabel(){return c.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},c.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}render(){return c.h("div",{key:"2eab716c27576d42a67d791b546022d58e89e21d",class:`checkboxgroup__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},c.h("div",{key:"9e246685583dd06a156d6b11308b2cb355d37d01",class:"checkboxgroup__wrapper--flex"},c.h("vaadin-checkbox",{key:"ba6a64bdd1d1141407ed65213684d3b4d643effc",class:"checkbox__input",checked:this.selectedValues.length===this.options.length||this.defaultValue==="true",indeterminate:this.selectedValues.length>0&&this.selectedValues.length<this.options.length,onChange:i=>this.handleParentCheckbox(i)},this.renderLabel()),this.tooltip&&c.h("img",{key:"2c23ca2dfe4213d9287958b5e6f09f76e9e3b031",class:"checkboxgroup__tooltip-icon",src:oe,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),c.h("small",{key:"3180a35a47e4b57d8634da2f516d0c5c71ee0e9f",class:"checkboxgroup__error-message"},this.errorMessage),this.showCheckboxes&&c.h("vaadin-checkbox-group",{key:"b28fee432aa7bffe6aedf708f1ce9603a52833de",theme:"vertical",value:this.selectedValues,"on-value-changed":i=>{this.selectedValues=i.detail.value}},this.options.map(i=>c.h("vaadin-checkbox",{class:"checkbox__input",name:i.name,value:i.name,label:i.displayName}))))}get element(){return c.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],selectedValues:["setValue"],emitValue:["emitValueHandler"]}}};yn.style=$s;const Hs='*,*::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{content:"*"}.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}',Bs=Hs,wn=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState",7),this.sendInputValue=c.createEvent(this,"sendInputValue",7),this.value="",this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==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(i){this.value=i.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 y("requiredError",this.language)}renderLabel(){return c.h("label",{class:"checkbox__label",htmlFor:`${this.name}__input`,slot:"label"},c.h("div",{class:"checkbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?c.h("div",{class:`checkbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return c.h("div",{key:"e9dfb4e2a6b99d740eaa7d94d1ff3aea9587bcc9",class:`checkbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},c.h("vaadin-checkbox",{key:"cc2a8d1c131bd04febf221538f01d7334169d92a",class:"checkbox__input",required:this.validation.mandatory,checked:this.defaultValue==="true",onChange:i=>this.handleCheckbox(i),"error-message":!this.isValid&&this.errorMessage,ref:i=>this.vaadinCheckbox=i},this.renderLabel()),this.tooltip&&c.h("img",{key:"a94be7eefe15593f0cfa90d89bed1f536bd51103",class:"checkboxgroup__tooltip-icon",src:oe,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};wn.style=Bs;function _e(i){"@babel/helpers - typeof";return _e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_e(i)}function F(i,e){if(e.length<i)throw new TypeError(i+" argument"+(i>1?"s":"")+" required, but only "+e.length+" present")}function Us(i){return F(1,arguments),i instanceof Date||_e(i)==="object"&&Object.prototype.toString.call(i)==="[object Date]"}function U(i){F(1,arguments);var e=Object.prototype.toString.call(i);return i instanceof Date||_e(i)==="object"&&e==="[object Date]"?new Date(i.getTime()):typeof i=="number"||e==="[object Number]"?new Date(i):((typeof i=="string"||e==="[object String]")&&typeof console!="undefined"&&(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 xn(i){if(F(1,arguments),!Us(i)&&typeof i!="number")return!1;var e=U(i);return!isNaN(Number(e))}function J(i){if(i===null||i===!0||i===!1)return NaN;var e=Number(i);return isNaN(e)?e:e<0?Math.ceil(e):Math.floor(e)}function qs(i,e){F(2,arguments);var t=U(i).getTime(),r=J(e);return new Date(t+r)}function Cn(i,e){F(2,arguments);var t=J(e);return qs(i,-t)}var Ws=864e5;function js(i){F(1,arguments);var e=U(i),t=e.getTime();e.setUTCMonth(0,1),e.setUTCHours(0,0,0,0);var r=e.getTime(),a=t-r;return Math.floor(a/Ws)+1}function We(i){F(1,arguments);var e=1,t=U(i),r=t.getUTCDay(),a=(r<e?7:0)+r-e;return t.setUTCDate(t.getUTCDate()-a),t.setUTCHours(0,0,0,0),t}function kn(i){F(1,arguments);var e=U(i),t=e.getUTCFullYear(),r=new Date(0);r.setUTCFullYear(t+1,0,4),r.setUTCHours(0,0,0,0);var a=We(r),n=new Date(0);n.setUTCFullYear(t,0,4),n.setUTCHours(0,0,0,0);var o=We(n);return e.getTime()>=a.getTime()?t+1:e.getTime()>=o.getTime()?t:t-1}function Ys(i){F(1,arguments);var e=kn(i),t=new Date(0);t.setUTCFullYear(e,0,4),t.setUTCHours(0,0,0,0);var r=We(t);return r}var Gs=6048e5;function En(i){F(1,arguments);var e=U(i),t=We(e).getTime()-Ys(e).getTime();return Math.round(t/Gs)+1}var Ks={};function Qe(){return Ks}function De(i,e){var t,r,a,n,o,s,l,d;F(1,arguments);var h=Qe(),u=J((t=(r=(a=(n=e==null?void 0:e.weekStartsOn)!==null&&n!==void 0?n:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.weekStartsOn)!==null&&a!==void 0?a:h.weekStartsOn)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.weekStartsOn)!==null&&t!==void 0?t:0);if(!(u>=0&&u<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var p=U(i),m=p.getUTCDay(),b=(m<u?7:0)+m-u;return p.setUTCDate(p.getUTCDate()-b),p.setUTCHours(0,0,0,0),p}function _r(i,e){var t,r,a,n,o,s,l,d;F(1,arguments);var h=U(i),u=h.getUTCFullYear(),p=Qe(),m=J((t=(r=(a=(n=e==null?void 0:e.firstWeekContainsDate)!==null&&n!==void 0?n:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:p.firstWeekContainsDate)!==null&&r!==void 0?r:(l=p.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1);if(!(m>=1&&m<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var b=new Date(0);b.setUTCFullYear(u+1,0,m),b.setUTCHours(0,0,0,0);var M=De(b,e),S=new Date(0);S.setUTCFullYear(u,0,m),S.setUTCHours(0,0,0,0);var O=De(S,e);return h.getTime()>=M.getTime()?u+1:h.getTime()>=O.getTime()?u:u-1}function Qs(i,e){var t,r,a,n,o,s,l,d;F(1,arguments);var h=Qe(),u=J((t=(r=(a=(n=e==null?void 0:e.firstWeekContainsDate)!==null&&n!==void 0?n:e==null||(o=e.locale)===null||o===void 0||(s=o.options)===null||s===void 0?void 0:s.firstWeekContainsDate)!==null&&a!==void 0?a:h.firstWeekContainsDate)!==null&&r!==void 0?r:(l=h.locale)===null||l===void 0||(d=l.options)===null||d===void 0?void 0:d.firstWeekContainsDate)!==null&&t!==void 0?t:1),p=_r(i,e),m=new Date(0);m.setUTCFullYear(p,0,u),m.setUTCHours(0,0,0,0);var b=De(m,e);return b}var Xs=6048e5;function In(i,e){F(1,arguments);var t=U(i),r=De(t,e).getTime()-Qs(t,e).getTime();return Math.round(r/Xs)+1}function V(i,e){for(var t=i<0?"-":"",r=Math.abs(i).toString();r.length<e;)r="0"+r;return t+r}var Js={y:function(e,t){var r=e.getUTCFullYear(),a=r>0?r:1-r;return V(t==="yy"?a%100:a,t.length)},M:function(e,t){var r=e.getUTCMonth();return t==="M"?String(r+1):V(r+1,2)},d:function(e,t){return V(e.getUTCDate(),t.length)},a:function(e,t){var r=e.getUTCHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];case"aaaa":default:return r==="am"?"a.m.":"p.m."}},h:function(e,t){return V(e.getUTCHours()%12||12,t.length)},H:function(e,t){return V(e.getUTCHours(),t.length)},m:function(e,t){return V(e.getUTCMinutes(),t.length)},s:function(e,t){return V(e.getUTCSeconds(),t.length)},S:function(e,t){var r=t.length,a=e.getUTCMilliseconds(),n=Math.floor(a*Math.pow(10,r-3));return V(n,t.length)}};const ge=Js;var Le={am:"am",pm:"pm",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},Zs={G:function(e,t,r){var a=e.getUTCFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(a,{width:"abbreviated"});case"GGGGG":return r.era(a,{width:"narrow"});case"GGGG":default:return r.era(a,{width:"wide"})}},y:function(e,t,r){if(t==="yo"){var a=e.getUTCFullYear(),n=a>0?a:1-a;return r.ordinalNumber(n,{unit:"year"})}return ge.y(e,t)},Y:function(e,t,r,a){var n=_r(e,a),o=n>0?n:1-n;if(t==="YY"){var s=o%100;return V(s,2)}return t==="Yo"?r.ordinalNumber(o,{unit:"year"}):V(o,t.length)},R:function(e,t){var r=kn(e);return V(r,t.length)},u:function(e,t){var r=e.getUTCFullYear();return V(r,t.length)},Q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"Q":return String(a);case"QQ":return V(a,2);case"Qo":return r.ordinalNumber(a,{unit:"quarter"});case"QQQ":return r.quarter(a,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return r.quarter(a,{width:"wide",context:"formatting"})}},q:function(e,t,r){var a=Math.ceil((e.getUTCMonth()+1)/3);switch(t){case"q":return String(a);case"qq":return V(a,2);case"qo":return r.ordinalNumber(a,{unit:"quarter"});case"qqq":return r.quarter(a,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return r.quarter(a,{width:"wide",context:"standalone"})}},M:function(e,t,r){var a=e.getUTCMonth();switch(t){case"M":case"MM":return ge.M(e,t);case"Mo":return r.ordinalNumber(a+1,{unit:"month"});case"MMM":return r.month(a,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return r.month(a,{width:"wide",context:"formatting"})}},L:function(e,t,r){var a=e.getUTCMonth();switch(t){case"L":return String(a+1);case"LL":return V(a+1,2);case"Lo":return r.ordinalNumber(a+1,{unit:"month"});case"LLL":return r.month(a,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return r.month(a,{width:"wide",context:"standalone"})}},w:function(e,t,r,a){var n=In(e,a);return t==="wo"?r.ordinalNumber(n,{unit:"week"}):V(n,t.length)},I:function(e,t,r){var a=En(e);return t==="Io"?r.ordinalNumber(a,{unit:"week"}):V(a,t.length)},d:function(e,t,r){return t==="do"?r.ordinalNumber(e.getUTCDate(),{unit:"date"}):ge.d(e,t)},D:function(e,t,r){var a=js(e);return t==="Do"?r.ordinalNumber(a,{unit:"dayOfYear"}):V(a,t.length)},E:function(e,t,r){var a=e.getUTCDay();switch(t){case"E":case"EE":case"EEE":return r.day(a,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(a,{width:"short",context:"formatting"});case"EEEE":default:return r.day(a,{width:"wide",context:"formatting"})}},e:function(e,t,r,a){var n=e.getUTCDay(),o=(n-a.weekStartsOn+8)%7||7;switch(t){case"e":return String(o);case"ee":return V(o,2);case"eo":return r.ordinalNumber(o,{unit:"day"});case"eee":return r.day(n,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(n,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(n,{width:"short",context:"formatting"});case"eeee":default:return r.day(n,{width:"wide",context:"formatting"})}},c:function(e,t,r,a){var n=e.getUTCDay(),o=(n-a.weekStartsOn+8)%7||7;switch(t){case"c":return String(o);case"cc":return V(o,t.length);case"co":return r.ordinalNumber(o,{unit:"day"});case"ccc":return r.day(n,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(n,{width:"narrow",context:"standalone"});case"cccccc":return r.day(n,{width:"short",context:"standalone"});case"cccc":default:return r.day(n,{width:"wide",context:"standalone"})}},i:function(e,t,r){var a=e.getUTCDay(),n=a===0?7:a;switch(t){case"i":return String(n);case"ii":return V(n,t.length);case"io":return r.ordinalNumber(n,{unit:"day"});case"iii":return r.day(a,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(a,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(a,{width:"short",context:"formatting"});case"iiii":default:return r.day(a,{width:"wide",context:"formatting"})}},a:function(e,t,r){var a=e.getUTCHours(),n=a/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"aaaa":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){var a=e.getUTCHours(),n;switch(a===12?n=Le.noon:a===0?n=Le.midnight:n=a/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"bbbb":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},B:function(e,t,r){var a=e.getUTCHours(),n;switch(a>=17?n=Le.evening:a>=12?n=Le.afternoon:a>=4?n=Le.morning:n=Le.night,t){case"B":case"BB":case"BBB":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(n,{width:"narrow",context:"formatting"});case"BBBB":default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},h:function(e,t,r){if(t==="ho"){var a=e.getUTCHours()%12;return a===0&&(a=12),r.ordinalNumber(a,{unit:"hour"})}return ge.h(e,t)},H:function(e,t,r){return t==="Ho"?r.ordinalNumber(e.getUTCHours(),{unit:"hour"}):ge.H(e,t)},K:function(e,t,r){var a=e.getUTCHours()%12;return t==="Ko"?r.ordinalNumber(a,{unit:"hour"}):V(a,t.length)},k:function(e,t,r){var a=e.getUTCHours();return a===0&&(a=24),t==="ko"?r.ordinalNumber(a,{unit:"hour"}):V(a,t.length)},m:function(e,t,r){return t==="mo"?r.ordinalNumber(e.getUTCMinutes(),{unit:"minute"}):ge.m(e,t)},s:function(e,t,r){return t==="so"?r.ordinalNumber(e.getUTCSeconds(),{unit:"second"}):ge.s(e,t)},S:function(e,t){return ge.S(e,t)},X:function(e,t,r,a){var n=a._originalDate||e,o=n.getTimezoneOffset();if(o===0)return"Z";switch(t){case"X":return ua(o);case"XXXX":case"XX":return Te(o);case"XXXXX":case"XXX":default:return Te(o,":")}},x:function(e,t,r,a){var n=a._originalDate||e,o=n.getTimezoneOffset();switch(t){case"x":return ua(o);case"xxxx":case"xx":return Te(o);case"xxxxx":case"xxx":default:return Te(o,":")}},O:function(e,t,r,a){var n=a._originalDate||e,o=n.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+ca(o,":");case"OOOO":default:return"GMT"+Te(o,":")}},z:function(e,t,r,a){var n=a._originalDate||e,o=n.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+ca(o,":");case"zzzz":default:return"GMT"+Te(o,":")}},t:function(e,t,r,a){var n=a._originalDate||e,o=Math.floor(n.getTime()/1e3);return V(o,t.length)},T:function(e,t,r,a){var n=a._originalDate||e,o=n.getTime();return V(o,t.length)}};function ca(i,e){var t=i>0?"-":"+",r=Math.abs(i),a=Math.floor(r/60),n=r%60;if(n===0)return t+String(a);var o=e;return t+String(a)+o+V(n,2)}function ua(i,e){if(i%60===0){var t=i>0?"-":"+";return t+V(Math.abs(i)/60,2)}return Te(i,e)}function Te(i,e){var t=e||"",r=i>0?"-":"+",a=Math.abs(i),n=V(Math.floor(a/60),2),o=V(a%60,2);return r+n+t+o}const el=Zs;var pa=function(e,t){switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});case"PPPP":default:return t.date({width:"full"})}},Tn=function(e,t){switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});case"pppp":default:return t.time({width:"full"})}},tl=function(e,t){var r=e.match(/(P+)(p+)?/)||[],a=r[1],n=r[2];if(!n)return pa(e,t);var o;switch(a){case"P":o=t.dateTime({width:"short"});break;case"PP":o=t.dateTime({width:"medium"});break;case"PPP":o=t.dateTime({width:"long"});break;case"PPPP":default:o=t.dateTime({width:"full"});break}return o.replace("{{date}}",pa(a,t)).replace("{{time}}",Tn(n,t))},il={p:Tn,P:tl};const Ui=il;function Pn(i){var e=new Date(Date.UTC(i.getFullYear(),i.getMonth(),i.getDate(),i.getHours(),i.getMinutes(),i.getSeconds(),i.getMilliseconds()));return e.setUTCFullYear(i.getFullYear()),i.getTime()-e.getTime()}var rl=["D","DD"],al=["YY","YYYY"];function Sn(i){return rl.indexOf(i)!==-1}function An(i){return al.indexOf(i)!==-1}function Wt(i,e,t){if(i==="YYYY")throw new RangeError("Use `yyyy` instead of `YYYY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="YY")throw new RangeError("Use `yy` instead of `YY` (in `".concat(e,"`) for formatting years to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="D")throw new RangeError("Use `d` instead of `D` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"));if(i==="DD")throw new RangeError("Use `dd` instead of `DD` (in `".concat(e,"`) for formatting days of the month to the input `").concat(t,"`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md"))}var nl={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"}},ol=function(e,t,r){var a,n=nl[e];return typeof n=="string"?a=n:t===1?a=n.one:a=n.other.replace("{{count}}",t.toString()),r!=null&&r.addSuffix?r.comparison&&r.comparison>0?"in "+a:a+" ago":a};const sl=ol;function Ti(i){return function(){var e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},t=e.width?String(e.width):i.defaultWidth,r=i.formats[t]||i.formats[i.defaultWidth];return r}}var ll={full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},dl={full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},hl={full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},cl={date:Ti({formats:ll,defaultWidth:"full"}),time:Ti({formats:dl,defaultWidth:"full"}),dateTime:Ti({formats:hl,defaultWidth:"full"})};const ul=cl;var pl={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"},ml=function(e,t,r,a){return pl[e]};const fl=ml;function rt(i){return function(e,t){var r=t!=null&&t.context?String(t.context):"standalone",a;if(r==="formatting"&&i.formattingValues){var n=i.defaultFormattingWidth||i.defaultWidth,o=t!=null&&t.width?String(t.width):n;a=i.formattingValues[o]||i.formattingValues[n]}else{var s=i.defaultWidth,l=t!=null&&t.width?String(t.width):i.defaultWidth;a=i.values[l]||i.values[s]}var d=i.argumentCallback?i.argumentCallback(e):e;return a[d]}}var _l={narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},vl={narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},gl={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"]},bl={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"]},yl={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"}},wl={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"}},xl=function(e,t){var r=Number(e),a=r%100;if(a>20||a<10)switch(a%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},Cl={ordinalNumber:xl,era:rt({values:_l,defaultWidth:"wide"}),quarter:rt({values:vl,defaultWidth:"wide",argumentCallback:function(e){return e-1}}),month:rt({values:gl,defaultWidth:"wide"}),day:rt({values:bl,defaultWidth:"wide"}),dayPeriod:rt({values:yl,defaultWidth:"wide",formattingValues:wl,defaultFormattingWidth:"wide"})};const kl=Cl;function at(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=t.width,a=r&&i.matchPatterns[r]||i.matchPatterns[i.defaultMatchWidth],n=e.match(a);if(!n)return null;var o=n[0],s=r&&i.parsePatterns[r]||i.parsePatterns[i.defaultParseWidth],l=Array.isArray(s)?Il(s,function(u){return u.test(o)}):El(s,function(u){return u.test(o)}),d;d=i.valueCallback?i.valueCallback(l):l,d=t.valueCallback?t.valueCallback(d):d;var h=e.slice(o.length);return{value:d,rest:h}}}function El(i,e){for(var t in i)if(i.hasOwnProperty(t)&&e(i[t]))return t}function Il(i,e){for(var t=0;t<i.length;t++)if(e(i[t]))return t}function Tl(i){return function(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},r=e.match(i.matchPattern);if(!r)return null;var a=r[0],n=e.match(i.parsePattern);if(!n)return null;var o=i.valueCallback?i.valueCallback(n[0]):n[0];o=t.valueCallback?t.valueCallback(o):o;var s=e.slice(a.length);return{value:o,rest:s}}}var Pl=/^(\d+)(th|st|nd|rd)?/i,Sl=/\d+/i,Al={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},Dl={any:[/^b/i,/^(a|c)/i]},Ol={narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},Vl={any:[/1/i,/2/i,/3/i,/4/i]},Ml={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},Nl={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]},zl={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},Ll={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]},Fl={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},Rl={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}},$l={ordinalNumber:Tl({matchPattern:Pl,parsePattern:Sl,valueCallback:function(e){return parseInt(e,10)}}),era:at({matchPatterns:Al,defaultMatchWidth:"wide",parsePatterns:Dl,defaultParseWidth:"any"}),quarter:at({matchPatterns:Ol,defaultMatchWidth:"wide",parsePatterns:Vl,defaultParseWidth:"any",valueCallback:function(e){return e+1}}),month:at({matchPatterns:Ml,defaultMatchWidth:"wide",parsePatterns:Nl,defaultParseWidth:"any"}),day:at({matchPatterns:zl,defaultMatchWidth:"wide",parsePatterns:Ll,defaultParseWidth:"any"}),dayPeriod:at({matchPatterns:Fl,defaultMatchWidth:"any",parsePatterns:Rl,defaultParseWidth:"any"})};const Hl=$l;var Bl={code:"en-US",formatDistance:sl,formatLong:ul,formatRelative:fl,localize:kl,match:Hl,options:{weekStartsOn:0,firstWeekContainsDate:1}};const Dn=Bl;var Ul=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,ql=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Wl=/^'([^]*?)'?$/,jl=/''/g,Yl=/[a-zA-Z]/;function ma(i,e,t){var r,a,n,o,s,l,d,h,u,p,m,b,M,S;F(2,arguments);var O=String(e),I=Qe(),q=(r=(a=void 0)!==null&&a!==void 0?a:I.locale)!==null&&r!==void 0?r:Dn,W=J((n=(o=(s=(l=void 0)!==null&&l!==void 0?l:void 0)!==null&&s!==void 0?s:I.firstWeekContainsDate)!==null&&o!==void 0?o:(d=I.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.firstWeekContainsDate)!==null&&n!==void 0?n:1);if(!(W>=1&&W<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var ae=J((u=(p=(m=(b=void 0)!==null&&b!==void 0?b:void 0)!==null&&m!==void 0?m:I.weekStartsOn)!==null&&p!==void 0?p:(M=I.locale)===null||M===void 0||(S=M.options)===null||S===void 0?void 0:S.weekStartsOn)!==null&&u!==void 0?u:0);if(!(ae>=0&&ae<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(!q.localize)throw new RangeError("locale must contain localize property");if(!q.formatLong)throw new RangeError("locale must contain formatLong property");var ve=U(i);if(!xn(ve))throw new RangeError("Invalid time value");var Ze=Pn(ve),et=Cn(ve,Ze),tt={firstWeekContainsDate:W,weekStartsOn:ae,locale:q,_originalDate:ve},ki=O.match(ql).map(function(G){var Z=G[0];if(Z==="p"||Z==="P"){var Ee=Ui[Z];return Ee(G,q.formatLong)}return G}).join("").match(Ul).map(function(G){if(G==="''")return"'";var Z=G[0];if(Z==="'")return Gl(G);var Ee=el[Z];if(Ee)return An(G)&&Wt(G,e,String(i)),Sn(G)&&Wt(G,e,String(i)),Ee(et,G,q.localize,tt);if(Z.match(Yl))throw new RangeError("Format string contains an unescaped latin alphabet character `"+Z+"`");return G}).join("");return ki}function Gl(i){var e=i.match(Wl);return e?e[1].replace(jl,"'"):i}function fa(i,e){(e==null||e>i.length)&&(e=i.length);for(var t=0,r=Array(e);t<e;t++)r[t]=i[t];return r}function Kl(i,e){if(i){if(typeof i=="string")return fa(i,e);var t={}.toString.call(i).slice(8,-1);return t==="Object"&&i.constructor&&(t=i.constructor.name),t==="Map"||t==="Set"?Array.from(i):t==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?fa(i,e):void 0}}function _a(i,e){var t=typeof Symbol!="undefined"&&i[Symbol.iterator]||i["@@iterator"];if(!t){if(Array.isArray(i)||(t=Kl(i))||e){t&&(i=t);var r=0,a=function(){};return{s:a,n:function(){return r>=i.length?{done:!0}:{done:!1,value:i[r++]}},e:function(d){throw d},f:a}}throw new TypeError(`Invalid attempt to iterate non-iterable instance.
2
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var n,o=!0,s=!1;return{s:function(){t=t.call(i)},n:function(){var d=t.next();return o=d.done,d},e:function(d){s=!0,n=d},f:function(){try{o||t.return==null||t.return()}finally{if(s)throw n}}}}function Ql(i,e){if(i==null)throw new TypeError("assign requires that input parameter not be null or undefined");for(var t in e)Object.prototype.hasOwnProperty.call(e,t)&&(i[t]=e[t]);return i}function _(i){if(i===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return i}function qi(i,e){return qi=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(t,r){return t.__proto__=r,t},qi(i,e)}function k(i,e){if(typeof e!="function"&&e!==null)throw new TypeError("Super expression must either be null or a function");i.prototype=Object.create(e&&e.prototype,{constructor:{value:i,writable:!0,configurable:!0}}),Object.defineProperty(i,"prototype",{writable:!1}),e&&qi(i,e)}function jt(i){return jt=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},jt(i)}function On(){try{var i=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(On=function(){return!!i})()}function Xl(i,e){if(e&&(_e(e)=="object"||typeof e=="function"))return e;if(e!==void 0)throw new TypeError("Derived constructors may only return object or undefined");return _(i)}function E(i){var e=On();return function(){var t,r=jt(i);if(e){var a=jt(this).constructor;t=Reflect.construct(r,arguments,a)}else t=r.apply(this,arguments);return Xl(this,t)}}function w(i,e){if(!(i instanceof e))throw new TypeError("Cannot call a class as a function")}function Jl(i,e){if(_e(i)!="object"||!i)return i;var t=i[Symbol.toPrimitive];if(t!==void 0){var r=t.call(i,e||"default");if(_e(r)!="object")return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return(e==="string"?String:Number)(i)}function Vn(i){var e=Jl(i,"string");return _e(e)=="symbol"?e:e+""}function Zl(i,e){for(var t=0;t<e.length;t++){var r=e[t];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(i,Vn(r.key),r)}}function x(i,e,t){return e&&Zl(i.prototype,e),Object.defineProperty(i,"prototype",{writable:!1}),i}function f(i,e,t){return(e=Vn(e))in i?Object.defineProperty(i,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):i[e]=t,i}var ed=10,Mn=function(){function i(){w(this,i),f(this,"priority",void 0),f(this,"subPriority",0)}return x(i,[{key:"validate",value:function(t,r){return!0}}]),i}(),td=function(i){k(t,i);var e=E(t);function t(r,a,n,o,s){var l;return w(this,t),l=e.call(this),l.value=r,l.validateValue=a,l.setValue=n,l.priority=o,s&&(l.subPriority=s),l}return x(t,[{key:"validate",value:function(a,n){return this.validateValue(a,this.value,n)}},{key:"set",value:function(a,n,o){return this.setValue(a,n,this.value,o)}}]),t}(Mn),id=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",ed),f(_(r),"subPriority",-1),r}return x(t,[{key:"set",value:function(a,n){if(n.timestampIsSet)return a;var o=new Date(0);return o.setFullYear(a.getUTCFullYear(),a.getUTCMonth(),a.getUTCDate()),o.setHours(a.getUTCHours(),a.getUTCMinutes(),a.getUTCSeconds(),a.getUTCMilliseconds()),o}}]),t}(Mn),P=function(){function i(){w(this,i),f(this,"incompatibleTokens",void 0),f(this,"priority",void 0),f(this,"subPriority",void 0)}return x(i,[{key:"run",value:function(t,r,a,n){var o=this.parse(t,r,a,n);return o?{setter:new td(o.value,this.validate,this.set,this.priority,this.subPriority),rest:o.rest}:null}},{key:"validate",value:function(t,r,a){return!0}}]),i}(),rd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",140),f(_(r),"incompatibleTokens",["R","u","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"G":case"GG":case"GGG":return o.era(a,{width:"abbreviated"})||o.era(a,{width:"narrow"});case"GGGGG":return o.era(a,{width:"narrow"});case"GGGG":default:return o.era(a,{width:"wide"})||o.era(a,{width:"abbreviated"})||o.era(a,{width:"narrow"})}}},{key:"set",value:function(a,n,o){return n.era=o,a.setUTCFullYear(o,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(P),ad=6e4,nd=36e5,od=1e3,$={month:/^(1[0-2]|0?\d)/,date:/^(3[0-1]|[0-2]?\d)/,dayOfYear:/^(36[0-6]|3[0-5]\d|[0-2]?\d?\d)/,week:/^(5[0-3]|[0-4]?\d)/,hour23h:/^(2[0-3]|[0-1]?\d)/,hour24h:/^(2[0-4]|[0-1]?\d)/,hour11h:/^(1[0-1]|0?\d)/,hour12h:/^(1[0-2]|0?\d)/,minute:/^[0-5]?\d/,second:/^[0-5]?\d/,singleDigit:/^\d/,twoDigits:/^\d{1,2}/,threeDigits:/^\d{1,3}/,fourDigits:/^\d{1,4}/,anyDigitsSigned:/^-?\d+/,singleDigitSigned:/^-?\d/,twoDigitsSigned:/^-?\d{1,2}/,threeDigitsSigned:/^-?\d{1,3}/,fourDigitsSigned:/^-?\d{1,4}/},le={basicOptionalMinutes:/^([+-])(\d{2})(\d{2})?|Z/,basic:/^([+-])(\d{2})(\d{2})|Z/,basicOptionalSeconds:/^([+-])(\d{2})(\d{2})((\d{2}))?|Z/,extended:/^([+-])(\d{2}):(\d{2})|Z/,extendedOptionalSeconds:/^([+-])(\d{2}):(\d{2})(:(\d{2}))?|Z/};function H(i,e){return i&&{value:e(i.value),rest:i.rest}}function L(i,e){var t=e.match(i);return t?{value:parseInt(t[0],10),rest:e.slice(t[0].length)}:null}function de(i,e){var t=e.match(i);if(!t)return null;if(t[0]==="Z")return{value:0,rest:e.slice(1)};var r=t[1]==="+"?1:-1,a=t[2]?parseInt(t[2],10):0,n=t[3]?parseInt(t[3],10):0,o=t[5]?parseInt(t[5],10):0;return{value:r*(a*nd+n*ad+o*od),rest:e.slice(t[0].length)}}function Nn(i){return L($.anyDigitsSigned,i)}function R(i,e){switch(i){case 1:return L($.singleDigit,e);case 2:return L($.twoDigits,e);case 3:return L($.threeDigits,e);case 4:return L($.fourDigits,e);default:return L(new RegExp("^\\d{1,"+i+"}"),e)}}function Yt(i,e){switch(i){case 1:return L($.singleDigitSigned,e);case 2:return L($.twoDigitsSigned,e);case 3:return L($.threeDigitsSigned,e);case 4:return L($.fourDigitsSigned,e);default:return L(new RegExp("^-?\\d{1,"+i+"}"),e)}}function vr(i){switch(i){case"morning":return 4;case"evening":return 17;case"pm":case"noon":case"afternoon":return 12;case"am":case"midnight":case"night":default:return 0}}function zn(i,e){var t=e>0,r=t?e:1-e,a;if(r<=50)a=i||100;else{var n=r+50,o=Math.floor(n/100)*100,s=i>=n%100;a=i+o-(s?100:0)}return t?a:1-a}function Ln(i){return i%400===0||i%4===0&&i%100!==0}var sd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",130),f(_(r),"incompatibleTokens",["Y","R","u","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){var s=function(d){return{year:d,isTwoDigitYear:n==="yy"}};switch(n){case"y":return H(R(4,a),s);case"yo":return H(o.ordinalNumber(a,{unit:"year"}),s);default:return H(R(n.length,a),s)}}},{key:"validate",value:function(a,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(a,n,o){var s=a.getUTCFullYear();if(o.isTwoDigitYear){var l=zn(o.year,s);return a.setUTCFullYear(l,0,1),a.setUTCHours(0,0,0,0),a}var d=!("era"in n)||n.era===1?o.year:1-o.year;return a.setUTCFullYear(d,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(P),ld=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",130),f(_(r),"incompatibleTokens",["y","R","u","Q","q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){var s=function(d){return{year:d,isTwoDigitYear:n==="YY"}};switch(n){case"Y":return H(R(4,a),s);case"Yo":return H(o.ordinalNumber(a,{unit:"year"}),s);default:return H(R(n.length,a),s)}}},{key:"validate",value:function(a,n){return n.isTwoDigitYear||n.year>0}},{key:"set",value:function(a,n,o,s){var l=_r(a,s);if(o.isTwoDigitYear){var d=zn(o.year,l);return a.setUTCFullYear(d,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),De(a,s)}var h=!("era"in n)||n.era===1?o.year:1-o.year;return a.setUTCFullYear(h,0,s.firstWeekContainsDate),a.setUTCHours(0,0,0,0),De(a,s)}}]),t}(P),dd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",130),f(_(r),"incompatibleTokens",["G","y","Y","u","Q","q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(a,n){return Yt(n==="R"?4:n.length,a)}},{key:"set",value:function(a,n,o){var s=new Date(0);return s.setUTCFullYear(o,0,4),s.setUTCHours(0,0,0,0),We(s)}}]),t}(P),hd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",130),f(_(r),"incompatibleTokens",["G","y","Y","R","w","I","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(a,n){return Yt(n==="u"?4:n.length,a)}},{key:"set",value:function(a,n,o){return a.setUTCFullYear(o,0,1),a.setUTCHours(0,0,0,0),a}}]),t}(P),cd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",120),f(_(r),"incompatibleTokens",["Y","R","q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"Q":case"QQ":return R(n.length,a);case"Qo":return o.ordinalNumber(a,{unit:"quarter"});case"QQQ":return o.quarter(a,{width:"abbreviated",context:"formatting"})||o.quarter(a,{width:"narrow",context:"formatting"});case"QQQQQ":return o.quarter(a,{width:"narrow",context:"formatting"});case"QQQQ":default:return o.quarter(a,{width:"wide",context:"formatting"})||o.quarter(a,{width:"abbreviated",context:"formatting"})||o.quarter(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,n){return n>=1&&n<=4}},{key:"set",value:function(a,n,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(P),ud=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",120),f(_(r),"incompatibleTokens",["Y","R","Q","M","L","w","I","d","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"q":case"qq":return R(n.length,a);case"qo":return o.ordinalNumber(a,{unit:"quarter"});case"qqq":return o.quarter(a,{width:"abbreviated",context:"standalone"})||o.quarter(a,{width:"narrow",context:"standalone"});case"qqqqq":return o.quarter(a,{width:"narrow",context:"standalone"});case"qqqq":default:return o.quarter(a,{width:"wide",context:"standalone"})||o.quarter(a,{width:"abbreviated",context:"standalone"})||o.quarter(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,n){return n>=1&&n<=4}},{key:"set",value:function(a,n,o){return a.setUTCMonth((o-1)*3,1),a.setUTCHours(0,0,0,0),a}}]),t}(P),pd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"incompatibleTokens",["Y","R","q","Q","L","w","I","D","i","e","c","t","T"]),f(_(r),"priority",110),r}return x(t,[{key:"parse",value:function(a,n,o){var s=function(d){return d-1};switch(n){case"M":return H(L($.month,a),s);case"MM":return H(R(2,a),s);case"Mo":return H(o.ordinalNumber(a,{unit:"month"}),s);case"MMM":return o.month(a,{width:"abbreviated",context:"formatting"})||o.month(a,{width:"narrow",context:"formatting"});case"MMMMM":return o.month(a,{width:"narrow",context:"formatting"});case"MMMM":default:return o.month(a,{width:"wide",context:"formatting"})||o.month(a,{width:"abbreviated",context:"formatting"})||o.month(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,n){return n>=0&&n<=11}},{key:"set",value:function(a,n,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(P),md=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",110),f(_(r),"incompatibleTokens",["Y","R","q","Q","M","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){var s=function(d){return d-1};switch(n){case"L":return H(L($.month,a),s);case"LL":return H(R(2,a),s);case"Lo":return H(o.ordinalNumber(a,{unit:"month"}),s);case"LLL":return o.month(a,{width:"abbreviated",context:"standalone"})||o.month(a,{width:"narrow",context:"standalone"});case"LLLLL":return o.month(a,{width:"narrow",context:"standalone"});case"LLLL":default:return o.month(a,{width:"wide",context:"standalone"})||o.month(a,{width:"abbreviated",context:"standalone"})||o.month(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,n){return n>=0&&n<=11}},{key:"set",value:function(a,n,o){return a.setUTCMonth(o,1),a.setUTCHours(0,0,0,0),a}}]),t}(P);function fd(i,e,t){F(2,arguments);var r=U(i),a=J(e),n=In(r,t)-a;return r.setUTCDate(r.getUTCDate()-n*7),r}var _d=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",100),f(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","i","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"w":return L($.week,a);case"wo":return o.ordinalNumber(a,{unit:"week"});default:return R(n.length,a)}}},{key:"validate",value:function(a,n){return n>=1&&n<=53}},{key:"set",value:function(a,n,o,s){return De(fd(a,o,s),s)}}]),t}(P);function vd(i,e){F(2,arguments);var t=U(i),r=J(e),a=En(t)-r;return t.setUTCDate(t.getUTCDate()-a*7),t}var gd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",100),f(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"I":return L($.week,a);case"Io":return o.ordinalNumber(a,{unit:"week"});default:return R(n.length,a)}}},{key:"validate",value:function(a,n){return n>=1&&n<=53}},{key:"set",value:function(a,n,o){return We(vd(a,o))}}]),t}(P),bd=[31,28,31,30,31,30,31,31,30,31,30,31],yd=[31,29,31,30,31,30,31,31,30,31,30,31],wd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",90),f(_(r),"subPriority",1),f(_(r),"incompatibleTokens",["Y","R","q","Q","w","I","D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"d":return L($.date,a);case"do":return o.ordinalNumber(a,{unit:"date"});default:return R(n.length,a)}}},{key:"validate",value:function(a,n){var o=a.getUTCFullYear(),s=Ln(o),l=a.getUTCMonth();return s?n>=1&&n<=yd[l]:n>=1&&n<=bd[l]}},{key:"set",value:function(a,n,o){return a.setUTCDate(o),a.setUTCHours(0,0,0,0),a}}]),t}(P),xd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",90),f(_(r),"subpriority",1),f(_(r),"incompatibleTokens",["Y","R","q","Q","M","L","w","I","d","E","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"D":case"DD":return L($.dayOfYear,a);case"Do":return o.ordinalNumber(a,{unit:"date"});default:return R(n.length,a)}}},{key:"validate",value:function(a,n){var o=a.getUTCFullYear(),s=Ln(o);return s?n>=1&&n<=366:n>=1&&n<=365}},{key:"set",value:function(a,n,o){return a.setUTCMonth(0,o),a.setUTCHours(0,0,0,0),a}}]),t}(P);function gr(i,e,t){var r,a,n,o,s,l,d,h;F(2,arguments);var u=Qe(),p=J((r=(a=(n=(o=t==null?void 0:t.weekStartsOn)!==null&&o!==void 0?o:t==null||(s=t.locale)===null||s===void 0||(l=s.options)===null||l===void 0?void 0:l.weekStartsOn)!==null&&n!==void 0?n:u.weekStartsOn)!==null&&a!==void 0?a:(d=u.locale)===null||d===void 0||(h=d.options)===null||h===void 0?void 0:h.weekStartsOn)!==null&&r!==void 0?r:0);if(!(p>=0&&p<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");var m=U(i),b=J(e),M=m.getUTCDay(),S=b%7,O=(S+7)%7,I=(O<p?7:0)+b-M;return m.setUTCDate(m.getUTCDate()+I),m}var Cd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",90),f(_(r),"incompatibleTokens",["D","i","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"E":case"EE":case"EEE":return o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"EEEEE":return o.day(a,{width:"narrow",context:"formatting"});case"EEEEEE":return o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"EEEE":default:return o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,n){return n>=0&&n<=6}},{key:"set",value:function(a,n,o,s){return a=gr(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(P),kd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",90),f(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","c","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o,s){var l=function(h){var u=Math.floor((h-1)/7)*7;return(h+s.weekStartsOn+6)%7+u};switch(n){case"e":case"ee":return H(R(n.length,a),l);case"eo":return H(o.ordinalNumber(a,{unit:"day"}),l);case"eee":return o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"eeeee":return o.day(a,{width:"narrow",context:"formatting"});case"eeeeee":return o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"});case"eeee":default:return o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"})}}},{key:"validate",value:function(a,n){return n>=0&&n<=6}},{key:"set",value:function(a,n,o,s){return a=gr(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(P),Ed=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",90),f(_(r),"incompatibleTokens",["y","R","u","q","Q","M","L","I","d","D","E","i","e","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o,s){var l=function(h){var u=Math.floor((h-1)/7)*7;return(h+s.weekStartsOn+6)%7+u};switch(n){case"c":case"cc":return H(R(n.length,a),l);case"co":return H(o.ordinalNumber(a,{unit:"day"}),l);case"ccc":return o.day(a,{width:"abbreviated",context:"standalone"})||o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"});case"ccccc":return o.day(a,{width:"narrow",context:"standalone"});case"cccccc":return o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"});case"cccc":default:return o.day(a,{width:"wide",context:"standalone"})||o.day(a,{width:"abbreviated",context:"standalone"})||o.day(a,{width:"short",context:"standalone"})||o.day(a,{width:"narrow",context:"standalone"})}}},{key:"validate",value:function(a,n){return n>=0&&n<=6}},{key:"set",value:function(a,n,o,s){return a=gr(a,o,s),a.setUTCHours(0,0,0,0),a}}]),t}(P);function Id(i,e){F(2,arguments);var t=J(e);t%7===0&&(t=t-7);var r=1,a=U(i),n=a.getUTCDay(),o=t%7,s=(o+7)%7,l=(s<r?7:0)+t-n;return a.setUTCDate(a.getUTCDate()+l),a}var Td=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",90),f(_(r),"incompatibleTokens",["y","Y","u","q","Q","M","L","w","d","D","E","e","c","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){var s=function(d){return d===0?7:d};switch(n){case"i":case"ii":return R(n.length,a);case"io":return o.ordinalNumber(a,{unit:"day"});case"iii":return H(o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),s);case"iiiii":return H(o.day(a,{width:"narrow",context:"formatting"}),s);case"iiiiii":return H(o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),s);case"iiii":default:return H(o.day(a,{width:"wide",context:"formatting"})||o.day(a,{width:"abbreviated",context:"formatting"})||o.day(a,{width:"short",context:"formatting"})||o.day(a,{width:"narrow",context:"formatting"}),s)}}},{key:"validate",value:function(a,n){return n>=1&&n<=7}},{key:"set",value:function(a,n,o){return a=Id(a,o),a.setUTCHours(0,0,0,0),a}}]),t}(P),Pd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",80),f(_(r),"incompatibleTokens",["b","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"a":case"aa":case"aaa":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaaa":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"aaaa":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,n,o){return a.setUTCHours(vr(o),0,0,0),a}}]),t}(P),Sd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",80),f(_(r),"incompatibleTokens",["a","B","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"b":case"bb":case"bbb":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbbb":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"bbbb":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,n,o){return a.setUTCHours(vr(o),0,0,0),a}}]),t}(P),Ad=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",80),f(_(r),"incompatibleTokens",["a","b","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"B":case"BB":case"BBB":return o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBBB":return o.dayPeriod(a,{width:"narrow",context:"formatting"});case"BBBB":default:return o.dayPeriod(a,{width:"wide",context:"formatting"})||o.dayPeriod(a,{width:"abbreviated",context:"formatting"})||o.dayPeriod(a,{width:"narrow",context:"formatting"})}}},{key:"set",value:function(a,n,o){return a.setUTCHours(vr(o),0,0,0),a}}]),t}(P),Dd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",70),f(_(r),"incompatibleTokens",["H","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"h":return L($.hour12h,a);case"ho":return o.ordinalNumber(a,{unit:"hour"});default:return R(n.length,a)}}},{key:"validate",value:function(a,n){return n>=1&&n<=12}},{key:"set",value:function(a,n,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):!s&&o===12?a.setUTCHours(0,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(P),Od=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",70),f(_(r),"incompatibleTokens",["a","b","h","K","k","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"H":return L($.hour23h,a);case"Ho":return o.ordinalNumber(a,{unit:"hour"});default:return R(n.length,a)}}},{key:"validate",value:function(a,n){return n>=0&&n<=23}},{key:"set",value:function(a,n,o){return a.setUTCHours(o,0,0,0),a}}]),t}(P),Vd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",70),f(_(r),"incompatibleTokens",["h","H","k","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"K":return L($.hour11h,a);case"Ko":return o.ordinalNumber(a,{unit:"hour"});default:return R(n.length,a)}}},{key:"validate",value:function(a,n){return n>=0&&n<=11}},{key:"set",value:function(a,n,o){var s=a.getUTCHours()>=12;return s&&o<12?a.setUTCHours(o+12,0,0,0):a.setUTCHours(o,0,0,0),a}}]),t}(P),Md=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",70),f(_(r),"incompatibleTokens",["a","b","h","H","K","t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"k":return L($.hour24h,a);case"ko":return o.ordinalNumber(a,{unit:"hour"});default:return R(n.length,a)}}},{key:"validate",value:function(a,n){return n>=1&&n<=24}},{key:"set",value:function(a,n,o){var s=o<=24?o%24:o;return a.setUTCHours(s,0,0,0),a}}]),t}(P),Nd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",60),f(_(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"m":return L($.minute,a);case"mo":return o.ordinalNumber(a,{unit:"minute"});default:return R(n.length,a)}}},{key:"validate",value:function(a,n){return n>=0&&n<=59}},{key:"set",value:function(a,n,o){return a.setUTCMinutes(o,0,0),a}}]),t}(P),zd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",50),f(_(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(a,n,o){switch(n){case"s":return L($.second,a);case"so":return o.ordinalNumber(a,{unit:"second"});default:return R(n.length,a)}}},{key:"validate",value:function(a,n){return n>=0&&n<=59}},{key:"set",value:function(a,n,o){return a.setUTCSeconds(o,0),a}}]),t}(P),Ld=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",30),f(_(r),"incompatibleTokens",["t","T"]),r}return x(t,[{key:"parse",value:function(a,n){var o=function(l){return Math.floor(l*Math.pow(10,-n.length+3))};return H(R(n.length,a),o)}},{key:"set",value:function(a,n,o){return a.setUTCMilliseconds(o),a}}]),t}(P),Fd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",10),f(_(r),"incompatibleTokens",["t","T","x"]),r}return x(t,[{key:"parse",value:function(a,n){switch(n){case"X":return de(le.basicOptionalMinutes,a);case"XX":return de(le.basic,a);case"XXXX":return de(le.basicOptionalSeconds,a);case"XXXXX":return de(le.extendedOptionalSeconds,a);case"XXX":default:return de(le.extended,a)}}},{key:"set",value:function(a,n,o){return n.timestampIsSet?a:new Date(a.getTime()-o)}}]),t}(P),Rd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",10),f(_(r),"incompatibleTokens",["t","T","X"]),r}return x(t,[{key:"parse",value:function(a,n){switch(n){case"x":return de(le.basicOptionalMinutes,a);case"xx":return de(le.basic,a);case"xxxx":return de(le.basicOptionalSeconds,a);case"xxxxx":return de(le.extendedOptionalSeconds,a);case"xxx":default:return de(le.extended,a)}}},{key:"set",value:function(a,n,o){return n.timestampIsSet?a:new Date(a.getTime()-o)}}]),t}(P),$d=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",40),f(_(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(a){return Nn(a)}},{key:"set",value:function(a,n,o){return[new Date(o*1e3),{timestampIsSet:!0}]}}]),t}(P),Hd=function(i){k(t,i);var e=E(t);function t(){var r;w(this,t);for(var a=arguments.length,n=new Array(a),o=0;o<a;o++)n[o]=arguments[o];return r=e.call.apply(e,[this].concat(n)),f(_(r),"priority",20),f(_(r),"incompatibleTokens","*"),r}return x(t,[{key:"parse",value:function(a){return Nn(a)}},{key:"set",value:function(a,n,o){return[new Date(o),{timestampIsSet:!0}]}}]),t}(P),Bd={G:new rd,y:new sd,Y:new ld,R:new dd,u:new hd,Q:new cd,q:new ud,M:new pd,L:new md,w:new _d,I:new gd,d:new wd,D:new xd,E:new Cd,e:new kd,c:new Ed,i:new Td,a:new Pd,b:new Sd,B:new Ad,h:new Dd,H:new Od,K:new Vd,k:new Md,m:new Nd,s:new zd,S:new Ld,X:new Fd,x:new Rd,t:new $d,T:new Hd},Ud=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,qd=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Wd=/^'([^]*?)'?$/,jd=/''/g,Yd=/\S/,Gd=/[a-zA-Z]/;function Re(i,e,t,r){var a,n,o,s,l,d,h,u,p,m,b,M,S,O;F(3,arguments);var I=String(i),q=String(e),W=Qe(),ae=(a=(n=void 0)!==null&&n!==void 0?n:W.locale)!==null&&a!==void 0?a:Dn;if(!ae.match)throw new RangeError("locale must contain match property");var ve=J((o=(s=(l=(d=void 0)!==null&&d!==void 0?d:void 0)!==null&&l!==void 0?l:W.firstWeekContainsDate)!==null&&s!==void 0?s:(h=W.locale)===null||h===void 0||(u=h.options)===null||u===void 0?void 0:u.firstWeekContainsDate)!==null&&o!==void 0?o:1);if(!(ve>=1&&ve<=7))throw new RangeError("firstWeekContainsDate must be between 1 and 7 inclusively");var Ze=J((p=(m=(b=(M=void 0)!==null&&M!==void 0?M:void 0)!==null&&b!==void 0?b:W.weekStartsOn)!==null&&m!==void 0?m:(S=W.locale)===null||S===void 0||(O=S.options)===null||O===void 0?void 0:O.weekStartsOn)!==null&&p!==void 0?p:0);if(!(Ze>=0&&Ze<=6))throw new RangeError("weekStartsOn must be between 0 and 6 inclusively");if(q==="")return I===""?U(t):new Date(NaN);var et={firstWeekContainsDate:ve,weekStartsOn:Ze,locale:ae},tt=[new id],ki=q.match(qd).map(function(j){var N=j[0];if(N in Ui){var ie=Ui[N];return ie(j,ae.formatLong)}return j}).join("").match(Ud),G=[],Z=_a(ki),Ee;try{var Ms=function(){var N=Ee.value;!(r!=null&&r.useAdditionalWeekYearTokens)&&An(N)&&Wt(N,q,i),!(r!=null&&r.useAdditionalDayOfYearTokens)&&Sn(N)&&Wt(N,q,i);var ie=N[0],Ot=Bd[ie];if(Ot){var la=Ot.incompatibleTokens;if(Array.isArray(la)){var da=G.find(function(ha){return la.includes(ha.token)||ha.token===ie});if(da)throw new RangeError("The format string mustn't contain `".concat(da.fullToken,"` and `").concat(N,"` at the same time"))}else if(Ot.incompatibleTokens==="*"&&G.length>0)throw new RangeError("The format string mustn't contain `".concat(N,"` and any other token at the same time"));G.push({token:ie,fullToken:N});var Ii=Ot.run(I,N,ae.match,et);if(!Ii)return{v:new Date(NaN)};tt.push(Ii.setter),I=Ii.rest}else{if(ie.match(Gd))throw new RangeError("Format string contains an unescaped latin alphabet character `"+ie+"`");if(N==="''"?N="'":ie==="'"&&(N=Kd(N)),I.indexOf(N)===0)I=I.slice(N.length);else return{v:new Date(NaN)}}};for(Z.s();!(Ee=Z.n()).done;){var aa=Ms();if(_e(aa)==="object")return aa.v}}catch(j){Z.e(j)}finally{Z.f()}if(I.length>0&&Yd.test(I))return new Date(NaN);var Ns=tt.map(function(j){return j.priority}).sort(function(j,N){return N-j}).filter(function(j,N,ie){return ie.indexOf(j)===N}).map(function(j){return tt.filter(function(N){return N.priority===j}).sort(function(N,ie){return ie.subPriority-N.subPriority})}).map(function(j){return j[0]}),Ei=U(t);if(isNaN(Ei.getTime()))return new Date(NaN);var it=Cn(Ei,Pn(Ei)),na={},At=_a(Ns),oa;try{for(At.s();!(oa=At.n()).done;){var sa=oa.value;if(!sa.validate(it,et))return new Date(NaN);var Dt=sa.set(it,na,et);Array.isArray(Dt)?(it=Dt[0],Ql(na,Dt[1])):it=Dt}}catch(j){At.e(j)}finally{At.f()}return it}function Kd(i){return i.match(Wd)[1].replace(jd,"'")}function va(i,e){F(2,arguments);var t=U(i),r=U(e);return t.getTime()>r.getTime()}function ga(i,e){F(2,arguments);var t=U(i),r=U(e);return t.getTime()<r.getTime()}function ba(i,e,t){return F(2,arguments),xn(Re(i,e,new Date,t))}const Qd='*,*::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}',Xd=Qd,Fn=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState",7),this.sendInputValue=c.createEvent(this,"sendInputValue",7),this.touched=!1,this.formatDate=e=>{const{year:t,month:r,day:a}=e,n=new Date(t,r,a);return ma(n,this.dateFormat)},this.parseDate=e=>{const t=Re(e,this.dateFormat,new Date);return{year:t.getFullYear(),month:t.getMonth(),day:t.getDate()}},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.errorMessage=void 0,this.isValid=void 0,this.limitStylingAppends=!1,this.showTooltip=!1}get formattedValue(){if(!this.value)return"";const i=Re(this.value,"yyyy-MM-dd",new Date);return ma(i,this.dateFormat)}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var i,e;this.minDate=Re(((i=this.validation.min)===null||i===void 0?void 0:i.toString())||"","yyyy-MM-dd",new Date),this.maxDate=Re(((e=this.validation.max)===null||e===void 0?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 i=this.datePicker.shadowRoot.querySelector('[part="toggle-button"]');i&&i.addEventListener("click",()=>this.handleCalendarIconClick()),this.datePicker.addEventListener("opened-changed",e=>{e.detail.value===!0?this.errorMessage="":(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)})}this.datePicker.i18n=Object.assign(Object.assign({},this.datePicker.i18n),{formatDate:this.formatDate,parseDate:this.parseDate}),this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}handleCalendarIconClick(){this.datePicker.opened&&this.emitOnClick&&window.postMessage({type:`registration${this.name}Clicked`},window.location.href)}handleInput(i){this.value=i.target.value,this.touched=!0,this.valueAsDate=Re(this.value||"","yyyy-MM-dd",new Date),this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)}setValidity(){return ga(this.valueAsDate,this.minDate)||va(this.valueAsDate,this.maxDate)||!ba(this.formattedValue,this.dateFormat)?!1:this.inputReference.validity.valid}setErrorMessage(){if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return y("dateError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(ga(this.valueAsDate,this.minDate)||va(this.valueAsDate,this.maxDate))return y("dateError2",this.language);if(!ba(this.formattedValue,this.dateFormat))return y("dateFormatError",this.language)}renderTooltip(){return this.showTooltip?c.h("div",{class:`date__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),c.h("div",{key:"ccbdcfd1e145373d0fb24f7c1e6e5ae1184a80f2",class:`date__wrapper ${this.autofilled?"date__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},c.h("label",{key:"960db248a2f7418ed87b25de57b58cc8a4902a25",class:`date__label ${this.validation.mandatory?"date__label--required":""}}`,htmlFor:`${this.name}__input`},this.displayName," ",this.validation.mandatory?"*":""),c.h("vaadin-date-picker",{key:"660961b240cc0cff03d8d4bf3687b398cd07befd",id:`${this.name}__input`,type:"date",class:`date__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onChange:e=>this.handleInput(e)}),c.h("small",{key:"ba06bb3d85bb4441ae92a642464a47b798b287eb",class:"date__error-message"},this.errorMessage),this.tooltip&&c.h("img",{key:"7ccb422e319e2a08963e99b242495ba9115517bd",class:"date__tooltip-icon",src:oe,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}get element(){return c.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Fn.style=Xd;const Jd='*,*::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}',Zd=Jd,Rn=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState",7),this.sendInputValue=c.createEvent(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.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 e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.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 i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.patternMismatch){const a=(i=this.validation.custom.find(o=>o.rule==="regex"))===null||i===void 0?void 0:i.errorKey,n=(e=this.validation.custom.find(o=>o.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${a}`,this.language)?y(`${a}`,this.language):n}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const a=(t=this.validation.custom.find(o=>o.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,n=(r=this.validation.custom.find(o=>o.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return y(`${a}`,this.language)?y(`${a}`,this.language):n}}renderTooltip(){return this.showTooltip?c.h("div",{class:`email__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),c.h("div",{key:"532d12855e6014b6c5a81cd11f4c7d83596361c3",class:`email__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},c.h("div",{key:"80f2e930c6360e1e4e27f29b1de3d3c49a3bb47f",class:"email__wrapper--flex"},c.h("label",{key:"68189c133403e6dada30c376bd84b60b35ca56e4",class:`email__label ${this.validation.mandatory?"email__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"b62dd9a877825d51f6735e9b3ca6b3bb3fc21c28",class:"email__wrapper--relative"},this.tooltip&&c.h("img",{key:"ff76c31db244e06af60db2855b907c90ecde2fe2",class:"email__tooltip-icon",src:oe,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("input",{key:"137af683d11c63b2bd881fa3110dd1522ead8774",id:`${this.name}__input`,type:"email",class:`email__input ${i}`,value:this.defaultValue,readOnly:this.autofilled,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,pattern:this.validationPattern,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),c.h("small",{key:"573a357c4e8464f20d9e60a5fd3a2d0c4ae69e3c",class:"email__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Rn.style=Zd;var eh=Object.defineProperty,th=Object.defineProperties,ih=Object.getOwnPropertyDescriptors,ya=Object.getOwnPropertySymbols,rh=Object.prototype.hasOwnProperty,ah=Object.prototype.propertyIsEnumerable,Wi=(i,e,t)=>e in i?eh(i,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):i[e]=t,Gt=(i,e)=>{for(var t in e||(e={}))rh.call(e,t)&&Wi(i,t,e[t]);if(ya)for(var t of ya(e))ah.call(e,t)&&Wi(i,t,e[t]);return i},$n=(i,e)=>th(i,ih(e)),Q=(i,e,t)=>(Wi(i,typeof e!="symbol"?e+"":e,t),t),Kt=(i,e,t)=>new Promise((r,a)=>{var n=l=>{try{s(t.next(l))}catch(d){a(d)}},o=l=>{try{s(t.throw(l))}catch(d){a(d)}},s=l=>l.done?r(l.value):Promise.resolve(l.value).then(n,o);s((t=t.apply(i,e)).next())});/**
3
3
  * @license
4
4
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5
5
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -11,39 +11,39 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
11
11
  * @license
12
12
  * Copyright 2019 Google LLC
13
13
  * SPDX-License-Identifier: BSD-3-Clause
14
- */const Ht=globalThis,br=Ht.ShadowRoot&&(Ht.ShadyCSS===void 0||Ht.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yr=Symbol(),yn=new WeakMap;let wr=class{constructor(i,e,t){if(this._$cssResult$=!0,t!==yr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(br&&i===void 0){const t=e!==void 0&&e.length===1;t&&(i=yn.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),t&&yn.set(e,i))}return i}toString(){return this.cssText}};const ah=i=>new wr(typeof i=="string"?i:i+"",void 0,yr),g=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,n,a)=>r+(s=>{if(s._$cssResult$===!0)return s.cssText;if(typeof s=="number")return s;throw Error("Value passed to 'css' function must be a 'css' function result: "+s+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(n)+i[a+1],i[0]);return new wr(t,i,yr)},Ra=(i,e)=>{if(br)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),n=Ht.litNonce;n!==void 0&&r.setAttribute("nonce",n),r.textContent=t.cssText,i.appendChild(r)}},wn=br?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return ah(t)})(i):i;/**
14
+ */const Ht=globalThis,br=Ht.ShadowRoot&&(Ht.ShadyCSS===void 0||Ht.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,yr=Symbol(),wa=new WeakMap;let wr=class{constructor(i,e,t){if(this._$cssResult$=!0,t!==yr)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=i,this.t=e}get styleSheet(){let i=this.o;const e=this.t;if(br&&i===void 0){const t=e!==void 0&&e.length===1;t&&(i=wa.get(e)),i===void 0&&((this.o=i=new CSSStyleSheet).replaceSync(this.cssText),t&&wa.set(e,i))}return i}toString(){return this.cssText}};const oh=i=>new wr(typeof i=="string"?i:i+"",void 0,yr),v=(i,...e)=>{const t=i.length===1?i[0]:e.reduce((r,a,n)=>r+(o=>{if(o._$cssResult$===!0)return o.cssText;if(typeof o=="number")return o;throw Error("Value passed to 'css' function must be a 'css' function result: "+o+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(a)+i[n+1],i[0]);return new wr(t,i,yr)},Hn=(i,e)=>{if(br)i.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const r=document.createElement("style"),a=Ht.litNonce;a!==void 0&&r.setAttribute("nonce",a),r.textContent=t.cssText,i.appendChild(r)}},xa=br?i=>i:i=>i instanceof CSSStyleSheet?(e=>{let t="";for(const r of e.cssRules)t+=r.cssText;return oh(t)})(i):i;/**
15
15
  * @license
16
16
  * Copyright 2017 Google LLC
17
17
  * SPDX-License-Identifier: BSD-3-Clause
18
- */const{is:sh,defineProperty:oh,getOwnPropertyDescriptor:lh,getOwnPropertyNames:dh,getOwnPropertySymbols:hh,getPrototypeOf:uh}=Object,je=globalThis,xn=je.trustedTypes,ch=xn?xn.emptyScript:"",Cn=je.reactiveElementPolyfillSupport,pt=(i,e)=>i,ji={toAttribute(i,e){switch(e){case Boolean:i=i?ch:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(r){t=null}}return t}},$a=(i,e)=>!sh(i,e),kn={attribute:!0,type:String,converter:ji,reflect:!1,hasChanged:$a};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),je.litPropertyMetadata!=null||(je.litPropertyMetadata=new WeakMap);class $e extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=kn){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),n=this.getPropertyDescriptor(e,r,t);n!==void 0&&oh(this.prototype,e,n)}}static getPropertyDescriptor(e,t,r){var n;const{get:a,set:s}=(n=lh(this.prototype,e))!=null?n:{get(){return this[t]},set(o){this[t]=o}};return{get(){return a==null?void 0:a.call(this)},set(o){const l=a==null?void 0:a.call(this);s.call(this,o),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:kn}static _$Ei(){if(this.hasOwnProperty(pt("elementProperties")))return;const e=uh(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pt("properties"))){const t=this.properties,r=[...dh(t),...hh(t)];for(const n of r)this.createProperty(n,t[n])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,n]of t)this.elementProperties.set(r,n)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const n=this._$Eu(t,r);n!==void 0&&this._$Eh.set(n,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const n of r)t.unshift(wn(n))}else e!==void 0&&t.push(wn(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Ra(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){var r;const n=this.constructor.elementProperties.get(e),a=this.constructor._$Eu(e,n);if(a!==void 0&&n.reflect===!0){const s=(((r=n.converter)==null?void 0:r.toAttribute)!==void 0?n.converter:ji).toAttribute(t,n.type);this._$Em=e,s==null?this.removeAttribute(a):this.setAttribute(a,s),this._$Em=null}}_$AK(e,t){var r;const n=this.constructor,a=n._$Eh.get(e);if(a!==void 0&&this._$Em!==a){const s=n.getPropertyOptions(a),o=typeof s.converter=="function"?{fromAttribute:s.converter}:((r=s.converter)==null?void 0:r.fromAttribute)!==void 0?s.converter:ji;this._$Em=a,this[a]=o.fromAttribute(t,s.type),this._$Em=null}}requestUpdate(e,t,r){var n;if(e!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(e)),!((n=r.hasChanged)!=null?n:$a)(this[e],t))return;this.P(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,r){var n;this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$Em!==e&&((n=this._$Ej)!=null?n:this._$Ej=new Set).add(e)}_$ET(){return Kt(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[a,s]of this._$Ep)this[a]=s;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[a,s]of n)s.wrapped!==!0||this._$AL.has(a)||this[a]===void 0||this.P(a,this[a],s)}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$EO)==null||e.forEach(n=>{var a;return(a=n.hostUpdate)==null?void 0:a.call(n)}),this.update(r)):this._$EU()}catch(n){throw t=!1,this._$EU(),n}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var n;return(n=r.hostUpdated)==null?void 0:n.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}var En;$e.elementStyles=[],$e.shadowRootOptions={mode:"open"},$e[pt("elementProperties")]=new Map,$e[pt("finalized")]=new Map,Cn==null||Cn({ReactiveElement:$e}),((En=je.reactiveElementVersions)!=null?En:je.reactiveElementVersions=[]).push("2.0.4");/**
18
+ */const{is:sh,defineProperty:lh,getOwnPropertyDescriptor:dh,getOwnPropertyNames:hh,getOwnPropertySymbols:ch,getPrototypeOf:uh}=Object,je=globalThis,Ca=je.trustedTypes,ph=Ca?Ca.emptyScript:"",ka=je.reactiveElementPolyfillSupport,pt=(i,e)=>i,ji={toAttribute(i,e){switch(e){case Boolean:i=i?ph:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,e){let t=i;switch(e){case Boolean:t=i!==null;break;case Number:t=i===null?null:Number(i);break;case Object:case Array:try{t=JSON.parse(i)}catch(r){t=null}}return t}},Bn=(i,e)=>!sh(i,e),Ea={attribute:!0,type:String,converter:ji,reflect:!1,hasChanged:Bn};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),je.litPropertyMetadata!=null||(je.litPropertyMetadata=new WeakMap);class $e extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=Ea){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const r=Symbol(),a=this.getPropertyDescriptor(e,r,t);a!==void 0&&lh(this.prototype,e,a)}}static getPropertyDescriptor(e,t,r){var a;const{get:n,set:o}=(a=dh(this.prototype,e))!=null?a:{get(){return this[t]},set(s){this[t]=s}};return{get(){return n==null?void 0:n.call(this)},set(s){const l=n==null?void 0:n.call(this);o.call(this,s),this.requestUpdate(e,l,r)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:Ea}static _$Ei(){if(this.hasOwnProperty(pt("elementProperties")))return;const e=uh(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(pt("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(pt("properties"))){const t=this.properties,r=[...hh(t),...ch(t)];for(const a of r)this.createProperty(a,t[a])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[r,a]of t)this.elementProperties.set(r,a)}this._$Eh=new Map;for(const[t,r]of this.elementProperties){const a=this._$Eu(t,r);a!==void 0&&this._$Eh.set(a,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const r=new Set(e.flat(1/0).reverse());for(const a of r)t.unshift(xa(a))}else e!==void 0&&t.push(xa(e));return t}static _$Eu(e,t){const r=t.attribute;return r===!1?void 0:typeof r=="string"?r:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,r;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((r=e.hostConnected)==null||r.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const r of t.keys())this.hasOwnProperty(r)&&(e.set(r,this[r]),delete this[r]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Hn(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostConnected)==null?void 0:r.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var r;return(r=t.hostDisconnected)==null?void 0:r.call(t)})}attributeChangedCallback(e,t,r){this._$AK(e,r)}_$EC(e,t){var r;const a=this.constructor.elementProperties.get(e),n=this.constructor._$Eu(e,a);if(n!==void 0&&a.reflect===!0){const o=(((r=a.converter)==null?void 0:r.toAttribute)!==void 0?a.converter:ji).toAttribute(t,a.type);this._$Em=e,o==null?this.removeAttribute(n):this.setAttribute(n,o),this._$Em=null}}_$AK(e,t){var r;const a=this.constructor,n=a._$Eh.get(e);if(n!==void 0&&this._$Em!==n){const o=a.getPropertyOptions(n),s=typeof o.converter=="function"?{fromAttribute:o.converter}:((r=o.converter)==null?void 0:r.fromAttribute)!==void 0?o.converter:ji;this._$Em=n,this[n]=s.fromAttribute(t,o.type),this._$Em=null}}requestUpdate(e,t,r){var a;if(e!==void 0){if(r!=null||(r=this.constructor.getPropertyOptions(e)),!((a=r.hasChanged)!=null?a:Bn)(this[e],t))return;this.P(e,t,r)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,r){var a;this._$AL.has(e)||this._$AL.set(e,t),r.reflect===!0&&this._$Em!==e&&((a=this._$Ej)!=null?a:this._$Ej=new Set).add(e)}_$ET(){return Kt(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,o]of this._$Ep)this[n]=o;this._$Ep=void 0}const a=this.constructor.elementProperties;if(a.size>0)for(const[n,o]of a)o.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],o)}let t=!1;const r=this._$AL;try{t=this.shouldUpdate(r),t?(this.willUpdate(r),(e=this._$EO)==null||e.forEach(a=>{var n;return(n=a.hostUpdate)==null?void 0:n.call(a)}),this.update(r)):this._$EU()}catch(a){throw t=!1,this._$EU(),a}t&&this._$AE(r)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(r=>{var a;return(a=r.hostUpdated)==null?void 0:a.call(r)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}var Ia;$e.elementStyles=[],$e.shadowRootOptions={mode:"open"},$e[pt("elementProperties")]=new Map,$e[pt("finalized")]=new Map,ka==null||ka({ReactiveElement:$e}),((Ia=je.reactiveElementVersions)!=null?Ia:je.reactiveElementVersions=[]).push("2.0.4");/**
19
19
  * @license
20
20
  * Copyright 2017 Google LLC
21
21
  * SPDX-License-Identifier: BSD-3-Clause
22
- */const Qt=globalThis,Xt=Qt.trustedTypes,In=Xt?Xt.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ha="$lit$",be=`lit$${Math.random().toFixed(9).slice(2)}$`,Ba="?"+be,ph=`<${Ba}>`,Oe=document,ft=()=>Oe.createComment(""),_t=i=>i===null||typeof i!="object"&&typeof i!="function",xr=Array.isArray,mh=i=>xr(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Pi=`[
23
- \f\r]`,at=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Tn=/-->/g,Pn=/>/g,Ie=RegExp(`>|${Pi}(?:([^\\s"'>=/]+)(${Pi}*=${Pi}*(?:[^
24
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Sn=/'/g,An=/"/g,Ua=/^(?:script|style|textarea|title)$/i,Ye=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),Dn=new WeakMap,Pe=Oe.createTreeWalker(Oe,129);function qa(i,e){if(!xr(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return In!==void 0?In.createHTML(e):e}const fh=(i,e)=>{const t=i.length-1,r=[];let n,a=e===2?"<svg>":e===3?"<math>":"",s=at;for(let o=0;o<t;o++){const l=i[o];let d,h,c=-1,p=0;for(;p<l.length&&(s.lastIndex=p,h=s.exec(l),h!==null);)p=s.lastIndex,s===at?h[1]==="!--"?s=Tn:h[1]!==void 0?s=Pn:h[2]!==void 0?(Ua.test(h[2])&&(n=RegExp("</"+h[2],"g")),s=Ie):h[3]!==void 0&&(s=Ie):s===Ie?h[0]===">"?(s=n!=null?n:at,c=-1):h[1]===void 0?c=-2:(c=s.lastIndex-h[2].length,d=h[1],s=h[3]===void 0?Ie:h[3]==='"'?An:Sn):s===An||s===Sn?s=Ie:s===Tn||s===Pn?s=at:(s=Ie,n=void 0);const m=s===Ie&&i[o+1].startsWith("/>")?" ":"";a+=s===at?l+ph:c>=0?(r.push(d),l.slice(0,c)+Ha+l.slice(c)+be+m):l+be+(c===-2?o:m)}return[qa(i,a+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class gt{constructor({strings:e,_$litType$:t},r){let n;this.parts=[];let a=0,s=0;const o=e.length-1,l=this.parts,[d,h]=fh(e,t);if(this.el=gt.createElement(d,r),Pe.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(n=Pe.nextNode())!==null&&l.length<o;){if(n.nodeType===1){if(n.hasAttributes())for(const c of n.getAttributeNames())if(c.endsWith(Ha)){const p=h[s++],m=n.getAttribute(c).split(be),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:a,name:b[2],strings:m,ctor:b[1]==="."?gh:b[1]==="?"?vh:b[1]==="@"?bh:oi}),n.removeAttribute(c)}else c.startsWith(be)&&(l.push({type:6,index:a}),n.removeAttribute(c));if(Ua.test(n.tagName)){const c=n.textContent.split(be),p=c.length-1;if(p>0){n.textContent=Xt?Xt.emptyScript:"";for(let m=0;m<p;m++)n.append(c[m],ft()),Pe.nextNode(),l.push({type:2,index:++a});n.append(c[p],ft())}}}else if(n.nodeType===8)if(n.data===Ba)l.push({type:2,index:a});else{let c=-1;for(;(c=n.data.indexOf(be,c+1))!==-1;)l.push({type:7,index:a}),c+=be.length-1}a++}}static createElement(e,t){const r=Oe.createElement("template");return r.innerHTML=e,r}}function Ge(i,e,t=i,r){var n,a,s;if(e===Ye)return e;let o=r!==void 0?(n=t._$Co)==null?void 0:n[r]:t._$Cl;const l=_t(e)?void 0:e._$litDirective$;return(o==null?void 0:o.constructor)!==l&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),l===void 0?o=void 0:(o=new l(i),o._$AT(i,t,r)),r!==void 0?((s=t._$Co)!=null?s:t._$Co=[])[r]=o:t._$Cl=o),o!==void 0&&(e=Ge(i,o._$AS(i,e.values),o,r)),e}class _h{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:r},parts:n}=this._$AD,a=((t=e==null?void 0:e.creationScope)!=null?t:Oe).importNode(r,!0);Pe.currentNode=a;let s=Pe.nextNode(),o=0,l=0,d=n[0];for(;d!==void 0;){if(o===d.index){let h;d.type===2?h=new It(s,s.nextSibling,this,e):d.type===1?h=new d.ctor(s,d.name,d.strings,this,e):d.type===6&&(h=new yh(s,this,e)),this._$AV.push(h),d=n[++l]}o!==(d==null?void 0:d.index)&&(s=Pe.nextNode(),o++)}return Pe.currentNode=Oe,a}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class It{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,n){var a;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=n,this._$Cv=(a=n==null?void 0:n.isConnected)!=null?a:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ge(this,e,t),_t(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==Ye&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):mh(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Y&&_t(this._$AH)?this._$AA.nextSibling.data=e:this.T(Oe.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:n}=e,a=typeof n=="number"?this._$AC(e):(n.el===void 0&&(n.el=gt.createElement(qa(n.h,n.h[0]),this.options)),n);if(((t=this._$AH)==null?void 0:t._$AD)===a)this._$AH.p(r);else{const s=new _h(a,this),o=s.u(this.options);s.p(r),this.T(o),this._$AH=s}}_$AC(e){let t=Dn.get(e.strings);return t===void 0&&Dn.set(e.strings,t=new gt(e)),t}k(e){xr(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,n=0;for(const a of e)n===t.length?t.push(r=new It(this.O(ft()),this.O(ft()),this,this.options)):r=t[n],r._$AI(a),n++;n<t.length&&(this._$AR(r&&r._$AB.nextSibling,n),t.length=n)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e&&e!==this._$AB;){const n=e.nextSibling;e.remove(),e=n}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class oi{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,n,a){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=e,this.name=t,this._$AM=n,this.options=a,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Y}_$AI(e,t=this,r,n){const a=this.strings;let s=!1;if(a===void 0)e=Ge(this,e,t,0),s=!_t(e)||e!==this._$AH&&e!==Ye,s&&(this._$AH=e);else{const o=e;let l,d;for(e=a[0],l=0;l<a.length-1;l++)d=Ge(this,o[r+l],t,l),d===Ye&&(d=this._$AH[l]),s||(s=!_t(d)||d!==this._$AH[l]),d===Y?e=Y:e!==Y&&(e+=(d!=null?d:"")+a[l+1]),this._$AH[l]=d}s&&!n&&this.j(e)}j(e){e===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class gh extends oi{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}class vh extends oi{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Y)}}class bh extends oi{constructor(e,t,r,n,a){super(e,t,r,n,a),this.type=5}_$AI(e,t=this){var r;if((e=(r=Ge(this,e,t,0))!=null?r:Y)===Ye)return;const n=this._$AH,a=e===Y&&n!==Y||e.capture!==n.capture||e.once!==n.once||e.passive!==n.passive,s=e!==Y&&(n===Y||a);a&&this.element.removeEventListener(this.name,this,n),s&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class yh{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Ge(this,e)}}const On=Qt.litHtmlPolyfillSupport;var Vn;On==null||On(gt,It),((Vn=Qt.litHtmlVersions)!=null?Vn:Qt.litHtmlVersions=[]).push("3.2.1");const Wa=(i,e,t)=>{var r,n;const a=(r=t==null?void 0:t.renderBefore)!=null?r:e;let s=a._$litPart$;if(s===void 0){const o=(n=t==null?void 0:t.renderBefore)!=null?n:null;a._$litPart$=s=new It(e.insertBefore(ft(),o),o,void 0,t!=null?t:{})}return s._$AI(i),s};/**
22
+ */const Qt=globalThis,Xt=Qt.trustedTypes,Ta=Xt?Xt.createPolicy("lit-html",{createHTML:i=>i}):void 0,Un="$lit$",be=`lit$${Math.random().toFixed(9).slice(2)}$`,qn="?"+be,mh=`<${qn}>`,Oe=document,ft=()=>Oe.createComment(""),_t=i=>i===null||typeof i!="object"&&typeof i!="function",xr=Array.isArray,fh=i=>xr(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Pi=`[
23
+ \f\r]`,nt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Pa=/-->/g,Sa=/>/g,Ie=RegExp(`>|${Pi}(?:([^\\s"'>=/]+)(${Pi}*=${Pi}*(?:[^
24
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Aa=/'/g,Da=/"/g,Wn=/^(?:script|style|textarea|title)$/i,Ye=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),Oa=new WeakMap,Pe=Oe.createTreeWalker(Oe,129);function jn(i,e){if(!xr(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ta!==void 0?Ta.createHTML(e):e}const _h=(i,e)=>{const t=i.length-1,r=[];let a,n=e===2?"<svg>":e===3?"<math>":"",o=nt;for(let s=0;s<t;s++){const l=i[s];let d,h,u=-1,p=0;for(;p<l.length&&(o.lastIndex=p,h=o.exec(l),h!==null);)p=o.lastIndex,o===nt?h[1]==="!--"?o=Pa:h[1]!==void 0?o=Sa:h[2]!==void 0?(Wn.test(h[2])&&(a=RegExp("</"+h[2],"g")),o=Ie):h[3]!==void 0&&(o=Ie):o===Ie?h[0]===">"?(o=a!=null?a:nt,u=-1):h[1]===void 0?u=-2:(u=o.lastIndex-h[2].length,d=h[1],o=h[3]===void 0?Ie:h[3]==='"'?Da:Aa):o===Da||o===Aa?o=Ie:o===Pa||o===Sa?o=nt:(o=Ie,a=void 0);const m=o===Ie&&i[s+1].startsWith("/>")?" ":"";n+=o===nt?l+mh:u>=0?(r.push(d),l.slice(0,u)+Un+l.slice(u)+be+m):l+be+(u===-2?s:m)}return[jn(i,n+(i[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),r]};class vt{constructor({strings:e,_$litType$:t},r){let a;this.parts=[];let n=0,o=0;const s=e.length-1,l=this.parts,[d,h]=_h(e,t);if(this.el=vt.createElement(d,r),Pe.currentNode=this.el.content,t===2||t===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(a=Pe.nextNode())!==null&&l.length<s;){if(a.nodeType===1){if(a.hasAttributes())for(const u of a.getAttributeNames())if(u.endsWith(Un)){const p=h[o++],m=a.getAttribute(u).split(be),b=/([.?@])?(.*)/.exec(p);l.push({type:1,index:n,name:b[2],strings:m,ctor:b[1]==="."?gh:b[1]==="?"?bh:b[1]==="@"?yh:si}),a.removeAttribute(u)}else u.startsWith(be)&&(l.push({type:6,index:n}),a.removeAttribute(u));if(Wn.test(a.tagName)){const u=a.textContent.split(be),p=u.length-1;if(p>0){a.textContent=Xt?Xt.emptyScript:"";for(let m=0;m<p;m++)a.append(u[m],ft()),Pe.nextNode(),l.push({type:2,index:++n});a.append(u[p],ft())}}}else if(a.nodeType===8)if(a.data===qn)l.push({type:2,index:n});else{let u=-1;for(;(u=a.data.indexOf(be,u+1))!==-1;)l.push({type:7,index:n}),u+=be.length-1}n++}}static createElement(e,t){const r=Oe.createElement("template");return r.innerHTML=e,r}}function Ge(i,e,t=i,r){var a,n,o;if(e===Ye)return e;let s=r!==void 0?(a=t._$Co)==null?void 0:a[r]:t._$Cl;const l=_t(e)?void 0:e._$litDirective$;return(s==null?void 0:s.constructor)!==l&&((n=s==null?void 0:s._$AO)==null||n.call(s,!1),l===void 0?s=void 0:(s=new l(i),s._$AT(i,t,r)),r!==void 0?((o=t._$Co)!=null?o:t._$Co=[])[r]=s:t._$Cl=s),s!==void 0&&(e=Ge(i,s._$AS(i,e.values),s,r)),e}class vh{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:r},parts:a}=this._$AD,n=((t=e==null?void 0:e.creationScope)!=null?t:Oe).importNode(r,!0);Pe.currentNode=n;let o=Pe.nextNode(),s=0,l=0,d=a[0];for(;d!==void 0;){if(s===d.index){let h;d.type===2?h=new It(o,o.nextSibling,this,e):d.type===1?h=new d.ctor(o,d.name,d.strings,this,e):d.type===6&&(h=new wh(o,this,e)),this._$AV.push(h),d=a[++l]}s!==(d==null?void 0:d.index)&&(o=Pe.nextNode(),s++)}return Pe.currentNode=Oe,n}p(e){let t=0;for(const r of this._$AV)r!==void 0&&(r.strings!==void 0?(r._$AI(e,r,t),t+=r.strings.length-2):r._$AI(e[t])),t++}}class It{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,r,a){var n;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=r,this.options=a,this._$Cv=(n=a==null?void 0:a.isConnected)!=null?n:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=Ge(this,e,t),_t(e)?e===Y||e==null||e===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):e!==this._$AH&&e!==Ye&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):fh(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==Y&&_t(this._$AH)?this._$AA.nextSibling.data=e:this.T(Oe.createTextNode(e)),this._$AH=e}$(e){var t;const{values:r,_$litType$:a}=e,n=typeof a=="number"?this._$AC(e):(a.el===void 0&&(a.el=vt.createElement(jn(a.h,a.h[0]),this.options)),a);if(((t=this._$AH)==null?void 0:t._$AD)===n)this._$AH.p(r);else{const o=new vh(n,this),s=o.u(this.options);o.p(r),this.T(s),this._$AH=o}}_$AC(e){let t=Oa.get(e.strings);return t===void 0&&Oa.set(e.strings,t=new vt(e)),t}k(e){xr(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let r,a=0;for(const n of e)a===t.length?t.push(r=new It(this.O(ft()),this.O(ft()),this,this.options)):r=t[a],r._$AI(n),a++;a<t.length&&(this._$AR(r&&r._$AB.nextSibling,a),t.length=a)}_$AR(e=this._$AA.nextSibling,t){var r;for((r=this._$AP)==null?void 0:r.call(this,!1,!0,t);e&&e!==this._$AB;){const a=e.nextSibling;e.remove(),e=a}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class si{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,r,a,n){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=e,this.name=t,this._$AM=a,this.options=n,r.length>2||r[0]!==""||r[1]!==""?(this._$AH=Array(r.length-1).fill(new String),this.strings=r):this._$AH=Y}_$AI(e,t=this,r,a){const n=this.strings;let o=!1;if(n===void 0)e=Ge(this,e,t,0),o=!_t(e)||e!==this._$AH&&e!==Ye,o&&(this._$AH=e);else{const s=e;let l,d;for(e=n[0],l=0;l<n.length-1;l++)d=Ge(this,s[r+l],t,l),d===Ye&&(d=this._$AH[l]),o||(o=!_t(d)||d!==this._$AH[l]),d===Y?e=Y:e!==Y&&(e+=(d!=null?d:"")+n[l+1]),this._$AH[l]=d}o&&!a&&this.j(e)}j(e){e===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class gh extends si{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===Y?void 0:e}}class bh extends si{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==Y)}}class yh extends si{constructor(e,t,r,a,n){super(e,t,r,a,n),this.type=5}_$AI(e,t=this){var r;if((e=(r=Ge(this,e,t,0))!=null?r:Y)===Ye)return;const a=this._$AH,n=e===Y&&a!==Y||e.capture!==a.capture||e.once!==a.once||e.passive!==a.passive,o=e!==Y&&(a===Y||n);n&&this.element.removeEventListener(this.name,this,a),o&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,r;typeof this._$AH=="function"?this._$AH.call((r=(t=this.options)==null?void 0:t.host)!=null?r:this.element,e):this._$AH.handleEvent(e)}}class wh{constructor(e,t,r){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=r}get _$AU(){return this._$AM._$AU}_$AI(e){Ge(this,e)}}const Va=Qt.litHtmlPolyfillSupport;var Ma;Va==null||Va(vt,It),((Ma=Qt.litHtmlVersions)!=null?Ma:Qt.litHtmlVersions=[]).push("3.2.1");const Yn=(i,e,t)=>{var r,a;const n=(r=t==null?void 0:t.renderBefore)!=null?r:e;let o=n._$litPart$;if(o===void 0){const s=(a=t==null?void 0:t.renderBefore)!=null?a:null;n._$litPart$=o=new It(e.insertBefore(ft(),s),s,void 0,t!=null?t:{})}return o._$AI(i),o};/**
25
25
  * @license
26
26
  * Copyright 2017 Google LLC
27
27
  * SPDX-License-Identifier: BSD-3-Clause
28
- */class He extends $e{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Wa(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return Ye}}var Mn;He._$litElement$=!0,He.finalized=!0,(Mn=globalThis.litElementHydrateSupport)==null||Mn.call(globalThis,{LitElement:He});const Nn=globalThis.litElementPolyfillSupport;Nn==null||Nn({LitElement:He});var zn;((zn=globalThis.litElementVersions)!=null?zn:globalThis.litElementVersions=[]).push("4.1.1");/**
28
+ */class He extends $e{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=Yn(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return Ye}}var Na;He._$litElement$=!0,He.finalized=!0,(Na=globalThis.litElementHydrateSupport)==null||Na.call(globalThis,{LitElement:He});const za=globalThis.litElementPolyfillSupport;za==null||za({LitElement:He});var La;((La=globalThis.litElementVersions)!=null?La:globalThis.litElementVersions=[]).push("4.1.1");/**
29
29
  * @license
30
30
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
31
31
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
32
- */const ja=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e==="theme"&&this._set_theme(r)}};/**
32
+ */const Gn=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,r){super.attributeChangedCallback(e,t,r),e==="theme"&&this._set_theme(r)}};/**
33
33
  * @license
34
34
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
35
35
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
36
- */const Ya=[],Yi=new Set,Cr=new Set;function Ga(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function wh(i){return Ga(customElements.get(i))}function xh(i=[]){return[i].flat(1/0).filter(e=>e instanceof wr?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Ka(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Qa(i){return i.map(e=>e.cssText).join(`
37
- `)}const Jt="vaadin-themable-mixin-style";function Ch(i,e){const t=document.createElement("style");t.id=Jt,t.textContent=Qa(i),e.content.appendChild(t)}function kh(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof He)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Ra(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(Jt),r=e.prototype._template;t.textContent=r.content.getElementById(Jt).textContent}}function Eh(i){Yi.forEach(e=>{const t=e.deref();t instanceof i?kh(t):t||Yi.delete(e)})}function Xa(i){if(i.prototype instanceof He)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(Jt).textContent=Qa(i.getStylesForThis())}Cr.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&Xa(t)})}function Ih(i,e){const t=i.__themes;return!t||!e?!1:t.some(r=>r.styles.some(n=>e.some(a=>a.cssText===n.cssText)))}function v(i,e,t={}){e=xh(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):Ya.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Cr.forEach(r=>{if(Ka(i,r)&&wh(r)){const n=customElements.get(r);Ih(n,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" 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".`),Xa(n),Eh(n)}})}function Gi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ya}function Th(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function Ja(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=Gi().find(n=>n.moduleId===t);r?e.push(...Ja(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function Ph(i){const e=`${i}-default-theme`,t=Gi().filter(r=>r.moduleId!==e&&Ka(r.themeFor,i)).map(r=>Fa(Gt({},r),{styles:[...Ja(r),...r.styles],includePriority:Th(r.moduleId)})).sort((r,n)=>n.includePriority-r.includePriority);return t.length>0?t:Gi().filter(r=>r.moduleId===e)}const z=i=>class extends ja(i){constructor(){super(),Yi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Cr.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Ga(this)||Ch(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=i.__themes||[],t=Object.getPrototypeOf(this.prototype),r=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...r,...Ph(this.is)];const n=this.__themes.flatMap(a=>a.styles);return n.filter((a,s)=>s===n.lastIndexOf(a))}};/**
36
+ */const Kn=[],Yi=new Set,Cr=new Set;function Qn(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function xh(i){return Qn(customElements.get(i))}function Ch(i=[]){return[i].flat(1/0).filter(e=>e instanceof wr?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Xn(i,e){return(i||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function Jn(i){return i.map(e=>e.cssText).join(`
37
+ `)}const Jt="vaadin-themable-mixin-style";function kh(i,e){const t=document.createElement("style");t.id=Jt,t.textContent=Jn(i),e.content.appendChild(t)}function Eh(i){if(!i.shadowRoot)return;const e=i.constructor;if(i instanceof He)[...i.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),Hn(i.shadowRoot,e.elementStyles);else{const t=i.shadowRoot.getElementById(Jt),r=e.prototype._template;t.textContent=r.content.getElementById(Jt).textContent}}function Ih(i){Yi.forEach(e=>{const t=e.deref();t instanceof i?Eh(t):t||Yi.delete(e)})}function Zn(i){if(i.prototype instanceof He)i.elementStyles=i.finalizeStyles(i.styles);else{const e=i.prototype._template;e.content.getElementById(Jt).textContent=Jn(i.getStylesForThis())}Cr.forEach(e=>{const t=customElements.get(e);t!==i&&t.prototype instanceof i&&Zn(t)})}function Th(i,e){const t=i.__themes;return!t||!e?!1:t.some(r=>r.styles.some(a=>e.some(n=>n.cssText===a.cssText)))}function g(i,e,t={}){e=Ch(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,e,t):Kn.push({themeFor:i,styles:e,include:t.include,moduleId:t.moduleId}),i&&Cr.forEach(r=>{if(Xn(i,r)&&xh(r)){const a=customElements.get(r);Th(a,e)?console.warn(`Registering styles that already exist for ${r}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${r}" 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".`),Zn(a),Ih(a)}})}function Gi(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Kn}function Ph(i=""){let e=0;return i.startsWith("lumo-")||i.startsWith("material-")?e=1:i.startsWith("vaadin-")&&(e=2),e}function eo(i){const e=[];return i.include&&[].concat(i.include).forEach(t=>{const r=Gi().find(a=>a.moduleId===t);r?e.push(...eo(r),...r.styles):console.warn(`Included moduleId ${t} not found in style registry`)},i.styles),e}function Sh(i){const e=`${i}-default-theme`,t=Gi().filter(r=>r.moduleId!==e&&Xn(r.themeFor,i)).map(r=>$n(Gt({},r),{styles:[...eo(r),...r.styles],includePriority:Ph(r.moduleId)})).sort((r,a)=>a.includePriority-r.includePriority);return t.length>0?t:Gi().filter(r=>r.moduleId===e)}const z=i=>class extends Gn(i){constructor(){super(),Yi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Cr.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Qn(this)||kh(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=i.__themes||[],t=Object.getPrototypeOf(this.prototype),r=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...r,...Sh(this.is)];const a=this.__themes.flatMap(n=>n.styles);return a.filter((n,o)=>o===a.lastIndexOf(n))}};/**
38
38
  * @license
39
39
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
40
40
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
41
- */const Sh=(i,...e)=>{const t=document.createElement("style");t.id=i,t.textContent=e.map(r=>r.toString()).join(`
42
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},Xe=(i,...e)=>{Sh(`lumo-${i}`,e)};/**
41
+ */const Ah=(i,...e)=>{const t=document.createElement("style");t.id=i,t.textContent=e.map(r=>r.toString()).join(`
42
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},Xe=(i,...e)=>{Ah(`lumo-${i}`,e)};/**
43
43
  * @license
44
44
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
45
45
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
46
- */const Ah=g`
46
+ */const Dh=v`
47
47
  :host {
48
48
  /* Base (background) */
49
49
  --lumo-base-color: #fff;
@@ -128,7 +128,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
128
128
  --lumo-disabled-text-color: GrayText;
129
129
  }
130
130
  }
131
- `;Xe("color-props",Ah);const Dh=g`
131
+ `;Xe("color-props",Dh);const Oh=v`
132
132
  [theme~='dark'] {
133
133
  /* Base (background) */
134
134
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -246,11 +246,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
246
246
  pre code {
247
247
  background: transparent;
248
248
  }
249
- `;v("",Dh,{moduleId:"lumo-color"});/**
249
+ `;g("",Oh,{moduleId:"lumo-color"});/**
250
250
  * @license
251
251
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
252
252
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
253
- */const Oh=g`
253
+ */const Vh=v`
254
254
  @font-face {
255
255
  font-family: 'lumo-icons';
256
256
  src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
@@ -303,11 +303,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
303
303
  --lumo-icons-upload: '\\ea29';
304
304
  --lumo-icons-user: '\\ea2a';
305
305
  }
306
- `;Xe("font-icons",Oh);/**
306
+ `;Xe("font-icons",Vh);/**
307
307
  * @license
308
308
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
309
309
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
310
- */const Vh=g`
310
+ */const Mh=v`
311
311
  :host {
312
312
  --lumo-size-xs: 1.625rem;
313
313
  --lumo-size-s: 1.875rem;
@@ -322,11 +322,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
322
322
  /* For backwards compatibility */
323
323
  --lumo-icon-size: var(--lumo-icon-size-m);
324
324
  }
325
- `;Xe("sizing-props",Vh);/**
325
+ `;Xe("sizing-props",Mh);/**
326
326
  * @license
327
327
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
328
328
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
329
- */const Mh=g`
329
+ */const Nh=v`
330
330
  :host {
331
331
  /* Square */
332
332
  --lumo-space-xs: 0.25rem;
@@ -349,11 +349,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
349
349
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
350
350
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
351
351
  }
352
- `;Xe("spacing-props",Mh);/**
352
+ `;Xe("spacing-props",Nh);/**
353
353
  * @license
354
354
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
355
355
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
356
- */const Nh=g`
356
+ */const zh=v`
357
357
  :host {
358
358
  /* Border radius */
359
359
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -370,7 +370,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
370
370
  /* Clickable element cursor */
371
371
  --lumo-clickable-cursor: default;
372
372
  }
373
- `;g`
373
+ `;v`
374
374
  html {
375
375
  /* Button */
376
376
  --vaadin-button-background: var(--lumo-contrast-5pct);
@@ -453,11 +453,11 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
453
453
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
454
454
  --vaadin-input-field-value-font-weight: 500;
455
455
  }
456
- `;Xe("style-props",Nh);/**
456
+ `;Xe("style-props",zh);/**
457
457
  * @license
458
458
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
459
459
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
460
- */const zh=g`
460
+ */const Lh=v`
461
461
  :host {
462
462
  /* prettier-ignore */
463
463
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -477,7 +477,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
477
477
  --lumo-line-height-s: 1.375;
478
478
  --lumo-line-height-m: 1.625;
479
479
  }
480
- `,Lh=g`
480
+ `,Fh=v`
481
481
  body,
482
482
  :host {
483
483
  font-family: var(--lumo-font-family);
@@ -569,7 +569,7 @@ In order to be iterable, non-array objects must have a [Symbol.iterator]() metho
569
569
  border-left: none;
570
570
  border-right: 2px solid var(--lumo-contrast-30pct);
571
571
  }
572
- `;v("",Lh,{moduleId:"lumo-typography"});Xe("typography-props",zh);v("vaadin-checkbox",g`
572
+ `;g("",Fh,{moduleId:"lumo-typography"});Xe("typography-props",Lh);g("vaadin-checkbox",v`
573
573
  :host {
574
574
  color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
575
575
  font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
@@ -889,7 +889,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
889
889
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
890
890
  Code distributed by Google as part of the polymer project is also
891
891
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
892
- */let Fh=/(url\()([^)]*)(\))/g,Rh=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Vt,ee;function mt(i,e){if(i&&Rh.test(i)||i==="//")return i;if(Vt===void 0){Vt=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Vt=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),Vt)try{return new URL(i,e).href}catch(t){return i}return ee||(ee=document.implementation.createHTMLDocument("temp"),ee.base=ee.createElement("base"),ee.head.appendChild(ee.base),ee.anchor=ee.createElement("a"),ee.body.appendChild(ee.anchor)),ee.base.href=e,ee.anchor.href=i,ee.anchor.href||i}function kr(i,e){return i.replace(Fh,function(t,r,n,a){return r+"'"+mt(n.replace(/["']/g,""),e)+"'"+a})}function Er(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
892
+ */let Rh=/(url\()([^)]*)(\))/g,$h=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Vt,ee;function mt(i,e){if(i&&$h.test(i)||i==="//")return i;if(Vt===void 0){Vt=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Vt=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),Vt)try{return new URL(i,e).href}catch(t){return i}return ee||(ee=document.implementation.createHTMLDocument("temp"),ee.base=ee.createElement("base"),ee.head.appendChild(ee.base),ee.anchor=ee.createElement("a"),ee.body.appendChild(ee.anchor)),ee.base.href=e,ee.anchor.href=i,ee.anchor.href||i}function kr(i,e){return i.replace(Rh,function(t,r,a,n){return r+"'"+mt(a.replace(/["']/g,""),e)+"'"+n})}function Er(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
893
893
  @license
894
894
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
895
895
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -897,7 +897,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
897
897
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
898
898
  Code distributed by Google as part of the polymer project is also
899
899
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
900
- */const Za=!window.ShadyDOM||!window.ShadyDOM.inUse,$h=Za&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[i],e.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Hh=window.Polymer&&window.Polymer.rootPath||Er(document.baseURI||window.location.href),Zt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,ei=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Bh=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,es=window.Polymer&&window.Polymer.legacyOptimizations||!1,ts=window.Polymer&&window.Polymer.legacyWarnings||!1,Uh=window.Polymer&&window.Polymer.syncInitialRender||!1,Ki=window.Polymer&&window.Polymer.legacyUndefined||!1,qh=window.Polymer&&window.Polymer.orderedComputed||!1,Ln=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Wh=window.Polymer&&window.Polymer.fastDomIf||!1,Fn=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,jh=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
900
+ */const to=!window.ShadyDOM||!window.ShadyDOM.inUse,Hh=to&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[i],e.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Bh=window.Polymer&&window.Polymer.rootPath||Er(document.baseURI||window.location.href),Zt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,ei=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Uh=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,io=window.Polymer&&window.Polymer.legacyOptimizations||!1,ro=window.Polymer&&window.Polymer.legacyWarnings||!1,qh=window.Polymer&&window.Polymer.syncInitialRender||!1,Ki=window.Polymer&&window.Polymer.legacyUndefined||!1,Wh=window.Polymer&&window.Polymer.orderedComputed||!1,Fa=window.Polymer&&window.Polymer.removeNestedTemplates||!1,jh=window.Polymer&&window.Polymer.fastDomIf||!1,Ra=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Yh=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
901
901
  @license
902
902
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
903
903
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -905,7 +905,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
905
905
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
906
906
  Code distributed by Google as part of the polymer project is also
907
907
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
908
- */let Yh=0;const B=function(i){let e=i.__mixinApplications;e||(e=new WeakMap,i.__mixinApplications=e);let t=Yh++;function r(n){let a=n.__mixinSet;if(a&&a[t])return n;let s=e,o=s.get(n);if(!o){o=i(n),s.set(n,o);let l=Object.create(o.__mixinSet||a||null);l[t]=!0,o.__mixinSet=l}return o}return r};/**
908
+ */let Gh=0;const B=function(i){let e=i.__mixinApplications;e||(e=new WeakMap,i.__mixinApplications=e);let t=Gh++;function r(a){let n=a.__mixinSet;if(n&&n[t])return a;let o=e,s=o.get(a);if(!s){s=i(a),o.set(a,s);let l=Object.create(s.__mixinSet||n||null);l[t]=!0,s.__mixinSet=l}return s}return r};/**
909
909
  @license
910
910
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
911
911
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -913,7 +913,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
913
913
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
914
914
  Code distributed by Google as part of the polymer project is also
915
915
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
916
- */let Ir={},is={};function Rn(i,e){Ir[i]=is[i.toLowerCase()]=e}function $n(i){return Ir[i]||is[i.toLowerCase()]}function Gh(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class vt extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=$n(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,n){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=mt(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Er(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(ei&&$n(e)!==void 0)throw Rn(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,Rn(e,this),Gh(this)}}}vt.prototype.modules=Ir;customElements.define("dom-module",vt);/**
916
+ */let Ir={},ao={};function $a(i,e){Ir[i]=ao[i.toLowerCase()]=e}function Ha(i){return Ir[i]||ao[i.toLowerCase()]}function Kh(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class gt extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let r=Ha(e);return r&&t?r.querySelector(t):r}return null}attributeChangedCallback(e,t,r,a){t!==r&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=mt(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Er(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(ei&&Ha(e)!==void 0)throw $a(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,$a(e,this),Kh(this)}}}gt.prototype.modules=Ir;customElements.define("dom-module",gt);/**
917
917
  @license
918
918
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
919
919
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -921,7 +921,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
921
921
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
922
922
  Code distributed by Google as part of the polymer project is also
923
923
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
924
- */const Kh="link[rel=import][type~=css]",Qh="include",Hn="shady-unscoped";function rs(i){return vt.import(i)}function Bn(i){let e=i.body?i.body:i;const t=kr(e.textContent,i.baseURI),r=document.createElement("style");return r.textContent=t,r}function Xh(i){const e=i.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...Jh(e[r]));return t}function Jh(i){const e=rs(i);if(!e)return console.warn("Could not find style data in module named",i),[];if(e._styles===void 0){const t=[];t.push(...as(e));const r=e.querySelector("template");r&&t.push(...ns(r,e.assetpath)),e._styles=t}return e._styles}function ns(i,e){if(!i._styles){const t=[],r=i.content.querySelectorAll("style");for(let n=0;n<r.length;n++){let a=r[n],s=a.getAttribute(Qh);s&&t.push(...Xh(s).filter(function(o,l,d){return d.indexOf(o)===l})),e&&(a.textContent=kr(a.textContent,e)),t.push(a)}i._styles=t}return i._styles}function Zh(i){let e=rs(i);return e?as(e):[]}function as(i){const e=[],t=i.querySelectorAll(Kh);for(let r=0;r<t.length;r++){let n=t[r];if(n.import){const a=n.import,s=n.hasAttribute(Hn);if(s&&!a._unscopedStyle){const o=Bn(a);o.setAttribute(Hn,""),a._unscopedStyle=o}else a._style||(a._style=Bn(a));e.push(s?a._unscopedStyle:a._style)}}return e}/**
924
+ */const Qh="link[rel=import][type~=css]",Xh="include",Ba="shady-unscoped";function no(i){return gt.import(i)}function Ua(i){let e=i.body?i.body:i;const t=kr(e.textContent,i.baseURI),r=document.createElement("style");return r.textContent=t,r}function Jh(i){const e=i.trim().split(/\s+/),t=[];for(let r=0;r<e.length;r++)t.push(...Zh(e[r]));return t}function Zh(i){const e=no(i);if(!e)return console.warn("Could not find style data in module named",i),[];if(e._styles===void 0){const t=[];t.push(...so(e));const r=e.querySelector("template");r&&t.push(...oo(r,e.assetpath)),e._styles=t}return e._styles}function oo(i,e){if(!i._styles){const t=[],r=i.content.querySelectorAll("style");for(let a=0;a<r.length;a++){let n=r[a],o=n.getAttribute(Xh);o&&t.push(...Jh(o).filter(function(s,l,d){return d.indexOf(s)===l})),e&&(n.textContent=kr(n.textContent,e)),t.push(n)}i._styles=t}return i._styles}function ec(i){let e=no(i);return e?so(e):[]}function so(i){const e=[],t=i.querySelectorAll(Qh);for(let r=0;r<t.length;r++){let a=t[r];if(a.import){const n=a.import,o=a.hasAttribute(Ba);if(o&&!n._unscopedStyle){const s=Ua(n);s.setAttribute(Ba,""),n._unscopedStyle=s}else n._style||(n._style=Ua(n));e.push(o?n._unscopedStyle:n._style)}}return e}/**
925
925
  @license
926
926
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
927
927
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -937,7 +937,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
937
937
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
938
938
  Code distributed by Google as part of the polymer project is also
939
939
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
940
- */function Qi(i){return i.indexOf(".")>=0}function Ve(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function ss(i,e){return i.indexOf(e+".")===0}function bt(i,e){return e.indexOf(i+".")===0}function yt(i,e,t){return e+t.slice(i.length)}function eu(i,e){return i===e||ss(i,e)||bt(i,e)}function ht(i){if(Array.isArray(i)){let e=[];for(let t=0;t<i.length;t++){let r=i[t].toString().split(".");for(let n=0;n<r.length;n++)e.push(r[n])}return e.join(".")}else return i}function os(i){return Array.isArray(i)?ht(i).split("."):i.toString().split(".")}function X(i,e,t){let r=i,n=os(e);for(let a=0;a<n.length;a++){if(!r)return;let s=n[a];r=r[s]}return t&&(t.path=n.join(".")),r}function Un(i,e,t){let r=i,n=os(e),a=n[n.length-1];if(n.length>1){for(let s=0;s<n.length-1;s++){let o=n[s];if(r=r[o],!r)return}r[a]=t}else r[e]=t;return n.join(".")}/**
940
+ */function Qi(i){return i.indexOf(".")>=0}function Ve(i){let e=i.indexOf(".");return e===-1?i:i.slice(0,e)}function lo(i,e){return i.indexOf(e+".")===0}function bt(i,e){return e.indexOf(i+".")===0}function yt(i,e,t){return e+t.slice(i.length)}function tc(i,e){return i===e||lo(i,e)||bt(i,e)}function ht(i){if(Array.isArray(i)){let e=[];for(let t=0;t<i.length;t++){let r=i[t].toString().split(".");for(let a=0;a<r.length;a++)e.push(r[a])}return e.join(".")}else return i}function ho(i){return Array.isArray(i)?ht(i).split("."):i.toString().split(".")}function X(i,e,t){let r=i,a=ho(e);for(let n=0;n<a.length;n++){if(!r)return;let o=a[n];r=r[o]}return t&&(t.path=a.join(".")),r}function qa(i,e,t){let r=i,a=ho(e),n=a[a.length-1];if(a.length>1){for(let o=0;o<a.length-1;o++){let s=a[o];if(r=r[s],!r)return}r[n]=t}else r[e]=t;return a.join(".")}/**
941
941
  @license
942
942
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
943
943
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -945,7 +945,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
945
945
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
946
946
  Code distributed by Google as part of the polymer project is also
947
947
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
948
- */const ti={},tu=/-[a-z]/g,iu=/([A-Z])/g;function ls(i){return ti[i]||(ti[i]=i.indexOf("-")<0?i:i.replace(tu,e=>e[1].toUpperCase()))}function li(i){return ti[i]||(ti[i]=i.replace(iu,"-$1").toLowerCase())}/**
948
+ */const ti={},ic=/-[a-z]/g,rc=/([A-Z])/g;function co(i){return ti[i]||(ti[i]=i.indexOf("-")<0?i:i.replace(ic,e=>e[1].toUpperCase()))}function li(i){return ti[i]||(ti[i]=i.replace(rc,"-$1").toLowerCase())}/**
949
949
  @license
950
950
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
951
951
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -953,7 +953,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
953
953
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
954
954
  Code distributed by Google as part of the polymer project is also
955
955
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
956
- */let ru=0,ds=0,Be=[],nu=0,Xi=!1,hs=document.createTextNode("");new window.MutationObserver(au).observe(hs,{characterData:!0});function au(){Xi=!1;const i=Be.length;for(let e=0;e<i;e++){let t=Be[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Be.splice(0,i),ds+=i}const su={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},us={run(i){return Xi||(Xi=!0,hs.textContent=nu++),Be.push(i),ru++},cancel(i){const e=i-ds;if(e>=0){if(!Be[e])throw new Error("invalid async handle: "+i);Be[e]=null}}};/**
956
+ */let ac=0,uo=0,Be=[],nc=0,Xi=!1,po=document.createTextNode("");new window.MutationObserver(oc).observe(po,{characterData:!0});function oc(){Xi=!1;const i=Be.length;for(let e=0;e<i;e++){let t=Be[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Be.splice(0,i),uo+=i}const sc={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},mo={run(i){return Xi||(Xi=!0,po.textContent=nc++),Be.push(i),ac++},cancel(i){const e=i-uo;if(e>=0){if(!Be[e])throw new Error("invalid async handle: "+i);Be[e]=null}}};/**
957
957
  @license
958
958
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
959
959
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -961,7 +961,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
961
961
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
962
962
  Code distributed by Google as part of the polymer project is also
963
963
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
964
- */const ou=us,cs=B(i=>{class e extends i{static createProperties(r){const n=this.prototype;for(let a in r)a in n||n._createPropertyAccessor(a)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,n){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,n))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let n=this.__dataAttributes[r];return n||(n=this.constructor.attributeNameForProperty(r),this.__dataAttributes[n]=r),n}_definePropertyAccessor(r,n){Object.defineProperty(this,r,{get(){return this.__data[r]},set:n?function(){}:function(a){this._setPendingProperty(r,a,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,n){this._setPendingProperty(r,n)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,n,a){let s=this.__data[r],o=this._shouldPropertyChange(r,n,s);return o&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=s),this.__data[r]=n,this.__dataPending[r]=n),o}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ou.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const r=this.__data,n=this.__dataPending,a=this.__dataOld;this._shouldPropertiesChange(r,n,a)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,n,a)),this.__dataCounter--}_shouldPropertiesChange(r,n,a){return!!n}_propertiesChanged(r,n,a){}_shouldPropertyChange(r,n,a){return a!==n&&(a===a||n===n)}attributeChangedCallback(r,n,a,s){n!==a&&this._attributeToProperty(r,a),super.attributeChangedCallback&&super.attributeChangedCallback(r,n,a,s)}_attributeToProperty(r,n,a){if(!this.__serializing){const s=this.__dataAttributes,o=s&&s[r]||r;this[o]=this._deserializeValue(n,a||this.constructor.typeForProperty(o))}}_propertyToAttribute(r,n,a){this.__serializing=!0,a=arguments.length<3?this[r]:a,this._valueToNodeAttribute(this,a,n||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,n,a){const s=this._serializeValue(n);(a==="class"||a==="name"||a==="slot")&&(r=K(r)),s===void 0?r.removeAttribute(a):r.setAttribute(a,s===""&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,n){switch(n){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return e});/**
964
+ */const lc=mo,fo=B(i=>{class e extends i{static createProperties(r){const a=this.prototype;for(let n in r)n in a||a._createPropertyAccessor(n)}static attributeNameForProperty(r){return r.toLowerCase()}static typeForProperty(r){}_createPropertyAccessor(r,a){this._addPropertyToAttributeMap(r),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[r]||(this.__dataHasAccessor[r]=!0,this._definePropertyAccessor(r,a))}_addPropertyToAttributeMap(r){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let a=this.__dataAttributes[r];return a||(a=this.constructor.attributeNameForProperty(r),this.__dataAttributes[a]=r),a}_definePropertyAccessor(r,a){Object.defineProperty(this,r,{get(){return this.__data[r]},set:a?function(){}:function(n){this._setPendingProperty(r,n,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let r in this.__dataHasAccessor)this.hasOwnProperty(r)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[r]=this[r],delete this[r])}_initializeInstanceProperties(r){Object.assign(this,r)}_setProperty(r,a){this._setPendingProperty(r,a)&&this._invalidateProperties()}_getProperty(r){return this.__data[r]}_setPendingProperty(r,a,n){let o=this.__data[r],s=this._shouldPropertyChange(r,a,o);return s&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(r in this.__dataOld)&&(this.__dataOld[r]=o),this.__data[r]=a,this.__dataPending[r]=a),s}_isPropertyPending(r){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(r))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,lc.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const r=this.__data,a=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(r,a,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(r,a,n)),this.__dataCounter--}_shouldPropertiesChange(r,a,n){return!!a}_propertiesChanged(r,a,n){}_shouldPropertyChange(r,a,n){return n!==a&&(n===n||a===a)}attributeChangedCallback(r,a,n,o){a!==n&&this._attributeToProperty(r,n),super.attributeChangedCallback&&super.attributeChangedCallback(r,a,n,o)}_attributeToProperty(r,a,n){if(!this.__serializing){const o=this.__dataAttributes,s=o&&o[r]||r;this[s]=this._deserializeValue(a,n||this.constructor.typeForProperty(s))}}_propertyToAttribute(r,a,n){this.__serializing=!0,n=arguments.length<3?this[r]:n,this._valueToNodeAttribute(this,n,a||this.constructor.attributeNameForProperty(r)),this.__serializing=!1}_valueToNodeAttribute(r,a,n){const o=this._serializeValue(a);(n==="class"||n==="name"||n==="slot")&&(r=K(r)),o===void 0?r.removeAttribute(n):r.setAttribute(n,o===""&&window.trustedTypes?window.trustedTypes.emptyScript:o)}_serializeValue(r){switch(typeof r){case"boolean":return r?"":void 0;default:return r!=null?r.toString():void 0}}_deserializeValue(r,a){switch(a){case Boolean:return r!==null;case Number:return Number(r);default:return r}}}return e});/**
965
965
  @license
966
966
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
967
967
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -969,7 +969,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
969
969
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
970
970
  Code distributed by Google as part of the polymer project is also
971
971
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
972
- */const ps={};let Mt=HTMLElement.prototype;for(;Mt;){let i=Object.getOwnPropertyNames(Mt);for(let e=0;e<i.length;e++)ps[i[e]]=!0;Mt=Object.getPrototypeOf(Mt)}const lu=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function du(i,e){if(!ps[e]){let t=i[e];t!==void 0&&(i.__data?i._setPendingProperty(e,t):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[e]=t))}}const hu=B(i=>{const e=cs(i);class t extends e{static createPropertiesForAttributes(){let n=this.observedAttributes;for(let a=0;a<n.length;a++)this.prototype._createPropertyAccessor(ls(n[a]))}static attributeNameForProperty(n){return li(n)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(n){for(let a in n)this._setProperty(a,n[a])}_ensureAttribute(n,a){const s=this;s.hasAttribute(n)||this._valueToNodeAttribute(s,a,n)}_serializeValue(n){switch(typeof n){case"object":if(n instanceof Date)return n.toString();if(n){if(lu(n))return n;try{return JSON.stringify(n)}catch(a){return""}}default:return super._serializeValue(n)}}_deserializeValue(n,a){let s;switch(a){case Object:try{s=JSON.parse(n)}catch(o){s=n}break;case Array:try{s=JSON.parse(n)}catch(o){s=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${n}`)}break;case Date:s=isNaN(n)?String(n):Number(n),s=new Date(s);break;default:s=super._deserializeValue(n,a);break}return s}_definePropertyAccessor(n,a){du(this,n),super._definePropertyAccessor(n,a)}_hasAccessor(n){return this.__dataHasAccessor&&this.__dataHasAccessor[n]}_isPropertyPending(n){return!!(this.__dataPending&&n in this.__dataPending)}}return t});/**
972
+ */const _o={};let Mt=HTMLElement.prototype;for(;Mt;){let i=Object.getOwnPropertyNames(Mt);for(let e=0;e<i.length;e++)_o[i[e]]=!0;Mt=Object.getPrototypeOf(Mt)}const dc=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function hc(i,e){if(!_o[e]){let t=i[e];t!==void 0&&(i.__data?i._setPendingProperty(e,t):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[e]=t))}}const cc=B(i=>{const e=fo(i);class t extends e{static createPropertiesForAttributes(){let a=this.observedAttributes;for(let n=0;n<a.length;n++)this.prototype._createPropertyAccessor(co(a[n]))}static attributeNameForProperty(a){return li(a)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(a){for(let n in a)this._setProperty(n,a[n])}_ensureAttribute(a,n){const o=this;o.hasAttribute(a)||this._valueToNodeAttribute(o,n,a)}_serializeValue(a){switch(typeof a){case"object":if(a instanceof Date)return a.toString();if(a){if(dc(a))return a;try{return JSON.stringify(a)}catch(n){return""}}default:return super._serializeValue(a)}}_deserializeValue(a,n){let o;switch(n){case Object:try{o=JSON.parse(a)}catch(s){o=a}break;case Array:try{o=JSON.parse(a)}catch(s){o=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${a}`)}break;case Date:o=isNaN(a)?String(a):Number(a),o=new Date(o);break;default:o=super._deserializeValue(a,n);break}return o}_definePropertyAccessor(a,n){hc(this,a),super._definePropertyAccessor(a,n)}_hasAccessor(a){return this.__dataHasAccessor&&this.__dataHasAccessor[a]}_isPropertyPending(a){return!!(this.__dataPending&&a in this.__dataPending)}}return t});/**
973
973
  @license
974
974
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
975
975
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -977,7 +977,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
977
977
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
978
978
  Code distributed by Google as part of the polymer project is also
979
979
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
980
- */const uu={"dom-if":!0,"dom-repeat":!0};let qn=!1,Wn=!1;function cu(){if(!qn){qn=!0;const i=document.createElement("textarea");i.placeholder="a",Wn=i.placeholder===i.textContent}return Wn}function pu(i){cu()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const mu=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const n=t.getAttribute(r);if(i&&r.startsWith("on-")){e.setAttribute(r,i.createScript(n,r));return}e.setAttribute(r,n)}})();function fu(i){let e=i.getAttribute("is");if(e&&uu[e]){let t=i;for(t.removeAttribute("is"),i=t.ownerDocument.createElement(e),t.parentNode.replaceChild(i,t),i.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];mu(i,t,r),t.removeAttribute(r)}}return i}function ms(i,e){let t=e.parentInfo&&ms(i,e.parentInfo);if(t){for(let r=t.firstChild,n=0;r;r=r.nextSibling)if(e.parentIndex===n++)return r}else return i}function _u(i,e,t,r){r.id&&(e[r.id]=t)}function gu(i,e,t){if(t.events&&t.events.length)for(let r=0,n=t.events,a;r<n.length&&(a=n[r]);r++)i._addMethodEventListenerToNode(e,a.name,a.value,i)}function vu(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function bu(i,e,t){return i=i._methodHost||i,function(r){i[t]?i[t](r,r.detail):console.warn("listener method `"+t+"` not defined")}}const yu=B(i=>{class e extends i{static _parseTemplate(r,n){if(!r._templateInfo){let a=r._templateInfo={};a.nodeInfoList=[],a.nestedTemplate=!!n,a.stripWhiteSpace=n&&n.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,a,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,n,a){return this._parseTemplateNode(r.content,n,a)}static _parseTemplateNode(r,n,a){let s=!1,o=r;return o.localName=="template"&&!o.hasAttribute("preserve-content")?s=this._parseTemplateNestedTemplate(o,n,a)||s:o.localName==="slot"&&(n.hasInsertionPoint=!0),pu(o),o.firstChild&&this._parseTemplateChildNodes(o,n,a),o.hasAttributes&&o.hasAttributes()&&(s=this._parseTemplateNodeAttributes(o,n,a)||s),s||a.noted}static _parseTemplateChildNodes(r,n,a){if(!(r.localName==="script"||r.localName==="style"))for(let s=r.firstChild,o=0,l;s;s=l){if(s.localName=="template"&&(s=fu(s)),l=s.nextSibling,s.nodeType===Node.TEXT_NODE){let h=l;for(;h&&h.nodeType===Node.TEXT_NODE;)s.textContent+=h.textContent,l=h.nextSibling,r.removeChild(h),h=l;if(n.stripWhiteSpace&&!s.textContent.trim()){r.removeChild(s);continue}}let d={parentIndex:o,parentInfo:a};this._parseTemplateNode(s,n,d)&&(d.infoIndex=n.nodeInfoList.push(d)-1),s.parentNode&&o++}}static _parseTemplateNestedTemplate(r,n,a){let s=r,o=this._parseTemplate(s,n);return(o.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),a.templateInfo=o,!0}static _parseTemplateNodeAttributes(r,n,a){let s=!1,o=Array.from(r.attributes);for(let l=o.length-1,d;d=o[l];l--)s=this._parseTemplateNodeAttribute(r,n,a,d.name,d.value)||s;return s}static _parseTemplateNodeAttribute(r,n,a,s,o){return s.slice(0,3)==="on-"?(r.removeAttribute(s),a.events=a.events||[],a.events.push({name:s.slice(3),value:o}),!0):s==="id"?(a.id=o,!0):!1}static _contentForTemplate(r){let n=r._templateInfo;return n&&n.content||r.content}_stampTemplate(r,n){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),n=n||this.constructor._parseTemplate(r);let a=n.nodeInfoList,s=n.content||r.content,o=document.importNode(s,!0);o.__noInsertionPoint=!n.hasInsertionPoint;let l=o.nodeList=new Array(a.length);o.$={};for(let d=0,h=a.length,c;d<h&&(c=a[d]);d++){let p=l[d]=ms(o,c);_u(this,o.$,p,c),vu(this,p,c,n),gu(this,p,c)}return o=o,o}_addMethodEventListenerToNode(r,n,a,s){s=s||r;let o=bu(s,n,a);return this._addEventListenerToNode(r,n,o),o}_addEventListenerToNode(r,n,a){r.addEventListener(n,a)}_removeEventListenerFromNode(r,n,a){r.removeEventListener(n,a)}}return e});/**
980
+ */const uc={"dom-if":!0,"dom-repeat":!0};let Wa=!1,ja=!1;function pc(){if(!Wa){Wa=!0;const i=document.createElement("textarea");i.placeholder="a",ja=i.placeholder===i.textContent}return ja}function mc(i){pc()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const fc=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,r)=>{const a=t.getAttribute(r);if(i&&r.startsWith("on-")){e.setAttribute(r,i.createScript(a,r));return}e.setAttribute(r,a)}})();function _c(i){let e=i.getAttribute("is");if(e&&uc[e]){let t=i;for(t.removeAttribute("is"),i=t.ownerDocument.createElement(e),t.parentNode.replaceChild(i,t),i.appendChild(t);t.attributes.length;){const{name:r}=t.attributes[0];fc(i,t,r),t.removeAttribute(r)}}return i}function vo(i,e){let t=e.parentInfo&&vo(i,e.parentInfo);if(t){for(let r=t.firstChild,a=0;r;r=r.nextSibling)if(e.parentIndex===a++)return r}else return i}function vc(i,e,t,r){r.id&&(e[r.id]=t)}function gc(i,e,t){if(t.events&&t.events.length)for(let r=0,a=t.events,n;r<a.length&&(n=a[r]);r++)i._addMethodEventListenerToNode(e,n.name,n.value,i)}function bc(i,e,t,r){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=r)}function yc(i,e,t){return i=i._methodHost||i,function(r){i[t]?i[t](r,r.detail):console.warn("listener method `"+t+"` not defined")}}const wc=B(i=>{class e extends i{static _parseTemplate(r,a){if(!r._templateInfo){let n=r._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=!!a,n.stripWhiteSpace=a&&a.stripWhiteSpace||r.hasAttribute&&r.hasAttribute("strip-whitespace"),this._parseTemplateContent(r,n,{parent:null})}return r._templateInfo}static _parseTemplateContent(r,a,n){return this._parseTemplateNode(r.content,a,n)}static _parseTemplateNode(r,a,n){let o=!1,s=r;return s.localName=="template"&&!s.hasAttribute("preserve-content")?o=this._parseTemplateNestedTemplate(s,a,n)||o:s.localName==="slot"&&(a.hasInsertionPoint=!0),mc(s),s.firstChild&&this._parseTemplateChildNodes(s,a,n),s.hasAttributes&&s.hasAttributes()&&(o=this._parseTemplateNodeAttributes(s,a,n)||o),o||n.noted}static _parseTemplateChildNodes(r,a,n){if(!(r.localName==="script"||r.localName==="style"))for(let o=r.firstChild,s=0,l;o;o=l){if(o.localName=="template"&&(o=_c(o)),l=o.nextSibling,o.nodeType===Node.TEXT_NODE){let h=l;for(;h&&h.nodeType===Node.TEXT_NODE;)o.textContent+=h.textContent,l=h.nextSibling,r.removeChild(h),h=l;if(a.stripWhiteSpace&&!o.textContent.trim()){r.removeChild(o);continue}}let d={parentIndex:s,parentInfo:n};this._parseTemplateNode(o,a,d)&&(d.infoIndex=a.nodeInfoList.push(d)-1),o.parentNode&&s++}}static _parseTemplateNestedTemplate(r,a,n){let o=r,s=this._parseTemplate(o,a);return(s.content=o.content.ownerDocument.createDocumentFragment()).appendChild(o.content),n.templateInfo=s,!0}static _parseTemplateNodeAttributes(r,a,n){let o=!1,s=Array.from(r.attributes);for(let l=s.length-1,d;d=s[l];l--)o=this._parseTemplateNodeAttribute(r,a,n,d.name,d.value)||o;return o}static _parseTemplateNodeAttribute(r,a,n,o,s){return o.slice(0,3)==="on-"?(r.removeAttribute(o),n.events=n.events||[],n.events.push({name:o.slice(3),value:s}),!0):o==="id"?(n.id=s,!0):!1}static _contentForTemplate(r){let a=r._templateInfo;return a&&a.content||r.content}_stampTemplate(r,a){r&&!r.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(r),a=a||this.constructor._parseTemplate(r);let n=a.nodeInfoList,o=a.content||r.content,s=document.importNode(o,!0);s.__noInsertionPoint=!a.hasInsertionPoint;let l=s.nodeList=new Array(n.length);s.$={};for(let d=0,h=n.length,u;d<h&&(u=n[d]);d++){let p=l[d]=vo(s,u);vc(this,s.$,p,u),bc(this,p,u,a),gc(this,p,u)}return s=s,s}_addMethodEventListenerToNode(r,a,n,o){o=o||r;let s=yc(o,a,n);return this._addEventListenerToNode(r,a,s),s}_addEventListenerToNode(r,a,n){r.addEventListener(a,n)}_removeEventListenerFromNode(r,a,n){r.removeEventListener(a,n)}}return e});/**
981
981
  * @fileoverview
982
982
  * @suppress {checkPrototypalTypes}
983
983
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -987,7 +987,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
987
987
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
988
988
  * Google as part of the polymer project is also subject to an additional IP
989
989
  * rights grant found at http://polymer.github.io/PATENTS.txt
990
- */let wt=0;const xt=[],T={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},fs="__computeInfo",wu=/[A-Z]/;function Si(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let n in r){let a=r[n],s=r[n]=Array(a.length);for(let o=0;o<a.length;o++)s[o]=a[o]}return r}function ut(i,e,t,r,n,a){if(e){let s=!1;const o=wt++;for(let l in t){let d=n?Ve(l):l,h=e[d];if(h)for(let c=0,p=h.length,m;c<p&&(m=h[c]);c++)(!m.info||m.info.lastRun!==o)&&(!n||Tr(l,m.trigger))&&(m.info&&(m.info.lastRun=o),m.fn(i,l,t,r,m.info,n,a),s=!0)}return s}return!1}function xu(i,e,t,r,n,a,s,o){let l=!1,d=s?Ve(r):r,h=e[d];if(h)for(let c=0,p=h.length,m;c<p&&(m=h[c]);c++)(!m.info||m.info.lastRun!==t)&&(!s||Tr(r,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(i,r,n,a,m.info,s,o),l=!0);return l}function Tr(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&ss(t,i))||!!(e.wildcard&&bt(t,i))}else return!0}function jn(i,e,t,r,n){let a=typeof n.method=="string"?i[n.method]:n.method,s=n.property;a?a.call(i,i.__data[s],r[s]):n.dynamicFn||console.warn("observer method `"+n.method+"` not defined")}function Cu(i,e,t,r,n){let a=i[T.NOTIFY],s,o=wt++;for(let d in e)e[d]&&(a&&xu(i,a,o,d,t,r,n)||n&&ku(i,d,t))&&(s=!0);let l;s&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function ku(i,e,t){let r=Ve(e);if(r!==e){let n=li(r)+"-changed";return _s(i,n,t[e],e),!0}return!1}function _s(i,e,t,r){let n={value:t,queueProperty:!0};r&&(n.path=r),K(i).dispatchEvent(new CustomEvent(e,{detail:n}))}function Eu(i,e,t,r,n,a){let s=(a?Ve(e):e)!=e?e:null,o=s?X(i,s):i.__data[e];s&&o===void 0&&(o=t[e]),_s(i,n.eventName,o,s)}function Iu(i,e,t,r,n){let a,s=i.detail,o=s&&s.path;o?(r=yt(t,r,o),a=s&&s.value):a=i.currentTarget[t],a=n?!a:a,(!e[T.READ_ONLY]||!e[T.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,a,!0,!!o)&&(!s||!s.queueProperty)&&e._invalidateProperties()}function Tu(i,e,t,r,n){let a=i.__data[e];Zt&&(a=Zt(a,n.attrName,"attribute",i)),i._propertyToAttribute(e,n.attrName,a)}function Pu(i,e,t,r){let n=i[T.COMPUTE];if(n)if(qh){wt++;const a=Au(i),s=[];for(let l in e)Yn(l,n,s,a,r);let o;for(;o=s.shift();)gs(i,"",e,t,o)&&Yn(o.methodInfo,n,s,a,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let a=e;for(;ut(i,n,a,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),a=i.__dataPending,i.__dataPending=null}}const Su=(i,e,t)=>{let r=0,n=e.length-1,a=-1;for(;r<=n;){const s=r+n>>1,o=t.get(e[s].methodInfo)-t.get(i.methodInfo);if(o<0)r=s+1;else if(o>0)n=s-1;else{a=s;break}}a<0&&(a=n+1),e.splice(a,0,i)},Yn=(i,e,t,r,n)=>{const a=n?Ve(i):i,s=e[a];if(s)for(let o=0;o<s.length;o++){const l=s[o];l.info.lastRun!==wt&&(!n||Tr(i,l.trigger))&&(l.info.lastRun=wt,Su(l.info,t,r))}};function Au(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[T.COMPUTE];let{counts:r,ready:n,total:a}=Du(i),s;for(;s=n.shift();){e.set(s,e.size);const o=t[s];o&&o.forEach(l=>{const d=l.info.methodInfo;--a,--r[d]===0&&n.push(d)})}a!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Du(i){const e=i[fs],t={},r=i[T.COMPUTE],n=[];let a=0;for(let s in e){const o=e[s];a+=t[s]=o.args.filter(l=>!l.literal).length+(o.dynamicFn?1:0)}for(let s in r)e[s]||n.push(s);return{counts:t,ready:n,total:a}}function gs(i,e,t,r,n){let a=Ji(i,e,t,r,n);if(a===xt)return!1;let s=n.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[s]?i._setPendingProperty(s,a,!0):(i[s]=a,!1)}function Ou(i,e,t){let r=i.__dataLinkedPaths;if(r){let n;for(let a in r){let s=r[a];bt(a,e)?(n=yt(a,s,e),i._setPendingPropertyOrPath(n,t,!0,!0)):bt(s,e)&&(n=yt(s,a,e),i._setPendingPropertyOrPath(n,t,!0,!0))}}}function Ai(i,e,t,r,n,a,s){t.bindings=t.bindings||[];let o={kind:r,target:n,parts:a,literal:s,isCompound:a.length!==1};if(t.bindings.push(o),Lu(o)){let{event:d,negate:h}=o.parts[0];o.listenerEvent=d||li(n)+"-changed",o.listenerNegate=h}let l=e.nodeInfoList.length;for(let d=0;d<o.parts.length;d++){let h=o.parts[d];h.compoundIndex=d,Vu(i,e,o,h,l)}}function Vu(i,e,t,r,n){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let a=r.dependencies,s={index:n,binding:t,part:r,evaluator:i};for(let o=0;o<a.length;o++){let l=a[o];typeof l=="string"&&(l=bs(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Mu,info:s,trigger:l})}}}function Mu(i,e,t,r,n,a,s){let o=s[n.index],l=n.binding,d=n.part;if(a&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&o.__isPropertyEffectsClient&&o.__dataHasAccessor&&o.__dataHasAccessor[l.target]){let h=t[e];e=yt(d.source,l.target,e),o._setPendingPropertyOrPath(e,h,!1,!0)&&i._enqueueClient(o)}else{let h=n.evaluator._evaluateBinding(i,d,e,t,r,a);h!==xt&&Nu(i,o,l,d,h)}}function Nu(i,e,t,r,n){if(n=zu(e,n,t,r),Zt&&(n=Zt(n,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,n,t.target);else{let a=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[a]?(!e[T.READ_ONLY]||!e[T.READ_ONLY][a])&&e._setPendingProperty(a,n)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,a,n)}}function zu(i,e,t,r){if(t.isCompound){let n=i.__dataCompoundStorage[t.target];n[r.compoundIndex]=e,e=n.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function Lu(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Fu(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let n=0;n<r.length;n++){let a=r[n],s=t[n],o=a.bindings;if(o)for(let l=0;l<o.length;l++){let d=o[l];Ru(s,d),$u(s,i,d)}s.__dataHost=i}}function Ru(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,n=new Array(r.length);for(let s=0;s<r.length;s++)n[s]=r[s].literal;let a=e.target;t[a]=n,e.literal&&e.kind=="property"&&(a==="className"&&(i=K(i)),i[a]=e.literal)}}function $u(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(n){Iu(n,e,t.target,r.source,r.negate)})}}function Gn(i,e,t,r,n,a){a=e.static||a&&(typeof a!="object"||a[e.methodName]);let s={methodName:e.methodName,args:e.args,methodInfo:n,dynamicFn:a};for(let o=0,l;o<e.args.length&&(l=e.args[o]);o++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:r,info:s,trigger:l});return a&&i._addPropertyEffect(e.methodName,t,{fn:r,info:s}),s}function Ji(i,e,t,r,n){let a=i._methodHost||i,s=a[n.methodName];if(s){let o=i._marshalArgs(n.args,e,t);return o===xt?xt:s.apply(a,o)}else n.dynamicFn||console.warn("method `"+n.methodName+"` not defined")}const Hu=[],vs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Bu="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Uu="(?:'(?:[^'\\\\]|\\\\.)*')",qu='(?:"(?:[^"\\\\]|\\\\.)*")',Wu="(?:"+Uu+"|"+qu+")",Kn="(?:("+vs+"|"+Bu+"|"+Wu+")\\s*)",ju="(?:"+Kn+"(?:,\\s*"+Kn+")*)",Yu="(?:\\(\\s*(?:"+ju+"?)\\)\\s*)",Gu="("+vs+"\\s*"+Yu+"?)",Ku="(\\[\\[|{{)\\s*",Qu="(?:]]|}})",Xu="(?:(!)\\s*)?",Ju=Ku+Xu+Gu+Qu,Qn=new RegExp(Ju,"g");function Xn(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Di(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Hu};if(e[2].trim()){let r=e[2].replace(/\\,/g,"&comma;").split(",");return Zu(r,t)}else return t}return null}function Zu(i,e){return e.args=i.map(function(t){let r=bs(t);return r.literal||(e.static=!1),r},this),e}function bs(i){let e=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Ve(e),t.structured=Qi(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Jn(i,e,t){let r=X(i,t);return r===void 0&&(r=e[t]),r}function ys(i,e,t,r){const n={indexSplices:r};Ki&&!i._overrideLegacyUndefined&&(e.splices=n),i.notifyPath(t+".splices",n),i.notifyPath(t+".length",e.length),Ki&&!i._overrideLegacyUndefined&&(n.indexSplices=[])}function st(i,e,t,r,n,a){ys(i,e,t,[{index:r,addedCount:n,removed:a,object:e,type:"splice"}])}function ec(i){return i[0].toUpperCase()+i.substring(1)}const Pr=B(i=>{const e=yu(hu(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return T}_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(ot.length){let n=ot[ot.length-1];n._enqueueClient(this),this.__dataHost=n}}_initializeProtoProperties(n){this.__data=Object.create(n),this.__dataPending=Object.create(n),this.__dataOld={}}_initializeInstanceProperties(n){let a=this[T.READ_ONLY];for(let s in n)(!a||!a[s])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[s]=this.__dataPending[s]=n[s])}_addPropertyEffect(n,a,s){this._createPropertyAccessor(n,a==T.READ_ONLY);let o=Si(this,a,!0)[n];o||(o=this[a][n]=[]),o.push(s)}_removePropertyEffect(n,a,s){let o=Si(this,a,!0)[n],l=o.indexOf(s);l>=0&&o.splice(l,1)}_hasPropertyEffect(n,a){let s=this[a];return!!(s&&s[n])}_hasReadOnlyEffect(n){return this._hasPropertyEffect(n,T.READ_ONLY)}_hasNotifyEffect(n){return this._hasPropertyEffect(n,T.NOTIFY)}_hasReflectEffect(n){return this._hasPropertyEffect(n,T.REFLECT)}_hasComputedEffect(n){return this._hasPropertyEffect(n,T.COMPUTE)}_setPendingPropertyOrPath(n,a,s,o){if(o||Ve(Array.isArray(n)?n[0]:n)!==n){if(!o){let l=X(this,n);if(n=Un(this,n,a),!n||!super._shouldPropertyChange(n,a,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(n,a,s))return Ou(this,n,a),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[n])return this._setPendingProperty(n,a,s);this[n]=a}return!1}_setUnmanagedPropertyToNode(n,a,s){(s!==n[a]||typeof s=="object")&&(a==="className"&&(n=K(n)),n[a]=s)}_setPendingProperty(n,a,s){let o=this.__dataHasPaths&&Qi(n),l=o?this.__dataTemp:this.__data;return this._shouldPropertyChange(n,a,l[n])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),n in this.__dataOld||(this.__dataOld[n]=this.__data[n]),o?this.__dataTemp[n]=a:this.__data[n]=a,this.__dataPending[n]=a,(o||this[T.NOTIFY]&&this[T.NOTIFY][n])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[n]=s),!0):!1}_setProperty(n,a){this._setPendingProperty(n,a,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(n){this.__dataPendingClients=this.__dataPendingClients||[],n!==this&&this.__dataPendingClients.push(n)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let n=this.__dataPendingClients;if(n){this.__dataPendingClients=null;for(let a=0;a<n.length;a++){let s=n[a];s.__dataEnabled?s.__dataPending&&s._flushProperties():s._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(n,a){for(let s in n)(a||!this[T.READ_ONLY]||!this[T.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,n[s],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(n,a,s){let o=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Pu(this,a,s,o),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(a,s,o),this._flushClients(),ut(this,this[T.REFLECT],a,s,o),ut(this,this[T.OBSERVE],a,s,o),l&&Cu(this,l,a,s,o),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(n,a,s){this[T.PROPAGATE]&&ut(this,this[T.PROPAGATE],n,a,s),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,n,a,s)}_runEffectsForTemplate(n,a,s,o){const l=(d,h)=>{ut(this,n.propertyEffects,d,s,h,n.nodeList);for(let c=n.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,d,s,h)};n.runEffects?n.runEffects(l,a,o):l(a,o)}linkPaths(n,a){n=ht(n),a=ht(a),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[n]=a}unlinkPaths(n){n=ht(n),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[n]}notifySplices(n,a){let s={path:""},o=X(this,n,s);ys(this,o,s.path,a)}get(n,a){return X(a||this,n)}set(n,a,s){s?Un(s,n,a):(!this[T.READ_ONLY]||!this[T.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,a,!0)&&this._invalidateProperties()}push(n,...a){let s={path:""},o=X(this,n,s),l=o.length,d=o.push(...a);return a.length&&st(this,o,s.path,l,a.length,[]),d}pop(n){let a={path:""},s=X(this,n,a),o=!!s.length,l=s.pop();return o&&st(this,s,a.path,s.length,0,[l]),l}splice(n,a,s,...o){let l={path:""},d=X(this,n,l);a<0?a=d.length-Math.floor(-a):a&&(a=Math.floor(a));let h;return arguments.length===2?h=d.splice(a):h=d.splice(a,s,...o),(o.length||h.length)&&st(this,d,l.path,a,o.length,h),h}shift(n){let a={path:""},s=X(this,n,a),o=!!s.length,l=s.shift();return o&&st(this,s,a.path,0,0,[l]),l}unshift(n,...a){let s={path:""},o=X(this,n,s),l=o.unshift(...a);return a.length&&st(this,o,s.path,0,a.length,[]),l}notifyPath(n,a){let s;if(arguments.length==1){let o={path:""};a=X(this,n,o),s=o.path}else Array.isArray(n)?s=ht(n):s=n;this._setPendingPropertyOrPath(s,a,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(n,a){this._addPropertyEffect(n,T.READ_ONLY),a&&(this["_set"+ec(n)]=function(s){this._setProperty(n,s)})}_createPropertyObserver(n,a,s){let o={property:n,method:a,dynamicFn:!!s};this._addPropertyEffect(n,T.OBSERVE,{fn:jn,info:o,trigger:{name:n}}),s&&this._addPropertyEffect(a,T.OBSERVE,{fn:jn,info:o,trigger:{name:a}})}_createMethodObserver(n,a){let s=Di(n);if(!s)throw new Error("Malformed observer expression '"+n+"'");Gn(this,s,T.OBSERVE,Ji,null,a)}_createNotifyingProperty(n){this._addPropertyEffect(n,T.NOTIFY,{fn:Eu,info:{eventName:li(n)+"-changed",property:n}})}_createReflectedProperty(n){let a=this.constructor.attributeNameForProperty(n);a[0]==="-"?console.warn("Property "+n+" cannot be reflected to attribute "+a+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(n,T.REFLECT,{fn:Tu,info:{attrName:a}})}_createComputedProperty(n,a,s){let o=Di(a);if(!o)throw new Error("Malformed computed expression '"+a+"'");const l=Gn(this,o,T.COMPUTE,gs,n,s);Si(this,fs)[n]=l}_marshalArgs(n,a,s){const o=this.__data,l=[];for(let d=0,h=n.length;d<h;d++){let{name:c,structured:p,wildcard:m,value:b,literal:M}=n[d];if(!M)if(m){const S=bt(c,a),O=Jn(o,s,S?a:c);b={path:S?a:c,value:O,base:S?X(o,c):O}}else b=p?Jn(o,s,c):o[c];if(Ki&&!this._overrideLegacyUndefined&&b===void 0&&n.length>1)return xt;l[d]=b}return l}static addPropertyEffect(n,a,s){this.prototype._addPropertyEffect(n,a,s)}static createPropertyObserver(n,a,s){this.prototype._createPropertyObserver(n,a,s)}static createMethodObserver(n,a){this.prototype._createMethodObserver(n,a)}static createNotifyingProperty(n){this.prototype._createNotifyingProperty(n)}static createReadOnlyProperty(n,a){this.prototype._createReadOnlyProperty(n,a)}static createReflectedProperty(n){this.prototype._createReflectedProperty(n)}static createComputedProperty(n,a,s){this.prototype._createComputedProperty(n,a,s)}static bindTemplate(n){return this.prototype._bindTemplate(n)}_bindTemplate(n,a){let s=this.constructor._parseTemplate(n),o=this.__preBoundTemplateInfo==s;if(!o)for(let l in s.propertyEffects)this._createPropertyAccessor(l);if(a)if(s=Object.create(s),s.wasPreBound=o,!this.__templateInfo)this.__templateInfo=s;else{const l=n._parentTemplateInfo||this.__templateInfo,d=l.lastChild;s.parent=l,l.lastChild=s,s.previousSibling=d,d?d.nextSibling=s:l.firstChild=s}else this.__preBoundTemplateInfo=s;return s}static _addTemplatePropertyEffect(n,a,s){let o=n.hostProps=n.hostProps||{};o[a]=!0;let l=n.propertyEffects=n.propertyEffects||{};(l[a]=l[a]||[]).push(s)}_stampTemplate(n,a){a=a||this._bindTemplate(n,!0),ot.push(this);let s=super._stampTemplate(n,a);if(ot.pop(),a.nodeList=s.nodeList,!a.wasPreBound){let o=a.childNodes=[];for(let l=s.firstChild;l;l=l.nextSibling)o.push(l)}return s.templateInfo=a,Fu(this,a),this.__dataClientsReady&&(this._runEffectsForTemplate(a,this.__data,null,!1),this._flushClients()),s}_removeBoundDom(n){const a=n.templateInfo,{previousSibling:s,nextSibling:o,parent:l}=a;s?s.nextSibling=o:l&&(l.firstChild=o),o?o.previousSibling=s:l&&(l.lastChild=s),a.nextSibling=a.previousSibling=null;let d=a.childNodes;for(let h=0;h<d.length;h++){let c=d[h];K(K(c).parentNode).removeChild(c)}}static _parseTemplateNode(n,a,s){let o=e._parseTemplateNode.call(this,n,a,s);if(n.nodeType===Node.TEXT_NODE){let l=this._parseBindings(n.textContent,a);l&&(n.textContent=Xn(l)||" ",Ai(this,a,s,"text","textContent",l),o=!0)}return o}static _parseTemplateNodeAttribute(n,a,s,o,l){let d=this._parseBindings(l,a);if(d){let h=o,c="property";wu.test(o)?c="attribute":o[o.length-1]=="$"&&(o=o.slice(0,-1),c="attribute");let p=Xn(d);return p&&c=="attribute"&&(o=="class"&&n.hasAttribute("class")&&(p+=" "+n.getAttribute(o)),n.setAttribute(o,p)),c=="attribute"&&h=="disable-upgrade$"&&n.setAttribute(o,""),n.localName==="input"&&h==="value"&&n.setAttribute(h,""),n.removeAttribute(h),c==="property"&&(o=ls(o)),Ai(this,a,s,c,o,d,p),!0}else return e._parseTemplateNodeAttribute.call(this,n,a,s,o,l)}static _parseTemplateNestedTemplate(n,a,s){let o=e._parseTemplateNestedTemplate.call(this,n,a,s);const l=n.parentNode,d=s.templateInfo,h=l.localName==="dom-if",c=l.localName==="dom-repeat";Ln&&(h||c)&&(l.removeChild(n),s=s.parentInfo,s.templateInfo=d,s.noted=!0,o=!1);let p=d.hostProps;if(Wh&&h)p&&(a.hostProps=Object.assign(a.hostProps||{},p),Ln||(s.parentInfo.noted=!0));else{let m="{";for(let b in p){let M=[{mode:m,source:b,dependencies:[b],hostProp:!0}];Ai(this,a,s,"property","_host_"+b,M)}}return o}static _parseBindings(n,a){let s=[],o=0,l;for(;(l=Qn.exec(n))!==null;){l.index>o&&s.push({literal:n.slice(o,l.index)});let d=l[1][0],h=!!l[2],c=l[3].trim(),p=!1,m="",b=-1;d=="{"&&(b=c.indexOf("::"))>0&&(m=c.substring(b+2),c=c.substring(0,b),p=!0);let M=Di(c),S=[];if(M){let{args:O,methodName:I}=M;for(let W=0;W<O.length;W++){let ne=O[W];ne.literal||S.push(ne)}let q=a.dynamicFns;(q&&q[I]||M.static)&&(S.push(I),M.dynamicFn=!0)}else S.push(c);s.push({source:c,mode:d,negate:h,customEvent:p,signature:M,dependencies:S,event:m}),o=Qn.lastIndex}if(o&&o<n.length){let d=n.substring(o);d&&s.push({literal:d})}return s.length?s:null}static _evaluateBinding(n,a,s,o,l,d){let h;return a.signature?h=Ji(n,s,o,l,a.signature):s!=a.source?h=X(n,a.source):d&&Qi(s)?h=X(n,s):h=n.__data[s],a.negate&&(h=!h),h}}return t}),ot=[];/**
990
+ */let wt=0;const xt=[],T={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},go="__computeInfo",xc=/[A-Z]/;function Si(i,e,t){let r=i[e];if(!r)r=i[e]={};else if(!i.hasOwnProperty(e)&&(r=i[e]=Object.create(i[e]),t))for(let a in r){let n=r[a],o=r[a]=Array(n.length);for(let s=0;s<n.length;s++)o[s]=n[s]}return r}function ct(i,e,t,r,a,n){if(e){let o=!1;const s=wt++;for(let l in t){let d=a?Ve(l):l,h=e[d];if(h)for(let u=0,p=h.length,m;u<p&&(m=h[u]);u++)(!m.info||m.info.lastRun!==s)&&(!a||Tr(l,m.trigger))&&(m.info&&(m.info.lastRun=s),m.fn(i,l,t,r,m.info,a,n),o=!0)}return o}return!1}function Cc(i,e,t,r,a,n,o,s){let l=!1,d=o?Ve(r):r,h=e[d];if(h)for(let u=0,p=h.length,m;u<p&&(m=h[u]);u++)(!m.info||m.info.lastRun!==t)&&(!o||Tr(r,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(i,r,a,n,m.info,o,s),l=!0);return l}function Tr(i,e){if(e){let t=e.name;return t==i||!!(e.structured&&lo(t,i))||!!(e.wildcard&&bt(t,i))}else return!0}function Ya(i,e,t,r,a){let n=typeof a.method=="string"?i[a.method]:a.method,o=a.property;n?n.call(i,i.__data[o],r[o]):a.dynamicFn||console.warn("observer method `"+a.method+"` not defined")}function kc(i,e,t,r,a){let n=i[T.NOTIFY],o,s=wt++;for(let d in e)e[d]&&(n&&Cc(i,n,s,d,t,r,a)||a&&Ec(i,d,t))&&(o=!0);let l;o&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Ec(i,e,t){let r=Ve(e);if(r!==e){let a=li(r)+"-changed";return bo(i,a,t[e],e),!0}return!1}function bo(i,e,t,r){let a={value:t,queueProperty:!0};r&&(a.path=r),K(i).dispatchEvent(new CustomEvent(e,{detail:a}))}function Ic(i,e,t,r,a,n){let o=(n?Ve(e):e)!=e?e:null,s=o?X(i,o):i.__data[e];o&&s===void 0&&(s=t[e]),bo(i,a.eventName,s,o)}function Tc(i,e,t,r,a){let n,o=i.detail,s=o&&o.path;s?(r=yt(t,r,s),n=o&&o.value):n=i.currentTarget[t],n=a?!n:n,(!e[T.READ_ONLY]||!e[T.READ_ONLY][r])&&e._setPendingPropertyOrPath(r,n,!0,!!s)&&(!o||!o.queueProperty)&&e._invalidateProperties()}function Pc(i,e,t,r,a){let n=i.__data[e];Zt&&(n=Zt(n,a.attrName,"attribute",i)),i._propertyToAttribute(e,a.attrName,n)}function Sc(i,e,t,r){let a=i[T.COMPUTE];if(a)if(Wh){wt++;const n=Dc(i),o=[];for(let l in e)Ga(l,a,o,n,r);let s;for(;s=o.shift();)yo(i,"",e,t,s)&&Ga(s.methodInfo,a,o,n,r);Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),i.__dataPending=null}else{let n=e;for(;ct(i,a,n,t,r);)Object.assign(t,i.__dataOld),Object.assign(e,i.__dataPending),n=i.__dataPending,i.__dataPending=null}}const Ac=(i,e,t)=>{let r=0,a=e.length-1,n=-1;for(;r<=a;){const o=r+a>>1,s=t.get(e[o].methodInfo)-t.get(i.methodInfo);if(s<0)r=o+1;else if(s>0)a=o-1;else{n=o;break}}n<0&&(n=a+1),e.splice(n,0,i)},Ga=(i,e,t,r,a)=>{const n=a?Ve(i):i,o=e[n];if(o)for(let s=0;s<o.length;s++){const l=o[s];l.info.lastRun!==wt&&(!a||Tr(i,l.trigger))&&(l.info.lastRun=wt,Ac(l.info,t,r))}};function Dc(i){let e=i.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=i[T.COMPUTE];let{counts:r,ready:a,total:n}=Oc(i),o;for(;o=a.shift();){e.set(o,e.size);const s=t[o];s&&s.forEach(l=>{const d=l.info.methodInfo;--n,--r[d]===0&&a.push(d)})}n!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=e}return e}function Oc(i){const e=i[go],t={},r=i[T.COMPUTE],a=[];let n=0;for(let o in e){const s=e[o];n+=t[o]=s.args.filter(l=>!l.literal).length+(s.dynamicFn?1:0)}for(let o in r)e[o]||a.push(o);return{counts:t,ready:a,total:n}}function yo(i,e,t,r,a){let n=Ji(i,e,t,r,a);if(n===xt)return!1;let o=a.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[o]?i._setPendingProperty(o,n,!0):(i[o]=n,!1)}function Vc(i,e,t){let r=i.__dataLinkedPaths;if(r){let a;for(let n in r){let o=r[n];bt(n,e)?(a=yt(n,o,e),i._setPendingPropertyOrPath(a,t,!0,!0)):bt(o,e)&&(a=yt(o,n,e),i._setPendingPropertyOrPath(a,t,!0,!0))}}}function Ai(i,e,t,r,a,n,o){t.bindings=t.bindings||[];let s={kind:r,target:a,parts:n,literal:o,isCompound:n.length!==1};if(t.bindings.push(s),Fc(s)){let{event:d,negate:h}=s.parts[0];s.listenerEvent=d||li(a)+"-changed",s.listenerNegate=h}let l=e.nodeInfoList.length;for(let d=0;d<s.parts.length;d++){let h=s.parts[d];h.compoundIndex=d,Mc(i,e,s,h,l)}}function Mc(i,e,t,r,a){if(!r.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let n=r.dependencies,o={index:a,binding:t,part:r,evaluator:i};for(let s=0;s<n.length;s++){let l=n[s];typeof l=="string"&&(l=xo(l),l.wildcard=!0),i._addTemplatePropertyEffect(e,l.rootProperty,{fn:Nc,info:o,trigger:l})}}}function Nc(i,e,t,r,a,n,o){let s=o[a.index],l=a.binding,d=a.part;if(n&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&s.__isPropertyEffectsClient&&s.__dataHasAccessor&&s.__dataHasAccessor[l.target]){let h=t[e];e=yt(d.source,l.target,e),s._setPendingPropertyOrPath(e,h,!1,!0)&&i._enqueueClient(s)}else{let h=a.evaluator._evaluateBinding(i,d,e,t,r,n);h!==xt&&zc(i,s,l,d,h)}}function zc(i,e,t,r,a){if(a=Lc(e,a,t,r),Zt&&(a=Zt(a,t.target,t.kind,e)),t.kind=="attribute")i._valueToNodeAttribute(e,a,t.target);else{let n=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[n]?(!e[T.READ_ONLY]||!e[T.READ_ONLY][n])&&e._setPendingProperty(n,a)&&i._enqueueClient(e):i._setUnmanagedPropertyToNode(e,n,a)}}function Lc(i,e,t,r){if(t.isCompound){let a=i.__dataCompoundStorage[t.target];a[r.compoundIndex]=e,e=a.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(e=e==null?"":e),e}function Fc(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Rc(i,e){let{nodeList:t,nodeInfoList:r}=e;if(r.length)for(let a=0;a<r.length;a++){let n=r[a],o=t[a],s=n.bindings;if(s)for(let l=0;l<s.length;l++){let d=s[l];$c(o,d),Hc(o,i,d)}o.__dataHost=i}}function $c(i,e){if(e.isCompound){let t=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),r=e.parts,a=new Array(r.length);for(let o=0;o<r.length;o++)a[o]=r[o].literal;let n=e.target;t[n]=a,e.literal&&e.kind=="property"&&(n==="className"&&(i=K(i)),i[n]=e.literal)}}function Hc(i,e,t){if(t.listenerEvent){let r=t.parts[0];i.addEventListener(t.listenerEvent,function(a){Tc(a,e,t.target,r.source,r.negate)})}}function Ka(i,e,t,r,a,n){n=e.static||n&&(typeof n!="object"||n[e.methodName]);let o={methodName:e.methodName,args:e.args,methodInfo:a,dynamicFn:n};for(let s=0,l;s<e.args.length&&(l=e.args[s]);s++)l.literal||i._addPropertyEffect(l.rootProperty,t,{fn:r,info:o,trigger:l});return n&&i._addPropertyEffect(e.methodName,t,{fn:r,info:o}),o}function Ji(i,e,t,r,a){let n=i._methodHost||i,o=n[a.methodName];if(o){let s=i._marshalArgs(a.args,e,t);return s===xt?xt:o.apply(n,s)}else a.dynamicFn||console.warn("method `"+a.methodName+"` not defined")}const Bc=[],wo="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Uc="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",qc="(?:'(?:[^'\\\\]|\\\\.)*')",Wc='(?:"(?:[^"\\\\]|\\\\.)*")',jc="(?:"+qc+"|"+Wc+")",Qa="(?:("+wo+"|"+Uc+"|"+jc+")\\s*)",Yc="(?:"+Qa+"(?:,\\s*"+Qa+")*)",Gc="(?:\\(\\s*(?:"+Yc+"?)\\)\\s*)",Kc="("+wo+"\\s*"+Gc+"?)",Qc="(\\[\\[|{{)\\s*",Xc="(?:]]|}})",Jc="(?:(!)\\s*)?",Zc=Qc+Jc+Kc+Xc,Xa=new RegExp(Zc,"g");function Ja(i){let e="";for(let t=0;t<i.length;t++){let r=i[t].literal;e+=r||""}return e}function Di(i){let e=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Bc};if(e[2].trim()){let r=e[2].replace(/\\,/g,"&comma;").split(",");return eu(r,t)}else return t}return null}function eu(i,e){return e.args=i.map(function(t){let r=xo(t);return r.literal||(e.static=!1),r},this),e}function xo(i){let e=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},r=e[0];switch(r==="-"&&(r=e[1]),r>="0"&&r<="9"&&(r="#"),r){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=Ve(e),t.structured=Qi(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Za(i,e,t){let r=X(i,t);return r===void 0&&(r=e[t]),r}function Co(i,e,t,r){const a={indexSplices:r};Ki&&!i._overrideLegacyUndefined&&(e.splices=a),i.notifyPath(t+".splices",a),i.notifyPath(t+".length",e.length),Ki&&!i._overrideLegacyUndefined&&(a.indexSplices=[])}function ot(i,e,t,r,a,n){Co(i,e,t,[{index:r,addedCount:a,removed:n,object:e,type:"splice"}])}function tu(i){return i[0].toUpperCase()+i.substring(1)}const Pr=B(i=>{const e=wc(cc(i));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return T}_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(st.length){let a=st[st.length-1];a._enqueueClient(this),this.__dataHost=a}}_initializeProtoProperties(a){this.__data=Object.create(a),this.__dataPending=Object.create(a),this.__dataOld={}}_initializeInstanceProperties(a){let n=this[T.READ_ONLY];for(let o in a)(!n||!n[o])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=a[o])}_addPropertyEffect(a,n,o){this._createPropertyAccessor(a,n==T.READ_ONLY);let s=Si(this,n,!0)[a];s||(s=this[n][a]=[]),s.push(o)}_removePropertyEffect(a,n,o){let s=Si(this,n,!0)[a],l=s.indexOf(o);l>=0&&s.splice(l,1)}_hasPropertyEffect(a,n){let o=this[n];return!!(o&&o[a])}_hasReadOnlyEffect(a){return this._hasPropertyEffect(a,T.READ_ONLY)}_hasNotifyEffect(a){return this._hasPropertyEffect(a,T.NOTIFY)}_hasReflectEffect(a){return this._hasPropertyEffect(a,T.REFLECT)}_hasComputedEffect(a){return this._hasPropertyEffect(a,T.COMPUTE)}_setPendingPropertyOrPath(a,n,o,s){if(s||Ve(Array.isArray(a)?a[0]:a)!==a){if(!s){let l=X(this,a);if(a=qa(this,a,n),!a||!super._shouldPropertyChange(a,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(a,n,o))return Vc(this,a,n),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[a])return this._setPendingProperty(a,n,o);this[a]=n}return!1}_setUnmanagedPropertyToNode(a,n,o){(o!==a[n]||typeof o=="object")&&(n==="className"&&(a=K(a)),a[n]=o)}_setPendingProperty(a,n,o){let s=this.__dataHasPaths&&Qi(a),l=s?this.__dataTemp:this.__data;return this._shouldPropertyChange(a,n,l[a])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),a in this.__dataOld||(this.__dataOld[a]=this.__data[a]),s?this.__dataTemp[a]=n:this.__data[a]=n,this.__dataPending[a]=n,(s||this[T.NOTIFY]&&this[T.NOTIFY][a])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[a]=o),!0):!1}_setProperty(a,n){this._setPendingProperty(a,n,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(a){this.__dataPendingClients=this.__dataPendingClients||[],a!==this&&this.__dataPendingClients.push(a)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let a=this.__dataPendingClients;if(a){this.__dataPendingClients=null;for(let n=0;n<a.length;n++){let o=a[n];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(a,n){for(let o in a)(n||!this[T.READ_ONLY]||!this[T.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,a[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(a,n,o){let s=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Sc(this,n,o,s),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,o,s),this._flushClients(),ct(this,this[T.REFLECT],n,o,s),ct(this,this[T.OBSERVE],n,o,s),l&&kc(this,l,n,o,s),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(a,n,o){this[T.PROPAGATE]&&ct(this,this[T.PROPAGATE],a,n,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,a,n,o)}_runEffectsForTemplate(a,n,o,s){const l=(d,h)=>{ct(this,a.propertyEffects,d,o,h,a.nodeList);for(let u=a.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,o,h)};a.runEffects?a.runEffects(l,n,s):l(n,s)}linkPaths(a,n){a=ht(a),n=ht(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[a]=n}unlinkPaths(a){a=ht(a),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[a]}notifySplices(a,n){let o={path:""},s=X(this,a,o);Co(this,s,o.path,n)}get(a,n){return X(n||this,a)}set(a,n,o){o?qa(o,a,n):(!this[T.READ_ONLY]||!this[T.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,n,!0)&&this._invalidateProperties()}push(a,...n){let o={path:""},s=X(this,a,o),l=s.length,d=s.push(...n);return n.length&&ot(this,s,o.path,l,n.length,[]),d}pop(a){let n={path:""},o=X(this,a,n),s=!!o.length,l=o.pop();return s&&ot(this,o,n.path,o.length,0,[l]),l}splice(a,n,o,...s){let l={path:""},d=X(this,a,l);n<0?n=d.length-Math.floor(-n):n&&(n=Math.floor(n));let h;return arguments.length===2?h=d.splice(n):h=d.splice(n,o,...s),(s.length||h.length)&&ot(this,d,l.path,n,s.length,h),h}shift(a){let n={path:""},o=X(this,a,n),s=!!o.length,l=o.shift();return s&&ot(this,o,n.path,0,0,[l]),l}unshift(a,...n){let o={path:""},s=X(this,a,o),l=s.unshift(...n);return n.length&&ot(this,s,o.path,0,n.length,[]),l}notifyPath(a,n){let o;if(arguments.length==1){let s={path:""};n=X(this,a,s),o=s.path}else Array.isArray(a)?o=ht(a):o=a;this._setPendingPropertyOrPath(o,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(a,n){this._addPropertyEffect(a,T.READ_ONLY),n&&(this["_set"+tu(a)]=function(o){this._setProperty(a,o)})}_createPropertyObserver(a,n,o){let s={property:a,method:n,dynamicFn:!!o};this._addPropertyEffect(a,T.OBSERVE,{fn:Ya,info:s,trigger:{name:a}}),o&&this._addPropertyEffect(n,T.OBSERVE,{fn:Ya,info:s,trigger:{name:n}})}_createMethodObserver(a,n){let o=Di(a);if(!o)throw new Error("Malformed observer expression '"+a+"'");Ka(this,o,T.OBSERVE,Ji,null,n)}_createNotifyingProperty(a){this._addPropertyEffect(a,T.NOTIFY,{fn:Ic,info:{eventName:li(a)+"-changed",property:a}})}_createReflectedProperty(a){let n=this.constructor.attributeNameForProperty(a);n[0]==="-"?console.warn("Property "+a+" cannot be reflected to attribute "+n+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(a,T.REFLECT,{fn:Pc,info:{attrName:n}})}_createComputedProperty(a,n,o){let s=Di(n);if(!s)throw new Error("Malformed computed expression '"+n+"'");const l=Ka(this,s,T.COMPUTE,yo,a,o);Si(this,go)[a]=l}_marshalArgs(a,n,o){const s=this.__data,l=[];for(let d=0,h=a.length;d<h;d++){let{name:u,structured:p,wildcard:m,value:b,literal:M}=a[d];if(!M)if(m){const S=bt(u,n),O=Za(s,o,S?n:u);b={path:S?n:u,value:O,base:S?X(s,u):O}}else b=p?Za(s,o,u):s[u];if(Ki&&!this._overrideLegacyUndefined&&b===void 0&&a.length>1)return xt;l[d]=b}return l}static addPropertyEffect(a,n,o){this.prototype._addPropertyEffect(a,n,o)}static createPropertyObserver(a,n,o){this.prototype._createPropertyObserver(a,n,o)}static createMethodObserver(a,n){this.prototype._createMethodObserver(a,n)}static createNotifyingProperty(a){this.prototype._createNotifyingProperty(a)}static createReadOnlyProperty(a,n){this.prototype._createReadOnlyProperty(a,n)}static createReflectedProperty(a){this.prototype._createReflectedProperty(a)}static createComputedProperty(a,n,o){this.prototype._createComputedProperty(a,n,o)}static bindTemplate(a){return this.prototype._bindTemplate(a)}_bindTemplate(a,n){let o=this.constructor._parseTemplate(a),s=this.__preBoundTemplateInfo==o;if(!s)for(let l in o.propertyEffects)this._createPropertyAccessor(l);if(n)if(o=Object.create(o),o.wasPreBound=s,!this.__templateInfo)this.__templateInfo=o;else{const l=a._parentTemplateInfo||this.__templateInfo,d=l.lastChild;o.parent=l,l.lastChild=o,o.previousSibling=d,d?d.nextSibling=o:l.firstChild=o}else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(a,n,o){let s=a.hostProps=a.hostProps||{};s[n]=!0;let l=a.propertyEffects=a.propertyEffects||{};(l[n]=l[n]||[]).push(o)}_stampTemplate(a,n){n=n||this._bindTemplate(a,!0),st.push(this);let o=super._stampTemplate(a,n);if(st.pop(),n.nodeList=o.nodeList,!n.wasPreBound){let s=n.childNodes=[];for(let l=o.firstChild;l;l=l.nextSibling)s.push(l)}return o.templateInfo=n,Rc(this,n),this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(a){const n=a.templateInfo,{previousSibling:o,nextSibling:s,parent:l}=n;o?o.nextSibling=s:l&&(l.firstChild=s),s?s.previousSibling=o:l&&(l.lastChild=o),n.nextSibling=n.previousSibling=null;let d=n.childNodes;for(let h=0;h<d.length;h++){let u=d[h];K(K(u).parentNode).removeChild(u)}}static _parseTemplateNode(a,n,o){let s=e._parseTemplateNode.call(this,a,n,o);if(a.nodeType===Node.TEXT_NODE){let l=this._parseBindings(a.textContent,n);l&&(a.textContent=Ja(l)||" ",Ai(this,n,o,"text","textContent",l),s=!0)}return s}static _parseTemplateNodeAttribute(a,n,o,s,l){let d=this._parseBindings(l,n);if(d){let h=s,u="property";xc.test(s)?u="attribute":s[s.length-1]=="$"&&(s=s.slice(0,-1),u="attribute");let p=Ja(d);return p&&u=="attribute"&&(s=="class"&&a.hasAttribute("class")&&(p+=" "+a.getAttribute(s)),a.setAttribute(s,p)),u=="attribute"&&h=="disable-upgrade$"&&a.setAttribute(s,""),a.localName==="input"&&h==="value"&&a.setAttribute(h,""),a.removeAttribute(h),u==="property"&&(s=co(s)),Ai(this,n,o,u,s,d,p),!0}else return e._parseTemplateNodeAttribute.call(this,a,n,o,s,l)}static _parseTemplateNestedTemplate(a,n,o){let s=e._parseTemplateNestedTemplate.call(this,a,n,o);const l=a.parentNode,d=o.templateInfo,h=l.localName==="dom-if",u=l.localName==="dom-repeat";Fa&&(h||u)&&(l.removeChild(a),o=o.parentInfo,o.templateInfo=d,o.noted=!0,s=!1);let p=d.hostProps;if(jh&&h)p&&(n.hostProps=Object.assign(n.hostProps||{},p),Fa||(o.parentInfo.noted=!0));else{let m="{";for(let b in p){let M=[{mode:m,source:b,dependencies:[b],hostProp:!0}];Ai(this,n,o,"property","_host_"+b,M)}}return s}static _parseBindings(a,n){let o=[],s=0,l;for(;(l=Xa.exec(a))!==null;){l.index>s&&o.push({literal:a.slice(s,l.index)});let d=l[1][0],h=!!l[2],u=l[3].trim(),p=!1,m="",b=-1;d=="{"&&(b=u.indexOf("::"))>0&&(m=u.substring(b+2),u=u.substring(0,b),p=!0);let M=Di(u),S=[];if(M){let{args:O,methodName:I}=M;for(let W=0;W<O.length;W++){let ae=O[W];ae.literal||S.push(ae)}let q=n.dynamicFns;(q&&q[I]||M.static)&&(S.push(I),M.dynamicFn=!0)}else S.push(u);o.push({source:u,mode:d,negate:h,customEvent:p,signature:M,dependencies:S,event:m}),s=Xa.lastIndex}if(s&&s<a.length){let d=a.substring(s);d&&o.push({literal:d})}return o.length?o:null}static _evaluateBinding(a,n,o,s,l,d){let h;return n.signature?h=Ji(a,o,s,l,n.signature):o!=n.source?h=X(a,n.source):d&&Qi(o)?h=X(a,o):h=a.__data[o],n.negate&&(h=!h),h}}return t}),st=[];/**
991
991
  @license
992
992
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
993
993
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1003,7 +1003,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1003
1003
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1004
1004
  Code distributed by Google as part of the polymer project is also
1005
1005
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1006
- */function tc(i){const e={};for(let t in i){const r=i[t];e[t]=typeof r=="function"?{type:r}:r}return e}const ic=B(i=>{const e=cs(i);function t(a){const s=Object.getPrototypeOf(a);return s.prototype instanceof n?s:null}function r(a){if(!a.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",a))){let s=null;if(a.hasOwnProperty(JSCompiler_renameProperty("properties",a))){const o=a.properties;o&&(s=tc(o))}a.__ownProperties=s}return a.__ownProperties}class n extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const s=this._properties;this.__observedAttributes=s?Object.keys(s).map(o=>this.prototype._addPropertyToAttributeMap(o)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const s=t(this);s&&s.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const s=r(this);s&&this.createProperties(s)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const s=t(this);this.__properties=Object.assign({},s&&s._properties,r(this))}return this.__properties}static typeForProperty(s){const o=this._properties[s];return o&&o.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return n});/**
1006
+ */function iu(i){const e={};for(let t in i){const r=i[t];e[t]=typeof r=="function"?{type:r}:r}return e}const ru=B(i=>{const e=fo(i);function t(n){const o=Object.getPrototypeOf(n);return o.prototype instanceof a?o:null}function r(n){if(!n.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",n))){let o=null;if(n.hasOwnProperty(JSCompiler_renameProperty("properties",n))){const s=n.properties;s&&(o=iu(s))}n.__ownProperties=o}return n.__ownProperties}class a extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const o=this._properties;this.__observedAttributes=o?Object.keys(o).map(s=>this.prototype._addPropertyToAttributeMap(s)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const o=t(this);o&&o.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const o=r(this);o&&this.createProperties(o)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const o=t(this);this.__properties=Object.assign({},o&&o._properties,r(this))}return this.__properties}static typeForProperty(o){const s=this._properties[o];return s&&s.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return a});/**
1007
1007
  * @fileoverview
1008
1008
  * @suppress {checkPrototypalTypes}
1009
1009
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1013,7 +1013,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1013
1013
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1014
1014
  * Google as part of the polymer project is also subject to an additional IP
1015
1015
  * rights grant found at http://polymer.github.io/PATENTS.txt
1016
- */const rc="3.5.2",Zn=window.ShadyCSS&&window.ShadyCSS.cssBuild,nc=B(i=>{const e=ic(Pr(i));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let h in d){let c=d[h];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=c)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function n(l,d,h,c){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,h.computed,c)),h.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):h.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),h.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):h.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),h.observer&&l._createPropertyObserver(d,h.observer,c[h.observer]),l._addPropertyToAttributeMap(d)}function a(l,d,h,c){if(!Zn){const p=d.content.querySelectorAll("style"),m=ns(d),b=Zh(h),M=d.content.firstElementChild;for(let O=0;O<b.length;O++){let I=b[O];I.textContent=l._processStyleText(I.textContent,c),d.content.insertBefore(I,M)}let S=0;for(let O=0;O<m.length;O++){let I=m[O],q=p[S];q!==I?(I=I.cloneNode(!0),q.parentNode.insertBefore(I,q)):S++,I.textContent=l._processStyleText(I.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,h),jh&&Zn&&$h){const p=d.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(b=>{m+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function s(l){let d=null;if(l&&(!ei||Bh)&&(d=vt.import(l,"template"),ei&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class o extends e{static get polymerElementVersion(){return rc}static _finalizeClass(){e._finalizeClass.call(this);const d=r(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):es||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let h in d)n(this.prototype,h,d[h],d)}static createObservers(d,h){const c=this.prototype;for(let p=0;p<d.length;p++)c._createMethodObserver(d[p],h)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&s(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Er(d.url);else{const h=vt.import(this.is);this._importPath=h&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Hh,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let h in d){let c=d[h];if(this._canApplyPropertyDefault(h)){let p=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(h)?this._setPendingProperty(h,p,!0):this[h]=p}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,h){return kr(d,h)}static _finalizeTemplate(d){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const c=this.importPath,p=c?mt(c):"";a(this,h,d,p),this.prototype._bindTemplate(h)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const h=K(this);if(h.attachShadow)return d?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:d}),h.shadowRoot.appendChild(d),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Uh&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,h){return!h&&this.importPath&&(h=mt(this.importPath)),mt(d,h)}static _parseTemplateContent(d,h,c){return h.dynamicFns=h.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,h,c)}static _addTemplatePropertyEffect(d,h,c){return ts&&!(h in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,h,c)}}return o});/**
1016
+ */const au="3.5.2",en=window.ShadyCSS&&window.ShadyCSS.cssBuild,nu=B(i=>{const e=ru(Pr(i));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let h in d){let u=d[h];"value"in u&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=u)}}return l.__propertyDefaults}function r(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function a(l,d,h,u){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,h.computed,u)),h.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):h.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),h.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):h.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),h.observer&&l._createPropertyObserver(d,h.observer,u[h.observer]),l._addPropertyToAttributeMap(d)}function n(l,d,h,u){if(!en){const p=d.content.querySelectorAll("style"),m=oo(d),b=ec(h),M=d.content.firstElementChild;for(let O=0;O<b.length;O++){let I=b[O];I.textContent=l._processStyleText(I.textContent,u),d.content.insertBefore(I,M)}let S=0;for(let O=0;O<m.length;O++){let I=m[O],q=p[S];q!==I?(I=I.cloneNode(!0),q.parentNode.insertBefore(I,q)):S++,I.textContent=l._processStyleText(I.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,h),Yh&&en&&Hh){const p=d.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(b=>{m+=b.textContent,b.parentNode.removeChild(b)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function o(l){let d=null;if(l&&(!ei||Uh)&&(d=gt.import(l,"template"),ei&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class s extends e{static get polymerElementVersion(){return au}static _finalizeClass(){e._finalizeClass.call(this);const d=r(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):io||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let h in d)a(this.prototype,h,d[h],d)}static createObservers(d,h){const u=this.prototype;for(let p=0;p<d.length;p++)u._createMethodObserver(d[p],h)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&o(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Er(d.url);else{const h=gt.import(this.is);this._importPath=h&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Bh,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let h in d){let u=d[h];if(this._canApplyPropertyDefault(h)){let p=typeof u.value=="function"?u.value.call(this):u.value;this._hasAccessor(h)?this._setPendingProperty(h,p,!0):this[h]=p}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,h){return kr(d,h)}static _finalizeTemplate(d){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const u=this.importPath,p=u?mt(u):"";n(this,h,d,p),this.prototype._bindTemplate(h)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const h=K(this);if(h.attachShadow)return d?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:d}),h.shadowRoot.appendChild(d),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),qh&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,h){return!h&&this.importPath&&(h=mt(this.importPath)),mt(d,h)}static _parseTemplateContent(d,h,u){return h.dynamicFns=h.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,h,u)}static _addTemplatePropertyEffect(d,h,u){return ro&&!(h in this._properties)&&!(u.info.part.signature&&u.info.part.signature.static)&&!u.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,h,u)}}return s});/**
1017
1017
  @license
1018
1018
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1019
1019
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1021,7 +1021,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1021
1021
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1022
1022
  Code distributed by Google as part of the polymer project is also
1023
1023
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1024
- */const ea=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class ws{constructor(e,t){Cs(e,t);const r=t.reduce((n,a,s)=>n+xs(a)+e[s+1],e[0]);this.value=r.toString()}toString(){return this.value}}function xs(i){if(i instanceof ws)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function ac(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof ws)return xs(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const A=function(i,...e){Cs(i,e);const t=document.createElement("template");let r=e.reduce((n,a,s)=>n+ac(a)+i[s+1],i[0]);return ea&&(r=ea.createHTML(r)),t.innerHTML=r,t},Cs=(i,e)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||e.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1024
+ */const tn=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class ko{constructor(e,t){Io(e,t);const r=t.reduce((a,n,o)=>a+Eo(n)+e[o+1],e[0]);this.value=r.toString()}toString(){return this.value}}function Eo(i){if(i instanceof ko)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function ou(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof ko)return Eo(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const A=function(i,...e){Io(i,e);const t=document.createElement("template");let r=e.reduce((a,n,o)=>a+ou(n)+i[o+1],i[0]);return tn&&(r=tn.createHTML(r)),t.innerHTML=r,t},Io=(i,e)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||e.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1025
1025
  @license
1026
1026
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1027
1027
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1029,7 +1029,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1029
1029
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1030
1030
  Code distributed by Google as part of the polymer project is also
1031
1031
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1032
- */const D=nc(HTMLElement),sc=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Bt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function oc(){function i(){return!0}return ks(i)}function lc(){try{return dc()?!0:hc()?Bt?!uc():!oc():!1}catch(i){return!1}}function dc(){return localStorage.getItem("vaadin.developmentmode.force")}function hc(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function uc(){return!!(Bt&&Object.keys(Bt).map(i=>Bt[i]).filter(i=>i.productionMode).length>0)}function ks(i,e){if(typeof i!="function")return;const t=sc.exec(i.toString());if(t)try{i=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(e)}window.Vaadin=window.Vaadin||{};const ta=function(i,e){if(window.Vaadin.developmentMode)return ks(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=lc());function cc(){/*! vaadin-dev-mode:start
1032
+ */const D=nu(HTMLElement),su=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Bt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function lu(){function i(){return!0}return To(i)}function du(){try{return hu()?!0:cu()?Bt?!uu():!lu():!1}catch(i){return!1}}function hu(){return localStorage.getItem("vaadin.developmentmode.force")}function cu(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function uu(){return!!(Bt&&Object.keys(Bt).map(i=>Bt[i]).filter(i=>i.productionMode).length>0)}function To(i,e){if(typeof i!="function")return;const t=su.exec(i.toString());if(t)try{i=new Function(t[1])}catch(r){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",r)}return i(e)}window.Vaadin=window.Vaadin||{};const rn=function(i,e){if(window.Vaadin.developmentMode)return To(i,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=du());function pu(){/*! vaadin-dev-mode:start
1033
1033
  (function () {
1034
1034
  'use strict';
1035
1035
 
@@ -1507,7 +1507,7 @@ try {
1507
1507
 
1508
1508
  }());
1509
1509
 
1510
- vaadin-dev-mode:end **/}const pc=function(){if(typeof ta=="function")return ta(cc)};/**
1510
+ vaadin-dev-mode:end **/}const mu=function(){if(typeof rn=="function")return rn(pu)};/**
1511
1511
  * @license
1512
1512
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1513
1513
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1515,7 +1515,7 @@ try {
1515
1515
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1516
1516
  * Code distributed by Google as part of the polymer project is also
1517
1517
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1518
- */let ia=0,Es=0;const Ue=[];let Zi=!1;function mc(){Zi=!1;const i=Ue.length;for(let e=0;e<i;e++){const t=Ue[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Ue.splice(0,i),Es+=i}const ye={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},Ct={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},Is={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},ii={run(i){Zi||(Zi=!0,queueMicrotask(()=>mc())),Ue.push(i);const e=ia;return ia+=1,e},cancel(i){const e=i-Es;if(e>=0){if(!Ue[e])throw new Error(`invalid async handle: ${i}`);Ue[e]=null}}};/**
1518
+ */let an=0,Po=0;const Ue=[];let Zi=!1;function fu(){Zi=!1;const i=Ue.length;for(let e=0;e<i;e++){const t=Ue[e];if(t)try{t()}catch(r){setTimeout(()=>{throw r})}}Ue.splice(0,i),Po+=i}const ye={after(i){return{run(e){return window.setTimeout(e,i)},cancel(e){window.clearTimeout(e)}}},run(i,e){return window.setTimeout(i,e)},cancel(i){window.clearTimeout(i)}},Ct={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},So={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},ii={run(i){Zi||(Zi=!0,queueMicrotask(()=>fu())),Ue.push(i);const e=an;return an+=1,e},cancel(i){const e=i-Po;if(e>=0){if(!Ue[e])throw new Error(`invalid async handle: ${i}`);Ue[e]=null}}};/**
1519
1519
  @license
1520
1520
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1521
1521
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1523,31 +1523,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1523
1523
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1524
1524
  Code distributed by Google as part of the polymer project is also
1525
1525
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1526
- */const kt=new Set;let te=class er{static debounce(e,t,r){return e instanceof er?e._cancelAsync():e=new er,e.setConfig(t,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,kt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),kt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Ts(i){kt.add(i)}function fc(){const i=!!kt.size;return kt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const ct=()=>{let i;do i=fc();while(i)};/**
1526
+ */const kt=new Set;let te=class er{static debounce(e,t,r){return e instanceof er?e._cancelAsync():e=new er,e.setConfig(t,r),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,kt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),kt.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}};function Ao(i){kt.add(i)}function _u(){const i=!!kt.size;return kt.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i}const ut=()=>{let i;do i=_u();while(i)};/**
1527
1527
  * @license
1528
1528
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1529
1529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1530
- */const ce=[];function tr(i,e,t=i.getAttribute("dir")){e?i.setAttribute("dir",e):t!=null&&i.removeAttribute("dir")}function ir(){return document.documentElement.getAttribute("dir")}function _c(){const i=ir();ce.forEach(e=>{tr(e,i)})}const gc=new MutationObserver(_c);gc.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const re=i=>class extends i{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),tr(this,ir(),null))}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),e!=="dir")return;const n=ir(),a=r===n&&ce.indexOf(this)===-1,s=!r&&t&&ce.indexOf(this)===-1;a||s?(this.__subscribe(),tr(this,n,r)):r!==n&&t===n&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ce.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,r){r==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,r)}_attributeToProperty(e,t,r){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,r)}__subscribe(){ce.includes(this)||ce.push(this)}__unsubscribe(){ce.includes(this)&&ce.splice(ce.indexOf(this),1)}};/**
1530
+ */const ue=[];function tr(i,e,t=i.getAttribute("dir")){e?i.setAttribute("dir",e):t!=null&&i.removeAttribute("dir")}function ir(){return document.documentElement.getAttribute("dir")}function vu(){const i=ir();ue.forEach(e=>{tr(e,i)})}const gu=new MutationObserver(vu);gu.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const re=i=>class extends i{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),tr(this,ir(),null))}attributeChangedCallback(e,t,r){if(super.attributeChangedCallback(e,t,r),e!=="dir")return;const a=ir(),n=r===a&&ue.indexOf(this)===-1,o=!r&&t&&ue.indexOf(this)===-1;n||o?(this.__subscribe(),tr(this,a,r)):r!==a&&t===a&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=ue.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,r){r==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,r)}_attributeToProperty(e,t,r){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,r)}__subscribe(){ue.includes(this)||ue.push(this)}__unsubscribe(){ue.includes(this)&&ue.splice(ue.indexOf(this),1)}};/**
1531
1531
  * @license
1532
1532
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1533
1533
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1534
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){pc()};let Oi;const ra=new Set,ue=i=>class extends re(i){static finalize(){super.finalize();const{is:e}=this;e&&!ra.has(e)&&(window.Vaadin.registrations.push(this),ra.add(e),window.Vaadin.developmentModeCallback&&(Oi=te.debounce(Oi,Is,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Ts(Oi)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1534
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){mu()};let Oi;const nn=new Set,ce=i=>class extends re(i){static finalize(){super.finalize();const{is:e}=this;e&&!nn.has(e)&&(window.Vaadin.registrations.push(this),nn.add(e),window.Vaadin.developmentModeCallback&&(Oi=te.debounce(Oi,So,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Ao(Oi)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1535
1535
  * @license
1536
1536
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1537
1537
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1538
- */function vc(i){const e=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){e.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return e}function Ps(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...Ps(r))),e}function Sr(i){return i?new Set(i.split(" ")):new Set}function di(i){return i?[...i].join(" "):""}function Ss(i,e,t){const r=Sr(i.getAttribute(e));r.add(t),i.setAttribute(e,di(r))}function bc(i,e,t){const r=Sr(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,di(r))}function yc(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
1538
+ */function bu(i){const e=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){e.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return e}function Do(i){const e=[];let t;return i.localName==="slot"?t=i.assignedElements():(e.push(i),t=[...i.children]),t.forEach(r=>e.push(...Do(r))),e}function Sr(i){return i?new Set(i.split(" ")):new Set}function di(i){return i?[...i].join(" "):""}function Oo(i,e,t){const r=Sr(i.getAttribute(e));r.add(t),i.setAttribute(e,di(r))}function yu(i,e,t){const r=Sr(i.getAttribute(e));if(r.delete(t),r.size===0){i.removeAttribute(e);return}i.setAttribute(e,di(r))}function wu(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
1539
1539
  * @license
1540
1540
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1541
1541
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1542
- */class Ar{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],n=[];e.length&&(t=e.filter(a=>!this._storedNodes.includes(a))),this._storedNodes.length&&this._storedNodes.forEach((a,s)=>{const o=e.indexOf(a);o===-1?r.push(a):o!==s&&n.push(a)}),(t.length||r.length||n.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:n,removedNodes:r}),this._storedNodes=e}}/**
1542
+ */class Ar{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const r=[],a=[];e.length&&(t=e.filter(n=>!this._storedNodes.includes(n))),this._storedNodes.length&&this._storedNodes.forEach((n,o)=>{const s=e.indexOf(n);s===-1?r.push(n):s!==o&&a.push(n)}),(t.length||r.length||a.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:a,removedNodes:r}),this._storedNodes=e}}/**
1543
1543
  * @license
1544
1544
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1545
1545
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1546
- */let wc=0;function hi(){return wc++}/**
1546
+ */let xu=0;function hi(){return xu++}/**
1547
1547
  * @license
1548
1548
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1549
1549
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1550
- */class he extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${hi()}`}constructor(e,t,r,n={}){super();const{initializer:a,multiple:s,observe:o,useUniqueId:l,uniqueIdPrefix:d}=n;this.host=e,this.slotName=t,this.tagName=r,this.observe=typeof o=="boolean"?o:!0,this.multiple=typeof s=="boolean"?s:!1,this.slotInitializer=a,s&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:r}=this;let n=this.defaultNode;return!n&&r&&(n=document.createElement(r),n instanceof Element&&(t!==""&&n.setAttribute("slot",t),this.defaultNode=n)),n&&(this.node=n,e.appendChild(n)),n}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Ar(r,({addedNodes:n,removedNodes:a})=>{const s=this.multiple?this.nodes:[this.node],o=n.filter(l=>!yc(l)&&!s.includes(l));a.length&&(this.nodes=s.filter(l=>!a.includes(l)),a.forEach(l=>{this.teardownNode(l)})),o&&o.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...s,...o].filter(l=>l!==this.defaultNode),o.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=o[0],this.initAddedNode(this.node)))})}}/**
1550
+ */class he extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${hi()}`}constructor(e,t,r,a={}){super();const{initializer:n,multiple:o,observe:s,useUniqueId:l,uniqueIdPrefix:d}=a;this.host=e,this.slotName=t,this.tagName=r,this.observe=typeof s=="boolean"?s:!0,this.multiple=typeof o=="boolean"?o:!1,this.slotInitializer=n,o&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:r}=this;let a=this.defaultNode;return!a&&r&&(a=document.createElement(r),a instanceof Element&&(t!==""&&a.setAttribute("slot",t),this.defaultNode=a)),a&&(this.node=a,e.appendChild(a)),a}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,r=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Ar(r,({addedNodes:a,removedNodes:n})=>{const o=this.multiple?this.nodes:[this.node],s=a.filter(l=>!wu(l)&&!o.includes(l));n.length&&(this.nodes=o.filter(l=>!n.includes(l)),n.forEach(l=>{this.teardownNode(l)})),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...o,...s].filter(l=>l!==this.defaultNode),s.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))})}}/**
1551
1551
  * @license
1552
1552
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1553
1553
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1559,7 +1559,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1559
1559
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1560
1560
  Code distributed by Google as part of the polymer project is also
1561
1561
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1562
- */const xc=i=>i,As=typeof document.head.style.touchAction=="string",rr="__polymerGestures",Vi="__polymerGesturesHandled",nr="__polymerGesturesTouchAction",na=25,aa=5,Cc=2,kc=["mousedown","mousemove","mouseup","click"],Ec=[0,1,4,2],Ic=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Ds(i){return kc.indexOf(i)>-1}(function(){try{const i=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();const Tc=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Pc={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ae(i){const e=i.type;if(!Ds(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!Ic&&(t=Ec[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function Sc(i){if(i.type==="click"){if(i.detail===0)return!0;const e=we(i);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=i.pageX,n=i.pageY;return!(r>=t.left&&r<=t.right&&n>=t.top&&n<=t.bottom)}return!1}const pe={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ac(i){let e="auto";const t=Vs(i);for(let r=0,n;r<t.length;r++)if(n=t[r],n[nr]){e=n[nr];break}return e}function Os(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function qe(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Vs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],Dr={},Se=[];function Dc(i,e){let t=document.elementFromPoint(i,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const n=r;if(r=r.shadowRoot.elementFromPoint(i,e),n===r)break;r&&(t=r)}return t}function we(i){const e=Vs(i);return e.length>0?e[0]:i.target}function Oc(i){const e=i.type,t=i.currentTarget[rr];if(!t)return;const r=t[e];if(!r)return;if(!i[Vi]&&(i[Vi]={},e.startsWith("touch"))){const a=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(pe.touch.id=a.identifier),pe.touch.id!==a.identifier)return;As||(e==="touchstart"||e==="touchmove")&&Vc(i)}const n=i[Vi];if(!n.skip){for(let a=0,s;a<Se.length;a++)s=Se[a],r[s.name]&&!n[s.name]&&s.flow&&s.flow.start.indexOf(i.type)>-1&&s.reset&&s.reset();for(let a=0,s;a<Se.length;a++)s=Se[a],r[s.name]&&!n[s.name]&&(n[s.name]=!0,s[e](i))}}function Vc(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")pe.touch.x=e.clientX,pe.touch.y=e.clientY,pe.touch.scrollDecided=!1;else if(t==="touchmove"){if(pe.touch.scrollDecided)return;pe.touch.scrollDecided=!0;const r=Ac(i);let n=!1;const a=Math.abs(pe.touch.x-e.clientX),s=Math.abs(pe.touch.y-e.clientY);i.cancelable&&(r==="none"?n=!0:r==="pan-x"?n=s>a:r==="pan-y"&&(n=a>s)),n?i.preventDefault():ri("track")}}function oe(i,e,t){return Dr[e]?(Mc(i,e,t),!0):!1}function Mc(i,e,t){const r=Dr[e],n=r.deps,a=r.name;let s=i[rr];s||(i[rr]=s={});for(let o=0,l,d;o<n.length;o++)l=n[o],!(Tc&&Ds(l)&&l!=="click")&&(d=s[l],d||(s[l]=d={_count:0}),d._count===0&&i.addEventListener(l,Oc,void 0),d[a]=(d[a]||0)+1,d._count=(d._count||0)+1);i.addEventListener(e,t),r.touchAction&&Ms(i,r.touchAction)}function Or(i){Se.push(i),i.emits.forEach(e=>{Dr[e]=i})}function Nc(i){for(let e=0,t;e<Se.length;e++){t=Se[e];for(let r=0,n;r<t.emits.length;r++)if(n=t.emits[r],n===i)return t}return null}function Ms(i,e){As&&i instanceof HTMLElement&&ii.run(()=>{i.style.touchAction=e}),i[nr]=e}function Vr(i,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,xc(i).dispatchEvent(r),r.defaultPrevented){const n=t.preventer||t.sourceEvent;n&&n.preventDefault&&n.preventDefault()}}function ri(i){const e=Nc(i);e.info&&(e.info.prevent=!0)}Or({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){qe(this.info)},mousedown(i){if(!Ae(i))return;const e=we(i),t=this,r=a=>{Ae(a)||(lt("up",e,a),qe(t.info))},n=a=>{Ae(a)&&lt("up",e,a),qe(t.info)};Os(this.info,r,n),lt("down",e,i)},touchstart(i){lt("down",we(i),i.changedTouches[0],i)},touchend(i){lt("up",we(i),i.changedTouches[0],i)}});function lt(i,e,t,r){e&&Vr(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(n){return ri(n)}})}Or({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(i){this.moves.length>Cc&&this.moves.shift(),this.moves.push(i)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,qe(this.info)},mousedown(i){if(!Ae(i))return;const e=we(i),t=this,r=a=>{const s=a.clientX,o=a.clientY;sa(t.info,s,o)&&(t.info.state=t.info.started?a.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&ri("tap"),t.info.addMove({x:s,y:o}),Ae(a)||(t.info.state="end",qe(t.info)),e&&Mi(t.info,e,a),t.info.started=!0)},n=a=>{t.info.started&&r(a),qe(t.info)};Os(this.info,r,n),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(i){const e=we(i),t=i.changedTouches[0],r=t.clientX,n=t.clientY;sa(this.info,r,n)&&(this.info.state==="start"&&ri("tap"),this.info.addMove({x:r,y:n}),Mi(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=we(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Mi(this.info,e,t))}});function sa(i,e,t){if(i.prevent)return!1;if(i.started)return!0;const r=Math.abs(i.x-e),n=Math.abs(i.y-t);return r>=aa||n>=aa}function Mi(i,e,t){if(!e)return;const r=i.moves[i.moves.length-2],n=i.moves[i.moves.length-1],a=n.x-i.x,s=n.y-i.y;let o,l=0;r&&(o=n.x-r.x,l=n.y-r.y),Vr(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:a,dy:s,ddx:o,ddy:l,sourceEvent:t,hover(){return Dc(t.clientX,t.clientY)}})}Or({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(i){Ae(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Ae(i)&&oa(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){oa(this.info,i.changedTouches[0],i)}});function oa(i,e,t){const r=Math.abs(e.clientX-i.x),n=Math.abs(e.clientY-i.y),a=we(t||e);!a||Pc[a.localName]&&a.hasAttribute("disabled")||(isNaN(r)||isNaN(n)||r<=na&&n<=na||Sc(e))&&(i.prevent||Vr(a,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1562
+ */const Cu=!1,ku=i=>i,Dr=typeof document.head.style.touchAction=="string",rr="__polymerGestures",Vi="__polymerGesturesHandled",ar="__polymerGesturesTouchAction",on=25,sn=5,Eu=2,Iu=["mousedown","mousemove","mouseup","click"],Tu=[0,1,4,2],Pu=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Or(i){return Iu.indexOf(i)>-1}let Vo=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){Vo=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();function Su(i){if(!(Or(i)||i==="touchend")&&Dr&&Vo&&Cu)return{passive:!0}}const Au=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Du={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ae(i){const e=i.type;if(!Or(e))return!1;if(e==="mousemove"){let t=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!Pu&&(t=Tu[i.which]||0),!!(t&1)}return(i.button===void 0?0:i.button)===0}function Ou(i){if(i.type==="click"){if(i.detail===0)return!0;const e=we(i);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),r=i.pageX,a=i.pageY;return!(r>=t.left&&r<=t.right&&a>=t.top&&a<=t.bottom)}return!1}const pe={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Vu(i){let e="auto";const t=No(i);for(let r=0,a;r<t.length;r++)if(a=t[r],a[ar]){e=a[ar];break}return e}function Mo(i,e,t){i.movefn=e,i.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function qe(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const No=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],Vr={},Se=[];function Mu(i,e){let t=document.elementFromPoint(i,e),r=t;for(;r&&r.shadowRoot&&!window.ShadyDOM;){const a=r;if(r=r.shadowRoot.elementFromPoint(i,e),a===r)break;r&&(t=r)}return t}function we(i){const e=No(i);return e.length>0?e[0]:i.target}function Nu(i){const e=i.type,t=i.currentTarget[rr];if(!t)return;const r=t[e];if(!r)return;if(!i[Vi]&&(i[Vi]={},e.startsWith("touch"))){const n=i.changedTouches[0];if(e==="touchstart"&&i.touches.length===1&&(pe.touch.id=n.identifier),pe.touch.id!==n.identifier)return;Dr||(e==="touchstart"||e==="touchmove")&&zu(i)}const a=i[Vi];if(!a.skip){for(let n=0,o;n<Se.length;n++)o=Se[n],r[o.name]&&!a[o.name]&&o.flow&&o.flow.start.indexOf(i.type)>-1&&o.reset&&o.reset();for(let n=0,o;n<Se.length;n++)o=Se[n],r[o.name]&&!a[o.name]&&(a[o.name]=!0,o[e](i))}}function zu(i){const e=i.changedTouches[0],t=i.type;if(t==="touchstart")pe.touch.x=e.clientX,pe.touch.y=e.clientY,pe.touch.scrollDecided=!1;else if(t==="touchmove"){if(pe.touch.scrollDecided)return;pe.touch.scrollDecided=!0;const r=Vu(i);let a=!1;const n=Math.abs(pe.touch.x-e.clientX),o=Math.abs(pe.touch.y-e.clientY);i.cancelable&&(r==="none"?a=!0:r==="pan-x"?a=o>n:r==="pan-y"&&(a=n>o)),a?i.preventDefault():ri("track")}}function se(i,e,t){return Vr[e]?(Lu(i,e,t),!0):!1}function Lu(i,e,t){const r=Vr[e],a=r.deps,n=r.name;let o=i[rr];o||(i[rr]=o={});for(let s=0,l,d;s<a.length;s++)l=a[s],!(Au&&Or(l)&&l!=="click")&&(d=o[l],d||(o[l]=d={_count:0}),d._count===0&&i.addEventListener(l,Nu,Su(l)),d[n]=(d[n]||0)+1,d._count=(d._count||0)+1);i.addEventListener(e,t),r.touchAction&&zo(i,r.touchAction)}function Mr(i){Se.push(i),i.emits.forEach(e=>{Vr[e]=i})}function Fu(i){for(let e=0,t;e<Se.length;e++){t=Se[e];for(let r=0,a;r<t.emits.length;r++)if(a=t.emits[r],a===i)return t}return null}function zo(i,e){Dr&&i instanceof HTMLElement&&ii.run(()=>{i.style.touchAction=e}),i[ar]=e}function Nr(i,e,t){const r=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(r.detail=t,ku(i).dispatchEvent(r),r.defaultPrevented){const a=t.preventer||t.sourceEvent;a&&a.preventDefault&&a.preventDefault()}}function ri(i){const e=Fu(i);e.info&&(e.info.prevent=!0)}Mr({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){qe(this.info)},mousedown(i){if(!Ae(i))return;const e=we(i),t=this,r=n=>{Ae(n)||(lt("up",e,n),qe(t.info))},a=n=>{Ae(n)&&lt("up",e,n),qe(t.info)};Mo(this.info,r,a),lt("down",e,i)},touchstart(i){lt("down",we(i),i.changedTouches[0],i)},touchend(i){lt("up",we(i),i.changedTouches[0],i)}});function lt(i,e,t,r){e&&Nr(e,i,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:r,prevent(a){return ri(a)}})}Mr({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(i){this.moves.length>Eu&&this.moves.shift(),this.moves.push(i)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,qe(this.info)},mousedown(i){if(!Ae(i))return;const e=we(i),t=this,r=n=>{const o=n.clientX,s=n.clientY;ln(t.info,o,s)&&(t.info.state=t.info.started?n.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&ri("tap"),t.info.addMove({x:o,y:s}),Ae(n)||(t.info.state="end",qe(t.info)),e&&Mi(t.info,e,n),t.info.started=!0)},a=n=>{t.info.started&&r(n),qe(t.info)};Mo(this.info,r,a),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(i){const e=we(i),t=i.changedTouches[0],r=t.clientX,a=t.clientY;ln(this.info,r,a)&&(this.info.state==="start"&&ri("tap"),this.info.addMove({x:r,y:a}),Mi(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(i){const e=we(i),t=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Mi(this.info,e,t))}});function ln(i,e,t){if(i.prevent)return!1;if(i.started)return!0;const r=Math.abs(i.x-e),a=Math.abs(i.y-t);return r>=sn||a>=sn}function Mi(i,e,t){if(!e)return;const r=i.moves[i.moves.length-2],a=i.moves[i.moves.length-1],n=a.x-i.x,o=a.y-i.y;let s,l=0;r&&(s=a.x-r.x,l=a.y-r.y),Nr(e,"track",{state:i.state,x:t.clientX,y:t.clientY,dx:n,dy:o,ddx:s,ddy:l,sourceEvent:t,hover(){return Mu(t.clientX,t.clientY)}})}Mr({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(i){Ae(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Ae(i)&&dn(this.info,i)},touchstart(i){const e=i.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(i){dn(this.info,i.changedTouches[0],i)}});function dn(i,e,t){const r=Math.abs(e.clientX-i.x),a=Math.abs(e.clientY-i.y),n=we(t||e);!n||Du[n.localName]&&n.hasAttribute("disabled")||(isNaN(r)||isNaN(a)||r<=on&&a<=on||Ou(e))&&(i.prevent||Nr(n,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1563
1563
  * @license
1564
1564
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1565
1565
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1571,27 +1571,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1571
1571
  * @license
1572
1572
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1573
1573
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1574
- */const Mr=i=>class extends Je(Me(i)){get _activeKeys(){return[" "]}ready(){super.ready(),oe(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),oe(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
1574
+ */const zr=i=>class extends Je(Me(i)){get _activeKeys(){return[" "]}ready(){super.ready(),se(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),se(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
1575
1575
  * @license
1576
1576
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1577
1577
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1578
- */let Nr=!1;window.addEventListener("keydown",()=>{Nr=!0},{capture:!0});window.addEventListener("mousedown",()=>{Nr=!1},{capture:!0});function ar(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function ui(){return Nr}function Ns(i){const e=i.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(i);return t.visibility==="hidden"||t.display==="none"}function zc(i,e){const t=Math.max(i.tabIndex,0),r=Math.max(e.tabIndex,0);return t===0||r===0?r>t:t>r}function Lc(i,e){const t=[];for(;i.length>0&&e.length>0;)zc(i[0],e[0])?t.push(e.shift()):t.push(i.shift());return t.concat(i,e)}function sr(i){const e=i.length;if(e<2)return i;const t=Math.ceil(e/2),r=sr(i.slice(0,t)),n=sr(i.slice(t));return Lc(r,n)}function or(i){return i.offsetParent===null&&i.clientWidth===0&&i.clientHeight===0?!0:Ns(i)}function zr(i){return i.matches('[tabindex="-1"]')?!1:i.matches("input, select, textarea, button, object")?i.matches(":not([disabled])"):i.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Lr(i){return i.getRootNode().activeElement===i}function Fc(i){if(!zr(i))return-1;const e=i.getAttribute("tabindex")||0;return Number(e)}function zs(i,e){if(i.nodeType!==Node.ELEMENT_NODE||Ns(i))return!1;const t=i,r=Fc(t);let n=r>0;r>=0&&e.push(t);let a=[];return t.localName==="slot"?a=t.assignedNodes({flatten:!0}):a=(t.shadowRoot||t).children,[...a].forEach(s=>{n=zs(s,e)||n}),n}function Rc(i){const e=[];return zs(i,e)?sr(e):e}/**
1578
+ */let Lr=!1;window.addEventListener("keydown",()=>{Lr=!0},{capture:!0});window.addEventListener("mousedown",()=>{Lr=!1},{capture:!0});function nr(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function ci(){return Lr}function Lo(i){const e=i.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(i);return t.visibility==="hidden"||t.display==="none"}function Ru(i,e){const t=Math.max(i.tabIndex,0),r=Math.max(e.tabIndex,0);return t===0||r===0?r>t:t>r}function $u(i,e){const t=[];for(;i.length>0&&e.length>0;)Ru(i[0],e[0])?t.push(e.shift()):t.push(i.shift());return t.concat(i,e)}function or(i){const e=i.length;if(e<2)return i;const t=Math.ceil(e/2),r=or(i.slice(0,t)),a=or(i.slice(t));return $u(r,a)}function sr(i){return i.offsetParent===null&&i.clientWidth===0&&i.clientHeight===0?!0:Lo(i)}function Fr(i){return i.matches('[tabindex="-1"]')?!1:i.matches("input, select, textarea, button, object")?i.matches(":not([disabled])"):i.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Rr(i){return i.getRootNode().activeElement===i}function Hu(i){if(!Fr(i))return-1;const e=i.getAttribute("tabindex")||0;return Number(e)}function Fo(i,e){if(i.nodeType!==Node.ELEMENT_NODE||Lo(i))return!1;const t=i,r=Hu(t);let a=r>0;r>=0&&e.push(t);let n=[];return t.localName==="slot"?n=t.assignedNodes({flatten:!0}):n=(t.shadowRoot||t).children,[...n].forEach(o=>{a=Fo(o,e)||a}),a}function Bu(i){const e=[];return Fo(i,e)?or(e):e}/**
1579
1579
  * @license
1580
1580
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1581
1581
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1582
- */const Ne=B(i=>class extends i{get _keyboardActive(){return ui()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
1582
+ */const Ne=B(i=>class extends i{get _keyboardActive(){return ci()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
1583
1583
  * @license
1584
1584
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1585
1585
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1586
- */const Ls=i=>class extends Je(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1586
+ */const Ro=i=>class extends Je(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1587
1587
  * @license
1588
1588
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1589
1589
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1590
- */const ci=B(i=>class extends Ne(Ls(i)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1590
+ */const ui=B(i=>class extends Ne(Ro(i)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1591
1591
  * @license
1592
1592
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1593
1593
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1594
- */const Fr=B(i=>class extends i{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,r)=>{this._delegateAttribute(t,e[r])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,r)=>{this._delegateProperty(t,e[r])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1594
+ */const $r=B(i=>class extends i{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,r)=>{this._delegateAttribute(t,e[r])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,r)=>{this._delegateProperty(t,e[r])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1595
1595
  * @license
1596
1596
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1597
1597
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1599,15 +1599,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1599
1599
  * @license
1600
1600
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1601
1601
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1602
- */const $c=B(i=>class extends Fr(Je(Tt(i))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1602
+ */const Uu=B(i=>class extends $r(Je(Tt(i))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1603
1603
  * @license
1604
1604
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1605
1605
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1606
- */const Ni=new Map;function Rr(i){return Ni.has(i)||Ni.set(i,new WeakMap),Ni.get(i)}function Fs(i,e){i&&i.removeAttribute(e)}function Rs(i,e){if(!i||!e)return;const t=Rr(e);if(t.has(i))return;const r=Sr(i.getAttribute(e));t.set(i,new Set(r))}function Hc(i,e){if(!i)return;const t=Rr(e),r=t.get(i);!r||r.size===0?i.removeAttribute(e):Ss(i,e,di(r)),t.delete(i)}function Ut(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:r,oldId:n,fromUser:a}=t,s=Rr(e),o=s.get(i);if(!a&&o){n&&o.delete(n),r&&o.add(r);return}a&&(o?r||s.delete(i):Rs(i,e),Fs(i,e)),bc(i,e,n);const l=r||di(o);l&&Ss(i,e,l)}function Bc(i,e){Rs(i,e),Fs(i,e)}/**
1606
+ */const Ni=new Map;function Hr(i){return Ni.has(i)||Ni.set(i,new WeakMap),Ni.get(i)}function $o(i,e){i&&i.removeAttribute(e)}function Ho(i,e){if(!i||!e)return;const t=Hr(e);if(t.has(i))return;const r=Sr(i.getAttribute(e));t.set(i,new Set(r))}function qu(i,e){if(!i||!e)return;const t=Hr(e),r=t.get(i);!r||r.size===0?i.removeAttribute(e):Oo(i,e,di(r)),t.delete(i)}function Ut(i,e,t={newId:null,oldId:null,fromUser:!1}){if(!i||!e)return;const{newId:r,oldId:a,fromUser:n}=t,o=Hr(e),s=o.get(i);if(!n&&s){a&&s.delete(a),r&&s.add(r);return}n&&(s?r||o.delete(i):Ho(i,e),$o(i,e)),yu(i,e,a);const l=r||di(s);l&&Oo(i,e,l)}function Wu(i,e){Ho(i,e),$o(i,e)}/**
1607
1607
  * @license
1608
1608
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1609
1609
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1610
- */class Uc{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(Bc(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Hc(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){Ut(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){Ut(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Ut(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1610
+ */class ju{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const r=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,r,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(Wu(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(qu(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,r){Ut(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:r})}__setErrorIdToAriaAttribute(e,t){Ut(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Ut(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1611
1611
  * @license
1612
1612
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1613
1613
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1615,39 +1615,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1615
1615
  * @license
1616
1616
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1617
1617
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1618
- */const ae=document.createElement("div");ae.style.position="fixed";ae.style.clip="rect(0px, 0px, 0px, 0px)";ae.setAttribute("aria-live","polite");document.body.appendChild(ae);let Nt;function qt(i,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(ae.removeAttribute("aria-live"),ae.removeAttribute("role"),Nt=te.debounce(Nt,Ct,()=>{ae.setAttribute("role","alert")})):(Nt&&Nt.cancel(),ae.removeAttribute("role"),ae.setAttribute("aria-live",t)),ae.textContent="",setTimeout(()=>{ae.textContent=i},r)}/**
1618
+ */const ne=document.createElement("div");ne.style.position="fixed";ne.style.clip="rect(0px, 0px, 0px, 0px)";ne.setAttribute("aria-live","polite");document.body.appendChild(ne);let Nt;function qt(i,e={}){const t=e.mode||"polite",r=e.timeout===void 0?150:e.timeout;t==="alert"?(ne.removeAttribute("aria-live"),ne.removeAttribute("role"),Nt=te.debounce(Nt,Ct,()=>{ne.setAttribute("role","alert")})):(Nt&&Nt.cancel(),ne.removeAttribute("role"),ne.setAttribute("aria-live",t)),ne.textContent="",setTimeout(()=>{ne.textContent=i},r)}/**
1619
1619
  * @license
1620
1620
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1621
1621
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1622
- */class $r extends he{constructor(e,t,r,n={}){super(e,t,r,Fa(Gt({},n),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(r=>{const n=r.target,a=n===this.node;r.type==="attributes"?a&&this.__updateNodeId(n):(a||n.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1622
+ */class Br extends he{constructor(e,t,r,a={}){super(e,t,r,$n(Gt({},a),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(r=>{const a=r.target,n=a===this.node;r.type==="attributes"?n&&this.__updateNodeId(a):(n||a.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1623
1623
  * @license
1624
1624
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1625
1625
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1626
- */class qc extends $r{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:r}=this,n=!!(r&&t&&t.trim()!=="");e&&(e.textContent=n?t:"",e.hidden=!n,n&&qt(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1626
+ */class Yu extends Br{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:r}=this,a=!!(r&&t&&t.trim()!=="");e&&(e.textContent=a?t:"",e.hidden=!a,a&&qt(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1627
1627
  * @license
1628
1628
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1629
1629
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1630
- */class Wc extends $r{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1630
+ */class Gu extends Br{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1631
1631
  * @license
1632
1632
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1633
1633
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1634
- */class $s extends $r{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1634
+ */class Bo extends Br{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1635
1635
  * @license
1636
1636
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1637
1637
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1638
- */const jc=B(i=>class extends ke(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new $s(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1638
+ */const Ku=B(i=>class extends ke(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Bo(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1639
1639
  * @license
1640
1640
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1641
1641
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1642
- */const Hr=B(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1642
+ */const Ur=B(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1643
1643
  * @license
1644
1644
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1645
1645
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1646
- */const pi=i=>class extends Hr(jc(ke(i))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Uc(this),this._helperController=new Wc(this),this._errorController=new qc(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.__labelChanged(t,r)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,r)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
1646
+ */const pi=i=>class extends Ur(Ku(ke(i))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new ju(this),this._helperController=new Gu(this),this._errorController=new Yu(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.__labelChanged(t,r)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:r}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,r)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
1647
1647
  * @license
1648
1648
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1649
1649
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1650
- */class Pt extends he{constructor(e,t,r={}){const{uniqueIdPrefix:n}=r;super(e,"input","input",{initializer:(a,s)=>{s.value&&(a.value=s.value),s.type&&a.setAttribute("type",s.type),a.id=this.defaultId,typeof t=="function"&&t(a)},useUniqueId:!0,uniqueIdPrefix:n})}}/**
1650
+ */class Pt extends he{constructor(e,t,r={}){const{uniqueIdPrefix:a}=r;super(e,"input","input",{initializer:(n,o)=>{o.value&&(n.value=o.value),o.type&&n.setAttribute("type",o.type),n.id=this.defaultId,typeof t=="function"&&t(n)},useUniqueId:!0,uniqueIdPrefix:a})}}/**
1651
1651
  * @license
1652
1652
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1653
1653
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1655,11 +1655,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1655
1655
  * @license
1656
1656
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1657
1657
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1658
- */const Yc=i=>class extends pi($c(ci(Mr(i)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Pt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new St(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1658
+ */const Qu=i=>class extends pi(Uu(ui(zr(i)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new Pt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new St(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1659
1659
  * @license
1660
1660
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1661
1661
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1662
- */const Gc=g`
1662
+ */const Xu=v`
1663
1663
  :host {
1664
1664
  display: inline-block;
1665
1665
  }
@@ -1751,7 +1751,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1751
1751
  * @license
1752
1752
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1753
1753
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1754
- */v("vaadin-checkbox",Gc,{moduleId:"vaadin-checkbox-styles"});class Kc extends Yc(ue(z(D))){static get is(){return"vaadin-checkbox"}static get template(){return A`
1754
+ */g("vaadin-checkbox",Xu,{moduleId:"vaadin-checkbox-styles"});class Ju extends Qu(ce(z(D))){static get is(){return"vaadin-checkbox"}static get template(){return A`
1755
1755
  <div class="vaadin-checkbox-container">
1756
1756
  <div part="checkbox" aria-hidden="true"></div>
1757
1757
  <slot name="input"></slot>
@@ -1767,11 +1767,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1767
1767
  </div>
1768
1768
  </div>
1769
1769
  <slot name="tooltip"></slot>
1770
- `}ready(){super.ready(),this._tooltipController=new Ce(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}C(Kc);/**
1770
+ `}ready(){super.ready(),this._tooltipController=new Ce(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}C(Ju);/**
1771
1771
  * @license
1772
1772
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1773
1773
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1774
- */const Hs=g`
1774
+ */const Uo=v`
1775
1775
  :host {
1776
1776
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1777
1777
  }
@@ -1831,7 +1831,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1831
1831
  * @license
1832
1832
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1833
1833
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1834
- */const Br=g`
1834
+ */const qr=v`
1835
1835
  [part='label'] {
1836
1836
  align-self: flex-start;
1837
1837
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1943,7 +1943,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1943
1943
  margin-left: 0;
1944
1944
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1945
1945
  }
1946
- `;v("",Br,{moduleId:"lumo-required-field"});const Qc=g`
1946
+ `;g("",qr,{moduleId:"lumo-required-field"});const Zu=v`
1947
1947
  :host {
1948
1948
  color: var(--lumo-body-text-color);
1949
1949
  font-size: var(--lumo-font-size-m);
@@ -1986,15 +1986,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1986
1986
  color: var(--lumo-secondary-text-color);
1987
1987
  }
1988
1988
  }
1989
- `;v("vaadin-checkbox-group",[Br,Hs,Qc],{moduleId:"lumo-checkbox-group"});/**
1989
+ `;g("vaadin-checkbox-group",[qr,Uo,Zu],{moduleId:"lumo-checkbox-group"});/**
1990
1990
  * @license
1991
1991
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1992
1992
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1993
- */const Xc=i=>class extends pi(Ne(Je(i))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new Ce(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const r=this.__checkboxes.map(n=>n.inputElement);this._tooltipController.setAriaTarget(r)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Ar(e,({addedNodes:t,removedNodes:r})=>{const n=this.__filterCheckboxes(t),a=this.__filterCheckboxes(r);n.forEach(this.__registerCheckbox),a.forEach(this.__unregisterCheckbox);const s=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(s),this.__warnOfCheckboxesWithoutValue(n)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:r}=t;return!t.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(r=>{r.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(r=>{r.checked=e&&e.includes(r.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(r=>{r.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
1993
+ */const ep=i=>class extends pi(Ne(Je(i))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new Ce(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const r=this.__checkboxes.map(a=>a.inputElement);this._tooltipController.setAriaTarget(r)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Ar(e,({addedNodes:t,removedNodes:r})=>{const a=this.__filterCheckboxes(t),n=this.__filterCheckboxes(r);a.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);const o=this.__checkboxes.map(s=>s.inputElement);this._tooltipController.setAriaTarget(o),this.__warnOfCheckboxesWithoutValue(a)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:r}=t;return!t.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(r=>{r.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(r=>{r.checked=e&&e.includes(r.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(r=>{r.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
1994
1994
  * @license
1995
1995
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1996
1996
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1997
- */const Jc=g`
1997
+ */const tp=v`
1998
1998
  :host {
1999
1999
  display: inline-flex;
2000
2000
  }
@@ -2027,7 +2027,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2027
2027
  * @license
2028
2028
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
2029
2029
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2030
- */v("vaadin-checkbox-group",Jc,{moduleId:"vaadin-checkbox-group-styles"});class Zc extends Xc(ue(z(D))){static get is(){return"vaadin-checkbox-group"}static get template(){return A`
2030
+ */g("vaadin-checkbox-group",tp,{moduleId:"vaadin-checkbox-group-styles"});class ip extends ep(ce(z(D))){static get is(){return"vaadin-checkbox-group"}static get template(){return A`
2031
2031
  <div class="vaadin-group-field-container">
2032
2032
  <div part="label">
2033
2033
  <slot name="label"></slot>
@@ -2048,11 +2048,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2048
2048
  </div>
2049
2049
 
2050
2050
  <slot name="tooltip"></slot>
2051
- `}}C(Zc);/**
2051
+ `}}C(ip);/**
2052
2052
  * @license
2053
2053
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2054
2054
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2055
- */const mi=g`
2055
+ */const mi=v`
2056
2056
  :host {
2057
2057
  top: var(--lumo-space-m);
2058
2058
  right: var(--lumo-space-m);
@@ -2117,11 +2117,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2117
2117
  opacity: 1;
2118
2118
  }
2119
2119
  }
2120
- `;v("",mi,{moduleId:"lumo-overlay"});/**
2120
+ `;g("",mi,{moduleId:"lumo-overlay"});/**
2121
2121
  * @license
2122
2122
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2123
2123
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2124
- */const fi=g`
2124
+ */const fi=v`
2125
2125
  :host([opening]),
2126
2126
  :host([closing]) {
2127
2127
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -2151,7 +2151,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2151
2151
  opacity: 0;
2152
2152
  }
2153
2153
  }
2154
- `;v("",fi,{moduleId:"lumo-menu-overlay-core"});const ep=g`
2154
+ `;g("",fi,{moduleId:"lumo-menu-overlay-core"});const rp=v`
2155
2155
  /* Small viewport (bottom sheet) styles */
2156
2156
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
2157
2157
  @media (max-width: 450px), (max-height: 450px) {
@@ -2213,7 +2213,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2213
2213
  transform: translateY(150%);
2214
2214
  }
2215
2215
  }
2216
- `,Ur=[mi,fi,ep];v("",Ur,{moduleId:"lumo-menu-overlay"});const tp=g`
2216
+ `,Wr=[mi,fi,rp];g("",Wr,{moduleId:"lumo-menu-overlay"});const ap=v`
2217
2217
  [part='overlay'] {
2218
2218
  /*
2219
2219
  Width:
@@ -2258,7 +2258,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2258
2258
  max-height: 70vh;
2259
2259
  }
2260
2260
  }
2261
- `;v("vaadin-date-picker-overlay",[Ur,tp],{moduleId:"lumo-date-picker-overlay"});const Bs=g`
2261
+ `;g("vaadin-date-picker-overlay",[Wr,ap],{moduleId:"lumo-date-picker-overlay"});const qo=v`
2262
2262
  :host {
2263
2263
  /* Sizing */
2264
2264
  --lumo-button-size: var(--lumo-size-m);
@@ -2534,7 +2534,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2534
2534
  margin-left: 0;
2535
2535
  margin-right: 0;
2536
2536
  }
2537
- `;v("vaadin-button",Bs,{moduleId:"lumo-button"});v("vaadin-date-picker-year",g`
2537
+ `;g("vaadin-button",qo,{moduleId:"lumo-button"});g("vaadin-date-picker-year",v`
2538
2538
  :host([current]) [part='year-number'] {
2539
2539
  color: var(--lumo-primary-text-color);
2540
2540
  }
@@ -2558,7 +2558,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2558
2558
  color: var(--lumo-disabled-text-color);
2559
2559
  content: '\\2022';
2560
2560
  }
2561
- `,{moduleId:"lumo-date-picker-year"});v("vaadin-date-picker-overlay-content",g`
2561
+ `,{moduleId:"lumo-date-picker-year"});g("vaadin-date-picker-overlay-content",v`
2562
2562
  :host {
2563
2563
  position: relative;
2564
2564
  /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
@@ -2708,7 +2708,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2708
2708
  padding-left: 50px;
2709
2709
  }
2710
2710
  }
2711
- `,{moduleId:"lumo-date-picker-overlay-content"});v("vaadin-month-calendar",g`
2711
+ `,{moduleId:"lumo-date-picker-overlay-content"});g("vaadin-month-calendar",v`
2712
2712
  :host {
2713
2713
  -moz-user-select: none;
2714
2714
  -webkit-user-select: none;
@@ -2855,7 +2855,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2855
2855
  :host([disabled]) * {
2856
2856
  color: var(--lumo-disabled-text-color) !important;
2857
2857
  }
2858
- `,{moduleId:"lumo-month-calendar"});v("vaadin-input-container",g`
2858
+ `,{moduleId:"lumo-month-calendar"});g("vaadin-input-container",v`
2859
2859
  :host {
2860
2860
  background: var(--_background);
2861
2861
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -3037,7 +3037,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3037
3037
  * @license
3038
3038
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3039
3039
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3040
- */const qr=g`
3040
+ */const jr=v`
3041
3041
  [part$='button'] {
3042
3042
  flex: none;
3043
3043
  width: 1em;
@@ -3064,11 +3064,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3064
3064
  font-family: 'lumo-icons';
3065
3065
  display: block;
3066
3066
  }
3067
- `;v("",qr,{moduleId:"lumo-field-button"});/**
3067
+ `;g("",jr,{moduleId:"lumo-field-button"});/**
3068
3068
  * @license
3069
3069
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3070
3070
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3071
- */const ip=g`
3071
+ */const np=v`
3072
3072
  :host {
3073
3073
  --lumo-text-field-size: var(--lumo-size-m);
3074
3074
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -3199,7 +3199,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3199
3199
  [part='clear-button']::before {
3200
3200
  content: var(--lumo-icons-cross);
3201
3201
  }
3202
- `,ze=[Br,qr,Hs,ip];v("",ze,{moduleId:"lumo-input-field-shared-styles"});const rp=g`
3202
+ `,ze=[qr,jr,Uo,np];g("",ze,{moduleId:"lumo-input-field-shared-styles"});const op=v`
3203
3203
  [part='toggle-button']::before {
3204
3204
  content: var(--lumo-icons-calendar);
3205
3205
  }
@@ -3221,15 +3221,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3221
3221
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
3222
3222
  --_lumo-text-field-overflow-mask-image: none;
3223
3223
  }
3224
- `;v("vaadin-date-picker",[ze,rp],{moduleId:"lumo-date-picker"});/**
3224
+ `;g("vaadin-date-picker",[ze,op],{moduleId:"lumo-date-picker"});/**
3225
3225
  * @license
3226
3226
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3227
3227
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3228
- */const np=i=>class extends i{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}};/**
3228
+ */const sp=i=>class extends i{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}};/**
3229
3229
  * @license
3230
3230
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3231
3231
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3232
- */const ap=g`
3232
+ */const lp=v`
3233
3233
  :host {
3234
3234
  display: flex;
3235
3235
  align-items: center;
@@ -3298,15 +3298,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3298
3298
  * @license
3299
3299
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3300
3300
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3301
- */v("vaadin-input-container",ap,{moduleId:"vaadin-input-container-styles"});class Us extends np(z(re(D))){static get is(){return"vaadin-input-container"}static get template(){return A`
3301
+ */g("vaadin-input-container",lp,{moduleId:"vaadin-input-container-styles"});class Wo extends sp(z(re(D))){static get is(){return"vaadin-input-container"}static get template(){return A`
3302
3302
  <slot name="prefix"></slot>
3303
3303
  <slot></slot>
3304
3304
  <slot name="suffix"></slot>
3305
- `}}C(Us);/**
3305
+ `}}C(Wo);/**
3306
3306
  * @license
3307
3307
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3308
3308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3309
- */const _i=g`
3309
+ */const _i=v`
3310
3310
  :host {
3311
3311
  z-index: 200;
3312
3312
  position: fixed;
@@ -3373,55 +3373,55 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3373
3373
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3374
3374
  Code distributed by Google as part of the polymer project is also
3375
3375
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3376
- */let lr=!1,sp=[],qs=[];function op(){lr=!0,requestAnimationFrame(function(){lr=!1,lp(sp),setTimeout(function(){dp(qs)})})}function lp(i){for(;i.length;)Ws(i.shift())}function dp(i){for(let e=0,t=i.length;e<t;e++)Ws(i.shift())}function Ws(i){const e=i[0],t=i[1],r=i[2];try{t.apply(e,r)}catch(n){setTimeout(()=>{throw n})}}function js(i,e,t){lr||op(),qs.push([i,e,t])}/**
3376
+ */let lr=!1,dp=[],jo=[];function hp(){lr=!0,requestAnimationFrame(function(){lr=!1,cp(dp),setTimeout(function(){up(jo)})})}function cp(i){for(;i.length;)Yo(i.shift())}function up(i){for(let e=0,t=i.length;e<t;e++)Yo(i.shift())}function Yo(i){const e=i[0],t=i[1],r=i[2];try{t.apply(e,r)}catch(a){setTimeout(()=>{throw a})}}function Go(i,e,t){lr||hp(),jo.push([i,e,t])}/**
3377
3377
  * @license
3378
3378
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3379
3379
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3380
- */const gi=i=>i.test(navigator.userAgent),dr=i=>i.test(navigator.platform),hp=i=>i.test(navigator.vendor);gi(/Android/u);gi(/Chrome/u)&&hp(/Google Inc/u);gi(/Firefox/u);const up=dr(/^iPad/u)||dr(/^Mac/u)&&navigator.maxTouchPoints>1,cp=dr(/^iPhone/u),Wr=cp||up,pp=gi(/^((?!chrome|android).)*safari/iu),hr=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
3380
+ */const vi=i=>i.test(navigator.userAgent),dr=i=>i.test(navigator.platform),pp=i=>i.test(navigator.vendor);vi(/Android/u);vi(/Chrome/u)&&pp(/Google Inc/u);vi(/Firefox/u);const mp=dr(/^iPad/u)||dr(/^Mac/u)&&navigator.maxTouchPoints>1,fp=dr(/^iPhone/u),Yr=fp||mp,_p=vi(/^((?!chrome|android).)*safari/iu),hr=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
3381
3381
  * @license
3382
3382
  * Copyright (c) 2017 Anton Korzunov
3383
3383
  * SPDX-License-Identifier: MIT
3384
- */let Fe=new WeakMap,zt=new WeakMap,Lt={},zi=0;const la=i=>i&&i.nodeType===Node.ELEMENT_NODE,Li=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},mp=(i,e)=>la(i)?e.map(t=>{if(!la(t))return Li(t,"is not a valid element"),null;let r=t;for(;r&&r!==i;){if(i.contains(r))return t;r=r.getRootNode().host}return Li(t,"is not contained inside",i),null}).filter(t=>!!t):(Li(i,"is not a valid element"),[]),fp=(i,e,t,r)=>{const n=mp(e,Array.isArray(i)?i:[i]);Lt[t]||(Lt[t]=new WeakMap);const a=Lt[t],s=[],o=new Set,l=new Set(n),d=c=>{if(!c||o.has(c))return;o.add(c);const p=c.assignedSlot;p&&d(p),d(c.parentNode||c.host)};n.forEach(d);const h=c=>{if(!c||l.has(c))return;const p=c.shadowRoot;(p?[...c.children,...p.children]:[...c.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(o.has(m))h(m);else{const b=m.getAttribute(r),M=b!==null&&b!=="false",S=(Fe.get(m)||0)+1,O=(a.get(m)||0)+1;Fe.set(m,S),a.set(m,O),s.push(m),S===1&&M&&zt.set(m,!0),O===1&&m.setAttribute(t,"true"),M||m.setAttribute(r,"true")}})};return h(e),o.clear(),zi+=1,()=>{s.forEach(c=>{const p=Fe.get(c)-1,m=a.get(c)-1;Fe.set(c,p),a.set(c,m),p||(zt.has(c)?zt.delete(c):c.removeAttribute(r)),m||c.removeAttribute(t)}),zi-=1,zi||(Fe=new WeakMap,Fe=new WeakMap,zt=new WeakMap,Lt={})}},Ys=(i,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(i)?i:[i]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),fp(r,e,t,"aria-hidden")};/**
3384
+ */let Fe=new WeakMap,zt=new WeakMap,Lt={},zi=0;const hn=i=>i&&i.nodeType===Node.ELEMENT_NODE,Li=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},vp=(i,e)=>hn(i)?e.map(t=>{if(!hn(t))return Li(t,"is not a valid element"),null;let r=t;for(;r&&r!==i;){if(i.contains(r))return t;r=r.getRootNode().host}return Li(t,"is not contained inside",i),null}).filter(t=>!!t):(Li(i,"is not a valid element"),[]),gp=(i,e,t,r)=>{const a=vp(e,Array.isArray(i)?i:[i]);Lt[t]||(Lt[t]=new WeakMap);const n=Lt[t],o=[],s=new Set,l=new Set(a),d=u=>{if(!u||s.has(u))return;s.add(u);const p=u.assignedSlot;p&&d(p),d(u.parentNode||u.host)};a.forEach(d);const h=u=>{if(!u||l.has(u))return;const p=u.shadowRoot;(p?[...u.children,...p.children]:[...u.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(s.has(m))h(m);else{const b=m.getAttribute(r),M=b!==null&&b!=="false",S=(Fe.get(m)||0)+1,O=(n.get(m)||0)+1;Fe.set(m,S),n.set(m,O),o.push(m),S===1&&M&&zt.set(m,!0),O===1&&m.setAttribute(t,"true"),M||m.setAttribute(r,"true")}})};return h(e),s.clear(),zi+=1,()=>{o.forEach(u=>{const p=Fe.get(u)-1,m=n.get(u)-1;Fe.set(u,p),n.set(u,m),p||(zt.has(u)?zt.delete(u):u.removeAttribute(r)),m||u.removeAttribute(t)}),zi-=1,zi||(Fe=new WeakMap,Fe=new WeakMap,zt=new WeakMap,Lt={})}},Ko=(i,e=document.body,t="data-aria-hidden")=>{const r=Array.from(Array.isArray(i)?i:[i]);return e&&r.push(...Array.from(e.querySelectorAll("[aria-live]"))),gp(r,e,t,"aria-hidden")};/**
3385
3385
  * @license
3386
3386
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3387
3387
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3388
- */class _p{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Ys(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3388
+ */class bp{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=Ko(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3389
3389
  * @license
3390
3390
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3391
3391
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3392
- */class gp{saveFocus(e){this.focusNode=e||ar()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;ar()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
3392
+ */class yp{saveFocus(e){this.focusNode=e||nr()}restoreFocus(e){const t=this.focusNode;if(!t)return;const r=e?e.preventScroll:!1;nr()===document.body?setTimeout(()=>t.focus({preventScroll:r})):t.focus({preventScroll:r}),this.focusNode=null}}/**
3393
3393
  * @license
3394
3394
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3395
3395
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3396
- */const Fi=[];class vp{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Rc(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Lr).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Fi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Fi.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Fi).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,n=this.__focusedElementIndex,a=(t.length+n+r)%t.length,s=t[a];s.focus(),s.localName==="input"&&s.select()}}/**
3396
+ */const Fi=[];class wp{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Bu(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Rr).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Fi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Fi.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Fi).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,r=e?-1:1,a=this.__focusedElementIndex,n=(t.length+a+r)%t.length,o=t[n];o.focus(),o.localName==="input"&&o.select()}}/**
3397
3397
  * @license
3398
3398
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3399
3399
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3400
- */const bp=i=>class extends ke(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new _p(this),this.__focusTrapController=new vp(this),this.__focusRestorationController=new gp}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 e=!ui();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=ar();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const r=e.ownerDocument;for(;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3400
+ */const xp=i=>class extends ke(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new bp(this),this.__focusTrapController=new wp(this),this.__focusRestorationController=new yp}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 e=!ci();this.__focusRestorationController.restoreFocus({preventScroll:e})}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const e=nr();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const r=e.ownerDocument;for(;t&&t!==r&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3401
3401
  * @license
3402
3402
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3403
3403
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3404
- */const Gs=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),ur=()=>Gs().filter(i=>i.$.overlay),yp=i=>i===ur().pop(),Ks=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return yp(this)}bringToFront(){let e="";const t=Gs().filter(r=>r!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),ur().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=ur();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3404
+ */const Qo=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,e)=>i.__zIndex-e.__zIndex||0),cr=()=>Qo().filter(i=>i.$.overlay),Cp=i=>i===cr().pop(),Xo=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Cp(this)}bringToFront(){let e="";const t=Qo().filter(r=>r!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),cr().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none")})}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=cr();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3405
3405
  * @license
3406
3406
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3407
3407
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3408
- */const vi=i=>class extends bp(Ks(i)){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),Wr&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&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(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","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(e,t,r,n){const a=this._oldOwner!==t||this._oldModel!==r;this._oldModel=r,this._oldOwner=t;const s=this._oldRenderer!==e,o=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==n;this._oldOpened=n,s&&o&&(this.innerHTML="",delete this._$litPart$),n&&e&&(s||l||a)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),js(this,()=>{this._trapFocus();const r=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(r)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const r=`__${e}Handler`,n=a=>{a&&a.target!==this||(t(),this.removeEventListener("animationend",n),delete this[r])};this[r]=n,this.addEventListener("animationend",n)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_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(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
3408
+ */const gi=i=>class extends xp(Xo(i)){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),Yr&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&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(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","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(e,t,r,a){const n=this._oldOwner!==t||this._oldModel!==r;this._oldModel=r,this._oldOwner=t;const o=this._oldRenderer!==e,s=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==a;this._oldOpened=a,o&&s&&(this.innerHTML="",delete this._$litPart$),a&&e&&(o||l||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),Go(this,()=>{this._trapFocus();const r=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(r)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const r=`__${e}Handler`,a=n=>{n&&n.target!==this||(t(),this.removeEventListener("animationend",a),delete this[r])};this[r]=a,this.addEventListener("animationend",a)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_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(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
3409
3409
  * @license
3410
3410
  * Copyright (c) 2024 Vaadin Ltd.
3411
3411
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3412
- */function wp(i,e){let t=null;const r=document.documentElement;function n(){t&&t.disconnect(),t=null}function a(s=!1,o=1){n();const{left:l,top:d,width:h,height:c}=i.getBoundingClientRect();if(s||e(),!h||!c)return;const p=Math.floor(d),m=Math.floor(r.clientWidth-(l+h)),b=Math.floor(r.clientHeight-(d+c)),M=Math.floor(l),S={rootMargin:`${-p}px ${-m}px ${-b}px ${-M}px`,threshold:Math.max(0,Math.min(1,o))||1};let O=!0;function I(q){let W=q[0].intersectionRatio;if(W!==o){if(!O)return a();W===0&&(W=1e-7),a(!1,W)}O=!1}t=new IntersectionObserver(I,S),t.observe(i)}return a(!0),n}/**
3412
+ */function kp(i,e){let t=null;const r=document.documentElement;function a(){t&&t.disconnect(),t=null}function n(o=!1,s=1){a();const{left:l,top:d,width:h,height:u}=i.getBoundingClientRect();if(o||e(),!h||!u)return;const p=Math.floor(d),m=Math.floor(r.clientWidth-(l+h)),b=Math.floor(r.clientHeight-(d+u)),M=Math.floor(l),S={rootMargin:`${-p}px ${-m}px ${-b}px ${-M}px`,threshold:Math.max(0,Math.min(1,s))||1};let O=!0;function I(q){let W=q[0].intersectionRatio;if(W!==s){if(!O)return n();W===0&&(W=1e-7),n(!1,W)}O=!1}t=new IntersectionObserver(I,S),t.observe(i)}return n(!0),a}/**
3413
3413
  * @license
3414
3414
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3415
3415
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3416
- */const Ri={start:"top",end:"bottom"},$i={start:"left",end:"right"},da=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),jr=i=>class extends i{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=vc(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=wp(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,da.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,da.observe(t))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(n=>{this.__margins[n]=parseInt(r[n],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const r=this.__isRTL,n=this.__shouldAlignStartHorizontally(e,r),a=!r&&n||r&&!n;this.style.alignItems=a?"flex-start":"flex-end";const s=this.getBoundingClientRect(),o=this.__calculatePositionInOneDimension(e,s,this.noVerticalOverlap,Ri,this,t),l=this.__calculatePositionInOneDimension(e,s,this.noHorizontalOverlap,$i,this,n);Object.assign(this.style,o,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!a),this.toggleAttribute("start-aligned",a)}__shouldAlignStartHorizontally(e,t){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const n=Math.min(window.innerWidth,document.documentElement.clientWidth),a=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,r,n,this.__margins,a,this.noHorizontalOverlap,$i)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),n=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,r,this.__margins,n,this.noVerticalOverlap,Ri)}__shouldAlignStart(e,t,r,n,a,s,o){const l=r-e[s?o.end:o.start]-n[o.end],d=e[s?o.start:o.end]-n[o.start],h=a?l:d,c=h>(a?d:l)||h>t;return a===c}__adjustBottomProperty(e,t,r){let n;if(e===t.end){if(t.end===Ri.end){const a=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>a&&this.__oldViewportHeight){const s=this.__oldViewportHeight-a;n=r-s}this.__oldViewportHeight=a}if(t.end===$i.end){const a=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>a&&this.__oldViewportWidth){const s=this.__oldViewportWidth-a;n=r-s}this.__oldViewportWidth=a}}return n}__calculatePositionInOneDimension(e,t,r,n,a,s){const o=s?n.start:n.end,l=s?n.end:n.start,d=parseFloat(a.style[o]||getComputedStyle(a)[o]),h=this.__adjustBottomProperty(o,n,d),c=t[s?n.start:n.end]-e[r===s?n.end:n.start],p=h?`${h}px`:`${d+c*(s?-1:1)}px`;return{[o]:p,[l]:""}}};/**
3416
+ */const Ri={start:"top",end:"bottom"},$i={start:"left",end:"right"},cn=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),Gr=i=>class extends i{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=bu(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=kp(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,cn.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,cn.observe(t))),e){const r=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(a=>{this.__margins[a]=parseInt(r[a],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const r=this.__isRTL,a=this.__shouldAlignStartHorizontally(e,r),n=!r&&a||r&&!a;this.style.alignItems=n?"flex-start":"flex-end";const o=this.getBoundingClientRect(),s=this.__calculatePositionInOneDimension(e,o,this.noVerticalOverlap,Ri,this,t),l=this.__calculatePositionInOneDimension(e,o,this.noHorizontalOverlap,$i,this,a);Object.assign(this.style,s,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,t){const r=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const a=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,r,a,this.__margins,n,this.noHorizontalOverlap,$i)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const r=Math.min(window.innerHeight,document.documentElement.clientHeight),a=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,r,this.__margins,a,this.noVerticalOverlap,Ri)}__shouldAlignStart(e,t,r,a,n,o,s){const l=r-e[o?s.end:s.start]-a[s.end],d=e[o?s.start:s.end]-a[s.start],h=n?l:d,u=h>(n?d:l)||h>t;return n===u}__adjustBottomProperty(e,t,r){let a;if(e===t.end){if(t.end===Ri.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(r>n&&this.__oldViewportHeight){const o=this.__oldViewportHeight-n;a=r-o}this.__oldViewportHeight=n}if(t.end===$i.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(r>n&&this.__oldViewportWidth){const o=this.__oldViewportWidth-n;a=r-o}this.__oldViewportWidth=n}}return a}__calculatePositionInOneDimension(e,t,r,a,n,o){const s=o?a.start:a.end,l=o?a.end:a.start,d=parseFloat(n.style[s]||getComputedStyle(n)[s]),h=this.__adjustBottomProperty(s,a,d),u=t[o?a.start:a.end]-e[r===o?a.end:a.start],p=h?`${h}px`:`${d+u*(o?-1:1)}px`;return{[s]:p,[l]:""}}};/**
3417
3417
  * @license
3418
3418
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
3419
3419
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3420
- */const xp=i=>class extends jr(vi(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!zr(e.composedPath()[0])&&e.preventDefault()}};/**
3420
+ */const Ep=i=>class extends Gr(gi(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Fr(e.composedPath()[0])&&e.preventDefault()}};/**
3421
3421
  * @license
3422
3422
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3423
3423
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3424
- */const Cp=g`
3424
+ */const Ip=v`
3425
3425
  [part='overlay'] {
3426
3426
  display: flex;
3427
3427
  flex: auto;
@@ -3440,18 +3440,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3440
3440
  * @license
3441
3441
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3442
3442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3443
- */v("vaadin-date-picker-overlay",[_i,Cp],{moduleId:"vaadin-date-picker-overlay-styles"});class kp extends xp(re(z(D))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return A`
3443
+ */g("vaadin-date-picker-overlay",[_i,Ip],{moduleId:"vaadin-date-picker-overlay-styles"});class Tp extends Ep(re(z(D))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return A`
3444
3444
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3445
3445
  <div part="overlay" id="overlay">
3446
3446
  <div part="content" id="content">
3447
3447
  <slot></slot>
3448
3448
  </div>
3449
3449
  </div>
3450
- `}}C(kp);/**
3450
+ `}}C(Tp);/**
3451
3451
  * @license
3452
3452
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3453
3453
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3454
- */const Qs=g`
3454
+ */const Jo=v`
3455
3455
  :host {
3456
3456
  display: inline-block;
3457
3457
  position: relative;
@@ -3511,7 +3511,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3511
3511
  outline-color: GrayText;
3512
3512
  }
3513
3513
  }
3514
- `,Ep=i=>i`
3514
+ `,Pp=i=>i`
3515
3515
  <div class="vaadin-button-container">
3516
3516
  <span part="prefix" aria-hidden="true">
3517
3517
  <slot name="prefix"></slot>
@@ -3528,15 +3528,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3528
3528
  * @license
3529
3529
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3530
3530
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3531
- */const Yr=i=>class extends Mr(Ls(Ne(i))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
3531
+ */const Kr=i=>class extends zr(Ro(Ne(i))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
3532
3532
  * @license
3533
3533
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3534
3534
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3535
- */v("vaadin-button",Qs,{moduleId:"vaadin-button-styles"});class Ip extends Yr(ue(z(ke(D)))){static get is(){return"vaadin-button"}static get template(){return Ep(A)}ready(){super.ready(),this._tooltipController=new Ce(this),this.addController(this._tooltipController)}}C(Ip);/**
3535
+ */g("vaadin-button",Jo,{moduleId:"vaadin-button-styles"});class Sp extends Kr(ce(z(ke(D)))){static get is(){return"vaadin-button"}static get template(){return Pp(A)}ready(){super.ready(),this._tooltipController=new Ce(this),this.addController(this._tooltipController)}}C(Sp);/**
3536
3536
  * @license
3537
3537
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3538
3538
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3539
- */function Tp(i){let e=i.getDay();e===0&&(e=7);const t=4-e,r=new Date(i.getTime()+t*24*3600*1e3),n=new Date(0,0);n.setFullYear(r.getFullYear());const a=r.getTime()-n.getTime(),s=Math.round(a/(24*3600*1e3));return Math.floor(s/7+1)}function cr(i){const e=new Date(i);return e.setHours(0,0,0,0),e}function fe(i,e,t=cr){return i instanceof Date&&e instanceof Date&&t(i).getTime()===t(e).getTime()}function Gr(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function Ke(i,e,t,r){let n=!1;if(typeof r=="function"&&i){const a=Gr(i);n=r(a)}return(!e||i>=e)&&(!t||i<=t)&&!n}function Xs(i,e){return e.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const n=Math.abs(i.getTime()-r.getTime()),a=Math.abs(t.getTime()-i.getTime());return n<a?r:t})}function Js(i){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(i)+e.getMonth()),t}function Pp(i,e,t=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let n=e+Math.floor(i.getFullYear()/100)*100;return i<new Date(n-50,t,r)?n-=100:i>new Date(n+50,t,r)&&(n+=100),n}function dt(i){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(i);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function Sp(i){const e=(l,d="00")=>(d+l).substr((d+l).length-d.length);let t="",r="0000",n=i.year;n<0?(n=-n,t="-",r="000000"):i.year>=1e4&&(t="+",r="000000");const a=t+e(n,r),s=e(i.month+1),o=e(i.day);return[a,s,o].join("-")}function Ap(i){return i instanceof Date?Sp({year:i.getFullYear(),month:i.getMonth(),day:i.getDate()}):""}/**
3539
+ */function Ap(i){let e=i.getDay();e===0&&(e=7);const t=4-e,r=new Date(i.getTime()+t*24*3600*1e3),a=new Date(0,0);a.setFullYear(r.getFullYear());const n=r.getTime()-a.getTime(),o=Math.round(n/(24*3600*1e3));return Math.floor(o/7+1)}function ur(i){const e=new Date(i);return e.setHours(0,0,0,0),e}function fe(i,e,t=ur){return i instanceof Date&&e instanceof Date&&t(i).getTime()===t(e).getTime()}function Qr(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function Ke(i,e,t,r){let a=!1;if(typeof r=="function"&&i){const n=Qr(i);a=r(n)}return(!e||i>=e)&&(!t||i<=t)&&!a}function Zo(i,e){return e.filter(t=>t!==void 0).reduce((t,r)=>{if(!r)return t;if(!t)return r;const a=Math.abs(i.getTime()-r.getTime()),n=Math.abs(t.getTime()-i.getTime());return a<n?r:t})}function es(i){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(i)+e.getMonth()),t}function Dp(i,e,t=0,r=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let a=e+Math.floor(i.getFullYear()/100)*100;return i<new Date(a-50,t,r)?a-=100:i>new Date(a+50,t,r)&&(a+=100),a}function dt(i){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(i);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function Op(i){const e=(l,d="00")=>(d+l).substr((d+l).length-d.length);let t="",r="0000",a=i.year;a<0?(a=-a,t="-",r="000000"):i.year>=1e4&&(t="+",r="000000");const n=t+e(a,r),o=e(i.month+1),s=e(i.day);return[n,o,s].join("-")}function Vp(i){return i instanceof Date?Op({year:i.getFullYear(),month:i.getMonth(),day:i.getDate()}):""}/**
3540
3540
  @license
3541
3541
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3542
3542
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3544,7 +3544,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3544
3544
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3545
3545
  Code distributed by Google as part of the polymer project is also
3546
3546
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3547
- */class ni{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Et.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Et.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,r){return e instanceof ni?e._cancelAsync():e=new ni,e.setConfig(t,r),e}}let Et=new Set;const Dp=function(i){Et.add(i)},Op=function(){const i=!!Et.size;return Et.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i};/**
3547
+ */class ai{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Et.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Et.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,r){return e instanceof ai?e._cancelAsync():e=new ai,e.setConfig(t,r),e}}let Et=new Set;const Mp=function(i){Et.add(i)},Np=function(){const i=!!Et.size;return Et.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),i};/**
3548
3548
  @license
3549
3549
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3550
3550
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3552,11 +3552,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3552
3552
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3553
3553
  Code distributed by Google as part of the polymer project is also
3554
3554
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3555
- */const Kr=function(){let i,e;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Op();while(i||e)};/**
3555
+ */const Xr=function(){let i,e;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=Np();while(i||e)};/**
3556
3556
  * @license
3557
3557
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3558
3558
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3559
- */const Zs=document.createElement("template");Zs.innerHTML=`
3559
+ */const ts=document.createElement("template");ts.innerHTML=`
3560
3560
  <style>
3561
3561
  :host {
3562
3562
  display: block;
@@ -3606,11 +3606,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3606
3606
  <div class="buffer"></div>
3607
3607
  <div id="fullHeight"></div>
3608
3608
  </div>
3609
- `;class eo extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(Zs.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}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(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%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(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Kr()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,r=e>this._buffers[1].translateY+t,n=e<this._buffers[0].translateY+t;(r||n)&&(this._translateBuffer(n),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=te.debounce(this._debouncerScrollFinish,ye.after(200),()=>{const a=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],a)&&!this._isVisible(this._buffers[1],a)&&(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(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=te.debounce(this._debouncerUpdateClones,ye.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let r=0;r<this.bufferSize;r++){const n=document.createElement("div");n.style.height=`${this.itemHeight}px`,n.instance={};const a=`vaadin-infinite-scroller-item-content-${hi()}`,s=document.createElement("slot");s.setAttribute("name",a),s._itemWrapper=n,t.appendChild(s),n.setAttribute("slot",a),this.appendChild(n),this._isVisible(n,e)&&this._ensureStampedInstance(n)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(r=>{e.instance[r]=t[r]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,n)=>{if(!r.updated){const a=this._firstIndex+this.bufferSize*n;[...r.children].forEach((s,o)=>{const l=s._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,a+o)}),r.updated=!0}})}_isVisible(e,t){const r=e.getBoundingClientRect();return r.bottom>t.top&&r.top<t.bottom}}/**
3609
+ `;class is extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(ts.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const r=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),this._itemHeightVal=parseFloat(r)}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(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%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(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Xr()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,r=e>this._buffers[1].translateY+t,a=e<this._buffers[0].translateY+t;(r||a)&&(this._translateBuffer(a),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=te.debounce(this._debouncerScrollFinish,ye.after(200),()=>{const n=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],n)&&!this._isVisible(this._buffers[1],n)&&(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(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=te.debounce(this._debouncerUpdateClones,ye.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let r=0;r<this.bufferSize;r++){const a=document.createElement("div");a.style.height=`${this.itemHeight}px`,a.instance={};const n=`vaadin-infinite-scroller-item-content-${hi()}`,o=document.createElement("slot");o.setAttribute("name",n),o._itemWrapper=a,t.appendChild(o),a.setAttribute("slot",n),this.appendChild(a),this._isVisible(a,e)&&this._ensureStampedInstance(a)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(r=>{e.instance[r]=t[r]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((r,a)=>{if(!r.updated){const n=this._firstIndex+this.bufferSize*a;[...r.children].forEach((o,s)=>{const l=o._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,n+s)}),r.updated=!0}})}_isVisible(e,t){const r=e.getBoundingClientRect();return r.bottom>t.top&&r.top<t.bottom}}/**
3610
3610
  * @license
3611
3611
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3612
3612
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3613
- */const to=document.createElement("template");to.innerHTML=`
3613
+ */const rs=document.createElement("template");rs.innerHTML=`
3614
3614
  <style>
3615
3615
  :host {
3616
3616
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3622,11 +3622,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3622
3622
  height: 100%;
3623
3623
  }
3624
3624
  </style>
3625
- `;class Vp extends eo{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(to.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=Js(t)}}C(Vp);/**
3625
+ `;class zp extends is{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(rs.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=es(t)}}C(zp);/**
3626
3626
  * @license
3627
3627
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3628
3628
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3629
- */const io=document.createElement("template");io.innerHTML=`
3629
+ */const as=document.createElement("template");as.innerHTML=`
3630
3630
  <style>
3631
3631
  :host {
3632
3632
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3660,15 +3660,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3660
3660
  border-left-color: #000;
3661
3661
  }
3662
3662
  </style>
3663
- `;class Mp extends eo{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(io.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}C(Mp);/**
3663
+ `;class Lp extends is{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(as.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,r=new Date(t);return r.setFullYear(parseInt(e)+t.getFullYear()),r.getFullYear()}}C(Lp);/**
3664
3664
  * @license
3665
3665
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3666
3666
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3667
- */const Np=i=>class extends i{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3667
+ */const Fp=i=>class extends i{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3668
3668
  * @license
3669
3669
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3670
3670
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3671
- */class zp extends z(Np(D)){static get is(){return"vaadin-date-picker-year"}static get template(){return A`
3671
+ */class Rp extends z(Fp(D)){static get is(){return"vaadin-date-picker-year"}static get template(){return A`
3672
3672
  <style>
3673
3673
  :host {
3674
3674
  display: block;
@@ -3677,7 +3677,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3677
3677
  </style>
3678
3678
  <div part="year-number">[[year]]</div>
3679
3679
  <div part="year-separator" aria-hidden="true"></div>
3680
- `}}C(zp);/**
3680
+ `}}C(Rp);/**
3681
3681
  @license
3682
3682
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3683
3683
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3685,7 +3685,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3685
3685
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3686
3686
  Code distributed by Google as part of the polymer project is also
3687
3687
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3688
- */function Qr(i,e,t,r,n){let a;n&&(a=typeof t=="object"&&t!==null,a&&(r=i.__dataTemp[e]));let s=r!==t&&(r===r||t===t);return a&&s&&(i.__dataTemp[e]=t),s}const Xr=B(i=>{class e extends i{_shouldPropertyChange(r,n,a){return Qr(this,r,n,a,!0)}}return e}),Lp=B(i=>{class e extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,n,a){return Qr(this,r,n,a,this.mutableData)}}return e});Xr._mutablePropertyChange=Qr;/**
3688
+ */function Jr(i,e,t,r,a){let n;a&&(n=typeof t=="object"&&t!==null,n&&(r=i.__dataTemp[e]));let o=r!==t&&(r===r||t===t);return n&&o&&(i.__dataTemp[e]=t),o}const Zr=B(i=>{class e extends i{_shouldPropertyChange(r,a,n){return Jr(this,r,a,n,!0)}}return e}),$p=B(i=>{class e extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(r,a,n){return Jr(this,r,a,n,this.mutableData)}}return e});Zr._mutablePropertyChange=Jr;/**
3689
3689
  @license
3690
3690
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3691
3691
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3693,7 +3693,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3693
3693
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3694
3694
  Code distributed by Google as part of the polymer project is also
3695
3695
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3696
- */let pr=null;function mr(){return pr}mr.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:mr,writable:!0}});const ro=Pr(mr),Fp=Xr(ro);function Rp(i,e){pr=i,Object.setPrototypeOf(i,e.prototype),new e,pr=null}const $p=Pr(class{});function Hp(i,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!i!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)i?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(i)r.__polymerReplaced__=document.createComment("hidden-slot"),K(K(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const n=r.__polymerReplaced__;n&&K(K(n).parentNode).replaceChild(r,n)}else r.style&&(i?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=i,r._showHideChildren&&r._showHideChildren(i)}}class Jr extends $p{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let n=this.root.firstChild;n;n=n.nextSibling)t.push(n),n.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,n=>{n.model=this,r(n)});else{let n=this.__dataHost.__dataHost;n&&n._addEventListenerToNode(e,t,r)}}_showHideChildren(e){Hp(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}const Bp=Xr(Jr);function ha(i){let e=i.__dataHost;return e&&e._methodHost||e}function Up(i,e,t){let r=t.mutableData?Bp:Jr;fr.mixin&&(r=fr.mixin(r));let n=class extends r{};return n.prototype.__templatizeOptions=t,n.prototype._bindTemplate(i),jp(n,i,e,t),n}function qp(i,e,t,r){let n=t.forwardHostProp;if(n&&e.hasHostProps){const a=i.localName=="template";let s=e.templatizeTemplateClass;if(!s){if(a){let l=t.mutableData?Fp:ro;class d extends l{}s=e.templatizeTemplateClass=d}else{const l=i.constructor;class d extends l{}s=e.templatizeTemplateClass=d}let o=e.hostProps;for(let l in o)s.prototype._addPropertyEffect("_host_"+l,s.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Wp(l,n)}),s.prototype._createNotifyingProperty("_host_"+l);ts&&r&&Kp(e,t,r)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),a)Rp(i,s),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,s.prototype);const o=e.hostProps;for(let l in o)if(l="_host_"+l,l in i){const d=i[l];delete i[l],i.__data[l]=d}}}}function Wp(i,e){return function(t,r,n){e.call(t.__templatizeOwner,r.substring(6),n[r])}}function jp(i,e,t,r){let n=t.hostProps||{};for(let a in r.instanceProps){delete n[a];let s=r.notifyInstanceProp;s&&i.prototype._addPropertyEffect(a,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Yp(a,s)})}if(r.forwardHostProp&&e.__dataHost)for(let a in n)t.hasHostProps||(t.hasHostProps=!0),i.prototype._addPropertyEffect(a,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Gp()})}function Yp(i,e){return function(t,r,n){e.call(t.__templatizeOwner,t,r,n[r])}}function Gp(){return function(i,e,t){i.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function fr(i,e,t){if(ei&&!ha(i))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},i.__templatizeOwner)throw new Error("A <template> can only be templatized once");i.__templatizeOwner=e;let r=(e?e.constructor:Jr)._parseTemplate(i),n=r.templatizeInstanceClass;n||(n=Up(i,r,t),r.templatizeInstanceClass=n);const a=ha(i);qp(i,r,t,a);let s=class extends n{};return s.prototype._methodHost=a,s.prototype.__dataHost=i,s.prototype.__templatizeOwner=e,s.prototype.__hostProps=r.hostProps,s=s,s}function Kp(i,e,t){const r=t.constructor._properties,{propertyEffects:n}=i,{instanceProps:a}=e;for(let s in n)if(!r[s]&&!(a&&a[s])){const o=n[s];for(let l=0;l<o.length;l++){const{part:d}=o[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${s}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Qp(i,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=i)e=t.__dataHost;else return t;else e=K(e).parentNode;return null}/**
3696
+ */let pr=null;function mr(){return pr}mr.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:mr,writable:!0}});const ns=Pr(mr),Hp=Zr(ns);function Bp(i,e){pr=i,Object.setPrototypeOf(i,e.prototype),new e,pr=null}const Up=Pr(class{});function qp(i,e){for(let t=0;t<e.length;t++){let r=e[t];if(!!i!=!!r.__hideTemplateChildren__)if(r.nodeType===Node.TEXT_NODE)i?(r.__polymerTextContent__=r.textContent,r.textContent=""):r.textContent=r.__polymerTextContent__;else if(r.localName==="slot")if(i)r.__polymerReplaced__=document.createComment("hidden-slot"),K(K(r).parentNode).replaceChild(r.__polymerReplaced__,r);else{const a=r.__polymerReplaced__;a&&K(K(a).parentNode).replaceChild(r,a)}else r.style&&(i?(r.__polymerDisplay__=r.style.display,r.style.display="none"):r.style.display=r.__polymerDisplay__);r.__hideTemplateChildren__=i,r._showHideChildren&&r._showHideChildren(i)}}class ea extends Up{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let a=this.root.firstChild;a;a=a.nextSibling)t.push(a),a.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let r=this.__templatizeOptions;(e&&r.instanceProps||!r.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,r){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,a=>{a.model=this,r(a)});else{let a=this.__dataHost.__dataHost;a&&a._addEventListenerToNode(e,t,r)}}_showHideChildren(e){qp(e,this.children)}_setUnmanagedPropertyToNode(e,t,r){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=r:super._setUnmanagedPropertyToNode(e,t,r)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}const Wp=Zr(ea);function un(i){let e=i.__dataHost;return e&&e._methodHost||e}function jp(i,e,t){let r=t.mutableData?Wp:ea;fr.mixin&&(r=fr.mixin(r));let a=class extends r{};return a.prototype.__templatizeOptions=t,a.prototype._bindTemplate(i),Kp(a,i,e,t),a}function Yp(i,e,t,r){let a=t.forwardHostProp;if(a&&e.hasHostProps){const n=i.localName=="template";let o=e.templatizeTemplateClass;if(!o){if(n){let l=t.mutableData?Hp:ns;class d extends l{}o=e.templatizeTemplateClass=d}else{const l=i.constructor;class d extends l{}o=e.templatizeTemplateClass=d}let s=e.hostProps;for(let l in s)o.prototype._addPropertyEffect("_host_"+l,o.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Gp(l,a)}),o.prototype._createNotifyingProperty("_host_"+l);ro&&r&&Jp(e,t,r)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),n)Bp(i,o),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,o.prototype);const s=e.hostProps;for(let l in s)if(l="_host_"+l,l in i){const d=i[l];delete i[l],i.__data[l]=d}}}}function Gp(i,e){return function(t,r,a){e.call(t.__templatizeOwner,r.substring(6),a[r])}}function Kp(i,e,t,r){let a=t.hostProps||{};for(let n in r.instanceProps){delete a[n];let o=r.notifyInstanceProp;o&&i.prototype._addPropertyEffect(n,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Qp(n,o)})}if(r.forwardHostProp&&e.__dataHost)for(let n in a)t.hasHostProps||(t.hasHostProps=!0),i.prototype._addPropertyEffect(n,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Xp()})}function Qp(i,e){return function(t,r,a){e.call(t.__templatizeOwner,t,r,a[r])}}function Xp(){return function(i,e,t){i.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function fr(i,e,t){if(ei&&!un(i))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},i.__templatizeOwner)throw new Error("A <template> can only be templatized once");i.__templatizeOwner=e;let r=(e?e.constructor:ea)._parseTemplate(i),a=r.templatizeInstanceClass;a||(a=jp(i,r,t),r.templatizeInstanceClass=a);const n=un(i);Yp(i,r,t,n);let o=class extends a{};return o.prototype._methodHost=n,o.prototype.__dataHost=i,o.prototype.__templatizeOwner=e,o.prototype.__hostProps=r.hostProps,o=o,o}function Jp(i,e,t){const r=t.constructor._properties,{propertyEffects:a}=i,{instanceProps:n}=e;for(let o in a)if(!r[o]&&!(n&&n[o])){const s=a[o];for(let l=0;l<s.length;l++){const{part:d}=s[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${o}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Zp(i,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=i)e=t.__dataHost;else return t;else e=K(e).parentNode;return null}/**
3697
3697
  @license
3698
3698
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3699
3699
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3701,7 +3701,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3701
3701
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3702
3702
  Code distributed by Google as part of the polymer project is also
3703
3703
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3704
- */let ua=!1;function Xp(){if(es&&!Za){if(!ua){ua=!0;const i=document.createElement("style");i.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(i)}return!0}return!1}/**
3704
+ */let pn=!1;function em(){if(io&&!to){if(!pn){pn=!0;const i=document.createElement("style");i.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(i)}return!0}return!1}/**
3705
3705
  @license
3706
3706
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3707
3707
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3709,15 +3709,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3709
3709
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3710
3710
  Code distributed by Google as part of the polymer project is also
3711
3711
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3712
- */const Jp=Lp(D);class ca extends Jp{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Fn,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Xp()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=K(K(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let n=new MutationObserver(()=>{if(this.querySelector("template"))n.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return n.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=fr(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(n,a){let s=this.__instances;for(let o=0,l;o<s.length&&(l=s[o]);o++)l.forwardHostProp(n,a)},notifyInstanceProp:function(n,a,s){if(eu(this.as,a)){let o=n[this.itemsIndexAs];a==this.as&&(this.items[o]=s);let l=yt(this.as,`${JSCompiler_renameProperty("items",this)}.${o}`,a);this.notifyPath(l,s)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,r=this.__getMethodHost();return function(){return r[t].apply(r,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let r=0;r<t.length;r++)e.indexOf(t[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=ni.debounce(this.__renderDebouncer,t>0?su.after(t):us,e.bind(this)),Dp(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Kr()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Fn||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,n,a)=>this.__filterFn(e[r],n,a))),this.__sortFn&&t.sort((r,n)=>this.__sortFn(e[r],e[n])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let n;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),n=Math.max(t-r,0),this.__chunkCount=n||1):(n=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+n,e)),this.__shouldMeasureChunk=n===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){const n=this.__itemsIdxToInstIdx={};let a;for(a=0;a<t;a++){let s=this.__instances[a],o=r[a],l=e[o];n[o]=a,s?(s._setPendingProperty(this.as,l),s._setPendingProperty(this.indexAs,a),s._setPendingProperty(this.itemsIndexAs,o),s._flushProperties()):this.__insertInstance(l,a,o)}for(let s=this.__instances.length-1;s>=a;s--)this.__detachAndRemoveInstance(s)}__detachInstance(e){let t=this.__instances[e];const r=K(t.root);for(let n=0;n<t.children.length;n++){let a=t.children[n];r.appendChild(a)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let n={};return n[this.as]=e,n[this.indexAs]=t,n[this.itemsIndexAs]=r,new this.__ctor(n)}__insertInstance(e,t,r){const n=this.__stampInstance(e,t,r);let a=this.__instances[t+1],s=a?a.children[0]:this;return K(K(this).parentNode).insertBefore(n.root,s),this.__instances[t]=n,n}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let r=e.slice(6),n=r.indexOf("."),a=n<0?r:r.substring(0,n);if(a==parseInt(a,10)){let s=n<0?"":r.substring(n+1);this.__handleObservedPaths(s);let o=this.__itemsIdxToInstIdx[a],l=this.__instances[o];if(l){let d=this.as+(s?"."+s:"");l._setPendingPropertyOrPath(d,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return Qp(this.template,e)}}customElements.define(ca.is,ca);/**
3712
+ */const tm=$p(D);class mn extends tm{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Ra,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),em()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=K(K(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let a=new MutationObserver(()=>{if(this.querySelector("template"))a.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return a.observe(this,{childList:!0}),!1}let r={};r[this.as]=!0,r[this.indexAs]=!0,r[this.itemsIndexAs]=!0,this.__ctor=fr(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:r,forwardHostProp:function(a,n){let o=this.__instances;for(let s=0,l;s<o.length&&(l=o[s]);s++)l.forwardHostProp(a,n)},notifyInstanceProp:function(a,n,o){if(tc(this.as,n)){let s=a[this.itemsIndexAs];n==this.as&&(this.items[s]=o);let l=yt(this.as,`${JSCompiler_renameProperty("items",this)}.${s}`,n);this.notifyPath(l,o)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,r=this.__getMethodHost();return function(){return r[t].apply(r,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let r=0;r<t.length;r++)e.indexOf(t[r])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=ai.debounce(this.__renderDebouncer,t>0?sc.after(t):mo,e.bind(this)),Mp(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Xr()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),r=this.__calculateLimit(t.length);this.__updateInstances(e,r,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Ra||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let r=0;r<e.length;r++)t[r]=r;return this.__filterFn&&(t=t.filter((r,a,n)=>this.__filterFn(e[r],a,n))),this.__sortFn&&t.sort((r,a)=>this.__sortFn(e[r],e[a])),t}__calculateLimit(e){let t=e;const r=this.__instances.length;if(this.initialCount){let a;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),a=Math.max(t-r,0),this.__chunkCount=a||1):(a=Math.min(Math.max(e-r,0),this.__chunkCount),t=Math.min(r+a,e)),this.__shouldMeasureChunk=a===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,r){const a=this.__itemsIdxToInstIdx={};let n;for(n=0;n<t;n++){let o=this.__instances[n],s=r[n],l=e[s];a[s]=n,o?(o._setPendingProperty(this.as,l),o._setPendingProperty(this.indexAs,n),o._setPendingProperty(this.itemsIndexAs,s),o._flushProperties()):this.__insertInstance(l,n,s)}for(let o=this.__instances.length-1;o>=n;o--)this.__detachAndRemoveInstance(o)}__detachInstance(e){let t=this.__instances[e];const r=K(t.root);for(let a=0;a<t.children.length;a++){let n=t.children[a];r.appendChild(n)}return t}__attachInstance(e,t){let r=this.__instances[e];t.insertBefore(r.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,r){let a={};return a[this.as]=e,a[this.indexAs]=t,a[this.itemsIndexAs]=r,new this.__ctor(a)}__insertInstance(e,t,r){const a=this.__stampInstance(e,t,r);let n=this.__instances[t+1],o=n?n.children[0]:this;return K(K(this).parentNode).insertBefore(a.root,o),this.__instances[t]=a,a}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let r=e.slice(6),a=r.indexOf("."),n=a<0?r:r.substring(0,a);if(n==parseInt(n,10)){let o=a<0?"":r.substring(a+1);this.__handleObservedPaths(o);let s=this.__itemsIdxToInstIdx[n],l=this.__instances[s];if(l){let d=this.as+(o?"."+o:"");l._setPendingPropertyOrPath(d,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return Zp(this.template,e)}}customElements.define(mn.is,mn);/**
3713
3713
  * @license
3714
3714
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3715
3715
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3716
- */const Zp=i=>class extends Ne(i){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>fe(e.date,this.focusedDate))}ready(){super.ready(),oe(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,r){const n=new Date(0,0);n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(1);const a=new Date(0,0);return a.setFullYear(e.getFullYear()),a.setMonth(e.getMonth()+1),a.setDate(0),t&&r&&t.getMonth()===r.getMonth()&&t.getMonth()===e.getMonth()&&r.getDate()-t.getDate()>=0?!1:!Ke(n,t,r)&&!Ke(a,t,r)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:r,weekdaysShort:n,firstDayOfWeek:a}=e,s=this._applyFirstDayOfWeek(n,a);return this._applyFirstDayOfWeek(r,a).map((o,l)=>({weekDay:o,weekDayShort:s[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(r=>fe(r,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return fe(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==t.firstDayOfWeek;)this._dateAdd(r,-1);const n=[],a=r.getMonth(),s=e.getMonth();for(;r.getMonth()===s||r.getMonth()===a;)n.push(r.getMonth()===s?new Date(r.getTime()):null),this._dateAdd(r,1);return n}_getWeeks(e){return e.reduce((t,r,n)=>(n%7===0&&t.push([]),t[t.length-1].push(r),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((r,n)=>!r&&n?n:r);return Tp(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3716
+ */const im=i=>class extends Ne(i){static get properties(){return{month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return[...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>fe(e.date,this.focusedDate))}ready(){super.ready(),se(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,r){const a=new Date(0,0);a.setFullYear(e.getFullYear()),a.setMonth(e.getMonth()),a.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),t&&r&&t.getMonth()===r.getMonth()&&t.getMonth()===e.getMonth()&&r.getDate()-t.getDate()>=0?!1:!Ke(a,t,r)&&!Ke(n,t,r)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:r,weekdaysShort:a,firstDayOfWeek:n}=e,o=this._applyFirstDayOfWeek(a,n);return this._applyFirstDayOfWeek(r,n).map((s,l)=>({weekDay:s,weekDayShort:o[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(r=>fe(r,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return fe(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const r=new Date(0,0);for(r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);r.getDay()!==t.firstDayOfWeek;)this._dateAdd(r,-1);const a=[],n=r.getMonth(),o=e.getMonth();for(;r.getMonth()===o||r.getMonth()===n;)a.push(r.getMonth()===o?new Date(r.getTime()):null),this._dateAdd(r,1);return a}_getWeeks(e){return e.reduce((t,r,a)=>(a%7===0&&t.push([]),t[t.length-1].push(r),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((r,a)=>!r&&a?a:r);return Ap(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3717
3717
  * @license
3718
3718
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3719
3719
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3720
- */const em=g`
3720
+ */const rm=v`
3721
3721
  :host {
3722
3722
  display: block;
3723
3723
  }
@@ -3777,7 +3777,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3777
3777
  * @license
3778
3778
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3779
3779
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3780
- */v("vaadin-month-calendar",em,{moduleId:"vaadin-month-calendar-styles"});class tm extends Zp(z(D)){static get template(){return A`
3780
+ */g("vaadin-month-calendar",rm,{moduleId:"vaadin-month-calendar-styles"});class am extends im(z(D)){static get template(){return A`
3781
3781
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3782
3782
  <table
3783
3783
  id="monthGrid"
@@ -3819,19 +3819,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3819
3819
  </template>
3820
3820
  </tbody>
3821
3821
  </table>
3822
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,n,a,s){const o=["date"],l=e>cr(new Date),d=e<cr(new Date);return this.__isDayDisabled(e,n,a,s)&&o.push("disabled"),this.__isDayFocused(e,t)&&o.push("focused"),this.__isDaySelected(e,r)&&o.push("selected"),this._isToday(e)&&o.push("today"),d&&o.push("past"),l&&o.push("future"),o.join(" ")}__isDayFocused(e,t){return fe(e,t)}__isDaySelected(e,t){return fe(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,n){return!Ke(e,t,r,n)}__getDayAriaDisabled(e,t,r,n){if(!(e===void 0||t===void 0&&r===void 0&&n===void 0)&&this.__isDayDisabled(e,t,r,n))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}C(tm);/**
3822
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,r,a,n,o){const s=["date"],l=e>ur(new Date),d=e<ur(new Date);return this.__isDayDisabled(e,a,n,o)&&s.push("disabled"),this.__isDayFocused(e,t)&&s.push("focused"),this.__isDaySelected(e,r)&&s.push("selected"),this._isToday(e)&&s.push("today"),d&&s.push("past"),l&&s.push("future"),s.join(" ")}__isDayFocused(e,t){return fe(e,t)}__isDaySelected(e,t){return fe(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,r,a){return!Ke(e,t,r,a)}__getDayAriaDisabled(e,t,r,a){if(!(e===void 0||t===void 0&&r===void 0&&a===void 0)&&this.__isDayDisabled(e,t,r,a))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}C(am);/**
3823
3823
  * @license
3824
3824
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3825
3825
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3826
- */class Zr{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
3826
+ */class ta{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
3827
3827
  * @license
3828
3828
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3829
3829
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3830
- */const im=i=>class extends i{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Ms(this.$.scrollers,"pan-y"),oe(this.$.scrollers,"track",this._track.bind(this)),oe(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),oe(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),oe(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Zr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new he(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),oe(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new he(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),oe(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new he(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(r=>{r.addEventListener("selected-date-changed",n=>{this.selectedDate=n.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new he(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),oe(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,r,n,a){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,n,a))}__updateCalendars(e,t,r,n,a,s,o,l,d,h){e&&e.length&&e.forEach(c=>{c.i18n=t,c.minDate=r,c.maxDate=n,c.isDateDisabled=h,c.focusedDate=s,c.selectedDate=a,c.showWeekNumbers=o,c.ignoreTaps=l,d?c.setAttribute("theme",d):c.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(n=>{n.selectedDate=t,r?n.setAttribute("theme",r):n.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const o=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+o,t);return}const n=this._monthScroller.position>r,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,s=this._monthScroller.position+a-1<r;n?this._scrollToPosition(r,t):s&&this._scrollToPosition(r-a+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=te.debounce(this._debouncer,ye.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Gr(e)):r}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let r;this._revealPromise=new Promise(l=>{r=l});const n=(l,d,h,c)=>(l/=c/2,l<1?h/2*l*l+d:(l-=1,-h/2*(l*(l-2)-1)+d));let a=0;const s=this._monthScroller.position,o=l=>{a||(a=l);const d=l-a;if(d<this.scrollDuration){const h=n(d,s,this._targetPosition-s,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(o)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:s}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,r(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(o)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Js(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){fe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&fe(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return Kt(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,t||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Kt(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{js(this,()=>{Kr(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Xs(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const r=new Date(0,0);r.setFullYear(e.getFullYear()),t==="minDate"?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate,n=this.isDateDisabled){return Ke(e,t,r,n)}_isTodayAllowed(e,t,r){return this._dateAllowed(this._getTodayMidnight(),e,t,r)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3830
+ */const nm=i=>class extends i{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){zo(this.$.scrollers,"pan-y"),se(this.$.scrollers,"track",this._track.bind(this)),se(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),se(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),se(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new ta(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new he(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),se(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new he(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),se(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const r=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+r,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new he(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(r=>{r.addEventListener("selected-date-changed",a=>{this.selectedDate=a.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new he(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),se(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,r,a,n){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(r,a,n))}__updateCalendars(e,t,r,a,n,o,s,l,d,h){e&&e.length&&e.forEach(u=>{u.i18n=t,u.minDate=r,u.maxDate=a,u.isDateDisabled=h,u.focusedDate=o,u.selectedDate=n,u.showWeekNumbers=s,u.ignoreTaps=l,d?u.setAttribute("theme",d):u.removeAttribute("theme")})}__updateYears(e,t,r){e&&e.length&&e.forEach(a=>{a.selectedDate=t,r?a.setAttribute("theme",r):a.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const r=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const s=this._calculateWeekScrollOffset(e);this._scrollToPosition(r+s,t);return}const a=this._monthScroller.position>r,n=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,o=this._monthScroller.position+n-1<r;a?this._scrollToPosition(r,t):o&&this._scrollToPosition(r-n+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let r=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(r+=1);return r/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=te.debounce(this._debouncer,ye.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,r){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Qr(e)):r}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let r;this._revealPromise=new Promise(l=>{r=l});const a=(l,d,h,u)=>(l/=u/2,l<1?h/2*l*l+d:(l-=1,-h/2*(l*(l-2)-1)+d));let n=0;const o=this._monthScroller.position,s=l=>{n||(n=l);const d=l-n;if(d<this.scrollDuration){const h=a(d,o,this._targetPosition-o,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(s)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:o}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,r(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(s)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return es(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){fe(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&fe(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return Kt(this,null,function*(){const r=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=r,t||(this._focusedMonthDate=r.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return Kt(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{Go(this,()=>{Xr(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Zo(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,r){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,r):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const r=new Date(0,0);return r.setFullYear(this.focusedDate.getFullYear()),r.setMonth(this.focusedDate.getMonth()+e),t&&r.setDate(this.focusedDate.getDate()+t),r}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),r=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==r&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const r=new Date(0,0);r.setFullYear(e.getFullYear()),t==="minDate"?(r.setMonth(e.getMonth()),r.setDate(1)):(r.setMonth(e.getMonth()+1),r.setDate(0)),this._dateAllowed(r)?this.focusDate(r):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,r=this.maxDate,a=this.isDateDisabled){return Ke(e,t,r,a)}_isTodayAllowed(e,t,r){return this._dateAllowed(this._getTodayMidnight(),e,t,r)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3831
3831
  * @license
3832
3832
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3833
3833
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3834
- */const rm=g`
3834
+ */const om=v`
3835
3835
  :host {
3836
3836
  display: flex;
3837
3837
  flex-direction: column;
@@ -3895,7 +3895,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3895
3895
  * @license
3896
3896
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3897
3897
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3898
- */v("vaadin-date-picker-overlay-content",rm,{moduleId:"vaadin-date-picker-overlay-content-styles"});class nm extends im(ke(z(re(D)))){static get template(){return A`
3898
+ */g("vaadin-date-picker-overlay-content",om,{moduleId:"vaadin-date-picker-overlay-content-styles"});class sm extends nm(ke(z(re(D)))){static get template(){return A`
3899
3899
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3900
3900
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3901
3901
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3915,23 +3915,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3915
3915
  <slot name="today-button"></slot>
3916
3916
  <slot name="cancel-button"></slot>
3917
3917
  </div>
3918
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}C(nm);/**
3918
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}C(sm);/**
3919
3919
  * @license
3920
3920
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3921
3921
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3922
- */const Hi=new WeakMap;function am(i){return Hi.has(i)||Hi.set(i,new Set),Hi.get(i)}function sm(i,e){const t=document.createElement("style");t.textContent=i,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const no=B(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=am(e);this.slotStyles.forEach(r=>{t.has(r)||(sm(r,e),t.add(r))})}});/**
3922
+ */const Hi=new WeakMap;function lm(i){return Hi.has(i)||Hi.set(i,new Set),Hi.get(i)}function dm(i,e){const t=document.createElement("style");t.textContent=i,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const os=B(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=lm(e);this.slotStyles.forEach(r=>{t.has(r)||(dm(r,e),t.add(r))})}});/**
3923
3923
  * @license
3924
3924
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3925
3925
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3926
- */const om=i=>class extends Tt(Me(i)){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",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),hr||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3926
+ */const hm=i=>class extends Tt(Me(i)){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",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),hr||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3927
3927
  * @license
3928
3928
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3929
3929
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3930
- */const en=B(i=>class extends Fr(Hr(Tt(i))){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(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const r=this._hasValidConstraints(t),n=this.__previousHasConstraints&&!r;(this._hasValue||this.invalid)&&r?this.validate():n&&this._setInvalid(!1),this.__previousHasConstraints=r}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3930
+ */const ia=B(i=>class extends $r(Ur(Tt(i))){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(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const r=this._hasValidConstraints(t),a=this.__previousHasConstraints&&!r;(this._hasValue||this.invalid)&&r?this.validate():a&&this._setInvalid(!1),this.__previousHasConstraints=r}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3931
3931
  * @license
3932
3932
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3933
3933
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3934
- */const bi=i=>class extends no(ci(en(pi(om(Me(i)))))){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[`
3934
+ */const bi=i=>class extends os(ui(ia(pi(hm(Me(i)))))){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[`
3935
3935
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3936
3936
  font: inherit;
3937
3937
  color: inherit;
@@ -3940,7 +3940,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3940
3940
  * @license
3941
3941
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3942
3942
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3943
- */const lm=g`
3943
+ */const cm=v`
3944
3944
  [part='clear-button'] {
3945
3945
  display: none;
3946
3946
  cursor: default;
@@ -3957,7 +3957,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3957
3957
  * @license
3958
3958
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3959
3959
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3960
- */const ao=g`
3960
+ */const ss=v`
3961
3961
  :host {
3962
3962
  display: inline-flex;
3963
3963
  outline: none;
@@ -3995,7 +3995,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3995
3995
  * @license
3996
3996
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3997
3997
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3998
- */const so=g`
3998
+ */const ls=v`
3999
3999
  [class$='container'] {
4000
4000
  display: flex;
4001
4001
  flex-direction: column;
@@ -4007,23 +4007,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4007
4007
  * @license
4008
4008
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
4009
4009
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4010
- */const yi=[ao,so,lm];/**
4010
+ */const yi=[ss,ls,cm];/**
4011
4011
  * @license
4012
4012
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4013
4013
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4014
- */const wi=i=>class extends i{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:r}=t;if(this.__initialClasses||(this.__initialClasses=new Set(r)),Array.isArray(this.__previousClasses)){const a=this.__previousClasses.filter(s=>!this.__initialClasses.has(s));a.length>0&&r.remove(...a)}const n=typeof e=="string"?e.split(" ").filter(Boolean):[];n.length>0&&r.add(...n),this.__previousClasses=n}};/**
4014
+ */const wi=i=>class extends i{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:r}=t;if(this.__initialClasses||(this.__initialClasses=new Set(r)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(o=>!this.__initialClasses.has(o));n.length>0&&r.remove(...n)}const a=typeof e=="string"?e.split(" ").filter(Boolean):[];a.length>0&&r.add(...a),this.__previousClasses=a}};/**
4015
4015
  * @license
4016
4016
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4017
4017
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4018
- */class oo{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4018
+ */class ds{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4019
4019
  * @license
4020
4020
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4021
4021
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4022
- */const dm=i=>class extends wi(ke(ci(en(Me(i))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,r=>"0000".substr(r.length)+r);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),r=new Date;let n,a=r.getMonth(),s=r.getFullYear();if(t.length===3){if(a=parseInt(t[0])-1,n=parseInt(t[1]),s=parseInt(t[2]),t[2].length<3&&s>=0){const o=this.referenceDate?dt(this.referenceDate):new Date;s=Pp(o,s,a,n)}}else t.length===2?(a=parseInt(t[0])-1,n=parseInt(t[1])):t.length===1&&(n=parseInt(t[0]));if(n!==void 0)return{day:n,month:a,year:s}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Wr},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!ui()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new Zr(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new oo(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",r=>{this.__commitDate(r.detail.date),this._close()}),t.addEventListener("date-selected",r=>{this.__commitDate(r.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",r=>{this._focusedDate=r.detail.value}),t.addEventListener("click",r=>r.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=dt(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Gr(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),r=!this._selectedDate||Ke(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let n=!0;return this.inputElement&&(this.inputElement.checkValidity?n=this.inputElement.checkValidity():this.inputElement.validate&&(n=this.inputElement.validate())),t&&r&&n}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,r,n,a,s){return!e||t&&(!s||a)||r&&a||!n.parseDate}_formatISO(e){return Ap(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const r=dt(e);if(e&&!r){this.value=t;return}e?fe(this._selectedDate,r)||(this._selectedDate=r,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,r,n,a,s,o,l,d){e&&(e.i18n=t,e.label=r,e.minDate=n,e.maxDate=a,e.focusedDate=s,e.selectedDate=o,e.showWeekNumbers=l,e.isDateDisabled=d)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const r=e.focusedDate||t;e.scrollToDate(r),this._ignoreFocusedDateChange=!0,e.focusedDate=r,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const n=this._nativeInput;this._noInput&&n&&(n.blur(),this._overlayContent.focusDateElement());const a=this._noInput?e:[n,e];this.__showOthers=Ys(a)}_getInitialPosition(){const e=dt(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Ke(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Xs(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,fe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return dt(e)}};/**
4022
+ */const um=i=>class extends wi(ke(ui(ia(Me(i))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,r=>"0000".substr(r.length)+r);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),r=new Date;let a,n=r.getMonth(),o=r.getFullYear();if(t.length===3){if(n=parseInt(t[0])-1,a=parseInt(t[1]),o=parseInt(t[2]),t[2].length<3&&o>=0){const s=this.referenceDate?dt(this.referenceDate):new Date;o=Dp(s,o,n,a)}}else t.length===2?(n=parseInt(t[0])-1,a=parseInt(t[1])):t.length===1&&(a=parseInt(t[0]));if(a!==void 0)return{day:a,month:n,year:o}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Yr},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return[...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this)}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return!this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!ci()&&e.target.blur()}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate())}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new ta(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new ds(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",r=>{this.__commitDate(r.detail.date),this._close()}),t.addEventListener("date-selected",r=>{this.__commitDate(r.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",r=>{this._shouldRemoveFocus(r)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",r=>{this._focusedDate=r.detail.value}),t.addEventListener("click",r=>r.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=dt(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Qr(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),r=!this._selectedDate||Ke(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let a=!0;return this.inputElement&&(this.inputElement.checkValidity?a=this.inputElement.checkValidity():this.inputElement.validate&&(a=this.inputElement.validate())),t&&r&&a}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,r,a,n,o){return!e||t&&(!o||n)||r&&n||!a.parseDate}_formatISO(e){return Vp(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const r=dt(e);if(e&&!r){this.value=t;return}e?fe(this._selectedDate,r)||(this._selectedDate=r,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,r,a,n,o,s,l,d){e&&(e.i18n=t,e.label=r,e.minDate=a,e.maxDate=n,e.focusedDate=o,e.selectedDate=s,e.showWeekNumbers=l,e.isDateDisabled=d)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const r=e.focusedDate||t;e.scrollToDate(r),this._ignoreFocusedDateChange=!0,e.focusedDate=r,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const a=this._nativeInput;this._noInput&&a&&(a.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[a,e];this.__showOthers=Ko(n)}_getInitialPosition(){const e=dt(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Ke(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?Zo(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,fe(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return dt(e)}};/**
4023
4023
  * @license
4024
4024
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4025
4025
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4026
- */const hm=g`
4026
+ */const pm=v`
4027
4027
  :host([opened]) {
4028
4028
  pointer-events: auto;
4029
4029
  }
@@ -4040,7 +4040,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4040
4040
  * @license
4041
4041
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4042
4042
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4043
- */v("vaadin-date-picker",[yi,hm],{moduleId:"vaadin-date-picker-styles"});class um extends dm(bi(z(ue(D)))){static get is(){return"vaadin-date-picker"}static get template(){return A`
4043
+ */g("vaadin-date-picker",[yi,pm],{moduleId:"vaadin-date-picker-styles"});class mm extends um(bi(z(ce(D)))){static get is(){return"vaadin-date-picker"}static get template(){return A`
4044
4044
  <div class="vaadin-date-picker-container">
4045
4045
  <div part="label">
4046
4046
  <slot name="label"></slot>
@@ -4082,23 +4082,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4082
4082
  ></vaadin-date-picker-overlay>
4083
4083
 
4084
4084
  <slot name="tooltip"></slot>
4085
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Pt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new St(this.inputElement,this._labelController)),this._tooltipController=new Ce(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}C(um);/**
4085
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Pt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new St(this.inputElement,this._labelController)),this._tooltipController=new Ce(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}C(mm);/**
4086
4086
  * @license
4087
4087
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4088
4088
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4089
- */v("vaadin-text-field",ze,{moduleId:"lumo-text-field-styles"});/**
4089
+ */g("vaadin-text-field",ze,{moduleId:"lumo-text-field-styles"});/**
4090
4090
  * @license
4091
4091
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4092
4092
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4093
- */const cm=i=>class extends bi(i){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
4093
+ */const fm=i=>class extends bi(i){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
4094
4094
  * @license
4095
4095
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4096
4096
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4097
- */const pm=i=>class extends cm(i){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Pt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new St(this.inputElement,this._labelController))}};/**
4097
+ */const _m=i=>class extends fm(i){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Pt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new St(this.inputElement,this._labelController))}};/**
4098
4098
  * @license
4099
4099
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4100
4100
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4101
- */v("vaadin-text-field",yi,{moduleId:"vaadin-text-field-styles"});class lo extends pm(z(ue(D))){static get is(){return"vaadin-text-field"}static get template(){return A`
4101
+ */g("vaadin-text-field",yi,{moduleId:"vaadin-text-field-styles"});class hs extends _m(z(ce(D))){static get is(){return"vaadin-text-field"}static get template(){return A`
4102
4102
  <div class="vaadin-field-container">
4103
4103
  <div part="label">
4104
4104
  <slot name="label"></slot>
@@ -4127,11 +4127,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4127
4127
  </div>
4128
4128
  </div>
4129
4129
  <slot name="tooltip"></slot>
4130
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Ce(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}C(lo);/**
4130
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new Ce(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}C(hs);/**
4131
4131
  * @license
4132
4132
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4133
4133
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4134
- */const mm=g`
4134
+ */const vm=v`
4135
4135
  :host {
4136
4136
  position: absolute;
4137
4137
  right: 0;
@@ -4144,11 +4144,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4144
4144
  background: transparent;
4145
4145
  outline: none;
4146
4146
  }
4147
- `;v("vaadin-password-field-button",[Bs,mm],{moduleId:"lumo-password-field-button"});/**
4147
+ `;g("vaadin-password-field-button",[qo,vm],{moduleId:"lumo-password-field-button"});/**
4148
4148
  * @license
4149
4149
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4150
4150
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4151
- */const fm=g`
4151
+ */const gm=v`
4152
4152
  [part='reveal-button']::before {
4153
4153
  content: var(--lumo-icons-eye);
4154
4154
  }
@@ -4166,15 +4166,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4166
4166
  [part='reveal-button'][hidden] {
4167
4167
  display: none !important;
4168
4168
  }
4169
- `;v("vaadin-password-field",[ze,fm],{moduleId:"lumo-password-field"});/**
4169
+ `;g("vaadin-password-field",[ze,gm],{moduleId:"lumo-password-field"});/**
4170
4170
  * @license
4171
4171
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4172
4172
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4173
- */v("vaadin-password-field-button",Qs,{moduleId:"vaadin-password-field-button-styles"});class _m extends Yr(re(z(D))){static get is(){return"vaadin-password-field-button"}static get template(){return A``}}C(_m);/**
4173
+ */g("vaadin-password-field-button",Jo,{moduleId:"vaadin-password-field-button-styles"});class bm extends Kr(re(z(D))){static get is(){return"vaadin-password-field-button"}static get template(){return A``}}C(bm);/**
4174
4174
  * @license
4175
4175
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4176
4176
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4177
- */const gm=i=>class extends no(Je(Ne(Tt(i)))){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(){const e=this.localName;return[...super.slotStyles,`
4177
+ */const ym=i=>class extends os(Je(Ne(Tt(i)))){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(){const e=this.localName;return[...super.slotStyles,`
4178
4178
  ${e} [slot="input"]::-ms-reveal {
4179
4179
  display: none;
4180
4180
  }
@@ -4182,11 +4182,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4182
4182
  * @license
4183
4183
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4184
4184
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4185
- */const vm=A`
4185
+ */const wm=A`
4186
4186
  <div part="reveal-button" slot="suffix">
4187
4187
  <slot name="reveal"></slot>
4188
4188
  </div>
4189
- `;let Ft;class bm extends gm(lo){static get is(){return"vaadin-password-field"}static get template(){if(!Ft){Ft=super.template.cloneNode(!0);const e=vm.content.querySelector('[part="reveal-button"]');Ft.content.querySelector('[part="input-field"]').appendChild(e)}return Ft}}C(bm);const xi=g`
4189
+ `;let Ft;class xm extends ym(hs){static get is(){return"vaadin-password-field"}static get template(){if(!Ft){Ft=super.template.cloneNode(!0);const e=wm.content.querySelector('[part="reveal-button"]');Ft.content.querySelector('[part="input-field"]').appendChild(e)}return Ft}}C(xm);const xi=v`
4190
4190
  :host {
4191
4191
  display: flex;
4192
4192
  align-items: center;
@@ -4270,7 +4270,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4270
4270
  width: var(--lumo-icon-size-m);
4271
4271
  height: var(--lumo-icon-size-m);
4272
4272
  }
4273
- `;v("vaadin-item",xi,{moduleId:"lumo-item"});const ho=g`
4273
+ `;g("vaadin-item",xi,{moduleId:"lumo-item"});const cs=v`
4274
4274
  :host {
4275
4275
  transition: background-color 100ms;
4276
4276
  overflow: hidden;
@@ -4282,11 +4282,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4282
4282
  :host([focused]:not([disabled])) {
4283
4283
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
4284
4284
  }
4285
- `;v("vaadin-combo-box-item",[xi,ho],{moduleId:"lumo-combo-box-item"});/**
4285
+ `;g("vaadin-combo-box-item",[xi,cs],{moduleId:"lumo-combo-box-item"});/**
4286
4286
  * @license
4287
4287
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
4288
4288
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4289
- */const uo=g`
4289
+ */const us=v`
4290
4290
  [part~='loader'] {
4291
4291
  box-sizing: border-box;
4292
4292
  width: var(--lumo-icon-size-s);
@@ -4328,7 +4328,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4328
4328
  transform: rotate(360deg);
4329
4329
  }
4330
4330
  }
4331
- `,co=g`
4331
+ `,ps=v`
4332
4332
  [part='content'] {
4333
4333
  padding: 0;
4334
4334
  }
@@ -4349,7 +4349,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4349
4349
  :host([bottom-aligned]) [part~='overlay'] {
4350
4350
  margin-bottom: var(--lumo-space-xs);
4351
4351
  }
4352
- `,po=g`
4352
+ `,ms=v`
4353
4353
  [part~='loader'] {
4354
4354
  position: absolute;
4355
4355
  z-index: 1;
@@ -4357,24 +4357,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4357
4357
  top: var(--lumo-space-s);
4358
4358
  margin-inline: auto 0;
4359
4359
  }
4360
- `;v("vaadin-combo-box-overlay",[mi,fi,co,uo,po,g`
4360
+ `;g("vaadin-combo-box-overlay",[mi,fi,ps,us,ms,v`
4361
4361
  :host {
4362
4362
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
4363
4363
  --_vaadin-combo-box-items-container-border-style: solid;
4364
4364
  }
4365
- `],{moduleId:"lumo-combo-box-overlay"});const ym=g`
4365
+ `],{moduleId:"lumo-combo-box-overlay"});const Cm=v`
4366
4366
  [part='toggle-button']::before {
4367
4367
  content: var(--lumo-icons-dropdown);
4368
4368
  }
4369
- `;v("vaadin-combo-box",[ze,ym],{moduleId:"lumo-combo-box"});/**
4369
+ `;g("vaadin-combo-box",[ze,Cm],{moduleId:"lumo-combo-box"});/**
4370
4370
  * @license
4371
4371
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4372
4372
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4373
- */const mo=i=>class extends i{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,r){e==="hidden"&&r!==null?this.index=void 0:super.attributeChangedCallback(e,t,r)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,r){r===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
4373
+ */const fs=i=>class extends i{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,r){e==="hidden"&&r!==null?this.index=void 0:super.attributeChangedCallback(e,t,r)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,r){r===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
4374
4374
  * @license
4375
4375
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4376
4376
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4377
- */class wm extends mo(z(re(D))){static get template(){return A`
4377
+ */class km extends fs(z(re(D))){static get template(){return A`
4378
4378
  <style>
4379
4379
  :host {
4380
4380
  display: block;
@@ -4388,15 +4388,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4388
4388
  <div part="content">
4389
4389
  <slot></slot>
4390
4390
  </div>
4391
- `}static get is(){return"vaadin-combo-box-item"}}C(wm);/**
4391
+ `}static get is(){return"vaadin-combo-box-item"}}C(km);/**
4392
4392
  * @license
4393
4393
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4394
4394
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4395
- */const fo=i=>class extends jr(i){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!zr(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4395
+ */const _s=i=>class extends Gr(i){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Fr(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4396
4396
  * @license
4397
4397
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4398
4398
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4399
- */const xm=g`
4399
+ */const Em=v`
4400
4400
  #overlay {
4401
4401
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
4402
4402
  }
@@ -4406,17 +4406,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4406
4406
  flex-direction: column;
4407
4407
  height: 100%;
4408
4408
  }
4409
- `;v("vaadin-combo-box-overlay",[_i,xm],{moduleId:"vaadin-combo-box-overlay-styles"});class Cm extends fo(vi(re(z(D)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return A`
4409
+ `;g("vaadin-combo-box-overlay",[_i,Em],{moduleId:"vaadin-combo-box-overlay-styles"});class Im extends _s(gi(re(z(D)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return A`
4410
4410
  <div id="backdrop" part="backdrop" hidden></div>
4411
4411
  <div part="overlay" id="overlay">
4412
4412
  <div part="loader"></div>
4413
4413
  <div part="content" id="content"><slot></slot></div>
4414
4414
  </div>
4415
- `}}C(Cm);/**
4415
+ `}}C(Im);/**
4416
4416
  * @license
4417
4417
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4418
4418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4419
- */function ai(i,e){return i.split(".").reduce((t,r)=>t?t[r]:void 0,e)}/**
4419
+ */function ni(i,e){return i.split(".").reduce((t,r)=>t?t[r]:void 0,e)}/**
4420
4420
  * @license
4421
4421
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4422
4422
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -4424,11 +4424,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4424
4424
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
4425
4425
  * Code distributed by Google as part of the polymer project is also
4426
4426
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4427
- */const pa=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),km=pa&&pa[1]>=8,ma=3,Em={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,r)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,r)=>{e<this._scrollBottom&&(i=r),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=i-this._scrollPosition;const t=e>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const r=Math.round(e/this._physicalAverage);this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const r=this._getReusables(t);t?(this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length):(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length),this._update(r.indexes,t?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ii)}},_getReusables(i){let e,t,r;const n=[],a=this._hiddenContentSize*this._ratio,s=this._virtualStart,o=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,p=this._scrollBottom;for(i?(e=this._physicalStart,t=c-d):(e=this._physicalEnd,t=h-p);r=this._getPhysicalSizeIncrement(e),t-=r,!(n.length>=l||t<=a);)if(i){if(o+n.length+1>=this._virtualCount||d+r>=c-this._scrollOffset)break;n.push(e),d+=r,e=(e+1)%l}else{if(s-n.length<=0||d+this._physicalSize-r<=p)break;n.push(e),d-=r,e=e===0?l-1:e-1}return{indexes:n,physicalTop:d-this._scrollOffset}},_update(i,e){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const e=this._clamp(this._physicalCount+i,ma,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const r=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let n=0;n<e;n++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-r)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),Is):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),ii))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(ma))},_itemsChanged(i){i.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Ct))},_iterateItems(i,e){let t,r,n,a;if(arguments.length===2&&e){for(a=0;a<e.length;a++)if(t=e[a],r=this._computeVidx(t),(n=i.call(this,t,r))!=null)return n}else{for(t=this._physicalStart,r=this._virtualStart;t<this._physicalCount;t++,r++)if((n=i.call(this,t,r))!=null)return n;for(t=0;t<this._physicalStart;t++,r++)if((n=i.call(this,t,r))!=null)return n}},_computeVidx(i){return i>=this._physicalStart?this._virtualStart+(i-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+i},_positionItems(){this._adjustScrollPosition();let i=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${i}px`,0,this._physicalItems[e]),i+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(i){return this._physicalSizes[i]},_adjustScrollPosition(){const i=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(i!==0){this._physicalTop-=i;const e=this._scrollPosition;!km&&e>0&&this._resetScrollPosition(e-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(i||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(i){if(typeof i!="number"||i<0||i>this.items.length-1||(ct(),this._physicalCount===0))return;i=this._clamp(i,0,this._virtualCount-1),(!this._isIndexRendered(i)||i>=this._maxVirtualStart)&&(this._virtualStart=i-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,r=0;const n=this._hiddenContentSize;for(;t<i&&r<=n;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},Ct)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,e,t){return Math.min(t,Math.max(e,i))},_debounce(i,e,t){this._debouncers||(this._debouncers={}),this._debouncers[i]=te.debounce(this._debouncers[i],t,e.bind(this)),Ts(this._debouncers[i])}};/**
4427
+ */const fn=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),Tm=fn&&fn[1]>=8,_n=3,Pm={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const i=this._virtualCount;return Math.max(0,i-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(i){i=this._clamp(i,0,this._maxVirtualStart),this._virtualStartVal=i},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(i){i%=this._physicalCount,i<0&&(i=this._physicalCount+i),this._physicalStartVal=i},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(i){this._physicalCountVal=i},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let i=this._firstVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;i=this._iterateItems((t,r)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return r})||0,this._firstVisibleIndexVal=i}return i},get lastVisibleIndex(){let i=this._lastVisibleIndexVal;if(i==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,r)=>{e<this._scrollBottom&&(i=r),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=i}return i},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const i=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=i-this._scrollPosition;const t=e>=0;if(this._scrollPosition=i,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const r=Math.round(e/this._physicalAverage);this._virtualStart+=r,this._physicalStart+=r,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const r=this._getReusables(t);t?(this._physicalTop=r.physicalTop,this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length):(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length),this._update(r.indexes,t?null:r.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ii)}},_getReusables(i){let e,t,r;const a=[],n=this._hiddenContentSize*this._ratio,o=this._virtualStart,s=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,u=this._scrollPosition,p=this._scrollBottom;for(i?(e=this._physicalStart,t=u-d):(e=this._physicalEnd,t=h-p);r=this._getPhysicalSizeIncrement(e),t-=r,!(a.length>=l||t<=n);)if(i){if(s+a.length+1>=this._virtualCount||d+r>=u-this._scrollOffset)break;a.push(e),d+=r,e=(e+1)%l}else{if(o-a.length<=0||d+this._physicalSize-r<=p)break;a.push(e),d-=r,e=e===0?l-1:e-1}return{indexes:a,physicalTop:d-this._scrollOffset}},_update(i,e){if(!(i&&i.length===0||this._physicalCount===0)){if(this._assignModels(i),this._updateMetrics(i),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(i){const e=this._clamp(this._physicalCount+i,_n,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const r=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let a=0;a<e;a++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-r)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),So):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),ii))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const i=this._getReusables(!0);this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length,this._update(i.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(_n))},_itemsChanged(i){i.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Ct))},_iterateItems(i,e){let t,r,a,n;if(arguments.length===2&&e){for(n=0;n<e.length;n++)if(t=e[n],r=this._computeVidx(t),(a=i.call(this,t,r))!=null)return a}else{for(t=this._physicalStart,r=this._virtualStart;t<this._physicalCount;t++,r++)if((a=i.call(this,t,r))!=null)return a;for(t=0;t<this._physicalStart;t++,r++)if((a=i.call(this,t,r))!=null)return a}},_computeVidx(i){return i>=this._physicalStart?this._virtualStart+(i-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+i},_positionItems(){this._adjustScrollPosition();let i=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${i}px`,0,this._physicalItems[e]),i+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(i){return this._physicalSizes[i]},_adjustScrollPosition(){const i=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(i!==0){this._physicalTop-=i;const e=this._scrollPosition;!Tm&&e>0&&this._resetScrollPosition(e-i)}},_resetScrollPosition(i){this.scrollTarget&&i>=0&&(this._scrollTop=i,this._scrollPosition=this._scrollTop)},_updateScrollerSize(i){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(i||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(i){if(typeof i!="number"||i<0||i>this.items.length-1||(ut(),this._physicalCount===0))return;i=this._clamp(i,0,this._virtualCount-1),(!this._isIndexRendered(i)||i>=this._maxVirtualStart)&&(this._virtualStart=i-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,r=0;const a=this._hiddenContentSize;for(;t<i&&r<=a;)r+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+r),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},Ct)},_isIndexRendered(i){return i>=this._virtualStart&&i<=this._virtualEnd},_getPhysicalIndex(i){return(this._physicalStart+(i-this._virtualStart))%this._physicalCount},_clamp(i,e,t){return Math.min(t,Math.max(e,i))},_debounce(i,e,t){this._debouncers||(this._debouncers={}),this._debouncers[i]=te.debounce(this._debouncers[i],t,e.bind(this)),Ao(this._debouncers[i])}};/**
4428
4428
  * @license
4429
4429
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4430
4430
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4431
- */const Im=1e5,Bi=1e3;class _o{constructor({createElements:e,updateElement:t,scrollTarget:r,scrollContainer:n,elementsContainer:a,reorderElements:s}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=r,this.scrollContainer=n,this.elementsContainer=a||n,this.reorderElements=s,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:o}])=>{const l=o.width===0&&o.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",o=>this.__onWheel(o)),this.scrollTarget.addEventListener("virtualizer-element-focused",o=>this.__onElementFocused(o)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let r=Math.floor(e/this.size*this._virtualCount);this._virtualCount-r<t?(r=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):r<t?e<Bi?(r=e,this._vidxOffset=0):(r=Bi,this._vidxOffset=e-r):this._vidxOffset=e-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),ct(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const r=[];this.__getVisibleElements().forEach(n=>{n.__virtualIndex>=e&&n.__virtualIndex<=t&&(this.__updateElement(n,n.__virtualIndex,!0),r.push(n))}),this.__afterElementsUpdated(r)}_updateMetrics(e){ct();let t=0,r=0;const n=this._physicalAverageCount,a=this._physicalAverage;this._iterateItems((s,o)=>{r+=this._physicalSizes[s],this._physicalSizes[s]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[s])),t+=this._physicalSizes[s],this._physicalAverageCount+=this._physicalSizes[s]?1:0},e),this._physicalSize=this._physicalSize+t-r,this._physicalAverageCount!==n&&(this._physicalAverage=Math.round((a*n+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),r=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return r;const n=parseFloat(t.paddingBottom)||0,a=parseFloat(t.paddingTop)||0,s=parseFloat(t.borderBottomWidth)||0,o=parseFloat(t.borderTopWidth)||0;return r+n+a+s+o}__updateElement(e,t,r){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||r)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const r=t.offsetHeight;if(r===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=te.debounce(this.__placeholderClearDebouncer,Ct,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();const n=this.__elementHeightQueue.filter(a=>a!==void 0);this.__placeholderHeight=Math.round(n.reduce((a,s)=>a+s,0)/n.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(r=>r.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,r;if(e>0&&(t=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),ct(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const n=this.__getIndexScrollOffset(t);r!==void 0&&n!==void 0&&(this._scrollTop+=r-n)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),ct(),this._debounce("_update",this._update,ii)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Im)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),r=document.createDocumentFragment();return t.forEach(n=>{n.style.position="absolute",r.appendChild(n),this.__resizeObserver.observe(n)}),this.elementsContainer.appendChild(r),t}_assignModels(e){const t=[];this._iterateItems((r,n)=>{const a=this._physicalItems[r];a.hidden=n>=this.size,a.hidden?delete a.__lastUpdatedIndex:(a.__virtualIndex=n+(this._vidxOffset||0),this.__updateElement(a,a.__virtualIndex),t.push(a))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,r,n){n.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,r)||this.__nextFocusableSiblingMissing(t,r))&&this.flush();const n=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,n)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,n)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,r=this._getReusables(!t);r.indexes.length&&(this._physicalTop=r.physicalTop,t?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=te.debounce(this.__fixInvalidItemPositioningDebouncer,ye.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=te.debounce(this.__scrollReorderDebouncer,ye.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,r=this.adjustedFirstVisibleIndex===0,n=this.adjustedLastVisibleIndex===this.size-1;if(e&&!r||t&&!n){const a=t,s=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(a?-1:1),this._scrollHandler(),this._ratio=s}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=te.debounce(this.__debouncerWheelAnimationFrame,Ct,()=>{this._wheelAnimationFrame=!1});const r=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=te.debounce(this._debouncerIgnoreNewWheel,ye.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(e,t,r){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,r)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,r)}_canScroll(e,t,r){return r>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||r<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),r=this.__getFocusedElement(t)||t[0];if(!r)return;const n=r.__virtualIndex-e,a=t.indexOf(r)-n;if(a>0)for(let s=0;s<a;s++)this.elementsContainer.appendChild(t[s]);else if(a<0)for(let s=t.length+a;s<t.length;s++)this.elementsContainer.insertBefore(t[s],t[0]);if(pp){const{transform:s}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=s})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*t)}else{const r=this._vidxOffset,n=Bi,a=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<n&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,r!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-n&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,a),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-r)))}}}Object.setPrototypeOf(_o.prototype,Em);class Tm{constructor(e){this.__adapter=new _o(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4431
+ */const Sm=1e5,Bi=1e3;class vs{constructor({createElements:e,updateElement:t,scrollTarget:r,scrollContainer:a,elementsContainer:n,reorderElements:o}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=r,this.scrollContainer=a,this.elementsContainer=n||a,this.reorderElements=o,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:s}])=>{const l=s.width===0&&s.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",s=>this.__onWheel(s)),this.scrollTarget.addEventListener("virtualizer-element-focused",s=>this.__onElementFocused(s)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let r=Math.floor(e/this.size*this._virtualCount);this._virtualCount-r<t?(r=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):r<t?e<Bi?(r=e,this._vidxOffset=0):(r=Bi,this._vidxOffset=e-r):this._vidxOffset=e-r,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(r),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),ut(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const r=[];this.__getVisibleElements().forEach(a=>{a.__virtualIndex>=e&&a.__virtualIndex<=t&&(this.__updateElement(a,a.__virtualIndex,!0),r.push(a))}),this.__afterElementsUpdated(r)}_updateMetrics(e){ut();let t=0,r=0;const a=this._physicalAverageCount,n=this._physicalAverage;this._iterateItems((o,s)=>{r+=this._physicalSizes[o],this._physicalSizes[o]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[o])),t+=this._physicalSizes[o],this._physicalAverageCount+=this._physicalSizes[o]?1:0},e),this._physicalSize=this._physicalSize+t-r,this._physicalAverageCount!==a&&(this._physicalAverage=Math.round((n*a+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),r=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return r;const a=parseFloat(t.paddingBottom)||0,n=parseFloat(t.paddingTop)||0,o=parseFloat(t.borderBottomWidth)||0,s=parseFloat(t.borderTopWidth)||0;return r+a+n+o+s}__updateElement(e,t,r){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||r)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const r=t.offsetHeight;if(r===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=te.debounce(this.__placeholderClearDebouncer,Ct,()=>this._resizeHandler());else{this.__elementHeightQueue.push(r),this.__elementHeightQueue.shift();const a=this.__elementHeightQueue.filter(n=>n!==void 0);this.__placeholderHeight=Math.round(a.reduce((n,o)=>n+o,0)/a.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(r=>r.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,r;if(e>0&&(t=this.adjustedFirstVisibleIndex,r=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),ut(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const a=this.__getIndexScrollOffset(t);r!==void 0&&a!==void 0&&(this._scrollTop+=r-a)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),ut(),this._debounce("_update",this._update,ii)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,Sm)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),r=document.createDocumentFragment();return t.forEach(a=>{a.style.position="absolute",r.appendChild(a),this.__resizeObserver.observe(a)}),this.elementsContainer.appendChild(r),t}_assignModels(e){const t=[];this._iterateItems((r,a)=>{const n=this._physicalItems[r];n.hidden=a>=this.size,n.hidden?delete n.__lastUpdatedIndex:(n.__virtualIndex=a+(this._vidxOffset||0),this.__updateElement(n,n.__virtualIndex),t.push(n))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,r,a){a.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const r=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,r)||this.__nextFocusableSiblingMissing(t,r))&&this.flush();const a=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,a)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,a)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,r=this._getReusables(!t);r.indexes.length&&(this._physicalTop=r.physicalTop,t?(this._virtualStart-=r.indexes.length,this._physicalStart-=r.indexes.length):(this._virtualStart+=r.indexes.length,this._physicalStart+=r.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=te.debounce(this.__fixInvalidItemPositioningDebouncer,ye.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=te.debounce(this.__scrollReorderDebouncer,ye.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,r=this.adjustedFirstVisibleIndex===0,a=this.adjustedLastVisibleIndex===this.size-1;if(e&&!r||t&&!a){const n=t,o=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(n?-1:1),this._scrollHandler(),this._ratio=o}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=te.debounce(this.__debouncerWheelAnimationFrame,Ct,()=>{this._wheelAnimationFrame=!1});const r=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=te.debounce(this._debouncerIgnoreNewWheel,ye.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&r<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():r>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=r}_hasScrolledAncestor(e,t,r){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,r)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,r)}_canScroll(e,t,r){return r>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||r<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),r=this.__getFocusedElement(t)||t[0];if(!r)return;const a=r.__virtualIndex-e,n=t.indexOf(r)-a;if(n>0)for(let o=0;o<n;o++)this.elementsContainer.appendChild(t[o]);else if(n<0)for(let o=t.length+n;o<t.length;o++)this.elementsContainer.insertBefore(t[o],t[0]);if(_p){const{transform:o}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=o})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const r=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(r*t)}else{const r=this._vidxOffset,a=Bi,n=100;this._scrollTop===0?(this._vidxOffset=0,r!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<a&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex+(r-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,r!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-a&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,n),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-r)))}}}Object.setPrototypeOf(vs.prototype,Pm);class Am{constructor(e){this.__adapter=new vs(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4432
4432
  * @license
4433
4433
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4434
4434
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4436,11 +4436,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4436
4436
  * @license
4437
4437
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4438
4438
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4439
- */const go=i=>class extends i{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(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,r)=>t+r)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${hi()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));const n=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!n||e!==n.index)return;const a=n.getBoundingClientRect(),s=this.getBoundingClientRect(),o=a.bottom-s.bottom+this._viewportTotalPaddingBottom;o>0&&(this.scrollTop+=o)}_isItemSelected(e,t,r){return e instanceof xe?!1:r&&e!==void 0&&t!==void 0?ai(r,e)===ai(r,t):e===t}__initVirtualizer(){this.__virtualizer=new Tm({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const r=this.items[t],n=this.focusedIndex,a=this._isItemSelected(r,this.selectedItem,this.itemIdPath);e.setProperties({item:r,index:t,label:this.getItemLabel(r),selected:a,renderer:this.renderer,focused:!this.loading&&n===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(r):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",a.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),r instanceof xe&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,r=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||r&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4439
+ */const gs=i=>class extends i{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(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,r)=>t+r)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${hi()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let r=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),r=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(r=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,r));const a=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!a||e!==a.index)return;const n=a.getBoundingClientRect(),o=this.getBoundingClientRect(),s=n.bottom-o.bottom+this._viewportTotalPaddingBottom;s>0&&(this.scrollTop+=s)}_isItemSelected(e,t,r){return e instanceof xe?!1:r&&e!==void 0&&t!==void 0?ni(r,e)===ni(r,t):e===t}__initVirtualizer(){this.__virtualizer=new Am({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const r=this.items[t],a=this.focusedIndex,n=this._isItemSelected(r,this.selectedItem,this.itemIdPath);e.setProperties({item:r,index:t,label:this.getItemLabel(r),selected:n,renderer:this.renderer,focused:!this.loading&&a===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(r):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),r instanceof xe&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,r=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||r&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4440
4440
  * @license
4441
4441
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4442
4442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4443
- */class Pm extends go(D){static get is(){return"vaadin-combo-box-scroller"}static get template(){return A`
4443
+ */class Dm extends gs(D){static get is(){return"vaadin-combo-box-scroller"}static get template(){return A`
4444
4444
  <style>
4445
4445
  :host {
4446
4446
  display: block;
@@ -4467,27 +4467,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4467
4467
  <div id="selector">
4468
4468
  <slot></slot>
4469
4469
  </div>
4470
- `}}C(Pm);/**
4470
+ `}}C(Dm);/**
4471
4471
  * @license
4472
4472
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4473
4473
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4474
- */const Sm=i=>class extends en(i){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4474
+ */const Om=i=>class extends ia(i){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4475
4475
  * @license
4476
4476
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4477
4477
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4478
- */function si(i,e,t=0){let r=e;for(const n of i.subCaches){const a=n.parentCacheIndex;if(r<=a)break;if(r<=a+n.flatSize)return si(n,r-a-1,t+1);r-=n.flatSize}return{cache:i,item:i.items[r],index:r,page:Math.floor(r/i.pageSize),level:t}}function vo({getItemId:i},e,t,r=0,n=0){for(let a=0;a<e.items.length;a++){const s=e.items[a];if(s&&i(s)===i(t))return{cache:e,level:r,item:s,index:a,page:Math.floor(a/e.pageSize),subCache:e.getSubCache(a),flatIndex:n+e.getFlatIndex(a)}}for(const a of e.subCaches){const s=n+e.getFlatIndex(a.parentCacheIndex),o=vo({getItemId:i},a,t,r+1,s+1);if(o)return o}}function bo(i,[e,...t],r=0){e===1/0&&(e=i.size-1);const n=i.getFlatIndex(e),a=i.getSubCache(e);return a&&a.flatSize>0&&t.length?bo(a,t,r+n+1):r+n}/**
4478
+ */function oi(i,e,t=0){let r=e;for(const a of i.subCaches){const n=a.parentCacheIndex;if(r<=n)break;if(r<=n+a.flatSize)return oi(a,r-n-1,t+1);r-=a.flatSize}return{cache:i,item:i.items[r],index:r,page:Math.floor(r/i.pageSize),level:t}}function bs({getItemId:i},e,t,r=0,a=0){for(let n=0;n<e.items.length;n++){const o=e.items[n];if(o&&i(o)===i(t))return{cache:e,level:r,item:o,index:n,page:Math.floor(n/e.pageSize),subCache:e.getSubCache(n),flatIndex:a+e.getFlatIndex(n)}}for(const n of e.subCaches){const o=a+e.getFlatIndex(n.parentCacheIndex),s=bs({getItemId:i},n,t,r+1,o+1);if(s)return s}}function ys(i,[e,...t],r=0){e===1/0&&(e=i.size-1);const a=i.getFlatIndex(e),n=i.getSubCache(e);return n&&n.flatSize>0&&t.length?ys(n,t,r+a+1):r+a}/**
4479
4479
  * @license
4480
4480
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4481
4481
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4482
- */class tn{constructor(e,t,r,n,a){Q(this,"context"),Q(this,"pageSize"),Q(this,"items",[]),Q(this,"pendingRequests",{}),Q(this,"__subCacheByIndex",{}),Q(this,"__size",0),Q(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=r,this.parentCache=n,this.parentCacheIndex=a,this.__flatSize=r||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let r=0;r<e;r++)(t=this.items)[r]||(t[r]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(r=>{parseInt(r)*this.pageSize>=this.size&&delete this.pendingRequests[r]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const r=e*this.pageSize;t.forEach((n,a)=>{const s=r+a;(this.size===void 0||s<this.size)&&(this.items[s]=n)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new tn(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((r,n)=>{const a=n.parentCacheIndex;return t>a?r+n.flatSize:r},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=si(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:r}=si(this,e);return{cache:t,scaledIndex:r}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
4482
+ */class ra{constructor(e,t,r,a,n){Q(this,"context"),Q(this,"pageSize"),Q(this,"items",[]),Q(this,"pendingRequests",{}),Q(this,"__subCacheByIndex",{}),Q(this,"__size",0),Q(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=r,this.parentCache=a,this.parentCacheIndex=n,this.__flatSize=r||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let r=0;r<e;r++)(t=this.items)[r]||(t[r]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(r=>{parseInt(r)*this.pageSize>=this.size&&delete this.pendingRequests[r]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const r=e*this.pageSize;t.forEach((a,n)=>{const o=r+n;(this.size===void 0||o<this.size)&&(this.items[o]=a)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new ra(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((r,a)=>{const n=a.parentCacheIndex;return t>n?r+a.flatSize:r},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=oi(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:r}=oi(this,e);return{cache:t,scaledIndex:r}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
4483
4483
  * @license
4484
4484
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4485
4485
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4486
- */class Am extends EventTarget{constructor(e,{size:t,pageSize:r,isExpanded:n,getItemId:a,isPlaceholder:s,placeholder:o,dataProvider:l,dataProviderParams:d}){super(),Q(this,"host"),Q(this,"dataProvider"),Q(this,"dataProviderParams"),Q(this,"pageSize"),Q(this,"isExpanded"),Q(this,"getItemId"),Q(this,"rootCache"),Q(this,"placeholder"),Q(this,"isPlaceholder"),this.host=e,this.pageSize=r,this.getItemId=a,this.isExpanded=n,this.placeholder=o,this.isPlaceholder=s,this.dataProvider=l,this.dataProviderParams=d,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return si(this.rootCache,e)}getItemContext(e){return vo({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return bo(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:r,item:n}=this.getFlatIndexContext(e);this.__isItemLoaded(n)||this.__loadCachePage(t,r)}ensureFlatIndexHierarchy(e){const{cache:t,item:r,index:n}=this.getFlatIndexContext(e);if(this.__isItemLoaded(r)&&this.isExpanded(r)&&!t.getSubCache(n)){const a=t.createSubCache(n);this.__loadCachePage(a,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new tn(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let r={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(r=Gt(Gt({},r),this.dataProviderParams()));const n=(a,s)=>{e.pendingRequests[t]===n&&(s!==void 0?e.size=s:r.parentItem&&(e.size=a.length),e.setPage(t,a),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=n,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(r,n)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4486
+ */class Vm extends EventTarget{constructor(e,{size:t,pageSize:r,isExpanded:a,getItemId:n,isPlaceholder:o,placeholder:s,dataProvider:l,dataProviderParams:d}){super(),Q(this,"host"),Q(this,"dataProvider"),Q(this,"dataProviderParams"),Q(this,"pageSize"),Q(this,"isExpanded"),Q(this,"getItemId"),Q(this,"rootCache"),Q(this,"placeholder"),Q(this,"isPlaceholder"),this.host=e,this.pageSize=r,this.getItemId=n,this.isExpanded=a,this.placeholder=s,this.isPlaceholder=o,this.dataProvider=l,this.dataProviderParams=d,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return oi(this.rootCache,e)}getItemContext(e){return bs({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return ys(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:r,item:a}=this.getFlatIndexContext(e);this.__isItemLoaded(a)||this.__loadCachePage(t,r)}ensureFlatIndexHierarchy(e){const{cache:t,item:r,index:a}=this.getFlatIndexContext(e);if(this.__isItemLoaded(r)&&this.isExpanded(r)&&!t.getSubCache(a)){const n=t.createSubCache(a);this.__loadCachePage(n,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new ra(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let r={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(r=Gt(Gt({},r),this.dataProviderParams()));const a=(n,o)=>{e.pendingRequests[t]===a&&(o!==void 0?e.size=o:r.parentItem&&(e.size=n.length),e.setPage(t,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=a,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(r,a)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4487
4487
  * @license
4488
4488
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4489
4489
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4490
- */const yo=i=>class extends i{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new Am(this,{placeholder:new xe,isPlaceholder:e=>e instanceof xe,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const r=this.__getItemIndexByValue(this.filteredItems,t);(r<0||!this._getItemLabel(this.filteredItems[r]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
4490
+ */const ws=i=>class extends i{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new Vm(this,{placeholder:new xe,isPlaceholder:e=>e instanceof xe,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const r=this.__getItemIndexByValue(this.filteredItems,t);(r<0||!this._getItemLabel(this.filteredItems[r]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
4491
4491
  * @license
4492
4492
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4493
4493
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4495,11 +4495,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4495
4495
  * @license
4496
4496
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4497
4497
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4498
- */function fa(i){return i!=null}function _a(i,e){return i.findIndex(t=>t instanceof xe?!1:e(t))}const wo=i=>class extends wi(ke(Hr(Ne(Me(Tt(Je(i))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Ci(this),this.addController(new oo(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=n=>{n.innerHTML||n.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,n,a,s,o,l,d,h){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:n,selectedItem:a,itemIdPath:s,focusedIndex:o,renderer:l,theme:d,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(c){}}_openedOrItemsChanged(e,t,r,n){this._overlayOpened=e&&(n||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Lr(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(n=>n.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!hr&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?ai(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?ai(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{hr&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const n=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(n),n.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(fa(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,n=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&n>=0&&(this.selectedItem=e[n]);const a=this.__getItemIndexByValue(e,this._getItemValue(r));a>-1?this._focusedIndex=a:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!fa(t)?-1:_a(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:_a(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof xe)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(ui()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4498
+ */function vn(i){return i!=null}function gn(i,e){return i.findIndex(t=>t instanceof xe?!1:e(t))}const xs=i=>class extends wi(ke(Ur(Ne(Me(Tt(Je(i))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Ci(this),this.addController(new ds(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,r){super._propertiesChanged(e,t,r),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const r=this._overlayElement;r.renderer=a=>{a.innerHTML||a.appendChild(t)},r.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,r,a,n,o,s,l,d,h){if(e&&(r&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:r?t:[],opened:r,loading:a,selectedItem:n,itemIdPath:o,focusedIndex:s,renderer:l,theme:d,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(u){}}_openedOrItemsChanged(e,t,r,a){this._overlayOpened=e&&(a||r||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Rr(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const r=this._getItemElements().find(a=>a.index===e);r?t.setAttribute("aria-activedescendant",r.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!hr&&this.inputElement&&this.inputElement.focus():this._onClosed();const r=this._nativeInput;r&&(r.setAttribute("aria-expanded",!!e),e?r.setAttribute("aria-controls",this._scroller.id):r.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?ni(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?ni(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{hr&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const r=this._inputElementValue;this._lastCustomValue=r;const a=new CustomEvent("custom-value-set",{detail:r,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(a),a.defaultPrevented||(this.value=r)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,r={};this.filter===t?this._filterChanged(this.filter):r.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(r.opened=!0),this.setProperties(r)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(vn(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(r=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),r=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&r===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const r=t?t[this._focusedIndex]:null,a=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&a>=0&&(this.selectedItem=e[a]);const n=this.__getItemIndexByValue(e,this._getItemValue(r));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!vn(t)?-1:gn(e,r=>this._getItemValue(r)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:gn(e,r=>this._getItemLabel(r).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof xe)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(ci()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4499
4499
  * @license
4500
4500
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4501
4501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4502
- */v("vaadin-combo-box",yi,{moduleId:"vaadin-combo-box-styles"});class Dm extends yo(wo(Sm(bi(z(ue(D)))))){static get is(){return"vaadin-combo-box"}static get template(){return A`
4502
+ */g("vaadin-combo-box",yi,{moduleId:"vaadin-combo-box-styles"});class Mm extends ws(xs(Om(bi(z(ce(D)))))){static get is(){return"vaadin-combo-box"}static get template(){return A`
4503
4503
  <style>
4504
4504
  :host([opened]) {
4505
4505
  pointer-events: auto;
@@ -4544,11 +4544,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4544
4544
  ></vaadin-combo-box-overlay>
4545
4545
 
4546
4546
  <slot name="tooltip"></slot>
4547
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Pt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new St(this.inputElement,this._labelController)),this._tooltipController=new Ce(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}C(Dm);/**
4547
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Pt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new St(this.inputElement,this._labelController)),this._tooltipController=new Ce(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}C(Mm);/**
4548
4548
  * @license
4549
4549
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4550
4550
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4551
- */const Om=g`
4551
+ */const Nm=v`
4552
4552
  :host {
4553
4553
  font-size: var(--lumo-font-size-xxs);
4554
4554
  line-height: 1;
@@ -4637,27 +4637,27 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4637
4637
  -webkit-text-fill-color: var(--lumo-disabled-text-color);
4638
4638
  pointer-events: none;
4639
4639
  }
4640
- `;v("vaadin-multi-select-combo-box-chip",[qr,Om],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4640
+ `;g("vaadin-multi-select-combo-box-chip",[jr,Nm],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4641
4641
  * @license
4642
4642
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4643
4643
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4644
- */const Vm=g`
4644
+ */const zm=v`
4645
4645
  @media (any-hover: hover) {
4646
4646
  :host(:hover[readonly]) {
4647
4647
  background-color: transparent;
4648
4648
  cursor: default;
4649
4649
  }
4650
4650
  }
4651
- `;v("vaadin-multi-select-combo-box-item",[xi,ho,Vm],{moduleId:"lumo-multi-select-combo-box-item"});v("vaadin-multi-select-combo-box-overlay",[mi,fi,co,uo,po,g`
4651
+ `;g("vaadin-multi-select-combo-box-item",[xi,cs,zm],{moduleId:"lumo-multi-select-combo-box-item"});g("vaadin-multi-select-combo-box-overlay",[mi,fi,ps,us,ms,v`
4652
4652
  :host {
4653
4653
  --_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
4654
4654
  --_vaadin-multi-select-combo-box-items-container-border-style: solid;
4655
4655
  }
4656
- `],{moduleId:"lumo-multi-select-combo-box-overlay"});v("vaadin-multi-select-combo-box-container",g`
4656
+ `],{moduleId:"lumo-multi-select-combo-box-overlay"});g("vaadin-multi-select-combo-box-container",v`
4657
4657
  :host([auto-expand-vertically]) {
4658
4658
  padding-block: var(--lumo-space-xs);
4659
4659
  }
4660
- `,{moduleId:"lumo-multi-select-combo-box-container"});const Mm=g`
4660
+ `,{moduleId:"lumo-multi-select-combo-box-container"});const Lm=v`
4661
4661
  :host([has-value]) {
4662
4662
  padding-inline-start: 0;
4663
4663
  }
@@ -4710,11 +4710,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4710
4710
  color: var(--lumo-contrast-60pct);
4711
4711
  cursor: var(--lumo-clickable-cursor);
4712
4712
  }
4713
- `;v("vaadin-multi-select-combo-box",[ze,Mm],{moduleId:"lumo-multi-select-combo-box"});/**
4713
+ `;g("vaadin-multi-select-combo-box",[ze,Lm],{moduleId:"lumo-multi-select-combo-box"});/**
4714
4714
  * @license
4715
4715
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4716
4716
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4717
- */class Nm extends z(D){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return A`
4717
+ */class Fm extends z(D){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return A`
4718
4718
  <style>
4719
4719
  :host {
4720
4720
  display: inline-flex;
@@ -4743,11 +4743,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4743
4743
  </style>
4744
4744
  <div part="label">[[label]]</div>
4745
4745
  <div part="remove-button" on-click="_onRemoveClick"></div>
4746
- `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}C(Nm);/**
4746
+ `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}C(Fm);/**
4747
4747
  * @license
4748
4748
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4749
4749
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4750
- */v("vaadin-multi-select-combo-box-container",g`
4750
+ */g("vaadin-multi-select-combo-box-container",v`
4751
4751
  #wrapper {
4752
4752
  display: flex;
4753
4753
  width: 100%;
@@ -4757,11 +4757,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4757
4757
  :host([auto-expand-vertically]) #wrapper {
4758
4758
  flex-wrap: wrap;
4759
4759
  }
4760
- `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let Rt;class zm extends Us{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Rt){Rt=super.template.cloneNode(!0);const e=Rt.content,t=e.querySelectorAll("slot"),r=document.createElement("div");r.setAttribute("id","wrapper"),e.insertBefore(r,t[2]),r.appendChild(t[0]),r.appendChild(t[1])}return Rt}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}C(zm);/**
4760
+ `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let Rt;class Rm extends Wo{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Rt){Rt=super.template.cloneNode(!0);const e=Rt.content,t=e.querySelectorAll("slot"),r=document.createElement("div");r.setAttribute("id","wrapper"),e.insertBefore(r,t[2]),r.appendChild(t[0]),r.appendChild(t[1])}return Rt}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}C(Rm);/**
4761
4761
  * @license
4762
4762
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4763
4763
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4764
- */class Lm extends mo(z(re(D))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return A`
4764
+ */class $m extends fs(z(re(D))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return A`
4765
4765
  <style>
4766
4766
  :host {
4767
4767
  display: block;
@@ -4775,11 +4775,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4775
4775
  <div part="content">
4776
4776
  <slot></slot>
4777
4777
  </div>
4778
- `}}C(Lm);/**
4778
+ `}}C($m);/**
4779
4779
  * @license
4780
4780
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4781
4781
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4782
- */const Fm=g`
4782
+ */const Hm=v`
4783
4783
  #overlay {
4784
4784
  width: var(
4785
4785
  --vaadin-multi-select-combo-box-overlay-width,
@@ -4792,17 +4792,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4792
4792
  flex-direction: column;
4793
4793
  height: 100%;
4794
4794
  }
4795
- `;v("vaadin-multi-select-combo-box-overlay",[_i,Fm],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Rm extends fo(vi(re(z(D)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return A`
4795
+ `;g("vaadin-multi-select-combo-box-overlay",[_i,Hm],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Bm extends _s(gi(re(z(D)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return A`
4796
4796
  <div id="backdrop" part="backdrop" hidden></div>
4797
4797
  <div part="overlay" id="overlay">
4798
4798
  <div part="loader"></div>
4799
4799
  <div part="content" id="content"><slot></slot></div>
4800
4800
  </div>
4801
- `}}C(Rm);/**
4801
+ `}}C(Bm);/**
4802
4802
  * @license
4803
4803
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4804
4804
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4805
- */class $m extends go(D){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return A`
4805
+ */class Um extends gs(D){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return A`
4806
4806
  <style>
4807
4807
  :host {
4808
4808
  display: block;
@@ -4829,11 +4829,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4829
4829
  <div id="selector">
4830
4830
  <slot></slot>
4831
4831
  </div>
4832
- `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,r){return e instanceof xe||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,r)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}C($m);/**
4832
+ `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,r){return e instanceof xe||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,r)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}C(Um);/**
4833
4833
  * @license
4834
4834
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4835
4835
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4836
- */class Hm extends yo(wo(z(D))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return A`
4836
+ */class qm extends ws(xs(z(D))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return A`
4837
4837
  <style>
4838
4838
  :host([opened]) {
4839
4839
  pointer-events: auto;
@@ -4851,15 +4851,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4851
4851
  no-vertical-overlap
4852
4852
  restore-focus-node="[[inputElement]]"
4853
4853
  ></vaadin-multi-select-combo-box-overlay>
4854
- `}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&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(r=>this._comboBox._findIndex(r,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_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(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof xe||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}C(Hm);/**
4854
+ `}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&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(r=>this._comboBox._findIndex(r,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_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(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof xe||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}C(qm);/**
4855
4855
  * @license
4856
4856
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4857
4857
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4858
- */const $t=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),Bm=B(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),$t.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,$t.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),$t.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&$t.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4858
+ */const $t=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),Wm=B(i=>class extends i{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),$t.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,$t.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),$t.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&$t.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4859
4859
  * @license
4860
4860
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4861
4861
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4862
- */const Um=g`
4862
+ */const jm=v`
4863
4863
  :host {
4864
4864
  --input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
4865
4865
  --_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
@@ -4897,7 +4897,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4897
4897
  :host([auto-expand-horizontally]) [class$='container'] {
4898
4898
  width: auto;
4899
4899
  }
4900
- `;v("vaadin-multi-select-combo-box",[yi,Um],{moduleId:"vaadin-multi-select-combo-box-styles"});class qm extends Bm(bi(z(ue(D)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return A`
4900
+ `;g("vaadin-multi-select-combo-box",[yi,jm],{moduleId:"vaadin-multi-select-combo-box-styles"});class Ym extends Wm(bi(z(ce(D)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return A`
4901
4901
  <div class="vaadin-multi-select-combo-box-container">
4902
4902
  <div part="label">
4903
4903
  <slot name="label"></slot>
@@ -4973,7 +4973,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4973
4973
  color: transparent !important;
4974
4974
  forced-color-adjust: none;
4975
4975
  }
4976
- `]}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 Pt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new St(this.inputElement,this._labelController)),this._tooltipController=new Ce(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new he(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),Ci(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),qt(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,r){if(r&&e){for(let n=0;n<t.length;n++)if(t[n]&&t[n][r]===e[r])return n;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,r){const n=t?"selected":"deselected",a=this.i18n.total.replace("{count}",r||0);qt(`${e} ${this.i18n[n]} ${a}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),n=this._getItemLabel(e);let a=!1;if(r!==-1){const s=this._lastFilter;if(s&&s.toLowerCase()===n.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),a=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(n,a,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,r){e?r||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",n=>this._onItemRemoved(n)),t.addEventListener("mousedown",n=>this._preventBlur(n)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const r=getComputedStyle(e),n=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",n}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(s=>{s.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let n=t-r;e.length>1&&(n-=this.__getOverflowWidth());const a=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const s=[];for(let d=e.length-1,h=null;d>=0;d--){const c=this.__createChip(e[d]);this.insertBefore(c,h),h=c,s.unshift(c)}const o=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<r){for(;s.length>1;){s.pop().remove(),o.unshift(e.pop());const d=o.length>0?r+this.__getOverflowWidth():r;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}s.length===1&&(s[0].style.maxWidth=`${Math.max(a,n)}px`)}this._overflowItems=o;return}for(let s=e.length-1,o=null;s>=0;s--){const l=this.__createChip(e[s]);if(this.insertBefore(l,o),!this.autoExpandVertically&&this.$.chips.clientWidth>n)if(o===null)l.style.maxWidth=`${Math.max(a,n)}px`;else{l.remove();break}e.pop(),o=l}this._overflowItems=e}__updateOverflowChip(e,t,r,n){if(e){const a=t.length;e.label=`${a}`,e.setAttribute("count",`${a}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",a===0),e.disabled=r,e.readonly=n}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let n;this.__isRTL?r===e.length-1?n=-1:r>-1&&(n=r+1):r===-1?n=e.length-1:r>0&&(n=r-1),n!==void 0&&(this._focusedChipIndex=n)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let n;this.__isRTL?r===-1?n=e.length-1:r>0&&(n=r-1):r===e.length-1?n=-1:r>-1&&(n=r+1),n!==void 0&&(this._focusedChipIndex=n)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const r=this._chips;if(r.forEach((n,a)=>{n.toggleAttribute("focused",a===e)}),e>-1){const n=r[e].item,a=this._getItemLabel(n);qt(`${a} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}C(qm);v("vaadin-notification-card",g`
4976
+ `]}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 Pt(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new St(this.inputElement,this._labelController)),this._tooltipController=new Ce(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new he(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),Ci(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),qt(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,r){if(r&&e){for(let a=0;a<t.length;a++)if(t[a]&&t[a][r]===e[r])return a;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,r){const a=t?"selected":"deselected",n=this.i18n.total.replace("{count}",r||0);qt(`${e} ${this.i18n[a]} ${n}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const r=this._getItemLabel(e);this.__announceItem(r,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],r=this._findIndex(e,t,this.itemIdPath),a=this._getItemLabel(e);let n=!1;if(r!==-1){const o=this._lastFilter;if(o&&o.toLowerCase()===a.toLowerCase()){this.__clearInternalValue();return}t.splice(r,1)}else t.push(e),n=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(a,n,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,r){e?r||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const r=this._getItemLabel(e);return t.label=r,t.setAttribute("title",r),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",a=>this._onItemRemoved(a)),t.addEventListener("mousedown",a=>this._preventBlur(a)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const r=getComputedStyle(e),a=e.clientWidth+parseInt(r.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",a}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(o=>{o.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,r=parseInt(getComputedStyle(this.inputElement).flexBasis);let a=t-r;e.length>1&&(a-=this.__getOverflowWidth());const n=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const o=[];for(let d=e.length-1,h=null;d>=0;d--){const u=this.__createChip(e[d]);this.insertBefore(u,h),h=u,o.unshift(u)}const s=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<r){for(;o.length>1;){o.pop().remove(),s.unshift(e.pop());const d=s.length>0?r+this.__getOverflowWidth():r;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}o.length===1&&(o[0].style.maxWidth=`${Math.max(n,a)}px`)}this._overflowItems=s;return}for(let o=e.length-1,s=null;o>=0;o--){const l=this.__createChip(e[o]);if(this.insertBefore(l,s),!this.autoExpandVertically&&this.$.chips.clientWidth>a)if(s===null)l.style.maxWidth=`${Math.max(n,a)}px`;else{l.remove();break}e.pop(),s=l}this._overflowItems=e}__updateOverflowChip(e,t,r,a){if(e){const n=t.length;e.label=`${n}`,e.setAttribute("count",`${n}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",n===0),e.disabled=r,e.readonly=a}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let a;this.__isRTL?r===e.length-1?a=-1:r>-1&&(a=r+1):r===-1?a=e.length-1:r>0&&(a=r-1),a!==void 0&&(this._focusedChipIndex=a)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const r=this._focusedChipIndex;r!==-1&&t.preventDefault();let a;this.__isRTL?r===-1?a=e.length-1:r>0&&(a=r-1):r===e.length-1?a=-1:r>-1&&(a=r+1),a!==void 0&&(this._focusedChipIndex=a)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const r=this._chips;if(r.forEach((a,n)=>{a.toggleAttribute("focused",n===e)}),e>-1){const a=r[e].item,n=this._getItemLabel(a);qt(`${n} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}C(Ym);g("vaadin-notification-card",v`
4977
4977
  :host {
4978
4978
  position: relative;
4979
4979
  margin: var(--lumo-space-s);
@@ -5191,11 +5191,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5191
5191
  * @license
5192
5192
  * Copyright 2020 Google LLC
5193
5193
  * SPDX-License-Identifier: BSD-3-Clause
5194
- */const Wm=(i,e)=>(i==null?void 0:i._$litType$)!==void 0;/**
5194
+ */const Gm=(i,e)=>(i==null?void 0:i._$litType$)!==void 0;/**
5195
5195
  * @license
5196
5196
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5197
5197
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5198
- */class jm extends Ks(z(ue(D))){static get template(){return A`
5198
+ */class Km extends Xo(z(ce(D))){static get template(){return A`
5199
5199
  <style>
5200
5200
  :host {
5201
5201
  position: fixed;
@@ -5262,7 +5262,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5262
5262
  <div region="bottom-end"><slot name="bottom-end"></slot></div>
5263
5263
  </div>
5264
5264
  <div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
5265
- `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Wr&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.bottom=`${r-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class Ym extends z(D){static get template(){return A`
5265
+ `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Yr&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,r=document.documentElement.clientHeight;t&&r>e?this.style.bottom=`${r-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class Qm extends z(D){static get template(){return A`
5266
5266
  <style>
5267
5267
  :host {
5268
5268
  display: block;
@@ -5284,14 +5284,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5284
5284
  <slot></slot>
5285
5285
  </div>
5286
5286
  </div>
5287
- `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class me extends wi(ja(ue(D))){static get template(){return A`
5287
+ `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class me extends wi(Gn(ce(D))){static get template(){return A`
5288
5288
  <style>
5289
5289
  :host {
5290
5290
  display: none !important;
5291
5291
  }
5292
5292
  </style>
5293
5293
  <vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
5294
- `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return Wm(e)?me._createAndShowNotification(r=>{Wa(e,r)},t):me._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(me.is);return t&&Number.isFinite(t.duration)&&(r.duration=t.duration),t&&t.position&&(r.position=t.position),t&&t.theme&&r.setAttribute("theme",t.theme),r.renderer=e,document.body.appendChild(r),r.opened=!0,r.addEventListener("opened-changed",n=>{n.detail.value||r.remove()}),r}get _container(){return me._container||(me._container=document.createElement("vaadin-notification-container"),document.body.appendChild(me._container)),me._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Ci(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,r){if(!r)return;const n=this._oldRenderer!==e;this._oldRenderer=e,n&&(r.innerHTML="",delete r._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}C(jm);C(Ym);C(me);const xo=g`
5294
+ `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return Gm(e)?me._createAndShowNotification(r=>{Yn(e,r)},t):me._createAndShowNotification(r=>{r.innerText=e},t)}static _createAndShowNotification(e,t){const r=document.createElement(me.is);return t&&Number.isFinite(t.duration)&&(r.duration=t.duration),t&&t.position&&(r.position=t.position),t&&t.theme&&r.setAttribute("theme",t.theme),r.renderer=e,document.body.appendChild(r),r.opened=!0,r.addEventListener("opened-changed",a=>{a.detail.value||r.remove()}),r}get _container(){return me._container||(me._container=document.createElement("vaadin-notification-container"),document.body.appendChild(me._container)),me._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Ci(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,r){if(!r)return;const a=this._oldRenderer!==e;this._oldRenderer=e,a&&(r.innerHTML="",delete r._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}C(Km);C(Qm);C(me);const Cs=v`
5295
5295
  :host {
5296
5296
  -webkit-tap-highlight-color: transparent;
5297
5297
  --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
@@ -5305,11 +5305,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5305
5305
  margin: var(--lumo-space-s) var(--lumo-border-radius-m);
5306
5306
  background-color: var(--lumo-contrast-10pct);
5307
5307
  }
5308
- `;v("vaadin-list-box",xo,{moduleId:"lumo-list-box"});/**
5308
+ `;g("vaadin-list-box",Cs,{moduleId:"lumo-list-box"});/**
5309
5309
  * @license
5310
5310
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5311
5311
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5312
- */v("vaadin-select-item",xi,{moduleId:"lumo-select-item"});v("vaadin-select-list-box",xo,{moduleId:"lumo-select-list-box"});const Gm=g`
5312
+ */g("vaadin-select-item",xi,{moduleId:"lumo-select-item"});g("vaadin-select-list-box",Cs,{moduleId:"lumo-select-list-box"});const Xm=v`
5313
5313
  :host(:not([theme*='align'])) ::slotted([slot='value']) {
5314
5314
  text-align: start;
5315
5315
  }
@@ -5352,7 +5352,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5352
5352
  --_lumo-selected-item-height: var(--lumo-size-s);
5353
5353
  --_lumo-selected-item-padding: 0;
5354
5354
  }
5355
- `;v("vaadin-select",[ze,Gm],{moduleId:"lumo-select"});v("vaadin-select-value-button",g`
5355
+ `;g("vaadin-select",[ze,Xm],{moduleId:"lumo-select"});g("vaadin-select-value-button",v`
5356
5356
  :host {
5357
5357
  font-family: var(--lumo-font-family);
5358
5358
  font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
@@ -5371,7 +5371,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5371
5371
  ::slotted(*:hover) {
5372
5372
  background-color: transparent;
5373
5373
  }
5374
- `,{moduleId:"lumo-select-value-button"});const Km=g`
5374
+ `,{moduleId:"lumo-select-value-button"});const Jm=v`
5375
5375
  :host {
5376
5376
  --_lumo-item-selected-icon-display: block;
5377
5377
  }
@@ -5407,15 +5407,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5407
5407
  :host([theme~='align-center']) {
5408
5408
  text-align: center;
5409
5409
  }
5410
- `;v("vaadin-select-overlay",[Ur,Km],{moduleId:"lumo-select-overlay"});/**
5410
+ `;g("vaadin-select-overlay",[Wr,Jm],{moduleId:"lumo-select-overlay"});/**
5411
5411
  * @license
5412
5412
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5413
5413
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5414
- */const Qm=i=>class extends Mr(Ne(i)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
5414
+ */const Zm=i=>class extends zr(Ne(i)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
5415
5415
  * @license
5416
5416
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5417
5417
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5418
- */class Xm extends Qm(z(re(D))){static get is(){return"vaadin-select-item"}static get template(){return A`
5418
+ */class ef extends Zm(z(re(D))){static get is(){return"vaadin-select-item"}static get template(){return A`
5419
5419
  <style>
5420
5420
  :host {
5421
5421
  display: inline-block;
@@ -5429,23 +5429,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5429
5429
  <div part="content">
5430
5430
  <slot></slot>
5431
5431
  </div>
5432
- `}ready(){super.ready(),this.setAttribute("role","option")}}C(Xm);/**
5432
+ `}ready(){super.ready(),this.setAttribute("role","option")}}C(ef);/**
5433
5433
  * @license
5434
5434
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5435
5435
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5436
- */function Jm(i,e){const{scrollLeft:t}=i;return e!=="rtl"?t:i.scrollWidth-i.clientWidth+t}function Zm(i,e,t){e!=="rtl"?i.scrollLeft=t:i.scrollLeft=i.clientWidth-i.scrollWidth+t}/**
5436
+ */function tf(i,e){const{scrollLeft:t}=i;return e!=="rtl"?t:i.scrollWidth-i.clientWidth+t}function rf(i,e,t){e!=="rtl"?i.scrollLeft=t:i.scrollLeft=i.clientWidth-i.scrollWidth+t}/**
5437
5437
  * @license
5438
5438
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
5439
5439
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5440
- */const ef=i=>class extends Me(i){get focused(){return(this._getItems()||[]).find(Lr)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,r=>!or(r));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,r=this._getItems()||[],n=r.indexOf(this.focused);let a,s;const o=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(s=-o,a=n-o):this.__isNextKey(t)?(s=o,a=n+o):t==="Home"?(s=1,a=0):t==="End"&&(s=-1,a=r.length-1),a=this._getAvailableIndex(r,a,s,l=>!or(l)),a>=0&&(e.preventDefault(),this._focus(a,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const r=this._getItems();this._focusItem(r[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,r,n){const a=e.length;let s=t;for(let o=0;typeof s=="number"&&o<a;o+=1,s+=r||1){s<0?s=a-1:s>=a&&(s=0);const l=e[s];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,n))return s}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
5440
+ */const af=i=>class extends Me(i){get focused(){return(this._getItems()||[]).find(Rr)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,r=>!sr(r));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,r=this._getItems()||[],a=r.indexOf(this.focused);let n,o;const s=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(o=-s,n=a-s):this.__isNextKey(t)?(o=s,n=a+s):t==="Home"?(o=1,n=0):t==="End"&&(o=-1,n=r.length-1),n=this._getAvailableIndex(r,n,o,l=>!sr(l)),n>=0&&(e.preventDefault(),this._focus(n,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const r=this._getItems();this._focusItem(r[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,r,a){const n=e.length;let o=t;for(let s=0;typeof o=="number"&&s<n;s+=1,o+=r||1){o<0?o=n-1:o>=n&&(o=0);const l=e[o];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,a))return o}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
5441
5441
  * @license
5442
5442
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5443
5443
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5444
- */const tf=i=>class extends ef(i){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,r=>r.tabIndex===0&&!or(r));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Ar(e,()=>{this._setItems(this._filterItems(Ps(this)))})}_getItems(){return this.items}_enhanceItems(e,t,r,n){if(!n&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(s=>{t?s.setAttribute("orientation",t):s.removeAttribute("orientation")}),this._setFocusable(r<0||!r?0:r);const a=e[r];e.forEach(s=>{s.selected=s===a}),a&&!a.disabled&&this._scrollToItem(r)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let r;t&&!t.disabled&&(r=this.items.indexOf(t))>=0&&(this.selected=r)}_searchKey(e,t){this._searchReset=te.debounce(this._searchReset,ye.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(n=>this.__isMatchingKey(n))||(this._searchBuf=t.toLowerCase());const r=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,r,1,n=>this.__isMatchingKey(n)&&getComputedStyle(n).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,r=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const n=this._searchKey(r,t);n>=0&&this._focus(n);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(r=>{r.tabIndex=r===t?0:-1})}_focus(e){this.items.forEach((t,r)=>{t.focused=r===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const r=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],n=this._scrollerElement.getBoundingClientRect(),a=(this.items[e+1]||t).getBoundingClientRect(),s=(this.items[e-1]||t).getBoundingClientRect();let o=0;!this._isRTL&&a[r[1]]>=n[r[1]]||this._isRTL&&a[r[1]]<=n[r[1]]?o=a[r[1]]-n[r[1]]:(!this._isRTL&&s[r[0]]<=n[r[0]]||this._isRTL&&s[r[0]]>=n[r[0]])&&(o=s[r[0]]-n[r[0]]),this._scroll(o)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",r=Jm(this._scrollerElement,t)+e;Zm(this._scrollerElement,t,r)}}};/**
5444
+ */const nf=i=>class extends af(i){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,r=>r.tabIndex===0&&!sr(r));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Ar(e,()=>{this._setItems(this._filterItems(Do(this)))})}_getItems(){return this.items}_enhanceItems(e,t,r,a){if(!a&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(o=>{t?o.setAttribute("orientation",t):o.removeAttribute("orientation")}),this._setFocusable(r<0||!r?0:r);const n=e[r];e.forEach(o=>{o.selected=o===n}),n&&!n.disabled&&this._scrollToItem(r)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let r;t&&!t.disabled&&(r=this.items.indexOf(t))>=0&&(this.selected=r)}_searchKey(e,t){this._searchReset=te.debounce(this._searchReset,ye.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(a=>this.__isMatchingKey(a))||(this._searchBuf=t.toLowerCase());const r=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,r,1,a=>this.__isMatchingKey(a)&&getComputedStyle(a).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,r=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const a=this._searchKey(r,t);a>=0&&this._focus(a);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(r=>{r.tabIndex=r===t?0:-1})}_focus(e){this.items.forEach((t,r)=>{t.focused=r===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const r=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],a=this._scrollerElement.getBoundingClientRect(),n=(this.items[e+1]||t).getBoundingClientRect(),o=(this.items[e-1]||t).getBoundingClientRect();let s=0;!this._isRTL&&n[r[1]]>=a[r[1]]||this._isRTL&&n[r[1]]<=a[r[1]]?s=n[r[1]]-a[r[1]]:(!this._isRTL&&o[r[0]]<=a[r[0]]||this._isRTL&&o[r[0]]>=a[r[0]])&&(s=o[r[0]]-a[r[0]]),this._scroll(s)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",r=tf(this._scrollerElement,t)+e;rf(this._scrollerElement,t,r)}}};/**
5445
5445
  * @license
5446
5446
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5447
5447
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5448
- */class rf extends tf(z(re(ke(D)))){static get is(){return"vaadin-select-list-box"}static get template(){return A`
5448
+ */class of extends nf(z(re(ke(D)))){static get is(){return"vaadin-select-list-box"}static get template(){return A`
5449
5449
  <style>
5450
5450
  :host {
5451
5451
  display: flex;
@@ -5465,15 +5465,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5465
5465
  <div part="items">
5466
5466
  <slot></slot>
5467
5467
  </div>
5468
- `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}C(rf);/**
5468
+ `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}C(of);/**
5469
5469
  * @license
5470
5470
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5471
5471
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5472
- */const nf=i=>class extends jr(vi(re(i))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const r="--vaadin-select-overlay-width",n=getComputedStyle(t).getPropertyValue(r);n===""?this.style.removeProperty(r):this.style.setProperty(r,n)}}};/**
5472
+ */const sf=i=>class extends Gr(gi(re(i))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const r="--vaadin-select-overlay-width",a=getComputedStyle(t).getPropertyValue(r);a===""?this.style.removeProperty(r):this.style.setProperty(r,a)}}};/**
5473
5473
  * @license
5474
5474
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5475
5475
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5476
- */const af=g`
5476
+ */const lf=v`
5477
5477
  :host {
5478
5478
  align-items: flex-start;
5479
5479
  justify-content: flex-start;
@@ -5488,18 +5488,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5488
5488
  outline: 3px solid;
5489
5489
  }
5490
5490
  }
5491
- `;v("vaadin-select-overlay",[_i,af],{moduleId:"vaadin-select-overlay-styles"});class sf extends nf(z(D)){static get is(){return"vaadin-select-overlay"}static get template(){return A`
5491
+ `;g("vaadin-select-overlay",[_i,lf],{moduleId:"vaadin-select-overlay-styles"});class df extends sf(z(D)){static get is(){return"vaadin-select-overlay"}static get template(){return A`
5492
5492
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
5493
5493
  <div part="overlay" id="overlay" tabindex="0">
5494
5494
  <div part="content" id="content">
5495
5495
  <slot></slot>
5496
5496
  </div>
5497
5497
  </div>
5498
- `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}C(sf);/**
5498
+ `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}C(df);/**
5499
5499
  * @license
5500
5500
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5501
5501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5502
- */const of=g`
5502
+ */const hf=v`
5503
5503
  :host {
5504
5504
  display: inline-block;
5505
5505
  position: relative;
@@ -5545,17 +5545,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5545
5545
  * @license
5546
5546
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5547
5547
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5548
- */v("vaadin-select-value-button",of,{moduleId:"vaadin-select-value-button-styles"});class lf extends Yr(z(D)){static get is(){return"vaadin-select-value-button"}static get template(){return A`
5548
+ */g("vaadin-select-value-button",hf,{moduleId:"vaadin-select-value-button-styles"});class cf extends Kr(z(D)){static get is(){return"vaadin-select-value-button"}static get template(){return A`
5549
5549
  <div class="vaadin-button-container">
5550
5550
  <span part="label">
5551
5551
  <slot></slot>
5552
5552
  </span>
5553
5553
  </div>
5554
- `}}C(lf);/**
5554
+ `}}C(cf);/**
5555
5555
  * @license
5556
5556
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
5557
5557
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5558
- */const df=g`
5558
+ */const uf=v`
5559
5559
  .sr-only {
5560
5560
  border: 0 !important;
5561
5561
  clip: rect(1px, 1px, 1px, 1px) !important;
@@ -5573,15 +5573,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5573
5573
  * @license
5574
5574
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
5575
5575
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5576
- */class hf extends he{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,r)=>{r._setFocusElement(t),r.ariaTarget=t,r.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5576
+ */class pf extends he{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,r)=>{r._setFocusElement(t),r.ariaTarget=t,r.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5577
5577
  * @license
5578
5578
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5579
5579
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5580
- */const uf=i=>class extends wi(ci(Fr(Me(pi(i))))){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}-${hi()}`,this._srLabelController=new $s(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 hf(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new Zr(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new Ce(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(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const r=t.composedPath().find(n=>n._hasVaadinItemMixin);this.__dispatchChangePending=!!(r&&r.value!==void 0&&r.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,r=t!==void 0?t:-1,n=this._menuElement._searchKey(r,e.key);n>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=n)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,r){if(!(!t||!r)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${r.offsetWidth}px`);const n=this.hasAttribute("focus-ring");this._openedWithFocusRing=n,n&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const r=e.getAttribute("label");r?t=this.__createItemElement({label:r}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const n=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(n,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const r=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};Ut(e,"aria-labelledby",r),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),r=e.childElementCount>0;return t||r}_updateSelectedItem(e,t){if(t){const r=e==null?e:e.toString();this._menuElement.selected=t.reduce((n,a,s)=>n===void 0&&a.value===r?s:n,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let r=e.firstElementChild;r||(r=document.createElement("vaadin-select-list-box"),e.appendChild(r)),r.textContent="",this.items.forEach(n=>{r.appendChild(this.__createItemElement(n))})}__dispatchChange(){return Kt(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5580
+ */const mf=i=>class extends wi(ui($r(Me(pi(i))))){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}-${hi()}`,this._srLabelController=new Bo(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 pf(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new ta(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new Ce(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(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const r=t.composedPath().find(a=>a._hasVaadinItemMixin);this.__dispatchChangePending=!!(r&&r.value!==void 0&&r.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,r=t!==void 0?t:-1,a=this._menuElement._searchKey(r,e.key);a>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=a)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,r){if(!(!t||!r)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${r.offsetWidth}px`);const a=this.hasAttribute("focus-ring");this._openedWithFocusRing=a,a&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const r=e.getAttribute("label");r?t=this.__createItemElement({label:r}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const a=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(a,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const r=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};Ut(e,"aria-labelledby",r),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),r=e.childElementCount>0;return t||r}_updateSelectedItem(e,t){if(t){const r=e==null?e:e.toString();this._menuElement.selected=t.reduce((a,n,o)=>a===void 0&&n.value===r?o:a,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let r=e.firstElementChild;r||(r=document.createElement("vaadin-select-list-box"),e.appendChild(r)),r.textContent="",this.items.forEach(a=>{r.appendChild(this.__createItemElement(a))})}__dispatchChange(){return Kt(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5581
5581
  * @license
5582
5582
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5583
5583
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5584
- */v("vaadin-select",[ao,so,df],{moduleId:"vaadin-select-styles"});class cf extends uf(ue(z(D))){static get is(){return"vaadin-select"}static get template(){return A`
5584
+ */g("vaadin-select",[ss,ls,uf],{moduleId:"vaadin-select-styles"});class ff extends mf(ce(z(D))){static get is(){return"vaadin-select"}static get template(){return A`
5585
5585
  <style>
5586
5586
  :host {
5587
5587
  position: relative;
@@ -5634,7 +5634,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5634
5634
  <div class="sr-only">
5635
5635
  <slot name="sr-label"></slot>
5636
5636
  </div>
5637
- `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Ci(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}C(cf);const pf=":host{display:block;height:100%}",mf=pf,Co=class{constructor(i){u.registerInstance(this,i),this.handleClick=e=>{this.emitOnClick&&(e.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.clientStyling="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60}connectedCallback(){this.translationUrl&&Lo(this.translationUrl)}renderInput(){var i;switch((i=this.type)===null||i===void 0?void 0:i.toLowerCase()){case"text":return u.h("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return u.h("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 u.h("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 u.h("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 u.h("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 u.h("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 u.h("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick});case"password":return u.h("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,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return u.h("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 u.h("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 u.h("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 u.h("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});default:return u.h("p",null,"The ",this.type," input type is not valid")}}render(){return u.h(u.Host,{key:"575526a74f8739d530e0094238357e2a744cc463",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};Co.style=mf;const ff='*,*::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}',_f=ff,ko=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.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 e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return y("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.patternMismatch){const t=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(n=>n.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${t}`,this.language)?y(`${t}`,this.language):r}}renderTooltip(){return this.showTooltip?u.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"a6e6a37c0b82e75bc66e26b104f343178deb8b81",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("div",{key:"41d8e03f598ccab9d175dacc27ede808ec017717",class:"number__wrapper--flex"},u.h("label",{key:"e2eb89c31bdc2c7e7e80546ea5844bb13d34c759",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"91de685f2da7b9ba3ddaf48a978f5e95a40594be",class:"number__wrapper--relative"},this.tooltip&&u.h("img",{key:"737d9ad4e1c74a03b140d48988e688a1898f9e57",class:"number__tooltip-icon",src:se,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("input",{key:"58d140746eaaf09aca69c5c4d698983c853e5b5f",ref:e=>this.inputReference=e,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${i}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),u.h("small",{key:"74bda2b23c57d2ca88613c00e4d6ed63ea86daad",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};ko.style=_f;const gf=`*,
5637
+ `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Ci(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}C(ff);const _f=":host{display:block;height:100%}",vf=_f,ks=class{constructor(i){c.registerInstance(this,i),this.handleClick=e=>{this.emitOnClick&&(e.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.clientStyling="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1,this.twofaDestination=void 0,this.twofaResendIntervalSeconds=60}connectedCallback(){this.translationUrl&&Fs(this.translationUrl)}renderInput(){var i;switch((i=this.type)===null||i===void 0?void 0:i.toLowerCase()){case"text":return c.h("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return c.h("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 c.h("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 c.h("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 c.h("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 c.h("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 c.h("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick});case"password":return c.h("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,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return c.h("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 c.h("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 c.h("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 c.h("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});default:return c.h("p",null,"The ",this.type," input type is not valid")}}render(){return c.h(c.Host,{key:"575526a74f8739d530e0094238357e2a744cc463",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};ks.style=vf;const gf='*,*::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}',bf=gf,Es=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState",7),this.sendInputValue=c.createEvent(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.value=e.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 e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}))}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.rangeUnderflow||this.inputReference.validity.rangeOverflow)return y("numberLengthError",this.language,{values:{min:this.validation.min,max:this.validation.max}});if(this.inputReference.validity.patternMismatch){const t=(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(a=>a.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${t}`,this.language)?y(`${t}`,this.language):r}}renderTooltip(){return this.showTooltip?c.h("div",{class:`number__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),c.h("div",{key:"a6e6a37c0b82e75bc66e26b104f343178deb8b81",class:`number__wrapper ${this.autofilled?"number__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},c.h("div",{key:"41d8e03f598ccab9d175dacc27ede808ec017717",class:"number__wrapper--flex"},c.h("label",{key:"e2eb89c31bdc2c7e7e80546ea5844bb13d34c759",class:`number__label ${this.validation.mandatory?"number__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"91de685f2da7b9ba3ddaf48a978f5e95a40594be",class:"number__wrapper--relative"},this.tooltip&&c.h("img",{key:"737d9ad4e1c74a03b140d48988e688a1898f9e57",class:"number__tooltip-icon",src:oe,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("input",{key:"58d140746eaaf09aca69c5c4d698983c853e5b5f",ref:e=>this.inputReference=e,type:"number",value:this.defaultValue,readOnly:this.autofilled,id:`${this.name}__input`,class:`number__input ${i}`,pattern:this.validationPattern,placeholder:`${this.placeholder}`,required:this.validation.mandatory,max:this.validation.max,min:this.validation.min,onInput:this.handleInput,onBlur:this.handleBlur}),c.h("small",{key:"74bda2b23c57d2ca88613c00e4d6ed63ea86daad",class:"number__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Es.style=bf;const yf=`*,
5638
5638
  *::before,
5639
5639
  *::after {
5640
5640
  padding: 0;
@@ -5826,7 +5826,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5826
5826
  }
5827
5827
  .password__tooltip.visible {
5828
5828
  opacity: 1;
5829
- }`,vf=gf,Eo=class{constructor(i){u.registerInstance(this,i),this.sendOriginalValidityState=u.createEvent(this,"sendOriginalValidityState"),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=e=>{this.value=e.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=e=>{e.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=e=>{this.value=e.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 e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&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(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}originalValidityChangedHandler(i){this.isDuplicateInput&&(i.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,this.value!==""&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",i=>{this.handleRevealField(i)}),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(i){this.passwordComplexity=this.validation.custom.filter(e=>e.rule==="regex").map(e=>{const r=new RegExp(e.pattern).test(i);return{rule:e.displayName,ruleKey:e.errorKey,passed:r}})}setValidity(){var i,e;return this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:!((i=this.passwordComplexity)===null||i===void 0)&&i.every(t=>t.passed)?(e=this.inputReference)===null||e===void 0?void 0:e.validity.valid:!1}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r,n;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return y("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const a=(i=this.validation.custom.find(o=>o.rule==="regex"))===null||i===void 0?void 0:i.errorKey,s=(e=this.validation.custom.find(o=>o.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${a}`,this.language)?y(`${a}`,this.language):s}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const a=(t=this.validation.custom.find(o=>o.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,s=(r=this.validation.custom.find(o=>o.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return y(`${a}`,this.language)?y(`${a}`,this.language):s}if(!(!((n=this.passwordComplexity)===null||n===void 0)&&n.every(a=>a.passed))&&!this.showPopup)return y("invalidPassword",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`password__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}renderComplexityPopup(){const i=this.passwordComplexity.length,t=this.passwordComplexity.filter(n=>n.passed).length/i,r=this.passwordComplexity.every(n=>n.passed);return u.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},u.h("div",{class:"password__complexity--strength"},u.h("p",{class:"password__complexity--text"},y("passwordStrength",this.language)," ",u.h("span",{class:"password__complexity--text-bold"},y(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),u.h("meter",{value:t,min:"0",max:"1"})),u.h("div",null,this.passwordComplexity.map((n,a)=>u.h("div",{key:a},u.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:n.passed,disabled:!0}),u.h("span",null,y(`${n.ruleKey}`,this.language)?y(`${n.ruleKey}`,this.language):n.rule)))))}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"c6a672c226569d500598f34c6155279e75fdc79c",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("div",{key:"44b8bee769b7b6ce86797f0f62b6af033bf2d0cd",class:"password__wrapper--flex"},u.h("label",{key:"b6d573c6a70f26471cea2e576c8286719f58b47f",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"76698abedf907fa52940bc8e278fff4aeda1912f",class:"password__wrapper--relative"},this.tooltip&&u.h("img",{key:"7116b9ed6eb06b6b03c336b6d216d40571b54f55",class:"password__tooltip-icon",src:se,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("vaadin-password-field",{key:"b85d0ba5396b3ab6fcf21d1053dba22fdb94c7f9",type:"password",id:`${this.name}__input`,class:`password__input ${i}`,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}),u.h("small",{key:"c30bbcb8e49fcdb1dd8cb41bafd56d64b609be86",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&this.renderComplexityPopup())}get element(){return u.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};Eo.style=vf;const bf="*,*::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}",yf=bf,Io=class{constructor(i){u.registerInstance(this,i),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}validityStateHandler(i){this.sendValidityState.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(i){this.value=i.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 y("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return u.h("fieldset",{key:"7dd3f10103c696ef18202154d5ede9cc10b32d0c",class:`radio__fieldset ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("legend",{key:"304af4ecd36e8831c1fc76abfaae1767a1005ae5",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(i=>u.h("div",{class:"radio__wrapper"},u.h("input",{type:"radio",class:"radio__input",id:`${i.label}__input`,ref:e=>this.inputReference=e,value:i.value,name:this.name,required:this.validation.mandatory,onClick:e=>this.handleClick(e)}),u.h("label",{htmlFor:`${i.label}__input`},i.label))),u.h("small",{key:"55bb2cc7060fda4774d337c8a570c78d90912da7",class:"radio__error-message"},this.errorMessage),this.tooltip&&u.h("img",{key:"b3b7093e2c4b5d6f727f5346562ed3fe274bd431",class:"radio__tooltip-icon",src:se,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Io.style=yf;const wf='*,*::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}',xf=wf,To=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.touched=!1,this.handleComboChange=e=>{this.touched=!0;const t=e.target.value,r=this.options.find(n=>n.value.toLowerCase()===t.toLowerCase());r?this.value=r.value:this.value=t,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=e=>{const t=e.currentTarget;t.opened||(this.touched=!0,this.value=t.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=e=>{this.touched=!0,this.value=e.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var i;this.displayedOptions=this.options.map(e=>({label:e.label,value:e.value})),this.isComboBox=((i=this.displayedOptions)===null||i===void 0?void 0:i.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getOptions(i).then(e=>{var t;const r=Object.keys(e)[0];this.displayedOptions=e[r].map(n=>({label:n.Name,value:n.Alpha2Code})),this.isComboBox=((t=this.displayedOptions)===null||t===void 0?void 0:t.length)>6})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue){const i=this.displayedOptions.find(e=>e.value.toUpperCase()===this.defaultValue.toUpperCase());this.value=i.value,this.valueHandler({name:this.name,value:this.value}),this.inputReference.value=this.value}this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",i=>{if(i.detail.value===!0)this.errorMessage="";else{const e=i.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(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(n=>n.json()).then(n=>{t(n)}).catch(n=>{console.error(n),r(n)})})}setValidity(){var i;return!((i=this.validation)===null||i===void 0)&&i.mandatory?!!this.value:!0}setErrorMessage(){var i,e,t;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.valueMissing||!((t=this.vaadinCombo)===null||t===void 0)&&t.invalid)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i,e;let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"7e90e23b53a72cda885485ccf4110631cede2b8f",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:r=>this.stylingContainer=r},u.h("div",{key:"9a841ccebeb828fc75ed1f708a4a43d4fc7a193f",class:"select__wrapper--flex"},u.h("label",{key:"92c70fa56518d6d015d756b693306dab80ab0f57",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),u.h("div",{key:"cfbeb4b4969adc1f9944eb60291d8f586dcc29db",class:"select__wrapper--relative"},this.tooltip&&u.h("img",{key:"13a340313095bc653a1741115bae128d538dcf30",class:"select__tooltip-icon",src:se,alt:"",ref:r=>this.tooltipIconReference=r,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?u.h("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(i=this.validation)===null||i===void 0?void 0:i.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):u.h("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(e=this.validation)===null||e===void 0?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),u.h("small",{key:"6ffb5459f648208106c6bfc8a78f5cf379f7f11b",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};To.style=xf;const Cf='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #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){border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__prefix::part(toggle-button){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}',kf=Cf,Po=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.phoneValue=e.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.touched||(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.phoneValue=this.defaultValue.phone||null)}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getPhoneCodes(i).then(e=>{this.phoneCodesOptions=e.phoneCodes.map(t=>typeof t=="object"&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t})})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(n=>n.json()).then(n=>{t(n)}).catch(n=>{console.error(n),r(n)})})}handlePrefixInput(i){this.prefixValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(this.inputReference.validity.patternMismatch){const t=(i=this.validation.custom.find(n=>n.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(n=>n.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${t}`,this.language)?y(`${t}`,this.language):r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?u.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"07279e9146394ad96ca0ce1b3e059f09fce2937a",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},u.h("div",{key:"c4eedb1dba6a3fabd4dcc95e767813f95b83346a",class:"tel__wrapper--flex-label"},u.h("label",{key:"093a445bc6a9144673386abf92263faa2f33a62a",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"76abd68488a0f78e3fbd46328fa338d8c05b9601",class:"tel__wrapper--relative"},this.tooltip&&u.h("img",{key:"8238860af5dbc417c2cd853b55fd79f67f51649d",class:"tel__tooltip-icon",src:se,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("div",{key:"235b2146fc4c70107d5c077071e1fa52ac1c56d3",class:`tel__wrapper--flex ${i}`},u.h("vaadin-combo-box",{key:"73e51576aad82c2bc6895a62b0c19351a1eb917b",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.autofilled,onChange:e=>this.handlePrefixInput(e)}),u.h("input",{key:"d714d757cd08e3d700cec86f9d6ce4ff680dd2e9",type:"tel",ref:e=>this.inputReference=e,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:this.phoneValue,placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),u.h("small",{key:"f6ced1b252990cd3ecc18c9c5ad3546654006dcc",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Po.style=kf;const Ef='*,*::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}',If=Ef,So=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},500)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleValidationChange(i){i.detail.field===this.name&&(this.validation=i.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()))}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.isValid=this.setValidity()}setValidity(){if(this.isDuplicateInput&&this.duplicateInputValue!==this.value||!this.inputReference)return!1;const i=this.inputReference.validity.valid,e=!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null;return i&&e}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.value.match(this.validationPattern)==null){const n=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,a=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${n}`,this.language)||a}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const n=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,a=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return y(`${n}`,this.language)?y(`${n}`,this.language):a}}renderTooltip(){return this.showTooltip?u.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),u.h("div",{key:"37c7509b46ab92149c3c11365cf5061bb1bbb01a",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:e=>this.stylingContainer=e},u.h("div",{key:"737873a059749dc050a8efa6ffb09a1b2ee9f95c",class:"text__wrapper--flex"},u.h("label",{key:"1d921faece6c293c7e3c95d34bedd0d399c7be9e",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),u.h("div",{key:"e1e59c85912cf7c3dbd1e61bba829ae2b0192a18",class:"text__wrapper--relative"},this.tooltip&&u.h("img",{key:"73513026eebcc809edef481d5cd7b885e5f20f03",class:"text__tooltip-icon",src:se,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),u.h("input",{key:"a73e2c2430e6fbc778e1fd6b5fcfb298cf01b5c5",name:this.name,id:`${this.name}__input`,value:this.defaultValue,type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),u.h("small",{key:"11cb376081cb05651c60c3e1ac8a41f9751ca16c",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};So.style=If;const Tf='*,*::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}',Pf=Tf,Ao=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(e,t)=>{e.stopPropagation(),window.postMessage({type:`registration${t}Clicked`},window.location.href)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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=this.defaultValue==="true"}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.options.length!==0&&this.options.forEach(i=>{this.callBackObject[i.name]=e=>{this.handleRevealField(e,i.name)},this.subFieldsObject[i.name].addEventListener("click",this.callBackObject[i.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 y("requiredError",this.language)}disconnectedCallback(){this.options.forEach(i=>{this.subFieldsObject[i.name].removeEventListener("click",this.callBackObject[i.name])})}renderLabel(){return u.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},u.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?u.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return u.h("div",{key:"6315588766319c4ac7a88646b01bc577858ad718",class:`togglecheckbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},u.h("div",{key:"20d6999aaf0499b8b840a28dab89242953b4610d",class:"togglecheckbox__wrapper--flex"},u.h("input",{key:"73b699abf4904e4f2133e30d8dea250c9fe13ac3",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:i=>this.checkboxReference=i,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),u.h("small",{key:"4d10247f1dae300d0f5133accdd544a90fa4d5a7",class:"togglecheckbox__error-message"},this.errorMessage),u.h("div",{key:"9c95cef35e58875b96710d3b64b9af1be27204c5",class:"togglecheckbox__wrapper--relative"},this.tooltip&&u.h("img",{key:"9774edae6bad4715fd20798a7be25eb71c3c4cf0",class:"togglecheckbox__tooltip-icon",src:se,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),u.h("div",{key:"70ad3ec894a32439e2dcea617e2a5b773c5456b1",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(i=>u.h("general-input",{type:i.inputType,name:i.name,displayName:i.displayName,validation:i.validate,action:i.action||null,defaultValue:i.defaultValue,autofilled:i.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:i.tooltip,placeholder:i.placeholder==null?"":i.placeholder,ref:e=>this.subFieldsObject[i.name]=e}))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};Ao.style=Pf;const Sf="*,*::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}",Af=Sf,Do=class{constructor(i){u.registerInstance(this,i),this.sendValidityState=u.createEvent(this,"sendValidityState"),this.sendInputValue=u.createEvent(this,"sendInputValue"),this.resendCode=u.createEvent(this,"resendCode"),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.setInputRef=(e,t)=>{e&&(this.inputRefs[t]=e)},this.setContainerRef=e=>{e&&(this.containerRef=e)},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 e=String(Math.floor(this.resendIntervalSecondsLeft/60));let t=String(this.resendIntervalSecondsLeft%60);return t.length===1&&(t="0"+t),`${e}:${t}`},this.handleInput=(e,t)=>{const r=e.target,n=r.value;if(n.length>1?r.value=n.charAt(1):r.value=n.charAt(0),!n)return;this.code[t]=r.value;const a=this.inputRefs[t+1];a&&a.focus(),this.setValidity(),this.setErrorMessage()},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.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.limitStylingAppends=!1,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.setValidity()}handleKeyDown(i,e){if(i.key==="Backspace"){this.code[e]="",this.inputRefs[e]&&(this.inputRefs[e].value="");const t=this.inputRefs[e-1];t&&(t==null||t.focus())}this.setValidity(),this.setErrorMessage()}handlePaste(i){var e;i.preventDefault();const t=(e=i.clipboardData)===null||e===void 0?void 0:e.getData("text").trim();if(!t)return;const r=t.slice(0,this.validation.maxLength).split("");this.code=[...r,...new Array(this.validation.maxLength-r.length).fill("")],r.forEach((a,s)=>{this.inputRefs[s].value=a});const n=this.inputRefs[Math.min(r.length,this.inputRefs.length-1)];n&&n.focus(),this.setValidity(),this.setErrorMessage()}setValidity(){const i=this.code.join(""),e=i.length===this.validation.maxLength,t=i.match(this.validationPattern)!==null;this.isValid=e&&t}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i;if(this.code.join("").match(this.validationPattern)!==null)this.errorMessage="";else{const t=(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.errorKey;t&&(this.errorMessage=y(t,this.language))}}renderTooltip(){return this.showTooltip?u.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return u.h("div",{key:"97c1955fececc6f3998375f4c8176ceaed66856a",class:"twofa"},u.h("div",{key:"ee2243931d8e5c6a5aadf1e78d1851449806d2b2",class:"twofa__error-message"},u.h("p",{key:"20a8ccad2e6501c73e3672f6ae325f8539e2d21a"},this.errorMessage)),u.h("div",{key:"bb33610a8be04b86378026c02099620749b81a4b",class:"twofa__description",innerHTML:y("twofaDescription",this.language,{values:{destination:this.destination}})}),u.h("div",{key:"af3ea38ed6468eb2de66aed810ba50a850bf21a9",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map((i,e)=>u.h("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:i,onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)}))),u.h("div",{key:"f385bd6dc93896d918a5cc1365b59bedd47d5bb0",class:"twofa__button-wrapper"},u.h("p",{key:"3623f0391e0e5923cd6b3bfd74d203905486209f",class:"twofa__resend-message"},y("twofaResendMessage",this.language)),u.h("button",{key:"497660604f87dbf4ce1ce51ecd041e82ab5dd33a",class:"twofa__resend-button",onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable},this.isResendButtonAvailable?y("twofaResendButton",this.language):this.formatTime())))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Do.style=Af;const Df=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",Of=Df,Oo=class{constructor(i){u.registerInstance(this,i),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(i,e){e!==i&&this.handleStructure(i)}handleStylingProps(i){switch(typeof i){case"number":return i===0?0:`${i}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(i)||i.endsWith("px")||i.endsWith("%")?i:"unset";default:return"unset"}}handleStructure(i){switch(i){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return u.h("div",{class:"SkeletonContainer"},u.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return u.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return u.h("div",{class:"SkeletonContainer"},u.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return u.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((i,e)=>u.h("div",{key:e,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return u.h("div",{class:"SkeletonContainer"},u.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return u.h("div",{class:"SkeletonContainer"},u.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let i="";switch(this.structure){case"logo":i=`
5829
+ }`,wf=yf,Is=class{constructor(i){c.registerInstance(this,i),this.sendOriginalValidityState=c.createEvent(this,"sendOriginalValidityState",7),this.sendValidityState=c.createEvent(this,"sendValidityState",7),this.sendInputValue=c.createEvent(this,"sendInputValue",7),this.touched=!1,this.originalValid=!1,this.validationPattern="",this.duplicateInputValue=null,this.handleInput=e=>{this.value=e.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=e=>{e.stopPropagation(),window.postMessage({type:`registrationShow${this.name}`},window.location.href)},this.handleBlur=e=>{this.value=e.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 e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.language=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.hidePasswordComplexity=!1,this.clientStyling="",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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&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(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"duplicate"})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}originalValidityChangedHandler(i){this.isDuplicateInput&&(i.detail.valid?(this.originalValid=!0,this.isValid=this.setValidity()):(this.originalValid=!1,this.isValid=!1,this.value!==""&&(this.errorMessage=this.setErrorMessage())))}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.inputReference=this.element.shadowRoot.querySelector("input"),this.passwordButton=this.element.shadowRoot.querySelector("vaadin-password-field-button"),this.passwordButton.tabIndex=-1,this.passwordButton.addEventListener("click",i=>{this.handleRevealField(i)}),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(i){this.passwordComplexity=this.validation.custom.filter(e=>e.rule==="regex").map(e=>{const r=new RegExp(e.pattern).test(i);return{rule:e.displayName,ruleKey:e.errorKey,passed:r}})}setValidity(){var i,e;return this.isDuplicateInput&&this.duplicateInputValue!==this.value?!1:!((i=this.passwordComplexity)===null||i===void 0)&&i.every(t=>t.passed)?(e=this.inputReference)===null||e===void 0?void 0:e.validity.valid:!1}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r,a;if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.isDuplicateInput&&!this.originalValid)return y("invalidOriginalPasswordError",this.language);if(this.inputReference.validity.patternMismatch){const n=(i=this.validation.custom.find(s=>s.rule==="regex"))===null||i===void 0?void 0:i.errorKey,o=(e=this.validation.custom.find(s=>s.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${n}`,this.language)?y(`${n}`,this.language):o}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const n=(t=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,o=(r=this.validation.custom.find(s=>s.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return y(`${n}`,this.language)?y(`${n}`,this.language):o}if(!(!((a=this.passwordComplexity)===null||a===void 0)&&a.every(n=>n.passed))&&!this.showPopup)return y("invalidPassword",this.language)}renderTooltip(){return this.showTooltip?c.h("div",{class:`password__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}renderComplexityPopup(){const i=this.passwordComplexity.length,t=this.passwordComplexity.filter(a=>a.passed).length/i,r=this.passwordComplexity.every(a=>a.passed);return c.h("div",{class:`password__complexity ${this.showPopup?"":"password__complexity--hidden"}`},c.h("div",{class:"password__complexity--strength"},c.h("p",{class:"password__complexity--text"},y("passwordStrength",this.language)," ",c.h("span",{class:"password__complexity--text-bold"},y(`${r?"passwordStrengthStrong":"passwordStrengthWeak"}`,this.language))),c.h("meter",{value:t,min:"0",max:"1"})),c.h("div",null,this.passwordComplexity.map((a,n)=>c.h("div",{key:n},c.h("input",{class:"password__complexity--checkbox",type:"checkbox",checked:a.passed,disabled:!0}),c.h("span",null,y(`${a.ruleKey}`,this.language)?y(`${a.ruleKey}`,this.language):a.rule)))))}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),c.h("div",{key:"c6a672c226569d500598f34c6155279e75fdc79c",class:`password__wrapper ${this.autofilled?"password__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},c.h("div",{key:"44b8bee769b7b6ce86797f0f62b6af033bf2d0cd",class:"password__wrapper--flex"},c.h("label",{key:"b6d573c6a70f26471cea2e576c8286719f58b47f",class:`password__label ${this.validation.mandatory?"password__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"76698abedf907fa52940bc8e278fff4aeda1912f",class:"password__wrapper--relative"},this.tooltip&&c.h("img",{key:"7116b9ed6eb06b6b03c336b6d216d40571b54f55",class:"password__tooltip-icon",src:oe,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("vaadin-password-field",{key:"b85d0ba5396b3ab6fcf21d1053dba22fdb94c7f9",type:"password",id:`${this.name}__input`,class:`password__input ${i}`,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}),c.h("small",{key:"c30bbcb8e49fcdb1dd8cb41bafd56d64b609be86",class:"password__error-message"},this.errorMessage),this.passwordComplexity&&this.showPopup&&!this.hidePasswordComplexity&&!this.isDuplicateInput&&this.renderComplexityPopup())}get element(){return c.getElement(this)}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],value:["valueChanged"],emitValue:["emitValueHandler"]}}};Is.style=wf;const xf="*,*::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}",Cf=xf,Ts=class{constructor(i){c.registerInstance(this,i),this.sendInputValue=c.createEvent(this,"sendInputValue",7),this.sendValidityState=c.createEvent(this,"sendValidityState",7),this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}validityStateHandler(i){this.sendValidityState.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}handleClick(i){this.value=i.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 y("requiredError",this.language)}renderTooltip(){return this.showTooltip?c.h("div",{class:`radio__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return c.h("fieldset",{key:"7dd3f10103c696ef18202154d5ede9cc10b32d0c",class:`radio__fieldset ${this.name}__input`,ref:i=>this.stylingContainer=i},c.h("legend",{key:"304af4ecd36e8831c1fc76abfaae1767a1005ae5",class:"radio__legend"},this.displayName,":"),this.optionsGroup.map(i=>c.h("div",{class:"radio__wrapper"},c.h("input",{type:"radio",class:"radio__input",id:`${i.label}__input`,ref:e=>this.inputReference=e,value:i.value,name:this.name,required:this.validation.mandatory,onClick:e=>this.handleClick(e)}),c.h("label",{htmlFor:`${i.label}__input`},i.label))),c.h("small",{key:"55bb2cc7060fda4774d337c8a570c78d90912da7",class:"radio__error-message"},this.errorMessage),this.tooltip&&c.h("img",{key:"b3b7093e2c4b5d6f727f5346562ed3fe274bd431",class:"radio__tooltip-icon",src:oe,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ts.style=Cf;const kf='*,*::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}',Ef=kf,Ps=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState",7),this.sendInputValue=c.createEvent(this,"sendInputValue",7),this.touched=!1,this.handleComboChange=e=>{this.touched=!0;const t=e.target.value,r=this.options.find(a=>a.value.toLowerCase()===t.toLowerCase());r?this.value=r.value:this.value=t,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},this.handleBlur=e=>{const t=e.currentTarget;t.opened||(this.touched=!0,this.value=t.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}))},this.handleSelectChange=e=>{this.touched=!0,this.value=e.target.value,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){var i;this.displayedOptions=this.options.map(e=>({label:e.label,value:e.value})),this.isComboBox=((i=this.displayedOptions)===null||i===void 0?void 0:i.length)>6}componentWillLoad(){if(this.action&&!this.options.length&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getOptions(i).then(e=>{var t;const r=Object.keys(e)[0];this.displayedOptions=e[r].map(a=>({label:a.Name,value:a.Alpha2Code})),this.isComboBox=((t=this.displayedOptions)===null||t===void 0?void 0:t.length)>6})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){if(this.inputReference=this.vaadinCombo.querySelector("input"),this.defaultValue){const i=this.displayedOptions.find(e=>e.value.toUpperCase()===this.defaultValue.toUpperCase());this.value=i.value,this.valueHandler({name:this.name,value:this.value}),this.inputReference.value=this.value}this.isValid=this.setValidity(),!this.isComboBox&&this.vaadinCombo&&this.vaadinCombo.addEventListener("opened-changed",i=>{if(i.detail.value===!0)this.errorMessage="";else{const e=i.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(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}setValidity(){var i;return!((i=this.validation)===null||i===void 0)&&i.mandatory?!!this.value:!0}setErrorMessage(){var i,e,t;if(!((e=(i=this.inputReference)===null||i===void 0?void 0:i.validity)===null||e===void 0)&&e.valueMissing||!((t=this.vaadinCombo)===null||t===void 0)&&t.invalid)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?c.h("div",{class:`select__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){var i,e;let t="";return this.touched&&(t=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),c.h("div",{key:"7e90e23b53a72cda885485ccf4110631cede2b8f",class:`select__wrapper ${this.autofilled?"select__wrapper--autofilled":""} ${this.name}__input`,ref:r=>this.stylingContainer=r},c.h("div",{key:"9a841ccebeb828fc75ed1f708a4a43d4fc7a193f",class:"select__wrapper--flex"},c.h("label",{key:"92c70fa56518d6d015d756b693306dab80ab0f57",class:"select__label",htmlFor:`${this.name}__input`},`${this.displayName} ${this.validation.mandatory?"*":""}`),c.h("div",{key:"cfbeb4b4969adc1f9944eb60291d8f586dcc29db",class:"select__wrapper--relative"},this.tooltip&&c.h("img",{key:"13a340313095bc653a1741115bae128d538dcf30",class:"select__tooltip-icon",src:oe,alt:"",ref:r=>this.tooltipIconReference=r,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),this.isComboBox?c.h("vaadin-combo-box",{name:this.name,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(i=this.validation)===null||i===void 0?void 0:i.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleComboChange,onBlur:this.handleBlur}):c.h("vaadin-select",{name:this.name,popover:!1,id:`${this.name}__input`,class:`select__input ${t} ${this.autofilled?"select__input--autofilled":""}`,"item-label-path":"label","item-value-path":"value",ref:r=>this.vaadinCombo=r,readOnly:this.autofilled,required:(e=this.validation)===null||e===void 0?void 0:e.mandatory,value:this.value,placeholder:`${this.placeholder}`,items:this.displayedOptions,onChange:this.handleSelectChange,"no-vertical-overlap":!0,noVerticalOverlap:!0}),c.h("small",{key:"6ffb5459f648208106c6bfc8a78f5cf379f7f11b",class:"select__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ps.style=Ef;const If='*,*::before,*::after{padding:0;margin:0;box-sizing:border-box}.tel{font-family:"Roboto";font-style:normal}.tel__wrapper{position:relative;width:100%;display:flex;flex-direction:column;gap:5px}.tel__wrapper--autofilled{pointer-events:none}.tel__wrapper--autofilled .tel__label{color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__wrapper--autofilled .tel__input::part(input-field){color:var(--emw--color-black, #000000)}.tel__wrapper--flex{width:inherit;display:flex;align-items:center;border-radius:4px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background-color:var(--emw--color-white, #FFFFFF);overflow:hidden}.tel__wrapper--flex:focus-within{border-color:var(--emw--login-color-primary, var(--emw--color-primary, #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){border-radius:0 5px 5px 0;background-color:var(--emw--color-white, #FFFFFF);color:var(--emw--color-black, #000000);font-family:inherit;font-style:normal;font-weight:300;font-size:16px;line-height:1.5;border:none;border-right:2px solid #DDE0EE;border-image-source:linear-gradient(to bottom, rgba(221, 224, 238, 0) 25%, rgb(221, 224, 238) 25%, rgb(221, 224, 238) 75%, rgba(221, 224, 238, 0) 75%);border-image-slice:1;border-image-repeat:round}.tel__prefix::part(input-field):hover{background-color:var(--emw--color-white, #FFFFFF)}.tel__prefix::part(toggle-button){color:var(--emw--registration-typography, var(--emw--color-black, #000000))}.tel__input{font-family:inherit;border-radius:5px;width:100%;color:var(--emw--registration-typography, var(--emw--color-black, #000000));background-color:var(--emw--color-white, #FFFFFF);border:none;width:inherit;position:relative;font-size:16px;font-weight:300;line-height:1.5;padding:5px 15px;height:42px;-moz-appearance:textfield;}.tel__input:focus{outline:none}.tel__input::-webkit-outer-spin-button,.tel__input::-webkit-inner-spin-button{-webkit-appearance:none;margin:0}.tel__input::placeholder{color:var(--emw--color-gray-150, #979797)}.tel__error-message{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.tel__tooltip-icon{width:16px;height:auto}.tel__tooltip{position:absolute;top:0;left:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.tel__tooltip.visible{opacity:1}',Tf=If,Ss=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState",7),this.sendInputValue=c.createEvent(this,"sendInputValue",7),this.validationPattern="",this.touched=!1,this.handleInput=e=>{this.phoneValue=e.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.emitValueHandler(!0)},500)},this.handleBlur=()=>{this.touched||(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.touched=!0)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}validityStateHandler(i){this.sendValidityState.emit(i)}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value,type:"tel"})}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.defaultValue&&(this.prefixValue=this.defaultValue.prefix?this.defaultValue.prefix:this.defaultValue,this.phoneValue=this.defaultValue.phone||null)}componentWillLoad(){if(this.action&&this.action.split(" ")[0]=="GET"){const i=this.action.split(" ")[1];return this.getPhoneCodes(i).then(e=>{this.phoneCodesOptions=e.phoneCodes.map(t=>typeof t=="object"&&t.Prefix?{label:t.Prefix,value:t.Prefix}:{label:t,value:t})})}}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.isValid=this.setValidity(),this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value,type:"tel"}))}getPhoneCodes(i){const e=new URL(i);return new Promise((t,r)=>{fetch(e.href).then(a=>a.json()).then(a=>{t(a)}).catch(a=>{console.error(a),r(a)})})}handlePrefixInput(i){this.prefixValue=i.target.value,this.value={prefix:this.prefixValue,phone:this.phoneValue},this.emitValueHandler(!0)}setValidity(){return this.inputReference.validity.valid}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e;if(this.inputReference.validity.patternMismatch){const t=(i=this.validation.custom.find(a=>a.rule==="regex"))===null||i===void 0?void 0:i.errorKey,r=(e=this.validation.custom.find(a=>a.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${t}`,this.language)?y(`${t}`,this.language):r}if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.validity.valueMissing)return y("requiredError",this.language)}renderTooltip(){return this.showTooltip?c.h("div",{class:`tel__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),c.h("div",{key:"07279e9146394ad96ca0ce1b3e059f09fce2937a",class:`tel__wrapper ${this.autofilled?"tel__wrapper--autofilled":""} ${this.name}__input`,ref:e=>this.stylingContainer=e},c.h("div",{key:"c4eedb1dba6a3fabd4dcc95e767813f95b83346a",class:"tel__wrapper--flex-label"},c.h("label",{key:"093a445bc6a9144673386abf92263faa2f33a62a",class:`tel__label ${this.validation.mandatory?"tel__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"76abd68488a0f78e3fbd46328fa338d8c05b9601",class:"tel__wrapper--relative"},this.tooltip&&c.h("img",{key:"8238860af5dbc417c2cd853b55fd79f67f51649d",class:"tel__tooltip-icon",src:oe,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("div",{key:"235b2146fc4c70107d5c077071e1fa52ac1c56d3",class:`tel__wrapper--flex ${i}`},c.h("vaadin-combo-box",{key:"73e51576aad82c2bc6895a62b0c19351a1eb917b",class:"tel__prefix",items:this.phoneCodesOptions,value:this.prefixValue,readOnly:this.autofilled,onChange:e=>this.handlePrefixInput(e)}),c.h("input",{key:"d714d757cd08e3d700cec86f9d6ce4ff680dd2e9",type:"tel",ref:e=>this.inputReference=e,id:`${this.name}__input`,readOnly:this.autofilled,class:"tel__input",value:this.phoneValue,placeholder:`${this.placeholder}`,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,pattern:this.validationPattern,onInput:this.handleInput,onBlur:this.handleBlur})),c.h("small",{key:"f6ced1b252990cd3ecc18c9c5ad3546654006dcc",class:"tel__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Ss.style=Tf;const Pf='*,*::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}',Sf=Pf,As=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState",7),this.sendInputValue=c.createEvent(this,"sendInputValue",7),this.value="",this.validationPattern="",this.duplicateInputValue=null,this.touched=!1,this.handleInput=e=>{this.value=e.target.value,this.touched=!0,this.debounceTime&&clearTimeout(this.debounceTime),this.debounceTime=setTimeout(()=>{this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValueHandler(!0)},500)},this.handleBlur=e=>{this.value=e.target.value,this.touched=!0,this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage(),this.validityStateHandler({valid:this.isValid,name:this.name})},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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.isValid=void 0,this.errorMessage="",this.limitStylingAppends=!1,this.showTooltip=!1}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.value})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.value})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}valueChangedHandler(i){this.isDuplicateInput&&this.name===i.detail.name+"Duplicate"&&(this.duplicateInputValue=i.detail.value,this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())),this.name===i.detail.name+"Duplicate"&&this.name.replace("Duplicate","")===i.detail.name&&this.touched===!0&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage())}handleValidationChange(i){i.detail.field===this.name&&(this.validation=i.detail.validation,this.validationPattern=this.setPattern(),this.touched&&(this.isValid=this.setValidity(),this.errorMessage=this.setErrorMessage()))}connectedCallback(){this.validationPattern=this.setPattern()}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.defaultValue&&(this.value=this.defaultValue,this.valueHandler({name:this.name,value:this.value}),this.isDuplicateInput&&(this.touched=!0)),this.isValid=this.setValidity()}setValidity(){if(this.isDuplicateInput&&this.duplicateInputValue!==this.value||!this.inputReference)return!1;const i=this.inputReference.validity.valid,e=!this.inputReference.value||this.inputReference.value.match(this.validationPattern)!==null;return i&&e}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i,e,t,r;if(this.inputReference.validity.valueMissing)return y("requiredError",this.language);if(this.inputReference.validity.tooShort||this.inputReference.validity.tooLong)return y("lengthError",this.language,{values:{minLength:this.validation.minLength,maxLength:this.validation.maxLength}});if(this.inputReference.value.match(this.validationPattern)==null){const a=(i=this.validation.custom.find(o=>o.rule==="regex"))===null||i===void 0?void 0:i.errorKey,n=(e=this.validation.custom.find(o=>o.rule==="regex"))===null||e===void 0?void 0:e.errorMessage;return y(`${a}`,this.language)||n}if(this.isDuplicateInput&&this.duplicateInputValue!==this.value){const a=(t=this.validation.custom.find(o=>o.rule==="duplicate-input"))===null||t===void 0?void 0:t.errorKey,n=(r=this.validation.custom.find(o=>o.rule==="duplicate-input"))===null||r===void 0?void 0:r.errorMessage;return y(`${a}`,this.language)?y(`${a}`,this.language):n}}renderTooltip(){return this.showTooltip?c.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){let i="";return this.touched&&(i=this.isValid==!0||this.isValid==null?"":"text__input--invalid"),c.h("div",{key:"37c7509b46ab92149c3c11365cf5061bb1bbb01a",class:`text__wrapper ${this.name}__input ${this.autofilled?"text__wrapper--autofilled":""}`,ref:e=>this.stylingContainer=e},c.h("div",{key:"737873a059749dc050a8efa6ffb09a1b2ee9f95c",class:"text__wrapper--flex"},c.h("label",{key:"1d921faece6c293c7e3c95d34bedd0d399c7be9e",class:`text__label ${this.validation.mandatory?"text__label--required":""}`,htmlFor:`${this.name}__input`},this.displayName),c.h("div",{key:"e1e59c85912cf7c3dbd1e61bba829ae2b0192a18",class:"text__wrapper--relative"},this.tooltip&&c.h("img",{key:"73513026eebcc809edef481d5cd7b885e5f20f03",class:"text__tooltip-icon",src:oe,alt:"",ref:e=>this.tooltipIconReference=e,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip())),c.h("input",{key:"a73e2c2430e6fbc778e1fd6b5fcfb298cf01b5c5",name:this.name,id:`${this.name}__input`,value:this.defaultValue,type:"text",class:`text__input ${i}`,placeholder:`${this.placeholder}`,ref:e=>this.inputReference=e,readOnly:this.autofilled,required:this.validation.mandatory,minlength:this.validation.minLength,maxlength:this.validation.maxLength,onInput:this.handleInput,onBlur:this.handleBlur}),c.h("small",{key:"11cb376081cb05651c60c3e1ac8a41f9751ca16c",class:"text__error-message"},this.errorMessage))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};As.style=Sf;const Af='*,*::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}',Df=Af,Ds=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState",7),this.sendInputValue=c.createEvent(this,"sendInputValue",7),this.callBackObject={},this.subFieldsObject={},this.value="",this.handleRevealField=(e,t)=>{e.stopPropagation(),window.postMessage({type:`registration${t}Clicked`},window.location.href)},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.prepend(e)},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=this.defaultValue==="true"}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.options.length!==0&&this.options.forEach(i=>{this.callBackObject[i.name]=e=>{this.handleRevealField(e,i.name)},this.subFieldsObject[i.name].addEventListener("click",this.callBackObject[i.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 y("requiredError",this.language)}disconnectedCallback(){this.options.forEach(i=>{this.subFieldsObject[i.name].removeEventListener("click",this.callBackObject[i.name])})}renderLabel(){return c.h("label",{class:"togglecheckbox__label",htmlFor:`${this.name}__input`},c.h("div",{class:"togglecheckbox__label-text",innerHTML:`${this.displayName} ${this.validation.mandatory?"*":""}`}))}renderTooltip(){return this.showTooltip?c.h("div",{class:`togglecheckbox__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return c.h("div",{key:"6315588766319c4ac7a88646b01bc577858ad718",class:`togglecheckbox__wrapper ${this.name}__input`,ref:i=>this.stylingContainer=i},c.h("div",{key:"20d6999aaf0499b8b840a28dab89242953b4610d",class:"togglecheckbox__wrapper--flex"},c.h("input",{key:"73b699abf4904e4f2133e30d8dea250c9fe13ac3",class:"togglecheckbox__input",type:"checkbox",id:`${this.name}__input`,ref:i=>this.checkboxReference=i,name:this.name,checked:this.defaultValue==="true",readOnly:this.autofilled,required:this.validation.mandatory,value:this.value,onClick:()=>this.handleClick()}),this.renderLabel()),c.h("small",{key:"4d10247f1dae300d0f5133accdd544a90fa4d5a7",class:"togglecheckbox__error-message"},this.errorMessage),c.h("div",{key:"9c95cef35e58875b96710d3b64b9af1be27204c5",class:"togglecheckbox__wrapper--relative"},this.tooltip&&c.h("img",{key:"9774edae6bad4715fd20798a7be25eb71c3c4cf0",class:"togglecheckbox__tooltip-icon",src:oe,alt:"",ref:i=>this.tooltipIconReference=i,onClick:()=>this.showTooltip=!this.showTooltip}),this.renderTooltip()),c.h("div",{key:"70ad3ec894a32439e2dcea617e2a5b773c5456b1",class:`togglecheckbox__fields-wrapper ${this.showFields?"":"hidden"}`},this.options.map(i=>c.h("general-input",{type:i.inputType,name:i.name,displayName:i.displayName,validation:i.validate,action:i.action||null,defaultValue:i.defaultValue,autofilled:i.autofill,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:i.tooltip,placeholder:i.placeholder==null?"":i.placeholder,ref:e=>this.subFieldsObject[i.name]=e}))))}static get watchers(){return{clientStyling:["handleStylingChange"]}}};Ds.style=Df;const Of="*,*::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}",Vf=Of,Os=class{constructor(i){c.registerInstance(this,i),this.sendValidityState=c.createEvent(this,"sendValidityState",7),this.sendInputValue=c.createEvent(this,"sendInputValue",7),this.resendCode=c.createEvent(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.setInputRef=(e,t)=>{e&&(this.inputRefs[t]=e)},this.setContainerRef=e=>{e&&(this.containerRef=e)},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 e=String(Math.floor(this.resendIntervalSecondsLeft/60));let t=String(this.resendIntervalSecondsLeft%60);return t.length===1&&(t="0"+t),`${e}:${t}`},this.handleInput=(e,t)=>{const r=e.target,a=r.value;if(a.length>1?r.value=a.charAt(1):r.value=a.charAt(0),!a)return;this.code[t]=r.value;const n=this.inputRefs[t+1];n&&n.focus(),this.setValidity(),this.setErrorMessage()},this.setClientStyling=()=>{let e=document.createElement("style");e.innerHTML=this.clientStyling,this.stylingContainer.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.limitStylingAppends=!1,this.isValid=!1,this.isResendButtonAvailable=!0,this.showTooltip=!1,this.errorMessage="",this.code=[],this.resendIntervalSecondsLeft=this.resendIntervalSeconds}handleStylingChange(i,e){i!==e&&this.setClientStyling()}validityChanged(){this.validityStateHandler({valid:this.isValid,name:this.name}),this.emitValue==!0&&this.valueHandler({name:this.name,value:this.code.join("")})}emitValueHandler(i){i==!0&&this.isValid&&this.valueHandler({name:this.name,value:this.code.join("")})}validityStateHandler(i){this.sendValidityState.emit(i)}valueHandler(i){this.sendInputValue.emit(i)}handleClickOutside(i){i.composedPath()[0]!==this.tooltipIconReference&&i.composedPath()[0]!==this.tooltipReference&&(this.showTooltip=!1)}connectedCallback(){this.validationPattern=this.setPattern(),this.code=new Array(this.validation.maxLength).fill("")}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.limitStylingAppends=!0)}componentDidLoad(){this.setValidity()}handleKeyDown(i,e){if(i.key==="Backspace"){this.code[e]="",this.inputRefs[e]&&(this.inputRefs[e].value="");const t=this.inputRefs[e-1];t&&(t==null||t.focus())}this.setValidity(),this.setErrorMessage()}handlePaste(i){var e;i.preventDefault();const t=(e=i.clipboardData)===null||e===void 0?void 0:e.getData("text").trim();if(!t)return;const r=t.slice(0,this.validation.maxLength).split("");this.code=[...r,...new Array(this.validation.maxLength-r.length).fill("")],r.forEach((n,o)=>{this.inputRefs[o].value=n});const a=this.inputRefs[Math.min(r.length,this.inputRefs.length-1)];a&&a.focus(),this.setValidity(),this.setErrorMessage()}setValidity(){const i=this.code.join(""),e=i.length===this.validation.maxLength,t=i.match(this.validationPattern)!==null;this.isValid=e&&t}setPattern(){var i,e;if(((i=this.validation.custom)===null||i===void 0?void 0:i.length)>0)return(e=this.validation.custom.find(t=>t.rule==="regex"))===null||e===void 0?void 0:e.pattern}setErrorMessage(){var i;if(this.code.join("").match(this.validationPattern)!==null)this.errorMessage="";else{const t=(i=this.validation.custom.find(r=>r.rule==="regex"))===null||i===void 0?void 0:i.errorKey;t&&(this.errorMessage=y(t,this.language))}}renderTooltip(){return this.showTooltip?c.h("div",{class:`text__tooltip ${this.showTooltip?"visible":""}`,ref:i=>this.tooltipReference=i,innerHTML:this.tooltip}):null}render(){return c.h("div",{key:"97c1955fececc6f3998375f4c8176ceaed66856a",class:"twofa"},c.h("div",{key:"ee2243931d8e5c6a5aadf1e78d1851449806d2b2",class:"twofa__error-message"},c.h("p",{key:"20a8ccad2e6501c73e3672f6ae325f8539e2d21a"},this.errorMessage)),c.h("div",{key:"bb33610a8be04b86378026c02099620749b81a4b",class:"twofa__description",innerHTML:y("twofaDescription",this.language,{values:{destination:this.destination}})}),c.h("div",{key:"af3ea38ed6468eb2de66aed810ba50a850bf21a9",class:"twofa__input-wrapper",ref:this.setContainerRef},this.code.map((i,e)=>c.h("input",{key:e,ref:t=>this.setInputRef(t,e),id:`otp-input-${e}`,type:"text",maxLength:2,value:i,onInput:t=>this.handleInput(t,e),onKeyDown:t=>this.handleKeyDown(t,e),onPaste:t=>this.handlePaste(t)}))),c.h("div",{key:"f385bd6dc93896d918a5cc1365b59bedd47d5bb0",class:"twofa__button-wrapper"},c.h("p",{key:"3623f0391e0e5923cd6b3bfd74d203905486209f",class:"twofa__resend-message"},y("twofaResendMessage",this.language)),c.h("button",{key:"497660604f87dbf4ce1ce51ecd041e82ab5dd33a",class:"twofa__resend-button",onClick:this.resendCodeHandler,disabled:!this.isResendButtonAvailable},this.isResendButtonAvailable?y("twofaResendButton",this.language):this.formatTime())))}static get watchers(){return{clientStyling:["handleStylingChange"],isValid:["validityChanged"],emitValue:["emitValueHandler"]}}};Os.style=Vf;const Mf=":host{display:block}.Skeleton{animation:skeleton-loading 1s linear infinite alternate}.Rectangle{background-color:var(--emw-skeleton-rectangle-background, #c2c2c2);width:var(--emw-skeleton-rectangle-width, 400px);height:var(--emw-skeleton-rectangle-height, 200px);border-radius:var(--emw-skeleton-rectangle-border-radius, 10px)}.Circle{background-color:var(--emw-skeleton-circle-background, #c2c2c2);width:var(--emw-skeleton-circle-size, 400px);height:var(--emw-skeleton-circle-size, 400px);border-radius:50%}.Text{background-color:var(--emw-skeleton-text-background, #c2c2c2);width:var(--emw-skeleton-text-width, 500px);height:var(--emw-skeleton-text-height, 20px);border-radius:var(--emw-skeleton-text-border-radius, 10px);margin-bottom:var(--emw-skeleton-text-margin-bottom, 5px)}.Text:last-child{width:calc(var(--emw-skeleton-text-width, 400px) - 100px)}.Title{background-color:var(--emw-skeleton-title-background, #c2c2c2);width:var(--emw-skeleton-title-width, 300px);height:var(--emw-skeleton-title-height, 30px);border-radius:var(--emw-skeleton-title-border-radius, 10px);margin-bottom:var(--emw-skeleton-title-margin-bottom, 5px)}.Image{background-color:var(--emw-skeleton-image-background, #c2c2c2);width:var(--emw-skeleton-image-width, 100%);height:var(--emw-skeleton-image-height, 100%);border-radius:var(--emw-skeleton-image-border-radius, unset)}.Logo{background-color:var(--emw-skeleton-logo-background, #c2c2c2);width:var(--emw-skeleton-logo-width, 120px);height:var(--emw-skeleton-logo-height, 75px);border-radius:var(--emw-skeleton-logo-border-radius, 10px)}@keyframes skeleton-loading{0%{background-color:var(--emw-skeleton-primary-color, #e0e0e0)}100%{background-color:var(--emw-skeleton-secondary-color, #f0f0f0)}}",Nf=Mf,Vs=class{constructor(i){c.registerInstance(this,i),this.stylingValue={width:this.handleStylingProps(this.width),height:this.handleStylingProps(this.height),borderRadius:this.handleStylingProps(this.borderRadius),marginBottom:this.handleStylingProps(this.marginBottom),marginTop:this.handleStylingProps(this.marginTop),marginLeft:this.handleStylingProps(this.marginLeft),marginRight:this.handleStylingProps(this.marginRight),size:this.handleStylingProps(this.size)},this.structure=void 0,this.width="unset",this.height="unset",this.borderRadius="unset",this.marginBottom="unset",this.marginTop="unset",this.marginLeft="unset",this.marginRight="unset",this.animation=!0,this.rows=0,this.size="100%"}handleStructureChange(i,e){e!==i&&this.handleStructure(i)}handleStylingProps(i){switch(typeof i){case"number":return i===0?0:`${i}px`;case"undefined":return"unset";case"string":return["auto","unset","none","inherit","initial"].includes(i)||i.endsWith("px")||i.endsWith("%")?i:"unset";default:return"unset"}}handleStructure(i){switch(i){case"logo":return this.renderLogo();case"image":return this.renderImage();case"title":return this.renderTitle();case"text":return this.renderText();case"rectangle":return this.renderRectangle();case"circle":return this.renderCircle();default:return null}}renderLogo(){return c.h("div",{class:"SkeletonContainer"},c.h("div",{class:"Logo "+(this.animation?"Skeleton":"")}))}renderImage(){return c.h("div",{class:"Image "+(this.animation?"Skeleton":"")})}renderTitle(){return c.h("div",{class:"SkeletonContainer"},c.h("div",{class:"Title "+(this.animation?"Skeleton":"")}))}renderText(){return c.h("div",{class:"SkeletonContainer"},Array.from({length:this.rows>0?this.rows:1}).map((i,e)=>c.h("div",{key:e,class:"Text "+(this.animation?"Skeleton":"")})))}renderRectangle(){return c.h("div",{class:"SkeletonContainer"},c.h("div",{class:"Rectangle "+(this.animation?"Skeleton":"")}))}renderCircle(){return c.h("div",{class:"SkeletonContainer"},c.h("div",{class:"Circle "+(this.animation?"Skeleton":"")}))}render(){let i="";switch(this.structure){case"logo":i=`
5830
5830
  :host {
5831
5831
  --emw-skeleton-logo-width: ${this.stylingValue.width};
5832
5832
  --emw-skeleton-logo-height: ${this.stylingValue.height};
@@ -5880,4 +5880,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5880
5880
  :host {
5881
5881
  --emw-skeleton-circle-size: ${this.stylingValue.size};
5882
5882
  }
5883
- `;break;default:i=""}return u.h(u.Host,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},u.h("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},i),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};Oo.style=Of;exports.pam_change_password=No.PamChangePassword;exports.checkbox_group_input=va;exports.checkbox_input=ba;exports.date_input=za;exports.email_input=La;exports.general_input=Co;exports.number_input=ko;exports.password_input=Eo;exports.radio_input=Io;exports.select_input=To;exports.tel_input=Po;exports.text_input=So;exports.toggle_checkbox_input=Ao;exports.twofa_input=Do;exports.ui_skeleton=Oo;
5883
+ `;break;default:i=""}return c.h(c.Host,{key:"e6b885bfd985ce7663d990756fe9101e25eb97f0"},c.h("style",{key:"06ae24c7bb74f4dacfc12ae58085333f9dc89da5"},i),this.handleStructure(this.structure))}static get watchers(){return{structure:["handleStructureChange"]}}};Vs.style=Nf;exports.pam_change_password=zs.PamChangePassword;exports.checkbox_group_input=yn;exports.checkbox_input=wn;exports.date_input=Fn;exports.email_input=Rn;exports.general_input=ks;exports.number_input=Es;exports.password_input=Is;exports.radio_input=Ts;exports.select_input=Ps;exports.tel_input=Ss;exports.text_input=As;exports.toggle_checkbox_input=Ds;exports.twofa_input=Os;exports.ui_skeleton=Vs;