@everymatrix/player-account-controller 1.54.6 → 1.54.8

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 (145) hide show
  1. package/components/{GeneralLogout-Ddt-oH9k.js → GeneralLogout-ChXyfO7j.js} +504 -512
  2. package/components/GeneralLogout-CoXr5Hra.js +4819 -0
  3. package/components/GeneralLogout-JiIri-az.cjs +8 -0
  4. package/components/PlayerAccountBettingHistory-C4SfQEr4.js +333 -0
  5. package/components/{PlayerAccountBettingHistory-C7xwYi03.js → PlayerAccountBettingHistory-CElNilNd.js} +24 -24
  6. package/components/PlayerAccountBettingHistory-CSI5k3hd.cjs +1 -0
  7. package/components/PlayerAccountBiometrics-BS3jkUXn.cjs +1 -0
  8. package/components/{PlayerAccountBiometrics-D7WS5cnI.js → PlayerAccountBiometrics-D9kYcZXR.js} +26 -26
  9. package/components/PlayerAccountBiometrics-orQ-qG9h.js +307 -0
  10. package/components/{PlayerAccountClosure-yRlo8hXR.js → PlayerAccountClosure-CHUq23nB.js} +13 -13
  11. package/components/PlayerAccountClosure-CWd3utu_.js +347 -0
  12. package/components/PlayerAccountClosure-DdfqiT7d.cjs +1 -0
  13. package/components/{PlayerAccountController-BEYNBwE6.js → PlayerAccountController-BclvS237.js} +126 -126
  14. package/components/PlayerAccountController-DEXL47fX.js +6671 -0
  15. package/components/PlayerAccountController-DX3vsM6e.cjs +1 -0
  16. package/components/PlayerAccountGamingLimits-CKnItii4.cjs +1 -0
  17. package/components/{PlayerAccountGamingLimits-CTBhVGgC.js → PlayerAccountGamingLimits-DXQNmZKD.js} +19 -19
  18. package/components/PlayerAccountGamingLimits-Db6qUAS-.js +766 -0
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-CuQvNzww.js → PlayerAccountGamingLimitsConfirmationModal-i09zMH6w.js} +59 -59
  20. package/components/PlayerAccountGamingLimitsConfirmationModal-jZS53-sU.cjs +1 -0
  21. package/components/PlayerAccountGamingLimitsConfirmationModal-l4fu3WOl.js +310 -0
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-Du2YQlDU.js → PlayerAccountGamingLimitsGroupEdit-BIt0U7Ia.js} +51 -51
  23. package/components/PlayerAccountGamingLimitsGroupEdit-CsnzS7iF.js +4170 -0
  24. package/components/PlayerAccountGamingLimitsGroupEdit-DZlV6G_9.cjs +10 -0
  25. package/components/PlayerAccountGamingLimitsHistory2-CrW3EIzV.cjs +1 -0
  26. package/components/{PlayerAccountGamingLimitsHistory2-CXKA0L0d.js → PlayerAccountGamingLimitsHistory2-D04L-msb.js} +44 -44
  27. package/components/PlayerAccountGamingLimitsHistory2-DA5YY1gv.js +767 -0
  28. package/components/{PlayerAccountGamingLimitsInfoCard-CWTybgoQ.js → PlayerAccountGamingLimitsInfoCard-B2YB4bdP.js} +95 -95
  29. package/components/PlayerAccountGamingLimitsInfoCard-B4t7J9Ea.js +1513 -0
  30. package/components/PlayerAccountGamingLimitsInfoCard-CaJYYEdy.cjs +1 -0
  31. package/components/PlayerAccountGamingLimitsPage2Gm16-B1GlGvDK.cjs +21 -0
  32. package/components/PlayerAccountGamingLimitsPage2Gm16-CbtwzTC5.js +3283 -0
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-CXjNcIFP.js → PlayerAccountGamingLimitsPage2Gm16-D8OKZxQt.js} +90 -90
  34. package/components/{PlayerAccountGamingLimitsPopup-CJu5RRl6.js → PlayerAccountGamingLimitsPopup-B7ZXSiK5.js} +17 -17
  35. package/components/PlayerAccountGamingLimitsPopup-C9KoZcRj.cjs +1 -0
  36. package/components/PlayerAccountGamingLimitsPopup-DxXAP_Yw.js +344 -0
  37. package/components/{PlayerAccountGamingLimitsWrapper2-BdpxEDlV.js → PlayerAccountGamingLimitsWrapper2-BoFnZpPK.js} +8 -8
  38. package/components/PlayerAccountGamingLimitsWrapper2-Dll6Amu9.cjs +1 -0
  39. package/components/PlayerAccountGamingLimitsWrapper2-eSNYZCaw.js +866 -0
  40. package/components/PlayerAccountGeneralConfirmationModal-B-p3sJZ3.cjs +1 -0
  41. package/components/{PlayerAccountGeneralConfirmationModal-DG0N686t.js → PlayerAccountGeneralConfirmationModal-DLBQH_sl.js} +66 -66
  42. package/components/PlayerAccountGeneralConfirmationModal-DhTWcbuE.js +365 -0
  43. package/components/PlayerAccountMenu-BGRoL3Yz.js +579 -0
  44. package/components/{PlayerAccountMenu-CZBa8_5G.js → PlayerAccountMenu-BxjdHhZ_.js} +17 -17
  45. package/components/PlayerAccountMenu-Csb1tUf_.cjs +1 -0
  46. package/components/{PlayerAccountModal-BmKjtXKT.js → PlayerAccountModal-C4nIa5u0.js} +28 -28
  47. package/components/PlayerAccountModal-D29fr970.js +213 -0
  48. package/components/PlayerAccountModal-DabmJiP4.cjs +1 -0
  49. package/components/{PlayerAccountNotifications-B4Ht-hHj.js → PlayerAccountNotifications-4sGKSJWy.js} +16 -16
  50. package/components/PlayerAccountNotifications-C3rPIsKp.js +261 -0
  51. package/components/PlayerAccountNotifications-O92_s-dm.cjs +1 -0
  52. package/components/PlayerAccountSelfExclusion-BkBWGAy2.cjs +3557 -0
  53. package/components/PlayerAccountSelfExclusion-CpKuxBrZ.js +16678 -0
  54. package/components/{PlayerAccountSelfExclusion-DxGHXTb8.js → PlayerAccountSelfExclusion-U9dfheYH.js} +11029 -12570
  55. package/components/PlayerAccountTimeout-CucYpS_w.cjs +1 -0
  56. package/components/{PlayerAccountTimeout-DOSjICsY.js → PlayerAccountTimeout-DIRXKowJ.js} +25 -25
  57. package/components/PlayerAccountTimeout-c2osWNku.js +819 -0
  58. package/components/{PlayerActiveBonuses-DMAG7NUP.js → PlayerActiveBonuses-B2QAPJxC.js} +49 -49
  59. package/components/PlayerActiveBonuses-DDcAwy_n.js +1089 -0
  60. package/components/PlayerActiveBonuses-cecVnp46.cjs +1 -0
  61. package/components/{PlayerBonusCard-Dss1REmn.js → PlayerBonusCard-BQU7JBPr.js} +50 -50
  62. package/components/PlayerBonusCard-C9Xdv-lu.cjs +1 -0
  63. package/components/PlayerBonusCard-TYI-WkBy.js +701 -0
  64. package/components/{PlayerBonusHistory-bS_5m4-D.js → PlayerBonusHistory-Boz8c3tb.js} +30 -30
  65. package/components/PlayerBonusHistory-CMPf8GQz.cjs +1 -0
  66. package/components/PlayerBonusHistory-cNqY_wfD.js +920 -0
  67. package/components/{PlayerChangePassword-DnCj-wcc.js → PlayerChangePassword-BGxYGFs-.js} +103 -103
  68. package/components/PlayerChangePassword-Dl3Pgpul.js +1177 -0
  69. package/components/PlayerChangePassword-X_GfgxAV.cjs +3 -0
  70. package/components/{PlayerDeposit-CHIQ8EaC.js → PlayerDeposit-BzSW3HMj.js} +25 -25
  71. package/components/PlayerDeposit-CqpNLpaq.cjs +1 -0
  72. package/components/PlayerDeposit-kjy658sM.js +395 -0
  73. package/components/PlayerGamingHistory-B6KJDVn0.cjs +1 -0
  74. package/components/PlayerGamingHistory-BW5rigFC.js +986 -0
  75. package/components/{PlayerGamingHistory-ByyLQwtw.js → PlayerGamingHistory-DIgLxCfL.js} +31 -31
  76. package/components/PlayerPendingWithdrawals--W6Dfn3K.cjs +1 -0
  77. package/components/{PlayerPendingWithdrawals-BbTa7_8U.js → PlayerPendingWithdrawals-BzOmRYiC.js} +33 -33
  78. package/components/PlayerPendingWithdrawals-pV1C12y5.js +311 -0
  79. package/components/PlayerProfileInfo-BTgis7wR.cjs +1 -0
  80. package/components/{PlayerProfileInfo-CvAqD3Dk.js → PlayerProfileInfo-CTgSfW-l.js} +45 -45
  81. package/components/PlayerProfileInfo-DkVAYiPX.js +1753 -0
  82. package/components/PlayerRealityCheck-BcsDhvm0.cjs +1 -0
  83. package/components/{PlayerRealityCheck-3d-B64ie.js → PlayerRealityCheck-BdZDs3Tl.js} +26 -26
  84. package/components/PlayerRealityCheck-DT3kOky2.js +598 -0
  85. package/components/PlayerTransactionHistory-BL92RRLF.cjs +1 -0
  86. package/components/{PlayerTransactionHistory-BYJNabMB.js → PlayerTransactionHistory-BQIA4QRw.js} +23 -23
  87. package/components/PlayerTransactionHistory-Yhwt7kUa.js +315 -0
  88. package/components/{PlayerWithdrawal-DDWroufG.js → PlayerWithdrawal-Cgv9nZE8.js} +20 -20
  89. package/components/PlayerWithdrawal-KgqM9wo-.cjs +1 -0
  90. package/components/PlayerWithdrawal-uB46JhmK.js +369 -0
  91. package/es2015/player-account-controller.cjs +1 -0
  92. package/es2015/player-account-controller.js +16 -0
  93. package/esnext/player-account-controller.js +1 -1
  94. package/package.json +1 -1
  95. package/stencil/app-globals-0f993ce5-8artnnwr.cjs +1 -0
  96. package/stencil/checkbox-group-input_9-AKw0biZc.cjs +2045 -0
  97. package/stencil/checkbox-group-input_9-BewIfW-f.js +13203 -0
  98. package/stencil/checkbox-group-input_9-CbFpcwPG.js +13237 -0
  99. package/stencil/{general-input-CQlnWzpy.js → general-input-BEcUF0Mm.js} +1 -1
  100. package/stencil/general-input-DI0pw0ot.cjs +1 -0
  101. package/stencil/general-input-DKyA-W8i.js +48 -0
  102. package/stencil/index-581287aa-CC7128Vz.js +654 -0
  103. package/stencil/index-581287aa-D5QW29QV.cjs +1 -0
  104. package/stencil/index-581287aa-D8NTWa_9.js +638 -0
  105. package/stencil/index-8b4525de-BFiXEsaX.cjs +1 -0
  106. package/stencil/index-8b4525de-C2xAv-3x.js +708 -0
  107. package/stencil/index-8b4525de-DeHXGvRF.js +692 -0
  108. package/stencil/index-a76d30c7-CFX9mSqu.cjs +1 -0
  109. package/stencil/index-a76d30c7-CQrAWNu0.js +658 -0
  110. package/stencil/index-a76d30c7-PfqrSVyu.js +631 -0
  111. package/stencil/index-c0196f50-3kAjMpUS.cjs +1 -0
  112. package/stencil/index-c0196f50-BjscP7kj.js +697 -0
  113. package/stencil/index-c0196f50-aE1zPmtS.js +724 -0
  114. package/stencil/locale-B5abSHU_.cjs +1 -0
  115. package/stencil/password-input_2-D97O8QAr.cjs +105 -0
  116. package/stencil/password-input_2-eDchPH-o.js +569 -0
  117. package/stencil/password-input_2-vTvSUJey.js +569 -0
  118. package/stencil/{player-change-password-gm2-BaQUJaH1.js → player-change-password-gm2-D4jpQFwb.js} +1 -1
  119. package/stencil/player-change-password-gm2-DSTqyOhE.js +25 -0
  120. package/stencil/player-change-password-gm2-Dw3D3ckz.cjs +1 -0
  121. package/stencil/{player-change-password-gm2-98dcb7bc-pj_6Z40p.js → player-change-password-gm2-e732ee8e-BjoYj-89.js} +1 -1
  122. package/stencil/player-change-password-gm2-e732ee8e-BqRUxIre.cjs +1 -0
  123. package/stencil/player-change-password-gm2-e732ee8e-Df6ljnLL.js +253 -0
  124. package/stencil/player-kyc-verification-B2FHAsrR.cjs +180 -0
  125. package/stencil/player-kyc-verification-CVqP43FY.js +865 -0
  126. package/stencil/{player-kyc-verification-BQZdJFEJ.js → player-kyc-verification-D6Au6XVN.js} +1 -1
  127. package/stencil/{toggle-checkbox-input-Sy9vd4Jp.js → toggle-checkbox-input-BckTBwKu.js} +1 -1
  128. package/stencil/toggle-checkbox-input-D8fVk4wA.js +46 -0
  129. package/stencil/toggle-checkbox-input-kw5Y1n3x.cjs +1 -0
  130. package/stencil/tooltipIcon-ee9760a8-Bd9l1O5C.cjs +1 -0
  131. package/stencil/user-deposit-withdrawal-BpAi0dc-.js +668 -0
  132. package/stencil/{user-deposit-withdrawal-CmF0LoNb.js → user-deposit-withdrawal-CrMPR6xn.js} +1 -1
  133. package/stencil/user-deposit-withdrawal-DrKFN7wp.cjs +59 -0
  134. package/stencil/{user-transaction-history-BgV-k2Cl.js → user-transaction-history-BgYG3IxS.js} +1 -1
  135. package/stencil/user-transaction-history-CBxwJE34.cjs +1 -0
  136. package/stencil/user-transaction-history-D8ebS-DZ.js +355 -0
  137. package/stencil/{active-mixin-59dfae2a-BphP4pp5.js → vaadin-button-mixin-d131076c-C559kyH3.js} +3523 -3021
  138. package/stencil/vaadin-button-mixin-d131076c-brSraXp5.js +10277 -0
  139. package/stencil/vaadin-button-mixin-d131076c-zI_s2YZ5.cjs +2385 -0
  140. package/stencil/checkbox-group-input_9-i8KmOWKn.js +0 -15610
  141. package/stencil/index-062e829b-CboMDKTu.js +0 -686
  142. package/stencil/index-33f005e1-fFxPaeNy.js +0 -632
  143. package/stencil/index-9b3245b3-rzHgwqlB.js +0 -625
  144. package/stencil/index-fc58390d-BSwfXuUs.js +0 -691
  145. package/stencil/password-input_2-sxSehMYk.js +0 -2359
