@everymatrix/lottery-ticket 1.55.0 → 1.56.2

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.
@@ -1,3439 +0,0 @@
1
- import{r as t,c as e,h as o}from"./p-bb1f6b6a.js";const s=class{constructor(o){t(this,o),this.bulletEvent=e(this,"lotteryBulletSelection",7),this.select=()=>{this.selectable&&(this.isSelected=!this.isSelected,this.bulletEvent.emit({value:this.value,selected:this.isSelected}))},this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(t)}),1)},this.value="0",this.selectable=!0,this.isSelected=!1,this.isBonus=!1,this.clientStyling="",this.clientStylingUrlContent="",this.limitStylingAppends=!1}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}render(){return o("div",{key:"a21cbee8f556bfbbe9f97be5f44bfc08b6f24dd6",class:"Circle "+(this.selectable?"":"Disabled")+(this.isSelected?"Selected":"")+(this.isBonus?" Bonus":""),onClick:()=>this.select(),ref:t=>this.stylingContainer=t},this.value)}};s.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}@-webkit-keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@keyframes Circle{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}@-webkit-keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.22) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@keyframes hover-rotate{0%{-webkit-transform:scale(1) rotateZ(0);transform:scale(1) rotateZ(0)}50%{-webkit-transform:scale(1.2) rotateZ(180deg);transform:scale(1.2) rotateZ(180deg)}100%{-webkit-transform:scale(1) rotateZ(360deg);transform:scale(1) rotateZ(360deg)}}@-webkit-keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1.2);transform:scale(1.2)}}@keyframes selected-scaleUp{0%{-webkit-transform:scale(0.5);transform:scale(0.5)}100%{-webkit-transform:scale(1);transform:scale(1)}}.Circle{-webkit-animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:Circle 0.8s cubic-bezier(0.39, 0.575, 0.565, 1) both;cursor:pointer;color:var(--emw--button-text-color, #000);display:block;height:30px;width:30px;margin:0;display:flex;align-items:center;justify-content:center;justify-content:center;align-items:center;border:solid 2px var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:radial-gradient(circle at top, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 100%);font-weight:bold;border-radius:50%;box-shadow:0 2px 4px 0 rgba(0, 0, 0, 0.5);user-select:none;font-size:16px;line-height:16px;font-weight:600;position:relative}.Circle:hover{-webkit-animation:hover-rotate 0.4s linear both;animation:hover-rotate 0.4s linear both;background:radial-gradient(circle at top, var(--emw--color-gray-transparency-100, rgb(255, 255, 255)) 0%, var(--emw--color-gray-50, #F1F1F1) 100%)}.Circle.Selected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--button-border-color, #00958f)}.Circle.Disabled{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-gray-100, #D4D4D4);border:solid 2px var(--emw--color-gray-100, #D4D4D4);cursor:default}.Circle.DisabledSelected{-webkit-animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;animation:selected-scaleUp 0.4s cubic-bezier(0.39, 0.575, 0.565, 1) both;color:var(--emw--color-gray-50, #F1F1F1);background:var(--emw--color-primary, #9EC258);background:-webkit-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:-moz-radial-gradient(top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));background:radial-gradient(circle at top, var(--emw--button-background-color, #00958f), var(--emw--color-primary-variant, #004D4A));border:solid 2px var(--emw--color-gray-100, #D4D4D4);cursor:default}.Circle.Bonus{background:var(--emw--color-error, #FF3D00)}';const i=class{constructor(o){t(this,o),this.gridFilledEvent=e(this,"gridFilled",7),this.gridDirtyEvent=e(this,"gridDirty",7),this.gridClearAllEvent=e(this,"gridClearAllEvent",7),this.selectedCounter=0,this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(t)}),1)},this.ticketId=void 0,this.totalNumbers=0,this.gameId=void 0,this.maximumAllowed=7,this.minimumAllowed=3,this.numberRange=void 0,this.selectable=!0,this.selectedNumbers="",this.secondaryNumbers="",this.displaySelected=!1,this.language="en",this.gridIndex=void 0,this.gridType="",this.clientStyling="",this.clientStylingUrlContent="",this.highNumber=47,this.lowNumber=1,this.selectionType="mainSelection",this.partialQuickpickAvailable=!1,this.numbers=[],this.bonusNumbers=[],this.limitStylingAppends=!1}connectedCallback(){let t=[];this.selectedNumbers.length>0&&(t=this.selectedNumbers.split(","),this.selectedCounter=t.length),this.secondaryNumbers.length>0&&(this.bonusNumbers=this.secondaryNumbers.split(",").map((t=>({number:t,selected:!0,selectable:this.selectable})))),this.displaySelected?t.forEach((t=>{this.numbers.push({number:t,selected:!0,selectable:this.selectable})})):Array.from({length:this.highNumber-this.lowNumber+1},((t,e)=>this.lowNumber+e)).map((t=>t.toString())).forEach((e=>{this.numbers.push({number:e,selected:t.indexOf(e)>=0,selectable:this.selectedCounter!=this.maximumAllowed&&this.selectable})}))}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}shuffleArray(t){const e=[];for(;t.length>0;){const o=Math.floor(Math.random()*t.length);e.push(t.splice(o,1)[0])}return e}lotteryBulletSelectionHandler(t){this.numbers=this.numbers.map((e=>({number:e.number,selected:e.number==t.detail.value?t.detail.selected:e.selected,selectable:e.selectable}))),t.detail.selected?(this.selectedCounter+=1,this.selectedCounter>=this.minimumAllowed&&this.selectedCounter<=this.maximumAllowed&&(this.numbers=this.numbers.map((t=>this.selectedCounter===this.maximumAllowed?{number:t.number,selected:t.selected,selectable:!!t.selected}:{number:t.number,selected:t.selected,selectable:!0})),JSON.parse(this.numberRange).includes(this.selectedCounter)?this.gridFilledEvent.emit({id:this.ticketId,index:this.gridIndex,selectionType:this.selectionType,selectedNumbers:this.numbers.filter((t=>t.selected)).map((t=>t.number))}):this.gridDirtyEvent.emit({id:this.ticketId,index:this.gridIndex,selectionType:this.selectionType,selectedNumbers:this.numbers.filter((t=>t.selected)).map((t=>t.number))}))):(this.selectedCounter-=1,this.numbers=this.numbers.map((t=>({number:t.number,selected:t.selected,selectable:!0}))),this.selectedCounter<this.minimumAllowed?this.gridDirtyEvent.emit({id:this.ticketId,index:this.gridIndex,selectionType:this.selectionType,selectedNumbers:this.numbers.filter((t=>t.selected)).map((t=>t.number))}):this.gridFilledEvent.emit({id:this.ticketId,index:this.gridIndex,selectionType:this.selectionType,selectedNumbers:this.numbers.filter((t=>t.selected)).map((t=>t.number))}),0===this.selectedCounter&&this.gridClearAllEvent.emit(this.gridIndex))}async resetSelectionHandler(t){t.detail&&t.detail.ticketId==this.ticketId&&t.detail.index===this.gridIndex&&(this.selectedCounter=0,this.numbers=this.numbers.map((t=>({number:t.number,selected:!1,selectable:this.selectable}))),this.gridDirtyEvent.emit({id:this.ticketId,index:this.gridIndex,selectionType:this.selectionType,selectedNumbers:[]}))}async autoSelectionHandler(t){if(t.detail&&t.detail.ticketId==this.ticketId&&t.detail.index===this.gridIndex){this.resetSelectionHandler(t);let e=Array.from({length:this.highNumber-this.lowNumber+1},((t,e)=>this.lowNumber+e));e=this.shuffleArray(e),e=e.slice(0,this.minimumAllowed),this.numbers=this.numbers.map((t=>({number:t.number,selected:e.indexOf(parseInt(t.number,10))>=0,selectable:!!this.partialQuickpickAvailable&&e.indexOf(parseInt(t.number,10))>=0}))),this.gridFilledEvent.emit({id:this.ticketId,index:this.gridIndex,selectionType:this.selectionType,selectedNumbers:this.numbers.filter((t=>t.selected)).map((t=>t.number))}),this.selectedCounter=this.minimumAllowed}}render(){return o("div",{key:"8ad436904a126e6bee036c7372cf45c075022e5f",class:"GridContainer",ref:t=>this.stylingContainer=t},o("div",{key:"5a8818209485f0808a99978910f6f26473dd6f59",class:"ticket"===this.gridType?"Grid TicketGrid":"Grid"},this.numbers.map((t=>o("div",null,o("lottery-bullet",{value:t.number,selectable:t.selectable,"is-selected":t.selected,"client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})))),this.bonusNumbers.length?this.bonusNumbers.map((t=>o("div",null,o("lottery-bullet",{value:t.number,selectable:t.selectable,"is-selected":t.selected,"is-bonus":!0,"client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})))):""))}};i.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.GridContainer{display:flex;flex-direction:column;max-width:1200px}.Grid{margin-top:10px 0 10px 0;display:flex;flex-direction:row;flex-wrap:wrap;gap:20px}.Grid.TicketGrid{gap:5px}';const r=["ro","en","hr"],n={en:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",multiplier:"Multiplier",numberOfDraws:"Number of draws",wagerPerDraw:"Wager per draw",resetButton:"Reset",autoButton:"quick pick",lines:"Select how many lines you want to buy",lineName:"Line",playType:"Select one play type you want to buy"},ro:{loading:"Se incarca, va rugam asteptati ...",error:"A fost o eroare in timp ce asteptam datele",multiplier:"Multiplicator",numberOfDraws:"Numarul de extrageri",wagerPerDraw:"Pariul per extragere",resetButton:"Reseteaza",autoButton:"quick pick",lines:"Select how many lines you want to buy",lineName:"Line",playType:"Select one play type you want to buy"},fr:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",multiplier:"Multiplier",numberOfDraws:"Number of draws",wagerPerDraw:"Wager per draw",resetButton:"Reset",autoButton:"quick pick",lines:"Select how many lines you want to buy",lineName:"Line",playType:"Select one play type you want to buy"},ar:{loading:"Loading, please wait ...",error:"It was an error while trying to fetch the data",multiplier:"Multiplier",numberOfDraws:"Number of draws",wagerPerDraw:"Wager per draw",resetButton:"Reset",autoButton:"quick pick",lines:"Select how many lines you want to buy",lineName:"Line",playType:"Select one play type you want to buy"},hr:{loading:"Učitavanje, molimo pričekajte ...",error:"Došlo je do pogreške prilikom pokušaja dohvaćanja podataka",multiplier:"Multiplikator",numberOfDraws:"Broj izvlačenja",wagerPerDraw:"Ulog po izvlačenju",resetButton:"Resetiraj",autoButton:"quick pick",lines:"Select how many lines you want to buy",lineName:"Line",playType:"Select one play type you want to buy"}},l=(t,e)=>{const o=e;return n[void 0!==o&&r.includes(o)?o:"en"][t]};
2
- /**
3
- * @license
4
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
5
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6
- */
7
- function a(t){const e=customElements.get(t.is);if(e){const o=e.version;o&&t.version&&o===t.version?console.warn(`The component ${t.is} has been loaded twice`):console.error(`Tried to define ${t.is} version ${t.version} when version ${e.version} is already in use. Something will probably break.`)}else customElements.define(t.is,t)}
8
- /**
9
- * @license
10
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
11
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12
- */class c extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}a(c);
13
- /**
14
- * @license
15
- * Copyright 2019 Google LLC
16
- * SPDX-License-Identifier: BSD-3-Clause
17
- */
18
- const h=window,u=h.ShadowRoot&&(void 0===h.ShadyCSS||h.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,d=Symbol(),m=new WeakMap;class p{constructor(t,e,o){if(this._$cssResult$=!0,o!==d)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(u&&void 0===t){const o=void 0!==e&&1===e.length;o&&(t=m.get(e)),void 0===t&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),o&&m.set(e,t))}return t}toString(){return this.cssText}}const f=(t,...e)=>{const o=1===t.length?t[0]:e.reduce(((e,o,s)=>e+(t=>{if(!0===t._$cssResult$)return t.cssText;if("number"==typeof t)return t;throw Error("Value passed to 'css' function must be a 'css' function result: "+t+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+t[s+1]),t[0]);return new p(o,t,d)},v=u?t=>t:t=>t instanceof CSSStyleSheet?(t=>{let e="";for(const o of t.cssRules)e+=o.cssText;return(t=>new p("string"==typeof t?t:t+"",void 0,d))(e)})(t):t
19
- /**
20
- * @license
21
- * Copyright 2017 Google LLC
22
- * SPDX-License-Identifier: BSD-3-Clause
23
- */;var b;const g=window,y=g.trustedTypes,w=y?y.emptyScript:"",x=g.reactiveElementPolyfillSupport,A={toAttribute(t,e){switch(e){case Boolean:t=t?w:null;break;case Object:case Array:t=null==t?t:JSON.stringify(t)}return t},fromAttribute(t,e){let o=t;switch(e){case Boolean:o=null!==t;break;case Number:o=null===t?null:Number(t);break;case Object:case Array:try{o=JSON.parse(t)}catch(t){o=null}}return o}},k=(t,e)=>e!==t&&(e==e||t==t),_={attribute:!0,type:String,converter:A,reflect:!1,hasChanged:k},C="finalized";class S extends HTMLElement{constructor(){super(),this._$Ei=new Map,this.isUpdatePending=!1,this.hasUpdated=!1,this._$El=null,this._$Eu()}static addInitializer(t){var e;this.finalize(),(null!==(e=this.h)&&void 0!==e?e:this.h=[]).push(t)}static get observedAttributes(){this.finalize();const t=[];return this.elementProperties.forEach(((e,o)=>{const s=this._$Ep(o,e);void 0!==s&&(this._$Ev.set(s,o),t.push(s))})),t}static createProperty(t,e=_){if(e.state&&(e.attribute=!1),this.finalize(),this.elementProperties.set(t,e),!e.noAccessor&&!this.prototype.hasOwnProperty(t)){const o="symbol"==typeof t?Symbol():"__"+t,s=this.getPropertyDescriptor(t,o,e);void 0!==s&&Object.defineProperty(this.prototype,t,s)}}static getPropertyDescriptor(t,e,o){return{get(){return this[e]},set(s){const i=this[t];this[e]=s,this.requestUpdate(t,i,o)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)||_}static finalize(){if(this.hasOwnProperty(C))return!1;this[C]=!0;const t=Object.getPrototypeOf(this);if(t.finalize(),void 0!==t.h&&(this.h=[...t.h]),this.elementProperties=new Map(t.elementProperties),this._$Ev=new Map,this.hasOwnProperty("properties")){const t=this.properties,e=[...Object.getOwnPropertyNames(t),...Object.getOwnPropertySymbols(t)];for(const o of e)this.createProperty(o,t[o])}return this.elementStyles=this.finalizeStyles(this.styles),!0}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const o=new Set(t.flat(1/0).reverse());for(const t of o)e.unshift(v(t))}else void 0!==t&&e.push(v(t));return e}static _$Ep(t,e){const o=e.attribute;return!1===o?void 0:"string"==typeof o?o:"string"==typeof t?t.toLowerCase():void 0}_$Eu(){var t;this._$E_=new Promise((t=>this.enableUpdating=t)),this._$AL=new Map,this._$Eg(),this.requestUpdate(),null===(t=this.constructor.h)||void 0===t||t.forEach((t=>t(this)))}addController(t){var e,o;(null!==(e=this._$ES)&&void 0!==e?e:this._$ES=[]).push(t),void 0!==this.renderRoot&&this.isConnected&&(null===(o=t.hostConnected)||void 0===o||o.call(t))}removeController(t){var e;null===(e=this._$ES)||void 0===e||e.splice(this._$ES.indexOf(t)>>>0,1)}_$Eg(){this.constructor.elementProperties.forEach(((t,e)=>{this.hasOwnProperty(e)&&(this._$Ei.set(e,this[e]),delete this[e])}))}createRenderRoot(){var t;const e=null!==(t=this.shadowRoot)&&void 0!==t?t:this.attachShadow(this.constructor.shadowRootOptions);return((t,e)=>{u?t.adoptedStyleSheets=e.map((t=>t instanceof CSSStyleSheet?t:t.styleSheet)):e.forEach((e=>{const o=document.createElement("style"),s=h.litNonce;void 0!==s&&o.setAttribute("nonce",s),o.textContent=e.cssText,t.appendChild(o)}))})(e,this.constructor.elementStyles),e}connectedCallback(){var t;void 0===this.renderRoot&&(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostConnected)||void 0===e?void 0:e.call(t)}))}enableUpdating(t){}disconnectedCallback(){var t;null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostDisconnected)||void 0===e?void 0:e.call(t)}))}attributeChangedCallback(t,e,o){this._$AK(t,o)}_$EO(t,e,o=_){var s;const i=this.constructor._$Ep(t,o);if(void 0!==i&&!0===o.reflect){const r=(void 0!==(null===(s=o.converter)||void 0===s?void 0:s.toAttribute)?o.converter:A).toAttribute(e,o.type);this._$El=t,null==r?this.removeAttribute(i):this.setAttribute(i,r),this._$El=null}}_$AK(t,e){var o;const s=this.constructor,i=s._$Ev.get(t);if(void 0!==i&&this._$El!==i){const t=s.getPropertyOptions(i),r="function"==typeof t.converter?{fromAttribute:t.converter}:void 0!==(null===(o=t.converter)||void 0===o?void 0:o.fromAttribute)?t.converter:A;this._$El=i,this[i]=r.fromAttribute(e,t.type),this._$El=null}}requestUpdate(t,e,o){let s=!0;void 0!==t&&(((o=o||this.constructor.getPropertyOptions(t)).hasChanged||k)(this[t],e)?(this._$AL.has(t)||this._$AL.set(t,e),!0===o.reflect&&this._$El!==t&&(void 0===this._$EC&&(this._$EC=new Map),this._$EC.set(t,o))):s=!1),!this.isUpdatePending&&s&&(this._$E_=this._$Ej())}async _$Ej(){this.isUpdatePending=!0;try{await this._$E_}catch(t){Promise.reject(t)}const t=this.scheduleUpdate();return null!=t&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){var t;if(!this.isUpdatePending)return;this._$Ei&&(this._$Ei.forEach(((t,e)=>this[e]=t)),this._$Ei=void 0);let e=!1;const o=this._$AL;try{e=this.shouldUpdate(o),e?(this.willUpdate(o),null===(t=this._$ES)||void 0===t||t.forEach((t=>{var e;return null===(e=t.hostUpdate)||void 0===e?void 0:e.call(t)})),this.update(o)):this._$Ek()}catch(t){throw e=!1,this._$Ek(),t}e&&this._$AE(o)}willUpdate(t){}_$AE(t){var e;null===(e=this._$ES)||void 0===e||e.forEach((t=>{var e;return null===(e=t.hostUpdated)||void 0===e?void 0:e.call(t)})),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$Ek(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$E_}shouldUpdate(t){return!0}update(t){void 0!==this._$EC&&(this._$EC.forEach(((t,e)=>this._$EO(e,this[e],t))),this._$EC=void 0),this._$Ek()}updated(t){}firstUpdated(t){}}
24
- /**
25
- * @license
26
- * Copyright 2017 Google LLC
27
- * SPDX-License-Identifier: BSD-3-Clause
28
- */
29
- var z;S[C]=!0,S.elementProperties=new Map,S.elementStyles=[],S.shadowRootOptions={mode:"open"},null==x||x({ReactiveElement:S}),(null!==(b=g.reactiveElementVersions)&&void 0!==b?b:g.reactiveElementVersions=[]).push("1.6.3");const T=window,N=T.trustedTypes,I=N?N.createPolicy("lit-html",{createHTML:t=>t}):void 0,P="$lit$",B=`lit$${(Math.random()+"").slice(9)}$`,M="?"+B,E=`<${M}>`,O=document,D=()=>O.createComment(""),j=t=>null===t||"object"!=typeof t&&"function"!=typeof t,U=Array.isArray,F="[ \t\n\f\r]",R=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,W=/-->/g,L=/>/g,G=RegExp(`>|${F}(?:([^\\s"'>=/]+)(${F}*=${F}*(?:[^ \t\n\f\r"'\`<>=]|("|')|))|$)`,"g"),q=/'/g,Y=/"/g,Z=/^(?:script|style|textarea|title)$/i,J=Symbol.for("lit-noChange"),H=Symbol.for("lit-nothing"),K=new WeakMap,V=O.createTreeWalker(O,129,null,!1);function Q(t,e){if(!Array.isArray(t)||!t.hasOwnProperty("raw"))throw Error("invalid template strings array");return void 0!==I?I.createHTML(e):e}const X=(t,e)=>{const o=t.length-1,s=[];let i,r=2===e?"<svg>":"",n=R;for(let e=0;e<o;e++){const o=t[e];let l,a,c=-1,h=0;for(;h<o.length&&(n.lastIndex=h,a=n.exec(o),null!==a);)h=n.lastIndex,n===R?"!--"===a[1]?n=W:void 0!==a[1]?n=L:void 0!==a[2]?(Z.test(a[2])&&(i=RegExp("</"+a[2],"g")),n=G):void 0!==a[3]&&(n=G):n===G?">"===a[0]?(n=null!=i?i:R,c=-1):void 0===a[1]?c=-2:(c=n.lastIndex-a[2].length,l=a[1],n=void 0===a[3]?G:'"'===a[3]?Y:q):n===Y||n===q?n=G:n===W||n===L?n=R:(n=G,i=void 0);const u=n===G&&t[e+1].startsWith("/>")?" ":"";r+=n===R?o+E:c>=0?(s.push(l),o.slice(0,c)+P+o.slice(c)+B+u):o+B+(-2===c?(s.push(void 0),e):u)}return[Q(t,r+(t[o]||"<?>")+(2===e?"</svg>":"")),s]};class ${constructor({strings:t,_$litType$:e},o){let s;this.parts=[];let i=0,r=0;const n=t.length-1,l=this.parts,[a,c]=X(t,e);if(this.el=$.createElement(a,o),V.currentNode=this.el.content,2===e){const t=this.el.content,e=t.firstChild;e.remove(),t.append(...e.childNodes)}for(;null!==(s=V.nextNode())&&l.length<n;){if(1===s.nodeType){if(s.hasAttributes()){const t=[];for(const e of s.getAttributeNames())if(e.endsWith(P)||e.startsWith(B)){const o=c[r++];if(t.push(e),void 0!==o){const t=s.getAttribute(o.toLowerCase()+P).split(B),e=/([.?@])?(.*)/.exec(o);l.push({type:1,index:i,name:e[2],strings:t,ctor:"."===e[1]?it:"?"===e[1]?nt:"@"===e[1]?lt:st})}else l.push({type:6,index:i})}for(const e of t)s.removeAttribute(e)}if(Z.test(s.tagName)){const t=s.textContent.split(B),e=t.length-1;if(e>0){s.textContent=N?N.emptyScript:"";for(let o=0;o<e;o++)s.append(t[o],D()),V.nextNode(),l.push({type:2,index:++i});s.append(t[e],D())}}}else if(8===s.nodeType)if(s.data===M)l.push({type:2,index:i});else{let t=-1;for(;-1!==(t=s.data.indexOf(B,t+1));)l.push({type:7,index:i}),t+=B.length-1}i++}}static createElement(t,e){const o=O.createElement("template");return o.innerHTML=t,o}}function tt(t,e,o=t,s){var i,r,n,l;if(e===J)return e;let a=void 0!==s?null===(i=o._$Co)||void 0===i?void 0:i[s]:o._$Cl;const c=j(e)?void 0:e._$litDirective$;return(null==a?void 0:a.constructor)!==c&&(null===(r=null==a?void 0:a._$AO)||void 0===r||r.call(a,!1),void 0===c?a=void 0:(a=new c(t),a._$AT(t,o,s)),void 0!==s?(null!==(n=(l=o)._$Co)&&void 0!==n?n:l._$Co=[])[s]=a:o._$Cl=a),void 0!==a&&(e=tt(t,a._$AS(t,e.values),a,s)),e}class et{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 e;const{el:{content:o},parts:s}=this._$AD,i=(null!==(e=null==t?void 0:t.creationScope)&&void 0!==e?e:O).importNode(o,!0);V.currentNode=i;let r=V.nextNode(),n=0,l=0,a=s[0];for(;void 0!==a;){if(n===a.index){let e;2===a.type?e=new ot(r,r.nextSibling,this,t):1===a.type?e=new a.ctor(r,a.name,a.strings,this,t):6===a.type&&(e=new at(r,this,t)),this._$AV.push(e),a=s[++l]}n!==(null==a?void 0:a.index)&&(r=V.nextNode(),n++)}return V.currentNode=O,i}v(t){let e=0;for(const o of this._$AV)void 0!==o&&(void 0!==o.strings?(o._$AI(t,o,e),e+=o.strings.length-2):o._$AI(t[e])),e++}}class ot{constructor(t,e,o,s){var i;this.type=2,this._$AH=H,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=o,this.options=s,this._$Cp=null===(i=null==s?void 0:s.isConnected)||void 0===i||i}get _$AU(){var t,e;return null!==(e=null===(t=this._$AM)||void 0===t?void 0:t._$AU)&&void 0!==e?e:this._$Cp}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return void 0!==e&&11===(null==t?void 0:t.nodeType)&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=tt(this,t,e),j(t)?t===H||null==t||""===t?(this._$AH!==H&&this._$AR(),this._$AH=H):t!==this._$AH&&t!==J&&this._(t):void 0!==t._$litType$?this.g(t):void 0!==t.nodeType?this.$(t):(t=>U(t)||"function"==typeof(null==t?void 0:t[Symbol.iterator]))(t)?this.T(t):this._(t)}k(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}$(t){this._$AH!==t&&(this._$AR(),this._$AH=this.k(t))}_(t){this._$AH!==H&&j(this._$AH)?this._$AA.nextSibling.data=t:this.$(O.createTextNode(t)),this._$AH=t}g(t){var e;const{values:o,_$litType$:s}=t,i="number"==typeof s?this._$AC(t):(void 0===s.el&&(s.el=$.createElement(Q(s.h,s.h[0]),this.options)),s);if((null===(e=this._$AH)||void 0===e?void 0:e._$AD)===i)this._$AH.v(o);else{const t=new et(i,this),e=t.u(this.options);t.v(o),this.$(e),this._$AH=t}}_$AC(t){let e=K.get(t.strings);return void 0===e&&K.set(t.strings,e=new $(t)),e}T(t){U(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let o,s=0;for(const i of t)s===e.length?e.push(o=new ot(this.k(D()),this.k(D()),this,this.options)):o=e[s],o._$AI(i),s++;s<e.length&&(this._$AR(o&&o._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var o;for(null===(o=this._$AP)||void 0===o||o.call(this,!1,!0,e);t&&t!==this._$AB;){const e=t.nextSibling;t.remove(),t=e}}setConnected(t){var e;void 0===this._$AM&&(this._$Cp=t,null===(e=this._$AP)||void 0===e||e.call(this,t))}}class st{constructor(t,e,o,s,i){this.type=1,this._$AH=H,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=i,o.length>2||""!==o[0]||""!==o[1]?(this._$AH=Array(o.length-1).fill(new String),this.strings=o):this._$AH=H}get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}_$AI(t,e=this,o,s){const i=this.strings;let r=!1;if(void 0===i)t=tt(this,t,e,0),r=!j(t)||t!==this._$AH&&t!==J,r&&(this._$AH=t);else{const s=t;let n,l;for(t=i[0],n=0;n<i.length-1;n++)l=tt(this,s[o+n],e,n),l===J&&(l=this._$AH[n]),r||(r=!j(l)||l!==this._$AH[n]),l===H?t=H:t!==H&&(t+=(null!=l?l:"")+i[n+1]),this._$AH[n]=l}r&&!s&&this.j(t)}j(t){t===H?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,null!=t?t:"")}}class it extends st{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===H?void 0:t}}const rt=N?N.emptyScript:"";class nt extends st{constructor(){super(...arguments),this.type=4}j(t){t&&t!==H?this.element.setAttribute(this.name,rt):this.element.removeAttribute(this.name)}}class lt extends st{constructor(t,e,o,s,i){super(t,e,o,s,i),this.type=5}_$AI(t,e=this){var o;if((t=null!==(o=tt(this,t,e,0))&&void 0!==o?o:H)===J)return;const s=this._$AH,i=t===H&&s!==H||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,r=t!==H&&(s===H||i);i&&this.element.removeEventListener(this.name,this,s),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,o;"function"==typeof this._$AH?this._$AH.call(null!==(o=null===(e=this.options)||void 0===e?void 0:e.host)&&void 0!==o?o:this.element,t):this._$AH.handleEvent(t)}}class at{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){tt(this,t)}}const ct=T.litHtmlPolyfillSupport;
30
- /**
31
- * @license
32
- * Copyright 2017 Google LLC
33
- * SPDX-License-Identifier: BSD-3-Clause
34
- */
35
- var ht,ut;null==ct||ct($,ot),(null!==(z=T.litHtmlVersions)&&void 0!==z?z:T.litHtmlVersions=[]).push("2.8.0");class dt extends S{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var t,e;const o=super.createRenderRoot();return null!==(t=(e=this.renderOptions).renderBefore)&&void 0!==t||(e.renderBefore=o.firstChild),o}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=((t,e,o)=>{var s,i;const r=null!==(s=null==o?void 0:o.renderBefore)&&void 0!==s?s:e;let n=r._$litPart$;if(void 0===n){const t=null!==(i=null==o?void 0:o.renderBefore)&&void 0!==i?i:null;r._$litPart$=n=new ot(e.insertBefore(D(),t),t,void 0,null!=o?o:{})}return n._$AI(t),n})(e,this.renderRoot,this.renderOptions)}connectedCallback(){var t;super.connectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!0)}disconnectedCallback(){var t;super.disconnectedCallback(),null===(t=this._$Do)||void 0===t||t.setConnected(!1)}render(){return J}}dt.finalized=!0,dt._$litElement$=!0,null===(ht=globalThis.litElementHydrateSupport)||void 0===ht||ht.call(globalThis,{LitElement:dt});const mt=globalThis.litElementPolyfillSupport;null==mt||mt({LitElement:dt}),(null!==(ut=globalThis.litElementVersions)&&void 0!==ut?ut:globalThis.litElementVersions=[]).push("3.3.3");
36
- /**
37
- * @license
38
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
39
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
40
- */
41
- const pt=t=>class extends t{static get properties(){return{_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return[...super.observedAttributes,"theme"]}attributeChangedCallback(t,e,o){super.attributeChangedCallback(t,e,o),"theme"===t&&this._set_theme(o)}}
42
- /**
43
- * @license
44
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
45
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
46
- */,ft=[];function vt(t){return t&&Object.prototype.hasOwnProperty.call(t,"__themes")}function bt(t,e,o={}){t&&vt(customElements.get(t))&&console.warn(`The custom element definition for "${t}"\n was finalized before a style module was registered.\n Make sure to add component specific style modules before\n importing the corresponding custom element.`),e=function(t=[]){return[t].flat(1/0).filter((t=>t instanceof p||(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1)))}(e),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(t,e,o):ft.push({themeFor:t,styles:e,include:o.include,moduleId:o.moduleId})}function gt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():ft}function yt(t=""){let e=0;return t.startsWith("lumo-")||t.startsWith("material-")?e=1:t.startsWith("vaadin-")&&(e=2),e}function wt(t){const e=[];return t.include&&[].concat(t.include).forEach((t=>{const o=gt().find((e=>e.moduleId===t));o?e.push(...wt(o),...o.styles):console.warn(`Included moduleId ${t} not found in style registry`)}),t.styles),e}function xt(t){const e=`${t}-default-theme`,o=gt().filter((o=>o.moduleId!==e&&function(t,e){return(t||"").split(" ").some((t=>new RegExp(`^${t.split("*").join(".*")}$`,"u").test(e)))}(o.themeFor,t))).map((t=>({...t,styles:[...wt(t),...t.styles],includePriority:yt(t.moduleId)}))).sort(((t,e)=>e.includePriority-t.includePriority));return o.length>0?o:gt().filter((t=>t.moduleId===e))}const At=t=>class extends(pt(t)){static finalize(){if(super.finalize(),this.elementStyles)return;const t=this.prototype._template;t&&!vt(this)&&function(t,e){const o=document.createElement("style");o.innerHTML=t.map((t=>t.cssText)).join("\n"),e.content.appendChild(o)}(this.getStylesForThis(),t)}static finalizeStyles(t){const e=this.getStylesForThis();return t?[...super.finalizeStyles(t),...e]:e}static getStylesForThis(){const t=Object.getPrototypeOf(this.prototype);this.__themes=[...(t?t.constructor.__themes:[])||[],...xt(this.is)];const e=this.__themes.flatMap((t=>t.styles));return e.filter(((t,o)=>o===e.lastIndexOf(t)))}}
47
- /**
48
- * @license
49
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
50
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
51
- */,kt=(t,...e)=>{const o=document.createElement("style");o.id=t,o.textContent=e.map((t=>t.toString())).join("\n").replace(":host","html"),document.head.insertAdjacentElement("afterbegin",o)},_t=(t,...e)=>{kt(`lumo-${t}`,e)};_t("color-props",f`
52
- :host {
53
- /* Base (background) */
54
- --lumo-base-color: #fff;
55
-
56
- /* Tint */
57
- --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
58
- --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
59
- --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
60
- --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
61
- --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
62
- --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
63
- --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
64
- --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
65
- --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
66
- --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
67
- --lumo-tint: #fff;
68
-
69
- /* Shade */
70
- --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
71
- --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
72
- --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
73
- --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
74
- --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
75
- --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
76
- --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
77
- --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
78
- --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
79
- --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
80
- --lumo-shade: hsl(214, 35%, 15%);
81
-
82
- /* Contrast */
83
- --lumo-contrast-5pct: var(--lumo-shade-5pct);
84
- --lumo-contrast-10pct: var(--lumo-shade-10pct);
85
- --lumo-contrast-20pct: var(--lumo-shade-20pct);
86
- --lumo-contrast-30pct: var(--lumo-shade-30pct);
87
- --lumo-contrast-40pct: var(--lumo-shade-40pct);
88
- --lumo-contrast-50pct: var(--lumo-shade-50pct);
89
- --lumo-contrast-60pct: var(--lumo-shade-60pct);
90
- --lumo-contrast-70pct: var(--lumo-shade-70pct);
91
- --lumo-contrast-80pct: var(--lumo-shade-80pct);
92
- --lumo-contrast-90pct: var(--lumo-shade-90pct);
93
- --lumo-contrast: var(--lumo-shade);
94
-
95
- /* Text */
96
- --lumo-header-text-color: var(--lumo-contrast);
97
- --lumo-body-text-color: var(--lumo-contrast-90pct);
98
- --lumo-secondary-text-color: var(--lumo-contrast-70pct);
99
- --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
100
- --lumo-disabled-text-color: var(--lumo-contrast-30pct);
101
-
102
- /* Primary */
103
- --lumo-primary-color: hsl(214, 100%, 48%);
104
- --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
105
- --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
106
- --lumo-primary-text-color: hsl(214, 100%, 43%);
107
- --lumo-primary-contrast-color: #fff;
108
-
109
- /* Error */
110
- --lumo-error-color: hsl(3, 85%, 48%);
111
- --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
112
- --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
113
- --lumo-error-text-color: hsl(3, 89%, 42%);
114
- --lumo-error-contrast-color: #fff;
115
-
116
- /* Success */
117
- --lumo-success-color: hsl(145, 72%, 30%);
118
- --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
119
- --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
120
- --lumo-success-text-color: hsl(145, 85%, 25%);
121
- --lumo-success-contrast-color: #fff;
122
-
123
- /* Warning */
124
- --lumo-warning-color: hsl(48, 100%, 50%);
125
- --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
126
- --lumo-warning-text-color: hsl(32, 100%, 30%);
127
- --lumo-warning-contrast-color: var(--lumo-shade-90pct);
128
- }
129
-
130
- /* forced-colors mode adjustments */
131
- @media (forced-colors: active) {
132
- html {
133
- --lumo-disabled-text-color: GrayText;
134
- }
135
- }
136
- `),bt("",f`
137
- [theme~='dark'] {
138
- /* Base (background) */
139
- --lumo-base-color: hsl(214, 35%, 21%);
140
-
141
- /* Tint */
142
- --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
143
- --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
144
- --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
145
- --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
146
- --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
147
- --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
148
- --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
149
- --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
150
- --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
151
- --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
152
- --lumo-tint: hsl(214, 100%, 98%);
153
-
154
- /* Shade */
155
- --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
156
- --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
157
- --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
158
- --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
159
- --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
160
- --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
161
- --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
162
- --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
163
- --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
164
- --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
165
- --lumo-shade: hsl(214, 33%, 13%);
166
-
167
- /* Contrast */
168
- --lumo-contrast-5pct: var(--lumo-tint-5pct);
169
- --lumo-contrast-10pct: var(--lumo-tint-10pct);
170
- --lumo-contrast-20pct: var(--lumo-tint-20pct);
171
- --lumo-contrast-30pct: var(--lumo-tint-30pct);
172
- --lumo-contrast-40pct: var(--lumo-tint-40pct);
173
- --lumo-contrast-50pct: var(--lumo-tint-50pct);
174
- --lumo-contrast-60pct: var(--lumo-tint-60pct);
175
- --lumo-contrast-70pct: var(--lumo-tint-70pct);
176
- --lumo-contrast-80pct: var(--lumo-tint-80pct);
177
- --lumo-contrast-90pct: var(--lumo-tint-90pct);
178
- --lumo-contrast: var(--lumo-tint);
179
-
180
- /* Text */
181
- --lumo-header-text-color: var(--lumo-contrast);
182
- --lumo-body-text-color: var(--lumo-contrast-90pct);
183
- --lumo-secondary-text-color: var(--lumo-contrast-70pct);
184
- --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
185
- --lumo-disabled-text-color: var(--lumo-contrast-30pct);
186
-
187
- /* Primary */
188
- --lumo-primary-color: hsl(214, 90%, 48%);
189
- --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
190
- --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
191
- --lumo-primary-text-color: hsl(214, 90%, 77%);
192
- --lumo-primary-contrast-color: #fff;
193
-
194
- /* Error */
195
- --lumo-error-color: hsl(3, 79%, 49%);
196
- --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
197
- --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
198
- --lumo-error-text-color: hsl(3, 100%, 80%);
199
-
200
- /* Success */
201
- --lumo-success-color: hsl(145, 72%, 30%);
202
- --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
203
- --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
204
- --lumo-success-text-color: hsl(145, 85%, 46%);
205
-
206
- /* Warning */
207
- --lumo-warning-color: hsl(43, 100%, 48%);
208
- --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
209
- --lumo-warning-text-color: hsl(45, 100%, 60%);
210
- --lumo-warning-contrast-color: var(--lumo-shade-90pct);
211
- }
212
-
213
- html {
214
- color: var(--lumo-body-text-color);
215
- background-color: var(--lumo-base-color);
216
- color-scheme: light;
217
- }
218
-
219
- [theme~='dark'] {
220
- color: var(--lumo-body-text-color);
221
- background-color: var(--lumo-base-color);
222
- color-scheme: dark;
223
- }
224
-
225
- h1,
226
- h2,
227
- h3,
228
- h4,
229
- h5,
230
- h6 {
231
- color: var(--lumo-header-text-color);
232
- }
233
-
234
- a:where(:any-link) {
235
- color: var(--lumo-primary-text-color);
236
- }
237
-
238
- a:not(:any-link) {
239
- color: var(--lumo-disabled-text-color);
240
- }
241
-
242
- blockquote {
243
- color: var(--lumo-secondary-text-color);
244
- }
245
-
246
- code,
247
- pre {
248
- background-color: var(--lumo-contrast-10pct);
249
- border-radius: var(--lumo-border-radius-m);
250
- }
251
- `,{moduleId:"lumo-color"}),_t("sizing-props",f`
252
- :host {
253
- --lumo-size-xs: 1.625rem;
254
- --lumo-size-s: 1.875rem;
255
- --lumo-size-m: 2.25rem;
256
- --lumo-size-l: 2.75rem;
257
- --lumo-size-xl: 3.5rem;
258
-
259
- /* Icons */
260
- --lumo-icon-size-s: 1.25em;
261
- --lumo-icon-size-m: 1.5em;
262
- --lumo-icon-size-l: 2.25em;
263
- /* For backwards compatibility */
264
- --lumo-icon-size: var(--lumo-icon-size-m);
265
- }
266
- `),f`
267
- html {
268
- --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
269
- --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
270
- --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
271
- }
272
- `,_t("style-props",f`
273
- :host {
274
- /* Border radius */
275
- --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
276
- --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
277
- --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
278
-
279
- /* Shadow */
280
- --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
281
- --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
282
- --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
283
- --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
284
- --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
285
-
286
- /* Clickable element cursor */
287
- --lumo-clickable-cursor: default;
288
- }
289
- `);
290
- /**
291
- * @license
292
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
293
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
294
- */
295
- const Ct=f`
296
- :host {
297
- /* prettier-ignore */
298
- --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
299
-
300
- /* Font sizes */
301
- --lumo-font-size-xxs: 0.75rem;
302
- --lumo-font-size-xs: 0.8125rem;
303
- --lumo-font-size-s: 0.875rem;
304
- --lumo-font-size-m: 1rem;
305
- --lumo-font-size-l: 1.125rem;
306
- --lumo-font-size-xl: 1.375rem;
307
- --lumo-font-size-xxl: 1.75rem;
308
- --lumo-font-size-xxxl: 2.5rem;
309
-
310
- /* Line heights */
311
- --lumo-line-height-xs: 1.25;
312
- --lumo-line-height-s: 1.375;
313
- --lumo-line-height-m: 1.625;
314
- }
315
- `;bt("",f`
316
- body,
317
- :host {
318
- font-family: var(--lumo-font-family);
319
- font-size: var(--lumo-font-size-m);
320
- line-height: var(--lumo-line-height-m);
321
- -webkit-text-size-adjust: 100%;
322
- -webkit-font-smoothing: antialiased;
323
- -moz-osx-font-smoothing: grayscale;
324
- }
325
-
326
- small,
327
- [theme~='font-size-s'] {
328
- font-size: var(--lumo-font-size-s);
329
- line-height: var(--lumo-line-height-s);
330
- }
331
-
332
- [theme~='font-size-xs'] {
333
- font-size: var(--lumo-font-size-xs);
334
- line-height: var(--lumo-line-height-xs);
335
- }
336
-
337
- :where(h1, h2, h3, h4, h5, h6) {
338
- font-weight: 600;
339
- line-height: var(--lumo-line-height-xs);
340
- margin-block: 0;
341
- }
342
-
343
- :where(h1) {
344
- font-size: var(--lumo-font-size-xxxl);
345
- }
346
-
347
- :where(h2) {
348
- font-size: var(--lumo-font-size-xxl);
349
- }
350
-
351
- :where(h3) {
352
- font-size: var(--lumo-font-size-xl);
353
- }
354
-
355
- :where(h4) {
356
- font-size: var(--lumo-font-size-l);
357
- }
358
-
359
- :where(h5) {
360
- font-size: var(--lumo-font-size-m);
361
- }
362
-
363
- :where(h6) {
364
- font-size: var(--lumo-font-size-xs);
365
- text-transform: uppercase;
366
- letter-spacing: 0.03em;
367
- }
368
-
369
- p,
370
- blockquote {
371
- margin-top: 0.5em;
372
- margin-bottom: 0.75em;
373
- }
374
-
375
- a {
376
- text-decoration: none;
377
- }
378
-
379
- a:where(:any-link):hover {
380
- text-decoration: underline;
381
- }
382
-
383
- hr {
384
- display: block;
385
- align-self: stretch;
386
- height: 1px;
387
- border: 0;
388
- padding: 0;
389
- margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
390
- background-color: var(--lumo-contrast-10pct);
391
- }
392
-
393
- blockquote {
394
- border-left: 2px solid var(--lumo-contrast-30pct);
395
- }
396
-
397
- b,
398
- strong {
399
- font-weight: 600;
400
- }
401
-
402
- /* RTL specific styles */
403
- blockquote[dir='rtl'] {
404
- border-left: none;
405
- border-right: 2px solid var(--lumo-contrast-30pct);
406
- }
407
- `,{moduleId:"lumo-typography"}),_t("typography-props",Ct),bt("vaadin-input-container",f`
408
- :host {
409
- background-color: var(--lumo-contrast-10pct);
410
- padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
411
- font-weight: 500;
412
- line-height: 1;
413
- position: relative;
414
- cursor: text;
415
- box-sizing: border-box;
416
- border-radius:
417
- /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius#syntax */
418
- var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
419
- var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
420
- var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius))
421
- var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius));
422
- /* Fallback */
423
- --_input-container-radius: var(--vaadin-input-field-border-radius, var(--lumo-border-radius-m));
424
- /* Default field border color */
425
- --_input-border-color: var(--vaadin-input-field-border-color, var(--lumo-contrast-50pct));
426
- }
427
-
428
- :host([dir='rtl']) {
429
- border-radius:
430
- /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
431
- var(--vaadin-input-field-top-end-radius, var(--_input-container-radius))
432
- var(--vaadin-input-field-top-start-radius, var(--_input-container-radius))
433
- var(--vaadin-input-field-bottom-start-radius, var(--_input-container-radius))
434
- var(--vaadin-input-field-bottom-end-radius, var(--_input-container-radius));
435
- }
436
-
437
- /* Used for hover and activation effects */
438
- :host::after {
439
- content: '';
440
- position: absolute;
441
- inset: 0;
442
- border-radius: inherit;
443
- pointer-events: none;
444
- background-color: var(--lumo-contrast-50pct);
445
- opacity: 0;
446
- transition: transform 0.15s, opacity 0.2s;
447
- transform-origin: 100% 0;
448
- }
449
-
450
- ::slotted(:not([slot$='fix'])) {
451
- cursor: inherit;
452
- min-height: var(--lumo-text-field-size, var(--lumo-size-m));
453
- padding: 0 0.25em;
454
- --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent, #000 1.25em);
455
- -webkit-mask-image: var(--_lumo-text-field-overflow-mask-image);
456
- mask-image: var(--_lumo-text-field-overflow-mask-image);
457
- }
458
-
459
- /* Read-only */
460
- :host([readonly]) {
461
- color: var(--lumo-secondary-text-color);
462
- background-color: transparent;
463
- cursor: default;
464
- }
465
-
466
- :host([readonly])::after {
467
- background-color: transparent;
468
- opacity: 1;
469
- border: 1px dashed var(--lumo-contrast-30pct);
470
- }
471
-
472
- /* Disabled */
473
- :host([disabled]) {
474
- background-color: var(--lumo-contrast-5pct);
475
- }
476
-
477
- :host([disabled]) ::slotted(*) {
478
- color: var(--lumo-disabled-text-color);
479
- -webkit-text-fill-color: var(--lumo-disabled-text-color);
480
- }
481
-
482
- /* Invalid */
483
- :host([invalid]) {
484
- background-color: var(--lumo-error-color-10pct);
485
- }
486
-
487
- :host([invalid])::after {
488
- background-color: var(--lumo-error-color-50pct);
489
- }
490
-
491
- /* Slotted icons */
492
- ::slotted(vaadin-icon) {
493
- color: var(--lumo-contrast-60pct);
494
- width: var(--lumo-icon-size-m);
495
- height: var(--lumo-icon-size-m);
496
- }
497
-
498
- /* Vaadin icons are based on a 16x16 grid (unlike Lumo and Material icons with 24x24), so they look too big by default */
499
- ::slotted(vaadin-icon[icon^='vaadin:']) {
500
- padding: 0.25em;
501
- box-sizing: border-box !important;
502
- }
503
-
504
- /* Text align */
505
- :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
506
- --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent, #000 1.25em);
507
- }
508
-
509
- @-moz-document url-prefix() {
510
- :host([dir='rtl']) ::slotted(:not([slot$='fix'])) {
511
- mask-image: var(--_lumo-text-field-overflow-mask-image);
512
- }
513
- }
514
-
515
- :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
516
- text-align: start;
517
- --_lumo-text-field-overflow-mask-image: none;
518
- }
519
-
520
- :host([theme~='align-center']) ::slotted(:not([slot$='fix'])) {
521
- text-align: center;
522
- --_lumo-text-field-overflow-mask-image: none;
523
- }
524
-
525
- :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
526
- text-align: end;
527
- --_lumo-text-field-overflow-mask-image: none;
528
- }
529
-
530
- @-moz-document url-prefix() {
531
- /* Firefox is smart enough to align overflowing text to right */
532
- :host([theme~='align-right']) ::slotted(:not([slot$='fix'])) {
533
- --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
534
- }
535
- }
536
-
537
- @-moz-document url-prefix() {
538
- /* Firefox is smart enough to align overflowing text to right */
539
- :host([theme~='align-left']) ::slotted(:not([slot$='fix'])) {
540
- --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
541
- }
542
- }
543
-
544
- /* RTL specific styles */
545
- :host([dir='rtl'])::after {
546
- transform-origin: 0% 0;
547
- }
548
-
549
- :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
550
- --_lumo-text-field-overflow-mask-image: none;
551
- }
552
-
553
- :host([theme~='align-center'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
554
- --_lumo-text-field-overflow-mask-image: none;
555
- }
556
-
557
- :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
558
- --_lumo-text-field-overflow-mask-image: none;
559
- }
560
-
561
- @-moz-document url-prefix() {
562
- /* Firefox is smart enough to align overflowing text to right */
563
- :host([theme~='align-right'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
564
- --_lumo-text-field-overflow-mask-image: linear-gradient(to right, transparent 0.25em, #000 1.5em);
565
- }
566
- }
567
-
568
- @-moz-document url-prefix() {
569
- /* Firefox is smart enough to align overflowing text to right */
570
- :host([theme~='align-left'][dir='rtl']) ::slotted(:not([slot$='fix'])) {
571
- --_lumo-text-field-overflow-mask-image: linear-gradient(to left, transparent 0.25em, #000 1.5em);
572
- }
573
- }
574
- `,{moduleId:"lumo-input-container"}),
575
- /**
576
- @license
577
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
578
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
579
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
580
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
581
- Code distributed by Google as part of the polymer project is also
582
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
583
- */
584
- window.JSCompiler_renameProperty=function(t){return t};
585
- /**
586
- @license
587
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
588
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
589
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
590
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
591
- Code distributed by Google as part of the polymer project is also
592
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
593
- */
594
- let St,zt,Tt=/(url\()([^)]*)(\))/g,Nt=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/;function It(t,e){if(t&&Nt.test(t))return t;if("//"===t)return t;if(void 0===St){St=!1;try{const t=new URL("b","http://a");t.pathname="c%20d",St="http://a/c%20d"===t.href}catch(t){}}if(e||(e=document.baseURI||window.location.href),St)try{return new URL(t,e).href}catch(e){return t}return zt||(zt=document.implementation.createHTMLDocument("temp"),zt.base=zt.createElement("base"),zt.head.appendChild(zt.base),zt.anchor=zt.createElement("a"),zt.body.appendChild(zt.anchor)),zt.base.href=e,zt.anchor.href=t,zt.anchor.href||t}function Pt(t,e){return t.replace(Tt,(function(t,o,s,i){return o+"'"+It(s.replace(/["']/g,""),e)+"'"+i}))}function Bt(t){return t.substring(0,t.lastIndexOf("/")+1)}
595
- /**
596
- @license
597
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
598
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
599
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
600
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
601
- Code distributed by Google as part of the polymer project is also
602
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
603
- */const Mt=(!window.ShadyDOM||!window.ShadyDOM.inUse)&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const t=new CSSStyleSheet;t.replaceSync("");const e=document.createElement("div");return e.attachShadow({mode:"open"}),e.shadowRoot.adoptedStyleSheets=[t],e.shadowRoot.adoptedStyleSheets[0]===t}catch(t){return!1}})();let Et=window.Polymer&&window.Polymer.rootPath||Bt(document.baseURI||window.location.href),Ot=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0,Dt=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,jt=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,Ut=window.Polymer&&window.Polymer.legacyOptimizations||!1,Ft=window.Polymer&&window.Polymer.legacyWarnings||!1,Rt=window.Polymer&&window.Polymer.syncInitialRender||!1,Wt=window.Polymer&&window.Polymer.legacyUndefined||!1,Lt=window.Polymer&&window.Polymer.orderedComputed||!1,Gt=window.Polymer&&window.Polymer.removeNestedTemplates||!1,qt=window.Polymer&&window.Polymer.fastDomIf||!1,Yt=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1,Zt=0;const Jt=function(t){let e=t.__mixinApplications;e||(e=new WeakMap,t.__mixinApplications=e);let o=Zt++;return function(s){let i=s.__mixinSet;if(i&&i[o])return s;let r=e,n=r.get(s);if(!n){n=t(s),r.set(s,n);let e=Object.create(n.__mixinSet||i||null);e[o]=!0,n.__mixinSet=e}return n}};
604
- /**
605
- @license
606
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
607
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
608
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
609
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
610
- Code distributed by Google as part of the polymer project is also
611
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
612
- */let Ht={},Kt={};function Vt(t,e){Ht[t]=Kt[t.toLowerCase()]=e}function Qt(t){return Ht[t]||Kt[t.toLowerCase()]}class Xt extends HTMLElement{static get observedAttributes(){return["id"]}static import(t,e){if(t){let o=Qt(t);return o&&e?o.querySelector(e):o}return null}attributeChangedCallback(t,e,o,s){e!==o&&this.register()}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=It(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Bt(e)}return this.__assetpath}register(t){if(t=t||this.id){if(Dt&&void 0!==Qt(t))throw Vt(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,Vt(t,this),(e=this).querySelector("style")&&console.warn("dom-module %s has style outside template",e.id)}var e}}Xt.prototype.modules=Ht,customElements.define("dom-module",Xt);
613
- /**
614
- @license
615
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
616
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
617
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
618
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
619
- Code distributed by Google as part of the polymer project is also
620
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
621
- */
622
- const $t="link[rel=import][type~=css]",te="include",ee="shady-unscoped";function oe(t){return Xt.import(t)}function se(t){const e=Pt((t.body?t.body:t).textContent,t.baseURI),o=document.createElement("style");return o.textContent=e,o}function ie(t){const e=t.trim().split(/\s+/),o=[];for(let t=0;t<e.length;t++)o.push(...re(e[t]));return o}function re(t){const e=oe(t);if(!e)return console.warn("Could not find style data in module named",t),[];if(void 0===e._styles){const t=[];t.push(...le(e));const o=e.querySelector("template");o&&t.push(...ne(o,e.assetpath)),e._styles=t}return e._styles}function ne(t,e){if(!t._styles){const o=[],s=t.content.querySelectorAll("style");for(let t=0;t<s.length;t++){let i=s[t],r=i.getAttribute(te);r&&o.push(...ie(r).filter((function(t,e,o){return o.indexOf(t)===e}))),e&&(i.textContent=Pt(i.textContent,e)),o.push(i)}t._styles=o}return t._styles}function le(t){const e=[],o=t.querySelectorAll($t);for(let t=0;t<o.length;t++){let s=o[t];if(s.import){const t=s.import,o=s.hasAttribute(ee);if(o&&!t._unscopedStyle){const e=se(t);e.setAttribute(ee,""),t._unscopedStyle=e}else t._style||(t._style=se(t));e.push(o?t._unscopedStyle:t._style)}}return e}
623
- /**
624
- @license
625
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
626
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
627
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
628
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
629
- Code distributed by Google as part of the polymer project is also
630
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
631
- */const ae=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?t=>ShadyDOM.patch(t):t=>t;
632
- /**
633
- @license
634
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
635
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
636
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
637
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
638
- Code distributed by Google as part of the polymer project is also
639
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
640
- */function ce(t){return t.indexOf(".")>=0}function he(t){let e=t.indexOf(".");return-1===e?t:t.slice(0,e)}function ue(t,e){return 0===e.indexOf(t+".")}function de(t,e,o){return e+o.slice(t.length)}function me(t){if(Array.isArray(t)){let e=[];for(let o=0;o<t.length;o++){let s=t[o].toString().split(".");for(let t=0;t<s.length;t++)e.push(s[t])}return e.join(".")}return t}function pe(t){return Array.isArray(t)?me(t).split("."):t.toString().split(".")}function fe(t,e,o){let s=t,i=pe(e);for(let t=0;t<i.length;t++){if(!s)return;s=s[i[t]]}return o&&(o.path=i.join(".")),s}function ve(t,e,o){let s=t,i=pe(e),r=i[i.length-1];if(i.length>1){for(let t=0;t<i.length-1;t++)if(s=s[i[t]],!s)return;s[r]=o}else s[e]=o;return i.join(".")}
641
- /**
642
- @license
643
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
644
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
645
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
646
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
647
- Code distributed by Google as part of the polymer project is also
648
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
649
- */const be={},ge=/-[a-z]/g,ye=/([A-Z])/g;function we(t){return be[t]||(be[t]=t.indexOf("-")<0?t:t.replace(ge,(t=>t[1].toUpperCase())))}function xe(t){return be[t]||(be[t]=t.replace(ye,"-$1").toLowerCase())}
650
- /**
651
- @license
652
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
653
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
654
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
655
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
656
- Code distributed by Google as part of the polymer project is also
657
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
658
- */let Ae=0,ke=0,_e=[],Ce=0,Se=!1,ze=document.createTextNode("");new window.MutationObserver((function(){Se=!1;const t=_e.length;for(let e=0;e<t;e++){let t=_e[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}_e.splice(0,t),ke+=t})).observe(ze,{characterData:!0});const Te={run:t=>(Se||(Se=!0,ze.textContent=Ce++),_e.push(t),Ae++),cancel(t){const e=t-ke;if(e>=0){if(!_e[e])throw new Error("invalid async handle: "+t);_e[e]=null}}},Ne=Jt((t=>class extends t{static createProperties(t){const e=this.prototype;for(let o in t)o in e||e._createPropertyAccessor(o)}static attributeNameForProperty(t){return t.toLowerCase()}static typeForProperty(t){}_createPropertyAccessor(t,e){this._addPropertyToAttributeMap(t),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[t]||(this.__dataHasAccessor[t]=!0,this._definePropertyAccessor(t,e))}_addPropertyToAttributeMap(t){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let e=this.__dataAttributes[t];return e||(e=this.constructor.attributeNameForProperty(t),this.__dataAttributes[e]=t),e}_definePropertyAccessor(t,e){Object.defineProperty(this,t,{get(){return this.__data[t]},set:e?function(){}:function(e){this._setPendingProperty(t,e,!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 t in this.__dataHasAccessor)this.hasOwnProperty(t)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[t]=this[t],delete this[t])}_initializeInstanceProperties(t){Object.assign(this,t)}_setProperty(t,e){this._setPendingProperty(t,e)&&this._invalidateProperties()}_getProperty(t){return this.__data[t]}_setPendingProperty(t,e,o){let s=this.__data[t],i=this._shouldPropertyChange(t,e,s);return i&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(t in this.__dataOld)&&(this.__dataOld[t]=s),this.__data[t]=e,this.__dataPending[t]=e),i}_isPropertyPending(t){return!(!this.__dataPending||!this.__dataPending.hasOwnProperty(t))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,Te.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 t=this.__data,e=this.__dataPending,o=this.__dataOld;this._shouldPropertiesChange(t,e,o)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(t,e,o)),this.__dataCounter--}_shouldPropertiesChange(t,e,o){return Boolean(e)}_propertiesChanged(t,e,o){}_shouldPropertyChange(t,e,o){return o!==e&&(o==o||e==e)}attributeChangedCallback(t,e,o,s){e!==o&&this._attributeToProperty(t,o),super.attributeChangedCallback&&super.attributeChangedCallback(t,e,o,s)}_attributeToProperty(t,e,o){if(!this.__serializing){const s=this.__dataAttributes,i=s&&s[t]||t;this[i]=this._deserializeValue(e,o||this.constructor.typeForProperty(i))}}_propertyToAttribute(t,e,o){this.__serializing=!0,this._valueToNodeAttribute(this,o=arguments.length<3?this[t]:o,e||this.constructor.attributeNameForProperty(t)),this.__serializing=!1}_valueToNodeAttribute(t,e,o){const s=this._serializeValue(e);"class"!==o&&"name"!==o&&"slot"!==o||(t=ae(t)),void 0===s?t.removeAttribute(o):t.setAttribute(o,""===s&&window.trustedTypes?window.trustedTypes.emptyScript:s)}_serializeValue(t){return"boolean"==typeof t?t?"":void 0:null!=t?t.toString():void 0}_deserializeValue(t,e){switch(e){case Boolean:return null!==t;case Number:return Number(t);default:return t}}})),Ie={};
659
- /**
660
- @license
661
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
662
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
663
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
664
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
665
- Code distributed by Google as part of the polymer project is also
666
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
667
- */let Pe=HTMLElement.prototype;for(;Pe;){let t=Object.getOwnPropertyNames(Pe);for(let e=0;e<t.length;e++)Ie[t[e]]=!0;Pe=Object.getPrototypeOf(Pe)}const Be=window.trustedTypes?t=>trustedTypes.isHTML(t)||trustedTypes.isScript(t)||trustedTypes.isScriptURL(t):()=>!1,Me=Jt((t=>{const e=Ne(t);return class extends e{static createPropertiesForAttributes(){let t=this.observedAttributes;for(let e=0;e<t.length;e++)this.prototype._createPropertyAccessor(we(t[e]))}static attributeNameForProperty(t){return xe(t)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(t){for(let e in t)this._setProperty(e,t[e])}_ensureAttribute(t,e){this.hasAttribute(t)||this._valueToNodeAttribute(this,e,t)}_serializeValue(t){if("object"==typeof t){if(t instanceof Date)return t.toString();if(t){if(Be(t))return t;try{return JSON.stringify(t)}catch(t){return""}}}return super._serializeValue(t)}_deserializeValue(t,e){let o;switch(e){case Object:try{o=JSON.parse(t)}catch(e){o=t}break;case Array:try{o=JSON.parse(t)}catch(e){o=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${t}`)}break;case Date:o=isNaN(t)?String(t):Number(t),o=new Date(o);break;default:o=super._deserializeValue(t,e)}return o}_definePropertyAccessor(t,e){!function(t,e){if(!Ie[e]){let o=t[e];void 0!==o&&(t.__data?t._setPendingProperty(e,o):(t.__dataProto?t.hasOwnProperty(JSCompiler_renameProperty("__dataProto",t))||(t.__dataProto=Object.create(t.__dataProto)):t.__dataProto={},t.__dataProto[e]=o))}}(this,t),super._definePropertyAccessor(t,e)}_hasAccessor(t){return this.__dataHasAccessor&&this.__dataHasAccessor[t]}_isPropertyPending(t){return Boolean(this.__dataPending&&t in this.__dataPending)}}})),Ee={"dom-if":!0,"dom-repeat":!0};let Oe=!1,De=!1;const je=(()=>{const t=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(e,o,s)=>{const i=o.getAttribute(s);t&&s.startsWith("on-")?e.setAttribute(s,t.createScript(i,s)):e.setAttribute(s,i)}})();function Ue(t){let e=t.getAttribute("is");if(e&&Ee[e]){let o=t;for(o.removeAttribute("is"),t=o.ownerDocument.createElement(e),o.parentNode.replaceChild(t,o),t.appendChild(o);o.attributes.length;){const{name:e}=o.attributes[0];je(t,o,e),o.removeAttribute(e)}}return t}function Fe(t,e){let o=e.parentInfo&&Fe(t,e.parentInfo);if(!o)return t;for(let t=o.firstChild,s=0;t;t=t.nextSibling)if(e.parentIndex===s++)return t}function Re(t,e,o,s){s.id&&(e[s.id]=o)}function We(t,e,o){if(o.events&&o.events.length)for(let s,i=0,r=o.events;i<r.length&&(s=r[i]);i++)t._addMethodEventListenerToNode(e,s.name,s.value,t)}function Le(t,e,o,s){o.templateInfo&&(e._templateInfo=o.templateInfo,e._parentTemplateInfo=s)}const Ge=Jt((t=>class extends t{static _parseTemplate(t,e){if(!t._templateInfo){let o=t._templateInfo={};o.nodeInfoList=[],o.nestedTemplate=Boolean(e),o.stripWhiteSpace=e&&e.stripWhiteSpace||t.hasAttribute&&t.hasAttribute("strip-whitespace"),this._parseTemplateContent(t,o,{parent:null})}return t._templateInfo}static _parseTemplateContent(t,e,o){return this._parseTemplateNode(t.content,e,o)}static _parseTemplateNode(t,e,o){let s=!1,i=t;return"template"!=i.localName||i.hasAttribute("preserve-content")?"slot"===i.localName&&(e.hasInsertionPoint=!0):s=this._parseTemplateNestedTemplate(i,e,o)||s,function(t){(function(){if(!Oe){Oe=!0;const t=document.createElement("textarea");t.placeholder="a",De=t.placeholder===t.textContent}return De})()&&"textarea"===t.localName&&t.placeholder&&t.placeholder===t.textContent&&(t.textContent=null)}(i),i.firstChild&&this._parseTemplateChildNodes(i,e,o),i.hasAttributes&&i.hasAttributes()&&(s=this._parseTemplateNodeAttributes(i,e,o)||s),s||o.noted}static _parseTemplateChildNodes(t,e,o){if("script"!==t.localName&&"style"!==t.localName)for(let s,i=t.firstChild,r=0;i;i=s){if("template"==i.localName&&(i=Ue(i)),s=i.nextSibling,i.nodeType===Node.TEXT_NODE){let o=s;for(;o&&o.nodeType===Node.TEXT_NODE;)i.textContent+=o.textContent,s=o.nextSibling,t.removeChild(o),o=s;if(e.stripWhiteSpace&&!i.textContent.trim()){t.removeChild(i);continue}}let n={parentIndex:r,parentInfo:o};this._parseTemplateNode(i,e,n)&&(n.infoIndex=e.nodeInfoList.push(n)-1),i.parentNode&&r++}}static _parseTemplateNestedTemplate(t,e,o){let s=t,i=this._parseTemplate(s,e);return(i.content=s.content.ownerDocument.createDocumentFragment()).appendChild(s.content),o.templateInfo=i,!0}static _parseTemplateNodeAttributes(t,e,o){let s=!1,i=Array.from(t.attributes);for(let r,n=i.length-1;r=i[n];n--)s=this._parseTemplateNodeAttribute(t,e,o,r.name,r.value)||s;return s}static _parseTemplateNodeAttribute(t,e,o,s,i){return"on-"===s.slice(0,3)?(t.removeAttribute(s),o.events=o.events||[],o.events.push({name:s.slice(3),value:i}),!0):"id"===s&&(o.id=i,!0)}static _contentForTemplate(t){let e=t._templateInfo;return e&&e.content||t.content}_stampTemplate(t,e){t&&!t.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(t);let o=(e=e||this.constructor._parseTemplate(t)).nodeInfoList,s=document.importNode(e.content||t.content,!0);s.__noInsertionPoint=!e.hasInsertionPoint;let i=s.nodeList=new Array(o.length);s.$={};for(let t,r=0,n=o.length;r<n&&(t=o[r]);r++){let o=i[r]=Fe(s,t);Re(0,s.$,o,t),Le(0,o,t,e),We(this,o,t)}return s}_addMethodEventListenerToNode(t,e,o,s){let i=function(t,e,o){return t=t._methodHost||t,function(e){t[o]?t[o](e,e.detail):console.warn("listener method `"+o+"` not defined")}}(s=s||t,0,o);return this._addEventListenerToNode(t,e,i),i}_addEventListenerToNode(t,e,o){t.addEventListener(e,o)}_removeEventListenerFromNode(t,e,o){t.removeEventListener(e,o)}}));
668
- /**
669
- * @fileoverview
670
- * @suppress {checkPrototypalTypes}
671
- * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
672
- * This code may only be used under the BSD style license found at
673
- * http://polymer.github.io/LICENSE.txt The complete set of authors may be found
674
- * at http://polymer.github.io/AUTHORS.txt The complete set of contributors may
675
- * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
676
- * Google as part of the polymer project is also subject to an additional IP
677
- * rights grant found at http://polymer.github.io/PATENTS.txt
678
- */let qe=0;const Ye=[],Ze={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Je="__computeInfo",He=/[A-Z]/;function Ke(t,e,o){let s=t[e];if(s){if(!t.hasOwnProperty(e)&&(s=t[e]=Object.create(t[e]),o))for(let t in s){let e=s[t],o=s[t]=Array(e.length);for(let t=0;t<e.length;t++)o[t]=e[t]}}else s=t[e]={};return s}function Ve(t,e,o,s,i,r){if(e){let n=!1;const l=qe++;for(let a in o){let c=e[i?he(a):a];if(c)for(let e,h=0,u=c.length;h<u&&(e=c[h]);h++)e.info&&e.info.lastRun===l||i&&!Xe(a,e.trigger)||(e.info&&(e.info.lastRun=l),e.fn(t,a,o,s,e.info,i,r),n=!0)}return n}return!1}function Qe(t,e,o,s,i,r,n,l){let a=!1,c=e[n?he(s):s];if(c)for(let e,h=0,u=c.length;h<u&&(e=c[h]);h++)e.info&&e.info.lastRun===o||n&&!Xe(s,e.trigger)||(e.info&&(e.info.lastRun=o),e.fn(t,s,i,r,e.info,n,l),a=!0);return a}function Xe(t,e){if(e){let o=e.name;return o==t||!(!e.structured||!function(t,e){return 0===t.indexOf(e+".")}(o,t))||!(!e.wildcard||!ue(o,t))}return!0}function $e(t,e,o,s,i){let r="string"==typeof i.method?t[i.method]:i.method,n=i.property;r?r.call(t,t.__data[n],s[n]):i.dynamicFn||console.warn("observer method `"+i.method+"` not defined")}function to(t,e,o){let s=he(e);return s!==e&&(eo(t,xe(s)+"-changed",o[e],e),!0)}function eo(t,e,o,s){let i={value:o,queueProperty:!0};s&&(i.path=s),ae(t).dispatchEvent(new CustomEvent(e,{detail:i}))}function oo(t,e,o,s,i,r){let n=(r?he(e):e)!=e?e:null,l=n?fe(t,n):t.__data[e];n&&void 0===l&&(l=o[e]),eo(t,i.eventName,l,n)}function so(t,e,o,s,i){let r=t.__data[e];Ot&&(r=Ot(r,i.attrName,"attribute",t)),t._propertyToAttribute(e,i.attrName,r)}const io=(t,e,o)=>{let s=0,i=e.length-1,r=-1;for(;s<=i;){const n=s+i>>1,l=o.get(e[n].methodInfo)-o.get(t.methodInfo);if(l<0)s=n+1;else{if(!(l>0)){r=n;break}i=n-1}}r<0&&(r=i+1),e.splice(r,0,t)},ro=(t,e,o,s,i)=>{const r=e[i?he(t):t];if(r)for(let e=0;e<r.length;e++){const n=r[e];n.info.lastRun===qe||i&&!Xe(t,n.trigger)||(n.info.lastRun=qe,io(n.info,o,s))}};function no(t,e,o,s,i){let r=po(t,e,o,0,i);if(r===Ye)return!1;let n=i.methodInfo;return t.__dataHasAccessor&&t.__dataHasAccessor[n]?t._setPendingProperty(n,r,!0):(t[n]=r,!1)}function lo(t,e,o,s,i,r,n){o.bindings=o.bindings||[];let l={kind:s,target:i,parts:r,literal:n,isCompound:1!==r.length};if(o.bindings.push(l),function(t){return Boolean(t.target)&&"attribute"!=t.kind&&"text"!=t.kind&&!t.isCompound&&"{"===t.parts[0].mode}(l)){let{event:t,negate:e}=l.parts[0];l.listenerEvent=t||xe(i)+"-changed",l.listenerNegate=e}let a=e.nodeInfoList.length;for(let o=0;o<l.parts.length;o++){let s=l.parts[o];s.compoundIndex=o,ao(t,e,l,s,a)}}function ao(t,e,o,s,i){if(!s.literal)if("attribute"===o.kind&&"-"===o.target[0])console.warn("Cannot set attribute "+o.target+' because "-" is not a valid attribute starting character');else{let r=s.dependencies,n={index:i,binding:o,part:s,evaluator:t};for(let o=0;o<r.length;o++){let s=r[o];"string"==typeof s&&(s=xo(s),s.wildcard=!0),t._addTemplatePropertyEffect(e,s.rootProperty,{fn:co,info:n,trigger:s})}}}function co(t,e,o,s,i,r,n){let l=n[i.index],a=i.binding,c=i.part;if(r&&c.source&&e.length>c.source.length&&"property"==a.kind&&!a.isCompound&&l.__isPropertyEffectsClient&&l.__dataHasAccessor&&l.__dataHasAccessor[a.target]){let s=o[e];e=de(c.source,a.target,e),l._setPendingPropertyOrPath(e,s,!1,!0)&&t._enqueueClient(l)}else{let n=i.evaluator._evaluateBinding(t,c,e,o,s,r);n!==Ye&&function(t,e,o,s,i){if(i=function(t,e,o,s){if(o.isCompound){let i=t.__dataCompoundStorage[o.target];i[s.compoundIndex]=e,e=i.join("")}return"attribute"!==o.kind&&("textContent"!==o.target&&("value"!==o.target||"input"!==t.localName&&"textarea"!==t.localName)||(e=null==e?"":e)),e}(e,i,o,s),Ot&&(i=Ot(i,o.target,o.kind,e)),"attribute"==o.kind)t._valueToNodeAttribute(e,i,o.target);else{let s=o.target;e.__isPropertyEffectsClient&&e.__dataHasAccessor&&e.__dataHasAccessor[s]?e[Ze.READ_ONLY]&&e[Ze.READ_ONLY][s]||e._setPendingProperty(s,i)&&t._enqueueClient(e):t._setUnmanagedPropertyToNode(e,s,i)}}(t,l,a,c,n)}}function ho(t,e){if(e.isCompound){let o=t.__dataCompoundStorage||(t.__dataCompoundStorage={}),s=e.parts,i=new Array(s.length);for(let t=0;t<s.length;t++)i[t]=s[t].literal;let r=e.target;o[r]=i,e.literal&&"property"==e.kind&&("className"===r&&(t=ae(t)),t[r]=e.literal)}}function uo(t,e,o){if(o.listenerEvent){let s=o.parts[0];t.addEventListener(o.listenerEvent,(function(t){!function(t,e,o,s,i){let r,n=t.detail,l=n&&n.path;l?(s=de(o,s,l),r=n&&n.value):r=t.currentTarget[o],r=i?!r:r,e[Ze.READ_ONLY]&&e[Ze.READ_ONLY][s]||!e._setPendingPropertyOrPath(s,r,!0,Boolean(l))||n&&n.queueProperty||e._invalidateProperties()}(t,e,o.target,s.source,s.negate)}))}}function mo(t,e,o,s,i,r){let n={methodName:e.methodName,args:e.args,methodInfo:i,dynamicFn:r=e.static||r&&("object"!=typeof r||r[e.methodName])};for(let i,r=0;r<e.args.length&&(i=e.args[r]);r++)i.literal||t._addPropertyEffect(i.rootProperty,o,{fn:s,info:n,trigger:i});return r&&t._addPropertyEffect(e.methodName,o,{fn:s,info:n}),n}function po(t,e,o,s,i){let r=t._methodHost||t,n=r[i.methodName];if(n){let s=t._marshalArgs(i.args,e,o);return s===Ye?Ye:n.apply(r,s)}i.dynamicFn||console.warn("method `"+i.methodName+"` not defined")}const fo=[],vo="(?:[a-zA-Z_$][\\w.:$\\-*]*)",bo="(?:("+vo+"|(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)|(?:(?:'(?:[^'\\\\]|\\\\.)*')|(?:\"(?:[^\"\\\\]|\\\\.)*\")))\\s*)",go=new RegExp("(\\[\\[|{{)\\s*(?:(!)\\s*)?("+vo+"\\s*(?:\\(\\s*(?:(?:"+bo+"(?:,\\s*"+bo+")*)?)\\)\\s*)?)(?:]]|}})","g");function yo(t){let e="";for(let o=0;o<t.length;o++)e+=t[o].literal||"";return e}function wo(t){let e=t.match(/([^\s]+?)\(([\s\S]*)\)/);if(e){let t={methodName:e[1],static:!0,args:fo};return e[2].trim()?function(t,e){return e.args=t.map((function(t){let o=xo(t);return o.literal||(e.static=!1),o}),this),e}(e[2].replace(/\\,/g,"&comma;").split(","),t):t}return null}function xo(t){let e=t.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),o={name:e,value:"",literal:!1},s=e[0];switch("-"===s&&(s=e[1]),s>="0"&&s<="9"&&(s="#"),s){case"'":case'"':o.value=e.slice(1,-1),o.literal=!0;break;case"#":o.value=Number(e),o.literal=!0}return o.literal||(o.rootProperty=he(e),o.structured=ce(e),o.structured&&(o.wildcard=".*"==e.slice(-2),o.wildcard&&(o.name=e.slice(0,-2)))),o}function Ao(t,e,o){let s=fe(t,o);return void 0===s&&(s=e[o]),s}function ko(t,e,o,s){const i={indexSplices:s};Wt&&!t._overrideLegacyUndefined&&(e.splices=i),t.notifyPath(o+".splices",i),t.notifyPath(o+".length",e.length),Wt&&!t._overrideLegacyUndefined&&(i.indexSplices=[])}function _o(t,e,o,s,i,r){ko(t,e,o,[{index:s,addedCount:i,removed:r,object:e,type:"splice"}])}const Co=Jt((t=>{const e=Ge(Me(t));return class extends e{constructor(){super(),this.__isPropertyEffectsClient=!0}get PROPERTY_EFFECT_TYPES(){return Ze}_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(So.length){let t=So[So.length-1];t._enqueueClient(this),this.__dataHost=t}}_initializeProtoProperties(t){this.__data=Object.create(t),this.__dataPending=Object.create(t),this.__dataOld={}}_initializeInstanceProperties(t){let e=this[Ze.READ_ONLY];for(let o in t)e&&e[o]||(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[o]=this.__dataPending[o]=t[o])}_addPropertyEffect(t,e,o){this._createPropertyAccessor(t,e==Ze.READ_ONLY);let s=Ke(this,e,!0)[t];s||(s=this[e][t]=[]),s.push(o)}_removePropertyEffect(t,e,o){let s=Ke(this,e,!0)[t],i=s.indexOf(o);i>=0&&s.splice(i,1)}_hasPropertyEffect(t,e){let o=this[e];return Boolean(o&&o[t])}_hasReadOnlyEffect(t){return this._hasPropertyEffect(t,Ze.READ_ONLY)}_hasNotifyEffect(t){return this._hasPropertyEffect(t,Ze.NOTIFY)}_hasReflectEffect(t){return this._hasPropertyEffect(t,Ze.REFLECT)}_hasComputedEffect(t){return this._hasPropertyEffect(t,Ze.COMPUTE)}_setPendingPropertyOrPath(t,e,o,s){if(s||he(Array.isArray(t)?t[0]:t)!==t){if(!s){let o=fe(this,t);if(!(t=ve(this,t,e))||!super._shouldPropertyChange(t,e,o))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(t,e,o))return function(t,e,o){let s=t.__dataLinkedPaths;if(s){let i;for(let r in s){let n=s[r];ue(r,e)?(i=de(r,n,e),t._setPendingPropertyOrPath(i,o,!0,!0)):ue(n,e)&&(i=de(n,r,e),t._setPendingPropertyOrPath(i,o,!0,!0))}}}(this,t,e),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[t])return this._setPendingProperty(t,e,o);this[t]=e}return!1}_setUnmanagedPropertyToNode(t,e,o){o===t[e]&&"object"!=typeof o||("className"===e&&(t=ae(t)),t[e]=o)}_setPendingProperty(t,e,o){let s=this.__dataHasPaths&&ce(t);return!!this._shouldPropertyChange(t,e,(s?this.__dataTemp:this.__data)[t])&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),t in this.__dataOld||(this.__dataOld[t]=this.__data[t]),s?this.__dataTemp[t]=e:this.__data[t]=e,this.__dataPending[t]=e,(s||this[Ze.NOTIFY]&&this[Ze.NOTIFY][t])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[t]=o),!0)}_setProperty(t,e){this._setPendingProperty(t,e,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(t){this.__dataPendingClients=this.__dataPendingClients||[],t!==this&&this.__dataPendingClients.push(t)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let t=this.__dataPendingClients;if(t){this.__dataPendingClients=null;for(let e=0;e<t.length;e++){let o=t[e];o.__dataEnabled?o.__dataPending&&o._flushProperties():o._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(t,e){for(let o in t)!e&&this[Ze.READ_ONLY]&&this[Ze.READ_ONLY][o]||this._setPendingPropertyOrPath(o,t[o],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(t,e,o){let s,i=this.__dataHasPaths;this.__dataHasPaths=!1,function(t,e,o,s){let i=t[Ze.COMPUTE];if(i)if(Lt){qe++;const r=function(t){let e=t.constructor.__orderedComputedDeps;if(!e){e=new Map;const o=t[Ze.COMPUTE];let s,{counts:i,ready:r,total:n}=function(t){const e=t[Je],o={},s=t[Ze.COMPUTE],i=[];let r=0;for(let t in e){const s=e[t];r+=o[t]=s.args.filter((t=>!t.literal)).length+(s.dynamicFn?1:0)}for(let t in s)e[t]||i.push(t);return{counts:o,ready:i,total:r}}(t);for(;s=r.shift();){e.set(s,e.size);const t=o[s];t&&t.forEach((t=>{const e=t.info.methodInfo;--n,0==--i[e]&&r.push(e)}))}0!==n&&console.warn(`Computed graph for ${t.localName} incomplete; circular?`),t.constructor.__orderedComputedDeps=e}return e}(t),n=[];for(let t in e)ro(t,i,n,r,s);let l;for(;l=n.shift();)no(t,"",e,0,l)&&ro(l.methodInfo,i,n,r,s);Object.assign(o,t.__dataOld),Object.assign(e,t.__dataPending),t.__dataPending=null}else{let r=e;for(;Ve(t,i,r,o,s);)Object.assign(o,t.__dataOld),Object.assign(e,t.__dataPending),r=t.__dataPending,t.__dataPending=null}}(this,e,o,i),s=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(e,o,i),this._flushClients(),Ve(this,this[Ze.REFLECT],e,o,i),Ve(this,this[Ze.OBSERVE],e,o,i),s&&function(t,e,o,s,i){let r,n,l=t[Ze.NOTIFY],a=qe++;for(let n in e)e[n]&&(l&&Qe(t,l,a,n,o,s,i)||i&&to(t,n,o))&&(r=!0);r&&(n=t.__dataHost)&&n._invalidateProperties&&n._invalidateProperties()}(this,s,e,o,i),1==this.__dataCounter&&(this.__dataTemp={})}_propagatePropertyChanges(t,e,o){this[Ze.PROPAGATE]&&Ve(this,this[Ze.PROPAGATE],t,e,o),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,t,e,o)}_runEffectsForTemplate(t,e,o,s){const i=(e,s)=>{Ve(this,t.propertyEffects,e,o,s,t.nodeList);for(let i=t.firstChild;i;i=i.nextSibling)this._runEffectsForTemplate(i,e,o,s)};t.runEffects?t.runEffects(i,e,s):i(e,s)}linkPaths(t,e){t=me(t),e=me(e),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[t]=e}unlinkPaths(t){t=me(t),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[t]}notifySplices(t,e){let o={path:""};ko(this,fe(this,t,o),o.path,e)}get(t,e){return fe(e||this,t)}set(t,e,o){o?ve(o,t,e):this[Ze.READ_ONLY]&&this[Ze.READ_ONLY][t]||this._setPendingPropertyOrPath(t,e,!0)&&this._invalidateProperties()}push(t,...e){let o={path:""},s=fe(this,t,o),i=s.length,r=s.push(...e);return e.length&&_o(this,s,o.path,i,e.length,[]),r}pop(t){let e={path:""},o=fe(this,t,e),s=Boolean(o.length),i=o.pop();return s&&_o(this,o,e.path,o.length,0,[i]),i}splice(t,e,o,...s){let i,r={path:""},n=fe(this,t,r);return e<0?e=n.length-Math.floor(-e):e&&(e=Math.floor(e)),i=2===arguments.length?n.splice(e):n.splice(e,o,...s),(s.length||i.length)&&_o(this,n,r.path,e,s.length,i),i}shift(t){let e={path:""},o=fe(this,t,e),s=Boolean(o.length),i=o.shift();return s&&_o(this,o,e.path,0,0,[i]),i}unshift(t,...e){let o={path:""},s=fe(this,t,o),i=s.unshift(...e);return e.length&&_o(this,s,o.path,0,e.length,[]),i}notifyPath(t,e){let o;if(1==arguments.length){let s={path:""};e=fe(this,t,s),o=s.path}else o=Array.isArray(t)?me(t):t;this._setPendingPropertyOrPath(o,e,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(t,e){var o;this._addPropertyEffect(t,Ze.READ_ONLY),e&&(this["_set"+(o=t,o[0].toUpperCase()+o.substring(1))]=function(e){this._setProperty(t,e)})}_createPropertyObserver(t,e,o){let s={property:t,method:e,dynamicFn:Boolean(o)};this._addPropertyEffect(t,Ze.OBSERVE,{fn:$e,info:s,trigger:{name:t}}),o&&this._addPropertyEffect(e,Ze.OBSERVE,{fn:$e,info:s,trigger:{name:e}})}_createMethodObserver(t,e){let o=wo(t);if(!o)throw new Error("Malformed observer expression '"+t+"'");mo(this,o,Ze.OBSERVE,po,null,e)}_createNotifyingProperty(t){this._addPropertyEffect(t,Ze.NOTIFY,{fn:oo,info:{eventName:xe(t)+"-changed",property:t}})}_createReflectedProperty(t){let e=this.constructor.attributeNameForProperty(t);"-"===e[0]?console.warn("Property "+t+" cannot be reflected to attribute "+e+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(t,Ze.REFLECT,{fn:so,info:{attrName:e}})}_createComputedProperty(t,e,o){let s=wo(e);if(!s)throw new Error("Malformed computed expression '"+e+"'");const i=mo(this,s,Ze.COMPUTE,no,t,o);Ke(this,Je)[t]=i}_marshalArgs(t,e,o){const s=this.__data,i=[];for(let r=0,n=t.length;r<n;r++){let{name:n,structured:l,wildcard:a,value:c,literal:h}=t[r];if(!h)if(a){const t=ue(n,e),i=Ao(s,o,t?e:n);c={path:t?e:n,value:i,base:t?fe(s,n):i}}else c=l?Ao(s,o,n):s[n];if(Wt&&!this._overrideLegacyUndefined&&void 0===c&&t.length>1)return Ye;i[r]=c}return i}static addPropertyEffect(t,e,o){this.prototype._addPropertyEffect(t,e,o)}static createPropertyObserver(t,e,o){this.prototype._createPropertyObserver(t,e,o)}static createMethodObserver(t,e){this.prototype._createMethodObserver(t,e)}static createNotifyingProperty(t){this.prototype._createNotifyingProperty(t)}static createReadOnlyProperty(t,e){this.prototype._createReadOnlyProperty(t,e)}static createReflectedProperty(t){this.prototype._createReflectedProperty(t)}static createComputedProperty(t,e,o){this.prototype._createComputedProperty(t,e,o)}static bindTemplate(t){return this.prototype._bindTemplate(t)}_bindTemplate(t,e){let o=this.constructor._parseTemplate(t),s=this.__preBoundTemplateInfo==o;if(!s)for(let t in o.propertyEffects)this._createPropertyAccessor(t);if(e)if(o=Object.create(o),o.wasPreBound=s,this.__templateInfo){const e=t._parentTemplateInfo||this.__templateInfo,s=e.lastChild;o.parent=e,e.lastChild=o,o.previousSibling=s,s?s.nextSibling=o:e.firstChild=o}else this.__templateInfo=o;else this.__preBoundTemplateInfo=o;return o}static _addTemplatePropertyEffect(t,e,o){(t.hostProps=t.hostProps||{})[e]=!0;let s=t.propertyEffects=t.propertyEffects||{};(s[e]=s[e]||[]).push(o)}_stampTemplate(t,e){e=e||this._bindTemplate(t,!0),So.push(this);let o=super._stampTemplate(t,e);if(So.pop(),e.nodeList=o.nodeList,!e.wasPreBound){let t=e.childNodes=[];for(let e=o.firstChild;e;e=e.nextSibling)t.push(e)}return o.templateInfo=e,function(t,e){let{nodeList:o,nodeInfoList:s}=e;if(s.length)for(let e=0;e<s.length;e++){let i=o[e],r=s[e].bindings;if(r)for(let e=0;e<r.length;e++){let o=r[e];ho(i,o),uo(i,t,o)}i.__dataHost=t}}(this,e),this.__dataClientsReady&&(this._runEffectsForTemplate(e,this.__data,null,!1),this._flushClients()),o}_removeBoundDom(t){const e=t.templateInfo,{previousSibling:o,nextSibling:s,parent:i}=e;o?o.nextSibling=s:i&&(i.firstChild=s),s?s.previousSibling=o:i&&(i.lastChild=o),e.nextSibling=e.previousSibling=null;let r=e.childNodes;for(let t=0;t<r.length;t++){let e=r[t];ae(ae(e).parentNode).removeChild(e)}}static _parseTemplateNode(t,o,s){let i=e._parseTemplateNode.call(this,t,o,s);if(t.nodeType===Node.TEXT_NODE){let e=this._parseBindings(t.textContent,o);e&&(t.textContent=yo(e)||" ",lo(this,o,s,"text","textContent",e),i=!0)}return i}static _parseTemplateNodeAttribute(t,o,s,i,r){let n=this._parseBindings(r,o);if(n){let e=i,r="property";He.test(i)?r="attribute":"$"==i[i.length-1]&&(i=i.slice(0,-1),r="attribute");let l=yo(n);return l&&"attribute"==r&&("class"==i&&t.hasAttribute("class")&&(l+=" "+t.getAttribute(i)),t.setAttribute(i,l)),"attribute"==r&&"disable-upgrade$"==e&&t.setAttribute(i,""),"input"===t.localName&&"value"===e&&t.setAttribute(e,""),t.removeAttribute(e),"property"===r&&(i=we(i)),lo(this,o,s,r,i,n,l),!0}return e._parseTemplateNodeAttribute.call(this,t,o,s,i,r)}static _parseTemplateNestedTemplate(t,o,s){let i=e._parseTemplateNestedTemplate.call(this,t,o,s);const r=t.parentNode,n=s.templateInfo,l="dom-if"===r.localName;Gt&&(l||"dom-repeat"===r.localName)&&(r.removeChild(t),(s=s.parentInfo).templateInfo=n,s.noted=!0,i=!1);let a=n.hostProps;if(qt&&l)a&&(o.hostProps=Object.assign(o.hostProps||{},a),Gt||(s.parentInfo.noted=!0));else{let t="{";for(let e in a)lo(this,o,s,"property","_host_"+e,[{mode:t,source:e,dependencies:[e],hostProp:!0}])}return i}static _parseBindings(t,e){let o,s=[],i=0;for(;null!==(o=go.exec(t));){o.index>i&&s.push({literal:t.slice(i,o.index)});let r=o[1][0],n=Boolean(o[2]),l=o[3].trim(),a=!1,c="",h=-1;"{"==r&&(h=l.indexOf("::"))>0&&(c=l.substring(h+2),l=l.substring(0,h),a=!0);let u=wo(l),d=[];if(u){let{args:t,methodName:o}=u;for(let e=0;e<t.length;e++){let o=t[e];o.literal||d.push(o)}let s=e.dynamicFns;(s&&s[o]||u.static)&&(d.push(o),u.dynamicFn=!0)}else d.push(l);s.push({source:l,mode:r,negate:n,customEvent:a,signature:u,dependencies:d,event:c}),i=go.lastIndex}if(i&&i<t.length){let e=t.substring(i);e&&s.push({literal:e})}return s.length?s:null}static _evaluateBinding(t,e,o,s,i,r){let n;return n=e.signature?po(t,o,s,0,e.signature):o!=e.source?fe(t,e.source):r&&ce(o)?fe(t,o):t.__data[o],e.negate&&(n=!n),n}}})),So=[],zo=Jt((t=>{const e=Ne(t);function o(t){const e=Object.getPrototypeOf(t);return e.prototype instanceof i?e:null}function s(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",t))){let e=null;if(t.hasOwnProperty(JSCompiler_renameProperty("properties",t))){const o=t.properties;o&&(e=
679
- /**
680
- @license
681
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
682
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
683
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
684
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
685
- Code distributed by Google as part of the polymer project is also
686
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
687
- */
688
- function(t){const e={};for(let o in t){const s=t[o];e[o]="function"==typeof s?{type:s}:s}return e}(o))}t.__ownProperties=e}return t.__ownProperties}class i extends e{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){const t=this._properties;this.__observedAttributes=t?Object.keys(t).map((t=>this.prototype._addPropertyToAttributeMap(t))):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const t=o(this);t&&t.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const t=s(this);t&&this.createProperties(t)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const t=o(this);this.__properties=Object.assign({},t&&t._properties,s(this))}return this.__properties}static typeForProperty(t){const e=this._properties[t];return e&&e.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return i})),To=window.ShadyCSS&&window.ShadyCSS.cssBuild,No=Jt((t=>{const e=zo(Co(t));function o(t,e,o,s){o.computed&&(o.readOnly=!0),o.computed&&(t._hasReadOnlyEffect(e)?console.warn(`Cannot redefine computed property '${e}'.`):t._createComputedProperty(e,o.computed,s)),o.readOnly&&!t._hasReadOnlyEffect(e)?t._createReadOnlyProperty(e,!o.computed):!1===o.readOnly&&t._hasReadOnlyEffect(e)&&console.warn(`Cannot make readOnly property '${e}' non-readOnly.`),o.reflectToAttribute&&!t._hasReflectEffect(e)?t._createReflectedProperty(e):!1===o.reflectToAttribute&&t._hasReflectEffect(e)&&console.warn(`Cannot make reflected property '${e}' non-reflected.`),o.notify&&!t._hasNotifyEffect(e)?t._createNotifyingProperty(e):!1===o.notify&&t._hasNotifyEffect(e)&&console.warn(`Cannot make notify property '${e}' non-notify.`),o.observer&&t._createPropertyObserver(e,o.observer,s[o.observer]),t._addPropertyToAttributeMap(e)}return class extends e{static get polymerElementVersion(){return"3.5.2"}static _finalizeClass(){e._finalizeClass.call(this);const t=((o=this).hasOwnProperty(JSCompiler_renameProperty("__ownObservers",o))||(o.__ownObservers=o.hasOwnProperty(JSCompiler_renameProperty("observers",o))?o.observers:null),o.__ownObservers);var o;t&&this.createObservers(t,this._properties),this._prepareTemplate()}static _prepareTemplate(){let t=this.template;t&&("string"==typeof t?(console.error("template getter must return HTMLTemplateElement"),t=null):Ut||(t=t.cloneNode(!0))),this.prototype._template=t}static createProperties(t){for(let e in t)o(this.prototype,e,t[e],t)}static createObservers(t,e){const o=this.prototype;for(let s=0;s<t.length;s++)o._createMethodObserver(t[s],e)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let t=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;"function"==typeof t&&(t=t()),this._template=void 0!==t?t:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&function(t){let e=null;if(t&&(!Dt||jt)&&(e=Xt.import(t,"template"),Dt&&!e))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${t}`);return e}(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(t){this._template=t}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const t=this.importMeta;if(t)this._importPath=Bt(t.url);else{const t=Xt.import(this.is);this._importPath=t&&t.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=Et,this.importPath=this.constructor.importPath;let t=function(t){if(!t.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",t))){t.__propertyDefaults=null;let e=t._properties;for(let o in e){let s=e[o];"value"in s&&(t.__propertyDefaults=t.__propertyDefaults||{},t.__propertyDefaults[o]=s)}}return t.__propertyDefaults}(this.constructor);if(t)for(let e in t){let o=t[e];if(this._canApplyPropertyDefault(e)){let t="function"==typeof o.value?o.value.call(this):o.value;this._hasAccessor(e)?this._setPendingProperty(e,t,!0):this[e]=t}}}_canApplyPropertyDefault(t){return!this.hasOwnProperty(t)}static _processStyleText(t,e){return Pt(t,e)}static _finalizeTemplate(t){const e=this.prototype._template;if(e&&!e.__polymerFinalized){e.__polymerFinalized=!0;const o=this.importPath;(function(t,e,o,s){if(!To){const i=e.content.querySelectorAll("style"),r=ne(e),n=function(t){let e=oe(t);return e?le(e):[]}(o),l=e.content.firstElementChild;for(let o=0;o<n.length;o++){let i=n[o];i.textContent=t._processStyleText(i.textContent,s),e.content.insertBefore(i,l)}let a=0;for(let e=0;e<r.length;e++){let o=r[e],n=i[a];n!==o?(o=o.cloneNode(!0),n.parentNode.insertBefore(o,n)):a++,o.textContent=t._processStyleText(o.textContent,s)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(e,o),Yt&&To&&Mt){const o=e.content.querySelectorAll("style");if(o){let e="";Array.from(o).forEach((t=>{e+=t.textContent,t.parentNode.removeChild(t)})),t._styleSheet=new CSSStyleSheet,t._styleSheet.replaceSync(e)}}})(this,e,t,o?It(o):""),this.prototype._bindTemplate(e)}}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(t){const e=ae(this);if(e.attachShadow)return t?(e.shadowRoot||(e.attachShadow({mode:"open",shadyUpgradeFragment:t}),e.shadowRoot.appendChild(t),this.constructor._styleSheet&&(e.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Rt&&window.ShadyDOM&&window.ShadyDOM.flushInitial(e.shadowRoot),e.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(t){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,t)}resolveUrl(t,e){return!e&&this.importPath&&(e=It(this.importPath)),It(t,e)}static _parseTemplateContent(t,o,s){return o.dynamicFns=o.dynamicFns||this._properties,e._parseTemplateContent.call(this,t,o,s)}static _addTemplatePropertyEffect(t,o,s){return!Ft||o in this._properties||s.info.part.signature&&s.info.part.signature.static||s.info.part.hostProp||t.nestedTemplate||console.warn(`Property '${o}' used in template but not declared in 'properties'; attribute will not be observed.`),e._addTemplatePropertyEffect.call(this,t,o,s)}}})),Io=window.trustedTypes&&trustedTypes.createPolicy("polymer-html-literal",{createHTML:t=>t});class Po{constructor(t,e){Eo(t,e);const o=e.reduce(((e,o,s)=>e+Bo(o)+t[s+1]),t[0]);this.value=o.toString()}toString(){return this.value}}function Bo(t){if(t instanceof Po)return t.value;throw new Error(`non-literal value passed to Polymer's htmlLiteral function: ${t}`)}const Mo=function(t,...e){Eo(t,e);const o=document.createElement("template");let s=e.reduce(((e,o,s)=>e+function(t){if(t instanceof HTMLTemplateElement)return t.innerHTML;if(t instanceof Po)return Bo(t);throw new Error(`non-template value passed to Polymer's html function: ${t}`)}(o)+t[s+1]),t[0]);return Io&&(s=Io.createHTML(s)),o.innerHTML=s,o},Eo=(t,e)=>{if(!Array.isArray(t)||!Array.isArray(t.raw)||e.length!==t.length-1)throw new TypeError("Invalid call to the html template tag")},Oo=No(HTMLElement),Do=[];function jo(t,e,o=t.getAttribute("dir")){e?t.setAttribute("dir",e):null!=o&&t.removeAttribute("dir")}function Uo(){return document.documentElement.getAttribute("dir")}new MutationObserver((function(){const t=Uo();Do.forEach((e=>{jo(e,t)}))})).observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const Fo=t=>class extends t{static get properties(){return{dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:t=>t||"",toAttribute:t=>""===t?null:t}}}}get __isRTL(){return"rtl"===this.getAttribute("dir")}connectedCallback(){super.connectedCallback(),this.hasAttribute("dir")&&!this.__restoreSubscription||(this.__subscribe(),jo(this,Uo(),null))}attributeChangedCallback(t,e,o){if(super.attributeChangedCallback(t,e,o),"dir"!==t)return;const s=Uo(),i=o===s&&-1===Do.indexOf(this),r=!o&&e&&-1===Do.indexOf(this),n=o!==s&&e===s;i||r?(this.__subscribe(),jo(this,s,o)):n&&this.__unsubscribe()}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=Do.includes(this),this.__unsubscribe()}_valueToNodeAttribute(t,e,o){("dir"!==o||""!==e||t.hasAttribute("dir"))&&super._valueToNodeAttribute(t,e,o)}_attributeToProperty(t,e,o){"dir"!==t||e?super._attributeToProperty(t,e,o):this.dir=""}__subscribe(){Do.includes(this)||Do.push(this)}__unsubscribe(){Do.includes(this)&&Do.splice(Do.indexOf(this),1)}}
689
- /**
690
- * @license
691
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
692
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
693
- */;class Ro extends(At(Fo(Oo))){static get is(){return"vaadin-input-container"}static get template(){return Mo`
694
- <style>
695
- :host {
696
- display: flex;
697
- align-items: center;
698
- flex: 0 1 auto;
699
- border-radius:
700
- /* See https://developer.mozilla.org/en-US/docs/Web/CSS/border-radius */
701
- var(--vaadin-input-field-top-start-radius, var(--__border-radius))
702
- var(--vaadin-input-field-top-end-radius, var(--__border-radius))
703
- var(--vaadin-input-field-bottom-end-radius, var(--__border-radius))
704
- var(--vaadin-input-field-bottom-start-radius, var(--__border-radius));
705
- --_border-radius: var(--vaadin-input-field-border-radius, 0px);
706
- --_input-border-width: var(--vaadin-input-field-border-width, 0);
707
- --_input-border-color: var(--vaadin-input-field-border-color, transparent);
708
- box-shadow: inset 0 0 0 var(--_input-border-width, 0) var(--_input-border-color);
709
- }
710
-
711
- :host([dir='rtl']) {
712
- border-radius:
713
- /* Don't use logical props, see https://github.com/vaadin/vaadin-time-picker/issues/145 */
714
- var(--vaadin-input-field-top-end-radius, var(--_border-radius))
715
- var(--vaadin-input-field-top-start-radius, var(--_border-radius))
716
- var(--vaadin-input-field-bottom-start-radius, var(--_border-radius))
717
- var(--vaadin-input-field-bottom-end-radius, var(--_border-radius));
718
- }
719
-
720
- :host([hidden]) {
721
- display: none !important;
722
- }
723
-
724
- /* Reset the native input styles */
725
- ::slotted(input) {
726
- -webkit-appearance: none;
727
- -moz-appearance: none;
728
- flex: auto;
729
- white-space: nowrap;
730
- overflow: hidden;
731
- width: 100%;
732
- height: 100%;
733
- outline: none;
734
- margin: 0;
735
- padding: 0;
736
- border: 0;
737
- border-radius: 0;
738
- min-width: 0;
739
- font: inherit;
740
- line-height: normal;
741
- color: inherit;
742
- background-color: transparent;
743
- /* Disable default invalid style in Firefox */
744
- box-shadow: none;
745
- }
746
-
747
- ::slotted(*) {
748
- flex: none;
749
- }
750
-
751
- ::slotted(:is(input, textarea))::placeholder {
752
- /* Use ::slotted(input:placeholder-shown) in themes to style the placeholder. */
753
- /* because ::slotted(...)::placeholder does not work in Safari. */
754
- font: inherit;
755
- color: inherit;
756
- /* Override default opacity in Firefox */
757
- opacity: 1;
758
- }
759
- </style>
760
- <slot name="prefix"></slot>
761
- <slot></slot>
762
- <slot name="suffix"></slot>
763
- `}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",(t=>{t.target===this&&t.preventDefault()})),this.addEventListener("click",(t=>{t.target===this&&this.shadowRoot.querySelector("slot:not([name])").assignedNodes({flatten:!0}).forEach((t=>t.focus&&t.focus()))}))}}a(Ro);
764
- /**
765
- * @license
766
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
767
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
768
- */
769
- class Wo extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.5"}}a(Wo);const Lo=(t,...e)=>{kt(`lumo-${t}`,e)};
770
- /**
771
- * @license
772
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
773
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
774
- */Lo("sizing-props",f`
775
- :host {
776
- --lumo-size-xs: 1.625rem;
777
- --lumo-size-s: 1.875rem;
778
- --lumo-size-m: 2.25rem;
779
- --lumo-size-l: 2.75rem;
780
- --lumo-size-xl: 3.5rem;
781
-
782
- /* Icons */
783
- --lumo-icon-size-s: 1.25em;
784
- --lumo-icon-size-m: 1.5em;
785
- --lumo-icon-size-l: 2.25em;
786
- /* For backwards compatibility */
787
- --lumo-icon-size: var(--lumo-icon-size-m);
788
- }
789
- `),f`
790
- html {
791
- --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
792
- --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
793
- --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
794
- }
795
- `,Lo("style-props",f`
796
- :host {
797
- /* Border radius */
798
- --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
799
- --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
800
- --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
801
-
802
- /* Shadow */
803
- --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
804
- --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
805
- --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
806
- --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
807
- --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
808
-
809
- /* Clickable element cursor */
810
- --lumo-clickable-cursor: default;
811
- }
812
- `),Lo("font-icons",f`
813
- @font-face {
814
- font-family: 'lumo-icons';
815
- src: url(data:application/font-woff;charset=utf-8;base64,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)
816
- format('woff');
817
- font-weight: normal;
818
- font-style: normal;
819
- }
820
-
821
- html {
822
- --lumo-icons-align-center: '\\ea01';
823
- --lumo-icons-align-left: '\\ea02';
824
- --lumo-icons-align-right: '\\ea03';
825
- --lumo-icons-angle-down: '\\ea04';
826
- --lumo-icons-angle-left: '\\ea05';
827
- --lumo-icons-angle-right: '\\ea06';
828
- --lumo-icons-angle-up: '\\ea07';
829
- --lumo-icons-arrow-down: '\\ea08';
830
- --lumo-icons-arrow-left: '\\ea09';
831
- --lumo-icons-arrow-right: '\\ea0a';
832
- --lumo-icons-arrow-up: '\\ea0b';
833
- --lumo-icons-bar-chart: '\\ea0c';
834
- --lumo-icons-bell: '\\ea0d';
835
- --lumo-icons-calendar: '\\ea0e';
836
- --lumo-icons-checkmark: '\\ea0f';
837
- --lumo-icons-chevron-down: '\\ea10';
838
- --lumo-icons-chevron-left: '\\ea11';
839
- --lumo-icons-chevron-right: '\\ea12';
840
- --lumo-icons-chevron-up: '\\ea13';
841
- --lumo-icons-clock: '\\ea14';
842
- --lumo-icons-cog: '\\ea15';
843
- --lumo-icons-cross: '\\ea16';
844
- --lumo-icons-download: '\\ea17';
845
- --lumo-icons-dropdown: '\\ea18';
846
- --lumo-icons-edit: '\\ea19';
847
- --lumo-icons-error: '\\ea1a';
848
- --lumo-icons-eye: '\\ea1b';
849
- --lumo-icons-eye-disabled: '\\ea1c';
850
- --lumo-icons-menu: '\\ea1d';
851
- --lumo-icons-minus: '\\ea1e';
852
- --lumo-icons-ordered-list: '\\ea1f';
853
- --lumo-icons-phone: '\\ea20';
854
- --lumo-icons-photo: '\\ea21';
855
- --lumo-icons-play: '\\ea22';
856
- --lumo-icons-plus: '\\ea23';
857
- --lumo-icons-redo: '\\ea24';
858
- --lumo-icons-reload: '\\ea25';
859
- --lumo-icons-search: '\\ea26';
860
- --lumo-icons-undo: '\\ea27';
861
- --lumo-icons-unordered-list: '\\ea28';
862
- --lumo-icons-upload: '\\ea29';
863
- --lumo-icons-user: '\\ea2a';
864
- }
865
- `);
866
- /**
867
- * @license
868
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
869
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
870
- */
871
- class Go extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}a(Go);const qo=(t,...e)=>{kt(`lumo-${t}`,e)};
872
- /**
873
- * @license
874
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
875
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
876
- */qo("font-icons",f`
877
- @font-face {
878
- font-family: 'lumo-icons';
879
- src: url(data:application/font-woff;charset=utf-8;base64,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)
880
- format('woff');
881
- font-weight: normal;
882
- font-style: normal;
883
- }
884
-
885
- html {
886
- --lumo-icons-align-center: '\\ea01';
887
- --lumo-icons-align-left: '\\ea02';
888
- --lumo-icons-align-right: '\\ea03';
889
- --lumo-icons-angle-down: '\\ea04';
890
- --lumo-icons-angle-left: '\\ea05';
891
- --lumo-icons-angle-right: '\\ea06';
892
- --lumo-icons-angle-up: '\\ea07';
893
- --lumo-icons-arrow-down: '\\ea08';
894
- --lumo-icons-arrow-left: '\\ea09';
895
- --lumo-icons-arrow-right: '\\ea0a';
896
- --lumo-icons-arrow-up: '\\ea0b';
897
- --lumo-icons-bar-chart: '\\ea0c';
898
- --lumo-icons-bell: '\\ea0d';
899
- --lumo-icons-calendar: '\\ea0e';
900
- --lumo-icons-checkmark: '\\ea0f';
901
- --lumo-icons-chevron-down: '\\ea10';
902
- --lumo-icons-chevron-left: '\\ea11';
903
- --lumo-icons-chevron-right: '\\ea12';
904
- --lumo-icons-chevron-up: '\\ea13';
905
- --lumo-icons-clock: '\\ea14';
906
- --lumo-icons-cog: '\\ea15';
907
- --lumo-icons-cross: '\\ea16';
908
- --lumo-icons-download: '\\ea17';
909
- --lumo-icons-dropdown: '\\ea18';
910
- --lumo-icons-edit: '\\ea19';
911
- --lumo-icons-error: '\\ea1a';
912
- --lumo-icons-eye: '\\ea1b';
913
- --lumo-icons-eye-disabled: '\\ea1c';
914
- --lumo-icons-menu: '\\ea1d';
915
- --lumo-icons-minus: '\\ea1e';
916
- --lumo-icons-ordered-list: '\\ea1f';
917
- --lumo-icons-phone: '\\ea20';
918
- --lumo-icons-photo: '\\ea21';
919
- --lumo-icons-play: '\\ea22';
920
- --lumo-icons-plus: '\\ea23';
921
- --lumo-icons-redo: '\\ea24';
922
- --lumo-icons-reload: '\\ea25';
923
- --lumo-icons-search: '\\ea26';
924
- --lumo-icons-undo: '\\ea27';
925
- --lumo-icons-unordered-list: '\\ea28';
926
- --lumo-icons-upload: '\\ea29';
927
- --lumo-icons-user: '\\ea2a';
928
- }
929
- `),qo("sizing-props",f`
930
- :host {
931
- --lumo-size-xs: 1.625rem;
932
- --lumo-size-s: 1.875rem;
933
- --lumo-size-m: 2.25rem;
934
- --lumo-size-l: 2.75rem;
935
- --lumo-size-xl: 3.5rem;
936
-
937
- /* Icons */
938
- --lumo-icon-size-s: 1.25em;
939
- --lumo-icon-size-m: 1.5em;
940
- --lumo-icon-size-l: 2.25em;
941
- /* For backwards compatibility */
942
- --lumo-icon-size: var(--lumo-icon-size-m);
943
- }
944
- `),qo("spacing-props",f`
945
- :host {
946
- /* Square */
947
- --lumo-space-xs: 0.25rem;
948
- --lumo-space-s: 0.5rem;
949
- --lumo-space-m: 1rem;
950
- --lumo-space-l: 1.5rem;
951
- --lumo-space-xl: 2.5rem;
952
-
953
- /* Wide */
954
- --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
955
- --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
956
- --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
957
- --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
958
- --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
959
-
960
- /* Tall */
961
- --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
962
- --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
963
- --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
964
- --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
965
- --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
966
- }
967
- `),f`
968
- html {
969
- --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
970
- --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
971
- --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
972
- }
973
- `,qo("style-props",f`
974
- :host {
975
- /* Border radius */
976
- --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
977
- --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
978
- --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
979
-
980
- /* Shadow */
981
- --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
982
- --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
983
- --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
984
- --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
985
- --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
986
-
987
- /* Clickable element cursor */
988
- --lumo-clickable-cursor: default;
989
- }
990
- `);
991
- /**
992
- * @license
993
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
994
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
995
- */
996
- const Yo=f`
997
- :host {
998
- /* prettier-ignore */
999
- --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
1000
-
1001
- /* Font sizes */
1002
- --lumo-font-size-xxs: 0.75rem;
1003
- --lumo-font-size-xs: 0.8125rem;
1004
- --lumo-font-size-s: 0.875rem;
1005
- --lumo-font-size-m: 1rem;
1006
- --lumo-font-size-l: 1.125rem;
1007
- --lumo-font-size-xl: 1.375rem;
1008
- --lumo-font-size-xxl: 1.75rem;
1009
- --lumo-font-size-xxxl: 2.5rem;
1010
-
1011
- /* Line heights */
1012
- --lumo-line-height-xs: 1.25;
1013
- --lumo-line-height-s: 1.375;
1014
- --lumo-line-height-m: 1.625;
1015
- }
1016
- `;bt("",f`
1017
- body,
1018
- :host {
1019
- font-family: var(--lumo-font-family);
1020
- font-size: var(--lumo-font-size-m);
1021
- line-height: var(--lumo-line-height-m);
1022
- -webkit-text-size-adjust: 100%;
1023
- -webkit-font-smoothing: antialiased;
1024
- -moz-osx-font-smoothing: grayscale;
1025
- }
1026
-
1027
- small,
1028
- [theme~='font-size-s'] {
1029
- font-size: var(--lumo-font-size-s);
1030
- line-height: var(--lumo-line-height-s);
1031
- }
1032
-
1033
- [theme~='font-size-xs'] {
1034
- font-size: var(--lumo-font-size-xs);
1035
- line-height: var(--lumo-line-height-xs);
1036
- }
1037
-
1038
- :where(h1, h2, h3, h4, h5, h6) {
1039
- font-weight: 600;
1040
- line-height: var(--lumo-line-height-xs);
1041
- margin-block: 0;
1042
- }
1043
-
1044
- :where(h1) {
1045
- font-size: var(--lumo-font-size-xxxl);
1046
- }
1047
-
1048
- :where(h2) {
1049
- font-size: var(--lumo-font-size-xxl);
1050
- }
1051
-
1052
- :where(h3) {
1053
- font-size: var(--lumo-font-size-xl);
1054
- }
1055
-
1056
- :where(h4) {
1057
- font-size: var(--lumo-font-size-l);
1058
- }
1059
-
1060
- :where(h5) {
1061
- font-size: var(--lumo-font-size-m);
1062
- }
1063
-
1064
- :where(h6) {
1065
- font-size: var(--lumo-font-size-xs);
1066
- text-transform: uppercase;
1067
- letter-spacing: 0.03em;
1068
- }
1069
-
1070
- p,
1071
- blockquote {
1072
- margin-top: 0.5em;
1073
- margin-bottom: 0.75em;
1074
- }
1075
-
1076
- a {
1077
- text-decoration: none;
1078
- }
1079
-
1080
- a:where(:any-link):hover {
1081
- text-decoration: underline;
1082
- }
1083
-
1084
- hr {
1085
- display: block;
1086
- align-self: stretch;
1087
- height: 1px;
1088
- border: 0;
1089
- padding: 0;
1090
- margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
1091
- background-color: var(--lumo-contrast-10pct);
1092
- }
1093
-
1094
- blockquote {
1095
- border-left: 2px solid var(--lumo-contrast-30pct);
1096
- }
1097
-
1098
- b,
1099
- strong {
1100
- font-weight: 600;
1101
- }
1102
-
1103
- /* RTL specific styles */
1104
- blockquote[dir='rtl'] {
1105
- border-left: none;
1106
- border-right: 2px solid var(--lumo-contrast-30pct);
1107
- }
1108
- `,{moduleId:"lumo-typography"}),qo("typography-props",Yo);const Zo=f`
1109
- :host {
1110
- display: flex;
1111
- align-items: center;
1112
- box-sizing: border-box;
1113
- font-family: var(--lumo-font-family);
1114
- font-size: var(--lumo-font-size-m);
1115
- line-height: var(--lumo-line-height-xs);
1116
- padding: 0.5em calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4) 0.5em
1117
- var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
1118
- min-height: var(--lumo-size-m);
1119
- outline: none;
1120
- border-radius: var(--lumo-border-radius-m);
1121
- cursor: var(--lumo-clickable-cursor);
1122
- -webkit-font-smoothing: antialiased;
1123
- -moz-osx-font-smoothing: grayscale;
1124
- -webkit-tap-highlight-color: var(--lumo-primary-color-10pct);
1125
- }
1126
-
1127
- /* Checkmark */
1128
- [part='checkmark']::before {
1129
- display: var(--_lumo-item-selected-icon-display, none);
1130
- content: var(--lumo-icons-checkmark);
1131
- font-family: lumo-icons;
1132
- font-size: var(--lumo-icon-size-m);
1133
- line-height: 1;
1134
- font-weight: normal;
1135
- width: 1em;
1136
- height: 1em;
1137
- margin: calc((1 - var(--lumo-line-height-xs)) * var(--lumo-font-size-m) / 2) 0;
1138
- color: var(--lumo-primary-text-color);
1139
- flex: none;
1140
- opacity: 0;
1141
- transition: transform 0.2s cubic-bezier(0.12, 0.32, 0.54, 2), opacity 0.1s;
1142
- }
1143
-
1144
- :host([selected]) [part='checkmark']::before {
1145
- opacity: 1;
1146
- }
1147
-
1148
- :host([active]:not([selected])) [part='checkmark']::before {
1149
- transform: scale(0.8);
1150
- opacity: 0;
1151
- transition-duration: 0s;
1152
- }
1153
-
1154
- [part='content'] {
1155
- flex: auto;
1156
- }
1157
-
1158
- /* Disabled */
1159
- :host([disabled]) {
1160
- color: var(--lumo-disabled-text-color);
1161
- cursor: default;
1162
- pointer-events: none;
1163
- }
1164
-
1165
- /* TODO a workaround until we have "focus-follows-mouse". After that, use the hover style for focus-ring as well */
1166
- @media (any-hover: hover) {
1167
- :host(:hover:not([disabled])) {
1168
- background-color: var(--lumo-primary-color-10pct);
1169
- }
1170
-
1171
- :host([focus-ring]:not([disabled])) {
1172
- box-shadow: inset 0 0 0 2px var(--lumo-primary-color-50pct);
1173
- }
1174
- }
1175
-
1176
- /* RTL specific styles */
1177
- :host([dir='rtl']) {
1178
- padding-left: calc(var(--lumo-space-l) + var(--lumo-border-radius-m) / 4);
1179
- padding-right: var(--_lumo-list-box-item-padding-left, calc(var(--lumo-border-radius-m) / 4));
1180
- }
1181
-
1182
- /* Slotted icons */
1183
- :host ::slotted(vaadin-icon) {
1184
- width: var(--lumo-icon-size-m);
1185
- height: var(--lumo-icon-size-m);
1186
- }
1187
- `;bt("vaadin-item",Zo,{moduleId:"lumo-item"});
1188
- /**
1189
- * @license
1190
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1191
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1192
- */
1193
- class Jo extends HTMLElement{static get is(){return"vaadin-lumo-styles"}static get version(){return"24.2.9"}}a(Jo);const Ho=(t,...e)=>{kt(`lumo-${t}`,e)};
1194
- /**
1195
- * @license
1196
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1197
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1198
- */Ho("color-props",f`
1199
- :host {
1200
- /* Base (background) */
1201
- --lumo-base-color: #fff;
1202
-
1203
- /* Tint */
1204
- --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
1205
- --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
1206
- --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
1207
- --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
1208
- --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
1209
- --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
1210
- --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
1211
- --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
1212
- --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
1213
- --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
1214
- --lumo-tint: #fff;
1215
-
1216
- /* Shade */
1217
- --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
1218
- --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
1219
- --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
1220
- --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
1221
- --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
1222
- --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
1223
- --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
1224
- --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
1225
- --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
1226
- --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
1227
- --lumo-shade: hsl(214, 35%, 15%);
1228
-
1229
- /* Contrast */
1230
- --lumo-contrast-5pct: var(--lumo-shade-5pct);
1231
- --lumo-contrast-10pct: var(--lumo-shade-10pct);
1232
- --lumo-contrast-20pct: var(--lumo-shade-20pct);
1233
- --lumo-contrast-30pct: var(--lumo-shade-30pct);
1234
- --lumo-contrast-40pct: var(--lumo-shade-40pct);
1235
- --lumo-contrast-50pct: var(--lumo-shade-50pct);
1236
- --lumo-contrast-60pct: var(--lumo-shade-60pct);
1237
- --lumo-contrast-70pct: var(--lumo-shade-70pct);
1238
- --lumo-contrast-80pct: var(--lumo-shade-80pct);
1239
- --lumo-contrast-90pct: var(--lumo-shade-90pct);
1240
- --lumo-contrast: var(--lumo-shade);
1241
-
1242
- /* Text */
1243
- --lumo-header-text-color: var(--lumo-contrast);
1244
- --lumo-body-text-color: var(--lumo-contrast-90pct);
1245
- --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1246
- --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1247
- --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1248
-
1249
- /* Primary */
1250
- --lumo-primary-color: hsl(214, 100%, 48%);
1251
- --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
1252
- --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
1253
- --lumo-primary-text-color: hsl(214, 100%, 43%);
1254
- --lumo-primary-contrast-color: #fff;
1255
-
1256
- /* Error */
1257
- --lumo-error-color: hsl(3, 85%, 48%);
1258
- --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
1259
- --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
1260
- --lumo-error-text-color: hsl(3, 89%, 42%);
1261
- --lumo-error-contrast-color: #fff;
1262
-
1263
- /* Success */
1264
- --lumo-success-color: hsl(145, 72%, 30%);
1265
- --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
1266
- --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
1267
- --lumo-success-text-color: hsl(145, 85%, 25%);
1268
- --lumo-success-contrast-color: #fff;
1269
-
1270
- /* Warning */
1271
- --lumo-warning-color: hsl(48, 100%, 50%);
1272
- --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
1273
- --lumo-warning-text-color: hsl(32, 100%, 30%);
1274
- --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1275
- }
1276
-
1277
- /* forced-colors mode adjustments */
1278
- @media (forced-colors: active) {
1279
- html {
1280
- --lumo-disabled-text-color: GrayText;
1281
- }
1282
- }
1283
- `),bt("",f`
1284
- [theme~='dark'] {
1285
- /* Base (background) */
1286
- --lumo-base-color: hsl(214, 35%, 21%);
1287
-
1288
- /* Tint */
1289
- --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
1290
- --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
1291
- --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
1292
- --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
1293
- --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
1294
- --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
1295
- --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
1296
- --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
1297
- --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
1298
- --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
1299
- --lumo-tint: hsl(214, 100%, 98%);
1300
-
1301
- /* Shade */
1302
- --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
1303
- --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
1304
- --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
1305
- --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
1306
- --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
1307
- --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
1308
- --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
1309
- --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
1310
- --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
1311
- --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
1312
- --lumo-shade: hsl(214, 33%, 13%);
1313
-
1314
- /* Contrast */
1315
- --lumo-contrast-5pct: var(--lumo-tint-5pct);
1316
- --lumo-contrast-10pct: var(--lumo-tint-10pct);
1317
- --lumo-contrast-20pct: var(--lumo-tint-20pct);
1318
- --lumo-contrast-30pct: var(--lumo-tint-30pct);
1319
- --lumo-contrast-40pct: var(--lumo-tint-40pct);
1320
- --lumo-contrast-50pct: var(--lumo-tint-50pct);
1321
- --lumo-contrast-60pct: var(--lumo-tint-60pct);
1322
- --lumo-contrast-70pct: var(--lumo-tint-70pct);
1323
- --lumo-contrast-80pct: var(--lumo-tint-80pct);
1324
- --lumo-contrast-90pct: var(--lumo-tint-90pct);
1325
- --lumo-contrast: var(--lumo-tint);
1326
-
1327
- /* Text */
1328
- --lumo-header-text-color: var(--lumo-contrast);
1329
- --lumo-body-text-color: var(--lumo-contrast-90pct);
1330
- --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1331
- --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1332
- --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1333
-
1334
- /* Primary */
1335
- --lumo-primary-color: hsl(214, 90%, 48%);
1336
- --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
1337
- --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
1338
- --lumo-primary-text-color: hsl(214, 90%, 77%);
1339
- --lumo-primary-contrast-color: #fff;
1340
-
1341
- /* Error */
1342
- --lumo-error-color: hsl(3, 79%, 49%);
1343
- --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
1344
- --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
1345
- --lumo-error-text-color: hsl(3, 100%, 80%);
1346
-
1347
- /* Success */
1348
- --lumo-success-color: hsl(145, 72%, 30%);
1349
- --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
1350
- --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
1351
- --lumo-success-text-color: hsl(145, 85%, 46%);
1352
-
1353
- /* Warning */
1354
- --lumo-warning-color: hsl(43, 100%, 48%);
1355
- --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
1356
- --lumo-warning-text-color: hsl(45, 100%, 60%);
1357
- --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1358
- }
1359
-
1360
- html {
1361
- color: var(--lumo-body-text-color);
1362
- background-color: var(--lumo-base-color);
1363
- color-scheme: light;
1364
- }
1365
-
1366
- [theme~='dark'] {
1367
- color: var(--lumo-body-text-color);
1368
- background-color: var(--lumo-base-color);
1369
- color-scheme: dark;
1370
- }
1371
-
1372
- h1,
1373
- h2,
1374
- h3,
1375
- h4,
1376
- h5,
1377
- h6 {
1378
- color: var(--lumo-header-text-color);
1379
- }
1380
-
1381
- a:where(:any-link) {
1382
- color: var(--lumo-primary-text-color);
1383
- }
1384
-
1385
- a:not(:any-link) {
1386
- color: var(--lumo-disabled-text-color);
1387
- }
1388
-
1389
- blockquote {
1390
- color: var(--lumo-secondary-text-color);
1391
- }
1392
-
1393
- code,
1394
- pre {
1395
- background-color: var(--lumo-contrast-10pct);
1396
- border-radius: var(--lumo-border-radius-m);
1397
- }
1398
- `,{moduleId:"lumo-color"}),Ho("spacing-props",f`
1399
- :host {
1400
- /* Square */
1401
- --lumo-space-xs: 0.25rem;
1402
- --lumo-space-s: 0.5rem;
1403
- --lumo-space-m: 1rem;
1404
- --lumo-space-l: 1.5rem;
1405
- --lumo-space-xl: 2.5rem;
1406
-
1407
- /* Wide */
1408
- --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
1409
- --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
1410
- --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
1411
- --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
1412
- --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
1413
-
1414
- /* Tall */
1415
- --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
1416
- --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
1417
- --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
1418
- --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
1419
- --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
1420
- }
1421
- `),f`
1422
- html {
1423
- --vaadin-checkbox-size: calc(var(--lumo-size-m) / 2);
1424
- --vaadin-radio-button-size: calc(var(--lumo-size-m) / 2);
1425
- --vaadin-input-field-border-radius: var(--lumo-border-radius-m);
1426
- }
1427
- `,Ho("style-props",f`
1428
- :host {
1429
- /* Border radius */
1430
- --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
1431
- --lumo-border-radius-m: var(--lumo-border-radius, 0.25em); /* Button, text field, menu overlay, etc */
1432
- --lumo-border-radius-l: 0.5em; /* Dialog, notification, etc */
1433
-
1434
- /* Shadow */
1435
- --lumo-box-shadow-xs: 0 1px 4px -1px var(--lumo-shade-50pct);
1436
- --lumo-box-shadow-s: 0 2px 4px -1px var(--lumo-shade-20pct), 0 3px 12px -1px var(--lumo-shade-30pct);
1437
- --lumo-box-shadow-m: 0 2px 6px -1px var(--lumo-shade-20pct), 0 8px 24px -4px var(--lumo-shade-40pct);
1438
- --lumo-box-shadow-l: 0 3px 18px -2px var(--lumo-shade-20pct), 0 12px 48px -6px var(--lumo-shade-40pct);
1439
- --lumo-box-shadow-xl: 0 4px 24px -3px var(--lumo-shade-20pct), 0 18px 64px -8px var(--lumo-shade-40pct);
1440
-
1441
- /* Clickable element cursor */
1442
- --lumo-clickable-cursor: default;
1443
- }
1444
- `);const Ko=f`
1445
- :host {
1446
- -webkit-tap-highlight-color: transparent;
1447
- --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
1448
- }
1449
-
1450
- /* Dividers */
1451
- [part='items'] ::slotted(hr) {
1452
- height: 1px;
1453
- border: 0;
1454
- padding: 0;
1455
- margin: var(--lumo-space-s) var(--lumo-border-radius-m);
1456
- background-color: var(--lumo-contrast-10pct);
1457
- }
1458
- `;bt("vaadin-list-box",Ko,{moduleId:"lumo-list-box"}),Lo("color-props",f`
1459
- :host {
1460
- /* Base (background) */
1461
- --lumo-base-color: #fff;
1462
-
1463
- /* Tint */
1464
- --lumo-tint-5pct: hsla(0, 0%, 100%, 0.3);
1465
- --lumo-tint-10pct: hsla(0, 0%, 100%, 0.37);
1466
- --lumo-tint-20pct: hsla(0, 0%, 100%, 0.44);
1467
- --lumo-tint-30pct: hsla(0, 0%, 100%, 0.5);
1468
- --lumo-tint-40pct: hsla(0, 0%, 100%, 0.57);
1469
- --lumo-tint-50pct: hsla(0, 0%, 100%, 0.64);
1470
- --lumo-tint-60pct: hsla(0, 0%, 100%, 0.7);
1471
- --lumo-tint-70pct: hsla(0, 0%, 100%, 0.77);
1472
- --lumo-tint-80pct: hsla(0, 0%, 100%, 0.84);
1473
- --lumo-tint-90pct: hsla(0, 0%, 100%, 0.9);
1474
- --lumo-tint: #fff;
1475
-
1476
- /* Shade */
1477
- --lumo-shade-5pct: hsla(214, 61%, 25%, 0.05);
1478
- --lumo-shade-10pct: hsla(214, 57%, 24%, 0.1);
1479
- --lumo-shade-20pct: hsla(214, 53%, 23%, 0.16);
1480
- --lumo-shade-30pct: hsla(214, 50%, 22%, 0.26);
1481
- --lumo-shade-40pct: hsla(214, 47%, 21%, 0.38);
1482
- --lumo-shade-50pct: hsla(214, 45%, 20%, 0.52);
1483
- --lumo-shade-60pct: hsla(214, 43%, 19%, 0.6);
1484
- --lumo-shade-70pct: hsla(214, 42%, 18%, 0.69);
1485
- --lumo-shade-80pct: hsla(214, 41%, 17%, 0.83);
1486
- --lumo-shade-90pct: hsla(214, 40%, 16%, 0.94);
1487
- --lumo-shade: hsl(214, 35%, 15%);
1488
-
1489
- /* Contrast */
1490
- --lumo-contrast-5pct: var(--lumo-shade-5pct);
1491
- --lumo-contrast-10pct: var(--lumo-shade-10pct);
1492
- --lumo-contrast-20pct: var(--lumo-shade-20pct);
1493
- --lumo-contrast-30pct: var(--lumo-shade-30pct);
1494
- --lumo-contrast-40pct: var(--lumo-shade-40pct);
1495
- --lumo-contrast-50pct: var(--lumo-shade-50pct);
1496
- --lumo-contrast-60pct: var(--lumo-shade-60pct);
1497
- --lumo-contrast-70pct: var(--lumo-shade-70pct);
1498
- --lumo-contrast-80pct: var(--lumo-shade-80pct);
1499
- --lumo-contrast-90pct: var(--lumo-shade-90pct);
1500
- --lumo-contrast: var(--lumo-shade);
1501
-
1502
- /* Text */
1503
- --lumo-header-text-color: var(--lumo-contrast);
1504
- --lumo-body-text-color: var(--lumo-contrast-90pct);
1505
- --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1506
- --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1507
- --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1508
-
1509
- /* Primary */
1510
- --lumo-primary-color: hsl(214, 100%, 48%);
1511
- --lumo-primary-color-50pct: hsla(214, 100%, 49%, 0.76);
1512
- --lumo-primary-color-10pct: hsla(214, 100%, 60%, 0.13);
1513
- --lumo-primary-text-color: hsl(214, 100%, 43%);
1514
- --lumo-primary-contrast-color: #fff;
1515
-
1516
- /* Error */
1517
- --lumo-error-color: hsl(3, 85%, 48%);
1518
- --lumo-error-color-50pct: hsla(3, 85%, 49%, 0.5);
1519
- --lumo-error-color-10pct: hsla(3, 85%, 49%, 0.1);
1520
- --lumo-error-text-color: hsl(3, 89%, 42%);
1521
- --lumo-error-contrast-color: #fff;
1522
-
1523
- /* Success */
1524
- --lumo-success-color: hsl(145, 72%, 30%);
1525
- --lumo-success-color-50pct: hsla(145, 72%, 31%, 0.5);
1526
- --lumo-success-color-10pct: hsla(145, 72%, 31%, 0.1);
1527
- --lumo-success-text-color: hsl(145, 85%, 25%);
1528
- --lumo-success-contrast-color: #fff;
1529
-
1530
- /* Warning */
1531
- --lumo-warning-color: hsl(48, 100%, 50%);
1532
- --lumo-warning-color-10pct: hsla(48, 100%, 50%, 0.25);
1533
- --lumo-warning-text-color: hsl(32, 100%, 30%);
1534
- --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1535
- }
1536
-
1537
- /* forced-colors mode adjustments */
1538
- @media (forced-colors: active) {
1539
- html {
1540
- --lumo-disabled-text-color: GrayText;
1541
- }
1542
- }
1543
- `),bt("",f`
1544
- [theme~='dark'] {
1545
- /* Base (background) */
1546
- --lumo-base-color: hsl(214, 35%, 21%);
1547
-
1548
- /* Tint */
1549
- --lumo-tint-5pct: hsla(214, 65%, 85%, 0.06);
1550
- --lumo-tint-10pct: hsla(214, 60%, 80%, 0.14);
1551
- --lumo-tint-20pct: hsla(214, 64%, 82%, 0.23);
1552
- --lumo-tint-30pct: hsla(214, 69%, 84%, 0.32);
1553
- --lumo-tint-40pct: hsla(214, 73%, 86%, 0.41);
1554
- --lumo-tint-50pct: hsla(214, 78%, 88%, 0.5);
1555
- --lumo-tint-60pct: hsla(214, 82%, 90%, 0.58);
1556
- --lumo-tint-70pct: hsla(214, 87%, 92%, 0.69);
1557
- --lumo-tint-80pct: hsla(214, 91%, 94%, 0.8);
1558
- --lumo-tint-90pct: hsla(214, 96%, 96%, 0.9);
1559
- --lumo-tint: hsl(214, 100%, 98%);
1560
-
1561
- /* Shade */
1562
- --lumo-shade-5pct: hsla(214, 0%, 0%, 0.07);
1563
- --lumo-shade-10pct: hsla(214, 4%, 2%, 0.15);
1564
- --lumo-shade-20pct: hsla(214, 8%, 4%, 0.23);
1565
- --lumo-shade-30pct: hsla(214, 12%, 6%, 0.32);
1566
- --lumo-shade-40pct: hsla(214, 16%, 8%, 0.41);
1567
- --lumo-shade-50pct: hsla(214, 20%, 10%, 0.5);
1568
- --lumo-shade-60pct: hsla(214, 24%, 12%, 0.6);
1569
- --lumo-shade-70pct: hsla(214, 28%, 13%, 0.7);
1570
- --lumo-shade-80pct: hsla(214, 32%, 13%, 0.8);
1571
- --lumo-shade-90pct: hsla(214, 33%, 13%, 0.9);
1572
- --lumo-shade: hsl(214, 33%, 13%);
1573
-
1574
- /* Contrast */
1575
- --lumo-contrast-5pct: var(--lumo-tint-5pct);
1576
- --lumo-contrast-10pct: var(--lumo-tint-10pct);
1577
- --lumo-contrast-20pct: var(--lumo-tint-20pct);
1578
- --lumo-contrast-30pct: var(--lumo-tint-30pct);
1579
- --lumo-contrast-40pct: var(--lumo-tint-40pct);
1580
- --lumo-contrast-50pct: var(--lumo-tint-50pct);
1581
- --lumo-contrast-60pct: var(--lumo-tint-60pct);
1582
- --lumo-contrast-70pct: var(--lumo-tint-70pct);
1583
- --lumo-contrast-80pct: var(--lumo-tint-80pct);
1584
- --lumo-contrast-90pct: var(--lumo-tint-90pct);
1585
- --lumo-contrast: var(--lumo-tint);
1586
-
1587
- /* Text */
1588
- --lumo-header-text-color: var(--lumo-contrast);
1589
- --lumo-body-text-color: var(--lumo-contrast-90pct);
1590
- --lumo-secondary-text-color: var(--lumo-contrast-70pct);
1591
- --lumo-tertiary-text-color: var(--lumo-contrast-50pct);
1592
- --lumo-disabled-text-color: var(--lumo-contrast-30pct);
1593
-
1594
- /* Primary */
1595
- --lumo-primary-color: hsl(214, 90%, 48%);
1596
- --lumo-primary-color-50pct: hsla(214, 90%, 70%, 0.69);
1597
- --lumo-primary-color-10pct: hsla(214, 90%, 55%, 0.13);
1598
- --lumo-primary-text-color: hsl(214, 90%, 77%);
1599
- --lumo-primary-contrast-color: #fff;
1600
-
1601
- /* Error */
1602
- --lumo-error-color: hsl(3, 79%, 49%);
1603
- --lumo-error-color-50pct: hsla(3, 75%, 62%, 0.5);
1604
- --lumo-error-color-10pct: hsla(3, 75%, 62%, 0.14);
1605
- --lumo-error-text-color: hsl(3, 100%, 80%);
1606
-
1607
- /* Success */
1608
- --lumo-success-color: hsl(145, 72%, 30%);
1609
- --lumo-success-color-50pct: hsla(145, 92%, 51%, 0.5);
1610
- --lumo-success-color-10pct: hsla(145, 92%, 51%, 0.1);
1611
- --lumo-success-text-color: hsl(145, 85%, 46%);
1612
-
1613
- /* Warning */
1614
- --lumo-warning-color: hsl(43, 100%, 48%);
1615
- --lumo-warning-color-10pct: hsla(40, 100%, 50%, 0.2);
1616
- --lumo-warning-text-color: hsl(45, 100%, 60%);
1617
- --lumo-warning-contrast-color: var(--lumo-shade-90pct);
1618
- }
1619
-
1620
- html {
1621
- color: var(--lumo-body-text-color);
1622
- background-color: var(--lumo-base-color);
1623
- color-scheme: light;
1624
- }
1625
-
1626
- [theme~='dark'] {
1627
- color: var(--lumo-body-text-color);
1628
- background-color: var(--lumo-base-color);
1629
- color-scheme: dark;
1630
- }
1631
-
1632
- h1,
1633
- h2,
1634
- h3,
1635
- h4,
1636
- h5,
1637
- h6 {
1638
- color: var(--lumo-header-text-color);
1639
- }
1640
-
1641
- a:where(:any-link) {
1642
- color: var(--lumo-primary-text-color);
1643
- }
1644
-
1645
- a:not(:any-link) {
1646
- color: var(--lumo-disabled-text-color);
1647
- }
1648
-
1649
- blockquote {
1650
- color: var(--lumo-secondary-text-color);
1651
- }
1652
-
1653
- code,
1654
- pre {
1655
- background-color: var(--lumo-contrast-10pct);
1656
- border-radius: var(--lumo-border-radius-m);
1657
- }
1658
- `,{moduleId:"lumo-color"}),Lo("spacing-props",f`
1659
- :host {
1660
- /* Square */
1661
- --lumo-space-xs: 0.25rem;
1662
- --lumo-space-s: 0.5rem;
1663
- --lumo-space-m: 1rem;
1664
- --lumo-space-l: 1.5rem;
1665
- --lumo-space-xl: 2.5rem;
1666
-
1667
- /* Wide */
1668
- --lumo-space-wide-xs: calc(var(--lumo-space-xs) / 2) var(--lumo-space-xs);
1669
- --lumo-space-wide-s: calc(var(--lumo-space-s) / 2) var(--lumo-space-s);
1670
- --lumo-space-wide-m: calc(var(--lumo-space-m) / 2) var(--lumo-space-m);
1671
- --lumo-space-wide-l: calc(var(--lumo-space-l) / 2) var(--lumo-space-l);
1672
- --lumo-space-wide-xl: calc(var(--lumo-space-xl) / 2) var(--lumo-space-xl);
1673
-
1674
- /* Tall */
1675
- --lumo-space-tall-xs: var(--lumo-space-xs) calc(var(--lumo-space-xs) / 2);
1676
- --lumo-space-tall-s: var(--lumo-space-s) calc(var(--lumo-space-s) / 2);
1677
- --lumo-space-tall-m: var(--lumo-space-m) calc(var(--lumo-space-m) / 2);
1678
- --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
1679
- --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
1680
- }
1681
- `);
1682
- /**
1683
- * @license
1684
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1685
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1686
- */
1687
- const Vo=f`
1688
- :host {
1689
- /* prettier-ignore */
1690
- --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
1691
-
1692
- /* Font sizes */
1693
- --lumo-font-size-xxs: 0.75rem;
1694
- --lumo-font-size-xs: 0.8125rem;
1695
- --lumo-font-size-s: 0.875rem;
1696
- --lumo-font-size-m: 1rem;
1697
- --lumo-font-size-l: 1.125rem;
1698
- --lumo-font-size-xl: 1.375rem;
1699
- --lumo-font-size-xxl: 1.75rem;
1700
- --lumo-font-size-xxxl: 2.5rem;
1701
-
1702
- /* Line heights */
1703
- --lumo-line-height-xs: 1.25;
1704
- --lumo-line-height-s: 1.375;
1705
- --lumo-line-height-m: 1.625;
1706
- }
1707
- `;bt("",f`
1708
- body,
1709
- :host {
1710
- font-family: var(--lumo-font-family);
1711
- font-size: var(--lumo-font-size-m);
1712
- line-height: var(--lumo-line-height-m);
1713
- -webkit-text-size-adjust: 100%;
1714
- -webkit-font-smoothing: antialiased;
1715
- -moz-osx-font-smoothing: grayscale;
1716
- }
1717
-
1718
- small,
1719
- [theme~='font-size-s'] {
1720
- font-size: var(--lumo-font-size-s);
1721
- line-height: var(--lumo-line-height-s);
1722
- }
1723
-
1724
- [theme~='font-size-xs'] {
1725
- font-size: var(--lumo-font-size-xs);
1726
- line-height: var(--lumo-line-height-xs);
1727
- }
1728
-
1729
- :where(h1, h2, h3, h4, h5, h6) {
1730
- font-weight: 600;
1731
- line-height: var(--lumo-line-height-xs);
1732
- margin-block: 0;
1733
- }
1734
-
1735
- :where(h1) {
1736
- font-size: var(--lumo-font-size-xxxl);
1737
- }
1738
-
1739
- :where(h2) {
1740
- font-size: var(--lumo-font-size-xxl);
1741
- }
1742
-
1743
- :where(h3) {
1744
- font-size: var(--lumo-font-size-xl);
1745
- }
1746
-
1747
- :where(h4) {
1748
- font-size: var(--lumo-font-size-l);
1749
- }
1750
-
1751
- :where(h5) {
1752
- font-size: var(--lumo-font-size-m);
1753
- }
1754
-
1755
- :where(h6) {
1756
- font-size: var(--lumo-font-size-xs);
1757
- text-transform: uppercase;
1758
- letter-spacing: 0.03em;
1759
- }
1760
-
1761
- p,
1762
- blockquote {
1763
- margin-top: 0.5em;
1764
- margin-bottom: 0.75em;
1765
- }
1766
-
1767
- a {
1768
- text-decoration: none;
1769
- }
1770
-
1771
- a:where(:any-link):hover {
1772
- text-decoration: underline;
1773
- }
1774
-
1775
- hr {
1776
- display: block;
1777
- align-self: stretch;
1778
- height: 1px;
1779
- border: 0;
1780
- padding: 0;
1781
- margin: var(--lumo-space-s) calc(var(--lumo-border-radius-m) / 2);
1782
- background-color: var(--lumo-contrast-10pct);
1783
- }
1784
-
1785
- blockquote {
1786
- border-left: 2px solid var(--lumo-contrast-30pct);
1787
- }
1788
-
1789
- b,
1790
- strong {
1791
- font-weight: 600;
1792
- }
1793
-
1794
- /* RTL specific styles */
1795
- blockquote[dir='rtl'] {
1796
- border-left: none;
1797
- border-right: 2px solid var(--lumo-contrast-30pct);
1798
- }
1799
- `,{moduleId:"lumo-typography"}),Lo("typography-props",Vo);
1800
- /**
1801
- * @license
1802
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1803
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1804
- */
1805
- const Qo=f`
1806
- [part$='button'] {
1807
- flex: none;
1808
- width: 1em;
1809
- height: 1em;
1810
- line-height: 1;
1811
- font-size: var(--lumo-icon-size-m);
1812
- text-align: center;
1813
- color: var(--lumo-contrast-60pct);
1814
- transition: 0.2s color;
1815
- cursor: var(--lumo-clickable-cursor);
1816
- }
1817
-
1818
- [part$='button']:hover {
1819
- color: var(--lumo-contrast-90pct);
1820
- }
1821
-
1822
- :host([disabled]) [part$='button'],
1823
- :host([readonly]) [part$='button'] {
1824
- color: var(--lumo-contrast-20pct);
1825
- cursor: default;
1826
- }
1827
-
1828
- [part$='button']::before {
1829
- font-family: 'lumo-icons';
1830
- display: block;
1831
- }
1832
- `;bt("",Qo,{moduleId:"lumo-field-button"});
1833
- /**
1834
- * @license
1835
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1836
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1837
- */
1838
- const Xo=f`
1839
- :host([has-helper]) [part='helper-text']::before {
1840
- content: '';
1841
- display: block;
1842
- height: 0.4em;
1843
- }
1844
-
1845
- [part='helper-text'] {
1846
- display: block;
1847
- color: var(--lumo-secondary-text-color);
1848
- font-size: var(--lumo-font-size-xs);
1849
- line-height: var(--lumo-line-height-xs);
1850
- margin-left: calc(var(--lumo-border-radius-m) / 4);
1851
- transition: color 0.2s;
1852
- }
1853
-
1854
- :host(:hover:not([readonly])) [part='helper-text'] {
1855
- color: var(--lumo-body-text-color);
1856
- }
1857
-
1858
- :host([disabled]) [part='helper-text'] {
1859
- color: var(--lumo-disabled-text-color);
1860
- -webkit-text-fill-color: var(--lumo-disabled-text-color);
1861
- }
1862
-
1863
- :host([has-helper][theme~='helper-above-field']) [part='helper-text']::before {
1864
- display: none;
1865
- }
1866
-
1867
- :host([has-helper][theme~='helper-above-field']) [part='helper-text']::after {
1868
- content: '';
1869
- display: block;
1870
- height: 0.4em;
1871
- }
1872
-
1873
- :host([has-helper][theme~='helper-above-field']) [part='label'] {
1874
- order: 0;
1875
- padding-bottom: 0.4em;
1876
- }
1877
-
1878
- :host([has-helper][theme~='helper-above-field']) [part='helper-text'] {
1879
- order: 1;
1880
- }
1881
-
1882
- :host([has-helper][theme~='helper-above-field']) [part='label'] + * {
1883
- order: 2;
1884
- }
1885
-
1886
- :host([has-helper][theme~='helper-above-field']) [part='error-message'] {
1887
- order: 3;
1888
- }
1889
- `
1890
- /**
1891
- * @license
1892
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1893
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1894
- */,$o=f`
1895
- [part='label'] {
1896
- align-self: flex-start;
1897
- color: var(--lumo-secondary-text-color);
1898
- font-weight: 500;
1899
- font-size: var(--lumo-font-size-s);
1900
- margin-left: calc(var(--lumo-border-radius-m) / 4);
1901
- transition: color 0.2s;
1902
- line-height: 1;
1903
- padding-right: 1em;
1904
- padding-bottom: 0.5em;
1905
- /* As a workaround for diacritics being cut off, add a top padding and a
1906
- negative margin to compensate */
1907
- padding-top: 0.25em;
1908
- margin-top: -0.25em;
1909
- overflow: hidden;
1910
- white-space: nowrap;
1911
- text-overflow: ellipsis;
1912
- position: relative;
1913
- max-width: 100%;
1914
- box-sizing: border-box;
1915
- }
1916
-
1917
- :host([has-label])::before {
1918
- margin-top: calc(var(--lumo-font-size-s) * 1.5);
1919
- }
1920
-
1921
- :host([has-label][theme~='small'])::before {
1922
- margin-top: calc(var(--lumo-font-size-xs) * 1.5);
1923
- }
1924
-
1925
- :host([has-label]) {
1926
- padding-top: var(--lumo-space-m);
1927
- }
1928
-
1929
- :host([has-label]) ::slotted([slot='tooltip']) {
1930
- --vaadin-tooltip-offset-bottom: calc((var(--lumo-space-m) - var(--lumo-space-xs)) * -1);
1931
- }
1932
-
1933
- :host([required]) [part='required-indicator']::after {
1934
- content: var(--lumo-required-field-indicator, '\\2022');
1935
- transition: opacity 0.2s;
1936
- color: var(--lumo-required-field-indicator-color, var(--lumo-primary-text-color));
1937
- position: absolute;
1938
- right: 0;
1939
- width: 1em;
1940
- text-align: center;
1941
- }
1942
-
1943
- :host([invalid]) [part='required-indicator']::after {
1944
- color: var(--lumo-required-field-indicator-color, var(--lumo-error-text-color));
1945
- }
1946
-
1947
- [part='error-message'] {
1948
- margin-left: calc(var(--lumo-border-radius-m) / 4);
1949
- font-size: var(--lumo-font-size-xs);
1950
- line-height: var(--lumo-line-height-xs);
1951
- color: var(--lumo-error-text-color);
1952
- will-change: max-height;
1953
- transition: 0.4s max-height;
1954
- max-height: 5em;
1955
- }
1956
-
1957
- :host([has-error-message]) [part='error-message']::before,
1958
- :host([has-error-message]) [part='error-message']::after {
1959
- content: '';
1960
- display: block;
1961
- height: 0.4em;
1962
- }
1963
-
1964
- :host(:not([invalid])) [part='error-message'] {
1965
- max-height: 0;
1966
- overflow: hidden;
1967
- }
1968
-
1969
- /* RTL specific styles */
1970
-
1971
- :host([dir='rtl']) [part='label'] {
1972
- margin-left: 0;
1973
- margin-right: calc(var(--lumo-border-radius-m) / 4);
1974
- }
1975
-
1976
- :host([dir='rtl']) [part='label'] {
1977
- padding-left: 1em;
1978
- padding-right: 0;
1979
- }
1980
-
1981
- :host([dir='rtl']) [part='required-indicator']::after {
1982
- right: auto;
1983
- left: 0;
1984
- }
1985
-
1986
- :host([dir='rtl']) [part='error-message'] {
1987
- margin-left: 0;
1988
- margin-right: calc(var(--lumo-border-radius-m) / 4);
1989
- }
1990
- `;bt("",$o,{moduleId:"lumo-required-field"});
1991
- /**
1992
- * @license
1993
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
1994
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1995
- */
1996
- const ts=[$o,Qo,Xo,f`
1997
- :host {
1998
- --lumo-text-field-size: var(--lumo-size-m);
1999
- color: var(--lumo-body-text-color);
2000
- font-size: var(--lumo-font-size-m);
2001
- font-family: var(--lumo-font-family);
2002
- -webkit-font-smoothing: antialiased;
2003
- -moz-osx-font-smoothing: grayscale;
2004
- -webkit-tap-highlight-color: transparent;
2005
- padding: var(--lumo-space-xs) 0;
2006
- }
2007
-
2008
- :host::before {
2009
- height: var(--lumo-text-field-size);
2010
- box-sizing: border-box;
2011
- display: inline-flex;
2012
- align-items: center;
2013
- }
2014
-
2015
- :host([focused]:not([readonly])) [part='label'] {
2016
- color: var(--lumo-primary-text-color);
2017
- }
2018
-
2019
- :host([focused]) [part='input-field'] ::slotted(:is(input, textarea)) {
2020
- -webkit-mask-image: none;
2021
- mask-image: none;
2022
- }
2023
-
2024
- ::slotted(:is(input, textarea):placeholder-shown) {
2025
- color: var(--lumo-secondary-text-color);
2026
- }
2027
-
2028
- /* Hover */
2029
- :host(:hover:not([readonly]):not([focused])) [part='label'] {
2030
- color: var(--lumo-body-text-color);
2031
- }
2032
-
2033
- :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2034
- opacity: 0.1;
2035
- }
2036
-
2037
- /* Touch device adjustment */
2038
- @media (pointer: coarse) {
2039
- :host(:hover:not([readonly]):not([focused])) [part='label'] {
2040
- color: var(--lumo-secondary-text-color);
2041
- }
2042
-
2043
- :host(:hover:not([readonly]):not([focused])) [part='input-field']::after {
2044
- opacity: 0;
2045
- }
2046
-
2047
- :host(:active:not([readonly]):not([focused])) [part='input-field']::after {
2048
- opacity: 0.2;
2049
- }
2050
- }
2051
-
2052
- /* Trigger when not focusing using the keyboard */
2053
- :host([focused]:not([focus-ring]):not([readonly])) [part='input-field']::after {
2054
- transform: scaleX(0);
2055
- transition-duration: 0.15s, 1s;
2056
- }
2057
-
2058
- /* Focus-ring */
2059
- :host([focus-ring]) [part='input-field'] {
2060
- box-shadow: 0 0 0 2px var(--lumo-primary-color-50pct);
2061
- }
2062
-
2063
- /* Read-only and disabled */
2064
- :host(:is([readonly], [disabled])) ::slotted(:is(input, textarea):placeholder-shown) {
2065
- opacity: 0;
2066
- }
2067
-
2068
- /* Read-only style */
2069
- :host([readonly]) {
2070
- --vaadin-input-field-border-color: transparent;
2071
- }
2072
-
2073
- /* Disabled style */
2074
- :host([disabled]) {
2075
- pointer-events: none;
2076
- --vaadin-input-field-border-color: var(--lumo-contrast-20pct);
2077
- }
2078
-
2079
- :host([disabled]) [part='label'],
2080
- :host([disabled]) [part='input-field'] ::slotted(*) {
2081
- color: var(--lumo-disabled-text-color);
2082
- -webkit-text-fill-color: var(--lumo-disabled-text-color);
2083
- }
2084
-
2085
- /* Invalid style */
2086
- :host([invalid]) {
2087
- --vaadin-input-field-border-color: var(--lumo-error-color);
2088
- }
2089
-
2090
- :host([invalid][focus-ring]) [part='input-field'] {
2091
- box-shadow: 0 0 0 2px var(--lumo-error-color-50pct);
2092
- }
2093
-
2094
- :host([input-prevented]) [part='input-field'] {
2095
- animation: shake 0.15s infinite;
2096
- }
2097
-
2098
- @keyframes shake {
2099
- 25% {
2100
- transform: translateX(4px);
2101
- }
2102
- 75% {
2103
- transform: translateX(-4px);
2104
- }
2105
- }
2106
-
2107
- /* Small theme */
2108
- :host([theme~='small']) {
2109
- font-size: var(--lumo-font-size-s);
2110
- --lumo-text-field-size: var(--lumo-size-s);
2111
- }
2112
-
2113
- :host([theme~='small']) [part='label'] {
2114
- font-size: var(--lumo-font-size-xs);
2115
- }
2116
-
2117
- :host([theme~='small']) [part='error-message'] {
2118
- font-size: var(--lumo-font-size-xxs);
2119
- }
2120
-
2121
- /* Slotted content */
2122
- [part='input-field'] ::slotted(:not(vaadin-icon):not(input):not(textarea)) {
2123
- color: var(--lumo-secondary-text-color);
2124
- font-weight: 400;
2125
- }
2126
-
2127
- [part='clear-button']::before {
2128
- content: var(--lumo-icons-cross);
2129
- }
2130
- `];bt("",ts,{moduleId:"lumo-input-field-shared-styles"});
2131
- /**
2132
- * @license
2133
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2134
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2135
- */
2136
- const es=f`
2137
- :host {
2138
- top: var(--lumo-space-m);
2139
- right: var(--lumo-space-m);
2140
- bottom: var(--lumo-space-m);
2141
- left: var(--lumo-space-m);
2142
- /* Workaround for Edge issue (only on Surface), where an overflowing vaadin-list-box inside vaadin-select-overlay makes the overlay transparent */
2143
- /* stylelint-disable-next-line */
2144
- outline: 0px solid transparent;
2145
- }
2146
-
2147
- [part='overlay'] {
2148
- background-color: var(--lumo-base-color);
2149
- background-image: linear-gradient(var(--lumo-tint-5pct), var(--lumo-tint-5pct));
2150
- border-radius: var(--lumo-border-radius-m);
2151
- box-shadow: 0 0 0 1px var(--lumo-shade-5pct), var(--lumo-box-shadow-m);
2152
- color: var(--lumo-body-text-color);
2153
- font-family: var(--lumo-font-family);
2154
- font-size: var(--lumo-font-size-m);
2155
- font-weight: 400;
2156
- line-height: var(--lumo-line-height-m);
2157
- letter-spacing: 0;
2158
- text-transform: none;
2159
- -webkit-text-size-adjust: 100%;
2160
- -webkit-font-smoothing: antialiased;
2161
- -moz-osx-font-smoothing: grayscale;
2162
- }
2163
-
2164
- [part='content'] {
2165
- padding: var(--lumo-space-xs);
2166
- }
2167
-
2168
- [part='backdrop'] {
2169
- background-color: var(--lumo-shade-20pct);
2170
- animation: 0.2s lumo-overlay-backdrop-enter both;
2171
- will-change: opacity;
2172
- }
2173
-
2174
- @keyframes lumo-overlay-backdrop-enter {
2175
- 0% {
2176
- opacity: 0;
2177
- }
2178
- }
2179
-
2180
- :host([closing]) [part='backdrop'] {
2181
- animation: 0.2s lumo-overlay-backdrop-exit both;
2182
- }
2183
-
2184
- @keyframes lumo-overlay-backdrop-exit {
2185
- 100% {
2186
- opacity: 0;
2187
- }
2188
- }
2189
-
2190
- @keyframes lumo-overlay-dummy-animation {
2191
- 0% {
2192
- opacity: 1;
2193
- }
2194
-
2195
- 100% {
2196
- opacity: 1;
2197
- }
2198
- }
2199
- `;bt("",es,{moduleId:"lumo-overlay"});
2200
- /**
2201
- * @license
2202
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2203
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2204
- */
2205
- const os=f`
2206
- :host([opening]),
2207
- :host([closing]) {
2208
- animation: 0.14s lumo-overlay-dummy-animation;
2209
- }
2210
-
2211
- [part='overlay'] {
2212
- will-change: opacity, transform;
2213
- }
2214
-
2215
- :host([opening]) [part='overlay'] {
2216
- animation: 0.1s lumo-menu-overlay-enter ease-out both;
2217
- }
2218
-
2219
- @keyframes lumo-menu-overlay-enter {
2220
- 0% {
2221
- opacity: 0;
2222
- transform: translateY(-4px);
2223
- }
2224
- }
2225
-
2226
- :host([closing]) [part='overlay'] {
2227
- animation: 0.1s lumo-menu-overlay-exit both;
2228
- }
2229
-
2230
- @keyframes lumo-menu-overlay-exit {
2231
- 100% {
2232
- opacity: 0;
2233
- }
2234
- }
2235
- `;bt("",os,{moduleId:"lumo-menu-overlay-core"});const ss=[es,os,f`
2236
- /* Small viewport (bottom sheet) styles */
2237
- /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
2238
- @media (max-width: 420px), (max-height: 420px) {
2239
- :host {
2240
- top: 0 !important;
2241
- right: 0 !important;
2242
- bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
2243
- left: 0 !important;
2244
- align-items: stretch !important;
2245
- justify-content: flex-end !important;
2246
- }
2247
-
2248
- [part='overlay'] {
2249
- max-height: 50vh;
2250
- width: 100vw;
2251
- border-radius: 0;
2252
- box-shadow: var(--lumo-box-shadow-xl);
2253
- }
2254
-
2255
- /* The content part scrolls instead of the overlay part, because of the gradient fade-out */
2256
- [part='content'] {
2257
- padding: 30px var(--lumo-space-m);
2258
- max-height: inherit;
2259
- box-sizing: border-box;
2260
- -webkit-overflow-scrolling: touch;
2261
- overflow: auto;
2262
- -webkit-mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
2263
- mask-image: linear-gradient(transparent, #000 40px, #000 calc(100% - 40px), transparent);
2264
- }
2265
-
2266
- [part='backdrop'] {
2267
- display: block;
2268
- }
2269
-
2270
- /* Animations */
2271
-
2272
- :host([opening]) [part='overlay'] {
2273
- animation: 0.2s lumo-mobile-menu-overlay-enter cubic-bezier(0.215, 0.61, 0.355, 1) both;
2274
- }
2275
-
2276
- :host([closing]),
2277
- :host([closing]) [part='backdrop'] {
2278
- animation-delay: 0.14s;
2279
- }
2280
-
2281
- :host([closing]) [part='overlay'] {
2282
- animation: 0.14s 0.14s lumo-mobile-menu-overlay-exit cubic-bezier(0.55, 0.055, 0.675, 0.19) both;
2283
- }
2284
- }
2285
-
2286
- @keyframes lumo-mobile-menu-overlay-enter {
2287
- 0% {
2288
- transform: translateY(150%);
2289
- }
2290
- }
2291
-
2292
- @keyframes lumo-mobile-menu-overlay-exit {
2293
- 100% {
2294
- transform: translateY(150%);
2295
- }
2296
- }
2297
- `];bt("",ss,{moduleId:"lumo-menu-overlay"}),
2298
- /**
2299
- * @license
2300
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2301
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2302
- */
2303
- bt("vaadin-select-item",Zo,{moduleId:"lumo-select-item"}),bt("vaadin-select-list-box",Ko,{moduleId:"lumo-select-list-box"}),bt("vaadin-select",[ts,f`
2304
- :host(:not([theme*='align'])) ::slotted([slot='value']) {
2305
- text-align: start;
2306
- }
2307
-
2308
- [part='input-field'] {
2309
- cursor: var(--lumo-clickable-cursor);
2310
- }
2311
-
2312
- [part='input-field'] ::slotted([slot='value']) {
2313
- font-weight: 500;
2314
- }
2315
-
2316
- [part='input-field'] ::slotted([slot='value']:not([placeholder])) {
2317
- color: var(--lumo-body-text-color);
2318
- }
2319
-
2320
- :host([readonly]) [part='input-field'] ::slotted([slot='value']:not([placeholder])) {
2321
- color: var(--lumo-secondary-text-color);
2322
- }
2323
-
2324
- /* placeholder styles */
2325
- [part='input-field'] ::slotted([slot='value'][placeholder]) {
2326
- color: var(--lumo-secondary-text-color);
2327
- }
2328
-
2329
- :host(:is([readonly], [disabled])) ::slotted([slot='value'][placeholder]) {
2330
- opacity: 0;
2331
- }
2332
-
2333
- [part='toggle-button']::before {
2334
- content: var(--lumo-icons-dropdown);
2335
- }
2336
-
2337
- /* Highlight the toggle button when hovering over the entire component */
2338
- :host(:hover:not([readonly]):not([disabled])) [part='toggle-button'] {
2339
- color: var(--lumo-contrast-80pct);
2340
- }
2341
-
2342
- :host([theme~='small']) [part='input-field'] ::slotted([slot='value']) {
2343
- --_lumo-selected-item-height: var(--lumo-size-s);
2344
- --_lumo-selected-item-padding: 0;
2345
- }
2346
- `],{moduleId:"lumo-select"}),bt("vaadin-select-value-button",f`
2347
- :host {
2348
- font-family: var(--lumo-font-family);
2349
- font-size: var(--lumo-font-size-m);
2350
- padding: 0 0.25em;
2351
- --_lumo-selected-item-height: var(--lumo-size-m);
2352
- --_lumo-selected-item-padding: 0.5em;
2353
- }
2354
-
2355
- ::slotted(*) {
2356
- min-height: var(--_lumo-selected-item-height);
2357
- padding-top: var(--_lumo-selected-item-padding);
2358
- padding-bottom: var(--_lumo-selected-item-padding);
2359
- }
2360
-
2361
- ::slotted(*:hover) {
2362
- background-color: transparent;
2363
- }
2364
- `,{moduleId:"lumo-select-value-button"}),bt("vaadin-select-overlay",[ss,f`
2365
- :host {
2366
- --_lumo-item-selected-icon-display: block;
2367
- }
2368
-
2369
- [part~='overlay'] {
2370
- min-width: var(--vaadin-select-text-field-width);
2371
- }
2372
-
2373
- /* Small viewport adjustment */
2374
- :host([phone]) {
2375
- /* stylelint-disable declaration-block-no-redundant-longhand-properties */
2376
- top: 0 !important;
2377
- right: 0 !important;
2378
- bottom: var(--vaadin-overlay-viewport-bottom, 0) !important;
2379
- left: 0 !important;
2380
- /* stylelint-enable declaration-block-no-redundant-longhand-properties */
2381
- align-items: stretch;
2382
- justify-content: flex-end;
2383
- }
2384
-
2385
- :host([theme~='align-left']) {
2386
- text-align: left;
2387
- }
2388
-
2389
- :host([theme~='align-right']) {
2390
- text-align: right;
2391
- }
2392
-
2393
- :host([theme~='align-center']) {
2394
- text-align: center;
2395
- }
2396
- `],{moduleId:"lumo-select-overlay"});
2397
- /**
2398
- * @license
2399
- * Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2400
- * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2401
- * The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2402
- * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2403
- * Code distributed by Google as part of the polymer project is also
2404
- * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2405
- */
2406
- let is=0,rs=0;const ns=[];let ls=!1;const as={after:t=>({run:e=>window.setTimeout(e,t),cancel(t){window.clearTimeout(t)}}),run:(t,e)=>window.setTimeout(t,e),cancel(t){window.clearTimeout(t)}},cs={run:t=>window.requestIdleCallback?window.requestIdleCallback(t):window.setTimeout(t,16),cancel(t){window.cancelIdleCallback?window.cancelIdleCallback(t):window.clearTimeout(t)}},hs={run(t){ls||(ls=!0,queueMicrotask((()=>function(){ls=!1;const t=ns.length;for(let e=0;e<t;e++){const t=ns[e];if(t)try{t()}catch(t){setTimeout((()=>{throw t}))}}ns.splice(0,t),rs+=t}()))),ns.push(t);const e=is;return is+=1,e},cancel(t){const e=t-rs;if(e>=0){if(!ns[e])throw new Error(`invalid async handle: ${t}`);ns[e]=null}}},us=!1,ds=t=>t,ms="string"==typeof document.head.style.touchAction,ps="__polymerGestures",fs="__polymerGesturesHandled",vs="__polymerGesturesTouchAction",bs=["mousedown","mousemove","mouseup","click"],gs=[0,1,4,2],ys=function(){try{return 1===new MouseEvent("test",{buttons:1}).buttons}catch(t){return!1}}();function ws(t){return bs.indexOf(t)>-1}let xs=!1;function As(t){if(!ws(t)&&"touchend"!==t)return ms&&xs&&us?{passive:!0}:void 0}!function(){try{const t=Object.defineProperty({},"passive",{get(){xs=!0}});window.addEventListener("test",null,t),window.removeEventListener("test",null,t)}catch(t){}}();const ks=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),_s={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function Cs(t){const e=t.type;if(!ws(e))return!1;if("mousemove"===e){let e=void 0===t.buttons?1:t.buttons;return t instanceof window.MouseEvent&&!ys&&(e=gs[t.which]||0),Boolean(1&e)}return 0===(void 0===t.button?0:t.button)}const Ss={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function zs(t,e,o){t.movefn=e,t.upfn=o,document.addEventListener("mousemove",e),document.addEventListener("mouseup",o)}function Ts(t){document.removeEventListener("mousemove",t.movefn),document.removeEventListener("mouseup",t.upfn),t.movefn=null,t.upfn=null}const Ns=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:t=>t.composedPath&&t.composedPath()||[],Is={},Ps=[];function Bs(t){const e=Ns(t);return e.length>0?e[0]:t.target}function Ms(t){const e=t.type,o=t.currentTarget[ps];if(!o)return;const s=o[e];if(!s)return;if(!t[fs]&&(t[fs]={},e.startsWith("touch"))){const o=t.changedTouches[0];if("touchstart"===e&&1===t.touches.length&&(Ss.touch.id=o.identifier),Ss.touch.id!==o.identifier)return;ms||"touchstart"!==e&&"touchmove"!==e||function(t){const e=t.changedTouches[0],o=t.type;if("touchstart"===o)Ss.touch.x=e.clientX,Ss.touch.y=e.clientY,Ss.touch.scrollDecided=!1;else if("touchmove"===o){if(Ss.touch.scrollDecided)return;Ss.touch.scrollDecided=!0;const o=function(t){let e="auto";const o=Ns(t);for(let t,s=0;s<o.length;s++)if(t=o[s],t[vs]){e=t[vs];break}return e}(t);let s=!1;const i=Math.abs(Ss.touch.x-e.clientX),r=Math.abs(Ss.touch.y-e.clientY);t.cancelable&&("none"===o?s=!0:"pan-x"===o?s=r>i:"pan-y"===o&&(s=i>r)),s?t.preventDefault():js("track")}}(t)}const i=t[fs];if(!i.skip){for(let e,o=0;o<Ps.length;o++)e=Ps[o],s[e.name]&&!i[e.name]&&e.flow&&e.flow.start.indexOf(t.type)>-1&&e.reset&&e.reset();for(let o,r=0;r<Ps.length;r++)o=Ps[r],s[o.name]&&!i[o.name]&&(i[o.name]=!0,o[e](t))}}function Es(t,e,o){return!!Is[e]&&(function(t,e,o){const s=Is[e],i=s.deps,r=s.name;let n=t[ps];n||(t[ps]=n={});for(let e,o,s=0;s<i.length;s++)e=i[s],ks&&ws(e)&&"click"!==e||(o=n[e],o||(n[e]=o={_count:0}),0===o._count&&t.addEventListener(e,Ms,As(e)),o[r]=(o[r]||0)+1,o._count=(o._count||0)+1);t.addEventListener(e,o),s.touchAction&&function(t,e){ms&&t instanceof HTMLElement&&hs.run((()=>{t.style.touchAction=e})),t[vs]=e}(t,s.touchAction)}(t,e,o),!0)}function Os(t){Ps.push(t),t.emits.forEach((e=>{Is[e]=t}))}function Ds(t,e,o){const s=new Event(e,{bubbles:!0,cancelable:!0,composed:!0});if(s.detail=o,ds(t).dispatchEvent(s),s.defaultPrevented){const t=o.preventer||o.sourceEvent;t&&t.preventDefault&&t.preventDefault()}}function js(t){const e=function(t){for(let e,o=0;o<Ps.length;o++){e=Ps[o];for(let o,s=0;s<e.emits.length;s++)if(o=e.emits[s],o===t)return e}return null}(t);e.info&&(e.info.prevent=!0)}function Us(t,e,o,s){e&&Ds(e,t,{x:o.clientX,y:o.clientY,sourceEvent:o,preventer:s,prevent:t=>js(t)})}function Fs(t,e,o){if(t.prevent)return!1;if(t.started)return!0;const s=Math.abs(t.x-e),i=Math.abs(t.y-o);return s>=5||i>=5}function Rs(t,e,o){if(!e)return;const s=t.moves[t.moves.length-2],i=t.moves[t.moves.length-1];let r,n=0;s&&(r=i.x-s.x,n=i.y-s.y),Ds(e,"track",{state:t.state,x:o.clientX,y:o.clientY,dx:i.x-t.x,dy:i.y-t.y,ddx:r,ddy:n,sourceEvent:o,hover:()=>function(t,e){let o=document.elementFromPoint(t,e),s=o;for(;s&&s.shadowRoot&&!window.ShadyDOM;){const i=s;if(s=s.shadowRoot.elementFromPoint(t,e),i===s)break;s&&(o=s)}return o}(o.clientX,o.clientY)})}function Ws(t,e,o){const s=Math.abs(e.clientX-t.x),i=Math.abs(e.clientY-t.y),r=Bs(o||e);!r||_s[r.localName]&&r.hasAttribute("disabled")||(isNaN(s)||isNaN(i)||s<=25&&i<=25||function(t){if("click"===t.type){if(0===t.detail)return!0;const e=Bs(t);if(!e.nodeType||e.nodeType!==Node.ELEMENT_NODE)return!0;const o=e.getBoundingClientRect(),s=t.pageX,i=t.pageY;return!(s>=o.left&&s<=o.right&&i>=o.top&&i<=o.bottom)}return!1}(e))&&(t.prevent||Ds(r,"tap",{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:o}))}
2407
- /**
2408
- * @license
2409
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2410
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2411
- */Os({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Ts(this.info)},mousedown(t){if(!Cs(t))return;const e=Bs(t),o=this;zs(this.info,(t=>{Cs(t)||(Us("up",e,t),Ts(o.info))}),(t=>{Cs(t)&&Us("up",e,t),Ts(o.info)})),Us("down",e,t)},touchstart(t){Us("down",Bs(t),t.changedTouches[0],t)},touchend(t){Us("up",Bs(t),t.changedTouches[0],t)}}),Os({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(t){this.moves.length>2&&this.moves.shift(),this.moves.push(t)},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,Ts(this.info)},mousedown(t){if(!Cs(t))return;const e=Bs(t),o=this,s=t=>{const s=t.clientX,i=t.clientY;Fs(o.info,s,i)&&(o.info.state=o.info.started?"mouseup"===t.type?"end":"track":"start","start"===o.info.state&&js("tap"),o.info.addMove({x:s,y:i}),Cs(t)||(o.info.state="end",Ts(o.info)),e&&Rs(o.info,e,t),o.info.started=!0)};zs(this.info,s,(t=>{o.info.started&&s(t),Ts(o.info)})),this.info.x=t.clientX,this.info.y=t.clientY},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchmove(t){const e=Bs(t),o=t.changedTouches[0],s=o.clientX,i=o.clientY;Fs(this.info,s,i)&&("start"===this.info.state&&js("tap"),this.info.addMove({x:s,y:i}),Rs(this.info,e,o),this.info.state="track",this.info.started=!0)},touchend(t){const e=Bs(t),o=t.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:o.clientX,y:o.clientY}),Rs(this.info,e,o))}}),Os({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(t){Cs(t)&&(this.info.x=t.clientX,this.info.y=t.clientY)},click(t){Cs(t)&&Ws(this.info,t)},touchstart(t){const e=t.changedTouches[0];this.info.x=e.clientX,this.info.y=e.clientY},touchend(t){Ws(this.info,t.changedTouches[0],t)}});const Ls=Jt((t=>class extends t{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(t){this._setAriaDisabled(t)}_setAriaDisabled(t){t?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}})),Gs=Jt((t=>class extends t{ready(){super.ready(),this.addEventListener("keydown",(t=>{this._onKeyDown(t)})),this.addEventListener("keyup",(t=>{this._onKeyUp(t)}))}_onKeyDown(t){switch(t.key){case"Enter":this._onEnter(t);break;case"Escape":this._onEscape(t)}}_onKeyUp(t){}_onEnter(t){}_onEscape(t){}})),qs=t=>class extends(Ls(Gs(t))){get _activeKeys(){return[" "]}ready(){super.ready(),Es(this,"down",(t=>{this._shouldSetActive(t)&&this._setActive(!0)})),Es(this,"up",(()=>{this._setActive(!1)}))}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1)}_shouldSetActive(t){return!this.disabled}_onKeyDown(t){super._onKeyDown(t),this._shouldSetActive(t)&&this._activeKeys.includes(t.key)&&(this._setActive(!0),document.addEventListener("keyup",(t=>{this._activeKeys.includes(t.key)&&this._setActive(!1)}),{once:!0}))}_setActive(t){this.toggleAttribute("active",t)}}
2412
- /**
2413
- * @license
2414
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2415
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2416
- */;
2417
- /**
2418
- * @license
2419
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2420
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2421
- */let Ys=!1;function Zs(){let t=document.activeElement||document.body;for(;t.shadowRoot&&t.shadowRoot.activeElement;)t=t.shadowRoot.activeElement;return t}function Js(t){const e=t.style;if("hidden"===e.visibility||"none"===e.display)return!0;const o=window.getComputedStyle(t);return"hidden"===o.visibility||"none"===o.display}function Hs(t,e){const o=Math.max(t.tabIndex,0),s=Math.max(e.tabIndex,0);return 0===o||0===s?s>o:o>s}function Ks(t){const e=t.length;if(e<2)return t;const o=Math.ceil(e/2);return function(t,e){const o=[];for(;t.length>0&&e.length>0;)Hs(t[0],e[0])?o.push(e.shift()):o.push(t.shift());return o.concat(t,e)}(Ks(t.slice(0,o)),Ks(t.slice(o)))}function Vs(t){return null===t.offsetParent&&0===t.clientWidth&&0===t.clientHeight||Js(t)}function Qs(t){return t.getRootNode().activeElement===t}function Xs(t,e){if(t.nodeType!==Node.ELEMENT_NODE||Js(t))return!1;const o=t,s=function(t){if(!function(t){return!t.matches('[tabindex="-1"]')&&(t.matches("input, select, textarea, button, object")?t.matches(":not([disabled])"):t.matches("a[href], area[href], iframe, [tabindex], [contentEditable]"))}(t))return-1;const e=t.getAttribute("tabindex")||0;return Number(e)}(o);let i=s>0;s>=0&&e.push(o);let r=[];return r="slot"===o.localName?o.assignedNodes({flatten:!0}):(o.shadowRoot||o).children,[...r].forEach((t=>{i=Xs(t,e)||i})),i}window.addEventListener("keydown",(()=>{Ys=!0}),{capture:!0}),window.addEventListener("mousedown",(()=>{Ys=!1}),{capture:!0});
2422
- /**
2423
- * @license
2424
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2425
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2426
- */
2427
- const $s=Jt((t=>class extends t{get _keyboardActive(){return Ys}ready(){this.addEventListener("focusin",(t=>{this._shouldSetFocus(t)&&this._setFocused(!0)})),this.addEventListener("focusout",(t=>{this._shouldRemoveFocus(t)&&this._setFocused(!1)})),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(t){this.toggleAttribute("focused",t),this.toggleAttribute("focus-ring",t&&this._keyboardActive)}_shouldSetFocus(t){return!0}_shouldRemoveFocus(t){return!0}})),ti=t=>class extends(qs($s(t))){static get properties(){return{_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return["Enter"," "]}get value(){return void 0!==this._value?this._value:this.textContent.trim()}set value(t){this._value=t}ready(){super.ready();const t=this.getAttribute("value");null!==t&&(this.value=t)}focus(){this.disabled||(super.focus(),this._setFocused(!0))}_shouldSetActive(t){return!(this.disabled||"keydown"===t.type&&t.defaultPrevented)}_selectedChanged(t){this.setAttribute("aria-selected",t)}_disabledChanged(t){super._disabledChanged(t),t&&(this.selected=!1,this.blur())}_onKeyDown(t){super._onKeyDown(t),this._activeKeys.includes(t.key)&&!t.defaultPrevented&&(t.preventDefault(),this.click())}}
2428
- /**
2429
- * @license
2430
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2431
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2432
- */;
2433
- /**
2434
- * @license
2435
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2436
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2437
- */class ei extends(ti(At(Fo(Oo)))){static get is(){return"vaadin-select-item"}static get template(){return Mo`
2438
- <style>
2439
- :host {
2440
- display: inline-block;
2441
- }
2442
-
2443
- :host([hidden]) {
2444
- display: none !important;
2445
- }
2446
- </style>
2447
- <span part="checkmark" aria-hidden="true"></span>
2448
- <div part="content">
2449
- <slot></slot>
2450
- </div>
2451
- `}ready(){super.ready(),this.setAttribute("role","option")}}a(ei);
2452
- /**
2453
- @license
2454
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2455
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2456
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2457
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2458
- Code distributed by Google as part of the polymer project is also
2459
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2460
- */
2461
- const oi=new Set;class si{static debounce(t,e,o){return t instanceof si?t._cancelAsync():t=new si,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,oi.delete(this),this._callback()}))}cancel(){this.isActive()&&(this._cancelAsync(),oi.delete(this))}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null)}flush(){this.isActive()&&(this.cancel(),this._callback())}isActive(){return null!=this._timer}}function ii(t){const e=[];let o;return"slot"===t.localName?o=t.assignedElements():(e.push(t),o=[...t.children]),o.forEach((t=>e.push(...ii(t)))),e}function ri(t){return t?new Set(t.split(" ")):new Set}function ni(t){return t?[...t].join(" "):""}function li(t,e,o){const s=ri(t.getAttribute(e));s.add(o),t.setAttribute(e,ni(s))}
2462
- /**
2463
- * @license
2464
- * Copyright (c) 2023 Vaadin Ltd.
2465
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2466
- */
2467
- class ai{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule()},this.connect(),this._schedule()}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask((()=>{this.flush()})))}flush(){this._connected&&(this._scheduled=!1,this._processNodes())}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const o=[],s=[];t.length&&(e=t.filter((t=>!this._storedNodes.includes(t)))),this._storedNodes.length&&this._storedNodes.forEach(((e,i)=>{const r=t.indexOf(e);-1===r?o.push(e):r!==i&&s.push(e)})),(e.length||o.length||s.length)&&this.callback({addedNodes:e,movedNodes:s,removedNodes:o}),this._storedNodes=t}}
2468
- /**
2469
- * @license
2470
- * Copyright (c) 2022 - 2023 Vaadin Ltd.
2471
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2472
- */const ci=t=>class extends(Gs(t)){get focused(){return(this._getItems()||[]).find(Qs)}get _vertical(){return!0}focus(){const t=this._getItems();if(Array.isArray(t)){const e=this._getAvailableIndex(t,0,null,(t=>!Vs(t)));e>=0&&t[e].focus()}}_getItems(){return Array.from(this.children)}_onKeyDown(t){if(super._onKeyDown(t),t.metaKey||t.ctrlKey)return;const{key:e}=t,o=this._getItems()||[],s=o.indexOf(this.focused);let i,r;const n=this._vertical||"rtl"!==this.getAttribute("dir")?1:-1;this.__isPrevKey(e)?(r=-n,i=s-n):this.__isNextKey(e)?(r=n,i=s+n):"Home"===e?(r=1,i=0):"End"===e&&(r=-1,i=o.length-1),i=this._getAvailableIndex(o,i,r,(t=>!Vs(t))),i>=0&&(t.preventDefault(),this._focus(i,!0))}__isPrevKey(t){return this._vertical?"ArrowUp"===t:"ArrowLeft"===t}__isNextKey(t){return this._vertical?"ArrowDown"===t:"ArrowRight"===t}_focus(t,e=!1){const o=this._getItems();this._focusItem(o[t],e)}_focusItem(t){t&&(t.focus(),t.setAttribute("focus-ring",""))}_getAvailableIndex(t,e,o,s){const i=t.length;let r=e;for(let e=0;"number"==typeof r&&e<i;e+=1,r+=o||1){r<0?r=i-1:r>=i&&(r=0);const e=t[r];if(!e.hasAttribute("disabled")&&this.__isMatchingItem(e,s))return r}return-1}__isMatchingItem(t,e){return"function"!=typeof e||e(t)}}
2473
- /**
2474
- * @license
2475
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2476
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2477
- */,hi=t=>class extends(ci(t)){static get properties(){return{_hasVaadinListMixin:{value:!0},disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return!this._vertical&&"rtl"===this.getAttribute("dir")}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return"horizontal"!==this.orientation}focus(){this._observer&&this._observer.flush();const t=this.querySelector('[tabindex="0"]')||(this.items?this.items[0]:null);this._focusItem(t)}ready(){super.ready(),this.addEventListener("click",(t=>this._onClick(t)));const t=this.shadowRoot.querySelector("slot:not([name])");this._observer=new ai(t,(()=>{this._setItems(this._filterItems(ii(this)))}))}_getItems(){return this.items}_enhanceItems(t,e,o,s){if(!s&&t){this.setAttribute("aria-orientation",e||"vertical"),t.forEach((t=>{e?t.setAttribute("orientation",e):t.removeAttribute("orientation")})),this._setFocusable(o||0);const s=t[o];t.forEach((t=>{t.selected=t===s})),s&&!s.disabled&&this._scrollToItem(o)}}_filterItems(t){return t.filter((t=>t._hasVaadinItemMixin))}_onClick(t){if(t.metaKey||t.shiftKey||t.ctrlKey||t.defaultPrevented)return;const e=this._filterItems(t.composedPath())[0];let o;e&&!e.disabled&&(o=this.items.indexOf(e))>=0&&(this.selected=o)}_searchKey(t,e){return this._searchReset=si.debounce(this._searchReset,as.after(500),(()=>{this._searchBuf=""})),this._searchBuf+=e.toLowerCase(),this.items.some((t=>this.__isMatchingKey(t)))||(this._searchBuf=e.toLowerCase()),this._getAvailableIndex(this.items,1===this._searchBuf.length?t+1:t,1,(t=>this.__isMatchingKey(t)&&"none"!==getComputedStyle(t).display))}__isMatchingKey(t){return t.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(t){if(t.metaKey||t.ctrlKey)return;const e=t.key,o=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(e)&&1===e.length){const t=this._searchKey(o,e);t>=0&&this._focus(t)}else super._onKeyDown(t)}_isItemHidden(t){return"none"===getComputedStyle(t).display}_setFocusable(t){t=this._getAvailableIndex(this.items,t,1);const e=this.items[t];this.items.forEach((t=>{t.tabIndex=t===e?0:-1}))}_focus(t){this.items.forEach(((e,o)=>{e.focused=o===t})),this._setFocusable(t),this._scrollToItem(t),super._focus(t)}_scrollToItem(t){const e=this.items[t];if(!e)return;const o=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],s=this._scrollerElement.getBoundingClientRect(),i=(this.items[t+1]||e).getBoundingClientRect(),r=(this.items[t-1]||e).getBoundingClientRect();let n=0;!this._isRTL&&i[o[1]]>=s[o[1]]||this._isRTL&&i[o[1]]<=s[o[1]]?n=i[o[1]]-s[o[1]]:(!this._isRTL&&r[o[0]]<=s[o[0]]||this._isRTL&&r[o[0]]>=s[o[0]])&&(n=r[o[0]]-s[o[0]]),this._scroll(n)}_scroll(t){if(this._vertical)this._scrollerElement.scrollTop+=t;else{const e=this.getAttribute("dir")||"ltr",o=
2478
- /**
2479
- * @license
2480
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2481
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2482
- */
2483
- function(t,e){const{scrollLeft:o}=t;return"rtl"!==e?o:t.scrollWidth-t.clientWidth+o}(this._scrollerElement,e)+t;!function(t,e,o){t.scrollLeft="rtl"!==e?o:t.clientWidth-t.scrollWidth+o}
2484
- /**
2485
- * @license
2486
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2487
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2488
- */(this._scrollerElement,e,o)}}}
2489
- /**
2490
- * @license
2491
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2492
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2493
- */,ui=Jt((t=>"function"==typeof t.prototype.addController?t:class extends t{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach((t=>{t.hostConnected&&t.hostConnected()}))}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach((t=>{t.hostDisconnected&&t.hostDisconnected()}))}addController(t){this.__controllers.add(t),void 0!==this.$&&this.isConnected&&t.hostConnected&&t.hostConnected()}removeController(t){this.__controllers.delete(t)}}));
2494
- /**
2495
- * @license
2496
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2497
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2498
- */
2499
- class di extends(hi(At(Fo(ui(Oo))))){static get is(){return"vaadin-select-list-box"}static get template(){return Mo`
2500
- <style>
2501
- :host {
2502
- display: flex;
2503
- }
2504
-
2505
- :host([hidden]) {
2506
- display: none !important;
2507
- }
2508
-
2509
- [part='items'] {
2510
- height: 100%;
2511
- width: 100%;
2512
- overflow-y: auto;
2513
- -webkit-overflow-scrolling: touch;
2514
- }
2515
- </style>
2516
- <div part="items">
2517
- <slot></slot>
2518
- </div>
2519
- `}static get properties(){return{orientation:{readOnly:!0}}}get _scrollerElement(){return this.shadowRoot.querySelector('[part="items"]')}ready(){super.ready(),this.setAttribute("role","listbox")}}a(di);
2520
- /**
2521
- @license
2522
- Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2523
- This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
2524
- The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2525
- The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2526
- Code distributed by Google as part of the polymer project is also
2527
- subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2528
- */
2529
- let mi=!1,pi=[],fi=[];function vi(t){const e=t[0],o=t[1],s=t[2];try{o.apply(e,s)}catch(t){setTimeout((()=>{throw t}))}}
2530
- /**
2531
- * @license
2532
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2533
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2534
- */
2535
- const bi=t=>t.test(navigator.userAgent),gi=t=>t.test(navigator.platform);bi(/Android/u),bi(/Chrome/u)&&/Google Inc/u.test(navigator.vendor),bi(/Firefox/u);const yi=gi(/^iPad/u)||gi(/^Mac/u)&&navigator.maxTouchPoints>1,wi=gi(/^iPhone/u)||yi;bi(/^((?!chrome|android).)*safari/iu),(()=>{try{return document.createEvent("TouchEvent"),!0}catch(t){return!1}})();
2536
- /**
2537
- * @license
2538
- * Copyright (c) 2017 Anton Korzunov
2539
- * SPDX-License-Identifier: MIT
2540
- */
2541
- let xi=new WeakMap,Ai=new WeakMap,ki={},_i=0;const Ci=t=>t&&t.nodeType===Node.ELEMENT_NODE,Si=(...t)=>{console.error(`Error: ${t.join(" ")}. Skip setting aria-hidden.`)};
2542
- /**
2543
- * @license
2544
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2545
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2546
- */
2547
- class zi{constructor(t,e){this.host=t,this.callback="function"==typeof e?e:()=>t}showModal(){const t=this.callback();this.__showOthers=((t,e=document.body,o="data-aria-hidden")=>{const s=Array.from(Array.isArray(t)?t:[t]);return e&&s.push(...Array.from(e.querySelectorAll("[aria-live]"))),((t,e,o,s)=>{const i=((t,e)=>Ci(t)?e.map((e=>{if(!Ci(e))return Si(e,"is not a valid element"),null;let o=e;for(;o&&o!==t;){if(t.contains(o))return e;o=o.getRootNode().host}return Si(e,"is not contained inside",t),null})).filter((t=>Boolean(t))):(Si(t,"is not a valid element"),[]))(e,Array.isArray(t)?t:[t]);ki[o]||(ki[o]=new WeakMap);const r=ki[o],n=[],l=new Set,a=new Set(i),c=t=>{if(!t||l.has(t))return;l.add(t);const e=t.assignedSlot;e&&c(e),c(t.parentNode||t.host)};i.forEach(c);const h=t=>{if(!t||a.has(t))return;const e=t.shadowRoot;(e?[...t.children,...e.children]:[...t.children]).forEach((t=>{if(!["template","script","style"].includes(t.localName))if(l.has(t))h(t);else{const e=t.getAttribute(s),i=null!==e&&"false"!==e,l=(xi.get(t)||0)+1,a=(r.get(t)||0)+1;xi.set(t,l),r.set(t,a),n.push(t),1===l&&i&&Ai.set(t,!0),1===a&&t.setAttribute(o,"true"),i||t.setAttribute(s,"true")}}))};return h(e),l.clear(),_i+=1,()=>{n.forEach((t=>{const e=xi.get(t)-1,i=r.get(t)-1;xi.set(t,e),r.set(t,i),e||(Ai.has(t)?Ai.delete(t):t.removeAttribute(s)),i||t.removeAttribute(o)})),_i-=1,_i||(xi=new WeakMap,xi=new WeakMap,Ai=new WeakMap,ki={})}})(s,e,o,"aria-hidden")})(t)}close(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null)}}
2548
- /**
2549
- * @license
2550
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2551
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2552
- */class Ti{saveFocus(t){this.focusNode=t||Zs()}restoreFocus(){const t=this.focusNode;t&&(Zs()===document.body?setTimeout((()=>t.focus())):t.focus(),this.focusNode=null)}}
2553
- /**
2554
- * @license
2555
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2556
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2557
- */const Ni=[];class Ii{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this)}get __focusableElements(){return function(t){const e=[];return Xs(t,e)?Ks(e):e}(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Qs).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown)}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown)}trapFocus(t){if(this.__trapNode=t,0===this.__focusableElements.length)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Ni.push(this),-1===this.__focusedElementIndex&&this.__focusableElements[0].focus()}releaseFocus(){this.__trapNode=null,Ni.pop()}__onKeyDown(t){this.__trapNode&&this===Array.from(Ni).pop()&&"Tab"===t.key&&(t.preventDefault(),this.__focusNextElement(t.shiftKey))}__focusNextElement(t=!1){const e=this.__focusableElements,o=e[(e.length+this.__focusedElementIndex+(t?-1:1))%e.length];o.focus(),"input"===o.localName&&o.select()}}
2558
- /**
2559
- * @license
2560
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2561
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2562
- */const Pi=t=>class extends(ui(t)){static get properties(){return{focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new zi(this),this.__focusTrapController=new Ii(this),this.__focusRestorationController=new Ti}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController)}_resetFocus(){this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()&&this.__focusRestorationController.restoreFocus()}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode)}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay))}_shouldRestoreFocus(){const t=Zs();return t===document.body||this._deepContains(t)}_deepContains(t){if(this.contains(t))return!0;let e=t;const o=t.ownerDocument;for(;e&&e!==o&&e!==this;)e=e.parentNode||e.host;return e===this}}
2563
- /**
2564
- * @license
2565
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2566
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2567
- */,Bi=()=>Array.from(document.body.children).filter((t=>t instanceof HTMLElement&&t._hasOverlayStackMixin&&!t.hasAttribute("closing"))).sort(((t,e)=>t.__zIndex-e.__zIndex||0)),Mi=t=>class extends t{constructor(){super(),this._hasOverlayStackMixin=!0}get _last(){return(()=>this===Bi().pop())()}bringToFront(){let t="";const e=Bi().filter((t=>t!==this)).pop();e&&(t=e.__zIndex+1),this.style.zIndex=t,this.__zIndex=t||parseFloat(getComputedStyle(this).zIndex)}_enterModalState(){"none"!==document.body.style.pointerEvents&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),Bi().forEach((t=>{t!==this&&(t.$.overlay.style.pointerEvents="none")}))}_exitModalState(){void 0!==this._previousDocumentPointerEvents&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const t=Bi();let e;for(;(e=t.pop())&&(e===this||(e.$.overlay.style.removeProperty("pointer-events"),e.modeless)););}}
2568
- /**
2569
- * @license
2570
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2571
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2572
- */,Ei=t=>class extends(Pi(Mi(t))){static get properties(){return{opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),wi&&(this._boundIosResizeListener=()=>this._detectIosNavbar())}ready(){super.ready(),this.addEventListener("click",(()=>{})),this.$.backdrop.addEventListener("click",(()=>{})),this.addEventListener("mouseup",(()=>{document.activeElement===document.body&&"0"===this.$.overlay.getAttribute("tabindex")&&this.$.overlay.focus()}))}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener))}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener)}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model)}close(t){const e=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),e.defaultPrevented||(this.opened=!1)}_detectIosNavbar(){if(!this.opened)return;const t=window.innerHeight,e=window.innerWidth,o=document.documentElement.clientHeight;this.style.setProperty("--vaadin-overlay-viewport-bottom",e>t&&o>t?o-t+"px":"0")}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0)}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0)}_rendererOrDataChanged(t,e,o,s){const i=this._oldOwner!==e||this._oldModel!==o;this._oldModel=o,this._oldOwner=e;const r=this._oldRenderer!==t;this._oldRenderer=t;const n=this._oldOpened!==s;this._oldOpened=s,r&&(this.innerHTML="",delete this._$litPart$),s&&t&&(r||n||i)&&this.requestContentUpdate()}_modelessChanged(t){t?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState())}_openedChanged(t,e){var o;t?(this._saveFocus(),this._animatedOpening(),o=()=>{this._trapFocus();const t=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(t)},mi||(mi=!0,requestAnimationFrame((function(){mi=!1,function(t){for(;t.length;)vi(t.shift())}(pi),setTimeout((function(){!function(t){for(let e=0,o=t.length;e<o;e++)vi(t.shift())}(fi)}))}))),fi.push([this,o,undefined]),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):e&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners())}_hiddenChanged(t){t&&this.hasAttribute("closing")&&this._flushAnimation("closing")}_shouldAnimate(){const t=getComputedStyle(this),e=t.getPropertyValue("animation-name");return!("none"===t.getPropertyValue("display"))&&e&&"none"!==e}_enqueueAnimation(t,e){const o=`__${t}Handler`,s=t=>{t&&t.target!==this||(e(),this.removeEventListener("animationend",s),delete this[o])};this[o]=s,this.addEventListener("animationend",s)}_flushAnimation(t){const e=`__${t}Handler`;"function"==typeof this[e]&&this[e]()}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",(()=>{this._finishOpening()})):this._finishOpening()}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront()}_finishOpening(){this.removeAttribute("opening")}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"))}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",(()=>{this._finishClosing()})):this._finishClosing())}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder)}_mouseDownListener(t){this._mouseDownInside=t.composedPath().indexOf(this.$.overlay)>=0}_mouseUpListener(t){this._mouseUpInside=t.composedPath().indexOf(this.$.overlay)>=0}_shouldCloseOnOutsideClick(t){return this._last}_outsideClickListener(t){if(t.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside)return this._mouseDownInside=!1,void(this._mouseUpInside=!1);if(!this._shouldCloseOnOutsideClick(t))return;const e=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}_keydownListener(t){if(this._last&&(!this.modeless||t.composedPath().includes(this.$.overlay))&&"Escape"===t.key){const e=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:t}});this.dispatchEvent(e),this.opened&&!e.defaultPrevented&&this.close(t)}}}
2573
- /**
2574
- * @license
2575
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2576
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2577
- */,Oi={start:"top",end:"bottom"},Di={start:"left",end:"right"},ji=new ResizeObserver((t=>{setTimeout((()=>{t.forEach((t=>{t.target.__overlay&&t.target.__overlay._updatePosition()}))}))})),Ui=t=>class extends t{static get properties(){return{positionTarget:{type:Object,value:null},horizontalAlign:{type:String,value:"start"},verticalAlign:{type:String,value:"top"},noHorizontalOverlap:{type:Boolean,value:!1},noVerticalOverlap:{type:Boolean,value:!1},requiredVerticalSpace:{type:Number,value:0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.addEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes=function(t){const e=[];for(;t;){if(t.nodeType===Node.DOCUMENT_NODE){e.push(t);break}t.nodeType!==Node.DOCUMENT_FRAGMENT_NODE?t=t.assignedSlot?t.assignedSlot:t.parentNode:(e.push(t),t=t.host)}return e}(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach((t=>{t.addEventListener("scroll",this.__onScroll,!0)}))}__removeUpdatePositionEventListeners(){window.removeEventListener("resize",this._updatePosition),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach((t=>{t.removeEventListener("scroll",this.__onScroll,!0)})),this.__positionTargetAncestorRootNodes=null)}__overlayOpenedChanged(t,e){if(this.__removeUpdatePositionEventListeners(),e&&(e.__overlay=null,ji.unobserve(e),t&&(this.__addUpdatePositionEventListeners(),e.__overlay=this,ji.observe(e))),t){const t=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach((e=>{this.__margins[e]=parseInt(t[e],10)}))),this.setAttribute("dir",t.direction),this._updatePosition(),requestAnimationFrame((()=>this._updatePosition()))}}__positionSettingsChanged(){this._updatePosition()}__onScroll(t){this.contains(t.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened)return;const t=this.positionTarget.getBoundingClientRect(),e=this.__shouldAlignStartVertically(t);this.style.justifyContent=e?"flex-start":"flex-end";const o=this.__isRTL,s=this.__shouldAlignStartHorizontally(t,o),i=!o&&s||o&&!s;this.style.alignItems=i?"flex-start":"flex-end";const r=this.getBoundingClientRect(),n=this.__calculatePositionInOneDimension(t,r,this.noVerticalOverlap,Oi,this,e),l=this.__calculatePositionInOneDimension(t,r,this.noHorizontalOverlap,Di,this,s);Object.assign(this.style,n,l),this.toggleAttribute("bottom-aligned",!e),this.toggleAttribute("top-aligned",e),this.toggleAttribute("end-aligned",!i),this.toggleAttribute("start-aligned",i)}__shouldAlignStartHorizontally(t,e){const o=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const s=Math.min(window.innerWidth,document.documentElement.clientWidth);return this.__shouldAlignStart(t,o,s,this.__margins,!e&&"start"===this.horizontalAlign||e&&"end"===this.horizontalAlign,this.noHorizontalOverlap,Di)}__shouldAlignStartVertically(t){const e=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight);return this.__shouldAlignStart(t,e,o,this.__margins,"top"===this.verticalAlign,this.noVerticalOverlap,Oi)}__shouldAlignStart(t,e,o,s,i,r,n){const l=o-t[r?n.end:n.start]-s[n.end],a=t[r?n.start:n.end]-s[n.start],c=i?l:a;return i===(c>(i?a:l)||c>e)}__adjustBottomProperty(t,e,o){let s;if(t===e.end){if(e.end===Oi.end){const t=Math.min(window.innerHeight,document.documentElement.clientHeight);o>t&&this.__oldViewportHeight&&(s=o-(this.__oldViewportHeight-t)),this.__oldViewportHeight=t}if(e.end===Di.end){const t=Math.min(window.innerWidth,document.documentElement.clientWidth);o>t&&this.__oldViewportWidth&&(s=o-(this.__oldViewportWidth-t)),this.__oldViewportWidth=t}}return s}__calculatePositionInOneDimension(t,e,o,s,i,r){const n=r?s.start:s.end,l=r?s.end:s.start,a=parseFloat(i.style[n]||getComputedStyle(i)[n]),c=this.__adjustBottomProperty(n,s,a),h=c?`${c}px`:`${a+(e[r?s.start:s.end]-t[o===r?s.end:s.start])*(r?-1:1)}px`;return{[n]:h,[l]:""}}}
2578
- /**
2579
- * @license
2580
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2581
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2582
- */;bt("vaadin-select-overlay",[f`
2583
- :host {
2584
- z-index: 200;
2585
- position: fixed;
2586
-
2587
- /* Despite of what the names say, <vaadin-overlay> is just a container
2588
- for position/sizing/alignment. The actual overlay is the overlay part. */
2589
-
2590
- /* Default position constraints: the entire viewport. Note: themes can
2591
- override this to introduce gaps between the overlay and the viewport. */
2592
- inset: 0;
2593
- bottom: var(--vaadin-overlay-viewport-bottom);
2594
-
2595
- /* Use flexbox alignment for the overlay part. */
2596
- display: flex;
2597
- flex-direction: column; /* makes dropdowns sizing easier */
2598
- /* Align to center by default. */
2599
- align-items: center;
2600
- justify-content: center;
2601
-
2602
- /* Allow centering when max-width/max-height applies. */
2603
- margin: auto;
2604
-
2605
- /* The host is not clickable, only the overlay part is. */
2606
- pointer-events: none;
2607
-
2608
- /* Remove tap highlight on touch devices. */
2609
- -webkit-tap-highlight-color: transparent;
2610
-
2611
- /* CSS API for host */
2612
- --vaadin-overlay-viewport-bottom: 0;
2613
- }
2614
-
2615
- :host([hidden]),
2616
- :host(:not([opened]):not([closing])) {
2617
- display: none !important;
2618
- }
2619
-
2620
- [part='overlay'] {
2621
- -webkit-overflow-scrolling: touch;
2622
- overflow: auto;
2623
- pointer-events: auto;
2624
-
2625
- /* Prevent overflowing the host */
2626
- max-width: 100%;
2627
- box-sizing: border-box;
2628
-
2629
- -webkit-tap-highlight-color: initial; /* reenable tap highlight inside */
2630
- }
2631
-
2632
- [part='backdrop'] {
2633
- z-index: -1;
2634
- content: '';
2635
- background: rgba(0, 0, 0, 0.5);
2636
- position: fixed;
2637
- inset: 0;
2638
- pointer-events: auto;
2639
- }
2640
- `
2641
- /**
2642
- * @license
2643
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2644
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2645
- */,f`
2646
- :host {
2647
- align-items: flex-start;
2648
- justify-content: flex-start;
2649
- }
2650
-
2651
- @media (forced-colors: active) {
2652
- [part='overlay'] {
2653
- outline: 3px solid;
2654
- }
2655
- }
2656
- `],{moduleId:"vaadin-select-overlay-styles"});class Fi extends(Ui(Ei(Fo(At(Oo))))){static get is(){return"vaadin-select-overlay"}static get template(){return Mo`
2657
- <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2658
- <div part="overlay" id="overlay" tabindex="0">
2659
- <div part="content" id="content">
2660
- <slot></slot>
2661
- </div>
2662
- </div>
2663
- `}requestContentUpdate(){if(super.requestContentUpdate(),this.owner){const t=this._getMenuElement();this.owner._assignMenuElement(t)}}_getMenuElement(){return Array.from(this.children).find((t=>"style"!==t.localName))}}a(Fi);
2664
- /**
2665
- * @license
2666
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
2667
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2668
- */
2669
- const Ri=t=>class extends(Ls(t)){static get properties(){return{tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(t,e){super._disabledChanged(t,e),t?(void 0!==this.tabindex&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):e&&(this.tabindex=this._lastTabIndex)}_tabindexChanged(t){this.disabled&&-1!==t&&(this._lastTabIndex=t,this.tabindex=-1)}}
2670
- /**
2671
- * @license
2672
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2673
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2674
- */,Wi=t=>class extends(qs(Ri($s(t)))){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(t){super._onKeyDown(t),t.altKey||t.shiftKey||t.ctrlKey||t.metaKey||this._activeKeys.includes(t.key)&&(t.preventDefault(),this.click())}}
2675
- /**
2676
- * @license
2677
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2678
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2679
- */;
2680
- /**
2681
- * @license
2682
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
2683
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2684
- */
2685
- bt("vaadin-select-value-button",f`
2686
- :host {
2687
- display: inline-block;
2688
- position: relative;
2689
- outline: none;
2690
- white-space: nowrap;
2691
- -webkit-user-select: none;
2692
- -moz-user-select: none;
2693
- user-select: none;
2694
- min-width: 0;
2695
- width: 0;
2696
- }
2697
-
2698
- ::slotted(*) {
2699
- padding-left: 0;
2700
- padding-right: 0;
2701
- flex: auto;
2702
- }
2703
-
2704
- /* placeholder styles */
2705
- ::slotted(*:not([selected])) {
2706
- line-height: 1;
2707
- }
2708
-
2709
- .vaadin-button-container {
2710
- display: inline-flex;
2711
- align-items: center;
2712
- justify-content: center;
2713
- text-align: inherit;
2714
- width: 100%;
2715
- height: 100%;
2716
- min-height: inherit;
2717
- text-shadow: inherit;
2718
- }
2719
-
2720
- [part='label'] {
2721
- white-space: nowrap;
2722
- overflow: hidden;
2723
- text-overflow: ellipsis;
2724
- width: 100%;
2725
- line-height: inherit;
2726
- }
2727
- `,{moduleId:"vaadin-select-value-button-styles"});class Li extends(Wi(At(Oo))){static get is(){return"vaadin-select-value-button"}static get template(){return Mo`
2728
- <div class="vaadin-button-container">
2729
- <span part="label">
2730
- <slot></slot>
2731
- </span>
2732
- </div>
2733
- `}}a(Li);
2734
- /**
2735
- * @license
2736
- * Copyright (c) 2021 - 2023 Vaadin Ltd..
2737
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2738
- */
2739
- const Gi=f`
2740
- .sr-only {
2741
- border: 0 !important;
2742
- clip: rect(1px, 1px, 1px, 1px) !important;
2743
- -webkit-clip-path: inset(50%) !important;
2744
- clip-path: inset(50%) !important;
2745
- height: 1px !important;
2746
- margin: -1px !important;
2747
- overflow: hidden !important;
2748
- padding: 0 !important;
2749
- position: absolute !important;
2750
- width: 1px !important;
2751
- white-space: nowrap !important;
2752
- }
2753
- `,qi=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,Yi=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function Zi(t,e){if("function"!=typeof t)return;const o=qi.exec(t.toString());if(o)try{t=new Function(o[1])}catch(t){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",t)}return t(e)}window.Vaadin=window.Vaadin||{};function Ji(){
2754
- /*! vaadin-dev-mode:start
2755
- (function () {
2756
- 'use strict';
2757
-
2758
- var _typeof = typeof Symbol === "function" && typeof Symbol.iterator === "symbol" ? function (obj) {
2759
- return typeof obj;
2760
- } : function (obj) {
2761
- return obj && typeof Symbol === "function" && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
2762
- };
2763
-
2764
- var classCallCheck = function (instance, Constructor) {
2765
- if (!(instance instanceof Constructor)) {
2766
- throw new TypeError("Cannot call a class as a function");
2767
- }
2768
- };
2769
-
2770
- var createClass = function () {
2771
- function defineProperties(target, props) {
2772
- for (var i = 0; i < props.length; i++) {
2773
- var descriptor = props[i];
2774
- descriptor.enumerable = descriptor.enumerable || false;
2775
- descriptor.configurable = true;
2776
- if ("value" in descriptor) descriptor.writable = true;
2777
- Object.defineProperty(target, descriptor.key, descriptor);
2778
- }
2779
- }
2780
-
2781
- return function (Constructor, protoProps, staticProps) {
2782
- if (protoProps) defineProperties(Constructor.prototype, protoProps);
2783
- if (staticProps) defineProperties(Constructor, staticProps);
2784
- return Constructor;
2785
- };
2786
- }();
2787
-
2788
- var getPolymerVersion = function getPolymerVersion() {
2789
- return window.Polymer && window.Polymer.version;
2790
- };
2791
-
2792
- var StatisticsGatherer = function () {
2793
- function StatisticsGatherer(logger) {
2794
- classCallCheck(this, StatisticsGatherer);
2795
-
2796
- this.now = new Date().getTime();
2797
- this.logger = logger;
2798
- }
2799
-
2800
- createClass(StatisticsGatherer, [{
2801
- key: 'frameworkVersionDetectors',
2802
- value: function frameworkVersionDetectors() {
2803
- return {
2804
- 'Flow': function Flow() {
2805
- if (window.Vaadin && window.Vaadin.Flow && window.Vaadin.Flow.clients) {
2806
- var flowVersions = Object.keys(window.Vaadin.Flow.clients).map(function (key) {
2807
- return window.Vaadin.Flow.clients[key];
2808
- }).filter(function (client) {
2809
- return client.getVersionInfo;
2810
- }).map(function (client) {
2811
- return client.getVersionInfo().flow;
2812
- });
2813
- if (flowVersions.length > 0) {
2814
- return flowVersions[0];
2815
- }
2816
- }
2817
- },
2818
- 'Vaadin Framework': function VaadinFramework() {
2819
- if (window.vaadin && window.vaadin.clients) {
2820
- var frameworkVersions = Object.values(window.vaadin.clients).filter(function (client) {
2821
- return client.getVersionInfo;
2822
- }).map(function (client) {
2823
- return client.getVersionInfo().vaadinVersion;
2824
- });
2825
- if (frameworkVersions.length > 0) {
2826
- return frameworkVersions[0];
2827
- }
2828
- }
2829
- },
2830
- 'AngularJs': function AngularJs() {
2831
- if (window.angular && window.angular.version && window.angular.version) {
2832
- return window.angular.version.full;
2833
- }
2834
- },
2835
- 'Angular': function Angular() {
2836
- if (window.ng) {
2837
- var tags = document.querySelectorAll("[ng-version]");
2838
- if (tags.length > 0) {
2839
- return tags[0].getAttribute("ng-version");
2840
- }
2841
- return "Unknown";
2842
- }
2843
- },
2844
- 'Backbone.js': function BackboneJs() {
2845
- if (window.Backbone) {
2846
- return window.Backbone.VERSION;
2847
- }
2848
- },
2849
- 'React': function React() {
2850
- var reactSelector = '[data-reactroot], [data-reactid]';
2851
- if (!!document.querySelector(reactSelector)) {
2852
- // React does not publish the version by default
2853
- return "unknown";
2854
- }
2855
- },
2856
- 'Ember': function Ember() {
2857
- if (window.Em && window.Em.VERSION) {
2858
- return window.Em.VERSION;
2859
- } else if (window.Ember && window.Ember.VERSION) {
2860
- return window.Ember.VERSION;
2861
- }
2862
- },
2863
- 'jQuery': function (_jQuery) {
2864
- function jQuery() {
2865
- return _jQuery.apply(this, arguments);
2866
- }
2867
-
2868
- jQuery.toString = function () {
2869
- return _jQuery.toString();
2870
- };
2871
-
2872
- return jQuery;
2873
- }(function () {
2874
- if (typeof jQuery === 'function' && jQuery.prototype.jquery !== undefined) {
2875
- return jQuery.prototype.jquery;
2876
- }
2877
- }),
2878
- 'Polymer': function Polymer() {
2879
- var version = getPolymerVersion();
2880
- if (version) {
2881
- return version;
2882
- }
2883
- },
2884
- 'LitElement': function LitElement() {
2885
- var version = window.litElementVersions && window.litElementVersions[0];
2886
- if (version) {
2887
- return version;
2888
- }
2889
- },
2890
- 'LitHtml': function LitHtml() {
2891
- var version = window.litHtmlVersions && window.litHtmlVersions[0];
2892
- if (version) {
2893
- return version;
2894
- }
2895
- },
2896
- 'Vue.js': function VueJs() {
2897
- if (window.Vue) {
2898
- return window.Vue.version;
2899
- }
2900
- }
2901
- };
2902
- }
2903
- }, {
2904
- key: 'getUsedVaadinElements',
2905
- value: function getUsedVaadinElements(elements) {
2906
- var version = getPolymerVersion();
2907
- var elementClasses = void 0;
2908
- // NOTE: In case you edit the code here, YOU MUST UPDATE any statistics reporting code in Flow.
2909
- // Check all locations calling the method getEntries() in
2910
- // https://github.com/vaadin/flow/blob/master/flow-server/src/main/java/com/vaadin/flow/internal/UsageStatistics.java#L106
2911
- // Currently it is only used by BootstrapHandler.
2912
- if (version && version.indexOf('2') === 0) {
2913
- // Polymer 2: components classes are stored in window.Vaadin
2914
- elementClasses = Object.keys(window.Vaadin).map(function (c) {
2915
- return window.Vaadin[c];
2916
- }).filter(function (c) {
2917
- return c.is;
2918
- });
2919
- } else {
2920
- // Polymer 3: components classes are stored in window.Vaadin.registrations
2921
- elementClasses = window.Vaadin.registrations || [];
2922
- }
2923
- elementClasses.forEach(function (klass) {
2924
- var version = klass.version ? klass.version : "0.0.0";
2925
- elements[klass.is] = { version: version };
2926
- });
2927
- }
2928
- }, {
2929
- key: 'getUsedVaadinThemes',
2930
- value: function getUsedVaadinThemes(themes) {
2931
- ['Lumo', 'Material'].forEach(function (themeName) {
2932
- var theme;
2933
- var version = getPolymerVersion();
2934
- if (version && version.indexOf('2') === 0) {
2935
- // Polymer 2: themes are stored in window.Vaadin
2936
- theme = window.Vaadin[themeName];
2937
- } else {
2938
- // Polymer 3: themes are stored in custom element registry
2939
- theme = customElements.get('vaadin-' + themeName.toLowerCase() + '-styles');
2940
- }
2941
- if (theme && theme.version) {
2942
- themes[themeName] = { version: theme.version };
2943
- }
2944
- });
2945
- }
2946
- }, {
2947
- key: 'getFrameworks',
2948
- value: function getFrameworks(frameworks) {
2949
- var detectors = this.frameworkVersionDetectors();
2950
- Object.keys(detectors).forEach(function (framework) {
2951
- var detector = detectors[framework];
2952
- try {
2953
- var version = detector();
2954
- if (version) {
2955
- frameworks[framework] = { version: version };
2956
- }
2957
- } catch (e) {}
2958
- });
2959
- }
2960
- }, {
2961
- key: 'gather',
2962
- value: function gather(storage) {
2963
- var storedStats = storage.read();
2964
- var gatheredStats = {};
2965
- var types = ["elements", "frameworks", "themes"];
2966
-
2967
- types.forEach(function (type) {
2968
- gatheredStats[type] = {};
2969
- if (!storedStats[type]) {
2970
- storedStats[type] = {};
2971
- }
2972
- });
2973
-
2974
- var previousStats = JSON.stringify(storedStats);
2975
-
2976
- this.getUsedVaadinElements(gatheredStats.elements);
2977
- this.getFrameworks(gatheredStats.frameworks);
2978
- this.getUsedVaadinThemes(gatheredStats.themes);
2979
-
2980
- var now = this.now;
2981
- types.forEach(function (type) {
2982
- var keys = Object.keys(gatheredStats[type]);
2983
- keys.forEach(function (key) {
2984
- if (!storedStats[type][key] || _typeof(storedStats[type][key]) != _typeof({})) {
2985
- storedStats[type][key] = { firstUsed: now };
2986
- }
2987
- // Discards any previously logged version number
2988
- storedStats[type][key].version = gatheredStats[type][key].version;
2989
- storedStats[type][key].lastUsed = now;
2990
- });
2991
- });
2992
-
2993
- var newStats = JSON.stringify(storedStats);
2994
- storage.write(newStats);
2995
- if (newStats != previousStats && Object.keys(storedStats).length > 0) {
2996
- this.logger.debug("New stats: " + newStats);
2997
- }
2998
- }
2999
- }]);
3000
- return StatisticsGatherer;
3001
- }();
3002
-
3003
- var StatisticsStorage = function () {
3004
- function StatisticsStorage(key) {
3005
- classCallCheck(this, StatisticsStorage);
3006
-
3007
- this.key = key;
3008
- }
3009
-
3010
- createClass(StatisticsStorage, [{
3011
- key: 'read',
3012
- value: function read() {
3013
- var localStorageStatsString = localStorage.getItem(this.key);
3014
- try {
3015
- return JSON.parse(localStorageStatsString ? localStorageStatsString : '{}');
3016
- } catch (e) {
3017
- return {};
3018
- }
3019
- }
3020
- }, {
3021
- key: 'write',
3022
- value: function write(data) {
3023
- localStorage.setItem(this.key, data);
3024
- }
3025
- }, {
3026
- key: 'clear',
3027
- value: function clear() {
3028
- localStorage.removeItem(this.key);
3029
- }
3030
- }, {
3031
- key: 'isEmpty',
3032
- value: function isEmpty() {
3033
- var storedStats = this.read();
3034
- var empty = true;
3035
- Object.keys(storedStats).forEach(function (key) {
3036
- if (Object.keys(storedStats[key]).length > 0) {
3037
- empty = false;
3038
- }
3039
- });
3040
-
3041
- return empty;
3042
- }
3043
- }]);
3044
- return StatisticsStorage;
3045
- }();
3046
-
3047
- var StatisticsSender = function () {
3048
- function StatisticsSender(url, logger) {
3049
- classCallCheck(this, StatisticsSender);
3050
-
3051
- this.url = url;
3052
- this.logger = logger;
3053
- }
3054
-
3055
- createClass(StatisticsSender, [{
3056
- key: 'send',
3057
- value: function send(data, errorHandler) {
3058
- var logger = this.logger;
3059
-
3060
- if (navigator.onLine === false) {
3061
- logger.debug("Offline, can't send");
3062
- errorHandler();
3063
- return;
3064
- }
3065
- logger.debug("Sending data to " + this.url);
3066
-
3067
- var req = new XMLHttpRequest();
3068
- req.withCredentials = true;
3069
- req.addEventListener("load", function () {
3070
- // Stats sent, nothing more to do
3071
- logger.debug("Response: " + req.responseText);
3072
- });
3073
- req.addEventListener("error", function () {
3074
- logger.debug("Send failed");
3075
- errorHandler();
3076
- });
3077
- req.addEventListener("abort", function () {
3078
- logger.debug("Send aborted");
3079
- errorHandler();
3080
- });
3081
- req.open("POST", this.url);
3082
- req.setRequestHeader("Content-Type", "application/json");
3083
- req.send(data);
3084
- }
3085
- }]);
3086
- return StatisticsSender;
3087
- }();
3088
-
3089
- var StatisticsLogger = function () {
3090
- function StatisticsLogger(id) {
3091
- classCallCheck(this, StatisticsLogger);
3092
-
3093
- this.id = id;
3094
- }
3095
-
3096
- createClass(StatisticsLogger, [{
3097
- key: '_isDebug',
3098
- value: function _isDebug() {
3099
- return localStorage.getItem("vaadin." + this.id + ".debug");
3100
- }
3101
- }, {
3102
- key: 'debug',
3103
- value: function debug(msg) {
3104
- if (this._isDebug()) {
3105
- console.info(this.id + ": " + msg);
3106
- }
3107
- }
3108
- }]);
3109
- return StatisticsLogger;
3110
- }();
3111
-
3112
- var UsageStatistics = function () {
3113
- function UsageStatistics() {
3114
- classCallCheck(this, UsageStatistics);
3115
-
3116
- this.now = new Date();
3117
- this.timeNow = this.now.getTime();
3118
- this.gatherDelay = 10; // Delay between loading this file and gathering stats
3119
- this.initialDelay = 24 * 60 * 60;
3120
-
3121
- this.logger = new StatisticsLogger("statistics");
3122
- this.storage = new StatisticsStorage("vaadin.statistics.basket");
3123
- this.gatherer = new StatisticsGatherer(this.logger);
3124
- this.sender = new StatisticsSender("https://tools.vaadin.com/usage-stats/submit", this.logger);
3125
- }
3126
-
3127
- createClass(UsageStatistics, [{
3128
- key: 'maybeGatherAndSend',
3129
- value: function maybeGatherAndSend() {
3130
- var _this = this;
3131
-
3132
- if (localStorage.getItem(UsageStatistics.optOutKey)) {
3133
- return;
3134
- }
3135
- this.gatherer.gather(this.storage);
3136
- setTimeout(function () {
3137
- _this.maybeSend();
3138
- }, this.gatherDelay * 1000);
3139
- }
3140
- }, {
3141
- key: 'lottery',
3142
- value: function lottery() {
3143
- return true;
3144
- }
3145
- }, {
3146
- key: 'currentMonth',
3147
- value: function currentMonth() {
3148
- return this.now.getYear() * 12 + this.now.getMonth();
3149
- }
3150
- }, {
3151
- key: 'maybeSend',
3152
- value: function maybeSend() {
3153
- var firstUse = Number(localStorage.getItem(UsageStatistics.firstUseKey));
3154
- var monthProcessed = Number(localStorage.getItem(UsageStatistics.monthProcessedKey));
3155
-
3156
- if (!firstUse) {
3157
- // Use a grace period to avoid interfering with tests, incognito mode etc
3158
- firstUse = this.timeNow;
3159
- localStorage.setItem(UsageStatistics.firstUseKey, firstUse);
3160
- }
3161
-
3162
- if (this.timeNow < firstUse + this.initialDelay * 1000) {
3163
- this.logger.debug("No statistics will be sent until the initial delay of " + this.initialDelay + "s has passed");
3164
- return;
3165
- }
3166
- if (this.currentMonth() <= monthProcessed) {
3167
- this.logger.debug("This month has already been processed");
3168
- return;
3169
- }
3170
- localStorage.setItem(UsageStatistics.monthProcessedKey, this.currentMonth());
3171
- // Use random sampling
3172
- if (this.lottery()) {
3173
- this.logger.debug("Congratulations, we have a winner!");
3174
- } else {
3175
- this.logger.debug("Sorry, no stats from you this time");
3176
- return;
3177
- }
3178
-
3179
- this.send();
3180
- }
3181
- }, {
3182
- key: 'send',
3183
- value: function send() {
3184
- // Ensure we have the latest data
3185
- this.gatherer.gather(this.storage);
3186
-
3187
- // Read, send and clean up
3188
- var data = this.storage.read();
3189
- data["firstUse"] = Number(localStorage.getItem(UsageStatistics.firstUseKey));
3190
- data["usageStatisticsVersion"] = UsageStatistics.version;
3191
- 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';
3192
- var self = this;
3193
- this.sender.send(info + JSON.stringify(data), function () {
3194
- // Revert the 'month processed' flag
3195
- localStorage.setItem(UsageStatistics.monthProcessedKey, self.currentMonth() - 1);
3196
- });
3197
- }
3198
- }], [{
3199
- key: 'version',
3200
- get: function get$1() {
3201
- return '2.1.2';
3202
- }
3203
- }, {
3204
- key: 'firstUseKey',
3205
- get: function get$1() {
3206
- return 'vaadin.statistics.firstuse';
3207
- }
3208
- }, {
3209
- key: 'monthProcessedKey',
3210
- get: function get$1() {
3211
- return 'vaadin.statistics.monthProcessed';
3212
- }
3213
- }, {
3214
- key: 'optOutKey',
3215
- get: function get$1() {
3216
- return 'vaadin.statistics.optout';
3217
- }
3218
- }]);
3219
- return UsageStatistics;
3220
- }();
3221
-
3222
- try {
3223
- window.Vaadin = window.Vaadin || {};
3224
- window.Vaadin.usageStatsChecker = window.Vaadin.usageStatsChecker || new UsageStatistics();
3225
- window.Vaadin.usageStatsChecker.maybeGatherAndSend();
3226
- } catch (e) {
3227
- // Intentionally ignored as this is not a problem in the app being developed
3228
- }
3229
-
3230
- }());
3231
-
3232
- vaadin-dev-mode:end **/}let Hi;void 0===window.Vaadin.developmentMode&&(window.Vaadin.developmentMode=function(){try{return!!localStorage.getItem("vaadin.developmentmode.force")||["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0&&(Yi?!(Yi&&Object.keys(Yi).map((t=>Yi[t])).filter((t=>t.productionMode)).length>0):!Zi((function(){return!0})))}catch(t){return!1}}()),
3233
- /**
3234
- * @license
3235
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3236
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3237
- */
3238
- window.Vaadin||(window.Vaadin={}),window.Vaadin.registrations||(window.Vaadin.registrations=[]),window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={}),window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){!function(t,e){if(window.Vaadin.developmentMode)Zi(t,e)}(Ji)};const Ki=new Set,Vi=t=>class extends(Fo(t)){static get version(){return"24.2.9"}static finalize(){super.finalize();const{is:t}=this;t&&!Ki.has(t)&&(window.Vaadin.registrations.push(this),Ki.add(t),window.Vaadin.developmentModeCallback&&(Hi=si.debounce(Hi,cs,(()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]()})),oi.add(Hi)))}constructor(){super(),null===document.doctype&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.')}}
3239
- /**
3240
- * @license
3241
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3242
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3243
- */,Qi=f`
3244
- :host {
3245
- display: inline-flex;
3246
- outline: none;
3247
- }
3248
-
3249
- :host::before {
3250
- content: '\\2003';
3251
- width: 0;
3252
- display: inline-block;
3253
- /* Size and position this element on the same vertical position as the input-field element
3254
- to make vertical align for the host element work as expected */
3255
- }
3256
-
3257
- :host([hidden]) {
3258
- display: none !important;
3259
- }
3260
-
3261
- :host(:not([has-label])) [part='label'] {
3262
- display: none;
3263
- }
3264
-
3265
- @media (forced-colors: active) {
3266
- :host(:not([readonly])) [part='input-field'] {
3267
- outline: 1px solid;
3268
- outline-offset: -1px;
3269
- }
3270
- :host([focused]) [part='input-field'] {
3271
- outline-width: 2px;
3272
- }
3273
- :host([disabled]) [part='input-field'] {
3274
- outline-color: GrayText;
3275
- }
3276
- }
3277
- `
3278
- /**
3279
- * @license
3280
- * Copyright (c) 2021 - 2023 Vaadin Ltd..
3281
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3282
- */,Xi=f`
3283
- [class$='container'] {
3284
- display: flex;
3285
- flex-direction: column;
3286
- min-width: 100%;
3287
- max-width: 100%;
3288
- width: var(--vaadin-field-default-width, 12em);
3289
- }
3290
- `
3291
- /**
3292
- * @license
3293
- * Copyright (c) 2023 Vaadin Ltd.
3294
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3295
- */,$i=new Map;function tr(t){return $i.has(t)||$i.set(t,new WeakMap),$i.get(t)}function er(t,e){t&&t.removeAttribute(e)}function or(t,e){if(!t||!e)return;const o=tr(e);if(o.has(t))return;const s=ri(t.getAttribute(e));o.set(t,new Set(s))}function sr(t,e,o={newId:null,oldId:null,fromUser:!1}){if(!t||!e)return;const{newId:s,oldId:i,fromUser:r}=o,n=tr(e),l=n.get(t);if(!r&&l)return i&&l.delete(i),void(s&&l.add(s));r&&(l?s||n.delete(t):or(t,e),er(t,e)),function(t,e,o){const s=ri(t.getAttribute(e));s.delete(o),0!==s.size?t.setAttribute(e,ni(s)):t.removeAttribute(e)}(t,e,i);const a=s||ni(l);a&&li(t,e,a)}
3296
- /**
3297
- * @license
3298
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3299
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3300
- */
3301
- const ir=Jt((t=>class extends($s(Ri(t))){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(t,e){t?(t.disabled=this.disabled,this._addFocusListeners(t),this.__forwardTabIndex(this.tabindex)):e&&this._removeFocusListeners(e)}_addFocusListeners(t){t.addEventListener("blur",this._boundOnBlur),t.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(t){t.removeEventListener("blur",this._boundOnBlur),t.removeEventListener("focus",this._boundOnFocus)}_onFocus(t){t.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(t){t.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(t){return t.target===this.focusElement}_shouldRemoveFocus(t){return t.target===this.focusElement}_disabledChanged(t,e){super._disabledChanged(t,e),this.focusElement&&(this.focusElement.disabled=t),t&&this.blur()}_tabindexChanged(t){this.__forwardTabIndex(t)}__forwardTabIndex(t){void 0!==t&&this.focusElement&&(this.focusElement.tabIndex=t,-1!==t&&(this.tabindex=void 0)),this.disabled&&t&&(-1!==t&&(this._lastTabIndex=t),this.tabindex=void 0)}})),rr=Jt((t=>class extends t{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(t){t&&(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((t=>{this._delegateAttribute(t,this[t])}))}_ensurePropsDelegated(){this.constructor.delegateProps.forEach((t=>{this._delegateProperty(t,this[t])}))}_delegateAttrsChanged(...t){this.constructor.delegateAttrs.forEach(((e,o)=>{this._delegateAttribute(e,t[o])}))}_delegatePropsChanged(...t){this.constructor.delegateProps.forEach(((e,o)=>{this._delegateProperty(e,t[o])}))}_delegateAttribute(t,e){this.stateTarget&&("invalid"===t&&this._delegateAttribute("aria-invalid",!!e&&"true"),"boolean"==typeof e?this.stateTarget.toggleAttribute(t,e):e?this.stateTarget.setAttribute(t,e):this.stateTarget.removeAttribute(t))}_delegateProperty(t,e){this.stateTarget&&(this.stateTarget[t]=e)}}));
3302
- /**
3303
- * @license
3304
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3305
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3306
- */
3307
- /**
3308
- * @license
3309
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3310
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3311
- */
3312
- class nr{constructor(t,e){this.query=t,this.callback=e,this._boundQueryHandler=this._queryHandler.bind(this)}hostConnected(){this._removeListener(),this._mediaQuery=window.matchMedia(this.query),this._addListener(),this._queryHandler(this._mediaQuery)}hostDisconnected(){this._removeListener()}_addListener(){this._mediaQuery&&this._mediaQuery.addListener(this._boundQueryHandler)}_removeListener(){this._mediaQuery&&this._mediaQuery.removeListener(this._boundQueryHandler),this._mediaQuery=null}_queryHandler(t){"function"==typeof this.callback&&this.callback(t.matches)}}
3313
- /**
3314
- * @license
3315
- * Copyright (c) 2023 Vaadin Ltd.
3316
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3317
- */const lr=t=>class extends t{static get properties(){return{overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(t,e){if(!e)return;if(void 0===t)return;const{classList:o}=e;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const t=this.__previousClasses.filter((t=>!this.__initialClasses.has(t)));t.length>0&&o.remove(...t)}const s="string"==typeof t?t.split(" "):[];s.length>0&&o.add(...s),this.__previousClasses=s}}
3318
- /**
3319
- * @license
3320
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3321
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3322
- */;let ar=0;function cr(){return ar++}
3323
- /**
3324
- * @license
3325
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3326
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3327
- */class hr extends EventTarget{static generateId(t,e){return`${e||"default"}-${t.localName}-${cr()}`}constructor(t,e,o,s={}){super();const{initializer:i,multiple:r,observe:n,useUniqueId:l}=s;this.host=t,this.slotName=e,this.tagName=o,this.observe="boolean"!=typeof n||n,this.multiple="boolean"==typeof r&&r,this.slotInitializer=i,r&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,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(0===t.length){const t=this.attachDefaultNode();t&&(this.nodes=[t],this.initNode(t))}else this.nodes=t,t.forEach((t=>{this.initAddedNode(t)}))}attachDefaultNode(){const{host:t,slotName:e,tagName:o}=this;let s=this.defaultNode;return!s&&o&&(s=document.createElement(o),s instanceof Element&&(""!==e&&s.setAttribute("slot",e),this.node=s,this.defaultNode=s)),s&&t.appendChild(s),s}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter((e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&""===t))}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host)}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t))}observeSlot(){const{slotName:t}=this,e=this.host.shadowRoot.querySelector(""===t?"slot:not([name])":`slot[name=${t}]`);this.__slotObserver=new ai(e,(({addedNodes:t,removedNodes:e})=>{const o=this.multiple?this.nodes:[this.node],s=t.filter((t=>!function(t){return t.nodeType===Node.TEXT_NODE&&""===t.textContent.trim()}(t)&&!o.includes(t)));e.length&&(this.nodes=o.filter((t=>!e.includes(t))),e.forEach((t=>{this.teardownNode(t)}))),s&&s.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...o,...s].filter((t=>t!==this.defaultNode)),s.forEach((t=>{this.initAddedNode(t)}))):(this.node&&this.node.remove(),this.node=s[0],this.initAddedNode(this.node)))}))}}
3328
- /**
3329
- * @license
3330
- * Copyright (c) 2022 - 2023 Vaadin Ltd.
3331
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3332
- */class ur extends hr{constructor(t){super(t,"tooltip"),this.setTarget(t)}initCustomNode(t){t.target=this.target,void 0!==this.ariaTarget&&(t.ariaTarget=this.ariaTarget),void 0!==this.context&&(t.context=this.context),void 0!==this.manual&&(t.manual=this.manual),void 0!==this.opened&&(t.opened=this.opened),void 0!==this.position&&(t._position=this.position),void 0!==this.shouldShow&&(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}}))}}
3333
- /**
3334
- * @license
3335
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3336
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3337
- */class dr{constructor(t){this.host=t,this.__required=!1}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),null!=this.__labelIdFromUser&&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){this.__setLabelIdToAriaAttribute(t,e?this.__labelIdFromUser:this.__labelId,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){var e;this.__target&&(t?(or(e=this.__target,"aria-labelledby"),er(e,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(function(t,e){if(!t)return;const o=tr(e),s=o.get(t);s&&0!==s.size?li(t,e,ni(s)):t.removeAttribute(e),o.delete(t)}(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")))}__setLabelIdToAriaAttribute(t,e,o){sr(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:o})}__setErrorIdToAriaAttribute(t,e){sr(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1})}__setHelperIdToAriaAttribute(t,e){sr(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")))}}
3338
- /**
3339
- * @license
3340
- * Copyright (c) 2022 - 2023 Vaadin Ltd.
3341
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3342
- */class mr extends hr{constructor(t,e,o,s={}){super(t,e,o,{...s,useUniqueId:!0})}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t)}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node))}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t)}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver((t=>{t.forEach((t=>{const e=t.target,o=e===this.node;"attributes"===t.type?o&&this.__updateNodeId(e):(o||e.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())}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}))}__updateNodeId(t){t.nodeType!==Node.ELEMENT_NODE||this.multiple&&this.nodes&&t!==this.nodes[0]||t.id||(t.id=this.defaultId)}}
3343
- /**
3344
- * @license
3345
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3346
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3347
- */class pr extends mr{constructor(t){super(t,"error-message","div")}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node)}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node)}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t)}initNode(t){this.updateDefaultNode(t)}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t)}restoreDefaultNode(){this.attachDefaultNode()}updateDefaultNode(t){const{errorMessage:e,invalid:o}=this,s=Boolean(o&&e&&""!==e.trim());t&&(t.textContent=s?e:"",t.hidden=!s,s?t.setAttribute("role","alert"):t.removeAttribute("role")),super.updateDefaultNode(t)}}
3348
- /**
3349
- * @license
3350
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3351
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3352
- */class fr extends mr{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 t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.helperText),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
3353
- /**
3354
- * @license
3355
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3356
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3357
- */class vr extends mr{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 t=this.attachDefaultNode();this.observeNode(t)}}updateDefaultNode(t){t&&(t.textContent=this.label),super.updateDefaultNode(t)}initCustomNode(t){super.initCustomNode(t),this.observeNode(t)}}
3358
- /**
3359
- * @license
3360
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3361
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3362
- */const br=Jt((t=>class extends(ui(t)){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new vr(this),this._labelController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-label",t.detail.hasContent)}))}get _labelId(){const t=this._labelNode;return t&&t.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(t){this._labelController.setLabel(t)}})),gr=Jt((t=>class extends t{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const t=this.checkValidity();return this._setInvalid(!t),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:t}})),t}checkValidity(){return!this.required||!!this.value}_setInvalid(t){this._shouldSetInvalid(t)&&(this.invalid=t)}_shouldSetInvalid(t){return!0}})),yr=t=>class extends(gr(br(ui(t)))){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 dr(this),this._helperController=new fr(this),this._errorController=new pr(this),this._errorController.addEventListener("slot-content-changed",(t=>{this.toggleAttribute("has-error-message",t.detail.hasContent)})),this._labelController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:o}=t.detail;this.__labelChanged(e,o)})),this._helperController.addEventListener("slot-content-changed",(t=>{const{hasContent:e,node:o}=t.detail;this.toggleAttribute("has-helper",e),this.__helperChanged(e,o)}))}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(t,e){this._fieldAriaController.setHelperId(t?e.id:null)}_accessibleNameChanged(t){this._fieldAriaController.setAriaLabel(t)}_accessibleNameRefChanged(t){this._fieldAriaController.setLabelId(t,!0)}__labelChanged(t,e){this._fieldAriaController.setLabelId(t?e.id:null)}_errorMessageChanged(t){this._errorController.setErrorMessage(t)}_helperTextChanged(t){this._helperController.setHelperText(t)}_ariaTargetChanged(t){t&&this._fieldAriaController.setTarget(t)}_requiredChanged(t){this._fieldAriaController.setRequired(t)}_invalidChanged(t){this._errorController.setInvalid(t),setTimeout((()=>{if(t){const t=this._errorNode;this._fieldAriaController.setErrorId(t&&t.id)}else this._fieldAriaController.setErrorId(null)}))}}
3363
- /**
3364
- * @license
3365
- * Copyright (c) 2023 Vaadin Ltd.
3366
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3367
- */;
3368
- /**
3369
- * @license
3370
- * Copyright (c) 2021 - 2023 Vaadin Ltd.
3371
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3372
- */class wr extends hr{constructor(t){super(t,"value","vaadin-select-value-button",{initializer:(t,e)=>{e._setFocusElement(t),e.ariaTarget=t,e.stateTarget=t,t.setAttribute("aria-haspopup","listbox")}})}}
3373
- /**
3374
- * @license
3375
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
3376
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3377
- */const xr=t=>class extends(lr(ir(rr(Gs(yr(t)))))){static get properties(){return{items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,observer:"_openedChanged"},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 420px), (max-height: 420px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return[...super.delegateAttrs,"invalid"]}static get observers(){return["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)"]}constructor(){super(),this._itemId=`value-${this.localName}-${cr()}`,this._srLabelController=new vr(this),this._srLabelController.slotName="sr-label"}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1}ready(){super.ready();const t=this.shadowRoot.querySelector("vaadin-select-overlay");t.owner=this,this._overlayElement=t,this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new wr(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new nr(this._phoneMediaQuery,(t=>{this._phone=t}))),this._tooltipController=new ur(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController)}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items))}_requiredChanged(t){super._requiredChanged(t),!1===t&&this.validate()}__itemsChanged(t,e){(t||e)&&this.requestContentUpdate()}_assignMenuElement(t){t&&t!==this.__lastMenuElement&&(this._menuElement=t,this.__initMenuItems(t),t.addEventListener("items-changed",(()=>{this.__initMenuItems(t)})),t.addEventListener("selected-changed",(()=>this.__updateValueButton())),t.addEventListener("keydown",(t=>this._onKeyDownInside(t)),!0),t.addEventListener("click",(()=>{this.__dispatchChangePending=!0}),!0),this.__lastMenuElement=t)}__initMenuItems(t){t.items&&(this._items=t.items)}_valueChanged(t,e){this.toggleAttribute("has-value",Boolean(t)),void 0===e||this.__dispatchChangePending||this.validate()}_onClick(t){t.preventDefault(),this.opened=!this.readonly}_onToggleMouseDown(t){t.preventDefault()}_onKeyDown(t){if(t.target===this.focusElement&&!this.readonly&&!this.opened)if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(t.key))t.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(t.key)&&1===t.key.length){const e=this._menuElement.selected,o=this._menuElement._searchKey(void 0!==e?e:-1,t.key);o>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=o)}}_onKeyDownInside(t){/^(Tab)$/u.test(t.key)&&(this.opened=!1)}_openedChanged(t,e){if(t){if(this._updateAriaLive(!1),!this._overlayElement||!this._menuElement||!this.focusElement||this.disabled||this.readonly)return void(this.opened=!1);this._overlayElement.style.setProperty("--vaadin-select-text-field-width",`${this._inputContainer.offsetWidth}px`);const t=this.hasAttribute("focus-ring");this._openedWithFocusRing=t,t&&this.removeAttribute("focus-ring")}else e&&(this.focus(),this._openedWithFocusRing&&this.setAttribute("focus-ring",""),this.__dispatchChangePending||this._keyboardActive||this.validate())}_updateAriaExpanded(t,e){e&&e.setAttribute("aria-expanded",t?"true":"false")}_updateAriaLive(t){this.focusElement&&(t?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"))}__attachSelectedItem(t){let e;const o=t.getAttribute("label");e=o?this.__createItemElement({label:o}):t.cloneNode(!0),e._sourceItem=t,this.__appendValueItemElement(e,this.focusElement),e.selected=!0}__createItemElement(t){const e=document.createElement(t.component||"vaadin-select-item");return t.label&&(e.textContent=t.label),t.value&&(e.value=t.value),t.disabled&&(e.disabled=t.disabled),e}__appendValueItemElement(t,e){e.appendChild(t),t.removeAttribute("tabindex"),t.removeAttribute("aria-selected"),t.removeAttribute("role"),t.removeAttribute("focused"),t.removeAttribute("focus-ring"),t.removeAttribute("active"),t.setAttribute("id",this._itemId)}_accessibleNameChanged(t){this._srLabelController.setLabel(t),this._setCustomAriaLabelledBy(t?this._srLabelController.defaultId:null)}_accessibleNameRefChanged(t){this._setCustomAriaLabelledBy(t)}_setCustomAriaLabelledBy(t){const e=this._getLabelIdWithItemId(t);this._fieldAriaController.setLabelId(e,!0)}_getLabelIdWithItemId(t){return t?`${t} ${this._items&&this._items[this._menuElement.selected]||this.placeholder?this._itemId:""}`.trim():null}__updateValueButton(){const t=this.focusElement;if(!t)return;t.innerHTML="";const e=this._items[this._menuElement.selected];if(t.removeAttribute("placeholder"),e)this.__attachSelectedItem(e),this._valueChanging||(this._selectedChanging=!0,this.value=e.value||"",this.__dispatchChangePending&&(this.opened=!1,this.__dispatchChange()),delete this._selectedChanging);else if(this.placeholder){const e=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(e,t),t.setAttribute("placeholder","")}sr(t,"aria-labelledby",e||this.placeholder?{newId:this._itemId}:{oldId:this._itemId}),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId)}_updateSelectedItem(t,e){if(e){const o=null==t?t:t.toString();this._menuElement.selected=e.reduce(((t,e,s)=>void 0===t&&e.value===o?s:t),void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging)}}_shouldRemoveFocus(){return!this.opened}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&this.validate()}checkValidity(){return!this.required||this.readonly||!!this.value}__defaultRenderer(t,e){if(!this.items||0===this.items.length)return void(t.textContent="");let o=t.firstElementChild;o||(o=document.createElement("vaadin-select-list-box"),t.appendChild(o)),o.textContent="",this.items.forEach((t=>{o.appendChild(this.__createItemElement(t))}))}async __dispatchChange(){this.updateComplete&&await this.updateComplete,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1}}
3378
- /**
3379
- * @license
3380
- * Copyright (c) 2017 - 2023 Vaadin Ltd.
3381
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3382
- */;bt("vaadin-select",[Qi,Xi,Gi],{moduleId:"vaadin-select-styles"});class Ar extends(xr(Vi(At(Oo)))){static get is(){return"vaadin-select"}static get template(){return Mo`
3383
- <style>
3384
- :host {
3385
- position: relative;
3386
- }
3387
-
3388
- ::slotted([slot='value']) {
3389
- flex-grow: 1;
3390
- }
3391
- </style>
3392
-
3393
- <div class="vaadin-select-container">
3394
- <div part="label" on-click="_onClick">
3395
- <slot name="label"></slot>
3396
- <span part="required-indicator" aria-hidden="true" on-click="focus"></span>
3397
- </div>
3398
-
3399
- <vaadin-input-container
3400
- part="input-field"
3401
- readonly="[[readonly]]"
3402
- disabled="[[disabled]]"
3403
- invalid="[[invalid]]"
3404
- theme$="[[_theme]]"
3405
- on-click="_onClick"
3406
- >
3407
- <slot name="prefix" slot="prefix"></slot>
3408
- <slot name="value"></slot>
3409
- <div part="toggle-button" slot="suffix" aria-hidden="true" on-mousedown="_onToggleMouseDown"></div>
3410
- </vaadin-input-container>
3411
-
3412
- <div part="helper-text">
3413
- <slot name="helper"></slot>
3414
- </div>
3415
-
3416
- <div part="error-message">
3417
- <slot name="error-message"></slot>
3418
- </div>
3419
- </div>
3420
-
3421
- <vaadin-select-overlay
3422
- position-target="[[_inputContainer]]"
3423
- opened="{{opened}}"
3424
- with-backdrop="[[_phone]]"
3425
- phone$="[[_phone]]"
3426
- theme$="[[_theme]]"
3427
- on-vaadin-overlay-open="_onOverlayOpen"
3428
- ></vaadin-select-overlay>
3429
-
3430
- <slot name="tooltip"></slot>
3431
- <div class="sr-only">
3432
- <slot name="sr-label"></slot>
3433
- </div>
3434
- `}static get observers(){return["_rendererChanged(renderer, _overlayElement)"]}ready(){var t;
3435
- /**
3436
- * @license
3437
- * Copyright (c) 2021 - 2023 Vaadin Ltd..
3438
- * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3439
- */super.ready(),t=this,window.Vaadin&&window.Vaadin.templateRendererCallback?window.Vaadin.templateRendererCallback(t):t.querySelector("template")&&console.warn(`WARNING: <template> inside <${t.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`)}_rendererChanged(t,e){e&&(e.renderer=t||this.__defaultRenderer,this.requestContentUpdate())}_onOverlayOpen(){this._menuElement&&this._menuElement.focus()}}a(Ar);const kr=class{constructor(o){t(this,o),this.ticketCompleted=e(this,"ticketCompleted",7),this.autoSelection=e(this,"autoSelection",7),this.resetSelection=e(this,"resetSelection",7),this.stakeChange=e(this,"stakeChange",7),this.multiplierChange=e(this,"multiplierChange",7),this.drawMultiplierChange=e(this,"drawMultiplierChange",7),this.lineMultiplierChange=e(this,"lineMultiplierChange",7),this.betTypeChange=e(this,"betTypeChange",7),this.setClientStyling=()=>{let t=document.createElement("style");t.innerHTML=this.clientStyling,this.stylingContainer.prepend(t)},this.setClientStylingURL=()=>{let t=document.createElement("style");setTimeout((()=>{t.innerHTML=this.clientStylingUrlContent,this.stylingContainer.prepend(t)}),1)},this.endpoint=void 0,this.gameId=void 0,this.numberOfGrids=1,this.multipleDraws=!0,this.ticketId=void 0,this.resetButton=!1,this.autoPick=!1,this.language="en",this.clientStyling="",this.clientStylingUrlContent="",this.translationUrl=void 0,this.isLoading=!0,this.hasErrors=!1,this.ticketDone=[],this.isCustomSelect=!1,this.amountInfo={},this.limitStylingAppends=!1,this.stakeMultiplier="1",this.lineMultiplier=0,this.isCustomSelectStake=!1,this.isCustomSelectDraw=!1,this.isCustomSelectLine=!1,this.drawMultiplier=1,this.secondarySelectionAllowed=!1,this.partialQuickpickAvailable=!1,this.boardsAllowed=[],this.tabIndex=0,this.groupType=[],this.playType=[],this.selectedPlayTypeId="",this.maximumAllowed=6,this.numberRange=[],this.secondaryNumberRange=[],this.secondaryMaximumAllowed=1,this.minimumAllowed=6,this.secondaryMinimumAllowed=1}handleLineMultiplierChange(t){this.grids=Array.from({length:t},((t,e)=>e+1)),this.ticketDone=Array.from({length:t},(()=>!1)),this.grids.forEach(((t,e)=>{this.resetSelection.emit({ticketId:this.ticketId,index:e})}))}handleTabIndexChange(t){this.grids.forEach(((t,e)=>{this.toggleResetSelection(e)})),this.setDrawMultiplier(1),this.setStakeMultiplier("1"),this.amountInfo=this.gameData.rules.stakes[0],this.setWagerPerDraw(this.amountInfo),this.playType=this.groupType[t].betType.map((t=>Object.assign(Object.assign({},t),{label:t.name||t.id,value:t.id}))),this.boardsAllowed=this.playType[0].boardsAllowed,this.setLineMultiplier(this.boardsAllowed[0]),this.selectedPlayTypeId=this.playType[0].value,this.numberRange=this.playType[0].selectionRules.map((t=>t.selectionCount)),this.maximumAllowed=Math.max(...this.numberRange),this.minimumAllowed=Math.min(...this.numberRange),this.secondaryNumberRange=this.playType[0].secondarySelectionRules.map((t=>t.selectionCount)),this.secondaryMaximumAllowed=Math.max(...this.secondaryNumberRange),this.secondaryMinimumAllowed=Math.min(...this.secondaryNumberRange),this.betTypeChange.emit({ticketId:this.ticketId,betType:this.playType[0]})}checkForClickOutside(t){this.selectRef&&!this.selectRef.contains(t.composedPath()[0])&&(this.isCustomSelect=!1),this.selectStakeRef&&!this.selectStakeRef.contains(t.composedPath()[0])&&(this.isCustomSelectStake=!1),this.selectDrawRef&&!this.selectDrawRef.contains(t.composedPath()[0])&&(this.isCustomSelectDraw=!1),this.selectLineRef&&!this.selectLineRef.contains(t.composedPath()[0])&&(this.isCustomSelectLine=!1)}connectedCallback(){let t=new URL(`${this.endpoint}/games/${this.gameId}`);fetch(t.href).then((t=>{if(t.ok)return t.json();this.hasErrors=!0})).then((t=>{var e;this.isLoading=!1,this.gameData=t,this.amountInfo=this.gameData.rules.stakes[0],this.secondarySelectionAllowed="INPUT"===this.gameData.rules.secondarySelectionAllowed;const o=this.gameData.rules.betTypes.reduce(((t,e)=>(e.group?(t.groups[e.group]||(t.groups[e.group]=[]),t.groups[e.group].push(e)):t.noGroup.push({groupName:e.name||e.id,betType:[Object.assign({},e)]}),t)),{groups:{},noGroup:[]}),s=Object.entries(o.groups).map((([t,e])=>({groupName:t,betType:e})));this.groupType=[...o.noGroup,...s],this.playType=this.groupType[0].betType.map((t=>Object.assign(Object.assign({},t),{label:t.name||t.id,value:t.id}))),this.partialQuickpickAvailable=this.gameData.rules.partialQuickpickAvailable,this.boardsAllowed=null===(e=this.gameData.rules.betTypes)||void 0===e?void 0:e.filter((t=>"Prima"===t.id))[0].boardsAllowed,this.lineMultiplier=this.boardsAllowed[0];let i=this.gameData.rules.betTypes[0].secondarySelectionRules;this.numberRange=this.gameData.rules.betTypes[0].selectionRules.map((t=>t.selectionCount)),this.maximumAllowed=Math.max(...this.numberRange),this.minimumAllowed=Math.min(...this.numberRange),this.secondaryNumberRange=i.map((t=>t.selectionCount)),this.secondaryMaximumAllowed=Math.max(...this.secondaryNumberRange),this.secondaryMinimumAllowed=Math.min(...this.secondaryNumberRange)})).catch((t=>{this.isLoading=!1,this.hasErrors=!0,console.error("Error!",t)}))}componentWillLoad(){var t;this.translationUrl&&(t=JSON.parse(this.translationUrl),Object.keys(t).forEach((e=>{for(let o in t[e])n[e][o]=t[e][o]})))}componentDidRender(){!this.limitStylingAppends&&this.stylingContainer&&(this.clientStyling&&this.setClientStyling(),this.clientStylingUrlContent&&this.setClientStylingURL(),this.limitStylingAppends=!0)}gridFilledHandler(t){this.ticket=Object.assign(Object.assign({},t.detail),{drawCount:this.drawMultiplier,multiplierNum:Number(this.stakeMultiplier),multiplier:this.gameData.rules.stakeMultiplierAvailable}),this.ticketDone=[...this.ticketDone.slice(0,t.detail.index),!0,...this.ticketDone.slice(t.detail.index+1)],this.ticketCompleted.emit(this.ticket)}handleGridClearAllEvent(t){let e=t.detail;this.ticketDone=[...this.ticketDone.slice(0,e),!1,...this.ticketDone.slice(e+1)]}toggleAutoSelection(t){this.ticketDone=[...this.ticketDone.slice(0,t),!0,...this.ticketDone.slice(t+1)],this.autoSelection.emit({ticketId:this.ticketId,index:t})}toggleResetSelection(t){this.ticketDone=[...this.ticketDone.slice(0,t),!1,...this.ticketDone.slice(t+1)],this.resetSelection.emit({ticketId:this.ticketId,index:t})}changeStake(t,e){this.stakeChange.emit({ticketId:t,stake:e})}toggleClass(){this.isCustomSelect=!this.isCustomSelect}toggleSelection(){this.isCustomSelectStake=!this.isCustomSelectStake}toggleLineSelection(){this.isCustomSelectLine=!this.isCustomSelectLine}toggleDrawSelection(){this.isCustomSelectDraw=!this.isCustomSelectDraw}setWagerPerDraw(t){this.amountInfo={value:t.value,currency:t.currency},this.isCustomSelect=!1,this.changeStake(this.ticketId,t.value)}setStakeMultiplier(t){this.stakeMultiplier=t,this.isCustomSelectStake=!1,this.multiplierChange.emit({ticketId:this.ticketId,multiplierNum:Number(t),multiplier:this.gameData.rules.stakeMultiplierAvailable})}setLineMultiplier(t){this.lineMultiplier=t,this.isCustomSelectLine=!1,this.lineMultiplierChange.emit({ticketId:this.ticketId,lineNum:t})}setDrawMultiplier(t){this.drawMultiplier=t,this.isCustomSelectDraw=!1,this.drawMultiplierChange.emit({ticketId:this.ticketId,drawCount:t})}handlePlayTypeChange(t){this.selectedPlayTypeId=t;let e=this.playType.filter((e=>e.id===t))[0];this.boardsAllowed=e.boardsAllowed,this.numberRange=e.selectionRules.map((t=>t.selectionCount)),this.maximumAllowed=Math.max(...this.numberRange),this.minimumAllowed=Math.min(...this.numberRange),this.secondaryNumberRange=e.secondarySelectionRules.map((t=>t.selectionCount)),this.secondaryMaximumAllowed=Math.max(...this.secondaryNumberRange),this.secondaryMinimumAllowed=Math.min(...this.secondaryNumberRange);for(let t=0;t<this.lineMultiplier;t++)this.toggleResetSelection(t);this.betTypeChange.emit({ticketId:this.ticketId,betType:e})}render(){if(this.isLoading)return o("div",null,o("p",null,l("loading",this.language)));if(this.hasErrors)return o("div",null,o("p",null,l("error",this.language)));{const{rules:t}=this.gameData;return o("div",{class:"TicketContainer",ref:t=>this.stylingContainer=t},o("p",{class:"TicketTitle"},this.gameData.name),o("div",{class:"TicketTabs"},this.groupType.map(((t,e)=>o("div",{class:"TabButton"+(this.tabIndex==e?" Active":""),onClick:()=>this.tabIndex=e},t.groupName)))),this.playType.length>1&&o("div",null,o("label",{class:"Label"},l("playType",this.language),": "),o("vaadin-select",{style:{width:"160px"},items:this.playType,value:this.selectedPlayTypeId,"on-value-changed":t=>this.handlePlayTypeChange(t.detail.value)})),this.boardsAllowed.length>1&&o("div",null,o("label",{class:"Label"},l("lines",this.language),": "),o("div",{class:"WagerInput"},o("div",{ref:t=>this.selectLineRef=t,class:this.isCustomSelectLine?"SelectWrapper SelectActive":"SelectWrapper"},o("div",{class:"SelectButton",onClick:()=>this.toggleLineSelection()},o("span",null,this.lineMultiplier),o("span",{class:"SelectExpand"},"▼")),o("div",{class:"SelectContent"},o("ul",{class:"SelectOptions"},this.boardsAllowed.map((t=>o("li",{class:this.lineMultiplier==t?"SelectedValue":"",value:t,onClick:()=>this.setLineMultiplier(t)},t)))))))),this.grids.map(((e,s)=>o("div",null,o("div",{class:"TicketGridHeader"},o("div",null,l("lineName",this.language),s+1),this.resetButton&&this.ticketDone[s]&&o("div",{class:"ButtonContainer"},o("a",{class:"ResetButton",onClick:()=>this.toggleResetSelection(s)},l("resetButton",this.language))),this.autoPick&&!this.ticketDone[s]&&o("div",{class:"ButtonContainer"},o("a",{class:"AutoButton",onClick:()=>this.toggleAutoSelection(s)},l("autoButton",this.language)))),o("div",{class:"TicketGridBullets"},o("p",{class:"TicketGridTitle"},t.boards[0].selectionName),o("lottery-grid",{"grid-index":s,"maximum-allowed":this.maximumAllowed,"minimum-allowed":this.minimumAllowed,"number-range":JSON.stringify(this.numberRange),"high-number":t.boards[0].highNumber,"low-number":t.boards[0].lowNumber,"total-numbers":t.boards[0].highNumber-t.boards[0].lowNumber+1,selectable:!0,"reset-button":!0,"auto-pick":!0,"game-id":this.gameId,"ticket-id":this.ticketId,"partial-quickpick-available":this.partialQuickpickAvailable,language:this.language,"translation-url":this.translationUrl,"selection-type":"mainSelection","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})),this.secondarySelectionAllowed&&o("div",{class:"SecondarySelectionWrapper"},o("div",{class:"TicketGridBullets"},o("p",{class:"TicketGridTitle"},t.boards[0].secondarySelectionName),o("lottery-grid",{"grid-index":s,"maximum-allowed":this.secondaryMaximumAllowed,"minimum-allowed":this.secondaryMinimumAllowed,"number-range":JSON.stringify(this.secondaryNumberRange),"high-number":t.boards[0].secondaryHighNumber,"low-number":t.boards[0].secondaryLowNumber,"total-numbers":t.boards[0].secondaryHighNumber-t.boards[0].secondaryLowNumber+1,selectable:!0,"reset-button":!0,"auto-pick":!0,"game-id":this.gameId,"ticket-id":this.ticketId,"partial-quickpick-available":this.partialQuickpickAvailable,language:this.language,"translation-url":this.translationUrl,"selection-type":"secondarySelection","client-styling":this.clientStyling,"client-styling-url-content":this.clientStylingUrlContent})))))),t.stakeMultiplierAvailable&&o("div",null,o("label",{class:"Label"},l("multiplier",this.language),": "),o("div",{class:"WagerInput"},t.stakeMultipliers.length>1?o("div",{ref:t=>this.selectStakeRef=t,class:this.isCustomSelectStake?"SelectWrapper SelectActive":"SelectWrapper"},o("div",{class:"SelectButton",onClick:()=>this.toggleSelection()},o("span",null,this.stakeMultiplier),o("span",{class:"SelectExpand"},"▼")),o("div",{class:"SelectContent"},o("ul",{class:"SelectOptions"},t.stakeMultipliers.map((t=>o("li",{class:this.stakeMultiplier==t?"SelectedValue":"",value:t,onClick:()=>this.setStakeMultiplier(t)},t)))))):o("div",null,o("input",{min:"1",value:t.stakeMultipliers[0]||1,type:"number",disabled:!0})))),t.drawMultiplierAvailable&&o("div",null,o("label",{class:"Label"},l("numberOfDraws",this.language),": "),o("div",{class:"WagerInput"},t.durations.length>1?o("div",{ref:t=>this.selectDrawRef=t,class:this.isCustomSelectDraw?"SelectWrapper SelectActive":"SelectWrapper"},o("div",{class:"SelectButton",onClick:()=>this.toggleDrawSelection()},o("span",null,this.drawMultiplier),o("span",{class:"SelectExpand"},"▼")),o("div",{class:"SelectContent"},o("ul",{class:"SelectOptions"},t.durations.map((t=>o("li",{class:this.drawMultiplier==t?"SelectedValue":"",value:t,onClick:()=>this.setDrawMultiplier(t)},t)))))):o("div",null,o("input",{min:"1",value:t.durations[0]||1,type:"number",disabled:!0})))),o("div",null,o("label",{class:"Label"},l("wagerPerDraw",this.language),": "),o("div",{class:"WagerInput"},t.stakes.length>1?o("div",{ref:t=>this.selectRef=t,class:this.isCustomSelect?"SelectWrapper SelectActive":"SelectWrapper"},o("div",{class:"SelectButton",onClick:()=>this.toggleClass()},o("span",null,this.amountInfo.value," ",this.amountInfo.currency),o("span",{class:"SelectExpand"},"▼")),o("div",{class:"SelectContent"},o("ul",{class:"SelectOptions"},t.stakes.map((t=>o("li",{class:this.amountInfo.value==t.value?"SelectedValue":"",value:t.value,onClick:()=>this.setWagerPerDraw(t)},t.value," ",t.currency)))))):o("div",null,o("input",{min:"1",value:t.stakes[0].value,type:"number",disabled:!0}),o("span",{class:"WagerInputTitle"},t.stakes[0].currency)))))}}static get watchers(){return{lineMultiplier:["handleLineMultiplierChange"],tabIndex:["handleTabIndexChange"]}}};kr.style='@import url("https://fonts.googleapis.com/css2?family=Roboto:wght@100&display=swap");:host{display:block;font-family:"Roboto", sans-serif}.TicketTitle{font-size:16px;font-weight:bold}.TicketTabs{display:flex;overflow:auto}.TicketTabs .TabButton{color:var(--emw--color-typography, #009993);margin:0 40px 10px 0;cursor:pointer}.TicketTabs .Active{border-bottom:1px solid var(--emw--color-typography, #009993)}.ButtonContainer{display:flex;justify-content:flex-end}.SecondarySelectionWrapper{margin-top:20px}.Label{margin-right:5px;position:relative;top:2px;font-size:14px;font-weight:lighter;color:var(--emw--button-text-color, #000)}input[type=number]{-webkit-appearance:textfield;-moz-appearance:textfield;appearance:textfield}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none}.NumberInput,.WagerInput{margin-top:10px;display:inline-flex;align-items:center}.NumberInput,.NumberInput *{box-sizing:border-box}.NumberInput button{cursor:pointer;outline:none;-webkit-appearance:none;border:none;align-items:center;justify-content:center;height:20px;position:relative}.NumberInput button:after{display:inline-block;position:absolute;transform:translate(-50%, -50%) rotate(180deg);align-items:center;text-align:center}.NumberInput button.Plus:after{transform:translate(-50%, -50%) rotate(0deg);width:30px;display:inline-flex;align-items:center;text-align:center}.NumberInput input[type=number],.WagerInput input[type=number]{max-width:50px;display:inline-flex;align-items:center;padding:4px 10px;text-align:center}.NumberInput input[type=number] .WagerInputTitle,.WagerInput input[type=number] .WagerInputTitle{font-size:14px;color:var(--emw--button-text-color, #000);padding:10px;margin-left:8px}.AutoButton{cursor:pointer;display:inline-block;border-radius:var(--emw--button-border-radius, 4px);padding:8px 20px;width:max-content;margin:5px 0;border:1px solid var(--emw--button-border-color, #00958f);background:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));color:var(--emw--button-text-color, #000);font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0}.AutoButton:active{background:var(--emw--button-background-color, #00958f);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255))}.ResetButton{cursor:pointer;display:inline-block;border-radius:var(--emw--button-border-radius, 4px);padding:8px 20px;width:max-content;margin:5px 0;color:var(--emw--button-text-color, #000);font-size:12px;transition:all 0.2s linear;text-transform:uppercase;text-align:center;letter-spacing:0;background:var(--emw--color-error, #FF3D00);border:1px solid var(--emw--color-error, #FF3D00);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255))}.ResetButton:hover{background:var(--emw--color-secondary, #FF6536);border:1px solid var(--emw--color-error, #FF3D00)}.TicketGridHeader{display:flex;justify-content:space-between;align-items:center;font-weight:bold;margin-top:10px}.TicketGridBullets{background:var(--emw--color-gray-50, #F1F1F1);border-radius:4px;padding:20px;margin-top:5px;margin-bottom:10px}.TicketGridBullets .TicketGridTitle{margin-top:0px}.Minus{border-radius:4px;width:30px;height:24px !important;margin-right:10px;color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:var(--emw--color-background, #009993)}.Plus{border-radius:4px;width:30px;height:24px !important;margin-left:10px;color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));background:var(--emw--color-background, #009993)}.SelectWrapper{width:auto;padding:5px;margin:0 auto;border:1px solid var(--emw--color-gray-transparency-80, #ccc);border-radius:5px;position:relative}.SelectButton,.SelectOptions li{display:flex;align-items:center;cursor:pointer}.SelectButton{display:flex;padding:0 5px;border-radius:7px;align-items:center;justify-content:space-between;font-size:14px}.SelectButton span:first-child{padding-right:10px}.SelectExpand{transition:transform 0.3s linear;font-size:12px}.SelectActive .SelectExpand{transform:rotate(180deg)}.SelectContent{display:none;padding:5px;border-radius:7px}.SelectWrapper.SelectActive .SelectContent{width:100%;display:block;position:absolute;left:0;top:32px;padding:0;border:1px solid var(--emw--color-gray-transparency-80, #ccc);overflow:hidden;background:var(--emw--color-gray-transparency-100, rgb(255, 255, 255));z-index:20}.SelectContent .SelectOptions{max-height:100px;margin:0;overflow-y:auto;padding:0}.SelectContent .SelectOptions .SelectedValue{background-color:var(--emw--color-background, #009993);color:var(--emw--color-gray-transparency-100, rgb(255, 255, 255))}.SelectOptions::-webkit-scrollbar{width:7px}.SelectOptions::-webkit-scrollbar-track{background:var(--emw--color-gray-50, #F1F1F1);border-radius:25px}.SelectOptions::-webkit-scrollbar-thumb{background:var(--emw--color-gray-transparency-80, #ccc);border-radius:25px}.SelectOptions li{height:20px;padding:0 13px;font-size:14px}.SelectOptions li:hover{background:var(--emw--color-gray-150, #f2f2f2)}';export{s as lottery_bullet,i as lottery_grid,kr as lottery_ticket}