@everymatrix/player-account-controller 1.59.2 → 1.60.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/components/{GeneralLogout-DKq7aXpj.cjs → GeneralLogout-BjsDUNrm.cjs} +4 -4
  2. package/components/{GeneralLogout-D1bnYvKD.js → GeneralLogout-CrdxxT-0.js} +110 -99
  3. package/components/{GeneralLogout-oWKFw5-U.js → GeneralLogout-Cs6a0Woe.js} +118 -107
  4. package/components/{PlayerAccountBettingHistory-Ba0rbzAt.cjs → PlayerAccountBettingHistory-Bu3VS2Sg.cjs} +1 -1
  5. package/components/{PlayerAccountBettingHistory-B5a8vPwA.js → PlayerAccountBettingHistory-DznJRKHH.js} +1 -1
  6. package/components/{PlayerAccountBettingHistory-cvLnLJaM.js → PlayerAccountBettingHistory-HLjCXypd.js} +1 -1
  7. package/components/{PlayerAccountBiometrics-ClTvex4w.js → PlayerAccountBiometrics-CIo8pkfn.js} +1 -1
  8. package/components/{PlayerAccountBiometrics-244_l2MD.js → PlayerAccountBiometrics-DpVTOI5S.js} +1 -1
  9. package/components/{PlayerAccountBiometrics-D3SdfZAk.cjs → PlayerAccountBiometrics-DvJlyQ8z.cjs} +1 -1
  10. package/components/{PlayerAccountClosure-Dk5N1AgF.cjs → PlayerAccountClosure-Bgcd5aWK.cjs} +1 -1
  11. package/components/{PlayerAccountClosure-9BJkNHZ1.js → PlayerAccountClosure-DJx7NuYi.js} +1 -1
  12. package/components/{PlayerAccountClosure-CUDjmpCz.js → PlayerAccountClosure-DUnNJuF0.js} +1 -1
  13. package/components/{PlayerAccountController-BiLGpVLk.js → PlayerAccountController-BHULNGiG.js} +697 -633
  14. package/components/PlayerAccountController-C7RCoOhc.cjs +1 -0
  15. package/components/{PlayerAccountController-DkT-NObO.js → PlayerAccountController-oC2_eSvR.js} +695 -631
  16. package/components/{PlayerAccountGamingLimits-CGZB2W3L.js → PlayerAccountGamingLimits-DiTQMKO-.js} +2 -2
  17. package/components/{PlayerAccountGamingLimits-FIGZjiiE.cjs → PlayerAccountGamingLimits-UmFJS4yG.cjs} +1 -1
  18. package/components/{PlayerAccountGamingLimits-C2OQmz0L.js → PlayerAccountGamingLimits-t-Kt6fD1.js} +2 -2
  19. package/components/{PlayerAccountGamingLimitsConfirmationModal-CMNuF6Yo.js → PlayerAccountGamingLimitsConfirmationModal-BOqmU6ao.js} +1 -1
  20. package/components/{PlayerAccountGamingLimitsConfirmationModal-CyALQICB.cjs → PlayerAccountGamingLimitsConfirmationModal-BTGWvZ_H.cjs} +1 -1
  21. package/components/{PlayerAccountGamingLimitsConfirmationModal-apD3a9Bz.js → PlayerAccountGamingLimitsConfirmationModal-CJS6pzAL.js} +1 -1
  22. package/components/{PlayerAccountGamingLimitsGroupEdit-Cj28m25L.js → PlayerAccountGamingLimitsGroupEdit-Cohx9d0h.js} +4 -4
  23. package/components/{PlayerAccountGamingLimitsGroupEdit-DrfWEw7D.js → PlayerAccountGamingLimitsGroupEdit-DQ4LAIh3.js} +4 -4
  24. package/components/{PlayerAccountGamingLimitsGroupEdit-BpaOoTGu.cjs → PlayerAccountGamingLimitsGroupEdit-DWXrW8rz.cjs} +2 -2
  25. package/components/{PlayerAccountGamingLimitsHistory2-D90-0n9S.cjs → PlayerAccountGamingLimitsHistory2-1CxT-5pd.cjs} +1 -1
  26. package/components/{PlayerAccountGamingLimitsHistory2-CsMgI2vP.js → PlayerAccountGamingLimitsHistory2-CZWoK_f5.js} +1 -1
  27. package/components/{PlayerAccountGamingLimitsHistory2-CL7qYX9D.js → PlayerAccountGamingLimitsHistory2-DuWgdsnY.js} +1 -1
  28. package/components/{PlayerAccountGamingLimitsInfoCard-DlJXsDqV.cjs → PlayerAccountGamingLimitsInfoCard-7dQquqQ4.cjs} +1 -1
  29. package/components/{PlayerAccountGamingLimitsInfoCard-CFusXmG3.js → PlayerAccountGamingLimitsInfoCard-AOCz2477.js} +3 -3
  30. package/components/{PlayerAccountGamingLimitsInfoCard-C-SGItlz.js → PlayerAccountGamingLimitsInfoCard-wb1MgSRM.js} +3 -3
  31. package/components/{PlayerAccountGamingLimitsPage2Gm16-DAMLMUMu.cjs → PlayerAccountGamingLimitsPage2Gm16-DQhfQZf3.cjs} +1 -1
  32. package/components/{PlayerAccountGamingLimitsPage2Gm16-DoZ7M3C6.js → PlayerAccountGamingLimitsPage2Gm16-DqVb6gUu.js} +1 -1
  33. package/components/{PlayerAccountGamingLimitsPage2Gm16-BfV10mIx.js → PlayerAccountGamingLimitsPage2Gm16-yGmurNY8.js} +1 -1
  34. package/components/{PlayerAccountGamingLimitsPopup-Dbr-uHeX.cjs → PlayerAccountGamingLimitsPopup-Bq6g8_Ex.cjs} +1 -1
  35. package/components/{PlayerAccountGamingLimitsPopup-4sFhABTh.js → PlayerAccountGamingLimitsPopup-Byk1Oi5A.js} +1 -1
  36. package/components/{PlayerAccountGamingLimitsPopup-Cut_OV-5.js → PlayerAccountGamingLimitsPopup-Cou16qpk.js} +1 -1
  37. package/components/{PlayerAccountGamingLimitsWrapper2-BVbh0mz9.js → PlayerAccountGamingLimitsWrapper2-BEDe0nx6.js} +3 -3
  38. package/components/{PlayerAccountGamingLimitsWrapper2-Bh2EK-EX.js → PlayerAccountGamingLimitsWrapper2-BMjMekAI.js} +3 -3
  39. package/components/{PlayerAccountGamingLimitsWrapper2-C8v3JMxo.cjs → PlayerAccountGamingLimitsWrapper2-BTn_7__K.cjs} +1 -1
  40. package/components/{PlayerAccountGeneralConfirmationModal-Cxl-LoG0.js → PlayerAccountGeneralConfirmationModal-DTd4PiMe.js} +1 -1
  41. package/components/{PlayerAccountGeneralConfirmationModal-BJ3S0RLL.cjs → PlayerAccountGeneralConfirmationModal-DoognqGf.cjs} +1 -1
  42. package/components/{PlayerAccountGeneralConfirmationModal-L97vGeau.js → PlayerAccountGeneralConfirmationModal-kdUl-EBq.js} +1 -1
  43. package/components/{PlayerAccountMenu-BIdnddS_.cjs → PlayerAccountMenu-C5GtMCo6.cjs} +1 -1
  44. package/components/{PlayerAccountMenu-DUTsp-yv.js → PlayerAccountMenu-CqVrDqg2.js} +2 -2
  45. package/components/{PlayerAccountMenu-CBgydCnL.js → PlayerAccountMenu-DNaPK2TZ.js} +2 -2
  46. package/components/{PlayerAccountModal-7R2WRCgZ.js → PlayerAccountModal-Cgwoz0_A.js} +1 -1
  47. package/components/{PlayerAccountModal-C7_3et-5.js → PlayerAccountModal-ZSZxImk8.js} +1 -1
  48. package/components/{PlayerAccountModal-tginaXbZ.cjs → PlayerAccountModal-zI2QLAL1.cjs} +1 -1
  49. package/components/{PlayerAccountNotifications-BLsxWrq2.cjs → PlayerAccountNotifications-B-wkpb9J.cjs} +1 -1
  50. package/components/{PlayerAccountNotifications-BQPI0SJW.js → PlayerAccountNotifications-B1K_Z2TT.js} +1 -1
  51. package/components/{PlayerAccountNotifications-DcYU4F80.js → PlayerAccountNotifications-Cf28JRBn.js} +1 -1
  52. package/components/{PlayerAccountSelfExclusion--Rn9q2b5.js → PlayerAccountSelfExclusion-DSxM_f45.js} +1 -1
  53. package/components/{PlayerAccountSelfExclusion-CKVraXB_.cjs → PlayerAccountSelfExclusion-DlekYIJO.cjs} +1 -1
  54. package/components/{PlayerAccountSelfExclusion-DPebzB6p.js → PlayerAccountSelfExclusion-DxRAfTZT.js} +1 -1
  55. package/components/{PlayerAccountTimeout-Canoqg7a.cjs → PlayerAccountTimeout-BBpwfboX.cjs} +1 -1
  56. package/components/{PlayerAccountTimeout-BUMA2T0A.js → PlayerAccountTimeout-BVATVPRq.js} +3 -3
  57. package/components/{PlayerAccountTimeout-TtjDitl7.js → PlayerAccountTimeout-Bb58NRXY.js} +3 -3
  58. package/components/{PlayerActiveBonuses-DbsciRwF.cjs → PlayerActiveBonuses-CBqsWQfE.cjs} +1 -1
  59. package/components/{PlayerActiveBonuses-BU_F0tZ-.js → PlayerActiveBonuses-DXMMRNp0.js} +2 -2
  60. package/components/{PlayerActiveBonuses-DMlTBfp8.js → PlayerActiveBonuses-Dt0N6Bn0.js} +2 -2
  61. package/components/{PlayerBonusCard-DSwyV5g7.js → PlayerBonusCard-CH-ncifJ.js} +2 -2
  62. package/components/{PlayerBonusCard-BzDP362v.cjs → PlayerBonusCard-CJXjuXsU.cjs} +1 -1
  63. package/components/{PlayerBonusCard-DVgOCZFk.js → PlayerBonusCard-Di1Znpi1.js} +2 -2
  64. package/components/{PlayerBonusHistory-Dd_3VBh2.js → PlayerBonusHistory-CG4iedyf.js} +4 -4
  65. package/components/{PlayerBonusHistory-6VkWn4IH.js → PlayerBonusHistory-CHDc8kFG.js} +4 -4
  66. package/components/{PlayerBonusHistory-C6qXEcVu.cjs → PlayerBonusHistory-Dt0nm--k.cjs} +1 -1
  67. package/components/{PlayerChangePassword-DRF3YUcY.js → PlayerChangePassword-Cy_iUEwl.js} +1 -1
  68. package/components/{PlayerChangePassword-DIVU7Hm-.js → PlayerChangePassword-DMiyyEYC.js} +1 -1
  69. package/components/{PlayerChangePassword-DZ0zUct-.cjs → PlayerChangePassword-awaQVsiP.cjs} +1 -1
  70. package/components/{PlayerDeposit-Bu1poUUC.js → PlayerDeposit-BFpoULil.js} +1 -1
  71. package/components/{PlayerDeposit-CC1ZNh0V.js → PlayerDeposit-BUbpr-x6.js} +1 -1
  72. package/components/{PlayerDeposit-2rXfB2O5.cjs → PlayerDeposit-_oIOMh8l.cjs} +1 -1
  73. package/components/{PlayerGamingHistory-nRhNghIt.cjs → PlayerGamingHistory-Bw_u3E09.cjs} +1 -1
  74. package/components/{PlayerGamingHistory-DdtNlqpX.js → PlayerGamingHistory-Cy9FMn9D.js} +4 -4
  75. package/components/{PlayerGamingHistory-DV6n7mPC.js → PlayerGamingHistory-RqKyBLJf.js} +4 -4
  76. package/components/{PlayerPendingWithdrawals-CaouMSqA.js → PlayerPendingWithdrawals-Dc91b0Cm.js} +1 -1
  77. package/components/{PlayerPendingWithdrawals-UG-bN1ca.cjs → PlayerPendingWithdrawals-aaHugNLD.cjs} +1 -1
  78. package/components/{PlayerPendingWithdrawals-BAYRu_8K.js → PlayerPendingWithdrawals-ttbTlX0c.js} +1 -1
  79. package/components/PlayerProfileInfo-DXGC3Nhp.js +2059 -0
  80. package/components/PlayerProfileInfo-tYfJSyL9.cjs +1 -0
  81. package/components/PlayerProfileInfo-yGYztqLK.js +2087 -0
  82. package/components/{PlayerRealityCheck-BmVSMTSf.cjs → PlayerRealityCheck-BobhhM62.cjs} +1 -1
  83. package/components/{PlayerRealityCheck-CI5fiJv3.js → PlayerRealityCheck-C9j8cYwx.js} +1 -1
  84. package/components/{PlayerRealityCheck-DL5sLluu.js → PlayerRealityCheck-D7YLuHGQ.js} +1 -1
  85. package/components/{PlayerTransactionHistory-BGPDkKNI.js → PlayerTransactionHistory-BHDwTuEi.js} +1 -1
  86. package/components/{PlayerTransactionHistory-U2CncC4r.cjs → PlayerTransactionHistory-Dff51WQG.cjs} +1 -1
  87. package/components/{PlayerTransactionHistory-x-p-YOv6.js → PlayerTransactionHistory-fsxifDQz.js} +1 -1
  88. package/components/{PlayerWithdrawal-BknOF8Sy.js → PlayerWithdrawal-4QbyF-GU.js} +1 -1
  89. package/components/{PlayerWithdrawal-Cx3cOp7C.js → PlayerWithdrawal-D6ic1PCk.js} +1 -1
  90. package/components/{PlayerWithdrawal-CsPPu5bX.cjs → PlayerWithdrawal-DdPBGufW.cjs} +1 -1
  91. package/es2015/player-account-controller.cjs +1 -1
  92. package/es2015/player-account-controller.js +1 -1
  93. package/esnext/player-account-controller.js +1 -1
  94. package/package.json +2 -2
  95. package/stencil/checkbox-group-input_9-C7zEH4Cn.js +3883 -0
  96. package/stencil/checkbox-group-input_9-CMfQeYlH.cjs +2 -0
  97. package/stencil/checkbox-group-input_9-OVj7AW5S.js +3883 -0
  98. package/stencil/general-input-BlFYbInU.cjs +4546 -0
  99. package/stencil/general-input-C7B1PVb4.js +12201 -0
  100. package/stencil/general-input-DoSeJn3k.js +12201 -0
  101. package/stencil/{index-9cd44522-C5N2LdVm.js → index-9cd44522-BOHK5Ehb.js} +4 -4
  102. package/stencil/{index-9cd44522-BbKqQXqL.js → index-9cd44522-C8s3TvoU.js} +4 -4
  103. package/stencil/{index-9cd44522-QIMe52Dh.cjs → index-9cd44522-D9raG3xx.cjs} +1 -1
  104. package/stencil/password-input_2-5nC89CMj.js +311 -0
  105. package/stencil/password-input_2-DJSgcWve.js +311 -0
  106. package/stencil/password-input_2-ZOEOuaOe.cjs +193 -0
  107. package/stencil/{player-change-password-gm2-039e300e-BU9mX4ix.cjs → player-change-password-gm2-039e300e-C-kbOfS1.cjs} +1 -1
  108. package/stencil/{player-change-password-gm2-039e300e-1NkfHZ6r.js → player-change-password-gm2-039e300e-C_f58yBE.js} +1 -1
  109. package/stencil/{player-change-password-gm2-039e300e-BLQGT3AW.js → player-change-password-gm2-039e300e-D4KfL3dW.js} +1 -1
  110. package/stencil/{player-change-password-gm2-E5xKJgy3.js → player-change-password-gm2-3aRR8E4W.js} +1 -1
  111. package/stencil/{player-change-password-gm2-Cyx-9oVQ.js → player-change-password-gm2-BJ2Ur7Zx.js} +1 -1
  112. package/stencil/{player-change-password-gm2-BWRiCTIP.cjs → player-change-password-gm2-CHK-mhQ9.cjs} +1 -1
  113. package/stencil/{toggle-checkbox-input-3f7U98vC.js → toggle-checkbox-input-BRL1Xahc.js} +23 -9
  114. package/stencil/toggle-checkbox-input-CPDZs55S.cjs +1 -0
  115. package/stencil/{toggle-checkbox-input-DDDgLFw4.js → toggle-checkbox-input-cLWFox9n.js} +23 -9
  116. package/components/PlayerAccountController-hgfiZXi1.cjs +0 -1
  117. package/components/PlayerProfileInfo-BLPDFygv.js +0 -1806
  118. package/components/PlayerProfileInfo-D3NxPM1Z.js +0 -1823
  119. package/components/PlayerProfileInfo-DLth9JMy.cjs +0 -1
  120. package/stencil/checkbox-group-input_9-BkT4UtkZ.js +0 -13282
  121. package/stencil/checkbox-group-input_9-CDYbpnEQ.cjs +0 -2045
  122. package/stencil/checkbox-group-input_9-CMQLu-qB.js +0 -13248
  123. package/stencil/general-input--MP17Hyz.cjs +0 -1
  124. package/stencil/general-input-BqgyG6fv.js +0 -48
  125. package/stencil/general-input-V-ZuyFa5.js +0 -48
  126. package/stencil/password-input_2-C_mvPSDp.js +0 -589
  127. package/stencil/password-input_2-DeRFrP9K.cjs +0 -105
  128. package/stencil/password-input_2-g7twAnPT.js +0 -589
  129. package/stencil/toggle-checkbox-input-DXFebhBM.cjs +0 -1
  130. package/stencil/vaadin-button-mixin-e8c3f355-BdntioNA.cjs +0 -2391
  131. package/stencil/vaadin-button-mixin-e8c3f355-DON-rAuy.js +0 -10228
  132. package/stencil/vaadin-button-mixin-e8c3f355-DQ5UgwNf.js +0 -10302
