@everymatrix/player-account-controller-nd 1.93.15 → 1.93.107

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 (327) hide show
  1. package/components/GeneralLogout-DfH4-dBv.js +5018 -0
  2. package/components/GeneralLogout-jNtcDtLT.js +4981 -0
  3. package/components/GeneralLogout-lOwXOJ_q.cjs +21 -0
  4. package/components/{PlayerAccountBettingHistory-DViqHGMz.js → PlayerAccountBettingHistory-5btKgi01.js} +15 -15
  5. package/components/PlayerAccountBettingHistory-B1uret-q.cjs +1 -0
  6. package/components/{PlayerAccountBettingHistory-BPC0nfcv.js → PlayerAccountBettingHistory-DXyhOn24.js} +21 -21
  7. package/components/PlayerAccountBiometrics-Br4pBrNO.cjs +1 -0
  8. package/components/{PlayerAccountBiometrics-dlVSnOs5.js → PlayerAccountBiometrics-CM09-cWu.js} +23 -23
  9. package/components/{PlayerAccountBiometrics-dZTKZKi5.js → PlayerAccountBiometrics-Dcd7g9iV.js} +23 -23
  10. package/components/{PlayerAccountBiometricsAction-uY9r42aH.js → PlayerAccountBiometricsAction-BDQyN8IV.js} +7 -7
  11. package/components/PlayerAccountBiometricsAction-CrpYQ1xg.cjs +1 -0
  12. package/components/{PlayerAccountBiometricsAction-BEOu_yxq.js → PlayerAccountBiometricsAction-v8D5J24C.js} +17 -17
  13. package/components/{PlayerAccountClosureNd-BAzqAr7a.js → PlayerAccountClosureNd-B8GPpMV1.js} +2 -2
  14. package/components/{PlayerAccountClosureNd-BRQojXyo.js → PlayerAccountClosureNd-B9MpWMnK.js} +2 -2
  15. package/components/PlayerAccountClosureNd-BQYGeq_J.cjs +1 -0
  16. package/components/PlayerAccountControllerNd-DbGWajkY.js +8430 -0
  17. package/components/PlayerAccountControllerNd-Dlpad7Nn.js +8413 -0
  18. package/components/PlayerAccountControllerNd-QmPMBE66.cjs +1 -0
  19. package/components/{PlayerAccountGamingLimits-CK7XI_nX.js → PlayerAccountGamingLimits-BF_6uKIN.js} +9 -9
  20. package/components/{PlayerAccountGamingLimits-Np99Bi7k.js → PlayerAccountGamingLimits-BrLLBjrC.js} +7 -7
  21. package/components/PlayerAccountGamingLimits-C42Hrx3O.cjs +1 -0
  22. package/components/{PlayerAccountGamingLimitsConfirmationModal-BjVo-gGU.js → PlayerAccountGamingLimitsConfirmationModal-8xqR77W_.js} +20 -20
  23. package/components/{PlayerAccountGamingLimitsConfirmationModal-nEq8Zo0o.js → PlayerAccountGamingLimitsConfirmationModal-BQuroDUa.js} +36 -36
  24. package/components/PlayerAccountGamingLimitsConfirmationModal-C1_X6gfF.cjs +1 -0
  25. package/components/PlayerAccountGamingLimitsGroupEdit-C9CNneXK.js +4731 -0
  26. package/components/PlayerAccountGamingLimitsGroupEdit-D-roXLKH.cjs +2 -0
  27. package/components/PlayerAccountGamingLimitsGroupEdit-DWSaZBiq.js +4731 -0
  28. package/components/{PlayerAccountGamingLimitsHistory2Nd-CrAX4_U-.js → PlayerAccountGamingLimitsHistory2Nd-0Tzmc_t4.js} +23 -23
  29. package/components/{PlayerAccountGamingLimitsHistory2Nd-DjkES9Gg.js → PlayerAccountGamingLimitsHistory2Nd-C6fq4IiW.js} +68 -68
  30. package/components/PlayerAccountGamingLimitsHistory2Nd-Dnlhxcu2.cjs +1 -0
  31. package/components/{PlayerAccountGamingLimitsInfoCard-CkZjerCE.js → PlayerAccountGamingLimitsInfoCard-BwoIK125.js} +21 -21
  32. package/components/PlayerAccountGamingLimitsInfoCard-CrSQvlgN.cjs +1 -0
  33. package/components/{PlayerAccountGamingLimitsInfoCard-Dejqw-vV.js → PlayerAccountGamingLimitsInfoCard-DeaFzp-6.js} +21 -21
  34. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-BEF79VIx.js → PlayerAccountGamingLimitsPage2Gm16Nd-BjsWXnLR.js} +2645 -2361
  35. package/components/PlayerAccountGamingLimitsPage2Gm16Nd-bopJyFfV.cjs +35 -0
  36. package/components/{PlayerAccountGamingLimitsPage2Gm16Nd-DKsfu8ja.js → PlayerAccountGamingLimitsPage2Gm16Nd-oFv-3W4B.js} +2428 -2298
  37. package/components/{PlayerAccountGamingLimitsPopup-pKKi2aer.js → PlayerAccountGamingLimitsPopup-BJFg8Spi.js} +6 -6
  38. package/components/{PlayerAccountGamingLimitsPopup-C5BdWuGY.js → PlayerAccountGamingLimitsPopup-CagUy8tO.js} +11 -11
  39. package/components/PlayerAccountGamingLimitsPopup-Djxg2rKZ.cjs +1 -0
  40. package/components/{PlayerAccountGamingLimitsWrapper2Nd-DSlrqYKX.js → PlayerAccountGamingLimitsWrapper2Nd-B9jiI2o2.js} +31 -31
  41. package/components/PlayerAccountGamingLimitsWrapper2Nd-C5eaz4JA.cjs +4 -0
  42. package/components/{PlayerAccountGamingLimitsWrapper2Nd-BXRA5w1S.js → PlayerAccountGamingLimitsWrapper2Nd-CagxUVIx.js} +31 -31
  43. package/components/{PlayerAccountGeneralConfirmationModal-ld36k7oX.js → PlayerAccountGeneralConfirmationModal-CPjDsF_p.js} +42 -42
  44. package/components/{PlayerAccountGeneralConfirmationModal-B1yP_uzL.js → PlayerAccountGeneralConfirmationModal-DRXR6eUY.js} +34 -34
  45. package/components/PlayerAccountGeneralConfirmationModal-DXgRiTHH.cjs +1 -0
  46. package/components/PlayerAccountMenuNd-BFGJNr5c.cjs +1 -0
  47. package/components/{PlayerAccountMenuNd-D1c9vax3.js → PlayerAccountMenuNd-CHGOdfQp.js} +249 -224
  48. package/components/{PlayerAccountMenuNd-PLcvZr5w.js → PlayerAccountMenuNd-CbaF6MFU.js} +235 -210
  49. package/components/{PlayerAccountModal-CYx4M576.js → PlayerAccountModal-CErceviI.js} +58 -58
  50. package/components/{PlayerAccountModal-8_-LeBhB.js → PlayerAccountModal-WRO8ypL1.js} +29 -29
  51. package/components/PlayerAccountModal-z2OklRCV.cjs +1 -0
  52. package/components/{PlayerAccountNotifications-Y6zUPFef.js → PlayerAccountNotifications-BgL_Xr5u.js} +12 -12
  53. package/components/{PlayerAccountNotifications-3oW7NTJM.js → PlayerAccountNotifications-CSQCA7Z4.js} +12 -12
  54. package/components/PlayerAccountNotifications-zFaledSd.cjs +1 -0
  55. package/components/PlayerAccountProductRestriction-Bx0pQJwR.cjs +17823 -0
  56. package/components/PlayerAccountProductRestriction-CI7qeU96.js +37237 -0
  57. package/components/PlayerAccountProductRestriction-aDL2iAgE.js +37272 -0
  58. package/components/PlayerAccountReviewFrequency-BvL0rFW6.cjs +4 -0
  59. package/components/{PlayerAccountReviewFrequency-DjWH3Pjs.js → PlayerAccountReviewFrequency-CrviuInt.js} +12 -12
  60. package/components/{PlayerAccountReviewFrequency-DkTu9_Ry.js → PlayerAccountReviewFrequency-Dmr6ENuN.js} +12 -12
  61. package/components/{PlayerAccountTimeout-CQ3_g5Tr.js → PlayerAccountSelfExclusionNd-BbPbplRY.js} +4639 -3866
  62. package/components/{PlayerAccountTimeout-CGi7MG5B.cjs → PlayerAccountSelfExclusionNd-CB3ZxZvz.cjs} +190 -165
  63. package/components/{PlayerAccountTimeout-CjRNSbIj.js → PlayerAccountSelfExclusionNd-Uj3E0Lsq.js} +4699 -3927
  64. package/components/PlayerAccountTimeout-BOBTlN2J.js +1054 -0
  65. package/components/PlayerAccountTimeout-CRd-8yIT.js +1053 -0
  66. package/components/PlayerAccountTimeout-DcXYho1R.cjs +4 -0
  67. package/components/{PlayerAccountTransactionsHistory-D7ICA6Cs.js → PlayerAccountTransactionsHistory-3A_t5Znc.js} +4 -5
  68. package/components/{PlayerAccountTransactionsHistory-Ds-MXYYX.js → PlayerAccountTransactionsHistory-BK19JzUm.js} +4 -5
  69. package/components/PlayerAccountTransactionsHistory-_dDCnpTE.cjs +4 -0
  70. package/components/PlayerActiveBonuses-DNv_wq0n.js +1434 -0
  71. package/components/PlayerActiveBonuses-O4itJxBB.cjs +5 -0
  72. package/components/PlayerActiveBonuses-wUZkbSt8.js +1394 -0
  73. package/components/{PlayerBonusCard-DxLdbG3i.js → PlayerBonusCard-CvPBmIAm.js} +276 -252
  74. package/components/{PlayerBonusCard-CyvfUd4D.js → PlayerBonusCard-DExKrXLe.js} +276 -252
  75. package/components/PlayerBonusCard-FU9-2CsB.cjs +1 -0
  76. package/components/PlayerBonusHistory-BAKZfPkR.js +1178 -0
  77. package/components/PlayerBonusHistory-BTOaasoo.cjs +4 -0
  78. package/components/PlayerBonusHistory-DYqa8rmb.js +1213 -0
  79. package/components/{PlayerChangePasswordNd--3O96kKq.js → PlayerChangePasswordNd-BCxA9ICV.js} +36 -36
  80. package/components/{PlayerChangePasswordNd-S-VNpeoW.js → PlayerChangePasswordNd-BU28OwPH.js} +48 -48
  81. package/components/PlayerChangePasswordNd-CGg0r04Q.cjs +1 -0
  82. package/components/{PlayerDeposit-CIfEnB3H.js → PlayerDeposit--zt_C28y.js} +9 -9
  83. package/components/PlayerDeposit-Dv3DVWzm.cjs +1 -0
  84. package/components/{PlayerDeposit-CRR9qBm7.js → PlayerDeposit-EFUe-vs1.js} +5 -5
  85. package/components/PlayerGamingHistory-CNsFKvQt.cjs +1 -0
  86. package/components/{PlayerGamingHistory-Cfi7Xqa-.js → PlayerGamingHistory-CaEQKSib.js} +517 -488
  87. package/components/{PlayerGamingHistory-BXWsjojq.js → PlayerGamingHistory-bsbEN_XF.js} +524 -495
  88. package/components/PlayerPendingWithdrawals-CpLhvaRf.cjs +1 -0
  89. package/components/{PlayerPendingWithdrawals-e19kgjnW.js → PlayerPendingWithdrawals-DSTlmu4W.js} +16 -16
  90. package/components/{PlayerPendingWithdrawals-Bww6-kzH.js → PlayerPendingWithdrawals-lYWDHTUJ.js} +12 -12
  91. package/components/PlayerProfileInfo-BP8pCrof.js +3556 -0
  92. package/components/PlayerProfileInfo-BPjV9HdK.js +3607 -0
  93. package/components/PlayerProfileInfo-iI0_TWKo.cjs +4 -0
  94. package/components/{PlayerRealityCheck-DYcya9i_.js → PlayerRealityCheck-CKZEnAbR.js} +30 -30
  95. package/components/PlayerRealityCheck-CpyK7coU.cjs +1 -0
  96. package/components/{PlayerRealityCheck-CTDpiY6F.js → PlayerRealityCheck-DNtOLg5d.js} +10 -10
  97. package/components/PlayerTransactionHistory-BZvNosXH.cjs +1 -0
  98. package/components/{PlayerTransactionHistory-uQUC94kV.js → PlayerTransactionHistory-BdIdoGDF.js} +14 -14
  99. package/components/{PlayerTransactionHistory-ty_ZuJXq.js → PlayerTransactionHistory-BkkU37E2.js} +16 -16
  100. package/components/PlayerWithdrawal-CT4yLg8g.cjs +1 -0
  101. package/components/{PlayerWithdrawal-1_OZCenP.js → PlayerWithdrawal-D4N_GpG-.js} +9 -9
  102. package/components/{PlayerWithdrawal-CcrEMmj7.js → PlayerWithdrawal-DVog_nVQ.js} +9 -9
  103. package/components/{QrSessionGenerator-CCkipgoW.js → QrSessionGenerator-BXU-9Bzy.js} +1 -1
  104. package/components/{QrSessionGenerator-QO1neLoO.js → QrSessionGenerator-ByKI7pMQ.js} +19 -19
  105. package/components/{QrSessionGenerator-nP1Bg-og.cjs → QrSessionGenerator-T9dYB8i3.cjs} +5 -5
  106. package/es2015/player-account-controller-nd.cjs +1 -1
  107. package/es2015/player-account-controller-nd.js +7 -7
  108. package/esnext/player-account-controller-nd.js +1 -1
  109. package/lazy/{player-bonus-history-CaUz1Rlf.cjs → general-logout-B1l7EZY3.cjs} +1 -1
  110. package/lazy/{player-bonus-history-CyDsWfvA.js → general-logout-CMB8hQbp.js} +2 -2
  111. package/lazy/{player-bonus-history-DYl7MQWT.js → general-logout-Ci97Bbjf.js} +2 -2
  112. package/lazy/{pam-change-password-D7e6x-yE.js → pam-change-password-BvocmJri.js} +1 -1
  113. package/lazy/{pam-change-password-Dj2xuuK4.cjs → pam-change-password-CiZgnqNc.cjs} +1 -1
  114. package/lazy/{pam-change-password-xFIA2xlR.js → pam-change-password-DiWji9h2.js} +1 -1
  115. package/lazy/{player-account-betting-history-CjoDnkpn.cjs → player-account-betting-history-C8cs8k7X.cjs} +1 -1
  116. package/lazy/{player-account-betting-history-B4bex6hp.js → player-account-betting-history-DyN6lcgJ.js} +1 -1
  117. package/lazy/{player-account-betting-history-BBtedjXl.js → player-account-betting-history-QTNcTMLh.js} +1 -1
  118. package/lazy/{player-account-biometrics-CHoo80HU.js → player-account-biometrics-B_mbNxaQ.js} +1 -1
  119. package/lazy/{player-account-biometrics-DJw5WGff.cjs → player-account-biometrics-CZ32s6dn.cjs} +1 -1
  120. package/lazy/{player-account-biometrics-C-H8VfV8.js → player-account-biometrics-DQBynO9h.js} +1 -1
  121. package/lazy/{player-account-biometrics-action-D8ilGF7S.js → player-account-biometrics-action-HtIgV_S1.js} +1 -1
  122. package/lazy/{player-account-biometrics-action-BOyFTOxP.js → player-account-biometrics-action-w9wpeoIK.js} +1 -1
  123. package/lazy/{player-account-biometrics-action-Dbm1_9n8.cjs → player-account-biometrics-action-zfFKIdRj.cjs} +1 -1
  124. package/lazy/{player-account-closure-nd-BZgae3SX.cjs → player-account-closure-nd-CAZ3T3PO.cjs} +1 -1
  125. package/lazy/{player-account-closure-nd-9r5bMdSY.js → player-account-closure-nd-CCXz1c-t.js} +1 -1
  126. package/lazy/{player-account-closure-nd-CWY961fp.js → player-account-closure-nd-DmDkNsaE.js} +1 -1
  127. package/lazy/{player-account-gaming-limits-DChMsolh.js → player-account-gaming-limits-CK3ebt0J.js} +1 -1
  128. package/lazy/{player-account-gaming-limits-DtE5z2YE.js → player-account-gaming-limits-CMn32jGB.js} +1 -1
  129. package/lazy/{player-account-gaming-limits-4PSKckJs.cjs → player-account-gaming-limits-CvrnTCMH.cjs} +1 -1
  130. package/lazy/{player-account-gaming-limits-confirmation-modal-BGn7WoCI.js → player-account-gaming-limits-confirmation-modal-CchiQubV.js} +1 -1
  131. package/lazy/{player-account-gaming-limits-confirmation-modal-BhR9DGr0.js → player-account-gaming-limits-confirmation-modal-f8bs1yO6.js} +1 -1
  132. package/lazy/{player-account-gaming-limits-confirmation-modal-B76yfdxH.cjs → player-account-gaming-limits-confirmation-modal-mTTJmq_t.cjs} +1 -1
  133. package/lazy/player-account-gaming-limits-group-edit-Bo392pgU.cjs +1 -0
  134. package/lazy/{player-account-gaming-limits-group-edit-3MqNVhmp.js → player-account-gaming-limits-group-edit-DBldPgyh.js} +7 -7
  135. package/lazy/{player-account-gaming-limits-group-edit-C4dei67R.js → player-account-gaming-limits-group-edit-DdjiD6Qs.js} +7 -7
  136. package/lazy/{player-account-gaming-limits-history-2-nd-CBBd_8El.cjs → player-account-gaming-limits-history-2-nd-9UgcMIqC.cjs} +1 -1
  137. package/lazy/{player-account-gaming-limits-history-2-nd-kgZj_gsX.js → player-account-gaming-limits-history-2-nd-C4GWqxdQ.js} +1 -1
  138. package/lazy/{player-account-gaming-limits-history-2-nd-DFiFzozv.js → player-account-gaming-limits-history-2-nd-Cvu_EvxJ.js} +1 -1
  139. package/lazy/{player-account-gaming-limits-info-card-B2WkNerL.js → player-account-gaming-limits-info-card-BepXQTIS.js} +1 -1
  140. package/lazy/{player-account-gaming-limits-info-card-CRBP0qlj.js → player-account-gaming-limits-info-card-DyR2rurq.js} +1 -1
  141. package/lazy/{player-account-gaming-limits-info-card-DZ6FNQOT.cjs → player-account-gaming-limits-info-card-fwwIiuf4.cjs} +1 -1
  142. package/lazy/{player-account-gaming-limits-page-2-gm16-nd-DkG-sh8z.cjs → player-account-gaming-limits-page-2-gm16-nd-BTPdGlkp.cjs} +1 -1
  143. package/lazy/{player-account-gaming-limits-page-2-gm16-nd-DCqlVEe0.js → player-account-gaming-limits-page-2-gm16-nd-BrFUJyqO.js} +1 -1
  144. package/lazy/{player-account-gaming-limits-page-2-gm16-nd-BEJ7gQ8F.js → player-account-gaming-limits-page-2-gm16-nd-CCDwL9W7.js} +1 -1
  145. package/lazy/{player-account-gaming-limits-popup-ButHGqIX.js → player-account-gaming-limits-popup-CJNm54rn.js} +1 -1
  146. package/lazy/{player-account-gaming-limits-popup-BHAszty9.cjs → player-account-gaming-limits-popup-h8YZiGxW.cjs} +1 -1
  147. package/lazy/{player-account-gaming-limits-popup-CxXJuVwP.js → player-account-gaming-limits-popup-l0Vm2V8S.js} +1 -1
  148. package/lazy/{player-account-gaming-limits-wrapper-2-nd-CMT1UnSj.js → player-account-gaming-limits-wrapper-2-nd-BYTctslc.js} +1 -1
  149. package/lazy/{player-account-gaming-limits-wrapper-2-nd-D1si2xCn.cjs → player-account-gaming-limits-wrapper-2-nd-CFLWhXeO.cjs} +1 -1
  150. package/lazy/{player-account-gaming-limits-wrapper-2-nd-BAmCNT1V.js → player-account-gaming-limits-wrapper-2-nd-_BjsnMom.js} +1 -1
  151. package/lazy/{player-account-general-confirmation-modal-D9MN8kXz.js → player-account-general-confirmation-modal-CTmzMdPG.js} +1 -1
  152. package/lazy/{player-account-general-confirmation-modal-CDmaFNpU.cjs → player-account-general-confirmation-modal-CcTI30Mt.cjs} +1 -1
  153. package/lazy/{player-account-general-confirmation-modal-B1fyuifJ.js → player-account-general-confirmation-modal-D5GdiEY8.js} +1 -1
  154. package/lazy/{player-account-menu-nd-Bh-Zrlyl.cjs → player-account-menu-nd-BLFPwfVB.cjs} +1 -1
  155. package/lazy/{player-account-menu-nd-AeOtklmG.js → player-account-menu-nd-D2gCWgJs.js} +1 -1
  156. package/lazy/{player-account-menu-nd-Bal2Nkqo.js → player-account-menu-nd-D6QwJJkJ.js} +1 -1
  157. package/lazy/{player-account-modal-BbEhhuYv.js → player-account-modal-DXDbFO-I.js} +1 -1
  158. package/lazy/{player-account-modal-DNqzeUhy.js → player-account-modal-DlEatHKQ.js} +1 -1
  159. package/lazy/{player-account-modal-BLK0XqPY.cjs → player-account-modal-xyw2eAaq.cjs} +1 -1
  160. package/lazy/{player-account-notifications-3XJDMshq.js → player-account-notifications-BiaT8gHH.js} +1 -1
  161. package/lazy/{player-account-notifications-CdIxk0LK.cjs → player-account-notifications-CvdGumuA.cjs} +1 -1
  162. package/lazy/{player-account-notifications-DzlEwfV9.js → player-account-notifications-h6Y9aVUM.js} +1 -1
  163. package/lazy/{player-account-timeout-CmBjSmQA.js → player-account-product-restriction-BgrQEHnK.js} +2 -2
  164. package/lazy/player-account-product-restriction-CEJphFHV.cjs +1 -0
  165. package/lazy/{player-account-timeout-BTT4ptY9.js → player-account-product-restriction-CwQ_H6t0.js} +2 -2
  166. package/lazy/{player-account-review-frequency-BKki7fJb.js → player-account-review-frequency-8n_E1hOE.js} +1 -1
  167. package/lazy/{player-account-review-frequency-DpUXICDH.js → player-account-review-frequency-CZLPIv34.js} +1 -1
  168. package/lazy/{player-account-review-frequency-DbOkM_iE.cjs → player-account-review-frequency-DrbagD3C.cjs} +1 -1
  169. package/lazy/{player-account-self-exclusion-nd-Da3v9h7j.js → player-account-self-exclusion-nd-C8-GIDx-.js} +1 -1
  170. package/lazy/{player-account-self-exclusion-nd-CN4E70YJ.js → player-account-self-exclusion-nd-DLCInX4e.js} +1 -1
  171. package/lazy/{player-account-self-exclusion-nd-ixCoAaYe.cjs → player-account-self-exclusion-nd-n-bSqoMf.cjs} +1 -1
  172. package/lazy/{general-logout-DpJv5h-p.js → player-account-timeout-BD4Zh28M.js} +2 -2
  173. package/lazy/{general-logout-DFs9jYnz.js → player-account-timeout-Bz8IWkAl.js} +2 -2
  174. package/lazy/player-account-timeout-CMyJG0vF.cjs +1 -0
  175. package/lazy/{player-account-transactions-history-db2_5N1A.js → player-account-transactions-history-B3dWhfuK.js} +1 -1
  176. package/lazy/{player-account-transactions-history-tEu5j8eJ.cjs → player-account-transactions-history-Bpwnqiae.cjs} +1 -1
  177. package/lazy/{player-account-transactions-history-DxudU_GR.js → player-account-transactions-history-D2mAdF6m.js} +1 -1
  178. package/lazy/{player-active-bonuses-BBGypvsP.cjs → player-active-bonuses-BAyWrSKJ.cjs} +1 -1
  179. package/lazy/{player-active-bonuses-BU5_yDpZ.js → player-active-bonuses-CMVeIO1I.js} +1 -1
  180. package/lazy/{player-active-bonuses-DSYd6bOM.js → player-active-bonuses-K5MqDvoA.js} +1 -1
  181. package/lazy/{player-bonus-card-w6jRuOT8.js → player-bonus-card-CVGhsLKc.js} +1 -1
  182. package/lazy/{player-bonus-card-Dk05brfq.js → player-bonus-card-ChDFiGni.js} +1 -1
  183. package/lazy/{player-bonus-card-CqLIGyVR.cjs → player-bonus-card-DWEqlBz1.cjs} +1 -1
  184. package/lazy/player-bonus-history-BaQlgMFi.js +16 -0
  185. package/lazy/player-bonus-history-Cs4jjYQ-.js +16 -0
  186. package/lazy/{general-logout-DqzVYVJe.cjs → player-bonus-history-CxLU9fSa.cjs} +1 -1
  187. package/lazy/{player-change-password-nd-iKxWdTZv.js → player-change-password-nd-BTUDnNk_.js} +1 -1
  188. package/lazy/{player-change-password-nd-C2AaIdD1.cjs → player-change-password-nd-Bu6MDztk.cjs} +1 -1
  189. package/lazy/{player-change-password-nd-D0iUmhpC.js → player-change-password-nd-DxoNMutL.js} +1 -1
  190. package/lazy/{player-deposit-XfXGa_wv.js → player-deposit-BMjza2Aw.js} +1 -1
  191. package/lazy/{player-deposit-dSAzdWc3.js → player-deposit-Bm_8x1hl.js} +1 -1
  192. package/lazy/{player-deposit-ov0ciE_8.cjs → player-deposit-CEgi-Mtk.cjs} +1 -1
  193. package/lazy/{player-gaming-history-35TnGQvU.cjs → player-gaming-history-BTPL-t8R.cjs} +1 -1
  194. package/lazy/{player-gaming-history-B-EijkgD.js → player-gaming-history-C8V2u1C0.js} +1 -1
  195. package/lazy/{player-gaming-history-Ce3V6OJH.js → player-gaming-history-CTi8lvaO.js} +1 -1
  196. package/lazy/{player-kyc-verification-c6j7OKfW.js → player-kyc-verification-B3-xX9xM.js} +1 -1
  197. package/lazy/{player-kyc-verification-Cf8e8-1J.js → player-kyc-verification-C76swWpA.js} +1 -1
  198. package/lazy/{player-kyc-verification-dgrj93to.cjs → player-kyc-verification-C8SV_RYV.cjs} +1 -1
  199. package/lazy/{player-pending-withdrawals-RC3v7BB9.js → player-pending-withdrawals-1q4pLNkP.js} +1 -1
  200. package/lazy/{player-pending-withdrawals-D9j5AZFy.cjs → player-pending-withdrawals-CjnhNsh9.cjs} +1 -1
  201. package/lazy/{player-pending-withdrawals-BI1gwqZV.js → player-pending-withdrawals-JheU_NnK.js} +1 -1
  202. package/lazy/{player-profile-info-DgmEAe9A.cjs → player-profile-info-BJbmrHsF.cjs} +1 -1
  203. package/lazy/{player-profile-info-j0THIp9W.js → player-profile-info-CHrrNDyc.js} +1 -1
  204. package/lazy/{player-profile-info-BwiBM5r3.js → player-profile-info-CahjkVqk.js} +1 -1
  205. package/lazy/{player-reality-check-2bvBWBfH.js → player-reality-check-BCj8pOXF.js} +1 -1
  206. package/lazy/{player-reality-check-CIox5Zp2.js → player-reality-check-C97QH2aB.js} +1 -1
  207. package/lazy/{player-reality-check-BDKdBFK4.cjs → player-reality-check-CTQIHBq1.cjs} +1 -1
  208. package/lazy/{player-transaction-history-GIi9b0ya.js → player-transaction-history-BERx2xZG.js} +1 -1
  209. package/lazy/{player-transaction-history-Dh6_EsL1.js → player-transaction-history-BPU0GTOa.js} +1 -1
  210. package/lazy/{player-transaction-history-BaF1nfoV.cjs → player-transaction-history-vDI1AKr_.cjs} +1 -1
  211. package/lazy/{player-withdrawal-H81xFfNP.js → player-withdrawal-BYqEn50S.js} +1 -1
  212. package/lazy/{player-withdrawal-HawMNBu-.js → player-withdrawal-CoGmh9fh.js} +1 -1
  213. package/lazy/{player-withdrawal-B4huIVjj.cjs → player-withdrawal-JMKUZu6F.cjs} +1 -1
  214. package/lazy/{qr-session-generator-CJbRo7oZ.js → qr-session-generator-DNdcn7FZ.js} +1 -1
  215. package/lazy/{qr-session-generator-b2Uq_9KY.js → qr-session-generator-Dt-KIA4V.js} +1 -1
  216. package/lazy/{qr-session-generator-BYnvQPH2.cjs → qr-session-generator-mD5vLFHR.cjs} +1 -1
  217. package/lazy/{ui-skeleton-BBQWByBl.js → ui-skeleton-BUCYetAg.js} +1 -1
  218. package/lazy/{ui-skeleton-DCHcpm1I.cjs → ui-skeleton-BgUTfAtW.cjs} +1 -1
  219. package/lazy/{ui-skeleton-D_9rhDxL.js → ui-skeleton-C-dgOp3G.js} +1 -1
  220. package/lazy/{user-deposit-withdrawal-DRL2H07Q.js → user-deposit-withdrawal--XvaPYM4.js} +1 -1
  221. package/lazy/{user-deposit-withdrawal-bFIIJONR.js → user-deposit-withdrawal-Fjw4I48f.js} +1 -1
  222. package/lazy/{user-deposit-withdrawal-DuuFc4kw.cjs → user-deposit-withdrawal-j3vQXCPl.cjs} +1 -1
  223. package/lazy/{user-transaction-history-HY0KaITv.js → user-transaction-history-AS2WxZYn.js} +1 -1
  224. package/lazy/{user-transaction-history-B0AzGCJo.js → user-transaction-history-BdZ8-Joj.js} +1 -1
  225. package/lazy/{user-transaction-history-3zhiyTMt.cjs → user-transaction-history-BiHaSaKF.cjs} +1 -1
  226. package/package.json +1 -1
  227. package/stencil/app-globals-0f993ce5-DgYhdguE.cjs +1 -0
  228. package/stencil/{app-globals-0f993ce5-XUXOuUQl.js → app-globals-0f993ce5-DzSE6TtH.js} +4 -4
  229. package/stencil/checkbox-group-input_16-Bq2zfVn5.js +40948 -0
  230. package/stencil/checkbox-group-input_16-CZR716nR.js +40948 -0
  231. package/stencil/checkbox-group-input_16-I9NKlVZn.cjs +18119 -0
  232. package/stencil/{pam-change-password-259289fa-CMzhV7v6.js → pam-change-password-259289fa-BG7sGBky.js} +1 -1
  233. package/stencil/{pam-change-password-259289fa-C0ysebEM.js → pam-change-password-259289fa-DlCrKt6l.js} +1 -1
  234. package/stencil/{pam-change-password-259289fa-yIegaOpe.cjs → pam-change-password-259289fa-OuczYchB.cjs} +1 -1
  235. package/stencil/pam-change-password-DDT9MpsO.js +29 -0
  236. package/stencil/pam-change-password-DURT3csy.cjs +1 -0
  237. package/stencil/pam-change-password-jvfk9L6x.js +11 -0
  238. package/stencil/{player-kyc-verification-efqlVlYh.js → player-kyc-verification-D7tigOz6.js} +156 -140
  239. package/stencil/player-kyc-verification-D8Lg4zGp.cjs +210 -0
  240. package/stencil/{player-kyc-verification-CHKCxpjq.js → player-kyc-verification-DAG2h23U.js} +164 -148
  241. package/stencil/player-step-up-auth_2-B-1QyGOd.cjs +78 -0
  242. package/stencil/{player-step-up-auth_2-Bm_9xj7M.js → player-step-up-auth_2-C80Om-aZ.js} +400 -270
  243. package/stencil/{player-step-up-auth_2-Bz-vhYbS.js → player-step-up-auth_2-CiznySlT.js} +378 -248
  244. package/stencil/{ui-skeleton-fEyshHrf.js → ui-skeleton--3Oejuq9.js} +3 -3
  245. package/stencil/{ui-skeleton-DCajaTYn.cjs → ui-skeleton-Bp-l1XOX.cjs} +1 -1
  246. package/stencil/{ui-skeleton-Dd7tqzYw.js → ui-skeleton-Ur_BR5_B.js} +3 -3
  247. package/stencil/{ui-skeleton-ed169f8f-CzsV8lCL.cjs → ui-skeleton-ed169f8f-BC-qcUzg.cjs} +1 -1
  248. package/stencil/{ui-skeleton-ed169f8f-W8BHwBHY.js → ui-skeleton-ed169f8f-CScXzcMr.js} +1 -1
  249. package/stencil/{ui-skeleton-ed169f8f-DMVI4VdD.js → ui-skeleton-ed169f8f-Dlrug2eB.js} +1 -1
  250. package/stencil/user-deposit-withdrawal-BUFJR52M.js +11 -0
  251. package/stencil/user-deposit-withdrawal-CB6hoNi4.js +29 -0
  252. package/stencil/user-deposit-withdrawal-CBovM1LX.cjs +1 -0
  253. package/stencil/{user-transaction-history-2p6NhYUH.cjs → user-transaction-history-Bdl9TsIY.cjs} +1 -1
  254. package/stencil/{user-transaction-history-BdJmXqSz.js → user-transaction-history-CCamdglk.js} +3 -3
  255. package/stencil/{user-transaction-history-AKqIgf_3.js → user-transaction-history-CmVmTvfF.js} +3 -3
  256. package/stencil/user-transaction-history_2-BGSRJC3z.js +39028 -0
  257. package/stencil/user-transaction-history_2-DxjqgdYW.cjs +17821 -0
  258. package/stencil/user-transaction-history_2-gjLQnPHS.js +39050 -0
  259. package/components/GeneralLogout-5G6d0nU7.js +0 -300
  260. package/components/GeneralLogout-DoMpmSuy.cjs +0 -1
  261. package/components/GeneralLogout-rT9uoxJG.js +0 -300
  262. package/components/PlayerAccountBettingHistory-CPr8WAIi.cjs +0 -1
  263. package/components/PlayerAccountBiometrics-CwX37Dov.cjs +0 -1
  264. package/components/PlayerAccountBiometricsAction-Cluzv3Rf.cjs +0 -1
  265. package/components/PlayerAccountClosureNd-BP75r5XE.cjs +0 -1
  266. package/components/PlayerAccountControllerNd-C7yGxIew.js +0 -12992
  267. package/components/PlayerAccountControllerNd-CTFxHTi0.js +0 -12950
  268. package/components/PlayerAccountControllerNd-cf5swLcG.cjs +0 -21
  269. package/components/PlayerAccountGamingLimits-CObWYALW.cjs +0 -1
  270. package/components/PlayerAccountGamingLimitsConfirmationModal-B-6GG4lt.cjs +0 -1
  271. package/components/PlayerAccountGamingLimitsGroupEdit-BVyDMw16.cjs +0 -1
  272. package/components/PlayerAccountGamingLimitsGroupEdit-Cpy1-HVz.js +0 -1535
  273. package/components/PlayerAccountGamingLimitsGroupEdit-DoE3u0gr.js +0 -1535
  274. package/components/PlayerAccountGamingLimitsHistory2Nd-BzmJQJj6.cjs +0 -1
  275. package/components/PlayerAccountGamingLimitsInfoCard-BDr5gwpE.cjs +0 -1
  276. package/components/PlayerAccountGamingLimitsPage2Gm16Nd-DZ_kl0Qx.cjs +0 -35
  277. package/components/PlayerAccountGamingLimitsPopup-DWNbaoce.cjs +0 -1
  278. package/components/PlayerAccountGamingLimitsWrapper2Nd-Cwe_U2Yb.cjs +0 -4
  279. package/components/PlayerAccountGeneralConfirmationModal-DIi_Nclx.cjs +0 -1
  280. package/components/PlayerAccountMenuNd-DsZ4nhYQ.cjs +0 -1
  281. package/components/PlayerAccountModal-D-nlGHPL.cjs +0 -1
  282. package/components/PlayerAccountNotifications-YrwGiHQn.cjs +0 -1
  283. package/components/PlayerAccountProductRestriction-BBfmamUN.cjs +0 -4
  284. package/components/PlayerAccountProductRestriction-DHZ11qU-.js +0 -1495
  285. package/components/PlayerAccountProductRestriction-DKK2eM1L.js +0 -1460
  286. package/components/PlayerAccountReviewFrequency-4ZH-6pEH.cjs +0 -4
  287. package/components/PlayerAccountSelfExclusionNd-BxLNnV8M.js +0 -1565
  288. package/components/PlayerAccountSelfExclusionNd-CVwefEaU.js +0 -1537
  289. package/components/PlayerAccountSelfExclusionNd-D6HnYYT_.cjs +0 -1
  290. package/components/PlayerAccountTransactionsHistory-Btyjamzv.cjs +0 -4
  291. package/components/PlayerActiveBonuses-BOfhQPPH.js +0 -1239
  292. package/components/PlayerActiveBonuses-D59CLmkS.js +0 -1238
  293. package/components/PlayerActiveBonuses-DHG5qSFf.cjs +0 -4
  294. package/components/PlayerBonusCard-Cv56RJBz.cjs +0 -1
  295. package/components/PlayerBonusHistory-CFbE-op3.js +0 -20058
  296. package/components/PlayerBonusHistory-CSAid2vz.js +0 -20069
  297. package/components/PlayerBonusHistory-an8Ub5jO.cjs +0 -6663
  298. package/components/PlayerChangePasswordNd-BushVcHW.cjs +0 -1
  299. package/components/PlayerDeposit-kmlcfnXc.cjs +0 -1
  300. package/components/PlayerGamingHistory-CCB4leo-.cjs +0 -1
  301. package/components/PlayerPendingWithdrawals-BBkgN4ZU.cjs +0 -1
  302. package/components/PlayerProfileInfo-Bv6HoHaQ.js +0 -3234
  303. package/components/PlayerProfileInfo-CekfIid4.js +0 -3283
  304. package/components/PlayerProfileInfo-CwV6h27g.cjs +0 -4
  305. package/components/PlayerRealityCheck-BVCb4W-I.cjs +0 -1
  306. package/components/PlayerTransactionHistory-RbffcBtb.cjs +0 -1
  307. package/components/PlayerWithdrawal-BRBKD8EM.cjs +0 -1
  308. package/lazy/player-account-gaming-limits-group-edit-f5iXpglJ.cjs +0 -1
  309. package/lazy/player-account-product-restriction-BXzXOoWv.js +0 -16
  310. package/lazy/player-account-product-restriction-Bd4VOvvo.cjs +0 -1
  311. package/lazy/player-account-product-restriction-ClcQZGTw.js +0 -16
  312. package/lazy/player-account-timeout-BKtkZuoE.cjs +0 -1
  313. package/stencil/app-globals-0f993ce5-BjWsvLzr.cjs +0 -1
  314. package/stencil/checkbox-group-input_16-BBFWkWeD.js +0 -21216
  315. package/stencil/checkbox-group-input_16-BmvBBKCA.js +0 -21216
  316. package/stencil/checkbox-group-input_16-CO-enO8e.cjs +0 -6958
  317. package/stencil/pam-change-password-BDh7kR7R.cjs +0 -1
  318. package/stencil/pam-change-password-BmZkR24F.js +0 -29
  319. package/stencil/pam-change-password-CZIzaI5K.js +0 -11
  320. package/stencil/player-kyc-verification-Cfr6OdP2.cjs +0 -210
  321. package/stencil/player-step-up-auth_2-B8-Wde-9.cjs +0 -78
  322. package/stencil/user-deposit-withdrawal-BfDZ0BPN.js +0 -29
  323. package/stencil/user-deposit-withdrawal-CpW2KxAK.cjs +0 -1
  324. package/stencil/user-deposit-withdrawal-gtPpPZFl.js +0 -11
  325. package/stencil/user-transaction-history_2-Bane584k.js +0 -19319
  326. package/stencil/user-transaction-history_2-C0V0hS45.js +0 -19297
  327. package/stencil/user-transaction-history_2-CkuiuZbC.cjs +0 -6660
@@ -1,48 +1,48 @@
1
- "use strict";var vr=Object.defineProperty,br=Object.defineProperties;var wr=Object.getOwnPropertyDescriptors;var Yi=Object.getOwnPropertySymbols;var xr=Object.prototype.hasOwnProperty,Cr=Object.prototype.propertyIsEnumerable;var Wi=(o,t,e)=>t in o?vr(o,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):o[t]=e,St=(o,t)=>{for(var e in t||(t={}))xr.call(t,e)&&Wi(o,e,t[e]);if(Yi)for(var e of Yi(t))Cr.call(t,e)&&Wi(o,e,t[e]);return o},Ot=(o,t)=>br(o,wr(t));var at=(o,t,e)=>new Promise((i,s)=>{var r=l=>{try{a(e.next(l))}catch(u){s(u)}},n=l=>{try{a(e.throw(l))}catch(u){s(u)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(o,t)).next())});const d=require("./PlayerAccountControllerNd-cf5swLcG.cjs");require("../lazy/player-account-modal-BLK0XqPY.cjs");require("../lazy/player-account-general-confirmation-modal-CDmaFNpU.cjs");require("../stencil/ui-skeleton-DCajaTYn.cjs");/**
1
+ "use strict";var or=Object.defineProperty,sr=Object.defineProperties;var nr=Object.getOwnPropertyDescriptors;var _o=Object.getOwnPropertySymbols;var rr=Object.prototype.hasOwnProperty,ar=Object.prototype.propertyIsEnumerable;var go=(i,t,e)=>t in i?or(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,St=(i,t)=>{for(var e in t||(t={}))rr.call(t,e)&&go(i,e,t[e]);if(_o)for(var e of _o(t))ar.call(t,e)&&go(i,e,t[e]);return i},At=(i,t)=>sr(i,nr(t));var et=(i,t,e)=>new Promise((o,s)=>{var n=l=>{try{a(e.next(l))}catch(u){s(u)}},r=l=>{try{a(e.throw(l))}catch(u){s(u)}},a=l=>l.done?o(l.value):Promise.resolve(l.value).then(n,r);a((e=e.apply(i,t)).next())});const c=require("./GeneralLogout-lOwXOJ_q.cjs"),_e=require("./PlayerAccountProductRestriction-Bx0pQJwR.cjs");require("../stencil/ui-skeleton-Bp-l1XOX.cjs");require("../lazy/player-account-modal-xyw2eAaq.cjs");require("../lazy/player-account-general-confirmation-modal-CcTI30Mt.cjs");/**
2
2
  * @license
3
3
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4
4
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
- */function le(o,t="24.5.10"){Object.defineProperty(o,"version",{get(){return t}});const e=customElements.get(o.is);if(!e)customElements.define(o.is,o);else{const i=e.version;i&&o.version&&i===o.version?console.warn(`The component ${o.is} has been loaded twice`):console.error(`Tried to define ${o.is} version ${o.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
5
+ */function ue(i,t="24.5.10"){Object.defineProperty(i,"version",{get(){return t}});const e=customElements.get(i.is);if(!e)customElements.define(i.is,i);else{const o=e.version;o&&i.version&&o===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
6
6
  * @license
7
7
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
8
8
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9
- */class Tr extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}le(Tr);/**
9
+ */class lr extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}ue(lr);/**
10
10
  * @license
11
11
  * Copyright 2019 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const pt=globalThis,bi=pt.ShadowRoot&&(pt.ShadyCSS===void 0||pt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,wi=Symbol(),qi=new WeakMap;let xi=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==wi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(bi&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=qi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&qi.set(e,t))}return t}toString(){return this.cssText}};const Ar=o=>new xi(typeof o=="string"?o:o+"",void 0,wi),O=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[r+1],o[0]);return new xi(e,o,wi)},Wo=(o,t)=>{if(bi)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=pt.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i)}},Ki=bi?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Ar(e)})(o):o;/**
13
+ */const Mt=globalThis,Hi=Mt.ShadowRoot&&(Mt.ShadyCSS===void 0||Mt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Yi=Symbol(),yo=new WeakMap;let ji=class{constructor(t,e,o){if(this._$cssResult$=!0,o!==Yi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(Hi&&t===void 0){const o=e!==void 0&&e.length===1;o&&(t=yo.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&yo.set(e,t))}return t}toString(){return this.cssText}};const cr=i=>new ji(typeof i=="string"?i:i+"",void 0,Yi),S=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((o,s,n)=>o+(r=>{if(r._$cssResult$===!0)return r.cssText;if(typeof r=="number")return r;throw Error("Value passed to 'css' function must be a 'css' function result: "+r+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+i[n+1],i[0]);return new ji(e,i,Yi)},ws=(i,t)=>{if(Hi)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const o=document.createElement("style"),s=Mt.litNonce;s!==void 0&&o.setAttribute("nonce",s),o.textContent=e.cssText,i.appendChild(o)}},bo=Hi?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return cr(e)})(i):i;/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const{is:Dr,defineProperty:Er,getOwnPropertyDescriptor:kr,getOwnPropertyNames:Pr,getOwnPropertySymbols:Sr,getPrototypeOf:Or}=Object,pe=globalThis,Gi=pe.trustedTypes,Mr=Gi?Gi.emptyScript:"",Mt=pe.reactiveElementPolyfillSupport,Ke=(o,t)=>o,Jt={toAttribute(o,t){switch(t){case Boolean:o=o?Mr:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(i){e=null}}return e}},qo=(o,t)=>!Dr(o,t),Ji={attribute:!0,type:String,converter:Jt,reflect:!1,useDefault:!1,hasChanged:qo};var Ho,Bo;(Ho=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Bo=pe.litPropertyMetadata)!=null||(pe.litPropertyMetadata=new WeakMap);let Se=class extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=Ji){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&Er(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var n;const{get:s,set:r}=(n=kr(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);r==null||r.call(this,a),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:Ji}static _$Ei(){if(this.hasOwnProperty(Ke("elementProperties")))return;const t=Or(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(Ke("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ke("properties"))){const e=this.properties,i=[...Pr(e),...Sr(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Ki(s))}else t!==void 0&&e.push(Ki(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Wo(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var r;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Jt).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){var r,n,a;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const l=i.getPropertyOptions(s),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((r=l.converter)==null?void 0:r.fromAttribute)!==void 0?l.converter:Jt;this._$Em=s;const c=u.fromAttribute(e,l.type);this[s]=(a=c!=null?c:(n=this._$Ej)==null?void 0:n.get(s))!=null?a:c,this._$Em=null}}requestUpdate(t,e,i,s=!1,r){var n,a;if(t!==void 0){const l=this.constructor;if(s===!1&&(r=this[t]),i!=null||(i=l.getPropertyOptions(t)),!(((n=i.hasChanged)!=null?n:qo)(r,e)||i.useDefault&&i.reflect&&r===((a=this._$Ej)==null?void 0:a.get(t))&&!this.hasAttribute(l._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:r},n){var a,l,u;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(l=n!=null?n:e)!=null?l:this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),s===!0&&this._$Em!==t&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(t))}_$EP(){return at(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,a]of r){const{wrapped:l}=a,u=this[n];l!==!0||this._$AL.has(n)||u===void 0||this.C(n,void 0,a,u)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};var Vo;Se.elementStyles=[],Se.shadowRootOptions={mode:"open"},Se[Ke("elementProperties")]=new Map,Se[Ke("finalized")]=new Map,Mt==null||Mt({ReactiveElement:Se}),((Vo=pe.reactiveElementVersions)!=null?Vo:pe.reactiveElementVersions=[]).push("2.1.2");/**
17
+ */const{is:ur,defineProperty:dr,getOwnPropertyDescriptor:hr,getOwnPropertyNames:pr,getOwnPropertySymbols:fr,getPrototypeOf:mr}=Object,we=globalThis,vo=we.trustedTypes,_r=vo?vo.emptyScript:"",Kt=we.reactiveElementPolyfillSupport,ct=(i,t)=>i,fi={toAttribute(i,t){switch(t){case Boolean:i=i?_r:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch(o){e=null}}return e}},Es=(i,t)=>!ur(i,t),xo={attribute:!0,type:String,converter:fi,reflect:!1,useDefault:!1,hasChanged:Es};var _s,gs;(_s=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(gs=we.litPropertyMetadata)!=null||(we.litPropertyMetadata=new WeakMap);class Ye extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=xo){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),s=this.getPropertyDescriptor(t,o,e);s!==void 0&&dr(this.prototype,t,s)}}static getPropertyDescriptor(t,e,o){var r;const{get:s,set:n}=(r=hr(this.prototype,t))!=null?r:{get(){return this[e]},set(a){this[e]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);n==null||n.call(this,a),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:xo}static _$Ei(){if(this.hasOwnProperty(ct("elementProperties")))return;const t=mr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(ct("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ct("properties"))){const e=this.properties,o=[...pr(e),...fr(e)];for(const s of o)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[o,s]of e)this.elementProperties.set(o,s)}this._$Eh=new Map;for(const[e,o]of this.elementProperties){const s=this._$Eu(e,o);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const s of o)e.unshift(bo(s))}else t!==void 0&&e.push(bo(t));return e}static _$Eu(t,e){const o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,o;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((o=t.hostConnected)==null||o.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return ws(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(o=>{var s;return(s=o.hostConnected)==null?void 0:s.call(o)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostDisconnected)==null?void 0:o.call(e)})}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$ET(t,e){var n;const o=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,o);if(s!==void 0&&o.reflect===!0){const r=(((n=o.converter)==null?void 0:n.toAttribute)!==void 0?o.converter:fi).toAttribute(e,o.type);this._$Em=t,r==null?this.removeAttribute(s):this.setAttribute(s,r),this._$Em=null}}_$AK(t,e){var n,r,a;const o=this.constructor,s=o._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const l=o.getPropertyOptions(s),u=typeof l.converter=="function"?{fromAttribute:l.converter}:((n=l.converter)==null?void 0:n.fromAttribute)!==void 0?l.converter:fi;this._$Em=s;const d=u.fromAttribute(e,l.type);this[s]=(a=d!=null?d:(r=this._$Ej)==null?void 0:r.get(s))!=null?a:d,this._$Em=null}}requestUpdate(t,e,o){var s,n;if(t!==void 0){const r=this.constructor,a=this[t];if(o!=null||(o=r.getPropertyOptions(t)),!(((s=o.hasChanged)!=null?s:Es)(a,e)||o.useDefault&&o.reflect&&a===((n=this._$Ej)==null?void 0:n.get(t))&&!this.hasAttribute(r._$Eu(t,o))))return;this.C(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:o,reflect:s,wrapped:n},r){var a,l,u;o&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(l=r!=null?r:e)!=null?l:this[t]),n!==!0||r!==void 0)||(this._$AL.has(t)||(this.hasUpdated||o||(e=void 0),this._$AL.set(t,e)),s===!0&&this._$Em!==t&&((u=this._$Eq)!=null?u:this._$Eq=new Set).add(t))}_$EP(){return et(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,a]of this._$Ep)this[r]=a;this._$Ep=void 0}const n=this.constructor.elementProperties;if(n.size>0)for(const[r,a]of n){const{wrapped:l}=a,u=this[r];l!==!0||this._$AL.has(r)||u===void 0||this.C(r,void 0,a,u)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(n=>{var r;return(r=n.hostUpdate)==null?void 0:r.call(n)}),this.update(e)):this._$EM()}catch(n){throw t=!1,this._$EM(),n}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(o=>{var s;return(s=o.hostUpdated)==null?void 0:s.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}}var ys;Ye.elementStyles=[],Ye.shadowRootOptions={mode:"open"},Ye[ct("elementProperties")]=new Map,Ye[ct("finalized")]=new Map,Kt==null||Kt({ReactiveElement:Ye}),((ys=we.reactiveElementVersions)!=null?ys:we.reactiveElementVersions=[]).push("2.1.1");/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */const Ge=globalThis,Xi=o=>o,mt=Ge.trustedTypes,Zi=mt?mt.createPolicy("lit-html",{createHTML:o=>o}):void 0,Ko="$lit$",he=`lit$${Math.random().toFixed(9).slice(2)}$`,Go="?"+he,Ir=`<${Go}>`,Te=document,Xe=()=>Te.createComment(""),Ze=o=>o===null||typeof o!="object"&&typeof o!="function",Ci=Array.isArray,Nr=o=>Ci(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",It=`[
22
- \f\r]`,Be=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Qi=/-->/g,eo=/>/g,ye=RegExp(`>|${It}(?:([^\\s"'>=/]+)(${It}*=${It}*(?:[^
23
- \f\r"'\`<>=]|("|')|))|$)`,"g"),to=/'/g,io=/"/g,Jo=/^(?:script|style|textarea|title)$/i,Fe=Symbol.for("lit-noChange"),Y=Symbol.for("lit-nothing"),oo=new WeakMap,ve=Te.createTreeWalker(Te,129);function Xo(o,t){if(!Ci(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Zi!==void 0?Zi.createHTML(t):t}const Fr=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":t===3?"<math>":"",n=Be;for(let a=0;a<e;a++){const l=o[a];let u,c,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,c=n.exec(l),c!==null);)p=n.lastIndex,n===Be?c[1]==="!--"?n=Qi:c[1]!==void 0?n=eo:c[2]!==void 0?(Jo.test(c[2])&&(s=RegExp("</"+c[2],"g")),n=ye):c[3]!==void 0&&(n=ye):n===ye?c[0]===">"?(n=s!=null?s:Be,h=-1):c[1]===void 0?h=-2:(h=n.lastIndex-c[2].length,u=c[1],n=c[3]===void 0?ye:c[3]==='"'?io:to):n===io||n===to?n=ye:n===Qi||n===eo?n=Be:(n=ye,s=void 0);const m=n===ye&&o[a+1].startsWith("/>")?" ":"";r+=n===Be?l+Ir:h>=0?(i.push(u),l.slice(0,h)+Ko+l.slice(h)+he+m):l+he+(h===-2?a:m)}return[Xo(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Qe{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[u,c]=Fr(t,e);if(this.el=Qe.createElement(u,i),ve.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=ve.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Ko)){const p=c[n++],m=s.getAttribute(h).split(he),_=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:_[2],strings:m,ctor:_[1]==="."?Lr:_[1]==="?"?$r:_[1]==="@"?Rr:Ct}),s.removeAttribute(h)}else h.startsWith(he)&&(l.push({type:6,index:r}),s.removeAttribute(h));if(Jo.test(s.tagName)){const h=s.textContent.split(he),p=h.length-1;if(p>0){s.textContent=mt?mt.emptyScript:"";for(let m=0;m<p;m++)s.append(h[m],Xe()),ve.nextNode(),l.push({type:2,index:++r});s.append(h[p],Xe())}}}else if(s.nodeType===8)if(s.data===Go)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(he,h+1))!==-1;)l.push({type:7,index:r}),h+=he.length-1}r++}}static createElement(t,e){const i=Te.createElement("template");return i.innerHTML=t,i}}function ze(o,t,e=o,i){var n,a,l;if(t===Fe)return t;let s=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=Ze(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),r===void 0?s=void 0:(s=new r(o),s._$AT(o,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=s:e._$Cl=s),s!==void 0&&(t=ze(o,s._$AS(o,t.values),s,i)),t}class zr{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var u;const{el:{content:e},parts:i}=this._$AD,s=((u=t==null?void 0:t.creationScope)!=null?u:Te).importNode(e,!0);ve.currentNode=s;let r=ve.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let c;l.type===2?c=new nt(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new Hr(r,this,t)),this._$AV.push(c),l=i[++a]}n!==(l==null?void 0:l.index)&&(r=ve.nextNode(),n++)}return ve.currentNode=Te,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class nt{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,s){var r;this.type=2,this._$AH=Y,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(r=s==null?void 0:s.isConnected)!=null?r:!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=ze(this,t,e),Ze(t)?t===Y||t==null||t===""?(this._$AH!==Y&&this._$AR(),this._$AH=Y):t!==this._$AH&&t!==Fe&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Nr(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==Y&&Ze(this._$AH)?this._$AA.nextSibling.data=t:this.T(Te.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Qe.createElement(Xo(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(e);else{const n=new zr(s,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=oo.get(t.strings);return e===void 0&&oo.set(t.strings,e=new Qe(t)),e}k(t){Ci(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new nt(this.O(Xe()),this.O(Xe()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t!==this._$AB;){const s=Xi(t).nextSibling;Xi(t).remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Ct{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,r){this.type=1,this._$AH=Y,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=Y}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=ze(this,t,e,0),n=!Ze(t)||t!==this._$AH&&t!==Fe,n&&(this._$AH=t);else{const a=t;let l,u;for(t=r[0],l=0;l<r.length-1;l++)u=ze(this,a[i+l],e,l),u===Fe&&(u=this._$AH[l]),n||(n=!Ze(u)||u!==this._$AH[l]),u===Y?t=Y:t!==Y&&(t+=(u!=null?u:"")+r[l+1]),this._$AH[l]=u}n&&!s&&this.j(t)}j(t){t===Y?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Lr extends Ct{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===Y?void 0:t}}class $r extends Ct{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==Y)}}class Rr extends Ct{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var n;if((t=(n=ze(this,t,e,0))!=null?n:Y)===Fe)return;const i=this._$AH,s=t===Y&&i!==Y||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==Y&&(i===Y||s);s&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}}class Hr{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){ze(this,t)}}const Nt=Ge.litHtmlPolyfillSupport;var Uo;Nt==null||Nt(Qe,nt),((Uo=Ge.litHtmlVersions)!=null?Uo:Ge.litHtmlVersions=[]).push("3.3.2");const Br=(o,t,e)=>{var r,n;const i=(r=e==null?void 0:e.renderBefore)!=null?r:t;let s=i._$litPart$;if(s===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=s=new nt(t.insertBefore(Xe(),a),a,void 0,e!=null?e:{})}return s._$AI(o),s};/**
21
+ */const ut=globalThis,It=ut.trustedTypes,wo=It?It.createPolicy("lit-html",{createHTML:i=>i}):void 0,Ss="$lit$",xe=`lit$${Math.random().toFixed(9).slice(2)}$`,As="?"+xe,gr=`<${As}>`,Le=document,ht=()=>Le.createComment(""),pt=i=>i===null||typeof i!="object"&&typeof i!="function",Ui=Array.isArray,yr=i=>Ui(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Gt=`[
22
+ \f\r]`,tt=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Eo=/-->/g,So=/>/g,De=RegExp(`>|${Gt}(?:([^\\s"'>=/]+)(${Gt}*=${Gt}*(?:[^
23
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ao=/'/g,Co=/"/g,Cs=/^(?:script|style|textarea|title)$/i,Ge=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),ko=new WeakMap,Te=Le.createTreeWalker(Le,129);function ks(i,t){if(!Ui(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return wo!==void 0?wo.createHTML(t):t}const br=(i,t)=>{const e=i.length-1,o=[];let s,n=t===2?"<svg>":t===3?"<math>":"",r=tt;for(let a=0;a<e;a++){const l=i[a];let u,d,h=-1,p=0;for(;p<l.length&&(r.lastIndex=p,d=r.exec(l),d!==null);)p=r.lastIndex,r===tt?d[1]==="!--"?r=Eo:d[1]!==void 0?r=So:d[2]!==void 0?(Cs.test(d[2])&&(s=RegExp("</"+d[2],"g")),r=De):d[3]!==void 0&&(r=De):r===De?d[0]===">"?(r=s!=null?s:tt,h=-1):d[1]===void 0?h=-2:(h=r.lastIndex-d[2].length,u=d[1],r=d[3]===void 0?De:d[3]==='"'?Co:Ao):r===Co||r===Ao?r=De:r===Eo||r===So?r=tt:(r=De,s=void 0);const m=r===De&&i[a+1].startsWith("/>")?" ":"";n+=r===tt?l+gr:h>=0?(o.push(u),l.slice(0,h)+Ss+l.slice(h)+xe+m):l+xe+(h===-2?a:m)}return[ks(i,n+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]};class ft{constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let n=0,r=0;const a=t.length-1,l=this.parts,[u,d]=br(t,e);if(this.el=ft.createElement(u,o),Te.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=Te.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Ss)){const p=d[r++],m=s.getAttribute(h).split(xe),g=/([.?@])?(.*)/.exec(p);l.push({type:1,index:n,name:g[2],strings:m,ctor:g[1]==="."?xr:g[1]==="?"?wr:g[1]==="@"?Er:Yt}),s.removeAttribute(h)}else h.startsWith(xe)&&(l.push({type:6,index:n}),s.removeAttribute(h));if(Cs.test(s.tagName)){const h=s.textContent.split(xe),p=h.length-1;if(p>0){s.textContent=It?It.emptyScript:"";for(let m=0;m<p;m++)s.append(h[m],ht()),Te.nextNode(),l.push({type:2,index:++n});s.append(h[p],ht())}}}else if(s.nodeType===8)if(s.data===As)l.push({type:2,index:n});else{let h=-1;for(;(h=s.data.indexOf(xe,h+1))!==-1;)l.push({type:7,index:n}),h+=xe.length-1}n++}}static createElement(t,e){const o=Le.createElement("template");return o.innerHTML=t,o}}function Xe(i,t,e=i,o){var r,a,l;if(t===Ge)return t;let s=o!==void 0?(r=e._$Co)==null?void 0:r[o]:e._$Cl;const n=pt(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==n&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),n===void 0?s=void 0:(s=new n(i),s._$AT(i,e,o)),o!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[o]=s:e._$Cl=s),s!==void 0&&(t=Xe(i,s._$AS(i,t.values),s,o)),t}class vr{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var u;const{el:{content:e},parts:o}=this._$AD,s=((u=t==null?void 0:t.creationScope)!=null?u:Le).importNode(e,!0);Te.currentNode=s;let n=Te.nextNode(),r=0,a=0,l=o[0];for(;l!==void 0;){if(r===l.index){let d;l.type===2?d=new wt(n,n.nextSibling,this,t):l.type===1?d=new l.ctor(n,l.name,l.strings,this,t):l.type===6&&(d=new Sr(n,this,t)),this._$AV.push(d),l=o[++a]}r!==(l==null?void 0:l.index)&&(n=Te.nextNode(),r++)}return Te.currentNode=Le,s}p(t){let e=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class wt{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,o,s){var n;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cv=(n=s==null?void 0:s.isConnected)!=null?n:!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Xe(this,t,e),pt(t)?t===U||t==null||t===""?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==Ge&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):yr(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==U&&pt(this._$AH)?this._$AA.nextSibling.data=t:this.T(Le.createTextNode(t)),this._$AH=t}$(t){var n;const{values:e,_$litType$:o}=t,s=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=ft.createElement(ks(o.h,o.h[0]),this.options)),o);if(((n=this._$AH)==null?void 0:n._$AD)===s)this._$AH.p(e);else{const r=new vr(s,this),a=r.u(this.options);r.p(e),this.T(a),this._$AH=r}}_$AC(t){let e=ko.get(t.strings);return e===void 0&&ko.set(t.strings,e=new ft(t)),e}k(t){Ui(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,s=0;for(const n of t)s===e.length?e.push(o=new wt(this.O(ht()),this.O(ht()),this,this.options)):o=e[s],o._$AI(n),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,e);t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Yt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,s,n){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=n,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=U}_$AI(t,e=this,o,s){const n=this.strings;let r=!1;if(n===void 0)t=Xe(this,t,e,0),r=!pt(t)||t!==this._$AH&&t!==Ge,r&&(this._$AH=t);else{const a=t;let l,u;for(t=n[0],l=0;l<n.length-1;l++)u=Xe(this,a[o+l],e,l),u===Ge&&(u=this._$AH[l]),r||(r=!pt(u)||u!==this._$AH[l]),u===U?t=U:t!==U&&(t+=(u!=null?u:"")+n[l+1]),this._$AH[l]=u}r&&!s&&this.j(t)}j(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class xr extends Yt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===U?void 0:t}}class wr extends Yt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==U)}}class Er extends Yt{constructor(t,e,o,s,n){super(t,e,o,s,n),this.type=5}_$AI(t,e=this){var r;if((t=(r=Xe(this,t,e,0))!=null?r:U)===Ge)return;const o=this._$AH,s=t===U&&o!==U||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,n=t!==U&&(o===U||s);s&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,o;typeof this._$AH=="function"?this._$AH.call((o=(e=this.options)==null?void 0:e.host)!=null?o:this.element,t):this._$AH.handleEvent(t)}}class Sr{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){Xe(this,t)}}const Xt=ut.litHtmlPolyfillSupport;var bs;Xt==null||Xt(ft,wt),((bs=ut.litHtmlVersions)!=null?bs:ut.litHtmlVersions=[]).push("3.3.1");const Ar=(i,t,e)=>{var n,r;const o=(n=e==null?void 0:e.renderBefore)!=null?n:t;let s=o._$litPart$;if(s===void 0){const a=(r=e==null?void 0:e.renderBefore)!=null?r:null;o._$litPart$=s=new wt(t.insertBefore(ht(),a),a,void 0,e!=null?e:{})}return s._$AI(i),s};/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */const xe=globalThis;class Oe extends Se{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,i;const t=super.createRenderRoot();return(i=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Br(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Fe}}var jo;Oe._$litElement$=!0,Oe.finalized=!0,(jo=xe.litElementHydrateSupport)==null||jo.call(xe,{LitElement:Oe});const Ft=xe.litElementPolyfillSupport;Ft==null||Ft({LitElement:Oe});var Yo;((Yo=xe.litElementVersions)!=null?Yo:xe.litElementVersions=[]).push("4.2.2");/**
27
+ */const Fe=globalThis;class je extends Ye{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,o;const t=super.createRenderRoot();return(o=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=Ar(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return Ge}}var vs;je._$litElement$=!0,je.finalized=!0,(vs=Fe.litElementHydrateSupport)==null||vs.call(Fe,{LitElement:je});const Jt=Fe.litElementPolyfillSupport;Jt==null||Jt({LitElement:je});var xs;((xs=Fe.litElementVersions)!=null?xs:Fe.litElementVersions=[]).push("4.2.1");/**
28
28
  * @license
29
29
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
30
30
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
31
- */const Vr=o=>class extends o{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,s){super.attributeChangedCallback(e,i,s),e==="theme"&&this._set_theme(s)}};/**
31
+ */const Cr=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,o,s){super.attributeChangedCallback(e,o,s),e==="theme"&&this._set_theme(s)}};/**
32
32
  * @license
33
33
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
34
34
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
35
- */const Zo=[],Xt=new Set,Ti=new Set;function Qo(o){return o&&Object.prototype.hasOwnProperty.call(o,"__themes")}function Ur(o){return Qo(customElements.get(o))}function jr(o=[]){return[o].flat(1/0).filter(t=>t instanceof xi?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function es(o,t){return(o||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function ts(o){return o.map(t=>t.cssText).join(`
36
- `)}const _t="vaadin-themable-mixin-style";function Yr(o,t){const e=document.createElement("style");e.id=_t,e.textContent=ts(o),t.content.appendChild(e)}function Wr(o){if(!o.shadowRoot)return;const t=o.constructor;if(o instanceof Oe)[...o.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Wo(o.shadowRoot,t.elementStyles);else{const e=o.shadowRoot.getElementById(_t),i=t.prototype._template;e.textContent=i.content.getElementById(_t).textContent}}function qr(o){Xt.forEach(t=>{const e=t.deref();e instanceof o?Wr(e):e||Xt.delete(t)})}function is(o){if(o.prototype instanceof Oe)o.elementStyles=o.finalizeStyles(o.styles);else{const t=o.prototype._template;t.content.getElementById(_t).textContent=ts(o.getStylesForThis())}Ti.forEach(t=>{const e=customElements.get(t);e!==o&&e.prototype instanceof o&&is(e)})}function Kr(o,t){const e=o.__themes;return!e||!t?!1:e.some(i=>i.styles.some(s=>t.some(r=>r.cssText===s.cssText)))}function U(o,t,e={}){t=jr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,t,e):Zo.push({themeFor:o,styles:t,include:e.include,moduleId:e.moduleId}),o&&Ti.forEach(i=>{if(es(o,i)&&Ur(i)){const s=customElements.get(i);Kr(s,t)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),is(s),qr(s)}})}function Zt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Zo}function Gr(o=""){let t=0;return o.startsWith("lumo-")||o.startsWith("material-")?t=1:o.startsWith("vaadin-")&&(t=2),t}function os(o){const t=[];return o.include&&[].concat(o.include).forEach(e=>{const i=Zt().find(s=>s.moduleId===e);i?t.push(...os(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},o.styles),t}function Jr(o){const t=`${o}-default-theme`,e=Zt().filter(i=>i.moduleId!==t&&es(i.themeFor,o)).map(i=>Ot(St({},i),{styles:[...os(i),...i.styles],includePriority:Gr(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return e.length>0?e:Zt().filter(i=>i.moduleId===t)}const Ae=o=>class extends Vr(o){constructor(){super(),Xt.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Ti.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Qo(this)||Yr(this.getStylesForThis(),e)}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=o.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...s,...Jr(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
35
+ */const Ps=[],mi=new Set,Vi=new Set;function Ds(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function kr(i){return Ds(customElements.get(i))}function Pr(i=[]){return[i].flat(1/0).filter(t=>t instanceof ji?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Ts(i,t){return(i||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function Ms(i){return i.map(t=>t.cssText).join(`
36
+ `)}const Ft="vaadin-themable-mixin-style";function Dr(i,t){const e=document.createElement("style");e.id=Ft,e.textContent=Ms(i),t.content.appendChild(e)}function Tr(i){if(!i.shadowRoot)return;const t=i.constructor;if(i instanceof je)[...i.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),ws(i.shadowRoot,t.elementStyles);else{const e=i.shadowRoot.getElementById(Ft),o=t.prototype._template;e.textContent=o.content.getElementById(Ft).textContent}}function Mr(i){mi.forEach(t=>{const e=t.deref();e instanceof i?Tr(e):e||mi.delete(t)})}function Os(i){if(i.prototype instanceof je)i.elementStyles=i.finalizeStyles(i.styles);else{const t=i.prototype._template;t.content.getElementById(Ft).textContent=Ms(i.getStylesForThis())}Vi.forEach(t=>{const e=customElements.get(t);e!==i&&e.prototype instanceof i&&Os(e)})}function Or(i,t){const e=i.__themes;return!e||!t?!1:e.some(o=>o.styles.some(s=>t.some(n=>n.cssText===s.cssText)))}function F(i,t,e={}){t=Pr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,t,e):Ps.push({themeFor:i,styles:t,include:e.include,moduleId:e.moduleId}),i&&Vi.forEach(o=>{if(Ts(i,o)&&kr(o)){const s=customElements.get(o);Or(s,t)?console.warn(`Registering styles that already exist for ${o}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${o}" 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".`),Os(s),Mr(s)}})}function _i(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Ps}function Ir(i=""){let t=0;return i.startsWith("lumo-")||i.startsWith("material-")?t=1:i.startsWith("vaadin-")&&(t=2),t}function Is(i){const t=[];return i.include&&[].concat(i.include).forEach(e=>{const o=_i().find(s=>s.moduleId===e);o?t.push(...Is(o),...o.styles):console.warn(`Included moduleId ${e} not found in style registry`)},i.styles),t}function Fr(i){const t=`${i}-default-theme`,e=_i().filter(o=>o.moduleId!==t&&Ts(o.themeFor,i)).map(o=>At(St({},o),{styles:[...Is(o),...o.styles],includePriority:Ir(o.moduleId)})).sort((o,s)=>s.includePriority-o.includePriority);return e.length>0?e:_i().filter(o=>o.moduleId===t)}const Re=i=>class extends Cr(i){constructor(){super(),mi.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&Vi.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Ds(this)||Dr(this.getStylesForThis(),e)}static finalizeStyles(e){const o=this.getStylesForThis();return e?[...[e].flat(1/0),...o]:o}static getStylesForThis(){const e=i.__themes||[],o=Object.getPrototypeOf(this.prototype),s=(o?o.constructor.__themes:[])||[];this.__themes=[...e,...s,...Fr(this.is)];const n=this.__themes.flatMap(r=>r.styles);return n.filter((r,a)=>a===n.lastIndexOf(r))}};/**
37
37
  * @license
38
38
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
39
39
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
40
- */const Xr=(o,...t)=>{const e=document.createElement("style");e.id=o,e.textContent=t.map(i=>i.toString()).join(`
41
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},Re=(o,...t)=>{Xr(`lumo-${o}`,t)};/**
40
+ */const Nr=(i,...t)=>{const e=document.createElement("style");e.id=i,e.textContent=t.map(o=>o.toString()).join(`
41
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},Ze=(i,...t)=>{Nr(`lumo-${i}`,t)};/**
42
42
  * @license
43
43
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
44
44
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
45
- */const Zr=O`
45
+ */const zr=S`
46
46
  :host {
47
47
  --lumo-size-xs: 1.625rem;
48
48
  --lumo-size-s: 1.875rem;
@@ -57,11 +57,11 @@
57
57
  /* For backwards compatibility */
58
58
  --lumo-icon-size: var(--lumo-icon-size-m);
59
59
  }
60
- `;Re("sizing-props",Zr);/**
60
+ `;Ze("sizing-props",zr);/**
61
61
  * @license
62
62
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
63
63
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
64
- */const Qr=O`
64
+ */const Lr=S`
65
65
  :host {
66
66
  /* Square */
67
67
  --lumo-space-xs: 0.25rem;
@@ -84,11 +84,11 @@
84
84
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
85
85
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
86
86
  }
87
- `;Re("spacing-props",Qr);/**
87
+ `;Ze("spacing-props",Lr);/**
88
88
  * @license
89
89
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
90
90
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
91
- */const en=O`
91
+ */const Rr=S`
92
92
  :host {
93
93
  /* Border radius */
94
94
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -105,7 +105,7 @@
105
105
  /* Clickable element cursor */
106
106
  --lumo-clickable-cursor: default;
107
107
  }
108
- `;O`
108
+ `;S`
109
109
  html {
110
110
  /* Button */
111
111
  --vaadin-button-background: var(--lumo-contrast-5pct);
@@ -188,11 +188,11 @@
188
188
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
189
189
  --vaadin-input-field-value-font-weight: 500;
190
190
  }
191
- `;Re("style-props",en);/**
191
+ `;Ze("style-props",Rr);/**
192
192
  * @license
193
193
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
194
194
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
195
- */const tn=O`
195
+ */const $r=S`
196
196
  :host {
197
197
  /* Base (background) */
198
198
  --lumo-base-color: #fff;
@@ -277,7 +277,7 @@
277
277
  --lumo-disabled-text-color: GrayText;
278
278
  }
279
279
  }
280
- `;Re("color-props",tn);const on=O`
280
+ `;Ze("color-props",$r);const Br=S`
281
281
  [theme~='dark'] {
282
282
  /* Base (background) */
283
283
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -395,11 +395,11 @@
395
395
  pre code {
396
396
  background: transparent;
397
397
  }
398
- `;U("",on,{moduleId:"lumo-color"});/**
398
+ `;F("",Br,{moduleId:"lumo-color"});/**
399
399
  * @license
400
400
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
401
401
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
402
- */const sn=O`
402
+ */const Hr=S`
403
403
  :host {
404
404
  /* prettier-ignore */
405
405
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -419,7 +419,7 @@
419
419
  --lumo-line-height-s: 1.375;
420
420
  --lumo-line-height-m: 1.625;
421
421
  }
422
- `,rn=O`
422
+ `,Yr=S`
423
423
  body,
424
424
  :host {
425
425
  font-family: var(--lumo-font-family);
@@ -511,11 +511,11 @@
511
511
  border-left: none;
512
512
  border-right: 2px solid var(--lumo-contrast-30pct);
513
513
  }
514
- `;U("",rn,{moduleId:"lumo-typography"});Re("typography-props",sn);/**
514
+ `;F("",Yr,{moduleId:"lumo-typography"});Ze("typography-props",Hr);/**
515
515
  * @license
516
516
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
517
517
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
518
- */const ss=O`
518
+ */const Fs=S`
519
519
  :host {
520
520
  top: var(--lumo-space-m);
521
521
  right: var(--lumo-space-m);
@@ -580,11 +580,11 @@
580
580
  opacity: 1;
581
581
  }
582
582
  }
583
- `;U("",ss,{moduleId:"lumo-overlay"});/**
583
+ `;F("",Fs,{moduleId:"lumo-overlay"});/**
584
584
  * @license
585
585
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
586
586
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
587
- */const rs=O`
587
+ */const Ns=S`
588
588
  :host([opening]),
589
589
  :host([closing]) {
590
590
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -614,7 +614,7 @@
614
614
  opacity: 0;
615
615
  }
616
616
  }
617
- `;U("",rs,{moduleId:"lumo-menu-overlay-core"});const nn=O`
617
+ `;F("",Ns,{moduleId:"lumo-menu-overlay-core"});const jr=S`
618
618
  /* Small viewport (bottom sheet) styles */
619
619
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
620
620
  @media (max-width: 450px), (max-height: 450px) {
@@ -676,7 +676,7 @@
676
676
  transform: translateY(150%);
677
677
  }
678
678
  }
679
- `,ns=[ss,rs,nn];U("",ns,{moduleId:"lumo-menu-overlay"});const an=O`
679
+ `,zs=[Fs,Ns,jr];F("",zs,{moduleId:"lumo-menu-overlay"});const Ur=S`
680
680
  [part='overlay'] {
681
681
  /*
682
682
  Width:
@@ -721,7 +721,7 @@
721
721
  max-height: 70vh;
722
722
  }
723
723
  }
724
- `;U("vaadin-date-picker-overlay",[ns,an],{moduleId:"lumo-date-picker-overlay"});const ln=O`
724
+ `;F("vaadin-date-picker-overlay",[zs,Ur],{moduleId:"lumo-date-picker-overlay"});const Vr=S`
725
725
  :host {
726
726
  /* Sizing */
727
727
  --lumo-button-size: var(--lumo-size-m);
@@ -997,7 +997,7 @@
997
997
  margin-left: 0;
998
998
  margin-right: 0;
999
999
  }
1000
- `;U("vaadin-button",ln,{moduleId:"lumo-button"});U("vaadin-date-picker-year",O`
1000
+ `;F("vaadin-button",Vr,{moduleId:"lumo-button"});F("vaadin-date-picker-year",S`
1001
1001
  :host([current]) [part='year-number'] {
1002
1002
  color: var(--lumo-primary-text-color);
1003
1003
  }
@@ -1021,7 +1021,7 @@
1021
1021
  color: var(--lumo-disabled-text-color);
1022
1022
  content: '\\2022';
1023
1023
  }
1024
- `,{moduleId:"lumo-date-picker-year"});U("vaadin-date-picker-overlay-content",O`
1024
+ `,{moduleId:"lumo-date-picker-year"});F("vaadin-date-picker-overlay-content",S`
1025
1025
  :host {
1026
1026
  position: relative;
1027
1027
  /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
@@ -1171,7 +1171,7 @@
1171
1171
  padding-left: 50px;
1172
1172
  }
1173
1173
  }
1174
- `,{moduleId:"lumo-date-picker-overlay-content"});U("vaadin-month-calendar",O`
1174
+ `,{moduleId:"lumo-date-picker-overlay-content"});F("vaadin-month-calendar",S`
1175
1175
  :host {
1176
1176
  -moz-user-select: none;
1177
1177
  -webkit-user-select: none;
@@ -1318,7 +1318,7 @@
1318
1318
  :host([disabled]) * {
1319
1319
  color: var(--lumo-disabled-text-color) !important;
1320
1320
  }
1321
- `,{moduleId:"lumo-month-calendar"});U("vaadin-input-container",O`
1321
+ `,{moduleId:"lumo-month-calendar"});F("vaadin-input-container",S`
1322
1322
  :host {
1323
1323
  background: var(--_background);
1324
1324
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -1500,7 +1500,7 @@
1500
1500
  * @license
1501
1501
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1502
1502
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1503
- */const dn=O`
1503
+ */const Wr=S`
1504
1504
  @font-face {
1505
1505
  font-family: 'lumo-icons';
1506
1506
  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==)
@@ -1553,11 +1553,11 @@
1553
1553
  --lumo-icons-upload: '\\ea29';
1554
1554
  --lumo-icons-user: '\\ea2a';
1555
1555
  }
1556
- `;Re("font-icons",dn);/**
1556
+ `;Ze("font-icons",Wr);/**
1557
1557
  * @license
1558
1558
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1559
1559
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1560
- */const as=O`
1560
+ */const Ls=S`
1561
1561
  [part$='button'] {
1562
1562
  flex: none;
1563
1563
  width: 1em;
@@ -1584,11 +1584,11 @@
1584
1584
  font-family: 'lumo-icons';
1585
1585
  display: block;
1586
1586
  }
1587
- `;U("",as,{moduleId:"lumo-field-button"});/**
1587
+ `;F("",Ls,{moduleId:"lumo-field-button"});/**
1588
1588
  * @license
1589
1589
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1590
1590
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1591
- */const un=O`
1591
+ */const qr=S`
1592
1592
  :host {
1593
1593
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1594
1594
  }
@@ -1648,7 +1648,7 @@
1648
1648
  * @license
1649
1649
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1650
1650
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1651
- */const ls=O`
1651
+ */const Rs=S`
1652
1652
  [part='label'] {
1653
1653
  align-self: flex-start;
1654
1654
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1760,11 +1760,11 @@
1760
1760
  margin-left: 0;
1761
1761
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1762
1762
  }
1763
- `;U("",ls,{moduleId:"lumo-required-field"});/**
1763
+ `;F("",Rs,{moduleId:"lumo-required-field"});/**
1764
1764
  * @license
1765
1765
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1766
1766
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1767
- */const cn=O`
1767
+ */const Kr=S`
1768
1768
  :host {
1769
1769
  --lumo-text-field-size: var(--lumo-size-m);
1770
1770
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -1895,7 +1895,7 @@
1895
1895
  [part='clear-button']::before {
1896
1896
  content: var(--lumo-icons-cross);
1897
1897
  }
1898
- `,ds=[ls,as,un,cn];U("",ds,{moduleId:"lumo-input-field-shared-styles"});const hn=O`
1898
+ `,$s=[Rs,Ls,qr,Kr];F("",$s,{moduleId:"lumo-input-field-shared-styles"});const Gr=S`
1899
1899
  [part='toggle-button']::before {
1900
1900
  content: var(--lumo-icons-calendar);
1901
1901
  }
@@ -1917,7 +1917,7 @@
1917
1917
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
1918
1918
  --_lumo-text-field-overflow-mask-image: none;
1919
1919
  }
1920
- `;U("vaadin-date-picker",[ds,hn],{moduleId:"lumo-date-picker"});/**
1920
+ `;F("vaadin-date-picker",[$s,Gr],{moduleId:"lumo-date-picker"});/**
1921
1921
  @license
1922
1922
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1923
1923
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1925,7 +1925,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1925
1925
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1926
1926
  Code distributed by Google as part of the polymer project is also
1927
1927
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1928
- */window.JSCompiler_renameProperty=function(o,t){return o};/**
1928
+ */window.JSCompiler_renameProperty=function(i,t){return i};/**
1929
1929
  @license
1930
1930
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1931
1931
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1933,7 +1933,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1933
1933
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1934
1934
  Code distributed by Google as part of the polymer project is also
1935
1935
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1936
- */let pn=/(url\()([^)]*)(\))/g,fn=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,lt,ee;function Je(o,t){if(o&&fn.test(o)||o==="//")return o;if(lt===void 0){lt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",lt=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),lt)try{return new URL(o,t).href}catch(e){return o}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=t,ee.anchor.href=o,ee.anchor.href||o}function Ai(o,t){return o.replace(pn,function(e,i,s,r){return i+"'"+Je(s.replace(/["']/g,""),t)+"'"+r})}function Di(o){return o.substring(0,o.lastIndexOf("/")+1)}/**
1936
+ */let Xr=/(url\()([^)]*)(\))/g,Jr=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Ct,oe;function dt(i,t){if(i&&Jr.test(i)||i==="//")return i;if(Ct===void 0){Ct=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Ct=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),Ct)try{return new URL(i,t).href}catch(e){return i}return oe||(oe=document.implementation.createHTMLDocument("temp"),oe.base=oe.createElement("base"),oe.head.appendChild(oe.base),oe.anchor=oe.createElement("a"),oe.body.appendChild(oe.anchor)),oe.base.href=t,oe.anchor.href=i,oe.anchor.href||i}function Wi(i,t){return i.replace(Xr,function(e,o,s,n){return o+"'"+dt(s.replace(/["']/g,""),t)+"'"+n})}function qi(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
1937
1937
  @license
1938
1938
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1939
1939
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1941,7 +1941,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1941
1941
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1942
1942
  Code distributed by Google as part of the polymer project is also
1943
1943
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1944
- */const us=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const mn=us&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const o=new CSSStyleSheet;o.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[o],t.shadowRoot.adoptedStyleSheets[0]===o}catch(o){return!1}})();let _n=window.Polymer&&window.Polymer.rootPath||Di(document.baseURI||window.location.href),gt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let yt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,gn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,cs=window.Polymer&&window.Polymer.legacyOptimizations||!1,hs=window.Polymer&&window.Polymer.legacyWarnings||!1,yn=window.Polymer&&window.Polymer.syncInitialRender||!1,Qt=window.Polymer&&window.Polymer.legacyUndefined||!1,vn=window.Polymer&&window.Polymer.orderedComputed||!1,so=window.Polymer&&window.Polymer.removeNestedTemplates||!1,bn=window.Polymer&&window.Polymer.fastDomIf||!1,ro=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let wn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1944
+ */const Bs=!window.ShadyDOM||!window.ShadyDOM.inUse;!window.ShadyCSS||window.ShadyCSS.nativeCss;const Zr=Bs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[i],t.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Qr=window.Polymer&&window.Polymer.rootPath||qi(document.baseURI||window.location.href),Nt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;window.Polymer&&window.Polymer.setPassiveTouchGestures;let zt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,ea=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Hs=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ys=window.Polymer&&window.Polymer.legacyWarnings||!1,ta=window.Polymer&&window.Polymer.syncInitialRender||!1,gi=window.Polymer&&window.Polymer.legacyUndefined||!1,ia=window.Polymer&&window.Polymer.orderedComputed||!1,Po=window.Polymer&&window.Polymer.removeNestedTemplates||!1,oa=window.Polymer&&window.Polymer.fastDomIf||!1,Do=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;window.Polymer&&window.Polymer.legacyNoObservedAttributes;let sa=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1945
1945
  @license
1946
1946
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1947
1947
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1949,7 +1949,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1949
1949
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1950
1950
  Code distributed by Google as part of the polymer project is also
1951
1951
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1952
- */let xn=0;const j=function(o){let t=o.__mixinApplications;t||(t=new WeakMap,o.__mixinApplications=t);let e=xn++;function i(s){let r=s.__mixinSet;if(r&&r[e])return s;let n=t,a=n.get(s);if(!a){a=o(s),n.set(s,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l}return a}return i};/**
1952
+ */let na=0;const $=function(i){let t=i.__mixinApplications;t||(t=new WeakMap,i.__mixinApplications=t);let e=na++;function o(s){let n=s.__mixinSet;if(n&&n[e])return s;let r=t,a=r.get(s);if(!a){a=i(s),r.set(s,a);let l=Object.create(a.__mixinSet||n||null);l[e]=!0,a.__mixinSet=l}return a}return o};/**
1953
1953
  @license
1954
1954
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1955
1955
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1957,7 +1957,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1957
1957
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1958
1958
  Code distributed by Google as part of the polymer project is also
1959
1959
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1960
- */let Ei={},ps={};function no(o,t){Ei[o]=ps[o.toLowerCase()]=t}function ao(o){return Ei[o]||ps[o.toLowerCase()]}function Cn(o){o.querySelector("style")&&console.warn("dom-module %s has style outside template",o.id)}class et extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let i=ao(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,s){e!==i&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Je(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Di(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(yt&&ao(t)!==void 0)throw no(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,no(t,this),Cn(this)}}}et.prototype.modules=Ei;customElements.define("dom-module",et);/**
1960
+ */let Ki={},js={};function To(i,t){Ki[i]=js[i.toLowerCase()]=t}function Mo(i){return Ki[i]||js[i.toLowerCase()]}function ra(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class mt extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let o=Mo(t);return o&&e?o.querySelector(e):o}return null}attributeChangedCallback(t,e,o,s){e!==o&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=dt(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=qi(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(zt&&Mo(t)!==void 0)throw To(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,To(t,this),ra(this)}}}mt.prototype.modules=Ki;customElements.define("dom-module",mt);/**
1961
1961
  @license
1962
1962
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1963
1963
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1965,7 +1965,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1965
1965
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1966
1966
  Code distributed by Google as part of the polymer project is also
1967
1967
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1968
- */const Tn="link[rel=import][type~=css]",An="include",lo="shady-unscoped";function fs(o){return et.import(o)}function uo(o){let t=o.body?o.body:o;const e=Ai(t.textContent,o.baseURI),i=document.createElement("style");return i.textContent=e,i}function Dn(o){const t=o.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...En(t[i]));return e}function En(o){const t=fs(o);if(!t)return console.warn("Could not find style data in module named",o),[];if(t._styles===void 0){const e=[];e.push(..._s(t));const i=t.querySelector("template");i&&e.push(...ms(i,t.assetpath)),t._styles=e}return t._styles}function ms(o,t){if(!o._styles){const e=[],i=o.content.querySelectorAll("style");for(let s=0;s<i.length;s++){let r=i[s],n=r.getAttribute(An);n&&e.push(...Dn(n).filter(function(a,l,u){return u.indexOf(a)===l})),t&&(r.textContent=Ai(r.textContent,t)),e.push(r)}o._styles=e}return o._styles}function kn(o){let t=fs(o);return t?_s(t):[]}function _s(o){const t=[],e=o.querySelectorAll(Tn);for(let i=0;i<e.length;i++){let s=e[i];if(s.import){const r=s.import,n=s.hasAttribute(lo);if(n&&!r._unscopedStyle){const a=uo(r);a.setAttribute(lo,""),r._unscopedStyle=a}else r._style||(r._style=uo(r));t.push(n?r._unscopedStyle:r._style)}}return t}/**
1968
+ */const aa="link[rel=import][type~=css]",la="include",Oo="shady-unscoped";function Us(i){return mt.import(i)}function Io(i){let t=i.body?i.body:i;const e=Wi(t.textContent,i.baseURI),o=document.createElement("style");return o.textContent=e,o}function ca(i){const t=i.trim().split(/\s+/),e=[];for(let o=0;o<t.length;o++)e.push(...ua(t[o]));return e}function ua(i){const t=Us(i);if(!t)return console.warn("Could not find style data in module named",i),[];if(t._styles===void 0){const e=[];e.push(...Ws(t));const o=t.querySelector("template");o&&e.push(...Vs(o,t.assetpath)),t._styles=e}return t._styles}function Vs(i,t){if(!i._styles){const e=[],o=i.content.querySelectorAll("style");for(let s=0;s<o.length;s++){let n=o[s],r=n.getAttribute(la);r&&e.push(...ca(r).filter(function(a,l,u){return u.indexOf(a)===l})),t&&(n.textContent=Wi(n.textContent,t)),e.push(n)}i._styles=e}return i._styles}function da(i){let t=Us(i);return t?Ws(t):[]}function Ws(i){const t=[],e=i.querySelectorAll(aa);for(let o=0;o<e.length;o++){let s=e[o];if(s.import){const n=s.import,r=s.hasAttribute(Oo);if(r&&!n._unscopedStyle){const a=Io(n);a.setAttribute(Oo,""),n._unscopedStyle=a}else n._style||(n._style=Io(n));t.push(r?n._unscopedStyle:n._style)}}return t}/**
1969
1969
  @license
1970
1970
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1971
1971
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1973,7 +1973,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1973
1973
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1974
1974
  Code distributed by Google as part of the polymer project is also
1975
1975
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1976
- */const q=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?o=>ShadyDOM.patch(o):o=>o;/**
1976
+ */const q=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
1977
1977
  @license
1978
1978
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1979
1979
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1981,7 +1981,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1981
1981
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1982
1982
  Code distributed by Google as part of the polymer project is also
1983
1983
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1984
- */function ei(o){return o.indexOf(".")>=0}function De(o){let t=o.indexOf(".");return t===-1?o:o.slice(0,t)}function gs(o,t){return o.indexOf(t+".")===0}function tt(o,t){return t.indexOf(o+".")===0}function it(o,t,e){return t+e.slice(o.length)}function Pn(o,t){return o===t||gs(o,t)||tt(o,t)}function We(o){if(Array.isArray(o)){let t=[];for(let e=0;e<o.length;e++){let i=o[e].toString().split(".");for(let s=0;s<i.length;s++)t.push(i[s])}return t.join(".")}else return o}function ys(o){return Array.isArray(o)?We(o).split("."):o.toString().split(".")}function Z(o,t,e){let i=o,s=ys(t);for(let r=0;r<s.length;r++){if(!i)return;let n=s[r];i=i[n]}return e&&(e.path=s.join(".")),i}function co(o,t,e){let i=o,s=ys(t),r=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(i=i[a],!i)return}i[r]=e}else i[t]=e;return s.join(".")}/**
1984
+ */function yi(i){return i.indexOf(".")>=0}function $e(i){let t=i.indexOf(".");return t===-1?i:i.slice(0,t)}function qs(i,t){return i.indexOf(t+".")===0}function _t(i,t){return t.indexOf(i+".")===0}function gt(i,t,e){return t+e.slice(i.length)}function ha(i,t){return i===t||qs(i,t)||_t(i,t)}function at(i){if(Array.isArray(i)){let t=[];for(let e=0;e<i.length;e++){let o=i[e].toString().split(".");for(let s=0;s<o.length;s++)t.push(o[s])}return t.join(".")}else return i}function Ks(i){return Array.isArray(i)?at(i).split("."):i.toString().split(".")}function ee(i,t,e){let o=i,s=Ks(t);for(let n=0;n<s.length;n++){if(!o)return;let r=s[n];o=o[r]}return e&&(e.path=s.join(".")),o}function Fo(i,t,e){let o=i,s=Ks(t),n=s[s.length-1];if(s.length>1){for(let r=0;r<s.length-1;r++){let a=s[r];if(o=o[a],!o)return}o[n]=e}else o[t]=e;return s.join(".")}/**
1985
1985
  @license
1986
1986
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1987
1987
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1989,7 +1989,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1989
1989
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1990
1990
  Code distributed by Google as part of the polymer project is also
1991
1991
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1992
- */const vt={},Sn=/-[a-z]/g,On=/([A-Z])/g;function vs(o){return vt[o]||(vt[o]=o.indexOf("-")<0?o:o.replace(Sn,t=>t[1].toUpperCase()))}function Tt(o){return vt[o]||(vt[o]=o.replace(On,"-$1").toLowerCase())}/**
1992
+ */const Lt={},pa=/-[a-z]/g,fa=/([A-Z])/g;function Gs(i){return Lt[i]||(Lt[i]=i.indexOf("-")<0?i:i.replace(pa,t=>t[1].toUpperCase()))}function jt(i){return Lt[i]||(Lt[i]=i.replace(fa,"-$1").toLowerCase())}/**
1993
1993
  @license
1994
1994
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1995
1995
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1997,7 +1997,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1997
1997
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1998
1998
  Code distributed by Google as part of the polymer project is also
1999
1999
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2000
- */let Mn=0,bs=0,Me=[],In=0,ti=!1,ws=document.createTextNode("");new window.MutationObserver(Nn).observe(ws,{characterData:!0});function Nn(){ti=!1;const o=Me.length;for(let t=0;t<o;t++){let e=Me[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}Me.splice(0,o),bs+=o}const Fn={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},xs={run(o){return ti||(ti=!0,ws.textContent=In++),Me.push(o),Mn++},cancel(o){const t=o-bs;if(t>=0){if(!Me[t])throw new Error("invalid async handle: "+o);Me[t]=null}}};/**
2000
+ */let ma=0,Xs=0,Ue=[],_a=0,bi=!1,Js=document.createTextNode("");new window.MutationObserver(ga).observe(Js,{characterData:!0});function ga(){bi=!1;const i=Ue.length;for(let t=0;t<i;t++){let e=Ue[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}Ue.splice(0,i),Xs+=i}const ya={after(i){return{run(t){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}}},run(i,t){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}},Zs={run(i){return bi||(bi=!0,Js.textContent=_a++),Ue.push(i),ma++},cancel(i){const t=i-Xs;if(t>=0){if(!Ue[t])throw new Error("invalid async handle: "+i);Ue[t]=null}}};/**
2001
2001
  @license
2002
2002
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2003
2003
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2005,7 +2005,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2005
2005
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2006
2006
  Code distributed by Google as part of the polymer project is also
2007
2007
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2008
- */const zn=xs,Cs=j(o=>{class t extends o{static createProperties(i){const s=this.prototype;for(let r in i)r in s||s._createPropertyAccessor(r)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,s){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,s))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[i];return s||(s=this.constructor.attributeNameForProperty(i),this.__dataAttributes[s]=i),s}_definePropertyAccessor(i,s){Object.defineProperty(this,i,{get(){return this.__data[i]},set:s?function(){}:function(r){this._setPendingProperty(i,r,!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 i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,s){this._setPendingProperty(i,s)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,s,r){let n=this.__data[i],a=this._shouldPropertyChange(i,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=s,this.__dataPending[i]=s),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,zn.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 i=this.__data,s=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,s,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,s,r)),this.__dataCounter--}_shouldPropertiesChange(i,s,r){return!!s}_propertiesChanged(i,s,r){}_shouldPropertyChange(i,s,r){return r!==s&&(r===r||s===s)}attributeChangedCallback(i,s,r,n){s!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,s,r,n)}_attributeToProperty(i,s,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(s,r||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,s,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,s||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,s,r){const n=this._serializeValue(s);(r==="class"||r==="name"||r==="slot")&&(i=q(i)),n===void 0?i.removeAttribute(r):i.setAttribute(r,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,s){switch(s){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
2008
+ */const ba=Zs,Qs=$(i=>{class t extends i{static createProperties(o){const s=this.prototype;for(let n in o)n in s||s._createPropertyAccessor(n)}static attributeNameForProperty(o){return o.toLowerCase()}static typeForProperty(o){}_createPropertyAccessor(o,s){this._addPropertyToAttributeMap(o),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[o]||(this.__dataHasAccessor[o]=!0,this._definePropertyAccessor(o,s))}_addPropertyToAttributeMap(o){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[o];return s||(s=this.constructor.attributeNameForProperty(o),this.__dataAttributes[s]=o),s}_definePropertyAccessor(o,s){Object.defineProperty(this,o,{get(){return this.__data[o]},set:s?function(){}:function(n){this._setPendingProperty(o,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 o in this.__dataHasAccessor)this.hasOwnProperty(o)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[o]=this[o],delete this[o])}_initializeInstanceProperties(o){Object.assign(this,o)}_setProperty(o,s){this._setPendingProperty(o,s)&&this._invalidateProperties()}_getProperty(o){return this.__data[o]}_setPendingProperty(o,s,n){let r=this.__data[o],a=this._shouldPropertyChange(o,s,r);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(o in this.__dataOld)&&(this.__dataOld[o]=r),this.__data[o]=s,this.__dataPending[o]=s),a}_isPropertyPending(o){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(o))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,ba.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 o=this.__data,s=this.__dataPending,n=this.__dataOld;this._shouldPropertiesChange(o,s,n)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(o,s,n)),this.__dataCounter--}_shouldPropertiesChange(o,s,n){return!!s}_propertiesChanged(o,s,n){}_shouldPropertyChange(o,s,n){return n!==s&&(n===n||s===s)}attributeChangedCallback(o,s,n,r){s!==n&&this._attributeToProperty(o,n),super.attributeChangedCallback&&super.attributeChangedCallback(o,s,n,r)}_attributeToProperty(o,s,n){if(!this.__serializing){const r=this.__dataAttributes,a=r&&r[o]||o;this[a]=this._deserializeValue(s,n||this.constructor.typeForProperty(a))}}_propertyToAttribute(o,s,n){this.__serializing=!0,n=arguments.length<3?this[o]:n,this._valueToNodeAttribute(this,n,s||this.constructor.attributeNameForProperty(o)),this.__serializing=!1}_valueToNodeAttribute(o,s,n){const r=this._serializeValue(s);(n==="class"||n==="name"||n==="slot")&&(o=q(o)),r===void 0?o.removeAttribute(n):o.setAttribute(n,r===""&&window.trustedTypes?window.trustedTypes.emptyScript:r)}_serializeValue(o){switch(typeof o){case"boolean":return o?"":void 0;default:return o!=null?o.toString():void 0}}_deserializeValue(o,s){switch(s){case Boolean:return o!==null;case Number:return Number(o);default:return o}}}return t});/**
2009
2009
  @license
2010
2010
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2011
2011
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2013,7 +2013,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2013
2013
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2014
2014
  Code distributed by Google as part of the polymer project is also
2015
2015
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2016
- */const Ts={};let dt=HTMLElement.prototype;for(;dt;){let o=Object.getOwnPropertyNames(dt);for(let t=0;t<o.length;t++)Ts[o[t]]=!0;dt=Object.getPrototypeOf(dt)}const Ln=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function $n(o,t){if(!Ts[t]){let e=o[t];e!==void 0&&(o.__data?o._setPendingProperty(t,e):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[t]=e))}}const Rn=j(o=>{const t=Cs(o);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let r=0;r<s.length;r++)this.prototype._createPropertyAccessor(vs(s[r]))}static attributeNameForProperty(s){return Tt(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let r in s)this._setProperty(r,s[r])}_ensureAttribute(s,r){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,r,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Ln(s))return s;try{return JSON.stringify(s)}catch(r){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,r){let n;switch(r){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,r);break}return n}_definePropertyAccessor(s,r){$n(this,s),super._definePropertyAccessor(s,r)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
2016
+ */const en={};let kt=HTMLElement.prototype;for(;kt;){let i=Object.getOwnPropertyNames(kt);for(let t=0;t<i.length;t++)en[i[t]]=!0;kt=Object.getPrototypeOf(kt)}const va=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function xa(i,t){if(!en[t]){let e=i[t];e!==void 0&&(i.__data?i._setPendingProperty(t,e):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[t]=e))}}const wa=$(i=>{const t=Qs(i);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let n=0;n<s.length;n++)this.prototype._createPropertyAccessor(Gs(s[n]))}static attributeNameForProperty(s){return jt(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let n in s)this._setProperty(n,s[n])}_ensureAttribute(s,n){const r=this;r.hasAttribute(s)||this._valueToNodeAttribute(r,n,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(va(s))return s;try{return JSON.stringify(s)}catch(n){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,n){let r;switch(n){case Object:try{r=JSON.parse(s)}catch(a){r=s}break;case Array:try{r=JSON.parse(s)}catch(a){r=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:r=isNaN(s)?String(s):Number(s),r=new Date(r);break;default:r=super._deserializeValue(s,n);break}return r}_definePropertyAccessor(s,n){xa(this,s),super._definePropertyAccessor(s,n)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
2017
2017
  @license
2018
2018
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2019
2019
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2021,7 +2021,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2021
2021
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2022
2022
  Code distributed by Google as part of the polymer project is also
2023
2023
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2024
- */const Hn={"dom-if":!0,"dom-repeat":!0};let ho=!1,po=!1;function Bn(){if(!ho){ho=!0;const o=document.createElement("textarea");o.placeholder="a",po=o.placeholder===o.textContent}return po}function Vn(o){Bn()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null)}const Un=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,i)=>{const s=e.getAttribute(i);if(o&&i.startsWith("on-")){t.setAttribute(i,o.createScript(s,i));return}t.setAttribute(i,s)}})();function jn(o){let t=o.getAttribute("is");if(t&&Hn[t]){let e=o;for(e.removeAttribute("is"),o=e.ownerDocument.createElement(t),e.parentNode.replaceChild(o,e),o.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];Un(o,e,i),e.removeAttribute(i)}}return o}function As(o,t){let e=t.parentInfo&&As(o,t.parentInfo);if(e){for(let i=e.firstChild,s=0;i;i=i.nextSibling)if(t.parentIndex===s++)return i}else return o}function Yn(o,t,e,i){i.id&&(t[i.id]=e)}function Wn(o,t,e){if(e.events&&e.events.length)for(let i=0,s=e.events,r;i<s.length&&(r=s[i]);i++)o._addMethodEventListenerToNode(t,r.name,r.value,o)}function qn(o,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i)}function Kn(o,t,e){return o=o._methodHost||o,function(s){o[e]?o[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const Gn=j(o=>{class t extends o{static _parseTemplate(i,s){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!s,r.stripWhiteSpace=s&&s.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,s,r){return this._parseTemplateNode(i.content,s,r)}static _parseTemplateNode(i,s,r){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,r)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),Vn(a),a.firstChild&&this._parseTemplateChildNodes(a,s,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,r)||n),n||r.noted}static _parseTemplateChildNodes(i,s,r){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=jn(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,i.removeChild(c),c=l;if(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let u={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,s,u)&&(u.infoIndex=s.nodeInfoList.push(u)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,s,r){let n=i,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,s,r){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,u;u=a[l];l--)n=this._parseTemplateNodeAttribute(i,s,r,u.name,u.value)||n;return n}static _parseTemplateNodeAttribute(i,s,r,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(i){let s=i._templateInfo;return s&&s.content||i.content}_stampTemplate(i,s){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),s=s||this.constructor._parseTemplate(i);let r=s.nodeInfoList,n=s.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let u=0,c=r.length,h;u<c&&(h=r[u]);u++){let p=l[u]=As(a,h);Yn(this,a.$,p,h),qn(this,p,h,s),Wn(this,p,h)}return a=a,a}_addMethodEventListenerToNode(i,s,r,n){n=n||i;let a=Kn(n,s,r);return this._addEventListenerToNode(i,s,a),a}_addEventListenerToNode(i,s,r){i.addEventListener(s,r)}_removeEventListenerFromNode(i,s,r){i.removeEventListener(s,r)}}return t});/**
2024
+ */const Ea={"dom-if":!0,"dom-repeat":!0};let No=!1,zo=!1;function Sa(){if(!No){No=!0;const i=document.createElement("textarea");i.placeholder="a",zo=i.placeholder===i.textContent}return zo}function Aa(i){Sa()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const Ca=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,o)=>{const s=e.getAttribute(o);if(i&&o.startsWith("on-")){t.setAttribute(o,i.createScript(s,o));return}t.setAttribute(o,s)}})();function ka(i){let t=i.getAttribute("is");if(t&&Ea[t]){let e=i;for(e.removeAttribute("is"),i=e.ownerDocument.createElement(t),e.parentNode.replaceChild(i,e),i.appendChild(e);e.attributes.length;){const{name:o}=e.attributes[0];Ca(i,e,o),e.removeAttribute(o)}}return i}function tn(i,t){let e=t.parentInfo&&tn(i,t.parentInfo);if(e){for(let o=e.firstChild,s=0;o;o=o.nextSibling)if(t.parentIndex===s++)return o}else return i}function Pa(i,t,e,o){o.id&&(t[o.id]=e)}function Da(i,t,e){if(e.events&&e.events.length)for(let o=0,s=e.events,n;o<s.length&&(n=s[o]);o++)i._addMethodEventListenerToNode(t,n.name,n.value,i)}function Ta(i,t,e,o){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=o)}function Ma(i,t,e){return i=i._methodHost||i,function(s){i[e]?i[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const Oa=$(i=>{class t extends i{static _parseTemplate(o,s){if(!o._templateInfo){let n=o._templateInfo={};n.nodeInfoList=[],n.nestedTemplate=!!s,n.stripWhiteSpace=s&&s.stripWhiteSpace||o.hasAttribute&&o.hasAttribute("strip-whitespace"),this._parseTemplateContent(o,n,{parent:null})}return o._templateInfo}static _parseTemplateContent(o,s,n){return this._parseTemplateNode(o.content,s,n)}static _parseTemplateNode(o,s,n){let r=!1,a=o;return a.localName=="template"&&!a.hasAttribute("preserve-content")?r=this._parseTemplateNestedTemplate(a,s,n)||r:a.localName==="slot"&&(s.hasInsertionPoint=!0),Aa(a),a.firstChild&&this._parseTemplateChildNodes(a,s,n),a.hasAttributes&&a.hasAttributes()&&(r=this._parseTemplateNodeAttributes(a,s,n)||r),r||n.noted}static _parseTemplateChildNodes(o,s,n){if(!(o.localName==="script"||o.localName==="style"))for(let r=o.firstChild,a=0,l;r;r=l){if(r.localName=="template"&&(r=ka(r)),l=r.nextSibling,r.nodeType===Node.TEXT_NODE){let d=l;for(;d&&d.nodeType===Node.TEXT_NODE;)r.textContent+=d.textContent,l=d.nextSibling,o.removeChild(d),d=l;if(s.stripWhiteSpace&&!r.textContent.trim()){o.removeChild(r);continue}}let u={parentIndex:a,parentInfo:n};this._parseTemplateNode(r,s,u)&&(u.infoIndex=s.nodeInfoList.push(u)-1),r.parentNode&&a++}}static _parseTemplateNestedTemplate(o,s,n){let r=o,a=this._parseTemplate(r,s);return(a.content=r.content.ownerDocument.createDocumentFragment()).appendChild(r.content),n.templateInfo=a,!0}static _parseTemplateNodeAttributes(o,s,n){let r=!1,a=Array.from(o.attributes);for(let l=a.length-1,u;u=a[l];l--)r=this._parseTemplateNodeAttribute(o,s,n,u.name,u.value)||r;return r}static _parseTemplateNodeAttribute(o,s,n,r,a){return r.slice(0,3)==="on-"?(o.removeAttribute(r),n.events=n.events||[],n.events.push({name:r.slice(3),value:a}),!0):r==="id"?(n.id=a,!0):!1}static _contentForTemplate(o){let s=o._templateInfo;return s&&s.content||o.content}_stampTemplate(o,s){o&&!o.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(o),s=s||this.constructor._parseTemplate(o);let n=s.nodeInfoList,r=s.content||o.content,a=document.importNode(r,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(n.length);a.$={};for(let u=0,d=n.length,h;u<d&&(h=n[u]);u++){let p=l[u]=tn(a,h);Pa(this,a.$,p,h),Ta(this,p,h,s),Da(this,p,h)}return a=a,a}_addMethodEventListenerToNode(o,s,n,r){r=r||o;let a=Ma(r,s,n);return this._addEventListenerToNode(o,s,a),a}_addEventListenerToNode(o,s,n){o.addEventListener(s,n)}_removeEventListenerFromNode(o,s,n){o.removeEventListener(s,n)}}return t});/**
2025
2025
  * @fileoverview
2026
2026
  * @suppress {checkPrototypalTypes}
2027
2027
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2031,7 +2031,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2031
2031
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2032
2032
  * Google as part of the polymer project is also subject to an additional IP
2033
2033
  * rights grant found at http://polymer.github.io/PATENTS.txt
2034
- */let ot=0;const st=[],I={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ds="__computeInfo",Jn=/[A-Z]/;function zt(o,t,e){let i=o[t];if(!i)i=o[t]={};else if(!o.hasOwnProperty(t)&&(i=o[t]=Object.create(o[t]),e))for(let s in i){let r=i[s],n=i[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return i}function qe(o,t,e,i,s,r){if(t){let n=!1;const a=ot++;for(let l in e){let u=s?De(l):l,c=t[u];if(c)for(let h=0,p=c.length,m;h<p&&(m=c[h]);h++)(!m.info||m.info.lastRun!==a)&&(!s||ki(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(o,l,e,i,m.info,s,r),n=!0)}return n}return!1}function Xn(o,t,e,i,s,r,n,a){let l=!1,u=n?De(i):i,c=t[u];if(c)for(let h=0,p=c.length,m;h<p&&(m=c[h]);h++)(!m.info||m.info.lastRun!==e)&&(!n||ki(i,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(o,i,s,r,m.info,n,a),l=!0);return l}function ki(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&gs(e,o))||!!(t.wildcard&&tt(e,o))}else return!0}function fo(o,t,e,i,s){let r=typeof s.method=="string"?o[s.method]:s.method,n=s.property;r?r.call(o,o.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function Zn(o,t,e,i,s){let r=o[I.NOTIFY],n,a=ot++;for(let u in t)t[u]&&(r&&Xn(o,r,a,u,e,i,s)||s&&Qn(o,u,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Qn(o,t,e){let i=De(t);if(i!==t){let s=Tt(i)+"-changed";return Es(o,s,e[t],t),!0}return!1}function Es(o,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),q(o).dispatchEvent(new CustomEvent(t,{detail:s}))}function ea(o,t,e,i,s,r){let a=(r?De(t):t)!=t?t:null,l=a?Z(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),Es(o,s.eventName,l,a)}function ta(o,t,e,i,s){let r,n=o.detail,a=n&&n.path;a?(i=it(e,i,a),r=n&&n.value):r=o.currentTarget[e],r=s?!r:r,(!t[I.READ_ONLY]||!t[I.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function ia(o,t,e,i,s){let r=o.__data[t];gt&&(r=gt(r,s.attrName,"attribute",o)),o._propertyToAttribute(t,s.attrName,r)}function oa(o,t,e,i){let s=o[I.COMPUTE];if(s)if(vn){ot++;const r=ra(o),n=[];for(let l in t)mo(l,s,n,r,i);let a;for(;a=n.shift();)ks(o,"",t,e,a)&&mo(a.methodInfo,s,n,r,i);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;qe(o,s,r,e,i);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const sa=(o,t,e)=>{let i=0,s=t.length-1,r=-1;for(;i<=s;){const n=i+s>>1,a=e.get(t[n].methodInfo)-e.get(o.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{r=n;break}}r<0&&(r=s+1),t.splice(r,0,o)},mo=(o,t,e,i,s)=>{const r=s?De(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ot&&(!s||ki(o,l.trigger))&&(l.info.lastRun=ot,sa(l.info,e,i))}};function ra(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[I.COMPUTE];let{counts:i,ready:s,total:r}=na(o),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const u=l.info.methodInfo;--r,--i[u]===0&&s.push(u)})}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function na(o){const t=o[Ds],e={},i=o[I.COMPUTE],s=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)t[n]||s.push(n);return{counts:e,ready:s,total:r}}function ks(o,t,e,i,s){let r=ii(o,t,e,i,s);if(r===st)return!1;let n=s.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function aa(o,t,e){let i=o.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];tt(r,t)?(s=it(r,n,t),o._setPendingPropertyOrPath(s,e,!0,!0)):tt(n,t)&&(s=it(n,r,t),o._setPendingPropertyOrPath(s,e,!0,!0))}}}function Lt(o,t,e,i,s,r,n){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),ha(a)){let{event:u,negate:c}=a.parts[0];a.listenerEvent=u||Tt(s)+"-changed",a.listenerNegate=c}let l=t.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let c=a.parts[u];c.compoundIndex=u,la(o,t,a,c,l)}}function la(o,t,e,i,s){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let r=i.dependencies,n={index:s,binding:e,part:i,evaluator:o};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=Ss(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:da,info:n,trigger:l})}}}function da(o,t,e,i,s,r,n){let a=n[s.index],l=s.binding,u=s.part;if(r&&u.source&&t.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[t];t=it(u.source,l.target,t),a._setPendingPropertyOrPath(t,c,!1,!0)&&o._enqueueClient(a)}else{let c=s.evaluator._evaluateBinding(o,u,t,e,i,r);c!==st&&ua(o,a,l,u,c)}}function ua(o,t,e,i,s){if(s=ca(t,s,e,i),gt&&(s=gt(s,e.target,e.kind,t)),e.kind=="attribute")o._valueToNodeAttribute(t,s,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[I.READ_ONLY]||!t[I.READ_ONLY][r])&&t._setPendingProperty(r,s)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,s)}}function ca(o,t,e,i){if(e.isCompound){let s=o.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(t=t==null?"":t),t}function ha(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function pa(o,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let r=i[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];fa(n,u),ma(n,o,u)}n.__dataHost=o}}function fa(o,t){if(t.isCompound){let e=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(o=q(o)),o[r]=t.literal)}}function ma(o,t,e){if(e.listenerEvent){let i=e.parts[0];o.addEventListener(e.listenerEvent,function(s){ta(s,t,e.target,i.source,i.negate)})}}function _o(o,t,e,i,s,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||o._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&o._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function ii(o,t,e,i,s){let r=o._methodHost||o,n=r[s.methodName];if(n){let a=o._marshalArgs(s.args,t,e);return a===st?st:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const _a=[],Ps="(?:[a-zA-Z_$][\\w.:$\\-*]*)",ga="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",ya="(?:'(?:[^'\\\\]|\\\\.)*')",va='(?:"(?:[^"\\\\]|\\\\.)*")',ba="(?:"+ya+"|"+va+")",go="(?:("+Ps+"|"+ga+"|"+ba+")\\s*)",wa="(?:"+go+"(?:,\\s*"+go+")*)",xa="(?:\\(\\s*(?:"+wa+"?)\\)\\s*)",Ca="("+Ps+"\\s*"+xa+"?)",Ta="(\\[\\[|{{)\\s*",Aa="(?:]]|}})",Da="(?:(!)\\s*)?",Ea=Ta+Da+Ca+Aa,yo=new RegExp(Ea,"g");function vo(o){let t="";for(let e=0;e<o.length;e++){let i=o[e].literal;t+=i||""}return t}function $t(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:_a};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return ka(s,i)}else return i}return null}function ka(o,t){return t.args=o.map(function(e){let i=Ss(e);return i.literal||(t.static=!1),i},this),t}function Ss(o){let t=o.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=De(t),e.structured=ei(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function bo(o,t,e){let i=Z(o,e);return i===void 0&&(i=t[e]),i}function Os(o,t,e,i){const s={indexSplices:i};Qt&&!o._overrideLegacyUndefined&&(t.splices=s),o.notifyPath(e+".splices",s),o.notifyPath(e+".length",t.length),Qt&&!o._overrideLegacyUndefined&&(s.indexSplices=[])}function Ve(o,t,e,i,s,r){Os(o,t,e,[{index:i,addedCount:s,removed:r,object:t,type:"splice"}])}function Pa(o){return o[0].toUpperCase()+o.substring(1)}const Pi=j(o=>{const t=Gn(Rn(o));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return I}_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(Ue.length){let s=Ue[Ue.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let r=this[I.READ_ONLY];for(let n in s)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,r,n){this._createPropertyAccessor(s,r==I.READ_ONLY);let a=zt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=zt(this,r,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,r){let n=this[r];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,I.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,I.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,I.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,I.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||De(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=Z(this,s);if(s=co(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return aa(this,s,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,r,n);this[s]=r}return!1}_setUnmanagedPropertyToNode(s,r,n){(n!==s[r]||typeof n=="object")&&(r==="className"&&(s=q(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&ei(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,r,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=r:this.__data[s]=r,this.__dataPending[s]=r,(a||this[I.NOTIFY]&&this[I.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,r){this._setPendingProperty(s,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let r=0;r<s.length;r++){let n=s[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,r){for(let n in s)(r||!this[I.READ_ONLY]||!this[I.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;oa(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),qe(this,this[I.REFLECT],r,n,a),qe(this,this[I.OBSERVE],r,n,a),l&&Zn(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[I.PROPAGATE]&&qe(this,this[I.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(u,c)=>{qe(this,s.propertyEffects,u,n,c,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,u,n,c)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=We(s),r=We(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=We(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=Z(this,s,n);Os(this,a,n.path,r)}get(s,r){return Z(r||this,s)}set(s,r,n){n?co(n,s,r):(!this[I.READ_ONLY]||!this[I.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=Z(this,s,n),l=a.length,u=a.push(...r);return r.length&&Ve(this,a,n.path,l,r.length,[]),u}pop(s){let r={path:""},n=Z(this,s,r),a=!!n.length,l=n.pop();return a&&Ve(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},u=Z(this,s,l);r<0?r=u.length-Math.floor(-r):r&&(r=Math.floor(r));let c;return arguments.length===2?c=u.splice(r):c=u.splice(r,n,...a),(a.length||c.length)&&Ve(this,u,l.path,r,a.length,c),c}shift(s){let r={path:""},n=Z(this,s,r),a=!!n.length,l=n.shift();return a&&Ve(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=Z(this,s,n),l=a.unshift(...r);return r.length&&Ve(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=Z(this,s,a),n=a.path}else Array.isArray(s)?n=We(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,I.READ_ONLY),r&&(this["_set"+Pa(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,I.OBSERVE,{fn:fo,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,I.OBSERVE,{fn:fo,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=$t(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");_o(this,n,I.OBSERVE,ii,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,I.NOTIFY,{fn:ea,info:{eventName:Tt(s)+"-changed",property:s}})}_createReflectedProperty(s){let r=this.constructor.attributeNameForProperty(s);r[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,I.REFLECT,{fn:ia,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=$t(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=_o(this,a,I.COMPUTE,ks,s,n);zt(this,Ds)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let u=0,c=s.length;u<c;u++){let{name:h,structured:p,wildcard:m,value:_,literal:C}=s[u];if(!C)if(m){const P=tt(h,r),F=bo(a,n,P?r:h);_={path:P?r:h,value:F,base:P?Z(a,h):F}}else _=p?bo(a,n,h):a[h];if(Qt&&!this._overrideLegacyUndefined&&_===void 0&&s.length>1)return st;l[u]=_}return l}static addPropertyEffect(s,r,n){this.prototype._addPropertyEffect(s,r,n)}static createPropertyObserver(s,r,n){this.prototype._createPropertyObserver(s,r,n)}static createMethodObserver(s,r){this.prototype._createMethodObserver(s,r)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,r){this.prototype._createReadOnlyProperty(s,r)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,r,n){this.prototype._createComputedProperty(s,r,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,r){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,u=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=u,u?u.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,r,n){let a=s.hostProps=s.hostProps||{};a[r]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(s,r){r=r||this._bindTemplate(s,!0),Ue.push(this);let n=super._stampTemplate(s,r);if(Ue.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,pa(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const r=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let u=r.childNodes;for(let c=0;c<u.length;c++){let h=u[c];q(q(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,r,n){let a=t._parseTemplateNode.call(this,s,r,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,r);l&&(s.textContent=vo(l)||" ",Lt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let u=this._parseBindings(l,r);if(u){let c=a,h="property";Jn.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=vo(u);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&c=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&c==="value"&&s.setAttribute(c,""),s.removeAttribute(c),h==="property"&&(a=vs(a)),Lt(this,r,n,h,a,u,p),!0}else return t._parseTemplateNodeAttribute.call(this,s,r,n,a,l)}static _parseTemplateNestedTemplate(s,r,n){let a=t._parseTemplateNestedTemplate.call(this,s,r,n);const l=s.parentNode,u=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";so&&(c||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=u,n.noted=!0,a=!1);let p=u.hostProps;if(bn&&c)p&&(r.hostProps=Object.assign(r.hostProps||{},p),so||(n.parentInfo.noted=!0));else{let m="{";for(let _ in p){let C=[{mode:m,source:_,dependencies:[_],hostProp:!0}];Lt(this,r,n,"property","_host_"+_,C)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=yo.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let u=l[1][0],c=!!l[2],h=l[3].trim(),p=!1,m="",_=-1;u=="{"&&(_=h.indexOf("::"))>0&&(m=h.substring(_+2),h=h.substring(0,_),p=!0);let C=$t(h),P=[];if(C){let{args:F,methodName:z}=C;for(let M=0;M<F.length;M++){let H=F[M];H.literal||P.push(H)}let V=r.dynamicFns;(V&&V[z]||C.static)&&(P.push(z),C.dynamicFn=!0)}else P.push(h);n.push({source:h,mode:u,negate:c,customEvent:p,signature:C,dependencies:P,event:m}),a=yo.lastIndex}if(a&&a<s.length){let u=s.substring(a);u&&n.push({literal:u})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,u){let c;return r.signature?c=ii(s,n,a,l,r.signature):n!=r.source?c=Z(s,r.source):u&&ei(n)?c=Z(s,n):c=s.__data[n],r.negate&&(c=!c),c}}return e}),Ue=[];/**
2034
+ */let yt=0;const bt=[],A={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},on="__computeInfo",Ia=/[A-Z]/;function Zt(i,t,e){let o=i[t];if(!o)o=i[t]={};else if(!i.hasOwnProperty(t)&&(o=i[t]=Object.create(i[t]),e))for(let s in o){let n=o[s],r=o[s]=Array(n.length);for(let a=0;a<n.length;a++)r[a]=n[a]}return o}function lt(i,t,e,o,s,n){if(t){let r=!1;const a=yt++;for(let l in e){let u=s?$e(l):l,d=t[u];if(d)for(let h=0,p=d.length,m;h<p&&(m=d[h]);h++)(!m.info||m.info.lastRun!==a)&&(!s||Gi(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(i,l,e,o,m.info,s,n),r=!0)}return r}return!1}function Fa(i,t,e,o,s,n,r,a){let l=!1,u=r?$e(o):o,d=t[u];if(d)for(let h=0,p=d.length,m;h<p&&(m=d[h]);h++)(!m.info||m.info.lastRun!==e)&&(!r||Gi(o,m.trigger))&&(m.info&&(m.info.lastRun=e),m.fn(i,o,s,n,m.info,r,a),l=!0);return l}function Gi(i,t){if(t){let e=t.name;return e==i||!!(t.structured&&qs(e,i))||!!(t.wildcard&&_t(e,i))}else return!0}function Lo(i,t,e,o,s){let n=typeof s.method=="string"?i[s.method]:s.method,r=s.property;n?n.call(i,i.__data[r],o[r]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function Na(i,t,e,o,s){let n=i[A.NOTIFY],r,a=yt++;for(let u in t)t[u]&&(n&&Fa(i,n,a,u,e,o,s)||s&&za(i,u,e))&&(r=!0);let l;r&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function za(i,t,e){let o=$e(t);if(o!==t){let s=jt(o)+"-changed";return sn(i,s,e[t],t),!0}return!1}function sn(i,t,e,o){let s={value:e,queueProperty:!0};o&&(s.path=o),q(i).dispatchEvent(new CustomEvent(t,{detail:s}))}function La(i,t,e,o,s,n){let a=(n?$e(t):t)!=t?t:null,l=a?ee(i,a):i.__data[t];a&&l===void 0&&(l=e[t]),sn(i,s.eventName,l,a)}function Ra(i,t,e,o,s){let n,r=i.detail,a=r&&r.path;a?(o=gt(e,o,a),n=r&&r.value):n=i.currentTarget[e],n=s?!n:n,(!t[A.READ_ONLY]||!t[A.READ_ONLY][o])&&t._setPendingPropertyOrPath(o,n,!0,!!a)&&(!r||!r.queueProperty)&&t._invalidateProperties()}function $a(i,t,e,o,s){let n=i.__data[t];Nt&&(n=Nt(n,s.attrName,"attribute",i)),i._propertyToAttribute(t,s.attrName,n)}function Ba(i,t,e,o){let s=i[A.COMPUTE];if(s)if(ia){yt++;const n=Ya(i),r=[];for(let l in t)Ro(l,s,r,n,o);let a;for(;a=r.shift();)nn(i,"",t,e,a)&&Ro(a.methodInfo,s,r,n,o);Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),i.__dataPending=null}else{let n=t;for(;lt(i,s,n,e,o);)Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),n=i.__dataPending,i.__dataPending=null}}const Ha=(i,t,e)=>{let o=0,s=t.length-1,n=-1;for(;o<=s;){const r=o+s>>1,a=e.get(t[r].methodInfo)-e.get(i.methodInfo);if(a<0)o=r+1;else if(a>0)s=r-1;else{n=r;break}}n<0&&(n=s+1),t.splice(n,0,i)},Ro=(i,t,e,o,s)=>{const n=s?$e(i):i,r=t[n];if(r)for(let a=0;a<r.length;a++){const l=r[a];l.info.lastRun!==yt&&(!s||Gi(i,l.trigger))&&(l.info.lastRun=yt,Ha(l.info,e,o))}};function Ya(i){let t=i.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=i[A.COMPUTE];let{counts:o,ready:s,total:n}=ja(i),r;for(;r=s.shift();){t.set(r,t.size);const a=e[r];a&&a.forEach(l=>{const u=l.info.methodInfo;--n,--o[u]===0&&s.push(u)})}n!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=t}return t}function ja(i){const t=i[on],e={},o=i[A.COMPUTE],s=[];let n=0;for(let r in t){const a=t[r];n+=e[r]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let r in o)t[r]||s.push(r);return{counts:e,ready:s,total:n}}function nn(i,t,e,o,s){let n=vi(i,t,e,o,s);if(n===bt)return!1;let r=s.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[r]?i._setPendingProperty(r,n,!0):(i[r]=n,!1)}function Ua(i,t,e){let o=i.__dataLinkedPaths;if(o){let s;for(let n in o){let r=o[n];_t(n,t)?(s=gt(n,r,t),i._setPendingPropertyOrPath(s,e,!0,!0)):_t(r,t)&&(s=gt(r,n,t),i._setPendingPropertyOrPath(s,e,!0,!0))}}}function Qt(i,t,e,o,s,n,r){e.bindings=e.bindings||[];let a={kind:o,target:s,parts:n,literal:r,isCompound:n.length!==1};if(e.bindings.push(a),Ga(a)){let{event:u,negate:d}=a.parts[0];a.listenerEvent=u||jt(s)+"-changed",a.listenerNegate=d}let l=t.nodeInfoList.length;for(let u=0;u<a.parts.length;u++){let d=a.parts[u];d.compoundIndex=u,Va(i,t,a,d,l)}}function Va(i,t,e,o,s){if(!o.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let n=o.dependencies,r={index:s,binding:e,part:o,evaluator:i};for(let a=0;a<n.length;a++){let l=n[a];typeof l=="string"&&(l=an(l),l.wildcard=!0),i._addTemplatePropertyEffect(t,l.rootProperty,{fn:Wa,info:r,trigger:l})}}}function Wa(i,t,e,o,s,n,r){let a=r[s.index],l=s.binding,u=s.part;if(n&&u.source&&t.length>u.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let d=e[t];t=gt(u.source,l.target,t),a._setPendingPropertyOrPath(t,d,!1,!0)&&i._enqueueClient(a)}else{let d=s.evaluator._evaluateBinding(i,u,t,e,o,n);d!==bt&&qa(i,a,l,u,d)}}function qa(i,t,e,o,s){if(s=Ka(t,s,e,o),Nt&&(s=Nt(s,e.target,e.kind,t)),e.kind=="attribute")i._valueToNodeAttribute(t,s,e.target);else{let n=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[n]?(!t[A.READ_ONLY]||!t[A.READ_ONLY][n])&&t._setPendingProperty(n,s)&&i._enqueueClient(t):i._setUnmanagedPropertyToNode(t,n,s)}}function Ka(i,t,e,o){if(e.isCompound){let s=i.__dataCompoundStorage[e.target];s[o.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(t=t==null?"":t),t}function Ga(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Xa(i,t){let{nodeList:e,nodeInfoList:o}=t;if(o.length)for(let s=0;s<o.length;s++){let n=o[s],r=e[s],a=n.bindings;if(a)for(let l=0;l<a.length;l++){let u=a[l];Ja(r,u),Za(r,i,u)}r.__dataHost=i}}function Ja(i,t){if(t.isCompound){let e=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),o=t.parts,s=new Array(o.length);for(let r=0;r<o.length;r++)s[r]=o[r].literal;let n=t.target;e[n]=s,t.literal&&t.kind=="property"&&(n==="className"&&(i=q(i)),i[n]=t.literal)}}function Za(i,t,e){if(e.listenerEvent){let o=e.parts[0];i.addEventListener(e.listenerEvent,function(s){Ra(s,t,e.target,o.source,o.negate)})}}function $o(i,t,e,o,s,n){n=t.static||n&&(typeof n!="object"||n[t.methodName]);let r={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:n};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||i._addPropertyEffect(l.rootProperty,e,{fn:o,info:r,trigger:l});return n&&i._addPropertyEffect(t.methodName,e,{fn:o,info:r}),r}function vi(i,t,e,o,s){let n=i._methodHost||i,r=n[s.methodName];if(r){let a=i._marshalArgs(s.args,t,e);return a===bt?bt:r.apply(n,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const Qa=[],rn="(?:[a-zA-Z_$][\\w.:$\\-*]*)",el="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",tl="(?:'(?:[^'\\\\]|\\\\.)*')",il='(?:"(?:[^"\\\\]|\\\\.)*")',ol="(?:"+tl+"|"+il+")",Bo="(?:("+rn+"|"+el+"|"+ol+")\\s*)",sl="(?:"+Bo+"(?:,\\s*"+Bo+")*)",nl="(?:\\(\\s*(?:"+sl+"?)\\)\\s*)",rl="("+rn+"\\s*"+nl+"?)",al="(\\[\\[|{{)\\s*",ll="(?:]]|}})",cl="(?:(!)\\s*)?",ul=al+cl+rl+ll,Ho=new RegExp(ul,"g");function Yo(i){let t="";for(let e=0;e<i.length;e++){let o=i[e].literal;t+=o||""}return t}function ei(i){let t=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let o={methodName:t[1],static:!0,args:Qa};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return dl(s,o)}else return o}return null}function dl(i,t){return t.args=i.map(function(e){let o=an(e);return o.literal||(t.static=!1),o},this),t}function an(i){let t=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},o=t[0];switch(o==="-"&&(o=t[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=$e(t),e.structured=yi(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function jo(i,t,e){let o=ee(i,e);return o===void 0&&(o=t[e]),o}function ln(i,t,e,o){const s={indexSplices:o};gi&&!i._overrideLegacyUndefined&&(t.splices=s),i.notifyPath(e+".splices",s),i.notifyPath(e+".length",t.length),gi&&!i._overrideLegacyUndefined&&(s.indexSplices=[])}function it(i,t,e,o,s,n){ln(i,t,e,[{index:o,addedCount:s,removed:n,object:t,type:"splice"}])}function hl(i){return i[0].toUpperCase()+i.substring(1)}const Xi=$(i=>{const t=Oa(wa(i));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return A}_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 s=ot[ot.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let n=this[A.READ_ONLY];for(let r in s)(!n||!n[r])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[r]=this.__dataPending[r]=s[r])}_addPropertyEffect(s,n,r){this._createPropertyAccessor(s,n==A.READ_ONLY);let a=Zt(this,n,!0)[s];a||(a=this[n][s]=[]),a.push(r)}_removePropertyEffect(s,n,r){let a=Zt(this,n,!0)[s],l=a.indexOf(r);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,n){let r=this[n];return!!(r&&r[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,A.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,A.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,A.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,A.COMPUTE)}_setPendingPropertyOrPath(s,n,r,a){if(a||$e(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=ee(this,s);if(s=Fo(this,s,n),!s||!super._shouldPropertyChange(s,n,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,n,r))return Ua(this,s,n),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,n,r);this[s]=n}return!1}_setUnmanagedPropertyToNode(s,n,r){(r!==s[n]||typeof r=="object")&&(n==="className"&&(s=q(s)),s[n]=r)}_setPendingProperty(s,n,r){let a=this.__dataHasPaths&&yi(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,n,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=n:this.__data[s]=n,this.__dataPending[s]=n,(a||this[A.NOTIFY]&&this[A.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=r),!0):!1}_setProperty(s,n){this._setPendingProperty(s,n,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let n=0;n<s.length;n++){let r=s[n];r.__dataEnabled?r.__dataPending&&r._flushProperties():r._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,n){for(let r in s)(n||!this[A.READ_ONLY]||!this[A.READ_ONLY][r])&&this._setPendingPropertyOrPath(r,s[r],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,n,r){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Ba(this,n,r,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(n,r,a),this._flushClients(),lt(this,this[A.REFLECT],n,r,a),lt(this,this[A.OBSERVE],n,r,a),l&&Na(this,l,n,r,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,n,r){this[A.PROPAGATE]&&lt(this,this[A.PROPAGATE],s,n,r),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,n,r)}_runEffectsForTemplate(s,n,r,a){const l=(u,d)=>{lt(this,s.propertyEffects,u,r,d,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,u,r,d)};s.runEffects?s.runEffects(l,n,a):l(n,a)}linkPaths(s,n){s=at(s),n=at(n),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=n}unlinkPaths(s){s=at(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,n){let r={path:""},a=ee(this,s,r);ln(this,a,r.path,n)}get(s,n){return ee(n||this,s)}set(s,n,r){r?Fo(r,s,n):(!this[A.READ_ONLY]||!this[A.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,n,!0)&&this._invalidateProperties()}push(s,...n){let r={path:""},a=ee(this,s,r),l=a.length,u=a.push(...n);return n.length&&it(this,a,r.path,l,n.length,[]),u}pop(s){let n={path:""},r=ee(this,s,n),a=!!r.length,l=r.pop();return a&&it(this,r,n.path,r.length,0,[l]),l}splice(s,n,r,...a){let l={path:""},u=ee(this,s,l);n<0?n=u.length-Math.floor(-n):n&&(n=Math.floor(n));let d;return arguments.length===2?d=u.splice(n):d=u.splice(n,r,...a),(a.length||d.length)&&it(this,u,l.path,n,a.length,d),d}shift(s){let n={path:""},r=ee(this,s,n),a=!!r.length,l=r.shift();return a&&it(this,r,n.path,0,0,[l]),l}unshift(s,...n){let r={path:""},a=ee(this,s,r),l=a.unshift(...n);return n.length&&it(this,a,r.path,0,n.length,[]),l}notifyPath(s,n){let r;if(arguments.length==1){let a={path:""};n=ee(this,s,a),r=a.path}else Array.isArray(s)?r=at(s):r=s;this._setPendingPropertyOrPath(r,n,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,n){this._addPropertyEffect(s,A.READ_ONLY),n&&(this["_set"+hl(s)]=function(r){this._setProperty(s,r)})}_createPropertyObserver(s,n,r){let a={property:s,method:n,dynamicFn:!!r};this._addPropertyEffect(s,A.OBSERVE,{fn:Lo,info:a,trigger:{name:s}}),r&&this._addPropertyEffect(n,A.OBSERVE,{fn:Lo,info:a,trigger:{name:n}})}_createMethodObserver(s,n){let r=ei(s);if(!r)throw new Error("Malformed observer expression '"+s+"'");$o(this,r,A.OBSERVE,vi,null,n)}_createNotifyingProperty(s){this._addPropertyEffect(s,A.NOTIFY,{fn:La,info:{eventName:jt(s)+"-changed",property:s}})}_createReflectedProperty(s){let n=this.constructor.attributeNameForProperty(s);n[0]==="-"?console.warn("Property "+s+" 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(s,A.REFLECT,{fn:$a,info:{attrName:n}})}_createComputedProperty(s,n,r){let a=ei(n);if(!a)throw new Error("Malformed computed expression '"+n+"'");const l=$o(this,a,A.COMPUTE,nn,s,r);Zt(this,on)[s]=l}_marshalArgs(s,n,r){const a=this.__data,l=[];for(let u=0,d=s.length;u<d;u++){let{name:h,structured:p,wildcard:m,value:g,literal:f}=s[u];if(!f)if(m){const y=_t(h,n),v=jo(a,r,y?n:h);g={path:y?n:h,value:v,base:y?ee(a,h):v}}else g=p?jo(a,r,h):a[h];if(gi&&!this._overrideLegacyUndefined&&g===void 0&&s.length>1)return bt;l[u]=g}return l}static addPropertyEffect(s,n,r){this.prototype._addPropertyEffect(s,n,r)}static createPropertyObserver(s,n,r){this.prototype._createPropertyObserver(s,n,r)}static createMethodObserver(s,n){this.prototype._createMethodObserver(s,n)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,n){this.prototype._createReadOnlyProperty(s,n)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,n,r){this.prototype._createComputedProperty(s,n,r)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,n){let r=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==r;if(!a)for(let l in r.propertyEffects)this._createPropertyAccessor(l);if(n)if(r=Object.create(r),r.wasPreBound=a,!this.__templateInfo)this.__templateInfo=r;else{const l=s._parentTemplateInfo||this.__templateInfo,u=l.lastChild;r.parent=l,l.lastChild=r,r.previousSibling=u,u?u.nextSibling=r:l.firstChild=r}else this.__preBoundTemplateInfo=r;return r}static _addTemplatePropertyEffect(s,n,r){let a=s.hostProps=s.hostProps||{};a[n]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[n]=l[n]||[]).push(r)}_stampTemplate(s,n){n=n||this._bindTemplate(s,!0),ot.push(this);let r=super._stampTemplate(s,n);if(ot.pop(),n.nodeList=r.nodeList,!n.wasPreBound){let a=n.childNodes=[];for(let l=r.firstChild;l;l=l.nextSibling)a.push(l)}return r.templateInfo=n,Xa(this,n),this.__dataClientsReady&&(this._runEffectsForTemplate(n,this.__data,null,!1),this._flushClients()),r}_removeBoundDom(s){const n=s.templateInfo,{previousSibling:r,nextSibling:a,parent:l}=n;r?r.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=r:l&&(l.lastChild=r),n.nextSibling=n.previousSibling=null;let u=n.childNodes;for(let d=0;d<u.length;d++){let h=u[d];q(q(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,n,r){let a=t._parseTemplateNode.call(this,s,n,r);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,n);l&&(s.textContent=Yo(l)||" ",Qt(this,n,r,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,n,r,a,l){let u=this._parseBindings(l,n);if(u){let d=a,h="property";Ia.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=Yo(u);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&d=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&d==="value"&&s.setAttribute(d,""),s.removeAttribute(d),h==="property"&&(a=Gs(a)),Qt(this,n,r,h,a,u,p),!0}else return t._parseTemplateNodeAttribute.call(this,s,n,r,a,l)}static _parseTemplateNestedTemplate(s,n,r){let a=t._parseTemplateNestedTemplate.call(this,s,n,r);const l=s.parentNode,u=r.templateInfo,d=l.localName==="dom-if",h=l.localName==="dom-repeat";Po&&(d||h)&&(l.removeChild(s),r=r.parentInfo,r.templateInfo=u,r.noted=!0,a=!1);let p=u.hostProps;if(oa&&d)p&&(n.hostProps=Object.assign(n.hostProps||{},p),Po||(r.parentInfo.noted=!0));else{let m="{";for(let g in p){let f=[{mode:m,source:g,dependencies:[g],hostProp:!0}];Qt(this,n,r,"property","_host_"+g,f)}}return a}static _parseBindings(s,n){let r=[],a=0,l;for(;(l=Ho.exec(s))!==null;){l.index>a&&r.push({literal:s.slice(a,l.index)});let u=l[1][0],d=!!l[2],h=l[3].trim(),p=!1,m="",g=-1;u=="{"&&(g=h.indexOf("::"))>0&&(m=h.substring(g+2),h=h.substring(0,g),p=!0);let f=ei(h),y=[];if(f){let{args:v,methodName:b}=f;for(let C=0;C<v.length;C++){let w=v[C];w.literal||y.push(w)}let E=n.dynamicFns;(E&&E[b]||f.static)&&(y.push(b),f.dynamicFn=!0)}else y.push(h);r.push({source:h,mode:u,negate:d,customEvent:p,signature:f,dependencies:y,event:m}),a=Ho.lastIndex}if(a&&a<s.length){let u=s.substring(a);u&&r.push({literal:u})}return r.length?r:null}static _evaluateBinding(s,n,r,a,l,u){let d;return n.signature?d=vi(s,r,a,l,n.signature):r!=n.source?d=ee(s,n.source):u&&yi(r)?d=ee(s,r):d=s.__data[r],n.negate&&(d=!d),d}}return e}),ot=[];/**
2035
2035
  @license
2036
2036
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2037
2037
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2047,7 +2047,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2047
2047
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2048
2048
  Code distributed by Google as part of the polymer project is also
2049
2049
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2050
- */function Sa(o){const t={};for(let e in o){const i=o[e];t[e]=typeof i=="function"?{type:i}:i}return t}const Oa=j(o=>{const t=Cs(o);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof s?n:null}function i(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=Sa(a))}r.__ownProperties=n}return r.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
2050
+ */function pl(i){const t={};for(let e in i){const o=i[e];t[e]=typeof o=="function"?{type:o}:o}return t}const fl=$(i=>{const t=Qs(i);function e(n){const r=Object.getPrototypeOf(n);return r.prototype instanceof s?r:null}function o(n){if(!n.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",n))){let r=null;if(n.hasOwnProperty(JSCompiler_renameProperty("properties",n))){const a=n.properties;a&&(r=pl(a))}n.__ownProperties=r}return n.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const r=this._properties;this.__observedAttributes=r?Object.keys(r).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const r=e(this);r&&r.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const r=o(this);r&&this.createProperties(r)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const r=e(this);this.__properties=Object.assign({},r&&r._properties,o(this))}return this.__properties}static typeForProperty(r){const a=this._properties[r];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
2051
2051
  * @fileoverview
2052
2052
  * @suppress {checkPrototypalTypes}
2053
2053
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2057,7 +2057,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2057
2057
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2058
2058
  * Google as part of the polymer project is also subject to an additional IP
2059
2059
  * rights grant found at http://polymer.github.io/PATENTS.txt
2060
- */const Ma="3.5.2",wo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ia=j(o=>{const t=Oa(Pi(o));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let c in u){let h=u[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=h)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,u,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):c.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),c.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):c.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),c.observer&&l._createPropertyObserver(u,c.observer,h[c.observer]),l._addPropertyToAttributeMap(u)}function r(l,u,c,h){if(!wo){const p=u.content.querySelectorAll("style"),m=ms(u),_=kn(c),C=u.content.firstElementChild;for(let F=0;F<_.length;F++){let z=_[F];z.textContent=l._processStyleText(z.textContent,h),u.content.insertBefore(z,C)}let P=0;for(let F=0;F<m.length;F++){let z=m[F],V=p[P];V!==z?(z=z.cloneNode(!0),V.parentNode.insertBefore(z,V)):P++,z.textContent=l._processStyleText(z.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,c),wn&&wo&&mn){const p=u.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(_=>{m+=_.textContent,_.parentNode.removeChild(_)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let u=null;if(l&&(!yt||gn)&&(u=et.import(l,"template"),yt&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends t{static get polymerElementVersion(){return Ma}static _finalizeClass(){t._finalizeClass.call(this);const u=i(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):cs||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let c in u)s(this.prototype,c,u[c],u)}static createObservers(u,c){const h=this.prototype;for(let p=0;p<u.length;p++)h._createMethodObserver(u[p],c)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=Di(u.url);else{const c=et.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=_n,this.importPath=this.constructor.importPath;let u=e(this.constructor);if(u)for(let c in u){let h=u[c];if(this._canApplyPropertyDefault(c)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,p,!0):this[c]=p}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,c){return Ai(u,c)}static _finalizeTemplate(u){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,p=h?Je(h):"";r(this,c,u,p),this.prototype._bindTemplate(c)}}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(u){const c=q(this);if(c.attachShadow)return u?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:u}),c.shadowRoot.appendChild(u),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),yn&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.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(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,c){return!c&&this.importPath&&(c=Je(this.importPath)),Je(u,c)}static _parseTemplateContent(u,c,h){return c.dynamicFns=c.dynamicFns||this._properties,t._parseTemplateContent.call(this,u,c,h)}static _addTemplatePropertyEffect(u,c,h){return hs&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,u,c,h)}}return a});/**
2060
+ */const ml="3.5.2",Uo=window.ShadyCSS&&window.ShadyCSS.cssBuild,_l=$(i=>{const t=fl(Xi(i));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let u=l._properties;for(let d in u){let h=u[d];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[d]=h)}}return l.__propertyDefaults}function o(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,u,d,h){d.computed&&(d.readOnly=!0),d.computed&&(l._hasReadOnlyEffect(u)?console.warn(`Cannot redefine computed property '${u}'.`):l._createComputedProperty(u,d.computed,h)),d.readOnly&&!l._hasReadOnlyEffect(u)?l._createReadOnlyProperty(u,!d.computed):d.readOnly===!1&&l._hasReadOnlyEffect(u)&&console.warn(`Cannot make readOnly property '${u}' non-readOnly.`),d.reflectToAttribute&&!l._hasReflectEffect(u)?l._createReflectedProperty(u):d.reflectToAttribute===!1&&l._hasReflectEffect(u)&&console.warn(`Cannot make reflected property '${u}' non-reflected.`),d.notify&&!l._hasNotifyEffect(u)?l._createNotifyingProperty(u):d.notify===!1&&l._hasNotifyEffect(u)&&console.warn(`Cannot make notify property '${u}' non-notify.`),d.observer&&l._createPropertyObserver(u,d.observer,h[d.observer]),l._addPropertyToAttributeMap(u)}function n(l,u,d,h){if(!Uo){const p=u.content.querySelectorAll("style"),m=Vs(u),g=da(d),f=u.content.firstElementChild;for(let v=0;v<g.length;v++){let b=g[v];b.textContent=l._processStyleText(b.textContent,h),u.content.insertBefore(b,f)}let y=0;for(let v=0;v<m.length;v++){let b=m[v],E=p[y];E!==b?(b=b.cloneNode(!0),E.parentNode.insertBefore(b,E)):y++,b.textContent=l._processStyleText(b.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(u,d),sa&&Uo&&Zr){const p=u.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(g=>{m+=g.textContent,g.parentNode.removeChild(g)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function r(l){let u=null;if(l&&(!zt||ea)&&(u=mt.import(l,"template"),zt&&!u))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return u}class a extends t{static get polymerElementVersion(){return ml}static _finalizeClass(){t._finalizeClass.call(this);const u=o(this);u&&this.createObservers(u,this._properties),this._prepareTemplate()}static _prepareTemplate(){let u=this.template;u&&(typeof u=="string"?(console.error("template getter must return HTMLTemplateElement"),u=null):Hs||(u=u.cloneNode(!0))),this.prototype._template=u}static createProperties(u){for(let d in u)s(this.prototype,d,u[d],u)}static createObservers(u,d){const h=this.prototype;for(let p=0;p<u.length;p++)h._createMethodObserver(u[p],d)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let u=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof u=="function"&&(u=u()),this._template=u!==void 0?u:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&r(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(u){this._template=u}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const u=this.importMeta;if(u)this._importPath=qi(u.url);else{const d=mt.import(this.is);this._importPath=d&&d.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Qr,this.importPath=this.constructor.importPath;let u=e(this.constructor);if(u)for(let d in u){let h=u[d];if(this._canApplyPropertyDefault(d)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(d)?this._setPendingProperty(d,p,!0):this[d]=p}}}_canApplyPropertyDefault(u){return!this.hasOwnProperty(u)}static _processStyleText(u,d){return Wi(u,d)}static _finalizeTemplate(u){const d=this.prototype._template;if(d&&!d.__polymerFinalized){d.__polymerFinalized=!0;const h=this.importPath,p=h?dt(h):"";n(this,d,u,p),this.prototype._bindTemplate(d)}}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(u){const d=q(this);if(d.attachShadow)return u?(d.shadowRoot||(d.attachShadow({mode:"open",shadyUpgradeFragment:u}),d.shadowRoot.appendChild(u),this.constructor._styleSheet&&(d.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),ta&&window.ShadyDOM&&window.ShadyDOM.flushInitial(d.shadowRoot),d.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(u){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,u)}resolveUrl(u,d){return!d&&this.importPath&&(d=dt(this.importPath)),dt(u,d)}static _parseTemplateContent(u,d,h){return d.dynamicFns=d.dynamicFns||this._properties,t._parseTemplateContent.call(this,u,d,h)}static _addTemplatePropertyEffect(u,d,h){return Ys&&!(d in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!u.nestedTemplate&&console.warn(`Property '${d}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,u,d,h)}}return a});/**
2061
2061
  @license
2062
2062
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2063
2063
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2065,7 +2065,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2065
2065
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2066
2066
  Code distributed by Google as part of the polymer project is also
2067
2067
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2068
- */const xo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:o=>o});class Ms{constructor(t,e){Ns(t,e);const i=e.reduce((s,r,n)=>s+Is(r)+t[n+1],t[0]);this.value=i.toString()}toString(){return this.value}}function Is(o){if(o instanceof Ms)return o.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${o}`)}function Na(o){if(o instanceof HTMLTemplateElement)return o.innerHTML;if(o instanceof Ms)return Is(o);throw new Error(`non-template value passed to Polymer's html function: ${o}`)}const Ee=function(t,...e){Ns(t,e);const i=document.createElement("template");let s=e.reduce((r,n,a)=>r+Na(n)+t[a+1],t[0]);return xo&&(s=xo.createHTML(s)),i.innerHTML=s,i},Ns=(o,t)=>{if(!Array.isArray(o)||!Array.isArray(o.raw)||t.length!==o.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2068
+ */const Vo=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class cn{constructor(t,e){dn(t,e);const o=e.reduce((s,n,r)=>s+un(n)+t[r+1],t[0]);this.value=o.toString()}toString(){return this.value}}function un(i){if(i instanceof cn)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function gl(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof cn)return un(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const Be=function(t,...e){dn(t,e);const o=document.createElement("template");let s=e.reduce((n,r,a)=>n+gl(r)+t[a+1],t[0]);return Vo&&(s=Vo.createHTML(s)),o.innerHTML=s,o},dn=(i,t)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||t.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
2069
2069
  @license
2070
2070
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2071
2071
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2073,19 +2073,19 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2073
2073
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2074
2074
  Code distributed by Google as part of the polymer project is also
2075
2075
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2076
- */const me=Ia(HTMLElement);/**
2076
+ */const Ae=_l(HTMLElement);/**
2077
2077
  * @license
2078
2078
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2079
2079
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2080
- */const de=[];function oi(o,t,e=o.getAttribute("dir")){t?o.setAttribute("dir",t):e!=null&&o.removeAttribute("dir")}function si(){return document.documentElement.getAttribute("dir")}function Fa(){const o=si();de.forEach(t=>{oi(t,o)})}const za=new MutationObserver(Fa);za.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const At=o=>class extends o{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(),oi(this,si(),null))}attributeChangedCallback(e,i,s){if(super.attributeChangedCallback(e,i,s),e!=="dir")return;const r=si(),n=s===r&&de.indexOf(this)===-1,a=!s&&i&&de.indexOf(this)===-1;n||a?(this.__subscribe(),oi(this,r,s)):s!==r&&i===r&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=de.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,i,s){s==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,s)}_attributeToProperty(e,i,s){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,s)}__subscribe(){de.includes(this)||de.push(this)}__unsubscribe(){de.includes(this)&&de.splice(de.indexOf(this),1)}};/**
2080
+ */const me=[];function xi(i,t,e=i.getAttribute("dir")){t?i.setAttribute("dir",t):e!=null&&i.removeAttribute("dir")}function wi(){return document.documentElement.getAttribute("dir")}function yl(){const i=wi();me.forEach(t=>{xi(t,i)})}const bl=new MutationObserver(yl);bl.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Ut=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(),xi(this,wi(),null))}attributeChangedCallback(e,o,s){if(super.attributeChangedCallback(e,o,s),e!=="dir")return;const n=wi(),r=s===n&&me.indexOf(this)===-1,a=!s&&o&&me.indexOf(this)===-1;r||a?(this.__subscribe(),xi(this,n,s)):s!==n&&o===n&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=me.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,o,s){s==="dir"&&o===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,o,s)}_attributeToProperty(e,o,s){e==="dir"&&!o?this.dir="":super._attributeToProperty(e,o,s)}__subscribe(){me.includes(this)||me.push(this)}__unsubscribe(){me.includes(this)&&me.splice(me.indexOf(this),1)}};/**
2081
2081
  * @license
2082
2082
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2083
2083
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2084
- */const La=o=>class extends o{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(i=>i.focus&&i.focus())})}};/**
2084
+ */const vl=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(o=>o.focus&&o.focus())})}};/**
2085
2085
  * @license
2086
2086
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2087
2087
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2088
- */const $a=O`
2088
+ */const xl=S`
2089
2089
  :host {
2090
2090
  display: flex;
2091
2091
  align-items: center;
@@ -2154,15 +2154,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2154
2154
  * @license
2155
2155
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2156
2156
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2157
- */U("vaadin-input-container",$a,{moduleId:"vaadin-input-container-styles"});class Ra extends La(Ae(At(me))){static get is(){return"vaadin-input-container"}static get template(){return Ee`
2157
+ */F("vaadin-input-container",xl,{moduleId:"vaadin-input-container-styles"});class wl extends vl(Re(Ut(Ae))){static get is(){return"vaadin-input-container"}static get template(){return Be`
2158
2158
  <slot name="prefix"></slot>
2159
2159
  <slot></slot>
2160
2160
  <slot name="suffix"></slot>
2161
- `}}le(Ra);/**
2161
+ `}}ue(wl);/**
2162
2162
  * @license
2163
2163
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2164
2164
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2165
- */const Ha=O`
2165
+ */const El=S`
2166
2166
  :host {
2167
2167
  z-index: 200;
2168
2168
  position: fixed;
@@ -2225,7 +2225,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2225
2225
  * @license
2226
2226
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2227
2227
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2228
- */let Si=!1;window.addEventListener("keydown",()=>{Si=!0},{capture:!0});window.addEventListener("mousedown",()=>{Si=!1},{capture:!0});function ri(){let o=document.activeElement||document.body;for(;o.shadowRoot&&o.shadowRoot.activeElement;)o=o.shadowRoot.activeElement;return o}function Oi(){return Si}function Ba(o){const t=o.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(o);return e.visibility==="hidden"||e.display==="none"}function Va(o,t){const e=Math.max(o.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function Ua(o,t){const e=[];for(;o.length>0&&t.length>0;)Va(o[0],t[0])?e.push(t.shift()):e.push(o.shift());return e.concat(o,t)}function ni(o){const t=o.length;if(t<2)return o;const e=Math.ceil(t/2),i=ni(o.slice(0,e)),s=ni(o.slice(e));return Ua(i,s)}function Fs(o){return o.matches('[tabindex="-1"]')?!1:o.matches("input, select, textarea, button, object")?o.matches(":not([disabled])"):o.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function ja(o){return o.getRootNode().activeElement===o}function Ya(o){if(!Fs(o))return-1;const t=o.getAttribute("tabindex")||0;return Number(t)}function zs(o,t){if(o.nodeType!==Node.ELEMENT_NODE||Ba(o))return!1;const e=o,i=Ya(e);let s=i>0;i>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{s=zs(n,t)||s}),s}function Wa(o){const t=[];return zs(o,t)?ni(t):t}/**
2228
+ */let Ji=!1;window.addEventListener("keydown",()=>{Ji=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ji=!1},{capture:!0});function Ei(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Zi(){return Ji}function Sl(i){const t=i.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(i);return e.visibility==="hidden"||e.display==="none"}function Al(i,t){const e=Math.max(i.tabIndex,0),o=Math.max(t.tabIndex,0);return e===0||o===0?o>e:e>o}function Cl(i,t){const e=[];for(;i.length>0&&t.length>0;)Al(i[0],t[0])?e.push(t.shift()):e.push(i.shift());return e.concat(i,t)}function Si(i){const t=i.length;if(t<2)return i;const e=Math.ceil(t/2),o=Si(i.slice(0,e)),s=Si(i.slice(e));return Cl(o,s)}function hn(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 kl(i){return i.getRootNode().activeElement===i}function Pl(i){if(!hn(i))return-1;const t=i.getAttribute("tabindex")||0;return Number(t)}function pn(i,t){if(i.nodeType!==Node.ELEMENT_NODE||Sl(i))return!1;const e=i,o=Pl(e);let s=o>0;o>=0&&t.push(e);let n=[];return e.localName==="slot"?n=e.assignedNodes({flatten:!0}):n=(e.shadowRoot||e).children,[...n].forEach(r=>{s=pn(r,t)||s}),s}function Dl(i){const t=[];return pn(i,t)?Si(t):t}/**
2229
2229
  @license
2230
2230
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2231
2231
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2233,63 +2233,63 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2233
2233
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2234
2234
  Code distributed by Google as part of the polymer project is also
2235
2235
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2236
- */let ai=!1,qa=[],Ls=[];function Ka(){ai=!0,requestAnimationFrame(function(){ai=!1,Ga(qa),setTimeout(function(){Ja(Ls)})})}function Ga(o){for(;o.length;)$s(o.shift())}function Ja(o){for(let t=0,e=o.length;t<e;t++)$s(o.shift())}function $s(o){const t=o[0],e=o[1],i=o[2];try{e.apply(t,i)}catch(s){setTimeout(()=>{throw s})}}function Rs(o,t,e){ai||Ka(),Ls.push([o,t,e])}/**
2236
+ */let Ai=!1,Tl=[],fn=[];function Ml(){Ai=!0,requestAnimationFrame(function(){Ai=!1,Ol(Tl),setTimeout(function(){Il(fn)})})}function Ol(i){for(;i.length;)mn(i.shift())}function Il(i){for(let t=0,e=i.length;t<e;t++)mn(i.shift())}function mn(i){const t=i[0],e=i[1],o=i[2];try{e.apply(t,o)}catch(s){setTimeout(()=>{throw s})}}function _n(i,t,e){Ai||Ml(),fn.push([i,t,e])}/**
2237
2237
  * @license
2238
2238
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2239
2239
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2240
- */const Dt=o=>o.test(navigator.userAgent),li=o=>o.test(navigator.platform),Xa=o=>o.test(navigator.vendor);Dt(/Android/u);Dt(/Chrome/u)&&Xa(/Google Inc/u);Dt(/Firefox/u);const Za=li(/^iPad/u)||li(/^Mac/u)&&navigator.maxTouchPoints>1,Qa=li(/^iPhone/u),Hs=Qa||Za;Dt(/^((?!chrome|android).)*safari/iu);const el=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(o){return!1}})();/**
2240
+ */const Vt=i=>i.test(navigator.userAgent),Ci=i=>i.test(navigator.platform),Fl=i=>i.test(navigator.vendor);Vt(/Android/u);Vt(/Chrome/u)&&Fl(/Google Inc/u);Vt(/Firefox/u);const Nl=Ci(/^iPad/u)||Ci(/^Mac/u)&&navigator.maxTouchPoints>1,zl=Ci(/^iPhone/u),gn=zl||Nl;Vt(/^((?!chrome|android).)*safari/iu);const Ll=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
2241
2241
  * @license
2242
2242
  * Copyright (c) 2017 Anton Korzunov
2243
2243
  * SPDX-License-Identifier: MIT
2244
- */let Pe=new WeakMap,ut=new WeakMap,ct={},Rt=0;const Co=o=>o&&o.nodeType===Node.ELEMENT_NODE,Ht=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},tl=(o,t)=>Co(o)?t.map(e=>{if(!Co(e))return Ht(e,"is not a valid element"),null;let i=e;for(;i&&i!==o;){if(o.contains(i))return e;i=i.getRootNode().host}return Ht(e,"is not contained inside",o),null}).filter(e=>!!e):(Ht(o,"is not a valid element"),[]),il=(o,t,e,i)=>{const s=tl(t,Array.isArray(o)?o:[o]);ct[e]||(ct[e]=new WeakMap);const r=ct[e],n=[],a=new Set,l=new Set(s),u=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&u(p),u(h.parentNode||h.host)};s.forEach(u);const c=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))c(_);else{const C=_.getAttribute(i),P=C!==null&&C!=="false",F=(Pe.get(_)||0)+1,z=(r.get(_)||0)+1;Pe.set(_,F),r.set(_,z),n.push(_),F===1&&P&&ut.set(_,!0),z===1&&_.setAttribute(e,"true"),P||_.setAttribute(i,"true")}})};return c(t),a.clear(),Rt+=1,()=>{n.forEach(h=>{const p=Pe.get(h)-1,m=r.get(h)-1;Pe.set(h,p),r.set(h,m),p||(ut.has(h)?ut.delete(h):h.removeAttribute(i)),m||h.removeAttribute(e)}),Rt-=1,Rt||(Pe=new WeakMap,Pe=new WeakMap,ut=new WeakMap,ct={})}},Bs=(o,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(o)?o:[o]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),il(i,t,e,"aria-hidden")};/**
2244
+ */let He=new WeakMap,Pt=new WeakMap,Dt={},ti=0;const Wo=i=>i&&i.nodeType===Node.ELEMENT_NODE,ii=(...i)=>{console.error(`Error: ${i.join(" ")}. Skip setting aria-hidden.`)},Rl=(i,t)=>Wo(i)?t.map(e=>{if(!Wo(e))return ii(e,"is not a valid element"),null;let o=e;for(;o&&o!==i;){if(i.contains(o))return e;o=o.getRootNode().host}return ii(e,"is not contained inside",i),null}).filter(e=>!!e):(ii(i,"is not a valid element"),[]),$l=(i,t,e,o)=>{const s=Rl(t,Array.isArray(i)?i:[i]);Dt[e]||(Dt[e]=new WeakMap);const n=Dt[e],r=[],a=new Set,l=new Set(s),u=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&u(p),u(h.parentNode||h.host)};s.forEach(u);const d=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(g=>{if(!["template","script","style"].includes(g.localName))if(a.has(g))d(g);else{const f=g.getAttribute(o),y=f!==null&&f!=="false",v=(He.get(g)||0)+1,b=(n.get(g)||0)+1;He.set(g,v),n.set(g,b),r.push(g),v===1&&y&&Pt.set(g,!0),b===1&&g.setAttribute(e,"true"),y||g.setAttribute(o,"true")}})};return d(t),a.clear(),ti+=1,()=>{r.forEach(h=>{const p=He.get(h)-1,m=n.get(h)-1;He.set(h,p),n.set(h,m),p||(Pt.has(h)?Pt.delete(h):h.removeAttribute(o)),m||h.removeAttribute(e)}),ti-=1,ti||(He=new WeakMap,He=new WeakMap,Pt=new WeakMap,Dt={})}},yn=(i,t=document.body,e="data-aria-hidden")=>{const o=Array.from(Array.isArray(i)?i:[i]);return t&&o.push(...Array.from(t.querySelectorAll("[aria-live]"))),$l(o,t,e,"aria-hidden")};/**
2245
2245
  * @license
2246
2246
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2247
2247
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2248
- */class ol{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=Bs(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2248
+ */class Bl{constructor(t,e){this.host=t,this.callback=typeof e=="function"?e:()=>t}showModal(){const t=this.callback();this.__showOthers=yn(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
2249
2249
  * @license
2250
2250
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2251
2251
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2252
- */class sl{saveFocus(t){this.focusNode=t||ri()}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=t?t.preventScroll:!1;ri()===document.body?setTimeout(()=>e.focus({preventScroll:i})):e.focus({preventScroll:i}),this.focusNode=null}}/**
2252
+ */class Hl{saveFocus(t){this.focusNode=t||Ei()}restoreFocus(t){const e=this.focusNode;if(!e)return;const o=t?t.preventScroll:!1;Ei()===document.body?setTimeout(()=>e.focus({preventScroll:o})):e.focus({preventScroll:o}),this.focusNode=null}}/**
2253
2253
  * @license
2254
2254
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2255
2255
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2256
- */const Bt=[];class rl{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Wa(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(ja).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Bt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Bt.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Bt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,s=this.__focusedElementIndex,r=(e.length+s+i)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select()}}/**
2256
+ */const oi=[];class Yl{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Dl(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(kl).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");oi.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,oi.pop()}__onKeyDown(t){if(this.__trapNode&&this===Array.from(oi).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e)}}__focusNextElement(t=!1){const e=this.__focusableElements,o=t?-1:1,s=this.__focusedElementIndex,n=(e.length+s+o)%e.length,r=e[n];r.focus(),r.localName==="input"&&r.select()}}/**
2257
2257
  * @license
2258
2258
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2259
2259
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2260
- */const He=j(o=>typeof o.prototype.addController=="function"?o:class extends o{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
2260
+ */const Qe=$(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
2261
2261
  * @license
2262
2262
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2263
2263
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2264
- */const nl=o=>class extends He(o){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new ol(this),this.__focusTrapController=new rl(this),this.__focusRestorationController=new sl}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=!Oi();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=ri();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let i=e;const s=e.ownerDocument;for(;i&&i!==s&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
2264
+ */const jl=i=>class extends Qe(i){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new Bl(this),this.__focusTrapController=new Yl(this),this.__focusRestorationController=new Hl}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=!Zi();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=Ei();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let o=e;const s=e.ownerDocument;for(;o&&o!==s&&o!==this;)o=o.parentNode||o.host;return o===this}};/**
2265
2265
  * @license
2266
2266
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2267
2267
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2268
- */const Vs=()=>Array.from(document.body.children).filter(o=>o instanceof HTMLElement&&o._hasOverlayStackMixin&&!o.hasAttribute("closing")).sort((o,t)=>o.__zIndex-t.__zIndex||0),di=()=>Vs().filter(o=>o.$.overlay),al=o=>o===di().pop(),ll=o=>class extends o{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return al(this)}bringToFront(){let e="";const i=Vs().filter(s=>s!==this).pop();i&&(e=i.__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"),di().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=di();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
2268
+ */const bn=()=>Array.from(document.body.children).filter(i=>i instanceof HTMLElement&&i._hasOverlayStackMixin&&!i.hasAttribute("closing")).sort((i,t)=>i.__zIndex-t.__zIndex||0),ki=()=>bn().filter(i=>i.$.overlay),Ul=i=>i===ki().pop(),Vl=i=>class extends i{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return Ul(this)}bringToFront(){let e="";const o=bn().filter(s=>s!==this).pop();o&&(e=o.__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"),ki().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=ki();let o;for(;(o=e.pop())&&!(o!==this&&(o.$.overlay.style.removeProperty("pointer-events"),!o.modeless)););}};/**
2269
2269
  * @license
2270
2270
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2271
2271
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2272
- */const dl=o=>class extends nl(ll(o)){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),Hs&&(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 i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,s=window.innerWidth>e,r=document.documentElement.clientHeight;s&&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,i,s,r){const n=this._oldOwner!==i||this._oldModel!==s;this._oldModel=s,this._oldOwner=i;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const u=this._oldOpened!==r;this._oldOpened=r,a&&l&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||u||n)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),Rs(this,()=>{this._trapFocus();const s=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(s)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(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),i=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(e,i){const s=`__${e}Handler`,r=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",r),delete this[s])};this[s]=r,this.addEventListener("animationend",r)}_flushAnimation(e){const i=`__${e}Handler`;typeof this[i]=="function"&&this[i]()}_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 i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e)}}};/**
2272
+ */const Wl=i=>class extends jl(Vl(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),gn&&(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 o=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),o.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,s=window.innerWidth>e,n=document.documentElement.clientHeight;s&&n>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${n-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,o,s,n){const r=this._oldOwner!==o||this._oldModel!==s;this._oldModel=s,this._oldOwner=o;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const u=this._oldOpened!==n;this._oldOpened=n,a&&l&&(this.innerHTML="",delete this._$litPart$),n&&e&&(a||u||r)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,o){e?(this._saveFocus(),this._animatedOpening(),_n(this,()=>{this._trapFocus();const s=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(s)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):o&&(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),o=e.getPropertyValue("animation-name");return!(e.getPropertyValue("display")==="none")&&o&&o!=="none"}_enqueueAnimation(e,o){const s=`__${e}Handler`,n=r=>{r&&r.target!==this||(o(),this.removeEventListener("animationend",n),delete this[s])};this[s]=n,this.addEventListener("animationend",n)}_flushAnimation(e){const o=`__${e}Handler`;typeof this[o]=="function"&&this[o]()}_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 o=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const o=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(o),this.opened&&!o.defaultPrevented&&this.close(e)}}};/**
2273
2273
  * @license
2274
2274
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2275
2275
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2276
- */function ul(o){const t=[];for(;o;){if(o.nodeType===Node.DOCUMENT_NODE){t.push(o);break}if(o.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(o),o=o.host;continue}if(o.assignedSlot){o=o.assignedSlot;continue}o=o.parentNode}return t}function Mi(o){return o?new Set(o.split(" ")):new Set}function Et(o){return o?[...o].join(" "):""}function Us(o,t,e){const i=Mi(o.getAttribute(t));i.add(e),o.setAttribute(t,Et(i))}function cl(o,t,e){const i=Mi(o.getAttribute(t));if(i.delete(e),i.size===0){o.removeAttribute(t);return}o.setAttribute(t,Et(i))}function hl(o){return o.nodeType===Node.TEXT_NODE&&o.textContent.trim()===""}/**
2276
+ */function ql(i){const t=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){t.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return t}function Kl(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
2277
2277
  * @license
2278
2278
  * Copyright (c) 2024 Vaadin Ltd.
2279
2279
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2280
- */function pl(o,t){let e=null;const i=document.documentElement;function s(){e&&e.disconnect(),e=null}function r(n=!1,a=1){s();const{left:l,top:u,width:c,height:h}=o.getBoundingClientRect();if(n||t(),!c||!h)return;const p=Math.floor(u),m=Math.floor(i.clientWidth-(l+c)),_=Math.floor(i.clientHeight-(u+h)),C=Math.floor(l),F={rootMargin:`${-p}px ${-m}px ${-_}px ${-C}px`,threshold:Math.max(0,Math.min(1,a))||1};let z=!0;function V(M){let H=M[0].intersectionRatio;if(H!==a){if(!z)return r();H===0&&(H=1e-7),r(!1,H)}z=!1}e=new IntersectionObserver(V,F),e.observe(o)}return r(!0),s}/**
2280
+ */function Gl(i,t){let e=null;const o=document.documentElement;function s(){e&&e.disconnect(),e=null}function n(r=!1,a=1){s();const{left:l,top:u,width:d,height:h}=i.getBoundingClientRect();if(r||t(),!d||!h)return;const p=Math.floor(u),m=Math.floor(o.clientWidth-(l+d)),g=Math.floor(o.clientHeight-(u+h)),f=Math.floor(l),v={rootMargin:`${-p}px ${-m}px ${-g}px ${-f}px`,threshold:Math.max(0,Math.min(1,a))||1};let b=!0;function E(C){let w=C[0].intersectionRatio;if(w!==a){if(!b)return n();w===0&&(w=1e-7),n(!1,w)}b=!1}e=new IntersectionObserver(E,v),e.observe(i)}return n(!0),s}/**
2281
2281
  * @license
2282
2282
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2283
2283
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2284
- */const Vt={start:"top",end:"bottom"},Ut={start:"left",end:"right"},To=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),fl=o=>class extends o{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=ul(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=pl(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,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,To.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,To.observe(i))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(s[r],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 i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const s=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,s),n=!s&&r||s&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Vt,this,i),u=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Ut,this,r);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,i){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,r,this.__margins,n,this.noHorizontalOverlap,Ut)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,s,this.__margins,r,this.noVerticalOverlap,Vt)}__shouldAlignStart(e,i,s,r,n,a,l){const u=s-e[a?l.end:l.start]-r[l.end],c=e[a?l.start:l.end]-r[l.start],h=n?u:c,m=h>(n?c:u)||h>i;return n===m}__adjustBottomProperty(e,i,s){let r;if(e===i.end){if(i.end===Vt.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=s-a}this.__oldViewportHeight=n}if(i.end===Ut.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=s-a}this.__oldViewportWidth=n}}return r}__calculatePositionInOneDimension(e,i,s,r,n,a){const l=a?r.start:r.end,u=a?r.end:r.start,c=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,c),p=i[a?r.start:r.end]-e[s===a?r.end:r.start],m=h?`${h}px`:`${c+p*(a?-1:1)}px`;return{[l]:m,[u]:""}}};/**
2284
+ */const si={start:"top",end:"bottom"},ni={start:"left",end:"right"},qo=new ResizeObserver(i=>{setTimeout(()=>{i.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),Xl=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=ql(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=Gl(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,o){if(this.__removeUpdatePositionEventListeners(),o&&(o.__overlay=null,qo.unobserve(o),e&&(this.__addUpdatePositionEventListeners(),o.__overlay=this,qo.observe(o))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(n=>{this.__margins[n]=parseInt(s[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 o=this.__shouldAlignStartVertically(e);this.style.justifyContent=o?"flex-start":"flex-end";const s=this.__isRTL,n=this.__shouldAlignStartHorizontally(e,s),r=!s&&n||s&&!n;this.style.alignItems=r?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,si,this,o),u=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,ni,this,n);Object.assign(this.style,l,u),this.toggleAttribute("bottom-aligned",!o),this.toggleAttribute("top-aligned",o),this.toggleAttribute("end-aligned",!r),this.toggleAttribute("start-aligned",r)}__shouldAlignStartHorizontally(e,o){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const n=Math.min(window.innerWidth,document.documentElement.clientWidth),r=!o&&this.horizontalAlign==="start"||o&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,n,this.__margins,r,this.noHorizontalOverlap,ni)}__shouldAlignStartVertically(e){const o=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),n=this.verticalAlign==="top";return this.__shouldAlignStart(e,o,s,this.__margins,n,this.noVerticalOverlap,si)}__shouldAlignStart(e,o,s,n,r,a,l){const u=s-e[a?l.end:l.start]-n[l.end],d=e[a?l.start:l.end]-n[l.start],h=r?u:d,m=h>(r?d:u)||h>o;return r===m}__adjustBottomProperty(e,o,s){let n;if(e===o.end){if(o.end===si.end){const r=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>r&&this.__oldViewportHeight){const a=this.__oldViewportHeight-r;n=s-a}this.__oldViewportHeight=r}if(o.end===ni.end){const r=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>r&&this.__oldViewportWidth){const a=this.__oldViewportWidth-r;n=s-a}this.__oldViewportWidth=r}}return n}__calculatePositionInOneDimension(e,o,s,n,r,a){const l=a?n.start:n.end,u=a?n.end:n.start,d=parseFloat(r.style[l]||getComputedStyle(r)[l]),h=this.__adjustBottomProperty(l,n,d),p=o[a?n.start:n.end]-e[s===a?n.end:n.start],m=h?`${h}px`:`${d+p*(a?-1:1)}px`;return{[l]:m,[u]:""}}};/**
2285
2285
  * @license
2286
2286
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2287
2287
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2288
- */const ml=o=>class extends fl(dl(o)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Fs(e.composedPath()[0])&&e.preventDefault()}};/**
2288
+ */const Jl=i=>class extends Xl(Wl(i)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!hn(e.composedPath()[0])&&e.preventDefault()}};/**
2289
2289
  * @license
2290
2290
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2291
2291
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2292
- */const _l=O`
2292
+ */const Zl=S`
2293
2293
  [part='overlay'] {
2294
2294
  display: flex;
2295
2295
  flex: auto;
@@ -2308,14 +2308,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2308
2308
  * @license
2309
2309
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2310
2310
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2311
- */U("vaadin-date-picker-overlay",[Ha,_l],{moduleId:"vaadin-date-picker-overlay-styles"});class gl extends ml(At(Ae(me))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ee`
2311
+ */F("vaadin-date-picker-overlay",[El,Zl],{moduleId:"vaadin-date-picker-overlay-styles"});class Ql extends Jl(Ut(Re(Ae))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Be`
2312
2312
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2313
2313
  <div part="overlay" id="overlay">
2314
2314
  <div part="content" id="content">
2315
2315
  <slot></slot>
2316
2316
  </div>
2317
2317
  </div>
2318
- `}}le(gl);const yl=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,ft=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function vl(){function o(){return!0}return js(o)}function bl(){try{return wl()?!0:xl()?ft?!Cl():!vl():!1}catch(o){return!1}}function wl(){return localStorage.getItem("vaadin.developmentmode.force")}function xl(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Cl(){return!!(ft&&Object.keys(ft).map(t=>ft[t]).filter(t=>t.productionMode).length>0)}function js(o,t){if(typeof o!="function")return;const e=yl.exec(o.toString());if(e)try{o=new Function(e[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return o(t)}window.Vaadin=window.Vaadin||{};const Ao=function(o,t){if(window.Vaadin.developmentMode)return js(o,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=bl());function Tl(){/*! vaadin-dev-mode:start
2318
+ `}}ue(Ql);const ec=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Ot=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function tc(){function i(){return!0}return vn(i)}function ic(){try{return oc()?!0:sc()?Ot?!nc():!tc():!1}catch(i){return!1}}function oc(){return localStorage.getItem("vaadin.developmentmode.force")}function sc(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function nc(){return!!(Ot&&Object.keys(Ot).map(t=>Ot[t]).filter(t=>t.productionMode).length>0)}function vn(i,t){if(typeof i!="function")return;const e=ec.exec(i.toString());if(e)try{i=new Function(e[1])}catch(o){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",o)}return i(t)}window.Vaadin=window.Vaadin||{};const Ko=function(i,t){if(window.Vaadin.developmentMode)return vn(i,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=ic());function rc(){/*! vaadin-dev-mode:start
2319
2319
  (function () {
2320
2320
  'use strict';
2321
2321
 
@@ -2793,7 +2793,7 @@ try {
2793
2793
 
2794
2794
  }());
2795
2795
 
2796
- vaadin-dev-mode:end **/}const Al=function(){if(typeof Ao=="function")return Ao(Tl)};/**
2796
+ vaadin-dev-mode:end **/}const ac=function(){if(typeof Ko=="function")return Ko(rc)};/**
2797
2797
  * @license
2798
2798
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2799
2799
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2801,7 +2801,7 @@ try {
2801
2801
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2802
2802
  * Code distributed by Google as part of the polymer project is also
2803
2803
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2804
- */let Do=0,Ys=0;const Ie=[];let ui=!1;function Dl(){ui=!1;const o=Ie.length;for(let t=0;t<o;t++){const e=Ie[t];if(e)try{e()}catch(i){setTimeout(()=>{throw i})}}Ie.splice(0,o),Ys+=o}const bt={after(o){return{run(t){return window.setTimeout(t,o)},cancel(t){window.clearTimeout(t)}}},run(o,t){return window.setTimeout(o,t)},cancel(o){window.clearTimeout(o)}},El={run(o){return window.requestAnimationFrame(o)},cancel(o){window.cancelAnimationFrame(o)}},kl={run(o){return window.requestIdleCallback?window.requestIdleCallback(o):window.setTimeout(o,16)},cancel(o){window.cancelIdleCallback?window.cancelIdleCallback(o):window.clearTimeout(o)}},Pl={run(o){ui||(ui=!0,queueMicrotask(()=>Dl())),Ie.push(o);const t=Do;return Do+=1,t},cancel(o){const t=o-Ys;if(t>=0){if(!Ie[t])throw new Error(`invalid async handle: ${o}`);Ie[t]=null}}};/**
2804
+ */let Go=0,xn=0;const Ve=[];let Pi=!1;function lc(){Pi=!1;const i=Ve.length;for(let t=0;t<i;t++){const e=Ve[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}Ve.splice(0,i),xn+=i}const Rt={after(i){return{run(t){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}}},run(i,t){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}},cc={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},uc={run(i){Pi||(Pi=!0,queueMicrotask(()=>lc())),Ve.push(i);const t=Go;return Go+=1,t},cancel(i){const t=i-xn;if(t>=0){if(!Ve[t])throw new Error(`invalid async handle: ${i}`);Ve[t]=null}}};/**
2805
2805
  @license
2806
2806
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2807
2807
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2809,31 +2809,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2809
2809
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2810
2810
  Code distributed by Google as part of the polymer project is also
2811
2811
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2812
- */const ci=new Set;let Le=class hi{static debounce(t,e,i){return t instanceof hi?t._cancelAsync():t=new hi,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,ci.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),ci.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 Sl(o){ci.add(o)}/**
2812
+ */const Di=new Set;let vt=class Ti{static debounce(t,e,o){return t instanceof Ti?t._cancelAsync():t=new Ti,t.setConfig(e,o),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Di.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Di.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 dc(i){Di.add(i)}/**
2813
2813
  * @license
2814
2814
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2815
2815
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2816
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){Al()};let jt;const Eo=new Set,Ws=o=>class extends At(o){static finalize(){super.finalize();const{is:e}=this;e&&!Eo.has(e)&&(window.Vaadin.registrations.push(this),Eo.add(e),window.Vaadin.developmentModeCallback&&(jt=Le.debounce(jt,kl,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Sl(jt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2816
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){ac()};let ri;const Xo=new Set,wn=i=>class extends Ut(i){static finalize(){super.finalize();const{is:e}=this;e&&!Xo.has(e)&&(window.Vaadin.registrations.push(this),Xo.add(e),window.Vaadin.developmentModeCallback&&(ri=vt.debounce(ri,cc,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),dc(ri)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
2817
2817
  * @license
2818
2818
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
2819
2819
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2820
- */class Ol{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],s=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?i.push(r):a!==n&&s.push(r)}),(e.length||i.length||s.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:s,removedNodes:i}),this._storedNodes=t}}/**
2820
+ */class hc{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const o=[],s=[];t.length&&(e=t.filter(n=>!this._storedNodes.includes(n))),this._storedNodes.length&&this._storedNodes.forEach((n,r)=>{const a=t.indexOf(n);a===-1?o.push(n):a!==r&&s.push(n)}),(e.length||o.length||s.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:s,removedNodes:o}),this._storedNodes=t}}/**
2821
2821
  * @license
2822
2822
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2823
2823
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2824
- */let Ml=0;function qs(){return Ml++}/**
2824
+ */let pc=0;function En(){return pc++}/**
2825
2825
  * @license
2826
2826
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2827
2827
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2828
- */class be extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${qs()}`}constructor(t,e,i,s={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:u}=s;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,u||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let s=this.defaultNode;return!s&&i&&(s=document.createElement(i),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.defaultNode=s)),s&&(this.node=s,t.appendChild(s)),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Ol(i,({addedNodes:s,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=s.filter(l=>!hl(l)&&!n.includes(l));r.length&&(this.nodes=n.filter(l=>!r.includes(l)),r.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
2828
+ */class Me extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${En()}`}constructor(t,e,o,s={}){super();const{initializer:n,multiple:r,observe:a,useUniqueId:l,uniqueIdPrefix:u}=s;this.host=t,this.slotName=e,this.tagName=o,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof r=="boolean"?r:!1,this.slotInitializer=n,r&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,u||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:o}=this;let s=this.defaultNode;return!s&&o&&(s=document.createElement(o),s instanceof Element&&(e!==""&&s.setAttribute("slot",e),this.defaultNode=s)),s&&(this.node=s,t.appendChild(s)),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,o=this.host.shadowRoot.querySelector(e);this.__slotObserver=new hc(o,({addedNodes:s,removedNodes:n})=>{const r=this.multiple?this.nodes:[this.node],a=s.filter(l=>!Kl(l)&&!r.includes(l));n.length&&(this.nodes=r.filter(l=>!n.includes(l)),n.forEach(l=>{this.teardownNode(l)})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...r,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)))})}}/**
2829
2829
  * @license
2830
2830
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
2831
2831
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2832
- */class Ks extends be{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2832
+ */class Sn extends Me{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
2833
2833
  * @license
2834
2834
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2835
2835
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2836
- */const Il=O`
2836
+ */const fc=S`
2837
2837
  :host {
2838
2838
  display: inline-block;
2839
2839
  position: relative;
@@ -2893,7 +2893,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2893
2893
  outline-color: GrayText;
2894
2894
  }
2895
2895
  }
2896
- `,Nl=o=>o`
2896
+ `,mc=i=>i`
2897
2897
  <div class="vaadin-button-container">
2898
2898
  <span part="prefix" aria-hidden="true">
2899
2899
  <slot name="prefix"></slot>
@@ -2907,6 +2907,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2907
2907
  </div>
2908
2908
  <slot name="tooltip"></slot>
2909
2909
  `;/**
2910
+ * @license
2911
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2912
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2913
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2914
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2915
+ * Code distributed by Google as part of the polymer project is also
2916
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2917
+ */let Jo=0,An=0;const We=[];let Mi=!1;function _c(){Mi=!1;const i=We.length;for(let t=0;t<i;t++){const e=We[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}We.splice(0,i),An+=i}const gc={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},yc={run(i){Mi||(Mi=!0,queueMicrotask(()=>_c())),We.push(i);const t=Jo;return Jo+=1,t},cancel(i){const t=i-An;if(t>=0){if(!We[t])throw new Error(`invalid async handle: ${i}`);We[t]=null}}};/**
2910
2918
  @license
2911
2919
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2912
2920
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2914,39 +2922,39 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2914
2922
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2915
2923
  Code distributed by Google as part of the polymer project is also
2916
2924
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2917
- */const Fl=o=>o,Gs=typeof document.head.style.touchAction=="string",pi="__polymerGestures",Yt="__polymerGesturesHandled",fi="__polymerGesturesTouchAction",ko=25,Po=5,zl=2,Ll=["mousedown","mousemove","mouseup","click"],$l=[0,1,4,2],Rl=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function Ii(o){return Ll.indexOf(o)>-1}let Hl=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){Hl=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function Bl(o){Ii(o)}const Vl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Ul={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ce(o){const t=o.type;if(!Ii(t))return!1;if(t==="mousemove"){let i=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!Rl&&(i=$l[o.which]||0),!!(i&1)}return(o.button===void 0?0:o.button)===0}function jl(o){if(o.type==="click"){if(o.detail===0)return!0;const t=fe(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),i=o.pageX,s=o.pageY;return!(i>=e.left&&i<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const ue={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Yl(o){let t="auto";const e=Xs(o);for(let i=0,s;i<e.length;i++)if(s=e[i],s[fi]){t=s[fi];break}return t}function Js(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function Ne(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const Xs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Ni={},we=[];function Wl(o,t){let e=document.elementFromPoint(o,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const s=i;if(i=i.shadowRoot.elementFromPoint(o,t),s===i)break;i&&(e=i)}return e}function fe(o){const t=Xs(o);return t.length>0?t[0]:o.target}function ql(o){const t=o.type,i=o.currentTarget[pi];if(!i)return;const s=i[t];if(!s)return;if(!o[Yt]&&(o[Yt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(ue.touch.id=n.identifier),ue.touch.id!==n.identifier)return;Gs||(t==="touchstart"||t==="touchmove")&&Kl(o)}const r=o[Yt];if(!r.skip){for(let n=0,a;n<we.length;n++)a=we[n],s[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<we.length;n++)a=we[n],s[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o))}}function Kl(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")ue.touch.x=t.clientX,ue.touch.y=t.clientY,ue.touch.scrollDecided=!1;else if(e==="touchmove"){if(ue.touch.scrollDecided)return;ue.touch.scrollDecided=!0;const i=Yl(o);let s=!1;const r=Math.abs(ue.touch.x-t.clientX),n=Math.abs(ue.touch.y-t.clientY);o.cancelable&&(i==="none"?s=!0:i==="pan-x"?s=n>r:i==="pan-y"&&(s=r>n)),s?o.preventDefault():wt("track")}}function ae(o,t,e){return Ni[t]?(Gl(o,t,e),!0):!1}function Gl(o,t,e){const i=Ni[t],s=i.deps,r=i.name;let n=o[pi];n||(o[pi]=n={});for(let a=0,l,u;a<s.length;a++)l=s[a],!(Vl&&Ii(l)&&l!=="click")&&(u=n[l],u||(n[l]=u={_count:0}),u._count===0&&o.addEventListener(l,ql,Bl(l)),u[r]=(u[r]||0)+1,u._count=(u._count||0)+1);o.addEventListener(t,e),i.touchAction&&Zs(o,i.touchAction)}function Fi(o){we.push(o),o.emits.forEach(t=>{Ni[t]=o})}function Jl(o){for(let t=0,e;t<we.length;t++){e=we[t];for(let i=0,s;i<e.emits.length;i++)if(s=e.emits[i],s===o)return e}return null}function Zs(o,t){Gs&&o instanceof HTMLElement&&Pl.run(()=>{o.style.touchAction=t}),o[fi]=t}function zi(o,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,Fl(o).dispatchEvent(i),i.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function wt(o){const t=Jl(o);t.info&&(t.info.prevent=!0)}Fi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ne(this.info)},mousedown(o){if(!Ce(o))return;const t=fe(o),e=this,i=r=>{Ce(r)||(je("up",t,r),Ne(e.info))},s=r=>{Ce(r)&&je("up",t,r),Ne(e.info)};Js(this.info,i,s),je("down",t,o)},touchstart(o){je("down",fe(o),o.changedTouches[0],o)},touchend(o){je("up",fe(o),o.changedTouches[0],o)}});function je(o,t,e,i){t&&zi(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(s){return wt(s)}})}Fi({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(o){this.moves.length>zl&&this.moves.shift(),this.moves.push(o)},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,Ne(this.info)},mousedown(o){if(!Ce(o))return;const t=fe(o),e=this,i=r=>{const n=r.clientX,a=r.clientY;So(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&wt("tap"),e.info.addMove({x:n,y:a}),Ce(r)||(e.info.state="end",Ne(e.info)),t&&Wt(e.info,t,r),e.info.started=!0)},s=r=>{e.info.started&&i(r),Ne(e.info)};Js(this.info,i,s),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(o){const t=fe(o),e=o.changedTouches[0],i=e.clientX,s=e.clientY;So(this.info,i,s)&&(this.info.state==="start"&&wt("tap"),this.info.addMove({x:i,y:s}),Wt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(o){const t=fe(o),e=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Wt(this.info,t,e))}});function So(o,t,e){if(o.prevent)return!1;if(o.started)return!0;const i=Math.abs(o.x-t),s=Math.abs(o.y-e);return i>=Po||s>=Po}function Wt(o,t,e){if(!t)return;const i=o.moves[o.moves.length-2],s=o.moves[o.moves.length-1],r=s.x-o.x,n=s.y-o.y;let a,l=0;i&&(a=s.x-i.x,l=s.y-i.y),zi(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return Wl(e.clientX,e.clientY)}})}Fi({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(o){Ce(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){Ce(o)&&Oo(this.info,o)},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(o){Oo(this.info,o.changedTouches[0],o)}});function Oo(o,t,e){const i=Math.abs(t.clientX-o.x),s=Math.abs(t.clientY-o.y),r=fe(e||t);!r||Ul[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(s)||i<=ko&&s<=ko||jl(t))&&(o.prevent||zi(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2925
+ */const bc=i=>i,Cn=typeof document.head.style.touchAction=="string",Oi="__polymerGestures",ai="__polymerGesturesHandled",Ii="__polymerGesturesTouchAction",Zo=25,Qo=5,vc=2,xc=["mousedown","mousemove","mouseup","click"],wc=[0,1,4,2],Ec=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function Qi(i){return xc.indexOf(i)>-1}let Sc=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){Sc=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();function Ac(i){Qi(i)}const Cc=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),kc={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Ne(i){const t=i.type;if(!Qi(t))return!1;if(t==="mousemove"){let o=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!Ec&&(o=wc[i.which]||0),!!(o&1)}return(i.button===void 0?0:i.button)===0}function Pc(i){if(i.type==="click"){if(i.detail===0)return!0;const t=Ee(i);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),o=i.pageX,s=i.pageY;return!(o>=e.left&&o<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const ge={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Dc(i){let t="auto";const e=Pn(i);for(let o=0,s;o<e.length;o++)if(s=e[o],s[Ii]){t=s[Ii];break}return t}function kn(i,t,e){i.movefn=t,i.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function qe(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Pn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],eo={},Oe=[];function Tc(i,t){let e=document.elementFromPoint(i,t),o=e;for(;o&&o.shadowRoot&&!window.ShadyDOM;){const s=o;if(o=o.shadowRoot.elementFromPoint(i,t),s===o)break;o&&(e=o)}return e}function Ee(i){const t=Pn(i);return t.length>0?t[0]:i.target}function Mc(i){const t=i.type,o=i.currentTarget[Oi];if(!o)return;const s=o[t];if(!s)return;if(!i[ai]&&(i[ai]={},t.startsWith("touch"))){const r=i.changedTouches[0];if(t==="touchstart"&&i.touches.length===1&&(ge.touch.id=r.identifier),ge.touch.id!==r.identifier)return;Cn||(t==="touchstart"||t==="touchmove")&&Oc(i)}const n=i[ai];if(!n.skip){for(let r=0,a;r<Oe.length;r++)a=Oe[r],s[a.name]&&!n[a.name]&&a.flow&&a.flow.start.indexOf(i.type)>-1&&a.reset&&a.reset();for(let r=0,a;r<Oe.length;r++)a=Oe[r],s[a.name]&&!n[a.name]&&(n[a.name]=!0,a[t](i))}}function Oc(i){const t=i.changedTouches[0],e=i.type;if(e==="touchstart")ge.touch.x=t.clientX,ge.touch.y=t.clientY,ge.touch.scrollDecided=!1;else if(e==="touchmove"){if(ge.touch.scrollDecided)return;ge.touch.scrollDecided=!0;const o=Dc(i);let s=!1;const n=Math.abs(ge.touch.x-t.clientX),r=Math.abs(ge.touch.y-t.clientY);i.cancelable&&(o==="none"?s=!0:o==="pan-x"?s=r>n:o==="pan-y"&&(s=n>r)),s?i.preventDefault():$t("track")}}function es(i,t,e){return eo[t]?(Ic(i,t,e),!0):!1}function Ic(i,t,e){const o=eo[t],s=o.deps,n=o.name;let r=i[Oi];r||(i[Oi]=r={});for(let a=0,l,u;a<s.length;a++)l=s[a],!(Cc&&Qi(l)&&l!=="click")&&(u=r[l],u||(r[l]=u={_count:0}),u._count===0&&i.addEventListener(l,Mc,Ac(l)),u[n]=(u[n]||0)+1,u._count=(u._count||0)+1);i.addEventListener(t,e),o.touchAction&&Nc(i,o.touchAction)}function to(i){Oe.push(i),i.emits.forEach(t=>{eo[t]=i})}function Fc(i){for(let t=0,e;t<Oe.length;t++){e=Oe[t];for(let o=0,s;o<e.emits.length;o++)if(s=e.emits[o],s===i)return e}return null}function Nc(i,t){Cn&&i instanceof HTMLElement&&yc.run(()=>{i.style.touchAction=t}),i[Ii]=t}function io(i,t,e){const o=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=e,bc(i).dispatchEvent(o),o.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function $t(i){const t=Fc(i);t.info&&(t.info.prevent=!0)}to({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(!Ne(i))return;const t=Ee(i),e=this,o=n=>{Ne(n)||(st("up",t,n),qe(e.info))},s=n=>{Ne(n)&&st("up",t,n),qe(e.info)};kn(this.info,o,s),st("down",t,i)},touchstart(i){st("down",Ee(i),i.changedTouches[0],i)},touchend(i){st("up",Ee(i),i.changedTouches[0],i)}});function st(i,t,e,o){t&&io(t,i,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:o,prevent(s){return $t(s)}})}to({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>vc&&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(!Ne(i))return;const t=Ee(i),e=this,o=n=>{const r=n.clientX,a=n.clientY;ts(e.info,r,a)&&(e.info.state=e.info.started?n.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&$t("tap"),e.info.addMove({x:r,y:a}),Ne(n)||(e.info.state="end",qe(e.info)),t&&li(e.info,t,n),e.info.started=!0)},s=n=>{e.info.started&&o(n),qe(e.info)};kn(this.info,o,s),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(i){const t=Ee(i),e=i.changedTouches[0],o=e.clientX,s=e.clientY;ts(this.info,o,s)&&(this.info.state==="start"&&$t("tap"),this.info.addMove({x:o,y:s}),li(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(i){const t=Ee(i),e=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),li(this.info,t,e))}});function ts(i,t,e){if(i.prevent)return!1;if(i.started)return!0;const o=Math.abs(i.x-t),s=Math.abs(i.y-e);return o>=Qo||s>=Qo}function li(i,t,e){if(!t)return;const o=i.moves[i.moves.length-2],s=i.moves[i.moves.length-1],n=s.x-i.x,r=s.y-i.y;let a,l=0;o&&(a=s.x-o.x,l=s.y-o.y),io(t,"track",{state:i.state,x:e.clientX,y:e.clientY,dx:n,dy:r,ddx:a,ddy:l,sourceEvent:e,hover(){return Tc(e.clientX,e.clientY)}})}to({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){Ne(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){Ne(i)&&is(this.info,i)},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(i){is(this.info,i.changedTouches[0],i)}});function is(i,t,e){const o=Math.abs(t.clientX-i.x),s=Math.abs(t.clientY-i.y),n=Ee(e||t);!n||kc[n.localName]&&n.hasAttribute("disabled")||(isNaN(o)||isNaN(s)||o<=Zo&&s<=Zo||Pc(t))&&(i.prevent||io(n,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2918
2926
  * @license
2919
2927
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2920
2928
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2921
- */const Qs=j(o=>class extends o{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2929
+ */const Dn=$(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2922
2930
  * @license
2923
2931
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2924
2932
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2925
- */const kt=j(o=>class extends o{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
2933
+ */const Wt=$(i=>class extends i{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
2926
2934
  * @license
2927
2935
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2928
2936
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2929
- */const Xl=o=>class extends Qs(kt(o)){get _activeKeys(){return[" "]}ready(){super.ready(),ae(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),ae(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",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2937
+ */const zc=i=>class extends Dn(Wt(i)){get _activeKeys(){return[" "]}ready(){super.ready(),es(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),es(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",o=>{this._activeKeys.includes(o.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2930
2938
  * @license
2931
2939
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2932
2940
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2933
- */const Li=j(o=>class extends o{get _keyboardActive(){return Oi()}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}});/**
2941
+ */const oo=$(i=>class extends i{get _keyboardActive(){return Zi()}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}});/**
2934
2942
  * @license
2935
2943
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2936
2944
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2937
- */const er=o=>class extends Qs(o){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,i){super._disabledChanged(e,i),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
2945
+ */const Tn=i=>class extends Dn(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,o){super._disabledChanged(e,o),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):o&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
2938
2946
  * @license
2939
2947
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2940
2948
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2941
- */const Zl=o=>class extends Xl(er(Li(o))){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())}};/**
2949
+ */const Lc=i=>class extends zc(Tn(oo(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())}};/**
2942
2950
  * @license
2943
2951
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2944
2952
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2945
- */U("vaadin-button",Il,{moduleId:"vaadin-button-styles"});class Ql extends Zl(Ws(Ae(He(me)))){static get is(){return"vaadin-button"}static get template(){return Nl(Ee)}ready(){super.ready(),this._tooltipController=new Ks(this),this.addController(this._tooltipController)}}le(Ql);/**
2953
+ */F("vaadin-button",fc,{moduleId:"vaadin-button-styles"});class Rc extends Lc(wn(Re(Qe(Ae)))){static get is(){return"vaadin-button"}static get template(){return mc(Be)}ready(){super.ready(),this._tooltipController=new Sn(this),this.addController(this._tooltipController)}}ue(Rc);/**
2946
2954
  * @license
2947
2955
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2948
2956
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2949
- */function ed(o){let t=o.getDay();t===0&&(t=7);const e=4-t,i=new Date(o.getTime()+e*24*3600*1e3),s=new Date(0,0);s.setFullYear(i.getFullYear());const r=i.getTime()-s.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function mi(o){const t=new Date(o);return t.setHours(0,0,0,0),t}function ce(o,t,e=mi){return o instanceof Date&&t instanceof Date&&e(o).getTime()===e(t).getTime()}function $i(o){return{day:o.getDate(),month:o.getMonth(),year:o.getFullYear()}}function $e(o,t,e,i){let s=!1;if(typeof i=="function"&&o){const r=$i(o);s=i(r)}return(!t||o>=t)&&(!e||o<=e)&&!s}function tr(o,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const s=Math.abs(o.getTime()-i.getTime()),r=Math.abs(e.getTime()-o.getTime());return s<r?i:e})}function ir(o){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(o)+t.getMonth()),e}function td(o,t,e=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let s=t+Math.floor(o.getFullYear()/100)*100;return o<new Date(s-50,e,i)?s-=100:o>new Date(s+50,e,i)&&(s+=100),s}function Ye(o){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(o);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}function id(o){const t=(l,u="00")=>(u+l).substr((u+l).length-u.length);let e="",i="0000",s=o.year;s<0?(s=-s,e="-",i="000000"):o.year>=1e4&&(e="+",i="000000");const r=e+t(s,i),n=t(o.month+1),a=t(o.day);return[r,n,a].join("-")}function od(o){return o instanceof Date?id({year:o.getFullYear(),month:o.getMonth(),day:o.getDate()}):""}/**
2957
+ */function $c(i){let t=i.getDay();t===0&&(t=7);const e=4-t,o=new Date(i.getTime()+e*24*3600*1e3),s=new Date(0,0);s.setFullYear(o.getFullYear());const n=o.getTime()-s.getTime(),r=Math.round(n/(24*3600*1e3));return Math.floor(r/7+1)}function Fi(i){const t=new Date(i);return t.setHours(0,0,0,0),t}function be(i,t,e=Fi){return i instanceof Date&&t instanceof Date&&e(i).getTime()===e(t).getTime()}function so(i){return{day:i.getDate(),month:i.getMonth(),year:i.getFullYear()}}function Je(i,t,e,o){let s=!1;if(typeof o=="function"&&i){const n=so(i);s=o(n)}return(!t||i>=t)&&(!e||i<=e)&&!s}function Mn(i,t){return t.filter(e=>e!==void 0).reduce((e,o)=>{if(!o)return e;if(!e)return o;const s=Math.abs(i.getTime()-o.getTime()),n=Math.abs(e.getTime()-i.getTime());return s<n?o:e})}function On(i){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(i)+t.getMonth()),e}function Bc(i,t,e=0,o=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let s=t+Math.floor(i.getFullYear()/100)*100;return i<new Date(s-50,e,o)?s-=100:i>new Date(s+50,e,o)&&(s+=100),s}function nt(i){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(i);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}function Hc(i){const t=(l,u="00")=>(u+l).substr((u+l).length-u.length);let e="",o="0000",s=i.year;s<0?(s=-s,e="-",o="000000"):i.year>=1e4&&(e="+",o="000000");const n=e+t(s,o),r=t(i.month+1),a=t(i.day);return[n,r,a].join("-")}function Yc(i){return i instanceof Date?Hc({year:i.getFullYear(),month:i.getMonth(),day:i.getDate()}):""}/**
2950
2958
  @license
2951
2959
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2952
2960
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2954,7 +2962,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2954
2962
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2955
2963
  Code distributed by Google as part of the polymer project is also
2956
2964
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2957
- */class xt{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,rt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),rt.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(t,e,i){return t instanceof xt?t._cancelAsync():t=new xt,t.setConfig(e,i),t}}let rt=new Set;const sd=function(o){rt.add(o)},rd=function(){const o=!!rt.size;return rt.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),o};/**
2965
+ */let jc=class Ni{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,xt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),xt.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(t,e,o){return t instanceof Ni?t._cancelAsync():t=new Ni,t.setConfig(e,o),t}},xt=new Set;const Uc=function(i){xt.add(i)},Vc=function(){const i=!!xt.size;return xt.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),i};/**
2958
2966
  @license
2959
2967
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2960
2968
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2962,11 +2970,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2962
2970
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2963
2971
  Code distributed by Google as part of the polymer project is also
2964
2972
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2965
- */const Ri=function(){let o,t;do o=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=rd();while(o||t)};/**
2973
+ */const no=function(){let i,t;do i=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),t=Vc();while(i||t)};/**
2966
2974
  * @license
2967
2975
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2968
2976
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2969
- */const or=document.createElement("template");or.innerHTML=`
2977
+ */const In=document.createElement("template");In.innerHTML=`
2970
2978
  <style>
2971
2979
  :host {
2972
2980
  display: block;
@@ -3016,11 +3024,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3016
3024
  <div class="buffer"></div>
3017
3025
  <div id="fullHeight"></div>
3018
3026
  </div>
3019
- `;class sr extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(or.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${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()),Ri()}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+e,s=t<this._buffers[0].translateY+e;(i||s)&&(this._translateBuffer(s),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=Le.debounce(this._debouncerScrollFinish,bt.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position)})}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=Le.debounce(this._debouncerUpdateClones,bt.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const s=document.createElement("div");s.style.height=`${this.itemHeight}px`,s.instance={};const r=`vaadin-infinite-scroller-item-content-${qs()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=s,e.appendChild(n),s.setAttribute("slot",r),this.appendChild(s),this._isVisible(s,t)&&this._ensureStampedInstance(s)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(i=>{t.instance[i]=e[i]})}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,s)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*s;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a)}),i.updated=!0}})}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
3027
+ `;class Fn extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(In.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const o=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(o)}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return(this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${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()),no()}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,o=t>this._buffers[1].translateY+e,s=t<this._buffers[0].translateY+e;(o||s)&&(this._translateBuffer(s),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=vt.debounce(this._debouncerScrollFinish,Rt.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(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=vt.debounce(this._debouncerUpdateClones,Rt.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let o=0;o<this.bufferSize;o++){const s=document.createElement("div");s.style.height=`${this.itemHeight}px`,s.instance={};const n=`vaadin-infinite-scroller-item-content-${En()}`,r=document.createElement("slot");r.setAttribute("name",n),r._itemWrapper=s,e.appendChild(r),s.setAttribute("slot",n),this.appendChild(s),this._isVisible(s,t)&&this._ensureStampedInstance(s)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(o=>{t.instance[o]=e[o]})}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((o,s)=>{if(!o.updated){const n=this._firstIndex+this.bufferSize*s;[...o.children].forEach((r,a)=>{const l=r._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,n+a)}),o.updated=!0}})}_isVisible(t,e){const o=t.getBoundingClientRect();return o.bottom>e.top&&o.top<e.bottom}}/**
3020
3028
  * @license
3021
3029
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3022
3030
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3023
- */const rr=document.createElement("template");rr.innerHTML=`
3031
+ */const Nn=document.createElement("template");Nn.innerHTML=`
3024
3032
  <style>
3025
3033
  :host {
3026
3034
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3032,11 +3040,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3032
3040
  height: 100%;
3033
3041
  }
3034
3042
  </style>
3035
- `;class nd extends sr{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(rr.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=ir(e)}}le(nd);/**
3043
+ `;class Wc extends Fn{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(Nn.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(t,e){t.month=On(e)}}ue(Wc);/**
3036
3044
  * @license
3037
3045
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3038
3046
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3039
- */const nr=document.createElement("template");nr.innerHTML=`
3047
+ */const zn=document.createElement("template");zn.innerHTML=`
3040
3048
  <style>
3041
3049
  :host {
3042
3050
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3070,15 +3078,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3070
3078
  border-left-color: #000;
3071
3079
  }
3072
3080
  </style>
3073
- `;class ad extends sr{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(nr.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,i=new Date(e);return i.setFullYear(parseInt(t)+e.getFullYear()),i.getFullYear()}}le(ad);/**
3081
+ `;class qc extends Fn{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(zn.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(t,e){t.year=this._yearAfterXYears(e)}_yearAfterXYears(t){const e=new Date,o=new Date(e);return o.setFullYear(parseInt(t)+e.getFullYear()),o.getFullYear()}}ue(qc);/**
3074
3082
  * @license
3075
3083
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3076
3084
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3077
- */const ld=o=>class extends o{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,i){this.toggleAttribute("selected",i&&i.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3085
+ */const Kc=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,o){this.toggleAttribute("selected",o&&o.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3078
3086
  * @license
3079
3087
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3080
3088
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3081
- */class dd extends Ae(ld(me)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ee`
3089
+ */class Gc extends Re(Kc(Ae)){static get is(){return"vaadin-date-picker-year"}static get template(){return Be`
3082
3090
  <style>
3083
3091
  :host {
3084
3092
  display: block;
@@ -3087,7 +3095,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3087
3095
  </style>
3088
3096
  <div part="year-number">[[year]]</div>
3089
3097
  <div part="year-separator" aria-hidden="true"></div>
3090
- `}}le(dd);/**
3098
+ `}}ue(Gc);/**
3099
+ @license
3100
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3101
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3102
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3103
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3104
+ Code distributed by Google as part of the polymer project is also
3105
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3106
+ */function ro(i,t,e,o,s){let n;s&&(n=typeof e=="object"&&e!==null,n&&(o=i.__dataTemp[t]));let r=o!==e&&(o===o||e===e);return n&&r&&(i.__dataTemp[t]=e),r}const ao=$(i=>{class t extends i{_shouldPropertyChange(o,s,n){return ro(this,o,s,n,!0)}}return t}),Xc=$(i=>{class t extends i{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(o,s,n){return ro(this,o,s,n,this.mutableData)}}return t});ao._mutablePropertyChange=ro;/**
3091
3107
  @license
3092
3108
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3093
3109
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3095,7 +3111,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3095
3111
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3096
3112
  Code distributed by Google as part of the polymer project is also
3097
3113
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3098
- */function Hi(o,t,e,i,s){let r;s&&(r=typeof e=="object"&&e!==null,r&&(i=o.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(o.__dataTemp[t]=e),n}const Bi=j(o=>{class t extends o{_shouldPropertyChange(i,s,r){return Hi(this,i,s,r,!0)}}return t}),ud=j(o=>{class t extends o{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,s,r){return Hi(this,i,s,r,this.mutableData)}}return t});Bi._mutablePropertyChange=Hi;/**
3114
+ */let zi=null;function Li(){return zi}Li.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:Li,writable:!0}});const Ln=Xi(Li),Jc=ao(Ln);function Zc(i,t){zi=i,Object.setPrototypeOf(i,t.prototype),new t,zi=null}const Qc=Xi(class{});function eu(i,t){for(let e=0;e<t.length;e++){let o=t[e];if(!!i!=!!o.__hideTemplateChildren__)if(o.nodeType===Node.TEXT_NODE)i?(o.__polymerTextContent__=o.textContent,o.textContent=""):o.textContent=o.__polymerTextContent__;else if(o.localName==="slot")if(i)o.__polymerReplaced__=document.createComment("hidden-slot"),q(q(o).parentNode).replaceChild(o.__polymerReplaced__,o);else{const s=o.__polymerReplaced__;s&&q(q(s).parentNode).replaceChild(o,s)}else o.style&&(i?(o.__polymerDisplay__=o.style.display,o.style.display="none"):o.style.display=o.__polymerDisplay__);o.__hideTemplateChildren__=i,o._showHideChildren&&o._showHideChildren(i)}}class Ce extends Qc{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let s=this.root.firstChild;s;s=s.nextSibling)e.push(s),s.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let o=this.__templatizeOptions;(t&&o.instanceProps||!o.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let o in this.__hostProps)this._setPendingProperty(o,this.__dataHost["_host_"+o]);for(let o in t)this._setPendingProperty(o,t[o])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,o){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,s=>{s.model=this,o(s)});else{let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,o)}}_showHideChildren(t){eu(t,this.children)}_setUnmanagedPropertyToNode(t,e,o){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=o:super._setUnmanagedPropertyToNode(t,e,o)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}Ce.prototype.__dataHost;Ce.prototype.__templatizeOptions;Ce.prototype._methodHost;Ce.prototype.__templatizeOwner;Ce.prototype.__hostProps;const tu=ao(Ce);function os(i){let t=i.__dataHost;return t&&t._methodHost||t}function iu(i,t,e){let o=e.mutableData?tu:Ce;Ri.mixin&&(o=Ri.mixin(o));let s=class extends o{};return s.prototype.__templatizeOptions=e,s.prototype._bindTemplate(i),nu(s,i,t,e),s}function ou(i,t,e,o){let s=e.forwardHostProp;if(s&&t.hasHostProps){const n=i.localName=="template";let r=t.templatizeTemplateClass;if(!r){if(n){let l=e.mutableData?Jc:Ln;class u extends l{}r=t.templatizeTemplateClass=u}else{const l=i.constructor;class u extends l{}r=t.templatizeTemplateClass=u}let a=t.hostProps;for(let l in a)r.prototype._addPropertyEffect("_host_"+l,r.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:su(l,s)}),r.prototype._createNotifyingProperty("_host_"+l);Ys&&o&&lu(t,e,o)}if(i.__dataProto&&Object.assign(i.__data,i.__dataProto),n)Zc(i,r),i.__dataTemp={},i.__dataPending=null,i.__dataOld=null,i._enableProperties();else{Object.setPrototypeOf(i,r.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in i){const u=i[l];delete i[l],i.__data[l]=u}}}}function su(i,t){return function(o,s,n){t.call(o.__templatizeOwner,s.substring(6),n[s])}}function nu(i,t,e,o){let s=e.hostProps||{};for(let n in o.instanceProps){delete s[n];let r=o.notifyInstanceProp;r&&i.prototype._addPropertyEffect(n,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:ru(n,r)})}if(o.forwardHostProp&&t.__dataHost)for(let n in s)e.hasHostProps||(e.hasHostProps=!0),i.prototype._addPropertyEffect(n,i.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:au()})}function ru(i,t){return function(o,s,n){t.call(o.__templatizeOwner,o,s,n[s])}}function au(){return function(t,e,o){t.__dataHost._setPendingPropertyOrPath("_host_"+e,o[e],!0,!0)}}function Ri(i,t,e){if(zt&&!os(i))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},i.__templatizeOwner)throw new Error("A <template> can only be templatized once");i.__templatizeOwner=t;let s=(t?t.constructor:Ce)._parseTemplate(i),n=s.templatizeInstanceClass;n||(n=iu(i,s,e),s.templatizeInstanceClass=n);const r=os(i);ou(i,s,e,r);let a=class extends n{};return a.prototype._methodHost=r,a.prototype.__dataHost=i,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=s.hostProps,a=a,a}function lu(i,t,e){const o=e.constructor._properties,{propertyEffects:s}=i,{instanceProps:n}=t;for(let r in s)if(!o[r]&&!(n&&n[r])){const a=s[r];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${r}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function cu(i,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=i)t=e.__dataHost;else return e;else t=q(t).parentNode;return null}/**
3099
3115
  @license
3100
3116
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3101
3117
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3103,7 +3119,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3103
3119
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3104
3120
  Code distributed by Google as part of the polymer project is also
3105
3121
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3106
- */let _i=null;function gi(){return _i}gi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:gi,writable:!0}});const ar=Pi(gi),cd=Bi(ar);function hd(o,t){_i=o,Object.setPrototypeOf(o,t.prototype),new t,_i=null}const pd=Pi(class{});function fd(o,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!o!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)o?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(o)i.__polymerReplaced__=document.createComment("hidden-slot"),q(q(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const s=i.__polymerReplaced__;s&&q(q(s).parentNode).replaceChild(i,s)}else i.style&&(o?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=o,i._showHideChildren&&i._showHideChildren(o)}}class _e extends pd{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let s=this.root.firstChild;s;s=s.nextSibling)e.push(s),s.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,s=>{s.model=this,i(s)});else{let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,i)}}_showHideChildren(t){fd(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}_e.prototype.__dataHost;_e.prototype.__templatizeOptions;_e.prototype._methodHost;_e.prototype.__templatizeOwner;_e.prototype.__hostProps;const md=Bi(_e);function Mo(o){let t=o.__dataHost;return t&&t._methodHost||t}function _d(o,t,e){let i=e.mutableData?md:_e;yi.mixin&&(i=yi.mixin(i));let s=class extends i{};return s.prototype.__templatizeOptions=e,s.prototype._bindTemplate(o),vd(s,o,t,e),s}function gd(o,t,e,i){let s=e.forwardHostProp;if(s&&t.hasHostProps){const r=o.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?cd:ar;class u extends l{}n=t.templatizeTemplateClass=u}else{const l=o.constructor;class u extends l{}n=t.templatizeTemplateClass=u}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:yd(l,s)}),n.prototype._createNotifyingProperty("_host_"+l);hs&&i&&xd(t,e,i)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),r)hd(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in o){const u=o[l];delete o[l],o.__data[l]=u}}}}function yd(o,t){return function(i,s,r){t.call(i.__templatizeOwner,s.substring(6),r[s])}}function vd(o,t,e,i){let s=e.hostProps||{};for(let r in i.instanceProps){delete s[r];let n=i.notifyInstanceProp;n&&o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:bd(r,n)})}if(i.forwardHostProp&&t.__dataHost)for(let r in s)e.hasHostProps||(e.hasHostProps=!0),o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:wd()})}function bd(o,t){return function(i,s,r){t.call(i.__templatizeOwner,i,s,r[s])}}function wd(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}}function yi(o,t,e){if(yt&&!Mo(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=t;let s=(t?t.constructor:_e)._parseTemplate(o),r=s.templatizeInstanceClass;r||(r=_d(o,s,e),s.templatizeInstanceClass=r);const n=Mo(o);gd(o,s,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=o,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=s.hostProps,a=a,a}function xd(o,t,e){const i=e.constructor._properties,{propertyEffects:s}=o,{instanceProps:r}=t;for(let n in s)if(!i[n]&&!(r&&r[n])){const a=s[n];for(let l=0;l<a.length;l++){const{part:u}=a[l].info;if(!(u.signature&&u.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Cd(o,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=o)t=e.__dataHost;else return e;else t=q(t).parentNode;return null}/**
3122
+ */let ss=!1;function uu(){if(Hs&&!Bs){if(!ss){ss=!0;const i=document.createElement("style");i.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(i)}return!0}return!1}/**
3107
3123
  @license
3108
3124
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3109
3125
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3111,7 +3127,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3111
3127
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3112
3128
  Code distributed by Google as part of the polymer project is also
3113
3129
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3114
- */let Io=!1;function Td(){if(cs&&!us){if(!Io){Io=!0;const o=document.createElement("style");o.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(o)}return!0}return!1}/**
3130
+ */const du=Xc(Ae);class ns extends du{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:!Do,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,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),uu()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=q(q(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let s=new MutationObserver(()=>{if(this.querySelector("template"))s.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}let o={};o[this.as]=!0,o[this.indexAs]=!0,o[this.itemsIndexAs]=!0,this.__ctor=Ri(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:o,forwardHostProp:function(s,n){let r=this.__instances;for(let a=0,l;a<r.length&&(l=r[a]);a++)l.forwardHostProp(s,n)},notifyInstanceProp:function(s,n,r){if(ha(this.as,n)){let a=s[this.itemsIndexAs];n==this.as&&(this.items[a]=r);let l=gt(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,n);this.notifyPath(l,r)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,o=this.__getMethodHost();return function(){return o[e].apply(o,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let o=0;o<e.length;o++)t.indexOf(e[o])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=jc.debounce(this.__renderDebouncer,e>0?ya.after(e):Zs,t.bind(this)),Uc(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),no()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),o=this.__calculateLimit(e.length);this.__updateInstances(t,o,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Do||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let o=0;o<t.length;o++)e[o]=o;return this.__filterFn&&(e=e.filter((o,s,n)=>this.__filterFn(t[o],s,n))),this.__sortFn&&e.sort((o,s)=>this.__sortFn(t[o],t[s])),e}__calculateLimit(t){let e=t;const o=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-o,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-o,0),this.__chunkCount),e=Math.min(o+s,t)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,o){const s=this.__itemsIdxToInstIdx={};let n;for(n=0;n<e;n++){let r=this.__instances[n],a=o[n],l=t[a];s[a]=n,r?(r._setPendingProperty(this.as,l),r._setPendingProperty(this.indexAs,n),r._setPendingProperty(this.itemsIndexAs,a),r._flushProperties()):this.__insertInstance(l,n,a)}for(let r=this.__instances.length-1;r>=n;r--)this.__detachAndRemoveInstance(r)}__detachInstance(t){let e=this.__instances[t];const o=q(e.root);for(let s=0;s<e.children.length;s++){let n=e.children[s];o.appendChild(n)}return e}__attachInstance(t,e){let o=this.__instances[t];e.insertBefore(o.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,o){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=o,new this.__ctor(s)}__insertInstance(t,e,o){const s=this.__stampInstance(t,e,o);let n=this.__instances[e+1],r=n?n.children[0]:this;return q(q(this).parentNode).insertBefore(s.root,r),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let o=t.slice(6),s=o.indexOf("."),n=s<0?o:o.substring(0,s);if(n==parseInt(n,10)){let r=s<0?"":o.substring(s+1);this.__handleObservedPaths(r);let a=this.__itemsIdxToInstIdx[n],l=this.__instances[a];if(l){let u=this.as+(r?"."+r:"");l._setPendingPropertyOrPath(u,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return cu(this.template,t)}}customElements.define(ns.is,ns);/**
3115
3131
  @license
3116
3132
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3117
3133
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3119,15 +3135,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3119
3135
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3120
3136
  Code distributed by Google as part of the polymer project is also
3121
3137
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3122
- */const Ad=ud(me);class No extends Ad{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:!ro,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,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Td()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=q(q(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let s=new MutationObserver(()=>{if(this.querySelector("template"))s.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=yi(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(s,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(s,r)},notifyInstanceProp:function(s,r,n){if(Pn(this.as,r)){let a=s[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=it(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=xt.debounce(this.__renderDebouncer,e>0?Fn.after(e):xs,t.bind(this)),sd(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ri()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!ro||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,s,r)=>this.__filterFn(t[i],s,r))),this.__sortFn&&e.sort((i,s)=>this.__sortFn(t[i],t[s])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-i,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+s,t)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];s[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const i=q(e.root);for(let s=0;s<e.children.length;s++){let r=e.children[s];i.appendChild(r)}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=i,new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return q(q(this).parentNode).insertBefore(s.root,n),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),s=i.indexOf("."),r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let n=s<0?"":i.substring(s+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let u=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(u,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return Cd(this.template,t)}}customElements.define(No.is,No);/**
3138
+ */const hu=i=>i,Rn=typeof document.head.style.touchAction=="string",$i="__polymerGestures",ci="__polymerGesturesHandled",Bi="__polymerGesturesTouchAction",rs=25,as=5,pu=2,fu=["mousedown","mousemove","mouseup","click"],mu=[0,1,4,2],_u=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function lo(i){return fu.indexOf(i)>-1}let gu=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){gu=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();function yu(i){lo(i)}const bu=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),vu={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ze(i){const t=i.type;if(!lo(t))return!1;if(t==="mousemove"){let o=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!_u&&(o=mu[i.which]||0),!!(o&1)}return(i.button===void 0?0:i.button)===0}function xu(i){if(i.type==="click"){if(i.detail===0)return!0;const t=Se(i);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),o=i.pageX,s=i.pageY;return!(o>=e.left&&o<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const ye={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function wu(i){let t="auto";const e=Bn(i);for(let o=0,s;o<e.length;o++)if(s=e[o],s[Bi]){t=s[Bi];break}return t}function $n(i,t,e){i.movefn=t,i.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function Ke(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Bn=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],co={},Ie=[];function Eu(i,t){let e=document.elementFromPoint(i,t),o=e;for(;o&&o.shadowRoot&&!window.ShadyDOM;){const s=o;if(o=o.shadowRoot.elementFromPoint(i,t),s===o)break;o&&(e=o)}return e}function Se(i){const t=Bn(i);return t.length>0?t[0]:i.target}function Su(i){const t=i.type,o=i.currentTarget[$i];if(!o)return;const s=o[t];if(!s)return;if(!i[ci]&&(i[ci]={},t.startsWith("touch"))){const r=i.changedTouches[0];if(t==="touchstart"&&i.touches.length===1&&(ye.touch.id=r.identifier),ye.touch.id!==r.identifier)return;Rn||(t==="touchstart"||t==="touchmove")&&Au(i)}const n=i[ci];if(!n.skip){for(let r=0,a;r<Ie.length;r++)a=Ie[r],s[a.name]&&!n[a.name]&&a.flow&&a.flow.start.indexOf(i.type)>-1&&a.reset&&a.reset();for(let r=0,a;r<Ie.length;r++)a=Ie[r],s[a.name]&&!n[a.name]&&(n[a.name]=!0,a[t](i))}}function Au(i){const t=i.changedTouches[0],e=i.type;if(e==="touchstart")ye.touch.x=t.clientX,ye.touch.y=t.clientY,ye.touch.scrollDecided=!1;else if(e==="touchmove"){if(ye.touch.scrollDecided)return;ye.touch.scrollDecided=!0;const o=wu(i);let s=!1;const n=Math.abs(ye.touch.x-t.clientX),r=Math.abs(ye.touch.y-t.clientY);i.cancelable&&(o==="none"?s=!0:o==="pan-x"?s=r>n:o==="pan-y"&&(s=n>r)),s?i.preventDefault():Bt("track")}}function ve(i,t,e){return co[t]?(Cu(i,t,e),!0):!1}function Cu(i,t,e){const o=co[t],s=o.deps,n=o.name;let r=i[$i];r||(i[$i]=r={});for(let a=0,l,u;a<s.length;a++)l=s[a],!(bu&&lo(l)&&l!=="click")&&(u=r[l],u||(r[l]=u={_count:0}),u._count===0&&i.addEventListener(l,Su,yu(l)),u[n]=(u[n]||0)+1,u._count=(u._count||0)+1);i.addEventListener(t,e),o.touchAction&&Hn(i,o.touchAction)}function uo(i){Ie.push(i),i.emits.forEach(t=>{co[t]=i})}function ku(i){for(let t=0,e;t<Ie.length;t++){e=Ie[t];for(let o=0,s;o<e.emits.length;o++)if(s=e.emits[o],s===i)return e}return null}function Hn(i,t){Rn&&i instanceof HTMLElement&&uc.run(()=>{i.style.touchAction=t}),i[Bi]=t}function ho(i,t,e){const o=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=e,hu(i).dispatchEvent(o),o.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function Bt(i){const t=ku(i);t.info&&(t.info.prevent=!0)}uo({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ke(this.info)},mousedown(i){if(!ze(i))return;const t=Se(i),e=this,o=n=>{ze(n)||(rt("up",t,n),Ke(e.info))},s=n=>{ze(n)&&rt("up",t,n),Ke(e.info)};$n(this.info,o,s),rt("down",t,i)},touchstart(i){rt("down",Se(i),i.changedTouches[0],i)},touchend(i){rt("up",Se(i),i.changedTouches[0],i)}});function rt(i,t,e,o){t&&ho(t,i,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:o,prevent(s){return Bt(s)}})}uo({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>pu&&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,Ke(this.info)},mousedown(i){if(!ze(i))return;const t=Se(i),e=this,o=n=>{const r=n.clientX,a=n.clientY;ls(e.info,r,a)&&(e.info.state=e.info.started?n.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&Bt("tap"),e.info.addMove({x:r,y:a}),ze(n)||(e.info.state="end",Ke(e.info)),t&&ui(e.info,t,n),e.info.started=!0)},s=n=>{e.info.started&&o(n),Ke(e.info)};$n(this.info,o,s),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(i){const t=Se(i),e=i.changedTouches[0],o=e.clientX,s=e.clientY;ls(this.info,o,s)&&(this.info.state==="start"&&Bt("tap"),this.info.addMove({x:o,y:s}),ui(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(i){const t=Se(i),e=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),ui(this.info,t,e))}});function ls(i,t,e){if(i.prevent)return!1;if(i.started)return!0;const o=Math.abs(i.x-t),s=Math.abs(i.y-e);return o>=as||s>=as}function ui(i,t,e){if(!t)return;const o=i.moves[i.moves.length-2],s=i.moves[i.moves.length-1],n=s.x-i.x,r=s.y-i.y;let a,l=0;o&&(a=s.x-o.x,l=s.y-o.y),ho(t,"track",{state:i.state,x:e.clientX,y:e.clientY,dx:n,dy:r,ddx:a,ddy:l,sourceEvent:e,hover(){return Eu(e.clientX,e.clientY)}})}uo({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){ze(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){ze(i)&&cs(this.info,i)},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(i){cs(this.info,i.changedTouches[0],i)}});function cs(i,t,e){const o=Math.abs(t.clientX-i.x),s=Math.abs(t.clientY-i.y),n=Se(e||t);!n||vu[n.localName]&&n.hasAttribute("disabled")||(isNaN(o)||isNaN(s)||o<=rs&&s<=rs||xu(t))&&(i.prevent||ho(n,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
3123
3139
  * @license
3124
3140
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3125
3141
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3126
- */const Dd=o=>class extends Li(o){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=>ce(e.date,this.focusedDate))}ready(){super.ready(),ae(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,i,s){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),i&&s&&i.getMonth()===s.getMonth()&&i.getMonth()===e.getMonth()&&s.getDate()-i.getDate()>=0?!1:!$e(r,i,s)&&!$e(n,i,s)}_getTitle(e,i){if(!(e===void 0||i===void 0))return i.formatTitle(i.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,i){e.setDate(e.getDate()+i)}_applyFirstDayOfWeek(e,i){if(!(e===void 0||i===void 0))return e.slice(i).concat(e.slice(0,i))}_getWeekDayNames(e,i){if(e===void 0||i===void 0)return[];const{weekdays:s,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(s,n).map((u,c)=>({weekDay:u,weekDayShort:a[c]})).slice(0,7)}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(s=>ce(s,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,i){return e&&i&&i.firstDayOfWeek===1}_isToday(e){return ce(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return[];const s=new Date(0,0);for(s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);s.getDay()!==i.firstDayOfWeek;)this._dateAdd(s,-1);const r=[],n=s.getMonth(),a=e.getMonth();for(;s.getMonth()===a||s.getMonth()===n;)r.push(s.getMonth()===a?new Date(s.getTime()):null),this._dateAdd(s,1);return r}_getWeeks(e){return e.reduce((i,s,r)=>(r%7===0&&i.push([]),i[i.length-1].push(s),i),[])}_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 i=e.reduce((s,r)=>!s&&r?r:s);return ed(i)}__getDayAriaLabel(e){if(!e)return"";let i=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(i+=`, ${this.i18n.today}`),i}};/**
3142
+ */const Pu=i=>class extends oo(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=>be(e.date,this.focusedDate))}ready(){super.ready(),ve(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,o,s){const n=new Date(0,0);n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()),n.setDate(1);const r=new Date(0,0);return r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()+1),r.setDate(0),o&&s&&o.getMonth()===s.getMonth()&&o.getMonth()===e.getMonth()&&s.getDate()-o.getDate()>=0?!1:!Je(n,o,s)&&!Je(r,o,s)}_getTitle(e,o){if(!(e===void 0||o===void 0))return o.formatTitle(o.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,o){e.setDate(e.getDate()+o)}_applyFirstDayOfWeek(e,o){if(!(e===void 0||o===void 0))return e.slice(o).concat(e.slice(0,o))}_getWeekDayNames(e,o){if(e===void 0||o===void 0)return[];const{weekdays:s,weekdaysShort:n,firstDayOfWeek:r}=e,a=this._applyFirstDayOfWeek(n,r);return this._applyFirstDayOfWeek(s,r).map((u,d)=>({weekDay:u,weekDayShort:a[d]})).slice(0,7)}__focusedDateChanged(e,o){Array.isArray(o)&&o.some(s=>be(s,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,o){return e&&o&&o.firstDayOfWeek===1}_isToday(e){return be(new Date,e)}_getDays(e,o){if(e===void 0||o===void 0)return[];const s=new Date(0,0);for(s.setFullYear(e.getFullYear()),s.setMonth(e.getMonth()),s.setDate(1);s.getDay()!==o.firstDayOfWeek;)this._dateAdd(s,-1);const n=[],r=s.getMonth(),a=e.getMonth();for(;s.getMonth()===a||s.getMonth()===r;)n.push(s.getMonth()===a?new Date(s.getTime()):null),this._dateAdd(s,1);return n}_getWeeks(e){return e.reduce((o,s,n)=>(n%7===0&&o.push([]),o[o.length-1].push(s),o),[])}_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 o=e.reduce((s,n)=>!s&&n?n:s);return $c(o)}__getDayAriaLabel(e){if(!e)return"";let o=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(o+=`, ${this.i18n.today}`),o}};/**
3127
3143
  * @license
3128
3144
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3129
3145
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3130
- */const Ed=O`
3146
+ */const Du=S`
3131
3147
  :host {
3132
3148
  display: block;
3133
3149
  }
@@ -3187,7 +3203,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3187
3203
  * @license
3188
3204
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3189
3205
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3190
- */U("vaadin-month-calendar",Ed,{moduleId:"vaadin-month-calendar-styles"});class kd extends Dd(Ae(me)){static get template(){return Ee`
3206
+ */F("vaadin-month-calendar",Du,{moduleId:"vaadin-month-calendar-styles"});class Tu extends Pu(Re(Ae)){static get template(){return Be`
3191
3207
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3192
3208
  <table
3193
3209
  id="monthGrid"
@@ -3229,19 +3245,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3229
3245
  </template>
3230
3246
  </tbody>
3231
3247
  </table>
3232
- `}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(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,i,s,r,n){const a=["date"],l=t>mi(new Date),u=t<mi(new Date);return this.__isDayDisabled(t,s,r,n)&&a.push("disabled"),this.__isDayFocused(t,e)&&a.push("focused"),this.__isDaySelected(t,i)&&a.push("selected"),this._isToday(t)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,e){return ce(t,e)}__isDaySelected(t,e){return ce(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,i,s){return!$e(t,e,i,s)}__getDayAriaDisabled(t,e,i,s){if(!(t===void 0||e===void 0&&i===void 0&&s===void 0)&&this.__isDayDisabled(t,e,i,s))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}le(kd);/**
3248
+ `}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(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(t,e,o,s,n,r){const a=["date"],l=t>Fi(new Date),u=t<Fi(new Date);return this.__isDayDisabled(t,s,n,r)&&a.push("disabled"),this.__isDayFocused(t,e)&&a.push("focused"),this.__isDaySelected(t,o)&&a.push("selected"),this._isToday(t)&&a.push("today"),u&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,e){return be(t,e)}__isDaySelected(t,e){return be(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return"true"}__isDayDisabled(t,e,o,s){return!Je(t,e,o,s)}__getDayAriaDisabled(t,e,o,s){if(!(t===void 0||e===void 0&&o===void 0&&s===void 0)&&this.__isDayDisabled(t,e,o,s))return"true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}ue(Tu);/**
3233
3249
  * @license
3234
3250
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3235
3251
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3236
- */class lr{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(t){typeof this.callback=="function"&&this.callback(t.matches)}}/**
3252
+ */class Yn{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(t){typeof this.callback=="function"&&this.callback(t.matches)}}/**
3237
3253
  * @license
3238
3254
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3239
3255
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3240
- */const Pd=o=>class extends o{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(){Zs(this.$.scrollers,"pan-y"),ae(this.$.scrollers,"track",this._track.bind(this)),ae(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),ae(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),ae(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new lr(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new be(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),ae(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new be(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),ae(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,i){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new be(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",i=>{this.__onMonthCalendarKeyDown(i)}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=i}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new be(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),ae(e,"tap",i=>{this._onYearTap(i)}),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,i){e&&(e.textContent=i&&i.cancel)}__updateTodayButton(e,i,s,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(s,r,n))}__updateCalendars(e,i,s,r,n,a,l,u,c,h){e&&e.length&&e.forEach(p=>{p.i18n=i,p.minDate=s,p.maxDate=r,p.isDateDisabled=h,p.focusedDate=a,p.selectedDate=n,p.showWeekNumbers=l,p.ignoreTaps=u,c?p.setAttribute("theme",c):p.removeAttribute("theme")})}__updateYears(e,i,s){e&&e.length&&e.forEach(r=>{r.selectedDate=i,s?r.setAttribute("theme",s):r.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,i=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+u,i);return}const r=this._monthScroller.position>s,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<s;r?this._scrollToPosition(s,i):l&&this._scrollToPosition(s-a+1,i)}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let s=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(s+=1);return s/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=Le.debounce(this._debouncer,bt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate($i(e)):s}_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 s=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+s*12,!0)}}_scrollToPosition(e,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(u=>{s=u});const r=(u,c,h,p)=>(u/=p/2,u<1?h/2*u*u+c:(u-=1,-h/2*(u*(u-2)-1)+c));let n=0;const a=this._monthScroller.position,l=u=>{n||(n=u);const c=u-n;if(c<this.scrollDuration){const h=r(c,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,i){return Math.min(i.max,Math.max(i.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 i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{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 ir(e).getFullYear()}_differenceInMonths(e,i){return(e.getFullYear()-i.getFullYear())*12-i.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){ce(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){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 i=this.focusableDateElement;i&&ce(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return at(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,i||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return at(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Rs(this,()=>{Ri(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(tr(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,i,s){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,i){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),i&&s.setDate(this.focusedDate.getDate()+i),s}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1)}_moveFocusByMonths(e){const i=this._getDateDiff(e),s=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==s&&i.setDate(0),this._focusAllowedDate(i,e,!0)}_moveFocusInsideMonth(e,i){const s=new Date(0,0);s.setFullYear(e.getFullYear()),i==="minDate"?(s.setMonth(e.getMonth()),s.setDate(1)):(s.setMonth(e.getMonth()+1),s.setDate(0)),this._dateAllowed(s)?this.focusDate(s):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e)}_dateAllowed(e,i=this.minDate,s=this.maxDate,r=this.isDateDisabled){return $e(e,i,s,r)}_isTodayAllowed(e,i,s){return this._dateAllowed(this._getTodayMidnight(),e,i,s)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
3256
+ */const Mu=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(){Hn(this.$.scrollers,"pan-y"),ve(this.$.scrollers,"track",this._track.bind(this)),ve(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),ve(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),ve(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Yn(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new Me(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onTodayButtonKeyDown(o)),ve(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new Me(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",o=>this.__onCancelButtonKeyDown(o)),ve(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,o){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,o),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new Me(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",o=>{this.__onMonthCalendarKeyDown(o)}),e.addEventListener("init-done",()=>{const o=[...this.querySelectorAll("vaadin-month-calendar")];o.forEach(s=>{s.addEventListener("selected-date-changed",n=>{this.selectedDate=n.detail.value})}),this.calendars=o}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new Me(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),ve(e,"tap",o=>{this._onYearTap(o)}),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,o){e&&(e.textContent=o&&o.cancel)}__updateTodayButton(e,o,s,n,r){e&&(e.textContent=o&&o.today,e.disabled=!this._isTodayAllowed(s,n,r))}__updateCalendars(e,o,s,n,r,a,l,u,d,h){e&&e.length&&e.forEach(p=>{p.i18n=o,p.minDate=s,p.maxDate=n,p.isDateDisabled=h,p.focusedDate=a,p.selectedDate=r,p.showWeekNumbers=l,p.ignoreTaps=u,d?p.setAttribute("theme",d):p.removeAttribute("theme")})}__updateYears(e,o,s){e&&e.length&&e.forEach(n=>{n.selectedDate=o,s?n.setAttribute("theme",s):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,o=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const u=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+u,o);return}const n=this._monthScroller.position>s,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<s;n?this._scrollToPosition(s,o):l&&this._scrollToPosition(s-a+1,o)}_calculateWeekScrollOffset(e){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);let s=0;for(;o.getDate()<e.getDate();)o.setDate(o.getDate()+1),o.getDay()===this.i18n.firstDayOfWeek&&(s+=1);return s/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=vt.debounce(this._debouncer,Rt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,o,s){return e&&o&&typeof o.formatDate=="function"?o.formatDate(so(e)):s}_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 s=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+s*12,!0)}}_scrollToPosition(e,o){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!o){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(u=>{s=u});const n=(u,d,h,p)=>(u/=p/2,u<1?h/2*u*u+d:(u-=1,-h/2*(u*(u-2)-1)+d));let r=0;const a=this._monthScroller.position,l=u=>{r||(r=u);const d=u-r;if(d<this.scrollDuration){const h=n(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,o){return Math.min(o.max,Math.max(o.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 o=this._translateX+e.detail.ddx;this._translateX=this._limit(o,{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 On(e).getFullYear()}_differenceInMonths(e,o){return(e.getFullYear()-o.getFullYear())*12-o.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){be(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let o=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),o=!0;break;case"ArrowUp":this._moveFocusByDays(-7),o=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),o=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),o=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),o=!0);break;case" ":this.__toggleDate(this.focusedDate),o=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),o=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),o=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),o=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),o=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}o&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,o){switch(e.stopPropagation(),o){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 o=this.focusableDateElement;o&&be(o.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,o.focus())}}focusDate(e,o){return et(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,o||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return et(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(o=>{_n(this,()=>{no(),o()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Mn(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,o,s){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?o>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,o){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),o&&s.setDate(this.focusedDate.getDate()+o),s}_moveFocusByDays(e){const o=this._getDateDiff(0,e);this._focusAllowedDate(o,e,!1)}_moveFocusByMonths(e){const o=this._getDateDiff(e),s=o.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),o.setDate(this._focusedMonthDate),o.getMonth()!==s&&o.setDate(0),this._focusAllowedDate(o,e,!0)}_moveFocusInsideMonth(e,o){const s=new Date(0,0);s.setFullYear(e.getFullYear()),o==="minDate"?(s.setMonth(e.getMonth()),s.setDate(1)):(s.setMonth(e.getMonth()+1),s.setDate(0)),this._dateAllowed(s)?this.focusDate(s):this._dateAllowed(e)?this.focusDate(this[o]):this._focusClosestDate(e)}_dateAllowed(e,o=this.minDate,s=this.maxDate,n=this.isDateDisabled){return Je(e,o,s,n)}_isTodayAllowed(e,o,s){return this._dateAllowed(this._getTodayMidnight(),e,o,s)}_getTodayMidnight(){const e=new Date,o=new Date(0,0);return o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(e.getDate()),o}};/**
3241
3257
  * @license
3242
3258
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3243
3259
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3244
- */const Sd=O`
3260
+ */const Ou=S`
3245
3261
  :host {
3246
3262
  display: flex;
3247
3263
  flex-direction: column;
@@ -3305,7 +3321,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3305
3321
  * @license
3306
3322
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3307
3323
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3308
- */U("vaadin-date-picker-overlay-content",Sd,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Od extends Pd(He(Ae(At(me)))){static get template(){return Ee`
3324
+ */F("vaadin-date-picker-overlay-content",Ou,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Iu extends Mu(Qe(Re(Ut(Ae)))){static get template(){return Be`
3309
3325
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3310
3326
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3311
3327
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3325,92 +3341,104 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3325
3341
  <slot name="today-button"></slot>
3326
3342
  <slot name="cancel-button"></slot>
3327
3343
  </div>
3328
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}le(Od);/**
3344
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}ue(Iu);/**
3345
+ * @license
3346
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
3347
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3348
+ */const jn=$(i=>class extends oo(Tn(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,o){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):o&&this._removeFocusListeners(o)}_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,o){super._disabledChanged(e,o),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)}});/**
3329
3349
  * @license
3330
3350
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3331
3351
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3332
- */const dr=j(o=>class extends Li(er(o)){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,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_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,i){super._disabledChanged(e,i),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)}});/**
3352
+ */const di=new WeakMap;function Fu(i){return di.has(i)||di.set(i,new Set),di.get(i)}function Nu(i,t){const e=document.createElement("style");e.textContent=i,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const zu=$(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),o=Fu(e);this.slotStyles.forEach(s=>{o.has(s)||(Nu(s,e),o.add(s))})}});/**
3333
3353
  * @license
3334
3354
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3335
3355
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3336
- */const qt=new WeakMap;function Md(o){return qt.has(o)||qt.set(o,new Set),qt.get(o)}function Id(o,t){const e=document.createElement("style");e.textContent=o,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Nd=j(o=>class extends o{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),i=Md(e);this.slotStyles.forEach(s=>{i.has(s)||(Id(s,e),i.add(s))})}});/**
3356
+ */const Un=$(i=>class extends i{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,o){e?this._addInputListeners(e):o&&this._removeInputListeners(o)}_hasInputValueChanged(e,o){(e||o)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const o=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=o.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,o){this._toggleHasValue(this._hasValue),!(e===""&&o===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const o=e.composedPath()[0];this._hasInputValue=o.value.length>0}});/**
3337
3357
  * @license
3338
3358
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3339
3359
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3340
- */const ur=j(o=>class extends o{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,i){e?this._addInputListeners(e):i&&this._removeInputListeners(i)}_hasInputValueChanged(e,i){(e||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const i=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,i){this._toggleHasValue(this._hasValue),!(e===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const i=e.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
3360
+ */const Lu=i=>class extends Un(Wt(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(),Ll||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}))}};/**
3341
3361
  * @license
3342
3362
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3343
3363
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3344
- */const Fd=o=>class extends ur(kt(o)){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(),el||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}))}};/**
3364
+ */function po(i){return i?new Set(i.split(" ")):new Set}function qt(i){return i?[...i].join(" "):""}function Vn(i,t,e){const o=po(i.getAttribute(t));o.add(e),i.setAttribute(t,qt(o))}function Ru(i,t,e){const o=po(i.getAttribute(t));if(o.delete(e),o.size===0){i.removeAttribute(t);return}i.setAttribute(t,qt(o))}/**
3345
3365
  * @license
3346
3366
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3347
3367
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3348
- */const Kt=new Map;function Vi(o){return Kt.has(o)||Kt.set(o,new WeakMap),Kt.get(o)}function cr(o,t){o&&o.removeAttribute(t)}function hr(o,t){if(!o||!t)return;const e=Vi(t);if(e.has(o))return;const i=Mi(o.getAttribute(t));e.set(o,new Set(i))}function zd(o,t){if(!o||!t)return;const e=Vi(t),i=e.get(o);!i||i.size===0?o.removeAttribute(t):Us(o,t,Et(i)),e.delete(o)}function Gt(o,t,e={newId:null,oldId:null,fromUser:!1}){if(!o||!t)return;const{newId:i,oldId:s,fromUser:r}=e,n=Vi(t),a=n.get(o);if(!r&&a){s&&a.delete(s),i&&a.add(i);return}r&&(a?i||n.delete(o):hr(o,t),cr(o,t)),cl(o,t,s);const l=i||Et(a);l&&Us(o,t,l)}function Ld(o,t){hr(o,t),cr(o,t)}/**
3368
+ */const hi=new Map;function fo(i){return hi.has(i)||hi.set(i,new WeakMap),hi.get(i)}function Wn(i,t){i&&i.removeAttribute(t)}function qn(i,t){if(!i||!t)return;const e=fo(t);if(e.has(i))return;const o=po(i.getAttribute(t));e.set(i,new Set(o))}function $u(i,t){if(!i||!t)return;const e=fo(t),o=e.get(i);!o||o.size===0?i.removeAttribute(t):Vn(i,t,qt(o)),e.delete(i)}function pi(i,t,e={newId:null,oldId:null,fromUser:!1}){if(!i||!t)return;const{newId:o,oldId:s,fromUser:n}=e,r=fo(t),a=r.get(i);if(!n&&a){s&&a.delete(s),o&&a.add(o);return}n&&(a?o||r.delete(i):qn(i,t),Wn(i,t)),Ru(i,t,s);const l=o||qt(a);l&&Vn(i,t,l)}function Bu(i,t){qn(i,t),Wn(i,t)}/**
3349
3369
  * @license
3350
3370
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3351
3371
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3352
- */class $d{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,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(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(Ld(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(zd(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,i){Gt(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i})}__setErrorIdToAriaAttribute(t,e){Gt(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Gt(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3372
+ */class Hu{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,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(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const o=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,o,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(Bu(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&($u(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,o){pi(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:o})}__setErrorIdToAriaAttribute(t,e){pi(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){pi(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
3373
+ @license
3374
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3375
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
3376
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3377
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3378
+ Code distributed by Google as part of the polymer project is also
3379
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3380
+ */const us=new Set;class Ht{static debounce(t,e,o){return t instanceof Ht?t._cancelAsync():t=new Ht,t.setConfig(e,o),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,us.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),us.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}}/**
3353
3381
  * @license
3354
3382
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3355
3383
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3356
- */const se=document.createElement("div");se.style.position="fixed";se.style.clip="rect(0px, 0px, 0px, 0px)";se.setAttribute("aria-live","polite");document.body.appendChild(se);let ht;function Rd(o,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(se.removeAttribute("aria-live"),se.removeAttribute("role"),ht=Le.debounce(ht,El,()=>{se.setAttribute("role","alert")})):(ht&&ht.cancel(),se.removeAttribute("role"),se.setAttribute("aria-live",e)),se.textContent="",setTimeout(()=>{se.textContent=o},i)}/**
3384
+ */const le=document.createElement("div");le.style.position="fixed";le.style.clip="rect(0px, 0px, 0px, 0px)";le.setAttribute("aria-live","polite");document.body.appendChild(le);let Tt;function Yu(i,t={}){const e=t.mode||"polite",o=t.timeout===void 0?150:t.timeout;e==="alert"?(le.removeAttribute("aria-live"),le.removeAttribute("role"),Tt=Ht.debounce(Tt,gc,()=>{le.setAttribute("role","alert")})):(Tt&&Tt.cancel(),le.removeAttribute("role"),le.setAttribute("aria-live",e)),le.textContent="",setTimeout(()=>{le.textContent=i},o)}/**
3357
3385
  * @license
3358
3386
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3359
3387
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3360
- */class Ui extends be{constructor(t,e,i,s={}){super(t,e,i,Ot(St({},s),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(i=>{const s=i.target,r=s===this.node;i.type==="attributes"?r&&this.__updateNodeId(s):(r||s.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId)}}/**
3388
+ */class mo extends Me{constructor(t,e,o,s={}){super(t,e,o,At(St({},s),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(o=>{const s=o.target,n=s===this.node;o.type==="attributes"?n&&this.__updateNodeId(s):(n||s.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId)}}/**
3361
3389
  * @license
3362
3390
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3363
3391
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3364
- */class Hd extends Ui{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,s=!!(i&&e&&e.trim()!=="");t&&(t.textContent=s?e:"",t.hidden=!s,s&&Rd(e,{mode:"assertive"})),super.updateDefaultNode(t)}}/**
3392
+ */class ju extends mo{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:o}=this,s=!!(o&&e&&e.trim()!=="");t&&(t.textContent=s?e:"",t.hidden=!s,s&&Yu(e,{mode:"assertive"})),super.updateDefaultNode(t)}}/**
3365
3393
  * @license
3366
3394
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3367
3395
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3368
- */class Bd extends Ui{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3396
+ */class Uu extends mo{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3369
3397
  * @license
3370
3398
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3371
3399
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3372
- */class Vd extends Ui{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3400
+ */class Vu extends mo{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
3373
3401
  * @license
3374
3402
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3375
3403
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3376
- */const Ud=j(o=>class extends He(o){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Vd(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)}});/**
3404
+ */const Wu=$(i=>class extends Qe(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Vu(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)}});/**
3377
3405
  * @license
3378
3406
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3379
3407
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3380
- */const pr=j(o=>class extends o{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}});/**
3408
+ */const Kn=$(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}});/**
3381
3409
  * @license
3382
3410
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3383
3411
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3384
- */const jd=o=>class extends pr(Ud(He(o))){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 $d(this),this._helperController=new Bd(this),this._errorController=new Hd(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:i,node:s}=e.detail;this.__labelChanged(i,s)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:s}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,s)})}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,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.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 i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3412
+ */const qu=i=>class extends Kn(Wu(Qe(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 Hu(this),this._helperController=new Uu(this),this._errorController=new ju(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:o,node:s}=e.detail;this.__labelChanged(o,s)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:s}=e.detail;this.toggleAttribute("has-helper",o),this.__helperChanged(o,s)})}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,o){e?this._fieldAriaController.setHelperId(o.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,o){e?this._fieldAriaController.setLabelId(o.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 o=this._errorNode;this._fieldAriaController.setErrorId(o&&o.id)}else this._fieldAriaController.setErrorId(null)})}};/**
3385
3413
  * @license
3386
3414
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3387
3415
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3388
- */const Yd=j(o=>class extends o{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((i,s)=>{this._delegateAttribute(i,e[s])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,s)=>{this._delegateProperty(i,e[s])})}_delegateAttribute(e,i){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e))}_delegateProperty(e,i){this.stateTarget&&(this.stateTarget[e]=i)}});/**
3416
+ */const Ku=$(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((o,s)=>{this._delegateAttribute(o,e[s])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((o,s)=>{this._delegateProperty(o,e[s])})}_delegateAttribute(e,o){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",o?"true":!1),typeof o=="boolean"?this.stateTarget.toggleAttribute(e,o):o?this.stateTarget.setAttribute(e,o):this.stateTarget.removeAttribute(e))}_delegateProperty(e,o){this.stateTarget&&(this.stateTarget[e]=o)}});/**
3389
3417
  * @license
3390
3418
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3391
3419
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3392
- */const fr=j(o=>class extends Yd(pr(ur(o))){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(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...i){if(!e)return;const s=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=s}_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}});/**
3420
+ */const Gn=$(i=>class extends Ku(Kn(Un(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(o=>this.__isValidConstraint(o))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...o){if(!e)return;const s=this._hasValidConstraints(o),n=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():n&&this._setInvalid(!1),this.__previousHasConstraints=s}_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}});/**
3393
3421
  * @license
3394
3422
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3395
3423
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3396
- */const Wd=o=>class extends Nd(dr(fr(jd(Fd(kt(o)))))){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[`
3424
+ */const Gu=i=>class extends zu(jn(Gn(qu(Lu(Wt(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[`
3397
3425
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3398
3426
  font: inherit;
3399
3427
  color: inherit;
3400
3428
  }
3401
- `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=Le.debounce(this._preventInputDebouncer,bt.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const i=e.clipboardData.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const i=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(i)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(i){console.error(i)}}};/**
3429
+ `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=vt.debounce(this._preventInputDebouncer,Rt.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const o=e.clipboardData.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const o=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(o){console.error(o)}}};/**
3402
3430
  * @license
3403
3431
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3404
3432
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3405
- */class qd extends be{constructor(t,e,i={}){const{uniqueIdPrefix:s}=i;super(t,"input","input",{initializer:(r,n)=>{n.value&&(r.value=n.value),n.type&&r.setAttribute("type",n.type),r.id=this.defaultId,typeof e=="function"&&e(r)},useUniqueId:!0,uniqueIdPrefix:s})}}/**
3433
+ */class Xu extends Me{constructor(t,e,o={}){const{uniqueIdPrefix:s}=o;super(t,"input","input",{initializer:(n,r)=>{r.value&&(n.value=r.value),r.type&&n.setAttribute("type",r.type),n.id=this.defaultId,typeof e=="function"&&e(n)},useUniqueId:!0,uniqueIdPrefix:s})}}/**
3406
3434
  * @license
3407
3435
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3408
3436
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3409
- */class Kd{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
3437
+ */class Ju{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",o=>{this.__initLabel(o.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}/**
3410
3438
  * @license
3411
3439
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3412
3440
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3413
- */const Gd=O`
3441
+ */const Zu=S`
3414
3442
  [part='clear-button'] {
3415
3443
  display: none;
3416
3444
  cursor: default;
@@ -3427,7 +3455,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3427
3455
  * @license
3428
3456
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3429
3457
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3430
- */const Jd=O`
3458
+ */const Qu=S`
3431
3459
  :host {
3432
3460
  display: inline-flex;
3433
3461
  outline: none;
@@ -3465,7 +3493,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3465
3493
  * @license
3466
3494
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3467
3495
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3468
- */const Xd=O`
3496
+ */const ed=S`
3469
3497
  [class$='container'] {
3470
3498
  display: flex;
3471
3499
  flex-direction: column;
@@ -3477,23 +3505,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3477
3505
  * @license
3478
3506
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3479
3507
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3480
- */const Zd=[Jd,Xd,Gd];/**
3508
+ */const td=[Qu,ed,Zu];/**
3481
3509
  * @license
3482
3510
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
3483
3511
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3484
- */const Qd=o=>class extends o{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,i){if(!i||e===void 0)return;const{classList:s}=i;if(this.__initialClasses||(this.__initialClasses=new Set(s)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&s.remove(...n)}const r=typeof e=="string"?e.split(" ").filter(Boolean):[];r.length>0&&s.add(...r),this.__previousClasses=r}};/**
3512
+ */const id=i=>class extends i{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,o){if(!o||e===void 0)return;const{classList:s}=o;if(this.__initialClasses||(this.__initialClasses=new Set(s)),Array.isArray(this.__previousClasses)){const r=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));r.length>0&&s.remove(...r)}const n=typeof e=="string"?e.split(" ").filter(Boolean):[];n.length>0&&s.add(...n),this.__previousClasses=n}};/**
3485
3513
  * @license
3486
3514
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3487
3515
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3488
- */class eu{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
3516
+ */class od{constructor(t){this.host=t,t.addEventListener("opened-changed",()=>{t.opened||this.__setVirtualKeyboardEnabled(!1)}),t.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),t.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(t){this.host.inputElement&&(this.host.inputElement.inputMode=t?"":"none")}}/**
3489
3517
  * @license
3490
3518
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3491
3519
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3492
- */const tu=o=>class extends Qd(He(dr(fr(kt(o))))){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 i=String(e.year).replace(/\d+/u,s=>"0000".substr(s.length)+s);return[e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),s=new Date;let r,n=s.getMonth(),a=s.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?Ye(this.referenceDate):new Date;a=td(l,a,n,r)}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return{day:r,month:n,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},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:Hs},_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&&!Oi()&&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 lr(this._fullscreenMediaQuery,i=>{this._fullscreen=i})),this.addController(new eu(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 i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close()}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",s=>{this.__commitDate(s.detail.date),this._close()}),i.addEventListener("date-selected",s=>{this.__commitDate(s.detail.date)}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),i.addEventListener("focusout",s=>{this._shouldRemoveFocus(s)&&this._setFocused(!1)}),i.addEventListener("focused-date-changed",s=>{this._focusedDate=s.detail.value}),i.addEventListener("click",s=>s.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=Ye(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate($i(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),s=!this._selectedDate||$e(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),i&&s&&r}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:i}=e;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!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,i,s,r,n,a){return!e||i&&(!a||n)||s&&n||!r.parseDate}_formatISO(e){return od(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,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,i){const s=Ye(e);if(e&&!s){this.value=i;return}e?ce(this._selectedDate,s)||(this._selectedDate=s,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,i,s,r,n,a,l,u,c){e&&(e.i18n=i,e.label=s,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u,e.isDateDisabled=c)}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const s=e.focusedDate||i;e.scrollToDate(s),this._ignoreFocusedDateChange=!0,e.focusedDate=s,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=Bs(n)}_getInitialPosition(){const e=Ye(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||$e(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?tr(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this.__commitDate(i):(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,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i)}_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,ce(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return Ye(e)}};/**
3520
+ */const sd=i=>class extends id(Qe(jn(Gn(Wt(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 o=String(e.year).replace(/\d+/u,s=>"0000".substr(s.length)+s);return[e.month+1,e.day,o].join("/")},parseDate(e){const o=e.split("/"),s=new Date;let n,r=s.getMonth(),a=s.getFullYear();if(o.length===3){if(r=parseInt(o[0])-1,n=parseInt(o[1]),a=parseInt(o[2]),o[2].length<3&&a>=0){const l=this.referenceDate?nt(this.referenceDate):new Date;a=Bc(l,a,r,n)}}else o.length===2?(r=parseInt(o[0])-1,n=parseInt(o[1])):o.length===1&&(n=parseInt(o[0]));if(n!==void 0)return{day:n,month:r,year:a}},formatTitle:(e,o)=>`${e} ${o}`})},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:gn},_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&&!Zi()&&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 Yn(this._fullscreenMediaQuery,o=>{this._fullscreen=o})),this.addController(new od(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 o=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(o),this._overlayContent=o,o.addEventListener("close",()=>{this._close()}),o.addEventListener("focus-input",this._focusAndSelect.bind(this)),o.addEventListener("date-tap",s=>{this.__commitDate(s.detail.date),this._close()}),o.addEventListener("date-selected",s=>{this.__commitDate(s.detail.date)}),o.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),o.addEventListener("focusout",s=>{this._shouldRemoveFocus(s)&&this._setFocused(!1)}),o.addEventListener("focused-date-changed",s=>{this._focusedDate=s.detail.value}),o.addEventListener("click",s=>s.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let o=this.i18n.parseDate(e);if(o&&(o=nt(`${o.year}-${o.month+1}-${o.day}`)),o&&!isNaN(o.getTime()))return o}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(so(e))}checkValidity(){const e=this._inputElementValue,o=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),s=!this._selectedDate||Je(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())),o&&s&&n}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:o}=e;return this.opened&&o!==null&&o!==document.body&&!this.contains(o)&&!this._overlayContent.contains(o)?!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,o,s,n,r,a){return!e||o&&(!a||r)||s&&r||!n.parseDate}_formatISO(e){return Yc(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,o){e===void 0||o===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,o){e===void 0||o===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,o){const s=nt(e);if(e&&!s){this.value=o;return}e?be(this._selectedDate,s)||(this._selectedDate=s,o!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,o,s,n,r,a,l,u,d){e&&(e.i18n=o,e.label=s,e.minDate=n,e.maxDate=r,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=u,e.isDateDisabled=d)}__updateOverlayContentTheme(e,o){e&&(o?e.setAttribute("theme",o):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,o){e&&e.toggleAttribute("fullscreen",o)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const o=this._getInitialPosition();e.initialPosition=o;const s=e.focusedDate||o;e.scrollToDate(s),this._ignoreFocusedDateChange=!0,e.focusedDate=s,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 r=this._noInput?e:[n,e];this.__showOthers=yn(r)}_getInitialPosition(){const e=nt(this.initialPosition),o=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||Je(o,this._minDate,this._maxDate,this.isDateDisabled)?o:this._minDate||this._maxDate?Mn(o,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",o=this.__parseDate(e);o?this.__commitDate(o):(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,o){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,o)}_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,be(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return nt(e)}};/**
3493
3521
  * @license
3494
3522
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3495
3523
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3496
- */const iu=O`
3524
+ */const nd=S`
3497
3525
  :host([opened]) {
3498
3526
  pointer-events: auto;
3499
3527
  }
@@ -3510,7 +3538,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3510
3538
  * @license
3511
3539
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3512
3540
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3513
- */U("vaadin-date-picker",[Zd,iu],{moduleId:"vaadin-date-picker-styles"});class ou extends tu(Wd(Ae(Ws(me)))){static get is(){return"vaadin-date-picker"}static get template(){return Ee`
3541
+ */F("vaadin-date-picker",[td,nd],{moduleId:"vaadin-date-picker-styles"});class rd extends sd(Gu(Re(wn(Ae)))){static get is(){return"vaadin-date-picker"}static get template(){return Be`
3514
3542
  <div class="vaadin-date-picker-container">
3515
3543
  <div part="label">
3516
3544
  <slot name="label"></slot>
@@ -3552,7 +3580,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3552
3580
  ></vaadin-date-picker-overlay>
3553
3581
 
3554
3582
  <slot name="tooltip"></slot>
3555
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new qd(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Kd(this.inputElement,this._labelController)),this._tooltipController=new Ks(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(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}le(ou);var mr={exports:{}};(function(o,t){(function(e,i){o.exports=i()})(d.commonjsGlobal,function(){var e=1e3,i=6e4,s=36e5,r="millisecond",n="second",a="minute",l="hour",u="day",c="week",h="month",p="quarter",m="year",_="date",C="Invalid Date",P=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,F=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,z={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(x){var v=["th","st","nd","rd"],f=x%100;return"["+x+(v[(f-20)%10]||v[f]||v[0])+"]"}},V=function(x,v,f){var y=String(x);return!y||y.length>=v?x:""+Array(v+1-y.length).join(f)+x},M={s:V,z:function(x){var v=-x.utcOffset(),f=Math.abs(v),y=Math.floor(f/60),g=f%60;return(v<=0?"+":"-")+V(y,2,"0")+":"+V(g,2,"0")},m:function x(v,f){if(v.date()<f.date())return-x(f,v);var y=12*(f.year()-v.year())+(f.month()-v.month()),g=v.clone().add(y,h),T=f-g<0,A=v.clone().add(y+(T?-1:1),h);return+(-(y+(f-g)/(T?g-A:A-g))||0)},a:function(x){return x<0?Math.ceil(x)||0:Math.floor(x)},p:function(x){return{M:h,y:m,w:c,d:u,D:_,h:l,m:a,s:n,ms:r,Q:p}[x]||String(x||"").toLowerCase().replace(/s$/,"")},u:function(x){return x===void 0}},H="en",W={};W[H]=z;var te="$isDayjsObject",G=function(x){return x instanceof Q||!(!x||!x[te])},re=function x(v,f,y){var g;if(!v)return H;if(typeof v=="string"){var T=v.toLowerCase();W[T]&&(g=T),f&&(W[T]=f,g=T);var A=v.split("-");if(!g&&A.length>1)return x(A[0])}else{var N=v.name;W[N]=v,g=N}return!y&&g&&(H=g),g||!y&&H},R=function(x,v){if(G(x))return x.clone();var f=typeof v=="object"?v:{};return f.date=x,f.args=arguments,new Q(f)},D=M;D.l=re,D.i=G,D.w=function(x,v){return R(x,{locale:v.$L,utc:v.$u,x:v.$x,$offset:v.$offset})};var Q=function(){function x(f){this.$L=re(f.locale,null,!0),this.parse(f),this.$x=this.$x||f.x||{},this[te]=!0}var v=x.prototype;return v.parse=function(f){this.$d=function(y){var g=y.date,T=y.utc;if(g===null)return new Date(NaN);if(D.u(g))return new Date;if(g instanceof Date)return new Date(g);if(typeof g=="string"&&!/Z$/i.test(g)){var A=g.match(P);if(A){var N=A[2]-1||0,S=(A[7]||"0").substring(0,3);return T?new Date(Date.UTC(A[1],N,A[3]||1,A[4]||0,A[5]||0,A[6]||0,S)):new Date(A[1],N,A[3]||1,A[4]||0,A[5]||0,A[6]||0,S)}}return new Date(g)}(f),this.init()},v.init=function(){var f=this.$d;this.$y=f.getFullYear(),this.$M=f.getMonth(),this.$D=f.getDate(),this.$W=f.getDay(),this.$H=f.getHours(),this.$m=f.getMinutes(),this.$s=f.getSeconds(),this.$ms=f.getMilliseconds()},v.$utils=function(){return D},v.isValid=function(){return this.$d.toString()!==C},v.isSame=function(f,y){var g=R(f);return this.startOf(y)<=g&&g<=this.endOf(y)},v.isAfter=function(f,y){return R(f)<this.startOf(y)},v.isBefore=function(f,y){return this.endOf(y)<R(f)},v.$g=function(f,y,g){return D.u(f)?this[y]:this.set(g,f)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(f,y){var g=this,T=!!D.u(y)||y,A=D.p(f),N=function(ie,K){var ne=D.w(g.$u?Date.UTC(g.$y,K,ie):new Date(g.$y,K,ie),g);return T?ne:ne.endOf(u)},S=function(ie,K){return D.w(g.toDate()[ie].apply(g.toDate("s"),(T?[0,0,0,0]:[23,59,59,999]).slice(K)),g)},L=this.$W,E=this.$M,$=this.$D,w="set"+(this.$u?"UTC":"");switch(A){case m:return T?N(1,0):N(31,11);case h:return T?N(1,E):N(0,E+1);case c:var k=this.$locale().weekStart||0,B=(L<k?L+7:L)-k;return N(T?$-B:$+(6-B),E);case u:case _:return S(w+"Hours",0);case l:return S(w+"Minutes",1);case a:return S(w+"Seconds",2);case n:return S(w+"Milliseconds",3);default:return this.clone()}},v.endOf=function(f){return this.startOf(f,!1)},v.$set=function(f,y){var g,T=D.p(f),A="set"+(this.$u?"UTC":""),N=(g={},g[u]=A+"Date",g[_]=A+"Date",g[h]=A+"Month",g[m]=A+"FullYear",g[l]=A+"Hours",g[a]=A+"Minutes",g[n]=A+"Seconds",g[r]=A+"Milliseconds",g)[T],S=T===u?this.$D+(y-this.$W):y;if(T===h||T===m){var L=this.clone().set(_,1);L.$d[N](S),L.init(),this.$d=L.set(_,Math.min(this.$D,L.daysInMonth())).$d}else N&&this.$d[N](S);return this.init(),this},v.set=function(f,y){return this.clone().$set(f,y)},v.get=function(f){return this[D.p(f)]()},v.add=function(f,y){var g,T=this;f=Number(f);var A=D.p(y),N=function(E){var $=R(T);return D.w($.date($.date()+Math.round(E*f)),T)};if(A===h)return this.set(h,this.$M+f);if(A===m)return this.set(m,this.$y+f);if(A===u)return N(1);if(A===c)return N(7);var S=(g={},g[a]=i,g[l]=s,g[n]=e,g)[A]||1,L=this.$d.getTime()+f*S;return D.w(L,this)},v.subtract=function(f,y){return this.add(-1*f,y)},v.format=function(f){var y=this,g=this.$locale();if(!this.isValid())return g.invalidDate||C;var T=f||"YYYY-MM-DDTHH:mm:ssZ",A=D.z(this),N=this.$H,S=this.$m,L=this.$M,E=g.weekdays,$=g.months,w=g.meridiem,k=function(K,ne,ge,ke){return K&&(K[ne]||K(y,T))||ge[ne].slice(0,ke)},B=function(K){return D.s(N%12||12,K,"0")},ie=w||function(K,ne,ge){var ke=K<12?"AM":"PM";return ge?ke.toLowerCase():ke};return T.replace(F,function(K,ne){return ne||function(ge){switch(ge){case"YY":return String(y.$y).slice(-2);case"YYYY":return D.s(y.$y,4,"0");case"M":return L+1;case"MM":return D.s(L+1,2,"0");case"MMM":return k(g.monthsShort,L,$,3);case"MMMM":return k($,L);case"D":return y.$D;case"DD":return D.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return k(g.weekdaysMin,y.$W,E,2);case"ddd":return k(g.weekdaysShort,y.$W,E,3);case"dddd":return E[y.$W];case"H":return String(N);case"HH":return D.s(N,2,"0");case"h":return B(1);case"hh":return B(2);case"a":return ie(N,S,!0);case"A":return ie(N,S,!1);case"m":return String(S);case"mm":return D.s(S,2,"0");case"s":return String(y.$s);case"ss":return D.s(y.$s,2,"0");case"SSS":return D.s(y.$ms,3,"0");case"Z":return A}return null}(K)||A.replace(":","")})},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(f,y,g){var T,A=this,N=D.p(y),S=R(f),L=(S.utcOffset()-this.utcOffset())*i,E=this-S,$=function(){return D.m(A,S)};switch(N){case m:T=$()/12;break;case h:T=$();break;case p:T=$()/3;break;case c:T=(E-L)/6048e5;break;case u:T=(E-L)/864e5;break;case l:T=E/s;break;case a:T=E/i;break;case n:T=E/e;break;default:T=E}return g?T:D.a(T)},v.daysInMonth=function(){return this.endOf(h).$D},v.$locale=function(){return W[this.$L]},v.locale=function(f,y){if(!f)return this.$L;var g=this.clone(),T=re(f,y,!0);return T&&(g.$L=T),g},v.clone=function(){return D.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},x}(),J=Q.prototype;return R.prototype=J,[["$ms",r],["$s",n],["$m",a],["$H",l],["$W",u],["$M",h],["$y",m],["$D",_]].forEach(function(x){J[x[1]]=function(v){return this.$g(v,x[0],x[1])}}),R.extend=function(x,v){return x.$i||(x(v,Q,R),x.$i=!0),R},R.locale=re,R.isDayjs=G,R.unix=function(x){return R(1e3*x)},R.en=W[H],R.Ls=W,R.p={},R})})(mr);var su=mr.exports;const vi=d.getDefaultExportFromCjs(su);function ru({withLocale:o,translations:t}){d.$locale.subscribe(e=>{e==null&&(d.$dictionary.set(t),d.$locale.set(o))})}function Fo(o,t){d.addMessages(o,t)}function nu(o){d.$locale.set(o)}const zo={en:{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",CoolOffFor24Hours:"24 hours",CoolOffFor72Hours:"72 hours",CoolOffFor7Days:"7 days",CoolOffFor30Days:"30 days",CoolOffFor6Weeks:"6 weeks",CoolOffFor2Months:"2 months",CoolOffFor3Months:"3 months",CoolOffUntilSelectedDate:"Until",dateInstructions:"In order to manually input date use the following format:",duration:"Duration:",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Are you sure you want to cool-off for {period}?",confirmationModalTextUntilTimeout:"Are you sure you want to cool-off until {date}?"},"en-us":{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",CoolOffFor24Hours:"24 hours",CoolOffFor72Hours:"72 hours",CoolOffFor7Days:"7 days",CoolOffFor30Days:"30 days",CoolOffFor6Weeks:"6 weeks",CoolOffFor2Months:"2 months",CoolOffFor3Months:"3 months",CoolOffUntilSelectedDate:"Until",dateInstructions:"In order to manually input date use the following format:",duration:"Duration:",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Are you sure you want to cool-off for {period}?",confirmationModalTextUntilTimeout:"Are you sure you want to cool-off until {date}?"},"zh-hk":{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} 為您提供一種從遊戲中休息的簡單方法。 您可以請求自動封鎖您的帳戶 24 小時。 在臨時限制期間,您將無法訪問您的帳戶。",timeoutTextSecondary:"請注意,“超時設施”在任何情況下都不能取代“自我排除”。 如果您認為自己有賭博成癮問題,請進入“負責任博彩”下的鏈接並使用“自我排除服務”或盡快與我們聯繫。",save:"節省",CoolOffFor24Hours:"24小時",CoolOffFor72Hours:"72小時",CoolOffFor7Days:"7天",CoolOffFor30Days:"30天",CoolOffFor6Weeks:"6週",CoolOffFor2Months:"2個月",CoolOffFor3Months:"3個月",CoolOffUntilSelectedDate:"直到",dateInstructions:"如需手動輸入日期,請使用以下格式:",duration:"持續時間:",confirmationModalTitle:"確認",confirmationModalTextPeriodTimeout:"您確定要冷靜 {period} 嗎?",confirmationModalTextUntilTimeout:"您確定要冷靜直到 {date} 嗎?"},fr:{titleTimeout:"Délai d'attente",timeoutTextFirst:"{operatorname} vous offre un moyen facile de faire une pause dans les jeux.vous pouvez demander le blocage automatique de votre compte pendant 24 heures . Pendant le blocage temporaire ,vous ne pourrez pas accéder à votre compte.",timeoutTextSecondary:`Veuillez noter que l'"installation du temps mort" ne remplace en aucun cas "l'auto exclusion". Si vous pensez avoir un problème de dépendance au jeu,veuillez cliquer sur le lien "jeux responsable" et utiliser le "service d'auto exclusion" ou nous contacter dès que possible.`,save:"Savez",CoolOffFor24Hours:"24 heures",CoolOffFor72Hours:"72 heures",CoolOffFor7Days:"7 jours",CoolOffFor30Days:"30 jours",CoolOffFor6Weeks:"6 semaines",CoolOffFor2Months:"2 mois",CoolOffFor3Months:"3 mois",CoolOffUntilSelectedDate:"Jusqu'à",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",duration:"Durée :",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Êtes-vous sûr de vouloir vous refroidir pendant {period} ?",confirmationModalTextUntilTimeout:"Êtes-vous sûr de vouloir vous refroidir jusqu'au {date} ?"},ro:{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} îți asigură o cale ușoară de a lua o pauză de la jocuri. Poți solicita o blocare automată a contului tău pentru 24 de ore. În timpul restricției temporare, nu vei putea accesa contul.",timeoutTextSecondary:"Te rugăm să reții că „Facilitatea de time-out” nu înlocuiește în niciun caz „Auto-excluderea”. Dacă crezi că te confrunți cu o problemă de dependență de jocuri de noroc, te rugăm să accesezi secțiunea de „Joc responsabil” și să utilizezi „Serviciul de auto-excludere” sau să ne contactezi cât mai curând posibil.",save:"Salvează",CoolOffFor24Hours:"24 ore",CoolOffFor72Hours:"72 ore",CoolOffFor7Days:"7 zile",CoolOffFor30Days:"30 zile",CoolOffFor6Weeks:"6 săptămâni",CoolOffFor2Months:"2 luni",CoolOffFor3Months:"3 luni",CoolOffUntilSelectedDate:"Până la",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",duration:"Durată:",confirmationModalTitle:"Confirmare",confirmationModalTextPeriodTimeout:"Ești sigur că vrei să te răcorești pentru {period}?",confirmationModalTextUntilTimeout:"Ești sigur că vrei să te răcorești până la {date}?"},es:{titleTimeout:"Descanso",timeoutTextFirst:"{operatorname} le brinda una manera fácil de tomarse un descanso de los juegos. Puedes solicitar un bloqueo automático de tu cuenta durante 24 horas. Durante la contención temporal, no será posible ingresar a su cuenta.",timeoutTextSecondary:'Tenga en cuenta que la función de tiempo de espera no sustituye en ningún caso la autoexclusión. Si cree que tiene un problema de adicción al juego, por favor ingrese al enlace de "Juego Responsable" y use el "Servicio de autoexclusión" o ponte en contacto con nosotros a la brevedad posible.',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 días",CoolOffFor30Days:"30 días",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Hasta",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",duration:"Duración:",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodTimeout:"¿Estás seguro de que quieres enfriarte por {period}?",confirmationModalTextUntilTimeout:"¿Estás seguro de que quieres enfriarte hasta {date}?"},pt:{titleTimeout:"Tempo esgotado",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de fazer uma pausa nos jogos. Você pode solicitar o bloqueio automático de sua conta por 24 horas. Durante a restrição temporária, você não poderá acessar sua conta.",timeoutTextSecondary:'Observe que a “Facilidade de tempo limite” não substitui em nenhum caso a “Autoexclusão”. Se você acha que está enfrentando um problema de vício em jogos de azar, entre no link em "Jogo Responsável" e use o "Serviço de autoexclusão" ou entre em contato conosco o mais rápido possível.',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 dias",CoolOffFor30Days:"30 dias",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Até",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",duration:"Duração:",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodTimeout:"Tem a certeza de que deseja se refrescar por {period}?",confirmationModalTextUntilTimeout:"Tem a certeza de que deseja se refrescar até {date}?"},hr:{titleTimeout:"Samoisključenje",timeoutTextFirst:'Svjesni smo da kockanje može dovesti do ovisnosti i u našem nastojanju da spriječimo te probleme Samoisključenje stupa na snagu od trenutka kada je postavljeno za razdoblje koje odaberete. Odaberite vremenski okvir ispod, a zatim kliknite "Potvrdi".',timeoutTextSecondary:"Tijekom samoisključivanja nećete moći pristupiti svom računu. U slučaju trajnog samoisključenja E-mail: {supportemail}",save:"Spremi",CoolOffFor24Hours:"24 sata",CoolOffFor72Hours:"72 sata",CoolOffFor7Days:"7 dana",CoolOffFor30Days:"30 dana",CoolOffFor6Weeks:"6 tjedana",CoolOffFor2Months:"2 mjeseca",CoolOffFor3Months:"3 mjeseca",CoolOffUntilSelectedDate:"Do",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",duration:"Trajanje:",confirmationModalTitle:"Potvrda",confirmationModalTextPeriodTimeout:"Jeste li sigurni da se želite rashladiti na {period}?",confirmationModalTextUntilTimeout:"Jeste li sigurni da se želite rashladiti do {date}?"},"pt-br":{titleTimeout:"Tempo fora",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de pausar o jogo. Você pode solicitar o bloqueio automático da conta por 24 horas. Durante a restrição temporária,no tendrá acceso a su cuenta",timeoutTextSecondary:"Observe que o tempo limite não substitui a autoexclusão. Se você acha que tem um problema de dependência de jogo, por favor acesse o link em “Jogo Responsável” e utilize o “Serviço de Autoexclusão” ou entre em contate-nos inmediatamente",save:"Manter",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 dias",CoolOffFor30Days:"30 dias",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Até",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",duration:"Duração:",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodTimeout:"Tem certeza de que deseja se refrescar por {period}?",confirmationModalTextUntilTimeout:"Tem certeza de que deseja se refrescar até {date}?"},"es-mx":{titleTimeout:"Tiempo Fuera",timeoutTextFirst:"{operatorname} le ofrece una forma fácil de tomar pausa del juego. Puede solicitar bloqueo automático de la cuenta por 24 hrs. Durante la restriccion temporal,no tendrá acceso a su cuenta",timeoutTextSecondary:'Por favor tenga en cuenta que el tiemo-fuera no reemplaza la auto-exclusión. Si usted cree que tiene un problema de adicción al juego," por favor acceda a la liga bajo ""Juego Responsable"" y utilice el ""servicio de Auto-exclusión"" o contáctenos en cuanto antes. "',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 días",CoolOffFor30Days:"30 días",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Hasta",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",duration:"Duración:",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodTimeout:"¿Está seguro de que desea refrescarse por {period}?",confirmationModalTextUntilTimeout:"¿Está seguro de que desea refrescarse hasta {date}?"},tr:{titleTimeout:"Zaman aşımı",timeoutTextFirst:"{operatorname} size oyunlara ara vermeniz için kolay bir yol sağlar. Hesabınızın 24 saat süreyle otomatik olarak engellenmesini talep edebilirsiniz. Geçici kısıtlama sırasında Hesabınıza erişemeyeceksiniz.",timeoutTextSecondary:"Lütfen 'Mola olanağının' hiçbir durumda 'Kendini ihraç etmenin' yerine geçmediğini unutmayın. Kumar bağımlılığı sorunu yaşadığınızı düşünüyorsanız lütfen Sorumlu Oyun altındaki bağlantıya girin ve 'Kendini men etme hizmetini' kullanın veya en kısa sürede bizimle iletişime geçin.",save:"Kaydetmek",CoolOffFor24Hours:"24 saat",CoolOffFor72Hours:"72 saat",CoolOffFor7Days:"7 gün",CoolOffFor30Days:"30 gün",CoolOffFor6Weeks:"6 hafta",CoolOffFor2Months:"2 ay",CoolOffFor3Months:"3 ay",CoolOffUntilSelectedDate:"Kadar",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",duration:"Süre:",confirmationModalTitle:"Onay",confirmationModalTextPeriodTimeout:"{period} için kendinizi soğutmak istediğinizden emin misiniz?",confirmationModalTextUntilTimeout:"{date} tarihine kadar kendinizi soğutmak istediğinizden emin misiniz?"}};function au(o){d.append_styles(o,"svelte-1dxh4dh",".TimeoutWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072a));padding:50px;max-width:760px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.TimeoutWrapper.TimeoutWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.TimeoutTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));font-weight:400}.TimeoutTitleMobile{font-size:16px}.TimeoutTitleNone{display:none}.TimeoutDescription{color:var(--emw--color-gray-300, #58586b);line-height:24px}.TimeoutDescription.TimeoutDescriptionMobile{font-size:12px;line-height:18px}.TimeoutConfigWrapper{width:50%;height:100%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.TimeoutConfigWrapper .TimeoutConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.TimeoutConfigWrapper .TimeoutConfigLabel .TimeoutConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.TimeoutConfigWrapper .TimeoutConfigLabel p{margin:0;font-family:inherit}.TimeoutConfigWrapper .TimeoutConfigLabel .TimeoutConfigIcon.active{transform:rotateZ(0deg)}.TimeoutConfigWrapper .TimeoutDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586b);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #f1f1f1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.TimeoutConfigWrapper .TimeoutDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));transition:all 0.5s ease-in-out;font-family:inherit}.TimeoutConfigWrapper .TimeoutDropDown div:hover{color:var(--emw--color-white, #ffffff);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e))}.TimeoutConfigWrapper .TimeoutDropDown.active{max-height:600px;opacity:1}.TimeoutConfigWrapper.TimeoutConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.TimeoutConfigWrapper.TimeoutConfigWrapperMobile .TimeoutConfigLabel .TimeoutConfigIcon{width:10px;height:10px}.TimeoutDateWrapper{color:var(--emw--color-gray-300, #58586b);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.TimeoutDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.TimeoutDateWrapper .TimeoutDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.TimeoutActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.TimeoutActionButtons .TimeoutSave{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));color:var(--emw--button-typography, var(--emw--color-white, #ffffff));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.TimeoutActionButtons.TimeoutActionButtonsMobile{width:100%;grid-template-columns:1fr}.TimeoutActionButtons.TimeoutActionButtonsMobile .TimeoutSave{height:40px;font-size:12px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}")}function Lo(o,t,e){const i=o.slice();return i[49]=t[e],i}function lu(o){let t,e,i,s=o[19]("titleTimeout")+"",r,n,a,l,u=o[19]("timeoutTextFirst",{values:{operatorname:o[0],baseurl:o[6],lang:o[1]}})+"",c,h,p=o[19]("timeoutTextSecondary",{values:{supportemail:o[5],baseurl:o[6],lang:o[1]}})+"",m,_,C,P,F=o[19](o[11])+"",z,V,M,H,W,te,G,re,R,D,Q,J=o[19]("save")+"",x,v,f,y,g,T,A,N,S=o[20]&&uu(o),L=d.ensure_array_like(o[10]),E=[];for(let w=0;w<L.length;w+=1)E[w]=$o(Lo(o,L,w));let $=o[12]&&Ro(o);return{c(){t=d.element("form"),S&&S.c(),e=d.space(),i=d.element("h2"),r=d.text(s),n=d.space(),a=d.element("div"),l=d.element("p"),c=d.space(),h=d.element("p"),m=d.space(),_=d.element("div"),C=d.element("div"),P=d.element("p"),z=d.text(F),V=d.space(),M=d.svg_element("svg"),H=d.svg_element("g"),W=d.svg_element("path"),te=d.space(),G=d.element("div");for(let w=0;w<E.length;w+=1)E[w].c();re=d.space(),$&&$.c(),R=d.space(),D=d.element("div"),Q=d.element("button"),x=d.text(J),v=d.space(),f=d.element("player-account-modal"),y=d.element("player-account-general-confirmation-modal"),d.attr(i,"class","TimeoutTitle "+(o[20]?"TimeoutTitleNone":"")),d.attr(a,"class","TimeoutDescription "+(o[20]?"TimeoutDescriptionMobile":"")),d.attr(W,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),d.attr(W,"stroke-linecap","round"),d.attr(M,"xmlns","http://www.w3.org/2000/svg"),d.attr(M,"xmlns:xlink","http://www.w3.org/1999/xlink"),d.attr(M,"version","1.1"),d.attr(M,"viewBox","0 0 100 100"),d.attr(M,"xml:space","preserve"),d.attr(M,"class","TimeoutConfigIcon"),d.toggle_class(M,"active",o[13]),d.attr(C,"class","TimeoutConfigLabel"),d.attr(C,"role","button"),d.attr(C,"tabindex","0"),d.attr(G,"class","TimeoutDropDown"),d.toggle_class(G,"active",o[13]),d.attr(_,"class","TimeoutConfigWrapper "+(o[20]?"TimeoutConfigWrapperMobile":"")),d.toggle_class(_,"active",o[13]),d.attr(Q,"class","TimeoutSave"),d.attr(D,"class","TimeoutActionButtons "+(o[20]?"TimeoutActionButtonsMobile":"")),d.attr(t,"class","TimeoutWrapper "+(o[20]?"TimeoutWrapperMobile":"")),d.set_custom_element_data(y,"modalTitle",g=o[19]("confirmationModalTitle")),d.set_custom_element_data(y,"modalText",o[17]),d.set_custom_element_data(y,"hascancelbutton",!1),d.set_custom_element_data(y,"modalconfirmevent","SetPlayerAccountTimeout"),d.set_custom_element_data(y,"modalconfirmdata",T={timeoutSelected:o[11],timeoutExpiryDate:o[14]}),d.set_custom_element_data(y,"mbsource",o[4]),d.set_custom_element_data(y,"lang",o[1]),d.set_custom_element_data(f,"clientstyling",o[2]),d.set_custom_element_data(f,"clientstylingurl",o[3]),d.set_custom_element_data(f,"mbsource",o[4]),d.set_custom_element_data(f,"showmodaleventname","ShowTimeoutConfirmationModal")},m(w,k){d.insert(w,t,k),S&&S.m(t,null),d.append(t,e),d.append(t,i),d.append(i,r),d.append(t,n),d.append(t,a),d.append(a,l),l.innerHTML=u,d.append(a,c),d.append(a,h),h.innerHTML=p,d.append(t,m),d.append(t,_),d.append(_,C),d.append(C,P),d.append(P,z),d.append(C,V),d.append(C,M),d.append(M,H),d.append(H,W),d.append(_,te),d.append(_,G);for(let B=0;B<E.length;B+=1)E[B]&&E[B].m(G,null);d.append(t,re),$&&$.m(t,null),d.append(t,R),d.append(t,D),d.append(D,Q),d.append(Q,x),d.insert(w,v,k),d.insert(w,f,k),d.append(f,y),o[36](y),A||(N=[d.listen(C,"click",o[30]),d.listen(C,"keydown",o[31]),d.listen(Q,"click",o[35])],A=!0)},p(w,k){if(w[20]&&S.p(w,k),k[0]&524288&&s!==(s=w[19]("titleTimeout")+"")&&d.set_data(r,s),k[0]&524355&&u!==(u=w[19]("timeoutTextFirst",{values:{operatorname:w[0],baseurl:w[6],lang:w[1]}})+"")&&(l.innerHTML=u),k[0]&524386&&p!==(p=w[19]("timeoutTextSecondary",{values:{supportemail:w[5],baseurl:w[6],lang:w[1]}})+"")&&(h.innerHTML=p),k[0]&526336&&F!==(F=w[19](w[11])+"")&&d.set_data(z,F),k[0]&8192&&d.toggle_class(M,"active",w[13]),k[0]&17304576){L=d.ensure_array_like(w[10]);let B;for(B=0;B<L.length;B+=1){const ie=Lo(w,L,B);E[B]?E[B].p(ie,k):(E[B]=$o(ie),E[B].c(),E[B].m(G,null))}for(;B<E.length;B+=1)E[B].d(1);E.length=L.length}k[0]&8192&&d.toggle_class(G,"active",w[13]),k[0]&8192&&d.toggle_class(_,"active",w[13]),w[12]?$?$.p(w,k):($=Ro(w),$.c(),$.m(t,R)):$&&($.d(1),$=null),k[0]&524288&&J!==(J=w[19]("save")+"")&&d.set_data(x,J),k[0]&524288&&g!==(g=w[19]("confirmationModalTitle"))&&d.set_custom_element_data(y,"modalTitle",g),k[0]&131072&&d.set_custom_element_data(y,"modalText",w[17]),k[0]&18432&&T!==(T={timeoutSelected:w[11],timeoutExpiryDate:w[14]})&&d.set_custom_element_data(y,"modalconfirmdata",T),k[0]&16&&d.set_custom_element_data(y,"mbsource",w[4]),k[0]&2&&d.set_custom_element_data(y,"lang",w[1]),k[0]&4&&d.set_custom_element_data(f,"clientstyling",w[2]),k[0]&8&&d.set_custom_element_data(f,"clientstylingurl",w[3]),k[0]&16&&d.set_custom_element_data(f,"mbsource",w[4])},d(w){w&&(d.detach(t),d.detach(v),d.detach(f)),S&&S.d(),d.destroy_each(E,w),$&&$.d(),o[36](null),A=!1,d.run_all(N)}}}function du(o){let t,e,i,s,r,n,a,l,u,c,h,p,m,_,C,P;function F(M,H){return M[20]?hu:cu}let V=F(o)(o);return{c(){t=d.element("div"),V.c(),e=d.space(),i=d.element("div"),s=d.element("ui-skeleton"),r=d.space(),n=d.element("div"),a=d.space(),l=d.element("ui-skeleton"),u=d.space(),c=d.element("div"),h=d.space(),p=d.element("div"),m=d.element("ui-skeleton"),_=d.space(),C=d.element("div"),P=d.element("ui-skeleton"),d.set_custom_element_data(s,"structure","text"),d.set_custom_element_data(s,"height",o[20]?"15px":"20px"),d.set_custom_element_data(s,"rows","3"),d.set_custom_element_data(s,"width","100%"),d.set_style(n,"height",o[20]?"10px":"30px"),d.set_custom_element_data(l,"structure","text"),d.set_custom_element_data(l,"height",o[20]?"15px":"20px"),d.set_custom_element_data(l,"rows","3"),d.set_custom_element_data(l,"width","100%"),d.set_style(c,"height",o[20]?"10px":"30px"),d.attr(i,"class","TimeoutDescription"),d.set_custom_element_data(m,"structure","rectangle"),d.set_custom_element_data(m,"width",o[20]?"100%":"50%"),d.set_custom_element_data(m,"height",o[20]?"30px":"44px"),d.set_custom_element_data(m,"margin-bottom","16px"),d.attr(p,"class","TimeoutConfigWrapper "+(o[20]?"TimeoutConfigWrapperMobile":"")),d.set_custom_element_data(P,"structure","rectangle"),d.set_custom_element_data(P,"width","100%"),d.set_custom_element_data(P,"height",o[20]?"35px":"50px"),d.attr(C,"class","TimeoutActionButtons "+(o[20]?"TimeoutActionButtonsMobile":"")),d.attr(t,"class","TimeoutWrapper "+(o[20]?"TimeoutWrapperMobile":""))},m(M,H){d.insert(M,t,H),V.m(t,null),d.append(t,e),d.append(t,i),d.append(i,s),d.append(i,r),d.append(i,n),d.append(i,a),d.append(i,l),d.append(i,u),d.append(i,c),d.append(t,h),d.append(t,p),d.append(p,m),d.append(t,_),d.append(t,C),d.append(C,P)},p:d.noop,d(M){M&&d.detach(t),V.d()}}}function uu(o){let t,e,i,s,r,n,a,l,u,c,h=o[19]("titleTimeout")+"",p,m,_;return{c(){t=d.element("div"),e=d.svg_element("svg"),i=d.svg_element("defs"),s=d.svg_element("style"),r=d.text(`.aaa {
3556
- fill: var(--emw--pam-color-primary, var(--emw--color-primary, #22b04e));
3557
- }
3558
- `),n=d.svg_element("g"),a=d.svg_element("g"),l=d.svg_element("path"),u=d.space(),c=d.element("h2"),p=d.text(h),d.attr(l,"class","aaa"),d.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),d.attr(l,"transform","translate(15 15) rotate(180)"),d.attr(a,"transform","translate(20 158)"),d.attr(n,"transform","translate(-20 -158)"),d.attr(e,"xmlns","http://www.w3.org/2000/svg"),d.attr(e,"width","15"),d.attr(e,"height","15"),d.attr(e,"viewBox","0 0 15 15"),d.attr(c,"class","TimeoutTitleMobile"),d.attr(c,"part","TimeoutTitleMobile"),d.attr(t,"class","MenuReturnButton"),d.attr(t,"part","MenuReturnButton"),d.attr(t,"role","button"),d.attr(t,"tabindex","0")},m(C,P){d.insert(C,t,P),d.append(t,e),d.append(e,i),d.append(i,s),d.append(s,r),d.append(e,n),d.append(n,a),d.append(a,l),d.append(t,u),d.append(t,c),d.append(c,p),m||(_=[d.listen(t,"click",o[28]),d.listen(t,"keydown",o[29])],m=!0)},p(C,P){P[0]&524288&&h!==(h=C[19]("titleTimeout")+"")&&d.set_data(p,h)},d(C){C&&d.detach(t),m=!1,d.run_all(_)}}}function $o(o){let t,e=o[19](o[49].value)+"",i,s,r,n,a;function l(){return o[32](o[49])}function u(...c){return o[33](o[49],...c)}return{c(){t=d.element("div"),i=d.text(e),s=d.space(),d.attr(t,"role","option"),d.attr(t,"tabindex","0"),d.attr(t,"aria-selected",r=o[11]===o[49].value)},m(c,h){d.insert(c,t,h),d.append(t,i),d.append(t,s),n||(a=[d.listen(t,"click",l),d.listen(t,"keydown",u)],n=!0)},p(c,h){o=c,h[0]&525312&&e!==(e=o[19](o[49].value)+"")&&d.set_data(i,e),h[0]&3072&&r!==(r=o[11]===o[49].value)&&d.attr(t,"aria-selected",r)},d(c){c&&d.detach(t),n=!1,d.run_all(a)}}}function Ro(o){let t,e,i=o[19]("duration")+"",s,r,n,a=o[19]("dateInstructions")+"",l,u,c,h,p;return{c(){t=d.element("div"),e=d.element("label"),s=d.text(i),r=d.space(),n=d.element("span"),l=d.text(a),u=d.space(),c=d.element("strong"),c.innerHTML="MM/DD/YYYY<strong></strong>",h=d.space(),p=d.element("vaadin-date-picker"),d.attr(e,"for","TimeoutDate"),d.attr(n,"class","TimeoutDateInstructions"),d.set_custom_element_data(p,"min",o[15]),d.set_custom_element_data(p,"max",o[16]),d.set_custom_element_data(p,"value",o[15]),d.attr(t,"class","TimeoutDateWrapper "+(o[20]?"TimeoutDateWrapperMobile":""))},m(m,_){d.insert(m,t,_),d.append(t,e),d.append(e,s),d.append(t,r),d.append(t,n),d.append(n,l),d.append(n,u),d.append(n,c),d.append(t,h),d.append(t,p),o[34](p)},p(m,_){_[0]&524288&&i!==(i=m[19]("duration")+"")&&d.set_data(s,i),_[0]&524288&&a!==(a=m[19]("dateInstructions")+"")&&d.set_data(l,a),_[0]&32768&&d.set_custom_element_data(p,"min",m[15]),_[0]&65536&&d.set_custom_element_data(p,"max",m[16]),_[0]&32768&&d.set_custom_element_data(p,"value",m[15])},d(m){m&&d.detach(t),o[34](null)}}}function cu(o){let t;return{c(){t=d.element("ui-skeleton"),d.set_custom_element_data(t,"structure","title"),d.set_custom_element_data(t,"width","100px"),d.set_custom_element_data(t,"margin-top","20px"),d.set_custom_element_data(t,"margin-bottom","20px")},m(e,i){d.insert(e,t,i)},d(e){e&&d.detach(t)}}}function hu(o){let t;return{c(){t=d.element("div"),t.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',d.attr(t,"class","MenuReturnButton")},m(e,i){d.insert(e,t,i)},d(e){e&&d.detach(t)}}}function pu(o){let t;function e(r,n){return r[18]?du:lu}let i=e(o),s=i(o);return{c(){t=d.element("div"),s.c()},m(r,n){d.insert(r,t,n),s.m(t,null),o[37](t)},p(r,n){i===(i=e(r))&&s?s.p(r,n):(s.d(1),s=i(r),s&&(s.c(),s.m(t,null)))},i:d.noop,o:d.noop,d(r){r&&d.detach(t),s.d(),o[37](null)}}}function fu(o,t,e){let i;d.component_subscribe(o,d.$format,b=>e(19,i=b));let{operator:s="Everymatrix"}=t,{lang:r="en"}=t,{clientstyling:n=""}=t,{clientstylingurl:a=""}=t,{mbsource:l}=t,{translationurl:u=""}=t,{supportemail:c=""}=t,{endpoint:h=""}=t,{baseurl:p=""}=t,{hasconfirmationmodal:m="false"}=t;ru({withLocale:"en",translations:{}});let _,C,P,F=window.navigator.userAgent,z=d.getDevice(F)!=="PC",V=[{value:"CoolOffFor24Hours",dateSelector:!1},{value:"CoolOffFor7Days",dateSelector:!1},{value:"CoolOffFor30Days",dateSelector:!1},{value:"CoolOffFor3Months",dateSelector:!1}],M=V[0].value,H=!1,W=!1,te="",G,re,R="",D=m==="true",Q=!0,J;const x=()=>{fetch(u).then(b=>b.json()).then(b=>{Object.keys(b).forEach(X=>{Fo(X,b[X])})}).catch(b=>{console.log(b)})};Object.keys(zo).forEach(b=>{Fo(b,zo[b])});const v=()=>{const b=new URL("/v1/player/coolOffSettings",h),X={method:"GET"};fetch(b.href,X).then(oe=>{if(!oe.ok)throw new Error("There was an error while fetching the configuration");return oe.json()}).then(oe=>{const{periods:ji}=oe;ji&&e(10,V=ji.map(Pt=>({value:Pt.key,text:Pt.text,dateSelector:Pt.dateSelector})))}).catch(oe=>{console.log(oe)}).finally(()=>{e(18,Q=!1),e(11,M=V[0].value)})},f=()=>{if(!D){e(17,R="");return}e(17,R=H?i("confirmationModalTextUntilTimeout",{values:{date:te}}):i("confirmationModalTextPeriodTimeout",{values:{period:i(M)}}))},y=b=>{b.preventDefault(),D?(f(),window.postMessage({type:"ShowTimeoutConfirmationModal"},window.location.href)):T()},g=b=>{const{timeoutSelected:X,timeoutExpiryDate:oe}=b.detail;e(11,M=X),e(14,te=oe),T()},T=()=>{window.postMessage({type:"SetPlayerAccountTimeout",timeoutSelected:M,timeoutExpiryDate:te},window.location.href)},A=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:z},window.location.href)},N=()=>{nu(r),v()},S=()=>{e(13,W=!W)},L=b=>{e(11,M=b.value),e(12,H=!1),b.dateSelector&&(e(12,H=!0),e(15,G=vi().format("YYYY-MM-DD")),e(16,re=vi().add(6,"months").format("YYYY-MM-DD")),e(14,te=G)),e(13,W=!1),D&&f()},E=b=>{var oe;const X=b.target;e(14,te=(oe=X==null?void 0:X.value)!=null?oe:"")},$=()=>{C.addEventListener("change",E,!1)};d.onDestroy(()=>{J&&J.removeEventListener("SetPlayerAccountTimeout",g),C&&C.removeEventListener("change",E)});const w=()=>A(),k=b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),A())},B=()=>S(),ie=b=>{(b.key==="Enter"||b.key===" ")&&(b.preventDefault(),S())},K=b=>L(b),ne=(b,X)=>{(X.key==="Enter"||X.key===" ")&&(X.preventDefault(),L(b))};function ge(b){d.binding_callbacks[b?"unshift":"push"](()=>{C=b,e(8,C)})}const ke=b=>y(b);function gr(b){d.binding_callbacks[b?"unshift":"push"](()=>{J=b,e(9,J)})}function yr(b){d.binding_callbacks[b?"unshift":"push"](()=>{_=b,e(7,_)})}return o.$$set=b=>{"operator"in b&&e(0,s=b.operator),"lang"in b&&e(1,r=b.lang),"clientstyling"in b&&e(2,n=b.clientstyling),"clientstylingurl"in b&&e(3,a=b.clientstylingurl),"mbsource"in b&&e(4,l=b.mbsource),"translationurl"in b&&e(25,u=b.translationurl),"supportemail"in b&&e(5,c=b.supportemail),"endpoint"in b&&e(26,h=b.endpoint),"baseurl"in b&&e(6,p=b.baseurl),"hasconfirmationmodal"in b&&e(27,m=b.hasconfirmationmodal)},o.$$.update=()=>{o.$$.dirty[0]&256&&C&&$(),o.$$.dirty[0]&2&&r&&N(),o.$$.dirty[0]&132&&n&&_&&d.setClientStyling(_,n),o.$$.dirty[0]&136&&a&&_&&d.setClientStylingURL(_,a),o.$$.dirty[0]&144&&l&&_&&d.setStreamStyling(_,`${l}.Style`,P),o.$$.dirty[0]&33554432&&u&&x(),o.$$.dirty[0]&512&&J&&J.addEventListener("SetPlayerAccountTimeout",g)},D&&f(),[s,r,n,a,l,c,p,_,C,J,V,M,H,W,te,G,re,R,Q,i,z,y,A,S,L,u,h,m,w,k,B,ie,K,ne,ge,ke,gr,yr]}class _r extends d.SvelteComponent{constructor(t){super(),d.init(this,t,fu,pu,d.safe_not_equal,{operator:0,lang:1,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:25,supportemail:5,endpoint:26,baseurl:6,hasconfirmationmodal:27},au,[-1,-1])}get operator(){return this.$$.ctx[0]}set operator(t){this.$$set({operator:t}),d.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),d.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),d.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),d.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),d.flush()}get translationurl(){return this.$$.ctx[25]}set translationurl(t){this.$$set({translationurl:t}),d.flush()}get supportemail(){return this.$$.ctx[5]}set supportemail(t){this.$$set({supportemail:t}),d.flush()}get endpoint(){return this.$$.ctx[26]}set endpoint(t){this.$$set({endpoint:t}),d.flush()}get baseurl(){return this.$$.ctx[6]}set baseurl(t){this.$$set({baseurl:t}),d.flush()}get hasconfirmationmodal(){return this.$$.ctx[27]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),d.flush()}}d.create_custom_element(_r,{operator:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},supportemail:{},endpoint:{},baseurl:{},hasconfirmationmodal:{}},[],[],!0);const mu=Object.freeze(Object.defineProperty({__proto__:null,default:_r},Symbol.toStringTag,{value:"Module"}));exports.PlayerAccountTimeout_ce=mu;exports.dayjs=vi;
3583
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Xu(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Ju(this.inputElement,this._labelController)),this._tooltipController=new Sn(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(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ue(rd);var Xn={exports:{}};(function(i,t){(function(e,o){i.exports=o()})(c.commonjsGlobal,function(){var e={LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},o=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|YYYY|YY?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,s=/\d\d/,n=/\d\d?/,r=/\d*[^-_:/,()\s\d]+/,a={},l=function(f){return(f=+f)+(f>68?1900:2e3)},u=function(f){return function(y){this[f]=+y}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(f){(this.zone||(this.zone={})).offset=function(y){if(!y||y==="Z")return 0;var v=y.match(/([+-]|\d\d)/g),b=60*v[1]+(+v[2]||0);return b===0?0:v[0]==="+"?-b:b}(f)}],h=function(f){var y=a[f];return y&&(y.indexOf?y:y.s.concat(y.f))},p=function(f,y){var v,b=a.meridiem;if(b){for(var E=1;E<=24;E+=1)if(f.indexOf(b(E,0,y))>-1){v=E>12;break}}else v=f===(y?"pm":"PM");return v},m={A:[r,function(f){this.afternoon=p(f,!1)}],a:[r,function(f){this.afternoon=p(f,!0)}],S:[/\d/,function(f){this.milliseconds=100*+f}],SS:[s,function(f){this.milliseconds=10*+f}],SSS:[/\d{3}/,function(f){this.milliseconds=+f}],s:[n,u("seconds")],ss:[n,u("seconds")],m:[n,u("minutes")],mm:[n,u("minutes")],H:[n,u("hours")],h:[n,u("hours")],HH:[n,u("hours")],hh:[n,u("hours")],D:[n,u("day")],DD:[s,u("day")],Do:[r,function(f){var y=a.ordinal,v=f.match(/\d+/);if(this.day=v[0],y)for(var b=1;b<=31;b+=1)y(b).replace(/\[|\]/g,"")===f&&(this.day=b)}],M:[n,u("month")],MM:[s,u("month")],MMM:[r,function(f){var y=h("months"),v=(h("monthsShort")||y.map(function(b){return b.slice(0,3)})).indexOf(f)+1;if(v<1)throw new Error;this.month=v%12||v}],MMMM:[r,function(f){var y=h("months").indexOf(f)+1;if(y<1)throw new Error;this.month=y%12||y}],Y:[/[+-]?\d+/,u("year")],YY:[s,function(f){this.year=l(f)}],YYYY:[/\d{4}/,u("year")],Z:d,ZZ:d};function g(f){var y,v;y=f,v=a&&a.formats;for(var b=(f=y.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,function(Y,k,V){var D=V&&V.toUpperCase();return k||v[V]||e[V]||v[D].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,function(K,M,J){return M||J.slice(1)})})).match(o),E=b.length,C=0;C<E;C+=1){var w=b[C],B=m[w],H=B&&B[0],N=B&&B[1];b[C]=N?{regex:H,parser:N}:w.replace(/^\[|\]$/g,"")}return function(Y){for(var k={},V=0,D=0;V<E;V+=1){var K=b[V];if(typeof K=="string")D+=K.length;else{var M=K.regex,J=K.parser,se=Y.slice(D),G=M.exec(se)[0];J.call(k,G),Y=Y.replace(G,"")}}return function(X){var O=X.afternoon;if(O!==void 0){var j=X.hours;O?j<12&&(X.hours+=12):j===12&&(X.hours=0),delete X.afternoon}}(k),k}}return function(f,y,v){v.p.customParseFormat=!0,f&&f.parseTwoDigitYear&&(l=f.parseTwoDigitYear);var b=y.prototype,E=b.parse;b.parse=function(C){var w=C.date,B=C.utc,H=C.args;this.$u=B;var N=H[1];if(typeof N=="string"){var Y=H[2]===!0,k=H[3]===!0,V=Y||k,D=H[2];k&&(D=H[2]),a=this.$locale(),!Y&&D&&(a=v.Ls[D]),this.$d=function(se,G,X){try{if(["x","X"].indexOf(G)>-1)return new Date((G==="X"?1e3:1)*se);var O=g(G)(se),j=O.year,Z=O.month,ne=O.day,re=O.hours,te=O.minutes,ke=O.seconds,Pe=O.milliseconds,de=O.zone,he=new Date,Q=ne||(j||Z?1:he.getDate()),ie=j||he.getFullYear(),T=0;j&&!Z||(T=Z>0?Z-1:he.getMonth());var I=re||0,pe=te||0,ae=ke||0,W=Pe||0;return de?new Date(Date.UTC(ie,T,Q,I,pe,ae,W+60*de.offset*1e3)):X?new Date(Date.UTC(ie,T,Q,I,pe,ae,W)):new Date(ie,T,Q,I,pe,ae,W)}catch(ce){return new Date("")}}(w,N,B),this.init(),D&&D!==!0&&(this.$L=this.locale(D).$L),V&&w!=this.format(N)&&(this.$d=new Date("")),a={}}else if(N instanceof Array)for(var K=N.length,M=1;M<=K;M+=1){H[1]=N[M-1];var J=v.apply(this,H);if(J.isValid()){this.$d=J.$d,this.$L=J.$L,this.init();break}M===K&&(this.$d=new Date(""))}else E.call(this,C)}}})})(Xn);var ad=Xn.exports;const Jn=c.getDefaultExportFromCjs(ad);function ds(i,t){c.addMessages(i,t)}function ld(i){c.$locale.set(i)}const hs={en:{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor2Months:"2 Months",SelfExclusionFor3Months:"3 Months",SelfExclusionFor6Months:"6 Months",SelfExclusionFor7Months:"7 Months",SelfExclusionFor8Months:"8 Months",SelfExclusionFor9Months:"9 Months",SelfExclusionFor10Months:"10 Months",SelfExclusionFor11Months:"11 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriodSelfExclusion:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntilSelfExclusion:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"en-us":{titleSelfExclusion:"Self-Exclusion",selfExclusionText:"<p>While self-excluded, access to your account will be entirely restricted.</br>Self-exclusion can only be lifted after the period that you selected has passed by communicating with Customer Support, which will be subject to review and a cooling-off period. </br> Alternatively, you can choose to take a 'time out' (a break of up to 6 weeks) from our services via the '<a href='{baseurl}/{lang}/account/timeout'>Time out</a>' option. </br> If you would prefer just to close your account, '<a href='{baseurl}/{lang}/account/account-closure'>Account Closure</a>' you can choose to do so via the option.</br> We'd recommend you also read our '<a href='{baseurl}/{lang}/page/responsible-gambling'>Responsible Gambling</a>' help pages for further advice should you need it.",selfExclusionEmailText:"E-mail:",duration:"Duration:",dateInstructions:"In order to manually input date use the following format:",forever:"Forever",save:"Save",noPeriodSelected:"Please select a self exclusion period",selectAPeriod:"Select a period",temporarySelfExclusion:"Your self-exclusion period will last until the {date} 23:59.",permanentSelfExclusion:"Your self-exclusion period will be permanent.",SelfExclusionFor30Days:"30 Days",SelfExclusionFor2Months:"2 Months",SelfExclusionFor3Months:"3 Months",SelfExclusionFor6Months:"6 Months",SelfExclusionFor7Months:"7 Months",SelfExclusionFor8Months:"8 Months",SelfExclusionFor9Months:"9 Months",SelfExclusionFor10Months:"10 Months",SelfExclusionFor11Months:"11 Months",SelfExclusionFor1Year:"1 Year",SelfExclusionFor2Years:"2 Years",SelfExclusionFor5Years:"5 Years",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Until",confirmationModalTitle:"Confirmation",selfExclusionSuccess:"Self exclusion active",confirmationModalTextPeriodSelfExclusion:"Are you sure you want to self-exclude for {period}?",confirmationModalTextUntilSelfExclusion:"Are you sure you want to self-exclude until {date}?",errorSelfExclusionCall:"There was a problem while making the self exclusion request.",generalError:"There was an error while fetching the self exclusion.",InvalidSession:"The session is exipired."},"zh-hk":{titleSelfExclusion:"自我排除",selfExclusionText:"<p>在自我排除期間,您的帳戶將完全受到限制。</br> 自我排除僅可在您選擇的期間結束後,通過與客戶支援聯繫進行解除,並將接受審查和冷靜期。</br> 或者,您可以選擇通過'<a href='{baseurl}/{lang}/account/timeout'>暫停</a>'選項從我們的服務中暫停(最多6週)。</br> 如果您更願意關閉帳戶,可以通過'<a href='{baseurl}/{lang}/account/account-closure'>關閉帳戶</a>'選項進行關閉。</br> 我們建議您閱讀我們的'<a href='{baseurl}/{lang}/page/responsible-gambling'>負責任博彩</a>'幫助頁面以獲取進一步的建議。</p>",selfExclusionEmailText:"電子郵件:",duration:"時長:",dateInstructions:"如需手動輸入日期,請使用以下格式:",forever:"永久",save:"保存",noPeriodSelected:"請選擇自我排除時段",selectAPeriod:"選擇一個時段",temporarySelfExclusion:"您的自我排除期將持續到 {date} 23:59。",permanentSelfExclusion:"您的自我排除期將是永久性的。",SelfExclusionFor30Days:"30天",SelfExclusionFor2Months:"2個月",SelfExclusionFor3Months:"3個月",SelfExclusionFor6Months:"6個月",SelfExclusionFor7Months:"7個月",SelfExclusionFor8Months:"8個月",SelfExclusionFor9Months:"9個月",SelfExclusionFor10Months:"10個月",SelfExclusionFor11Months:"11個月",SelfExclusionFor1Year:"1年",SelfExclusionFor2Years:"2年",SelfExclusionFor5Years:"5年",SelfExclusionPermanent:"永久",SelfExclusionUntilSelectedDate:"直到",selfExclusionSuccess:"自我排斥活躍",confirmationModalTitle:"確認",confirmationModalTextPeriodSelfExclusion:"您確定要自我排除 {period} 嗎?",confirmationModalTextUntilSelfExclusion:"您確定要自我排除直到 {date} 嗎?",generalError:"提取自我排除时发生错误。",errorSelfExclusionCall:"发出自我排除请求时出现问题。",InvalidSession:"会话已过期。"},fr:{titleSelfExclusion:"Auto-Exclusion",selfExclusionText:"<p>Pendant la période d'auto-exclusion, l'accès à votre compte sera entièrement restreint.</br> L'auto-exclusion ne peut être levée qu'après la période que vous avez sélectionnée et en contactant le Service Client, sous réserve d'une révision et d'une période de réflexion.</br> Alternativement, vous pouvez choisir de prendre un '<a href='{baseurl}/{lang}/account/timeout'>temps de pause</a>' (jusqu'à 6 semaines) via l'option correspondante.</br> Si vous préférez simplement fermer votre compte, vous pouvez le faire via l'option '<a href='{baseurl}/{lang}/account/account-closure'>Fermeture de compte</a>'.</br> Nous vous recommandons également de consulter nos pages d'aide '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jeu Responsable</a>' pour des conseils supplémentaires si nécessaire.</p>",selfExclusionEmailText:"E-mail :",duration:"Durée :",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",forever:"Pour toujours",save:"Enregistrer",noPeriodSelected:"Veuillez sélectionner une période d'auto-exclusion",selectAPeriod:"Sélectionnez une période",temporarySelfExclusion:"Votre période d'auto-exclusion durera jusqu'au {date} 23:59.",permanentSelfExclusion:"Votre période d'auto-exclusion sera permanente.",SelfExclusionFor30Days:"30 Jours",SelfExclusionFor2Months:"2 Mois",SelfExclusionFor3Months:"3 Mois",SelfExclusionFor6Months:"6 Mois",SelfExclusionFor7Months:"7 Mois",SelfExclusionFor8Months:"8 Mois",SelfExclusionFor9Months:"9 Mois",SelfExclusionFor10Months:"10 Mois",SelfExclusionFor11Months:"11 Mois",SelfExclusionFor1Year:"1 An",SelfExclusionFor2Years:"2 Ans",SelfExclusionFor5Years:"5 Ans",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Jusqu'à",selfExclusionSuccess:"Auto exclusion active",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodSelfExclusion:"Êtes-vous sûr de vouloir vous auto-exclure pour {period} ?",confirmationModalTextUntilSelfExclusion:"Êtes-vous sûr de vouloir vous auto-exclure jusqu'au {date} ?",generalError:"Une erreur s'est produite lors de la récupération de l'auto-exclusion.",errorSelfExclusionCall:"Un problème est survenu lors de la demande d'auto-exclusion.",InvalidSession:"La session a expiré."},ro:{titleSelfExclusion:"Auto-Excludere",selfExclusionText:"<p>În timpul perioadei de autoexcludere, accesul la contul dvs. va fi complet restricționat.</br> Autoexcluderea poate fi ridicată numai după ce perioada selectată de dvs. a expirat, contactând Suportul Clienți, și va fi supusă unei revizuiri și unei perioade de reflecție.</br> Alternativ, puteți alege să luați o '<a href='{baseurl}/{lang}/account/timeout'>pauză</a>' (o întrerupere de până la 6 săptămâni) prin opțiunea corespunzătoare.</br> Dacă preferați să vă închideți contul, puteți face acest lucru prin opțiunea '<a href='{baseurl}/{lang}/account/account-closure'>Închidere cont</a>'.</br> Vă recomandăm, de asemenea, să consultați paginile noastre de ajutor '<a href='{baseurl}/{lang}/page/responsible-gambling'>Joc Responsabil</a>' pentru sfaturi suplimentare, dacă este necesar.</p>",selfExclusionEmailText:"E-mail:",duration:"Durată:",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",forever:"Pentru totdeauna",save:"Salvează",noPeriodSelected:"Vă rugăm să selectați o perioadă de auto-excludere",selectAPeriod:"Selectați o perioadă",temporarySelfExclusion:"Perioada dvs. de auto-excludere va dura până la {date} 23:59.",permanentSelfExclusion:"Perioada dvs. de auto-excludere va fi permanentă.",SelfExclusionFor30Days:"30 de Zile",SelfExclusionFor2Months:"2 Luni",SelfExclusionFor3Months:"3 Luni",SelfExclusionFor6Months:"6 Luni",SelfExclusionFor7Months:"7 Luni",SelfExclusionFor8Months:"8 Luni",SelfExclusionFor9Months:"9 Luni",SelfExclusionFor10Months:"10 Luni",SelfExclusionFor11Months:"11 Luni",SelfExclusionFor1Year:"1 An",SelfExclusionFor2Years:"2 Ani",SelfExclusionFor5Years:"5 Ani",SelfExclusionPermanent:"Permanent",SelfExclusionUntilSelectedDate:"Până la",selfExclusionSuccess:"Auto-excludere activa",confirmationModalTitle:"Confirmare",confirmationModalTextPeriodSelfExclusion:"Sunteți sigur că doriți să vă auto-excludeți pentru {period}?",confirmationModalTextUntilSelfExclusion:"Sunteți sigur că doriți să vă auto-excludeți până la {date}?",generalError:"A apărut o eroare la preluarea auto-excluderii.",errorSelfExclusionCall:"A apărut o problemă la efectuarea cererii de auto-excludere.",InvalidSession:"Sesiunea a expirat."},es:{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo se puede levantar después de que haya pasado el período seleccionado, comunicándose con Atención al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede optar por tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (un descanso de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo a través de la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos que lea nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si los necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Años",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto Exclusión activa.",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodSelfExclusion:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntilSelfExclusion:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},pt:{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta estará totalmente restrito.</br> A autoexclusão só pode ser levantada após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a uma revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer uma '<a href='{baseurl}/{lang}/account/timeout'>pausa</a>' (um intervalo de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar a sua conta, pode fazê-lo através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia as nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",forever:"Para sempre",save:"Guardar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"O seu período de autoexclusão durará até às {date} 23:59.",permanentSelfExclusion:"O seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodSelfExclusion:"Tem a certeza de que deseja autoexcluir-se por {period}?",confirmationModalTextUntilSelfExclusion:"Tem a certeza de que deseja autoexcluir-se até {date}?",generalError:"Ocorreu um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Ocorreu um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},hr:{titleSelfExclusion:"Samoisključenje",selfExclusionText:"<p>Tijekom razdoblja samoisključenja, pristup vašem računu bit će potpuno ograničen.</br> Samoisključenje se može ukinuti tek nakon što istekne razdoblje koje ste odabrali, uz kontaktiranje Korisničke podrške, uz reviziju i razdoblje hlađenja.</br> Alternativno, možete odabrati '<a href='{baseurl}/{lang}/account/timeout'>stanku</a>' (pauzu do 6 tjedana) putem odgovarajuće opcije.</br> Ako radije želite zatvoriti svoj račun, to možete učiniti putem opcije '<a href='{baseurl}/{lang}/account/account-closure'>Zatvaranje računa</a>'.</br> Također vam preporučujemo da pročitate naše stranice s pomoći o '<a href='{baseurl}/{lang}/page/responsible-gambling'>Odgovorno kockanje</a>' za dodatne savjete, ako su vam potrebni.</p>",selfExclusionEmailText:"E-mail:",duration:"Trajanje:",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",forever:"Zauvijek",save:"Spremi",noPeriodSelected:"Molimo odaberite razdoblje samoisključenja",selectAPeriod:"Odaberite razdoblje",temporarySelfExclusion:"Vaše razdoblje samoisključenja trajat će do {date} 23:59.",permanentSelfExclusion:"Vaše razdoblje samoisključenja bit će trajno.",SelfExclusionFor30Days:"30 Dana",SelfExclusionFor2Months:"2 Mjeseca",SelfExclusionFor3Months:"3 Mjeseca",SelfExclusionFor6Months:"6 Mjeseci",SelfExclusionFor7Months:"7 Mjeseci",SelfExclusionFor8Months:"8 Mjeseci",SelfExclusionFor9Months:"9 Mjeseci",SelfExclusionFor10Months:"10 Mjeseci",SelfExclusionFor11Months:"11 Mjeseci",SelfExclusionFor1Year:"1 Godina",SelfExclusionFor2Years:"2 Godina",SelfExclusionFor5Years:"5 Godina",SelfExclusionPermanent:"Trajno",SelfExclusionUntilSelectedDate:"Do",selfExclusionSuccess:"Aktivno samoisključivanje",confirmationModalTitle:"Potvrda",confirmationModalTextPeriodSelfExclusion:"Jeste li sigurni da se želite samoisključiti na {period}?",confirmationModalTextUntilSelfExclusion:"Jeste li sigurni da se želite samoisključiti do {date}?",generalError:"Došlo je do pogreške prilikom dohvaćanja samoisključenja.",errorSelfExclusionCall:"Došlo je do problema prilikom slanja zahtjeva za samoisključenje.",InvalidSession:"Sesija je istekla."},"pt-br":{titleSelfExclusion:"Autoexclusão",selfExclusionText:"<p>Durante o período de autoexclusão, o acesso à sua conta será completamente restrito.</br> A autoexclusão só pode ser removida após o término do período selecionado, entrando em contato com o Suporte ao Cliente, sujeito a revisão e a um período de reflexão.</br> Alternativamente, você pode optar por fazer um '<a href='{baseurl}/{lang}/account/timeout'>intervalo</a>' (uma pausa de até 6 semanas) através da opção correspondente.</br> Se preferir encerrar sua conta, você pode fazer isso através da opção '<a href='{baseurl}/{lang}/account/account-closure'>Encerramento de Conta</a>'.</br> Recomendamos também que leia nossas páginas de ajuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Jogo Responsável</a>' para obter mais conselhos, caso necessite.</p>",selfExclusionEmailText:"E-mail:",duration:"Duração:",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",forever:"Para sempre",save:"Salvar",noPeriodSelected:"Por favor, selecione um período de autoexclusão",selectAPeriod:"Selecione um período",temporarySelfExclusion:"Seu período de autoexclusão durará até {date} às 23:59.",permanentSelfExclusion:"Seu período de autoexclusão será permanente.",SelfExclusionFor30Days:"30 Dias",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Ano",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Anos",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Até",selfExclusionSuccess:"Autoexclusão ativa",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodSelfExclusion:"Você tem certeza de que deseja se autoexcluir por {period}?",confirmationModalTextUntilSelfExclusion:"Você tem certeza de que deseja se autoexcluir até {date}?",generalError:"Houve um erro ao buscar a autoexclusão.",errorSelfExclusionCall:"Houve um problema ao fazer a solicitação de autoexclusão.",InvalidSession:"A sessão expirou."},"es-mx":{titleSelfExclusion:"Autoexclusión",selfExclusionText:"<p>Mientras esté autoexcluido, el acceso a su cuenta estará completamente restringido.</br> La autoexclusión solo puede levantarse después de que haya pasado el período que seleccionó, comunicándose con el Servicio al Cliente, sujeto a una revisión y un período de enfriamiento.</br> Alternativamente, puede elegir tomarse un '<a href='{baseurl}/{lang}/account/timeout'>descanso</a>' (una pausa de hasta 6 semanas) a través de la opción correspondiente.</br> Si prefiere cerrar su cuenta, puede hacerlo mediante la opción '<a href='{baseurl}/{lang}/account/account-closure'>Cierre de Cuenta</a>'.</br> También le recomendamos leer nuestras páginas de ayuda sobre '<a href='{baseurl}/{lang}/page/responsible-gambling'>Juego Responsable</a>' para obtener más consejos si lo necesita.</p>",selfExclusionEmailText:"Correo electrónico:",duration:"Duración:",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",forever:"Para siempre",save:"Guardar",noPeriodSelected:"Por favor, seleccione un período de autoexclusión",selectAPeriod:"Seleccione un período",temporarySelfExclusion:"Su período de autoexclusión durará hasta el {date} a las 23:59.",permanentSelfExclusion:"Su período de autoexclusión será permanente.",SelfExclusionFor30Days:"30 Días",SelfExclusionFor2Months:"2 Meses",SelfExclusionFor3Months:"3 Meses",SelfExclusionFor6Months:"6 Meses",SelfExclusionFor7Months:"7 Meses",SelfExclusionFor8Months:"8 Meses",SelfExclusionFor9Months:"9 Meses",SelfExclusionFor10Months:"10 Meses",SelfExclusionFor11Months:"11 Meses",SelfExclusionFor1Year:"1 Año",SelfExclusionFor2Years:"2 Anos",SelfExclusionFor5Years:"5 Años",SelfExclusionPermanent:"Permanente",SelfExclusionUntilSelectedDate:"Hasta",selfExclusionSuccess:"Auto-exclusión activa",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodSelfExclusion:"¿Estás seguro de que deseas autoexcluirte por {period}?",confirmationModalTextUntilSelfExclusion:"¿Estás seguro de que deseas autoexcluirte hasta {date}?",generalError:"Hubo un error al obtener la autoexclusión.",errorSelfExclusionCall:"Hubo un problema al hacer la solicitud de autoexclusión.",InvalidSession:"La sesión ha expirado."},tr:{titleSelfExclusion:"Kendi Kendini Hariç Tutma",selfExclusionText:"<p>Kendinizi dışlama süresince hesabınıza erişiminiz tamamen kısıtlanacaktır.</br> Kendinizi dışlama, yalnızca seçtiğiniz süre sona erdikten sonra, Müşteri Hizmetleri ile iletişime geçerek kaldırılabilir ve inceleme ile bir düşünme süresine tabi olacaktır.</br> Alternatif olarak, '<a href='{baseurl}/{lang}/account/timeout'>Mola</a>' seçeneğiyle hizmetlerimizden (6 haftaya kadar bir ara) faydalanmayı tercih edebilirsiniz.</br> Hesabınızı kapatmayı tercih ederseniz, bunu '<a href='{baseurl}/{lang}/account/account-closure'>Hesap Kapatma</a>' seçeneği aracılığıyla yapabilirsiniz.</br> Ayrıca, gerektiğinde daha fazla tavsiye almak için '<a href='{baseurl}/{lang}/page/responsible-gambling'>Sorumlu Oyun</a>' yardım sayfalarımızı okumanızı öneririz.</p>",selfExclusionEmailText:"E-posta:",duration:"Süre:",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",forever:"Sonsuza kadar",save:"Kaydet",noPeriodSelected:"Lütfen bir kendi kendini hariç tutma süresi seçin",selectAPeriod:"Bir süre seçin",temporarySelfExclusion:"Kendi kendini hariç tutma süreniz {date} saat 23:59'a kadar sürecektir.",permanentSelfExclusion:"Kendi kendini hariç tutma süreniz kalıcı olacaktır.",SelfExclusionFor30Days:"30 Gün",SelfExclusionFor2Months:"2 Ay",SelfExclusionFor3Months:"3 Ay",SelfExclusionFor6Months:"6 Ay",SelfExclusionFor7Months:"7 Ay",SelfExclusionFor8Months:"8 Ay",SelfExclusionFor9Months:"9 Ay",SelfExclusionFor10Months:"10 Ay",SelfExclusionFor11Months:"11 Ay",SelfExclusionFor1Year:"1 Yıl",SelfExclusionFor2Years:"2 Yıl",SelfExclusionFor5Years:"5 Yıl",SelfExclusionPermanent:"Kalıcı",SelfExclusionUntilSelectedDate:"Tarihe kadar",selfExclusionSuccess:"Kendini dışlama etkin",confirmationModalTitle:"Onay",confirmationModalTextPeriodSelfExclusion:"{period} için kendinizi hariç tutmak istediğinizden emin misiniz?",confirmationModalTextUntilSelfExclusion:"{date} tarihine kadar kendinizi hariç tutmak istediğinizden emin misiniz?",generalError:"Kendi kendini dışlama alınırken bir hata oluştu.",errorSelfExclusionCall:"Kendi kendini dışlama isteği yapılırken bir sorun oluştu.",InvalidSession:"Oturum süresi doldu."}};function cd(i){c.append_styles(i,"svelte-gvegix",'a{cursor:pointer;text-decoration:underline;font-weight:600}.PlayerSelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.PlayerSelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.PlayerSelfExclusionTitleNone{display:none}.SelfExclusionContainer{border-radius:var(--emw--border-radius-medium, 10px);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));container-type:inline-size}.SelfExclusionContainer .SelfExclusionWrapper{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));padding:50px;border-radius:var(--emw--border-radius-medium, 10px);max-width:100%;min-height:500px;opacity:1;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.SelfExclusionContainer .SelfExclusionWrapper.SelfExclusionWrapperMobile{padding:20px 15px;max-width:unset;border-radius:0}.MenuReturnButton{color:var(--emw--color-gray-300, #58586B);display:inline-flex;align-items:center;column-gap:10px;margin-bottom:10px}.SelfExclusionTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:var(--emw--font-weight-bold, 700)}.SelfExclusionTitle.SelfExclusionTitleMobile{font-size:var(--emw--font-size-large, 20px)}.SelfExclusionNotification{color:var(--emw--color-gray-300, #58586B);line-height:24px}.SelfExclusionNotification.SelfExclusionDescriptionMobile{font-size:var(--emw--font-size-x-small, 12px);line-height:19px}.SelfExclusionNotification .SelfExclusionDescriptionText p{font-size:16px}.SelfExclusionNotification .SelfExclusionDescriptionText a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px;min-height:180px}.SelfExclusionDescription p{font-size:16px}.SelfExclusionDescription a{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}@container (max-width: 768px){.SelfExclusionDescription{font-size:var(--emw--font-size-x-small, 12px);line-height:19px;min-height:230px}}.SelfExclusionConfigWrapper{width:50%;position:relative;margin-bottom:var(--emw--spacing-large, 20px);color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border-radius:var(--emw--border-radius-medium, 10px);cursor:pointer}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel{display:flex;flex-direction:row;justify-content:space-between;align-items:center;padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px)}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:15px;height:15px;fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transform:rotateZ(-90deg);transition:all 0.5s ease-in-out}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel p{margin:0;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionConfigLabel .SelfExclusionConfigIcon.active{transform:rotateZ(0deg)}.SelfExclusionConfigWrapper .SelfExclusionDropDown{max-height:0px;overflow:hidden;box-sizing:border-box;transition:all 0.5s ease-in-out;opacity:0;color:var(--emw--color-gray-300, #58586B);background-color:var(--emw--color-pale, var(--emw--color-gray-50, #F1F1F1));border-radius:0px 0px var(--emw--border-radius-medium, 10px) var(--emw--border-radius-medium, 10px)}.SelfExclusionConfigWrapper .SelfExclusionDropDown div{padding:var(--emw--spacing-medium, 10px) var(--emw--spacing-large, 20px);font-size:var(--emw--font-size-x-small, 12px);border-top:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));transition:all 0.5s ease-in-out;font-family:inherit}.SelfExclusionConfigWrapper .SelfExclusionDropDown div:hover{color:var(--emw--color-white, #FFFFFF);background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionConfigWrapper .SelfExclusionDropDown.active{max-height:600px;opacity:1}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile{width:100%;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionConfigWrapper.SelfExclusionConfigWrapperMobile .SelfExclusionConfigLabel .SelfExclusionConfigIcon{width:10px;height:10px}.SelfExclusionDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.SelfExclusionDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.SelfExclusionDateWrapper .SelfExclusionDateInstructions strong{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionDateWrapper input{font-family:inherit;width:100%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);border-radius:5px;box-sizing:border-box;padding:5px 15px;font-size:var(--emw--size-standard, 16px);line-height:18px}.SelfExclusionDateWrapper.SelfExclusionDateWrapperMobile{width:100%}.SelfExclusionRadioWrapper{display:block;position:relative;padding:4px 0 0 0;margin-bottom:16px;font-size:var(--emw--size-standard, 16px);user-select:none;line-height:18px}.SelfExclusionRadioWrapper label{font-size:var(--emw--size-standard, 16px);cursor:pointer;padding-left:35px}.SelfExclusionRadioWrapper input{font-family:inherit;position:absolute;opacity:0;cursor:pointer;height:0;width:0}.SelfExclusionRadioWrapper .Checkmark{position:absolute;top:0;left:0;height:25px;width:25px;background-color:var(--emw--color-gray-100, #E6E6E6);border-radius:50%}.SelfExclusionRadioWrapper input:checked~.Checkmark{background-color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.SelfExclusionRadioWrapper .Checkmark:after{content:"";position:absolute;display:none;left:9px;top:5px;width:5px;height:10px;border:solid white;border-width:0 2px 2px 0;transform:rotate(45deg)}.SelfExclusionRadioWrapper input:checked~.Checkmark:after{display:block}.SelfExclusionRadioWrapper.SelfExclusionRadioWrapperMobile label{font-family:inherit;font-size:var(--emw--font-size-x-small, 12px)}.SelfExclusionActionButtons{margin-top:40px;width:50%}.SelfExclusionActionButtons .SelfExclusionSave{font-family:var(--emw--button-typography);border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box;background:var(--emw--color-primary, #23B04E);border-radius:var(--emw--border-radius-medium, 10px);padding:20px 0;font-size:var(--emw--font-size-large, 20px);color:var(--emw--button-text-color, #FFFFFF);cursor:pointer;border:none}.SelfExclusionActionButtons .SelfExclusionSave:hover{filter:brightness(0.9)}.SelfExclusionActionButtons .SelfExclusionSave:disabled{opacity:0.5;cursor:default}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile{width:100%;grid-template-columns:1fr 1fr}.SelfExclusionActionButtons.SelfExclusionActionButtonsMobile .SelfExclusionSave{height:40px;font-size:var(--emw--font-size-small, 14px);padding:20px 0}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}')}function ps(i,t,e){const o=i.slice();return o[58]=t[e],o}function ud(i){let t,e,o,s,n=i[23]("titleSelfExclusion")+"",r,a,l,u,d=i[23]("selfExclusionText",{values:{operatorname:i[3],baseurl:i[5],lang:i[2]}})+"",h,p,m=i[23]("selfExclusionEmailText")+"",g,f,y,v,b,E,C,w,B,H=i[23](`${i[16]}`)+"",N,Y,k,V,D,K,M,J,se,G,X,O,j,Z=i[23]("save")+"",ne,re,te,ke,Pe,de,he,Q=i[25]&&hd(i),ie=c.ensure_array_like(i[12]),T=[];for(let x=0;x<ie.length;x+=1)T[x]=fs(ps(i,ie,x));let I=i[19]&&ms(i);function pe(x,P){return x[18]?md:x[20]?pd:fd}let ae=pe(i),W=ae(i),ce=i[26]&&_d(i);return{c(){t=c.element("div"),e=c.element("form"),Q&&Q.c(),o=c.space(),s=c.element("h2"),r=c.text(n),a=c.space(),l=c.element("div"),u=c.element("p"),h=c.space(),p=c.element("p"),g=c.text(m),f=c.space(),y=c.element("a"),v=c.text(i[4]),E=c.space(),C=c.element("div"),w=c.element("div"),B=c.element("p"),N=c.text(H),Y=c.space(),k=c.svg_element("svg"),V=c.svg_element("g"),D=c.svg_element("path"),K=c.space(),M=c.element("div");for(let x=0;x<T.length;x+=1)T[x].c();J=c.space(),I&&I.c(),se=c.space(),G=c.element("div"),W.c(),X=c.space(),O=c.element("div"),j=c.element("button"),ne=c.text(Z),ke=c.space(),ce&&ce.c(),Pe=c.empty(),c.attr(s,"class","PlayerSelfExclusionTitle "+(i[25]?"PlayerSelfExclusionTitleNone":"")),c.attr(u,"class","SelfExclusionDescriptionText"),c.attr(y,"href",b="mailto:"+i[4]),c.attr(p,"class","SelfExclusionDescriptionText"),c.attr(l,"class","SelfExclusionDescription "+(i[25]?"SelfExclusionDescriptionMobile":"")),c.attr(D,"d","M 90 24.25 c 0 -0.896 -0.342 -1.792 -1.025 -2.475 c -1.366 -1.367 -3.583 -1.367 -4.949 0 L 45 60.8 L 5.975 21.775 c -1.367 -1.367 -3.583 -1.367 -4.95 0 c -1.366 1.367 -1.366 3.583 0 4.95 l 41.5 41.5 c 1.366 1.367 3.583 1.367 4.949 0 l 41.5 -41.5 C 89.658 26.042 90 25.146 90 24.25 z"),c.attr(D,"stroke-linecap","round"),c.attr(k,"xmlns","http://www.w3.org/2000/svg"),c.attr(k,"xmlns:xlink","http://www.w3.org/1999/xlink"),c.attr(k,"version","1.1"),c.attr(k,"viewBox","0 0 100 100"),c.attr(k,"xml:space","preserve"),c.attr(k,"class","SelfExclusionConfigIcon"),c.toggle_class(k,"active",i[21]),c.attr(w,"class","SelfExclusionConfigLabel"),c.attr(M,"class","SelfExclusionDropDown"),c.toggle_class(M,"active",i[21]),c.attr(C,"class","SelfExclusionConfigWrapper "+(i[25]?"SelfExclusionConfigWrapperMobile":"")),c.toggle_class(C,"active",i[21]),c.attr(G,"class","SelfExclusionNotification "+(i[25]?"SelfExclusionDescriptionMobile":"")),c.attr(j,"class",re="SelfExclusionSave "+(i[20]?"active":"")),j.disabled=te=!i[20],c.attr(O,"class","SelfExclusionActionButtons "+(i[25]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(i[25]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(x,P){c.insert(x,t,P),c.append(t,e),Q&&Q.m(e,null),c.append(e,o),c.append(e,s),c.append(s,r),c.append(e,a),c.append(e,l),c.append(l,u),u.innerHTML=d,c.append(l,h),c.append(l,p),c.append(p,g),c.append(p,f),c.append(p,y),c.append(y,v),c.append(e,E),c.append(e,C),c.append(C,w),c.append(w,B),c.append(B,N),c.append(w,Y),c.append(w,k),c.append(k,V),c.append(V,D),c.append(C,K),c.append(C,M);for(let z=0;z<T.length;z+=1)T[z]&&T[z].m(M,null);c.append(e,J),I&&I.m(e,null),c.append(e,se),c.append(e,G),W.m(G,null),c.append(e,X),c.append(e,O),c.append(O,j),c.append(j,ne),c.insert(x,ke,P),ce&&ce.m(x,P),c.insert(x,Pe,P),de||(he=[c.listen(w,"click",i[38]),c.listen(j,"click",i[41])],de=!0)},p(x,P){if(x[25]&&Q.p(x,P),P[0]&8388608&&n!==(n=x[23]("titleSelfExclusion")+"")&&c.set_data(r,n),P[0]&8388652&&d!==(d=x[23]("selfExclusionText",{values:{operatorname:x[3],baseurl:x[5],lang:x[2]}})+"")&&(u.innerHTML=d),P[0]&8388608&&m!==(m=x[23]("selfExclusionEmailText")+"")&&c.set_data(g,m),P[0]&16&&c.set_data(v,x[4]),P[0]&16&&b!==(b="mailto:"+x[4])&&c.attr(y,"href",b),P[0]&8454144&&H!==(H=x[23](`${x[16]}`)+"")&&c.set_data(N,H),P[0]&2097152&&c.toggle_class(k,"active",x[21]),P[0]&276828160){ie=c.ensure_array_like(x[12]);let z;for(z=0;z<ie.length;z+=1){const Et=ps(x,ie,z);T[z]?T[z].p(Et,P):(T[z]=fs(Et),T[z].c(),T[z].m(M,null))}for(;z<T.length;z+=1)T[z].d(1);T.length=ie.length}P[0]&2097152&&c.toggle_class(M,"active",x[21]),P[0]&2097152&&c.toggle_class(C,"active",x[21]),x[19]?I?I.p(x,P):(I=ms(x),I.c(),I.m(e,se)):I&&(I.d(1),I=null),ae===(ae=pe(x))&&W?W.p(x,P):(W.d(1),W=ae(x),W&&(W.c(),W.m(G,null))),P[0]&8388608&&Z!==(Z=x[23]("save")+"")&&c.set_data(ne,Z),P[0]&1048576&&re!==(re="SelfExclusionSave "+(x[20]?"active":""))&&c.attr(j,"class",re),P[0]&1048576&&te!==(te=!x[20])&&(j.disabled=te),x[26]&&ce.p(x,P)},d(x){x&&(c.detach(t),c.detach(ke),c.detach(Pe)),Q&&Q.d(),c.destroy_each(T,x),I&&I.d(),W.d(),ce&&ce.d(x),de=!1,c.run_all(he)}}}function dd(i){let t,e,o,s,n,r,a,l,u,d,h,p,m,g,f,y,v,b,E,C,w;function B(Y,k){return Y[25]?yd:gd}let N=B(i)(i);return{c(){t=c.element("div"),e=c.element("div"),N.c(),o=c.space(),s=c.element("div"),n=c.element("ui-skeleton"),r=c.space(),a=c.element("div"),l=c.space(),u=c.element("ui-skeleton"),d=c.space(),h=c.element("div"),p=c.space(),m=c.element("div"),g=c.element("ui-skeleton"),f=c.space(),y=c.element("div"),v=c.space(),b=c.element("ui-skeleton"),E=c.space(),C=c.element("div"),w=c.element("ui-skeleton"),c.set_custom_element_data(n,"structure","text"),c.set_custom_element_data(n,"height",i[25]?"15px":"20px"),c.set_custom_element_data(n,"rows",i[25]?"12":"5"),c.set_custom_element_data(n,"width",i[25]?"100%":"60%"),c.set_style(a,"height",i[25]?"10px":"20px"),c.set_custom_element_data(u,"structure","text"),c.set_custom_element_data(u,"height",i[25]?"15px":"20px"),c.set_custom_element_data(u,"width","30%"),c.set_style(h,"height","10px"),c.attr(s,"class","SelfExclusionDescription"),c.set_custom_element_data(g,"structure","rectangle"),c.set_custom_element_data(g,"width",i[25]?"100%":"50%"),c.set_custom_element_data(g,"height",i[25]?"30px":"44px"),c.set_style(y,"height",i[25]?"15px":"20px"),c.set_custom_element_data(b,"structure","text"),c.set_custom_element_data(b,"height",i[25]?"15px":"20px"),c.set_custom_element_data(b,"width","30%"),c.attr(m,"class","SelfExclusionConfig"),c.set_custom_element_data(w,"structure","rectangle"),c.set_custom_element_data(w,"width","100%"),c.set_custom_element_data(w,"height",i[25]?"35px":"50px"),c.attr(C,"class","SelfExclusionActionButtons "+(i[25]?"SelfExclusionActionButtonsMobile":"")),c.attr(e,"class","SelfExclusionWrapper "+(i[25]?"SelfExclusionWrapperMobile":"")),c.attr(t,"class","SelfExclusionContainer")},m(Y,k){c.insert(Y,t,k),c.append(t,e),N.m(e,null),c.append(e,o),c.append(e,s),c.append(s,n),c.append(s,r),c.append(s,a),c.append(s,l),c.append(s,u),c.append(s,d),c.append(s,h),c.append(e,p),c.append(e,m),c.append(m,g),c.append(m,f),c.append(m,y),c.append(m,v),c.append(m,b),c.append(e,E),c.append(e,C),c.append(C,w)},p:c.noop,d(Y){Y&&c.detach(t),N.d()}}}function hd(i){let t,e,o,s,n,r,a,l,u,d,h=i[23]("titleSelfExclusion")+"",p,m,g;return{c(){t=c.element("div"),e=c.svg_element("svg"),o=c.svg_element("defs"),s=c.svg_element("style"),n=c.text(".aaa{fill:var(--emw--color-primary, #22B04E);}"),r=c.svg_element("g"),a=c.svg_element("g"),l=c.svg_element("path"),u=c.space(),d=c.element("h2"),p=c.text(h),c.attr(l,"class","aaa"),c.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),c.attr(l,"transform","translate(15 15) rotate(180)"),c.attr(a,"transform","translate(20 158)"),c.attr(r,"transform","translate(-20 -158)"),c.attr(e,"xmlns","http://www.w3.org/2000/svg"),c.attr(e,"width","15"),c.attr(e,"height","15"),c.attr(e,"viewBox","0 0 15 15"),c.attr(d,"class","PlayerSelfExclusionTitleMobile"),c.attr(t,"class","MenuReturnButton")},m(f,y){c.insert(f,t,y),c.append(t,e),c.append(e,o),c.append(o,s),c.append(s,n),c.append(e,r),c.append(r,a),c.append(a,l),c.append(t,u),c.append(t,d),c.append(d,p),m||(g=c.listen(t,"click",i[37]),m=!0)},p(f,y){y[0]&8388608&&h!==(h=f[23]("titleSelfExclusion")+"")&&c.set_data(p,h)},d(f){f&&c.detach(t),m=!1,g()}}}function fs(i){let t,e=i[23](`${i[58].key}`)+"",o,s,n;function r(){return i[39](i[58])}return{c(){t=c.element("div"),o=c.text(e)},m(a,l){c.insert(a,t,l),c.append(t,o),s||(n=c.listen(t,"click",r),s=!0)},p(a,l){i=a,l[0]&8392704&&e!==(e=i[23](`${i[58].key}`)+"")&&c.set_data(o,e)},d(a){a&&c.detach(t),s=!1,n()}}}function ms(i){let t,e,o=i[23]("duration")+"",s,n,r,a=i[23]("dateInstructions")+"",l,u,d,h,p,m,g;return{c(){t=c.element("div"),e=c.element("label"),s=c.text(o),n=c.space(),r=c.element("span"),l=c.text(a),u=c.space(),d=c.element("strong"),h=c.text(i[24]),p=c.element("strong"),m=c.space(),g=c.element("vaadin-date-picker"),c.attr(e,"for","SelfExclusionDate"),c.attr(r,"class","SelfExclusionDateInstructions"),c.set_custom_element_data(g,"min",i[13]),c.set_custom_element_data(g,"max",i[14]),c.set_custom_element_data(g,"value",i[15]),c.set_custom_element_data(g,"class","VaadinDatePicker"),c.attr(t,"class","SelfExclusionDateWrapper "+(i[25]?"SelfExclusionDateWrapperMobile":""))},m(f,y){c.insert(f,t,y),c.append(t,e),c.append(e,s),c.append(t,n),c.append(t,r),c.append(r,l),c.append(r,u),c.append(r,d),c.append(d,h),c.append(d,p),c.append(t,m),c.append(t,g),i[40](g)},p(f,y){y[0]&8388608&&o!==(o=f[23]("duration")+"")&&c.set_data(s,o),y[0]&8388608&&a!==(a=f[23]("dateInstructions")+"")&&c.set_data(l,a),y[0]&8192&&c.set_custom_element_data(g,"min",f[13]),y[0]&16384&&c.set_custom_element_data(g,"max",f[14]),y[0]&32768&&c.set_custom_element_data(g,"value",f[15])},d(f){f&&c.detach(t),i[40](null)}}}function pd(i){let t,e,o=i[23]("temporarySelfExclusion",{values:{date:_e.dayjs(i[15]).format(i[24])}})+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(o),c.attr(t,"class","SelfExclusionDescriptionText")},m(n,r){c.insert(n,t,r),c.append(t,e),c.append(e,s)},p(n,r){r[0]&8421376&&o!==(o=n[23]("temporarySelfExclusion",{values:{date:_e.dayjs(n[15]).format(n[24])}})+"")&&c.set_data(s,o)},d(n){n&&c.detach(t)}}}function fd(i){let t,e,o=i[23]("noPeriodSelected")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(o),c.attr(t,"class","SelfExclusionDescriptionText")},m(n,r){c.insert(n,t,r),c.append(t,e),c.append(e,s)},p(n,r){r[0]&8388608&&o!==(o=n[23]("noPeriodSelected")+"")&&c.set_data(s,o)},d(n){n&&c.detach(t)}}}function md(i){let t,e,o=i[23]("permanentSelfExclusion")+"",s;return{c(){t=c.element("p"),e=c.element("strong"),s=c.text(o),c.attr(t,"class","SelfExclusionDescriptionText")},m(n,r){c.insert(n,t,r),c.append(t,e),c.append(e,s)},p(n,r){r[0]&8388608&&o!==(o=n[23]("permanentSelfExclusion")+"")&&c.set_data(s,o)},d(n){n&&c.detach(t)}}}function _d(i){let t,e,o,s;return{c(){t=c.element("player-account-modal"),e=c.element("player-account-general-confirmation-modal"),c.set_custom_element_data(e,"modaltitle",o=i[23]("confirmationModalTitle")),c.set_custom_element_data(e,"modaltext",i[17]),c.set_custom_element_data(e,"hascancelbutton",!1),c.set_custom_element_data(e,"modalconfirmevent","setSelfExclusion"),c.set_custom_element_data(e,"modalconfirmdata",s={userid:i[1],selectedPeriodKey:i[16],session:i[0]}),c.set_custom_element_data(e,"mbsource",i[8]),c.set_custom_element_data(e,"lang",i[2]),c.set_custom_element_data(t,"clientstyling",i[6]),c.set_custom_element_data(t,"clientstylingurl",i[7]),c.set_custom_element_data(t,"mbsource",i[8]),c.set_custom_element_data(t,"showmodaleventname","ShowSelfExclusionConfirmationModal")},m(n,r){c.insert(n,t,r),c.append(t,e),i[42](e)},p(n,r){r[0]&8388608&&o!==(o=n[23]("confirmationModalTitle"))&&c.set_custom_element_data(e,"modaltitle",o),r[0]&131072&&c.set_custom_element_data(e,"modaltext",n[17]),r[0]&65539&&s!==(s={userid:n[1],selectedPeriodKey:n[16],session:n[0]})&&c.set_custom_element_data(e,"modalconfirmdata",s),r[0]&256&&c.set_custom_element_data(e,"mbsource",n[8]),r[0]&4&&c.set_custom_element_data(e,"lang",n[2]),r[0]&64&&c.set_custom_element_data(t,"clientstyling",n[6]),r[0]&128&&c.set_custom_element_data(t,"clientstylingurl",n[7]),r[0]&256&&c.set_custom_element_data(t,"mbsource",n[8])},d(n){n&&c.detach(t),i[42](null)}}}function gd(i){let t;return{c(){t=c.element("ui-skeleton"),c.set_custom_element_data(t,"structure","title"),c.set_custom_element_data(t,"width","100px"),c.set_custom_element_data(t,"margin-top","20px"),c.set_custom_element_data(t,"margin-bottom","20px")},m(e,o){c.insert(e,t,o)},d(e){e&&c.detach(t)}}}function yd(i){let t;return{c(){t=c.element("div"),t.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',c.attr(t,"class","MenuReturnButton")},m(e,o){c.insert(e,t,o)},d(e){e&&c.detach(t)}}}function bd(i){let t;function e(n,r){return n[22]?dd:ud}let o=e(i),s=o(i);return{c(){t=c.element("div"),s.c()},m(n,r){c.insert(n,t,r),s.m(t,null),i[43](t)},p(n,r){o===(o=e(n))&&s?s.p(n,r):(s.d(1),s=o(n),s&&(s.c(),s.m(t,null)))},i:c.noop,o:c.noop,d(n){n&&c.detach(t),s.d(),i[43](null)}}}function vd(i,t,e){let o;c.component_subscribe(i,c.$format,_=>e(23,o=_)),_e.dayjs.extend(Jn);let{endpoint:s="",session:n="",userid:r="",lang:a="en",gmversion:l="",operator:u="Everymatrix",supportemail:d="",baseurl:h="",clientstyling:p="",clientstylingurl:m="",mbsource:g,translationurl:f="",hasconfirmationmodal:y="false",dateformat:v="DD/MM/YYYY",sendnotificationemail:b="false"}=t,E,C,w,B=v.toUpperCase(),H=[],N={},Y=window.navigator.userAgent,k,V,D="",K="",M="selectAPeriod",J="",se="",G=c.getDevice(Y)!=="PC",X=!1,O=!1,j=!1,Z=!1,ne=y==="true",re=!0,te;const ke=()=>{fetch(f).then(L=>L.json()).then(L=>{Object.keys(L).forEach(R=>{ds(R,L[R])})}).catch(L=>{console.log(L)})};Object.keys(hs).forEach(_=>{ds(_,hs[_])});const Pe=()=>{let _=new URL(`${s}/v1/player/selfExclusionSettings`);fetch(_,{method:"GET",headers:{"Content-Type":"application/json",Accept:"application/json"}}).then(R=>he(R)).then(R=>{e(12,H=R.periods)}).catch(R=>{console.log(R),window.postMessage({type:"WidgetNotification",data:{type:"error",message:R.message}},window.location.href)}).finally(()=>{e(22,re=!1)})},de=_=>{const{userid:L,selectedPeriodKey:R,session:fe}=_.detail;e(1,r=L),e(16,M=R),e(0,n=fe),pe()},he=_=>et(this,null,function*(){var L;if(!_.ok){N=yield _.json(),se=(L=N.thirdPartyResponse)==null?void 0:L.errorCode;const R=o(se||"generalError");throw new Error(R)}return _.json()}),Q=()=>{e(21,Z=!Z)},ie=_=>{switch(K=_.text,e(16,M=_.key),e(20,j=!0),e(21,Z=!1),e(18,X=!1),e(19,O=!1),K){case"Until":e(19,O=!0),e(13,k=_e.dayjs().add(6,"M").format("YYYY-MM-DD")),e(14,V=_e.dayjs().add(5,"y").format("YYYY-MM-DD")),e(15,D=k);break;case"Permanent":e(18,X=!X);break;default:const[L,R]=K.split(" "),fe=R.includes("Day")?"days":R.includes("Month")?"months":R.includes("Year")?"years":null;if(!fe)return;e(15,D=_e.dayjs().add(Number(L),fe).format("YYYY-MM-DD"));break}ne&&T()},T=()=>{if(!ne||!K||!D){e(17,J="");return}e(17,J=O?o("confirmationModalTextUntilSelfExclusion",{values:{date:_e.dayjs(D).format(B)}}):o("confirmationModalTextPeriodSelfExclusion",{values:{period:o(M)}}))},I=_=>{_.preventDefault(),ne?(T(),window.postMessage({type:"ShowSelfExclusionConfirmationModal"},window.location.href)):pe()},pe=()=>{e(22,re=!0);const _=new URL(`${s}/v2/player/${r}/limits${l==="gm16"?"/session":""}`),R={method:"PUT",headers:{"X-SessionID":n,"Content-Type":"application/json",Accept:"application/json"},body:JSON.stringify({selfExclusion:{period:M,expiryDate:D,selfExclusionReason:"UserRequest",sendNotificationEmail:b==="true"}})};fetch(_.href,R).then(fe=>he(fe)).then(fe=>{window.postMessage({type:"WidgetNotification",data:{type:"success",message:o("selfExclusionSuccess")}},window.location.href),window.postMessage({type:"LogoutSuccessfull"},window.location.href)}).catch(fe=>{console.error(o("errorSelfExclusionCall"),fe),window.postMessage({type:"WidgetNotification",data:{type:"error",message:o("errorSelfExclusionCall")}},window.location.href)}).finally(()=>{e(22,re=!1)})},ae=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:G},window.location.href)},W=_=>{e(15,D=_.target.value)},ce=()=>{w.addEventListener("change",W,!1),e(10,w.i18n=At(St({},w.i18n),{formatDate:_=>_e.dayjs(new Date(_.year,_.month,_.day)).format(B),parseDate:_=>{const L=_e.dayjs(_,B);return{year:L.year(),month:L.month(),day:L.date()}}}),w)};c.onMount(()=>()=>{w.removeEventListener("change",W),te.removeEventListener("setSelfExclusion",de)});const x=()=>{ld(a)},P=()=>ae(),z=()=>Q(),Et=_=>ie(_);function Qn(_){c.binding_callbacks[_?"unshift":"push"](()=>{w=_,e(10,w)})}const er=_=>I(_);function tr(_){c.binding_callbacks[_?"unshift":"push"](()=>{te=_,e(11,te)})}function ir(_){c.binding_callbacks[_?"unshift":"push"](()=>{E=_,e(9,E)})}return i.$$set=_=>{"endpoint"in _&&e(31,s=_.endpoint),"session"in _&&e(0,n=_.session),"userid"in _&&e(1,r=_.userid),"lang"in _&&e(2,a=_.lang),"gmversion"in _&&e(32,l=_.gmversion),"operator"in _&&e(3,u=_.operator),"supportemail"in _&&e(4,d=_.supportemail),"baseurl"in _&&e(5,h=_.baseurl),"clientstyling"in _&&e(6,p=_.clientstyling),"clientstylingurl"in _&&e(7,m=_.clientstylingurl),"mbsource"in _&&e(8,g=_.mbsource),"translationurl"in _&&e(33,f=_.translationurl),"hasconfirmationmodal"in _&&e(34,y=_.hasconfirmationmodal),"dateformat"in _&&e(35,v=_.dateformat),"sendnotificationemail"in _&&e(36,b=_.sendnotificationemail)},i.$$.update=()=>{i.$$.dirty[0]&4&&a&&x(),i.$$.dirty[0]&3|i.$$.dirty[1]&3&&s&&n&&r&&l&&Pe(),i.$$.dirty[0]&1024&&w&&ce(),i.$$.dirty[0]&576&&p&&E&&c.setClientStyling(E,p),i.$$.dirty[0]&640&&m&&E&&c.setClientStylingURL(E,m),i.$$.dirty[0]&768&&g&&E&&c.setStreamStyling(E,`${g}.Style`,C),i.$$.dirty[1]&4&&f&&ke(),i.$$.dirty[0]&2048&&te&&te.addEventListener("setSelfExclusion",de)},ne&&T(),[n,r,a,u,d,h,p,m,g,E,w,te,H,k,V,D,M,J,X,O,j,Z,re,o,B,G,ne,Q,ie,I,ae,s,l,f,y,v,b,P,z,Et,Qn,er,tr,ir]}class Zn extends c.SvelteComponent{constructor(t){super(),c.init(this,t,vd,bd,c.safe_not_equal,{endpoint:31,session:0,userid:1,lang:2,gmversion:32,operator:3,supportemail:4,baseurl:5,clientstyling:6,clientstylingurl:7,mbsource:8,translationurl:33,hasconfirmationmodal:34,dateformat:35,sendnotificationemail:36},cd,[-1,-1])}get endpoint(){return this.$$.ctx[31]}set endpoint(t){this.$$set({endpoint:t}),c.flush()}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),c.flush()}get userid(){return this.$$.ctx[1]}set userid(t){this.$$set({userid:t}),c.flush()}get lang(){return this.$$.ctx[2]}set lang(t){this.$$set({lang:t}),c.flush()}get gmversion(){return this.$$.ctx[32]}set gmversion(t){this.$$set({gmversion:t}),c.flush()}get operator(){return this.$$.ctx[3]}set operator(t){this.$$set({operator:t}),c.flush()}get supportemail(){return this.$$.ctx[4]}set supportemail(t){this.$$set({supportemail:t}),c.flush()}get baseurl(){return this.$$.ctx[5]}set baseurl(t){this.$$set({baseurl:t}),c.flush()}get clientstyling(){return this.$$.ctx[6]}set clientstyling(t){this.$$set({clientstyling:t}),c.flush()}get clientstylingurl(){return this.$$.ctx[7]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),c.flush()}get mbsource(){return this.$$.ctx[8]}set mbsource(t){this.$$set({mbsource:t}),c.flush()}get translationurl(){return this.$$.ctx[33]}set translationurl(t){this.$$set({translationurl:t}),c.flush()}get hasconfirmationmodal(){return this.$$.ctx[34]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),c.flush()}get dateformat(){return this.$$.ctx[35]}set dateformat(t){this.$$set({dateformat:t}),c.flush()}get sendnotificationemail(){return this.$$.ctx[36]}set sendnotificationemail(t){this.$$set({sendnotificationemail:t}),c.flush()}}c.create_custom_element(Zn,{endpoint:{},session:{},userid:{},lang:{},gmversion:{},operator:{},supportemail:{},baseurl:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},hasconfirmationmodal:{},dateformat:{},sendnotificationemail:{}},[],[],!0);const xd=Object.freeze(Object.defineProperty({__proto__:null,default:Zn},Symbol.toStringTag,{value:"Module"}));exports.CustomParseFormat=Jn;exports.PlayerAccountSelfExclusionNd_ce=xd;