@everymatrix/player-account-controller 1.65.3 → 1.66.0

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 (158) hide show
  1. package/components/{GeneralLogout-DC1eQria.js → GeneralLogout-CYE3twI-.js} +1493 -1458
  2. package/components/{GeneralLogout-BvHI6IRl.js → GeneralLogout-CgxHUYZx.js} +1474 -1439
  3. package/components/GeneralLogout-Dzu2Sl-x.cjs +21 -0
  4. package/components/{PlayerAccountBettingHistory-Bo3-gODs.js → PlayerAccountBettingHistory-B0IsJ01N.js} +27 -27
  5. package/components/{PlayerAccountBettingHistory-BTEzWQvN.js → PlayerAccountBettingHistory-BXBMy618.js} +27 -27
  6. package/components/{PlayerAccountBettingHistory-DgHU9Jz9.cjs → PlayerAccountBettingHistory-BtDZukYI.cjs} +1 -1
  7. package/components/{PlayerAccountBiometrics-DRMe1Ngk.js → PlayerAccountBiometrics-CCk_4MyI.js} +22 -22
  8. package/components/{PlayerAccountBiometrics-DXk7ouzk.cjs → PlayerAccountBiometrics-CEEVheLt.cjs} +1 -1
  9. package/components/{PlayerAccountBiometrics-eJ0NsGhR.js → PlayerAccountBiometrics-DrmVF6dX.js} +22 -22
  10. package/components/{PlayerAccountClosure-CenyN-4X.js → PlayerAccountClosure-B_xwOPds.js} +17 -17
  11. package/components/{PlayerAccountClosure-DMF66IyF.cjs → PlayerAccountClosure-DoZ91aH2.cjs} +1 -1
  12. package/components/{PlayerAccountClosure-D4FSDBR-.js → PlayerAccountClosure-UwL_V2IO.js} +17 -17
  13. package/components/{PlayerAccountController-_H7Suh7X.js → PlayerAccountController-B0bfe6uR.js} +138 -138
  14. package/components/{PlayerAccountController-CJqLJFq9.cjs → PlayerAccountController-CVL0HQhg.cjs} +1 -1
  15. package/components/{PlayerAccountController-CE3DCARp.js → PlayerAccountController-CWeJ_3lf.js} +136 -136
  16. package/components/{PlayerAccountGamingLimits-bgH5yldD.js → PlayerAccountGamingLimits-BF1Dd_Yw.js} +19 -19
  17. package/components/{PlayerAccountGamingLimits-qvefhQXf.js → PlayerAccountGamingLimits-BKHRQo_P.js} +19 -19
  18. package/components/{PlayerAccountGamingLimits-C5-wP3x8.cjs → PlayerAccountGamingLimits-DZBzKFyv.cjs} +1 -1
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-B-Zcfwzu.js → PlayerAccountGamingLimitsConfirmationModal-57Q5qtf8.js} +53 -53
  20. package/components/PlayerAccountGamingLimitsConfirmationModal-CVJUvbSC.cjs +1 -0
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-BSuURD9X.js → PlayerAccountGamingLimitsConfirmationModal-CztJ5DKd.js} +53 -53
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-CgtvM5l0.js → PlayerAccountGamingLimitsGroupEdit-B7O4IGQB.js} +413 -415
  23. package/components/PlayerAccountGamingLimitsGroupEdit-BvnqlbPp.cjs +1 -0
  24. package/components/{PlayerAccountGamingLimitsGroupEdit-DflmfEfo.js → PlayerAccountGamingLimitsGroupEdit-DlaRG8Hg.js} +413 -415
  25. package/components/{PlayerAccountGamingLimitsHistory2-B0Hm0NN-.js → PlayerAccountGamingLimitsHistory2-BLK-Rk6N.js} +48 -48
  26. package/components/{PlayerAccountGamingLimitsHistory2-CkXX1K7L.js → PlayerAccountGamingLimitsHistory2-Br4h7_eS.js} +46 -46
  27. package/components/{PlayerAccountGamingLimitsHistory2-C0g0UlRl.cjs → PlayerAccountGamingLimitsHistory2-CreFMkf_.cjs} +1 -1
  28. package/components/{PlayerAccountGamingLimitsInfoCard-ByqimrlU.js → PlayerAccountGamingLimitsInfoCard-BlMfsPqJ.js} +80 -80
  29. package/components/{PlayerAccountGamingLimitsInfoCard-D2xDA5AE.js → PlayerAccountGamingLimitsInfoCard-BqsEfU1b.js} +80 -80
  30. package/components/{PlayerAccountGamingLimitsInfoCard-DxIPZWF4.cjs → PlayerAccountGamingLimitsInfoCard-DWbZBNtU.cjs} +1 -1
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-6oqp3QDs.js → PlayerAccountGamingLimitsPage2Gm16-C4Cf53bH.js} +101 -101
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16-B7VpqKm8.js → PlayerAccountGamingLimitsPage2Gm16-D0UaSH_1.js} +118 -118
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-BeMRmv-L.cjs → PlayerAccountGamingLimitsPage2Gm16-isbaVllo.cjs} +2 -2
  34. package/components/{PlayerAccountGamingLimitsPopup-DkQcpWO7.cjs → PlayerAccountGamingLimitsPopup-CmNqLNxB.cjs} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPopup-Bhe4pnzt.js → PlayerAccountGamingLimitsPopup-DTb6cpuT.js} +28 -28
  36. package/components/{PlayerAccountGamingLimitsPopup-LjmHojBJ.js → PlayerAccountGamingLimitsPopup-Dz9ROowj.js} +28 -28
  37. package/components/{PlayerAccountGamingLimitsWrapper2-BnahUpgU.js → PlayerAccountGamingLimitsWrapper2-B1gV6va3.js} +36 -36
  38. package/components/{PlayerAccountGamingLimitsWrapper2-DNBhGOWx.cjs → PlayerAccountGamingLimitsWrapper2-BNIPTcA9.cjs} +1 -1
  39. package/components/{PlayerAccountGamingLimitsWrapper2-BnAOuyMV.js → PlayerAccountGamingLimitsWrapper2-BxbHvpZn.js} +36 -36
  40. package/components/PlayerAccountGeneralConfirmationModal-BiNxgQbD.cjs +1 -0
  41. package/components/{PlayerAccountGeneralConfirmationModal-BXvbser8.js → PlayerAccountGeneralConfirmationModal-DQ7Oklqf.js} +95 -95
  42. package/components/{PlayerAccountGeneralConfirmationModal-Ct4ffM2k.js → PlayerAccountGeneralConfirmationModal-lHX_vmhB.js} +95 -95
  43. package/components/{PlayerAccountMenu-BZSV920e.cjs → PlayerAccountMenu-BZnkRiU-.cjs} +1 -1
  44. package/components/{PlayerAccountMenu-COhw6RUO.js → PlayerAccountMenu-D4d9TQsD.js} +29 -29
  45. package/components/{PlayerAccountMenu-CXkbGum8.js → PlayerAccountMenu-j3TA2Osb.js} +29 -29
  46. package/components/{PlayerAccountModal-BlJKMVDD.js → PlayerAccountModal-Cbpkb5P6.js} +44 -44
  47. package/components/{PlayerAccountModal-C2BAyjz8.js → PlayerAccountModal-Co5a_OZZ.js} +44 -44
  48. package/components/{PlayerAccountModal-lwDOdDa4.cjs → PlayerAccountModal-SsGlrcmj.cjs} +1 -1
  49. package/components/{PlayerAccountNotifications-Br27rQuw.js → PlayerAccountNotifications-CkbUxjuk.js} +35 -35
  50. package/components/{PlayerAccountNotifications-CzMMRPni.cjs → PlayerAccountNotifications-ejASOsrU.cjs} +1 -1
  51. package/components/{PlayerAccountNotifications-YIzJUJtW.js → PlayerAccountNotifications-f0A-2obd.js} +120 -120
  52. package/components/{PlayerAccountSelfExclusion-r_y8NKk9.js → PlayerAccountSelfExclusion-Dkhb_rb2.js} +1040 -1042
  53. package/components/{PlayerAccountSelfExclusion-DcjyVbyI.js → PlayerAccountSelfExclusion-eVbVBZeH.js} +1303 -1305
  54. package/components/{PlayerAccountSelfExclusion-DOBXVbGp.cjs → PlayerAccountSelfExclusion-tbEoY1fJ.cjs} +155 -155
  55. package/components/{PlayerAccountTimeout-BTWCScSA.cjs → PlayerAccountTimeout-B7te1qrD.cjs} +1 -1
  56. package/components/{PlayerAccountTimeout-Bj1lGwNr.js → PlayerAccountTimeout-BF6i8Aq1.js} +150 -150
  57. package/components/{PlayerAccountTimeout-D2BFCkW4.js → PlayerAccountTimeout-CgPnhFC2.js} +150 -150
  58. package/components/{PlayerAccountTransactionsHistory-BTZrAMpd.js → PlayerAccountTransactionsHistory-DtHWhYf2.js} +1515 -1533
  59. package/components/{PlayerAccountTransactionsHistory-CLtNxF1E.cjs → PlayerAccountTransactionsHistory-_Sm0nfWr.cjs} +253 -253
  60. package/components/{PlayerAccountTransactionsHistory-DamCdY8r.js → PlayerAccountTransactionsHistory-sQOFDhsn.js} +1944 -1922
  61. package/components/{PlayerActiveBonuses-C7G2b4x9.cjs → PlayerActiveBonuses-CVhSMdRf.cjs} +1 -1
  62. package/components/{PlayerActiveBonuses-TAb_daVK.js → PlayerActiveBonuses-Cakyx19i.js} +54 -54
  63. package/components/{PlayerActiveBonuses-f9Tnt64h.js → PlayerActiveBonuses-uCEkihFw.js} +52 -52
  64. package/components/{PlayerBonusCard-CBO8neP8.js → PlayerBonusCard-6xOKi384.js} +54 -54
  65. package/components/{PlayerBonusCard-nwlvuWsq.cjs → PlayerBonusCard-BNNcjGWn.cjs} +1 -1
  66. package/components/{PlayerBonusCard-uudC6LGS.js → PlayerBonusCard-CXbETnCF.js} +54 -54
  67. package/components/{PlayerBonusHistory-BhFNlaSf.js → PlayerBonusHistory-B7mav-9J.js} +30 -30
  68. package/components/{PlayerBonusHistory-DvfiMpJt.cjs → PlayerBonusHistory-CIDfTu9W.cjs} +1 -1
  69. package/components/{PlayerBonusHistory-DqURmCme.js → PlayerBonusHistory-ClKYGr0v.js} +30 -30
  70. package/components/{PlayerChangePassword-D4DzBZed.js → PlayerChangePassword-C2ZoKuCq.js} +66 -66
  71. package/components/{PlayerChangePassword-BUbXMFnB.js → PlayerChangePassword-ChwKfBC6.js} +66 -66
  72. package/components/{PlayerChangePassword-D0aYOkoZ.cjs → PlayerChangePassword-LgjKzYU1.cjs} +1 -1
  73. package/components/{PlayerDeposit-lfkc7jOj.js → PlayerDeposit-BPZ5wCAZ.js} +29 -29
  74. package/components/{PlayerDeposit-DAFmH9HW.cjs → PlayerDeposit-Dzg8Ltb1.cjs} +1 -1
  75. package/components/{PlayerDeposit-BB64hmyO.js → PlayerDeposit-VLcz0tQH.js} +29 -29
  76. package/components/{PlayerGamingHistory-e4Kr6TRi.js → PlayerGamingHistory-C00k3Mj3.js} +63 -63
  77. package/components/{PlayerGamingHistory-DxVgYcre.js → PlayerGamingHistory-CWN1CL1Y.js} +63 -63
  78. package/components/{PlayerGamingHistory-CsAD_iks.cjs → PlayerGamingHistory-Cqze0dx8.cjs} +1 -1
  79. package/components/{PlayerPendingWithdrawals-DbuXpIXl.cjs → PlayerPendingWithdrawals-BMwtFNQT.cjs} +1 -1
  80. package/components/{PlayerPendingWithdrawals-QAaJbf_-.js → PlayerPendingWithdrawals-DeNKdUgJ.js} +26 -26
  81. package/components/{PlayerPendingWithdrawals-B6qiUkpB.js → PlayerPendingWithdrawals-go7okUzL.js} +26 -26
  82. package/components/{PlayerProfileInfo-DFtxyN-C.cjs → PlayerProfileInfo-B7evfW4V.cjs} +2 -2
  83. package/components/{PlayerProfileInfo-DsBGGdCC.js → PlayerProfileInfo-DKx18BjF.js} +66 -66
  84. package/components/{PlayerProfileInfo-B-Cly6nt.js → PlayerProfileInfo-HvWkhklW.js} +66 -66
  85. package/components/{PlayerRealityCheck-CFJVJn17.cjs → PlayerRealityCheck-BrVF76qp.cjs} +1 -1
  86. package/components/{PlayerRealityCheck-DQ-_y3IT.js → PlayerRealityCheck-C2TUMl9-.js} +45 -45
  87. package/components/{PlayerRealityCheck-CyxiiYoi.js → PlayerRealityCheck-DMNAglZN.js} +44 -44
  88. package/components/{PlayerTransactionHistory-BOtRm_b6.cjs → PlayerTransactionHistory-4VtQqLAc.cjs} +1 -1
  89. package/components/{PlayerTransactionHistory-6G6ws2ky.js → PlayerTransactionHistory-A-aVfyoc.js} +19 -19
  90. package/components/{PlayerTransactionHistory-BjRhtwD4.js → PlayerTransactionHistory-BFV_XJw9.js} +19 -19
  91. package/components/{PlayerWithdrawal-OBRjEIH9.cjs → PlayerWithdrawal-BMLgaRLc.cjs} +1 -1
  92. package/components/{PlayerWithdrawal-BIBZrL0i.js → PlayerWithdrawal-B_wQZI_t.js} +19 -19
  93. package/components/{PlayerWithdrawal-CuR6Pb4o.js → PlayerWithdrawal-CTttZqLr.js} +19 -19
  94. package/es2015/player-account-controller.cjs +1 -1
  95. package/es2015/player-account-controller.js +1 -1
  96. package/esnext/player-account-controller.js +1 -1
  97. package/package.json +1 -1
  98. package/stencil/{checkbox-group-input_9-BwrWZeLB.js → checkbox-group-input_9-CBypfsS3.js} +94 -94
  99. package/stencil/checkbox-group-input_9-DPHNOESE.cjs +2 -0
  100. package/stencil/{checkbox-group-input_9-DdpCHvWb.js → checkbox-group-input_9-DnV_tWRw.js} +94 -94
  101. package/stencil/{general-input-BDPI_fW2.js → general-input-BL6gaRFm.js} +1592 -1590
  102. package/stencil/{general-input-y1CIV_-r.cjs → general-input-D4dlhqRt.cjs} +254 -254
  103. package/stencil/{general-input-DpokfhP6.js → general-input-PK2GjmMy.js} +1594 -1592
  104. package/stencil/{index-1ef3a64c-Dd-0nq4l.js → index-1ef3a64c-BNosNJnU.js} +192 -192
  105. package/stencil/index-1ef3a64c-CFvPR_NP.cjs +1 -0
  106. package/stencil/{index-1ef3a64c-B1Hda3TY.js → index-1ef3a64c-DsTe-fF4.js} +185 -185
  107. package/stencil/{index-7c5e707a-CuTkyLaW.js → index-7c5e707a-C9R6jYpt.js} +209 -209
  108. package/stencil/index-7c5e707a-DvxqcEpc.js +643 -0
  109. package/stencil/index-7c5e707a-ESX_oqGB.cjs +1 -0
  110. package/stencil/{index-9c0f6c58-RPoO1End.js → index-9c0f6c58-BB5opCt9.js} +176 -176
  111. package/stencil/index-9c0f6c58-DmOKHEVq.cjs +1 -0
  112. package/stencil/{index-9c0f6c58-NlVKpLut.js → index-9c0f6c58-bxjYqwOi.js} +180 -180
  113. package/stencil/{index-9cd44522-Cto_o6sQ.js → index-9cd44522-CS2DUMAh.js} +202 -202
  114. package/stencil/index-9cd44522-DSTEjWLL.cjs +1 -0
  115. package/stencil/{index-9cd44522-DrlRFYrB.js → index-9cd44522-DywmIvct.js} +196 -196
  116. package/stencil/index-b2193545-CnMZ4-Ff.js +519 -0
  117. package/stencil/index-b2193545-Ct5AhxM8.cjs +1 -0
  118. package/stencil/index-b2193545-DePry399.js +503 -0
  119. package/stencil/{password-input_2-DQst8UHp.js → password-input_2-B-hB_TyI.js} +19 -19
  120. package/stencil/{password-input_2-CqbOPSSZ.js → password-input_2-Cv3sojDW.js} +19 -19
  121. package/stencil/{password-input_2-BFXxkcXV.cjs → password-input_2-D3RpMK9l.cjs} +2 -2
  122. package/stencil/{player-change-password-gm2-5cb5c6c1-n4BjzEVs.cjs → player-change-password-gm2-5cb5c6c1-48be6rQP.cjs} +1 -1
  123. package/stencil/{player-change-password-gm2-5cb5c6c1-BhDKCfuN.js → player-change-password-gm2-5cb5c6c1-BDrm2Ck6.js} +1 -1
  124. package/stencil/{player-change-password-gm2-5cb5c6c1-Ch9RyZ2b.js → player-change-password-gm2-5cb5c6c1-Bo3Z7Tq3.js} +1 -1
  125. package/stencil/{player-change-password-gm2-COsfG6W5.cjs → player-change-password-gm2-Dyen7kuQ.cjs} +1 -1
  126. package/stencil/{player-change-password-gm2-Bg9HNK0A.js → player-change-password-gm2-Lslcce6X.js} +1 -1
  127. package/stencil/{player-change-password-gm2-CNOsEIfo.js → player-change-password-gm2-O8hU8m1J.js} +1 -1
  128. package/stencil/{player-kyc-verification-Cxnz1raa.js → player-kyc-verification-CMAkNiAB.js} +9 -9
  129. package/stencil/{player-kyc-verification-qKWuqiUm.cjs → player-kyc-verification-DYcPWwfi.cjs} +2 -2
  130. package/stencil/{player-kyc-verification-DA_O1Dqu.js → player-kyc-verification-p2WFnKBp.js} +12 -12
  131. package/stencil/{toggle-checkbox-input-rocW3Yvz.js → toggle-checkbox-input-C9PFEsSj.js} +1 -1
  132. package/stencil/{toggle-checkbox-input-B4lb8oMh.js → toggle-checkbox-input-CdoZzW97.js} +1 -1
  133. package/stencil/{toggle-checkbox-input-BhQAILyC.cjs → toggle-checkbox-input-D6Dot9Sr.cjs} +1 -1
  134. package/stencil/{ui-skeleton-1cb75d00-CZJ4UoDJ.js → ui-skeleton-1cb75d00-BI5A-j0y.js} +1 -1
  135. package/stencil/{ui-skeleton-1cb75d00-dFWe5qbW.cjs → ui-skeleton-1cb75d00-Batko5iK.cjs} +1 -1
  136. package/stencil/{ui-skeleton-1cb75d00-D5Bub0nv.js → ui-skeleton-1cb75d00-CwDKR1VD.js} +1 -1
  137. package/stencil/{ui-skeleton-CZ5yC1WO.js → ui-skeleton-C974aG7g.js} +2 -2
  138. package/stencil/{ui-skeleton-vLKdvRqw.js → ui-skeleton-DoX-UmRU.js} +2 -2
  139. package/stencil/{ui-skeleton-BH5oLkn9.cjs → ui-skeleton-t0bb1jH7.cjs} +1 -1
  140. package/stencil/{user-deposit-withdrawal-ByE9O4TW.js → user-deposit-withdrawal-C7W58646.js} +45 -45
  141. package/stencil/{user-deposit-withdrawal-DGTrOlxS.cjs → user-deposit-withdrawal-Dfu_1g2v.cjs} +2 -2
  142. package/stencil/{user-deposit-withdrawal-BMWb-WJE.js → user-deposit-withdrawal-Dzz_fEvK.js} +45 -45
  143. package/stencil/{user-transaction-history-CXBKXul8.js → user-transaction-history-BAK7MHHa.js} +14 -14
  144. package/stencil/{user-transaction-history-BU4-cXt6.js → user-transaction-history-DhQ6RqNc.js} +11 -11
  145. package/stencil/{user-transaction-history-DLLIZ5Ck.cjs → user-transaction-history-DiRXpfbN.cjs} +1 -1
  146. package/components/GeneralLogout-DweBl3EQ.cjs +0 -21
  147. package/components/PlayerAccountGamingLimitsConfirmationModal-DzBevsyQ.cjs +0 -1
  148. package/components/PlayerAccountGamingLimitsGroupEdit-JOrwbKuQ.cjs +0 -1
  149. package/components/PlayerAccountGeneralConfirmationModal-dy9TCHFm.cjs +0 -1
  150. package/stencil/checkbox-group-input_9-CImFZbCv.cjs +0 -2
  151. package/stencil/index-1ef3a64c-CCWt3IAA.cjs +0 -1
  152. package/stencil/index-7c5e707a-8-4_dLFT.js +0 -643
  153. package/stencil/index-7c5e707a-nBsW029h.cjs +0 -1
  154. package/stencil/index-9c0f6c58-DbSOntvG.cjs +0 -1
  155. package/stencil/index-9cd44522-lYql7AfG.cjs +0 -1
  156. package/stencil/index-b2193545-BXNomIzV.js +0 -519
  157. package/stencil/index-b2193545-CYe2oVMy.js +0 -503
  158. package/stencil/index-b2193545-DxRobzZI.cjs +0 -1
@@ -1,48 +1,48 @@
1
- "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./index-9cd44522-lYql7AfG.cjs"),Br=require("./locale-CB060R77.cjs");var Rr=Object.defineProperty,$r=Object.defineProperties,Hr=Object.getOwnPropertyDescriptors,ts=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,qr=Object.prototype.propertyIsEnumerable,Wt=(s,e,t)=>e in s?Rr(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,tt=(s,e)=>{for(var t in e||(e={}))Ur.call(e,t)&&Wt(s,t,e[t]);if(ts)for(var t of ts(e))qr.call(e,t)&&Wt(s,t,e[t]);return s},Zs=(s,e)=>$r(s,Hr(e)),P=(s,e,t)=>(Wt(s,typeof e!="symbol"?e+"":e,t),t),it=(s,e,t)=>new Promise((i,o)=>{var r=l=>{try{a(t.next(l))}catch(d){o(d)}},n=l=>{try{a(t.throw(l))}catch(d){o(d)}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((t=t.apply(s,e)).next())});/**
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const T=require("./index-9cd44522-DSTEjWLL.cjs"),Rr=require("./locale-CB060R77.cjs");var $r=Object.defineProperty,Hr=Object.defineProperties,qr=Object.getOwnPropertyDescriptors,is=Object.getOwnPropertySymbols,Ur=Object.prototype.hasOwnProperty,jr=Object.prototype.propertyIsEnumerable,Yt=(s,e,t)=>e in s?$r(s,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):s[e]=t,it=(s,e)=>{for(var t in e||(e={}))Ur.call(e,t)&&Yt(s,t,e[t]);if(is)for(var t of is(e))jr.call(e,t)&&Yt(s,t,e[t]);return s},eo=(s,e)=>Hr(s,qr(e)),P=(s,e,t)=>(Yt(s,typeof e!="symbol"?e+"":e,t),t),st=(s,e,t)=>new Promise((i,o)=>{var r=l=>{try{n(t.next(l))}catch(d){o(d)}},a=l=>{try{n(t.throw(l))}catch(d){o(d)}},n=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,a);n((t=t.apply(s,e)).next())});/**
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 f(s,e="24.5.11"){Object.defineProperty(s,"version",{get(){return e}});const t=customElements.get(s.is);if(!t)customElements.define(s.is,s);else{const i=t.version;i&&s.version&&i===s.version?console.warn(`The component ${s.is} has been loaded twice`):console.error(`Tried to define ${s.is} version ${s.version} when version ${t.version} is already in use. Something will probably break.`)}}/**
5
+ */function f(s,e="24.5.12"){Object.defineProperty(s,"version",{get(){return e}});const t=customElements.get(s.is);if(!t)customElements.define(s.is,s);else{const i=t.version;i&&s.version&&i===s.version?console.warn(`The component ${s.is} has been loaded twice`):console.error(`Tried to define ${s.is} version ${s.version} when version ${t.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 jr extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}f(jr);/**
9
+ */class Wr extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}f(Wr);/**
10
10
  * @license
11
11
  * Copyright 2019 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const Je=globalThis,vi=Je.ShadowRoot&&(Je.ShadyCSS===void 0||Je.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,gi=Symbol(),is=new WeakMap;let bi=class{constructor(s,e,t){if(this._$cssResult$=!0,t!==gi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=s,this.t=e}get styleSheet(){let s=this.o;const e=this.t;if(vi&&s===void 0){const t=e!==void 0&&e.length===1;t&&(s=is.get(e)),s===void 0&&((this.o=s=new CSSStyleSheet).replaceSync(this.cssText),t&&is.set(e,s))}return s}toString(){return this.cssText}};const Wr=s=>new bi(typeof s=="string"?s:s+"",void 0,gi),u=(s,...e)=>{const t=s.length===1?s[0]:e.reduce((i,o,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.")})(o)+s[r+1],s[0]);return new bi(t,s,gi)},eo=(s,e)=>{if(vi)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=Je.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,s.appendChild(i)}},ss=vi?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Wr(t)})(s):s;/**
13
+ */const Qe=globalThis,gi=Qe.ShadowRoot&&(Qe.ShadyCSS===void 0||Qe.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,bi=Symbol(),ss=new WeakMap;let yi=class{constructor(s,e,t){if(this._$cssResult$=!0,t!==bi)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=s,this.t=e}get styleSheet(){let s=this.o;const e=this.t;if(gi&&s===void 0){const t=e!==void 0&&e.length===1;t&&(s=ss.get(e)),s===void 0&&((this.o=s=new CSSStyleSheet).replaceSync(this.cssText),t&&ss.set(e,s))}return s}toString(){return this.cssText}};const Yr=s=>new yi(typeof s=="string"?s:s+"",void 0,bi),u=(s,...e)=>{const t=s.length===1?s[0]:e.reduce((i,o,r)=>i+(a=>{if(a._$cssResult$===!0)return a.cssText;if(typeof a=="number")return a;throw Error("Value passed to 'css' function must be a 'css' function result: "+a+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[r+1],s[0]);return new yi(t,s,bi)},to=(s,e)=>{if(gi)s.adoptedStyleSheets=e.map(t=>t instanceof CSSStyleSheet?t:t.styleSheet);else for(const t of e){const i=document.createElement("style"),o=Qe.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=t.cssText,s.appendChild(i)}},os=gi?s=>s:s=>s instanceof CSSStyleSheet?(e=>{let t="";for(const i of e.cssRules)t+=i.cssText;return Yr(t)})(s):s;/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const{is:Yr,defineProperty:Kr,getOwnPropertyDescriptor:Gr,getOwnPropertyNames:Xr,getOwnPropertySymbols:Jr,getPrototypeOf:Qr}=Object,ue=globalThis,os=ue.trustedTypes,Zr=os?os.emptyScript:"",rs=ue.reactiveElementPolyfillSupport,Ee=(s,e)=>s,Yt={toAttribute(s,e){switch(e){case Boolean:s=s?Zr:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch(i){t=null}}return t}},to=(s,e)=>!Yr(s,e),ns={attribute:!0,type:String,converter:Yt,reflect:!1,hasChanged:to};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),ue.litPropertyMetadata!=null||(ue.litPropertyMetadata=new WeakMap);class ae extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ns){if(t.state&&(t.attribute=!1),this._$Ei(),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&Kr(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){var o;const{get:r,set:n}=(o=Gr(this.prototype,e))!=null?o:{get(){return this[t]},set(a){this[t]=a}};return{get(){return r==null?void 0:r.call(this)},set(a){const l=r==null?void 0:r.call(this);n.call(this,a),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:ns}static _$Ei(){if(this.hasOwnProperty(Ee("elementProperties")))return;const e=Qr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(Ee("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Ee("properties"))){const t=this.properties,i=[...Xr(t),...Jr(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(ss(o))}else e!==void 0&&t.push(ss(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return eo(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$EC(e,t){var i;const o=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,o);if(r!==void 0&&o.reflect===!0){const n=(((i=o.converter)==null?void 0:i.toAttribute)!==void 0?o.converter:Yt).toAttribute(t,o.type);this._$Em=e,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(e,t){var i;const o=this.constructor,r=o._$Eh.get(e);if(r!==void 0&&this._$Em!==r){const n=o.getPropertyOptions(r),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((i=n.converter)==null?void 0:i.fromAttribute)!==void 0?n.converter:Yt;this._$Em=r,this[r]=a.fromAttribute(t,n.type),this._$Em=null}}requestUpdate(e,t,i){var o;if(e!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(e)),!((o=i.hasChanged)!=null?o:to)(this[e],t))return;this.P(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(e,t,i){var o;this._$AL.has(e)||this._$AL.set(e,t),i.reflect===!0&&this._$Em!==e&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(e)}_$ET(){return it(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,n]of this._$Ep)this[r]=n;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[r,n]of o)n.wrapped!==!0||this._$AL.has(r)||this[r]===void 0||this.P(r,this[r],n)}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$EO)==null||e.forEach(o=>{var r;return(r=o.hostUpdate)==null?void 0:r.call(o)}),this.update(i)):this._$EU()}catch(o){throw t=!1,this._$EU(),o}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Ej&&(this._$Ej=this._$Ej.forEach(t=>this._$EC(t,this[t]))),this._$EU()}updated(e){}firstUpdated(e){}}var as;ae.elementStyles=[],ae.shadowRootOptions={mode:"open"},ae[Ee("elementProperties")]=new Map,ae[Ee("finalized")]=new Map,rs==null||rs({ReactiveElement:ae}),((as=ue.reactiveElementVersions)!=null?as:ue.reactiveElementVersions=[]).push("2.0.4");/**
17
+ */const{is:Kr,defineProperty:Gr,getOwnPropertyDescriptor:Xr,getOwnPropertyNames:Jr,getOwnPropertySymbols:Qr,getPrototypeOf:Zr}=Object,ue=globalThis,rs=ue.trustedTypes,ea=rs?rs.emptyScript:"",as=ue.reactiveElementPolyfillSupport,ke=(s,e)=>s,Kt={toAttribute(s,e){switch(e){case Boolean:s=s?ea:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s)}return s},fromAttribute(s,e){let t=s;switch(e){case Boolean:t=s!==null;break;case Number:t=s===null?null:Number(s);break;case Object:case Array:try{t=JSON.parse(s)}catch(i){t=null}}return t}},io=(s,e)=>!Kr(s,e),ns={attribute:!0,type:String,converter:Kt,reflect:!1,useDefault:!1,hasChanged:io};Symbol.metadata!=null||(Symbol.metadata=Symbol("metadata")),ue.litPropertyMetadata!=null||(ue.litPropertyMetadata=new WeakMap);class ne extends HTMLElement{static addInitializer(e){var t;this._$Ei(),((t=this.l)!=null?t:this.l=[]).push(e)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(e,t=ns){if(t.state&&(t.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(e)&&((t=Object.create(t)).wrapped=!0),this.elementProperties.set(e,t),!t.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(e,i,t);o!==void 0&&Gr(this.prototype,e,o)}}static getPropertyDescriptor(e,t,i){var o;const{get:r,set:a}=(o=Xr(this.prototype,e))!=null?o:{get(){return this[t]},set(n){this[t]=n}};return{get:r,set(n){const l=r==null?void 0:r.call(this);a==null||a.call(this,n),this.requestUpdate(e,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(e){var t;return(t=this.elementProperties.get(e))!=null?t:ns}static _$Ei(){if(this.hasOwnProperty(ke("elementProperties")))return;const e=Zr(this);e.finalize(),e.l!==void 0&&(this.l=[...e.l]),this.elementProperties=new Map(e.elementProperties)}static finalize(){if(this.hasOwnProperty(ke("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(ke("properties"))){const t=this.properties,i=[...Jr(t),...Qr(t)];for(const o of i)this.createProperty(o,t[o])}const e=this[Symbol.metadata];if(e!==null){const t=litPropertyMetadata.get(e);if(t!==void 0)for(const[i,o]of t)this.elementProperties.set(i,o)}this._$Eh=new Map;for(const[t,i]of this.elementProperties){const o=this._$Eu(t,i);o!==void 0&&this._$Eh.set(o,t)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(e){const t=[];if(Array.isArray(e)){const i=new Set(e.flat(1/0).reverse());for(const o of i)t.unshift(os(o))}else e!==void 0&&t.push(os(e));return t}static _$Eu(e,t){const i=t.attribute;return i===!1?void 0:typeof i=="string"?i:typeof e=="string"?e.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var e;this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),(e=this.constructor.l)==null||e.forEach(t=>t(this))}addController(e){var t,i;((t=this._$EO)!=null?t:this._$EO=new Set).add(e),this.renderRoot!==void 0&&this.isConnected&&((i=e.hostConnected)==null||i.call(e))}removeController(e){var t;(t=this._$EO)==null||t.delete(e)}_$E_(){const e=new Map,t=this.constructor.elementProperties;for(const i of t.keys())this.hasOwnProperty(i)&&(e.set(i,this[i]),delete this[i]);e.size>0&&(this._$Ep=e)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return to(t,this.constructor.elementStyles),t}connectedCallback(){var e;this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostConnected)==null?void 0:i.call(t)})}enableUpdating(e){}disconnectedCallback(){var e;(e=this._$EO)==null||e.forEach(t=>{var i;return(i=t.hostDisconnected)==null?void 0:i.call(t)})}attributeChangedCallback(e,t,i){this._$AK(e,i)}_$ET(e,t){var i;const o=this.constructor.elementProperties.get(e),r=this.constructor._$Eu(e,o);if(r!==void 0&&o.reflect===!0){const a=(((i=o.converter)==null?void 0:i.toAttribute)!==void 0?o.converter:Kt).toAttribute(t,o.type);this._$Em=e,a==null?this.removeAttribute(r):this.setAttribute(r,a),this._$Em=null}}_$AK(e,t){var i,o,r,a;const n=this.constructor,l=n._$Eh.get(e);if(l!==void 0&&this._$Em!==l){const d=n.getPropertyOptions(l),h=typeof d.converter=="function"?{fromAttribute:d.converter}:((i=d.converter)==null?void 0:i.fromAttribute)!==void 0?d.converter:Kt;this._$Em=l,this[l]=(a=(r=h.fromAttribute(t,d.type))!=null?r:(o=this._$Ej)==null?void 0:o.get(l))!=null?a:null,this._$Em=null}}requestUpdate(e,t,i){var o,r;if(e!==void 0){const a=this.constructor,n=this[e];if(i!=null||(i=a.getPropertyOptions(e)),!(((o=i.hasChanged)!=null?o:io)(n,t)||i.useDefault&&i.reflect&&n===((r=this._$Ej)==null?void 0:r.get(e))&&!this.hasAttribute(a._$Eu(e,i))))return;this.C(e,t,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(e,t,{useDefault:i,reflect:o,wrapped:r},a){var n,l,d;i&&!((n=this._$Ej)!=null?n:this._$Ej=new Map).has(e)&&(this._$Ej.set(e,(l=a!=null?a:t)!=null?l:this[e]),r!==!0||a!==void 0)||(this._$AL.has(e)||(this.hasUpdated||i||(t=void 0),this._$AL.set(e,t)),o===!0&&this._$Em!==e&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(e))}_$EP(){return st(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(t){Promise.reject(t)}const e=this.scheduleUpdate();return e!=null&&(yield e),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var e;if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[r,a]of this._$Ep)this[r]=a;this._$Ep=void 0}const o=this.constructor.elementProperties;if(o.size>0)for(const[r,a]of o){const{wrapped:n}=a,l=this[r];n!==!0||this._$AL.has(r)||l===void 0||this.C(r,void 0,a,l)}}let t=!1;const i=this._$AL;try{t=this.shouldUpdate(i),t?(this.willUpdate(i),(e=this._$EO)==null||e.forEach(o=>{var r;return(r=o.hostUpdate)==null?void 0:r.call(o)}),this.update(i)):this._$EM()}catch(o){throw t=!1,this._$EM(),o}t&&this._$AE(i)}willUpdate(e){}_$AE(e){var t;(t=this._$EO)==null||t.forEach(i=>{var o;return(o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(e)),this.updated(e)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(e){return!0}update(e){this._$Eq&&(this._$Eq=this._$Eq.forEach(t=>this._$ET(t,this[t]))),this._$EM()}updated(e){}firstUpdated(e){}}var ls;ne.elementStyles=[],ne.shadowRootOptions={mode:"open"},ne[ke("elementProperties")]=new Map,ne[ke("finalized")]=new Map,as==null||as({ReactiveElement:ne}),((ls=ue.reactiveElementVersions)!=null?ls:ue.reactiveElementVersions=[]).push("2.1.0");/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */const st=globalThis,ot=st.trustedTypes,ls=ot?ot.createPolicy("lit-html",{createHTML:s=>s}):void 0,io="$lit$",j=`lit$${Math.random().toFixed(9).slice(2)}$`,so="?"+j,en=`<${so}>`,te=document,Pe=()=>te.createComment(""),Se=s=>s===null||typeof s!="object"&&typeof s!="function",yi=Array.isArray,tn=s=>yi(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Dt=`[
22
- \f\r]`,ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,ds=/-->/g,hs=/>/g,J=RegExp(`>|${Dt}(?:([^\\s"'>=/]+)(${Dt}*=${Dt}*(?:[^
23
- \f\r"'\`<>=]|("|')|))|$)`,"g"),cs=/'/g,us=/"/g,oo=/^(?:script|style|textarea|title)$/i,pe=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),ps=new WeakMap,Q=te.createTreeWalker(te,129);function ro(s,e){if(!yi(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ls!==void 0?ls.createHTML(e):e}const sn=(s,e)=>{const t=s.length-1,i=[];let o,r=e===2?"<svg>":e===3?"<math>":"",n=ge;for(let a=0;a<t;a++){const l=s[a];let d,h,c=-1,p=0;for(;p<l.length&&(n.lastIndex=p,h=n.exec(l),h!==null);)p=n.lastIndex,n===ge?h[1]==="!--"?n=ds:h[1]!==void 0?n=hs:h[2]!==void 0?(oo.test(h[2])&&(o=RegExp("</"+h[2],"g")),n=J):h[3]!==void 0&&(n=J):n===J?h[0]===">"?(n=o!=null?o:ge,c=-1):h[1]===void 0?c=-2:(c=n.lastIndex-h[2].length,d=h[1],n=h[3]===void 0?J:h[3]==='"'?us:cs):n===us||n===cs?n=J:n===ds||n===hs?n=ge:(n=J,o=void 0);const m=n===J&&s[a+1].startsWith("/>")?" ":"";r+=n===ge?l+en:c>=0?(i.push(d),l.slice(0,c)+io+l.slice(c)+j+m):l+j+(c===-2?a:m)}return[ro(s,r+(s[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Te{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let r=0,n=0;const a=e.length-1,l=this.parts,[d,h]=sn(e,t);if(this.el=Te.createElement(d,i),Q.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=Q.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(io)){const p=h[n++],m=o.getAttribute(c).split(j),y=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:y[2],strings:m,ctor:y[1]==="."?rn:y[1]==="?"?nn:y[1]==="@"?an:mt}),o.removeAttribute(c)}else c.startsWith(j)&&(l.push({type:6,index:r}),o.removeAttribute(c));if(oo.test(o.tagName)){const c=o.textContent.split(j),p=c.length-1;if(p>0){o.textContent=ot?ot.emptyScript:"";for(let m=0;m<p;m++)o.append(c[m],Pe()),Q.nextNode(),l.push({type:2,index:++r});o.append(c[p],Pe())}}}else if(o.nodeType===8)if(o.data===so)l.push({type:2,index:r});else{let c=-1;for(;(c=o.data.indexOf(j,c+1))!==-1;)l.push({type:7,index:r}),c+=j.length-1}r++}}static createElement(e,t){const i=te.createElement("template");return i.innerHTML=e,i}}function me(s,e,t=s,i){var o,r,n;if(e===pe)return e;let a=i!==void 0?(o=t._$Co)==null?void 0:o[i]:t._$Cl;const l=Se(e)?void 0:e._$litDirective$;return(a==null?void 0:a.constructor)!==l&&((r=a==null?void 0:a._$AO)==null||r.call(a,!1),l===void 0?a=void 0:(a=new l(s),a._$AT(s,t,i)),i!==void 0?((n=t._$Co)!=null?n:t._$Co=[])[i]=a:t._$Cl=a),a!==void 0&&(e=me(s,a._$AS(s,e.values),a,i)),e}class on{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,r=((t=e==null?void 0:e.creationScope)!=null?t:te).importNode(i,!0);Q.currentNode=r;let n=Q.nextNode(),a=0,l=0,d=o[0];for(;d!==void 0;){if(a===d.index){let h;d.type===2?h=new Be(n,n.nextSibling,this,e):d.type===1?h=new d.ctor(n,d.name,d.strings,this,e):d.type===6&&(h=new ln(n,this,e)),this._$AV.push(h),d=o[++l]}a!==(d==null?void 0:d.index)&&(n=Q.nextNode(),a++)}return Q.currentNode=te,r}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Be{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,o){var r;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cv=(r=o==null?void 0:o.isConnected)!=null?r:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=me(this,e,t),Se(e)?e===A||e==null||e===""?(this._$AH!==A&&this._$AR(),this._$AH=A):e!==this._$AH&&e!==pe&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):tn(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==A&&Se(this._$AH)?this._$AA.nextSibling.data=e:this.T(te.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:o}=e,r=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Te.createElement(ro(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===r)this._$AH.p(i);else{const n=new on(r,this),a=n.u(this.options);n.p(i),this.T(a),this._$AH=n}}_$AC(e){let t=ps.get(e.strings);return t===void 0&&ps.set(e.strings,t=new Te(e)),t}k(e){yi(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,o=0;for(const r of e)o===t.length?t.push(i=new Be(this.O(Pe()),this.O(Pe()),this,this.options)):i=t[o],i._$AI(r),o++;o<t.length&&(this._$AR(i&&i._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class mt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,o,r){this.type=1,this._$AH=A,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A}_$AI(e,t=this,i,o){const r=this.strings;let n=!1;if(r===void 0)e=me(this,e,t,0),n=!Se(e)||e!==this._$AH&&e!==pe,n&&(this._$AH=e);else{const a=e;let l,d;for(e=r[0],l=0;l<r.length-1;l++)d=me(this,a[i+l],t,l),d===pe&&(d=this._$AH[l]),n||(n=!Se(d)||d!==this._$AH[l]),d===A?e=A:e!==A&&(e+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d}n&&!o&&this.j(e)}j(e){e===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class rn extends mt{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===A?void 0:e}}class nn extends mt{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==A)}}class an extends mt{constructor(e,t,i,o,r){super(e,t,i,o,r),this.type=5}_$AI(e,t=this){var i;if((e=(i=me(this,e,t,0))!=null?i:A)===pe)return;const o=this._$AH,r=e===A&&o!==A||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,n=e!==A&&(o===A||r);r&&this.element.removeEventListener(this.name,this,o),n&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class ln{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){me(this,e)}}const ms=st.litHtmlPolyfillSupport;var _s;ms==null||ms(Te,Be),((_s=st.litHtmlVersions)!=null?_s:st.litHtmlVersions=[]).push("3.2.1");const no=(s,e,t)=>{var i,o;const r=(i=t==null?void 0:t.renderBefore)!=null?i:e;let n=r._$litPart$;if(n===void 0){const a=(o=t==null?void 0:t.renderBefore)!=null?o:null;r._$litPart$=n=new Be(e.insertBefore(Pe(),a),a,void 0,t!=null?t:{})}return n._$AI(s),n};/**
21
+ */const ot=globalThis,rt=ot.trustedTypes,ds=rt?rt.createPolicy("lit-html",{createHTML:s=>s}):void 0,so="$lit$",j=`lit$${Math.random().toFixed(9).slice(2)}$`,oo="?"+j,ta=`<${oo}>`,te=document,Pe=()=>te.createComment(""),Se=s=>s===null||typeof s!="object"&&typeof s!="function",xi=Array.isArray,ia=s=>xi(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Ot=`[
22
+ \f\r]`,ge=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,hs=/-->/g,cs=/>/g,J=RegExp(`>|${Ot}(?:([^\\s"'>=/]+)(${Ot}*=${Ot}*(?:[^
23
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),us=/'/g,ps=/"/g,ro=/^(?:script|style|textarea|title)$/i,pe=Symbol.for("lit-noChange"),A=Symbol.for("lit-nothing"),ms=new WeakMap,Q=te.createTreeWalker(te,129);function ao(s,e){if(!xi(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return ds!==void 0?ds.createHTML(e):e}const sa=(s,e)=>{const t=s.length-1,i=[];let o,r=e===2?"<svg>":e===3?"<math>":"",a=ge;for(let n=0;n<t;n++){const l=s[n];let d,h,c=-1,p=0;for(;p<l.length&&(a.lastIndex=p,h=a.exec(l),h!==null);)p=a.lastIndex,a===ge?h[1]==="!--"?a=hs:h[1]!==void 0?a=cs:h[2]!==void 0?(ro.test(h[2])&&(o=RegExp("</"+h[2],"g")),a=J):h[3]!==void 0&&(a=J):a===J?h[0]===">"?(a=o!=null?o:ge,c=-1):h[1]===void 0?c=-2:(c=a.lastIndex-h[2].length,d=h[1],a=h[3]===void 0?J:h[3]==='"'?ps:us):a===ps||a===us?a=J:a===hs||a===cs?a=ge:(a=J,o=void 0);const m=a===J&&s[n+1].startsWith("/>")?" ":"";r+=a===ge?l+ta:c>=0?(i.push(d),l.slice(0,c)+so+l.slice(c)+j+m):l+j+(c===-2?n:m)}return[ao(s,r+(s[t]||"<?>")+(e===2?"</svg>":e===3?"</math>":"")),i]};class Te{constructor({strings:e,_$litType$:t},i){let o;this.parts=[];let r=0,a=0;const n=e.length-1,l=this.parts,[d,h]=sa(e,t);if(this.el=Te.createElement(d,i),Q.currentNode=this.el.content,t===2||t===3){const c=this.el.content.firstChild;c.replaceWith(...c.childNodes)}for(;(o=Q.nextNode())!==null&&l.length<n;){if(o.nodeType===1){if(o.hasAttributes())for(const c of o.getAttributeNames())if(c.endsWith(so)){const p=h[a++],m=o.getAttribute(c).split(j),y=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:y[2],strings:m,ctor:y[1]==="."?ra:y[1]==="?"?aa:y[1]==="@"?na:_t}),o.removeAttribute(c)}else c.startsWith(j)&&(l.push({type:6,index:r}),o.removeAttribute(c));if(ro.test(o.tagName)){const c=o.textContent.split(j),p=c.length-1;if(p>0){o.textContent=rt?rt.emptyScript:"";for(let m=0;m<p;m++)o.append(c[m],Pe()),Q.nextNode(),l.push({type:2,index:++r});o.append(c[p],Pe())}}}else if(o.nodeType===8)if(o.data===oo)l.push({type:2,index:r});else{let c=-1;for(;(c=o.data.indexOf(j,c+1))!==-1;)l.push({type:7,index:r}),c+=j.length-1}r++}}static createElement(e,t){const i=te.createElement("template");return i.innerHTML=e,i}}function me(s,e,t=s,i){var o,r,a;if(e===pe)return e;let n=i!==void 0?(o=t._$Co)==null?void 0:o[i]:t._$Cl;const l=Se(e)?void 0:e._$litDirective$;return(n==null?void 0:n.constructor)!==l&&((r=n==null?void 0:n._$AO)==null||r.call(n,!1),l===void 0?n=void 0:(n=new l(s),n._$AT(s,t,i)),i!==void 0?((a=t._$Co)!=null?a:t._$Co=[])[i]=n:t._$Cl=n),n!==void 0&&(e=me(s,n._$AS(s,e.values),n,i)),e}class oa{constructor(e,t){this._$AV=[],this._$AN=void 0,this._$AD=e,this._$AM=t}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(e){var t;const{el:{content:i},parts:o}=this._$AD,r=((t=e==null?void 0:e.creationScope)!=null?t:te).importNode(i,!0);Q.currentNode=r;let a=Q.nextNode(),n=0,l=0,d=o[0];for(;d!==void 0;){if(n===d.index){let h;d.type===2?h=new Re(a,a.nextSibling,this,e):d.type===1?h=new d.ctor(a,d.name,d.strings,this,e):d.type===6&&(h=new la(a,this,e)),this._$AV.push(h),d=o[++l]}n!==(d==null?void 0:d.index)&&(a=Q.nextNode(),n++)}return Q.currentNode=te,r}p(e){let t=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(e,i,t),t+=i.strings.length-2):i._$AI(e[t])),t++}}class Re{get _$AU(){var e,t;return(t=(e=this._$AM)==null?void 0:e._$AU)!=null?t:this._$Cv}constructor(e,t,i,o){var r;this.type=2,this._$AH=A,this._$AN=void 0,this._$AA=e,this._$AB=t,this._$AM=i,this.options=o,this._$Cv=(r=o==null?void 0:o.isConnected)!=null?r:!0}get parentNode(){let e=this._$AA.parentNode;const t=this._$AM;return t!==void 0&&(e==null?void 0:e.nodeType)===11&&(e=t.parentNode),e}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(e,t=this){e=me(this,e,t),Se(e)?e===A||e==null||e===""?(this._$AH!==A&&this._$AR(),this._$AH=A):e!==this._$AH&&e!==pe&&this._(e):e._$litType$!==void 0?this.$(e):e.nodeType!==void 0?this.T(e):ia(e)?this.k(e):this._(e)}O(e){return this._$AA.parentNode.insertBefore(e,this._$AB)}T(e){this._$AH!==e&&(this._$AR(),this._$AH=this.O(e))}_(e){this._$AH!==A&&Se(this._$AH)?this._$AA.nextSibling.data=e:this.T(te.createTextNode(e)),this._$AH=e}$(e){var t;const{values:i,_$litType$:o}=e,r=typeof o=="number"?this._$AC(e):(o.el===void 0&&(o.el=Te.createElement(ao(o.h,o.h[0]),this.options)),o);if(((t=this._$AH)==null?void 0:t._$AD)===r)this._$AH.p(i);else{const a=new oa(r,this),n=a.u(this.options);a.p(i),this.T(n),this._$AH=a}}_$AC(e){let t=ms.get(e.strings);return t===void 0&&ms.set(e.strings,t=new Te(e)),t}k(e){xi(this._$AH)||(this._$AH=[],this._$AR());const t=this._$AH;let i,o=0;for(const r of e)o===t.length?t.push(i=new Re(this.O(Pe()),this.O(Pe()),this,this.options)):i=t[o],i._$AI(r),o++;o<t.length&&(this._$AR(i&&i._$AB.nextSibling,o),t.length=o)}_$AR(e=this._$AA.nextSibling,t){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,t);e&&e!==this._$AB;){const o=e.nextSibling;e.remove(),e=o}}setConnected(e){var t;this._$AM===void 0&&(this._$Cv=e,(t=this._$AP)==null||t.call(this,e))}}class _t{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(e,t,i,o,r){this.type=1,this._$AH=A,this._$AN=void 0,this.element=e,this.name=t,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A}_$AI(e,t=this,i,o){const r=this.strings;let a=!1;if(r===void 0)e=me(this,e,t,0),a=!Se(e)||e!==this._$AH&&e!==pe,a&&(this._$AH=e);else{const n=e;let l,d;for(e=r[0],l=0;l<r.length-1;l++)d=me(this,n[i+l],t,l),d===pe&&(d=this._$AH[l]),a||(a=!Se(d)||d!==this._$AH[l]),d===A?e=A:e!==A&&(e+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d}a&&!o&&this.j(e)}j(e){e===A?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,e!=null?e:"")}}class ra extends _t{constructor(){super(...arguments),this.type=3}j(e){this.element[this.name]=e===A?void 0:e}}class aa extends _t{constructor(){super(...arguments),this.type=4}j(e){this.element.toggleAttribute(this.name,!!e&&e!==A)}}class na extends _t{constructor(e,t,i,o,r){super(e,t,i,o,r),this.type=5}_$AI(e,t=this){var i;if((e=(i=me(this,e,t,0))!=null?i:A)===pe)return;const o=this._$AH,r=e===A&&o!==A||e.capture!==o.capture||e.once!==o.once||e.passive!==o.passive,a=e!==A&&(o===A||r);r&&this.element.removeEventListener(this.name,this,o),a&&this.element.addEventListener(this.name,this,e),this._$AH=e}handleEvent(e){var t,i;typeof this._$AH=="function"?this._$AH.call((i=(t=this.options)==null?void 0:t.host)!=null?i:this.element,e):this._$AH.handleEvent(e)}}class la{constructor(e,t,i){this.element=e,this.type=6,this._$AN=void 0,this._$AM=t,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(e){me(this,e)}}const _s=ot.litHtmlPolyfillSupport;var fs;_s==null||_s(Te,Re),((fs=ot.litHtmlVersions)!=null?fs:ot.litHtmlVersions=[]).push("3.3.0");const no=(s,e,t)=>{var i,o;const r=(i=t==null?void 0:t.renderBefore)!=null?i:e;let a=r._$litPart$;if(a===void 0){const n=(o=t==null?void 0:t.renderBefore)!=null?o:null;r._$litPart$=a=new Re(e.insertBefore(Pe(),n),n,void 0,t!=null?t:{})}return a._$AI(s),a};/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
27
- */class le extends ae{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=no(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return pe}}var fs;le._$litElement$=!0,le.finalized=!0,(fs=globalThis.litElementHydrateSupport)==null||fs.call(globalThis,{LitElement:le});const vs=globalThis.litElementPolyfillSupport;vs==null||vs({LitElement:le});var gs;((gs=globalThis.litElementVersions)!=null?gs:globalThis.litElementVersions=[]).push("4.1.1");/**
27
+ */const De=globalThis;class le extends ne{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;const t=super.createRenderRoot();return(e=this.renderOptions).renderBefore!=null||(e.renderBefore=t.firstChild),t}update(e){const t=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(e),this._$Do=no(t,this.renderRoot,this.renderOptions)}connectedCallback(){var e;super.connectedCallback(),(e=this._$Do)==null||e.setConnected(!0)}disconnectedCallback(){var e;super.disconnectedCallback(),(e=this._$Do)==null||e.setConnected(!1)}render(){return pe}}var vs;le._$litElement$=!0,le.finalized=!0,(vs=De.litElementHydrateSupport)==null||vs.call(De,{LitElement:le});const gs=De.litElementPolyfillSupport;gs==null||gs({LitElement:le});var bs;((bs=De.litElementVersions)!=null?bs:De.litElementVersions=[]).push("4.2.0");/**
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 ao=s=>class extends s{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e==="theme"&&this._set_theme(i)}};/**
31
+ */const lo=s=>class extends s{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,t,i){super.attributeChangedCallback(e,t,i),e==="theme"&&this._set_theme(i)}};/**
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 lo=[],Kt=new Set,xi=new Set;function ho(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function dn(s){return ho(customElements.get(s))}function hn(s=[]){return[s].flat(1/0).filter(e=>e instanceof bi?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function co(s,e){return(s||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function uo(s){return s.map(e=>e.cssText).join(`
36
- `)}const rt="vaadin-themable-mixin-style";function cn(s,e){const t=document.createElement("style");t.id=rt,t.textContent=uo(s),e.content.appendChild(t)}function un(s){if(!s.shadowRoot)return;const e=s.constructor;if(s instanceof le)[...s.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),eo(s.shadowRoot,e.elementStyles);else{const t=s.shadowRoot.getElementById(rt),i=e.prototype._template;t.textContent=i.content.getElementById(rt).textContent}}function pn(s){Kt.forEach(e=>{const t=e.deref();t instanceof s?un(t):t||Kt.delete(e)})}function po(s){if(s.prototype instanceof le)s.elementStyles=s.finalizeStyles(s.styles);else{const e=s.prototype._template;e.content.getElementById(rt).textContent=uo(s.getStylesForThis())}xi.forEach(e=>{const t=customElements.get(e);t!==s&&t.prototype instanceof s&&po(t)})}function mn(s,e){const t=s.__themes;return!t||!e?!1:t.some(i=>i.styles.some(o=>e.some(r=>r.cssText===o.cssText)))}function _(s,e,t={}){e=hn(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,e,t):lo.push({themeFor:s,styles:e,include:t.include,moduleId:t.moduleId}),s&&xi.forEach(i=>{if(co(s,i)&&dn(i)){const o=customElements.get(i);mn(o,e)?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".`),po(o),pn(o)}})}function Gt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():lo}function _n(s=""){let e=0;return s.startsWith("lumo-")||s.startsWith("material-")?e=1:s.startsWith("vaadin-")&&(e=2),e}function mo(s){const e=[];return s.include&&[].concat(s.include).forEach(t=>{const i=Gt().find(o=>o.moduleId===t);i?e.push(...mo(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)},s.styles),e}function fn(s){const e=`${s}-default-theme`,t=Gt().filter(i=>i.moduleId!==e&&co(i.themeFor,s)).map(i=>Zs(tt({},i),{styles:[...mo(i),...i.styles],includePriority:_n(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return t.length>0?t:Gt().filter(i=>i.moduleId===e)}const x=s=>class extends ao(s){constructor(){super(),Kt.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&xi.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||ho(this)||cn(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=s.__themes||[],t=Object.getPrototypeOf(this.prototype),i=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...i,...fn(this.is)];const o=this.__themes.flatMap(r=>r.styles);return o.filter((r,n)=>n===o.lastIndexOf(r))}};/**
35
+ */const ho=[],Gt=new Set,wi=new Set;function co(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function da(s){return co(customElements.get(s))}function ha(s=[]){return[s].flat(1/0).filter(e=>e instanceof yi?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function uo(s,e){return(s||"").split(" ").some(t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e))}function po(s){return s.map(e=>e.cssText).join(`
36
+ `)}const at="vaadin-themable-mixin-style";function ca(s,e){const t=document.createElement("style");t.id=at,t.textContent=po(s),e.content.appendChild(t)}function ua(s){if(!s.shadowRoot)return;const e=s.constructor;if(s instanceof le)[...s.shadowRoot.querySelectorAll("style")].forEach(t=>t.remove()),to(s.shadowRoot,e.elementStyles);else{const t=s.shadowRoot.getElementById(at),i=e.prototype._template;t.textContent=i.content.getElementById(at).textContent}}function pa(s){Gt.forEach(e=>{const t=e.deref();t instanceof s?ua(t):t||Gt.delete(e)})}function mo(s){if(s.prototype instanceof le)s.elementStyles=s.finalizeStyles(s.styles);else{const e=s.prototype._template;e.content.getElementById(at).textContent=po(s.getStylesForThis())}wi.forEach(e=>{const t=customElements.get(e);t!==s&&t.prototype instanceof s&&mo(t)})}function ma(s,e){const t=s.__themes;return!t||!e?!1:t.some(i=>i.styles.some(o=>e.some(r=>r.cssText===o.cssText)))}function _(s,e,t={}){e=ha(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,e,t):ho.push({themeFor:s,styles:e,include:t.include,moduleId:t.moduleId}),s&&wi.forEach(i=>{if(uo(s,i)&&da(i)){const o=customElements.get(i);ma(o,e)?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".`),mo(o),pa(o)}})}function Xt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():ho}function _a(s=""){let e=0;return s.startsWith("lumo-")||s.startsWith("material-")?e=1:s.startsWith("vaadin-")&&(e=2),e}function _o(s){const e=[];return s.include&&[].concat(s.include).forEach(t=>{const i=Xt().find(o=>o.moduleId===t);i?e.push(..._o(i),...i.styles):console.warn(`Included moduleId ${t} not found in style registry`)},s.styles),e}function fa(s){const e=`${s}-default-theme`,t=Xt().filter(i=>i.moduleId!==e&&uo(i.themeFor,s)).map(i=>eo(it({},i),{styles:[..._o(i),...i.styles],includePriority:_a(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return t.length>0?t:Xt().filter(i=>i.moduleId===e)}const x=s=>class extends lo(s){constructor(){super(),Gt.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&wi.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||co(this)||ca(this.getStylesForThis(),e)}static finalizeStyles(e){const t=this.getStylesForThis();return e?[...[e].flat(1/0),...t]:t}static getStylesForThis(){const e=s.__themes||[],t=Object.getPrototypeOf(this.prototype),i=(t?t.constructor.__themes:[])||[];this.__themes=[...e,...i,...fa(this.is)];const o=this.__themes.flatMap(r=>r.styles);return o.filter((r,a)=>a===o.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 vn=(s,...e)=>{const t=document.createElement("style");t.id=s,t.textContent=e.map(i=>i.toString()).join(`
41
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},fe=(s,...e)=>{vn(`lumo-${s}`,e)};/**
40
+ */const va=(s,...e)=>{const t=document.createElement("style");t.id=s,t.textContent=e.map(i=>i.toString()).join(`
41
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",t)},fe=(s,...e)=>{va(`lumo-${s}`,e)};/**
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 gn=u`
45
+ */const ga=u`
46
46
  :host {
47
47
  /* Base (background) */
48
48
  --lumo-base-color: #fff;
@@ -127,7 +127,7 @@
127
127
  --lumo-disabled-text-color: GrayText;
128
128
  }
129
129
  }
130
- `;fe("color-props",gn);const bn=u`
130
+ `;fe("color-props",ga);const ba=u`
131
131
  [theme~='dark'] {
132
132
  /* Base (background) */
133
133
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -245,11 +245,11 @@
245
245
  pre code {
246
246
  background: transparent;
247
247
  }
248
- `;_("",bn,{moduleId:"lumo-color"});/**
248
+ `;_("",ba,{moduleId:"lumo-color"});/**
249
249
  * @license
250
250
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
251
251
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
252
- */const yn=u`
252
+ */const ya=u`
253
253
  @font-face {
254
254
  font-family: 'lumo-icons';
255
255
  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==)
@@ -302,11 +302,11 @@
302
302
  --lumo-icons-upload: '\\ea29';
303
303
  --lumo-icons-user: '\\ea2a';
304
304
  }
305
- `;fe("font-icons",yn);/**
305
+ `;fe("font-icons",ya);/**
306
306
  * @license
307
307
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
308
308
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
309
- */const xn=u`
309
+ */const xa=u`
310
310
  :host {
311
311
  --lumo-size-xs: 1.625rem;
312
312
  --lumo-size-s: 1.875rem;
@@ -321,11 +321,11 @@
321
321
  /* For backwards compatibility */
322
322
  --lumo-icon-size: var(--lumo-icon-size-m);
323
323
  }
324
- `;fe("sizing-props",xn);/**
324
+ `;fe("sizing-props",xa);/**
325
325
  * @license
326
326
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
327
327
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
328
- */const wn=u`
328
+ */const wa=u`
329
329
  :host {
330
330
  /* Square */
331
331
  --lumo-space-xs: 0.25rem;
@@ -348,11 +348,11 @@
348
348
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
349
349
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
350
350
  }
351
- `;fe("spacing-props",wn);/**
351
+ `;fe("spacing-props",wa);/**
352
352
  * @license
353
353
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
354
354
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
355
- */const Cn=u`
355
+ */const Ca=u`
356
356
  :host {
357
357
  /* Border radius */
358
358
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -452,11 +452,11 @@
452
452
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
453
453
  --vaadin-input-field-value-font-weight: 500;
454
454
  }
455
- `;fe("style-props",Cn);/**
455
+ `;fe("style-props",Ca);/**
456
456
  * @license
457
457
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
458
458
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
459
- */const An=u`
459
+ */const Aa=u`
460
460
  :host {
461
461
  /* prettier-ignore */
462
462
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -476,7 +476,7 @@
476
476
  --lumo-line-height-s: 1.375;
477
477
  --lumo-line-height-m: 1.625;
478
478
  }
479
- `,kn=u`
479
+ `,Ea=u`
480
480
  body,
481
481
  :host {
482
482
  font-family: var(--lumo-font-family);
@@ -568,7 +568,7 @@
568
568
  border-left: none;
569
569
  border-right: 2px solid var(--lumo-contrast-30pct);
570
570
  }
571
- `;_("",kn,{moduleId:"lumo-typography"});fe("typography-props",An);_("vaadin-checkbox",u`
571
+ `;_("",Ea,{moduleId:"lumo-typography"});fe("typography-props",Aa);_("vaadin-checkbox",u`
572
572
  :host {
573
573
  color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
574
574
  font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
@@ -888,7 +888,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
888
888
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
889
889
  Code distributed by Google as part of the polymer project is also
890
890
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
891
- */let En=/(url\()([^)]*)(\))/g,In=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Ue,O;function Ie(s,e){if(s&&In.test(s)||s==="//")return s;if(Ue===void 0){Ue=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Ue=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),Ue)try{return new URL(s,e).href}catch(t){return s}return O||(O=document.implementation.createHTMLDocument("temp"),O.base=O.createElement("base"),O.head.appendChild(O.base),O.anchor=O.createElement("a"),O.body.appendChild(O.anchor)),O.base.href=e,O.anchor.href=s,O.anchor.href||s}function wi(s,e){return s.replace(En,function(t,i,o,r){return i+"'"+Ie(o.replace(/["']/g,""),e)+"'"+r})}function Ci(s){return s.substring(0,s.lastIndexOf("/")+1)}/**
891
+ */let ka=/(url\()([^)]*)(\))/g,Ia=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Ue,O;function Ie(s,e){if(s&&Ia.test(s)||s==="//")return s;if(Ue===void 0){Ue=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",Ue=t.href==="http://a/c%20d"}catch(t){}}if(e||(e=document.baseURI||window.location.href),Ue)try{return new URL(s,e).href}catch(t){return s}return O||(O=document.implementation.createHTMLDocument("temp"),O.base=O.createElement("base"),O.head.appendChild(O.base),O.anchor=O.createElement("a"),O.body.appendChild(O.anchor)),O.base.href=e,O.anchor.href=s,O.anchor.href||s}function Ci(s,e){return s.replace(ka,function(t,i,o,r){return i+"'"+Ie(o.replace(/["']/g,""),e)+"'"+r})}function Ai(s){return s.substring(0,s.lastIndexOf("/")+1)}/**
892
892
  @license
893
893
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
894
894
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -896,7 +896,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
896
896
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
897
897
  Code distributed by Google as part of the polymer project is also
898
898
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
899
- */const _o=!window.ShadyDOM||!window.ShadyDOM.inUse,Pn=_o&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const s=new CSSStyleSheet;s.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[s],e.shadowRoot.adoptedStyleSheets[0]===s}catch(s){return!1}})();let Sn=window.Polymer&&window.Polymer.rootPath||Ci(document.baseURI||window.location.href),nt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,at=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Tn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,fo=window.Polymer&&window.Polymer.legacyOptimizations||!1,vo=window.Polymer&&window.Polymer.legacyWarnings||!1,Dn=window.Polymer&&window.Polymer.syncInitialRender||!1,Xt=window.Polymer&&window.Polymer.legacyUndefined||!1,On=window.Polymer&&window.Polymer.orderedComputed||!1,bs=window.Polymer&&window.Polymer.removeNestedTemplates||!1,zn=window.Polymer&&window.Polymer.fastDomIf||!1,ys=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Nn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
899
+ */const fo=!window.ShadyDOM||!window.ShadyDOM.inUse,Pa=fo&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const s=new CSSStyleSheet;s.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[s],e.shadowRoot.adoptedStyleSheets[0]===s}catch(s){return!1}})();let Sa=window.Polymer&&window.Polymer.rootPath||Ai(document.baseURI||window.location.href),nt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,lt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Ta=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,vo=window.Polymer&&window.Polymer.legacyOptimizations||!1,go=window.Polymer&&window.Polymer.legacyWarnings||!1,Da=window.Polymer&&window.Polymer.syncInitialRender||!1,Jt=window.Polymer&&window.Polymer.legacyUndefined||!1,Oa=window.Polymer&&window.Polymer.orderedComputed||!1,ys=window.Polymer&&window.Polymer.removeNestedTemplates||!1,za=window.Polymer&&window.Polymer.fastDomIf||!1,xs=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Na=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
900
900
  @license
901
901
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
902
902
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -904,7 +904,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
904
904
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
905
905
  Code distributed by Google as part of the polymer project is also
906
906
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
907
- */let Vn=0;const w=function(s){let e=s.__mixinApplications;e||(e=new WeakMap,s.__mixinApplications=e);let t=Vn++;function i(o){let r=o.__mixinSet;if(r&&r[t])return o;let n=e,a=n.get(o);if(!a){a=s(o),n.set(o,a);let l=Object.create(a.__mixinSet||r||null);l[t]=!0,a.__mixinSet=l}return a}return i};/**
907
+ */let Va=0;const w=function(s){let e=s.__mixinApplications;e||(e=new WeakMap,s.__mixinApplications=e);let t=Va++;function i(o){let r=o.__mixinSet;if(r&&r[t])return o;let a=e,n=a.get(o);if(!n){n=s(o),a.set(o,n);let l=Object.create(n.__mixinSet||r||null);l[t]=!0,n.__mixinSet=l}return n}return i};/**
908
908
  @license
909
909
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
910
910
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -912,7 +912,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
912
912
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
913
913
  Code distributed by Google as part of the polymer project is also
914
914
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
915
- */let Ai={},go={};function xs(s,e){Ai[s]=go[s.toLowerCase()]=e}function ws(s){return Ai[s]||go[s.toLowerCase()]}function Ln(s){s.querySelector("style")&&console.warn("dom-module %s has style outside template",s.id)}class De extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=ws(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,o){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Ie(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Ci(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(at&&ws(e)!==void 0)throw xs(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,xs(e,this),Ln(this)}}}De.prototype.modules=Ai;customElements.define("dom-module",De);/**
915
+ */let Ei={},bo={};function ws(s,e){Ei[s]=bo[s.toLowerCase()]=e}function Cs(s){return Ei[s]||bo[s.toLowerCase()]}function La(s){s.querySelector("style")&&console.warn("dom-module %s has style outside template",s.id)}class Oe extends HTMLElement{static get observedAttributes(){return["id"]}static import(e,t){if(e){let i=Cs(e);return i&&t?i.querySelector(t):i}return null}attributeChangedCallback(e,t,i,o){t!==i&&this.register()}get assetpath(){if(!this.__assetpath){const e=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,t=Ie(this.getAttribute("assetpath")||"",e.baseURI);this.__assetpath=Ai(t)}return this.__assetpath}register(e){if(e=e||this.id,e){if(lt&&Cs(e)!==void 0)throw ws(e,null),new Error(`strictTemplatePolicy: dom-module ${e} re-registered`);this.id=e,ws(e,this),La(this)}}}Oe.prototype.modules=Ei;customElements.define("dom-module",Oe);/**
916
916
  @license
917
917
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
918
918
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -920,7 +920,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
920
920
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
921
921
  Code distributed by Google as part of the polymer project is also
922
922
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
923
- */const Mn="link[rel=import][type~=css]",Fn="include",Cs="shady-unscoped";function bo(s){return De.import(s)}function As(s){let e=s.body?s.body:s;const t=wi(e.textContent,s.baseURI),i=document.createElement("style");return i.textContent=t,i}function Bn(s){const e=s.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...Rn(e[i]));return t}function Rn(s){const e=bo(s);if(!e)return console.warn("Could not find style data in module named",s),[];if(e._styles===void 0){const t=[];t.push(...xo(e));const i=e.querySelector("template");i&&t.push(...yo(i,e.assetpath)),e._styles=t}return e._styles}function yo(s,e){if(!s._styles){const t=[],i=s.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let r=i[o],n=r.getAttribute(Fn);n&&t.push(...Bn(n).filter(function(a,l,d){return d.indexOf(a)===l})),e&&(r.textContent=wi(r.textContent,e)),t.push(r)}s._styles=t}return s._styles}function $n(s){let e=bo(s);return e?xo(e):[]}function xo(s){const e=[],t=s.querySelectorAll(Mn);for(let i=0;i<t.length;i++){let o=t[i];if(o.import){const r=o.import,n=o.hasAttribute(Cs);if(n&&!r._unscopedStyle){const a=As(r);a.setAttribute(Cs,""),r._unscopedStyle=a}else r._style||(r._style=As(r));e.push(n?r._unscopedStyle:r._style)}}return e}/**
923
+ */const Ma="link[rel=import][type~=css]",Fa="include",As="shady-unscoped";function yo(s){return Oe.import(s)}function Es(s){let e=s.body?s.body:s;const t=Ci(e.textContent,s.baseURI),i=document.createElement("style");return i.textContent=t,i}function Ba(s){const e=s.trim().split(/\s+/),t=[];for(let i=0;i<e.length;i++)t.push(...Ra(e[i]));return t}function Ra(s){const e=yo(s);if(!e)return console.warn("Could not find style data in module named",s),[];if(e._styles===void 0){const t=[];t.push(...wo(e));const i=e.querySelector("template");i&&t.push(...xo(i,e.assetpath)),e._styles=t}return e._styles}function xo(s,e){if(!s._styles){const t=[],i=s.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let r=i[o],a=r.getAttribute(Fa);a&&t.push(...Ba(a).filter(function(n,l,d){return d.indexOf(n)===l})),e&&(r.textContent=Ci(r.textContent,e)),t.push(r)}s._styles=t}return s._styles}function $a(s){let e=yo(s);return e?wo(e):[]}function wo(s){const e=[],t=s.querySelectorAll(Ma);for(let i=0;i<t.length;i++){let o=t[i];if(o.import){const r=o.import,a=o.hasAttribute(As);if(a&&!r._unscopedStyle){const n=Es(r);n.setAttribute(As,""),r._unscopedStyle=n}else r._style||(r._style=Es(r));e.push(a?r._unscopedStyle:r._style)}}return e}/**
924
924
  @license
925
925
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
926
926
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -928,7 +928,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
928
928
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
929
929
  Code distributed by Google as part of the polymer project is also
930
930
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
931
- */const k=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?s=>ShadyDOM.patch(s):s=>s;/**
931
+ */const E=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?s=>ShadyDOM.patch(s):s=>s;/**
932
932
  @license
933
933
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
934
934
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -936,7 +936,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
936
936
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
937
937
  Code distributed by Google as part of the polymer project is also
938
938
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
939
- */function Jt(s){return s.indexOf(".")>=0}function ie(s){let e=s.indexOf(".");return e===-1?s:s.slice(0,e)}function wo(s,e){return s.indexOf(e+".")===0}function Oe(s,e){return e.indexOf(s+".")===0}function ze(s,e,t){return e+t.slice(s.length)}function Hn(s,e){return s===e||wo(s,e)||Oe(s,e)}function Ce(s){if(Array.isArray(s)){let e=[];for(let t=0;t<s.length;t++){let i=s[t].toString().split(".");for(let o=0;o<i.length;o++)e.push(i[o])}return e.join(".")}else return s}function Co(s){return Array.isArray(s)?Ce(s).split("."):s.toString().split(".")}function D(s,e,t){let i=s,o=Co(e);for(let r=0;r<o.length;r++){if(!i)return;let n=o[r];i=i[n]}return t&&(t.path=o.join(".")),i}function ks(s,e,t){let i=s,o=Co(e),r=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let a=o[n];if(i=i[a],!i)return}i[r]=t}else i[e]=t;return o.join(".")}/**
939
+ */function Qt(s){return s.indexOf(".")>=0}function ie(s){let e=s.indexOf(".");return e===-1?s:s.slice(0,e)}function Co(s,e){return s.indexOf(e+".")===0}function ze(s,e){return e.indexOf(s+".")===0}function Ne(s,e,t){return e+t.slice(s.length)}function Ha(s,e){return s===e||Co(s,e)||ze(s,e)}function Ce(s){if(Array.isArray(s)){let e=[];for(let t=0;t<s.length;t++){let i=s[t].toString().split(".");for(let o=0;o<i.length;o++)e.push(i[o])}return e.join(".")}else return s}function Ao(s){return Array.isArray(s)?Ce(s).split("."):s.toString().split(".")}function D(s,e,t){let i=s,o=Ao(e);for(let r=0;r<o.length;r++){if(!i)return;let a=o[r];i=i[a]}return t&&(t.path=o.join(".")),i}function ks(s,e,t){let i=s,o=Ao(e),r=o[o.length-1];if(o.length>1){for(let a=0;a<o.length-1;a++){let n=o[a];if(i=i[n],!i)return}i[r]=t}else i[e]=t;return o.join(".")}/**
940
940
  @license
941
941
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
942
942
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -944,7 +944,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
944
944
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
945
945
  Code distributed by Google as part of the polymer project is also
946
946
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
947
- */const lt={},Un=/-[a-z]/g,qn=/([A-Z])/g;function Ao(s){return lt[s]||(lt[s]=s.indexOf("-")<0?s:s.replace(Un,e=>e[1].toUpperCase()))}function _t(s){return lt[s]||(lt[s]=s.replace(qn,"-$1").toLowerCase())}/**
947
+ */const dt={},qa=/-[a-z]/g,Ua=/([A-Z])/g;function Eo(s){return dt[s]||(dt[s]=s.indexOf("-")<0?s:s.replace(qa,e=>e[1].toUpperCase()))}function ft(s){return dt[s]||(dt[s]=s.replace(Ua,"-$1").toLowerCase())}/**
948
948
  @license
949
949
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
950
950
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -952,7 +952,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
952
952
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
953
953
  Code distributed by Google as part of the polymer project is also
954
954
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
955
- */let jn=0,ko=0,de=[],Wn=0,Qt=!1,Eo=document.createTextNode("");new window.MutationObserver(Yn).observe(Eo,{characterData:!0});function Yn(){Qt=!1;const s=de.length;for(let e=0;e<s;e++){let t=de[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}de.splice(0,s),ko+=s}const Kn={after(s){return{run(e){return window.setTimeout(e,s)},cancel(e){window.clearTimeout(e)}}},run(s,e){return window.setTimeout(s,e)},cancel(s){window.clearTimeout(s)}},Io={run(s){return Qt||(Qt=!0,Eo.textContent=Wn++),de.push(s),jn++},cancel(s){const e=s-ko;if(e>=0){if(!de[e])throw new Error("invalid async handle: "+s);de[e]=null}}};/**
955
+ */let ja=0,ko=0,de=[],Wa=0,Zt=!1,Io=document.createTextNode("");new window.MutationObserver(Ya).observe(Io,{characterData:!0});function Ya(){Zt=!1;const s=de.length;for(let e=0;e<s;e++){let t=de[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}de.splice(0,s),ko+=s}const Ka={after(s){return{run(e){return window.setTimeout(e,s)},cancel(e){window.clearTimeout(e)}}},run(s,e){return window.setTimeout(s,e)},cancel(s){window.clearTimeout(s)}},Po={run(s){return Zt||(Zt=!0,Io.textContent=Wa++),de.push(s),ja++},cancel(s){const e=s-ko;if(e>=0){if(!de[e])throw new Error("invalid async handle: "+s);de[e]=null}}};/**
956
956
  @license
957
957
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
958
958
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -960,7 +960,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
960
960
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
961
961
  Code distributed by Google as part of the polymer project is also
962
962
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
963
- */const Gn=Io,Po=w(s=>{class e extends s{static createProperties(i){const o=this.prototype;for(let r in i)r in o||o._createPropertyAccessor(r)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){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,o))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?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,o){this._setPendingProperty(i,o)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,r){let n=this.__data[i],a=this._shouldPropertyChange(i,o,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=o,this.__dataPending[i]=o),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Gn.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,o=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,o,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,r)),this.__dataCounter--}_shouldPropertiesChange(i,o,r){return!!o}_propertiesChanged(i,o,r){}_shouldPropertyChange(i,o,r){return r!==o&&(r===r||o===o)}attributeChangedCallback(i,o,r,n){o!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,r,n)}_attributeToProperty(i,o,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(o,r||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,o,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,o,r){const n=this._serializeValue(o);(r==="class"||r==="name"||r==="slot")&&(i=k(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,o){switch(o){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return e});/**
963
+ */const Ga=Po,So=w(s=>{class e extends s{static createProperties(i){const o=this.prototype;for(let r in i)r in o||o._createPropertyAccessor(r)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,o){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,o))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let o=this.__dataAttributes[i];return o||(o=this.constructor.attributeNameForProperty(i),this.__dataAttributes[o]=i),o}_definePropertyAccessor(i,o){Object.defineProperty(this,i,{get(){return this.__data[i]},set:o?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,o){this._setPendingProperty(i,o)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,o,r){let a=this.__data[i],n=this._shouldPropertyChange(i,o,a);return n&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=a),this.__data[i]=o,this.__dataPending[i]=o),n}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Ga.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,o=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,o,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,o,r)),this.__dataCounter--}_shouldPropertiesChange(i,o,r){return!!o}_propertiesChanged(i,o,r){}_shouldPropertyChange(i,o,r){return r!==o&&(r===r||o===o)}attributeChangedCallback(i,o,r,a){o!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,o,r,a)}_attributeToProperty(i,o,r){if(!this.__serializing){const a=this.__dataAttributes,n=a&&a[i]||i;this[n]=this._deserializeValue(o,r||this.constructor.typeForProperty(n))}}_propertyToAttribute(i,o,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,o||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,o,r){const a=this._serializeValue(o);(r==="class"||r==="name"||r==="slot")&&(i=E(i)),a===void 0?i.removeAttribute(r):i.setAttribute(r,a===""&&window.trustedTypes?window.trustedTypes.emptyScript:a)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,o){switch(o){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return e});/**
964
964
  @license
965
965
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
966
966
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -968,7 +968,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
968
968
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
969
969
  Code distributed by Google as part of the polymer project is also
970
970
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
971
- */const So={};let qe=HTMLElement.prototype;for(;qe;){let s=Object.getOwnPropertyNames(qe);for(let e=0;e<s.length;e++)So[s[e]]=!0;qe=Object.getPrototypeOf(qe)}const Xn=window.trustedTypes?s=>trustedTypes.isHTML(s)||trustedTypes.isScript(s)||trustedTypes.isScriptURL(s):()=>!1;function Jn(s,e){if(!So[e]){let t=s[e];t!==void 0&&(s.__data?s._setPendingProperty(e,t):(s.__dataProto?s.hasOwnProperty(JSCompiler_renameProperty("__dataProto",s))||(s.__dataProto=Object.create(s.__dataProto)):s.__dataProto={},s.__dataProto[e]=t))}}const Qn=w(s=>{const e=Po(s);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let r=0;r<o.length;r++)this.prototype._createPropertyAccessor(Ao(o[r]))}static attributeNameForProperty(o){return _t(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let r in o)this._setProperty(r,o[r])}_ensureAttribute(o,r){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,r,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Xn(o))return o;try{return JSON.stringify(o)}catch(r){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,r){let n;switch(r){case Object:try{n=JSON.parse(o)}catch(a){n=o}break;case Array:try{n=JSON.parse(o)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,r);break}return n}_definePropertyAccessor(o,r){Jn(this,o),super._definePropertyAccessor(o,r)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
971
+ */const To={};let je=HTMLElement.prototype;for(;je;){let s=Object.getOwnPropertyNames(je);for(let e=0;e<s.length;e++)To[s[e]]=!0;je=Object.getPrototypeOf(je)}const Xa=window.trustedTypes?s=>trustedTypes.isHTML(s)||trustedTypes.isScript(s)||trustedTypes.isScriptURL(s):()=>!1;function Ja(s,e){if(!To[e]){let t=s[e];t!==void 0&&(s.__data?s._setPendingProperty(e,t):(s.__dataProto?s.hasOwnProperty(JSCompiler_renameProperty("__dataProto",s))||(s.__dataProto=Object.create(s.__dataProto)):s.__dataProto={},s.__dataProto[e]=t))}}const Qa=w(s=>{const e=So(s);class t extends e{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let r=0;r<o.length;r++)this.prototype._createPropertyAccessor(Eo(o[r]))}static attributeNameForProperty(o){return ft(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(o){for(let r in o)this._setProperty(r,o[r])}_ensureAttribute(o,r){const a=this;a.hasAttribute(o)||this._valueToNodeAttribute(a,r,o)}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(Xa(o))return o;try{return JSON.stringify(o)}catch(r){return""}}default:return super._serializeValue(o)}}_deserializeValue(o,r){let a;switch(r){case Object:try{a=JSON.parse(o)}catch(n){a=o}break;case Array:try{a=JSON.parse(o)}catch(n){a=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`)}break;case Date:a=isNaN(o)?String(o):Number(o),a=new Date(a);break;default:a=super._deserializeValue(o,r);break}return a}_definePropertyAccessor(o,r){Ja(this,o),super._definePropertyAccessor(o,r)}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return!!(this.__dataPending&&o in this.__dataPending)}}return t});/**
972
972
  @license
973
973
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
974
974
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -976,7 +976,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
976
976
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
977
977
  Code distributed by Google as part of the polymer project is also
978
978
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
979
- */const Zn={"dom-if":!0,"dom-repeat":!0};let Es=!1,Is=!1;function ea(){if(!Es){Es=!0;const s=document.createElement("textarea");s.placeholder="a",Is=s.placeholder===s.textContent}return Is}function ta(s){ea()&&s.localName==="textarea"&&s.placeholder&&s.placeholder===s.textContent&&(s.textContent=null)}const ia=(()=>{const s=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{const o=t.getAttribute(i);if(s&&i.startsWith("on-")){e.setAttribute(i,s.createScript(o,i));return}e.setAttribute(i,o)}})();function sa(s){let e=s.getAttribute("is");if(e&&Zn[e]){let t=s;for(t.removeAttribute("is"),s=t.ownerDocument.createElement(e),t.parentNode.replaceChild(s,t),s.appendChild(t);t.attributes.length;){const{name:i}=t.attributes[0];ia(s,t,i),t.removeAttribute(i)}}return s}function To(s,e){let t=e.parentInfo&&To(s,e.parentInfo);if(t){for(let i=t.firstChild,o=0;i;i=i.nextSibling)if(e.parentIndex===o++)return i}else return s}function oa(s,e,t,i){i.id&&(e[i.id]=t)}function ra(s,e,t){if(t.events&&t.events.length)for(let i=0,o=t.events,r;i<o.length&&(r=o[i]);i++)s._addMethodEventListenerToNode(e,r.name,r.value,s)}function na(s,e,t,i){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=i)}function aa(s,e,t){return s=s._methodHost||s,function(i){s[t]?s[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const la=w(s=>{class e extends s{static _parseTemplate(i,o){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!o,r.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,o,r){return this._parseTemplateNode(i.content,o,r)}static _parseTemplateNode(i,o,r){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,o,r)||n:a.localName==="slot"&&(o.hasInsertionPoint=!0),ta(a),a.firstChild&&this._parseTemplateChildNodes(a,o,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,o,r)||n),n||r.noted}static _parseTemplateChildNodes(i,o,r){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=sa(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let h=l;for(;h&&h.nodeType===Node.TEXT_NODE;)n.textContent+=h.textContent,l=h.nextSibling,i.removeChild(h),h=l;if(o.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,o,d)&&(d.infoIndex=o.nodeInfoList.push(d)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,o,r){let n=i,a=this._parseTemplate(n,o);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,o,r){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,o,r,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,o,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 o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let r=o.nodeInfoList,n=o.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!o.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let d=0,h=r.length,c;d<h&&(c=r[d]);d++){let p=l[d]=To(a,c);oa(this,a.$,p,c),na(this,p,c,o),ra(this,p,c)}return a=a,a}_addMethodEventListenerToNode(i,o,r,n){n=n||i;let a=aa(n,o,r);return this._addEventListenerToNode(i,o,a),a}_addEventListenerToNode(i,o,r){i.addEventListener(o,r)}_removeEventListenerFromNode(i,o,r){i.removeEventListener(o,r)}}return e});/**
979
+ */const Za={"dom-if":!0,"dom-repeat":!0};let Is=!1,Ps=!1;function en(){if(!Is){Is=!0;const s=document.createElement("textarea");s.placeholder="a",Ps=s.placeholder===s.textContent}return Ps}function tn(s){en()&&s.localName==="textarea"&&s.placeholder&&s.placeholder===s.textContent&&(s.textContent=null)}const sn=(()=>{const s=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:e=>e});return(e,t,i)=>{const o=t.getAttribute(i);if(s&&i.startsWith("on-")){e.setAttribute(i,s.createScript(o,i));return}e.setAttribute(i,o)}})();function on(s){let e=s.getAttribute("is");if(e&&Za[e]){let t=s;for(t.removeAttribute("is"),s=t.ownerDocument.createElement(e),t.parentNode.replaceChild(s,t),s.appendChild(t);t.attributes.length;){const{name:i}=t.attributes[0];sn(s,t,i),t.removeAttribute(i)}}return s}function Do(s,e){let t=e.parentInfo&&Do(s,e.parentInfo);if(t){for(let i=t.firstChild,o=0;i;i=i.nextSibling)if(e.parentIndex===o++)return i}else return s}function rn(s,e,t,i){i.id&&(e[i.id]=t)}function an(s,e,t){if(t.events&&t.events.length)for(let i=0,o=t.events,r;i<o.length&&(r=o[i]);i++)s._addMethodEventListenerToNode(e,r.name,r.value,s)}function nn(s,e,t,i){t.templateInfo&&(e._templateInfo=t.templateInfo,e._parentTemplateInfo=i)}function ln(s,e,t){return s=s._methodHost||s,function(i){s[t]?s[t](i,i.detail):console.warn("listener method `"+t+"` not defined")}}const dn=w(s=>{class e extends s{static _parseTemplate(i,o){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!o,r.stripWhiteSpace=o&&o.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,o,r){return this._parseTemplateNode(i.content,o,r)}static _parseTemplateNode(i,o,r){let a=!1,n=i;return n.localName=="template"&&!n.hasAttribute("preserve-content")?a=this._parseTemplateNestedTemplate(n,o,r)||a:n.localName==="slot"&&(o.hasInsertionPoint=!0),tn(n),n.firstChild&&this._parseTemplateChildNodes(n,o,r),n.hasAttributes&&n.hasAttributes()&&(a=this._parseTemplateNodeAttributes(n,o,r)||a),a||r.noted}static _parseTemplateChildNodes(i,o,r){if(!(i.localName==="script"||i.localName==="style"))for(let a=i.firstChild,n=0,l;a;a=l){if(a.localName=="template"&&(a=on(a)),l=a.nextSibling,a.nodeType===Node.TEXT_NODE){let h=l;for(;h&&h.nodeType===Node.TEXT_NODE;)a.textContent+=h.textContent,l=h.nextSibling,i.removeChild(h),h=l;if(o.stripWhiteSpace&&!a.textContent.trim()){i.removeChild(a);continue}}let d={parentIndex:n,parentInfo:r};this._parseTemplateNode(a,o,d)&&(d.infoIndex=o.nodeInfoList.push(d)-1),a.parentNode&&n++}}static _parseTemplateNestedTemplate(i,o,r){let a=i,n=this._parseTemplate(a,o);return(n.content=a.content.ownerDocument.createDocumentFragment()).appendChild(a.content),r.templateInfo=n,!0}static _parseTemplateNodeAttributes(i,o,r){let a=!1,n=Array.from(i.attributes);for(let l=n.length-1,d;d=n[l];l--)a=this._parseTemplateNodeAttribute(i,o,r,d.name,d.value)||a;return a}static _parseTemplateNodeAttribute(i,o,r,a,n){return a.slice(0,3)==="on-"?(i.removeAttribute(a),r.events=r.events||[],r.events.push({name:a.slice(3),value:n}),!0):a==="id"?(r.id=n,!0):!1}static _contentForTemplate(i){let o=i._templateInfo;return o&&o.content||i.content}_stampTemplate(i,o){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),o=o||this.constructor._parseTemplate(i);let r=o.nodeInfoList,a=o.content||i.content,n=document.importNode(a,!0);n.__noInsertionPoint=!o.hasInsertionPoint;let l=n.nodeList=new Array(r.length);n.$={};for(let d=0,h=r.length,c;d<h&&(c=r[d]);d++){let p=l[d]=Do(n,c);rn(this,n.$,p,c),nn(this,p,c,o),an(this,p,c)}return n=n,n}_addMethodEventListenerToNode(i,o,r,a){a=a||i;let n=ln(a,o,r);return this._addEventListenerToNode(i,o,n),n}_addEventListenerToNode(i,o,r){i.addEventListener(o,r)}_removeEventListenerFromNode(i,o,r){i.removeEventListener(o,r)}}return e});/**
980
980
  * @fileoverview
981
981
  * @suppress {checkPrototypalTypes}
982
982
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -986,7 +986,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
986
986
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
987
987
  * Google as part of the polymer project is also subject to an additional IP
988
988
  * rights grant found at http://polymer.github.io/PATENTS.txt
989
- */let Ne=0;const Ve=[],v={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Do="__computeInfo",da=/[A-Z]/;function Ot(s,e,t){let i=s[e];if(!i)i=s[e]={};else if(!s.hasOwnProperty(e)&&(i=s[e]=Object.create(s[e]),t))for(let o in i){let r=i[o],n=i[o]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return i}function Ae(s,e,t,i,o,r){if(e){let n=!1;const a=Ne++;for(let l in t){let d=o?ie(l):l,h=e[d];if(h)for(let c=0,p=h.length,m;c<p&&(m=h[c]);c++)(!m.info||m.info.lastRun!==a)&&(!o||ki(l,m.trigger))&&(m.info&&(m.info.lastRun=a),m.fn(s,l,t,i,m.info,o,r),n=!0)}return n}return!1}function ha(s,e,t,i,o,r,n,a){let l=!1,d=n?ie(i):i,h=e[d];if(h)for(let c=0,p=h.length,m;c<p&&(m=h[c]);c++)(!m.info||m.info.lastRun!==t)&&(!n||ki(i,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(s,i,o,r,m.info,n,a),l=!0);return l}function ki(s,e){if(e){let t=e.name;return t==s||!!(e.structured&&wo(t,s))||!!(e.wildcard&&Oe(t,s))}else return!0}function Ps(s,e,t,i,o){let r=typeof o.method=="string"?s[o.method]:o.method,n=o.property;r?r.call(s,s.__data[n],i[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function ca(s,e,t,i,o){let r=s[v.NOTIFY],n,a=Ne++;for(let d in e)e[d]&&(r&&ha(s,r,a,d,t,i,o)||o&&ua(s,d,t))&&(n=!0);let l;n&&(l=s.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function ua(s,e,t){let i=ie(e);if(i!==e){let o=_t(i)+"-changed";return Oo(s,o,t[e],e),!0}return!1}function Oo(s,e,t,i){let o={value:t,queueProperty:!0};i&&(o.path=i),k(s).dispatchEvent(new CustomEvent(e,{detail:o}))}function pa(s,e,t,i,o,r){let n=(r?ie(e):e)!=e?e:null,a=n?D(s,n):s.__data[e];n&&a===void 0&&(a=t[e]),Oo(s,o.eventName,a,n)}function ma(s,e,t,i,o){let r,n=s.detail,a=n&&n.path;a?(i=ze(t,i,a),r=n&&n.value):r=s.currentTarget[t],r=o?!r:r,(!e[v.READ_ONLY]||!e[v.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&e._invalidateProperties()}function _a(s,e,t,i,o){let r=s.__data[e];nt&&(r=nt(r,o.attrName,"attribute",s)),s._propertyToAttribute(e,o.attrName,r)}function fa(s,e,t,i){let o=s[v.COMPUTE];if(o)if(On){Ne++;const r=ga(s),n=[];for(let l in e)Ss(l,o,n,r,i);let a;for(;a=n.shift();)zo(s,"",e,t,a)&&Ss(a.methodInfo,o,n,r,i);Object.assign(t,s.__dataOld),Object.assign(e,s.__dataPending),s.__dataPending=null}else{let r=e;for(;Ae(s,o,r,t,i);)Object.assign(t,s.__dataOld),Object.assign(e,s.__dataPending),r=s.__dataPending,s.__dataPending=null}}const va=(s,e,t)=>{let i=0,o=e.length-1,r=-1;for(;i<=o;){const n=i+o>>1,a=t.get(e[n].methodInfo)-t.get(s.methodInfo);if(a<0)i=n+1;else if(a>0)o=n-1;else{r=n;break}}r<0&&(r=o+1),e.splice(r,0,s)},Ss=(s,e,t,i,o)=>{const r=o?ie(s):s,n=e[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Ne&&(!o||ki(s,l.trigger))&&(l.info.lastRun=Ne,va(l.info,t,i))}};function ga(s){let e=s.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=s[v.COMPUTE];let{counts:i,ready:o,total:r}=ba(s),n;for(;n=o.shift();){e.set(n,e.size);const a=t[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&o.push(d)})}r!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=e}return e}function ba(s){const e=s[Do],t={},i=s[v.COMPUTE],o=[];let r=0;for(let n in e){const a=e[n];r+=t[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)e[n]||o.push(n);return{counts:t,ready:o,total:r}}function zo(s,e,t,i,o){let r=Zt(s,e,t,i,o);if(r===Ve)return!1;let n=o.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[n]?s._setPendingProperty(n,r,!0):(s[n]=r,!1)}function ya(s,e,t){let i=s.__dataLinkedPaths;if(i){let o;for(let r in i){let n=i[r];Oe(r,e)?(o=ze(r,n,e),s._setPendingPropertyOrPath(o,t,!0,!0)):Oe(n,e)&&(o=ze(n,r,e),s._setPendingPropertyOrPath(o,t,!0,!0))}}}function zt(s,e,t,i,o,r,n){t.bindings=t.bindings||[];let a={kind:i,target:o,parts:r,literal:n,isCompound:r.length!==1};if(t.bindings.push(a),ka(a)){let{event:d,negate:h}=a.parts[0];a.listenerEvent=d||_t(o)+"-changed",a.listenerNegate=h}let l=e.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let h=a.parts[d];h.compoundIndex=d,xa(s,e,a,h,l)}}function xa(s,e,t,i,o){if(!i.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let r=i.dependencies,n={index:o,binding:t,part:i,evaluator:s};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=Vo(l),l.wildcard=!0),s._addTemplatePropertyEffect(e,l.rootProperty,{fn:wa,info:n,trigger:l})}}}function wa(s,e,t,i,o,r,n){let a=n[o.index],l=o.binding,d=o.part;if(r&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let h=t[e];e=ze(d.source,l.target,e),a._setPendingPropertyOrPath(e,h,!1,!0)&&s._enqueueClient(a)}else{let h=o.evaluator._evaluateBinding(s,d,e,t,i,r);h!==Ve&&Ca(s,a,l,d,h)}}function Ca(s,e,t,i,o){if(o=Aa(e,o,t,i),nt&&(o=nt(o,t.target,t.kind,e)),t.kind=="attribute")s._valueToNodeAttribute(e,o,t.target);else{let r=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[r]?(!e[v.READ_ONLY]||!e[v.READ_ONLY][r])&&e._setPendingProperty(r,o)&&s._enqueueClient(e):s._setUnmanagedPropertyToNode(e,r,o)}}function Aa(s,e,t,i){if(t.isCompound){let o=s.__dataCompoundStorage[t.target];o[i.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(e=e==null?"":e),e}function ka(s){return!!s.target&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function Ea(s,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let o=0;o<i.length;o++){let r=i[o],n=t[o],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];Ia(n,d),Pa(n,s,d)}n.__dataHost=s}}function Ia(s,e){if(e.isCompound){let t=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),i=e.parts,o=new Array(i.length);for(let n=0;n<i.length;n++)o[n]=i[n].literal;let r=e.target;t[r]=o,e.literal&&e.kind=="property"&&(r==="className"&&(s=k(s)),s[r]=e.literal)}}function Pa(s,e,t){if(t.listenerEvent){let i=t.parts[0];s.addEventListener(t.listenerEvent,function(o){ma(o,e,t.target,i.source,i.negate)})}}function Ts(s,e,t,i,o,r){r=e.static||r&&(typeof r!="object"||r[e.methodName]);let n={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:r};for(let a=0,l;a<e.args.length&&(l=e.args[a]);a++)l.literal||s._addPropertyEffect(l.rootProperty,t,{fn:i,info:n,trigger:l});return r&&s._addPropertyEffect(e.methodName,t,{fn:i,info:n}),n}function Zt(s,e,t,i,o){let r=s._methodHost||s,n=r[o.methodName];if(n){let a=s._marshalArgs(o.args,e,t);return a===Ve?Ve:n.apply(r,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Sa=[],No="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ta="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Da="(?:'(?:[^'\\\\]|\\\\.)*')",Oa='(?:"(?:[^"\\\\]|\\\\.)*")',za="(?:"+Da+"|"+Oa+")",Ds="(?:("+No+"|"+Ta+"|"+za+")\\s*)",Na="(?:"+Ds+"(?:,\\s*"+Ds+")*)",Va="(?:\\(\\s*(?:"+Na+"?)\\)\\s*)",La="("+No+"\\s*"+Va+"?)",Ma="(\\[\\[|{{)\\s*",Fa="(?:]]|}})",Ba="(?:(!)\\s*)?",Ra=Ma+Ba+La+Fa,Os=new RegExp(Ra,"g");function zs(s){let e="";for(let t=0;t<s.length;t++){let i=s[t].literal;e+=i||""}return e}function Nt(s){let e=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Sa};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return $a(i,t)}else return t}return null}function $a(s,e){return e.args=s.map(function(t){let i=Vo(t);return i.literal||(e.static=!1),i},this),e}function Vo(s){let e=s.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=ie(e),t.structured=Jt(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Ns(s,e,t){let i=D(s,t);return i===void 0&&(i=e[t]),i}function Lo(s,e,t,i){const o={indexSplices:i};Xt&&!s._overrideLegacyUndefined&&(e.splices=o),s.notifyPath(t+".splices",o),s.notifyPath(t+".length",e.length),Xt&&!s._overrideLegacyUndefined&&(o.indexSplices=[])}function be(s,e,t,i,o,r){Lo(s,e,t,[{index:i,addedCount:o,removed:r,object:e,type:"splice"}])}function Ha(s){return s[0].toUpperCase()+s.substring(1)}const Ei=w(s=>{const e=la(Qn(s));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return v}_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(ye.length){let o=ye[ye.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let r=this[v.READ_ONLY];for(let n in o)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n])}_addPropertyEffect(o,r,n){this._createPropertyAccessor(o,r==v.READ_ONLY);let a=Ot(this,r,!0)[o];a||(a=this[r][o]=[]),a.push(n)}_removePropertyEffect(o,r,n){let a=Ot(this,r,!0)[o],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(o,r){let n=this[r];return!!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,v.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,v.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,v.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,v.COMPUTE)}_setPendingPropertyOrPath(o,r,n,a){if(a||ie(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=D(this,o);if(o=ks(this,o,r),!o||!super._shouldPropertyChange(o,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,r,n))return ya(this,o,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,r,n);this[o]=r}return!1}_setUnmanagedPropertyToNode(o,r,n){(n!==o[r]||typeof n=="object")&&(r==="className"&&(o=k(o)),o[r]=n)}_setPendingProperty(o,r,n){let a=this.__dataHasPaths&&Jt(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,r,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=r:this.__data[o]=r,this.__dataPending[o]=r,(a||this[v.NOTIFY]&&this[v.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,r){this._setPendingProperty(o,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let r=0;r<o.length;r++){let n=o[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,r){for(let n in o)(r||!this[v.READ_ONLY]||!this[v.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;fa(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Ae(this,this[v.REFLECT],r,n,a),Ae(this,this[v.OBSERVE],r,n,a),l&&ca(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,r,n){this[v.PROPAGATE]&&Ae(this,this[v.PROPAGATE],o,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,r,n)}_runEffectsForTemplate(o,r,n,a){const l=(d,h)=>{Ae(this,o.propertyEffects,d,n,h,o.nodeList);for(let c=o.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,d,n,h)};o.runEffects?o.runEffects(l,r,a):l(r,a)}linkPaths(o,r){o=Ce(o),r=Ce(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=r}unlinkPaths(o){o=Ce(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,r){let n={path:""},a=D(this,o,n);Lo(this,a,n.path,r)}get(o,r){return D(r||this,o)}set(o,r,n){n?ks(n,o,r):(!this[v.READ_ONLY]||!this[v.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,r,!0)&&this._invalidateProperties()}push(o,...r){let n={path:""},a=D(this,o,n),l=a.length,d=a.push(...r);return r.length&&be(this,a,n.path,l,r.length,[]),d}pop(o){let r={path:""},n=D(this,o,r),a=!!n.length,l=n.pop();return a&&be(this,n,r.path,n.length,0,[l]),l}splice(o,r,n,...a){let l={path:""},d=D(this,o,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let h;return arguments.length===2?h=d.splice(r):h=d.splice(r,n,...a),(a.length||h.length)&&be(this,d,l.path,r,a.length,h),h}shift(o){let r={path:""},n=D(this,o,r),a=!!n.length,l=n.shift();return a&&be(this,n,r.path,0,0,[l]),l}unshift(o,...r){let n={path:""},a=D(this,o,n),l=a.unshift(...r);return r.length&&be(this,a,n.path,0,r.length,[]),l}notifyPath(o,r){let n;if(arguments.length==1){let a={path:""};r=D(this,o,a),n=a.path}else Array.isArray(o)?n=Ce(o):n=o;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,r){this._addPropertyEffect(o,v.READ_ONLY),r&&(this["_set"+Ha(o)]=function(n){this._setProperty(o,n)})}_createPropertyObserver(o,r,n){let a={property:o,method:r,dynamicFn:!!n};this._addPropertyEffect(o,v.OBSERVE,{fn:Ps,info:a,trigger:{name:o}}),n&&this._addPropertyEffect(r,v.OBSERVE,{fn:Ps,info:a,trigger:{name:r}})}_createMethodObserver(o,r){let n=Nt(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");Ts(this,n,v.OBSERVE,Zt,null,r)}_createNotifyingProperty(o){this._addPropertyEffect(o,v.NOTIFY,{fn:pa,info:{eventName:_t(o)+"-changed",property:o}})}_createReflectedProperty(o){let r=this.constructor.attributeNameForProperty(o);r[0]==="-"?console.warn("Property "+o+" 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(o,v.REFLECT,{fn:_a,info:{attrName:r}})}_createComputedProperty(o,r,n){let a=Nt(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=Ts(this,a,v.COMPUTE,zo,o,n);Ot(this,Do)[o]=l}_marshalArgs(o,r,n){const a=this.__data,l=[];for(let d=0,h=o.length;d<h;d++){let{name:c,structured:p,wildcard:m,value:y,literal:E}=o[d];if(!E)if(m){const I=Oe(c,r),C=Ns(a,n,I?r:c);y={path:I?r:c,value:C,base:I?D(a,c):C}}else y=p?Ns(a,n,c):a[c];if(Xt&&!this._overrideLegacyUndefined&&y===void 0&&o.length>1)return Ve;l[d]=y}return l}static addPropertyEffect(o,r,n){this.prototype._addPropertyEffect(o,r,n)}static createPropertyObserver(o,r,n){this.prototype._createPropertyObserver(o,r,n)}static createMethodObserver(o,r){this.prototype._createMethodObserver(o,r)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,r){this.prototype._createReadOnlyProperty(o,r)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,r,n){this.prototype._createComputedProperty(o,r,n)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,r){let n=this.constructor._parseTemplate(o),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=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,r,n){let a=o.hostProps=o.hostProps||{};a[r]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(o,r){r=r||this._bindTemplate(o,!0),ye.push(this);let n=super._stampTemplate(o,r);if(ye.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,Ea(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const r=o.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 d=r.childNodes;for(let h=0;h<d.length;h++){let c=d[h];k(k(c).parentNode).removeChild(c)}}static _parseTemplateNode(o,r,n){let a=e._parseTemplateNode.call(this,o,r,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,r);l&&(o.textContent=zs(l)||" ",zt(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(o,r,n,a,l){let d=this._parseBindings(l,r);if(d){let h=a,c="property";da.test(a)?c="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),c="attribute");let p=zs(d);return p&&c=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(p+=" "+o.getAttribute(a)),o.setAttribute(a,p)),c=="attribute"&&h=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&h==="value"&&o.setAttribute(h,""),o.removeAttribute(h),c==="property"&&(a=Ao(a)),zt(this,r,n,c,a,d,p),!0}else return e._parseTemplateNodeAttribute.call(this,o,r,n,a,l)}static _parseTemplateNestedTemplate(o,r,n){let a=e._parseTemplateNestedTemplate.call(this,o,r,n);const l=o.parentNode,d=n.templateInfo,h=l.localName==="dom-if",c=l.localName==="dom-repeat";bs&&(h||c)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let p=d.hostProps;if(zn&&h)p&&(r.hostProps=Object.assign(r.hostProps||{},p),bs||(n.parentInfo.noted=!0));else{let m="{";for(let y in p){let E=[{mode:m,source:y,dependencies:[y],hostProp:!0}];zt(this,r,n,"property","_host_"+y,E)}}return a}static _parseBindings(o,r){let n=[],a=0,l;for(;(l=Os.exec(o))!==null;){l.index>a&&n.push({literal:o.slice(a,l.index)});let d=l[1][0],h=!!l[2],c=l[3].trim(),p=!1,m="",y=-1;d=="{"&&(y=c.indexOf("::"))>0&&(m=c.substring(y+2),c=c.substring(0,y),p=!0);let E=Nt(c),I=[];if(E){let{args:C,methodName:S}=E;for(let q=0;q<C.length;q++){let es=C[q];es.literal||I.push(es)}let U=r.dynamicFns;(U&&U[S]||E.static)&&(I.push(S),E.dynamicFn=!0)}else I.push(c);n.push({source:c,mode:d,negate:h,customEvent:p,signature:E,dependencies:I,event:m}),a=Os.lastIndex}if(a&&a<o.length){let d=o.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(o,r,n,a,l,d){let h;return r.signature?h=Zt(o,n,a,l,r.signature):n!=r.source?h=D(o,r.source):d&&Jt(n)?h=D(o,n):h=o.__data[n],r.negate&&(h=!h),h}}return t}),ye=[];/**
989
+ */let Ve=0;const Le=[],v={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Oo="__computeInfo",hn=/[A-Z]/;function zt(s,e,t){let i=s[e];if(!i)i=s[e]={};else if(!s.hasOwnProperty(e)&&(i=s[e]=Object.create(s[e]),t))for(let o in i){let r=i[o],a=i[o]=Array(r.length);for(let n=0;n<r.length;n++)a[n]=r[n]}return i}function Ae(s,e,t,i,o,r){if(e){let a=!1;const n=Ve++;for(let l in t){let d=o?ie(l):l,h=e[d];if(h)for(let c=0,p=h.length,m;c<p&&(m=h[c]);c++)(!m.info||m.info.lastRun!==n)&&(!o||ki(l,m.trigger))&&(m.info&&(m.info.lastRun=n),m.fn(s,l,t,i,m.info,o,r),a=!0)}return a}return!1}function cn(s,e,t,i,o,r,a,n){let l=!1,d=a?ie(i):i,h=e[d];if(h)for(let c=0,p=h.length,m;c<p&&(m=h[c]);c++)(!m.info||m.info.lastRun!==t)&&(!a||ki(i,m.trigger))&&(m.info&&(m.info.lastRun=t),m.fn(s,i,o,r,m.info,a,n),l=!0);return l}function ki(s,e){if(e){let t=e.name;return t==s||!!(e.structured&&Co(t,s))||!!(e.wildcard&&ze(t,s))}else return!0}function Ss(s,e,t,i,o){let r=typeof o.method=="string"?s[o.method]:o.method,a=o.property;r?r.call(s,s.__data[a],i[a]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined")}function un(s,e,t,i,o){let r=s[v.NOTIFY],a,n=Ve++;for(let d in e)e[d]&&(r&&cn(s,r,n,d,t,i,o)||o&&pn(s,d,t))&&(a=!0);let l;a&&(l=s.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function pn(s,e,t){let i=ie(e);if(i!==e){let o=ft(i)+"-changed";return zo(s,o,t[e],e),!0}return!1}function zo(s,e,t,i){let o={value:t,queueProperty:!0};i&&(o.path=i),E(s).dispatchEvent(new CustomEvent(e,{detail:o}))}function mn(s,e,t,i,o,r){let a=(r?ie(e):e)!=e?e:null,n=a?D(s,a):s.__data[e];a&&n===void 0&&(n=t[e]),zo(s,o.eventName,n,a)}function _n(s,e,t,i,o){let r,a=s.detail,n=a&&a.path;n?(i=Ne(t,i,n),r=a&&a.value):r=s.currentTarget[t],r=o?!r:r,(!e[v.READ_ONLY]||!e[v.READ_ONLY][i])&&e._setPendingPropertyOrPath(i,r,!0,!!n)&&(!a||!a.queueProperty)&&e._invalidateProperties()}function fn(s,e,t,i,o){let r=s.__data[e];nt&&(r=nt(r,o.attrName,"attribute",s)),s._propertyToAttribute(e,o.attrName,r)}function vn(s,e,t,i){let o=s[v.COMPUTE];if(o)if(Oa){Ve++;const r=bn(s),a=[];for(let l in e)Ts(l,o,a,r,i);let n;for(;n=a.shift();)No(s,"",e,t,n)&&Ts(n.methodInfo,o,a,r,i);Object.assign(t,s.__dataOld),Object.assign(e,s.__dataPending),s.__dataPending=null}else{let r=e;for(;Ae(s,o,r,t,i);)Object.assign(t,s.__dataOld),Object.assign(e,s.__dataPending),r=s.__dataPending,s.__dataPending=null}}const gn=(s,e,t)=>{let i=0,o=e.length-1,r=-1;for(;i<=o;){const a=i+o>>1,n=t.get(e[a].methodInfo)-t.get(s.methodInfo);if(n<0)i=a+1;else if(n>0)o=a-1;else{r=a;break}}r<0&&(r=o+1),e.splice(r,0,s)},Ts=(s,e,t,i,o)=>{const r=o?ie(s):s,a=e[r];if(a)for(let n=0;n<a.length;n++){const l=a[n];l.info.lastRun!==Ve&&(!o||ki(s,l.trigger))&&(l.info.lastRun=Ve,gn(l.info,t,i))}};function bn(s){let e=s.constructor.__orderedComputedDeps;if(!e){e=new Map;const t=s[v.COMPUTE];let{counts:i,ready:o,total:r}=yn(s),a;for(;a=o.shift();){e.set(a,e.size);const n=t[a];n&&n.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&o.push(d)})}r!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=e}return e}function yn(s){const e=s[Oo],t={},i=s[v.COMPUTE],o=[];let r=0;for(let a in e){const n=e[a];r+=t[a]=n.args.filter(l=>!l.literal).length+(n.dynamicFn?1:0)}for(let a in i)e[a]||o.push(a);return{counts:t,ready:o,total:r}}function No(s,e,t,i,o){let r=ei(s,e,t,i,o);if(r===Le)return!1;let a=o.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[a]?s._setPendingProperty(a,r,!0):(s[a]=r,!1)}function xn(s,e,t){let i=s.__dataLinkedPaths;if(i){let o;for(let r in i){let a=i[r];ze(r,e)?(o=Ne(r,a,e),s._setPendingPropertyOrPath(o,t,!0,!0)):ze(a,e)&&(o=Ne(a,r,e),s._setPendingPropertyOrPath(o,t,!0,!0))}}}function Nt(s,e,t,i,o,r,a){t.bindings=t.bindings||[];let n={kind:i,target:o,parts:r,literal:a,isCompound:r.length!==1};if(t.bindings.push(n),kn(n)){let{event:d,negate:h}=n.parts[0];n.listenerEvent=d||ft(o)+"-changed",n.listenerNegate=h}let l=e.nodeInfoList.length;for(let d=0;d<n.parts.length;d++){let h=n.parts[d];h.compoundIndex=d,wn(s,e,n,h,l)}}function wn(s,e,t,i,o){if(!i.literal)if(t.kind==="attribute"&&t.target[0]==="-")console.warn("Cannot set attribute "+t.target+' because "-" is not a valid attribute starting character');else{let r=i.dependencies,a={index:o,binding:t,part:i,evaluator:s};for(let n=0;n<r.length;n++){let l=r[n];typeof l=="string"&&(l=Lo(l),l.wildcard=!0),s._addTemplatePropertyEffect(e,l.rootProperty,{fn:Cn,info:a,trigger:l})}}}function Cn(s,e,t,i,o,r,a){let n=a[o.index],l=o.binding,d=o.part;if(r&&d.source&&e.length>d.source.length&&l.kind=="property"&&!l.isCompound&&n.__isPropertyEffectsClient&&n.__dataHasAccessor&&n.__dataHasAccessor[l.target]){let h=t[e];e=Ne(d.source,l.target,e),n._setPendingPropertyOrPath(e,h,!1,!0)&&s._enqueueClient(n)}else{let h=o.evaluator._evaluateBinding(s,d,e,t,i,r);h!==Le&&An(s,n,l,d,h)}}function An(s,e,t,i,o){if(o=En(e,o,t,i),nt&&(o=nt(o,t.target,t.kind,e)),t.kind=="attribute")s._valueToNodeAttribute(e,o,t.target);else{let r=t.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[r]?(!e[v.READ_ONLY]||!e[v.READ_ONLY][r])&&e._setPendingProperty(r,o)&&s._enqueueClient(e):s._setUnmanagedPropertyToNode(e,r,o)}}function En(s,e,t,i){if(t.isCompound){let o=s.__dataCompoundStorage[t.target];o[i.compoundIndex]=e,e=o.join("")}return t.kind!=="attribute"&&(t.target==="textContent"||t.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(e=e==null?"":e),e}function kn(s){return!!s.target&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function In(s,e){let{nodeList:t,nodeInfoList:i}=e;if(i.length)for(let o=0;o<i.length;o++){let r=i[o],a=t[o],n=r.bindings;if(n)for(let l=0;l<n.length;l++){let d=n[l];Pn(a,d),Sn(a,s,d)}a.__dataHost=s}}function Pn(s,e){if(e.isCompound){let t=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),i=e.parts,o=new Array(i.length);for(let a=0;a<i.length;a++)o[a]=i[a].literal;let r=e.target;t[r]=o,e.literal&&e.kind=="property"&&(r==="className"&&(s=E(s)),s[r]=e.literal)}}function Sn(s,e,t){if(t.listenerEvent){let i=t.parts[0];s.addEventListener(t.listenerEvent,function(o){_n(o,e,t.target,i.source,i.negate)})}}function Ds(s,e,t,i,o,r){r=e.static||r&&(typeof r!="object"||r[e.methodName]);let a={methodName:e.methodName,args:e.args,methodInfo:o,dynamicFn:r};for(let n=0,l;n<e.args.length&&(l=e.args[n]);n++)l.literal||s._addPropertyEffect(l.rootProperty,t,{fn:i,info:a,trigger:l});return r&&s._addPropertyEffect(e.methodName,t,{fn:i,info:a}),a}function ei(s,e,t,i,o){let r=s._methodHost||s,a=r[o.methodName];if(a){let n=s._marshalArgs(o.args,e,t);return n===Le?Le:a.apply(r,n)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined")}const Tn=[],Vo="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Dn="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",On="(?:'(?:[^'\\\\]|\\\\.)*')",zn='(?:"(?:[^"\\\\]|\\\\.)*")',Nn="(?:"+On+"|"+zn+")",Os="(?:("+Vo+"|"+Dn+"|"+Nn+")\\s*)",Vn="(?:"+Os+"(?:,\\s*"+Os+")*)",Ln="(?:\\(\\s*(?:"+Vn+"?)\\)\\s*)",Mn="("+Vo+"\\s*"+Ln+"?)",Fn="(\\[\\[|{{)\\s*",Bn="(?:]]|}})",Rn="(?:(!)\\s*)?",$n=Fn+Rn+Mn+Bn,zs=new RegExp($n,"g");function Ns(s){let e="";for(let t=0;t<s.length;t++){let i=s[t].literal;e+=i||""}return e}function Vt(s){let e=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:Tn};if(e[2].trim()){let i=e[2].replace(/\\,/g,"&comma;").split(",");return Hn(i,t)}else return t}return null}function Hn(s,e){return e.args=s.map(function(t){let i=Lo(t);return i.literal||(e.static=!1),i},this),e}function Lo(s){let e=s.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),t={name:e,value:"",literal:!1},i=e[0];switch(i==="-"&&(i=e[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':t.value=e.slice(1,-1),t.literal=!0;break;case"#":t.value=Number(e),t.literal=!0;break}return t.literal||(t.rootProperty=ie(e),t.structured=Qt(e),t.structured&&(t.wildcard=e.slice(-2)==".*",t.wildcard&&(t.name=e.slice(0,-2)))),t}function Vs(s,e,t){let i=D(s,t);return i===void 0&&(i=e[t]),i}function Mo(s,e,t,i){const o={indexSplices:i};Jt&&!s._overrideLegacyUndefined&&(e.splices=o),s.notifyPath(t+".splices",o),s.notifyPath(t+".length",e.length),Jt&&!s._overrideLegacyUndefined&&(o.indexSplices=[])}function be(s,e,t,i,o,r){Mo(s,e,t,[{index:i,addedCount:o,removed:r,object:e,type:"splice"}])}function qn(s){return s[0].toUpperCase()+s.substring(1)}const Ii=w(s=>{const e=dn(Qa(s));class t extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return v}_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(ye.length){let o=ye[ye.length-1];o._enqueueClient(this),this.__dataHost=o}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={}}_initializeInstanceProperties(o){let r=this[v.READ_ONLY];for(let a in o)(!r||!r[a])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[a]=this.__dataPending[a]=o[a])}_addPropertyEffect(o,r,a){this._createPropertyAccessor(o,r==v.READ_ONLY);let n=zt(this,r,!0)[o];n||(n=this[r][o]=[]),n.push(a)}_removePropertyEffect(o,r,a){let n=zt(this,r,!0)[o],l=n.indexOf(a);l>=0&&n.splice(l,1)}_hasPropertyEffect(o,r){let a=this[r];return!!(a&&a[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,v.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,v.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,v.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,v.COMPUTE)}_setPendingPropertyOrPath(o,r,a,n){if(n||ie(Array.isArray(o)?o[0]:o)!==o){if(!n){let l=D(this,o);if(o=ks(this,o,r),!o||!super._shouldPropertyChange(o,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,r,a))return xn(this,o,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,r,a);this[o]=r}return!1}_setUnmanagedPropertyToNode(o,r,a){(a!==o[r]||typeof a=="object")&&(r==="className"&&(o=E(o)),o[r]=a)}_setPendingProperty(o,r,a){let n=this.__dataHasPaths&&Qt(o),l=n?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,r,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),n?this.__dataTemp[o]=r:this.__data[o]=r,this.__dataPending[o]=r,(n||this[v.NOTIFY]&&this[v.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=a),!0):!1}_setProperty(o,r){this._setPendingProperty(o,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let r=0;r<o.length;r++){let a=o[r];a.__dataEnabled?a.__dataPending&&a._flushProperties():a._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(o,r){for(let a in o)(r||!this[v.READ_ONLY]||!this[v.READ_ONLY][a])&&this._setPendingPropertyOrPath(a,o[a],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(o,r,a){let n=this.__dataHasPaths;this.__dataHasPaths=!1;let l;vn(this,r,a,n),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,a,n),this._flushClients(),Ae(this,this[v.REFLECT],r,a,n),Ae(this,this[v.OBSERVE],r,a,n),l&&un(this,l,r,a,n),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(o,r,a){this[v.PROPAGATE]&&Ae(this,this[v.PROPAGATE],o,r,a),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,r,a)}_runEffectsForTemplate(o,r,a,n){const l=(d,h)=>{Ae(this,o.propertyEffects,d,a,h,o.nodeList);for(let c=o.firstChild;c;c=c.nextSibling)this._runEffectsForTemplate(c,d,a,h)};o.runEffects?o.runEffects(l,r,n):l(r,n)}linkPaths(o,r){o=Ce(o),r=Ce(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=r}unlinkPaths(o){o=Ce(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o]}notifySplices(o,r){let a={path:""},n=D(this,o,a);Mo(this,n,a.path,r)}get(o,r){return D(r||this,o)}set(o,r,a){a?ks(a,o,r):(!this[v.READ_ONLY]||!this[v.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,r,!0)&&this._invalidateProperties()}push(o,...r){let a={path:""},n=D(this,o,a),l=n.length,d=n.push(...r);return r.length&&be(this,n,a.path,l,r.length,[]),d}pop(o){let r={path:""},a=D(this,o,r),n=!!a.length,l=a.pop();return n&&be(this,a,r.path,a.length,0,[l]),l}splice(o,r,a,...n){let l={path:""},d=D(this,o,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let h;return arguments.length===2?h=d.splice(r):h=d.splice(r,a,...n),(n.length||h.length)&&be(this,d,l.path,r,n.length,h),h}shift(o){let r={path:""},a=D(this,o,r),n=!!a.length,l=a.shift();return n&&be(this,a,r.path,0,0,[l]),l}unshift(o,...r){let a={path:""},n=D(this,o,a),l=n.unshift(...r);return r.length&&be(this,n,a.path,0,r.length,[]),l}notifyPath(o,r){let a;if(arguments.length==1){let n={path:""};r=D(this,o,n),a=n.path}else Array.isArray(o)?a=Ce(o):a=o;this._setPendingPropertyOrPath(a,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(o,r){this._addPropertyEffect(o,v.READ_ONLY),r&&(this["_set"+qn(o)]=function(a){this._setProperty(o,a)})}_createPropertyObserver(o,r,a){let n={property:o,method:r,dynamicFn:!!a};this._addPropertyEffect(o,v.OBSERVE,{fn:Ss,info:n,trigger:{name:o}}),a&&this._addPropertyEffect(r,v.OBSERVE,{fn:Ss,info:n,trigger:{name:r}})}_createMethodObserver(o,r){let a=Vt(o);if(!a)throw new Error("Malformed observer expression '"+o+"'");Ds(this,a,v.OBSERVE,ei,null,r)}_createNotifyingProperty(o){this._addPropertyEffect(o,v.NOTIFY,{fn:mn,info:{eventName:ft(o)+"-changed",property:o}})}_createReflectedProperty(o){let r=this.constructor.attributeNameForProperty(o);r[0]==="-"?console.warn("Property "+o+" 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(o,v.REFLECT,{fn,info:{attrName:r}})}_createComputedProperty(o,r,a){let n=Vt(r);if(!n)throw new Error("Malformed computed expression '"+r+"'");const l=Ds(this,n,v.COMPUTE,No,o,a);zt(this,Oo)[o]=l}_marshalArgs(o,r,a){const n=this.__data,l=[];for(let d=0,h=o.length;d<h;d++){let{name:c,structured:p,wildcard:m,value:y,literal:k}=o[d];if(!k)if(m){const I=ze(c,r),C=Vs(n,a,I?r:c);y={path:I?r:c,value:C,base:I?D(n,c):C}}else y=p?Vs(n,a,c):n[c];if(Jt&&!this._overrideLegacyUndefined&&y===void 0&&o.length>1)return Le;l[d]=y}return l}static addPropertyEffect(o,r,a){this.prototype._addPropertyEffect(o,r,a)}static createPropertyObserver(o,r,a){this.prototype._createPropertyObserver(o,r,a)}static createMethodObserver(o,r){this.prototype._createMethodObserver(o,r)}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o)}static createReadOnlyProperty(o,r){this.prototype._createReadOnlyProperty(o,r)}static createReflectedProperty(o){this.prototype._createReflectedProperty(o)}static createComputedProperty(o,r,a){this.prototype._createComputedProperty(o,r,a)}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,r){let a=this.constructor._parseTemplate(o),n=this.__preBoundTemplateInfo==a;if(!n)for(let l in a.propertyEffects)this._createPropertyAccessor(l);if(r)if(a=Object.create(a),a.wasPreBound=n,!this.__templateInfo)this.__templateInfo=a;else{const l=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;a.parent=l,l.lastChild=a,a.previousSibling=d,d?d.nextSibling=a:l.firstChild=a}else this.__preBoundTemplateInfo=a;return a}static _addTemplatePropertyEffect(o,r,a){let n=o.hostProps=o.hostProps||{};n[r]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[r]=l[r]||[]).push(a)}_stampTemplate(o,r){r=r||this._bindTemplate(o,!0),ye.push(this);let a=super._stampTemplate(o,r);if(ye.pop(),r.nodeList=a.nodeList,!r.wasPreBound){let n=r.childNodes=[];for(let l=a.firstChild;l;l=l.nextSibling)n.push(l)}return a.templateInfo=r,In(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),a}_removeBoundDom(o){const r=o.templateInfo,{previousSibling:a,nextSibling:n,parent:l}=r;a?a.nextSibling=n:l&&(l.firstChild=n),n?n.previousSibling=a:l&&(l.lastChild=a),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let h=0;h<d.length;h++){let c=d[h];E(E(c).parentNode).removeChild(c)}}static _parseTemplateNode(o,r,a){let n=e._parseTemplateNode.call(this,o,r,a);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,r);l&&(o.textContent=Ns(l)||" ",Nt(this,r,a,"text","textContent",l),n=!0)}return n}static _parseTemplateNodeAttribute(o,r,a,n,l){let d=this._parseBindings(l,r);if(d){let h=n,c="property";hn.test(n)?c="attribute":n[n.length-1]=="$"&&(n=n.slice(0,-1),c="attribute");let p=Ns(d);return p&&c=="attribute"&&(n=="class"&&o.hasAttribute("class")&&(p+=" "+o.getAttribute(n)),o.setAttribute(n,p)),c=="attribute"&&h=="disable-upgrade$"&&o.setAttribute(n,""),o.localName==="input"&&h==="value"&&o.setAttribute(h,""),o.removeAttribute(h),c==="property"&&(n=Eo(n)),Nt(this,r,a,c,n,d,p),!0}else return e._parseTemplateNodeAttribute.call(this,o,r,a,n,l)}static _parseTemplateNestedTemplate(o,r,a){let n=e._parseTemplateNestedTemplate.call(this,o,r,a);const l=o.parentNode,d=a.templateInfo,h=l.localName==="dom-if",c=l.localName==="dom-repeat";ys&&(h||c)&&(l.removeChild(o),a=a.parentInfo,a.templateInfo=d,a.noted=!0,n=!1);let p=d.hostProps;if(za&&h)p&&(r.hostProps=Object.assign(r.hostProps||{},p),ys||(a.parentInfo.noted=!0));else{let m="{";for(let y in p){let k=[{mode:m,source:y,dependencies:[y],hostProp:!0}];Nt(this,r,a,"property","_host_"+y,k)}}return n}static _parseBindings(o,r){let a=[],n=0,l;for(;(l=zs.exec(o))!==null;){l.index>n&&a.push({literal:o.slice(n,l.index)});let d=l[1][0],h=!!l[2],c=l[3].trim(),p=!1,m="",y=-1;d=="{"&&(y=c.indexOf("::"))>0&&(m=c.substring(y+2),c=c.substring(0,y),p=!0);let k=Vt(c),I=[];if(k){let{args:C,methodName:S}=k;for(let U=0;U<C.length;U++){let ts=C[U];ts.literal||I.push(ts)}let q=r.dynamicFns;(q&&q[S]||k.static)&&(I.push(S),k.dynamicFn=!0)}else I.push(c);a.push({source:c,mode:d,negate:h,customEvent:p,signature:k,dependencies:I,event:m}),n=zs.lastIndex}if(n&&n<o.length){let d=o.substring(n);d&&a.push({literal:d})}return a.length?a:null}static _evaluateBinding(o,r,a,n,l,d){let h;return r.signature?h=ei(o,a,n,l,r.signature):a!=r.source?h=D(o,r.source):d&&Qt(a)?h=D(o,a):h=o.__data[a],r.negate&&(h=!h),h}}return t}),ye=[];/**
990
990
  @license
991
991
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
992
992
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1002,7 +1002,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1002
1002
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1003
1003
  Code distributed by Google as part of the polymer project is also
1004
1004
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1005
- */function Ua(s){const e={};for(let t in s){const i=s[t];e[t]=typeof i=="function"?{type:i}:i}return e}const qa=w(s=>{const e=Po(s);function t(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof o?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=Ua(a))}r.__ownProperties=n}return r.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){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=t(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=t(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 o});/**
1005
+ */function Un(s){const e={};for(let t in s){const i=s[t];e[t]=typeof i=="function"?{type:i}:i}return e}const jn=w(s=>{const e=So(s);function t(r){const a=Object.getPrototypeOf(r);return a.prototype instanceof o?a:null}function i(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let a=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const n=r.properties;n&&(a=Un(n))}r.__ownProperties=a}return r.__ownProperties}class o extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const a=this._properties;this.__observedAttributes=a?Object.keys(a).map(n=>this.prototype._addPropertyToAttributeMap(n)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const a=t(this);a&&a.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const a=i(this);a&&this.createProperties(a)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const a=t(this);this.__properties=Object.assign({},a&&a._properties,i(this))}return this.__properties}static typeForProperty(a){const n=this._properties[a];return n&&n.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return o});/**
1006
1006
  * @fileoverview
1007
1007
  * @suppress {checkPrototypalTypes}
1008
1008
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -1012,7 +1012,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1012
1012
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1013
1013
  * Google as part of the polymer project is also subject to an additional IP
1014
1014
  * rights grant found at http://polymer.github.io/PATENTS.txt
1015
- */const ja="3.5.2",Vs=window.ShadyCSS&&window.ShadyCSS.cssBuild,Wa=w(s=>{const e=qa(Ei(s));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let h in d){let c=d[h];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=c)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,d,h,c){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,h.computed,c)),h.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):h.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),h.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):h.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),h.observer&&l._createPropertyObserver(d,h.observer,c[h.observer]),l._addPropertyToAttributeMap(d)}function r(l,d,h,c){if(!Vs){const p=d.content.querySelectorAll("style"),m=yo(d),y=$n(h),E=d.content.firstElementChild;for(let C=0;C<y.length;C++){let S=y[C];S.textContent=l._processStyleText(S.textContent,c),d.content.insertBefore(S,E)}let I=0;for(let C=0;C<m.length;C++){let S=m[C],U=p[I];U!==S?(S=S.cloneNode(!0),U.parentNode.insertBefore(S,U)):I++,S.textContent=l._processStyleText(S.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,h),Nn&&Vs&&Pn){const p=d.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(y=>{m+=y.textContent,y.parentNode.removeChild(y)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function n(l){let d=null;if(l&&(!at||Tn)&&(d=De.import(l,"template"),at&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends e{static get polymerElementVersion(){return ja}static _finalizeClass(){e._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):fo||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let h in d)o(this.prototype,h,d[h],d)}static createObservers(d,h){const c=this.prototype;for(let p=0;p<d.length;p++)c._createMethodObserver(d[p],h)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Ci(d.url);else{const h=De.import(this.is);this._importPath=h&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Sn,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let h in d){let c=d[h];if(this._canApplyPropertyDefault(h)){let p=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(h)?this._setPendingProperty(h,p,!0):this[h]=p}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,h){return wi(d,h)}static _finalizeTemplate(d){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const c=this.importPath,p=c?Ie(c):"";r(this,h,d,p),this.prototype._bindTemplate(h)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const h=k(this);if(h.attachShadow)return d?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:d}),h.shadowRoot.appendChild(d),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Dn&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,h){return!h&&this.importPath&&(h=Ie(this.importPath)),Ie(d,h)}static _parseTemplateContent(d,h,c){return h.dynamicFns=h.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,h,c)}static _addTemplatePropertyEffect(d,h,c){return vo&&!(h in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,h,c)}}return a});/**
1015
+ */const Wn="3.5.2",Ls=window.ShadyCSS&&window.ShadyCSS.cssBuild,Yn=w(s=>{const e=jn(Ii(s));function t(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let h in d){let c=d[h];"value"in c&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[h]=c)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function o(l,d,h,c){h.computed&&(h.readOnly=!0),h.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,h.computed,c)),h.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!h.computed):h.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),h.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):h.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),h.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):h.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),h.observer&&l._createPropertyObserver(d,h.observer,c[h.observer]),l._addPropertyToAttributeMap(d)}function r(l,d,h,c){if(!Ls){const p=d.content.querySelectorAll("style"),m=xo(d),y=$a(h),k=d.content.firstElementChild;for(let C=0;C<y.length;C++){let S=y[C];S.textContent=l._processStyleText(S.textContent,c),d.content.insertBefore(S,k)}let I=0;for(let C=0;C<m.length;C++){let S=m[C],q=p[I];q!==S?(S=S.cloneNode(!0),q.parentNode.insertBefore(S,q)):I++,S.textContent=l._processStyleText(S.textContent,c)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,h),Na&&Ls&&Pa){const p=d.content.querySelectorAll("style");if(p){let m="";Array.from(p).forEach(y=>{m+=y.textContent,y.parentNode.removeChild(y)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(m)}}}function a(l){let d=null;if(l&&(!lt||Ta)&&(d=Oe.import(l,"template"),lt&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class n extends e{static get polymerElementVersion(){return Wn}static _finalizeClass(){e._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):vo||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let h in d)o(this.prototype,h,d[h],d)}static createObservers(d,h){const c=this.prototype;for(let p=0;p<d.length;p++)c._createMethodObserver(d[p],h)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&a(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Ai(d.url);else{const h=Oe.import(this.is);this._importPath=h&&h.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super()}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Sa,this.importPath=this.constructor.importPath;let d=t(this.constructor);if(d)for(let h in d){let c=d[h];if(this._canApplyPropertyDefault(h)){let p=typeof c.value=="function"?c.value.call(this):c.value;this._hasAccessor(h)?this._setPendingProperty(h,p,!0):this[h]=p}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,h){return Ci(d,h)}static _finalizeTemplate(d){const h=this.prototype._template;if(h&&!h.__polymerFinalized){h.__polymerFinalized=!0;const c=this.importPath,p=c?Ie(c):"";r(this,h,d,p),this.prototype._bindTemplate(h)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const h=E(this);if(h.attachShadow)return d?(h.shadowRoot||(h.attachShadow({mode:"open",shadyUpgradeFragment:d}),h.shadowRoot.appendChild(d),this.constructor._styleSheet&&(h.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Da&&window.ShadyDOM&&window.ShadyDOM.flushInitial(h.shadowRoot),h.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,h){return!h&&this.importPath&&(h=Ie(this.importPath)),Ie(d,h)}static _parseTemplateContent(d,h,c){return h.dynamicFns=h.dynamicFns||this._properties,e._parseTemplateContent.call(this,d,h,c)}static _addTemplatePropertyEffect(d,h,c){return go&&!(h in this._properties)&&!(c.info.part.signature&&c.info.part.signature.static)&&!c.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${h}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,d,h,c)}}return n});/**
1016
1016
  @license
1017
1017
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1018
1018
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1020,7 +1020,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1020
1020
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1021
1021
  Code distributed by Google as part of the polymer project is also
1022
1022
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1023
- */const Ls=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:s=>s});class Mo{constructor(e,t){Bo(e,t);const i=t.reduce((o,r,n)=>o+Fo(r)+e[n+1],e[0]);this.value=i.toString()}toString(){return this.value}}function Fo(s){if(s instanceof Mo)return s.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${s}`)}function Ya(s){if(s instanceof HTMLTemplateElement)return s.innerHTML;if(s instanceof Mo)return Fo(s);throw new Error(`non-template value passed to Polymer's html function: ${s}`)}const g=function(s,...e){Bo(s,e);const t=document.createElement("template");let i=e.reduce((o,r,n)=>o+Ya(r)+s[n+1],s[0]);return Ls&&(i=Ls.createHTML(i)),t.innerHTML=i,t},Bo=(s,e)=>{if(!Array.isArray(s)||!Array.isArray(s.raw)||e.length!==s.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1023
+ */const Ms=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:s=>s});class Fo{constructor(e,t){Ro(e,t);const i=t.reduce((o,r,a)=>o+Bo(r)+e[a+1],e[0]);this.value=i.toString()}toString(){return this.value}}function Bo(s){if(s instanceof Fo)return s.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${s}`)}function Kn(s){if(s instanceof HTMLTemplateElement)return s.innerHTML;if(s instanceof Fo)return Bo(s);throw new Error(`non-template value passed to Polymer's html function: ${s}`)}const g=function(s,...e){Ro(s,e);const t=document.createElement("template");let i=e.reduce((o,r,a)=>o+Kn(r)+s[a+1],s[0]);return Ms&&(i=Ms.createHTML(i)),t.innerHTML=i,t},Ro=(s,e)=>{if(!Array.isArray(s)||!Array.isArray(s.raw)||e.length!==s.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1024
1024
  @license
1025
1025
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1026
1026
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1028,7 +1028,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1028
1028
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1029
1029
  Code distributed by Google as part of the polymer project is also
1030
1030
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1031
- */const b=Wa(HTMLElement),Ka=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Qe=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Ga(){function s(){return!0}return Ro(s)}function Xa(){try{return Ja()?!0:Qa()?Qe?!Za():!Ga():!1}catch(s){return!1}}function Ja(){return localStorage.getItem("vaadin.developmentmode.force")}function Qa(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function Za(){return!!(Qe&&Object.keys(Qe).map(s=>Qe[s]).filter(s=>s.productionMode).length>0)}function Ro(s,e){if(typeof s!="function")return;const t=Ka.exec(s.toString());if(t)try{s=new Function(t[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return s(e)}window.Vaadin=window.Vaadin||{};const Ms=function(s,e){if(window.Vaadin.developmentMode)return Ro(s,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Xa());function el(){/*! vaadin-dev-mode:start
1031
+ */const b=Yn(HTMLElement),Gn=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Ze=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Xn(){function s(){return!0}return $o(s)}function Jn(){try{return Qn()?!0:Zn()?Ze?!el():!Xn():!1}catch(s){return!1}}function Qn(){return localStorage.getItem("vaadin.developmentmode.force")}function Zn(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function el(){return!!(Ze&&Object.keys(Ze).map(s=>Ze[s]).filter(s=>s.productionMode).length>0)}function $o(s,e){if(typeof s!="function")return;const t=Gn.exec(s.toString());if(t)try{s=new Function(t[1])}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i)}return s(e)}window.Vaadin=window.Vaadin||{};const Fs=function(s,e){if(window.Vaadin.developmentMode)return $o(s,e)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=Jn());function tl(){/*! vaadin-dev-mode:start
1032
1032
  (function () {
1033
1033
  'use strict';
1034
1034
 
@@ -1506,7 +1506,7 @@ try {
1506
1506
 
1507
1507
  }());
1508
1508
 
1509
- vaadin-dev-mode:end **/}const tl=function(){if(typeof Ms=="function")return Ms(el)};/**
1509
+ vaadin-dev-mode:end **/}const il=function(){if(typeof Fs=="function")return Fs(tl)};/**
1510
1510
  * @license
1511
1511
  * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1512
1512
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1514,7 +1514,7 @@ try {
1514
1514
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1515
1515
  * Code distributed by Google as part of the polymer project is also
1516
1516
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1517
- */let Fs=0,$o=0;const he=[];let ei=!1;function il(){ei=!1;const s=he.length;for(let e=0;e<s;e++){const t=he[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}he.splice(0,s),$o+=s}const W={after(s){return{run(e){return window.setTimeout(e,s)},cancel(e){window.clearTimeout(e)}}},run(s,e){return window.setTimeout(s,e)},cancel(s){window.clearTimeout(s)}},Le={run(s){return window.requestAnimationFrame(s)},cancel(s){window.cancelAnimationFrame(s)}},Ho={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s)}},dt={run(s){ei||(ei=!0,queueMicrotask(()=>il())),he.push(s);const e=Fs;return Fs+=1,e},cancel(s){const e=s-$o;if(e>=0){if(!he[e])throw new Error(`invalid async handle: ${s}`);he[e]=null}}};/**
1517
+ */let Bs=0,Ho=0;const he=[];let ti=!1;function sl(){ti=!1;const s=he.length;for(let e=0;e<s;e++){const t=he[e];if(t)try{t()}catch(i){setTimeout(()=>{throw i})}}he.splice(0,s),Ho+=s}const W={after(s){return{run(e){return window.setTimeout(e,s)},cancel(e){window.clearTimeout(e)}}},run(s,e){return window.setTimeout(s,e)},cancel(s){window.clearTimeout(s)}},Me={run(s){return window.requestAnimationFrame(s)},cancel(s){window.cancelAnimationFrame(s)}},qo={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s)}},ht={run(s){ti||(ti=!0,queueMicrotask(()=>sl())),he.push(s);const e=Bs;return Bs+=1,e},cancel(s){const e=s-Ho;if(e>=0){if(!he[e])throw new Error(`invalid async handle: ${s}`);he[e]=null}}};/**
1518
1518
  @license
1519
1519
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1520
1520
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1522,31 +1522,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1522
1522
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1523
1523
  Code distributed by Google as part of the polymer project is also
1524
1524
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1525
- */const Me=new Set;let z=class ti{static debounce(e,t,i){return e instanceof ti?e._cancelAsync():e=new ti,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Me.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Me.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 Uo(s){Me.add(s)}function sl(){const s=!!Me.size;return Me.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),s}const ke=()=>{let s;do s=sl();while(s)};/**
1525
+ */const Fe=new Set;let z=class ii{static debounce(e,t,i){return e instanceof ii?e._cancelAsync():e=new ii,e.setConfig(t,i),e}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Fe.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Fe.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 Uo(s){Fe.add(s)}function ol(){const s=!!Fe.size;return Fe.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),s}const Ee=()=>{let s;do s=ol();while(s)};/**
1526
1526
  * @license
1527
1527
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1528
1528
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1529
- */const B=[];function ii(s,e,t=s.getAttribute("dir")){e?s.setAttribute("dir",e):t!=null&&s.removeAttribute("dir")}function si(){return document.documentElement.getAttribute("dir")}function ol(){const s=si();B.forEach(e=>{ii(e,s)})}const rl=new MutationObserver(ol);rl.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const N=s=>class extends s{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(),ii(this,si(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e!=="dir")return;const o=si(),r=i===o&&B.indexOf(this)===-1,n=!i&&t&&B.indexOf(this)===-1;r||n?(this.__subscribe(),ii(this,o,i)):i!==o&&t===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=B.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){i==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,i)}__subscribe(){B.includes(this)||B.push(this)}__unsubscribe(){B.includes(this)&&B.splice(B.indexOf(this),1)}};/**
1529
+ */const B=[];function si(s,e,t=s.getAttribute("dir")){e?s.setAttribute("dir",e):t!=null&&s.removeAttribute("dir")}function oi(){return document.documentElement.getAttribute("dir")}function rl(){const s=oi();B.forEach(e=>{si(e,s)})}const al=new MutationObserver(rl);al.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const N=s=>class extends s{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(),si(this,oi(),null))}attributeChangedCallback(e,t,i){if(super.attributeChangedCallback(e,t,i),e!=="dir")return;const o=oi(),r=i===o&&B.indexOf(this)===-1,a=!i&&t&&B.indexOf(this)===-1;r||a?(this.__subscribe(),si(this,o,i)):i!==o&&t===o&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=B.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,t,i){i==="dir"&&t===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,t,i)}_attributeToProperty(e,t,i){e==="dir"&&!t?this.dir="":super._attributeToProperty(e,t,i)}__subscribe(){B.includes(this)||B.push(this)}__unsubscribe(){B.includes(this)&&B.splice(B.indexOf(this),1)}};/**
1530
1530
  * @license
1531
1531
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1532
1532
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1533
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){tl()};let Vt;const Bs=new Set,F=s=>class extends N(s){static finalize(){super.finalize();const{is:e}=this;e&&!Bs.has(e)&&(window.Vaadin.registrations.push(this),Bs.add(e),window.Vaadin.developmentModeCallback&&(Vt=z.debounce(Vt,Ho,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Uo(Vt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1533
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){il()};let Lt;const Rs=new Set,F=s=>class extends N(s){static finalize(){super.finalize();const{is:e}=this;e&&!Rs.has(e)&&(window.Vaadin.registrations.push(this),Rs.add(e),window.Vaadin.developmentModeCallback&&(Lt=z.debounce(Lt,qo,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),Uo(Lt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1534
1534
  * @license
1535
1535
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1536
1536
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1537
- */function nl(s){const e=[];for(;s;){if(s.nodeType===Node.DOCUMENT_NODE){e.push(s);break}if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(s),s=s.host;continue}if(s.assignedSlot){s=s.assignedSlot;continue}s=s.parentNode}return e}function qo(s){const e=[];let t;return s.localName==="slot"?t=s.assignedElements():(e.push(s),t=[...s.children]),t.forEach(i=>e.push(...qo(i))),e}function Ii(s){return s?new Set(s.split(" ")):new Set}function ft(s){return s?[...s].join(" "):""}function jo(s,e,t){const i=Ii(s.getAttribute(e));i.add(t),s.setAttribute(e,ft(i))}function al(s,e,t){const i=Ii(s.getAttribute(e));if(i.delete(t),i.size===0){s.removeAttribute(e);return}s.setAttribute(e,ft(i))}function ll(s){return s.nodeType===Node.TEXT_NODE&&s.textContent.trim()===""}/**
1537
+ */function nl(s){const e=[];for(;s;){if(s.nodeType===Node.DOCUMENT_NODE){e.push(s);break}if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){e.push(s),s=s.host;continue}if(s.assignedSlot){s=s.assignedSlot;continue}s=s.parentNode}return e}function jo(s){const e=[];let t;return s.localName==="slot"?t=s.assignedElements():(e.push(s),t=[...s.children]),t.forEach(i=>e.push(...jo(i))),e}function Pi(s){return s?new Set(s.split(" ")):new Set}function vt(s){return s?[...s].join(" "):""}function Wo(s,e,t){const i=Pi(s.getAttribute(e));i.add(t),s.setAttribute(e,vt(i))}function ll(s,e,t){const i=Pi(s.getAttribute(e));if(i.delete(t),i.size===0){s.removeAttribute(e);return}s.setAttribute(e,vt(i))}function dl(s){return s.nodeType===Node.TEXT_NODE&&s.textContent.trim()===""}/**
1538
1538
  * @license
1539
1539
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1540
1540
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1541
- */class Pi{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const i=[],o=[];e.length&&(t=e.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=e.indexOf(r);a===-1?i.push(r):a!==n&&o.push(r)}),(t.length||i.length||o.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:o,removedNodes:i}),this._storedNodes=e}}/**
1541
+ */class Si{constructor(e,t){this.slot=e,this.callback=t,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const e=this.slot.assignedNodes({flatten:!0});let t=[];const i=[],o=[];e.length&&(t=e.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,a)=>{const n=e.indexOf(r);n===-1?i.push(r):n!==a&&o.push(r)}),(t.length||i.length||o.length)&&this.callback({addedNodes:t,currentNodes:e,movedNodes:o,removedNodes:i}),this._storedNodes=e}}/**
1542
1542
  * @license
1543
1543
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1544
1544
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1545
- */let dl=0;function vt(){return dl++}/**
1545
+ */let hl=0;function gt(){return hl++}/**
1546
1546
  * @license
1547
1547
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1548
1548
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1549
- */class M extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${vt()}`}constructor(e,t,i,o={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=e,this.slotName=t,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(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:i}=this;let o=this.defaultNode;return!o&&i&&(o=document.createElement(i),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,e.appendChild(o)),o}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Pi(i,({addedNodes:o,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=o.filter(l=>!ll(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)))})}}/**
1549
+ */class M extends EventTarget{static generateId(e,t="default"){return`${t}-${e.localName}-${gt()}`}constructor(e,t,i,o={}){super();const{initializer:r,multiple:a,observe:n,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=e,this.slotName=t,this.tagName=i,this.observe=typeof n=="boolean"?n:!0,this.multiple=typeof a=="boolean"?a:!1,this.slotInitializer=r,a&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(e,d||t))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let e=this.getSlotChild();e?(this.node=e,this.initAddedNode(e)):(e=this.attachDefaultNode(),this.initNode(e))}initMultiple(){const e=this.getSlotChildren();if(e.length===0){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=e,e.forEach(t=>{this.initAddedNode(t)})}attachDefaultNode(){const{host:e,slotName:t,tagName:i}=this;let o=this.defaultNode;return!o&&i&&(o=document.createElement(i),o instanceof Element&&(t!==""&&o.setAttribute("slot",t),this.defaultNode=o)),o&&(this.node=o,e.appendChild(o)),o}getSlotChildren(){const{slotName:e}=this;return Array.from(this.host.childNodes).filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.slot===e||t.nodeType===Node.TEXT_NODE&&t.textContent.trim()&&e==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(e){const{slotInitializer:t}=this;t&&t(e,this.host)}initCustomNode(e){}teardownNode(e){}initAddedNode(e){e!==this.defaultNode&&(this.initCustomNode(e),this.initNode(e))}observeSlot(){const{slotName:e}=this,t=e===""?"slot:not([name])":`slot[name=${e}]`,i=this.host.shadowRoot.querySelector(t);this.__slotObserver=new Si(i,({addedNodes:o,removedNodes:r})=>{const a=this.multiple?this.nodes:[this.node],n=o.filter(l=>!dl(l)&&!a.includes(l));r.length&&(this.nodes=a.filter(l=>!r.includes(l)),r.forEach(l=>{this.teardownNode(l)})),n&&n.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...a,...n].filter(l=>l!==this.defaultNode),n.forEach(l=>{this.initAddedNode(l)})):(this.node&&this.node.remove(),this.node=n[0],this.initAddedNode(this.node)))})}}/**
1550
1550
  * @license
1551
1551
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1552
1552
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1558,7 +1558,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1558
1558
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1559
1559
  Code distributed by Google as part of the polymer project is also
1560
1560
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1561
- */const hl=s=>s,Wo=typeof document.head.style.touchAction=="string",oi="__polymerGestures",Lt="__polymerGesturesHandled",ri="__polymerGesturesTouchAction",Rs=25,$s=5,cl=2,ul=["mousedown","mousemove","mouseup","click"],pl=[0,1,4,2],ml=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(s){return!1}}();function Yo(s){return ul.indexOf(s)>-1}(function(){try{const s=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s)}catch(s){}})();const _l=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),fl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ee(s){const e=s.type;if(!Yo(e))return!1;if(e==="mousemove"){let t=s.buttons===void 0?1:s.buttons;return s instanceof window.MouseEvent&&!ml&&(t=pl[s.which]||0),!!(t&1)}return(s.button===void 0?0:s.button)===0}function vl(s){if(s.type==="click"){if(s.detail===0)return!0;const e=Y(s);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),i=s.pageX,o=s.pageY;return!(i>=t.left&&i<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const R={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function gl(s){let e="auto";const t=Go(s);for(let i=0,o;i<t.length;i++)if(o=t[i],o[ri]){e=o[ri];break}return e}function Ko(s,e,t){s.movefn=e,s.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function ce(s){document.removeEventListener("mousemove",s.movefn),document.removeEventListener("mouseup",s.upfn),s.movefn=null,s.upfn=null}const Go=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:s=>s.composedPath&&s.composedPath()||[],Si={},Z=[];function bl(s,e){let t=document.elementFromPoint(s,e),i=t;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(s,e),o===i)break;i&&(t=i)}return t}function Y(s){const e=Go(s);return e.length>0?e[0]:s.target}function yl(s){const e=s.type,t=s.currentTarget[oi];if(!t)return;const i=t[e];if(!i)return;if(!s[Lt]&&(s[Lt]={},e.startsWith("touch"))){const r=s.changedTouches[0];if(e==="touchstart"&&s.touches.length===1&&(R.touch.id=r.identifier),R.touch.id!==r.identifier)return;Wo||(e==="touchstart"||e==="touchmove")&&xl(s)}const o=s[Lt];if(!o.skip){for(let r=0,n;r<Z.length;r++)n=Z[r],i[n.name]&&!o[n.name]&&n.flow&&n.flow.start.indexOf(s.type)>-1&&n.reset&&n.reset();for(let r=0,n;r<Z.length;r++)n=Z[r],i[n.name]&&!o[n.name]&&(o[n.name]=!0,n[e](s))}}function xl(s){const e=s.changedTouches[0],t=s.type;if(t==="touchstart")R.touch.x=e.clientX,R.touch.y=e.clientY,R.touch.scrollDecided=!1;else if(t==="touchmove"){if(R.touch.scrollDecided)return;R.touch.scrollDecided=!0;const i=gl(s);let o=!1;const r=Math.abs(R.touch.x-e.clientX),n=Math.abs(R.touch.y-e.clientY);s.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=n>r:i==="pan-y"&&(o=r>n)),o?s.preventDefault():ht("track")}}function L(s,e,t){return Si[e]?(wl(s,e,t),!0):!1}function wl(s,e,t){const i=Si[e],o=i.deps,r=i.name;let n=s[oi];n||(s[oi]=n={});for(let a=0,l,d;a<o.length;a++)l=o[a],!(_l&&Yo(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&s.addEventListener(l,yl,void 0),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);s.addEventListener(e,t),i.touchAction&&Xo(s,i.touchAction)}function Ti(s){Z.push(s),s.emits.forEach(e=>{Si[e]=s})}function Cl(s){for(let e=0,t;e<Z.length;e++){t=Z[e];for(let i=0,o;i<t.emits.length;i++)if(o=t.emits[i],o===s)return t}return null}function Xo(s,e){Wo&&s instanceof HTMLElement&&dt.run(()=>{s.style.touchAction=e}),s[ri]=e}function Di(s,e,t){const i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=t,hl(s).dispatchEvent(i),i.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function ht(s){const e=Cl(s);e.info&&(e.info.prevent=!0)}Ti({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ce(this.info)},mousedown(s){if(!ee(s))return;const e=Y(s),t=this,i=r=>{ee(r)||(xe("up",e,r),ce(t.info))},o=r=>{ee(r)&&xe("up",e,r),ce(t.info)};Ko(this.info,i,o),xe("down",e,s)},touchstart(s){xe("down",Y(s),s.changedTouches[0],s)},touchend(s){xe("up",Y(s),s.changedTouches[0],s)}});function xe(s,e,t,i){e&&Di(e,s,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i,prevent(o){return ht(o)}})}Ti({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(s){this.moves.length>cl&&this.moves.shift(),this.moves.push(s)},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,ce(this.info)},mousedown(s){if(!ee(s))return;const e=Y(s),t=this,i=r=>{const n=r.clientX,a=r.clientY;Hs(t.info,n,a)&&(t.info.state=t.info.started?r.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&ht("tap"),t.info.addMove({x:n,y:a}),ee(r)||(t.info.state="end",ce(t.info)),e&&Mt(t.info,e,r),t.info.started=!0)},o=r=>{t.info.started&&i(r),ce(t.info)};Ko(this.info,i,o),this.info.x=s.clientX,this.info.y=s.clientY},touchstart(s){const e=s.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(s){const e=Y(s),t=s.changedTouches[0],i=t.clientX,o=t.clientY;Hs(this.info,i,o)&&(this.info.state==="start"&&ht("tap"),this.info.addMove({x:i,y:o}),Mt(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(s){const e=Y(s),t=s.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Mt(this.info,e,t))}});function Hs(s,e,t){if(s.prevent)return!1;if(s.started)return!0;const i=Math.abs(s.x-e),o=Math.abs(s.y-t);return i>=$s||o>=$s}function Mt(s,e,t){if(!e)return;const i=s.moves[s.moves.length-2],o=s.moves[s.moves.length-1],r=o.x-s.x,n=o.y-s.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),Di(e,"track",{state:s.state,x:t.clientX,y:t.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:t,hover(){return bl(t.clientX,t.clientY)}})}Ti({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(s){ee(s)&&(this.info.x=s.clientX,this.info.y=s.clientY)},click(s){ee(s)&&Us(this.info,s)},touchstart(s){const e=s.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(s){Us(this.info,s.changedTouches[0],s)}});function Us(s,e,t){const i=Math.abs(e.clientX-s.x),o=Math.abs(e.clientY-s.y),r=Y(t||e);!r||fl[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=Rs&&o<=Rs||vl(e))&&(s.prevent||Di(r,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1561
+ */const cl=s=>s,Yo=typeof document.head.style.touchAction=="string",ri="__polymerGestures",Mt="__polymerGesturesHandled",ai="__polymerGesturesTouchAction",$s=25,Hs=5,ul=2,pl=["mousedown","mousemove","mouseup","click"],ml=[0,1,4,2],_l=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(s){return!1}}();function Ko(s){return pl.indexOf(s)>-1}(function(){try{const s=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s)}catch(s){}})();const fl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),vl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ee(s){const e=s.type;if(!Ko(e))return!1;if(e==="mousemove"){let t=s.buttons===void 0?1:s.buttons;return s instanceof window.MouseEvent&&!_l&&(t=ml[s.which]||0),!!(t&1)}return(s.button===void 0?0:s.button)===0}function gl(s){if(s.type==="click"){if(s.detail===0)return!0;const e=Y(s);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const t=e.getBoundingClientRect(),i=s.pageX,o=s.pageY;return!(i>=t.left&&i<=t.right&&o>=t.top&&o<=t.bottom)}return!1}const R={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function bl(s){let e="auto";const t=Xo(s);for(let i=0,o;i<t.length;i++)if(o=t[i],o[ai]){e=o[ai];break}return e}function Go(s,e,t){s.movefn=e,s.upfn=t,document.addEventListener("mousemove",e),document.addEventListener("mouseup",t)}function ce(s){document.removeEventListener("mousemove",s.movefn),document.removeEventListener("mouseup",s.upfn),s.movefn=null,s.upfn=null}const Xo=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:s=>s.composedPath&&s.composedPath()||[],Ti={},Z=[];function yl(s,e){let t=document.elementFromPoint(s,e),i=t;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(s,e),o===i)break;i&&(t=i)}return t}function Y(s){const e=Xo(s);return e.length>0?e[0]:s.target}function xl(s){const e=s.type,t=s.currentTarget[ri];if(!t)return;const i=t[e];if(!i)return;if(!s[Mt]&&(s[Mt]={},e.startsWith("touch"))){const r=s.changedTouches[0];if(e==="touchstart"&&s.touches.length===1&&(R.touch.id=r.identifier),R.touch.id!==r.identifier)return;Yo||(e==="touchstart"||e==="touchmove")&&wl(s)}const o=s[Mt];if(!o.skip){for(let r=0,a;r<Z.length;r++)a=Z[r],i[a.name]&&!o[a.name]&&a.flow&&a.flow.start.indexOf(s.type)>-1&&a.reset&&a.reset();for(let r=0,a;r<Z.length;r++)a=Z[r],i[a.name]&&!o[a.name]&&(o[a.name]=!0,a[e](s))}}function wl(s){const e=s.changedTouches[0],t=s.type;if(t==="touchstart")R.touch.x=e.clientX,R.touch.y=e.clientY,R.touch.scrollDecided=!1;else if(t==="touchmove"){if(R.touch.scrollDecided)return;R.touch.scrollDecided=!0;const i=bl(s);let o=!1;const r=Math.abs(R.touch.x-e.clientX),a=Math.abs(R.touch.y-e.clientY);s.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=a>r:i==="pan-y"&&(o=r>a)),o?s.preventDefault():ct("track")}}function L(s,e,t){return Ti[e]?(Cl(s,e,t),!0):!1}function Cl(s,e,t){const i=Ti[e],o=i.deps,r=i.name;let a=s[ri];a||(s[ri]=a={});for(let n=0,l,d;n<o.length;n++)l=o[n],!(fl&&Ko(l)&&l!=="click")&&(d=a[l],d||(a[l]=d={_count:0}),d._count===0&&s.addEventListener(l,xl,void 0),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);s.addEventListener(e,t),i.touchAction&&Jo(s,i.touchAction)}function Di(s){Z.push(s),s.emits.forEach(e=>{Ti[e]=s})}function Al(s){for(let e=0,t;e<Z.length;e++){t=Z[e];for(let i=0,o;i<t.emits.length;i++)if(o=t.emits[i],o===s)return t}return null}function Jo(s,e){Yo&&s instanceof HTMLElement&&ht.run(()=>{s.style.touchAction=e}),s[ai]=e}function Oi(s,e,t){const i=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=t,cl(s).dispatchEvent(i),i.defaultPrevented){const o=t.preventer||t.sourceEvent;o&&o.preventDefault&&o.preventDefault()}}function ct(s){const e=Al(s);e.info&&(e.info.prevent=!0)}Di({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ce(this.info)},mousedown(s){if(!ee(s))return;const e=Y(s),t=this,i=r=>{ee(r)||(xe("up",e,r),ce(t.info))},o=r=>{ee(r)&&xe("up",e,r),ce(t.info)};Go(this.info,i,o),xe("down",e,s)},touchstart(s){xe("down",Y(s),s.changedTouches[0],s)},touchend(s){xe("up",Y(s),s.changedTouches[0],s)}});function xe(s,e,t,i){e&&Oi(e,s,{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:i,prevent(o){return ct(o)}})}Di({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(s){this.moves.length>ul&&this.moves.shift(),this.moves.push(s)},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,ce(this.info)},mousedown(s){if(!ee(s))return;const e=Y(s),t=this,i=r=>{const a=r.clientX,n=r.clientY;qs(t.info,a,n)&&(t.info.state=t.info.started?r.type==="mouseup"?"end":"track":"start",t.info.state==="start"&&ct("tap"),t.info.addMove({x:a,y:n}),ee(r)||(t.info.state="end",ce(t.info)),e&&Ft(t.info,e,r),t.info.started=!0)},o=r=>{t.info.started&&i(r),ce(t.info)};Go(this.info,i,o),this.info.x=s.clientX,this.info.y=s.clientY},touchstart(s){const e=s.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(s){const e=Y(s),t=s.changedTouches[0],i=t.clientX,o=t.clientY;qs(this.info,i,o)&&(this.info.state==="start"&&ct("tap"),this.info.addMove({x:i,y:o}),Ft(this.info,e,t),this.info.state="track",this.info.started=!0)},touchend(s){const e=Y(s),t=s.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:t.clientX,y:t.clientY}),Ft(this.info,e,t))}});function qs(s,e,t){if(s.prevent)return!1;if(s.started)return!0;const i=Math.abs(s.x-e),o=Math.abs(s.y-t);return i>=Hs||o>=Hs}function Ft(s,e,t){if(!e)return;const i=s.moves[s.moves.length-2],o=s.moves[s.moves.length-1],r=o.x-s.x,a=o.y-s.y;let n,l=0;i&&(n=o.x-i.x,l=o.y-i.y),Oi(e,"track",{state:s.state,x:t.clientX,y:t.clientY,dx:r,dy:a,ddx:n,ddy:l,sourceEvent:t,hover(){return yl(t.clientX,t.clientY)}})}Di({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(s){ee(s)&&(this.info.x=s.clientX,this.info.y=s.clientY)},click(s){ee(s)&&Us(this.info,s)},touchstart(s){const e=s.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(s){Us(this.info,s.changedTouches[0],s)}});function Us(s,e,t){const i=Math.abs(e.clientX-s.x),o=Math.abs(e.clientY-s.y),r=Y(t||e);!r||vl[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=$s&&o<=$s||gl(e))&&(s.prevent||Oi(r,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:t}))}/**
1562
1562
  * @license
1563
1563
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1564
1564
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1570,43 +1570,43 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1570
1570
  * @license
1571
1571
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1572
1572
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1573
- */const Oi=s=>class extends ve(se(s)){get _activeKeys(){return[" "]}ready(){super.ready(),L(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),L(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
1573
+ */const zi=s=>class extends ve(se(s)){get _activeKeys(){return[" "]}ready(){super.ready(),L(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),L(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
1574
1574
  * @license
1575
1575
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1576
1576
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1577
- */let zi=!1;window.addEventListener("keydown",()=>{zi=!0},{capture:!0});window.addEventListener("mousedown",()=>{zi=!1},{capture:!0});function ni(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function gt(){return zi}function Jo(s){const e=s.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(s);return t.visibility==="hidden"||t.display==="none"}function Al(s,e){const t=Math.max(s.tabIndex,0),i=Math.max(e.tabIndex,0);return t===0||i===0?i>t:t>i}function kl(s,e){const t=[];for(;s.length>0&&e.length>0;)Al(s[0],e[0])?t.push(e.shift()):t.push(s.shift());return t.concat(s,e)}function ai(s){const e=s.length;if(e<2)return s;const t=Math.ceil(e/2),i=ai(s.slice(0,t)),o=ai(s.slice(t));return kl(i,o)}function li(s){return s.offsetParent===null&&s.clientWidth===0&&s.clientHeight===0?!0:Jo(s)}function Ni(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Vi(s){return s.getRootNode().activeElement===s}function El(s){if(!Ni(s))return-1;const e=s.getAttribute("tabindex")||0;return Number(e)}function Qo(s,e){if(s.nodeType!==Node.ELEMENT_NODE||Jo(s))return!1;const t=s,i=El(t);let o=i>0;i>=0&&e.push(t);let r=[];return t.localName==="slot"?r=t.assignedNodes({flatten:!0}):r=(t.shadowRoot||t).children,[...r].forEach(n=>{o=Qo(n,e)||o}),o}function Il(s){const e=[];return Qo(s,e)?ai(e):e}/**
1577
+ */let Ni=!1;window.addEventListener("keydown",()=>{Ni=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ni=!1},{capture:!0});function ni(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function bt(){return Ni}function Qo(s){const e=s.style;if(e.visibility==="hidden"||e.display==="none")return!0;const t=window.getComputedStyle(s);return t.visibility==="hidden"||t.display==="none"}function El(s,e){const t=Math.max(s.tabIndex,0),i=Math.max(e.tabIndex,0);return t===0||i===0?i>t:t>i}function kl(s,e){const t=[];for(;s.length>0&&e.length>0;)El(s[0],e[0])?t.push(e.shift()):t.push(s.shift());return t.concat(s,e)}function li(s){const e=s.length;if(e<2)return s;const t=Math.ceil(e/2),i=li(s.slice(0,t)),o=li(s.slice(t));return kl(i,o)}function di(s){return s.offsetParent===null&&s.clientWidth===0&&s.clientHeight===0?!0:Qo(s)}function Vi(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Li(s){return s.getRootNode().activeElement===s}function Il(s){if(!Vi(s))return-1;const e=s.getAttribute("tabindex")||0;return Number(e)}function Zo(s,e){if(s.nodeType!==Node.ELEMENT_NODE||Qo(s))return!1;const t=s,i=Il(t);let o=i>0;i>=0&&e.push(t);let r=[];return t.localName==="slot"?r=t.assignedNodes({flatten:!0}):r=(t.shadowRoot||t).children,[...r].forEach(a=>{o=Zo(a,e)||o}),o}function Pl(s){const e=[];return Zo(s,e)?li(e):e}/**
1578
1578
  * @license
1579
1579
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1580
1580
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1581
- */const oe=w(s=>class extends s{get _keyboardActive(){return gt()}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}});/**
1581
+ */const oe=w(s=>class extends s{get _keyboardActive(){return bt()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
1582
1582
  * @license
1583
1583
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1584
1584
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1585
- */const Zo=s=>class extends ve(s){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1585
+ */const er=s=>class extends ve(s){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,t){super._disabledChanged(e,t),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):t&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1586
1586
  * @license
1587
1587
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1588
1588
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1589
- */const bt=w(s=>class extends oe(Zo(s)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1589
+ */const yt=w(s=>class extends oe(er(s)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,t){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):t&&this._removeFocusListeners(t)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,t){super._disabledChanged(e,t),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1590
1590
  * @license
1591
1591
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1592
1592
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1593
- */const Li=w(s=>class extends s{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,i)=>{this._delegateAttribute(t,e[i])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,i)=>{this._delegateProperty(t,e[i])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1593
+ */const Mi=w(s=>class extends s{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((t,i)=>{this._delegateAttribute(t,e[i])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((t,i)=>{this._delegateProperty(t,e[i])})}_delegateAttribute(e,t){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",t?"true":!1),typeof t=="boolean"?this.stateTarget.toggleAttribute(e,t):t?this.stateTarget.setAttribute(e,t):this.stateTarget.removeAttribute(e))}_delegateProperty(e,t){this.stateTarget&&(this.stateTarget[e]=t)}});/**
1594
1594
  * @license
1595
1595
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1596
1596
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1597
- */const Re=w(s=>class extends s{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,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
1597
+ */const $e=w(s=>class extends s{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,t){e?this._addInputListeners(e):t&&this._removeInputListeners(t)}_hasInputValueChanged(e,t){(e||t)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const t=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=t.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,t){this._toggleHasValue(this._hasValue),!(e===""&&t===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const t=e.composedPath()[0];this._hasInputValue=t.value.length>0}});/**
1598
1598
  * @license
1599
1599
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1600
1600
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1601
- */const Pl=w(s=>class extends Li(ve(Re(s))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1601
+ */const Sl=w(s=>class extends Mi(ve($e(s))){static get properties(){return{checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return[...super.delegateProps,"checked"]}_onChange(e){const t=e.target;this._toggleChecked(t.checked)}_toggleChecked(e){this.checked=e}});/**
1602
1602
  * @license
1603
1603
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
1604
1604
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1605
- */const Ft=new Map;function Mi(s){return Ft.has(s)||Ft.set(s,new WeakMap),Ft.get(s)}function er(s,e){s&&s.removeAttribute(e)}function tr(s,e){if(!s||!e)return;const t=Mi(e);if(t.has(s))return;const i=Ii(s.getAttribute(e));t.set(s,new Set(i))}function Sl(s,e){if(!s)return;const t=Mi(e),i=t.get(s);!i||i.size===0?s.removeAttribute(e):jo(s,e,ft(i)),t.delete(s)}function Ze(s,e,t={newId:null,oldId:null,fromUser:!1}){if(!s||!e)return;const{newId:i,oldId:o,fromUser:r}=t,n=Mi(e),a=n.get(s);if(!r&&a){o&&a.delete(o),i&&a.add(i);return}r&&(a?i||n.delete(s):tr(s,e),er(s,e)),al(s,e,o);const l=i||ft(a);l&&jo(s,e,l)}function Tl(s,e){tr(s,e),er(s,e)}/**
1605
+ */const Bt=new Map;function Fi(s){return Bt.has(s)||Bt.set(s,new WeakMap),Bt.get(s)}function tr(s,e){s&&s.removeAttribute(e)}function ir(s,e){if(!s||!e)return;const t=Fi(e);if(t.has(s))return;const i=Pi(s.getAttribute(e));t.set(s,new Set(i))}function Tl(s,e){if(!s)return;const t=Fi(e),i=t.get(s);!i||i.size===0?s.removeAttribute(e):Wo(s,e,vt(i)),t.delete(s)}function et(s,e,t={newId:null,oldId:null,fromUser:!1}){if(!s||!e)return;const{newId:i,oldId:o,fromUser:r}=t,a=Fi(e),n=a.get(s);if(!r&&n){o&&n.delete(o),i&&n.add(i);return}r&&(n?i||a.delete(s):ir(s,e),tr(s,e)),ll(s,e,o);const l=i||vt(n);l&&Wo(s,e,l)}function Dl(s,e){ir(s,e),tr(s,e)}/**
1606
1606
  * @license
1607
1607
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1608
1608
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1609
- */class Dl{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(Tl(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Sl(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){Ze(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){Ze(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){Ze(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1609
+ */class Ol{constructor(e){this.host=e,this.__required=!1}setTarget(e){this.__target=e,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(e){this.__setAriaRequiredAttribute(e),this.__required=e}setAriaLabel(e){this.__setAriaLabelToAttribute(e),this.__label=e}setLabelId(e,t=!1){const i=t?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(e,i,t),t?this.__labelIdFromUser=e:this.__labelId=e}setErrorId(e){this.__setErrorIdToAriaAttribute(e,this.__errorId),this.__errorId=e}setHelperId(e){this.__setHelperIdToAriaAttribute(e,this.__helperId),this.__helperId=e}__setAriaLabelToAttribute(e){this.__target&&(e?(Dl(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",e)):this.__label&&(Tl(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(e,t,i){et(this.__target,"aria-labelledby",{newId:e,oldId:t,fromUser:i})}__setErrorIdToAriaAttribute(e,t){et(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setHelperIdToAriaAttribute(e,t){et(this.__target,"aria-describedby",{newId:e,oldId:t,fromUser:!1})}__setAriaRequiredAttribute(e){this.__target&&(["input","textarea"].includes(this.__target.localName)||(e?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1610
1610
  * @license
1611
1611
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1612
1612
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -1614,51 +1614,51 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1614
1614
  * @license
1615
1615
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1616
1616
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1617
- */const V=document.createElement("div");V.style.position="fixed";V.style.clip="rect(0px, 0px, 0px, 0px)";V.setAttribute("aria-live","polite");document.body.appendChild(V);let je;function et(s,e={}){const t=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;t==="alert"?(V.removeAttribute("aria-live"),V.removeAttribute("role"),je=z.debounce(je,Le,()=>{V.setAttribute("role","alert")})):(je&&je.cancel(),V.removeAttribute("role"),V.setAttribute("aria-live",t)),V.textContent="",setTimeout(()=>{V.textContent=s},i)}/**
1617
+ */const V=document.createElement("div");V.style.position="fixed";V.style.clip="rect(0px, 0px, 0px, 0px)";V.setAttribute("aria-live","polite");document.body.appendChild(V);let We;function tt(s,e={}){const t=e.mode||"polite",i=e.timeout===void 0?150:e.timeout;t==="alert"?(V.removeAttribute("aria-live"),V.removeAttribute("role"),We=z.debounce(We,Me,()=>{V.setAttribute("role","alert")})):(We&&We.cancel(),V.removeAttribute("role"),V.setAttribute("aria-live",t)),V.textContent="",setTimeout(()=>{V.textContent=s},i)}/**
1618
1618
  * @license
1619
1619
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
1620
1620
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1621
- */class Fi extends M{constructor(e,t,i,o={}){super(e,t,i,Zs(tt({},o),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(i=>{const o=i.target,r=o===this.node;i.type==="attributes"?r&&this.__updateNodeId(o):(r||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1621
+ */class Bi extends M{constructor(e,t,i,o={}){super(e,t,i,eo(it({},o),{useUniqueId:!0}))}initCustomNode(e){this.__updateNodeId(e),this.__notifyChange(e)}teardownNode(e){const t=this.getSlotChild();t&&t!==this.defaultNode?this.__notifyChange(t):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const e=super.attachDefaultNode();return e&&this.__updateNodeId(e),e}restoreDefaultNode(){}updateDefaultNode(e){this.__notifyChange(e)}observeNode(e){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(t=>{t.forEach(i=>{const o=i.target,r=o===this.node;i.type==="attributes"?r&&this.__updateNodeId(o):(r||o.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(e,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(e){return e?e.nodeType===Node.ELEMENT_NODE&&(customElements.get(e.localName)||e.children.length>0)||e.textContent&&e.textContent.trim()!=="":!1}__notifyChange(e){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(e),node:e}}))}__updateNodeId(e){const t=!this.nodes||e===this.nodes[0];e.nodeType===Node.ELEMENT_NODE&&(!this.multiple||t)&&!e.id&&(e.id=this.defaultId)}}/**
1622
1622
  * @license
1623
1623
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1624
1624
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1625
- */class Ol extends Fi{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,o=!!(i&&t&&t.trim()!=="");e&&(e.textContent=o?t:"",e.hidden=!o,o&&et(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1625
+ */class zl extends Bi{constructor(e){super(e,"error-message","div")}setErrorMessage(e){this.errorMessage=e,this.updateDefaultNode(this.node)}setInvalid(e){this.invalid=e,this.updateDefaultNode(this.node)}initAddedNode(e){e!==this.defaultNode&&this.initCustomNode(e)}initNode(e){this.updateDefaultNode(e)}initCustomNode(e){e.textContent&&!this.errorMessage&&(this.errorMessage=e.textContent.trim()),super.initCustomNode(e)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(e){const{errorMessage:t,invalid:i}=this,o=!!(i&&t&&t.trim()!=="");e&&(e.textContent=o?t:"",e.hidden=!o,o&&tt(t,{mode:"assertive"})),super.updateDefaultNode(e)}}/**
1626
1626
  * @license
1627
1627
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1628
1628
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1629
- */class zl extends Fi{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1629
+ */class Nl extends Bi{constructor(e){super(e,"helper",null)}setHelperText(e){this.helperText=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:e}=this;if(e&&e.trim()!==""){this.tagName="div";const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.helperText),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1630
1630
  * @license
1631
1631
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1632
1632
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1633
- */class ir extends Fi{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1633
+ */class sr extends Bi{constructor(e){super(e,"label","label")}setLabel(e){this.label=e,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:e}=this;if(e&&e.trim()!==""){const t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(e){e&&(e.textContent=this.label),super.updateDefaultNode(e)}initCustomNode(e){super.initCustomNode(e),this.observeNode(e)}}/**
1634
1634
  * @license
1635
1635
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1636
1636
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1637
- */const Nl=w(s=>class extends X(s){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new ir(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)}});/**
1637
+ */const Vl=w(s=>class extends X(s){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new sr(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
1638
1638
  * @license
1639
1639
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1640
1640
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1641
- */const Bi=w(s=>class extends s{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}});/**
1641
+ */const Ri=w(s=>class extends s{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1642
1642
  * @license
1643
1643
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1644
1644
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1645
- */const yt=s=>class extends Bi(Nl(X(s))){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 Dl(this),this._helperController=new zl(this),this._errorController=new Ol(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.__labelChanged(t,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
1645
+ */const xt=s=>class extends Ri(Vl(X(s))){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 Ol(this),this._helperController=new Nl(this),this._errorController=new zl(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.__labelChanged(t,i)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:t,node:i}=e.detail;this.toggleAttribute("has-helper",t),this.__helperChanged(t,i)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,t){e?this._fieldAriaController.setHelperId(t.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,t){e?this._fieldAriaController.setLabelId(t.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)})}};/**
1646
1646
  * @license
1647
1647
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1648
1648
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1649
- */class $e extends M{constructor(e,t,i={}){const{uniqueIdPrefix:o}=i;super(e,"input","input",{initializer:(r,n)=>{n.value&&(r.value=n.value),n.type&&r.setAttribute("type",n.type),r.id=this.defaultId,typeof t=="function"&&t(r)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
1649
+ */class He extends M{constructor(e,t,i={}){const{uniqueIdPrefix:o}=i;super(e,"input","input",{initializer:(r,a)=>{a.value&&(r.value=a.value),a.type&&r.setAttribute("type",a.type),r.id=this.defaultId,typeof t=="function"&&t(r)},useUniqueId:!0,uniqueIdPrefix:o})}}/**
1650
1650
  * @license
1651
1651
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
1652
1652
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1653
- */class He{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
1653
+ */class qe{constructor(e,t){this.input=e,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),t.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node)}),this.__initLabel(t.node)}__initLabel(e){e&&(e.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&e.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const e=t=>{t.stopImmediatePropagation(),this.input.removeEventListener("click",e)};this.input.addEventListener("click",e)}}/**
1654
1654
  * @license
1655
1655
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1656
1656
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1657
- */const Vl=s=>class extends yt(Pl(bt(Oi(s)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new $e(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new He(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1657
+ */const Ll=s=>class extends xt(Sl(yt(zi(s)))){static get properties(){return{indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return[...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return[...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on"}ready(){super.ready(),this.addController(new He(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new qe(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)")}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick)}_onInputClick(e){this.readonly&&e.preventDefault()}__readonlyChanged(e,t){t&&(e?t.setAttribute("aria-readonly","true"):t.removeAttribute("aria-readonly"))}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e)}checkValidity(){return!this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}_onRequiredIndicatorClick(){this._labelNode.click()}};/**
1658
1658
  * @license
1659
1659
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1660
1660
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1661
- */const Ll=u`
1661
+ */const Ml=u`
1662
1662
  :host {
1663
1663
  display: inline-block;
1664
1664
  }
@@ -1750,7 +1750,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1750
1750
  * @license
1751
1751
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1752
1752
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1753
- */_("vaadin-checkbox",Ll,{moduleId:"vaadin-checkbox-styles"});class Ml extends Vl(F(x(b))){static get is(){return"vaadin-checkbox"}static get template(){return g`
1753
+ */_("vaadin-checkbox",Ml,{moduleId:"vaadin-checkbox-styles"});class Fl extends Ll(F(x(b))){static get is(){return"vaadin-checkbox"}static get template(){return g`
1754
1754
  <div class="vaadin-checkbox-container">
1755
1755
  <div part="checkbox" aria-hidden="true"></div>
1756
1756
  <slot name="input"></slot>
@@ -1766,11 +1766,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1766
1766
  </div>
1767
1767
  </div>
1768
1768
  <slot name="tooltip"></slot>
1769
- `}ready(){super.ready(),this._tooltipController=new G(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}f(Ml);/**
1769
+ `}ready(){super.ready(),this._tooltipController=new G(this),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}f(Fl);/**
1770
1770
  * @license
1771
1771
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1772
1772
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1773
- */const sr=u`
1773
+ */const or=u`
1774
1774
  :host {
1775
1775
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1776
1776
  }
@@ -1830,7 +1830,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1830
1830
  * @license
1831
1831
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1832
1832
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1833
- */const Ri=u`
1833
+ */const $i=u`
1834
1834
  [part='label'] {
1835
1835
  align-self: flex-start;
1836
1836
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1942,7 +1942,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1942
1942
  margin-left: 0;
1943
1943
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1944
1944
  }
1945
- `;_("",Ri,{moduleId:"lumo-required-field"});const Fl=u`
1945
+ `;_("",$i,{moduleId:"lumo-required-field"});const Bl=u`
1946
1946
  :host {
1947
1947
  color: var(--lumo-body-text-color);
1948
1948
  font-size: var(--lumo-font-size-m);
@@ -1985,15 +1985,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
1985
1985
  color: var(--lumo-secondary-text-color);
1986
1986
  }
1987
1987
  }
1988
- `;_("vaadin-checkbox-group",[Ri,sr,Fl],{moduleId:"lumo-checkbox-group"});/**
1988
+ `;_("vaadin-checkbox-group",[$i,or,Bl],{moduleId:"lumo-checkbox-group"});/**
1989
1989
  * @license
1990
1990
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1991
1991
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1992
- */const Bl=s=>class extends yt(oe(ve(s))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new G(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const i=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(i)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Pi(e,({addedNodes:t,removedNodes:i})=>{const o=this.__filterCheckboxes(t),r=this.__filterCheckboxes(i);o.forEach(this.__registerCheckbox),r.forEach(this.__unregisterCheckbox);const n=this.__checkboxes.map(a=>a.inputElement);this._tooltipController.setAriaTarget(n),this.__warnOfCheckboxesWithoutValue(o)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:i}=t;return!t.hasAttribute("value")&&(!i||i==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(i=>{i.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(i=>{i.checked=e&&e.includes(i.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(i=>{i.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
1992
+ */const Rl=s=>class extends xt(oe(ve(s))){static get properties(){return{value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new G(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const t=e.detail.node;if(t&&t.isConnected){const i=this.__checkboxes.map(o=>o.inputElement);this._tooltipController.setAriaTarget(i)}else this._tooltipController.setAriaTarget([])})}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Si(e,({addedNodes:t,removedNodes:i})=>{const o=this.__filterCheckboxes(t),r=this.__filterCheckboxes(i);o.forEach(this.__registerCheckbox),r.forEach(this.__unregisterCheckbox);const a=this.__checkboxes.map(n=>n.inputElement);this._tooltipController.setAriaTarget(a),this.__warnOfCheckboxesWithoutValue(o)}),this.addController(this._tooltipController)}checkValidity(){return!this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(t=>t.nodeType===Node.ELEMENT_NODE&&t.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(t=>{const{value:i}=t;return!t.hasAttribute("value")&&(!i||i==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.")}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0)}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value)}_disabledChanged(e,t){super._disabledChanged(e,t),!(!e&&t===void 0)&&t!==e&&this.__checkboxes.forEach(i=>{i.disabled=e})}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e]}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(t=>t!==e))}__onCheckboxCheckedChanged(e){const t=e.target;t.checked?this.__addCheckboxToValue(t.value):this.__removeCheckboxFromValue(t.value)}__valueChanged(e,t){e&&e.length===0&&t===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(i=>{i.checked=e&&e.includes(i.value)}),t!==void 0&&this.validate())}__readonlyChanged(e,t){(e||t)&&this.__checkboxes.forEach(i=>{i.readonly=e})}_shouldRemoveFocus(e){return!this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}};/**
1993
1993
  * @license
1994
1994
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
1995
1995
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1996
- */const Rl=u`
1996
+ */const $l=u`
1997
1997
  :host {
1998
1998
  display: inline-flex;
1999
1999
  }
@@ -2026,7 +2026,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2026
2026
  * @license
2027
2027
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
2028
2028
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2029
- */_("vaadin-checkbox-group",Rl,{moduleId:"vaadin-checkbox-group-styles"});class $l extends Bl(F(x(b))){static get is(){return"vaadin-checkbox-group"}static get template(){return g`
2029
+ */_("vaadin-checkbox-group",$l,{moduleId:"vaadin-checkbox-group-styles"});class Hl extends Rl(F(x(b))){static get is(){return"vaadin-checkbox-group"}static get template(){return g`
2030
2030
  <div class="vaadin-group-field-container">
2031
2031
  <div part="label">
2032
2032
  <slot name="label"></slot>
@@ -2047,11 +2047,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2047
2047
  </div>
2048
2048
 
2049
2049
  <slot name="tooltip"></slot>
2050
- `}}f($l);/**
2050
+ `}}f(Hl);/**
2051
2051
  * @license
2052
2052
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2053
2053
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2054
- */const xt=u`
2054
+ */const wt=u`
2055
2055
  :host {
2056
2056
  top: var(--lumo-space-m);
2057
2057
  right: var(--lumo-space-m);
@@ -2116,11 +2116,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2116
2116
  opacity: 1;
2117
2117
  }
2118
2118
  }
2119
- `;_("",xt,{moduleId:"lumo-overlay"});/**
2119
+ `;_("",wt,{moduleId:"lumo-overlay"});/**
2120
2120
  * @license
2121
2121
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2122
2122
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2123
- */const wt=u`
2123
+ */const Ct=u`
2124
2124
  :host([opening]),
2125
2125
  :host([closing]) {
2126
2126
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -2150,7 +2150,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2150
2150
  opacity: 0;
2151
2151
  }
2152
2152
  }
2153
- `;_("",wt,{moduleId:"lumo-menu-overlay-core"});const Hl=u`
2153
+ `;_("",Ct,{moduleId:"lumo-menu-overlay-core"});const ql=u`
2154
2154
  /* Small viewport (bottom sheet) styles */
2155
2155
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
2156
2156
  @media (max-width: 450px), (max-height: 450px) {
@@ -2212,7 +2212,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2212
2212
  transform: translateY(150%);
2213
2213
  }
2214
2214
  }
2215
- `,$i=[xt,wt,Hl];_("",$i,{moduleId:"lumo-menu-overlay"});const Ul=u`
2215
+ `,Hi=[wt,Ct,ql];_("",Hi,{moduleId:"lumo-menu-overlay"});const Ul=u`
2216
2216
  [part='overlay'] {
2217
2217
  /*
2218
2218
  Width:
@@ -2257,7 +2257,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2257
2257
  max-height: 70vh;
2258
2258
  }
2259
2259
  }
2260
- `;_("vaadin-date-picker-overlay",[$i,Ul],{moduleId:"lumo-date-picker-overlay"});const or=u`
2260
+ `;_("vaadin-date-picker-overlay",[Hi,Ul],{moduleId:"lumo-date-picker-overlay"});const rr=u`
2261
2261
  :host {
2262
2262
  /* Sizing */
2263
2263
  --lumo-button-size: var(--lumo-size-m);
@@ -2533,7 +2533,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2533
2533
  margin-left: 0;
2534
2534
  margin-right: 0;
2535
2535
  }
2536
- `;_("vaadin-button",or,{moduleId:"lumo-button"});_("vaadin-date-picker-year",u`
2536
+ `;_("vaadin-button",rr,{moduleId:"lumo-button"});_("vaadin-date-picker-year",u`
2537
2537
  :host([current]) [part='year-number'] {
2538
2538
  color: var(--lumo-primary-text-color);
2539
2539
  }
@@ -3036,7 +3036,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3036
3036
  * @license
3037
3037
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3038
3038
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3039
- */const Hi=u`
3039
+ */const qi=u`
3040
3040
  [part$='button'] {
3041
3041
  flex: none;
3042
3042
  width: 1em;
@@ -3063,11 +3063,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3063
3063
  font-family: 'lumo-icons';
3064
3064
  display: block;
3065
3065
  }
3066
- `;_("",Hi,{moduleId:"lumo-field-button"});/**
3066
+ `;_("",qi,{moduleId:"lumo-field-button"});/**
3067
3067
  * @license
3068
3068
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3069
3069
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3070
- */const ql=u`
3070
+ */const jl=u`
3071
3071
  :host {
3072
3072
  --lumo-text-field-size: var(--lumo-size-m);
3073
3073
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -3198,7 +3198,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3198
3198
  [part='clear-button']::before {
3199
3199
  content: var(--lumo-icons-cross);
3200
3200
  }
3201
- `,re=[Ri,Hi,sr,ql];_("",re,{moduleId:"lumo-input-field-shared-styles"});const jl=u`
3201
+ `,re=[$i,qi,or,jl];_("",re,{moduleId:"lumo-input-field-shared-styles"});const Wl=u`
3202
3202
  [part='toggle-button']::before {
3203
3203
  content: var(--lumo-icons-calendar);
3204
3204
  }
@@ -3220,15 +3220,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3220
3220
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
3221
3221
  --_lumo-text-field-overflow-mask-image: none;
3222
3222
  }
3223
- `;_("vaadin-date-picker",[re,jl],{moduleId:"lumo-date-picker"});/**
3223
+ `;_("vaadin-date-picker",[re,Wl],{moduleId:"lumo-date-picker"});/**
3224
3224
  * @license
3225
3225
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3226
3226
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3227
- */const Wl=s=>class extends s{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}};/**
3227
+ */const Yl=s=>class extends s{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(t=>t.focus&&t.focus())})}};/**
3228
3228
  * @license
3229
3229
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3230
3230
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3231
- */const Yl=u`
3231
+ */const Kl=u`
3232
3232
  :host {
3233
3233
  display: flex;
3234
3234
  align-items: center;
@@ -3297,15 +3297,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3297
3297
  * @license
3298
3298
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3299
3299
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3300
- */_("vaadin-input-container",Yl,{moduleId:"vaadin-input-container-styles"});class rr extends Wl(x(N(b))){static get is(){return"vaadin-input-container"}static get template(){return g`
3300
+ */_("vaadin-input-container",Kl,{moduleId:"vaadin-input-container-styles"});class ar extends Yl(x(N(b))){static get is(){return"vaadin-input-container"}static get template(){return g`
3301
3301
  <slot name="prefix"></slot>
3302
3302
  <slot></slot>
3303
3303
  <slot name="suffix"></slot>
3304
- `}}f(rr);/**
3304
+ `}}f(ar);/**
3305
3305
  * @license
3306
3306
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3307
3307
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3308
- */const Ct=u`
3308
+ */const At=u`
3309
3309
  :host {
3310
3310
  z-index: 200;
3311
3311
  position: fixed;
@@ -3372,55 +3372,55 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3372
3372
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3373
3373
  Code distributed by Google as part of the polymer project is also
3374
3374
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3375
- */let di=!1,Kl=[],nr=[];function Gl(){di=!0,requestAnimationFrame(function(){di=!1,Xl(Kl),setTimeout(function(){Jl(nr)})})}function Xl(s){for(;s.length;)ar(s.shift())}function Jl(s){for(let e=0,t=s.length;e<t;e++)ar(s.shift())}function ar(s){const e=s[0],t=s[1],i=s[2];try{t.apply(e,i)}catch(o){setTimeout(()=>{throw o})}}function lr(s,e,t){di||Gl(),nr.push([s,e,t])}/**
3375
+ */let hi=!1,Gl=[],nr=[];function Xl(){hi=!0,requestAnimationFrame(function(){hi=!1,Jl(Gl),setTimeout(function(){Ql(nr)})})}function Jl(s){for(;s.length;)lr(s.shift())}function Ql(s){for(let e=0,t=s.length;e<t;e++)lr(s.shift())}function lr(s){const e=s[0],t=s[1],i=s[2];try{t.apply(e,i)}catch(o){setTimeout(()=>{throw o})}}function dr(s,e,t){hi||Xl(),nr.push([s,e,t])}/**
3376
3376
  * @license
3377
3377
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3378
3378
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3379
- */const At=s=>s.test(navigator.userAgent),hi=s=>s.test(navigator.platform),Ql=s=>s.test(navigator.vendor);At(/Android/u);At(/Chrome/u)&&Ql(/Google Inc/u);At(/Firefox/u);const Zl=hi(/^iPad/u)||hi(/^Mac/u)&&navigator.maxTouchPoints>1,ed=hi(/^iPhone/u),Ui=ed||Zl,td=At(/^((?!chrome|android).)*safari/iu),ci=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(s){return!1}})();/**
3379
+ */const Et=s=>s.test(navigator.userAgent),ci=s=>s.test(navigator.platform),Zl=s=>s.test(navigator.vendor);Et(/Android/u);Et(/Chrome/u)&&Zl(/Google Inc/u);Et(/Firefox/u);const ed=ci(/^iPad/u)||ci(/^Mac/u)&&navigator.maxTouchPoints>1,td=ci(/^iPhone/u),Ui=td||ed,id=Et(/^((?!chrome|android).)*safari/iu),ui=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(s){return!1}})();/**
3380
3380
  * @license
3381
3381
  * Copyright (c) 2017 Anton Korzunov
3382
3382
  * SPDX-License-Identifier: MIT
3383
- */let ne=new WeakMap,We=new WeakMap,Ye={},Bt=0;const qs=s=>s&&s.nodeType===Node.ELEMENT_NODE,Rt=(...s)=>{console.error(`Error: ${s.join(" ")}. Skip setting aria-hidden.`)},id=(s,e)=>qs(s)?e.map(t=>{if(!qs(t))return Rt(t,"is not a valid element"),null;let i=t;for(;i&&i!==s;){if(s.contains(i))return t;i=i.getRootNode().host}return Rt(t,"is not contained inside",s),null}).filter(t=>!!t):(Rt(s,"is not a valid element"),[]),sd=(s,e,t,i)=>{const o=id(e,Array.isArray(s)?s:[s]);Ye[t]||(Ye[t]=new WeakMap);const r=Ye[t],n=[],a=new Set,l=new Set(o),d=c=>{if(!c||a.has(c))return;a.add(c);const p=c.assignedSlot;p&&d(p),d(c.parentNode||c.host)};o.forEach(d);const h=c=>{if(!c||l.has(c))return;const p=c.shadowRoot;(p?[...c.children,...p.children]:[...c.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(a.has(m))h(m);else{const y=m.getAttribute(i),E=y!==null&&y!=="false",I=(ne.get(m)||0)+1,C=(r.get(m)||0)+1;ne.set(m,I),r.set(m,C),n.push(m),I===1&&E&&We.set(m,!0),C===1&&m.setAttribute(t,"true"),E||m.setAttribute(i,"true")}})};return h(e),a.clear(),Bt+=1,()=>{n.forEach(c=>{const p=ne.get(c)-1,m=r.get(c)-1;ne.set(c,p),r.set(c,m),p||(We.has(c)?We.delete(c):c.removeAttribute(i)),m||c.removeAttribute(t)}),Bt-=1,Bt||(ne=new WeakMap,ne=new WeakMap,We=new WeakMap,Ye={})}},dr=(s,e=document.body,t="data-aria-hidden")=>{const i=Array.from(Array.isArray(s)?s:[s]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),sd(i,e,t,"aria-hidden")};/**
3383
+ */let ae=new WeakMap,Ye=new WeakMap,Ke={},Rt=0;const js=s=>s&&s.nodeType===Node.ELEMENT_NODE,$t=(...s)=>{console.error(`Error: ${s.join(" ")}. Skip setting aria-hidden.`)},sd=(s,e)=>js(s)?e.map(t=>{if(!js(t))return $t(t,"is not a valid element"),null;let i=t;for(;i&&i!==s;){if(s.contains(i))return t;i=i.getRootNode().host}return $t(t,"is not contained inside",s),null}).filter(t=>!!t):($t(s,"is not a valid element"),[]),od=(s,e,t,i)=>{const o=sd(e,Array.isArray(s)?s:[s]);Ke[t]||(Ke[t]=new WeakMap);const r=Ke[t],a=[],n=new Set,l=new Set(o),d=c=>{if(!c||n.has(c))return;n.add(c);const p=c.assignedSlot;p&&d(p),d(c.parentNode||c.host)};o.forEach(d);const h=c=>{if(!c||l.has(c))return;const p=c.shadowRoot;(p?[...c.children,...p.children]:[...c.children]).forEach(m=>{if(!["template","script","style"].includes(m.localName))if(n.has(m))h(m);else{const y=m.getAttribute(i),k=y!==null&&y!=="false",I=(ae.get(m)||0)+1,C=(r.get(m)||0)+1;ae.set(m,I),r.set(m,C),a.push(m),I===1&&k&&Ye.set(m,!0),C===1&&m.setAttribute(t,"true"),k||m.setAttribute(i,"true")}})};return h(e),n.clear(),Rt+=1,()=>{a.forEach(c=>{const p=ae.get(c)-1,m=r.get(c)-1;ae.set(c,p),r.set(c,m),p||(Ye.has(c)?Ye.delete(c):c.removeAttribute(i)),m||c.removeAttribute(t)}),Rt-=1,Rt||(ae=new WeakMap,ae=new WeakMap,Ye=new WeakMap,Ke={})}},hr=(s,e=document.body,t="data-aria-hidden")=>{const i=Array.from(Array.isArray(s)?s:[s]);return e&&i.push(...Array.from(e.querySelectorAll("[aria-live]"))),od(i,e,t,"aria-hidden")};/**
3384
3384
  * @license
3385
3385
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3386
3386
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3387
- */class od{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=dr(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3387
+ */class rd{constructor(e,t){this.host=e,this.callback=typeof t=="function"?t:()=>e}showModal(){const e=this.callback();this.__showOthers=hr(e)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}/**
3388
3388
  * @license
3389
3389
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3390
3390
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3391
- */class rd{saveFocus(e){this.focusNode=e||ni()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=e?e.preventScroll:!1;ni()===document.body?setTimeout(()=>t.focus({preventScroll:i})):t.focus({preventScroll:i}),this.focusNode=null}}/**
3391
+ */class ad{saveFocus(e){this.focusNode=e||ni()}restoreFocus(e){const t=this.focusNode;if(!t)return;const i=e?e.preventScroll:!1;ni()===document.body?setTimeout(()=>t.focus({preventScroll:i})):t.focus({preventScroll:i}),this.focusNode=null}}/**
3392
3392
  * @license
3393
3393
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3394
3394
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3395
- */const $t=[];class nd{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Il(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Vi).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");$t.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,$t.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from($t).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,o=this.__focusedElementIndex,r=(t.length+o+i)%t.length,n=t[r];n.focus(),n.localName==="input"&&n.select()}}/**
3395
+ */const Ht=[];class nd{constructor(e){this.host=e,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return Pl(this.__trapNode)}get __focusedElementIndex(){const e=this.__focusableElements;return e.indexOf(e.filter(Li).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(e){if(this.__trapNode=e,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Ht.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ht.pop()}__onKeyDown(e){if(this.__trapNode&&this===Array.from(Ht).pop()&&e.key==="Tab"){e.preventDefault();const t=e.shiftKey;this.__focusNextElement(t)}}__focusNextElement(e=!1){const t=this.__focusableElements,i=e?-1:1,o=this.__focusedElementIndex,r=(t.length+o+i)%t.length,a=t[r];a.focus(),a.localName==="input"&&a.select()}}/**
3396
3396
  * @license
3397
3397
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3398
3398
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3399
- */const ad=s=>class extends X(s){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new od(this),this.__focusTrapController=new nd(this),this.__focusRestorationController=new rd}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=!gt();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=ni();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const i=e.ownerDocument;for(;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3399
+ */const ld=s=>class extends X(s){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new rd(this),this.__focusTrapController=new nd(this),this.__focusRestorationController=new ad}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=!bt();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=ni();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return!0;let t=e;const i=e.ownerDocument;for(;t&&t!==i&&t!==this;)t=t.parentNode||t.host;return t===this}};/**
3400
3400
  * @license
3401
3401
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3402
3402
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3403
- */const hr=()=>Array.from(document.body.children).filter(s=>s instanceof HTMLElement&&s._hasOverlayStackMixin&&!s.hasAttribute("closing")).sort((s,e)=>s.__zIndex-e.__zIndex||0),ui=()=>hr().filter(s=>s.$.overlay),ld=s=>s===ui().pop(),cr=s=>class extends s{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return ld(this)}bringToFront(){let e="";const t=hr().filter(i=>i!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),ui().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=ui();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3403
+ */const cr=()=>Array.from(document.body.children).filter(s=>s instanceof HTMLElement&&s._hasOverlayStackMixin&&!s.hasAttribute("closing")).sort((s,e)=>s.__zIndex-e.__zIndex||0),pi=()=>cr().filter(s=>s.$.overlay),dd=s=>s===pi().pop(),ur=s=>class extends s{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return dd(this)}bringToFront(){let e="";const t=cr().filter(i=>i!==this).pop();t&&(e=t.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),pi().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=pi();let t;for(;(t=e.pop())&&!(t!==this&&(t.$.overlay.style.removeProperty("pointer-events"),!t.modeless)););}};/**
3404
3404
  * @license
3405
3405
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3406
3406
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3407
- */const kt=s=>class extends ad(cr(s)){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),Ui&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${i-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,i,o){const r=this._oldOwner!==t||this._oldModel!==i;this._oldModel=i,this._oldOwner=t;const n=this._oldRenderer!==e,a=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==o;this._oldOpened=o,n&&a&&(this.innerHTML="",delete this._$litPart$),o&&e&&(n||l||r)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),lr(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const i=`__${e}Handler`,o=r=>{r&&r.target!==this||(t(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
3407
+ */const kt=s=>class extends ld(ur(s)){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),Ui&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus()})}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(e){const t=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),t.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${i-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(e,t,i,o){const r=this._oldOwner!==t||this._oldModel!==i;this._oldModel=i,this._oldOwner=t;const a=this._oldRenderer!==e,n=this._oldRenderer!==void 0;this._oldRenderer=e;const l=this._oldOpened!==o;this._oldOpened=o,a&&n&&(this.innerHTML="",delete this._$litPart$),o&&e&&(a||l||r)&&this.requestContentUpdate()}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(e,t){e?(this._saveFocus(),this._animatedOpening(),dr(this,()=>{this._trapFocus();const i=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(i)}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):t&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const e=getComputedStyle(this),t=e.getPropertyValue("animation-name");return e.getPropertyValue("display")!=="none"&&t&&t!=="none"}_enqueueAnimation(e,t){const i=`__${e}Handler`,o=r=>{r&&r.target!==this||(t(),this.removeEventListener("animationend",o),delete this[i])};this[i]=o,this.addEventListener("animationend",o)}_flushAnimation(e){const t=`__${e}Handler`;typeof this[t]=="function"&&this[t]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening()}):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing()}):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const t=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const t=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(t),this.opened&&!t.defaultPrevented&&this.close(e)}}};/**
3408
3408
  * @license
3409
3409
  * Copyright (c) 2024 Vaadin Ltd.
3410
3410
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3411
- */function dd(s,e){let t=null;const i=document.documentElement;function o(){t&&t.disconnect(),t=null}function r(n=!1,a=1){o();const{left:l,top:d,width:h,height:c}=s.getBoundingClientRect();if(n||e(),!h||!c)return;const p=Math.floor(d),m=Math.floor(i.clientWidth-(l+h)),y=Math.floor(i.clientHeight-(d+c)),E=Math.floor(l),I={rootMargin:`${-p}px ${-m}px ${-y}px ${-E}px`,threshold:Math.max(0,Math.min(1,a))||1};let C=!0;function S(U){let q=U[0].intersectionRatio;if(q!==a){if(!C)return r();q===0&&(q=1e-7),r(!1,q)}C=!1}t=new IntersectionObserver(S,I),t.observe(s)}return r(!0),o}/**
3411
+ */function hd(s,e){let t=null;const i=document.documentElement;function o(){t&&t.disconnect(),t=null}function r(a=!1,n=1){o();const{left:l,top:d,width:h,height:c}=s.getBoundingClientRect();if(a||e(),!h||!c)return;const p=Math.floor(d),m=Math.floor(i.clientWidth-(l+h)),y=Math.floor(i.clientHeight-(d+c)),k=Math.floor(l),I={rootMargin:`${-p}px ${-m}px ${-y}px ${-k}px`,threshold:Math.max(0,Math.min(1,n))||1};let C=!0;function S(q){let U=q[0].intersectionRatio;if(U!==n){if(!C)return r();U===0&&(U=1e-7),r(!1,U)}C=!1}t=new IntersectionObserver(S,I),t.observe(s)}return r(!0),o}/**
3412
3412
  * @license
3413
3413
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3414
3414
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3415
- */const Ht={start:"top",end:"bottom"},Ut={start:"left",end:"right"},js=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),qi=s=>class extends s{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=nl(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=dd(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,js.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,js.observe(t))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,i),r=!i&&o||i&&!o;this.style.alignItems=r?"flex-start":"flex-end";const n=this.getBoundingClientRect(),a=this.__calculatePositionInOneDimension(e,n,this.noVerticalOverlap,Ht,this,t),l=this.__calculatePositionInOneDimension(e,n,this.noHorizontalOverlap,Ut,this,o);Object.assign(this.style,a,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!r),this.toggleAttribute("start-aligned",r)}__shouldAlignStartHorizontally(e,t){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),r=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,o,this.__margins,r,this.noHorizontalOverlap,Ut)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,i,this.__margins,o,this.noVerticalOverlap,Ht)}__shouldAlignStart(e,t,i,o,r,n,a){const l=i-e[n?a.end:a.start]-o[a.end],d=e[n?a.start:a.end]-o[a.start],h=r?l:d,c=h>(r?d:l)||h>t;return r===c}__adjustBottomProperty(e,t,i){let o;if(e===t.end){if(t.end===Ht.end){const r=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>r&&this.__oldViewportHeight){const n=this.__oldViewportHeight-r;o=i-n}this.__oldViewportHeight=r}if(t.end===Ut.end){const r=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>r&&this.__oldViewportWidth){const n=this.__oldViewportWidth-r;o=i-n}this.__oldViewportWidth=r}}return o}__calculatePositionInOneDimension(e,t,i,o,r,n){const a=n?o.start:o.end,l=n?o.end:o.start,d=parseFloat(r.style[a]||getComputedStyle(r)[a]),h=this.__adjustBottomProperty(a,o,d),c=t[n?o.start:o.end]-e[i===n?o.end:o.start],p=h?`${h}px`:`${d+c*(n?-1:1)}px`;return{[a]:p,[l]:""}}};/**
3415
+ */const qt={start:"top",end:"bottom"},Ut={start:"left",end:"right"},Ws=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(e=>{e.target.__overlay&&e.target.__overlay._updatePosition()})})}),ji=s=>class extends s{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=nl(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=hd(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,t){if(this.__removeUpdatePositionEventListeners(),t&&(t.__overlay=null,Ws.unobserve(t),e&&(this.__addUpdatePositionEventListeners(),t.__overlay=this,Ws.observe(t))),e){const i=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(o=>{this.__margins[o]=parseInt(i[o],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const t=this.__shouldAlignStartVertically(e);this.style.justifyContent=t?"flex-start":"flex-end";const i=this.__isRTL,o=this.__shouldAlignStartHorizontally(e,i),r=!i&&o||i&&!o;this.style.alignItems=r?"flex-start":"flex-end";const a=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,qt,this,t),l=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Ut,this,o);Object.assign(this.style,n,l),this.toggleAttribute("bottom-aligned",!t),this.toggleAttribute("top-aligned",t),this.toggleAttribute("end-aligned",!r),this.toggleAttribute("start-aligned",r)}__shouldAlignStartHorizontally(e,t){const i=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const o=Math.min(window.innerWidth,document.documentElement.clientWidth),r=!t&&this.horizontalAlign==="start"||t&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,i,o,this.__margins,r,this.noHorizontalOverlap,Ut)}__shouldAlignStartVertically(e){const t=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const i=Math.min(window.innerHeight,document.documentElement.clientHeight),o=this.verticalAlign==="top";return this.__shouldAlignStart(e,t,i,this.__margins,o,this.noVerticalOverlap,qt)}__shouldAlignStart(e,t,i,o,r,a,n){const l=i-e[a?n.end:n.start]-o[n.end],d=e[a?n.start:n.end]-o[n.start],h=r?l:d,c=h>(r?d:l)||h>t;return r===c}__adjustBottomProperty(e,t,i){let o;if(e===t.end){if(t.end===qt.end){const r=Math.min(window.innerHeight,document.documentElement.clientHeight);if(i>r&&this.__oldViewportHeight){const a=this.__oldViewportHeight-r;o=i-a}this.__oldViewportHeight=r}if(t.end===Ut.end){const r=Math.min(window.innerWidth,document.documentElement.clientWidth);if(i>r&&this.__oldViewportWidth){const a=this.__oldViewportWidth-r;o=i-a}this.__oldViewportWidth=r}}return o}__calculatePositionInOneDimension(e,t,i,o,r,a){const n=a?o.start:o.end,l=a?o.end:o.start,d=parseFloat(r.style[n]||getComputedStyle(r)[n]),h=this.__adjustBottomProperty(n,o,d),c=t[a?o.start:o.end]-e[i===a?o.end:o.start],p=h?`${h}px`:`${d+c*(a?-1:1)}px`;return{[n]:p,[l]:""}}};/**
3416
3416
  * @license
3417
3417
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
3418
3418
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3419
- */const hd=s=>class extends qi(kt(s)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Ni(e.composedPath()[0])&&e.preventDefault()}};/**
3419
+ */const cd=s=>class extends ji(kt(s)){_shouldCloseOnOutsideClick(e){return!e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Vi(e.composedPath()[0])&&e.preventDefault()}};/**
3420
3420
  * @license
3421
3421
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3422
3422
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3423
- */const cd=u`
3423
+ */const ud=u`
3424
3424
  [part='overlay'] {
3425
3425
  display: flex;
3426
3426
  flex: auto;
@@ -3439,18 +3439,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3439
3439
  * @license
3440
3440
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3441
3441
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3442
- */_("vaadin-date-picker-overlay",[Ct,cd],{moduleId:"vaadin-date-picker-overlay-styles"});class ud extends hd(N(x(b))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return g`
3442
+ */_("vaadin-date-picker-overlay",[At,ud],{moduleId:"vaadin-date-picker-overlay-styles"});class pd extends cd(N(x(b))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return g`
3443
3443
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
3444
3444
  <div part="overlay" id="overlay">
3445
3445
  <div part="content" id="content">
3446
3446
  <slot></slot>
3447
3447
  </div>
3448
3448
  </div>
3449
- `}}f(ud);/**
3449
+ `}}f(pd);/**
3450
3450
  * @license
3451
3451
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3452
3452
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3453
- */const ur=u`
3453
+ */const pr=u`
3454
3454
  :host {
3455
3455
  display: inline-block;
3456
3456
  position: relative;
@@ -3510,7 +3510,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3510
3510
  outline-color: GrayText;
3511
3511
  }
3512
3512
  }
3513
- `,pd=s=>s`
3513
+ `,md=s=>s`
3514
3514
  <div class="vaadin-button-container">
3515
3515
  <span part="prefix" aria-hidden="true">
3516
3516
  <slot name="prefix"></slot>
@@ -3527,15 +3527,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3527
3527
  * @license
3528
3528
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3529
3529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3530
- */const ji=s=>class extends Oi(Zo(oe(s))){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())}};/**
3530
+ */const Wi=s=>class extends zi(er(oe(s))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};/**
3531
3531
  * @license
3532
3532
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
3533
3533
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3534
- */_("vaadin-button",ur,{moduleId:"vaadin-button-styles"});class md extends ji(F(x(X(b)))){static get is(){return"vaadin-button"}static get template(){return pd(g)}ready(){super.ready(),this._tooltipController=new G(this),this.addController(this._tooltipController)}}f(md);/**
3534
+ */_("vaadin-button",pr,{moduleId:"vaadin-button-styles"});class _d extends Wi(F(x(X(b)))){static get is(){return"vaadin-button"}static get template(){return md(g)}ready(){super.ready(),this._tooltipController=new G(this),this.addController(this._tooltipController)}}f(_d);/**
3535
3535
  * @license
3536
3536
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3537
3537
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3538
- */function _d(s){let e=s.getDay();e===0&&(e=7);const t=4-e,i=new Date(s.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const r=i.getTime()-o.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function pi(s){const e=new Date(s);return e.setHours(0,0,0,0),e}function H(s,e,t=pi){return s instanceof Date&&e instanceof Date&&t(s).getTime()===t(e).getTime()}function Wi(s){return{day:s.getDate(),month:s.getMonth(),year:s.getFullYear()}}function _e(s,e,t,i){let o=!1;if(typeof i=="function"&&s){const r=Wi(s);o=i(r)}return(!e||s>=e)&&(!t||s<=t)&&!o}function pr(s,e){return e.filter(t=>t!==void 0).reduce((t,i)=>{if(!i)return t;if(!t)return i;const o=Math.abs(s.getTime()-i.getTime()),r=Math.abs(t.getTime()-s.getTime());return o<r?i:t})}function mr(s){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(s)+e.getMonth()),t}function fd(s,e,t=0,i=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+Math.floor(s.getFullYear()/100)*100;return s<new Date(o-50,t,i)?o-=100:s>new Date(o+50,t,i)&&(o+=100),o}function we(s){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(s);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function vd(s){const e=(l,d="00")=>(d+l).substr((d+l).length-d.length);let t="",i="0000",o=s.year;o<0?(o=-o,t="-",i="000000"):s.year>=1e4&&(t="+",i="000000");const r=t+e(o,i),n=e(s.month+1),a=e(s.day);return[r,n,a].join("-")}function gd(s){return s instanceof Date?vd({year:s.getFullYear(),month:s.getMonth(),day:s.getDate()}):""}/**
3538
+ */function fd(s){let e=s.getDay();e===0&&(e=7);const t=4-e,i=new Date(s.getTime()+t*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const r=i.getTime()-o.getTime(),a=Math.round(r/(24*3600*1e3));return Math.floor(a/7+1)}function mi(s){const e=new Date(s);return e.setHours(0,0,0,0),e}function H(s,e,t=mi){return s instanceof Date&&e instanceof Date&&t(s).getTime()===t(e).getTime()}function Yi(s){return{day:s.getDate(),month:s.getMonth(),year:s.getFullYear()}}function _e(s,e,t,i){let o=!1;if(typeof i=="function"&&s){const r=Yi(s);o=i(r)}return(!e||s>=e)&&(!t||s<=t)&&!o}function mr(s,e){return e.filter(t=>t!==void 0).reduce((t,i)=>{if(!i)return t;if(!t)return i;const o=Math.abs(s.getTime()-i.getTime()),r=Math.abs(t.getTime()-s.getTime());return o<r?i:t})}function _r(s){const e=new Date,t=new Date(e);return t.setDate(1),t.setMonth(parseInt(s)+e.getMonth()),t}function vd(s,e,t=0,i=1){if(e>99)throw new Error("The provided year cannot have more than 2 digits.");if(e<0)throw new Error("The provided year cannot be negative.");let o=e+Math.floor(s.getFullYear()/100)*100;return s<new Date(o-50,t,i)?o-=100:s>new Date(o+50,t,i)&&(o+=100),o}function we(s){const e=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(s);if(!e)return;const t=new Date(0,0);return t.setFullYear(parseInt(e[1],10)),t.setMonth(parseInt(e[2],10)-1),t.setDate(parseInt(e[3],10)),t}function gd(s){const e=(l,d="00")=>(d+l).substr((d+l).length-d.length);let t="",i="0000",o=s.year;o<0?(o=-o,t="-",i="000000"):s.year>=1e4&&(t="+",i="000000");const r=t+e(o,i),a=e(s.month+1),n=e(s.day);return[r,a,n].join("-")}function bd(s){return s instanceof Date?gd({year:s.getFullYear(),month:s.getMonth(),day:s.getDate()}):""}/**
3539
3539
  @license
3540
3540
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3541
3541
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3543,7 +3543,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3543
3543
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3544
3544
  Code distributed by Google as part of the polymer project is also
3545
3545
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3546
- */class ct{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Fe.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Fe.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,i){return e instanceof ct?e._cancelAsync():e=new ct,e.setConfig(t,i),e}}let Fe=new Set;const bd=function(s){Fe.add(s)},yd=function(){const s=!!Fe.size;return Fe.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),s};/**
3546
+ */class ut{constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(e,t){this._asyncModule=e,this._callback=t,this._timer=this._asyncModule.run(()=>{this._timer=null,Be.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),Be.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return this._timer!=null}static debounce(e,t,i){return e instanceof ut?e._cancelAsync():e=new ut,e.setConfig(t,i),e}}let Be=new Set;const yd=function(s){Be.add(s)},xd=function(){const s=!!Be.size;return Be.forEach(e=>{try{e.flush()}catch(t){setTimeout(()=>{throw t})}}),s};/**
3547
3547
  @license
3548
3548
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3549
3549
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3551,11 +3551,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3551
3551
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3552
3552
  Code distributed by Google as part of the polymer project is also
3553
3553
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3554
- */const Yi=function(){let s,e;do s=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=yd();while(s||e)};/**
3554
+ */const Ki=function(){let s,e;do s=window.ShadyDOM&&ShadyDOM.flush(),window.ShadyCSS&&window.ShadyCSS.ScopingShim&&window.ShadyCSS.ScopingShim.flush(),e=xd();while(s||e)};/**
3555
3555
  * @license
3556
3556
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3557
3557
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3558
- */const _r=document.createElement("template");_r.innerHTML=`
3558
+ */const fr=document.createElement("template");fr.innerHTML=`
3559
3559
  <style>
3560
3560
  :host {
3561
3561
  display: block;
@@ -3605,11 +3605,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3605
3605
  <div class="buffer"></div>
3606
3606
  <div id="fullHeight"></div>
3607
3607
  </div>
3608
- `;class fr extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(_r.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),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(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Yi()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,i=e>this._buffers[1].translateY+t,o=e<this._buffers[0].translateY+t;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=z.debounce(this._debouncerScrollFinish,W.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(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=z.debounce(this._debouncerUpdateClones,W.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const r=`vaadin-infinite-scroller-item-content-${vt()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=o,t.appendChild(n),o.setAttribute("slot",r),this.appendChild(o),this._isVisible(o,e)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(i=>{e.instance[i]=t[i]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*o;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,r+a)}),i.updated=!0}})}_isVisible(e,t){const i=e.getBoundingClientRect();return i.bottom>t.top&&i.top<t.bottom}}/**
3608
+ `;class vr extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(fr.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1}get active(){return this._activated}set active(e){e&&!this._activated&&(this._createPool(),this._activated=!0)}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const e=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),t="background-position";this.$.fullHeight.style.setProperty(t,e);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(t);this.$.fullHeight.style.removeProperty(t),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(e){this._preventScrollEvent=!0,e>this._firstIndex&&e<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(e-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~e,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=e%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll")},10))}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(e=>{this.$[e.id]=e}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`)}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),Ki()}_createElement(){}_updateElement(e,t){}_finishInit(){this._initDone||(this._buffers.forEach(e=>{[...e.children].forEach(t=>{this._ensureStampedInstance(t._itemWrapper)})}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")))}_translateBuffer(e){const t=e?1:0;this._buffers[t].translateY=this._buffers[t?0:1].translateY+this._bufferHeight*(t?-1:1),this._buffers[t].style.transform=`translate3d(0, ${this._buffers[t].translateY}px, 0)`,this._buffers[t].updated=!1,this._buffers.reverse()}_scroll(){if(this._scrollDisabled)return;const e=this.$.scroller.scrollTop;(e<this._bufferHeight||e>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const t=this.itemHeight+this.bufferOffset,i=e>this._buffers[1].translateY+t,o=e<this._buffers[0].translateY+t;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=z.debounce(this._debouncerScrollFinish,W.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(e=>{e.style.transform=`translate3d(0, ${e.translateY}px, 0)`}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=z.debounce(this._debouncerUpdateClones,W.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones()}),this._scrollDisabled=!1}_createPool(){const e=this.getBoundingClientRect();this._buffers.forEach(t=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const r=`vaadin-infinite-scroller-item-content-${gt()}`,a=document.createElement("slot");a.setAttribute("name",r),a._itemWrapper=o,t.appendChild(a),o.setAttribute("slot",r),this.appendChild(o),this._isVisible(o,e)&&this._ensureStampedInstance(o)}}),requestAnimationFrame(()=>{this._finishInit()})}_ensureStampedInstance(e){if(e.firstElementChild)return;const t=e.instance;e.instance=this._createElement(),e.appendChild(e.instance),Object.keys(t).forEach(i=>{e.instance[i]=t[i]})}_updateClones(e){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const t=e?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*o;[...i.children].forEach((a,n)=>{const l=a._itemWrapper;(!e||this._isVisible(l,t))&&this._updateElement(l.instance,r+n)}),i.updated=!0}})}_isVisible(e,t){const i=e.getBoundingClientRect();return i.bottom>t.top&&i.top<t.bottom}}/**
3609
3609
  * @license
3610
3610
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3611
3611
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3612
- */const vr=document.createElement("template");vr.innerHTML=`
3612
+ */const gr=document.createElement("template");gr.innerHTML=`
3613
3613
  <style>
3614
3614
  :host {
3615
3615
  --vaadin-infinite-scroller-item-height: 270px;
@@ -3621,11 +3621,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3621
3621
  height: 100%;
3622
3622
  }
3623
3623
  </style>
3624
- `;class xd extends fr{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(vr.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=mr(t)}}f(xd);/**
3624
+ `;class wd extends vr{static get is(){return"vaadin-date-picker-month-scroller"}constructor(){super(),this.bufferSize=3,this.shadowRoot.appendChild(gr.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-month-calendar")}_updateElement(e,t){e.month=_r(t)}}f(wd);/**
3625
3625
  * @license
3626
3626
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3627
3627
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3628
- */const gr=document.createElement("template");gr.innerHTML=`
3628
+ */const br=document.createElement("template");br.innerHTML=`
3629
3629
  <style>
3630
3630
  :host {
3631
3631
  --vaadin-infinite-scroller-item-height: 80px;
@@ -3659,15 +3659,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3659
3659
  border-left-color: #000;
3660
3660
  }
3661
3661
  </style>
3662
- `;class wd extends fr{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(gr.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,i=new Date(t);return i.setFullYear(parseInt(e)+t.getFullYear()),i.getFullYear()}}f(wd);/**
3662
+ `;class Cd extends vr{static get is(){return"vaadin-date-picker-year-scroller"}constructor(){super(),this.bufferSize=12,this.shadowRoot.appendChild(br.content.cloneNode(!0))}_createElement(){return document.createElement("vaadin-date-picker-year")}_updateElement(e,t){e.year=this._yearAfterXYears(t)}_yearAfterXYears(e){const t=new Date,i=new Date(t);return i.setFullYear(parseInt(e)+t.getFullYear()),i.getFullYear()}}f(Cd);/**
3663
3663
  * @license
3664
3664
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3665
3665
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3666
- */const Cd=s=>class extends s{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3666
+ */const Ad=s=>class extends s{static get properties(){return{year:{type:String,sync:!0},selectedDate:{type:Object,sync:!0}}}static get observers(){return["__updateSelected(year, selectedDate)"]}__updateSelected(e,t){this.toggleAttribute("selected",t&&t.getFullYear()===e),this.toggleAttribute("current",e===new Date().getFullYear())}};/**
3667
3667
  * @license
3668
3668
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3669
3669
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3670
- */class Ad extends x(Cd(b)){static get is(){return"vaadin-date-picker-year"}static get template(){return g`
3670
+ */class Ed extends x(Ad(b)){static get is(){return"vaadin-date-picker-year"}static get template(){return g`
3671
3671
  <style>
3672
3672
  :host {
3673
3673
  display: block;
@@ -3676,7 +3676,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3676
3676
  </style>
3677
3677
  <div part="year-number">[[year]]</div>
3678
3678
  <div part="year-separator" aria-hidden="true"></div>
3679
- `}}f(Ad);/**
3679
+ `}}f(Ed);/**
3680
3680
  @license
3681
3681
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3682
3682
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3684,7 +3684,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3684
3684
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3685
3685
  Code distributed by Google as part of the polymer project is also
3686
3686
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3687
- */function Ki(s,e,t,i,o){let r;o&&(r=typeof t=="object"&&t!==null,r&&(i=s.__dataTemp[e]));let n=i!==t&&(i===i||t===t);return r&&n&&(s.__dataTemp[e]=t),n}const Gi=w(s=>{class e extends s{_shouldPropertyChange(i,o,r){return Ki(this,i,o,r,!0)}}return e}),kd=w(s=>{class e extends s{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,o,r){return Ki(this,i,o,r,this.mutableData)}}return e});Gi._mutablePropertyChange=Ki;/**
3687
+ */function Gi(s,e,t,i,o){let r;o&&(r=typeof t=="object"&&t!==null,r&&(i=s.__dataTemp[e]));let a=i!==t&&(i===i||t===t);return r&&a&&(s.__dataTemp[e]=t),a}const Xi=w(s=>{class e extends s{_shouldPropertyChange(i,o,r){return Gi(this,i,o,r,!0)}}return e}),kd=w(s=>{class e extends s{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,o,r){return Gi(this,i,o,r,this.mutableData)}}return e});Xi._mutablePropertyChange=Gi;/**
3688
3688
  @license
3689
3689
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3690
3690
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3692,7 +3692,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3692
3692
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3693
3693
  Code distributed by Google as part of the polymer project is also
3694
3694
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3695
- */let mi=null;function _i(){return mi}_i.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:_i,writable:!0}});const br=Ei(_i),Ed=Gi(br);function Id(s,e){mi=s,Object.setPrototypeOf(s,e.prototype),new e,mi=null}const Pd=Ei(class{});function Sd(s,e){for(let t=0;t<e.length;t++){let i=e[t];if(!!s!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)s?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(s)i.__polymerReplaced__=document.createComment("hidden-slot"),k(k(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const o=i.__polymerReplaced__;o&&k(k(o).parentNode).replaceChild(i,o)}else i.style&&(s?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=s,i._showHideChildren&&i._showHideChildren(s)}}class Xi extends Pd{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,i(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,i)}}_showHideChildren(e){Sd(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}const Td=Gi(Xi);function Ws(s){let e=s.__dataHost;return e&&e._methodHost||e}function Dd(s,e,t){let i=t.mutableData?Td:Xi;fi.mixin&&(i=fi.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(s),Nd(o,s,e,t),o}function Od(s,e,t,i){let o=t.forwardHostProp;if(o&&e.hasHostProps){const r=s.localName=="template";let n=e.templatizeTemplateClass;if(!n){if(r){let l=t.mutableData?Ed:br;class d extends l{}n=e.templatizeTemplateClass=d}else{const l=s.constructor;class d extends l{}n=e.templatizeTemplateClass=d}let a=e.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:zd(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);vo&&i&&Md(e,t,i)}if(s.__dataProto&&Object.assign(s.__data,s.__dataProto),r)Id(s,n),s.__dataTemp={},s.__dataPending=null,s.__dataOld=null,s._enableProperties();else{Object.setPrototypeOf(s,n.prototype);const a=e.hostProps;for(let l in a)if(l="_host_"+l,l in s){const d=s[l];delete s[l],s.__data[l]=d}}}}function zd(s,e){return function(t,i,o){e.call(t.__templatizeOwner,i.substring(6),o[i])}}function Nd(s,e,t,i){let o=t.hostProps||{};for(let r in i.instanceProps){delete o[r];let n=i.notifyInstanceProp;n&&s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Vd(r,n)})}if(i.forwardHostProp&&e.__dataHost)for(let r in o)t.hasHostProps||(t.hasHostProps=!0),s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ld()})}function Vd(s,e){return function(t,i,o){e.call(t.__templatizeOwner,t,i,o[i])}}function Ld(){return function(s,e,t){s.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function fi(s,e,t){if(at&&!Ws(s))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},s.__templatizeOwner)throw new Error("A <template> can only be templatized once");s.__templatizeOwner=e;let i=(e?e.constructor:Xi)._parseTemplate(s),o=i.templatizeInstanceClass;o||(o=Dd(s,i,t),i.templatizeInstanceClass=o);const r=Ws(s);Od(s,i,t,r);let n=class extends o{};return n.prototype._methodHost=r,n.prototype.__dataHost=s,n.prototype.__templatizeOwner=e,n.prototype.__hostProps=i.hostProps,n=n,n}function Md(s,e,t){const i=t.constructor._properties,{propertyEffects:o}=s,{instanceProps:r}=e;for(let n in o)if(!i[n]&&!(r&&r[n])){const a=o[n];for(let l=0;l<a.length;l++){const{part:d}=a[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Fd(s,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=s)e=t.__dataHost;else return t;else e=k(e).parentNode;return null}/**
3695
+ */let _i=null;function fi(){return _i}fi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:fi,writable:!0}});const yr=Ii(fi),Id=Xi(yr);function Pd(s,e){_i=s,Object.setPrototypeOf(s,e.prototype),new e,_i=null}const Sd=Ii(class{});function Td(s,e){for(let t=0;t<e.length;t++){let i=e[t];if(!!s!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)s?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(s)i.__polymerReplaced__=document.createComment("hidden-slot"),E(E(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const o=i.__polymerReplaced__;o&&E(E(o).parentNode).replaceChild(i,o)}else i.style&&(s?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=s,i._showHideChildren&&i._showHideChildren(s)}}class Ji extends Sd{constructor(e){super(),this._configureProperties(e),this.root=this._stampTemplate(this.__dataHost);let t=[];this.children=t;for(let o=this.root.firstChild;o;o=o.nextSibling)t.push(o),o.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(e&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(e){if(this.__templatizeOptions.forwardHostProp)for(let t in this.__hostProps)this._setPendingProperty(t,this.__dataHost["_host_"+t]);for(let t in e)this._setPendingProperty(t,e[t])}forwardHostProp(e,t){this._setPendingPropertyOrPath(e,t,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(e,t,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(e,t,o=>{o.model=this,i(o)});else{let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(e,t,i)}}_showHideChildren(e){Td(e,this.children)}_setUnmanagedPropertyToNode(e,t,i){e.__hideTemplateChildren__&&e.nodeType==Node.TEXT_NODE&&t=="textContent"?e.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(e,t,i)}get parentModel(){let e=this.__parentModel;if(!e){let t;e=this;do e=e.__dataHost.__dataHost;while((t=e.__templatizeOptions)&&!t.parentModel);this.__parentModel=e}return e}dispatchEvent(e){return!0}}const Dd=Xi(Ji);function Ys(s){let e=s.__dataHost;return e&&e._methodHost||e}function Od(s,e,t){let i=t.mutableData?Dd:Ji;vi.mixin&&(i=vi.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=t,o.prototype._bindTemplate(s),Vd(o,s,e,t),o}function zd(s,e,t,i){let o=t.forwardHostProp;if(o&&e.hasHostProps){const r=s.localName=="template";let a=e.templatizeTemplateClass;if(!a){if(r){let l=t.mutableData?Id:yr;class d extends l{}a=e.templatizeTemplateClass=d}else{const l=s.constructor;class d extends l{}a=e.templatizeTemplateClass=d}let n=e.hostProps;for(let l in n)a.prototype._addPropertyEffect("_host_"+l,a.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:Nd(l,o)}),a.prototype._createNotifyingProperty("_host_"+l);go&&i&&Fd(e,t,i)}if(s.__dataProto&&Object.assign(s.__data,s.__dataProto),r)Pd(s,a),s.__dataTemp={},s.__dataPending=null,s.__dataOld=null,s._enableProperties();else{Object.setPrototypeOf(s,a.prototype);const n=e.hostProps;for(let l in n)if(l="_host_"+l,l in s){const d=s[l];delete s[l],s.__data[l]=d}}}}function Nd(s,e){return function(t,i,o){e.call(t.__templatizeOwner,i.substring(6),o[i])}}function Vd(s,e,t,i){let o=t.hostProps||{};for(let r in i.instanceProps){delete o[r];let a=i.notifyInstanceProp;a&&s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ld(r,a)})}if(i.forwardHostProp&&e.__dataHost)for(let r in o)t.hasHostProps||(t.hasHostProps=!0),s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Md()})}function Ld(s,e){return function(t,i,o){e.call(t.__templatizeOwner,t,i,o[i])}}function Md(){return function(s,e,t){s.__dataHost._setPendingPropertyOrPath("_host_"+e,t[e],!0,!0)}}function vi(s,e,t){if(lt&&!Ys(s))throw new Error("strictTemplatePolicy: template owner not trusted");if(t=t||{},s.__templatizeOwner)throw new Error("A <template> can only be templatized once");s.__templatizeOwner=e;let i=(e?e.constructor:Ji)._parseTemplate(s),o=i.templatizeInstanceClass;o||(o=Od(s,i,t),i.templatizeInstanceClass=o);const r=Ys(s);zd(s,i,t,r);let a=class extends o{};return a.prototype._methodHost=r,a.prototype.__dataHost=s,a.prototype.__templatizeOwner=e,a.prototype.__hostProps=i.hostProps,a=a,a}function Fd(s,e,t){const i=t.constructor._properties,{propertyEffects:o}=s,{instanceProps:r}=e;for(let a in o)if(!i[a]&&!(r&&r[a])){const n=o[a];for(let l=0;l<n.length;l++){const{part:d}=n[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${a}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function Bd(s,e){let t;for(;e;)if(t=e.__dataHost?e:e.__templatizeInstance)if(t.__dataHost!=s)e=t.__dataHost;else return t;else e=E(e).parentNode;return null}/**
3696
3696
  @license
3697
3697
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3698
3698
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3700,7 +3700,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3700
3700
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3701
3701
  Code distributed by Google as part of the polymer project is also
3702
3702
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3703
- */let Ys=!1;function Bd(){if(fo&&!_o){if(!Ys){Ys=!0;const s=document.createElement("style");s.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(s)}return!0}return!1}/**
3703
+ */let Ks=!1;function Rd(){if(vo&&!fo){if(!Ks){Ks=!0;const s=document.createElement("style");s.textContent="dom-bind,dom-if,dom-repeat{display:none;}",document.head.appendChild(s)}return!0}return!1}/**
3704
3704
  @license
3705
3705
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3706
3706
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3708,15 +3708,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3708
3708
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3709
3709
  Code distributed by Google as part of the polymer project is also
3710
3710
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3711
- */const Rd=kd(b);class Ks extends Rd{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:!ys,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Bd()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=k(k(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=fi(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(o,r)},notifyInstanceProp:function(o,r,n){if(Hn(this.as,r)){let a=o[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=ze(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)e.indexOf(t[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=ct.debounce(this.__renderDebouncer,t>0?Kn.after(t):Io,e.bind(this)),bd(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Yi()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!ys||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((i,o,r)=>this.__filterFn(e[i],o,r))),this.__sortFn&&t.sort((i,o)=>this.__sortFn(e[i],e[o])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+o,e)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const o=this.__itemsIdxToInstIdx={};let r;for(r=0;r<t;r++){let n=this.__instances[r],a=i[r],l=e[a];o[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(e){let t=this.__instances[e];const i=k(t.root);for(let o=0;o<t.children.length;o++){let r=t.children[o];i.appendChild(r)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(e,t,i){const o=this.__stampInstance(e,t,i);let r=this.__instances[t+1],n=r?r.children[0]:this;return k(k(this).parentNode).insertBefore(o.root,n),this.__instances[t]=o,o}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),o=i.indexOf("."),r=o<0?i:i.substring(0,o);if(r==parseInt(r,10)){let n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return Fd(this.template,e)}}customElements.define(Ks.is,Ks);/**
3711
+ */const $d=kd(b);class Gs extends $d{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:!xs,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let e=0;e<this.__instances.length;e++)this.__detachInstance(e);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),Rd()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let e=E(E(this).parentNode);for(let t=0;t<this.__instances.length;t++)this.__attachInstance(t,e);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const e=this;let t=this.template=e._templateInfo?e:this.querySelector("template");if(!t){let o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=vi(t,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,r){let a=this.__instances;for(let n=0,l;n<a.length&&(l=a[n]);n++)l.forwardHostProp(o,r)},notifyInstanceProp:function(o,r,a){if(Ha(this.as,r)){let n=o[this.itemsIndexAs];r==this.as&&(this.items[n]=a);let l=Ne(this.as,`${JSCompiler_renameProperty("items",this)}.${n}`,r);this.notifyPath(l,a)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(e){if(typeof e=="string"){let t=e,i=this.__getMethodHost();return function(){return i[t].apply(i,arguments)}}return e}__sortChanged(e){this.__sortFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__filterChanged(e){this.__filterFn=this.__functionFromPropertyValue(e),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(e){return Math.ceil(1e3/e)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(e){if(this.__sortFn||this.__filterFn){if(!e)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let t=this.__observePaths;for(let i=0;i<t.length;i++)e.indexOf(t[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(e){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(e.path,e.value)||(e.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(e,t=0){this.__renderDebouncer=ut.debounce(this.__renderDebouncer,t>0?Ka.after(t):Po,e.bind(this)),yd(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ki()}__render(){if(!this.__ensureTemplatized())return;let e=this.items||[];const t=this.__sortAndFilterItems(e),i=this.__calculateLimit(t.length);this.__updateInstances(e,i,t),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!xs||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(e){let t=new Array(e.length);for(let i=0;i<e.length;i++)t[i]=i;return this.__filterFn&&(t=t.filter((i,o,r)=>this.__filterFn(e[i],o,r))),this.__sortFn&&t.sort((i,o)=>this.__sortFn(e[i],e[o])),t}__calculateLimit(e){let t=e;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(t=Math.min(e,this.initialCount),o=Math.max(t-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(e-i,0),this.__chunkCount),t=Math.min(i+o,e)),this.__shouldMeasureChunk=o===this.__chunkCount,this.__shouldContinueChunking=t<e,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,t}__continueChunking(){if(this.__shouldMeasureChunk){const e=performance.now()-this.__renderStartTime,t=this._targetFrameTime/e;this.__chunkCount=Math.round(this.__chunkCount*t)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(e,t,i){const o=this.__itemsIdxToInstIdx={};let r;for(r=0;r<t;r++){let a=this.__instances[r],n=i[r],l=e[n];o[n]=r,a?(a._setPendingProperty(this.as,l),a._setPendingProperty(this.indexAs,r),a._setPendingProperty(this.itemsIndexAs,n),a._flushProperties()):this.__insertInstance(l,r,n)}for(let a=this.__instances.length-1;a>=r;a--)this.__detachAndRemoveInstance(a)}__detachInstance(e){let t=this.__instances[e];const i=E(t.root);for(let o=0;o<t.children.length;o++){let r=t.children[o];i.appendChild(r)}return t}__attachInstance(e,t){let i=this.__instances[e];t.insertBefore(i.root,this)}__detachAndRemoveInstance(e){this.__detachInstance(e),this.__instances.splice(e,1)}__stampInstance(e,t,i){let o={};return o[this.as]=e,o[this.indexAs]=t,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(e,t,i){const o=this.__stampInstance(e,t,i);let r=this.__instances[t+1],a=r?r.children[0]:this;return E(E(this).parentNode).insertBefore(o.root,a),this.__instances[t]=o,o}_showHideChildren(e){for(let t=0;t<this.__instances.length;t++)this.__instances[t]._showHideChildren(e)}__handleItemPath(e,t){let i=e.slice(6),o=i.indexOf("."),r=o<0?i:i.substring(0,o);if(r==parseInt(r,10)){let a=o<0?"":i.substring(o+1);this.__handleObservedPaths(a);let n=this.__itemsIdxToInstIdx[r],l=this.__instances[n];if(l){let d=this.as+(a?"."+a:"");l._setPendingPropertyOrPath(d,t,!1,!0),l._flushProperties()}return!0}}itemForElement(e){let t=this.modelForElement(e);return t&&t[this.as]}indexForElement(e){let t=this.modelForElement(e);return t&&t[this.indexAs]}modelForElement(e){return Bd(this.template,e)}}customElements.define(Gs.is,Gs);/**
3712
3712
  * @license
3713
3713
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3714
3714
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3715
- */const $d=s=>class extends oe(s){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=>H(e.date,this.focusedDate))}ready(){super.ready(),L(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const r=new Date(0,0);return r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()+1),r.setDate(0),t&&i&&t.getMonth()===i.getMonth()&&t.getMonth()===e.getMonth()&&i.getDate()-t.getDate()>=0?!1:!_e(o,t,i)&&!_e(r,t,i)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:r}=e,n=this._applyFirstDayOfWeek(o,r);return this._applyFirstDayOfWeek(i,r).map((a,l)=>({weekDay:a,weekDayShort:n[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(i=>H(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return H(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==t.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],r=i.getMonth(),n=e.getMonth();for(;i.getMonth()===n||i.getMonth()===r;)o.push(i.getMonth()===n?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(e){return e.reduce((t,i,o)=>(o%7===0&&t.push([]),t[t.length-1].push(i),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((i,o)=>!i&&o?o:i);return _d(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3715
+ */const Hd=s=>class extends oe(s){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=>H(e.date,this.focusedDate))}ready(){super.ready(),L(this.$.monthGrid,"tap",this._handleTap.bind(this))}_isDisabled(e,t,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);const r=new Date(0,0);return r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()+1),r.setDate(0),t&&i&&t.getMonth()===i.getMonth()&&t.getMonth()===e.getMonth()&&i.getDate()-t.getDate()>=0?!1:!_e(o,t,i)&&!_e(r,t,i)}_getTitle(e,t){if(!(e===void 0||t===void 0))return t.formatTitle(t.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300)}_dateAdd(e,t){e.setDate(e.getDate()+t)}_applyFirstDayOfWeek(e,t){if(!(e===void 0||t===void 0))return e.slice(t).concat(e.slice(0,t))}_getWeekDayNames(e,t){if(e===void 0||t===void 0)return[];const{weekdays:i,weekdaysShort:o,firstDayOfWeek:r}=e,a=this._applyFirstDayOfWeek(o,r);return this._applyFirstDayOfWeek(i,r).map((n,l)=>({weekDay:n,weekDayShort:a[l]})).slice(0,7)}__focusedDateChanged(e,t){Array.isArray(t)&&t.some(i=>H(i,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true")}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,t){return e&&t&&t.firstDayOfWeek===1}_isToday(e){return H(new Date,e)}_getDays(e,t){if(e===void 0||t===void 0)return[];const i=new Date(0,0);for(i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);i.getDay()!==t.firstDayOfWeek;)this._dateAdd(i,-1);const o=[],r=i.getMonth(),a=e.getMonth();for(;i.getMonth()===a||i.getMonth()===r;)o.push(i.getMonth()===a?new Date(i.getTime()):null),this._dateAdd(i,1);return o}_getWeeks(e){return e.reduce((t,i,o)=>(o%7===0&&t.push([]),t[t.length-1].push(i),t),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})))}_preventDefault(e){e.preventDefault()}__getWeekNumber(e){const t=e.reduce((i,o)=>!i&&o?o:i);return fd(t)}__getDayAriaLabel(e){if(!e)return"";let t=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(t+=`, ${this.i18n.today}`),t}};/**
3716
3716
  * @license
3717
3717
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3718
3718
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3719
- */const Hd=u`
3719
+ */const qd=u`
3720
3720
  :host {
3721
3721
  display: block;
3722
3722
  }
@@ -3776,7 +3776,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3776
3776
  * @license
3777
3777
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3778
3778
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3779
- */_("vaadin-month-calendar",Hd,{moduleId:"vaadin-month-calendar-styles"});class Ud extends $d(x(b)){static get template(){return g`
3779
+ */_("vaadin-month-calendar",qd,{moduleId:"vaadin-month-calendar-styles"});class Ud extends Hd(x(b)){static get template(){return g`
3780
3780
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3781
3781
  <table
3782
3782
  id="monthGrid"
@@ -3818,19 +3818,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3818
3818
  </template>
3819
3819
  </tbody>
3820
3820
  </table>
3821
- `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,i,o,r,n){const a=["date"],l=e>pi(new Date),d=e<pi(new Date);return this.__isDayDisabled(e,o,r,n)&&a.push("disabled"),this.__isDayFocused(e,t)&&a.push("focused"),this.__isDaySelected(e,i)&&a.push("selected"),this._isToday(e)&&a.push("today"),d&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(e,t){return H(e,t)}__isDaySelected(e,t){return H(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,i,o){return!_e(e,t,i,o)}__getDayAriaDisabled(e,t,i,o){if(!(e===void 0||t===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(e,t,i,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}f(Ud);/**
3821
+ `}static get is(){return"vaadin-month-calendar"}static get properties(){return{_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(e,t){e&&t&&t.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers")}__getDatePart(e,t,i,o,r,a){const n=["date"],l=e>mi(new Date),d=e<mi(new Date);return this.__isDayDisabled(e,o,r,a)&&n.push("disabled"),this.__isDayFocused(e,t)&&n.push("focused"),this.__isDaySelected(e,i)&&n.push("selected"),this._isToday(e)&&n.push("today"),d&&n.push("past"),l&&n.push("future"),n.join(" ")}__isDayFocused(e,t){return H(e,t)}__isDaySelected(e,t){return H(e,t)}__getDayAriaSelected(e,t){if(this.__isDaySelected(e,t))return"true"}__isDayDisabled(e,t,i,o){return!_e(e,t,i,o)}__getDayAriaDisabled(e,t,i,o){if(!(e===void 0||t===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(e,t,i,o))return"true"}__getDayTabindex(e,t){return this.__isDayFocused(e,t)?"0":"-1"}}f(Ud);/**
3822
3822
  * @license
3823
3823
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3824
3824
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3825
- */class Ji{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
3825
+ */class Qi{constructor(e,t){this.query=e,this.callback=t,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(e){typeof this.callback=="function"&&this.callback(e.matches)}}/**
3826
3826
  * @license
3827
3827
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3828
3828
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3829
- */const qd=s=>class extends s{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(){Xo(this.$.scrollers,"pan-y"),L(this.$.scrollers,"track",this._track.bind(this)),L(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),L(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),L(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Ji(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new M(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),L(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new M(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),L(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new M(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new M(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),L(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,o,r){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,o,r))}__updateCalendars(e,t,i,o,r,n,a,l,d,h){e&&e.length&&e.forEach(c=>{c.i18n=t,c.minDate=i,c.maxDate=o,c.isDateDisabled=h,c.focusedDate=n,c.selectedDate=r,c.showWeekNumbers=a,c.ignoreTaps=l,d?c.setAttribute("theme",d):c.removeAttribute("theme")})}__updateYears(e,t,i){e&&e.length&&e.forEach(o=>{o.selectedDate=t,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const a=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+a,t);return}const o=this._monthScroller.position>i,r=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,n=this._monthScroller.position+r-1<i;o?this._scrollToPosition(i,t):n&&this._scrollToPosition(i-r+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/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=z.debounce(this._debouncer,W.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,i){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Wi(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(l=>{i=l});const o=(l,d,h,c)=>(l/=c/2,l<1?h/2*l*l+d:(l-=1,-h/2*(l*(l-2)-1)+d));let r=0;const n=this._monthScroller.position,a=l=>{r||(r=l);const d=l-r;if(d<this.scrollDuration){const h=o(d,n,this._targetPosition-n,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(a)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:n}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(a)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return mr(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){H(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&H(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return it(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,t||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return it(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{lr(this,()=>{Yi(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(pr(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const i=new Date(0,0);i.setFullYear(e.getFullYear()),t==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate,o=this.isDateDisabled){return _e(e,t,i,o)}_isTodayAllowed(e,t,i){return this._dateAllowed(this._getTodayMidnight(),e,t,i)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3829
+ */const jd=s=>class extends s{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(){Jo(this.$.scrollers,"pan-y"),L(this.$.scrollers,"track",this._track.bind(this)),L(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),L(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),L(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new Qi(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new M(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onTodayButtonKeyDown(t)),L(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new M(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",t=>this.__onCancelButtonKeyDown(t)),L(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,t){const i=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+i,t),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new M(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",t=>{this.__onMonthCalendarKeyDown(t)}),e.addEventListener("init-done",()=>{const t=[...this.querySelectorAll("vaadin-month-calendar")];t.forEach(i=>{i.addEventListener("selected-date-changed",o=>{this.selectedDate=o.detail.value})}),this.calendars=t}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new M(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),L(e,"tap",t=>{this._onYearTap(t)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,t){e&&(e.textContent=t&&t.cancel)}__updateTodayButton(e,t,i,o,r){e&&(e.textContent=t&&t.today,e.disabled=!this._isTodayAllowed(i,o,r))}__updateCalendars(e,t,i,o,r,a,n,l,d,h){e&&e.length&&e.forEach(c=>{c.i18n=t,c.minDate=i,c.maxDate=o,c.isDateDisabled=h,c.focusedDate=a,c.selectedDate=r,c.showWeekNumbers=n,c.ignoreTaps=l,d?c.setAttribute("theme",d):c.removeAttribute("theme")})}__updateYears(e,t,i){e&&e.length&&e.forEach(o=>{o.selectedDate=t,i?o.setAttribute("theme",i):o.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,t=!0){if(!e)return;const i=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const n=this._calculateWeekScrollOffset(e);this._scrollToPosition(i+n,t);return}const o=this._monthScroller.position>i,r=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,a=this._monthScroller.position+r-1<i;o?this._scrollToPosition(i,t):a&&this._scrollToPosition(i-r+1,t)}_calculateWeekScrollOffset(e){const t=new Date(0,0);t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(1);let i=0;for(;t.getDate()<e.getDate();)t.setDate(t.getDate()+1),t.getDay()===this.i18n.firstDayOfWeek&&(i+=1);return i/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=z.debounce(this._debouncer,W.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,t,i){return e&&t&&typeof t.formatDate=="function"?t.formatDate(Yi(e)):i}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const t=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+t*12,!0)}}_scrollToPosition(e,t){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!t){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let i;this._revealPromise=new Promise(l=>{i=l});const o=(l,d,h,c)=>(l/=c/2,l<1?h/2*l*l+d:(l-=1,-h/2*(l*(l-2)-1)+d));let r=0;const a=this._monthScroller.position,n=l=>{r||(r=l);const d=l-r;if(d<this.scrollDuration){const h=o(d,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(n)}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,i(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(n)}_limit(e,t){return Math.min(t.max,Math.max(t.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const t=this._translateX+e.detail.ddx;this._translateX=this._limit(t,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return _r(e).getFullYear()}_differenceInMonths(e,t){return(e.getFullYear()-t.getFullYear())*12-t.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){H(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let t=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),t=!0;break;case"ArrowUp":this._moveFocusByDays(-7),t=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),t=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),t=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),t=!0);break;case" ":this.__toggleDate(this.focusedDate),t=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),t=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),t=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),t=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),t=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}t&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,t){switch(e.stopPropagation(),t){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const e=this.focusableDateElement;e&&H(e.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,e.focus())}}focusDate(e,t){return st(this,null,function*(){const i=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=i,t||(this._focusedMonthDate=i.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return st(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(t=>{dr(this,()=>{Ki(),t()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(mr(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,t,i){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,i):this._dateAllowed(this.focusedDate)?t>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,t){const i=new Date(0,0);return i.setFullYear(this.focusedDate.getFullYear()),i.setMonth(this.focusedDate.getMonth()+e),t&&i.setDate(this.focusedDate.getDate()+t),i}_moveFocusByDays(e){const t=this._getDateDiff(0,e);this._focusAllowedDate(t,e,!1)}_moveFocusByMonths(e){const t=this._getDateDiff(e),i=t.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),t.setDate(this._focusedMonthDate),t.getMonth()!==i&&t.setDate(0),this._focusAllowedDate(t,e,!0)}_moveFocusInsideMonth(e,t){const i=new Date(0,0);i.setFullYear(e.getFullYear()),t==="minDate"?(i.setMonth(e.getMonth()),i.setDate(1)):(i.setMonth(e.getMonth()+1),i.setDate(0)),this._dateAllowed(i)?this.focusDate(i):this._dateAllowed(e)?this.focusDate(this[t]):this._focusClosestDate(e)}_dateAllowed(e,t=this.minDate,i=this.maxDate,o=this.isDateDisabled){return _e(e,t,i,o)}_isTodayAllowed(e,t,i){return this._dateAllowed(this._getTodayMidnight(),e,t,i)}_getTodayMidnight(){const e=new Date,t=new Date(0,0);return t.setFullYear(e.getFullYear()),t.setMonth(e.getMonth()),t.setDate(e.getDate()),t}};/**
3830
3830
  * @license
3831
3831
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3832
3832
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3833
- */const jd=u`
3833
+ */const Wd=u`
3834
3834
  :host {
3835
3835
  display: flex;
3836
3836
  flex-direction: column;
@@ -3894,7 +3894,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3894
3894
  * @license
3895
3895
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3896
3896
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3897
- */_("vaadin-date-picker-overlay-content",jd,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Wd extends qd(X(x(N(b)))){static get template(){return g`
3897
+ */_("vaadin-date-picker-overlay-content",Wd,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Yd extends jd(X(x(N(b)))){static get template(){return g`
3898
3898
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3899
3899
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3900
3900
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3914,23 +3914,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3914
3914
  <slot name="today-button"></slot>
3915
3915
  <slot name="cancel-button"></slot>
3916
3916
  </div>
3917
- `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}f(Wd);/**
3917
+ `}static get is(){return"vaadin-date-picker-overlay-content"}ready(){super.ready(),this.setAttribute("role","dialog"),this._addListeners(),this._initControllers()}}f(Yd);/**
3918
3918
  * @license
3919
3919
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3920
3920
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3921
- */const qt=new WeakMap;function Yd(s){return qt.has(s)||qt.set(s,new Set),qt.get(s)}function Kd(s,e){const t=document.createElement("style");t.textContent=s,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const yr=w(s=>class extends s{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=Yd(e);this.slotStyles.forEach(i=>{t.has(i)||(Kd(i,e),t.add(i))})}});/**
3921
+ */const jt=new WeakMap;function Kd(s){return jt.has(s)||jt.set(s,new Set),jt.get(s)}function Gd(s,e){const t=document.createElement("style");t.textContent=s,e===document?document.head.appendChild(t):e.insertBefore(t,e.firstChild)}const xr=w(s=>class extends s{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),t=Kd(e);this.slotStyles.forEach(i=>{t.has(i)||(Gd(i,e),t.add(i))})}});/**
3922
3922
  * @license
3923
3923
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3924
3924
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3925
- */const Gd=s=>class extends Re(se(s)){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(),ci||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}))}};/**
3925
+ */const Xd=s=>class extends $e(se(s)){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(),ui||this.inputElement.focus()}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}))}};/**
3926
3926
  * @license
3927
3927
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3928
3928
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3929
- */const Qi=w(s=>class extends Li(Bi(Re(s))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const i=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_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}});/**
3929
+ */const Zi=w(s=>class extends Mi(Ri($e(s))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(t=>this.__isValidConstraint(t))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...t){if(!e)return;const i=this._hasValidConstraints(t),o=this.__previousHasConstraints&&!i;(this._hasValue||this.invalid)&&i?this.validate():o&&this._setInvalid(!1),this.__previousHasConstraints=i}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3930
3930
  * @license
3931
3931
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3932
3932
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3933
- */const Et=s=>class extends yr(bt(Qi(yt(Gd(se(s)))))){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[`
3933
+ */const It=s=>class extends xr(yt(Zi(xt(Xd(se(s)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
3934
3934
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
3935
3935
  font: inherit;
3936
3936
  color: inherit;
@@ -3939,7 +3939,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3939
3939
  * @license
3940
3940
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3941
3941
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3942
- */const Xd=u`
3942
+ */const Jd=u`
3943
3943
  [part='clear-button'] {
3944
3944
  display: none;
3945
3945
  cursor: default;
@@ -3956,7 +3956,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3956
3956
  * @license
3957
3957
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3958
3958
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3959
- */const xr=u`
3959
+ */const wr=u`
3960
3960
  :host {
3961
3961
  display: inline-flex;
3962
3962
  outline: none;
@@ -3994,7 +3994,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3994
3994
  * @license
3995
3995
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3996
3996
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3997
- */const wr=u`
3997
+ */const Cr=u`
3998
3998
  [class$='container'] {
3999
3999
  display: flex;
4000
4000
  flex-direction: column;
@@ -4006,23 +4006,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4006
4006
  * @license
4007
4007
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
4008
4008
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4009
- */const It=[xr,wr,Xd];/**
4009
+ */const Pt=[wr,Cr,Jd];/**
4010
4010
  * @license
4011
4011
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4012
4012
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4013
- */const Pt=s=>class extends s{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:i}=t;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const r=this.__previousClasses.filter(n=>!this.__initialClasses.has(n));r.length>0&&i.remove(...r)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&i.add(...o),this.__previousClasses=o}};/**
4013
+ */const St=s=>class extends s{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,t){if(!t||e===void 0)return;const{classList:i}=t;if(this.__initialClasses||(this.__initialClasses=new Set(i)),Array.isArray(this.__previousClasses)){const r=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));r.length>0&&i.remove(...r)}const o=typeof e=="string"?e.split(" ").filter(Boolean):[];o.length>0&&i.add(...o),this.__previousClasses=o}};/**
4014
4014
  * @license
4015
4015
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4016
4016
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4017
- */class Cr{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4017
+ */class Ar{constructor(e){this.host=e,e.addEventListener("opened-changed",()=>{e.opened||this.__setVirtualKeyboardEnabled(!1)}),e.addEventListener("blur",()=>this.__setVirtualKeyboardEnabled(!0)),e.addEventListener("touchstart",()=>this.__setVirtualKeyboardEnabled(!0))}__setVirtualKeyboardEnabled(e){this.host.inputElement&&(this.host.inputElement.inputMode=e?"":"none")}}/**
4018
4018
  * @license
4019
4019
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4020
4020
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4021
- */const Jd=s=>class extends Pt(X(bt(Qi(se(s))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let o,r=i.getMonth(),n=i.getFullYear();if(t.length===3){if(r=parseInt(t[0])-1,o=parseInt(t[1]),n=parseInt(t[2]),t[2].length<3&&n>=0){const a=this.referenceDate?we(this.referenceDate):new Date;n=fd(a,n,r,o)}}else t.length===2?(r=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:r,year:n}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Ui},_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&&!gt()&&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 Ji(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Cr(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),t.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),t.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=we(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Wi(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||_e(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&i&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,i,o,r,n){return!e||t&&(!n||r)||i&&r||!o.parseDate}_formatISO(e){return gd(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const i=we(e);if(e&&!i){this.value=t;return}e?H(this._selectedDate,i)||(this._selectedDate=i,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,i,o,r,n,a,l,d){e&&(e.i18n=t,e.label=i,e.minDate=o,e.maxDate=r,e.focusedDate=n,e.selectedDate=a,e.showWeekNumbers=l,e.isDateDisabled=d)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const r=this._noInput?e:[o,e];this.__showOthers=dr(r)}_getInitialPosition(){const e=we(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||_e(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?pr(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,H(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return we(e)}};/**
4021
+ */const Qd=s=>class extends St(X(yt(Zi(se(s))))){static get properties(){return{_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const t=String(e.year).replace(/\d+/u,i=>"0000".substr(i.length)+i);return[e.month+1,e.day,t].join("/")},parseDate(e){const t=e.split("/"),i=new Date;let o,r=i.getMonth(),a=i.getFullYear();if(t.length===3){if(r=parseInt(t[0])-1,o=parseInt(t[1]),a=parseInt(t[2]),t[2].length<3&&a>=0){const n=this.referenceDate?we(this.referenceDate):new Date;a=vd(n,a,r,o)}}else t.length===2?(r=parseInt(t[0])-1,o=parseInt(t[1])):t.length===1&&(o=parseInt(t[0]));if(o!==void 0)return{day:o,month:r,year:a}},formatTitle:(e,t)=>`${e} ${t}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Ui},_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&&!bt()&&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 Qi(this._fullscreenMediaQuery,t=>{this._fullscreen=t})),this.addController(new Ar(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront())}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.$.overlay.close()}_overlayRenderer(e){if(e.firstChild)return;const t=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(t),this._overlayContent=t,t.addEventListener("close",()=>{this._close()}),t.addEventListener("focus-input",this._focusAndSelect.bind(this)),t.addEventListener("date-tap",i=>{this.__commitDate(i.detail.date),this._close()}),t.addEventListener("date-selected",i=>{this.__commitDate(i.detail.date)}),t.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0)}),t.addEventListener("focusout",i=>{this._shouldRemoveFocus(i)&&this._setFocused(!1)}),t.addEventListener("focused-date-changed",i=>{this._focusedDate=i.detail.value}),t.addEventListener("click",i=>i.stopPropagation())}__parseDate(e){if(!this.i18n.parseDate)return;let t=this.i18n.parseDate(e);if(t&&(t=we(`${t.year}-${t.month+1}-${t.day}`)),t&&!isNaN(t.getTime()))return t}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(Yi(e))}checkValidity(){const e=this._inputElementValue,t=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),i=!this._selectedDate||_e(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let o=!0;return this.inputElement&&(this.inputElement.checkValidity?o=this.inputElement.checkValidity():this.inputElement.validate&&(o=this.inputElement.validate())),t&&i&&o}_shouldSetFocus(e){return!this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:t}=e;return this.opened&&t!==null&&t!==document.body&&!this.contains(t)&&!this._overlayContent.contains(t)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange()}_close(){this._focus(),this.close()}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront()})}_isNoInput(e,t,i,o,r,a){return!e||t&&(!a||r)||i&&r||!o.parseDate}_formatISO(e){return bd(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate))}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e)}_selectedDateChanged(e,t){e===void 0||t===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1)}_focusedDateChanged(e,t){e===void 0||t===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e)}_valueChanged(e,t){const i=we(e);if(e&&!i){this.value=t;return}e?H(this._selectedDate,i)||(this._selectedDate=i,t!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue)}__updateOverlayContent(e,t,i,o,r,a,n,l,d){e&&(e.i18n=t,e.label=i,e.minDate=o,e.maxDate=r,e.focusedDate=a,e.selectedDate=n,e.showWeekNumbers=l,e.isDateDisabled=d)}__updateOverlayContentTheme(e,t){e&&(t?e.setAttribute("theme",t):e.removeAttribute("theme"))}__updateOverlayContentFullScreen(e,t){e&&e.toggleAttribute("fullscreen",t)}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1}_onOverlayOpened(){const e=this._overlayContent;e.reset();const t=this._getInitialPosition();e.initialPosition=t;const i=e.focusedDate||t;e.scrollToDate(i),this._ignoreFocusedDateChange=!0,e.focusedDate=i,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const o=this._nativeInput;this._noInput&&o&&(o.blur(),this._overlayContent.focusDateElement());const r=this._noInput?e:[o,e];this.__showOthers=hr(r)}_getInitialPosition(){const e=we(this.initialPosition),t=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||_e(t,this._minDate,this._maxDate,this.isDateDisabled)?t:this._minDate||this._maxDate?mr(t,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",t=this.__parseDate(e);t?this.__commitDate(t):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1)}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate()}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller()}_focus(){this._noInput||this.inputElement.focus()}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length)}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):""}_setSelectionRange(e,t){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,t)}_onChange(e){e.stopPropagation()}_onClick(e){this._isClearButton(e)||this._onHostClick(e)}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open())}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null)}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate()}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate)}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,H(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1)}}__computeMinOrMaxDate(e){return we(e)}};/**
4022
4022
  * @license
4023
4023
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4024
4024
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4025
- */const Qd=u`
4025
+ */const Zd=u`
4026
4026
  :host([opened]) {
4027
4027
  pointer-events: auto;
4028
4028
  }
@@ -4039,7 +4039,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4039
4039
  * @license
4040
4040
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
4041
4041
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4042
- */_("vaadin-date-picker",[It,Qd],{moduleId:"vaadin-date-picker-styles"});class Zd extends Jd(Et(x(F(b)))){static get is(){return"vaadin-date-picker"}static get template(){return g`
4042
+ */_("vaadin-date-picker",[Pt,Zd],{moduleId:"vaadin-date-picker-styles"});class eh extends Qd(It(x(F(b)))){static get is(){return"vaadin-date-picker"}static get template(){return g`
4043
4043
  <div class="vaadin-date-picker-container">
4044
4044
  <div part="label">
4045
4045
  <slot name="label"></slot>
@@ -4081,7 +4081,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4081
4081
  ></vaadin-date-picker-overlay>
4082
4082
 
4083
4083
  <slot name="tooltip"></slot>
4084
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new $e(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new He(this.inputElement,this._labelController)),this._tooltipController=new G(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}f(Zd);/**
4084
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new He(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new qe(this.inputElement,this._labelController)),this._tooltipController=new G(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(e){e.detail.sourceEvent&&e.detail.sourceEvent.composedPath().includes(this)&&e.preventDefault()}_toggle(e){e.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(e){super._openedChanged(e),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}f(eh);/**
4085
4085
  * @license
4086
4086
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4087
4087
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4089,15 +4089,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4089
4089
  * @license
4090
4090
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4091
4091
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4092
- */const eh=s=>class extends Et(s){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
4092
+ */const th=s=>class extends It(s){static get properties(){return{autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value))}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}_onInput(e){super._onInput(e),this.invalid&&this.validate()}_valueChanged(e,t){super._valueChanged(e,t),t!==void 0&&this.invalid&&this.validate()}};/**
4093
4093
  * @license
4094
4094
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4095
4095
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4096
- */const th=s=>class extends eh(s){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new $e(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new He(this.inputElement,this._labelController))}};/**
4096
+ */const ih=s=>class extends th(s){static get properties(){return{maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return[...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text")}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new He(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new qe(this.inputElement,this._labelController))}};/**
4097
4097
  * @license
4098
4098
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
4099
4099
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4100
- */_("vaadin-text-field",It,{moduleId:"vaadin-text-field-styles"});class Ar extends th(x(F(b))){static get is(){return"vaadin-text-field"}static get template(){return g`
4100
+ */_("vaadin-text-field",Pt,{moduleId:"vaadin-text-field-styles"});class Er extends ih(x(F(b))){static get is(){return"vaadin-text-field"}static get template(){return g`
4101
4101
  <div class="vaadin-field-container">
4102
4102
  <div part="label">
4103
4103
  <slot name="label"></slot>
@@ -4126,11 +4126,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4126
4126
  </div>
4127
4127
  </div>
4128
4128
  <slot name="tooltip"></slot>
4129
- `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new G(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}f(Ar);/**
4129
+ `}static get properties(){return{maxlength:{type:Number},minlength:{type:Number}}}ready(){super.ready(),this._tooltipController=new G(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this.addController(this._tooltipController)}}f(Er);/**
4130
4130
  * @license
4131
4131
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4132
4132
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4133
- */const ih=u`
4133
+ */const sh=u`
4134
4134
  :host {
4135
4135
  position: absolute;
4136
4136
  right: 0;
@@ -4143,11 +4143,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4143
4143
  background: transparent;
4144
4144
  outline: none;
4145
4145
  }
4146
- `;_("vaadin-password-field-button",[or,ih],{moduleId:"lumo-password-field-button"});/**
4146
+ `;_("vaadin-password-field-button",[rr,sh],{moduleId:"lumo-password-field-button"});/**
4147
4147
  * @license
4148
4148
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4149
4149
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4150
- */const sh=u`
4150
+ */const oh=u`
4151
4151
  [part='reveal-button']::before {
4152
4152
  content: var(--lumo-icons-eye);
4153
4153
  }
@@ -4165,15 +4165,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4165
4165
  [part='reveal-button'][hidden] {
4166
4166
  display: none !important;
4167
4167
  }
4168
- `;_("vaadin-password-field",[re,sh],{moduleId:"lumo-password-field"});/**
4168
+ `;_("vaadin-password-field",[re,oh],{moduleId:"lumo-password-field"});/**
4169
4169
  * @license
4170
4170
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4171
4171
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4172
- */_("vaadin-password-field-button",ur,{moduleId:"vaadin-password-field-button-styles"});class oh extends ji(N(x(b))){static get is(){return"vaadin-password-field-button"}static get template(){return g``}}f(oh);/**
4172
+ */_("vaadin-password-field-button",pr,{moduleId:"vaadin-password-field-button-styles"});class rh extends Wi(N(x(b))){static get is(){return"vaadin-password-field-button"}static get template(){return g``}}f(rh);/**
4173
4173
  * @license
4174
4174
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4175
4175
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4176
- */const rh=s=>class extends yr(ve(oe(Re(s)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
4176
+ */const ah=s=>class extends xr(ve(oe($e(s)))){static get properties(){return{revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange=""}get slotStyles(){const e=this.localName;return[...super.slotStyles,`
4177
4177
  ${e} [slot="input"]::-ms-reveal {
4178
4178
  display: none;
4179
4179
  }
@@ -4185,7 +4185,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4185
4185
  <div part="reveal-button" slot="suffix">
4186
4186
  <slot name="reveal"></slot>
4187
4187
  </div>
4188
- `;let Ke;class ah extends rh(Ar){static get is(){return"vaadin-password-field"}static get template(){if(!Ke){Ke=super.template.cloneNode(!0);const e=nh.content.querySelector('[part="reveal-button"]');Ke.content.querySelector('[part="input-field"]').appendChild(e)}return Ke}}f(ah);const St=u`
4188
+ `;let Ge;class lh extends ah(Er){static get is(){return"vaadin-password-field"}static get template(){if(!Ge){Ge=super.template.cloneNode(!0);const e=nh.content.querySelector('[part="reveal-button"]');Ge.content.querySelector('[part="input-field"]').appendChild(e)}return Ge}}f(lh);const Tt=u`
4189
4189
  :host {
4190
4190
  display: flex;
4191
4191
  align-items: center;
@@ -4269,7 +4269,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4269
4269
  width: var(--lumo-icon-size-m);
4270
4270
  height: var(--lumo-icon-size-m);
4271
4271
  }
4272
- `;_("vaadin-item",St,{moduleId:"lumo-item"});const kr=u`
4272
+ `;_("vaadin-item",Tt,{moduleId:"lumo-item"});const kr=u`
4273
4273
  :host {
4274
4274
  transition: background-color 100ms;
4275
4275
  overflow: hidden;
@@ -4281,11 +4281,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4281
4281
  :host([focused]:not([disabled])) {
4282
4282
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
4283
4283
  }
4284
- `;_("vaadin-combo-box-item",[St,kr],{moduleId:"lumo-combo-box-item"});/**
4284
+ `;_("vaadin-combo-box-item",[Tt,kr],{moduleId:"lumo-combo-box-item"});/**
4285
4285
  * @license
4286
4286
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
4287
4287
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4288
- */const Er=u`
4288
+ */const Ir=u`
4289
4289
  [part~='loader'] {
4290
4290
  box-sizing: border-box;
4291
4291
  width: var(--lumo-icon-size-s);
@@ -4327,7 +4327,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4327
4327
  transform: rotate(360deg);
4328
4328
  }
4329
4329
  }
4330
- `,Ir=u`
4330
+ `,Pr=u`
4331
4331
  [part='content'] {
4332
4332
  padding: 0;
4333
4333
  }
@@ -4348,7 +4348,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4348
4348
  :host([bottom-aligned]) [part~='overlay'] {
4349
4349
  margin-bottom: var(--lumo-space-xs);
4350
4350
  }
4351
- `,Pr=u`
4351
+ `,Sr=u`
4352
4352
  [part~='loader'] {
4353
4353
  position: absolute;
4354
4354
  z-index: 1;
@@ -4356,24 +4356,24 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4356
4356
  top: var(--lumo-space-s);
4357
4357
  margin-inline: auto 0;
4358
4358
  }
4359
- `;_("vaadin-combo-box-overlay",[xt,wt,Ir,Er,Pr,u`
4359
+ `;_("vaadin-combo-box-overlay",[wt,Ct,Pr,Ir,Sr,u`
4360
4360
  :host {
4361
4361
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
4362
4362
  --_vaadin-combo-box-items-container-border-style: solid;
4363
4363
  }
4364
- `],{moduleId:"lumo-combo-box-overlay"});const lh=u`
4364
+ `],{moduleId:"lumo-combo-box-overlay"});const dh=u`
4365
4365
  [part='toggle-button']::before {
4366
4366
  content: var(--lumo-icons-dropdown);
4367
4367
  }
4368
- `;_("vaadin-combo-box",[re,lh],{moduleId:"lumo-combo-box"});/**
4368
+ `;_("vaadin-combo-box",[re,dh],{moduleId:"lumo-combo-box"});/**
4369
4369
  * @license
4370
4370
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4371
4371
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4372
- */const Sr=s=>class extends s{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,i){e==="hidden"&&i!==null?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,i){i===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
4372
+ */const Tr=s=>class extends s{static get properties(){return{index:{type:Number},item:{type:Object},label:{type:String},selected:{type:Boolean,value:!1,reflectToAttribute:!0},focused:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Function}}}static get observers(){return["__rendererOrItemChanged(renderer, index, item, selected, focused)","__updateLabel(label, renderer)"]}static get observedAttributes(){return[...super.observedAttributes,"hidden"]}attributeChangedCallback(e,t,i){e==="hidden"&&i!==null?this.index=void 0:super.attributeChangedCallback(e,t,i)}connectedCallback(){super.connectedCallback(),this._owner=this.parentNode.owner;const e=this._owner.getAttribute("dir");e&&this.setAttribute("dir",e)}requestContentUpdate(){if(!this.renderer||this.hidden)return;const e={index:this.index,item:this.item,focused:this.focused,selected:this.selected};this.renderer(this,this._owner,e)}__rendererOrItemChanged(e,t,i){i===void 0||t===void 0||(this._oldRenderer!==e&&(this.innerHTML="",delete this._$litPart$),e&&(this._oldRenderer=e,this.requestContentUpdate()))}__updateLabel(e,t){t||(this.textContent=e)}};/**
4373
4373
  * @license
4374
4374
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4375
4375
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4376
- */class dh extends Sr(x(N(b))){static get template(){return g`
4376
+ */class hh extends Tr(x(N(b))){static get template(){return g`
4377
4377
  <style>
4378
4378
  :host {
4379
4379
  display: block;
@@ -4387,15 +4387,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4387
4387
  <div part="content">
4388
4388
  <slot></slot>
4389
4389
  </div>
4390
- `}static get is(){return"vaadin-combo-box-item"}}f(dh);/**
4390
+ `}static get is(){return"vaadin-combo-box-item"}}f(hh);/**
4391
4391
  * @license
4392
4392
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4393
4393
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4394
- */const Tr=s=>class extends qi(s){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Ni(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4394
+ */const Dr=s=>class extends ji(s){static get observers(){return["_setOverlayWidth(positionTarget, opened)"]}constructor(){super(),this.requiredVerticalSpace=200}connectedCallback(){super.connectedCallback();const e=this._comboBox,t=e&&e.getAttribute("dir");t&&this.setAttribute("dir",t)}_shouldCloseOnOutsideClick(e){const t=e.composedPath();return!t.includes(this.positionTarget)&&!t.includes(this)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Vi(e.composedPath()[0])&&e.preventDefault()}_updateOverlayWidth(){const e=this.localName;this.style.setProperty(`--_${e}-default-width`,`${this.positionTarget.clientWidth}px`);const t=getComputedStyle(this._comboBox).getPropertyValue(`--${e}-width`);t===""?this.style.removeProperty(`--${e}-width`):this.style.setProperty(`--${e}-width`,t)}_setOverlayWidth(e,t){e&&t&&(this._updateOverlayWidth(),this._updatePosition())}};/**
4395
4395
  * @license
4396
4396
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4397
4397
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4398
- */const hh=u`
4398
+ */const ch=u`
4399
4399
  #overlay {
4400
4400
  width: var(--vaadin-combo-box-overlay-width, var(--_vaadin-combo-box-overlay-default-width, auto));
4401
4401
  }
@@ -4405,17 +4405,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4405
4405
  flex-direction: column;
4406
4406
  height: 100%;
4407
4407
  }
4408
- `;_("vaadin-combo-box-overlay",[Ct,hh],{moduleId:"vaadin-combo-box-overlay-styles"});class ch extends Tr(kt(N(x(b)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return g`
4408
+ `;_("vaadin-combo-box-overlay",[At,ch],{moduleId:"vaadin-combo-box-overlay-styles"});class uh extends Dr(kt(N(x(b)))){static get is(){return"vaadin-combo-box-overlay"}static get template(){return g`
4409
4409
  <div id="backdrop" part="backdrop" hidden></div>
4410
4410
  <div part="overlay" id="overlay">
4411
4411
  <div part="loader"></div>
4412
4412
  <div part="content" id="content"><slot></slot></div>
4413
4413
  </div>
4414
- `}}f(ch);/**
4414
+ `}}f(uh);/**
4415
4415
  * @license
4416
4416
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
4417
4417
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4418
- */function ut(s,e){return s.split(".").reduce((t,i)=>t?t[i]:void 0,e)}/**
4418
+ */function pt(s,e){return s.split(".").reduce((t,i)=>t?t[i]:void 0,e)}/**
4419
4419
  * @license
4420
4420
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
4421
4421
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -4423,11 +4423,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4423
4423
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
4424
4424
  * Code distributed by Google as part of the polymer project is also
4425
4425
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
4426
- */const Gs=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),uh=Gs&&Gs[1]>=8,Xs=3,ph={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const s=this._virtualCount;return Math.max(0,s-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(s){s=this._clamp(s,0,this._maxVirtualStart),this._virtualStartVal=s},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(s){s%=this._physicalCount,s<0&&(s=this._physicalCount+s),this._physicalStartVal=s},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(s){this._physicalCountVal=s},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let s=this._firstVisibleIndexVal;if(s==null){let e=this._physicalTop+this._scrollOffset;s=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=s}return s},get lastVisibleIndex(){let s=this._lastVisibleIndexVal;if(s==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(s=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=s}return s},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const s=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=s-this._scrollPosition;const t=e>=0;if(this._scrollPosition=s,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(t);t?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),dt)}},_getReusables(s){let e,t,i;const o=[],r=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,p=this._scrollBottom;for(s?(e=this._physicalStart,t=c-d):(e=this._physicalEnd,t=h-p);i=this._getPhysicalSizeIncrement(e),t-=i,!(o.length>=l||t<=r);)if(s){if(a+o.length+1>=this._virtualCount||d+i>=c-this._scrollOffset)break;o.push(e),d+=i,e=(e+1)%l}else{if(n-o.length<=0||d+this._physicalSize-i<=p)break;o.push(e),d-=i,e=e===0?l-1:e-1}return{indexes:o,physicalTop:d-this._scrollOffset}},_update(s,e){if(!(s&&s.length===0||this._physicalCount===0)){if(this._assignModels(s),this._updateMetrics(s),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(s){const e=this._clamp(this._physicalCount+s,Xs,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const i=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let o=0;o<e;o++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-i)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),Ho):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),dt))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const s=this._getReusables(!0);this._physicalTop=s.physicalTop,this._virtualStart+=s.indexes.length,this._physicalStart+=s.indexes.length,this._update(s.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Xs))},_itemsChanged(s){s.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Le))},_iterateItems(s,e){let t,i,o,r;if(arguments.length===2&&e){for(r=0;r<e.length;r++)if(t=e[r],i=this._computeVidx(t),(o=s.call(this,t,i))!=null)return o}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((o=s.call(this,t,i))!=null)return o;for(t=0;t<this._physicalStart;t++,i++)if((o=s.call(this,t,i))!=null)return o}},_computeVidx(s){return s>=this._physicalStart?this._virtualStart+(s-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+s},_positionItems(){this._adjustScrollPosition();let s=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${s}px`,0,this._physicalItems[e]),s+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(s){return this._physicalSizes[s]},_adjustScrollPosition(){const s=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(s!==0){this._physicalTop-=s;const e=this._scrollPosition;!uh&&e>0&&this._resetScrollPosition(e-s)}},_resetScrollPosition(s){this.scrollTarget&&s>=0&&(this._scrollTop=s,this._scrollPosition=this._scrollTop)},_updateScrollerSize(s){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(s||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(s){if(typeof s!="number"||s<0||s>this.items.length-1||(ke(),this._physicalCount===0))return;s=this._clamp(s,0,this._virtualCount-1),(!this._isIndexRendered(s)||s>=this._maxVirtualStart)&&(this._virtualStart=s-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;t<s&&i<=o;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},Le)},_isIndexRendered(s){return s>=this._virtualStart&&s<=this._virtualEnd},_getPhysicalIndex(s){return(this._physicalStart+(s-this._virtualStart))%this._physicalCount},_clamp(s,e,t){return Math.min(t,Math.max(e,s))},_debounce(s,e,t){this._debouncers||(this._debouncers={}),this._debouncers[s]=z.debounce(this._debouncers[s],t,e.bind(this)),Uo(this._debouncers[s])}};/**
4426
+ */const Xs=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),ph=Xs&&Xs[1]>=8,Js=3,mh={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const s=this._virtualCount;return Math.max(0,s-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(s){s=this._clamp(s,0,this._maxVirtualStart),this._virtualStartVal=s},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(s){s%=this._physicalCount,s<0&&(s=this._physicalCount+s),this._physicalStartVal=s},get _physicalEnd(){return(this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(s){this._physicalCountVal=s},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return!!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let s=this._firstVisibleIndexVal;if(s==null){let e=this._physicalTop+this._scrollOffset;s=this._iterateItems((t,i)=>{if(e+=this._getPhysicalSizeIncrement(t),e>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=s}return s},get lastVisibleIndex(){let s=this._lastVisibleIndexVal;if(s==null){let e=this._physicalTop+this._scrollOffset;this._iterateItems((t,i)=>{e<this._scrollBottom&&(s=i),e+=this._getPhysicalSizeIncrement(t)}),this._lastVisibleIndexVal=s}return s},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const s=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let e=s-this._scrollPosition;const t=e>=0;if(this._scrollPosition=s,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(e)>this._physicalSize&&this._physicalSize>0){e-=this._scrollOffset;const i=Math.round(e/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update()}else if(this._physicalCount>0){const i=this._getReusables(t);t?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,t?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ht)}},_getReusables(s){let e,t,i;const o=[],r=this._hiddenContentSize*this._ratio,a=this._virtualStart,n=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const h=this._physicalBottom+this._scrollOffset,c=this._scrollPosition,p=this._scrollBottom;for(s?(e=this._physicalStart,t=c-d):(e=this._physicalEnd,t=h-p);i=this._getPhysicalSizeIncrement(e),t-=i,!(o.length>=l||t<=r);)if(s){if(n+o.length+1>=this._virtualCount||d+i>=c-this._scrollOffset)break;o.push(e),d+=i,e=(e+1)%l}else{if(a-o.length<=0||d+this._physicalSize-i<=p)break;o.push(e),d-=i,e=e===0?l-1:e-1}return{indexes:o,physicalTop:d-this._scrollOffset}},_update(s,e){if(!(s&&s.length===0||this._physicalCount===0)){if(this._assignModels(s),this._updateMetrics(s),e)for(;e.length;){const t=e.pop();this._physicalTop-=this._getPhysicalSizeIncrement(t)}this._positionItems(),this._updateScrollerSize()}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(s){const e=this._clamp(this._physicalCount+s,Js,this._virtualCount-this._virtualStart)-this._physicalCount;let t=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const i=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let o=0;o<e;o++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-i)/e,t=Math.round(this._physicalCount*.5)}this._virtualEnd>=this._virtualCount-1||t===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,t)),qo):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,t),ht))}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const s=this._getReusables(!0);this._physicalTop=s.physicalTop,this._virtualStart+=s.indexes.length,this._physicalStart+=s.indexes.length,this._update(s.indexes),this._update(),this._increasePoolIfNeeded(0)}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Js))},_itemsChanged(s){s.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Me))},_iterateItems(s,e){let t,i,o,r;if(arguments.length===2&&e){for(r=0;r<e.length;r++)if(t=e[r],i=this._computeVidx(t),(o=s.call(this,t,i))!=null)return o}else{for(t=this._physicalStart,i=this._virtualStart;t<this._physicalCount;t++,i++)if((o=s.call(this,t,i))!=null)return o;for(t=0;t<this._physicalStart;t++,i++)if((o=s.call(this,t,i))!=null)return o}},_computeVidx(s){return s>=this._physicalStart?this._virtualStart+(s-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+s},_positionItems(){this._adjustScrollPosition();let s=this._physicalTop;this._iterateItems(e=>{this.translate3d(0,`${s}px`,0,this._physicalItems[e]),s+=this._physicalSizes[e]})},_getPhysicalSizeIncrement(s){return this._physicalSizes[s]},_adjustScrollPosition(){const s=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(s!==0){this._physicalTop-=s;const e=this._scrollPosition;!ph&&e>0&&this._resetScrollPosition(e-s)}},_resetScrollPosition(s){this.scrollTarget&&s>=0&&(this._scrollTop=s,this._scrollPosition=this._scrollTop)},_updateScrollerSize(s){const e=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=e,(s||this._scrollHeight===0||this._scrollPosition>=e-this._physicalSize||Math.abs(e-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${e}px`,this._scrollHeight=e)},scrollToIndex(s){if(typeof s!="number"||s<0||s>this.items.length-1||(Ee(),this._physicalCount===0))return;s=this._clamp(s,0,this._virtualCount-1),(!this._isIndexRendered(s)||s>=this._maxVirtualStart)&&(this._virtualStart=s-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let e=this._physicalStart,t=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;t<s&&i<=o;)i+=this._getPhysicalSizeIncrement(e),e=(e+1)%this._physicalCount,t+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1)},Me)},_isIndexRendered(s){return s>=this._virtualStart&&s<=this._virtualEnd},_getPhysicalIndex(s){return(this._physicalStart+(s-this._virtualStart))%this._physicalCount},_clamp(s,e,t){return Math.min(t,Math.max(e,s))},_debounce(s,e,t){this._debouncers||(this._debouncers={}),this._debouncers[s]=z.debounce(this._debouncers[s],t,e.bind(this)),Uo(this._debouncers[s])}};/**
4427
4427
  * @license
4428
4428
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4429
4429
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4430
- */const mh=1e5,jt=1e3;class Dr{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:o,elementsContainer:r,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=r||o,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:a}])=>{const l=a.width===0&&a.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",a=>this.__onWheel(a)),this.scrollTarget.addEventListener("virtualizer-element-focused",a=>this.__onElementFocused(a)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<jt?(i=e,this._vidxOffset=0):(i=jt,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),ke(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o))}),this.__afterElementsUpdated(i)}_updateMetrics(e){ke();let t=0,i=0;const o=this._physicalAverageCount,r=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),t+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0},e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((r*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const o=parseFloat(t.paddingBottom)||0,r=parseFloat(t.paddingTop)||0,n=parseFloat(t.borderBottomWidth)||0,a=parseFloat(t.borderTopWidth)||0;return i+o+r+n+a}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=z.debounce(this.__placeholderClearDebouncer,Le,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(r=>r!==void 0);this.__placeholderHeight=Math.round(o.reduce((r,n)=>r+n,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),ke(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),ke(),this._debounce("_update",this._update,dt)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,mh)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,o)=>{const r=this._physicalItems[i];r.hidden=o>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),t.push(r))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=z.debounce(this.__fixInvalidItemPositioningDebouncer,W.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=z.debounce(this.__scrollReorderDebouncer,W.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!o){const r=t,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(r?-1:1),this._scrollHandler(),this._ratio=n}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=z.debounce(this.__debouncerWheelAnimationFrame,Le,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=z.debounce(this._debouncerIgnoreNewWheel,W.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const o=i.__virtualIndex-e,r=t.indexOf(i)-o;if(r>0)for(let n=0;n<r;n++)this.elementsContainer.appendChild(t[n]);else if(r<0)for(let n=t.length+r;n<t.length;n++)this.elementsContainer.insertBefore(t[n],t[0]);if(td){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,o=jt,r=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(Dr.prototype,ph);class _h{constructor(e){this.__adapter=new Dr(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4430
+ */const _h=1e5,Wt=1e3;class Or{constructor({createElements:e,updateElement:t,scrollTarget:i,scrollContainer:o,elementsContainer:r,reorderElements:a}){this.isAttached=!0,this._vidxOffset=0,this.createElements=e,this.updateElement=t,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=r||o,this.reorderElements=a,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:n}])=>{const l=n.width===0&&n.height===0;!l&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=l}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",n=>this.__onWheel(n)),this.scrollTarget.addEventListener("virtualizer-element-focused",n=>this.__onElementFocused(n)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}))}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements()}))}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(e=>e.__virtualizerPlaceholder)}scrollToIndex(e){if(typeof e!="number"||isNaN(e)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),e=this._clamp(e,0,this.size-1);const t=this.__getVisibleElements().length;let i=Math.floor(e/this.size*this._virtualCount);this._virtualCount-i<t?(i=this._virtualCount-(this.size-e),this._vidxOffset=this._maxVirtualIndexOffset):i<t?e<Wt?(i=e,this._vidxOffset=0):(i=Wt,this._vidxOffset=e-i):this._vidxOffset=e-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==e&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(e)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=e)}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Ee(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush())}update(e=0,t=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=e&&o.__virtualIndex<=t&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o))}),this.__afterElementsUpdated(i)}_updateMetrics(e){Ee();let t=0,i=0;const o=this._physicalAverageCount,r=this._physicalAverage;this._iterateItems((a,n)=>{i+=this._physicalSizes[a],this._physicalSizes[a]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[a])),t+=this._physicalSizes[a],this._physicalAverageCount+=this._physicalSizes[a]?1:0},e),this._physicalSize=this._physicalSize+t-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((r*o+t)/this._physicalAverageCount))}__getBorderBoxHeight(e){const t=getComputedStyle(e),i=parseFloat(t.height)||0;if(t.boxSizing==="border-box")return i;const o=parseFloat(t.paddingBottom)||0,r=parseFloat(t.paddingTop)||0,a=parseFloat(t.borderBottomWidth)||0,n=parseFloat(t.borderTopWidth)||0;return i+o+r+a+n}__updateElement(e,t,i){e.__virtualizerPlaceholder&&(e.style.paddingTop="",e.style.opacity="",e.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(e.__lastUpdatedIndex!==t||i)&&(this.updateElement(e,t),e.__lastUpdatedIndex=t)}__afterElementsUpdated(e){e.forEach(t=>{const i=t.offsetHeight;if(i===0)t.style.paddingTop=`${this.__placeholderHeight}px`,t.style.opacity="0",t.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=z.debounce(this.__placeholderClearDebouncer,Me,()=>this._resizeHandler());else{this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(r=>r!==void 0);this.__placeholderHeight=Math.round(o.reduce((r,a)=>r+a,0)/o.length)}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex)}__getIndexScrollOffset(e){const t=this.__getVisibleElements().find(i=>i.__virtualIndex===e);return t?this.scrollTarget.getBoundingClientRect().top-t.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(e){if(e===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let t,i;if(e>0&&(t=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(t)),this.__size=e,this._itemsChanged({path:"items"}),Ee(),e>0){t=Math.min(t,e-1),this.scrollToIndex(t);const o=this.__getIndexScrollOffset(t);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o)}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Ee(),this._debounce("_update",this._update,ht)}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(e){this.scrollTarget.scrollTop=e}get items(){return{length:Math.min(this.size,_h)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return{items:this.scrollContainer}}updateViewportBoundaries(){const e=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(e["padding-top"],10),this._isRTL=e.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics()}setAttribute(){}_createPool(e){const t=this.createElements(e),i=document.createDocumentFragment();return t.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o)}),this.elementsContainer.appendChild(i),t}_assignModels(e){const t=[];this._iterateItems((i,o)=>{const r=this._physicalItems[i];r.hidden=o>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),t.push(r))},e),this.__afterElementsUpdated(t)}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0}),this.__clientFull||super._isClientFull()}translate3d(e,t,i,o){o.style.transform=`translateY(${t})`}toggleScrollListener(){}__getFocusedElement(e=this.__getVisibleElements()){return e.find(t=>t.contains(this.elementsContainer.getRootNode().activeElement)||t.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(e,t){return t.indexOf(e)===t.length-1&&this.size>e.__virtualIndex+1}__previousFocusableSiblingMissing(e,t){return t.indexOf(e)===0&&e.__virtualIndex>0}__onElementFocused(e){if(!this.reorderElements)return;const t=e.detail.element;if(!t)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(t,i)||this.__nextFocusableSiblingMissing(t,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(t,o)?(this._scrollTop+=Math.ceil(t.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(t,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(t.getBoundingClientRect().top),this.flush())}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const e=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const t=e>=0,i=this._getReusables(!t);i.indexes.length&&(this._physicalTop=i.physicalTop,t?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler())}e&&(this.__fixInvalidItemPositioningDebouncer=z.debounce(this.__fixInvalidItemPositioningDebouncer,W.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=z.debounce(this.__scrollReorderDebouncer,W.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(e)>0&&this.scrollToIndex(0)}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const e=this._physicalTop>this._scrollTop,t=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(e&&!i||t&&!o){const r=t,a=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(r?-1:1),this._scrollHandler(),this._ratio=a}}__onWheel(e){if(e.ctrlKey||this._hasScrolledAncestor(e.target,e.deltaX,e.deltaY))return;let t=e.deltaY;if(e.deltaMode===WheelEvent.DOM_DELTA_LINE?t*=this._scrollLineHeight:e.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(t*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=t,e.preventDefault();return}t+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=z.debounce(this.__debouncerWheelAnimationFrame,Me,()=>{this._wheelAnimationFrame=!1});const i=Math.abs(e.deltaX)+Math.abs(t);this._canScroll(this.scrollTarget,e.deltaX,t)?(e.preventDefault(),this.scrollTarget.scrollTop+=t,this.scrollTarget.scrollLeft+=e.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=z.debounce(this._debouncerIgnoreNewWheel,W.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?e.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i}_hasScrolledAncestor(e,t,i){if(e===this.scrollTarget||e===this.scrollTarget.getRootNode().host)return!1;if(this._canScroll(e,t,i)&&["auto","scroll"].indexOf(getComputedStyle(e).overflow)!==-1)return!0;if(e!==this&&e.parentElement)return this._hasScrolledAncestor(e.parentElement,t,i)}_canScroll(e,t,i){return i>0&&e.scrollTop<e.scrollHeight-e.offsetHeight||i<0&&e.scrollTop>0||t>0&&e.scrollLeft<e.scrollWidth-e.offsetWidth||t<0&&e.scrollLeft>0}_increasePoolIfNeeded(e){if(this._physicalCount>2&&e){const t=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(e,Math.min(100,t)))}else super._increasePoolIfNeeded(e)}get _optPhysicalSize(){const e=super._optPhysicalSize;return e<=0||this.__hasPlaceholders()?e:e+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const e=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),t=Math.max(...this._physicalSizes);return t>Math.min(...this._physicalSizes)?Math.max(0,t-e):0}_getScrollLineHeight(){const e=document.createElement("div");e.style.fontSize="initial",e.style.display="none",document.body.appendChild(e);const t=window.getComputedStyle(e).fontSize;return document.body.removeChild(e),t?window.parseInt(t):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(e=>!e.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const e=this._virtualStart+(this._vidxOffset||0),t=this.__getVisibleElements(),i=this.__getFocusedElement(t)||t[0];if(!i)return;const o=i.__virtualIndex-e,r=t.indexOf(i)-o;if(r>0)for(let a=0;a<r;a++)this.elementsContainer.appendChild(t[a]);else if(r<0)for(let a=t.length+r;a<t.length;a++)this.elementsContainer.insertBefore(t[a],t[0]);if(id){const{transform:a}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=a})}}_adjustVirtualIndexOffset(e){const t=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(e)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*t)}else{const i=this._vidxOffset,o=Wt,r=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=t,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<t&&(this._vidxOffset+=Math.min(t-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)))}}}Object.setPrototypeOf(Or.prototype,mh);class fh{constructor(e){this.__adapter=new Or(e)}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(e){this.__adapter.size=e}scrollToIndex(e){this.__adapter.scrollToIndex(e)}update(e=0,t=this.size-1){this.__adapter.update(e,t)}flush(){this.__adapter.flush()}}/**
4431
4431
  * @license
4432
4432
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4433
4433
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4435,11 +4435,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4435
4435
  * @license
4436
4436
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4437
4437
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4438
- */const Or=s=>class extends s{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,i)=>t+i)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${vt()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const o=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const r=o.getBoundingClientRect(),n=this.getBoundingClientRect(),a=r.bottom-n.bottom+this._viewportTotalPaddingBottom;a>0&&(this.scrollTop+=a)}_isItemSelected(e,t,i){return e instanceof K?!1:i&&e!==void 0&&t!==void 0?ut(i,e)===ut(i,t):e===t}__initVirtualizer(){this.__virtualizer=new _h({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const i=this.items[t],o=this.focusedIndex,r=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:r,renderer:this.renderer,focused:!this.loading&&o===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(i):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",r.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof K&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||i&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4438
+ */const zr=s=>class extends s{static get properties(){return{items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this)}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(t=>parseInt(t,10)).reduce((t,i)=>t+i)}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${gt()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling()}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update())}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const t=this._visibleItemsCount();let i=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),i=e-t+1):e>this.__virtualizer.firstVisibleIndex&&(i=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,i));const o=[...this.children].find(l=>!l.hidden&&l.index===this.__virtualizer.lastVisibleIndex);if(!o||e!==o.index)return;const r=o.getBoundingClientRect(),a=this.getBoundingClientRect(),n=r.bottom-a.bottom+this._viewportTotalPaddingBottom;n>0&&(this.scrollTop+=n)}_isItemSelected(e,t,i){return e instanceof K?!1:i&&e!==void 0&&t!==void 0?pt(i,e)===pt(i,t):e===t}__initVirtualizer(){this.__virtualizer=new fh({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0})}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate()}__loadingChanged(){this.requestContentUpdate()}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate())}__selectedItemChanged(){this.requestContentUpdate()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.requestContentUpdate()}__focusedIndexChanged(e,t){e!==t&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e)}__rendererChanged(e,t){(e||t)&&this.requestContentUpdate()}__createElements(e){return[...Array(e)].map(()=>{const t=document.createElement(`${this.__hostTagName}-item`);return t.addEventListener("click",this.__boundOnItemClick),t.tabIndex="-1",t.style.width="100%",t})}_updateElement(e,t){const i=this.items[t],o=this.focusedIndex,r=this._isItemSelected(i,this.selectedItem,this.itemIdPath);e.setProperties({item:i,index:t,label:this.getItemLabel(i),selected:r,renderer:this.renderer,focused:!this.loading&&o===t}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(i):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${t}`,e.setAttribute("role",t!==void 0?"option":!1),e.setAttribute("aria-selected",r.toString()),e.setAttribute("aria-posinset",t+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),i instanceof K&&this.__requestItemByIndex(t)}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}))}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const t=this.scrollTop===0,i=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(t&&e.deltaY<0||i&&e.deltaY>0)&&e.preventDefault()})}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}))})}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
4439
4439
  * @license
4440
4440
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4441
4441
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4442
- */class fh extends Or(b){static get is(){return"vaadin-combo-box-scroller"}static get template(){return g`
4442
+ */class vh extends zr(b){static get is(){return"vaadin-combo-box-scroller"}static get template(){return g`
4443
4443
  <style>
4444
4444
  :host {
4445
4445
  display: block;
@@ -4466,39 +4466,39 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4466
4466
  <div id="selector">
4467
4467
  <slot></slot>
4468
4468
  </div>
4469
- `}}f(fh);/**
4469
+ `}}f(vh);/**
4470
4470
  * @license
4471
4471
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4472
4472
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4473
- */const vh=s=>class extends Qi(s){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4473
+ */const gh=s=>class extends Zi(s){static get properties(){return{pattern:{type:String}}}static get delegateAttrs(){return[...super.delegateAttrs,"pattern"]}static get constraints(){return[...super.constraints,"pattern"]}};/**
4474
4474
  * @license
4475
4475
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4476
4476
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4477
- */function pt(s,e,t=0){let i=e;for(const o of s.subCaches){const r=o.parentCacheIndex;if(i<=r)break;if(i<=r+o.flatSize)return pt(o,i-r-1,t+1);i-=o.flatSize}return{cache:s,item:s.items[i],index:i,page:Math.floor(i/s.pageSize),level:t}}function zr({getItemId:s},e,t,i=0,o=0){for(let r=0;r<e.items.length;r++){const n=e.items[r];if(n&&s(n)===s(t))return{cache:e,level:i,item:n,index:r,page:Math.floor(r/e.pageSize),subCache:e.getSubCache(r),flatIndex:o+e.getFlatIndex(r)}}for(const r of e.subCaches){const n=o+e.getFlatIndex(r.parentCacheIndex),a=zr({getItemId:s},r,t,i+1,n+1);if(a)return a}}function Nr(s,[e,...t],i=0){e===1/0&&(e=s.size-1);const o=s.getFlatIndex(e),r=s.getSubCache(e);return r&&r.flatSize>0&&t.length?Nr(r,t,i+o+1):i+o}/**
4477
+ */function mt(s,e,t=0){let i=e;for(const o of s.subCaches){const r=o.parentCacheIndex;if(i<=r)break;if(i<=r+o.flatSize)return mt(o,i-r-1,t+1);i-=o.flatSize}return{cache:s,item:s.items[i],index:i,page:Math.floor(i/s.pageSize),level:t}}function Nr({getItemId:s},e,t,i=0,o=0){for(let r=0;r<e.items.length;r++){const a=e.items[r];if(a&&s(a)===s(t))return{cache:e,level:i,item:a,index:r,page:Math.floor(r/e.pageSize),subCache:e.getSubCache(r),flatIndex:o+e.getFlatIndex(r)}}for(const r of e.subCaches){const a=o+e.getFlatIndex(r.parentCacheIndex),n=Nr({getItemId:s},r,t,i+1,a+1);if(n)return n}}function Vr(s,[e,...t],i=0){e===1/0&&(e=s.size-1);const o=s.getFlatIndex(e),r=s.getSubCache(e);return r&&r.flatSize>0&&t.length?Vr(r,t,i+o+1):i+o}/**
4478
4478
  * @license
4479
4479
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4480
4480
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4481
- */class Zi{constructor(e,t,i,o,r){P(this,"context"),P(this,"pageSize"),P(this,"items",[]),P(this,"pendingRequests",{}),P(this,"__subCacheByIndex",{}),P(this,"__size",0),P(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=i,this.parentCache=o,this.parentCacheIndex=r,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let i=0;i<e;i++)(t=this.items)[i]||(t[i]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(i=>{parseInt(i)*this.pageSize>=this.size&&delete this.pendingRequests[i]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const i=e*this.pageSize;t.forEach((o,r)=>{const n=i+r;(this.size===void 0||n<this.size)&&(this.items[n]=o)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new Zi(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((i,o)=>{const r=o.parentCacheIndex;return t>r?i+o.flatSize:i},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=pt(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:i}=pt(this,e);return{cache:t,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
4481
+ */class es{constructor(e,t,i,o,r){P(this,"context"),P(this,"pageSize"),P(this,"items",[]),P(this,"pendingRequests",{}),P(this,"__subCacheByIndex",{}),P(this,"__size",0),P(this,"__flatSize",0),this.context=e,this.pageSize=t,this.size=i,this.parentCache=o,this.parentCacheIndex=r,this.__flatSize=i||0}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(e=>e.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(e){var t;if(this.__size!==e){if(this.__size=e,this.context.placeholder!==void 0){this.items.length=e||0;for(let i=0;i<e;i++)(t=this.items)[i]||(t[i]=this.context.placeholder)}Object.keys(this.pendingRequests).forEach(i=>{parseInt(i)*this.pageSize>=this.size&&delete this.pendingRequests[i]})}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((e,t)=>(t.recalculateFlatSize(),e+t.flatSize),0):0}setPage(e,t){const i=e*this.pageSize;t.forEach((o,r)=>{const a=i+r;(this.size===void 0||a<this.size)&&(this.items[a]=o)})}getSubCache(e){return this.__subCacheByIndex[e]}removeSubCache(e){delete this.__subCacheByIndex[e]}removeSubCaches(){this.__subCacheByIndex={}}createSubCache(e){const t=new es(this.context,this.pageSize,0,this,e);return this.__subCacheByIndex[e]=t,t}getFlatIndex(e){const t=Math.max(0,Math.min(this.size-1,e));return this.subCaches.reduce((i,o)=>{const r=o.parentCacheIndex;return t>r?i+o.flatSize:i},t)}getItemForIndex(e){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:t}=mt(this,e);return t}getCacheAndIndex(e){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:t,index:i}=mt(this,e);return{cache:t,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize()}ensureSubCacheForScaledIndex(e){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(e)){const t=this.createSubCache(e);this.context.__controller.__loadCachePage(t,0)}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
4482
4482
  * @license
4483
4483
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4484
4484
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4485
- */class gh extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:o,getItemId:r,isPlaceholder:n,placeholder:a,dataProvider:l,dataProviderParams:d}){super(),P(this,"host"),P(this,"dataProvider"),P(this,"dataProviderParams"),P(this,"pageSize"),P(this,"isExpanded"),P(this,"getItemId"),P(this,"rootCache"),P(this,"placeholder"),P(this,"isPlaceholder"),this.host=e,this.pageSize=i,this.getItemId=r,this.isExpanded=o,this.placeholder=a,this.isPlaceholder=n,this.dataProvider=l,this.dataProviderParams=d,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return pt(this.rootCache,e)}getItemContext(e){return zr({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Nr(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:i,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,i)}ensureFlatIndexHierarchy(e){const{cache:t,item:i,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!t.getSubCache(o)){const r=t.createSubCache(o);this.__loadCachePage(r,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new Zi(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let i={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=tt(tt({},i),this.dataProviderParams()));const o=(r,n)=>{e.pendingRequests[t]===o&&(n!==void 0?e.size=n:i.parentItem&&(e.size=r.length),e.setPage(t,r),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4485
+ */class bh extends EventTarget{constructor(e,{size:t,pageSize:i,isExpanded:o,getItemId:r,isPlaceholder:a,placeholder:n,dataProvider:l,dataProviderParams:d}){super(),P(this,"host"),P(this,"dataProvider"),P(this,"dataProviderParams"),P(this,"pageSize"),P(this,"isExpanded"),P(this,"getItemId"),P(this,"rootCache"),P(this,"placeholder"),P(this,"isPlaceholder"),this.host=e,this.pageSize=i,this.getItemId=r,this.isExpanded=o,this.placeholder=n,this.isPlaceholder=a,this.dataProvider=l,this.dataProviderParams=d,this.rootCache=this.__createRootCache(t)}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return{isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache()}setDataProvider(e){this.dataProvider=e,this.clearCache()}recalculateFlatSize(){this.rootCache.recalculateFlatSize()}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size)}getFlatIndexContext(e){return mt(this.rootCache,e)}getItemContext(e){return Nr({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Vr(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:t,page:i,item:o}=this.getFlatIndexContext(e);this.__isItemLoaded(o)||this.__loadCachePage(t,i)}ensureFlatIndexHierarchy(e){const{cache:t,item:i,index:o}=this.getFlatIndexContext(e);if(this.__isItemLoaded(i)&&this.isExpanded(i)&&!t.getSubCache(o)){const r=t.createSubCache(o);this.__loadCachePage(r,0)}}loadFirstPage(){this.__loadCachePage(this.rootCache,0)}__createRootCache(e){return new es(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,t){if(!this.dataProvider||e.pendingRequests[t])return;let i={page:t,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(i=it(it({},i),this.dataProviderParams()));const o=(r,a)=>{e.pendingRequests[t]===o&&(a!==void 0?e.size=a:i.parentItem&&(e.size=r.length),e.setPage(t,r),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[t],this.dispatchEvent(new CustomEvent("page-loaded")))};e.pendingRequests[t]=o,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(i,o)}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
4486
4486
  * @license
4487
4487
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4488
4488
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4489
- */const Vr=s=>class extends s{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new gh(this,{placeholder:new K,isPlaceholder:e=>e instanceof K,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const i=this.__getItemIndexByValue(this.filteredItems,t);(i<0||!this._getItemLabel(this.filteredItems[i]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
4489
+ */const Lr=s=>class extends s{static get properties(){return{pageSize:{type:Number,value:50,observer:"_pageSizeChanged",sync:!0},size:{type:Number,observer:"_sizeChanged",sync:!0},dataProvider:{type:Object,observer:"_dataProviderChanged",sync:!0},__dataProviderInitialized:{type:Boolean,value:!1},__previousDataProviderFilter:{type:String}}}static get observers(){return["_dataProviderFilterChanged(filter)","_warnDataProviderValue(dataProvider, value)","_ensureFirstPage(opened)"]}constructor(){super(),this.__dataProviderController=new bh(this,{placeholder:new K,isPlaceholder:e=>e instanceof K,dataProviderParams:()=>({filter:this.filter})}),this.__dataProviderController.addEventListener("page-requested",this.__onDataProviderPageRequested.bind(this)),this.__dataProviderController.addEventListener("page-loaded",this.__onDataProviderPageLoaded.bind(this))}ready(){super.ready(),this._scroller.addEventListener("index-requested",e=>{if(!this._shouldFetchData())return;const t=e.detail.index;t!==void 0&&this.__dataProviderController.ensureFlatIndexLoaded(t)}),this.__dataProviderInitialized=!0,this.dataProvider&&this.__synchronizeControllerState()}_dataProviderFilterChanged(e){if(this.__previousDataProviderFilter===void 0&&e===""){this.__previousDataProviderFilter=e;return}this.__previousDataProviderFilter!==e&&(this.__previousDataProviderFilter=e,this.__keepOverlayOpened=!0,this.size=void 0,this.clearCache(),this.__keepOverlayOpened=!1)}_shouldFetchData(){return this.dataProvider?this.opened||this.filter&&this.filter.length:!1}_ensureFirstPage(e){!this._shouldFetchData()||!e||(this._forceNextRequest||this.size===void 0?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this.size>0&&this.__dataProviderController.ensureFlatIndexLoaded(0))}__onDataProviderPageRequested(){this.loading=!0}__onDataProviderPageLoaded(){const{rootCache:e}=this.__dataProviderController;e.items=[...e.items],this.__synchronizeControllerState(),!this.opened&&!this._isInputFocused()&&this._commitValue()}clearCache(){this.dataProvider&&(this.__dataProviderController.clearCache(),this.__synchronizeControllerState(),this._shouldFetchData()?(this._forceNextRequest=!1,this.__dataProviderController.loadFirstPage()):this._forceNextRequest=!0)}_sizeChanged(e){const{rootCache:t}=this.__dataProviderController;t.size!==e&&(t.size=e,t.items=[...t.items],this.__synchronizeControllerState())}_filteredItemsChanged(e){if(super._filteredItemsChanged(e),this.dataProvider&&e){const{rootCache:t}=this.__dataProviderController;t.items!==e&&(t.items=e,this.__synchronizeControllerState())}}__synchronizeControllerState(){if(this.__dataProviderInitialized&&this.dataProvider){const{rootCache:e}=this.__dataProviderController;this.size=e.size,this.filteredItems=e.items,this.loading=this.__dataProviderController.isLoading()}}_pageSizeChanged(e,t){if(Math.floor(e)!==e||e<1)throw this.pageSize=t,new Error("`pageSize` value must be an integer > 0");this.__dataProviderController.setPageSize(e),this.clearCache()}_dataProviderChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.dataProvider=t}),this.__dataProviderController.setDataProvider(e),this.clearCache()}_ensureItemsOrDataProvider(e){if(this.items!==void 0&&this.dataProvider!==void 0)throw e(),new Error("Using `items` and `dataProvider` together is not supported")}_warnDataProviderValue(e,t){if(e&&t!==""&&(this.selectedItem===void 0||this.selectedItem===null)){const i=this.__getItemIndexByValue(this.filteredItems,t);(i<0||!this._getItemLabel(this.filteredItems[i]))&&console.warn("Warning: unable to determine the label for the provided `value`. Nothing to display in the text field. This usually happens when setting an initial `value` before any items are returned from the `dataProvider` callback. Consider setting `selectedItem` instead of `value`")}}};/**
4490
4490
  * @license
4491
4491
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4492
4492
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4493
- */function Tt(s){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(s);return}s.querySelector("template")&&console.warn(`WARNING: <template> inside <${s.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
4493
+ */function Dt(s){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(s);return}s.querySelector("template")&&console.warn(`WARNING: <template> inside <${s.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}/**
4494
4494
  * @license
4495
4495
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4496
4496
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4497
- */function Js(s){return s!=null}function Qs(s,e){return s.findIndex(t=>t instanceof K?!1:e(t))}const Lr=s=>class extends Pt(X(Bi(oe(se(Re(ve(s))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Tt(this),this.addController(new Cr(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=o=>{o.innerHTML||o.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,o,r,n,a,l,d,h){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:o,selectedItem:r,itemIdPath:n,focusedIndex:a,renderer:l,theme:d,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(c){}}_openedOrItemsChanged(e,t,i,o){this._overlayOpened=e&&(o||i||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Vi(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find(o=>o.index===e);i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!ci&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?ut(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?ut(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{ci&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const i=this._inputElementValue;this._lastCustomValue=i;const o=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=i)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(Js(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(i=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const r=this.__getItemIndexByValue(e,this._getItemValue(i));r>-1?this._focusedIndex=r:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!Js(t)?-1:Qs(e,i=>this._getItemValue(i)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Qs(e,i=>this._getItemLabel(i).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof K)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(gt()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4497
+ */function Qs(s){return s!=null}function Zs(s,e){return s.findIndex(t=>t instanceof K?!1:e(t))}const Mr=s=>class extends St(X(Ri(oe(se($e(ve(s))))))){static get properties(){return{opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this)}get _tagNamePrefix(){return"vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const t=this._nativeInput;t&&(t.autocomplete="off",t.autocapitalize="off",t.setAttribute("role","combobox"),t.setAttribute("aria-autocomplete","list"),t.setAttribute("aria-expanded",!!this.opened),t.setAttribute("spellcheck","false"),t.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown))}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront()})};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Dt(this),this.addController(new Ar(this))}disconnectedCallback(){super.disconnectedCallback(),this.close()}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate()}))}open(){!this.disabled&&!this.readonly&&(this.opened=!0)}close(){this.opened=!1}_propertiesChanged(e,t,i){super._propertiesChanged(e,t,i),t.filter!==void 0&&this._filterChanged(t.filter)}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter)}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("opened-changed",t=>{this._overlayOpened=t.detail.value}),this._overlayElement=e}_initScroller(e){const t=document.createElement(`${this._tagNamePrefix}-scroller`);t.owner=e||this,t.getItemLabel=this._getItemLabel.bind(this),t.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const i=this._overlayElement;i.renderer=o=>{o.innerHTML||o.appendChild(t)},i.requestContentUpdate(),this._scroller=t}_updateScroller(e,t,i,o,r,a,n,l,d,h){if(e&&(i&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:i?t:[],opened:i,loading:o,selectedItem:r,itemIdPath:a,focusedIndex:n,renderer:l,theme:d,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate()}catch(c){}}_openedOrItemsChanged(e,t,i,o){this._overlayOpened=e&&(o||i||!!(t&&t.length))}_overlayOpenedChanged(e,t){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):t&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})))}_focusedIndexChanged(e,t){t!==void 0&&this._updateActiveDescendant(e)}_isInputFocused(){return this.inputElement&&Li(this.inputElement)}_updateActiveDescendant(e){const t=this._nativeInput;if(!t)return;const i=this._getItemElements().find(o=>o.index===e);i?t.setAttribute("aria-activedescendant",i.id):t.removeAttribute("aria-activedescendant")}_openedChanged(e,t){if(t===void 0)return;e?!this._isInputFocused()&&!ui&&this.inputElement&&this.inputElement.focus():this._onClosed();const i=this._nativeInput;i&&(i.setAttribute("aria-expanded",!!e),e?i.setAttribute("aria-controls",this._scroller.id):i.removeAttribute("aria-controls"))}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus()}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate()}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open()}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open())}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e)}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault())}_getItemLabel(e){let t=e&&this.itemLabelPath?pt(this.itemLabelPath,e):void 0;return t==null&&(t=e?e.toString():""),t}_getItemValue(e){let t=e&&this.itemValuePath?pt(this.itemValuePath,e):void 0;return t===void 0&&(t=e?e.toString():""),t}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel())}else this.open()}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else{const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1)}this._prefillFocusedItemLabel()}else this.open()}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange()}}_setSelectionRange(e,t){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,t)}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length)}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e)}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close()}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit()}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction())}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",t=>t.preventDefault()),e.addEventListener("click",()=>{ui&&!this._isInputFocused()&&document.activeElement.blur()}))}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange()}_clearFilter(){this.filter=""}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit()}_onOpened(){this._lastCommittedValue=this.value}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue()}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else{const e=[this.selectedItem,...this._dropdownItems||[]],t=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!t){const i=this._inputElementValue;this._lastCustomValue=i;const o=new CustomEvent("custom-value-set",{detail:i,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(o),o.defaultPrevented||(this.value=i)}else!this.allowCustomValue&&!this.opened&&t?this.value=this._getItemValue(t):this._revertInputValueToValue()}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter()}_onInput(e){const t=this._inputElementValue,i={};this.filter===t?this._filterChanged(this.filter):i.filter=t,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(i.opened=!0),this.setProperties(i)}_onChange(e){e.stopPropagation()}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string")}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems)}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange()}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem)}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else{const t=this._getItemValue(e);if(this.value!==t&&(this.value=t,this.value!==t))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e)}}_valueChanged(e,t){e===""&&t===void 0||(Qs(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0)}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value)}_itemsChanged(e,t){this._ensureItemsOrDataProvider(()=>{this.items=t}),e?this.filteredItems=e.slice(0):t&&(this.filteredItems=null)}_filteredItemsChanged(e){this._setDropdownItems(e)}_filterItems(e,t){return e&&e.filter(i=>(t=t?t.toString().toLowerCase():"",this._getItemLabel(i).toString().toLowerCase().indexOf(t)>-1))}_selectItemForValue(e){const t=this.__getItemIndexByValue(this.filteredItems,e),i=this.selectedItem;t>=0?this.selectedItem=this.filteredItems[t]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&i===null&&this._selectedItemChanged(this.selectedItem)}_setDropdownItems(e){const t=this._dropdownItems;this._dropdownItems=e;const i=t?t[this._focusedIndex]:null,o=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&o>=0&&(this.selectedItem=e[o]);const r=this.__getItemIndexByValue(e,this._getItemValue(i));r>-1?this._focusedIndex=r:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter)}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e)}__getItemIndexByValue(e,t){return!e||!Qs(t)?-1:Zs(e,i=>this._getItemValue(i)===t)}__getItemIndexByLabel(e,t){return!e||!t?-1:Zs(e,i=>this._getItemLabel(i).toString().toLowerCase()===t.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof K)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close())}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(bt()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue()}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction())}};/**
4498
4498
  * @license
4499
4499
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
4500
4500
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4501
- */_("vaadin-combo-box",It,{moduleId:"vaadin-combo-box-styles"});class bh extends Vr(Lr(vh(Et(x(F(b)))))){static get is(){return"vaadin-combo-box"}static get template(){return g`
4501
+ */_("vaadin-combo-box",Pt,{moduleId:"vaadin-combo-box-styles"});class yh extends Lr(Mr(gh(It(x(F(b)))))){static get is(){return"vaadin-combo-box"}static get template(){return g`
4502
4502
  <style>
4503
4503
  :host([opened]) {
4504
4504
  pointer-events: auto;
@@ -4543,11 +4543,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4543
4543
  ></vaadin-combo-box-overlay>
4544
4544
 
4545
4545
  <slot name="tooltip"></slot>
4546
- `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new $e(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new He(this.inputElement,this._labelController)),this._tooltipController=new G(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}f(bh);/**
4546
+ `}static get properties(){return{_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new He(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new qe(this.inputElement,this._labelController)),this._tooltipController=new G(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton}_onClearButtonClick(e){e.stopPropagation(),super._onClearButtonClick(e)}_onHostClick(e){const t=e.composedPath();(t.includes(this._labelNode)||t.includes(this._positionTarget))&&super._onHostClick(e)}}f(yh);/**
4547
4547
  * @license
4548
4548
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4549
4549
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4550
- */const yh=u`
4550
+ */const xh=u`
4551
4551
  :host {
4552
4552
  font-size: var(--lumo-font-size-xxs);
4553
4553
  line-height: 1;
@@ -4636,18 +4636,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4636
4636
  -webkit-text-fill-color: var(--lumo-disabled-text-color);
4637
4637
  pointer-events: none;
4638
4638
  }
4639
- `;_("vaadin-multi-select-combo-box-chip",[Hi,yh],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4639
+ `;_("vaadin-multi-select-combo-box-chip",[qi,xh],{moduleId:"lumo-multi-select-combo-box-chip"});/**
4640
4640
  * @license
4641
4641
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4642
4642
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4643
- */const xh=u`
4643
+ */const wh=u`
4644
4644
  @media (any-hover: hover) {
4645
4645
  :host(:hover[readonly]) {
4646
4646
  background-color: transparent;
4647
4647
  cursor: default;
4648
4648
  }
4649
4649
  }
4650
- `;_("vaadin-multi-select-combo-box-item",[St,kr,xh],{moduleId:"lumo-multi-select-combo-box-item"});_("vaadin-multi-select-combo-box-overlay",[xt,wt,Ir,Er,Pr,u`
4650
+ `;_("vaadin-multi-select-combo-box-item",[Tt,kr,wh],{moduleId:"lumo-multi-select-combo-box-item"});_("vaadin-multi-select-combo-box-overlay",[wt,Ct,Pr,Ir,Sr,u`
4651
4651
  :host {
4652
4652
  --_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
4653
4653
  --_vaadin-multi-select-combo-box-items-container-border-style: solid;
@@ -4656,7 +4656,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4656
4656
  :host([auto-expand-vertically]) {
4657
4657
  padding-block: var(--lumo-space-xs);
4658
4658
  }
4659
- `,{moduleId:"lumo-multi-select-combo-box-container"});const wh=u`
4659
+ `,{moduleId:"lumo-multi-select-combo-box-container"});const Ch=u`
4660
4660
  :host([has-value]) {
4661
4661
  padding-inline-start: 0;
4662
4662
  }
@@ -4709,11 +4709,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4709
4709
  color: var(--lumo-contrast-60pct);
4710
4710
  cursor: var(--lumo-clickable-cursor);
4711
4711
  }
4712
- `;_("vaadin-multi-select-combo-box",[re,wh],{moduleId:"lumo-multi-select-combo-box"});/**
4712
+ `;_("vaadin-multi-select-combo-box",[re,Ch],{moduleId:"lumo-multi-select-combo-box"});/**
4713
4713
  * @license
4714
4714
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4715
4715
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4716
- */class Ch extends x(b){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return g`
4716
+ */class Ah extends x(b){static get is(){return"vaadin-multi-select-combo-box-chip"}static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},label:{type:String},item:{type:Object}}}static get template(){return g`
4717
4717
  <style>
4718
4718
  :host {
4719
4719
  display: inline-flex;
@@ -4742,7 +4742,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4742
4742
  </style>
4743
4743
  <div part="label">[[label]]</div>
4744
4744
  <div part="remove-button" on-click="_onRemoveClick"></div>
4745
- `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}f(Ch);/**
4745
+ `}_onRemoveClick(e){e.stopPropagation(),this.dispatchEvent(new CustomEvent("item-removed",{detail:{item:this.item},bubbles:!0,composed:!0}))}}f(Ah);/**
4746
4746
  * @license
4747
4747
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4748
4748
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -4756,11 +4756,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4756
4756
  :host([auto-expand-vertically]) #wrapper {
4757
4757
  flex-wrap: wrap;
4758
4758
  }
4759
- `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let Ge;class Ah extends rr{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Ge){Ge=super.template.cloneNode(!0);const e=Ge.content,t=e.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),e.insertBefore(i,t[2]),i.appendChild(t[0]),i.appendChild(t[1])}return Ge}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}f(Ah);/**
4759
+ `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let Xe;class Eh extends ar{static get is(){return"vaadin-multi-select-combo-box-container"}static get template(){if(!Xe){Xe=super.template.cloneNode(!0);const e=Xe.content,t=e.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),e.insertBefore(i,t[2]),i.appendChild(t[0]),i.appendChild(t[1])}return Xe}static get properties(){return{autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}f(Eh);/**
4760
4760
  * @license
4761
4761
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4762
4762
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4763
- */class kh extends Sr(x(N(b))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return g`
4763
+ */class kh extends Tr(x(N(b))){static get is(){return"vaadin-multi-select-combo-box-item"}static get template(){return g`
4764
4764
  <style>
4765
4765
  :host {
4766
4766
  display: block;
@@ -4778,7 +4778,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4778
4778
  * @license
4779
4779
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4780
4780
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4781
- */const Eh=u`
4781
+ */const Ih=u`
4782
4782
  #overlay {
4783
4783
  width: var(
4784
4784
  --vaadin-multi-select-combo-box-overlay-width,
@@ -4791,17 +4791,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4791
4791
  flex-direction: column;
4792
4792
  height: 100%;
4793
4793
  }
4794
- `;_("vaadin-multi-select-combo-box-overlay",[Ct,Eh],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Ih extends Tr(kt(N(x(b)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return g`
4794
+ `;_("vaadin-multi-select-combo-box-overlay",[At,Ih],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Ph extends Dr(kt(N(x(b)))){static get is(){return"vaadin-multi-select-combo-box-overlay"}static get template(){return g`
4795
4795
  <div id="backdrop" part="backdrop" hidden></div>
4796
4796
  <div part="overlay" id="overlay">
4797
4797
  <div part="loader"></div>
4798
4798
  <div part="content" id="content"><slot></slot></div>
4799
4799
  </div>
4800
- `}}f(Ih);/**
4800
+ `}}f(Ph);/**
4801
4801
  * @license
4802
4802
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4803
4803
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4804
- */class Ph extends Or(b){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return g`
4804
+ */class Sh extends zr(b){static get is(){return"vaadin-multi-select-combo-box-scroller"}static get template(){return g`
4805
4805
  <style>
4806
4806
  :host {
4807
4807
  display: block;
@@ -4828,11 +4828,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4828
4828
  <div id="selector">
4829
4829
  <slot></slot>
4830
4830
  </div>
4831
- `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,i){return e instanceof K||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,i)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}f(Ph);/**
4831
+ `}ready(){super.ready(),this.setAttribute("aria-multiselectable","true")}_isItemSelected(e,t,i){return e instanceof K||this.owner.readonly?!1:this.owner._findIndex(e,this.owner.selectedItems,i)>-1}_updateElement(e,t){super._updateElement(e,t),e.toggleAttribute("readonly",this.owner.readonly)}}f(Sh);/**
4832
4832
  * @license
4833
4833
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4834
4834
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4835
- */class Sh extends Vr(Lr(x(b))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return g`
4835
+ */class Th extends Lr(Mr(x(b))){static get is(){return"vaadin-multi-select-combo-box-internal"}static get template(){return g`
4836
4836
  <style>
4837
4837
  :host([opened]) {
4838
4838
  pointer-events: auto;
@@ -4850,15 +4850,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4850
4850
  no-vertical-overlap
4851
4851
  restore-focus-node="[[inputElement]]"
4852
4852
  ></vaadin-multi-select-combo-box-overlay>
4853
- `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(i=>this._comboBox._findIndex(i,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof K||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}f(Sh);/**
4853
+ `}static get properties(){return{filteredItems:{type:Array,notify:!0},keepFilter:{type:Boolean,value:!1},loading:{type:Boolean,notify:!0},size:{type:Number,notify:!0},selectedItems:{type:Array,value:()=>[]},selectedItemsOnTop:{type:Boolean,value:!1},lastFilter:{type:String,notify:!0},topGroup:{type:Array,observer:"_topGroupChanged"},_target:{type:Object}}}static get observers(){return["_readonlyChanged(readonly)"]}get clearElement(){return this.querySelector('[part="clear-button"]')}get _tagNamePrefix(){return"vaadin-multi-select-combo-box"}constructor(){super(),this.addEventListener("custom-value-set",this.__onCustomValueSet.bind(this))}open(){!this.disabled&&!(this.readonly&&this.selectedItems.length===0)&&(this.opened=!0)}ready(){super.ready(),this._target=this,this._toggleElement=this.querySelector(".toggle-button")}_readonlyChanged(){this._setDropdownItems(this.filteredItems)}_setDropdownItems(e){if(this.readonly){super._setDropdownItems(this.selectedItems);return}if(this.filter||!this.selectedItemsOnTop){super._setDropdownItems(e);return}if(e&&e.length&&this.topGroup&&this.topGroup.length){const t=e.filter(i=>this._comboBox._findIndex(i,this.topGroup,this.itemIdPath)===-1);super._setDropdownItems(this.topGroup.concat(t));return}super._setDropdownItems(e)}_topGroupChanged(e){e&&this._setDropdownItems(this.filteredItems)}_initScroller(){const e=this.getRootNode().host;this._comboBox=e,super._initScroller(e)}_onEnter(e){if(this.opened){if(e.preventDefault(),e.stopPropagation(),this.readonly)this.close();else if(this._hasValidInputValue()){const t=this._dropdownItems[this._focusedIndex];this._commitValue(),this._focusedIndex=this._dropdownItems.indexOf(t)}return}super._onEnter(e)}_onEscape(e){if(this.readonly){e.stopPropagation(),this.opened&&this.close();return}super._onEscape(e)}_clearFilter(){(!this.keepFilter||!this.opened)&&super._clearFilter()}_revertInputValueToValue(){super._revertInputValueToValue(),this.filter=""}_commitValue(){this.lastFilter=this.filter,super._commitValue()}_onArrowDown(){this.readonly?this.opened||this.open():super._onArrowDown()}_onArrowUp(){this.readonly?this.opened||this.open():super._onArrowUp()}_setFocused(e){e||(this._ignoreCommitValue=!0),super._setFocused(e),!e&&this.readonly&&!this._closeOnBlurIsPrevented&&this.close()}_onClosed(){this._ignoreCommitValue=!0,super._onClosed()}_detectAndDispatchChange(){if(this._ignoreCommitValue){this._ignoreCommitValue=!1,this.clear(),this._inputElementValue="";return}super._detectAndDispatchChange()}_overlaySelectedItemChanged(e){e.stopPropagation(),!this.readonly&&(e.detail.item instanceof K||this.opened&&(this.lastFilter=this.filter,this.dispatchEvent(new CustomEvent("combo-box-item-selected",{detail:{item:e.detail.item}}))))}_shouldFetchData(){return this.readonly?!1:super._shouldFetchData()}clearCache(){this.readonly||super.clearCache()}__onCustomValueSet(e){this._ignoreCommitValue&&e.stopImmediatePropagation()}}f(Th);/**
4854
4854
  * @license
4855
4855
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4856
4856
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4857
- */const Xe=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),Th=w(s=>class extends s{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),Xe.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,Xe.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),Xe.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&Xe.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4857
+ */const Je=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(e=>{e.target.resizables?e.target.resizables.forEach(t=>{t._onResize(e.contentRect)}):e.target._onResize(e.contentRect)})})}),Dh=w(s=>class extends s{get _observeParent(){return!1}connectedCallback(){if(super.connectedCallback(),Je.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,Je.observe(e)),e.resizables.add(this),this.__parent=e}}disconnectedCallback(){super.disconnectedCallback(),Je.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const t=e.resizables;t&&(t.delete(this),t.size===0&&Je.unobserve(e)),this.__parent=null}}_onResize(e){}});/**
4858
4858
  * @license
4859
4859
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
4860
4860
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
4861
- */const Dh=u`
4861
+ */const Oh=u`
4862
4862
  :host {
4863
4863
  --input-min-width: var(--vaadin-multi-select-combo-box-input-min-width, 4em);
4864
4864
  --_chip-min-width: var(--vaadin-multi-select-combo-box-chip-min-width, 50px);
@@ -4896,7 +4896,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4896
4896
  :host([auto-expand-horizontally]) [class$='container'] {
4897
4897
  width: auto;
4898
4898
  }
4899
- `;_("vaadin-multi-select-combo-box",[It,Dh],{moduleId:"vaadin-multi-select-combo-box-styles"});class Oh extends Th(Et(x(F(b)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return g`
4899
+ `;_("vaadin-multi-select-combo-box",[Pt,Oh],{moduleId:"vaadin-multi-select-combo-box-styles"});class zh extends Dh(It(x(F(b)))){static get is(){return"vaadin-multi-select-combo-box"}static get template(){return g`
4900
4900
  <div class="vaadin-multi-select-combo-box-container">
4901
4901
  <div part="label">
4902
4902
  <slot name="label"></slot>
@@ -4972,7 +4972,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
4972
4972
  color: transparent !important;
4973
4973
  forced-color-adjust: none;
4974
4974
  }
4975
- `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new $e(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new He(this.inputElement,this._labelController)),this._tooltipController=new G(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new M(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),Tt(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),et(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,i){if(i&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][i]===e[i])return o;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,i){const o=t?"selected":"deselected",r=this.i18n.total.replace("{count}",i||0);et(`${e} ${this.i18n[o]} ${r}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const i=this._getItemLabel(e);this.__announceItem(i,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],i=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let r=!1;if(i!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(i,1)}else t.push(e),r=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,r,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,i){e?i||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const i=this._getItemLabel(e);return t.label=i,t.setAttribute("title",i),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",o=>this._onItemRemoved(o)),t.addEventListener("mousedown",o=>this._preventBlur(o)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const i=getComputedStyle(e),o=e.clientWidth+parseInt(i.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-i;e.length>1&&(o-=this.__getOverflowWidth());const r=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=e.length-1,h=null;d>=0;d--){const c=this.__createChip(e[d]);this.insertBefore(c,h),h=c,n.unshift(c)}const a=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;n.length>1;){n.pop().remove(),a.unshift(e.pop());const d=a.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(r,o)}px`)}this._overflowItems=a;return}for(let n=e.length-1,a=null;n>=0;n--){const l=this.__createChip(e[n]);if(this.insertBefore(l,a),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(a===null)l.style.maxWidth=`${Math.max(r,o)}px`;else{l.remove();break}e.pop(),a=l}this._overflowItems=e}__updateOverflowChip(e,t,i,o){if(e){const r=t.length;e.label=`${r}`,e.setAttribute("count",`${r}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",r===0),e.disabled=i,e.readonly=o}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===e.length-1?o=-1:i>-1&&(o=i+1):i===-1?o=e.length-1:i>0&&(o=i-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===-1?o=e.length-1:i>0&&(o=i-1):i===e.length-1?o=-1:i>-1&&(o=i+1),o!==void 0&&(this._focusedChipIndex=o)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const i=this._chips;if(i.forEach((o,r)=>{o.toggleAttribute("focused",r===e)}),e>-1){const o=i[e].item,r=this._getItemLabel(o);et(`${r} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}f(Oh);_("vaadin-notification-card",u`
4975
+ `]}get clearElement(){return this.$.clearButton}get _chips(){return[...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new He(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e})),this.addController(new qe(this.inputElement,this._labelController)),this._tooltipController=new G(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new M(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:e=>{e.addEventListener("mousedown",t=>this._preventBlur(t)),this._overflow=e}}),this.addController(this._overflowController),this.__updateChips(),Dt(this)}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),tt(this.i18n.cleared)}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache()}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate()}_disabledChanged(e,t){super._disabledChanged(e,t),(e||t)&&this.__updateChips()}_inputElementChanged(e){super._inputElementChanged(e),e&&this.$.comboBox._setInputElement(e)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate())}_onResize(){this.__updateChips()}_delegateAttribute(e,t){if(this.stateTarget){if(e==="required"){this._delegateAttribute("aria-required",t?"true":!1);return}super._delegateAttribute(e,t)}}_autoExpandHorizontallyChanged(e,t){(e||t)&&this.__updateChips()}_autoExpandVerticallyChanged(e,t){(e||t)&&this.__updateChips()}_clearButtonVisibleChanged(e,t){(e||t)&&this.__updateChips()}_onFilteredItemsChanged(e){const{value:t}=e.detail;(Array.isArray(t)||t==null)&&(this.filteredItems=t)}_readonlyChanged(e,t){(e||t)&&this.__updateChips(),this.dataProvider&&this.clearCache()}__itemClassNameGeneratorChanged(e,t){(e||t)&&this.__updateChips()}_pageSizeChanged(e,t){(Math.floor(e)!==e||e<=0)&&(this.pageSize=t,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize}_placeholderChanged(e){const t=this.__tmpA11yPlaceholder;t!==e&&(this.__savedPlaceholder=e,t&&(this.placeholder=t))}_selectedItemsChanged(e){if(this._toggleHasValue(this._hasValue),this._hasValue){const t=this._mergeItemLabels(e);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=t,this.placeholder=t}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth()}_getItemLabel(e){return this.$.comboBox._getItemLabel(e)}_mergeItemLabels(e){return e.map(t=>this._getItemLabel(t)).join(", ")}_findIndex(e,t,i){if(i&&e){for(let o=0;o<t.length;o++)if(t[o]&&t[o][i]===e[i])return o;return-1}return t.indexOf(e)}__clearInternalValue(e=!1){!this.keepFilter||e?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter)}__announceItem(e,t,i){const o=t?"selected":"deselected",r=this.i18n.total.replace("{count}",i||0);tt(`${e} ${this.i18n[o]} ${r}`)}__removeItem(e){const t=[...this.selectedItems];t.splice(t.indexOf(e),1),this.__updateSelection(t);const i=this._getItemLabel(e);this.__announceItem(i,!1,t.length)}__selectItem(e){const t=[...this.selectedItems],i=this._findIndex(e,t,this.itemIdPath),o=this._getItemLabel(e);let r=!1;if(i!==-1){const a=this._lastFilter;if(a&&a.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}t.splice(i,1)}else t.push(e),r=!0;this.__updateSelection(t),this.__clearInternalValue(),this.__announceItem(o,r,t.length)}__updateSelection(e){this.selectedItems=e,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))}__updateTopGroup(e,t,i){e?i||(this._topGroup=[...t]):this._topGroup=[]}__createChip(e){const t=document.createElement("vaadin-multi-select-combo-box-chip");t.setAttribute("slot","chip"),t.item=e,t.disabled=this.disabled,t.readonly=this.readonly;const i=this._getItemLabel(e);return t.label=i,t.setAttribute("title",i),typeof this.itemClassNameGenerator=="function"&&(t.className=this.itemClassNameGenerator(e)),t.addEventListener("item-removed",o=>this._onItemRemoved(o)),t.addEventListener("mousedown",o=>this._preventBlur(o)),t}__getOverflowWidth(){const e=this._overflow;e.style.visibility="hidden",e.removeAttribute("hidden");const t=e.getAttribute("count");e.setAttribute("count","99");const i=getComputedStyle(e),o=e.clientWidth+parseInt(i.marginInlineStart);return e.setAttribute("count",t),e.setAttribute("hidden",""),e.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(a=>{a.remove()});const e=[...this.selectedItems],t=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=t-i;e.length>1&&(o-=this.__getOverflowWidth());const r=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const a=[];for(let d=e.length-1,h=null;d>=0;d--){const c=this.__createChip(e[d]);this.insertBefore(c,h),h=c,a.unshift(c)}const n=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;a.length>1;){a.pop().remove(),n.unshift(e.pop());const d=n.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=d)break}a.length===1&&(a[0].style.maxWidth=`${Math.max(r,o)}px`)}this._overflowItems=n;return}for(let a=e.length-1,n=null;a>=0;a--){const l=this.__createChip(e[a]);if(this.insertBefore(l,n),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(n===null)l.style.maxWidth=`${Math.max(r,o)}px`;else{l.remove();break}e.pop(),n=l}this._overflowItems=e}__updateOverflowChip(e,t,i,o){if(e){const r=t.length;e.label=`${r}`,e.setAttribute("count",`${r}`),e.setAttribute("title",this._mergeItemLabels(t)),e.toggleAttribute("hidden",r===0),e.disabled=i,e.readonly=o}}_onClearButtonTouchend(e){e.preventDefault(),e.stopPropagation(),this.clear()}_onClearButtonClick(e){e.stopPropagation(),this.clear()}_onChange(e){e.stopPropagation()}_onEscape(e){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(e.stopPropagation(),this.selectedItems=[])}_onKeyDown(e){super._onKeyDown(e);const t=this._chips;if(!this.readonly&&t.length>0)switch(e.key){case"Backspace":this._onBackSpace(t);break;case"ArrowLeft":this._onArrowLeft(t,e);break;case"ArrowRight":this._onArrowRight(t,e);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===e.length-1?o=-1:i>-1&&(o=i+1):i===-1?o=e.length-1:i>0&&(o=i-1),o!==void 0&&(this._focusedChipIndex=o)}_onArrowRight(e,t){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&t.preventDefault();let o;this.__isRTL?i===-1?o=e.length-1:i>0&&(o=i-1):i===e.length-1?o=-1:i>-1&&(o=i+1),o!==void 0&&(this._focusedChipIndex=o)}_onBackSpace(e){if(this.inputElement.selectionStart!==0)return;const t=this._focusedChipIndex;t===-1?this._focusedChipIndex=e.length-1:(this.__removeItem(e[t].item),this._focusedChipIndex=-1)}_focusedChipIndexChanged(e,t){if(e>-1||t>-1){const i=this._chips;if(i.forEach((o,r)=>{o.toggleAttribute("focused",r===e)}),e>-1){const o=i[e].item,r=this._getItemLabel(o);tt(`${r} ${this.i18n.focused}`)}}}_onComboBoxChange(){const e=this.$.comboBox.selectedItem;e&&this.__selectItem(e)}_onComboBoxItemSelected(e){this.__selectItem(e.detail.item)}_onCustomValueSet(e){e.preventDefault(),e.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:e.detail,composed:!0,bubbles:!0}))}_onItemRemoved(e){this.__removeItem(e.detail.item)}_preventBlur(e){e.preventDefault()}}f(zh);_("vaadin-notification-card",u`
4976
4976
  :host {
4977
4977
  position: relative;
4978
4978
  margin: var(--lumo-space-s);
@@ -5190,11 +5190,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5190
5190
  * @license
5191
5191
  * Copyright 2020 Google LLC
5192
5192
  * SPDX-License-Identifier: BSD-3-Clause
5193
- */const zh=(s,e)=>(s==null?void 0:s._$litType$)!==void 0;/**
5193
+ */const Nh=(s,e)=>(s==null?void 0:s._$litType$)!==void 0;/**
5194
5194
  * @license
5195
5195
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5196
5196
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5197
- */class Nh extends cr(x(F(b))){static get template(){return g`
5197
+ */class Vh extends ur(x(F(b))){static get template(){return g`
5198
5198
  <style>
5199
5199
  :host {
5200
5200
  position: fixed;
@@ -5261,7 +5261,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5261
5261
  <div region="bottom-end"><slot name="bottom-end"></slot></div>
5262
5262
  </div>
5263
5263
  <div region="bottom-stretch"><slot name="bottom-stretch"></slot></div>
5264
- `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Ui&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.bottom=`${i-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class Vh extends x(b){static get template(){return g`
5264
+ `}static get is(){return"vaadin-notification-container"}static get properties(){return{opened:{type:Boolean,value:!1,observer:"_openedChanged"}}}constructor(){super(),this._boundVaadinOverlayClose=this._onVaadinOverlayClose.bind(this),Ui&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}_openedChanged(e){e?(document.body.appendChild(this),document.addEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))):(document.body.removeChild(this),document.removeEventListener("vaadin-overlay-close",this._boundVaadinOverlayClose),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener))}_detectIosNavbar(){const e=window.innerHeight,t=window.innerWidth>e,i=document.documentElement.clientHeight;t&&i>e?this.style.bottom=`${i-e}px`:this.style.bottom="0"}_onVaadinOverlayClose(e){const t=e.detail.sourceEvent;t&&t.composedPath().indexOf(this)>=0&&e.preventDefault()}}class Lh extends x(b){static get template(){return g`
5265
5265
  <style>
5266
5266
  :host {
5267
5267
  display: block;
@@ -5283,14 +5283,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5283
5283
  <slot></slot>
5284
5284
  </div>
5285
5285
  </div>
5286
- `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class $ extends Pt(ao(F(b))){static get template(){return g`
5286
+ `}static get is(){return"vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite")}}class $ extends St(lo(F(b))){static get template(){return g`
5287
5287
  <style>
5288
5288
  :host {
5289
5289
  display: none !important;
5290
5290
  }
5291
5291
  </style>
5292
5292
  <vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
5293
- `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return zh(e)?$._createAndShowNotification(i=>{no(e,i)},t):$._createAndShowNotification(i=>{i.innerText=e},t)}static _createAndShowNotification(e,t){const i=document.createElement($.is);return t&&Number.isFinite(t.duration)&&(i.duration=t.duration),t&&t.position&&(i.position=t.position),t&&t.theme&&i.setAttribute("theme",t.theme),i.renderer=e,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",o=>{o.detail.value||i.remove()}),i}get _container(){return $._container||($._container=document.createElement("vaadin-notification-container"),document.body.appendChild($._container)),$._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Tt(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,i){if(!i)return;const o=this._oldRenderer!==e;this._oldRenderer=e,o&&(i.innerHTML="",delete i._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}f(Nh);f(Vh);f($);const Mr=u`
5293
+ `}static get is(){return"vaadin-notification"}static get properties(){return{duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(e,t){return Nh(e)?$._createAndShowNotification(i=>{no(e,i)},t):$._createAndShowNotification(i=>{i.innerText=e},t)}static _createAndShowNotification(e,t){const i=document.createElement($.is);return t&&Number.isFinite(t.duration)&&(i.duration=t.duration),t&&t.position&&(i.position=t.position),t&&t.theme&&i.setAttribute("theme",t.theme),i.renderer=e,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",o=>{o.detail.value||i.remove()}),i}get _container(){return $._container||($._container=document.createElement("vaadin-notification-container"),document.body.appendChild($._container)),$._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Dt(this)}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1)})}requestContentUpdate(){this.renderer&&this.renderer(this._card,this)}_rendererChanged(e,t,i){if(!i)return;const o=this._oldRenderer!==e;this._oldRenderer=e,o&&(i.innerHTML="",delete i._$litPart$),t&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate())}open(){this.opened=!0}close(){this.opened=!1}_openedChanged(e){e?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard()}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener)}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card)}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"))}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard()}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const e=getComputedStyle(this._card).getPropertyValue("animation-name");e&&e!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState()},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard()}_positionChanged(){this.opened&&this._animatedAppendNotificationCard()}_durationChanged(e,t){t&&(clearTimeout(this._durationTimeoutId),e>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),e)))}}f(Vh);f(Lh);f($);const Fr=u`
5294
5294
  :host {
5295
5295
  -webkit-tap-highlight-color: transparent;
5296
5296
  --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
@@ -5304,11 +5304,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5304
5304
  margin: var(--lumo-space-s) var(--lumo-border-radius-m);
5305
5305
  background-color: var(--lumo-contrast-10pct);
5306
5306
  }
5307
- `;_("vaadin-list-box",Mr,{moduleId:"lumo-list-box"});/**
5307
+ `;_("vaadin-list-box",Fr,{moduleId:"lumo-list-box"});/**
5308
5308
  * @license
5309
5309
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5310
5310
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5311
- */_("vaadin-select-item",St,{moduleId:"lumo-select-item"});_("vaadin-select-list-box",Mr,{moduleId:"lumo-select-list-box"});const Lh=u`
5311
+ */_("vaadin-select-item",Tt,{moduleId:"lumo-select-item"});_("vaadin-select-list-box",Fr,{moduleId:"lumo-select-list-box"});const Mh=u`
5312
5312
  :host(:not([theme*='align'])) ::slotted([slot='value']) {
5313
5313
  text-align: start;
5314
5314
  }
@@ -5351,7 +5351,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5351
5351
  --_lumo-selected-item-height: var(--lumo-size-s);
5352
5352
  --_lumo-selected-item-padding: 0;
5353
5353
  }
5354
- `;_("vaadin-select",[re,Lh],{moduleId:"lumo-select"});_("vaadin-select-value-button",u`
5354
+ `;_("vaadin-select",[re,Mh],{moduleId:"lumo-select"});_("vaadin-select-value-button",u`
5355
5355
  :host {
5356
5356
  font-family: var(--lumo-font-family);
5357
5357
  font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
@@ -5370,7 +5370,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5370
5370
  ::slotted(*:hover) {
5371
5371
  background-color: transparent;
5372
5372
  }
5373
- `,{moduleId:"lumo-select-value-button"});const Mh=u`
5373
+ `,{moduleId:"lumo-select-value-button"});const Fh=u`
5374
5374
  :host {
5375
5375
  --_lumo-item-selected-icon-display: block;
5376
5376
  }
@@ -5406,15 +5406,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5406
5406
  :host([theme~='align-center']) {
5407
5407
  text-align: center;
5408
5408
  }
5409
- `;_("vaadin-select-overlay",[$i,Mh],{moduleId:"lumo-select-overlay"});/**
5409
+ `;_("vaadin-select-overlay",[Hi,Fh],{moduleId:"lumo-select-overlay"});/**
5410
5410
  * @license
5411
5411
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5412
5412
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5413
- */const Fh=s=>class extends Oi(oe(s)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
5413
+ */const Bh=s=>class extends zi(oe(s)){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(e){return!this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e)}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur())}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click())}};/**
5414
5414
  * @license
5415
5415
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5416
5416
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5417
- */class Bh extends Fh(x(N(b))){static get is(){return"vaadin-select-item"}static get template(){return g`
5417
+ */class Rh extends Bh(x(N(b))){static get is(){return"vaadin-select-item"}static get template(){return g`
5418
5418
  <style>
5419
5419
  :host {
5420
5420
  display: inline-block;
@@ -5428,23 +5428,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5428
5428
  <div part="content">
5429
5429
  <slot></slot>
5430
5430
  </div>
5431
- `}ready(){super.ready(),this.setAttribute("role","option")}}f(Bh);/**
5431
+ `}ready(){super.ready(),this.setAttribute("role","option")}}f(Rh);/**
5432
5432
  * @license
5433
5433
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
5434
5434
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5435
- */function Rh(s,e){const{scrollLeft:t}=s;return e!=="rtl"?t:s.scrollWidth-s.clientWidth+t}function $h(s,e,t){e!=="rtl"?s.scrollLeft=t:s.scrollLeft=s.clientWidth-s.scrollWidth+t}/**
5435
+ */function $h(s,e){const{scrollLeft:t}=s;return e!=="rtl"?t:s.scrollWidth-s.clientWidth+t}function Hh(s,e,t){e!=="rtl"?s.scrollLeft=t:s.scrollLeft=s.clientWidth-s.scrollWidth+t}/**
5436
5436
  * @license
5437
5437
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
5438
5438
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5439
- */const Hh=s=>class extends se(s){get focused(){return(this._getItems()||[]).find(Vi)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,i=>!li(i));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,i=this._getItems()||[],o=i.indexOf(this.focused);let r,n;const a=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(n=-a,r=o-a):this.__isNextKey(t)?(n=a,r=o+a):t==="Home"?(n=1,r=0):t==="End"&&(n=-1,r=i.length-1),r=this._getAvailableIndex(i,r,n,l=>!li(l)),r>=0&&(e.preventDefault(),this._focus(r,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const i=this._getItems();this._focusItem(i[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,i,o){const r=e.length;let n=t;for(let a=0;typeof n=="number"&&a<r;a+=1,n+=i||1){n<0?n=r-1:n>=r&&(n=0);const l=e[n];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,o))return n}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
5439
+ */const qh=s=>class extends se(s){get focused(){return(this._getItems()||[]).find(Li)}get _vertical(){return!0}focus(){const e=this._getItems();if(Array.isArray(e)){const t=this._getAvailableIndex(e,0,null,i=>!di(i));t>=0&&this._focus(t)}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:t}=e,i=this._getItems()||[],o=i.indexOf(this.focused);let r,a;const n=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(t)?(a=-n,r=o-n):this.__isNextKey(t)?(a=n,r=o+n):t==="Home"?(a=1,r=0):t==="End"&&(a=-1,r=i.length-1),r=this._getAvailableIndex(i,r,a,l=>!di(l)),r>=0&&(e.preventDefault(),this._focus(r,!0))}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,t=!1){const i=this._getItems();this._focusItem(i[e],t)}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""))}_getAvailableIndex(e,t,i,o){const r=e.length;let a=t;for(let n=0;typeof a=="number"&&n<r;n+=1,a+=i||1){a<0?a=r-1:a>=r&&(a=0);const l=e[a];if(!l.hasAttribute("disabled")&&this.__isMatchingItem(l,o))return a}return-1}__isMatchingItem(e,t){return typeof t=="function"?t(e):!0}};/**
5440
5440
  * @license
5441
5441
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5442
5442
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5443
- */const Uh=s=>class extends Hh(s){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,i=>i.tabIndex===0&&!li(i));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Pi(e,()=>{this._setItems(this._filterItems(qo(this)))})}_getItems(){return this.items}_enhanceItems(e,t,i,o){if(!o&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(n=>{t?n.setAttribute("orientation",t):n.removeAttribute("orientation")}),this._setFocusable(i<0||!i?0:i);const r=e[i];e.forEach(n=>{n.selected=n===r}),r&&!r.disabled&&this._scrollToItem(i)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let i;t&&!t.disabled&&(i=this.items.indexOf(t))>=0&&(this.selected=i)}_searchKey(e,t){this._searchReset=z.debounce(this._searchReset,W.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(o=>this.__isMatchingKey(o))||(this._searchBuf=t.toLowerCase());const i=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,i,1,o=>this.__isMatchingKey(o)&&getComputedStyle(o).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,i=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const o=this._searchKey(i,t);o>=0&&this._focus(o);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(i=>{i.tabIndex=i===t?0:-1})}_focus(e){this.items.forEach((t,i)=>{t.focused=i===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const i=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],o=this._scrollerElement.getBoundingClientRect(),r=(this.items[e+1]||t).getBoundingClientRect(),n=(this.items[e-1]||t).getBoundingClientRect();let a=0;!this._isRTL&&r[i[1]]>=o[i[1]]||this._isRTL&&r[i[1]]<=o[i[1]]?a=r[i[1]]-o[i[1]]:(!this._isRTL&&n[i[0]]<=o[i[0]]||this._isRTL&&n[i[0]]>=o[i[0]])&&(a=n[i[0]]-o[i[0]]),this._scroll(a)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",i=Rh(this._scrollerElement,t)+e;$h(this._scrollerElement,t,i)}}};/**
5443
+ */const Uh=s=>class extends qh(s){static get properties(){return{disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],t=this._getAvailableIndex(e,0,null,i=>i.tabIndex===0&&!di(i));t>=0?this._focus(t):super.focus()}ready(){super.ready(),this.addEventListener("click",t=>this._onClick(t));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Si(e,()=>{this._setItems(this._filterItems(jo(this)))})}_getItems(){return this.items}_enhanceItems(e,t,i,o){if(!o&&e){this.setAttribute("aria-orientation",t||"vertical"),e.forEach(a=>{t?a.setAttribute("orientation",t):a.removeAttribute("orientation")}),this._setFocusable(i<0||!i?0:i);const r=e[i];e.forEach(a=>{a.selected=a===r}),r&&!r.disabled&&this._scrollToItem(i)}}_filterItems(e){return e.filter(t=>t._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const t=this._filterItems(e.composedPath())[0];let i;t&&!t.disabled&&(i=this.items.indexOf(t))>=0&&(this.selected=i)}_searchKey(e,t){this._searchReset=z.debounce(this._searchReset,W.after(500),()=>{this._searchBuf=""}),this._searchBuf+=t.toLowerCase(),this.items.some(o=>this.__isMatchingKey(o))||(this._searchBuf=t.toLowerCase());const i=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,i,1,o=>this.__isMatchingKey(o)&&getComputedStyle(o).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const t=e.key,i=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(t)&&t.length===1){const o=this._searchKey(i,t);o>=0&&this._focus(o);return}super._onKeyDown(e)}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const t=this.items[e];this.items.forEach(i=>{i.tabIndex=i===t?0:-1})}_focus(e){this.items.forEach((t,i)=>{t.focused=i===e}),this._setFocusable(e),this._scrollToItem(e),super._focus(e)}_scrollToItem(e){const t=this.items[e];if(!t)return;const i=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],o=this._scrollerElement.getBoundingClientRect(),r=(this.items[e+1]||t).getBoundingClientRect(),a=(this.items[e-1]||t).getBoundingClientRect();let n=0;!this._isRTL&&r[i[1]]>=o[i[1]]||this._isRTL&&r[i[1]]<=o[i[1]]?n=r[i[1]]-o[i[1]]:(!this._isRTL&&a[i[0]]<=o[i[0]]||this._isRTL&&a[i[0]]>=o[i[0]])&&(n=a[i[0]]-o[i[0]]),this._scroll(n)}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else{const t=this.getAttribute("dir")||"ltr",i=$h(this._scrollerElement,t)+e;Hh(this._scrollerElement,t,i)}}};/**
5444
5444
  * @license
5445
5445
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5446
5446
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5447
- */class qh extends Uh(x(N(X(b)))){static get is(){return"vaadin-select-list-box"}static get template(){return g`
5447
+ */class jh extends Uh(x(N(X(b)))){static get is(){return"vaadin-select-list-box"}static get template(){return g`
5448
5448
  <style>
5449
5449
  :host {
5450
5450
  display: flex;
@@ -5464,15 +5464,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5464
5464
  <div part="items">
5465
5465
  <slot></slot>
5466
5466
  </div>
5467
- `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}f(qh);/**
5467
+ `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}f(jh);/**
5468
5468
  * @license
5469
5469
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5470
5470
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5471
- */const jh=s=>class extends qi(kt(N(s))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const i="--vaadin-select-overlay-width",o=getComputedStyle(t).getPropertyValue(i);o===""?this.style.removeProperty(i):this.style.setProperty(i,o)}}};/**
5471
+ */const Wh=s=>class extends ji(kt(N(s))){static get observers(){return["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,t){if(e&&t){const i="--vaadin-select-overlay-width",o=getComputedStyle(t).getPropertyValue(i);o===""?this.style.removeProperty(i):this.style.setProperty(i,o)}}};/**
5472
5472
  * @license
5473
5473
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5474
5474
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5475
- */const Wh=u`
5475
+ */const Yh=u`
5476
5476
  :host {
5477
5477
  align-items: flex-start;
5478
5478
  justify-content: flex-start;
@@ -5487,18 +5487,18 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5487
5487
  outline: 3px solid;
5488
5488
  }
5489
5489
  }
5490
- `;_("vaadin-select-overlay",[Ct,Wh],{moduleId:"vaadin-select-overlay-styles"});class Yh extends jh(x(b)){static get is(){return"vaadin-select-overlay"}static get template(){return g`
5490
+ `;_("vaadin-select-overlay",[At,Yh],{moduleId:"vaadin-select-overlay-styles"});class Kh extends Wh(x(b)){static get is(){return"vaadin-select-overlay"}static get template(){return g`
5491
5491
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
5492
5492
  <div part="overlay" id="overlay" tabindex="0">
5493
5493
  <div part="content" id="content">
5494
5494
  <slot></slot>
5495
5495
  </div>
5496
5496
  </div>
5497
- `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}f(Yh);/**
5497
+ `}ready(){super.ready(),this.owner=this.__dataHost,this.owner._overlayElement=this}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const e=this._getMenuElement();this.owner._assignMenuElement(e)}}}f(Kh);/**
5498
5498
  * @license
5499
5499
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5500
5500
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5501
- */const Kh=u`
5501
+ */const Gh=u`
5502
5502
  :host {
5503
5503
  display: inline-block;
5504
5504
  position: relative;
@@ -5544,17 +5544,17 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5544
5544
  * @license
5545
5545
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5546
5546
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5547
- */_("vaadin-select-value-button",Kh,{moduleId:"vaadin-select-value-button-styles"});class Gh extends ji(x(b)){static get is(){return"vaadin-select-value-button"}static get template(){return g`
5547
+ */_("vaadin-select-value-button",Gh,{moduleId:"vaadin-select-value-button-styles"});class Xh extends Wi(x(b)){static get is(){return"vaadin-select-value-button"}static get template(){return g`
5548
5548
  <div class="vaadin-button-container">
5549
5549
  <span part="label">
5550
5550
  <slot></slot>
5551
5551
  </span>
5552
5552
  </div>
5553
- `}}f(Gh);/**
5553
+ `}}f(Xh);/**
5554
5554
  * @license
5555
5555
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
5556
5556
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5557
- */const Xh=u`
5557
+ */const Jh=u`
5558
5558
  .sr-only {
5559
5559
  border: 0 !important;
5560
5560
  clip: rect(1px, 1px, 1px, 1px) !important;
@@ -5572,15 +5572,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5572
5572
  * @license
5573
5573
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
5574
5574
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5575
- */class Jh extends M{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,i)=>{i._setFocusElement(t),i.ariaTarget=t,i.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5575
+ */class Qh extends M{constructor(e){super(e,"value","vaadin-select-value-button",{initializer:(t,i)=>{i._setFocusElement(t),i.ariaTarget=t,i.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}/**
5576
5576
  * @license
5577
5577
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5578
5578
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5579
- */const Qh=s=>class extends Pt(bt(Li(se(yt(s))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${vt()}`,this._srLabelController=new ir(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Jh(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new Ji(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new G(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const i=t.composedPath().find(o=>o._hasVaadinItemMixin);this.__dispatchChangePending=!!(i&&i.value!==void 0&&i.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,i=t!==void 0?t:-1,o=this._menuElement._searchKey(i,e.key);o>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=o)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,i){if(!(!t||!i)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const o=this.hasAttribute("focus-ring");this._openedWithFocusRing=o,o&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const i=e.getAttribute("label");i?t=this.__createItemElement({label:i}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const o=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(o,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const i=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};Ze(e,"aria-labelledby",i),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),i=e.childElementCount>0;return t||i}_updateSelectedItem(e,t){if(t){const i=e==null?e:e.toString();this._menuElement.selected=t.reduce((o,r,n)=>o===void 0&&r.value===i?n:o,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let i=e.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),e.appendChild(i)),i.textContent="",this.items.forEach(o=>{i.appendChild(this.__createItemElement(o))})}__dispatchChange(){return it(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5579
+ */const Zh=s=>class extends St(yt(Mi(se(xt(s))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${gt()}`,this._srLabelController=new sr(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new Qh(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new Qi(this._phoneMediaQuery,e=>{this._phone=e})),this._tooltipController=new G(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate()}__itemsChanged(e,t){(e||t)&&this.requestContentUpdate()}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e)}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",t=>this._onKeyDownInside(t),!0),e.addEventListener("click",t=>{const i=t.composedPath().find(o=>o._hasVaadinItemMixin);this.__dispatchChangePending=!!(i&&i.value!==void 0&&i.value!==this.value),this.opened=!1},!0),this.__lastMenuElement=e)}__initMenuItems(e){e.items&&(this._items=e.items)}_valueChanged(e,t){this.toggleAttribute("has-value",!!e),t!==void 0&&!this.__dispatchChangePending&&this.validate()}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly)}_onToggleMouseDown(e){e.preventDefault()}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const t=this._menuElement.selected,i=t!==void 0?t:-1,o=this._menuElement._searchKey(i,e.key);o>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=o)}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1)}_openedChanged(e,t,i){if(!(!t||!i)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),t.style.setProperty("--vaadin-select-text-field-width",`${i.offsetWidth}px`);const o=this.hasAttribute("focus-ring");this._openedWithFocusRing=o,o&&this.removeAttribute("focus-ring")}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e}}_updateAriaExpanded(e,t){t&&t.setAttribute("aria-expanded",e?"true":"false")}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(e){let t;const i=e.getAttribute("label");i?t=this.__createItemElement({label:i}):t=e.cloneNode(!0),t._sourceItem=e,this.__appendValueItemElement(t,this.focusElement),t.selected=!0}__createItemElement(e){const t=document.createElement(e.component||"vaadin-select-item");return e.label&&(t.textContent=e.label),e.value&&(t.value=e.value),e.disabled&&(t.disabled=e.disabled),e.className&&(t.className=e.className),t}__appendValueItemElement(e,t){t.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId)}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e)}_setCustomAriaLabelledBy(e){const t=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(t,!0)}_getLabelIdWithItemId(e){const t=this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:"";return e?`${e} ${t}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const t=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(t))this.__attachSelectedItem(t);else if(this.placeholder){const o=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(o,e),e.setAttribute("placeholder","")}!this._valueChanging&&t&&(this._selectedChanging=!0,this.value=t.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const i=t||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};et(e,"aria-labelledby",i),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_hasContent(e){if(!e)return!1;const t=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),i=e.childElementCount>0;return t||i}_updateSelectedItem(e,t){if(t){const i=e==null?e:e.toString();this._menuElement.selected=t.reduce((o,r,a)=>o===void 0&&r.value===i?a:o,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(e,t){if(!this.items||this.items.length===0){e.textContent="";return}let i=e.firstElementChild;i||(i=document.createElement("vaadin-select-list-box"),e.appendChild(i)),i.textContent="",this.items.forEach(o=>{i.appendChild(this.__createItemElement(o))})}__dispatchChange(){return st(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1})}};/**
5580
5580
  * @license
5581
5581
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
5582
5582
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5583
- */_("vaadin-select",[xr,wr,Xh],{moduleId:"vaadin-select-styles"});class Zh extends Qh(F(x(b))){static get is(){return"vaadin-select"}static get template(){return g`
5583
+ */_("vaadin-select",[wr,Cr,Jh],{moduleId:"vaadin-select-styles"});class ec extends Zh(F(x(b))){static get is(){return"vaadin-select"}static get template(){return g`
5584
5584
  <style>
5585
5585
  :host {
5586
5586
  position: relative;
@@ -5633,4 +5633,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
5633
5633
  <div class="sr-only">
5634
5634
  <slot name="sr-label"></slot>
5635
5635
  </div>
5636
- `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Tt(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}f(Zh);const ec=":host{display:block;height:100%}",tc=ec,Fr=class{constructor(s){T.registerInstance(this,s),this.handleClick=e=>{this.emitOnClick&&(e.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1}connectedCallback(){this.translationUrl&&Br.getTranslations(this.translationUrl)}renderInput(){var s;switch((s=this.type)===null||s===void 0?void 0:s.toLowerCase()){case"text":return T.h("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return T.h("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return T.h("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return T.h("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return T.h("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return T.h("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return T.h("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick});case"password":return T.h("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return T.h("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return T.h("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return T.h("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});default:return T.h("p",null,"The ",this.type," input type is not valid")}}render(){return T.h(T.Host,{key:"e89747da2e458906e8f634c285044e95d5e92f73",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};Fr.style=tc;exports.general_input=Fr;
5636
+ `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Dt(this)}_rendererChanged(e,t){t&&(t.renderer=e||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}f(ec);const tc=":host{display:block;height:100%}",ic=tc,Br=class{constructor(s){T.registerInstance(this,s),this.handleClick=e=>{this.emitOnClick&&(e.stopPropagation(),window.postMessage({type:`registration${this.name}Clicked`},window.location.href))},this.type="text",this.name=void 0,this.displayName=void 0,this.placeholder=void 0,this.action=void 0,this.validation=void 0,this.options=void 0,this.language=void 0,this.autofilled=void 0,this.tooltip=void 0,this.defaultValue=void 0,this.emitValue=void 0,this.isDuplicateInput=void 0,this.clientStyling="",this.dateFormat=void 0,this.translationUrl="",this.emitOnClick=!1}connectedCallback(){this.translationUrl&&Rr.getTranslations(this.translationUrl)}renderInput(){var s;switch((s=this.type)===null||s===void 0?void 0:s.toLowerCase()){case"text":return T.h("text-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"email":return T.h("email-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"number":return T.h("number-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"checkbox":return T.h("checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,emitValue:this.emitValue,defaultValue:this.defaultValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip});case"checkboxgroup":return T.h("checkbox-group-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options});case"togglecheckbox":return T.h("toggle-checkbox-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,options:this.options,"emit-on-click":this.emitOnClick});case"datetime":return T.h("date-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder,dateFormat:this.dateFormat,"emit-on-click":this.emitOnClick});case"password":return T.h("password-input",{name:this.name,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,autofilled:this.autofilled,emitValue:this.emitValue,language:this.language,isDuplicateInput:this.isDuplicateInput,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"radio":return T.h("radio-input",{name:this.name,displayName:this.displayName,optionsGroup:this.options,validation:this.validation,emitValue:this.emitValue,language:this.language,"client-styling":this.clientStyling});case"tel":return T.h("tel-input",{name:this.name,action:this.action,displayName:this.displayName,validation:this.validation,defaultValue:this.defaultValue,emitValue:this.emitValue,language:this.language,autofilled:this.autofilled,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});case"dropdown":return T.h("select-input",{name:this.name,action:this.action,defaultValue:this.defaultValue,displayName:this.displayName,options:this.options,validation:this.validation,emitValue:this.emitValue,autofilled:this.autofilled,language:this.language,"client-styling":this.clientStyling,tooltip:this.tooltip,placeholder:this.placeholder});default:return T.h("p",null,"The ",this.type," input type is not valid")}}render(){return T.h(T.Host,{key:"e89747da2e458906e8f634c285044e95d5e92f73",class:`general-input--${this.name}`,onClick:this.handleClick},this.renderInput())}};Br.style=ic;exports.general_input=Br;