@@ -0,0 +1,2385 @@
1
+ "use strict";var Ur=Object.defineProperty,jr=Object.defineProperties;var Yr=Object.getOwnPropertyDescriptors;var De=Object.getOwnPropertySymbols;var qr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable;var Le=(i,t,e)=>t in i?Ur(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,It=(i,t)=>{for(var e in t||(t={}))qr.call(t,e)&&Le(i,e,t[e]);if(De)for(var e of De(t))Gr.call(t,e)&&Le(i,e,t[e]);return i},zt=(i,t)=>jr(i,Yr(t));var $e=(i,t,e)=>new Promise((o,r)=>{var s=l=>{try{a(e.next(l))}catch(d){r(d)}},n=l=>{try{a(e.throw(l))}catch(d){r(d)}},a=l=>l.done?o(l.value):Promise.resolve(l.value).then(s,n);a((e=e.apply(i,t)).next())});/**
2
+ * @license
3
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
4
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
5
+ */window.Vaadin||(window.Vaadin={});var bi;(bi=window.Vaadin).featureFlags||(bi.featureFlags={});function Wr(i){return i.replace(/-[a-z]/gu,t=>t[1].toUpperCase())}const P={};function de(i,t="24.6.3"){if(Object.defineProperty(i,"version",{get(){return t}}),i.experimental){const o=typeof i.experimental=="string"?i.experimental:`${Wr(i.is.split("-").slice(1).join("-"))}Component`;if(!window.Vaadin.featureFlags[o]&&!P[o]){P[o]=new Set,P[o].add(i),Object.defineProperty(window.Vaadin.featureFlags,o,{get(){return P[o].size===0},set(r){r&&P[o].size>0&&(P[o].forEach(s=>{customElements.define(s.is,s)}),P[o].clear())}});return}else if(P[o]){P[o].add(i);return}}const e=customElements.get(i.is);if(!e)customElements.define(i.is,i);else{const o=e.version;o&&i.version&&o===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
6
+ * @license
7
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
8
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9
+ */class Kr extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}de(Kr);/**
10
+ * @license
11
+ * Copyright 2019 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ */const bt=globalThis,ce=bt.ShadowRoot&&(bt.ShadyCSS===void 0||bt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ue=Symbol(),Re=new WeakMap;class he{constructor(t,e,o){if(this._$cssResult$=!0,o!==ue)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o;const e=this.t;if(ce&&t===void 0){const o=e!==void 0&&e.length===1;o&&(t=Re.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&Re.set(e,t))}return t}toString(){return this.cssText}}const Xr=i=>new he(typeof i=="string"?i:i+"",void 0,ue),_=(i,...t)=>{const e=i.length===1?i[0]:t.reduce((o,r,s)=>o+(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.")})(r)+i[s+1],i[0]);return new he(e,i,ue)},Ci=(i,t)=>{if(ce)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const o=document.createElement("style"),r=bt.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=e.cssText,i.appendChild(o)}},Be=ce?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return Xr(e)})(i):i;/**
14
+ * @license
15
+ * Copyright 2017 Google LLC
16
+ * SPDX-License-Identifier: BSD-3-Clause
17
+ */const{is:Jr,defineProperty:Zr,getOwnPropertyDescriptor:Qr,getOwnPropertyNames:to,getOwnPropertySymbols:eo,getPrototypeOf:io}=Object,O=globalThis,Fe=O.trustedTypes,ro=Fe?Fe.emptyScript:"",Dt=O.reactiveElementPolyfillSupport,it=(i,t)=>i,Wt={toAttribute(i,t){switch(t){case Boolean:i=i?ro:null;break;case Object:case Array:i=i==null?i:JSON.stringify(i)}return i},fromAttribute(i,t){let e=i;switch(t){case Boolean:e=i!==null;break;case Number:e=i===null?null:Number(i);break;case Object:case Array:try{e=JSON.parse(i)}catch(o){e=null}}return e}},Pi=(i,t)=>!Jr(i,t),He={attribute:!0,type:String,converter:Wt,reflect:!1,hasChanged:Pi};var vi,yi;(vi=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(yi=O.litPropertyMetadata)!=null||(O.litPropertyMetadata=new WeakMap);class V extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=He){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const o=Symbol(),r=this.getPropertyDescriptor(t,o,e);r!==void 0&&Zr(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){var n;const{get:r,set:s}=(n=Qr(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get(){return r==null?void 0:r.call(this)},set(a){const l=r==null?void 0:r.call(this);s.call(this,a),this.requestUpdate(t,l,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:He}static _$Ei(){if(this.hasOwnProperty(it("elementProperties")))return;const t=io(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(it("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(it("properties"))){const e=this.properties,o=[...to(e),...eo(e)];for(const r of o)this.createProperty(r,e[r])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[o,r]of e)this.elementProperties.set(o,r)}this._$Eh=new Map;for(const[e,o]of this.elementProperties){const r=this._$Eu(e,o);r!==void 0&&this._$Eh.set(r,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const r of o)e.unshift(Be(r))}else t!==void 0&&e.push(Be(t));return e}static _$Eu(t,e){const o=e.attribute;return o===!1?void 0:typeof o=="string"?o:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,o;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((o=t.hostConnected)==null||o.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const o of e.keys())this.hasOwnProperty(o)&&(t.set(o,this[o]),delete this[o]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Ci(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(o=>{var r;return(r=o.hostConnected)==null?void 0:r.call(o)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var o;return(o=e.hostDisconnected)==null?void 0:o.call(e)})}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EC(t,e){var s;const o=this.constructor.elementProperties.get(t),r=this.constructor._$Eu(t,o);if(r!==void 0&&o.reflect===!0){const n=(((s=o.converter)==null?void 0:s.toAttribute)!==void 0?o.converter:Wt).toAttribute(e,o.type);this._$Em=t,n==null?this.removeAttribute(r):this.setAttribute(r,n),this._$Em=null}}_$AK(t,e){var s;const o=this.constructor,r=o._$Eh.get(t);if(r!==void 0&&this._$Em!==r){const n=o.getPropertyOptions(r),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((s=n.converter)==null?void 0:s.fromAttribute)!==void 0?n.converter:Wt;this._$Em=r,this[r]=a.fromAttribute(e,n.type),this._$Em=null}}requestUpdate(t,e,o){var r;if(t!==void 0){if(o!=null||(o=this.constructor.getPropertyOptions(t)),!((r=o.hasChanged)!=null?r:Pi)(this[t],e))return;this.P(t,e,o)}this.isUpdatePending===!1&&(this._$ES=this._$ET())}P(t,e,o){var r;this._$AL.has(t)||this._$AL.set(t,e),o.reflect===!0&&this._$Em!==t&&((r=this._$Ej)!=null?r:this._$Ej=new Set).add(t)}_$ET(){return $e(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o,r;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((o=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const s=this.constructor.elementProperties;if(s.size>0)for(const[n,a]of s)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],a)}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(r=this._$EO)==null||r.forEach(s=>{var n;return(n=s.hostUpdate)==null?void 0:n.call(s)}),this.update(e)):this._$EU()}catch(s){throw t=!1,this._$EU(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(o=>{var r;return(r=o.hostUpdated)==null?void 0:r.call(o)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EU(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU()}updated(t){}firstUpdated(t){}}var xi;V.elementStyles=[],V.shadowRootOptions={mode:"open"},V[it("elementProperties")]=new Map,V[it("finalized")]=new Map,Dt==null||Dt({ReactiveElement:V}),((xi=O.reactiveElementVersions)!=null?xi:O.reactiveElementVersions=[]).push("2.0.4");/**
18
+ * @license
19
+ * Copyright 2017 Google LLC
20
+ * SPDX-License-Identifier: BSD-3-Clause
21
+ */const rt=globalThis,yt=rt.trustedTypes,Ve=yt?yt.createPolicy("lit-html",{createHTML:i=>i}):void 0,Si="$lit$",k=`lit$${Math.random().toFixed(9).slice(2)}$`,Ti="?"+k,oo=`<${Ti}>`,R=document,st=()=>R.createComment(""),nt=i=>i===null||typeof i!="object"&&typeof i!="function",pe=Array.isArray,so=i=>pe(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",Lt=`[
22
+ \f\r]`,X=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ue=/-->/g,je=/>/g,z=RegExp(`>|${Lt}(?:([^\\s"'>=/]+)(${Lt}*=${Lt}*(?:[^
23
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ye=/'/g,qe=/"/g,Ni=/^(?:script|style|textarea|title)$/i,G=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),Ge=new WeakMap,D=R.createTreeWalker(R,129);function ki(i,t){if(!pe(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return Ve!==void 0?Ve.createHTML(t):t}const no=(i,t)=>{const e=i.length-1,o=[];let r,s=t===2?"<svg>":t===3?"<math>":"",n=X;for(let a=0;a<e;a++){const l=i[a];let d,c,u=-1,h=0;for(;h<l.length&&(n.lastIndex=h,c=n.exec(l),c!==null);)h=n.lastIndex,n===X?c[1]==="!--"?n=Ue:c[1]!==void 0?n=je:c[2]!==void 0?(Ni.test(c[2])&&(r=RegExp("</"+c[2],"g")),n=z):c[3]!==void 0&&(n=z):n===z?c[0]===">"?(n=r!=null?r:X,u=-1):c[1]===void 0?u=-2:(u=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?z:c[3]==='"'?qe:Ye):n===qe||n===Ye?n=z:n===Ue||n===je?n=X:(n=z,r=void 0);const p=n===z&&i[a+1].startsWith("/>")?" ":"";s+=n===X?l+oo:u>=0?(o.push(d),l.slice(0,u)+Si+l.slice(u)+k+p):l+k+(u===-2?a:p)}return[ki(i,s+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]};class at{constructor({strings:t,_$litType$:e},o){let r;this.parts=[];let s=0,n=0;const a=t.length-1,l=this.parts,[d,c]=no(t,e);if(this.el=at.createElement(d,o),D.currentNode=this.el.content,e===2||e===3){const u=this.el.content.firstChild;u.replaceWith(...u.childNodes)}for(;(r=D.nextNode())!==null&&l.length<a;){if(r.nodeType===1){if(r.hasAttributes())for(const u of r.getAttributeNames())if(u.endsWith(Si)){const h=c[n++],p=r.getAttribute(u).split(k),m=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:m[2],strings:p,ctor:m[1]==="."?lo:m[1]==="?"?co:m[1]==="@"?uo:Pt}),r.removeAttribute(u)}else u.startsWith(k)&&(l.push({type:6,index:s}),r.removeAttribute(u));if(Ni.test(r.tagName)){const u=r.textContent.split(k),h=u.length-1;if(h>0){r.textContent=yt?yt.emptyScript:"";for(let p=0;p<h;p++)r.append(u[p],st()),D.nextNode(),l.push({type:2,index:++s});r.append(u[h],st())}}}else if(r.nodeType===8)if(r.data===Ti)l.push({type:2,index:s});else{let u=-1;for(;(u=r.data.indexOf(k,u+1))!==-1;)l.push({type:7,index:s}),u+=k.length-1}s++}}static createElement(t,e){const o=R.createElement("template");return o.innerHTML=t,o}}function W(i,t,e=i,o){var n,a,l;if(t===G)return t;let r=o!==void 0?(n=e._$Co)==null?void 0:n[o]:e._$Cl;const s=nt(t)?void 0:t._$litDirective$;return(r==null?void 0:r.constructor)!==s&&((a=r==null?void 0:r._$AO)==null||a.call(r,!1),s===void 0?r=void 0:(r=new s(i),r._$AT(i,e,o)),o!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[o]=r:e._$Cl=r),r!==void 0&&(t=W(i,r._$AS(i,t.values),r,o)),t}class ao{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;const{el:{content:e},parts:o}=this._$AD,r=((d=t==null?void 0:t.creationScope)!=null?d:R).importNode(e,!0);D.currentNode=r;let s=D.nextNode(),n=0,a=0,l=o[0];for(;l!==void 0;){if(n===l.index){let c;l.type===2?c=new ft(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new ho(s,this,t)),this._$AV.push(c),l=o[++a]}n!==(l==null?void 0:l.index)&&(s=D.nextNode(),n++)}return D.currentNode=R,r}p(t){let e=0;for(const o of this._$AV)o!==void 0&&(o.strings!==void 0?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class ft{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,o,r){var s;this.type=2,this._$AH=g,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=r,this._$Cv=(s=r==null?void 0:r.isConnected)!=null?s:!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=W(this,t,e),nt(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==G&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):so(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==g&&nt(this._$AH)?this._$AA.nextSibling.data=t:this.T(R.createTextNode(t)),this._$AH=t}$(t){var s;const{values:e,_$litType$:o}=t,r=typeof o=="number"?this._$AC(t):(o.el===void 0&&(o.el=at.createElement(ki(o.h,o.h[0]),this.options)),o);if(((s=this._$AH)==null?void 0:s._$AD)===r)this._$AH.p(e);else{const n=new ao(r,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=Ge.get(t.strings);return e===void 0&&Ge.set(t.strings,e=new at(t)),e}k(t){pe(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,r=0;for(const s of t)r===e.length?e.push(o=new ft(this.O(st()),this.O(st()),this,this.options)):o=e[r],o._$AI(s),r++;r<e.length&&(this._$AR(o&&o._$AB.nextSibling,r),e.length=r)}_$AR(t=this._$AA.nextSibling,e){var o;for((o=this._$AP)==null?void 0:o.call(this,!1,!0,e);t&&t!==this._$AB;){const r=t.nextSibling;t.remove(),t=r}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class Pt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,o,r,s){this.type=1,this._$AH=g,this._$AN=void 0,this.element=t,this.name=e,this._$AM=r,this.options=s,o.length>2||o[0]!==""||o[1]!==""?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=g}_$AI(t,e=this,o,r){const s=this.strings;let n=!1;if(s===void 0)t=W(this,t,e,0),n=!nt(t)||t!==this._$AH&&t!==G,n&&(this._$AH=t);else{const a=t;let l,d;for(t=s[0],l=0;l<s.length-1;l++)d=W(this,a[o+l],e,l),d===G&&(d=this._$AH[l]),n||(n=!nt(d)||d!==this._$AH[l]),d===g?t=g:t!==g&&(t+=(d!=null?d:"")+s[l+1]),this._$AH[l]=d}n&&!r&&this.j(t)}j(t){t===g?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class lo extends Pt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}}class co extends Pt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}}class uo extends Pt{constructor(t,e,o,r,s){super(t,e,o,r,s),this.type=5}_$AI(t,e=this){var n;if((t=(n=W(this,t,e,0))!=null?n:g)===G)return;const o=this._$AH,r=t===g&&o!==g||t.capture!==o.capture||t.once!==o.once||t.passive!==o.passive,s=t!==g&&(o===g||r);r&&this.element.removeEventListener(this.name,this,o),s&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,o;typeof this._$AH=="function"?this._$AH.call((o=(e=this.options)==null?void 0:e.host)!=null?o:this.element,t):this._$AH.handleEvent(t)}}class ho{constructor(t,e,o){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=o}get _$AU(){return this._$AM._$AU}_$AI(t){W(this,t)}}const $t=rt.litHtmlPolyfillSupport;var Ai;$t==null||$t(at,ft),((Ai=rt.litHtmlVersions)!=null?Ai:rt.litHtmlVersions=[]).push("3.2.1");const po=(i,t,e)=>{var s,n;const o=(s=e==null?void 0:e.renderBefore)!=null?s:t;let r=o._$litPart$;if(r===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;o._$litPart$=r=new ft(t.insertBefore(st(),a),a,void 0,e!=null?e:{})}return r._$AI(i),r};/**
24
+ * @license
25
+ * Copyright 2017 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ */class U extends V{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e,o;const t=super.createRenderRoot();return(o=(e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=po(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1)}render(){return G}}var wi;U._$litElement$=!0,U.finalized=!0,(wi=globalThis.litElementHydrateSupport)==null||wi.call(globalThis,{LitElement:U});const Rt=globalThis.litElementPolyfillSupport;Rt==null||Rt({LitElement:U});var Ei;((Ei=globalThis.litElementVersions)!=null?Ei:globalThis.litElementVersions=[]).push("4.1.1");/**
28
+ * @license
29
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
30
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
31
+ */const fo=i=>class extends i{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(e,o,r){super.attributeChangedCallback(e,o,r),e==="theme"&&this._set_theme(r)}};/**
32
+ * @license
33
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
34
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
35
+ */const Oi=[],Kt=new Set,fe=new Set;function Mi(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function mo(i){return Mi(customElements.get(i))}function _o(i=[]){return[i].flat(1/0).filter(t=>t instanceof he?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Ii(i,t){return(i||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function zi(i){return i.map(t=>t.cssText).join(`
36
+ `)}const xt="vaadin-themable-mixin-style";function go(i,t){const e=document.createElement("style");e.id=xt,e.textContent=zi(i),t.content.appendChild(e)}function bo(i){if(!i.shadowRoot)return;const t=i.constructor;if(i instanceof U)[...i.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Ci(i.shadowRoot,t.elementStyles);else{const e=i.shadowRoot.getElementById(xt),o=t.prototype._template;e.textContent=o.content.getElementById(xt).textContent}}function vo(i){Kt.forEach(t=>{const e=t.deref();e instanceof i?bo(e):e||Kt.delete(t)})}function Di(i){if(i.prototype instanceof U)i.elementStyles=i.finalizeStyles(i.styles);else{const t=i.prototype._template;t.content.getElementById(xt).textContent=zi(i.getStylesForThis())}fe.forEach(t=>{const e=customElements.get(t);e!==i&&e.prototype instanceof i&&Di(e)})}function yo(i,t){const e=i.__themes;return!e||!t?!1:e.some(o=>o.styles.some(r=>t.some(s=>s.cssText===r.cssText)))}function N(i,t,e={}){t=_o(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,t,e):Oi.push({themeFor:i,styles:t,include:e.include,moduleId:e.moduleId}),i&&fe.forEach(o=>{if(Ii(i,o)&&mo(o)){const r=customElements.get(o);yo(r,t)?console.warn(`Registering styles that already exist for ${o}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${o}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),Di(r),vo(r)}})}function Xt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Oi}function xo(i=""){let t=0;return i.startsWith("lumo-")||i.startsWith("material-")?t=1:i.startsWith("vaadin-")&&(t=2),t}function Li(i){const t=[];return i.include&&[].concat(i.include).forEach(e=>{const o=Xt().find(r=>r.moduleId===e);o?t.push(...Li(o),...o.styles):console.warn(`Included moduleId ${e} not found in style registry`)},i.styles),t}function Ao(i){const t=`${i}-default-theme`,e=Xt().filter(o=>o.moduleId!==t&&Ii(o.themeFor,i)).map(o=>zt(It({},o),{styles:[...Li(o),...o.styles],includePriority:xo(o.moduleId)})).sort((o,r)=>r.includePriority-o.includePriority);return e.length>0?e:Xt().filter(o=>o.moduleId===t)}const $i=i=>class extends fo(i){constructor(){super(),Kt.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&fe.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Mi(this)||go(this.getStylesForThis(),e)}static finalizeStyles(e){const o=this.getStylesForThis();return e?[...[e].flat(1/0),...o]:o}static getStylesForThis(){const e=i.__themes||[],o=Object.getPrototypeOf(this.prototype),r=(o?o.constructor.__themes:[])||[];this.__themes=[...e,...r,...Ao(this.is)];const s=this.__themes.flatMap(n=>n.styles);return s.filter((n,a)=>a===s.lastIndexOf(n))}};/**
37
+ * @license
38
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
39
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
40
+ */const wo=(i,...t)=>{const e=document.createElement("style");e.id=i,e.textContent=t.map(o=>o.toString()).join(`
41
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e)},K=(i,...t)=>{wo(`lumo-${i}`,t)};/**
42
+ * @license
43
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
44
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
45
+ */const Eo=_`
46
+ :host {
47
+ /* Base (background) */
48
+ --lumo-base-color: #fff;
49
+
50
+ /* Tint */
51
+ --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
52
+ --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
53
+ --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
54
+ --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
55
+ --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
56
+ --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
57
+ --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
58
+ --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
59
+ --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
60
+ --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
61
+ --lumo-tint: #fff;
62
+
63
+ /* Shade */
64
+ --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
65
+ --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
66
+ --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
67
+ --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
68
+ --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
69
+ --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
70
+ --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
71
+ --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
72
+ --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
73
+ --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
74
+ --lumo-shade: hsl(214, 35%, 15%);
75
+
76
+ /* Contrast */
77
+ --lumo-contrast-5pct: var(--lumo-shade-5pct);
78
+ --lumo-contrast-10pct: var(--lumo-shade-10pct);
79
+ --lumo-contrast-20pct: var(--lumo-shade-20pct);
80
+ --lumo-contrast-30pct: var(--lumo-shade-30pct);
81
+ --lumo-contrast-40pct: var(--lumo-shade-40pct);
82
+ --lumo-contrast-50pct: var(--lumo-shade-50pct);
83
+ --lumo-contrast-60pct: var(--lumo-shade-60pct);
84
+ --lumo-contrast-70pct: var(--lumo-shade-70pct);
85
+ --lumo-contrast-80pct: var(--lumo-shade-80pct);
86
+ --lumo-contrast-90pct: var(--lumo-shade-90pct);
87
+ --lumo-contrast: var(--lumo-shade);
88
+
89
+ /* Text */
90
+ --lumo-header-text-color: var(--lumo-contrast);
91
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
92
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
93
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
94
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
95
+
96
+ /* Primary */
97
+ --lumo-primary-color: hsl(214, 100%, 48%);
98
+ --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
99
+ --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
100
+ --lumo-primary-text-color: hsl(214, 100%, 43%);
101
+ --lumo-primary-contrast-color: #fff;
102
+
103
+ /* Error */
104
+ --lumo-error-color: hsl(3, 85%, 48%);
105
+ --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
106
+ --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
107
+ --lumo-error-text-color: hsl(3, 89%, 42%);
108
+ --lumo-error-contrast-color: #fff;
109
+
110
+ /* Success */
111
+ --lumo-success-color: hsl(145, 72%, 30%);
112
+ --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
113
+ --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
114
+ --lumo-success-text-color: hsl(145, 85%, 25%);
115
+ --lumo-success-contrast-color: #fff;
116
+
117
+ /* Warning */
118
+ --lumo-warning-color: hsl(48, 100%, 50%);
119
+ --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
120
+ --lumo-warning-text-color: hsl(32, 100%, 30%);
121
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
122
+ }
123
+
124
+ /* forced-colors mode adjustments */
125
+ @media (forced-colors: active) {
126
+ html {
127
+ --lumo-disabled-text-color: GrayText;
128
+ }
129
+ }
130
+ `;K("color-props",Eo);const Co=_`
131
+ [theme~='dark'] {
132
+ /* Base (background) */
133
+ --lumo-base-color: hsl(214, 35%, 21%);
134
+
135
+ /* Tint */
136
+ --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
137
+ --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
138
+ --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
139
+ --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
140
+ --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
141
+ --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
142
+ --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
143
+ --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
144
+ --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
145
+ --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
146
+ --lumo-tint: hsl(214, 100%, 98%);
147
+
148
+ /* Shade */
149
+ --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
150
+ --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
151
+ --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
152
+ --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
153
+ --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
154
+ --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
155
+ --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
156
+ --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
157
+ --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
158
+ --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
159
+ --lumo-shade: hsl(214, 33%, 13%);
160
+
161
+ /* Contrast */
162
+ --lumo-contrast-5pct: var(--lumo-tint-5pct);
163
+ --lumo-contrast-10pct: var(--lumo-tint-10pct);
164
+ --lumo-contrast-20pct: var(--lumo-tint-20pct);
165
+ --lumo-contrast-30pct: var(--lumo-tint-30pct);
166
+ --lumo-contrast-40pct: var(--lumo-tint-40pct);
167
+ --lumo-contrast-50pct: var(--lumo-tint-50pct);
168
+ --lumo-contrast-60pct: var(--lumo-tint-60pct);
169
+ --lumo-contrast-70pct: var(--lumo-tint-70pct);
170
+ --lumo-contrast-80pct: var(--lumo-tint-80pct);
171
+ --lumo-contrast-90pct: var(--lumo-tint-90pct);
172
+ --lumo-contrast: var(--lumo-tint);
173
+
174
+ /* Text */
175
+ --lumo-header-text-color: var(--lumo-contrast);
176
+ --lumo-body-text-color: var(--lumo-contrast-90pct);
177
+ --lumo-secondary-text-color: var(--lumo-contrast-70pct);
178
+ --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
179
+ --lumo-disabled-text-color: var(--lumo-contrast-30pct);
180
+
181
+ /* Primary */
182
+ --lumo-primary-color: hsl(214, 90%, 48%);
183
+ --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
184
+ --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
185
+ --lumo-primary-text-color: hsl(214, 90%, 77%);
186
+ --lumo-primary-contrast-color: #fff;
187
+
188
+ /* Error */
189
+ --lumo-error-color: hsl(3, 79%, 49%);
190
+ --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
191
+ --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
192
+ --lumo-error-text-color: hsl(3, 100%, 80%);
193
+
194
+ /* Success */
195
+ --lumo-success-color: hsl(145, 72%, 30%);
196
+ --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
197
+ --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
198
+ --lumo-success-text-color: hsl(145, 85%, 46%);
199
+
200
+ /* Warning */
201
+ --lumo-warning-color: hsl(43, 100%, 48%);
202
+ --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
203
+ --lumo-warning-text-color: hsl(45, 100%, 60%);
204
+ --lumo-warning-contrast-color: var(--lumo-shade-90pct);
205
+ }
206
+
207
+ html {
208
+ color: var(--lumo-body-text-color);
209
+ background-color: var(--lumo-base-color);
210
+ color-scheme: light;
211
+ }
212
+
213
+ [theme~='dark'] {
214
+ color: var(--lumo-body-text-color);
215
+ background-color: var(--lumo-base-color);
216
+ color-scheme: dark;
217
+ }
218
+
219
+ h1,
220
+ h2,
221
+ h3,
222
+ h4,
223
+ h5,
224
+ h6 {
225
+ color: var(--lumo-header-text-color);
226
+ }
227
+
228
+ a:where(:any-link) {
229
+ color: var(--lumo-primary-text-color);
230
+ }
231
+
232
+ a:not(:any-link) {
233
+ color: var(--lumo-disabled-text-color);
234
+ }
235
+
236
+ blockquote {
237
+ color: var(--lumo-secondary-text-color);
238
+ }
239
+
240
+ code,
241
+ pre {
242
+ background-color: var(--lumo-contrast-10pct);
243
+ border-radius: var(--lumo-border-radius-m);
244
+ }
245
+ pre code {
246
+ background: transparent;
247
+ }
248
+ `;N("",Co,{moduleId:"lumo-color"});/**
249
+ * @license
250
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
251
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
252
+ */const Po=_`
253
+ :host {
254
+ --lumo-size-xs: 1.625rem;
255
+ --lumo-size-s: 1.875rem;
256
+ --lumo-size-m: 2.25rem;
257
+ --lumo-size-l: 2.75rem;
258
+ --lumo-size-xl: 3.5rem;
259
+
260
+ /* Icons */
261
+ --lumo-icon-size-s: 1.25em;
262
+ --lumo-icon-size-m: 1.5em;
263
+ --lumo-icon-size-l: 2.25em;
264
+ /* For backwards compatibility */
265
+ --lumo-icon-size: var(--lumo-icon-size-m);
266
+ }
267
+ `;K("sizing-props",Po);/**
268
+ * @license
269
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
270
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
271
+ */const So=_`
272
+ :host {
273
+ /* Border radius */
274
+ --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
275
+ --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
276
+ --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
277
+
278
+ /* Shadow */
279
+ --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
280
+ --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
281
+ --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
282
+ --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
283
+ --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
284
+
285
+ /* Clickable element cursor */
286
+ --lumo-clickable-cursor: default;
287
+ }
288
+ `;_`
289
+ html {
290
+ /* Button */
291
+ --vaadin-button-background: var(--lumo-contrast-5pct);
292
+ --vaadin-button-border: none;
293
+ --vaadin-button-border-radius: var(--lumo-border-radius-m);
294
+ --vaadin-button-font-size: var(--lumo-font-size-m);
295
+ --vaadin-button-font-weight: 500;
296
+ --vaadin-button-height: var(--lumo-size-m);
297
+ --vaadin-button-margin: var(--lumo-space-xs) 0;
298
+ --vaadin-button-min-width: calc(var(--vaadin-button-height) * 2);
299
+ --vaadin-button-padding: 0 calc(var(--vaadin-button-height) / 3 + var(--lumo-border-radius-m) / 2);
300
+ --vaadin-button-text-color: var(--lumo-primary-text-color);
301
+ --vaadin-button-primary-background: var(--lumo-primary-color);
302
+ --vaadin-button-primary-border: none;
303
+ --vaadin-button-primary-font-weight: 600;
304
+ --vaadin-button-primary-text-color: var(--lumo-primary-contrast-color);
305
+ --vaadin-button-tertiary-background: transparent !important;
306
+ --vaadin-button-tertiary-text-color: var(--lumo-primary-text-color);
307
+ --vaadin-button-tertiary-font-weight: 500;
308
+ --vaadin-button-tertiary-padding: 0 calc(var(--vaadin-button-height) / 6);
309
+ /* Checkbox */
310
+ --vaadin-checkbox-background: var(--lumo-contrast-20pct);
311
+ --vaadin-checkbox-background-hover: var(--lumo-contrast-30pct);
312
+ --vaadin-checkbox-border-radius: var(--lumo-border-radius-s);
313
+ --vaadin-checkbox-checkmark-char: var(--lumo-icons-checkmark);
314
+ --vaadin-checkbox-checkmark-char-indeterminate: '';
315
+ --vaadin-checkbox-checkmark-color: var(--lumo-primary-contrast-color);
316
+ --vaadin-checkbox-checkmark-size: calc(var(--vaadin-checkbox-size) + 2px);
317
+ --vaadin-checkbox-label-color: var(--lumo-body-text-color);
318
+ --vaadin-checkbox-label-font-size: var(--lumo-font-size-m);
319
+ --vaadin-checkbox-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs) var(--lumo-space-xs);
320
+ --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
321
+ --vaadin-checkbox-disabled-checkmark-color: var(--lumo-contrast-30pct);
322
+ --vaadin-checkbox-disabled-background: var(--lumo-contrast-10pct);
323
+ /* Radio button */
324
+ --vaadin-radio-button-background: var(--lumo-contrast-20pct);
325
+ --vaadin-radio-button-background-hover: var(--lumo-contrast-30pct);
326
+ --vaadin-radio-button-dot-color: var(--lumo-primary-contrast-color);
327
+ --vaadin-radio-button-dot-size: 3px;
328
+ --vaadin-radio-button-label-color: var(--lumo-body-text-color);
329
+ --vaadin-radio-button-label-font-size: var(--lumo-font-size-m);
330
+ --vaadin-radio-button-label-padding: var(--lumo-space-xs) var(--lumo-space-s) var(--lumo-space-xs)
331
+ var(--lumo-space-xs);
332
+ --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
333
+ --vaadin-radio-button-disabled-background: var(--lumo-contrast-10pct);
334
+ --vaadin-radio-button-disabled-dot-color: var(--lumo-contrast-30pct);
335
+ --vaadin-selection-color: var(--lumo-primary-color);
336
+ --vaadin-selection-color-text: var(--lumo-primary-text-color);
337
+ --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
338
+ --vaadin-focus-ring-color: var(--lumo-primary-color-50pct);
339
+ --vaadin-focus-ring-width: 2px;
340
+ /* Label */
341
+ --vaadin-input-field-label-color: var(--lumo-secondary-text-color);
342
+ --vaadin-input-field-focused-label-color: var(--lumo-primary-text-color);
343
+ --vaadin-input-field-hovered-label-color: var(--lumo-body-text-color);
344
+ --vaadin-input-field-label-font-size: var(--lumo-font-size-s);
345
+ --vaadin-input-field-label-font-weight: 500;
346
+ /* Helper */
347
+ --vaadin-input-field-helper-color: var(--lumo-secondary-text-color);
348
+ --vaadin-input-field-helper-font-size: var(--lumo-font-size-xs);
349
+ --vaadin-input-field-helper-font-weight: 400;
350
+ --vaadin-input-field-helper-spacing: 0.4em;
351
+ /* Error message */
352
+ --vaadin-input-field-error-color: var(--lumo-error-text-color);
353
+ --vaadin-input-field-error-font-size: var(--lumo-font-size-xs);
354
+ --vaadin-input-field-error-font-weight: 400;
355
+ /* Input field */
356
+ --vaadin-input-field-background: var(--lumo-contrast-10pct);
357
+ --vaadin-input-field-icon-color: var(--lumo-contrast-60pct);
358
+ --vaadin-input-field-icon-size: var(--lumo-icon-size-m);
359
+ --vaadin-input-field-invalid-background: var(--lumo-error-color-10pct);
360
+ --vaadin-input-field-invalid-hover-highlight: var(--lumo-error-color-50pct);
361
+ --vaadin-input-field-disabled-background: var(--lumo-contrast-5pct);
362
+ --vaadin-input-field-disabled-value-color: var(--lumo-disabled-text-color);
363
+ --vaadin-input-field-height: var(--lumo-size-m);
364
+ --vaadin-input-field-hover-highlight: var(--lumo-contrast-50pct);
365
+ --vaadin-input-field-placeholder-color: var(--lumo-secondary-text-color);
366
+ --vaadin-input-field-readonly-border: 1px dashed var(--lumo-contrast-30pct);
367
+ --vaadin-input-field-value-color: var(--lumo-body-text-color);
368
+ --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
369
+ --vaadin-input-field-value-font-weight: 500;
370
+ }
371
+ `;K("style-props",So);/**
372
+ * @license
373
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
374
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
375
+ */const To=_`
376
+ :host {
377
+ /* prettier-ignore */
378
+ --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
379
+
380
+ /* Font sizes */
381
+ --lumo-font-size-xxs: 0.75rem;
382
+ --lumo-font-size-xs: 0.8125rem;
383
+ --lumo-font-size-s: 0.875rem;
384
+ --lumo-font-size-m: 1rem;
385
+ --lumo-font-size-l: 1.125rem;
386
+ --lumo-font-size-xl: 1.375rem;
387
+ --lumo-font-size-xxl: 1.75rem;
388
+ --lumo-font-size-xxxl: 2.5rem;
389
+
390
+ /* Line heights */
391
+ --lumo-line-height-xs: 1.25;
392
+ --lumo-line-height-s: 1.375;
393
+ --lumo-line-height-m: 1.625;
394
+ }
395
+ `,No=_`
396
+ body,
397
+ :host {
398
+ font-family: var(--lumo-font-family);
399
+ font-size: var(--lumo-font-size-m);
400
+ line-height: var(--lumo-line-height-m);
401
+ -webkit-text-size-adjust: 100%;
402
+ -webkit-font-smoothing: antialiased;
403
+ -moz-osx-font-smoothing: grayscale;
404
+ }
405
+
406
+ small,
407
+ [theme~='font-size-s'] {
408
+ font-size: var(--lumo-font-size-s);
409
+ line-height: var(--lumo-line-height-s);
410
+ }
411
+
412
+ [theme~='font-size-xs'] {
413
+ font-size: var(--lumo-font-size-xs);
414
+ line-height: var(--lumo-line-height-xs);
415
+ }
416
+
417
+ :where(h1, h2, h3, h4, h5, h6) {
418
+ font-weight: 600;
419
+ line-height: var(--lumo-line-height-xs);
420
+ margin-block: 0;
421
+ }
422
+
423
+ :where(h1) {
424
+ font-size: var(--lumo-font-size-xxxl);
425
+ }
426
+
427
+ :where(h2) {
428
+ font-size: var(--lumo-font-size-xxl);
429
+ }
430
+
431
+ :where(h3) {
432
+ font-size: var(--lumo-font-size-xl);
433
+ }
434
+
435
+ :where(h4) {
436
+ font-size: var(--lumo-font-size-l);
437
+ }
438
+
439
+ :where(h5) {
440
+ font-size: var(--lumo-font-size-m);
441
+ }
442
+
443
+ :where(h6) {
444
+ font-size: var(--lumo-font-size-xs);
445
+ text-transform: uppercase;
446
+ letter-spacing: 0.03em;
447
+ }
448
+
449
+ p,
450
+ blockquote {
451
+ margin-top: 0.5em;
452
+ margin-bottom: 0.75em;
453
+ }
454
+
455
+ a {
456
+ text-decoration: none;
457
+ }
458
+
459
+ a:where(:any-link):hover {
460
+ text-decoration: underline;
461
+ }
462
+
463
+ hr {
464
+ display: block;
465
+ align-self: stretch;
466
+ height: 1px;
467
+ border: 0;
468
+ padding: 0;
469
+ margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
470
+ background-color: var(--lumo-contrast-10pct);
471
+ }
472
+
473
+ blockquote {
474
+ border-left: 2px solid var(--lumo-contrast-30pct);
475
+ }
476
+
477
+ b,
478
+ strong {
479
+ font-weight: 600;
480
+ }
481
+
482
+ /* RTL specific styles */
483
+ blockquote[dir='rtl'] {
484
+ border-left: none;
485
+ border-right: 2px solid var(--lumo-contrast-30pct);
486
+ }
487
+ `;N("",No,{moduleId:"lumo-typography"});K("typography-props",To);N("vaadin-input-container",_`
488
+ :host {
489
+ background: var(--_background);
490
+ padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
491
+ font-weight: var(--vaadin-input-field-value-font-weight, 500);
492
+ line-height: 1;
493
+ position: relative;
494
+ cursor: text;
495
+ box-sizing: border-box;
496
+ border-radius:
497
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
498
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
499
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
500
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
501
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
502
+ /* Fallback */
503
+ --_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
504
+ --_input-height: var(--lumo-text-field-size, var(--lumo-size-m));
505
+ /* Default values */
506
+ --_background: var(--vaadin-input-field-background, var(--lumo-contrast-10pct));
507
+ --_hover-highlight: var(--vaadin-input-field-hover-highlight, var(--lumo-contrast-50pct));
508
+ --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
509
+ --_icon-color: var(--vaadin-input-field-icon-color, var(--lumo-contrast-60pct));
510
+ --_icon-size: var(--vaadin-input-field-icon-size, var(--lumo-icon-size-m));
511
+ --_invalid-background: var(--vaadin-input-field-invalid-background, var(--lumo-error-color-10pct));
512
+ --_invalid-hover-highlight: var(--vaadin-input-field-invalid-hover-highlight, var(--lumo-error-color-50pct));
513
+ --_disabled-background: var(--vaadin-input-field-disabled-background, var(--lumo-contrast-5pct));
514
+ --_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
515
+ }
516
+
517
+ :host([dir='rtl']) {
518
+ border-radius:
519
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
520
+ var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
521
+ var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
522
+ var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
523
+ var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
524
+ }
525
+
526
+ /* Used for hover and activation effects */
527
+ :host::after {
528
+ content: '';
529
+ position: absolute;
530
+ inset: 0;
531
+ border-radius: inherit;
532
+ pointer-events: none;
533
+ background: var(--_hover-highlight);
534
+ opacity: 0;
535
+ transition:
536
+ transform 0.15s,
537
+ opacity 0.2s;
538
+ transform-origin: 100% 0;
539
+ }
540
+
541
+ ::slotted(:not([slot$='fix'])) {
542
+ cursor: inherit;
543
+ min-height: var(--vaadin-input-field-height, var(--_input-height));
544
+ padding: 0 0.25em;
545
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
546
+ -webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
547
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
548
+ }
549
+
550
+ /* Read-only */
551
+ :host([readonly]) {
552
+ color: var(--lumo-secondary-text-color);
553
+ background-color: transparent;
554
+ cursor: default;
555
+ }
556
+
557
+ :host([readonly])::after {
558
+ background-color: transparent;
559
+ opacity: 1;
560
+ border: var(--vaadin-input-field-readonly-border, 1px dashed var(--lumo-contrast-30pct));
561
+ }
562
+
563
+ /* Disabled */
564
+ :host([disabled]) {
565
+ background: var(--_disabled-background);
566
+ }
567
+
568
+ :host([disabled]) ::slotted(:not([slot$='fix'])) {
569
+ -webkit-text-fill-color: var(--_disabled-value-color);
570
+ color: var(--_disabled-value-color);
571
+ }
572
+
573
+ /* Invalid */
574
+ :host([invalid]) {
575
+ background: var(--_invalid-background);
576
+ }
577
+
578
+ :host([invalid]:not([readonly]))::after {
579
+ background: var(--_invalid-hover-highlight);
580
+ }
581
+
582
+ /* Slotted icons */
583
+ ::slotted(vaadin-icon) {
584
+ color: var(--_icon-color);
585
+ width: var(--_icon-size);
586
+ height: var(--_icon-size);
587
+ }
588
+
589
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
590
+ ::slotted(vaadin-icon[icon^='vaadin:']) {
591
+ padding: 0.25em;
592
+ box-sizing: border-box !important;
593
+ }
594
+
595
+ /* Text align */
596
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
597
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
598
+ }
599
+
600
+ @-moz-document url-prefix() {
601
+ :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
602
+ mask-image: var(--_lumo-text-field-overflow-mask-image);
603
+ }
604
+ }
605
+
606
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
607
+ text-align: start;
608
+ --_lumo-text-field-overflow-mask-image: none;
609
+ }
610
+
611
+ :host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
612
+ text-align: center;
613
+ --_lumo-text-field-overflow-mask-image: none;
614
+ }
615
+
616
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
617
+ text-align: end;
618
+ --_lumo-text-field-overflow-mask-image: none;
619
+ }
620
+
621
+ @-moz-document url-prefix() {
622
+ /* Firefox is smart enough to align overflowing text to right */
623
+ :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
624
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
625
+ }
626
+ }
627
+
628
+ @-moz-document url-prefix() {
629
+ /* Firefox is smart enough to align overflowing text to right */
630
+ :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
631
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
632
+ }
633
+ }
634
+
635
+ /* RTL specific styles */
636
+ :host([dir='rtl'])::after {
637
+ transform-origin: 0% 0;
638
+ }
639
+
640
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
641
+ --_lumo-text-field-overflow-mask-image: none;
642
+ }
643
+
644
+ :host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
645
+ --_lumo-text-field-overflow-mask-image: none;
646
+ }
647
+
648
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
649
+ --_lumo-text-field-overflow-mask-image: none;
650
+ }
651
+
652
+ @-moz-document url-prefix() {
653
+ /* Firefox is smart enough to align overflowing text to right */
654
+ :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
655
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
656
+ }
657
+ }
658
+
659
+ @-moz-document url-prefix() {
660
+ /* Firefox is smart enough to align overflowing text to right */
661
+ :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
662
+ --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
663
+ }
664
+ }
665
+ `,{moduleId:"lumo-input-container"});/**
666
+ * @license
667
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
668
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
669
+ */const ko=_`
670
+ @font-face {
671
+ font-family: 'lumo-icons';
672
+ src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABHAAAsAAAAAI6AAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuNY21hcAAAAYgAAAD+AAADymne8hxnbHlmAAACiAAAC+gAABioIzlOlWhlYWQAAA5wAAAAMAAAADZa/6SsaGhlYQAADqAAAAAdAAAAJAbpA4BobXR4AAAOwAAAABAAAAC0q+AAAGxvY2EAAA7QAAAAXAAAAFyF7o1GbWF4cAAADywAAAAfAAAAIAFMAXBuYW1lAAAPTAAAATEAAAIuUUJZCHBvc3QAABCAAAABPQAAAgfdkltveJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+xDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mEO+p/FEMUcxDANKMwIkgMABvgMMAB4nO3SV26EMABF0UsZpjG9d6Y3FpgF5StLYxMTP16WEUvHV1gGIQzQAJKgDFKIfojQ+A6rUb2e0KnXU77qPanWq/LzCXOkOVyn9RyHvWl4YkaTFu1wX5ecHn0GDBkxZsKUGXMWLFmxZsOWHXsOFBw5cebClRt3Hjx58dZ7RRn/I9cUF39Xpb691acRG2piOtUqNZ1P1TCdeJUZatNQW4baNtSO6U+ouoaam96u6hlq31AHhjo01JGhjg11YqhTQ50Z6txQF4a6NNSVoa4NdWOoW0PdGereUA+GWhjq0VBPhno21IuhXg31Zqh3Q30Y6tNQX4b6NtTSKH8BOIRpQQAAeJy1WH1sW9UVv+fG9vPz+7Bf/N6zHcd2/J04jbP6s0lap4kDpB9JWzUUCqxNgaHxpTI6hNhUNLVr17HSISb2D2iAJrWb6FTWahNQdQxRvmHamAR0qibE1E18CG3QaVNFvJ17n+3YIf1AiMQ679x77j3v3HPPPed3H7ER/OsYpw8TmQRIiuQJ8RZK+WjO1B3xaCzla21orY10a+OQ6aHTHtP0zB31mBs1GZ6RNU2uXc7oPL+xdRS9R9X1oK4fVfijdsBqvqF6vd1eLzPrYrYZ57WteF7bPDIc5+ZcJnta+S9i2Vfhs4MaMwZNQmO0Vv7gF/MZcNsCcJp4sJFSwYyAmRuFCmTBDRBUkwGqnlViyjmVBpLqaXhNpt0J5V1JOqMkuqn8WkMHvZX+iOlImiqkBiFVYDrCqINulmkwKb8ry2fkZBBn7FcTlk4ZdfpRZ9MOesLSAakKt0N3g4p2jAL8eIEOOqom/U0lgQRXUl8LtXM7HFkojUIpF0ErVBhcZC1vtyjtpsqr83a8RVcSH+ool8LgcIMjNohmVCACuDs506BdO6WIQeXjUsh1XKZGRNpp9piv3+Givoh00OU6KEV81HUHTLtN093Q+YGlE3wLHWRtMNy9XWqdLm2HKbaNsGzhu+41eswFOjE6WKSk2/1Wpt+qHeM6phbohmVmj3GvpdcVkiy9zbXfzHVqKuDB0IR2P6ZpF+D7dy6YC/9svGmBE5hKB9+X2+hh4iYRMkhGyTqyFc9APmeGQHf043tWQKHkizmwaY5AroTNVJzJDc2SFzUu92kOLsdmKu77vByb8/IjtxmhkMFISRBFISO4XMLJlj4XgGuRXtaHw2FLyHifdSOpisIhJjgkiPBAyJh7lfXTkhEadwk1mUngrOC6MazX7mASeEAPV1FyjEumBOaEDu4DP/ogRDKkiLEV1woVyMeLLKJCEM+FwdCwL4XLcRgdbfkhbzS8BNvXDKzNQiAWgOzagTXF1Eyq+Ci6/TPm/JrNY/59p1epKN4jQFGe0fx+LTMwNVCrAU2VSqnaKYzIiGmWe2Rvp9KDJhncrjLaFce8VCUbyQ1kB9lNfkJ+To6R58mfyd/Ip9ABXohDHqqwEW7A2Mij1ehntLu+h8xMtocjUJcYwoLdtYafv/1Vjy8vjLaLtBfOt3/B931Rexa24e5zstgnyqvZHs69zuhq3vFgRpQVJyN7FuE++RLSeW4xMi+t6Zeo5sIK6S5dlGVRD2hWnGoB3j7OV3lesvNLic8tOnLRSRfRdOna63VJp/1WbYs5dFZjy1AqpGICQEWKmNI+CZNoVTJ7pNop+IZkRrBHgnEmqr3TrEsfw1Gi8LqE+S1aV0SNNwXVVVvuUoU3ld6TLwmditIpvKTU50zSzWwO1h0rL8awnulwTXMYrGDT4aQ1fb4GPkyv5vMEh5Vec6yw0AMXnfcx1l/rfVZaKLDi0W4j/HfeyGZuHOf1IUGW1udizU2leXY0OmLpVDpVKJfKpZzPRKHgEBzpXAUKWYipoIeBdl3JfLZVBizEqWun1i4ZGFiyduq3DebayXsmJ+95gBG4+Urm1a2SdpKV57lP2wZyZqI+FAlfUtO+NCmgdWhMOS1gDY+jHWnBhwjBQLMEXxmLbx6t9JXTWDLtsSxgisfErqvQMbbBoywZmeyLeWe8OWNydFDxzMx4lMGRtX0xN3YFJkeW+O0bascGNwwObtjCCOzrzAVWjSwN2K9cpyn9o5cZOXMmkAuM85EbNHnJyHhfLLCnPhxJYw9eoIMkyC3l+4ZuY5ig7lW2oYUynDgg+Xrk+++Xe3zSgRYetnyuy+KbfjiB+GAAtZ8HHXmtijZfFFgrujhmOs2qkXvuSV6WqA1WLYqhPHOfsa26rklKFqbAGL2dOIlGurB6LWFVFd/KoBBaYTFYVBs93hZRFlrG5Ex4NVFIJguJVvqnBW2kNNvFGx90YUcSEvyZSMDeZjc0xYlEYy8+hHcWx9YrZOaPPyCGepP5Q34aXnGBr8d1QhSf4yjtiebZqNJfEYl4SY6dDRb8WSguLZW9ZQtBpoW4hX0QMyB2KmsYcOh8HMQxBn288oZ6BXV0GOq/ClKsC6T8g9X3OFKZNkJrYkOx2lEk+KNDy953+wGHXuGGzhGZ+uLK8FVrQkbtKBv+9EztU2sgTCNpvXMdJjqJ4tkdw+x00dPKkZ1QR254x7GQoFmvfakSnL3gCc5nREly2mN2pyTLMacMipNT7YInGU7JzlN2p9N+yinXTirOKEvPUafSWMNDmCf9pIQYaG19DSxKGqvAQ+xg60iabEm5MheUU2n+HxO4TDDbjnw6xxK8QzfhbHXq8pWVqanKysun9s6ztdt7sivGqruqYyuyPS6Hw9XehGt6q+l0dT0jvaFMZjiTuTHo7+vdtHJTb58/2ML+IxHt9/n9vv5owiWKrrbWD+sakKxhKoYzxF5f7y9INxki42QNuYrVFDPfvqxyY83xWNMV+ZxPSMWb62W+wPSCJwkDDl1WZOGW84nAEo4A7HjB/uWmOdayRFnKjazi668u/ajJlUd87aPk048Crlu4j1Oh9gxdL3Z1inNPIt2xvKNlsU4hn54Z5Y6YbTDu9hHOvkcFAb35fU6hNovKOrtQmcvbNV9/Ntfv5xf4atDWOOTX6CSHZ08xujhPs51+f9zvf1YLIGoPPKvxVh0TSLAXzzUBFiXs7GJVB7vH5/PAXznd4+vx4a95h3qI/oYIpIdMkA1kC7kVLS3GhWI5bwj1fIaVKG/Ei5gXWOjhtcJbzFthaMQrwIcIRj0ppvO6yV95icu9j/YPDNySWp7w+kOr95R1RfGpfVlDVhS/2geJ5Umv2mn0rkxBvzvgdisndJXaVF1X5z5jdHGe2n/QnYo8+b2uaMivhowgjYcLnVqnrEpQezsieyVZ6ooETbdJO6ip+cORLpes6BL82/qg8VHbo45B/vch/YQeJX28QvEANR3sQhxh+TcMCEd4l8BKF7uID7KM05tRYlIHHXY63YIi2fXQyj5XSBbcMeewKLpttkJ2Syz33YJfDdJdSYkqHbYb3VHRJgTV8c0TAy67YHeK7htwOKWax5co7Do8Pfh1tKdx1g5j9o6TZeQyMo27FuW3vbYsbY/Op3AG06DMKionRlpgHzCEeMmLU5opRrCyS670RzppZeW5p/iT3jL3lB4O63QS6dzzh8SAtOqwGJK3bv+lGJTWbr++471wsVKMRJCEK5H+cLg/Qp+IDsdqs7HhKD7hMXyyrD/Li8RjRqimHhI7HP2vSDZn9brplySb0L9dgpURSwmSiBFhilrwB8OA9gZ29NkRO/669parW9e7XZDxwvgRu+SE7zgl+xG5p/HtRqJ3cdwSZwsbwTA1WT3jEdyPN0sWxvDGy+xovIzHosnwc9LePf9tywun0fMkWaFYZbB4oovRq8VyKYUBkMVXqVhBHSylQ0wanvla3+rQ1XbR8ZzstYOo2Mf7vjk8ftcGDWxdSdXx0cAVveHg1TZFtEOn8ntBBFs11V++vuLUQ5qz+U6d/oUjpGIdNjOQhJXNqn5YCS1Yy5PofLGEs6Js2yOKe2yyOLxtaGjbt7cNIURCEDdWfaQ6lurtRYbePCuItv1iUNxvE4Vdw2zQ0LZhdv2fxjHp5uAmdlBpopHXoJGU8e6BRc0yi+PztkaHTRRrW1m2hcfFLlEUzzD+DGczjEVCg9jEQZhFcdAL2DjD+DPiSWQzjM2I89g5RXdxfECS+CIWy1hTGmFs6EIbkv/pbtkfU3aPrZ+4c2Lizn07qufym/L5TTdtyuU2/We3HPeDsjtb3bGPSSfW31aX3LQpX/d9sL7fWYpRJPBbCJavYjrFjj0rT2GWCZjf6Ytffr8beXl/HYeyGwJiIK8FLDHbfo65xGz7YCSRqCQSkbbHI5eUU5X4sjj+zrU9aHnRlEnrd7YGptd0x2Jf/RbH9PAiovadckSnEsJ661OgPFuH9B4O6e202vIN0h9xHXSJh1wRP5Vqv1uI6Wn9Gxmrwzqrii1gqhEscJanuAlGas+s2/uzvetgS72NpHZ6aHbZstmh/wPq1seEeJxjYGRgYADi31ySEvH8Nl8ZuJlfAEUYalQ3NCLo/6+ZpzLdAnI5GJhAogAiBgraeJxjYGRgYA76nwUkXzAAAfNUBkYGVKALAFb4A3EAAAB4nGNgYGBgfjG0MAAMzihlAAAAAABOAJoA6AEKASwBTgFwAZoBxAHuAhoCnALoBJoEvATWBPIFDgUqBXoF0AX+BkQGlga4BwgHagfiCGoIpAi8CVAJmAoQCiwKVgqQCtYLGAtOC4gL6AwuDFR4nGNgZGBg0GVMYRBlAAEmIOYCQgaG/2A+AwAYygG+AHicbZE9TsMwGIbf9A/RSggEYmHxAgtq+jN2ZGj3Dt3T1GlTOXHkuBW9AyfgEByCgTNwCA7BW/NJlVBtyd/jx+8XKwmAa3whwnFE6Ib1OBq44O6Pm6Qb4Rb5QbiNHh6FO/RD4S6eMRHu4RaaT4halzR3eBVu4Apvwk36d+EW+UO4jXt8Cnfov4W7WOBHuIen6MXsCtvPU1vWc73emcSdxIkW2tW5LdUoHp7kTJfaJV6v1PKg6v167H2mMmcLNbWl18ZYVTm71amPN95Xk8EgEx+ntoDBDgUs+siRspaoMef7rukNEriziXNuwS7Hmoe9wggxv+e55IzJMqQTeNYV00scuNbY8+YxrUfGfcaMZb/CNPQe04bT0lThbEuT0sfYhK6K/23Amf3Lx+H24hcj4GScAAAAeJxtjuduwzAMhH2NnTqOk+6993TfSZFY24giGZTVon36eiRFf5SAiO/A05HBWtBXEvxfGdYwQIgIQ6wjxggJxkgxwRQb2MQWtrGDXexhHwc4xBGOcYJTnOEcF7jEFa5xg1vc4R4PeMQTnvGCV2R4C1Khy9xkkkxNnPRC03s97pHLvKgTYXJNmbKfZom9o8POEffsq0Qw28+ltcPe2uHS2rGvRjPBmSwE1+GMtI6l0GSU4JEsSM4XgudpQx9sTRf3K9rAyUr0962UryKprZwPpM0jyda5uP2qrVBjxSLPCmGUplixrdpBSKqsI2oO4gF9Udq8TJVOzDSpcEHGR4vSeJdaVsSkMl26OqoKa6jttQ0rLb6a5l3YjO2QqV01YXLlNy2XDR0JlkXojbJTb/5GDX3V+kPviIPgB9AUks0AAAA=)
673
+ format('woff');
674
+ font-weight: normal;
675
+ font-style: normal;
676
+ }
677
+
678
+ html {
679
+ --lumo-icons-align-center: '\\ea01';
680
+ --lumo-icons-align-left: '\\ea02';
681
+ --lumo-icons-align-right: '\\ea03';
682
+ --lumo-icons-angle-down: '\\ea04';
683
+ --lumo-icons-angle-left: '\\ea05';
684
+ --lumo-icons-angle-right: '\\ea06';
685
+ --lumo-icons-angle-up: '\\ea07';
686
+ --lumo-icons-arrow-down: '\\ea08';
687
+ --lumo-icons-arrow-left: '\\ea09';
688
+ --lumo-icons-arrow-right: '\\ea0a';
689
+ --lumo-icons-arrow-up: '\\ea0b';
690
+ --lumo-icons-bar-chart: '\\ea0c';
691
+ --lumo-icons-bell: '\\ea0d';
692
+ --lumo-icons-calendar: '\\ea0e';
693
+ --lumo-icons-checkmark: '\\ea0f';
694
+ --lumo-icons-chevron-down: '\\ea10';
695
+ --lumo-icons-chevron-left: '\\ea11';
696
+ --lumo-icons-chevron-right: '\\ea12';
697
+ --lumo-icons-chevron-up: '\\ea13';
698
+ --lumo-icons-clock: '\\ea14';
699
+ --lumo-icons-cog: '\\ea15';
700
+ --lumo-icons-cross: '\\ea16';
701
+ --lumo-icons-download: '\\ea17';
702
+ --lumo-icons-drag-handle: '\\ea18';
703
+ --lumo-icons-dropdown: '\\ea19';
704
+ --lumo-icons-edit: '\\ea1a';
705
+ --lumo-icons-error: '\\ea1b';
706
+ --lumo-icons-eye: '\\ea1c';
707
+ --lumo-icons-eye-disabled: '\\ea1d';
708
+ --lumo-icons-menu: '\\ea1e';
709
+ --lumo-icons-minus: '\\ea1f';
710
+ --lumo-icons-ordered-list: '\\ea20';
711
+ --lumo-icons-phone: '\\ea21';
712
+ --lumo-icons-photo: '\\ea22';
713
+ --lumo-icons-play: '\\ea23';
714
+ --lumo-icons-plus: '\\ea24';
715
+ --lumo-icons-redo: '\\ea25';
716
+ --lumo-icons-reload: '\\ea26';
717
+ --lumo-icons-resize-handle: '\\ea27';
718
+ --lumo-icons-search: '\\ea28';
719
+ --lumo-icons-undo: '\\ea29';
720
+ --lumo-icons-unordered-list: '\\ea2a';
721
+ --lumo-icons-upload: '\\ea2b';
722
+ --lumo-icons-user: '\\ea2c';
723
+ }
724
+ `;K("font-icons",ko);/**
725
+ * @license
726
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
727
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
728
+ */const Oo=_`
729
+ :host {
730
+ /* Square */
731
+ --lumo-space-xs: 0.25rem;
732
+ --lumo-space-s: 0.5rem;
733
+ --lumo-space-m: 1rem;
734
+ --lumo-space-l: 1.5rem;
735
+ --lumo-space-xl: 2.5rem;
736
+
737
+ /* Wide */
738
+ --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
739
+ --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
740
+ --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
741
+ --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
742
+ --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
743
+
744
+ /* Tall */
745
+ --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
746
+ --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
747
+ --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
748
+ --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
749
+ --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
750
+ }
751
+ `;K("spacing-props",Oo);/**
752
+ * @license
753
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
754
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
755
+ */const Ri=_`
756
+ [part$='button'] {
757
+ flex: none;
758
+ width: 1em;
759
+ height: 1em;
760
+ line-height: 1;
761
+ font-size: var(--lumo-icon-size-m);
762
+ text-align: center;
763
+ color: var(--lumo-contrast-60pct);
764
+ transition: 0.2s color;
765
+ cursor: var(--lumo-clickable-cursor);
766
+ }
767
+
768
+ [part$='button']:hover {
769
+ color: var(--lumo-contrast-90pct);
770
+ }
771
+
772
+ :host([disabled]) [part$='button'],
773
+ :host([readonly]) [part$='button'] {
774
+ color: var(--lumo-contrast-20pct);
775
+ cursor: default;
776
+ }
777
+
778
+ [part$='button']::before {
779
+ font-family: 'lumo-icons';
780
+ display: block;
781
+ }
782
+ `;N("",Ri,{moduleId:"lumo-field-button"});/**
783
+ * @license
784
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
785
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
786
+ */const Bi=_`
787
+ :host {
788
+ --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
789
+ }
790
+
791
+ :host([has-helper]) [part='helper-text']::before {
792
+ content: '';
793
+ display: block;
794
+ height: var(--_helper-spacing);
795
+ }
796
+
797
+ [part='helper-text'] {
798
+ display: block;
799
+ color: var(--vaadin-input-field-helper-color, var(--lumo-secondary-text-color));
800
+ font-size: var(--vaadin-input-field-helper-font-size, var(--lumo-font-size-xs));
801
+ line-height: var(--lumo-line-height-xs);
802
+ font-weight: var(--vaadin-input-field-helper-font-weight, 400);
803
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
804
+ transition: color 0.2s;
805
+ }
806
+
807
+ :host(:hover:not([readonly])) [part='helper-text'] {
808
+ color: var(--lumo-body-text-color);
809
+ }
810
+
811
+ :host([disabled]) [part='helper-text'] {
812
+ color: var(--lumo-disabled-text-color);
813
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
814
+ }
815
+
816
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
817
+ display: none;
818
+ }
819
+
820
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
821
+ content: '';
822
+ display: block;
823
+ height: var(--_helper-spacing);
824
+ }
825
+
826
+ :host([has-helper][theme~='helper-above-field']) [part='label'] {
827
+ order: 0;
828
+ padding-bottom: var(--_helper-spacing);
829
+ }
830
+
831
+ :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
832
+ order: 1;
833
+ }
834
+
835
+ :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
836
+ order: 2;
837
+ }
838
+
839
+ :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
840
+ order: 3;
841
+ }
842
+ `;/**
843
+ * @license
844
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
845
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
846
+ */const me=_`
847
+ [part='label'] {
848
+ align-self: flex-start;
849
+ color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
850
+ font-weight: var(--vaadin-input-field-label-font-weight, 500);
851
+ font-size: var(--vaadin-input-field-label-font-size, var(--lumo-font-size-s));
852
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
853
+ transition: color 0.2s;
854
+ line-height: 1;
855
+ padding-right: 1em;
856
+ padding-bottom: 0.5em;
857
+ /* As a workaround for diacritics being cut off, add a top padding and a
858
+ negative margin to compensate */
859
+ padding-top: 0.25em;
860
+ margin-top: -0.25em;
861
+ overflow: hidden;
862
+ white-space: nowrap;
863
+ text-overflow: ellipsis;
864
+ position: relative;
865
+ max-width: 100%;
866
+ box-sizing: border-box;
867
+ }
868
+
869
+ :host([focused]:not([readonly])) [part='label'] {
870
+ color: var(--vaadin-input-field-focused-label-color, var(--lumo-primary-text-color));
871
+ }
872
+
873
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
874
+ color: var(--vaadin-input-field-hovered-label-color, var(--lumo-body-text-color));
875
+ }
876
+
877
+ /* Touch device adjustment */
878
+ @media (pointer: coarse) {
879
+ :host(:hover:not([readonly]):not([focused])) [part='label'] {
880
+ color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
881
+ }
882
+ }
883
+
884
+ :host([has-label])::before {
885
+ margin-top: calc(var(--lumo-font-size-s) * 1.5);
886
+ }
887
+
888
+ :host([has-label][theme~='small'])::before {
889
+ margin-top: calc(var(--lumo-font-size-xs) * 1.5);
890
+ }
891
+
892
+ :host([has-label]) {
893
+ padding-top: var(--lumo-space-m);
894
+ }
895
+
896
+ :host([has-label]) ::slotted([slot='tooltip']) {
897
+ --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
898
+ }
899
+
900
+ :host([required]) [part='required-indicator']::after {
901
+ content: var(--lumo-required-field-indicator, '\\2022');
902
+ transition: opacity 0.2s;
903
+ color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
904
+ position: absolute;
905
+ right: 0;
906
+ width: 1em;
907
+ text-align: center;
908
+ }
909
+
910
+ :host([invalid]) [part='required-indicator']::after {
911
+ color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
912
+ }
913
+
914
+ [part='error-message'] {
915
+ margin-left: calc(var(--lumo-border-radius-m) / 4);
916
+ font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));
917
+ line-height: var(--lumo-line-height-xs);
918
+ font-weight: var(--vaadin-input-field-error-font-weight, 400);
919
+ color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));
920
+ will-change: max-height;
921
+ transition: 0.4s max-height;
922
+ max-height: 5em;
923
+ }
924
+
925
+ :host([has-error-message]) [part='error-message']::before,
926
+ :host([has-error-message]) [part='error-message']::after {
927
+ content: '';
928
+ display: block;
929
+ height: 0.4em;
930
+ }
931
+
932
+ :host(:not([invalid])) [part='error-message'] {
933
+ max-height: 0;
934
+ overflow: hidden;
935
+ }
936
+
937
+ /* RTL specific styles */
938
+
939
+ :host([dir='rtl']) [part='label'] {
940
+ margin-left: 0;
941
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
942
+ }
943
+
944
+ :host([dir='rtl']) [part='label'] {
945
+ padding-left: 1em;
946
+ padding-right: 0;
947
+ }
948
+
949
+ :host([dir='rtl']) [part='required-indicator']::after {
950
+ right: auto;
951
+ left: 0;
952
+ }
953
+
954
+ :host([dir='rtl']) [part='error-message'] {
955
+ margin-left: 0;
956
+ margin-right: calc(var(--lumo-border-radius-m) / 4);
957
+ }
958
+ `;N("",me,{moduleId:"lumo-required-field"});/**
959
+ * @license
960
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
961
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
962
+ */const Mo=_`
963
+ :host {
964
+ --lumo-text-field-size: var(--lumo-size-m);
965
+ color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
966
+ font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
967
+ font-family: var(--lumo-font-family);
968
+ -webkit-font-smoothing: antialiased;
969
+ -moz-osx-font-smoothing: grayscale;
970
+ -webkit-tap-highlight-color: transparent;
971
+ padding: var(--lumo-space-xs) 0;
972
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
973
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
974
+ --_input-height: var(--vaadin-input-field-height, var(--lumo-text-field-size));
975
+ --_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
976
+ }
977
+
978
+ :host::before {
979
+ height: var(--_input-height);
980
+ box-sizing: border-box;
981
+ display: inline-flex;
982
+ align-items: center;
983
+ }
984
+
985
+ :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
986
+ -webkit-mask-image: none;
987
+ mask-image: none;
988
+ }
989
+
990
+ ::slotted(:is(input, textarea):placeholder-shown) {
991
+ color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
992
+ }
993
+
994
+ /* Hover */
995
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
996
+ opacity: var(--vaadin-input-field-hover-highlight-opacity, 0.1);
997
+ }
998
+
999
+ /* Touch device adjustment */
1000
+ @media (pointer: coarse) {
1001
+ :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
1002
+ opacity: 0;
1003
+ }
1004
+
1005
+ :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
1006
+ opacity: 0.2;
1007
+ }
1008
+ }
1009
+
1010
+ /* Trigger when not focusing using the keyboard */
1011
+ :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
1012
+ transform: scaleX(0);
1013
+ transition-duration: 0.15s, 1s;
1014
+ }
1015
+
1016
+ /* Focus-ring */
1017
+ :host([focus-ring]) [part='input-field'] {
1018
+ box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
1019
+ }
1020
+
1021
+ /* Read-only and disabled */
1022
+ :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
1023
+ opacity: 0;
1024
+ }
1025
+
1026
+ /* Read-only style */
1027
+ :host([readonly]) {
1028
+ --vaadin-input-field-border-color: transparent;
1029
+ }
1030
+
1031
+ /* Disabled style */
1032
+ :host([disabled]) {
1033
+ pointer-events: none;
1034
+ --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
1035
+ }
1036
+
1037
+ :host([disabled]) [part='label'],
1038
+ :host([disabled]) [part='input-field'] ::slotted([slot$='fix']) {
1039
+ color: var(--lumo-disabled-text-color);
1040
+ -webkit-text-fill-color: var(--lumo-disabled-text-color);
1041
+ }
1042
+
1043
+ :host([disabled]) [part='input-field'] ::slotted(:not([slot$='fix'])) {
1044
+ color: var(--_disabled-value-color);
1045
+ -webkit-text-fill-color: var(--_disabled-value-color);
1046
+ }
1047
+
1048
+ /* Invalid style */
1049
+ :host([invalid]) {
1050
+ --vaadin-input-field-border-color: var(--lumo-error-color);
1051
+ }
1052
+
1053
+ :host([invalid][focus-ring]) [part='input-field'] {
1054
+ box-shadow: 0 0 0 var(--_focus-ring-width) var(--lumo-error-color-50pct);
1055
+ }
1056
+
1057
+ :host([input-prevented]) [part='input-field'] {
1058
+ animation: shake 0.15s infinite;
1059
+ }
1060
+
1061
+ @keyframes shake {
1062
+ 25% {
1063
+ transform: translateX(4px);
1064
+ }
1065
+ 75% {
1066
+ transform: translateX(-4px);
1067
+ }
1068
+ }
1069
+
1070
+ /* Small theme */
1071
+ :host([theme~='small']) {
1072
+ font-size: var(--lumo-font-size-s);
1073
+ --lumo-text-field-size: var(--lumo-size-s);
1074
+ }
1075
+
1076
+ :host([theme~='small']) [part='label'] {
1077
+ font-size: var(--lumo-font-size-xs);
1078
+ }
1079
+
1080
+ :host([theme~='small']) [part='error-message'] {
1081
+ font-size: var(--lumo-font-size-xxs);
1082
+ }
1083
+
1084
+ /* Slotted content */
1085
+ [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
1086
+ color: var(--lumo-secondary-text-color);
1087
+ font-weight: 400;
1088
+ }
1089
+
1090
+ [part='clear-button']::before {
1091
+ content: var(--lumo-icons-cross);
1092
+ }
1093
+ `,Fi=[me,Ri,Bi,Mo];N("",Fi,{moduleId:"lumo-input-field-shared-styles"});/**
1094
+ @license
1095
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1096
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1097
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1098
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1099
+ Code distributed by Google as part of the polymer project is also
1100
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1101
+ */window.JSCompiler_renameProperty=function(i,t){return i};/**
1102
+ @license
1103
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1104
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1105
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1106
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1107
+ Code distributed by Google as part of the polymer project is also
1108
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1109
+ */let Io=/(url\()([^)]*)(\))/g,zo=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,mt,A;function ot(i,t){if(i&&zo.test(i)||i==="//")return i;if(mt===void 0){mt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",mt=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),mt)try{return new URL(i,t).href}catch(e){return i}return A||(A=document.implementation.createHTMLDocument("temp"),A.base=A.createElement("base"),A.head.appendChild(A.base),A.anchor=A.createElement("a"),A.body.appendChild(A.anchor)),A.base.href=t,A.anchor.href=i,A.anchor.href||i}function _e(i,t){return i.replace(Io,function(e,o,r,s){return o+"'"+ot(r.replace(/["']/g,""),t)+"'"+s})}function ge(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
1110
+ @license
1111
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1112
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1113
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1114
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1115
+ Code distributed by Google as part of the polymer project is also
1116
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1117
+ */const Hi=!window.ShadyDOM||!window.ShadyDOM.inUse,Do=Hi&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const i=new CSSStyleSheet;i.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[i],t.shadowRoot.adoptedStyleSheets[0]===i}catch(i){return!1}})();let Lo=window.Polymer&&window.Polymer.rootPath||ge(document.baseURI||window.location.href),At=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,wt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,$o=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Vi=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ui=window.Polymer&&window.Polymer.legacyWarnings||!1,Ro=window.Polymer&&window.Polymer.syncInitialRender||!1,Jt=window.Polymer&&window.Polymer.legacyUndefined||!1,Bo=window.Polymer&&window.Polymer.orderedComputed||!1,We=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Fo=window.Polymer&&window.Polymer.fastDomIf||!1,Ho=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Vo=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1118
+ @license
1119
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1120
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1121
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1122
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1123
+ Code distributed by Google as part of the polymer project is also
1124
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1125
+ */let Uo=0;const b=function(i){let t=i.__mixinApplications;t||(t=new WeakMap,i.__mixinApplications=t);let e=Uo++;function o(r){let s=r.__mixinSet;if(s&&s[e])return r;let n=t,a=n.get(r);if(!a){a=i(r),n.set(r,a);let l=Object.create(a.__mixinSet||s||null);l[e]=!0,a.__mixinSet=l}return a}return o};/**
1126
+ @license
1127
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1128
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1129
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1130
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1131
+ Code distributed by Google as part of the polymer project is also
1132
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1133
+ */let be={},ji={};function Ke(i,t){be[i]=ji[i.toLowerCase()]=t}function Xe(i){return be[i]||ji[i.toLowerCase()]}function jo(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class lt extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let o=Xe(t);return o&&e?o.querySelector(e):o}return null}attributeChangedCallback(t,e,o,r){e!==o&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=ot(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=ge(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(wt&&Xe(t)!==void 0)throw Ke(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Ke(t,this),jo(this)}}}lt.prototype.modules=be;customElements.define("dom-module",lt);/**
1134
+ @license
1135
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1136
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1137
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1138
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1139
+ Code distributed by Google as part of the polymer project is also
1140
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1141
+ */const Yo="link[rel=import][type~=css]",qo="include",Je="shady-unscoped";function Yi(i){return lt.import(i)}function Ze(i){let t=i.body?i.body:i;const e=_e(t.textContent,i.baseURI),o=document.createElement("style");return o.textContent=e,o}function Go(i){const t=i.trim().split(/\s+/),e=[];for(let o=0;o<t.length;o++)e.push(...Wo(t[o]));return e}function Wo(i){const t=Yi(i);if(!t)return console.warn("Could not find style data in module named",i),[];if(t._styles===void 0){const e=[];e.push(...Gi(t));const o=t.querySelector("template");o&&e.push(...qi(o,t.assetpath)),t._styles=e}return t._styles}function qi(i,t){if(!i._styles){const e=[],o=i.content.querySelectorAll("style");for(let r=0;r<o.length;r++){let s=o[r],n=s.getAttribute(qo);n&&e.push(...Go(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(s.textContent=_e(s.textContent,t)),e.push(s)}i._styles=e}return i._styles}function Ko(i){let t=Yi(i);return t?Gi(t):[]}function Gi(i){const t=[],e=i.querySelectorAll(Yo);for(let o=0;o<e.length;o++){let r=e[o];if(r.import){const s=r.import,n=r.hasAttribute(Je);if(n&&!s._unscopedStyle){const a=Ze(s);a.setAttribute(Je,""),s._unscopedStyle=a}else s._style||(s._style=Ze(s));t.push(n?s._unscopedStyle:s._style)}}return t}/**
1142
+ @license
1143
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1144
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1145
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1146
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1147
+ Code distributed by Google as part of the polymer project is also
1148
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1149
+ */const M=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
1150
+ @license
1151
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1152
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1153
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1154
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1155
+ Code distributed by Google as part of the polymer project is also
1156
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1157
+ */function Zt(i){return i.indexOf(".")>=0}function F(i){let t=i.indexOf(".");return t===-1?i:i.slice(0,t)}function Wi(i,t){return i.indexOf(t+".")===0}function dt(i,t){return t.indexOf(i+".")===0}function ct(i,t,e){return t+e.slice(i.length)}function Xo(i,t){return i===t||Wi(i,t)||dt(i,t)}function tt(i){if(Array.isArray(i)){let t=[];for(let e=0;e<i.length;e++){let o=i[e].toString().split(".");for(let r=0;r<o.length;r++)t.push(o[r])}return t.join(".")}else return i}function Ki(i){return Array.isArray(i)?tt(i).split("."):i.toString().split(".")}function v(i,t,e){let o=i,r=Ki(t);for(let s=0;s<r.length;s++){if(!o)return;let n=r[s];o=o[n]}return e&&(e.path=r.join(".")),o}function Qe(i,t,e){let o=i,r=Ki(t),s=r[r.length-1];if(r.length>1){for(let n=0;n<r.length-1;n++){let a=r[n];if(o=o[a],!o)return}o[s]=e}else o[t]=e;return r.join(".")}/**
1158
+ @license
1159
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1160
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1161
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1162
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1163
+ Code distributed by Google as part of the polymer project is also
1164
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1165
+ */const Et={},Jo=/-[a-z]/g,Zo=/([A-Z])/g;function Xi(i){return Et[i]||(Et[i]=i.indexOf("-")<0?i:i.replace(Jo,t=>t[1].toUpperCase()))}function St(i){return Et[i]||(Et[i]=i.replace(Zo,"-$1").toLowerCase())}/**
1166
+ @license
1167
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1168
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1169
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1170
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1171
+ Code distributed by Google as part of the polymer project is also
1172
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1173
+ */let Qo=0,Ji=0,j=[],ts=0,Qt=!1,Zi=document.createTextNode("");new window.MutationObserver(es).observe(Zi,{characterData:!0});function es(){Qt=!1;const i=j.length;for(let t=0;t<i;t++){let e=j[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}j.splice(0,i),Ji+=i}const is={after(i){return{run(t){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}}},run(i,t){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}},Qi={run(i){return Qt||(Qt=!0,Zi.textContent=ts++),j.push(i),Qo++},cancel(i){const t=i-Ji;if(t>=0){if(!j[t])throw new Error("invalid async handle: "+i);j[t]=null}}};/**
1174
+ @license
1175
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1176
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1177
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1178
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1179
+ Code distributed by Google as part of the polymer project is also
1180
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1181
+ */const rs=Qi,tr=b(i=>{class t extends i{static createProperties(o){const r=this.prototype;for(let s in o)s in r||r._createPropertyAccessor(s)}static attributeNameForProperty(o){return o.toLowerCase()}static typeForProperty(o){}_createPropertyAccessor(o,r){this._addPropertyToAttributeMap(o),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[o]||(this.__dataHasAccessor[o]=!0,this._definePropertyAccessor(o,r))}_addPropertyToAttributeMap(o){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let r=this.__dataAttributes[o];return r||(r=this.constructor.attributeNameForProperty(o),this.__dataAttributes[r]=o),r}_definePropertyAccessor(o,r){Object.defineProperty(this,o,{get(){return this.__data[o]},set:r?function(){}:function(s){this._setPendingProperty(o,s,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let o in this.__dataHasAccessor)this.hasOwnProperty(o)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[o]=this[o],delete this[o])}_initializeInstanceProperties(o){Object.assign(this,o)}_setProperty(o,r){this._setPendingProperty(o,r)&&this._invalidateProperties()}_getProperty(o){return this.__data[o]}_setPendingProperty(o,r,s){let n=this.__data[o],a=this._shouldPropertyChange(o,r,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(o in this.__dataOld)&&(this.__dataOld[o]=n),this.__data[o]=r,this.__dataPending[o]=r),a}_isPropertyPending(o){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(o))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,rs.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const o=this.__data,r=this.__dataPending,s=this.__dataOld;this._shouldPropertiesChange(o,r,s)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(o,r,s)),this.__dataCounter--}_shouldPropertiesChange(o,r,s){return!!r}_propertiesChanged(o,r,s){}_shouldPropertyChange(o,r,s){return s!==r&&(s===s||r===r)}attributeChangedCallback(o,r,s,n){r!==s&&this._attributeToProperty(o,s),super.attributeChangedCallback&&super.attributeChangedCallback(o,r,s,n)}_attributeToProperty(o,r,s){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[o]||o;this[a]=this._deserializeValue(r,s||this.constructor.typeForProperty(a))}}_propertyToAttribute(o,r,s){this.__serializing=!0,s=arguments.length<3?this[o]:s,this._valueToNodeAttribute(this,s,r||this.constructor.attributeNameForProperty(o)),this.__serializing=!1}_valueToNodeAttribute(o,r,s){const n=this._serializeValue(r);(s==="class"||s==="name"||s==="slot")&&(o=M(o)),n===void 0?o.removeAttribute(s):o.setAttribute(s,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(o){switch(typeof o){case"boolean":return o?"":void 0;default:return o!=null?o.toString():void 0}}_deserializeValue(o,r){switch(r){case Boolean:return o!==null;case Number:return Number(o);default:return o}}}return t});/**
1182
+ @license
1183
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1184
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1185
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1186
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1187
+ Code distributed by Google as part of the polymer project is also
1188
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1189
+ */const er={};let _t=HTMLElement.prototype;for(;_t;){let i=Object.getOwnPropertyNames(_t);for(let t=0;t<i.length;t++)er[i[t]]=!0;_t=Object.getPrototypeOf(_t)}const os=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function ss(i,t){if(!er[t]){let e=i[t];e!==void 0&&(i.__data?i._setPendingProperty(t,e):(i.__dataProto?i.hasOwnProperty(JSCompiler_renameProperty("__dataProto",i))||(i.__dataProto=Object.create(i.__dataProto)):i.__dataProto={},i.__dataProto[t]=e))}}const ns=b(i=>{const t=tr(i);class e extends t{static createPropertiesForAttributes(){let r=this.observedAttributes;for(let s=0;s<r.length;s++)this.prototype._createPropertyAccessor(Xi(r[s]))}static attributeNameForProperty(r){return St(r)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(r){for(let s in r)this._setProperty(s,r[s])}_ensureAttribute(r,s){const n=this;n.hasAttribute(r)||this._valueToNodeAttribute(n,s,r)}_serializeValue(r){switch(typeof r){case"object":if(r instanceof Date)return r.toString();if(r){if(os(r))return r;try{return JSON.stringify(r)}catch(s){return""}}default:return super._serializeValue(r)}}_deserializeValue(r,s){let n;switch(s){case Object:try{n=JSON.parse(r)}catch(a){n=r}break;case Array:try{n=JSON.parse(r)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${r}`)}break;case Date:n=isNaN(r)?String(r):Number(r),n=new Date(n);break;default:n=super._deserializeValue(r,s);break}return n}_definePropertyAccessor(r,s){ss(this,r),super._definePropertyAccessor(r,s)}_hasAccessor(r){return this.__dataHasAccessor&&this.__dataHasAccessor[r]}_isPropertyPending(r){return!!(this.__dataPending&&r in this.__dataPending)}}return e});/**
1190
+ @license
1191
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1192
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1193
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1194
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1195
+ Code distributed by Google as part of the polymer project is also
1196
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1197
+ */const as={"dom-if":!0,"dom-repeat":!0};let ti=!1,ei=!1;function ls(){if(!ti){ti=!0;const i=document.createElement("textarea");i.placeholder="a",ei=i.placeholder===i.textContent}return ei}function ds(i){ls()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const cs=(()=>{const i=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,o)=>{const r=e.getAttribute(o);if(i&&o.startsWith("on-")){t.setAttribute(o,i.createScript(r,o));return}t.setAttribute(o,r)}})();function us(i){let t=i.getAttribute("is");if(t&&as[t]){let e=i;for(e.removeAttribute("is"),i=e.ownerDocument.createElement(t),e.parentNode.replaceChild(i,e),i.appendChild(e);e.attributes.length;){const{name:o}=e.attributes[0];cs(i,e,o),e.removeAttribute(o)}}return i}function ir(i,t){let e=t.parentInfo&&ir(i,t.parentInfo);if(e){for(let o=e.firstChild,r=0;o;o=o.nextSibling)if(t.parentIndex===r++)return o}else return i}function hs(i,t,e,o){o.id&&(t[o.id]=e)}function ps(i,t,e){if(e.events&&e.events.length)for(let o=0,r=e.events,s;o<r.length&&(s=r[o]);o++)i._addMethodEventListenerToNode(t,s.name,s.value,i)}function fs(i,t,e,o){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=o)}function ms(i,t,e){return i=i._methodHost||i,function(r){i[e]?i[e](r,r.detail):console.warn("listener method `"+e+"` not defined")}}const _s=b(i=>{class t extends i{static _parseTemplate(o,r){if(!o._templateInfo){let s=o._templateInfo={};s.nodeInfoList=[],s.nestedTemplate=!!r,s.stripWhiteSpace=r&&r.stripWhiteSpace||o.hasAttribute&&o.hasAttribute("strip-whitespace"),this._parseTemplateContent(o,s,{parent:null})}return o._templateInfo}static _parseTemplateContent(o,r,s){return this._parseTemplateNode(o.content,r,s)}static _parseTemplateNode(o,r,s){let n=!1,a=o;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,r,s)||n:a.localName==="slot"&&(r.hasInsertionPoint=!0),ds(a),a.firstChild&&this._parseTemplateChildNodes(a,r,s),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,r,s)||n),n||s.noted}static _parseTemplateChildNodes(o,r,s){if(!(o.localName==="script"||o.localName==="style"))for(let n=o.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=us(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let c=l;for(;c&&c.nodeType===Node.TEXT_NODE;)n.textContent+=c.textContent,l=c.nextSibling,o.removeChild(c),c=l;if(r.stripWhiteSpace&&!n.textContent.trim()){o.removeChild(n);continue}}let d={parentIndex:a,parentInfo:s};this._parseTemplateNode(n,r,d)&&(d.infoIndex=r.nodeInfoList.push(d)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(o,r,s){let n=o,a=this._parseTemplate(n,r);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),s.templateInfo=a,!0}static _parseTemplateNodeAttributes(o,r,s){let n=!1,a=Array.from(o.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(o,r,s,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(o,r,s,n,a){return n.slice(0,3)==="on-"?(o.removeAttribute(n),s.events=s.events||[],s.events.push({name:n.slice(3),value:a}),!0):n==="id"?(s.id=a,!0):!1}static _contentForTemplate(o){let r=o._templateInfo;return r&&r.content||o.content}_stampTemplate(o,r){o&&!o.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(o),r=r||this.constructor._parseTemplate(o);let s=r.nodeInfoList,n=r.content||o.content,a=document.importNode(n,!0);a.__noInsertionPoint=!r.hasInsertionPoint;let l=a.nodeList=new Array(s.length);a.$={};for(let d=0,c=s.length,u;d<c&&(u=s[d]);d++){let h=l[d]=ir(a,u);hs(this,a.$,h,u),fs(this,h,u,r),ps(this,h,u)}return a=a,a}_addMethodEventListenerToNode(o,r,s,n){n=n||o;let a=ms(n,r,s);return this._addEventListenerToNode(o,r,a),a}_addEventListenerToNode(o,r,s){o.addEventListener(r,s)}_removeEventListenerFromNode(o,r,s){o.removeEventListener(r,s)}}return t});/**
1198
+ * @fileoverview
1199
+ * @suppress {checkPrototypalTypes}
1200
+ * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1201
+ * This code may only be used under the BSD style license found at
1202
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
1203
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
1204
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1205
+ * Google as part of the polymer project is also subject to an additional IP
1206
+ * rights grant found at http://polymer.github.io/PATENTS.txt
1207
+ */let ut=0;const ht=[],f={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},rr="__computeInfo",gs=/[A-Z]/;function Bt(i,t,e){let o=i[t];if(!o)o=i[t]={};else if(!i.hasOwnProperty(t)&&(o=i[t]=Object.create(i[t]),e))for(let r in o){let s=o[r],n=o[r]=Array(s.length);for(let a=0;a<s.length;a++)n[a]=s[a]}return o}function et(i,t,e,o,r,s){if(t){let n=!1;const a=ut++;for(let l in e){let d=r?F(l):l,c=t[d];if(c)for(let u=0,h=c.length,p;u<h&&(p=c[u]);u++)(!p.info||p.info.lastRun!==a)&&(!r||ve(l,p.trigger))&&(p.info&&(p.info.lastRun=a),p.fn(i,l,e,o,p.info,r,s),n=!0)}return n}return!1}function bs(i,t,e,o,r,s,n,a){let l=!1,d=n?F(o):o,c=t[d];if(c)for(let u=0,h=c.length,p;u<h&&(p=c[u]);u++)(!p.info||p.info.lastRun!==e)&&(!n||ve(o,p.trigger))&&(p.info&&(p.info.lastRun=e),p.fn(i,o,r,s,p.info,n,a),l=!0);return l}function ve(i,t){if(t){let e=t.name;return e==i||!!(t.structured&&Wi(e,i))||!!(t.wildcard&&dt(e,i))}else return!0}function ii(i,t,e,o,r){let s=typeof r.method=="string"?i[r.method]:r.method,n=r.property;s?s.call(i,i.__data[n],o[n]):r.dynamicFn||console.warn("observer method `"+r.method+"` not defined")}function vs(i,t,e,o,r){let s=i[f.NOTIFY],n,a=ut++;for(let d in t)t[d]&&(s&&bs(i,s,a,d,e,o,r)||r&&ys(i,d,e))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function ys(i,t,e){let o=F(t);if(o!==t){let r=St(o)+"-changed";return or(i,r,e[t],t),!0}return!1}function or(i,t,e,o){let r={value:e,queueProperty:!0};o&&(r.path=o),M(i).dispatchEvent(new CustomEvent(t,{detail:r}))}function xs(i,t,e,o,r,s){let a=(s?F(t):t)!=t?t:null,l=a?v(i,a):i.__data[t];a&&l===void 0&&(l=e[t]),or(i,r.eventName,l,a)}function As(i,t,e,o,r){let s,n=i.detail,a=n&&n.path;a?(o=ct(e,o,a),s=n&&n.value):s=i.currentTarget[e],s=r?!s:s,(!t[f.READ_ONLY]||!t[f.READ_ONLY][o])&&t._setPendingPropertyOrPath(o,s,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function ws(i,t,e,o,r){let s=i.__data[t];At&&(s=At(s,r.attrName,"attribute",i)),i._propertyToAttribute(t,r.attrName,s)}function Es(i,t,e,o){let r=i[f.COMPUTE];if(r)if(Bo){ut++;const s=Ps(i),n=[];for(let l in t)ri(l,r,n,s,o);let a;for(;a=n.shift();)sr(i,"",t,e,a)&&ri(a.methodInfo,r,n,s,o);Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),i.__dataPending=null}else{let s=t;for(;et(i,r,s,e,o);)Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),s=i.__dataPending,i.__dataPending=null}}const Cs=(i,t,e)=>{let o=0,r=t.length-1,s=-1;for(;o<=r;){const n=o+r>>1,a=e.get(t[n].methodInfo)-e.get(i.methodInfo);if(a<0)o=n+1;else if(a>0)r=n-1;else{s=n;break}}s<0&&(s=r+1),t.splice(s,0,i)},ri=(i,t,e,o,r)=>{const s=r?F(i):i,n=t[s];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==ut&&(!r||ve(i,l.trigger))&&(l.info.lastRun=ut,Cs(l.info,e,o))}};function Ps(i){let t=i.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=i[f.COMPUTE];let{counts:o,ready:r,total:s}=Ss(i),n;for(;n=r.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--s,--o[d]===0&&r.push(d)})}s!==0&&console.warn(`Computed graph for ${i.localName} incomplete; circular?`),i.constructor.__orderedComputedDeps=t}return t}function Ss(i){const t=i[rr],e={},o=i[f.COMPUTE],r=[];let s=0;for(let n in t){const a=t[n];s+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in o)t[n]||r.push(n);return{counts:e,ready:r,total:s}}function sr(i,t,e,o,r){let s=te(i,t,e,o,r);if(s===ht)return!1;let n=r.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,s,!0):(i[n]=s,!1)}function Ts(i,t,e){let o=i.__dataLinkedPaths;if(o){let r;for(let s in o){let n=o[s];dt(s,t)?(r=ct(s,n,t),i._setPendingPropertyOrPath(r,e,!0,!0)):dt(n,t)&&(r=ct(n,s,t),i._setPendingPropertyOrPath(r,e,!0,!0))}}}function Ft(i,t,e,o,r,s,n){e.bindings=e.bindings||[];let a={kind:o,target:r,parts:s,literal:n,isCompound:s.length!==1};if(e.bindings.push(a),Is(a)){let{event:d,negate:c}=a.parts[0];a.listenerEvent=d||St(r)+"-changed",a.listenerNegate=c}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let c=a.parts[d];c.compoundIndex=d,Ns(i,t,a,c,l)}}function Ns(i,t,e,o,r){if(!o.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let s=o.dependencies,n={index:r,binding:e,part:o,evaluator:i};for(let a=0;a<s.length;a++){let l=s[a];typeof l=="string"&&(l=ar(l),l.wildcard=!0),i._addTemplatePropertyEffect(t,l.rootProperty,{fn:ks,info:n,trigger:l})}}}function ks(i,t,e,o,r,s,n){let a=n[r.index],l=r.binding,d=r.part;if(s&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[t];t=ct(d.source,l.target,t),a._setPendingPropertyOrPath(t,c,!1,!0)&&i._enqueueClient(a)}else{let c=r.evaluator._evaluateBinding(i,d,t,e,o,s);c!==ht&&Os(i,a,l,d,c)}}function Os(i,t,e,o,r){if(r=Ms(t,r,e,o),At&&(r=At(r,e.target,e.kind,t)),e.kind=="attribute")i._valueToNodeAttribute(t,r,e.target);else{let s=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[s]?(!t[f.READ_ONLY]||!t[f.READ_ONLY][s])&&t._setPendingProperty(s,r)&&i._enqueueClient(t):i._setUnmanagedPropertyToNode(t,s,r)}}function Ms(i,t,e,o){if(e.isCompound){let r=i.__dataCompoundStorage[e.target];r[o.compoundIndex]=t,t=r.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(i.localName==="input"||i.localName==="textarea"))&&(t=t==null?"":t),t}function Is(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function zs(i,t){let{nodeList:e,nodeInfoList:o}=t;if(o.length)for(let r=0;r<o.length;r++){let s=o[r],n=e[r],a=s.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];Ds(n,d),Ls(n,i,d)}n.__dataHost=i}}function Ds(i,t){if(t.isCompound){let e=i.__dataCompoundStorage||(i.__dataCompoundStorage={}),o=t.parts,r=new Array(o.length);for(let n=0;n<o.length;n++)r[n]=o[n].literal;let s=t.target;e[s]=r,t.literal&&t.kind=="property"&&(s==="className"&&(i=M(i)),i[s]=t.literal)}}function Ls(i,t,e){if(e.listenerEvent){let o=e.parts[0];i.addEventListener(e.listenerEvent,function(r){As(r,t,e.target,o.source,o.negate)})}}function oi(i,t,e,o,r,s){s=t.static||s&&(typeof s!="object"||s[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:r,dynamicFn:s};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||i._addPropertyEffect(l.rootProperty,e,{fn:o,info:n,trigger:l});return s&&i._addPropertyEffect(t.methodName,e,{fn:o,info:n}),n}function te(i,t,e,o,r){let s=i._methodHost||i,n=s[r.methodName];if(n){let a=i._marshalArgs(r.args,t,e);return a===ht?ht:n.apply(s,a)}else r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const $s=[],nr="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Rs="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",Bs="(?:'(?:[^'\\\\]|\\\\.)*')",Fs='(?:"(?:[^"\\\\]|\\\\.)*")',Hs="(?:"+Bs+"|"+Fs+")",si="(?:("+nr+"|"+Rs+"|"+Hs+")\\s*)",Vs="(?:"+si+"(?:,\\s*"+si+")*)",Us="(?:\\(\\s*(?:"+Vs+"?)\\)\\s*)",js="("+nr+"\\s*"+Us+"?)",Ys="(\\[\\[|{{)\\s*",qs="(?:]]|}})",Gs="(?:(!)\\s*)?",Ws=Ys+Gs+js+qs,ni=new RegExp(Ws,"g");function ai(i){let t="";for(let e=0;e<i.length;e++){let o=i[e].literal;t+=o||""}return t}function Ht(i){let t=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let o={methodName:t[1],static:!0,args:$s};if(t[2].trim()){let r=t[2].replace(/\\,/g,"&comma;").split(",");return Ks(r,o)}else return o}return null}function Ks(i,t){return t.args=i.map(function(e){let o=ar(e);return o.literal||(t.static=!1),o},this),t}function ar(i){let t=i.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},o=t[0];switch(o==="-"&&(o=t[1]),o>="0"&&o<="9"&&(o="#"),o){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=F(t),e.structured=Zt(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function li(i,t,e){let o=v(i,e);return o===void 0&&(o=t[e]),o}function lr(i,t,e,o){const r={indexSplices:o};Jt&&!i._overrideLegacyUndefined&&(t.splices=r),i.notifyPath(e+".splices",r),i.notifyPath(e+".length",t.length),Jt&&!i._overrideLegacyUndefined&&(r.indexSplices=[])}function J(i,t,e,o,r,s){lr(i,t,e,[{index:o,addedCount:r,removed:s,object:t,type:"splice"}])}function Xs(i){return i[0].toUpperCase()+i.substring(1)}const dr=b(i=>{const t=_s(ns(i));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return f}_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(Z.length){let r=Z[Z.length-1];r._enqueueClient(this),this.__dataHost=r}}_initializeProtoProperties(r){this.__data=Object.create(r),this.__dataPending=Object.create(r),this.__dataOld={}}_initializeInstanceProperties(r){let s=this[f.READ_ONLY];for(let n in r)(!s||!s[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=r[n])}_addPropertyEffect(r,s,n){this._createPropertyAccessor(r,s==f.READ_ONLY);let a=Bt(this,s,!0)[r];a||(a=this[s][r]=[]),a.push(n)}_removePropertyEffect(r,s,n){let a=Bt(this,s,!0)[r],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(r,s){let n=this[s];return!!(n&&n[r])}_hasReadOnlyEffect(r){return this._hasPropertyEffect(r,f.READ_ONLY)}_hasNotifyEffect(r){return this._hasPropertyEffect(r,f.NOTIFY)}_hasReflectEffect(r){return this._hasPropertyEffect(r,f.REFLECT)}_hasComputedEffect(r){return this._hasPropertyEffect(r,f.COMPUTE)}_setPendingPropertyOrPath(r,s,n,a){if(a||F(Array.isArray(r)?r[0]:r)!==r){if(!a){let l=v(this,r);if(r=Qe(this,r,s),!r||!super._shouldPropertyChange(r,s,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(r,s,n))return Ts(this,r,s),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[r])return this._setPendingProperty(r,s,n);this[r]=s}return!1}_setUnmanagedPropertyToNode(r,s,n){(n!==r[s]||typeof n=="object")&&(s==="className"&&(r=M(r)),r[s]=n)}_setPendingProperty(r,s,n){let a=this.__dataHasPaths&&Zt(r),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(r,s,l[r])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),r in this.__dataOld||(this.__dataOld[r]=this.__data[r]),a?this.__dataTemp[r]=s:this.__data[r]=s,this.__dataPending[r]=s,(a||this[f.NOTIFY]&&this[f.NOTIFY][r])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[r]=n),!0):!1}_setProperty(r,s){this._setPendingProperty(r,s,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(r){this.__dataPendingClients=this.__dataPendingClients||[],r!==this&&this.__dataPendingClients.push(r)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let r=this.__dataPendingClients;if(r){this.__dataPendingClients=null;for(let s=0;s<r.length;s++){let n=r[s];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(r,s){for(let n in r)(s||!this[f.READ_ONLY]||!this[f.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,r[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(r,s,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Es(this,s,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,a),this._flushClients(),et(this,this[f.REFLECT],s,n,a),et(this,this[f.OBSERVE],s,n,a),l&&vs(this,l,s,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(r,s,n){this[f.PROPAGATE]&&et(this,this[f.PROPAGATE],r,s,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,r,s,n)}_runEffectsForTemplate(r,s,n,a){const l=(d,c)=>{et(this,r.propertyEffects,d,n,c,r.nodeList);for(let u=r.firstChild;u;u=u.nextSibling)this._runEffectsForTemplate(u,d,n,c)};r.runEffects?r.runEffects(l,s,a):l(s,a)}linkPaths(r,s){r=tt(r),s=tt(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[r]=s}unlinkPaths(r){r=tt(r),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[r]}notifySplices(r,s){let n={path:""},a=v(this,r,n);lr(this,a,n.path,s)}get(r,s){return v(s||this,r)}set(r,s,n){n?Qe(n,r,s):(!this[f.READ_ONLY]||!this[f.READ_ONLY][r])&&this._setPendingPropertyOrPath(r,s,!0)&&this._invalidateProperties()}push(r,...s){let n={path:""},a=v(this,r,n),l=a.length,d=a.push(...s);return s.length&&J(this,a,n.path,l,s.length,[]),d}pop(r){let s={path:""},n=v(this,r,s),a=!!n.length,l=n.pop();return a&&J(this,n,s.path,n.length,0,[l]),l}splice(r,s,n,...a){let l={path:""},d=v(this,r,l);s<0?s=d.length-Math.floor(-s):s&&(s=Math.floor(s));let c;return arguments.length===2?c=d.splice(s):c=d.splice(s,n,...a),(a.length||c.length)&&J(this,d,l.path,s,a.length,c),c}shift(r){let s={path:""},n=v(this,r,s),a=!!n.length,l=n.shift();return a&&J(this,n,s.path,0,0,[l]),l}unshift(r,...s){let n={path:""},a=v(this,r,n),l=a.unshift(...s);return s.length&&J(this,a,n.path,0,s.length,[]),l}notifyPath(r,s){let n;if(arguments.length==1){let a={path:""};s=v(this,r,a),n=a.path}else Array.isArray(r)?n=tt(r):n=r;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(r,s){this._addPropertyEffect(r,f.READ_ONLY),s&&(this["_set"+Xs(r)]=function(n){this._setProperty(r,n)})}_createPropertyObserver(r,s,n){let a={property:r,method:s,dynamicFn:!!n};this._addPropertyEffect(r,f.OBSERVE,{fn:ii,info:a,trigger:{name:r}}),n&&this._addPropertyEffect(s,f.OBSERVE,{fn:ii,info:a,trigger:{name:s}})}_createMethodObserver(r,s){let n=Ht(r);if(!n)throw new Error("Malformed observer expression '"+r+"'");oi(this,n,f.OBSERVE,te,null,s)}_createNotifyingProperty(r){this._addPropertyEffect(r,f.NOTIFY,{fn:xs,info:{eventName:St(r)+"-changed",property:r}})}_createReflectedProperty(r){let s=this.constructor.attributeNameForProperty(r);s[0]==="-"?console.warn("Property "+r+" cannot be reflected to attribute "+s+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(r,f.REFLECT,{fn:ws,info:{attrName:s}})}_createComputedProperty(r,s,n){let a=Ht(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=oi(this,a,f.COMPUTE,sr,r,n);Bt(this,rr)[r]=l}_marshalArgs(r,s,n){const a=this.__data,l=[];for(let d=0,c=r.length;d<c;d++){let{name:u,structured:h,wildcard:p,value:m,literal:w}=r[d];if(!w)if(p){const E=dt(u,s),y=li(a,n,E?s:u);m={path:E?s:u,value:y,base:E?v(a,u):y}}else m=h?li(a,n,u):a[u];if(Jt&&!this._overrideLegacyUndefined&&m===void 0&&r.length>1)return ht;l[d]=m}return l}static addPropertyEffect(r,s,n){this.prototype._addPropertyEffect(r,s,n)}static createPropertyObserver(r,s,n){this.prototype._createPropertyObserver(r,s,n)}static createMethodObserver(r,s){this.prototype._createMethodObserver(r,s)}static createNotifyingProperty(r){this.prototype._createNotifyingProperty(r)}static createReadOnlyProperty(r,s){this.prototype._createReadOnlyProperty(r,s)}static createReflectedProperty(r){this.prototype._createReflectedProperty(r)}static createComputedProperty(r,s,n){this.prototype._createComputedProperty(r,s,n)}static bindTemplate(r){return this.prototype._bindTemplate(r)}_bindTemplate(r,s){let n=this.constructor._parseTemplate(r),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(s)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=r._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(r,s,n){let a=r.hostProps=r.hostProps||{};a[s]=!0;let l=r.propertyEffects=r.propertyEffects||{};(l[s]=l[s]||[]).push(n)}_stampTemplate(r,s){s=s||this._bindTemplate(r,!0),Z.push(this);let n=super._stampTemplate(r,s);if(Z.pop(),s.nodeList=n.nodeList,!s.wasPreBound){let a=s.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=s,zs(this,s),this.__dataClientsReady&&(this._runEffectsForTemplate(s,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(r){const s=r.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=s;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),s.nextSibling=s.previousSibling=null;let d=s.childNodes;for(let c=0;c<d.length;c++){let u=d[c];M(M(u).parentNode).removeChild(u)}}static _parseTemplateNode(r,s,n){let a=t._parseTemplateNode.call(this,r,s,n);if(r.nodeType===Node.TEXT_NODE){let l=this._parseBindings(r.textContent,s);l&&(r.textContent=ai(l)||" ",Ft(this,s,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(r,s,n,a,l){let d=this._parseBindings(l,s);if(d){let c=a,u="property";gs.test(a)?u="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),u="attribute");let h=ai(d);return h&&u=="attribute"&&(a=="class"&&r.hasAttribute("class")&&(h+=" "+r.getAttribute(a)),r.setAttribute(a,h)),u=="attribute"&&c=="disable-upgrade$"&&r.setAttribute(a,""),r.localName==="input"&&c==="value"&&r.setAttribute(c,""),r.removeAttribute(c),u==="property"&&(a=Xi(a)),Ft(this,s,n,u,a,d,h),!0}else return t._parseTemplateNodeAttribute.call(this,r,s,n,a,l)}static _parseTemplateNestedTemplate(r,s,n){let a=t._parseTemplateNestedTemplate.call(this,r,s,n);const l=r.parentNode,d=n.templateInfo,c=l.localName==="dom-if",u=l.localName==="dom-repeat";We&&(c||u)&&(l.removeChild(r),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let h=d.hostProps;if(Fo&&c)h&&(s.hostProps=Object.assign(s.hostProps||{},h),We||(n.parentInfo.noted=!0));else{let p="{";for(let m in h){let w=[{mode:p,source:m,dependencies:[m],hostProp:!0}];Ft(this,s,n,"property","_host_"+m,w)}}return a}static _parseBindings(r,s){let n=[],a=0,l;for(;(l=ni.exec(r))!==null;){l.index>a&&n.push({literal:r.slice(a,l.index)});let d=l[1][0],c=!!l[2],u=l[3].trim(),h=!1,p="",m=-1;d=="{"&&(m=u.indexOf("::"))>0&&(p=u.substring(m+2),u=u.substring(0,m),h=!0);let w=Ht(u),E=[];if(w){let{args:y,methodName:x}=w;for(let Mt=0;Mt<y.length;Mt++){let ze=y[Mt];ze.literal||E.push(ze)}let H=s.dynamicFns;(H&&H[x]||w.static)&&(E.push(x),w.dynamicFn=!0)}else E.push(u);n.push({source:u,mode:d,negate:c,customEvent:h,signature:w,dependencies:E,event:p}),a=ni.lastIndex}if(a&&a<r.length){let d=r.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(r,s,n,a,l,d){let c;return s.signature?c=te(r,n,a,l,s.signature):n!=s.source?c=v(r,s.source):d&&Zt(n)?c=v(r,n):c=r.__data[n],s.negate&&(c=!c),c}}return e}),Z=[];/**
1208
+ @license
1209
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1210
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1211
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1212
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1213
+ Code distributed by Google as part of the polymer project is also
1214
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1215
+ */function Js(i){const t={};for(let e in i){const o=i[e];t[e]=typeof o=="function"?{type:o}:o}return t}const Zs=b(i=>{const t=tr(i);function e(s){const n=Object.getPrototypeOf(s);return n.prototype instanceof r?n:null}function o(s){if(!s.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",s))){let n=null;if(s.hasOwnProperty(JSCompiler_renameProperty("properties",s))){const a=s.properties;a&&(n=Js(a))}s.__ownProperties=n}return s.__ownProperties}class r extends t{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=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=o(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,o(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 r});/**
1216
+ * @fileoverview
1217
+ * @suppress {checkPrototypalTypes}
1218
+ * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1219
+ * This code may only be used under the BSD style license found at
1220
+ * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
1221
+ * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
1222
+ * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1223
+ * Google as part of the polymer project is also subject to an additional IP
1224
+ * rights grant found at http://polymer.github.io/PATENTS.txt
1225
+ */const Qs="3.5.2",di=window.ShadyCSS&&window.ShadyCSS.cssBuild,tn=b(i=>{const t=Zs(dr(i));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let c in d){let u=d[c];"value"in u&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=u)}}return l.__propertyDefaults}function o(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function r(l,d,c,u){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,c.computed,u)),c.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):c.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),c.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):c.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),c.observer&&l._createPropertyObserver(d,c.observer,u[c.observer]),l._addPropertyToAttributeMap(d)}function s(l,d,c,u){if(!di){const h=d.content.querySelectorAll("style"),p=qi(d),m=Ko(c),w=d.content.firstElementChild;for(let y=0;y<m.length;y++){let x=m[y];x.textContent=l._processStyleText(x.textContent,u),d.content.insertBefore(x,w)}let E=0;for(let y=0;y<p.length;y++){let x=p[y],H=h[E];H!==x?(x=x.cloneNode(!0),H.parentNode.insertBefore(x,H)):E++,x.textContent=l._processStyleText(x.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,c),Vo&&di&&Do){const h=d.content.querySelectorAll("style");if(h){let p="";Array.from(h).forEach(m=>{p+=m.textContent,m.parentNode.removeChild(m)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(p)}}}function n(l){let d=null;if(l&&(!wt||$o)&&(d=lt.import(l,"template"),wt&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Qs}static _finalizeClass(){t._finalizeClass.call(this);const d=o(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):Vi||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let c in d)r(this.prototype,c,d[c],d)}static createObservers(d,c){const u=this.prototype;for(let h=0;h<d.length;h++)u._createMethodObserver(d[h],c)}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=ge(d.url);else{const c=lt.import(this.is);this._importPath=c&&c.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=Lo,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let c in d){let u=d[c];if(this._canApplyPropertyDefault(c)){let h=typeof u.value=="function"?u.value.call(this):u.value;this._hasAccessor(c)?this._setPendingProperty(c,h,!0):this[c]=h}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,c){return _e(d,c)}static _finalizeTemplate(d){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const u=this.importPath,h=u?ot(u):"";s(this,c,d,h),this.prototype._bindTemplate(c)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const c=M(this);if(c.attachShadow)return d?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:d}),c.shadowRoot.appendChild(d),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Ro&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,c){return!c&&this.importPath&&(c=ot(this.importPath)),ot(d,c)}static _parseTemplateContent(d,c,u){return c.dynamicFns=c.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,c,u)}static _addTemplatePropertyEffect(d,c,u){return Ui&&!(c in this._properties)&&!(u.info.part.signature&&u.info.part.signature.static)&&!u.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,c,u)}}return a});/**
1226
+ @license
1227
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1228
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1229
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1230
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1231
+ Code distributed by Google as part of the polymer project is also
1232
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1233
+ */const ci=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class cr{constructor(t,e){pr(t,e);const o=e.reduce((r,s,n)=>r+ur(s)+t[n+1],t[0]);this.value=o.toString()}toString(){return this.value}}function ur(i){if(i instanceof cr)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function en(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof cr)return ur(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const hr=function(t,...e){pr(t,e);const o=document.createElement("template");let r=e.reduce((s,n,a)=>s+en(n)+t[a+1],t[0]);return ci&&(r=ci.createHTML(r)),o.innerHTML=r,o},pr=(i,t)=>{if(!Array.isArray(i)||!Array.isArray(i.raw)||t.length!==i.length-1)throw new TypeError("Invalid call to the html template tag")};/**
1234
+ @license
1235
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1236
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1237
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1238
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1239
+ Code distributed by Google as part of the polymer project is also
1240
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1241
+ */const fr=tn(HTMLElement);/**
1242
+ * @license
1243
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1244
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1245
+ */const S=[];function ee(i,t,e=i.getAttribute("dir")){t?i.setAttribute("dir",t):e!=null&&i.removeAttribute("dir")}function ie(){return document.documentElement.getAttribute("dir")}function rn(){const i=ie();S.forEach(t=>{ee(t,i)})}const on=new MutationObserver(rn);on.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ye=i=>class extends i{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),ee(this,ie(),null))}attributeChangedCallback(e,o,r){if(super.attributeChangedCallback(e,o,r),e!=="dir")return;const s=ie(),n=r===s&&S.indexOf(this)===-1,a=!r&&o&&S.indexOf(this)===-1;n||a?(this.__subscribe(),ee(this,s,r)):r!==s&&o===s&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=S.includes(this),this.__unsubscribe()}_valueToNodeAttribute(e,o,r){r==="dir"&&o===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,o,r)}_attributeToProperty(e,o,r){e==="dir"&&!o?this.dir="":super._attributeToProperty(e,o,r)}__subscribe(){S.includes(this)||S.push(this)}__unsubscribe(){S.includes(this)&&S.splice(S.indexOf(this),1)}};/**
1246
+ * @license
1247
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1248
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1249
+ */const sn=i=>class extends i{static get properties(){return{disabled:{type:Boolean,reflectToAttribute:!0},readonly:{type:Boolean,reflectToAttribute:!0},invalid:{type:Boolean,reflectToAttribute:!0}}}ready(){super.ready(),this.addEventListener("pointerdown",e=>{e.target===this&&e.preventDefault()}),this.addEventListener("click",e=>{e.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach(o=>o.focus&&o.focus())})}};/**
1250
+ * @license
1251
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1252
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1253
+ */const nn=_`
1254
+ :host {
1255
+ display: flex;
1256
+ align-items: center;
1257
+ flex: 0 1 auto;
1258
+ border-radius:
1259
+ /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
1260
+ var(--vaadin-input-field-top-start-radius, var(--__border-radius))
1261
+ var(--vaadin-input-field-top-end-radius, var(--__border-radius))
1262
+ var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
1263
+ var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
1264
+ --_border-radius: var(--vaadin-input-field-border-radius, 0);
1265
+ --_input-border-width: var(--vaadin-input-field-border-width, 0);
1266
+ --_input-border-color: var(--vaadin-input-field-border-color, transparent);
1267
+ box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
1268
+ }
1269
+
1270
+ :host([dir='rtl']) {
1271
+ border-radius:
1272
+ /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
1273
+ var(--vaadin-input-field-top-end-radius, var(--_border-radius))
1274
+ var(--vaadin-input-field-top-start-radius, var(--_border-radius))
1275
+ var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
1276
+ var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
1277
+ }
1278
+
1279
+ :host([hidden]) {
1280
+ display: none !important;
1281
+ }
1282
+
1283
+ /* Reset the native input styles */
1284
+ ::slotted(input) {
1285
+ -webkit-appearance: none;
1286
+ -moz-appearance: none;
1287
+ flex: auto;
1288
+ white-space: nowrap;
1289
+ overflow: hidden;
1290
+ width: 100%;
1291
+ height: 100%;
1292
+ outline: none;
1293
+ margin: 0;
1294
+ padding: 0;
1295
+ border: 0;
1296
+ border-radius: 0;
1297
+ min-width: 0;
1298
+ font: inherit;
1299
+ line-height: normal;
1300
+ color: inherit;
1301
+ background-color: transparent;
1302
+ /* Disable default invalid style in Firefox */
1303
+ box-shadow: none;
1304
+ }
1305
+
1306
+ ::slotted(*) {
1307
+ flex: none;
1308
+ }
1309
+
1310
+ ::slotted(:is(input, textarea))::placeholder {
1311
+ /* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
1312
+ /* because ::slotted(...)::placeholder does not work in Safari. */
1313
+ font: inherit;
1314
+ color: inherit;
1315
+ /* Override default opacity in Firefox */
1316
+ opacity: 1;
1317
+ }
1318
+ `;/**
1319
+ * @license
1320
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1321
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1322
+ */N("vaadin-input-container",nn,{moduleId:"vaadin-input-container-styles"});class an extends sn($i(ye(fr))){static get is(){return"vaadin-input-container"}static get template(){return hr`
1323
+ <slot name="prefix"></slot>
1324
+ <slot></slot>
1325
+ <slot name="suffix"></slot>
1326
+ `}}de(an);const ln=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,vt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function dn(){function i(){return!0}return mr(i)}function cn(){try{return un()?!0:hn()?vt?!pn():!dn():!1}catch(i){return!1}}function un(){return localStorage.getItem("vaadin.developmentmode.force")}function hn(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function pn(){return!!(vt&&Object.keys(vt).map(t=>vt[t]).filter(t=>t.productionMode).length>0)}function mr(i,t){if(typeof i!="function")return;const e=ln.exec(i.toString());if(e)try{i=new Function(e[1])}catch(o){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",o)}return i(t)}window.Vaadin=window.Vaadin||{};const ui=function(i,t){if(window.Vaadin.developmentMode)return mr(i,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=cn());function fn(){/*! vaadin-dev-mode:start
1327
+ (function () {
1328
+ 'use strict';
1329
+
1330
+ var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
1331
+ return typeof obj;
1332
+ } : function (obj) {
1333
+ return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1334
+ };
1335
+
1336
+ var classCallCheck = function (instance, Constructor) {
1337
+ if (!(instance instanceof Constructor)) {
1338
+ throw new TypeError("Cannot call a class as a function");
1339
+ }
1340
+ };
1341
+
1342
+ var createClass = function () {
1343
+ function defineProperties(target, props) {
1344
+ for (var i = 0; i < props.length; i++) {
1345
+ var descriptor = props[i];
1346
+ descriptor.enumerable = descriptor.enumerable || false;
1347
+ descriptor.configurable = true;
1348
+ if ("value" in descriptor) descriptor.writable = true;
1349
+ Object.defineProperty(target, descriptor.key, descriptor);
1350
+ }
1351
+ }
1352
+
1353
+ return function (Constructor, protoProps, staticProps) {
1354
+ if (protoProps) defineProperties(Constructor.prototype, protoProps);
1355
+ if (staticProps) defineProperties(Constructor, staticProps);
1356
+ return Constructor;
1357
+ };
1358
+ }();
1359
+
1360
+ var getPolymerVersion = function getPolymerVersion() {
1361
+ return window.Polymer && window.Polymer.version;
1362
+ };
1363
+
1364
+ var StatisticsGatherer = function () {
1365
+ function StatisticsGatherer(logger) {
1366
+ classCallCheck(this, StatisticsGatherer);
1367
+
1368
+ this.now = new Date().getTime();
1369
+ this.logger = logger;
1370
+ }
1371
+
1372
+ createClass(StatisticsGatherer, [{
1373
+ key: 'frameworkVersionDetectors',
1374
+ value: function frameworkVersionDetectors() {
1375
+ return {
1376
+ 'Flow': function Flow() {
1377
+ if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
1378
+ var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
1379
+ return window.Vaadin.Flow.clients[key];
1380
+ }).filter(function (client) {
1381
+ return client.getVersionInfo;
1382
+ }).map(function (client) {
1383
+ return client.getVersionInfo().flow;
1384
+ });
1385
+ if (flowVersions.length > 0) {
1386
+ return flowVersions[0];
1387
+ }
1388
+ }
1389
+ },
1390
+ 'Vaadin Framework': function VaadinFramework() {
1391
+ if (window.vaadin && window.vaadin.clients) {
1392
+ var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
1393
+ return client.getVersionInfo;
1394
+ }).map(function (client) {
1395
+ return client.getVersionInfo().vaadinVersion;
1396
+ });
1397
+ if (frameworkVersions.length > 0) {
1398
+ return frameworkVersions[0];
1399
+ }
1400
+ }
1401
+ },
1402
+ 'AngularJs': function AngularJs() {
1403
+ if (window.angular && window.angular.version && window.angular.version) {
1404
+ return window.angular.version.full;
1405
+ }
1406
+ },
1407
+ 'Angular': function Angular() {
1408
+ if (window.ng) {
1409
+ var tags = document.querySelectorAll("[ng-version]");
1410
+ if (tags.length > 0) {
1411
+ return tags[0].getAttribute("ng-version");
1412
+ }
1413
+ return "Unknown";
1414
+ }
1415
+ },
1416
+ 'Backbone.js': function BackboneJs() {
1417
+ if (window.Backbone) {
1418
+ return window.Backbone.VERSION;
1419
+ }
1420
+ },
1421
+ 'React': function React() {
1422
+ var reactSelector = '[data-reactroot], [data-reactid]';
1423
+ if (!!document.querySelector(reactSelector)) {
1424
+ // React does not publish the version by default
1425
+ return "unknown";
1426
+ }
1427
+ },
1428
+ 'Ember': function Ember() {
1429
+ if (window.Em && window.Em.VERSION) {
1430
+ return window.Em.VERSION;
1431
+ } else if (window.Ember && window.Ember.VERSION) {
1432
+ return window.Ember.VERSION;
1433
+ }
1434
+ },
1435
+ 'jQuery': function (_jQuery) {
1436
+ function jQuery() {
1437
+ return _jQuery.apply(this, arguments);
1438
+ }
1439
+
1440
+ jQuery.toString = function () {
1441
+ return _jQuery.toString();
1442
+ };
1443
+
1444
+ return jQuery;
1445
+ }(function () {
1446
+ if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
1447
+ return jQuery.prototype.jquery;
1448
+ }
1449
+ }),
1450
+ 'Polymer': function Polymer() {
1451
+ var version = getPolymerVersion();
1452
+ if (version) {
1453
+ return version;
1454
+ }
1455
+ },
1456
+ 'LitElement': function LitElement() {
1457
+ var version = window.litElementVersions && window.litElementVersions[0];
1458
+ if (version) {
1459
+ return version;
1460
+ }
1461
+ },
1462
+ 'LitHtml': function LitHtml() {
1463
+ var version = window.litHtmlVersions && window.litHtmlVersions[0];
1464
+ if (version) {
1465
+ return version;
1466
+ }
1467
+ },
1468
+ 'Vue.js': function VueJs() {
1469
+ if (window.Vue) {
1470
+ return window.Vue.version;
1471
+ }
1472
+ }
1473
+ };
1474
+ }
1475
+ }, {
1476
+ key: 'getUsedVaadinElements',
1477
+ value: function getUsedVaadinElements(elements) {
1478
+ var version = getPolymerVersion();
1479
+ var elementClasses = void 0;
1480
+ // NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
1481
+ // Check all locations calling the method getEntries() in
1482
+ // https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
1483
+ // Currently it is only used by BootstrapHandler.
1484
+ if (version && version.indexOf('2') === 0) {
1485
+ // Polymer 2: components classes are stored in window.Vaadin
1486
+ elementClasses = Object.keys(window.Vaadin).map(function (c) {
1487
+ return window.Vaadin[c];
1488
+ }).filter(function (c) {
1489
+ return c.is;
1490
+ });
1491
+ } else {
1492
+ // Polymer 3: components classes are stored in window.Vaadin.registrations
1493
+ elementClasses = window.Vaadin.registrations || [];
1494
+ }
1495
+ elementClasses.forEach(function (klass) {
1496
+ var version = klass.version ? klass.version : "0.0.0";
1497
+ elements[klass.is] = { version: version };
1498
+ });
1499
+ }
1500
+ }, {
1501
+ key: 'getUsedVaadinThemes',
1502
+ value: function getUsedVaadinThemes(themes) {
1503
+ ['Lumo', 'Material'].forEach(function (themeName) {
1504
+ var theme;
1505
+ var version = getPolymerVersion();
1506
+ if (version && version.indexOf('2') === 0) {
1507
+ // Polymer 2: themes are stored in window.Vaadin
1508
+ theme = window.Vaadin[themeName];
1509
+ } else {
1510
+ // Polymer 3: themes are stored in custom element registry
1511
+ theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
1512
+ }
1513
+ if (theme && theme.version) {
1514
+ themes[themeName] = { version: theme.version };
1515
+ }
1516
+ });
1517
+ }
1518
+ }, {
1519
+ key: 'getFrameworks',
1520
+ value: function getFrameworks(frameworks) {
1521
+ var detectors = this.frameworkVersionDetectors();
1522
+ Object.keys(detectors).forEach(function (framework) {
1523
+ var detector = detectors[framework];
1524
+ try {
1525
+ var version = detector();
1526
+ if (version) {
1527
+ frameworks[framework] = { version: version };
1528
+ }
1529
+ } catch (e) {}
1530
+ });
1531
+ }
1532
+ }, {
1533
+ key: 'gather',
1534
+ value: function gather(storage) {
1535
+ var storedStats = storage.read();
1536
+ var gatheredStats = {};
1537
+ var types = ["elements", "frameworks", "themes"];
1538
+
1539
+ types.forEach(function (type) {
1540
+ gatheredStats[type] = {};
1541
+ if (!storedStats[type]) {
1542
+ storedStats[type] = {};
1543
+ }
1544
+ });
1545
+
1546
+ var previousStats = JSON.stringify(storedStats);
1547
+
1548
+ this.getUsedVaadinElements(gatheredStats.elements);
1549
+ this.getFrameworks(gatheredStats.frameworks);
1550
+ this.getUsedVaadinThemes(gatheredStats.themes);
1551
+
1552
+ var now = this.now;
1553
+ types.forEach(function (type) {
1554
+ var keys = Object.keys(gatheredStats[type]);
1555
+ keys.forEach(function (key) {
1556
+ if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
1557
+ storedStats[type][key] = { firstUsed: now };
1558
+ }
1559
+ // Discards any previously logged version number
1560
+ storedStats[type][key].version = gatheredStats[type][key].version;
1561
+ storedStats[type][key].lastUsed = now;
1562
+ });
1563
+ });
1564
+
1565
+ var newStats = JSON.stringify(storedStats);
1566
+ storage.write(newStats);
1567
+ if (newStats != previousStats && Object.keys(storedStats).length > 0) {
1568
+ this.logger.debug("New stats: " + newStats);
1569
+ }
1570
+ }
1571
+ }]);
1572
+ return StatisticsGatherer;
1573
+ }();
1574
+
1575
+ var StatisticsStorage = function () {
1576
+ function StatisticsStorage(key) {
1577
+ classCallCheck(this, StatisticsStorage);
1578
+
1579
+ this.key = key;
1580
+ }
1581
+
1582
+ createClass(StatisticsStorage, [{
1583
+ key: 'read',
1584
+ value: function read() {
1585
+ var localStorageStatsString = localStorage.getItem(this.key);
1586
+ try {
1587
+ return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
1588
+ } catch (e) {
1589
+ return {};
1590
+ }
1591
+ }
1592
+ }, {
1593
+ key: 'write',
1594
+ value: function write(data) {
1595
+ localStorage.setItem(this.key, data);
1596
+ }
1597
+ }, {
1598
+ key: 'clear',
1599
+ value: function clear() {
1600
+ localStorage.removeItem(this.key);
1601
+ }
1602
+ }, {
1603
+ key: 'isEmpty',
1604
+ value: function isEmpty() {
1605
+ var storedStats = this.read();
1606
+ var empty = true;
1607
+ Object.keys(storedStats).forEach(function (key) {
1608
+ if (Object.keys(storedStats[key]).length > 0) {
1609
+ empty = false;
1610
+ }
1611
+ });
1612
+
1613
+ return empty;
1614
+ }
1615
+ }]);
1616
+ return StatisticsStorage;
1617
+ }();
1618
+
1619
+ var StatisticsSender = function () {
1620
+ function StatisticsSender(url, logger) {
1621
+ classCallCheck(this, StatisticsSender);
1622
+
1623
+ this.url = url;
1624
+ this.logger = logger;
1625
+ }
1626
+
1627
+ createClass(StatisticsSender, [{
1628
+ key: 'send',
1629
+ value: function send(data, errorHandler) {
1630
+ var logger = this.logger;
1631
+
1632
+ if (navigator.onLine === false) {
1633
+ logger.debug("Offline, can't send");
1634
+ errorHandler();
1635
+ return;
1636
+ }
1637
+ logger.debug("Sending data to " + this.url);
1638
+
1639
+ var req = new XMLHttpRequest();
1640
+ req.withCredentials = true;
1641
+ req.addEventListener("load", function () {
1642
+ // Stats sent, nothing more to do
1643
+ logger.debug("Response: " + req.responseText);
1644
+ });
1645
+ req.addEventListener("error", function () {
1646
+ logger.debug("Send failed");
1647
+ errorHandler();
1648
+ });
1649
+ req.addEventListener("abort", function () {
1650
+ logger.debug("Send aborted");
1651
+ errorHandler();
1652
+ });
1653
+ req.open("POST", this.url);
1654
+ req.setRequestHeader("Content-Type", "application/json");
1655
+ req.send(data);
1656
+ }
1657
+ }]);
1658
+ return StatisticsSender;
1659
+ }();
1660
+
1661
+ var StatisticsLogger = function () {
1662
+ function StatisticsLogger(id) {
1663
+ classCallCheck(this, StatisticsLogger);
1664
+
1665
+ this.id = id;
1666
+ }
1667
+
1668
+ createClass(StatisticsLogger, [{
1669
+ key: '_isDebug',
1670
+ value: function _isDebug() {
1671
+ return localStorage.getItem("vaadin." + this.id + ".debug");
1672
+ }
1673
+ }, {
1674
+ key: 'debug',
1675
+ value: function debug(msg) {
1676
+ if (this._isDebug()) {
1677
+ console.info(this.id + ": " + msg);
1678
+ }
1679
+ }
1680
+ }]);
1681
+ return StatisticsLogger;
1682
+ }();
1683
+
1684
+ var UsageStatistics = function () {
1685
+ function UsageStatistics() {
1686
+ classCallCheck(this, UsageStatistics);
1687
+
1688
+ this.now = new Date();
1689
+ this.timeNow = this.now.getTime();
1690
+ this.gatherDelay = 10; // Delay between loading this file and gathering stats
1691
+ this.initialDelay = 24 * 60 * 60;
1692
+
1693
+ this.logger = new StatisticsLogger("statistics");
1694
+ this.storage = new StatisticsStorage("vaadin.statistics.basket");
1695
+ this.gatherer = new StatisticsGatherer(this.logger);
1696
+ this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
1697
+ }
1698
+
1699
+ createClass(UsageStatistics, [{
1700
+ key: 'maybeGatherAndSend',
1701
+ value: function maybeGatherAndSend() {
1702
+ var _this = this;
1703
+
1704
+ if (localStorage.getItem(UsageStatistics.optOutKey)) {
1705
+ return;
1706
+ }
1707
+ this.gatherer.gather(this.storage);
1708
+ setTimeout(function () {
1709
+ _this.maybeSend();
1710
+ }, this.gatherDelay * 1000);
1711
+ }
1712
+ }, {
1713
+ key: 'lottery',
1714
+ value: function lottery() {
1715
+ return true;
1716
+ }
1717
+ }, {
1718
+ key: 'currentMonth',
1719
+ value: function currentMonth() {
1720
+ return this.now.getYear() * 12 + this.now.getMonth();
1721
+ }
1722
+ }, {
1723
+ key: 'maybeSend',
1724
+ value: function maybeSend() {
1725
+ var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
1726
+ var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
1727
+
1728
+ if (!firstUse) {
1729
+ // Use a grace period to avoid interfering with tests, incognito mode etc
1730
+ firstUse = this.timeNow;
1731
+ localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
1732
+ }
1733
+
1734
+ if (this.timeNow < firstUse + this.initialDelay * 1000) {
1735
+ this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
1736
+ return;
1737
+ }
1738
+ if (this.currentMonth() <= monthProcessed) {
1739
+ this.logger.debug("This month has already been processed");
1740
+ return;
1741
+ }
1742
+ localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
1743
+ // Use random sampling
1744
+ if (this.lottery()) {
1745
+ this.logger.debug("Congratulations, we have a winner!");
1746
+ } else {
1747
+ this.logger.debug("Sorry, no stats from you this time");
1748
+ return;
1749
+ }
1750
+
1751
+ this.send();
1752
+ }
1753
+ }, {
1754
+ key: 'send',
1755
+ value: function send() {
1756
+ // Ensure we have the latest data
1757
+ this.gatherer.gather(this.storage);
1758
+
1759
+ // Read, send and clean up
1760
+ var data = this.storage.read();
1761
+ data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
1762
+ data["usageStatisticsVersion"] = UsageStatistics.version;
1763
+ var info = 'This request contains usage statistics gathered from the application running in development mode. \n\nStatistics gathering is automatically disabled and excluded from production builds.\n\nFor details and to opt-out, see https://github.com/vaadin/vaadin-usage-statistics.\n\n\n\n';
1764
+ var self = this;
1765
+ this.sender.send(info + JSON.stringify(data), function () {
1766
+ // Revert the 'month processed' flag
1767
+ localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
1768
+ });
1769
+ }
1770
+ }], [{
1771
+ key: 'version',
1772
+ get: function get$1() {
1773
+ return '2.1.2';
1774
+ }
1775
+ }, {
1776
+ key: 'firstUseKey',
1777
+ get: function get$1() {
1778
+ return 'vaadin.statistics.firstuse';
1779
+ }
1780
+ }, {
1781
+ key: 'monthProcessedKey',
1782
+ get: function get$1() {
1783
+ return 'vaadin.statistics.monthProcessed';
1784
+ }
1785
+ }, {
1786
+ key: 'optOutKey',
1787
+ get: function get$1() {
1788
+ return 'vaadin.statistics.optout';
1789
+ }
1790
+ }]);
1791
+ return UsageStatistics;
1792
+ }();
1793
+
1794
+ try {
1795
+ window.Vaadin = window.Vaadin || {};
1796
+ window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
1797
+ window.Vaadin.usageStatsChecker.maybeGatherAndSend();
1798
+ } catch (e) {
1799
+ // Intentionally ignored as this is not a problem in the app being developed
1800
+ }
1801
+
1802
+ }());
1803
+
1804
+ vaadin-dev-mode:end **/}const mn=function(){if(typeof ui=="function")return ui(fn)};/**
1805
+ * @license
1806
+ * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1807
+ * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1808
+ * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1809
+ * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1810
+ * Code distributed by Google as part of the polymer project is also
1811
+ * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1812
+ */let hi=0,_r=0;const Y=[];let re=!1;function _n(){re=!1;const i=Y.length;for(let t=0;t<i;t++){const e=Y[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}Y.splice(0,i),_r+=i}const gr={after(i){return{run(t){return window.setTimeout(t,i)},cancel(t){window.clearTimeout(t)}}},run(i,t){return window.setTimeout(i,t)},cancel(i){window.clearTimeout(i)}},br={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},vr={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},yr={run(i){re||(re=!0,queueMicrotask(()=>_n())),Y.push(i);const t=hi;return hi+=1,t},cancel(i){const t=i-_r;if(t>=0){if(!Y[t])throw new Error(`invalid async handle: ${i}`);Y[t]=null}}};/**
1813
+ @license
1814
+ Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1815
+ This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1816
+ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1817
+ The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1818
+ Code distributed by Google as part of the polymer project is also
1819
+ subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1820
+ */const pt=new Set;class B{static debounce(t,e,o){return t instanceof B?t._cancelAsync():t=new B,t.setConfig(e,o),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,pt.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),pt.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 xr(i){pt.add(i)}function gn(){const i=!!pt.size;return pt.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),i}const bn=()=>{let i;do i=gn();while(i)};/**
1821
+ * @license
1822
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1823
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1824
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){mn()};let Vt;const pi=new Set,vn=i=>class extends ye(i){static finalize(){super.finalize();const{is:e}=this;e&&!pi.has(e)&&(window.Vaadin.registrations.push(this),pi.add(e),window.Vaadin.developmentModeCallback&&(Vt=B.debounce(Vt,vr,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),xr(Vt)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1825
+ * @license
1826
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1827
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1828
+ */function yn(i){const t=[];for(;i;){if(i.nodeType===Node.DOCUMENT_NODE){t.push(i);break}if(i.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(i),i=i.host;continue}if(i.assignedSlot){i=i.assignedSlot;continue}i=i.parentNode}return t}function xe(i){return i?new Set(i.split(" ")):new Set}function Tt(i){return i?[...i].join(" "):""}function Ar(i,t,e){const o=xe(i.getAttribute(t));o.add(e),i.setAttribute(t,Tt(o))}function xn(i,t,e){const o=xe(i.getAttribute(t));if(o.delete(e),o.size===0){i.removeAttribute(t);return}i.setAttribute(t,Tt(o))}function An(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
1829
+ * @license
1830
+ * Copyright (c) 2023 - 2024 Vaadin Ltd.
1831
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1832
+ */class wr{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush()}))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const o=[],r=[];t.length&&(e=t.filter(s=>!this._storedNodes.includes(s))),this._storedNodes.length&&this._storedNodes.forEach((s,n)=>{const a=t.indexOf(s);a===-1?o.push(s):a!==n&&r.push(s)}),(e.length||o.length||r.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:r,removedNodes:o}),this._storedNodes=t}}/**
1833
+ * @license
1834
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1835
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1836
+ */let wn=0;function Er(){return wn++}/**
1837
+ * @license
1838
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1839
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1840
+ */class Nt extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${Er()}`}constructor(t,e,o,r={}){super();const{initializer:s,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=r;this.host=t,this.slotName=e,this.tagName=o,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=s,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,d||e))}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0)}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t))}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e))}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e)})}attachDefaultNode(){const{host:t,slotName:e,tagName:o}=this;let r=this.defaultNode;return!r&&o&&(r=document.createElement(o),r instanceof Element&&(e!==""&&r.setAttribute("slot",e),this.defaultNode=r)),r&&(this.node=r,t.appendChild(r)),r}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,o=this.host.shadowRoot.querySelector(e);this.__slotObserver=new wr(o,({addedNodes:r,removedNodes:s})=>{const n=this.multiple?this.nodes:[this.node],a=r.filter(l=>!An(l)&&!n.includes(l));s.length&&(this.nodes=n.filter(l=>!s.includes(l)),s.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)))})}}/**
1841
+ * @license
1842
+ * Copyright (c) 2022 - 2024 Vaadin Ltd.
1843
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1844
+ */class En extends Nt{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,this.ariaTarget!==void 0&&(t.ariaTarget=this.ariaTarget),this.context!==void 0&&(t.context=this.context),this.manual!==void 0&&(t.manual=this.manual),this.opened!==void 0&&(t.opened=this.opened),this.position!==void 0&&(t._position=this.position),this.shouldShow!==void 0&&(t.shouldShow=this.shouldShow),this.__notifyChange()}teardownNode(){this.__notifyChange()}setAriaTarget(t){this.ariaTarget=t;const e=this.node;e&&(e.ariaTarget=t)}setContext(t){this.context=t;const e=this.node;e&&(e.context=t)}setManual(t){this.manual=t;const e=this.node;e&&(e.manual=t)}setOpened(t){this.opened=t;const e=this.node;e&&(e.opened=t)}setPosition(t){this.position=t;const e=this.node;e&&(e._position=t)}setShouldShow(t){this.shouldShow=t;const e=this.node;e&&(e.shouldShow=t)}setTarget(t){this.target=t;const e=this.node;e&&(e.target=t)}__notifyChange(){this.dispatchEvent(new CustomEvent("tooltip-changed",{detail:{node:this.node}}))}}/**
1845
+ * @license
1846
+ * Copyright (c) 2021 - 2024 Vaadin Ltd..
1847
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1848
+ */const Cn=_`
1849
+ [part='clear-button'] {
1850
+ display: none;
1851
+ cursor: default;
1852
+ }
1853
+
1854
+ [part='clear-button']::before {
1855
+ content: '\\2715';
1856
+ }
1857
+
1858
+ :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
1859
+ display: block;
1860
+ }
1861
+ `;/**
1862
+ * @license
1863
+ * Copyright (c) 2021 - 2024 Vaadin Ltd..
1864
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1865
+ */const Pn=_`
1866
+ :host {
1867
+ display: inline-flex;
1868
+ outline: none;
1869
+ }
1870
+
1871
+ :host::before {
1872
+ content: '\\2003';
1873
+ width: 0;
1874
+ display: inline-block;
1875
+ /* Size and position this element on the same vertical position as the input-field element
1876
+ to make vertical align for the host element work as expected */
1877
+ }
1878
+
1879
+ :host([hidden]) {
1880
+ display: none !important;
1881
+ }
1882
+
1883
+ :host(:not([has-label])) [part='label'] {
1884
+ display: none;
1885
+ }
1886
+
1887
+ @media (forced-colors: active) {
1888
+ :host(:not([readonly])) [part='input-field'] {
1889
+ outline: 1px solid;
1890
+ outline-offset: -1px;
1891
+ }
1892
+ :host([focused]) [part='input-field'] {
1893
+ outline-width: 2px;
1894
+ }
1895
+ :host([disabled]) [part='input-field'] {
1896
+ outline-color: GrayText;
1897
+ }
1898
+ }
1899
+ `;/**
1900
+ * @license
1901
+ * Copyright (c) 2021 - 2024 Vaadin Ltd..
1902
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1903
+ */const Sn=_`
1904
+ [class$='container'] {
1905
+ display: flex;
1906
+ flex-direction: column;
1907
+ min-width: 100%;
1908
+ max-width: 100%;
1909
+ width: var(--vaadin-field-default-width, 12em);
1910
+ }
1911
+ `;/**
1912
+ * @license
1913
+ * Copyright (c) 2021 - 2024 Vaadin Ltd..
1914
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1915
+ */const Tn=[Pn,Sn,Cn];/**
1916
+ * @license
1917
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1918
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1919
+ */class Nn extends Nt{constructor(t,e,o={}){const{uniqueIdPrefix:r}=o;super(t,"input","input",{initializer:(s,n)=>{n.value&&(s.value=n.value),n.type&&s.setAttribute("type",n.type),s.id=this.defaultId,typeof e=="function"&&e(s)},useUniqueId:!0,uniqueIdPrefix:r})}}/**
1920
+ * @license
1921
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1922
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1923
+ */let Ae=!1;window.addEventListener("keydown",()=>{Ae=!0},{capture:!0});window.addEventListener("mousedown",()=>{Ae=!1},{capture:!0});function kn(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Cr(){return Ae}function On(i){const t=i.style;if(t.visibility==="hidden"||t.display==="none")return!0;const e=window.getComputedStyle(i);return e.visibility==="hidden"||e.display==="none"}function Mn(i,t){const e=Math.max(i.tabIndex,0),o=Math.max(t.tabIndex,0);return e===0||o===0?o>e:e>o}function In(i,t){const e=[];for(;i.length>0&&t.length>0;)Mn(i[0],t[0])?e.push(t.shift()):e.push(i.shift());return e.concat(i,t)}function oe(i){const t=i.length;if(t<2)return i;const e=Math.ceil(t/2),o=oe(i.slice(0,e)),r=oe(i.slice(e));return In(o,r)}function Pr(i){return i.matches('[tabindex="-1"]')?!1:i.matches("input, select, textarea, button, object")?i.matches(":not([disabled])"):i.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function zn(i){return i.getRootNode().activeElement===i}function Dn(i){if(!Pr(i))return-1;const t=i.getAttribute("tabindex")||0;return Number(t)}function Sr(i,t){if(i.nodeType!==Node.ELEMENT_NODE||On(i))return!1;const e=i,o=Dn(e);let r=o>0;o>=0&&t.push(e);let s=[];return e.localName==="slot"?s=e.assignedNodes({flatten:!0}):s=(e.shadowRoot||e).children,[...s].forEach(n=>{r=Sr(n,t)||r}),r}function Ln(i){const t=[];return Sr(i,t)?oe(t):t}/**
1924
+ * @license
1925
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1926
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1927
+ */const we=b(i=>class extends i{get _keyboardActive(){return Cr()}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}});/**
1928
+ * @license
1929
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1930
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1931
+ */const Ee=b(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0,sync:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
1932
+ * @license
1933
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1934
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1935
+ */const Tr=i=>class extends Ee(i){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,o){super._disabledChanged(e,o),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):o&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1)}};/**
1936
+ * @license
1937
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1938
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1939
+ */const Nr=b(i=>class extends we(Tr(i)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,o){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):o&&this._removeFocusListeners(o)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,o){super._disabledChanged(e,o),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
1940
+ * @license
1941
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1942
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1943
+ */const kt=b(i=>class extends i{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
1944
+ * @license
1945
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1946
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1947
+ */const Ut=new WeakMap;function $n(i){return Ut.has(i)||Ut.set(i,new Set),Ut.get(i)}function Rn(i,t){const e=document.createElement("style");e.textContent=i,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const kr=b(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),o=$n(e);this.slotStyles.forEach(r=>{o.has(r)||(Rn(r,e),o.add(r))})}});/**
1948
+ * @license
1949
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1950
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1951
+ */const Ot=i=>i.test(navigator.userAgent),se=i=>i.test(navigator.platform),Bn=i=>i.test(navigator.vendor);Ot(/Android/u);Ot(/Chrome/u)&&Bn(/Google Inc/u);Ot(/Firefox/u);const Fn=se(/^iPad/u)||se(/^Mac/u)&&navigator.maxTouchPoints>1,Hn=se(/^iPhone/u),Vn=Hn||Fn,Un=Ot(/^((?!chrome|android).)*safari/iu),Or=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
1952
+ * @license
1953
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1954
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1955
+ */const Ce=b(i=>class extends i{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e),this._hasInputValue=e&&e.length>0}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,o){e?this._addInputListeners(e):o&&this._removeInputListeners(o)}_hasInputValueChanged(e,o){(e||o)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const o=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=o.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,o){this._toggleHasValue(this._hasValue),!(e===""&&o===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const o=e.composedPath()[0];this._hasInputValue=o.value.length>0}});/**
1956
+ * @license
1957
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1958
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1959
+ */const jn=i=>class extends Ce(kt(i)){static get properties(){return{clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)))}_onClearButtonClick(e){e.preventDefault(),this._onClearAction()}_onClearButtonMouseDown(e){e.preventDefault(),Or||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}))}};/**
1960
+ * @license
1961
+ * Copyright (c) 2023 - 2024 Vaadin Ltd.
1962
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1963
+ */const jt=new Map;function Pe(i){return jt.has(i)||jt.set(i,new WeakMap),jt.get(i)}function Mr(i,t){i&&i.removeAttribute(t)}function Ir(i,t){if(!i||!t)return;const e=Pe(t);if(e.has(i))return;const o=xe(i.getAttribute(t));e.set(i,new Set(o))}function Yn(i,t){if(!i)return;const e=Pe(t),o=e.get(i);!o||o.size===0?i.removeAttribute(t):Ar(i,t,Tt(o)),e.delete(i)}function Yt(i,t,e={newId:null,oldId:null,fromUser:!1}){if(!i||!t)return;const{newId:o,oldId:r,fromUser:s}=e,n=Pe(t),a=n.get(i);if(!s&&a){r&&a.delete(r),o&&a.add(o);return}s&&(a?o||n.delete(i):Ir(i,t),Mr(i,t)),xn(i,t,r);const l=o||Tt(a);l&&Ar(i,t,l)}function qn(i,t){Ir(i,t),Mr(i,t)}/**
1964
+ * @license
1965
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1966
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1967
+ */class Gn{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label)}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t}setLabelId(t,e=!1){const o=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,o,e),e?this.__labelIdFromUser=t:this.__labelId=t}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t}__setAriaLabelToAttribute(t){this.__target&&(t?(qn(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Yn(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,o){Yt(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:o})}__setErrorIdToAriaAttribute(t,e){Yt(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){Yt(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")))}}/**
1968
+ * @license
1969
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1970
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1971
+ */const Se=b(i=>typeof i.prototype.addController=="function"?i:class extends i{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
1972
+ * @license
1973
+ * Copyright (c) 2022 - 2024 Vaadin Ltd.
1974
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1975
+ */const C=document.createElement("div");C.style.position="fixed";C.style.clip="rect(0px, 0px, 0px, 0px)";C.setAttribute("aria-live","polite");document.body.appendChild(C);let gt;function Wn(i,t={}){const e=t.mode||"polite",o=t.timeout===void 0?150:t.timeout;e==="alert"?(C.removeAttribute("aria-live"),C.removeAttribute("role"),gt=B.debounce(gt,br,()=>{C.setAttribute("role","alert")})):(gt&&gt.cancel(),C.removeAttribute("role"),C.setAttribute("aria-live",e)),C.textContent="",setTimeout(()=>{C.textContent=i},o)}/**
1976
+ * @license
1977
+ * Copyright (c) 2022 - 2024 Vaadin Ltd.
1978
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1979
+ */class Te extends Nt{constructor(t,e,o,r={}){super(t,e,o,zt(It({},r),{useUniqueId:!0}))}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(o=>{const r=o.target,s=r===this.node;o.type==="attributes"?s&&this.__updateNodeId(r):(s||r.parentElement===this.node)&&this.__notifyChange(this.node)})}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0})}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId)}}/**
1980
+ * @license
1981
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1982
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1983
+ */class Kn extends Te{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:o}=this,r=!!(o&&e&&e.trim()!=="");t&&(t.textContent=r?e:"",t.hidden=!r,r&&Wn(e,{mode:"assertive"})),super.updateDefaultNode(t)}}/**
1984
+ * @license
1985
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1986
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1987
+ */class Xn extends Te{constructor(t){super(t,"helper",null)}setHelperText(t){this.helperText=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{helperText:t}=this;if(t&&t.trim()!==""){this.tagName="div";const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
1988
+ * @license
1989
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1990
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1991
+ */class Jn extends Te{constructor(t){super(t,"label","label")}setLabel(t){this.label=t,this.getSlotChild()||this.restoreDefaultNode(),this.node===this.defaultNode&&this.updateDefaultNode(this.node)}restoreDefaultNode(){const{label:t}=this;if(t&&t.trim()!==""){const e=this.attachDefaultNode();this.observeNode(e)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}/**
1992
+ * @license
1993
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1994
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1995
+ */const Zn=b(i=>class extends Se(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Jn(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)}});/**
1996
+ * @license
1997
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
1998
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1999
+ */const Ne=b(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},manualValidation:{type:Boolean,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}_requestValidation(){this.manualValidation||this.validate()}});/**
2000
+ * @license
2001
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2002
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2003
+ */const zr=i=>class extends Ne(Zn(Se(i))){static get properties(){return{ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Gn(this),this._helperController=new Xn(this),this._errorController=new Kn(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent)}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:r}=e.detail;this.__labelChanged(o,r)}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:o,node:r}=e.detail;this.toggleAttribute("has-helper",o),this.__helperChanged(o,r)})}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController)}__helperChanged(e,o){e?this._fieldAriaController.setHelperId(o.id):this._fieldAriaController.setHelperId(null)}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e)}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0)}__labelChanged(e,o){e?this._fieldAriaController.setLabelId(o.id):this._fieldAriaController.setLabelId(null)}_errorMessageChanged(e){this._errorController.setErrorMessage(e)}_helperTextChanged(e){this._helperController.setHelperText(e)}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e)}_requiredChanged(e){this._fieldAriaController.setRequired(e)}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const o=this._errorNode;this._fieldAriaController.setErrorId(o&&o.id)}else this._fieldAriaController.setErrorId(null)})}};/**
2004
+ * @license
2005
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2006
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2007
+ */const Dr=b(i=>class extends i{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((o,r)=>{this._delegateAttribute(o,e[r])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((o,r)=>{this._delegateProperty(o,e[r])})}_delegateAttribute(e,o){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",o?"true":!1),typeof o=="boolean"?this.stateTarget.toggleAttribute(e,o):o?this.stateTarget.setAttribute(e,o):this.stateTarget.removeAttribute(e))}_delegateProperty(e,o){this.stateTarget&&(this.stateTarget[e]=o)}});/**
2008
+ * @license
2009
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2010
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2011
+ */const Lr=b(i=>class extends Dr(Ne(Ce(i))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(o=>this.__isValidConstraint(o))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...o){if(!e)return;const r=this._hasValidConstraints(o),s=this.__previousHasConstraints&&!r;(this._hasValue||this.invalid)&&r?this._requestValidation():s&&!this.manualValidation&&this._setInvalid(!1),this.__previousHasConstraints=r}_onChange(e){e.stopPropagation(),this._requestValidation(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
2012
+ * @license
2013
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2014
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2015
+ */const Qn=i=>class extends kr(Nr(Lr(zr(jn(kt(i)))))){static get properties(){return{allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return[...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this)}get slotStyles(){return[`
2016
+ :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
2017
+ font: inherit;
2018
+ color: inherit;
2019
+ }
2020
+ `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=B.debounce(this._preventInputDebouncer,gr.after(200),()=>{this.removeAttribute("input-prevented")})}__shouldAcceptKey(e){return e.metaKey||e.ctrlKey||!e.key||e.key.length!==1||this.__allowedCharRegExp.test(e.key)}_onPaste(e){if(this.allowedCharPattern){const o=e.clipboardData.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onDrop(e){if(this.allowedCharPattern){const o=e.dataTransfer.getData("text");this.__allowedTextRegExp.test(o)||(e.preventDefault(),this._markInputPrevented())}}_onBeforeInput(e){this.allowedCharPattern&&e.data&&!this.__allowedTextRegExp.test(e.data)&&(e.preventDefault(),this._markInputPrevented())}_allowedCharPatternChanged(e){if(e)try{this.__allowedCharRegExp=new RegExp(`^${e}$`,"u"),this.__allowedTextRegExp=new RegExp(`^${e}*$`,"u")}catch(o){console.error(o)}}};/**
2021
+ * @license
2022
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2023
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2024
+ */class ta{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",o=>{this.__initLabel(o.detail.node)}),this.__initLabel(e.node)}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id))}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t)};this.input.addEventListener("click",t)}}const $r=_`
2025
+ :host {
2026
+ /* Sizing */
2027
+ --lumo-button-size: var(--lumo-size-m);
2028
+ min-width: var(--vaadin-button-min-width, calc(var(--_button-size) * 2));
2029
+ height: var(--_button-size);
2030
+ padding: var(--vaadin-button-padding, 0 calc(var(--_button-size) / 3 + var(--lumo-border-radius-m) / 2));
2031
+ margin: var(--vaadin-button-margin, var(--lumo-space-xs) 0);
2032
+ box-sizing: border-box;
2033
+ /* Style */
2034
+ font-family: var(--lumo-font-family);
2035
+ font-size: var(--vaadin-button-font-size, var(--lumo-font-size-m));
2036
+ font-weight: var(--vaadin-button-font-weight, 500);
2037
+ color: var(--_lumo-button-text-color);
2038
+ background: var(--_lumo-button-background);
2039
+ border: var(--vaadin-button-border, none);
2040
+ border-radius: var(--vaadin-button-border-radius, var(--lumo-border-radius-m));
2041
+ cursor: var(--lumo-clickable-cursor);
2042
+ -webkit-tap-highlight-color: transparent;
2043
+ -webkit-font-smoothing: antialiased;
2044
+ -moz-osx-font-smoothing: grayscale;
2045
+ flex-shrink: 0;
2046
+ --_button-size: var(--vaadin-button-height, var(--lumo-button-size));
2047
+ --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
2048
+ --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
2049
+ /* Used by notification */
2050
+ --_lumo-button-background: var(--vaadin-button-background, var(--lumo-contrast-5pct));
2051
+ --_lumo-button-text-color: var(--vaadin-button-text-color, var(--lumo-primary-text-color));
2052
+ --_lumo-button-primary-background: var(--vaadin-button-primary-background, var(--lumo-primary-color));
2053
+ --_lumo-button-primary-text-color: var(--vaadin-button-primary-text-color, var(--lumo-primary-contrast-color));
2054
+ }
2055
+
2056
+ /* Set only for the internal parts so we don't affect the host vertical alignment */
2057
+ [part='label'],
2058
+ [part='prefix'],
2059
+ [part='suffix'] {
2060
+ line-height: var(--lumo-line-height-xs);
2061
+ }
2062
+
2063
+ [part='label'] {
2064
+ padding: calc(var(--lumo-button-size) / 6) 0;
2065
+ }
2066
+
2067
+ :host([theme~='small']) {
2068
+ font-size: var(--lumo-font-size-s);
2069
+ --lumo-button-size: var(--lumo-size-s);
2070
+ }
2071
+
2072
+ :host([theme~='large']) {
2073
+ font-size: var(--lumo-font-size-l);
2074
+ --lumo-button-size: var(--lumo-size-l);
2075
+ }
2076
+
2077
+ /* For interaction states */
2078
+ :host::before,
2079
+ :host::after {
2080
+ content: '';
2081
+ /* We rely on the host always being relative */
2082
+ position: absolute;
2083
+ z-index: 1;
2084
+ inset: 0;
2085
+ background-color: currentColor;
2086
+ border-radius: inherit;
2087
+ opacity: 0;
2088
+ pointer-events: none;
2089
+ }
2090
+
2091
+ /* Hover */
2092
+
2093
+ @media (any-hover: hover) {
2094
+ :host(:hover)::before {
2095
+ opacity: 0.02;
2096
+ }
2097
+ }
2098
+
2099
+ /* Active */
2100
+
2101
+ :host::after {
2102
+ transition:
2103
+ opacity 1.4s,
2104
+ transform 0.1s;
2105
+ filter: blur(8px);
2106
+ }
2107
+
2108
+ :host([active])::before {
2109
+ opacity: 0.05;
2110
+ transition-duration: 0s;
2111
+ }
2112
+
2113
+ :host([active])::after {
2114
+ opacity: 0.1;
2115
+ transition-duration: 0s, 0s;
2116
+ transform: scale(0);
2117
+ }
2118
+
2119
+ /* Keyboard focus */
2120
+
2121
+ :host([focus-ring]) {
2122
+ box-shadow:
2123
+ 0 0 0 calc(1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-gap-color, var(--lumo-base-color)),
2124
+ 0 0 0 calc(var(--_focus-ring-width) + 1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-color);
2125
+ }
2126
+
2127
+ :host([theme~='primary'][focus-ring]) {
2128
+ --_focus-ring-gap-on: 1;
2129
+ }
2130
+
2131
+ /* Types (primary, tertiary, tertiary-inline */
2132
+
2133
+ :host([theme~='tertiary']),
2134
+ :host([theme~='tertiary-inline']) {
2135
+ --_background: transparent !important;
2136
+ background: var(--vaadin-button-tertiary-background, var(--_background));
2137
+ min-width: 0;
2138
+ }
2139
+
2140
+ :host([theme~='tertiary']) {
2141
+ border: var(--vaadin-button-tertiary-border, none);
2142
+ color: var(--vaadin-button-tertiary-text-color, var(--lumo-primary-text-color));
2143
+ font-weight: var(--vaadin-button-tertiary-font-weight, 500);
2144
+ padding: var(--vaadin-button-tertiary-padding, 0 calc(var(--_button-size) / 6));
2145
+ }
2146
+
2147
+ :host([theme~='tertiary-inline'])::before {
2148
+ display: none;
2149
+ }
2150
+
2151
+ :host([theme~='tertiary-inline']) {
2152
+ margin: 0;
2153
+ height: auto;
2154
+ padding: 0;
2155
+ line-height: inherit;
2156
+ font-size: inherit;
2157
+ }
2158
+
2159
+ :host([theme~='tertiary-inline']) [part='label'] {
2160
+ padding: 0;
2161
+ overflow: visible;
2162
+ line-height: inherit;
2163
+ }
2164
+
2165
+ :host([theme~='primary']) {
2166
+ background: var(--_lumo-button-primary-background);
2167
+ border: var(--vaadin-button-primary-border, none);
2168
+ color: var(--_lumo-button-primary-text-color);
2169
+ font-weight: var(--vaadin-button-primary-font-weight, 600);
2170
+ min-width: calc(var(--lumo-button-size) * 2.5);
2171
+ }
2172
+
2173
+ :host([theme~='primary'])::before {
2174
+ background-color: black;
2175
+ }
2176
+
2177
+ @media (any-hover: hover) {
2178
+ :host([theme~='primary']:hover)::before {
2179
+ opacity: 0.05;
2180
+ }
2181
+ }
2182
+
2183
+ :host([theme~='primary'][active])::before {
2184
+ opacity: 0.1;
2185
+ }
2186
+
2187
+ :host([theme~='primary'][active])::after {
2188
+ opacity: 0.2;
2189
+ }
2190
+
2191
+ /* Colors (success, warning, error, contrast) */
2192
+
2193
+ :host([theme~='success']) {
2194
+ color: var(--lumo-success-text-color);
2195
+ }
2196
+
2197
+ :host([theme~='success'][theme~='primary']) {
2198
+ background-color: var(--lumo-success-color);
2199
+ color: var(--lumo-success-contrast-color);
2200
+ }
2201
+
2202
+ :host([theme~='warning']) {
2203
+ color: var(--lumo-warning-text-color);
2204
+ }
2205
+
2206
+ :host([theme~='warning'][theme~='primary']) {
2207
+ background-color: var(--lumo-warning-color);
2208
+ color: var(--lumo-warning-contrast-color);
2209
+ }
2210
+
2211
+ :host([theme~='error']) {
2212
+ color: var(--lumo-error-text-color);
2213
+ }
2214
+
2215
+ :host([theme~='error'][theme~='primary']) {
2216
+ background-color: var(--lumo-error-color);
2217
+ color: var(--lumo-error-contrast-color);
2218
+ }
2219
+
2220
+ :host([theme~='contrast']) {
2221
+ color: var(--lumo-contrast);
2222
+ }
2223
+
2224
+ :host([theme~='contrast'][theme~='primary']) {
2225
+ background-color: var(--lumo-contrast);
2226
+ color: var(--lumo-base-color);
2227
+ }
2228
+
2229
+ /* Disabled state. Keep selectors after other color variants. */
2230
+
2231
+ :host([disabled]) {
2232
+ pointer-events: none;
2233
+ color: var(--lumo-disabled-text-color);
2234
+ }
2235
+
2236
+ :host([theme~='primary'][disabled]) {
2237
+ background-color: var(--lumo-contrast-30pct);
2238
+ color: var(--lumo-base-color);
2239
+ }
2240
+
2241
+ :host([theme~='primary'][disabled]) [part] {
2242
+ opacity: 0.7;
2243
+ }
2244
+
2245
+ /* Icons */
2246
+
2247
+ [part] ::slotted(vaadin-icon) {
2248
+ display: inline-block;
2249
+ width: var(--lumo-icon-size-m);
2250
+ height: var(--lumo-icon-size-m);
2251
+ }
2252
+
2253
+ /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
2254
+ [part] ::slotted(vaadin-icon[icon^='vaadin:']) {
2255
+ padding: 0.25em;
2256
+ box-sizing: border-box !important;
2257
+ }
2258
+
2259
+ [part='prefix'] {
2260
+ margin-left: -0.25em;
2261
+ margin-right: 0.25em;
2262
+ }
2263
+
2264
+ [part='suffix'] {
2265
+ margin-left: 0.25em;
2266
+ margin-right: -0.25em;
2267
+ }
2268
+
2269
+ /* Icon-only */
2270
+
2271
+ :host([theme~='icon']:not([theme~='tertiary-inline'])) {
2272
+ min-width: var(--lumo-button-size);
2273
+ padding-left: calc(var(--lumo-button-size) / 4);
2274
+ padding-right: calc(var(--lumo-button-size) / 4);
2275
+ }
2276
+
2277
+ :host([theme~='icon']) [part='prefix'],
2278
+ :host([theme~='icon']) [part='suffix'] {
2279
+ margin-left: 0;
2280
+ margin-right: 0;
2281
+ }
2282
+
2283
+ /* RTL specific styles */
2284
+
2285
+ :host([dir='rtl']) [part='prefix'] {
2286
+ margin-left: 0.25em;
2287
+ margin-right: -0.25em;
2288
+ }
2289
+
2290
+ :host([dir='rtl']) [part='suffix'] {
2291
+ margin-left: -0.25em;
2292
+ margin-right: 0.25em;
2293
+ }
2294
+
2295
+ :host([dir='rtl'][theme~='icon']) [part='prefix'],
2296
+ :host([dir='rtl'][theme~='icon']) [part='suffix'] {
2297
+ margin-left: 0;
2298
+ margin-right: 0;
2299
+ }
2300
+ `;N("vaadin-button",$r,{moduleId:"lumo-button"});/**
2301
+ * @license
2302
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
2303
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2304
+ */const ea=_`
2305
+ :host {
2306
+ display: inline-block;
2307
+ position: relative;
2308
+ outline: none;
2309
+ white-space: nowrap;
2310
+ -webkit-user-select: none;
2311
+ -moz-user-select: none;
2312
+ user-select: none;
2313
+ }
2314
+
2315
+ :host([hidden]) {
2316
+ display: none !important;
2317
+ }
2318
+
2319
+ /* Aligns the button with form fields when placed on the same line.
2320
+ Note, to make it work, the form fields should have the same "::before" pseudo-element. */
2321
+ .vaadin-button-container::before {
2322
+ content: '\\2003';
2323
+ display: inline-block;
2324
+ width: 0;
2325
+ max-height: 100%;
2326
+ }
2327
+
2328
+ .vaadin-button-container {
2329
+ display: inline-flex;
2330
+ align-items: center;
2331
+ justify-content: center;
2332
+ text-align: center;
2333
+ width: 100%;
2334
+ height: 100%;
2335
+ min-height: inherit;
2336
+ text-shadow: inherit;
2337
+ }
2338
+
2339
+ [part='prefix'],
2340
+ [part='suffix'] {
2341
+ flex: none;
2342
+ }
2343
+
2344
+ [part='label'] {
2345
+ white-space: nowrap;
2346
+ overflow: hidden;
2347
+ text-overflow: ellipsis;
2348
+ }
2349
+
2350
+ @media (forced-colors: active) {
2351
+ :host {
2352
+ outline: 1px solid;
2353
+ outline-offset: -1px;
2354
+ }
2355
+
2356
+ :host([focused]) {
2357
+ outline-width: 2px;
2358
+ }
2359
+
2360
+ :host([disabled]) {
2361
+ outline-color: GrayText;
2362
+ }
2363
+ }
2364
+ `,ia=i=>i`
2365
+ <div class="vaadin-button-container">
2366
+ <span part="prefix" aria-hidden="true">
2367
+ <slot name="prefix"></slot>
2368
+ </span>
2369
+ <span part="label">
2370
+ <slot></slot>
2371
+ </span>
2372
+ <span part="suffix" aria-hidden="true">
2373
+ <slot name="suffix"></slot>
2374
+ </span>
2375
+ </div>
2376
+ <slot name="tooltip"></slot>
2377
+ `,ra=i=>i,Rr=typeof document.head.style.touchAction=="string",ne="__polymerGestures",qt="__polymerGesturesHandled",ae="__polymerGesturesTouchAction",fi=25,mi=5,oa=2,sa=["mousedown","mousemove","mouseup","click"],na=[0,1,4,2],aa=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function ke(i){return sa.indexOf(i)>-1}let la=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){la=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();function da(i){ke(i)}const ca=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),ua={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function $(i){const t=i.type;if(!ke(t))return!1;if(t==="mousemove"){let o=i.buttons===void 0?1:i.buttons;return i instanceof window.MouseEvent&&!aa&&(o=na[i.which]||0),!!(o&1)}return(i.button===void 0?0:i.button)===0}function ha(i){if(i.type==="click"){if(i.detail===0)return!0;const t=I(i);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),o=i.pageX,r=i.pageY;return!(o>=e.left&&o<=e.right&&r>=e.top&&r<=e.bottom)}return!1}const T={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function pa(i){let t="auto";const e=Fr(i);for(let o=0,r;o<e.length;o++)if(r=e[o],r[ae]){t=r[ae];break}return t}function Br(i,t,e){i.movefn=t,i.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function q(i){document.removeEventListener("mousemove",i.movefn),document.removeEventListener("mouseup",i.upfn),i.movefn=null,i.upfn=null}const Fr=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:i=>i.composedPath&&i.composedPath()||[],Oe={},L=[];function fa(i,t){let e=document.elementFromPoint(i,t),o=e;for(;o&&o.shadowRoot&&!window.ShadyDOM;){const r=o;if(o=o.shadowRoot.elementFromPoint(i,t),r===o)break;o&&(e=o)}return e}function I(i){const t=Fr(i);return t.length>0?t[0]:i.target}function ma(i){const t=i.type,o=i.currentTarget[ne];if(!o)return;const r=o[t];if(!r)return;if(!i[qt]&&(i[qt]={},t.startsWith("touch"))){const n=i.changedTouches[0];if(t==="touchstart"&&i.touches.length===1&&(T.touch.id=n.identifier),T.touch.id!==n.identifier)return;Rr||(t==="touchstart"||t==="touchmove")&&_a(i)}const s=i[qt];if(!s.skip){for(let n=0,a;n<L.length;n++)a=L[n],r[a.name]&&!s[a.name]&&a.flow&&a.flow.start.indexOf(i.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<L.length;n++)a=L[n],r[a.name]&&!s[a.name]&&(s[a.name]=!0,a[t](i))}}function _a(i){const t=i.changedTouches[0],e=i.type;if(e==="touchstart")T.touch.x=t.clientX,T.touch.y=t.clientY,T.touch.scrollDecided=!1;else if(e==="touchmove"){if(T.touch.scrollDecided)return;T.touch.scrollDecided=!0;const o=pa(i);let r=!1;const s=Math.abs(T.touch.x-t.clientX),n=Math.abs(T.touch.y-t.clientY);i.cancelable&&(o==="none"?r=!0:o==="pan-x"?r=n>s:o==="pan-y"&&(r=s>n)),r?i.preventDefault():Ct("track")}}function le(i,t,e){return Oe[t]?(ga(i,t,e),!0):!1}function ga(i,t,e){const o=Oe[t],r=o.deps,s=o.name;let n=i[ne];n||(i[ne]=n={});for(let a=0,l,d;a<r.length;a++)l=r[a],!(ca&&ke(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&i.addEventListener(l,ma,da(l)),d[s]=(d[s]||0)+1,d._count=(d._count||0)+1);i.addEventListener(t,e),o.touchAction&&Hr(i,o.touchAction)}function Me(i){L.push(i),i.emits.forEach(t=>{Oe[t]=i})}function ba(i){for(let t=0,e;t<L.length;t++){e=L[t];for(let o=0,r;o<e.emits.length;o++)if(r=e.emits[o],r===i)return e}return null}function Hr(i,t){Rr&&i instanceof HTMLElement&&yr.run(()=>{i.style.touchAction=t}),i[ae]=t}function Ie(i,t,e){const o=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=e,ra(i).dispatchEvent(o),o.defaultPrevented){const r=e.preventer||e.sourceEvent;r&&r.preventDefault&&r.preventDefault()}}function Ct(i){const t=ba(i);t.info&&(t.info.prevent=!0)}Me({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){q(this.info)},mousedown(i){if(!$(i))return;const t=I(i),e=this,o=s=>{$(s)||(Q("up",t,s),q(e.info))},r=s=>{$(s)&&Q("up",t,s),q(e.info)};Br(this.info,o,r),Q("down",t,i)},touchstart(i){Q("down",I(i),i.changedTouches[0],i)},touchend(i){Q("up",I(i),i.changedTouches[0],i)}});function Q(i,t,e,o){t&&Ie(t,i,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:o,prevent(r){return Ct(r)}})}Me({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(i){this.moves.length>oa&&this.moves.shift(),this.moves.push(i)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,q(this.info)},mousedown(i){if(!$(i))return;const t=I(i),e=this,o=s=>{const n=s.clientX,a=s.clientY;_i(e.info,n,a)&&(e.info.state=e.info.started?s.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&Ct("tap"),e.info.addMove({x:n,y:a}),$(s)||(e.info.state="end",q(e.info)),t&&Gt(e.info,t,s),e.info.started=!0)},r=s=>{e.info.started&&o(s),q(e.info)};Br(this.info,o,r),this.info.x=i.clientX,this.info.y=i.clientY},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(i){const t=I(i),e=i.changedTouches[0],o=e.clientX,r=e.clientY;_i(this.info,o,r)&&(this.info.state==="start"&&Ct("tap"),this.info.addMove({x:o,y:r}),Gt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(i){const t=I(i),e=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Gt(this.info,t,e))}});function _i(i,t,e){if(i.prevent)return!1;if(i.started)return!0;const o=Math.abs(i.x-t),r=Math.abs(i.y-e);return o>=mi||r>=mi}function Gt(i,t,e){if(!t)return;const o=i.moves[i.moves.length-2],r=i.moves[i.moves.length-1],s=r.x-i.x,n=r.y-i.y;let a,l=0;o&&(a=r.x-o.x,l=r.y-o.y),Ie(t,"track",{state:i.state,x:e.clientX,y:e.clientY,dx:s,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return fa(e.clientX,e.clientY)}})}Me({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(i){$(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){$(i)&&gi(this.info,i)},touchstart(i){const t=i.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(i){gi(this.info,i.changedTouches[0],i)}});function gi(i,t,e){const o=Math.abs(t.clientX-i.x),r=Math.abs(t.clientY-i.y),s=I(e||t);!s||ua[s.localName]&&s.hasAttribute("disabled")||(isNaN(o)||isNaN(r)||o<=fi&&r<=fi||ha(t))&&(i.prevent||Ie(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2378
+ * @license
2379
+ * Copyright (c) 2021 - 2024 Vaadin Ltd.
2380
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2381
+ */const Vr=i=>class extends Ee(kt(i)){get _activeKeys(){return[" "]}ready(){super.ready(),le(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),le(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",o=>{this._activeKeys.includes(o.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2382
+ * @license
2383
+ * Copyright (c) 2017 - 2024 Vaadin Ltd.
2384
+ * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2385
+ */const va=i=>class extends Vr(Tr(we(i))){static get properties(){return{tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button")}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click())}};exports.ActiveMixin=Vr;exports.ButtonMixin=va;exports.ControllerMixin=Se;exports.Debouncer=B;exports.DelegateFocusMixin=Nr;exports.DelegateStateMixin=Dr;exports.DirMixin=ye;exports.DisabledMixin=Ee;exports.ElementMixin=vn;exports.FieldMixin=zr;exports.FocusMixin=we;exports.InputConstraintsMixin=Lr;exports.InputControlMixin=Qn;exports.InputController=Nn;exports.InputMixin=Ce;exports.KeyboardMixin=kt;exports.LabelledInputController=ta;exports.PolymerElement=fr;exports.PropertyEffects=dr;exports.SlotController=Nt;exports.SlotObserver=wr;exports.SlotStylesMixin=kr;exports.ThemableMixin=$i;exports.TooltipController=En;exports.ValidateMixin=Ne;exports.addListener=le;exports.animationFrame=br;exports.button=$r;exports.buttonStyles=ea;exports.buttonTemplate=ia;exports.dedupingMixin=b;exports.defineCustomElement=de;exports.enqueueDebouncer=xr;exports.flush=bn;exports.generateUniqueId=Er;exports.getAncestorRootNodes=yn;exports.getDeepActiveElement=kn;exports.getFocusableElements=Ln;exports.helper=Bi;exports.html=hr;exports.i$3=_;exports.idlePeriod=vr;exports.inputFieldShared=Tn;exports.inputFieldShared$1=Fi;exports.isElementFocusable=Pr;exports.isElementFocused=zn;exports.isIOS=Vn;exports.isKeyboardActive=Cr;exports.isSafari=Un;exports.isTouch=Or;exports.legacyOptimizations=Vi;exports.legacyWarnings=Ui;exports.matches=Xo;exports.microTask=yr;exports.microTask$1=Qi;exports.registerStyles=N;exports.requiredField=me;exports.setTouchAction=Hr;exports.strictTemplatePolicy=wt;exports.suppressTemplateNotifications=Ho;exports.timeOut=gr;exports.timeOut$1=is;exports.translate=ct;exports.useShadow=Hi;exports.wrap$1=M;