@@ -1,2391 +0,0 @@
1
- "use strict";var Hr=Object.defineProperty,Vr=Object.defineProperties;var jr=Object.getOwnPropertyDescriptors;var ze=Object.getOwnPropertySymbols;var qr=Object.prototype.hasOwnProperty,Yr=Object.prototype.propertyIsEnumerable;var Le=(i,t,e)=>t in i?Hr(i,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):i[t]=e,Mt=(i,t)=>{for(var e in t||(t={}))qr.call(t,e)&&Le(i,e,t[e]);if(ze)for(var e of ze(t))Yr.call(t,e)&&Le(i,e,t[e]);return i},It=(i,t)=>Vr(i,jr(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
- */function le(i,t="24.5.10"){Object.defineProperty(i,"version",{get(){return t}});const e=customElements.get(i.is);if(!e)customElements.define(i.is,i);else{const o=e.version;o&&i.version&&o===i.version?console.warn(`The component ${i.is} has been loaded twice`):console.error(`Tried to define ${i.is} version ${i.version} when version ${e.version} is already in use. Something will probably break.`)}}/**
6
- * @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 Wr extends HTMLElement{static get is(){return"vaadin-lumo-styles"}}le(Wr);/**
10
- * @license
11
- * Copyright 2019 Google LLC
12
- * SPDX-License-Identifier: BSD-3-Clause
13
- */const gt=globalThis,de=gt.ShadowRoot&&(gt.ShadyCSS===void 0||gt.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,ce=Symbol(),Re=new WeakMap;class ue{constructor(t,e,o){if(this._$cssResult$=!0,o!==ce)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(de&&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 Gr=i=>new ue(typeof i=="string"?i:i+"",void 0,ce),_=(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 ue(e,i,ce)},Ci=(i,t)=>{if(de)i.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const o=document.createElement("style"),r=gt.litNonce;r!==void 0&&o.setAttribute("nonce",r),o.textContent=e.cssText,i.appendChild(o)}},Fe=de?i=>i:i=>i instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return Gr(e)})(i):i;/**
14
- * @license
15
- * Copyright 2017 Google LLC
16
- * SPDX-License-Identifier: BSD-3-Clause
17
- */const{is:Kr,defineProperty:Jr,getOwnPropertyDescriptor:Xr,getOwnPropertyNames:Zr,getOwnPropertySymbols:Qr,getPrototypeOf:to}=Object,k=globalThis,Be=k.trustedTypes,eo=Be?Be.emptyScript:"",Dt=k.reactiveElementPolyfillSupport,et=(i,t)=>i,Wt={toAttribute(i,t){switch(t){case Boolean:i=i?eo: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}},Ei=(i,t)=>!Kr(i,t),Ue={attribute:!0,type:String,converter:Wt,reflect:!1,hasChanged:Ei};var bi,vi;(bi=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(vi=k.litPropertyMetadata)!=null||(k.litPropertyMetadata=new WeakMap);class U 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=Ue){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&&Jr(this.prototype,t,r)}}static getPropertyDescriptor(t,e,o){var n;const{get:r,set:s}=(n=Xr(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:Ue}static _$Ei(){if(this.hasOwnProperty(et("elementProperties")))return;const t=to(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(et("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(et("properties"))){const e=this.properties,o=[...Zr(e),...Qr(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(Fe(r))}else t!==void 0&&e.push(Fe(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:Ei)(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 yi;U.elementStyles=[],U.shadowRootOptions={mode:"open"},U[et("elementProperties")]=new Map,U[et("finalized")]=new Map,Dt==null||Dt({ReactiveElement:U}),((yi=k.reactiveElementVersions)!=null?yi:k.reactiveElementVersions=[]).push("2.0.4");/**
18
- * @license
19
- * Copyright 2017 Google LLC
20
- * SPDX-License-Identifier: BSD-3-Clause
21
- */const it=globalThis,vt=it.trustedTypes,He=vt?vt.createPolicy("lit-html",{createHTML:i=>i}):void 0,Pi="$lit$",N=`lit$${Math.random().toFixed(9).slice(2)}$`,Ti="?"+N,io=`<${Ti}>`,$=document,ot=()=>$.createComment(""),st=i=>i===null||typeof i!="object"&&typeof i!="function",he=Array.isArray,ro=i=>he(i)||typeof(i==null?void 0:i[Symbol.iterator])=="function",zt=`[
22
- \f\r]`,K=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Ve=/-->/g,je=/>/g,I=RegExp(`>|${zt}(?:([^\\s"'>=/]+)(${zt}*=${zt}*(?:[^
23
- \f\r"'\`<>=]|("|')|))|$)`,"g"),qe=/'/g,Ye=/"/g,Si=/^(?:script|style|textarea|title)$/i,Y=Symbol.for("lit-noChange"),g=Symbol.for("lit-nothing"),We=new WeakMap,D=$.createTreeWalker($,129);function Ni(i,t){if(!he(i)||!i.hasOwnProperty("raw"))throw Error("invalid template strings array");return He!==void 0?He.createHTML(t):t}const oo=(i,t)=>{const e=i.length-1,o=[];let r,s=t===2?"<svg>":t===3?"<math>":"",n=K;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===K?c[1]==="!--"?n=Ve:c[1]!==void 0?n=je:c[2]!==void 0?(Si.test(c[2])&&(r=RegExp("</"+c[2],"g")),n=I):c[3]!==void 0&&(n=I):n===I?c[0]===">"?(n=r!=null?r:K,u=-1):c[1]===void 0?u=-2:(u=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?I:c[3]==='"'?Ye:qe):n===Ye||n===qe?n=I:n===Ve||n===je?n=K:(n=I,r=void 0);const p=n===I&&i[a+1].startsWith("/>")?" ":"";s+=n===K?l+io:u>=0?(o.push(d),l.slice(0,u)+Pi+l.slice(u)+N+p):l+N+(u===-2?a:p)}return[Ni(i,s+(i[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),o]};class nt{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]=oo(t,e);if(this.el=nt.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(Pi)){const h=c[n++],p=r.getAttribute(u).split(N),m=/([.?@])?(.*)/.exec(h);l.push({type:1,index:s,name:m[2],strings:p,ctor:m[1]==="."?no:m[1]==="?"?ao:m[1]==="@"?lo:Et}),r.removeAttribute(u)}else u.startsWith(N)&&(l.push({type:6,index:s}),r.removeAttribute(u));if(Si.test(r.tagName)){const u=r.textContent.split(N),h=u.length-1;if(h>0){r.textContent=vt?vt.emptyScript:"";for(let p=0;p<h;p++)r.append(u[p],ot()),D.nextNode(),l.push({type:2,index:++s});r.append(u[h],ot())}}}else if(r.nodeType===8)if(r.data===Ti)l.push({type:2,index:s});else{let u=-1;for(;(u=r.data.indexOf(N,u+1))!==-1;)l.push({type:7,index:s}),u+=N.length-1}s++}}static createElement(t,e){const o=$.createElement("template");return o.innerHTML=t,o}}function W(i,t,e=i,o){var n,a,l;if(t===Y)return t;let r=o!==void 0?(n=e._$Co)==null?void 0:n[o]:e._$Cl;const s=st(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 so{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:$).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 pt(s,s.nextSibling,this,t):l.type===1?c=new l.ctor(s,l.name,l.strings,this,t):l.type===6&&(c=new co(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}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 pt{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),st(t)?t===g||t==null||t===""?(this._$AH!==g&&this._$AR(),this._$AH=g):t!==this._$AH&&t!==Y&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):ro(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&&st(this._$AH)?this._$AA.nextSibling.data=t:this.T($.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=nt.createElement(Ni(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 so(r,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=We.get(t.strings);return e===void 0&&We.set(t.strings,e=new nt(t)),e}k(t){he(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 pt(this.O(ot()),this.O(ot()),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 Et{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=!st(t)||t!==this._$AH&&t!==Y,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===Y&&(d=this._$AH[l]),n||(n=!st(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 no extends Et{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===g?void 0:t}}class ao extends Et{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==g)}}class lo extends Et{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)===Y)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 co{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 Lt=it.litHtmlPolyfillSupport;var xi;Lt==null||Lt(nt,pt),((xi=it.litHtmlVersions)!=null?xi:it.litHtmlVersions=[]).push("3.2.1");const uo=(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 pt(t.insertBefore(ot(),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 H extends U{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=uo(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 Y}}var Ai;H._$litElement$=!0,H.finalized=!0,(Ai=globalThis.litElementHydrateSupport)==null||Ai.call(globalThis,{LitElement:H});const $t=globalThis.litElementPolyfillSupport;$t==null||$t({LitElement:H});var wi;((wi=globalThis.litElementVersions)!=null?wi: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 ho=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 ki=[],Gt=new Set,pe=new Set;function Oi(i){return i&&Object.prototype.hasOwnProperty.call(i,"__themes")}function po(i){return Oi(customElements.get(i))}function fo(i=[]){return[i].flat(1/0).filter(t=>t instanceof ue?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Mi(i,t){return(i||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function Ii(i){return i.map(t=>t.cssText).join(`
36
- `)}const yt="vaadin-themable-mixin-style";function mo(i,t){const e=document.createElement("style");e.id=yt,e.textContent=Ii(i),t.content.appendChild(e)}function _o(i){if(!i.shadowRoot)return;const t=i.constructor;if(i instanceof H)[...i.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Ci(i.shadowRoot,t.elementStyles);else{const e=i.shadowRoot.getElementById(yt),o=t.prototype._template;e.textContent=o.content.getElementById(yt).textContent}}function go(i){Gt.forEach(t=>{const e=t.deref();e instanceof i?_o(e):e||Gt.delete(t)})}function Di(i){if(i.prototype instanceof H)i.elementStyles=i.finalizeStyles(i.styles);else{const t=i.prototype._template;t.content.getElementById(yt).textContent=Ii(i.getStylesForThis())}pe.forEach(t=>{const e=customElements.get(t);e!==i&&e.prototype instanceof i&&Di(e)})}function bo(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 S(i,t,e={}){t=fo(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(i,t,e):ki.push({themeFor:i,styles:t,include:e.include,moduleId:e.moduleId}),i&&pe.forEach(o=>{if(Mi(i,o)&&po(o)){const r=customElements.get(o);bo(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),go(r)}})}function Kt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():ki}function vo(i=""){let t=0;return i.startsWith("lumo-")||i.startsWith("material-")?t=1:i.startsWith("vaadin-")&&(t=2),t}function zi(i){const t=[];return i.include&&[].concat(i.include).forEach(e=>{const o=Kt().find(r=>r.moduleId===e);o?t.push(...zi(o),...o.styles):console.warn(`Included moduleId ${e} not found in style registry`)},i.styles),t}function yo(i){const t=`${i}-default-theme`,e=Kt().filter(o=>o.moduleId!==t&&Mi(o.themeFor,i)).map(o=>It(Mt({},o),{styles:[...zi(o),...o.styles],includePriority:vo(o.moduleId)})).sort((o,r)=>r.includePriority-o.includePriority);return e.length>0?e:Kt().filter(o=>o.moduleId===t)}const Li=i=>class extends ho(i){constructor(){super(),Gt.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&pe.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||Oi(this)||mo(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,...yo(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 xo=(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)},G=(i,...t)=>{xo(`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 Ao=_`
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
- `;G("color-props",Ao);const wo=_`
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
- `;S("",wo,{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 Co=_`
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
- `;G("sizing-props",Co);/**
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 Eo=_`
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
- `;G("style-props",Eo);/**
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 Po=_`
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
- `,To=_`
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
- `;S("",To,{moduleId:"lumo-typography"});G("typography-props",Po);S("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 So=_`
670
- @font-face {
671
- font-family: 'lumo-icons';
672
- src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
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-dropdown: '\\ea18';
703
- --lumo-icons-edit: '\\ea19';
704
- --lumo-icons-error: '\\ea1a';
705
- --lumo-icons-eye: '\\ea1b';
706
- --lumo-icons-eye-disabled: '\\ea1c';
707
- --lumo-icons-menu: '\\ea1d';
708
- --lumo-icons-minus: '\\ea1e';
709
- --lumo-icons-ordered-list: '\\ea1f';
710
- --lumo-icons-phone: '\\ea20';
711
- --lumo-icons-photo: '\\ea21';
712
- --lumo-icons-play: '\\ea22';
713
- --lumo-icons-plus: '\\ea23';
714
- --lumo-icons-redo: '\\ea24';
715
- --lumo-icons-reload: '\\ea25';
716
- --lumo-icons-search: '\\ea26';
717
- --lumo-icons-undo: '\\ea27';
718
- --lumo-icons-unordered-list: '\\ea28';
719
- --lumo-icons-upload: '\\ea29';
720
- --lumo-icons-user: '\\ea2a';
721
- }
722
- `;G("font-icons",So);/**
723
- * @license
724
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
725
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
726
- */const No=_`
727
- :host {
728
- /* Square */
729
- --lumo-space-xs: 0.25rem;
730
- --lumo-space-s: 0.5rem;
731
- --lumo-space-m: 1rem;
732
- --lumo-space-l: 1.5rem;
733
- --lumo-space-xl: 2.5rem;
734
-
735
- /* Wide */
736
- --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
737
- --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
738
- --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
739
- --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
740
- --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
741
-
742
- /* Tall */
743
- --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
744
- --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
745
- --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
746
- --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
747
- --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
748
- }
749
- `;G("spacing-props",No);/**
750
- * @license
751
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
752
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
753
- */const $i=_`
754
- [part$='button'] {
755
- flex: none;
756
- width: 1em;
757
- height: 1em;
758
- line-height: 1;
759
- font-size: var(--lumo-icon-size-m);
760
- text-align: center;
761
- color: var(--lumo-contrast-60pct);
762
- transition: 0.2s color;
763
- cursor: var(--lumo-clickable-cursor);
764
- }
765
-
766
- [part$='button']:hover {
767
- color: var(--lumo-contrast-90pct);
768
- }
769
-
770
- :host([disabled]) [part$='button'],
771
- :host([readonly]) [part$='button'] {
772
- color: var(--lumo-contrast-20pct);
773
- cursor: default;
774
- }
775
-
776
- [part$='button']::before {
777
- font-family: 'lumo-icons';
778
- display: block;
779
- }
780
- `;S("",$i,{moduleId:"lumo-field-button"});/**
781
- * @license
782
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
783
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
784
- */const Ri=_`
785
- :host {
786
- --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
787
- }
788
-
789
- :host([has-helper]) [part='helper-text']::before {
790
- content: '';
791
- display: block;
792
- height: var(--_helper-spacing);
793
- }
794
-
795
- [part='helper-text'] {
796
- display: block;
797
- color: var(--vaadin-input-field-helper-color, var(--lumo-secondary-text-color));
798
- font-size: var(--vaadin-input-field-helper-font-size, var(--lumo-font-size-xs));
799
- line-height: var(--lumo-line-height-xs);
800
- font-weight: var(--vaadin-input-field-helper-font-weight, 400);
801
- margin-left: calc(var(--lumo-border-radius-m) / 4);
802
- transition: color 0.2s;
803
- }
804
-
805
- :host(:hover:not([readonly])) [part='helper-text'] {
806
- color: var(--lumo-body-text-color);
807
- }
808
-
809
- :host([disabled]) [part='helper-text'] {
810
- color: var(--lumo-disabled-text-color);
811
- -webkit-text-fill-color: var(--lumo-disabled-text-color);
812
- }
813
-
814
- :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
815
- display: none;
816
- }
817
-
818
- :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
819
- content: '';
820
- display: block;
821
- height: var(--_helper-spacing);
822
- }
823
-
824
- :host([has-helper][theme~='helper-above-field']) [part='label'] {
825
- order: 0;
826
- padding-bottom: var(--_helper-spacing);
827
- }
828
-
829
- :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
830
- order: 1;
831
- }
832
-
833
- :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
834
- order: 2;
835
- }
836
-
837
- :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
838
- order: 3;
839
- }
840
- `;/**
841
- * @license
842
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
843
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
844
- */const fe=_`
845
- [part='label'] {
846
- align-self: flex-start;
847
- color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
848
- font-weight: var(--vaadin-input-field-label-font-weight, 500);
849
- font-size: var(--vaadin-input-field-label-font-size, var(--lumo-font-size-s));
850
- margin-left: calc(var(--lumo-border-radius-m) / 4);
851
- transition: color 0.2s;
852
- line-height: 1;
853
- padding-right: 1em;
854
- padding-bottom: 0.5em;
855
- /* As a workaround for diacritics being cut off, add a top padding and a
856
- negative margin to compensate */
857
- padding-top: 0.25em;
858
- margin-top: -0.25em;
859
- overflow: hidden;
860
- white-space: nowrap;
861
- text-overflow: ellipsis;
862
- position: relative;
863
- max-width: 100%;
864
- box-sizing: border-box;
865
- }
866
-
867
- :host([focused]:not([readonly])) [part='label'] {
868
- color: var(--vaadin-input-field-focused-label-color, var(--lumo-primary-text-color));
869
- }
870
-
871
- :host(:hover:not([readonly]):not([focused])) [part='label'] {
872
- color: var(--vaadin-input-field-hovered-label-color, var(--lumo-body-text-color));
873
- }
874
-
875
- /* Touch device adjustment */
876
- @media (pointer: coarse) {
877
- :host(:hover:not([readonly]):not([focused])) [part='label'] {
878
- color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
879
- }
880
- }
881
-
882
- :host([has-label])::before {
883
- margin-top: calc(var(--lumo-font-size-s) * 1.5);
884
- }
885
-
886
- :host([has-label][theme~='small'])::before {
887
- margin-top: calc(var(--lumo-font-size-xs) * 1.5);
888
- }
889
-
890
- :host([has-label]) {
891
- padding-top: var(--lumo-space-m);
892
- }
893
-
894
- :host([has-label]) ::slotted([slot='tooltip']) {
895
- --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
896
- }
897
-
898
- :host([required]) [part='required-indicator']::after {
899
- content: var(--lumo-required-field-indicator, '\\2022');
900
- transition: opacity 0.2s;
901
- color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
902
- position: absolute;
903
- right: 0;
904
- width: 1em;
905
- text-align: center;
906
- }
907
-
908
- :host([invalid]) [part='required-indicator']::after {
909
- color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
910
- }
911
-
912
- [part='error-message'] {
913
- margin-left: calc(var(--lumo-border-radius-m) / 4);
914
- font-size: var(--vaadin-input-field-error-font-size, var(--lumo-font-size-xs));
915
- line-height: var(--lumo-line-height-xs);
916
- font-weight: var(--vaadin-input-field-error-font-weight, 400);
917
- color: var(--vaadin-input-field-error-color, var(--lumo-error-text-color));
918
- will-change: max-height;
919
- transition: 0.4s max-height;
920
- max-height: 5em;
921
- }
922
-
923
- :host([has-error-message]) [part='error-message']::before,
924
- :host([has-error-message]) [part='error-message']::after {
925
- content: '';
926
- display: block;
927
- height: 0.4em;
928
- }
929
-
930
- :host(:not([invalid])) [part='error-message'] {
931
- max-height: 0;
932
- overflow: hidden;
933
- }
934
-
935
- /* RTL specific styles */
936
-
937
- :host([dir='rtl']) [part='label'] {
938
- margin-left: 0;
939
- margin-right: calc(var(--lumo-border-radius-m) / 4);
940
- }
941
-
942
- :host([dir='rtl']) [part='label'] {
943
- padding-left: 1em;
944
- padding-right: 0;
945
- }
946
-
947
- :host([dir='rtl']) [part='required-indicator']::after {
948
- right: auto;
949
- left: 0;
950
- }
951
-
952
- :host([dir='rtl']) [part='error-message'] {
953
- margin-left: 0;
954
- margin-right: calc(var(--lumo-border-radius-m) / 4);
955
- }
956
- `;S("",fe,{moduleId:"lumo-required-field"});/**
957
- * @license
958
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
959
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
960
- */const ko=_`
961
- :host {
962
- --lumo-text-field-size: var(--lumo-size-m);
963
- color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
964
- font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
965
- font-family: var(--lumo-font-family);
966
- -webkit-font-smoothing: antialiased;
967
- -moz-osx-font-smoothing: grayscale;
968
- -webkit-tap-highlight-color: transparent;
969
- padding: var(--lumo-space-xs) 0;
970
- --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
971
- --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
972
- --_input-height: var(--vaadin-input-field-height, var(--lumo-text-field-size));
973
- --_disabled-value-color: var(--vaadin-input-field-disabled-value-color, var(--lumo-disabled-text-color));
974
- }
975
-
976
- :host::before {
977
- height: var(--_input-height);
978
- box-sizing: border-box;
979
- display: inline-flex;
980
- align-items: center;
981
- }
982
-
983
- :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
984
- -webkit-mask-image: none;
985
- mask-image: none;
986
- }
987
-
988
- ::slotted(:is(input, textarea):placeholder-shown) {
989
- color: var(--vaadin-input-field-placeholder-color, var(--lumo-secondary-text-color));
990
- }
991
-
992
- /* Hover */
993
- :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
994
- opacity: var(--vaadin-input-field-hover-highlight-opacity, 0.1);
995
- }
996
-
997
- /* Touch device adjustment */
998
- @media (pointer: coarse) {
999
- :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
1000
- opacity: 0;
1001
- }
1002
-
1003
- :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
1004
- opacity: 0.2;
1005
- }
1006
- }
1007
-
1008
- /* Trigger when not focusing using the keyboard */
1009
- :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
1010
- transform: scaleX(0);
1011
- transition-duration: 0.15s, 1s;
1012
- }
1013
-
1014
- /* Focus-ring */
1015
- :host([focus-ring]) [part='input-field'] {
1016
- box-shadow: 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
1017
- }
1018
-
1019
- /* Read-only and disabled */
1020
- :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
1021
- opacity: 0;
1022
- }
1023
-
1024
- /* Read-only style */
1025
- :host([readonly]) {
1026
- --vaadin-input-field-border-color: transparent;
1027
- }
1028
-
1029
- /* Disabled style */
1030
- :host([disabled]) {
1031
- pointer-events: none;
1032
- --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
1033
- }
1034
-
1035
- :host([disabled]) [part='label'],
1036
- :host([disabled]) [part='input-field'] ::slotted([slot$='fix']) {
1037
- color: var(--lumo-disabled-text-color);
1038
- -webkit-text-fill-color: var(--lumo-disabled-text-color);
1039
- }
1040
-
1041
- :host([disabled]) [part='input-field'] ::slotted(:not([slot$='fix'])) {
1042
- color: var(--_disabled-value-color);
1043
- -webkit-text-fill-color: var(--_disabled-value-color);
1044
- }
1045
-
1046
- /* Invalid style */
1047
- :host([invalid]) {
1048
- --vaadin-input-field-border-color: var(--lumo-error-color);
1049
- }
1050
-
1051
- :host([invalid][focus-ring]) [part='input-field'] {
1052
- box-shadow: 0 0 0 var(--_focus-ring-width) var(--lumo-error-color-50pct);
1053
- }
1054
-
1055
- :host([input-prevented]) [part='input-field'] {
1056
- animation: shake 0.15s infinite;
1057
- }
1058
-
1059
- @keyframes shake {
1060
- 25% {
1061
- transform: translateX(4px);
1062
- }
1063
- 75% {
1064
- transform: translateX(-4px);
1065
- }
1066
- }
1067
-
1068
- /* Small theme */
1069
- :host([theme~='small']) {
1070
- font-size: var(--lumo-font-size-s);
1071
- --lumo-text-field-size: var(--lumo-size-s);
1072
- }
1073
-
1074
- :host([theme~='small']) [part='label'] {
1075
- font-size: var(--lumo-font-size-xs);
1076
- }
1077
-
1078
- :host([theme~='small']) [part='error-message'] {
1079
- font-size: var(--lumo-font-size-xxs);
1080
- }
1081
-
1082
- /* Slotted content */
1083
- [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
1084
- color: var(--lumo-secondary-text-color);
1085
- font-weight: 400;
1086
- }
1087
-
1088
- [part='clear-button']::before {
1089
- content: var(--lumo-icons-cross);
1090
- }
1091
- `,Fi=[fe,$i,Ri,ko];S("",Fi,{moduleId:"lumo-input-field-shared-styles"});/**
1092
- @license
1093
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1094
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1095
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1096
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1097
- Code distributed by Google as part of the polymer project is also
1098
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1099
- */window.JSCompiler_renameProperty=function(i,t){return i};/**
1100
- @license
1101
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1102
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1103
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1104
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1105
- Code distributed by Google as part of the polymer project is also
1106
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1107
- */let Oo=/(url\()([^)]*)(\))/g,Mo=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,ft,A;function rt(i,t){if(i&&Mo.test(i)||i==="//")return i;if(ft===void 0){ft=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",ft=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),ft)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 me(i,t){return i.replace(Oo,function(e,o,r,s){return o+"'"+rt(r.replace(/["']/g,""),t)+"'"+s})}function _e(i){return i.substring(0,i.lastIndexOf("/")+1)}/**
1108
- @license
1109
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1110
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1111
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1112
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1113
- Code distributed by Google as part of the polymer project is also
1114
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1115
- */const Bi=!window.ShadyDOM||!window.ShadyDOM.inUse,Io=Bi&&"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 Do=window.Polymer&&window.Polymer.rootPath||_e(document.baseURI||window.location.href),xt=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,At=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,zo=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ui=window.Polymer&&window.Polymer.legacyOptimizations||!1,Hi=window.Polymer&&window.Polymer.legacyWarnings||!1,Lo=window.Polymer&&window.Polymer.syncInitialRender||!1,Jt=window.Polymer&&window.Polymer.legacyUndefined||!1,$o=window.Polymer&&window.Polymer.orderedComputed||!1,Ge=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Ro=window.Polymer&&window.Polymer.fastDomIf||!1,Fo=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1,Bo=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
1116
- @license
1117
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1118
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1119
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1120
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1121
- Code distributed by Google as part of the polymer project is also
1122
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1123
- */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};/**
1124
- @license
1125
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1126
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1127
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1128
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1129
- Code distributed by Google as part of the polymer project is also
1130
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1131
- */let ge={},Vi={};function Ke(i,t){ge[i]=Vi[i.toLowerCase()]=t}function Je(i){return ge[i]||Vi[i.toLowerCase()]}function Ho(i){i.querySelector("style")&&console.warn("dom-module %s has style outside template",i.id)}class at extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let o=Je(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=rt(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=_e(e)}return this.__assetpath}register(t){if(t=t||this.id,t){if(At&&Je(t)!==void 0)throw Ke(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Ke(t,this),Ho(this)}}}at.prototype.modules=ge;customElements.define("dom-module",at);/**
1132
- @license
1133
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1134
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1135
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1136
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1137
- Code distributed by Google as part of the polymer project is also
1138
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1139
- */const Vo="link[rel=import][type~=css]",jo="include",Xe="shady-unscoped";function ji(i){return at.import(i)}function Ze(i){let t=i.body?i.body:i;const e=me(t.textContent,i.baseURI),o=document.createElement("style");return o.textContent=e,o}function qo(i){const t=i.trim().split(/\s+/),e=[];for(let o=0;o<t.length;o++)e.push(...Yo(t[o]));return e}function Yo(i){const t=ji(i);if(!t)return console.warn("Could not find style data in module named",i),[];if(t._styles===void 0){const e=[];e.push(...Yi(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(jo);n&&e.push(...qo(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(s.textContent=me(s.textContent,t)),e.push(s)}i._styles=e}return i._styles}function Wo(i){let t=ji(i);return t?Yi(t):[]}function Yi(i){const t=[],e=i.querySelectorAll(Vo);for(let o=0;o<e.length;o++){let r=e[o];if(r.import){const s=r.import,n=r.hasAttribute(Xe);if(n&&!s._unscopedStyle){const a=Ze(s);a.setAttribute(Xe,""),s._unscopedStyle=a}else s._style||(s._style=Ze(s));t.push(n?s._unscopedStyle:s._style)}}return t}/**
1140
- @license
1141
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1142
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1143
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1144
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1145
- Code distributed by Google as part of the polymer project is also
1146
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1147
- */const O=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?i=>ShadyDOM.patch(i):i=>i;/**
1148
- @license
1149
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1150
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1151
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1152
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1153
- Code distributed by Google as part of the polymer project is also
1154
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1155
- */function Xt(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 lt(i,t){return t.indexOf(i+".")===0}function dt(i,t,e){return t+e.slice(i.length)}function Go(i,t){return i===t||Wi(i,t)||lt(i,t)}function Q(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 Gi(i){return Array.isArray(i)?Q(i).split("."):i.toString().split(".")}function v(i,t,e){let o=i,r=Gi(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=Gi(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(".")}/**
1156
- @license
1157
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1158
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1159
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1160
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1161
- Code distributed by Google as part of the polymer project is also
1162
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1163
- */const wt={},Ko=/-[a-z]/g,Jo=/([A-Z])/g;function Ki(i){return wt[i]||(wt[i]=i.indexOf("-")<0?i:i.replace(Ko,t=>t[1].toUpperCase()))}function Pt(i){return wt[i]||(wt[i]=i.replace(Jo,"-$1").toLowerCase())}/**
1164
- @license
1165
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1166
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1167
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1168
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1169
- Code distributed by Google as part of the polymer project is also
1170
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1171
- */let Xo=0,Ji=0,V=[],Zo=0,Zt=!1,Xi=document.createTextNode("");new window.MutationObserver(Qo).observe(Xi,{characterData:!0});function Qo(){Zt=!1;const i=V.length;for(let t=0;t<i;t++){let e=V[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}V.splice(0,i),Ji+=i}const ts={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)}},Zi={run(i){return Zt||(Zt=!0,Xi.textContent=Zo++),V.push(i),Xo++},cancel(i){const t=i-Ji;if(t>=0){if(!V[t])throw new Error("invalid async handle: "+i);V[t]=null}}};/**
1172
- @license
1173
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1174
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1175
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1176
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1177
- Code distributed by Google as part of the polymer project is also
1178
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1179
- */const es=Zi,Qi=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,es.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=O(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});/**
1180
- @license
1181
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1182
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1183
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1184
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1185
- Code distributed by Google as part of the polymer project is also
1186
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1187
- */const tr={};let mt=HTMLElement.prototype;for(;mt;){let i=Object.getOwnPropertyNames(mt);for(let t=0;t<i.length;t++)tr[i[t]]=!0;mt=Object.getPrototypeOf(mt)}const is=window.trustedTypes?i=>trustedTypes.isHTML(i)||trustedTypes.isScript(i)||trustedTypes.isScriptURL(i):()=>!1;function rs(i,t){if(!tr[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 os=b(i=>{const t=Qi(i);class e extends t{static createPropertiesForAttributes(){let r=this.observedAttributes;for(let s=0;s<r.length;s++)this.prototype._createPropertyAccessor(Ki(r[s]))}static attributeNameForProperty(r){return Pt(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(is(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){rs(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});/**
1188
- @license
1189
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1190
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1191
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1192
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1193
- Code distributed by Google as part of the polymer project is also
1194
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1195
- */const ss={"dom-if":!0,"dom-repeat":!0};let ti=!1,ei=!1;function ns(){if(!ti){ti=!0;const i=document.createElement("textarea");i.placeholder="a",ei=i.placeholder===i.textContent}return ei}function as(i){ns()&&i.localName==="textarea"&&i.placeholder&&i.placeholder===i.textContent&&(i.textContent=null)}const ls=(()=>{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 ds(i){let t=i.getAttribute("is");if(t&&ss[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];ls(i,e,o),e.removeAttribute(o)}}return i}function er(i,t){let e=t.parentInfo&&er(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 cs(i,t,e,o){o.id&&(t[o.id]=e)}function us(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 hs(i,t,e,o){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=o)}function ps(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 fs=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),as(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=ds(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]=er(a,u);cs(this,a.$,h,u),hs(this,h,u,r),us(this,h,u)}return a=a,a}_addMethodEventListenerToNode(o,r,s,n){n=n||o;let a=ps(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});/**
1196
- * @fileoverview
1197
- * @suppress {checkPrototypalTypes}
1198
- * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1199
- * This code may only be used under the BSD style license found at
1200
- * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
1201
- * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
1202
- * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1203
- * Google as part of the polymer project is also subject to an additional IP
1204
- * rights grant found at http://polymer.github.io/PATENTS.txt
1205
- */let ct=0;const ut=[],f={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},ir="__computeInfo",ms=/[A-Z]/;function Rt(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 tt(i,t,e,o,r,s){if(t){let n=!1;const a=ct++;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||be(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 _s(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||be(o,p.trigger))&&(p.info&&(p.info.lastRun=e),p.fn(i,o,r,s,p.info,n,a),l=!0);return l}function be(i,t){if(t){let e=t.name;return e==i||!!(t.structured&&Wi(e,i))||!!(t.wildcard&&lt(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 gs(i,t,e,o,r){let s=i[f.NOTIFY],n,a=ct++;for(let d in t)t[d]&&(s&&_s(i,s,a,d,e,o,r)||r&&bs(i,d,e))&&(n=!0);let l;n&&(l=i.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function bs(i,t,e){let o=F(t);if(o!==t){let r=Pt(o)+"-changed";return rr(i,r,e[t],t),!0}return!1}function rr(i,t,e,o){let r={value:e,queueProperty:!0};o&&(r.path=o),O(i).dispatchEvent(new CustomEvent(t,{detail:r}))}function vs(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]),rr(i,r.eventName,l,a)}function ys(i,t,e,o,r){let s,n=i.detail,a=n&&n.path;a?(o=dt(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 xs(i,t,e,o,r){let s=i.__data[t];xt&&(s=xt(s,r.attrName,"attribute",i)),i._propertyToAttribute(t,r.attrName,s)}function As(i,t,e,o){let r=i[f.COMPUTE];if(r)if($o){ct++;const s=Cs(i),n=[];for(let l in t)ri(l,r,n,s,o);let a;for(;a=n.shift();)or(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(;tt(i,r,s,e,o);)Object.assign(e,i.__dataOld),Object.assign(t,i.__dataPending),s=i.__dataPending,i.__dataPending=null}}const ws=(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!==ct&&(!r||be(i,l.trigger))&&(l.info.lastRun=ct,ws(l.info,e,o))}};function Cs(i){let t=i.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=i[f.COMPUTE];let{counts:o,ready:r,total:s}=Es(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 Es(i){const t=i[ir],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 or(i,t,e,o,r){let s=Qt(i,t,e,o,r);if(s===ut)return!1;let n=r.methodInfo;return i.__dataHasAccessor&&i.__dataHasAccessor[n]?i._setPendingProperty(n,s,!0):(i[n]=s,!1)}function Ps(i,t,e){let o=i.__dataLinkedPaths;if(o){let r;for(let s in o){let n=o[s];lt(s,t)?(r=dt(s,n,t),i._setPendingPropertyOrPath(r,e,!0,!0)):lt(n,t)&&(r=dt(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),Os(a)){let{event:d,negate:c}=a.parts[0];a.listenerEvent=d||Pt(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,Ts(i,t,a,c,l)}}function Ts(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=nr(l),l.wildcard=!0),i._addTemplatePropertyEffect(t,l.rootProperty,{fn:Ss,info:n,trigger:l})}}}function Ss(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=dt(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!==ut&&Ns(i,a,l,d,c)}}function Ns(i,t,e,o,r){if(r=ks(t,r,e,o),xt&&(r=xt(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 ks(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 Os(i){return!!i.target&&i.kind!="attribute"&&i.kind!="text"&&!i.isCompound&&i.parts[0].mode==="{"}function Ms(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];Is(n,d),Ds(n,i,d)}n.__dataHost=i}}function Is(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=O(i)),i[s]=t.literal)}}function Ds(i,t,e){if(e.listenerEvent){let o=e.parts[0];i.addEventListener(e.listenerEvent,function(r){ys(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 Qt(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===ut?ut:n.apply(s,a)}else r.dynamicFn||console.warn("method `"+r.methodName+"` not defined")}const zs=[],sr="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Ls="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",$s="(?:'(?:[^'\\\\]|\\\\.)*')",Rs='(?:"(?:[^"\\\\]|\\\\.)*")',Fs="(?:"+$s+"|"+Rs+")",si="(?:("+sr+"|"+Ls+"|"+Fs+")\\s*)",Bs="(?:"+si+"(?:,\\s*"+si+")*)",Us="(?:\\(\\s*(?:"+Bs+"?)\\)\\s*)",Hs="("+sr+"\\s*"+Us+"?)",Vs="(\\[\\[|{{)\\s*",js="(?:]]|}})",qs="(?:(!)\\s*)?",Ys=Vs+qs+Hs+js,ni=new RegExp(Ys,"g");function ai(i){let t="";for(let e=0;e<i.length;e++){let o=i[e].literal;t+=o||""}return t}function Bt(i){let t=i.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let o={methodName:t[1],static:!0,args:zs};if(t[2].trim()){let r=t[2].replace(/\\,/g,"&comma;").split(",");return Ws(r,o)}else return o}return null}function Ws(i,t){return t.args=i.map(function(e){let o=nr(e);return o.literal||(t.static=!1),o},this),t}function nr(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=Xt(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 ar(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){ar(i,t,e,[{index:o,addedCount:r,removed:s,object:t,type:"splice"}])}function Gs(i){return i[0].toUpperCase()+i.substring(1)}const lr=b(i=>{const t=fs(os(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(X.length){let r=X[X.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=Rt(this,s,!0)[r];a||(a=this[s][r]=[]),a.push(n)}_removePropertyEffect(r,s,n){let a=Rt(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 Ps(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=O(r)),r[s]=n)}_setPendingProperty(r,s,n){let a=this.__dataHasPaths&&Xt(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;As(this,s,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(s,n,a),this._flushClients(),tt(this,this[f.REFLECT],s,n,a),tt(this,this[f.OBSERVE],s,n,a),l&&gs(this,l,s,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(r,s,n){this[f.PROPAGATE]&&tt(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)=>{tt(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=Q(r),s=Q(s),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[r]=s}unlinkPaths(r){r=Q(r),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[r]}notifySplices(r,s){let n={path:""},a=v(this,r,n);ar(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=Q(r):n=r;this._setPendingPropertyOrPath(n,s,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(r,s){this._addPropertyEffect(r,f.READ_ONLY),s&&(this["_set"+Gs(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=Bt(r);if(!n)throw new Error("Malformed observer expression '"+r+"'");oi(this,n,f.OBSERVE,Qt,null,s)}_createNotifyingProperty(r){this._addPropertyEffect(r,f.NOTIFY,{fn:vs,info:{eventName:Pt(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:xs,info:{attrName:s}})}_createComputedProperty(r,s,n){let a=Bt(s);if(!a)throw new Error("Malformed computed expression '"+s+"'");const l=oi(this,a,f.COMPUTE,or,r,n);Rt(this,ir)[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 C=lt(u,s),y=li(a,n,C?s:u);m={path:C?s:u,value:y,base:C?v(a,u):y}}else m=h?li(a,n,u):a[u];if(Jt&&!this._overrideLegacyUndefined&&m===void 0&&r.length>1)return ut;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),X.push(this);let n=super._stampTemplate(r,s);if(X.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,Ms(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];O(O(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";ms.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=Ki(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";Ge&&(c||u)&&(l.removeChild(r),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let h=d.hostProps;if(Ro&&c)h&&(s.hostProps=Object.assign(s.hostProps||{},h),Ge||(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=Bt(u),C=[];if(w){let{args:y,methodName:x}=w;for(let Ot=0;Ot<y.length;Ot++){let De=y[Ot];De.literal||C.push(De)}let B=s.dynamicFns;(B&&B[x]||w.static)&&(C.push(x),w.dynamicFn=!0)}else C.push(u);n.push({source:u,mode:d,negate:c,customEvent:h,signature:w,dependencies:C,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=Qt(r,n,a,l,s.signature):n!=s.source?c=v(r,s.source):d&&Xt(n)?c=v(r,n):c=r.__data[n],s.negate&&(c=!c),c}}return e}),X=[];/**
1206
- @license
1207
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1208
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1209
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1210
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1211
- Code distributed by Google as part of the polymer project is also
1212
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1213
- */function Ks(i){const t={};for(let e in i){const o=i[e];t[e]=typeof o=="function"?{type:o}:o}return t}const Js=b(i=>{const t=Qi(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=Ks(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});/**
1214
- * @fileoverview
1215
- * @suppress {checkPrototypalTypes}
1216
- * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1217
- * This code may only be used under the BSD style license found at
1218
- * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
1219
- * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
1220
- * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
1221
- * Google as part of the polymer project is also subject to an additional IP
1222
- * rights grant found at http://polymer.github.io/PATENTS.txt
1223
- */const Xs="3.5.2",di=window.ShadyCSS&&window.ShadyCSS.cssBuild,Zs=b(i=>{const t=Js(lr(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=Wo(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 C=0;for(let y=0;y<p.length;y++){let x=p[y],B=h[C];B!==x?(x=x.cloneNode(!0),B.parentNode.insertBefore(x,B)):C++,x.textContent=l._processStyleText(x.textContent,u)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,c),Bo&&di&&Io){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&&(!At||zo)&&(d=at.import(l,"template"),At&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Xs}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):Ui||(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=_e(d.url);else{const c=at.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=Do,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 me(d,c)}static _finalizeTemplate(d){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const u=this.importPath,h=u?rt(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=O(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])),Lo&&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=rt(this.importPath)),rt(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 Hi&&!(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});/**
1224
- @license
1225
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1226
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1227
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1228
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1229
- Code distributed by Google as part of the polymer project is also
1230
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1231
- */const ci=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:i=>i});class dr{constructor(t,e){hr(t,e);const o=e.reduce((r,s,n)=>r+cr(s)+t[n+1],t[0]);this.value=o.toString()}toString(){return this.value}}function cr(i){if(i instanceof dr)return i.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${i}`)}function Qs(i){if(i instanceof HTMLTemplateElement)return i.innerHTML;if(i instanceof dr)return cr(i);throw new Error(`non-template value passed to Polymer's html function: ${i}`)}const ur=function(t,...e){hr(t,e);const o=document.createElement("template");let r=e.reduce((s,n,a)=>s+Qs(n)+t[a+1],t[0]);return ci&&(r=ci.createHTML(r)),o.innerHTML=r,o},hr=(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")};/**
1232
- @license
1233
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1234
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1235
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1236
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1237
- Code distributed by Google as part of the polymer project is also
1238
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1239
- */const pr=Zs(HTMLElement);/**
1240
- * @license
1241
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1242
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1243
- */const P=[];function te(i,t,e=i.getAttribute("dir")){t?i.setAttribute("dir",t):e!=null&&i.removeAttribute("dir")}function ee(){return document.documentElement.getAttribute("dir")}function tn(){const i=ee();P.forEach(t=>{te(t,i)})}const en=new MutationObserver(tn);en.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const ve=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(),te(this,ee(),null))}attributeChangedCallback(e,o,r){if(super.attributeChangedCallback(e,o,r),e!=="dir")return;const s=ee(),n=r===s&&P.indexOf(this)===-1,a=!r&&o&&P.indexOf(this)===-1;n||a?(this.__subscribe(),te(this,s,r)):r!==s&&o===s&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=P.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(){P.includes(this)||P.push(this)}__unsubscribe(){P.includes(this)&&P.splice(P.indexOf(this),1)}};/**
1244
- * @license
1245
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1246
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1247
- */const rn=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())})}};/**
1248
- * @license
1249
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1250
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1251
- */const on=_`
1252
- :host {
1253
- display: flex;
1254
- align-items: center;
1255
- flex: 0 1 auto;
1256
- border-radius:
1257
- /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
1258
- var(--vaadin-input-field-top-start-radius, var(--__border-radius))
1259
- var(--vaadin-input-field-top-end-radius, var(--__border-radius))
1260
- var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
1261
- var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
1262
- --_border-radius: var(--vaadin-input-field-border-radius, 0);
1263
- --_input-border-width: var(--vaadin-input-field-border-width, 0);
1264
- --_input-border-color: var(--vaadin-input-field-border-color, transparent);
1265
- box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
1266
- }
1267
-
1268
- :host([dir='rtl']) {
1269
- border-radius:
1270
- /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
1271
- var(--vaadin-input-field-top-end-radius, var(--_border-radius))
1272
- var(--vaadin-input-field-top-start-radius, var(--_border-radius))
1273
- var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
1274
- var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
1275
- }
1276
-
1277
- :host([hidden]) {
1278
- display: none !important;
1279
- }
1280
-
1281
- /* Reset the native input styles */
1282
- ::slotted(input) {
1283
- -webkit-appearance: none;
1284
- -moz-appearance: none;
1285
- flex: auto;
1286
- white-space: nowrap;
1287
- overflow: hidden;
1288
- width: 100%;
1289
- height: 100%;
1290
- outline: none;
1291
- margin: 0;
1292
- padding: 0;
1293
- border: 0;
1294
- border-radius: 0;
1295
- min-width: 0;
1296
- font: inherit;
1297
- line-height: normal;
1298
- color: inherit;
1299
- background-color: transparent;
1300
- /* Disable default invalid style in Firefox */
1301
- box-shadow: none;
1302
- }
1303
-
1304
- ::slotted(*) {
1305
- flex: none;
1306
- }
1307
-
1308
- ::slotted(:is(input, textarea))::placeholder {
1309
- /* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
1310
- /* because ::slotted(...)::placeholder does not work in Safari. */
1311
- font: inherit;
1312
- color: inherit;
1313
- /* Override default opacity in Firefox */
1314
- opacity: 1;
1315
- }
1316
- `;/**
1317
- * @license
1318
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1319
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1320
- */S("vaadin-input-container",on,{moduleId:"vaadin-input-container-styles"});class sn extends rn(Li(ve(pr))){static get is(){return"vaadin-input-container"}static get template(){return ur`
1321
- <slot name="prefix"></slot>
1322
- <slot></slot>
1323
- <slot name="suffix"></slot>
1324
- `}}le(sn);const nn=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,bt=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function an(){function i(){return!0}return fr(i)}function ln(){try{return dn()?!0:cn()?bt?!un():!an():!1}catch(i){return!1}}function dn(){return localStorage.getItem("vaadin.developmentmode.force")}function cn(){return["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function un(){return!!(bt&&Object.keys(bt).map(t=>bt[t]).filter(t=>t.productionMode).length>0)}function fr(i,t){if(typeof i!="function")return;const e=nn.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 fr(i,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=ln());function hn(){/*! vaadin-dev-mode:start
1325
- (function () {
1326
- 'use strict';
1327
-
1328
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
1329
- return typeof obj;
1330
- } : function (obj) {
1331
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
1332
- };
1333
-
1334
- var classCallCheck = function (instance, Constructor) {
1335
- if (!(instance instanceof Constructor)) {
1336
- throw new TypeError("Cannot call a class as a function");
1337
- }
1338
- };
1339
-
1340
- var createClass = function () {
1341
- function defineProperties(target, props) {
1342
- for (var i = 0; i < props.length; i++) {
1343
- var descriptor = props[i];
1344
- descriptor.enumerable = descriptor.enumerable || false;
1345
- descriptor.configurable = true;
1346
- if ("value" in descriptor) descriptor.writable = true;
1347
- Object.defineProperty(target, descriptor.key, descriptor);
1348
- }
1349
- }
1350
-
1351
- return function (Constructor, protoProps, staticProps) {
1352
- if (protoProps) defineProperties(Constructor.prototype, protoProps);
1353
- if (staticProps) defineProperties(Constructor, staticProps);
1354
- return Constructor;
1355
- };
1356
- }();
1357
-
1358
- var getPolymerVersion = function getPolymerVersion() {
1359
- return window.Polymer && window.Polymer.version;
1360
- };
1361
-
1362
- var StatisticsGatherer = function () {
1363
- function StatisticsGatherer(logger) {
1364
- classCallCheck(this, StatisticsGatherer);
1365
-
1366
- this.now = new Date().getTime();
1367
- this.logger = logger;
1368
- }
1369
-
1370
- createClass(StatisticsGatherer, [{
1371
- key: 'frameworkVersionDetectors',
1372
- value: function frameworkVersionDetectors() {
1373
- return {
1374
- 'Flow': function Flow() {
1375
- if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
1376
- var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
1377
- return window.Vaadin.Flow.clients[key];
1378
- }).filter(function (client) {
1379
- return client.getVersionInfo;
1380
- }).map(function (client) {
1381
- return client.getVersionInfo().flow;
1382
- });
1383
- if (flowVersions.length > 0) {
1384
- return flowVersions[0];
1385
- }
1386
- }
1387
- },
1388
- 'Vaadin Framework': function VaadinFramework() {
1389
- if (window.vaadin && window.vaadin.clients) {
1390
- var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
1391
- return client.getVersionInfo;
1392
- }).map(function (client) {
1393
- return client.getVersionInfo().vaadinVersion;
1394
- });
1395
- if (frameworkVersions.length > 0) {
1396
- return frameworkVersions[0];
1397
- }
1398
- }
1399
- },
1400
- 'AngularJs': function AngularJs() {
1401
- if (window.angular && window.angular.version && window.angular.version) {
1402
- return window.angular.version.full;
1403
- }
1404
- },
1405
- 'Angular': function Angular() {
1406
- if (window.ng) {
1407
- var tags = document.querySelectorAll("[ng-version]");
1408
- if (tags.length > 0) {
1409
- return tags[0].getAttribute("ng-version");
1410
- }
1411
- return "Unknown";
1412
- }
1413
- },
1414
- 'Backbone.js': function BackboneJs() {
1415
- if (window.Backbone) {
1416
- return window.Backbone.VERSION;
1417
- }
1418
- },
1419
- 'React': function React() {
1420
- var reactSelector = '[data-reactroot], [data-reactid]';
1421
- if (!!document.querySelector(reactSelector)) {
1422
- // React does not publish the version by default
1423
- return "unknown";
1424
- }
1425
- },
1426
- 'Ember': function Ember() {
1427
- if (window.Em && window.Em.VERSION) {
1428
- return window.Em.VERSION;
1429
- } else if (window.Ember && window.Ember.VERSION) {
1430
- return window.Ember.VERSION;
1431
- }
1432
- },
1433
- 'jQuery': function (_jQuery) {
1434
- function jQuery() {
1435
- return _jQuery.apply(this, arguments);
1436
- }
1437
-
1438
- jQuery.toString = function () {
1439
- return _jQuery.toString();
1440
- };
1441
-
1442
- return jQuery;
1443
- }(function () {
1444
- if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
1445
- return jQuery.prototype.jquery;
1446
- }
1447
- }),
1448
- 'Polymer': function Polymer() {
1449
- var version = getPolymerVersion();
1450
- if (version) {
1451
- return version;
1452
- }
1453
- },
1454
- 'LitElement': function LitElement() {
1455
- var version = window.litElementVersions && window.litElementVersions[0];
1456
- if (version) {
1457
- return version;
1458
- }
1459
- },
1460
- 'LitHtml': function LitHtml() {
1461
- var version = window.litHtmlVersions && window.litHtmlVersions[0];
1462
- if (version) {
1463
- return version;
1464
- }
1465
- },
1466
- 'Vue.js': function VueJs() {
1467
- if (window.Vue) {
1468
- return window.Vue.version;
1469
- }
1470
- }
1471
- };
1472
- }
1473
- }, {
1474
- key: 'getUsedVaadinElements',
1475
- value: function getUsedVaadinElements(elements) {
1476
- var version = getPolymerVersion();
1477
- var elementClasses = void 0;
1478
- // NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
1479
- // Check all locations calling the method getEntries() in
1480
- // https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
1481
- // Currently it is only used by BootstrapHandler.
1482
- if (version && version.indexOf('2') === 0) {
1483
- // Polymer 2: components classes are stored in window.Vaadin
1484
- elementClasses = Object.keys(window.Vaadin).map(function (c) {
1485
- return window.Vaadin[c];
1486
- }).filter(function (c) {
1487
- return c.is;
1488
- });
1489
- } else {
1490
- // Polymer 3: components classes are stored in window.Vaadin.registrations
1491
- elementClasses = window.Vaadin.registrations || [];
1492
- }
1493
- elementClasses.forEach(function (klass) {
1494
- var version = klass.version ? klass.version : "0.0.0";
1495
- elements[klass.is] = { version: version };
1496
- });
1497
- }
1498
- }, {
1499
- key: 'getUsedVaadinThemes',
1500
- value: function getUsedVaadinThemes(themes) {
1501
- ['Lumo', 'Material'].forEach(function (themeName) {
1502
- var theme;
1503
- var version = getPolymerVersion();
1504
- if (version && version.indexOf('2') === 0) {
1505
- // Polymer 2: themes are stored in window.Vaadin
1506
- theme = window.Vaadin[themeName];
1507
- } else {
1508
- // Polymer 3: themes are stored in custom element registry
1509
- theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
1510
- }
1511
- if (theme && theme.version) {
1512
- themes[themeName] = { version: theme.version };
1513
- }
1514
- });
1515
- }
1516
- }, {
1517
- key: 'getFrameworks',
1518
- value: function getFrameworks(frameworks) {
1519
- var detectors = this.frameworkVersionDetectors();
1520
- Object.keys(detectors).forEach(function (framework) {
1521
- var detector = detectors[framework];
1522
- try {
1523
- var version = detector();
1524
- if (version) {
1525
- frameworks[framework] = { version: version };
1526
- }
1527
- } catch (e) {}
1528
- });
1529
- }
1530
- }, {
1531
- key: 'gather',
1532
- value: function gather(storage) {
1533
- var storedStats = storage.read();
1534
- var gatheredStats = {};
1535
- var types = ["elements", "frameworks", "themes"];
1536
-
1537
- types.forEach(function (type) {
1538
- gatheredStats[type] = {};
1539
- if (!storedStats[type]) {
1540
- storedStats[type] = {};
1541
- }
1542
- });
1543
-
1544
- var previousStats = JSON.stringify(storedStats);
1545
-
1546
- this.getUsedVaadinElements(gatheredStats.elements);
1547
- this.getFrameworks(gatheredStats.frameworks);
1548
- this.getUsedVaadinThemes(gatheredStats.themes);
1549
-
1550
- var now = this.now;
1551
- types.forEach(function (type) {
1552
- var keys = Object.keys(gatheredStats[type]);
1553
- keys.forEach(function (key) {
1554
- if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
1555
- storedStats[type][key] = { firstUsed: now };
1556
- }
1557
- // Discards any previously logged version number
1558
- storedStats[type][key].version = gatheredStats[type][key].version;
1559
- storedStats[type][key].lastUsed = now;
1560
- });
1561
- });
1562
-
1563
- var newStats = JSON.stringify(storedStats);
1564
- storage.write(newStats);
1565
- if (newStats != previousStats && Object.keys(storedStats).length > 0) {
1566
- this.logger.debug("New stats: " + newStats);
1567
- }
1568
- }
1569
- }]);
1570
- return StatisticsGatherer;
1571
- }();
1572
-
1573
- var StatisticsStorage = function () {
1574
- function StatisticsStorage(key) {
1575
- classCallCheck(this, StatisticsStorage);
1576
-
1577
- this.key = key;
1578
- }
1579
-
1580
- createClass(StatisticsStorage, [{
1581
- key: 'read',
1582
- value: function read() {
1583
- var localStorageStatsString = localStorage.getItem(this.key);
1584
- try {
1585
- return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
1586
- } catch (e) {
1587
- return {};
1588
- }
1589
- }
1590
- }, {
1591
- key: 'write',
1592
- value: function write(data) {
1593
- localStorage.setItem(this.key, data);
1594
- }
1595
- }, {
1596
- key: 'clear',
1597
- value: function clear() {
1598
- localStorage.removeItem(this.key);
1599
- }
1600
- }, {
1601
- key: 'isEmpty',
1602
- value: function isEmpty() {
1603
- var storedStats = this.read();
1604
- var empty = true;
1605
- Object.keys(storedStats).forEach(function (key) {
1606
- if (Object.keys(storedStats[key]).length > 0) {
1607
- empty = false;
1608
- }
1609
- });
1610
-
1611
- return empty;
1612
- }
1613
- }]);
1614
- return StatisticsStorage;
1615
- }();
1616
-
1617
- var StatisticsSender = function () {
1618
- function StatisticsSender(url, logger) {
1619
- classCallCheck(this, StatisticsSender);
1620
-
1621
- this.url = url;
1622
- this.logger = logger;
1623
- }
1624
-
1625
- createClass(StatisticsSender, [{
1626
- key: 'send',
1627
- value: function send(data, errorHandler) {
1628
- var logger = this.logger;
1629
-
1630
- if (navigator.onLine === false) {
1631
- logger.debug("Offline, can't send");
1632
- errorHandler();
1633
- return;
1634
- }
1635
- logger.debug("Sending data to " + this.url);
1636
-
1637
- var req = new XMLHttpRequest();
1638
- req.withCredentials = true;
1639
- req.addEventListener("load", function () {
1640
- // Stats sent, nothing more to do
1641
- logger.debug("Response: " + req.responseText);
1642
- });
1643
- req.addEventListener("error", function () {
1644
- logger.debug("Send failed");
1645
- errorHandler();
1646
- });
1647
- req.addEventListener("abort", function () {
1648
- logger.debug("Send aborted");
1649
- errorHandler();
1650
- });
1651
- req.open("POST", this.url);
1652
- req.setRequestHeader("Content-Type", "application/json");
1653
- req.send(data);
1654
- }
1655
- }]);
1656
- return StatisticsSender;
1657
- }();
1658
-
1659
- var StatisticsLogger = function () {
1660
- function StatisticsLogger(id) {
1661
- classCallCheck(this, StatisticsLogger);
1662
-
1663
- this.id = id;
1664
- }
1665
-
1666
- createClass(StatisticsLogger, [{
1667
- key: '_isDebug',
1668
- value: function _isDebug() {
1669
- return localStorage.getItem("vaadin." + this.id + ".debug");
1670
- }
1671
- }, {
1672
- key: 'debug',
1673
- value: function debug(msg) {
1674
- if (this._isDebug()) {
1675
- console.info(this.id + ": " + msg);
1676
- }
1677
- }
1678
- }]);
1679
- return StatisticsLogger;
1680
- }();
1681
-
1682
- var UsageStatistics = function () {
1683
- function UsageStatistics() {
1684
- classCallCheck(this, UsageStatistics);
1685
-
1686
- this.now = new Date();
1687
- this.timeNow = this.now.getTime();
1688
- this.gatherDelay = 10; // Delay between loading this file and gathering stats
1689
- this.initialDelay = 24 * 60 * 60;
1690
-
1691
- this.logger = new StatisticsLogger("statistics");
1692
- this.storage = new StatisticsStorage("vaadin.statistics.basket");
1693
- this.gatherer = new StatisticsGatherer(this.logger);
1694
- this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
1695
- }
1696
-
1697
- createClass(UsageStatistics, [{
1698
- key: 'maybeGatherAndSend',
1699
- value: function maybeGatherAndSend() {
1700
- var _this = this;
1701
-
1702
- if (localStorage.getItem(UsageStatistics.optOutKey)) {
1703
- return;
1704
- }
1705
- this.gatherer.gather(this.storage);
1706
- setTimeout(function () {
1707
- _this.maybeSend();
1708
- }, this.gatherDelay * 1000);
1709
- }
1710
- }, {
1711
- key: 'lottery',
1712
- value: function lottery() {
1713
- return true;
1714
- }
1715
- }, {
1716
- key: 'currentMonth',
1717
- value: function currentMonth() {
1718
- return this.now.getYear() * 12 + this.now.getMonth();
1719
- }
1720
- }, {
1721
- key: 'maybeSend',
1722
- value: function maybeSend() {
1723
- var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
1724
- var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
1725
-
1726
- if (!firstUse) {
1727
- // Use a grace period to avoid interfering with tests, incognito mode etc
1728
- firstUse = this.timeNow;
1729
- localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
1730
- }
1731
-
1732
- if (this.timeNow < firstUse + this.initialDelay * 1000) {
1733
- this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
1734
- return;
1735
- }
1736
- if (this.currentMonth() <= monthProcessed) {
1737
- this.logger.debug("This month has already been processed");
1738
- return;
1739
- }
1740
- localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
1741
- // Use random sampling
1742
- if (this.lottery()) {
1743
- this.logger.debug("Congratulations, we have a winner!");
1744
- } else {
1745
- this.logger.debug("Sorry, no stats from you this time");
1746
- return;
1747
- }
1748
-
1749
- this.send();
1750
- }
1751
- }, {
1752
- key: 'send',
1753
- value: function send() {
1754
- // Ensure we have the latest data
1755
- this.gatherer.gather(this.storage);
1756
-
1757
- // Read, send and clean up
1758
- var data = this.storage.read();
1759
- data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
1760
- data["usageStatisticsVersion"] = UsageStatistics.version;
1761
- 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';
1762
- var self = this;
1763
- this.sender.send(info + JSON.stringify(data), function () {
1764
- // Revert the 'month processed' flag
1765
- localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
1766
- });
1767
- }
1768
- }], [{
1769
- key: 'version',
1770
- get: function get$1() {
1771
- return '2.1.2';
1772
- }
1773
- }, {
1774
- key: 'firstUseKey',
1775
- get: function get$1() {
1776
- return 'vaadin.statistics.firstuse';
1777
- }
1778
- }, {
1779
- key: 'monthProcessedKey',
1780
- get: function get$1() {
1781
- return 'vaadin.statistics.monthProcessed';
1782
- }
1783
- }, {
1784
- key: 'optOutKey',
1785
- get: function get$1() {
1786
- return 'vaadin.statistics.optout';
1787
- }
1788
- }]);
1789
- return UsageStatistics;
1790
- }();
1791
-
1792
- try {
1793
- window.Vaadin = window.Vaadin || {};
1794
- window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
1795
- window.Vaadin.usageStatsChecker.maybeGatherAndSend();
1796
- } catch (e) {
1797
- // Intentionally ignored as this is not a problem in the app being developed
1798
- }
1799
-
1800
- }());
1801
-
1802
- vaadin-dev-mode:end **/}const pn=function(){if(typeof ui=="function")return ui(hn)};/**
1803
- * @license
1804
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1805
- * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1806
- * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1807
- * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1808
- * Code distributed by Google as part of the polymer project is also
1809
- * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1810
- */let hi=0,mr=0;const j=[];let ie=!1;function fn(){ie=!1;const i=j.length;for(let t=0;t<i;t++){const e=j[t];if(e)try{e()}catch(o){setTimeout(()=>{throw o})}}j.splice(0,i),mr+=i}const _r={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)}},gr={run(i){return window.requestAnimationFrame(i)},cancel(i){window.cancelAnimationFrame(i)}},br={run(i){return window.requestIdleCallback?window.requestIdleCallback(i):window.setTimeout(i,16)},cancel(i){window.cancelIdleCallback?window.cancelIdleCallback(i):window.clearTimeout(i)}},vr={run(i){ie||(ie=!0,queueMicrotask(()=>fn())),j.push(i);const t=hi;return hi+=1,t},cancel(i){const t=i-mr;if(t>=0){if(!j[t])throw new Error(`invalid async handle: ${i}`);j[t]=null}}};/**
1811
- @license
1812
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1813
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
1814
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1815
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1816
- Code distributed by Google as part of the polymer project is also
1817
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1818
- */const ht=new Set;class R{static debounce(t,e,o){return t instanceof R?t._cancelAsync():t=new R,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,ht.delete(this),this._callback()})}cancel(){this.isActive()&&(this._cancelAsync(),ht.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 yr(i){ht.add(i)}function mn(){const i=!!ht.size;return ht.forEach(t=>{try{t.flush()}catch(e){setTimeout(()=>{throw e})}}),i}const _n=()=>{let i;do i=mn();while(i)};/**
1819
- * @license
1820
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1821
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1822
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){pn()};let Ut;const pi=new Set,gn=i=>class extends ve(i){static finalize(){super.finalize();const{is:e}=this;e&&!pi.has(e)&&(window.Vaadin.registrations.push(this),pi.add(e),window.Vaadin.developmentModeCallback&&(Ut=R.debounce(Ut,br,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()}),yr(Ut)))}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}};/**
1823
- * @license
1824
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1825
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1826
- */function bn(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 ye(i){return i?new Set(i.split(" ")):new Set}function Tt(i){return i?[...i].join(" "):""}function xr(i,t,e){const o=ye(i.getAttribute(t));o.add(e),i.setAttribute(t,Tt(o))}function vn(i,t,e){const o=ye(i.getAttribute(t));if(o.delete(e),o.size===0){i.removeAttribute(t);return}i.setAttribute(t,Tt(o))}function yn(i){return i.nodeType===Node.TEXT_NODE&&i.textContent.trim()===""}/**
1827
- * @license
1828
- * Copyright (c) 2023 - 2024 Vaadin Ltd.
1829
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1830
- */class Ar{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}}/**
1831
- * @license
1832
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1833
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1834
- */let xn=0;function wr(){return xn++}/**
1835
- * @license
1836
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1837
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1838
- */class St extends EventTarget{static generateId(t,e="default"){return`${e}-${t.localName}-${wr()}`}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 Ar(o,({addedNodes:r,removedNodes:s})=>{const n=this.multiple?this.nodes:[this.node],a=r.filter(l=>!yn(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)))})}}/**
1839
- * @license
1840
- * Copyright (c) 2022 - 2024 Vaadin Ltd.
1841
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1842
- */class An extends St{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}}))}}/**
1843
- * @license
1844
- * Copyright (c) 2021 - 2024 Vaadin Ltd..
1845
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1846
- */const wn=_`
1847
- [part='clear-button'] {
1848
- display: none;
1849
- cursor: default;
1850
- }
1851
-
1852
- [part='clear-button']::before {
1853
- content: '\\2715';
1854
- }
1855
-
1856
- :host([clear-button-visible][has-value]:not([disabled]):not([readonly])) [part='clear-button'] {
1857
- display: block;
1858
- }
1859
- `;/**
1860
- * @license
1861
- * Copyright (c) 2021 - 2024 Vaadin Ltd..
1862
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1863
- */const Cn=_`
1864
- :host {
1865
- display: inline-flex;
1866
- outline: none;
1867
- }
1868
-
1869
- :host::before {
1870
- content: '\\2003';
1871
- width: 0;
1872
- display: inline-block;
1873
- /* Size and position this element on the same vertical position as the input-field element
1874
- to make vertical align for the host element work as expected */
1875
- }
1876
-
1877
- :host([hidden]) {
1878
- display: none !important;
1879
- }
1880
-
1881
- :host(:not([has-label])) [part='label'] {
1882
- display: none;
1883
- }
1884
-
1885
- @media (forced-colors: active) {
1886
- :host(:not([readonly])) [part='input-field'] {
1887
- outline: 1px solid;
1888
- outline-offset: -1px;
1889
- }
1890
- :host([focused]) [part='input-field'] {
1891
- outline-width: 2px;
1892
- }
1893
- :host([disabled]) [part='input-field'] {
1894
- outline-color: GrayText;
1895
- }
1896
- }
1897
- `;/**
1898
- * @license
1899
- * Copyright (c) 2021 - 2024 Vaadin Ltd..
1900
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1901
- */const En=_`
1902
- [class$='container'] {
1903
- display: flex;
1904
- flex-direction: column;
1905
- min-width: 100%;
1906
- max-width: 100%;
1907
- width: var(--vaadin-field-default-width, 12em);
1908
- }
1909
- `;/**
1910
- * @license
1911
- * Copyright (c) 2021 - 2024 Vaadin Ltd..
1912
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1913
- */const Pn=[Cn,En,wn];/**
1914
- * @license
1915
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1916
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1917
- */class Tn extends St{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})}}/**
1918
- * @license
1919
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1920
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1921
- */let xe=!1;window.addEventListener("keydown",()=>{xe=!0},{capture:!0});window.addEventListener("mousedown",()=>{xe=!1},{capture:!0});function Sn(){let i=document.activeElement||document.body;for(;i.shadowRoot&&i.shadowRoot.activeElement;)i=i.shadowRoot.activeElement;return i}function Cr(){return xe}function Nn(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 kn(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 On(i,t){const e=[];for(;i.length>0&&t.length>0;)kn(i[0],t[0])?e.push(t.shift()):e.push(i.shift());return e.concat(i,t)}function re(i){const t=i.length;if(t<2)return i;const e=Math.ceil(t/2),o=re(i.slice(0,e)),r=re(i.slice(e));return On(o,r)}function Er(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 Mn(i){return i.getRootNode().activeElement===i}function In(i){if(!Er(i))return-1;const t=i.getAttribute("tabindex")||0;return Number(t)}function Pr(i,t){if(i.nodeType!==Node.ELEMENT_NODE||Nn(i))return!1;const e=i,o=In(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=Pr(n,t)||r}),r}function Dn(i){const t=[];return Pr(i,t)?re(t):t}/**
1922
- * @license
1923
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1924
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1925
- */const Ae=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}});/**
1926
- * @license
1927
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1928
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1929
- */const we=b(i=>class extends i{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
1930
- * @license
1931
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1932
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1933
- */const Tr=i=>class extends we(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)}};/**
1934
- * @license
1935
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1936
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1937
- */const Sr=b(i=>class extends Ae(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)}});/**
1938
- * @license
1939
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1940
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1941
- */const Nt=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){}});/**
1942
- * @license
1943
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1944
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1945
- */const Ht=new WeakMap;function zn(i){return Ht.has(i)||Ht.set(i,new Set),Ht.get(i)}function Ln(i,t){const e=document.createElement("style");e.textContent=i,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Nr=b(i=>class extends i{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),o=zn(e);this.slotStyles.forEach(r=>{o.has(r)||(Ln(r,e),o.add(r))})}});/**
1946
- * @license
1947
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1948
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1949
- */const kt=i=>i.test(navigator.userAgent),oe=i=>i.test(navigator.platform),$n=i=>i.test(navigator.vendor);kt(/Android/u);kt(/Chrome/u)&&$n(/Google Inc/u);kt(/Firefox/u);const Rn=oe(/^iPad/u)||oe(/^Mac/u)&&navigator.maxTouchPoints>1,Fn=oe(/^iPhone/u),Bn=Fn||Rn,Un=kt(/^((?!chrome|android).)*safari/iu),kr=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(i){return!1}})();/**
1950
- * @license
1951
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1952
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1953
- */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)}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}});/**
1954
- * @license
1955
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1956
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1957
- */const Hn=i=>class extends Ce(Nt(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(),kr||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}))}};/**
1958
- * @license
1959
- * Copyright (c) 2023 - 2024 Vaadin Ltd.
1960
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1961
- */const Vt=new Map;function Ee(i){return Vt.has(i)||Vt.set(i,new WeakMap),Vt.get(i)}function Or(i,t){i&&i.removeAttribute(t)}function Mr(i,t){if(!i||!t)return;const e=Ee(t);if(e.has(i))return;const o=ye(i.getAttribute(t));e.set(i,new Set(o))}function Vn(i,t){if(!i||!t)return;const e=Ee(t),o=e.get(i);!o||o.size===0?i.removeAttribute(t):xr(i,t,Tt(o)),e.delete(i)}function jt(i,t,e={newId:null,oldId:null,fromUser:!1}){if(!i||!t)return;const{newId:o,oldId:r,fromUser:s}=e,n=Ee(t),a=n.get(i);if(!s&&a){r&&a.delete(r),o&&a.add(o);return}s&&(a?o||n.delete(i):Mr(i,t),Or(i,t)),vn(i,t,r);const l=o||Tt(a);l&&xr(i,t,l)}function jn(i,t){Mr(i,t),Or(i,t)}/**
1962
- * @license
1963
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1964
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1965
- */class qn{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?(jn(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Vn(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,o){jt(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:o})}__setErrorIdToAriaAttribute(t,e){jt(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){jt(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")))}}/**
1966
- * @license
1967
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1968
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1969
- */const Pe=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)}});/**
1970
- * @license
1971
- * Copyright (c) 2022 - 2024 Vaadin Ltd.
1972
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1973
- */const E=document.createElement("div");E.style.position="fixed";E.style.clip="rect(0px, 0px, 0px, 0px)";E.setAttribute("aria-live","polite");document.body.appendChild(E);let _t;function Yn(i,t={}){const e=t.mode||"polite",o=t.timeout===void 0?150:t.timeout;e==="alert"?(E.removeAttribute("aria-live"),E.removeAttribute("role"),_t=R.debounce(_t,gr,()=>{E.setAttribute("role","alert")})):(_t&&_t.cancel(),E.removeAttribute("role"),E.setAttribute("aria-live",e)),E.textContent="",setTimeout(()=>{E.textContent=i},o)}/**
1974
- * @license
1975
- * Copyright (c) 2022 - 2024 Vaadin Ltd.
1976
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1977
- */class Te extends St{constructor(t,e,o,r={}){super(t,e,o,It(Mt({},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)}}/**
1978
- * @license
1979
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1980
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1981
- */class Wn 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&&Yn(e,{mode:"assertive"})),super.updateDefaultNode(t)}}/**
1982
- * @license
1983
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1984
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1985
- */class Gn 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)}}/**
1986
- * @license
1987
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1988
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1989
- */class Kn 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)}}/**
1990
- * @license
1991
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1992
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1993
- */const Jn=b(i=>class extends Pe(i){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Kn(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)}});/**
1994
- * @license
1995
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
1996
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1997
- */const Se=b(i=>class extends i{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
1998
- * @license
1999
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
2000
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2001
- */const Ir=i=>class extends Se(Jn(Pe(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 qn(this),this._helperController=new Gn(this),this._errorController=new Wn(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)})}};/**
2002
- * @license
2003
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
2004
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2005
- */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)}});/**
2006
- * @license
2007
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
2008
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2009
- */const zr=b(i=>class extends Dr(Se(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.validate():s&&this._setInvalid(!1),this.__previousHasConstraints=r}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
2010
- * @license
2011
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
2012
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2013
- */const Xn=i=>class extends Nr(Sr(zr(Ir(Hn(Nt(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[`
2014
- :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
2015
- font: inherit;
2016
- color: inherit;
2017
- }
2018
- `]}_onFocus(e){super._onFocus(e),this.autoselect&&this.inputElement&&this.inputElement.select()}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("paste",this._boundOnPaste),e.addEventListener("drop",this._boundOnDrop),e.addEventListener("beforeinput",this._boundOnBeforeInput)}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("paste",this._boundOnPaste),e.removeEventListener("drop",this._boundOnDrop),e.removeEventListener("beforeinput",this._boundOnBeforeInput)}_onKeyDown(e){super._onKeyDown(e),this.allowedCharPattern&&!this.__shouldAcceptKey(e)&&e.target===this.inputElement&&(e.preventDefault(),this._markInputPrevented())}_markInputPrevented(){this.setAttribute("input-prevented",""),this._preventInputDebouncer=R.debounce(this._preventInputDebouncer,_r.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)}}};/**
2019
- * @license
2020
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
2021
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2022
- */class Zn{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 Lr=_`
2023
- :host {
2024
- /* Sizing */
2025
- --lumo-button-size: var(--lumo-size-m);
2026
- min-width: var(--vaadin-button-min-width, calc(var(--_button-size) * 2));
2027
- height: var(--_button-size);
2028
- padding: var(--vaadin-button-padding, 0 calc(var(--_button-size) / 3 + var(--lumo-border-radius-m) / 2));
2029
- margin: var(--vaadin-button-margin, var(--lumo-space-xs) 0);
2030
- box-sizing: border-box;
2031
- /* Style */
2032
- font-family: var(--lumo-font-family);
2033
- font-size: var(--vaadin-button-font-size, var(--lumo-font-size-m));
2034
- font-weight: var(--vaadin-button-font-weight, 500);
2035
- color: var(--_lumo-button-text-color);
2036
- background: var(--_lumo-button-background);
2037
- border: var(--vaadin-button-border, none);
2038
- border-radius: var(--vaadin-button-border-radius, var(--lumo-border-radius-m));
2039
- cursor: var(--lumo-clickable-cursor);
2040
- -webkit-tap-highlight-color: transparent;
2041
- -webkit-font-smoothing: antialiased;
2042
- -moz-osx-font-smoothing: grayscale;
2043
- flex-shrink: 0;
2044
- --_button-size: var(--vaadin-button-height, var(--lumo-button-size));
2045
- --_focus-ring-color: var(--vaadin-focus-ring-color, var(--lumo-primary-color-50pct));
2046
- --_focus-ring-width: var(--vaadin-focus-ring-width, 2px);
2047
- /* Used by notification */
2048
- --_lumo-button-background: var(--vaadin-button-background, var(--lumo-contrast-5pct));
2049
- --_lumo-button-text-color: var(--vaadin-button-text-color, var(--lumo-primary-text-color));
2050
- --_lumo-button-primary-background: var(--vaadin-button-primary-background, var(--lumo-primary-color));
2051
- --_lumo-button-primary-text-color: var(--vaadin-button-primary-text-color, var(--lumo-primary-contrast-color));
2052
- }
2053
-
2054
- /* Set only for the internal parts so we don't affect the host vertical alignment */
2055
- [part='label'],
2056
- [part='prefix'],
2057
- [part='suffix'] {
2058
- line-height: var(--lumo-line-height-xs);
2059
- }
2060
-
2061
- [part='label'] {
2062
- padding: calc(var(--lumo-button-size) / 6) 0;
2063
- }
2064
-
2065
- :host([theme~='small']) {
2066
- font-size: var(--lumo-font-size-s);
2067
- --lumo-button-size: var(--lumo-size-s);
2068
- }
2069
-
2070
- :host([theme~='large']) {
2071
- font-size: var(--lumo-font-size-l);
2072
- --lumo-button-size: var(--lumo-size-l);
2073
- }
2074
-
2075
- /* For interaction states */
2076
- :host::before,
2077
- :host::after {
2078
- content: '';
2079
- /* We rely on the host always being relative */
2080
- position: absolute;
2081
- z-index: 1;
2082
- inset: 0;
2083
- background-color: currentColor;
2084
- border-radius: inherit;
2085
- opacity: 0;
2086
- pointer-events: none;
2087
- }
2088
-
2089
- /* Hover */
2090
-
2091
- @media (any-hover: hover) {
2092
- :host(:hover)::before {
2093
- opacity: 0.02;
2094
- }
2095
- }
2096
-
2097
- /* Active */
2098
-
2099
- :host::after {
2100
- transition:
2101
- opacity 1.4s,
2102
- transform 0.1s;
2103
- filter: blur(8px);
2104
- }
2105
-
2106
- :host([active])::before {
2107
- opacity: 0.05;
2108
- transition-duration: 0s;
2109
- }
2110
-
2111
- :host([active])::after {
2112
- opacity: 0.1;
2113
- transition-duration: 0s, 0s;
2114
- transform: scale(0);
2115
- }
2116
-
2117
- /* Keyboard focus */
2118
-
2119
- :host([focus-ring]) {
2120
- box-shadow:
2121
- 0 0 0 calc(1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-gap-color, var(--lumo-base-color)),
2122
- 0 0 0 calc(var(--_focus-ring-width) + 1px * var(--_focus-ring-gap-on, 0)) var(--_focus-ring-color);
2123
- }
2124
-
2125
- :host([theme~='primary'][focus-ring]) {
2126
- --_focus-ring-gap-on: 1;
2127
- }
2128
-
2129
- /* Types (primary, tertiary, tertiary-inline */
2130
-
2131
- :host([theme~='tertiary']),
2132
- :host([theme~='tertiary-inline']) {
2133
- --_background: transparent !important;
2134
- background: var(--vaadin-button-tertiary-background, var(--_background));
2135
- min-width: 0;
2136
- }
2137
-
2138
- :host([theme~='tertiary']) {
2139
- border: var(--vaadin-button-tertiary-border, none);
2140
- color: var(--vaadin-button-tertiary-text-color, var(--lumo-primary-text-color));
2141
- font-weight: var(--vaadin-button-tertiary-font-weight, 500);
2142
- padding: var(--vaadin-button-tertiary-padding, 0 calc(var(--_button-size) / 6));
2143
- }
2144
-
2145
- :host([theme~='tertiary-inline'])::before {
2146
- display: none;
2147
- }
2148
-
2149
- :host([theme~='tertiary-inline']) {
2150
- margin: 0;
2151
- height: auto;
2152
- padding: 0;
2153
- line-height: inherit;
2154
- font-size: inherit;
2155
- }
2156
-
2157
- :host([theme~='tertiary-inline']) [part='label'] {
2158
- padding: 0;
2159
- overflow: visible;
2160
- line-height: inherit;
2161
- }
2162
-
2163
- :host([theme~='primary']) {
2164
- background: var(--_lumo-button-primary-background);
2165
- border: var(--vaadin-button-primary-border, none);
2166
- color: var(--_lumo-button-primary-text-color);
2167
- font-weight: var(--vaadin-button-primary-font-weight, 600);
2168
- min-width: calc(var(--lumo-button-size) * 2.5);
2169
- }
2170
-
2171
- :host([theme~='primary'])::before {
2172
- background-color: black;
2173
- }
2174
-
2175
- @media (any-hover: hover) {
2176
- :host([theme~='primary']:hover)::before {
2177
- opacity: 0.05;
2178
- }
2179
- }
2180
-
2181
- :host([theme~='primary'][active])::before {
2182
- opacity: 0.1;
2183
- }
2184
-
2185
- :host([theme~='primary'][active])::after {
2186
- opacity: 0.2;
2187
- }
2188
-
2189
- /* Colors (success, warning, error, contrast) */
2190
-
2191
- :host([theme~='success']) {
2192
- color: var(--lumo-success-text-color);
2193
- }
2194
-
2195
- :host([theme~='success'][theme~='primary']) {
2196
- background-color: var(--lumo-success-color);
2197
- color: var(--lumo-success-contrast-color);
2198
- }
2199
-
2200
- :host([theme~='warning']) {
2201
- color: var(--lumo-warning-text-color);
2202
- }
2203
-
2204
- :host([theme~='warning'][theme~='primary']) {
2205
- background-color: var(--lumo-warning-color);
2206
- color: var(--lumo-warning-contrast-color);
2207
- }
2208
-
2209
- :host([theme~='error']) {
2210
- color: var(--lumo-error-text-color);
2211
- }
2212
-
2213
- :host([theme~='error'][theme~='primary']) {
2214
- background-color: var(--lumo-error-color);
2215
- color: var(--lumo-error-contrast-color);
2216
- }
2217
-
2218
- :host([theme~='contrast']) {
2219
- color: var(--lumo-contrast);
2220
- }
2221
-
2222
- :host([theme~='contrast'][theme~='primary']) {
2223
- background-color: var(--lumo-contrast);
2224
- color: var(--lumo-base-color);
2225
- }
2226
-
2227
- /* Disabled state. Keep selectors after other color variants. */
2228
-
2229
- :host([disabled]) {
2230
- pointer-events: none;
2231
- color: var(--lumo-disabled-text-color);
2232
- }
2233
-
2234
- :host([theme~='primary'][disabled]) {
2235
- background-color: var(--lumo-contrast-30pct);
2236
- color: var(--lumo-base-color);
2237
- }
2238
-
2239
- :host([theme~='primary'][disabled]) [part] {
2240
- opacity: 0.7;
2241
- }
2242
-
2243
- /* Icons */
2244
-
2245
- [part] ::slotted(vaadin-icon) {
2246
- display: inline-block;
2247
- width: var(--lumo-icon-size-m);
2248
- height: var(--lumo-icon-size-m);
2249
- }
2250
-
2251
- /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
2252
- [part] ::slotted(vaadin-icon[icon^='vaadin:']) {
2253
- padding: 0.25em;
2254
- box-sizing: border-box !important;
2255
- }
2256
-
2257
- [part='prefix'] {
2258
- margin-left: -0.25em;
2259
- margin-right: 0.25em;
2260
- }
2261
-
2262
- [part='suffix'] {
2263
- margin-left: 0.25em;
2264
- margin-right: -0.25em;
2265
- }
2266
-
2267
- /* Icon-only */
2268
-
2269
- :host([theme~='icon']:not([theme~='tertiary-inline'])) {
2270
- min-width: var(--lumo-button-size);
2271
- padding-left: calc(var(--lumo-button-size) / 4);
2272
- padding-right: calc(var(--lumo-button-size) / 4);
2273
- }
2274
-
2275
- :host([theme~='icon']) [part='prefix'],
2276
- :host([theme~='icon']) [part='suffix'] {
2277
- margin-left: 0;
2278
- margin-right: 0;
2279
- }
2280
-
2281
- /* RTL specific styles */
2282
-
2283
- :host([dir='rtl']) [part='prefix'] {
2284
- margin-left: 0.25em;
2285
- margin-right: -0.25em;
2286
- }
2287
-
2288
- :host([dir='rtl']) [part='suffix'] {
2289
- margin-left: -0.25em;
2290
- margin-right: 0.25em;
2291
- }
2292
-
2293
- :host([dir='rtl'][theme~='icon']) [part='prefix'],
2294
- :host([dir='rtl'][theme~='icon']) [part='suffix'] {
2295
- margin-left: 0;
2296
- margin-right: 0;
2297
- }
2298
- `;S("vaadin-button",Lr,{moduleId:"lumo-button"});/**
2299
- * @license
2300
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
2301
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2302
- */const Qn=_`
2303
- :host {
2304
- display: inline-block;
2305
- position: relative;
2306
- outline: none;
2307
- white-space: nowrap;
2308
- -webkit-user-select: none;
2309
- -moz-user-select: none;
2310
- user-select: none;
2311
- }
2312
-
2313
- :host([hidden]) {
2314
- display: none !important;
2315
- }
2316
-
2317
- /* Aligns the button with form fields when placed on the same line.
2318
- Note, to make it work, the form fields should have the same "::before" pseudo-element. */
2319
- .vaadin-button-container::before {
2320
- content: '\\2003';
2321
- display: inline-block;
2322
- width: 0;
2323
- max-height: 100%;
2324
- }
2325
-
2326
- .vaadin-button-container {
2327
- display: inline-flex;
2328
- align-items: center;
2329
- justify-content: center;
2330
- text-align: center;
2331
- width: 100%;
2332
- height: 100%;
2333
- min-height: inherit;
2334
- text-shadow: inherit;
2335
- }
2336
-
2337
- [part='prefix'],
2338
- [part='suffix'] {
2339
- flex: none;
2340
- }
2341
-
2342
- [part='label'] {
2343
- white-space: nowrap;
2344
- overflow: hidden;
2345
- text-overflow: ellipsis;
2346
- }
2347
-
2348
- @media (forced-colors: active) {
2349
- :host {
2350
- outline: 1px solid;
2351
- outline-offset: -1px;
2352
- }
2353
-
2354
- :host([focused]) {
2355
- outline-width: 2px;
2356
- }
2357
-
2358
- :host([disabled]) {
2359
- outline-color: GrayText;
2360
- }
2361
- }
2362
- `,ta=i=>i`
2363
- <div class="vaadin-button-container">
2364
- <span part="prefix" aria-hidden="true">
2365
- <slot name="prefix"></slot>
2366
- </span>
2367
- <span part="label">
2368
- <slot></slot>
2369
- </span>
2370
- <span part="suffix" aria-hidden="true">
2371
- <slot name="suffix"></slot>
2372
- </span>
2373
- </div>
2374
- <slot name="tooltip"></slot>
2375
- `;/**
2376
- @license
2377
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2378
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2379
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2380
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2381
- Code distributed by Google as part of the polymer project is also
2382
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2383
- */const ea=!1,ia=i=>i,Ne=typeof document.head.style.touchAction=="string",se="__polymerGestures",qt="__polymerGesturesHandled",ne="__polymerGesturesTouchAction",fi=25,mi=5,ra=2,oa=["mousedown","mousemove","mouseup","click"],sa=[0,1,4,2],na=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(i){return!1}}();function ke(i){return oa.indexOf(i)>-1}let $r=!1;(function(){try{const i=Object.defineProperty({},"passive",{get(){$r=!0}});window.addEventListener("test",null,i),window.removeEventListener("test",null,i)}catch(i){}})();function aa(i){if(!(ke(i)||i==="touchend")&&Ne&&$r&&ea)return{passive:!0}}const la=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),da={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function L(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&&!na&&(o=sa[i.which]||0),!!(o&1)}return(i.button===void 0?0:i.button)===0}function ca(i){if(i.type==="click"){if(i.detail===0)return!0;const t=M(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={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function ua(i){let t="auto";const e=Fr(i);for(let o=0,r;o<e.length;o++)if(r=e[o],r[ne]){t=r[ne];break}return t}function Rr(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={},z=[];function ha(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 M(i){const t=Fr(i);return t.length>0?t[0]:i.target}function pa(i){const t=i.type,o=i.currentTarget[se];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;Ne||(t==="touchstart"||t==="touchmove")&&fa(i)}const s=i[qt];if(!s.skip){for(let n=0,a;n<z.length;n++)a=z[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<z.length;n++)a=z[n],r[a.name]&&!s[a.name]&&(s[a.name]=!0,a[t](i))}}function fa(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=ua(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 ae(i,t,e){return Oe[t]?(ma(i,t,e),!0):!1}function ma(i,t,e){const o=Oe[t],r=o.deps,s=o.name;let n=i[se];n||(i[se]=n={});for(let a=0,l,d;a<r.length;a++)l=r[a],!(la&&ke(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&i.addEventListener(l,pa,aa(l)),d[s]=(d[s]||0)+1,d._count=(d._count||0)+1);i.addEventListener(t,e),o.touchAction&&Br(i,o.touchAction)}function Me(i){z.push(i),i.emits.forEach(t=>{Oe[t]=i})}function _a(i){for(let t=0,e;t<z.length;t++){e=z[t];for(let o=0,r;o<e.emits.length;o++)if(r=e.emits[o],r===i)return e}return null}function Br(i,t){Ne&&i instanceof HTMLElement&&vr.run(()=>{i.style.touchAction=t}),i[ne]=t}function Ie(i,t,e){const o=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(o.detail=e,ia(i).dispatchEvent(o),o.defaultPrevented){const r=e.preventer||e.sourceEvent;r&&r.preventDefault&&r.preventDefault()}}function Ct(i){const t=_a(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(!L(i))return;const t=M(i),e=this,o=s=>{L(s)||(Z("up",t,s),q(e.info))},r=s=>{L(s)&&Z("up",t,s),q(e.info)};Rr(this.info,o,r),Z("down",t,i)},touchstart(i){Z("down",M(i),i.changedTouches[0],i)},touchend(i){Z("up",M(i),i.changedTouches[0],i)}});function Z(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>ra&&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(!L(i))return;const t=M(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}),L(s)||(e.info.state="end",q(e.info)),t&&Yt(e.info,t,s),e.info.started=!0)},r=s=>{e.info.started&&o(s),q(e.info)};Rr(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=M(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}),Yt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(i){const t=M(i),e=i.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Yt(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 Yt(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 ha(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){L(i)&&(this.info.x=i.clientX,this.info.y=i.clientY)},click(i){L(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=M(e||t);!s||da[s.localName]&&s.hasAttribute("disabled")||(isNaN(o)||isNaN(r)||o<=fi&&r<=fi||ca(t))&&(i.prevent||Ie(s,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2384
- * @license
2385
- * Copyright (c) 2021 - 2024 Vaadin Ltd.
2386
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2387
- */const Ur=i=>class extends we(Nt(i)){get _activeKeys(){return[" "]}ready(){super.ready(),ae(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0)}),ae(this,"up",()=>{this._setActive(!1)})}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(e){return!this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",o=>{this._activeKeys.includes(o.key)&&this._setActive(!1)},{once:!0}))}_setActive(e){this.toggleAttribute("active",e)}};/**
2388
- * @license
2389
- * Copyright (c) 2017 - 2024 Vaadin Ltd.
2390
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2391
- */const ga=i=>class extends Ur(Tr(Ae(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=Ur;exports.ButtonMixin=ga;exports.ControllerMixin=Pe;exports.Debouncer=R;exports.DelegateFocusMixin=Sr;exports.DelegateStateMixin=Dr;exports.DirMixin=ve;exports.DisabledMixin=we;exports.ElementMixin=gn;exports.FieldMixin=Ir;exports.FocusMixin=Ae;exports.InputConstraintsMixin=zr;exports.InputControlMixin=Xn;exports.InputController=Tn;exports.InputMixin=Ce;exports.KeyboardMixin=Nt;exports.LabelledInputController=Zn;exports.PolymerElement=pr;exports.PropertyEffects=lr;exports.SlotController=St;exports.SlotObserver=Ar;exports.SlotStylesMixin=Nr;exports.ThemableMixin=Li;exports.TooltipController=An;exports.ValidateMixin=Se;exports.addListener=ae;exports.animationFrame=gr;exports.button=Lr;exports.buttonStyles=Qn;exports.buttonTemplate=ta;exports.dedupingMixin=b;exports.defineCustomElement=le;exports.enqueueDebouncer=yr;exports.flush=_n;exports.generateUniqueId=wr;exports.getAncestorRootNodes=bn;exports.getDeepActiveElement=Sn;exports.getFocusableElements=Dn;exports.helper=Ri;exports.html=ur;exports.i$3=_;exports.idlePeriod=br;exports.inputFieldShared=Pn;exports.inputFieldShared$1=Fi;exports.isElementFocusable=Er;exports.isElementFocused=Mn;exports.isIOS=Bn;exports.isKeyboardActive=Cr;exports.isSafari=Un;exports.isTouch=kr;exports.legacyOptimizations=Ui;exports.legacyWarnings=Hi;exports.matches=Go;exports.microTask=vr;exports.microTask$1=Zi;exports.registerStyles=S;exports.requiredField=fe;exports.setTouchAction=Br;exports.strictTemplatePolicy=At;exports.suppressTemplateNotifications=Fo;exports.timeOut=_r;exports.timeOut$1=ts;exports.translate=dt;exports.useShadow=Bi;exports.wrap$1=O;