@everymatrix/player-account-timeout 1.85.22 → 1.86.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -10,17 +10,17 @@
10
10
  * @license
11
11
  * Copyright 2019 Google LLC
12
12
  * SPDX-License-Identifier: BSD-3-Clause
13
- */const ct=globalThis,mi=ct.ShadowRoot&&(ct.ShadyCSS===void 0||ct.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_i=Symbol(),Bi=new WeakMap;let gi=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==_i)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(mi&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Bi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Bi.set(e,t))}return t}toString(){return this.cssText}};const gr=o=>new gi(typeof o=="string"?o:o+"",void 0,_i),S=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[r+1],o[0]);return new gi(e,o,_i)},Ho=(o,t)=>{if(mi)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=ct.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i)}},Vi=mi?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return gr(e)})(o):o;/**
13
+ */const ct=globalThis,mi=ct.ShadowRoot&&(ct.ShadyCSS===void 0||ct.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,_i=Symbol(),Bi=new WeakMap;let gi=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==_i)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(mi&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=Bi.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&Bi.set(e,t))}return t}toString(){return this.cssText}};const gr=o=>new gi(typeof o=="string"?o:o+"",void 0,_i),D=(o,...t)=>{const e=o.length===1?o[0]:t.reduce((i,s,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(s)+o[r+1],o[0]);return new gi(e,o,_i)},Ho=(o,t)=>{if(mi)o.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),s=ct.litNonce;s!==void 0&&i.setAttribute("nonce",s),i.textContent=e.cssText,o.appendChild(i)}},Vi=mi?o=>o:o=>o instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return gr(e)})(o):o;/**
14
14
  * @license
15
15
  * Copyright 2017 Google LLC
16
16
  * SPDX-License-Identifier: BSD-3-Clause
17
- */const{is:yr,defineProperty:vr,getOwnPropertyDescriptor:br,getOwnPropertyNames:wr,getOwnPropertySymbols:xr,getPrototypeOf:Cr}=Object,de=globalThis,Ui=de.trustedTypes,Ar=Ui?Ui.emptyScript:"",kt=de.reactiveElementPolyfillSupport,je=(o,t)=>o,Wt={toAttribute(o,t){switch(t){case Boolean:o=o?Ar:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(i){e=null}}return e}},Bo=(o,t)=>!yr(o,t),ji={attribute:!0,type:String,converter:Wt,reflect:!1,useDefault:!1,hasChanged:Bo};var No,Fo;(No=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Fo=de.litPropertyMetadata)!=null||(de.litPropertyMetadata=new WeakMap);class Te extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ji){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&vr(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var n;const{get:s,set:r}=(n=br(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);r==null||r.call(this,a),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:ji}static _$Ei(){if(this.hasOwnProperty(je("elementProperties")))return;const t=Cr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(je("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(je("properties"))){const e=this.properties,i=[...wr(e),...xr(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Vi(s))}else t!==void 0&&e.push(Vi(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Ho(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var r;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Wt).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){var r,n,a;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const l=i.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((r=l.converter)==null?void 0:r.fromAttribute)!==void 0?l.converter:Wt;this._$Em=s;const u=d.fromAttribute(e,l.type);this[s]=(a=u!=null?u:(n=this._$Ej)==null?void 0:n.get(s))!=null?a:u,this._$Em=null}}requestUpdate(t,e,i){var s,r;if(t!==void 0){const n=this.constructor,a=this[t];if(i!=null||(i=n.getPropertyOptions(t)),!(((s=i.hasChanged)!=null?s:Bo)(a,e)||i.useDefault&&i.reflect&&a===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(n._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:r},n){var a,l,d;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(l=n!=null?n:e)!=null?l:this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),s===!0&&this._$Em!==t&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(t))}_$EP(){return st(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,a]of r){const{wrapped:l}=a,d=this[n];l!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,a,d)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}}var zo;Te.elementStyles=[],Te.shadowRootOptions={mode:"open"},Te[je("elementProperties")]=new Map,Te[je("finalized")]=new Map,kt==null||kt({ReactiveElement:Te}),((zo=de.reactiveElementVersions)!=null?zo:de.reactiveElementVersions=[]).push("2.1.1");/**
17
+ */const{is:yr,defineProperty:vr,getOwnPropertyDescriptor:br,getOwnPropertyNames:wr,getOwnPropertySymbols:xr,getPrototypeOf:Cr}=Object,ce=globalThis,Ui=ce.trustedTypes,Ar=Ui?Ui.emptyScript:"",kt=ce.reactiveElementPolyfillSupport,je=(o,t)=>o,Wt={toAttribute(o,t){switch(t){case Boolean:o=o?Ar:null;break;case Object:case Array:o=o==null?o:JSON.stringify(o)}return o},fromAttribute(o,t){let e=o;switch(t){case Boolean:e=o!==null;break;case Number:e=o===null?null:Number(o);break;case Object:case Array:try{e=JSON.parse(o)}catch(i){e=null}}return e}},Bo=(o,t)=>!yr(o,t),ji={attribute:!0,type:String,converter:Wt,reflect:!1,useDefault:!1,hasChanged:Bo};var No,Fo;(No=Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(Fo=ce.litPropertyMetadata)!=null||(ce.litPropertyMetadata=new WeakMap);class Te extends HTMLElement{static addInitializer(t){var e;this._$Ei(),((e=this.l)!=null?e:this.l=[]).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ji){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),s=this.getPropertyDescriptor(t,i,e);s!==void 0&&vr(this.prototype,t,s)}}static getPropertyDescriptor(t,e,i){var n;const{get:s,set:r}=(n=br(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a}};return{get:s,set(a){const l=s==null?void 0:s.call(this);r==null||r.call(this,a),this.requestUpdate(t,l,i)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){var e;return(e=this.elementProperties.get(t))!=null?e:ji}static _$Ei(){if(this.hasOwnProperty(je("elementProperties")))return;const t=Cr(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(je("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(je("properties"))){const e=this.properties,i=[...wr(e),...xr(e)];for(const s of i)this.createProperty(s,e[s])}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,s]of e)this.elementProperties.set(i,s)}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const s=this._$Eu(e,i);s!==void 0&&this._$Eh.set(s,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){const e=[];if(Array.isArray(t)){const i=new Set(t.flat(1/0).reverse());for(const s of i)e.unshift(Vi(s))}else t!==void 0&&e.push(Vi(t));return e}static _$Eu(t,e){const i=e.attribute;return i===!1?void 0:typeof i=="string"?i:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){var t;this._$ES=new Promise(e=>this.enableUpdating=e),this._$AL=new Map,this._$E_(),this.requestUpdate(),(t=this.constructor.l)==null||t.forEach(e=>e(this))}addController(t){var e,i;((e=this._$EO)!=null?e:this._$EO=new Set).add(t),this.renderRoot!==void 0&&this.isConnected&&((i=t.hostConnected)==null||i.call(t))}removeController(t){var e;(e=this._$EO)==null||e.delete(t)}_$E_(){const t=new Map,e=this.constructor.elementProperties;for(const i of e.keys())this.hasOwnProperty(i)&&(t.set(i,this[i]),delete this[i]);t.size>0&&(this._$Ep=t)}createRenderRoot(){var e;const t=(e=this.shadowRoot)!=null?e:this.attachShadow(this.constructor.shadowRootOptions);return Ho(t,this.constructor.elementStyles),t}connectedCallback(){var t,e;(t=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostConnected)==null?void 0:s.call(i)})}enableUpdating(t){}disconnectedCallback(){var t;(t=this._$EO)==null||t.forEach(e=>{var i;return(i=e.hostDisconnected)==null?void 0:i.call(e)})}attributeChangedCallback(t,e,i){this._$AK(t,i)}_$ET(t,e){var r;const i=this.constructor.elementProperties.get(t),s=this.constructor._$Eu(t,i);if(s!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Wt).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(s):this.setAttribute(s,n),this._$Em=null}}_$AK(t,e){var r,n,a;const i=this.constructor,s=i._$Eh.get(t);if(s!==void 0&&this._$Em!==s){const l=i.getPropertyOptions(s),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((r=l.converter)==null?void 0:r.fromAttribute)!==void 0?l.converter:Wt;this._$Em=s;const u=d.fromAttribute(e,l.type);this[s]=(a=u!=null?u:(n=this._$Ej)==null?void 0:n.get(s))!=null?a:u,this._$Em=null}}requestUpdate(t,e,i){var s,r;if(t!==void 0){const n=this.constructor,a=this[t];if(i!=null||(i=n.getPropertyOptions(t)),!(((s=i.hasChanged)!=null?s:Bo)(a,e)||i.useDefault&&i.reflect&&a===((r=this._$Ej)==null?void 0:r.get(t))&&!this.hasAttribute(n._$Eu(t,i))))return;this.C(t,e,i)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:i,reflect:s,wrapped:r},n){var a,l,d;i&&!((a=this._$Ej)!=null?a:this._$Ej=new Map).has(t)&&(this._$Ej.set(t,(l=n!=null?n:e)!=null?l:this[t]),r!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||i||(e=void 0),this._$AL.set(t,e)),s===!0&&this._$Em!==t&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(t))}_$EP(){return st(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES}catch(e){Promise.reject(e)}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var i,s;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((i=this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this._$Ep){for(const[n,a]of this._$Ep)this[n]=a;this._$Ep=void 0}const r=this.constructor.elementProperties;if(r.size>0)for(const[n,a]of r){const{wrapped:l}=a,d=this[n];l!==!0||this._$AL.has(n)||d===void 0||this.C(n,void 0,a,d)}}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(s=this._$EO)==null||s.forEach(r=>{var n;return(n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EM()}catch(r){throw t=!1,this._$EM(),r}t&&this._$AE(e)}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var s;return(s=i.hostUpdated)==null?void 0:s.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}}var zo;Te.elementStyles=[],Te.shadowRootOptions={mode:"open"},Te[je("elementProperties")]=new Map,Te[je("finalized")]=new Map,kt==null||kt({ReactiveElement:Te}),((zo=ce.reactiveElementVersions)!=null?zo:ce.reactiveElementVersions=[]).push("2.1.1");/**
18
18
  * @license
19
19
  * Copyright 2017 Google LLC
20
20
  * SPDX-License-Identifier: BSD-3-Clause
21
- */const Ye=globalThis,ht=Ye.trustedTypes,Yi=ht?ht.createPolicy("lit-html",{createHTML:o=>o}):void 0,Vo="$lit$",le=`lit$${Math.random().toFixed(9).slice(2)}$`,Uo="?"+le,Tr=`<${Uo}>`,be=document,qe=()=>be.createComment(""),Ke=o=>o===null||typeof o!="object"&&typeof o!="function",yi=Array.isArray,Er=o=>yi(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",St=`[
21
+ */const Ye=globalThis,ht=Ye.trustedTypes,Yi=ht?ht.createPolicy("lit-html",{createHTML:o=>o}):void 0,Vo="$lit$",de=`lit$${Math.random().toFixed(9).slice(2)}$`,Uo="?"+de,Tr=`<${Uo}>`,be=document,qe=()=>be.createComment(""),Ke=o=>o===null||typeof o!="object"&&typeof o!="function",yi=Array.isArray,Er=o=>yi(o)||typeof(o==null?void 0:o[Symbol.iterator])=="function",St=`[
22
22
  \f\r]`,Le=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Wi=/-->/g,qi=/>/g,fe=RegExp(`>|${St}(?:([^\\s"'>=/]+)(${St}*=${St}*(?:[^
23
- \f\r"'\`<>=]|("|')|))|$)`,"g"),Ki=/'/g,Gi=/"/g,jo=/^(?:script|style|textarea|title)$/i,Pe=Symbol.for("lit-noChange"),B=Symbol.for("lit-nothing"),Ji=new WeakMap,me=be.createTreeWalker(be,129);function Yo(o,t){if(!yi(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Yi!==void 0?Yi.createHTML(t):t}const Dr=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":t===3?"<math>":"",n=Le;for(let a=0;a<e;a++){const l=o[a];let d,u,h=-1,p=0;for(;p<l.length&&(n.lastIndex=p,u=n.exec(l),u!==null);)p=n.lastIndex,n===Le?u[1]==="!--"?n=Wi:u[1]!==void 0?n=qi:u[2]!==void 0?(jo.test(u[2])&&(s=RegExp("</"+u[2],"g")),n=fe):u[3]!==void 0&&(n=fe):n===fe?u[0]===">"?(n=s!=null?s:Le,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?fe:u[3]==='"'?Gi:Ki):n===Gi||n===Ki?n=fe:n===Wi||n===qi?n=Le:(n=fe,s=void 0);const f=n===fe&&o[a+1].startsWith("/>")?" ":"";r+=n===Le?l+Tr:h>=0?(i.push(d),l.slice(0,h)+Vo+l.slice(h)+le+f):l+le+(h===-2?a:f)}return[Yo(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Ge{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[d,u]=Dr(t,e);if(this.el=Ge.createElement(d,i),me.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=me.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Vo)){const p=u[n++],f=s.getAttribute(h).split(le),v=/([.?@])?(.*)/.exec(p);l.push({type:1,index:r,name:v[2],strings:f,ctor:v[1]==="."?Sr:v[1]==="?"?Pr:v[1]==="@"?Or:bt}),s.removeAttribute(h)}else h.startsWith(le)&&(l.push({type:6,index:r}),s.removeAttribute(h));if(jo.test(s.tagName)){const h=s.textContent.split(le),p=h.length-1;if(p>0){s.textContent=ht?ht.emptyScript:"";for(let f=0;f<p;f++)s.append(h[f],qe()),me.nextNode(),l.push({type:2,index:++r});s.append(h[p],qe())}}}else if(s.nodeType===8)if(s.data===Uo)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(le,h+1))!==-1;)l.push({type:7,index:r}),h+=le.length-1}r++}}static createElement(t,e){const i=be.createElement("template");return i.innerHTML=t,i}}function Oe(o,t,e=o,i){var n,a,l;if(t===Pe)return t;let s=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=Ke(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),r===void 0?s=void 0:(s=new r(o),s._$AT(o,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=s:e._$Cl=s),s!==void 0&&(t=Oe(o,s._$AS(o,t.values),s,i)),t}class kr{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;const{el:{content:e},parts:i}=this._$AD,s=((d=t==null?void 0:t.creationScope)!=null?d:be).importNode(e,!0);me.currentNode=s;let r=me.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let u;l.type===2?u=new it(r,r.nextSibling,this,t):l.type===1?u=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(u=new Mr(r,this,t)),this._$AV.push(u),l=i[++a]}n!==(l==null?void 0:l.index)&&(r=me.nextNode(),n++)}return me.currentNode=be,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class it{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,s){var r;this.type=2,this._$AH=B,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(r=s==null?void 0:s.isConnected)!=null?r:!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Oe(this,t,e),Ke(t)?t===B||t==null||t===""?(this._$AH!==B&&this._$AR(),this._$AH=B):t!==this._$AH&&t!==Pe&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Er(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==B&&Ke(this._$AH)?this._$AA.nextSibling.data=t:this.T(be.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Ge.createElement(Yo(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(e);else{const n=new kr(s,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=Ji.get(t.strings);return e===void 0&&Ji.set(t.strings,e=new Ge(t)),e}k(t){yi(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new it(this.O(qe()),this.O(qe()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class bt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,r){this.type=1,this._$AH=B,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=B}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=Oe(this,t,e,0),n=!Ke(t)||t!==this._$AH&&t!==Pe,n&&(this._$AH=t);else{const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=Oe(this,a[i+l],e,l),d===Pe&&(d=this._$AH[l]),n||(n=!Ke(d)||d!==this._$AH[l]),d===B?t=B:t!==B&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d}n&&!s&&this.j(t)}j(t){t===B?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Sr extends bt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===B?void 0:t}}class Pr extends bt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==B)}}class Or extends bt{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var n;if((t=(n=Oe(this,t,e,0))!=null?n:B)===Pe)return;const i=this._$AH,s=t===B&&i!==B||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==B&&(i===B||s);s&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}}class Mr{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Oe(this,t)}}const Pt=Ye.litHtmlPolyfillSupport;var Lo;Pt==null||Pt(Ge,it),((Lo=Ye.litHtmlVersions)!=null?Lo:Ye.litHtmlVersions=[]).push("3.3.1");const Ir=(o,t,e)=>{var r,n;const i=(r=e==null?void 0:e.renderBefore)!=null?r:t;let s=i._$litPart$;if(s===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=s=new it(t.insertBefore(qe(),a),a,void 0,e!=null?e:{})}return s._$AI(o),s};/**
23
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),Ki=/'/g,Gi=/"/g,jo=/^(?:script|style|textarea|title)$/i,Pe=Symbol.for("lit-noChange"),U=Symbol.for("lit-nothing"),Ji=new WeakMap,me=be.createTreeWalker(be,129);function Yo(o,t){if(!yi(o)||!o.hasOwnProperty("raw"))throw Error("invalid template strings array");return Yi!==void 0?Yi.createHTML(t):t}const Dr=(o,t)=>{const e=o.length-1,i=[];let s,r=t===2?"<svg>":t===3?"<math>":"",n=Le;for(let a=0;a<e;a++){const l=o[a];let d,u,h=-1,f=0;for(;f<l.length&&(n.lastIndex=f,u=n.exec(l),u!==null);)f=n.lastIndex,n===Le?u[1]==="!--"?n=Wi:u[1]!==void 0?n=qi:u[2]!==void 0?(jo.test(u[2])&&(s=RegExp("</"+u[2],"g")),n=fe):u[3]!==void 0&&(n=fe):n===fe?u[0]===">"?(n=s!=null?s:Le,h=-1):u[1]===void 0?h=-2:(h=n.lastIndex-u[2].length,d=u[1],n=u[3]===void 0?fe:u[3]==='"'?Gi:Ki):n===Gi||n===Ki?n=fe:n===Wi||n===qi?n=Le:(n=fe,s=void 0);const _=n===fe&&o[a+1].startsWith("/>")?" ":"";r+=n===Le?l+Tr:h>=0?(i.push(d),l.slice(0,h)+Vo+l.slice(h)+de+_):l+de+(h===-2?a:_)}return[Yo(o,r+(o[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Ge{constructor({strings:t,_$litType$:e},i){let s;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[d,u]=Dr(t,e);if(this.el=Ge.createElement(d,i),me.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes)}for(;(s=me.nextNode())!==null&&l.length<a;){if(s.nodeType===1){if(s.hasAttributes())for(const h of s.getAttributeNames())if(h.endsWith(Vo)){const f=u[n++],_=s.getAttribute(h).split(de),g=/([.?@])?(.*)/.exec(f);l.push({type:1,index:r,name:g[2],strings:_,ctor:g[1]==="."?Sr:g[1]==="?"?Pr:g[1]==="@"?Or:bt}),s.removeAttribute(h)}else h.startsWith(de)&&(l.push({type:6,index:r}),s.removeAttribute(h));if(jo.test(s.tagName)){const h=s.textContent.split(de),f=h.length-1;if(f>0){s.textContent=ht?ht.emptyScript:"";for(let _=0;_<f;_++)s.append(h[_],qe()),me.nextNode(),l.push({type:2,index:++r});s.append(h[f],qe())}}}else if(s.nodeType===8)if(s.data===Uo)l.push({type:2,index:r});else{let h=-1;for(;(h=s.data.indexOf(de,h+1))!==-1;)l.push({type:7,index:r}),h+=de.length-1}r++}}static createElement(t,e){const i=be.createElement("template");return i.innerHTML=t,i}}function Oe(o,t,e=o,i){var n,a,l;if(t===Pe)return t;let s=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=Ke(t)?void 0:t._$litDirective$;return(s==null?void 0:s.constructor)!==r&&((a=s==null?void 0:s._$AO)==null||a.call(s,!1),r===void 0?s=void 0:(s=new r(o),s._$AT(o,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=s:e._$Cl=s),s!==void 0&&(t=Oe(o,s._$AS(o,t.values),s,i)),t}class kr{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){var d;const{el:{content:e},parts:i}=this._$AD,s=((d=t==null?void 0:t.creationScope)!=null?d:be).importNode(e,!0);me.currentNode=s;let r=me.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let u;l.type===2?u=new it(r,r.nextSibling,this,t):l.type===1?u=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(u=new Mr(r,this,t)),this._$AV.push(u),l=i[++a]}n!==(l==null?void 0:l.index)&&(r=me.nextNode(),n++)}return me.currentNode=be,s}p(t){let e=0;for(const i of this._$AV)i!==void 0&&(i.strings!==void 0?(i._$AI(t,i,e),e+=i.strings.length-2):i._$AI(t[e])),e++}}class it{get _$AU(){var t,e;return(e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,s){var r;this.type=2,this._$AH=U,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=s,this._$Cv=(r=s==null?void 0:s.isConnected)!=null?r:!0}get parentNode(){let t=this._$AA.parentNode;const e=this._$AM;return e!==void 0&&(t==null?void 0:t.nodeType)===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=Oe(this,t,e),Ke(t)?t===U||t==null||t===""?(this._$AH!==U&&this._$AR(),this._$AH=U):t!==this._$AH&&t!==Pe&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):Er(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==U&&Ke(this._$AH)?this._$AA.nextSibling.data=t:this.T(be.createTextNode(t)),this._$AH=t}$(t){var r;const{values:e,_$litType$:i}=t,s=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Ge.createElement(Yo(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===s)this._$AH.p(e);else{const n=new kr(s,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n}}_$AC(t){let e=Ji.get(t.strings);return e===void 0&&Ji.set(t.strings,e=new Ge(t)),e}k(t){yi(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,s=0;for(const r of t)s===e.length?e.push(i=new it(this.O(qe()),this.O(qe()),this,this.options)):i=e[s],i._$AI(r),s++;s<e.length&&(this._$AR(i&&i._$AB.nextSibling,s),e.length=s)}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t!==this._$AB;){const s=t.nextSibling;t.remove(),t=s}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t))}}class bt{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,s,r){this.type=1,this._$AH=U,this._$AN=void 0,this.element=t,this.name=e,this._$AM=s,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=U}_$AI(t,e=this,i,s){const r=this.strings;let n=!1;if(r===void 0)t=Oe(this,t,e,0),n=!Ke(t)||t!==this._$AH&&t!==Pe,n&&(this._$AH=t);else{const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=Oe(this,a[i+l],e,l),d===Pe&&(d=this._$AH[l]),n||(n=!Ke(d)||d!==this._$AH[l]),d===U?t=U:t!==U&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d}n&&!s&&this.j(t)}j(t){t===U?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"")}}class Sr extends bt{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===U?void 0:t}}class Pr extends bt{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==U)}}class Or extends bt{constructor(t,e,i,s,r){super(t,e,i,s,r),this.type=5}_$AI(t,e=this){var n;if((t=(n=Oe(this,t,e,0))!=null?n:U)===Pe)return;const i=this._$AH,s=t===U&&i!==U||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==U&&(i===U||s);s&&this.element.removeEventListener(this.name,this,i),r&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){var e,i;typeof this._$AH=="function"?this._$AH.call((i=(e=this.options)==null?void 0:e.host)!=null?i:this.element,t):this._$AH.handleEvent(t)}}class Mr{constructor(t,e,i){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=i}get _$AU(){return this._$AM._$AU}_$AI(t){Oe(this,t)}}const Pt=Ye.litHtmlPolyfillSupport;var Lo;Pt==null||Pt(Ge,it),((Lo=Ye.litHtmlVersions)!=null?Lo:Ye.litHtmlVersions=[]).push("3.3.1");const Ir=(o,t,e)=>{var r,n;const i=(r=e==null?void 0:e.renderBefore)!=null?r:t;let s=i._$litPart$;if(s===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=s=new it(t.insertBefore(qe(),a),a,void 0,e!=null?e:{})}return s._$AI(o),s};/**
24
24
  * @license
25
25
  * Copyright 2017 Google LLC
26
26
  * SPDX-License-Identifier: BSD-3-Clause
@@ -33,7 +33,7 @@
33
33
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
34
34
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
35
35
  */const Wo=[],qt=new Set,vi=new Set;function qo(o){return o&&Object.prototype.hasOwnProperty.call(o,"__themes")}function Fr(o){return qo(customElements.get(o))}function zr(o=[]){return[o].flat(1/0).filter(t=>t instanceof gi?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function Ko(o,t){return(o||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function Go(o){return o.map(t=>t.cssText).join(`
36
- `)}const pt="vaadin-themable-mixin-style";function Lr(o,t){const e=document.createElement("style");e.id=pt,e.textContent=Go(o),t.content.appendChild(e)}function $r(o){if(!o.shadowRoot)return;const t=o.constructor;if(o instanceof Ee)[...o.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Ho(o.shadowRoot,t.elementStyles);else{const e=o.shadowRoot.getElementById(pt),i=t.prototype._template;e.textContent=i.content.getElementById(pt).textContent}}function Rr(o){qt.forEach(t=>{const e=t.deref();e instanceof o?$r(e):e||qt.delete(t)})}function Jo(o){if(o.prototype instanceof Ee)o.elementStyles=o.finalizeStyles(o.styles);else{const t=o.prototype._template;t.content.getElementById(pt).textContent=Go(o.getStylesForThis())}vi.forEach(t=>{const e=customElements.get(t);e!==o&&e.prototype instanceof o&&Jo(e)})}function Hr(o,t){const e=o.__themes;return!e||!t?!1:e.some(i=>i.styles.some(s=>t.some(r=>r.cssText===s.cssText)))}function L(o,t,e={}){t=zr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,t,e):Wo.push({themeFor:o,styles:t,include:e.include,moduleId:e.moduleId}),o&&vi.forEach(i=>{if(Ko(o,i)&&Fr(i)){const s=customElements.get(i);Hr(s,t)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),Jo(s),Rr(s)}})}function Kt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Wo}function Br(o=""){let t=0;return o.startsWith("lumo-")||o.startsWith("material-")?t=1:o.startsWith("vaadin-")&&(t=2),t}function Xo(o){const t=[];return o.include&&[].concat(o.include).forEach(e=>{const i=Kt().find(s=>s.moduleId===e);i?t.push(...Xo(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},o.styles),t}function Vr(o){const t=`${o}-default-theme`,e=Kt().filter(i=>i.moduleId!==t&&Ko(i.themeFor,o)).map(i=>Dt(Et({},i),{styles:[...Xo(i),...i.styles],includePriority:Br(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return e.length>0?e:Kt().filter(i=>i.moduleId===t)}const we=o=>class extends Nr(o){constructor(){super(),qt.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&vi.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||qo(this)||Lr(this.getStylesForThis(),e)}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=o.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...s,...Vr(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
36
+ `)}const pt="vaadin-themable-mixin-style";function Lr(o,t){const e=document.createElement("style");e.id=pt,e.textContent=Go(o),t.content.appendChild(e)}function $r(o){if(!o.shadowRoot)return;const t=o.constructor;if(o instanceof Ee)[...o.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),Ho(o.shadowRoot,t.elementStyles);else{const e=o.shadowRoot.getElementById(pt),i=t.prototype._template;e.textContent=i.content.getElementById(pt).textContent}}function Rr(o){qt.forEach(t=>{const e=t.deref();e instanceof o?$r(e):e||qt.delete(t)})}function Jo(o){if(o.prototype instanceof Ee)o.elementStyles=o.finalizeStyles(o.styles);else{const t=o.prototype._template;t.content.getElementById(pt).textContent=Go(o.getStylesForThis())}vi.forEach(t=>{const e=customElements.get(t);e!==o&&e.prototype instanceof o&&Jo(e)})}function Hr(o,t){const e=o.__themes;return!e||!t?!1:e.some(i=>i.styles.some(s=>t.some(r=>r.cssText===s.cssText)))}function $(o,t,e={}){t=zr(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(o,t,e):Wo.push({themeFor:o,styles:t,include:e.include,moduleId:e.moduleId}),o&&vi.forEach(i=>{if(Ko(o,i)&&Fr(i)){const s=customElements.get(i);Hr(s,t)?console.warn(`Registering styles that already exist for ${i}`):(!window.Vaadin||!window.Vaadin.suppressPostFinalizeStylesWarning)&&console.warn(`The custom element definition for "${i}" was finalized before a style module was registered. Ideally, import component specific style modules before importing the corresponding custom element. This warning can be suppressed by setting "window.Vaadin.suppressPostFinalizeStylesWarning = true".`),Jo(s),Rr(s)}})}function Kt(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():Wo}function Br(o=""){let t=0;return o.startsWith("lumo-")||o.startsWith("material-")?t=1:o.startsWith("vaadin-")&&(t=2),t}function Xo(o){const t=[];return o.include&&[].concat(o.include).forEach(e=>{const i=Kt().find(s=>s.moduleId===e);i?t.push(...Xo(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`)},o.styles),t}function Vr(o){const t=`${o}-default-theme`,e=Kt().filter(i=>i.moduleId!==t&&Ko(i.themeFor,o)).map(i=>Dt(Et({},i),{styles:[...Xo(i),...i.styles],includePriority:Br(i.moduleId)})).sort((i,s)=>s.includePriority-i.includePriority);return e.length>0?e:Kt().filter(i=>i.moduleId===t)}const we=o=>class extends Nr(o){constructor(){super(),qt.add(new WeakRef(this))}static finalize(){if(super.finalize(),this.is&&vi.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||qo(this)||Lr(this.getStylesForThis(),e)}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=o.__themes||[],i=Object.getPrototypeOf(this.prototype),s=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...s,...Vr(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
37
37
  * @license
38
38
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
39
39
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -42,7 +42,7 @@
42
42
  * @license
43
43
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
44
44
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
45
- */const jr=S`
45
+ */const jr=D`
46
46
  :host {
47
47
  --lumo-size-xs: 1.625rem;
48
48
  --lumo-size-s: 1.875rem;
@@ -61,7 +61,7 @@
61
61
  * @license
62
62
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
63
63
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
64
- */const Yr=S`
64
+ */const Yr=D`
65
65
  :host {
66
66
  /* Square */
67
67
  --lumo-space-xs: 0.25rem;
@@ -88,7 +88,7 @@
88
88
  * @license
89
89
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
90
90
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
91
- */const Wr=S`
91
+ */const Wr=D`
92
92
  :host {
93
93
  /* Border radius */
94
94
  --lumo-border-radius-s: 0.25em; /* Checkbox, badge, date-picker year indicator, etc */
@@ -105,7 +105,7 @@
105
105
  /* Clickable element cursor */
106
106
  --lumo-clickable-cursor: default;
107
107
  }
108
- `;S`
108
+ `;D`
109
109
  html {
110
110
  /* Button */
111
111
  --vaadin-button-background: var(--lumo-contrast-5pct);
@@ -192,7 +192,7 @@
192
192
  * @license
193
193
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
194
194
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
195
- */const qr=S`
195
+ */const qr=D`
196
196
  :host {
197
197
  /* Base (background) */
198
198
  --lumo-base-color: #fff;
@@ -277,7 +277,7 @@
277
277
  --lumo-disabled-text-color: GrayText;
278
278
  }
279
279
  }
280
- `;Ne("color-props",qr);const Kr=S`
280
+ `;Ne("color-props",qr);const Kr=D`
281
281
  [theme~='dark'] {
282
282
  /* Base (background) */
283
283
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -395,11 +395,11 @@
395
395
  pre code {
396
396
  background: transparent;
397
397
  }
398
- `;L("",Kr,{moduleId:"lumo-color"});/**
398
+ `;$("",Kr,{moduleId:"lumo-color"});/**
399
399
  * @license
400
400
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
401
401
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
402
- */const Gr=S`
402
+ */const Gr=D`
403
403
  :host {
404
404
  /* prettier-ignore */
405
405
  --lumo-font-family: -apple-system, BlinkMacSystemFont, 'Roboto', 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
@@ -419,7 +419,7 @@
419
419
  --lumo-line-height-s: 1.375;
420
420
  --lumo-line-height-m: 1.625;
421
421
  }
422
- `,Jr=S`
422
+ `,Jr=D`
423
423
  body,
424
424
  :host {
425
425
  font-family: var(--lumo-font-family);
@@ -511,11 +511,11 @@
511
511
  border-left: none;
512
512
  border-right: 2px solid var(--lumo-contrast-30pct);
513
513
  }
514
- `;L("",Jr,{moduleId:"lumo-typography"});Ne("typography-props",Gr);/**
514
+ `;$("",Jr,{moduleId:"lumo-typography"});Ne("typography-props",Gr);/**
515
515
  * @license
516
516
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
517
517
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
518
- */const Zo=S`
518
+ */const Zo=D`
519
519
  :host {
520
520
  top: var(--lumo-space-m);
521
521
  right: var(--lumo-space-m);
@@ -580,11 +580,11 @@
580
580
  opacity: 1;
581
581
  }
582
582
  }
583
- `;L("",Zo,{moduleId:"lumo-overlay"});/**
583
+ `;$("",Zo,{moduleId:"lumo-overlay"});/**
584
584
  * @license
585
585
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
586
586
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
587
- */const Qo=S`
587
+ */const Qo=D`
588
588
  :host([opening]),
589
589
  :host([closing]) {
590
590
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -614,7 +614,7 @@
614
614
  opacity: 0;
615
615
  }
616
616
  }
617
- `;L("",Qo,{moduleId:"lumo-menu-overlay-core"});const Xr=S`
617
+ `;$("",Qo,{moduleId:"lumo-menu-overlay-core"});const Xr=D`
618
618
  /* Small viewport (bottom sheet) styles */
619
619
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
620
620
  @media (max-width: 450px), (max-height: 450px) {
@@ -676,7 +676,7 @@
676
676
  transform: translateY(150%);
677
677
  }
678
678
  }
679
- `,es=[Zo,Qo,Xr];L("",es,{moduleId:"lumo-menu-overlay"});const Zr=S`
679
+ `,es=[Zo,Qo,Xr];$("",es,{moduleId:"lumo-menu-overlay"});const Zr=D`
680
680
  [part='overlay'] {
681
681
  /*
682
682
  Width:
@@ -721,7 +721,7 @@
721
721
  max-height: 70vh;
722
722
  }
723
723
  }
724
- `;L("vaadin-date-picker-overlay",[es,Zr],{moduleId:"lumo-date-picker-overlay"});const Qr=S`
724
+ `;$("vaadin-date-picker-overlay",[es,Zr],{moduleId:"lumo-date-picker-overlay"});const Qr=D`
725
725
  :host {
726
726
  /* Sizing */
727
727
  --lumo-button-size: var(--lumo-size-m);
@@ -997,7 +997,7 @@
997
997
  margin-left: 0;
998
998
  margin-right: 0;
999
999
  }
1000
- `;L("vaadin-button",Qr,{moduleId:"lumo-button"});L("vaadin-date-picker-year",S`
1000
+ `;$("vaadin-button",Qr,{moduleId:"lumo-button"});$("vaadin-date-picker-year",D`
1001
1001
  :host([current]) [part='year-number'] {
1002
1002
  color: var(--lumo-primary-text-color);
1003
1003
  }
@@ -1021,7 +1021,7 @@
1021
1021
  color: var(--lumo-disabled-text-color);
1022
1022
  content: '\\2022';
1023
1023
  }
1024
- `,{moduleId:"lumo-date-picker-year"});L("vaadin-date-picker-overlay-content",S`
1024
+ `,{moduleId:"lumo-date-picker-year"});$("vaadin-date-picker-overlay-content",D`
1025
1025
  :host {
1026
1026
  position: relative;
1027
1027
  /* Background for the year scroller, placed here as we are using a mask image on the actual years part */
@@ -1171,7 +1171,7 @@
1171
1171
  padding-left: 50px;
1172
1172
  }
1173
1173
  }
1174
- `,{moduleId:"lumo-date-picker-overlay-content"});L("vaadin-month-calendar",S`
1174
+ `,{moduleId:"lumo-date-picker-overlay-content"});$("vaadin-month-calendar",D`
1175
1175
  :host {
1176
1176
  -moz-user-select: none;
1177
1177
  -webkit-user-select: none;
@@ -1318,7 +1318,7 @@
1318
1318
  :host([disabled]) * {
1319
1319
  color: var(--lumo-disabled-text-color) !important;
1320
1320
  }
1321
- `,{moduleId:"lumo-month-calendar"});L("vaadin-input-container",S`
1321
+ `,{moduleId:"lumo-month-calendar"});$("vaadin-input-container",D`
1322
1322
  :host {
1323
1323
  background: var(--_background);
1324
1324
  padding: 0 calc(0.375em + var(--_input-container-radius) / 4 - 1px);
@@ -1500,7 +1500,7 @@
1500
1500
  * @license
1501
1501
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1502
1502
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1503
- */const en=S`
1503
+ */const en=D`
1504
1504
  @font-face {
1505
1505
  font-family: 'lumo-icons';
1506
1506
  src: url(data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABEgAAsAAAAAIjQAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAQwAAAFZAIUuKY21hcAAAAYgAAAD4AAADrsCU8d5nbHlmAAACgAAAC2cAABeAWri7U2hlYWQAAA3oAAAAMAAAADZa/6SsaGhlYQAADhgAAAAdAAAAJAbpA35obXR4AAAOOAAAABAAAACspBAAAGxvY2EAAA5IAAAAWAAAAFh57oA4bWF4cAAADqAAAAAfAAAAIAFKAXBuYW1lAAAOwAAAATEAAAIuUUJZCHBvc3QAAA/0AAABKwAAAelm8SzVeJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGS+yDiBgZWBgamKaQ8DA0MPhGZ8wGDIyAQUZWBlZsAKAtJcUxgcXjG+0mIO+p/FEMUcxDANKMwIkgMABn8MLQB4nO3SWW6DMABF0UtwCEnIPM/zhLK8LqhfXRybSP14XUYtHV9hGYQwQBNIo3cUIPkhQeM7rib1ekqnXg981XuC1qvy84lzojleh3puxL0hPjGjRU473teloEefAUNGjJkwZcacBUtWrNmwZceeA0dOnLlw5cadB09elPGhGf+j0NTI/65KfXerT6JhqKnpRKtgOpuqaTrtKjPUlqHmhto21I7pL6i6hlqY3q7qGWrfUAeGOjTUkaGODXViqFNDnRnq3FAXhro01JWhrg11Y6hbQ90Z6t5QD4Z6NNSToZ4N9WKoV0O9GerdUB+G+jTUl6GWRvkL24BkEXictVh9bFvVFb/nxvbz+7Rf/N6zHcd2bCfP+Wic1Z9N0jpNHCD9SNqqoVBgbQoMjY+pjA4hNnWa2pV1rHSIif0DGkyT2k10Kmu1Cag6huj4ZpqYBHSqJsTEJgZCG3TaVBFv595nO3ZIv4RIrPPuvefe884599zzO/cRF8G/tgn6CFFImNgkR0ggX8wlspbhSSWSdrC5ozd30s2dw5afzvgtyz9/zG9t1hV4RtF1pXolowvtzc2z6L2aYUQM45jKH9WDTvd1LRDoDASYWhfTzTyvboXz6uZX4ARX5wrF39y+HM2+CJ8d0pkyqBIqoze3D12ez4DrFoYzxI8dWwMrDlZ2DMqQAR9AROsJU+2smlTPaTTco52BVxXa2a2+I8vvqd2dVHm1LoPeTn/AZPRYGthDYOeZjBjKoFsVGulR3lGU95SeCK44oHU7MhWUGUKZDT3oSUcG2GWuh+EDDfUYA/jhIhl0TOsJNYSEu7mQmi3UzfXwZKA4BsVsHLXQYGgJW95qEtpJ1VcW9HiTriZBlFEqxsDjA09yCNUoQxxwd7KWSTt2y3GTKifkqHRCoWZc3m11Wa/dKdFgXD4kSYfkeJBKd8KMz7J8dZn/cGRCcLGDnA2Ge3bKzcvlnTDNthFWLH7Xt80ua5FMjA4WKelWv5Xo16vHuYzpRbJhhdVlftuRK0VlR27D9lu5TF0DPBi60OrHNO0AfP/uRWvhn/U3LXICE+nh+3IHPUJ8JE6GyBjZQLbjGchlrSgYngF8zyrIF4NJD3atUcgWsWunGN/UHX5B5/yg7uF87Nqp4Gf52F3gH73DjEZNRoqCKAr9giQJp5rGJABpiVE2htNhW9R8nw0jqYjCYcY4LIjwYNScf4WN06IZnZCEqsI4cFaQbo4Z1TsZBx40YhXkHOecaYE5oY37IIQ+iJJ+UsDYSun5MuRSBRZRUUhlY2DqOGajOR6zrSU/5My6l2DnusH1GQgnw5BZP7iuYM/ahcfQ7Z8y51ddfutvuwNqWQ0cBYr8fj0U0vsHpwerVaB2sWhXT2NExi2r1KUE2tUuVMnkepVQrxTmpQrZTG4iu8he8iPyM3KcPE/+RP5KPoE2CEAKclCBzXATxkYOtUY/o961PWRqsj0chRrHFBbtrjP9/P0ven5pcbRdpL94vfsy33e5+izuwz3nFLFPVNayPZx/jdG1fOChflFRvYzsW6L18efgLrSWIgvcqnGJYi4skO4xREURjbDuxKke5v0T3Mrzkt2fi31uyZlLLrqIpEuXXsMlgw442Jb0GAxjS1DM20kBoCzHLXm/jEm0IltdcvU0fEW24jgiwwRjVd9u4NJHcIyoHJcwvyVqgqj5hqBJ1ZWSJryh9p56UWhX1XbhRbW2ZopuZWsQd5y8mEQ8M+C6xjRYxZbDKWf5AgY+Qq/l6wSPk16zDFjowYuu+wjx13mfkxbyDDxadYT/LijZyI0THB+6yfLaWsRcO82zo9mWTNtpO18qlorZoIVMwSN40tky5DOQ1MCIAe24mvlsuwIIxPb10+uXDQ4uWz/9m3rj+ql7p6bufZARuPVq5tXtsn6KwfP8Jy0TeWOyNhUJN6mhX5rkUTtUppQWEMNTqEdaCGKFYKJaQrCE4JtDLYOlNEKmO5kBTPGY2A0N2sY3+dVlo1N9ycBsIGtOjQ2p/tlZvzo0ur4v6cOh8NTospB7U/X40KahoU3bGIH97dnwmtHlYffVG3R1YOwKM2vNhrPhCT5zk64sG53oS4b31aYjqe/B7+kQiXBN+b6h21hNUPMq29B8CU4elINdygMPKF1B+WBTG7Z9ZshpN/xwEuuDQZR+nuoo4CDaAiiwXmLpmukMQyPf/JMclqgL1ixZQ/nnP2VbdUODFGt2fgBvL123rlLYu/6A9ckb7F3K0/CyBMEu6aQoPscroCcacVehvyQyCZAsizsWWBkoLC+WAiWnOksLKaeuQDzGuqSk42aiYTiJ4zf9afl17SrqaTO1f+XlZAfIuYcq7/IqYMaMrksOJ6vHkOCPDq943xcCnHqVD9pHFRpMqSPXrIua1WNs+tOz1U+ciTCDpPk+c4QYJIHnYhxP/kVPAq+ahFpVhPcHp8qyarhiF+HsBU9Hrl+UZa876fbKipL0KqB6OdUveErgtOI97fZ63ae9SvWU6k2w1JfwqnUbHsYcFCJFrC/W12zIMMirWYEHxMPs6LGYSdkSZ5TsNP9PCpwnWC3HKZ1lydNjWHC2Mn3l6vL0dHn1ldP3LTSrX+vKrBqv7KmMr8p0SR6P1NqF63or6XRlIyO90f7+kf7+myOhvt4tq7f09oUiTc2/dycGgqFQcCDRLYmi1NL7fk0CknVMxEg/cdfs/TnpJMNkgqwj17B8beVazSrVbU4lG67IZYOCnWrYy3yBR9cyWcChywos3LJBEdhhFoAdYjiw0rLGm0xU5OzoGm5/ZfmHjVZpNNg6SznzGKDdwv2cCtVn6Eaxo12cfxLprpVtTcZ6hVx6dow7Yq7e8LXO8PY9Jgjoze9yCtU5FNbegcKkQMdCbt9au/te4Ebe0jkc0ukUL32eYnTpNs20h0KpUOhZPYwVcfhZnfdqeCvDfXiuCbAoYWcXERPc/mDQD3/hdF+wK4i/xv3kYfprIpAuMkk2kW3kdtS0kBIKpZwp8KxmsCyfM1MFzAss9LBkDxRyThiaqTLwKYKJVTwmWTudMyz+yks09346MDh4m72yOxCKrt1XMlQ1qPVlTEVVQ1ofdK/sCWjtZu9qGwZ8YZ9PPWlo1IV3eW3+U0aXblP39zrt+JPf6UhEQ1rUjNBULN+utyuaDNW34kpAVuSOeMTyWbSNWnooFu+QFNWQ4d/Ox4IPWx41fP/fB/Rjeoz08ezPA9TysMtmnOXfGN7Ui3xIYLDALrlDLOP09qtJuY2OeL0+QZXdRnR1nxRVBF/SOyKKPpcrn9mWzH4rH9IidE+PTNU2182+hOgSItrE1slByS24vaLvJpxOqe4Pduf3HJkZ+jLqUz9rRzB7p8gKcgWZwV1L8JtUS5Z2JxZSOCuBoMTQihMzLbCPA0KqGMAljRQjONklW/wjnXKy8vxT/Elvm3/KiMUMOoV0/vnDYlhec0SMKtt3/kKMyOt33tj2bqxQLsTjSGLl+EAsNhCnTyRGktW55EgCn/A4PlnWn+Mg8bgZrWqHxTbPwMuyy1u5YeZF2SUM7JRhddwRgiRuxpmgJmxn9ZW7XpcF3ViX/ar6ptRpGJ0S9Adg4qhb9sI3vbL7qNJV/y4i07t5TZBiho1imFoMz3gED+CtjYUxvP4SOxov4bFoNPg5aR1e+G4UgDPoedJTpogyCJ7oYvRqoVS0MQAy+CoNEdTDUjok5ZHZL/WtjV7rFj3PKQE3iKp7ou+rIxN3b9LB1dGjeT4cvKo3FrnWpYpuaFd/h3dtV8UeKN1Y9hpR3dt4p0H/zKuPQq0kZQUIIpuDfoiETsnIk+gCWMJZUXHtE8V9LkUc2TE8vOMbO4ax/MACabzyaGXc7u3FBr11ThBdB8SIeMAlCntG2KThHSPsaj2Dc9KNyY2a0KZ7ODaTHoRiFkeYz+shZBpCS4X6471KKKnuHd84edfk5F37d1XO5bbkcltu2ZLNbvnPXiUVAnVvprJrP+NObryjxrllS65md6Tm6wzFHRR4dY3QUUjb7MgxaIixU8hspi98fl/Xc+IB4iU66eCVL9YfAfahiSUt4TONS8x0D8W7u8vd3fGWx6OXlM/U1IoU/s61PGhpyXRFa3eReq2qG56lvmYtXavCC1iN7lbiBpWxXHU+cSlztVLVz0tVN600fVsLxaVDknhYioeoXP3t4lqV1r79MAw0GCI1FTL1YIGzPL1MMlJ9ZsN9P7lvA2yr9ZFUzwzPrVgxN/x/SS+chwB4nGNgZGBgAOLPrYdY4vltvjJwM78AijDUqG5oRND/XzNPZboF5HIwMIFEAU/lC+J4nGNgZGBgDvqfBSRfMAAB81QGRgZUoA0AVvYDbwAAAHicY2BgYGB+MTQwAM8EJo8AAAAAAE4AmgDoAQoBLAFOAXABmgHEAe4CGgKcAugEmgS8BNYE8gUOBSoFegXQBf4GRAZmBrYHGAeQCBgIUghqCP4JRgm+CdoKBAo+CoQKugr0C1QLmgvAeJxjYGRgYNBmTGEQZQABJiDmAkIGhv9gPgMAGJQBvAB4nG2RPU7DMBiG3/QP0UoIBGJh8QILavozdmRo9w7d09RpUzlx5LgVvQMn4BAcgoEzcAgOwVvzSZVQbcnf48fvFysJgGt8IcJxROiG9TgauODuj5ukG+EW+UG4jR4ehTv0Q+EunjER7uEWmk+IWpc0d3gVbuAKb8JN+nfhFvlDuI17fAp36L+Fu1jgR7iHp+jF7Arbz1Nb1nO93pnEncSJFtrVuS3VKB6e5EyX2iVer9TyoOr9eux9pjJnCzW1pdfGWFU5u9WpjzfeV5PBIBMfp7aAwQ4FLPrIkbKWqDHn+67pDRK4s4lzbsEux5qHvcIIMb/nueSMyTKkE3jWFdNLHLjW2PPmMa1Hxn3GjGW/wjT0HtOG09JU4WxLk9LH2ISuiv9twJn9y8fh9uIXI+BknAAAAHicbY7ZboMwEEW5CVBCSLrv+76kfJRjTwHFsdGAG+Xvy5JUfehIHp0rnxmNN/D6ir3/a4YBhvARIMQOIowQY4wEE0yxiz3s4wCHOMIxTnCKM5zjApe4wjVucIs73OMBj3jCM17wije84wMzfHqJ0EVmUkmmJo77oOmrHvfIRZbXsTCZplTZldlgb3TYGVHProwFs11t1A57tcON2rErR3PBqcwF1/6ctI6k0GSU4JHMSS6WghdJQ99sTbfuN7QLJ9vQ37dNrgyktnIxlDYLJNuqitpRbYWKFNuyDT6pog6oOYKHtKakeakqKjHXpPwlGRcsC+OqxLIiJpXqoqqDMreG2l5bv9Ri3TRX+c23DZna9WFFgmXuO6Ps1Jm/w6ErW8N3FbHn/QC444j0AA==)
@@ -1557,7 +1557,7 @@
1557
1557
  * @license
1558
1558
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1559
1559
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1560
- */const ts=S`
1560
+ */const ts=D`
1561
1561
  [part$='button'] {
1562
1562
  flex: none;
1563
1563
  width: 1em;
@@ -1584,11 +1584,11 @@
1584
1584
  font-family: 'lumo-icons';
1585
1585
  display: block;
1586
1586
  }
1587
- `;L("",ts,{moduleId:"lumo-field-button"});/**
1587
+ `;$("",ts,{moduleId:"lumo-field-button"});/**
1588
1588
  * @license
1589
1589
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1590
1590
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1591
- */const tn=S`
1591
+ */const tn=D`
1592
1592
  :host {
1593
1593
  --_helper-spacing: var(--vaadin-input-field-helper-spacing, 0.4em);
1594
1594
  }
@@ -1648,7 +1648,7 @@
1648
1648
  * @license
1649
1649
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1650
1650
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1651
- */const is=S`
1651
+ */const is=D`
1652
1652
  [part='label'] {
1653
1653
  align-self: flex-start;
1654
1654
  color: var(--vaadin-input-field-label-color, var(--lumo-secondary-text-color));
@@ -1760,11 +1760,11 @@
1760
1760
  margin-left: 0;
1761
1761
  margin-right: calc(var(--lumo-border-radius-m) / 4);
1762
1762
  }
1763
- `;L("",is,{moduleId:"lumo-required-field"});/**
1763
+ `;$("",is,{moduleId:"lumo-required-field"});/**
1764
1764
  * @license
1765
1765
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
1766
1766
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
1767
- */const on=S`
1767
+ */const on=D`
1768
1768
  :host {
1769
1769
  --lumo-text-field-size: var(--lumo-size-m);
1770
1770
  color: var(--vaadin-input-field-value-color, var(--lumo-body-text-color));
@@ -1895,7 +1895,7 @@
1895
1895
  [part='clear-button']::before {
1896
1896
  content: var(--lumo-icons-cross);
1897
1897
  }
1898
- `,os=[is,ts,tn,on];L("",os,{moduleId:"lumo-input-field-shared-styles"});const sn=S`
1898
+ `,os=[is,ts,tn,on];$("",os,{moduleId:"lumo-input-field-shared-styles"});const sn=D`
1899
1899
  [part='toggle-button']::before {
1900
1900
  content: var(--lumo-icons-calendar);
1901
1901
  }
@@ -1917,7 +1917,7 @@
1917
1917
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
1918
1918
  --_lumo-text-field-overflow-mask-image: none;
1919
1919
  }
1920
- `;L("vaadin-date-picker",[os,sn],{moduleId:"lumo-date-picker"});/**
1920
+ `;$("vaadin-date-picker",[os,sn],{moduleId:"lumo-date-picker"});/**
1921
1921
  @license
1922
1922
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1923
1923
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1933,7 +1933,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1933
1933
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1934
1934
  Code distributed by Google as part of the polymer project is also
1935
1935
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1936
- */let rn=/(url\()([^)]*)(\))/g,nn=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,rt,G;function We(o,t){if(o&&nn.test(o)||o==="//")return o;if(rt===void 0){rt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",rt=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),rt)try{return new URL(o,t).href}catch(e){return o}return G||(G=document.implementation.createHTMLDocument("temp"),G.base=G.createElement("base"),G.head.appendChild(G.base),G.anchor=G.createElement("a"),G.body.appendChild(G.anchor)),G.base.href=t,G.anchor.href=o,G.anchor.href||o}function bi(o,t){return o.replace(rn,function(e,i,s,r){return i+"'"+We(s.replace(/["']/g,""),t)+"'"+r})}function wi(o){return o.substring(0,o.lastIndexOf("/")+1)}/**
1936
+ */let rn=/(url\()([^)]*)(\))/g,nn=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,rt,X;function We(o,t){if(o&&nn.test(o)||o==="//")return o;if(rt===void 0){rt=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",rt=e.href==="http://a/c%20d"}catch(e){}}if(t||(t=document.baseURI||window.location.href),rt)try{return new URL(o,t).href}catch(e){return o}return X||(X=document.implementation.createHTMLDocument("temp"),X.base=X.createElement("base"),X.head.appendChild(X.base),X.anchor=X.createElement("a"),X.body.appendChild(X.anchor)),X.base.href=t,X.anchor.href=o,X.anchor.href||o}function bi(o,t){return o.replace(rn,function(e,i,s,r){return i+"'"+We(s.replace(/["']/g,""),t)+"'"+r})}function wi(o){return o.substring(0,o.lastIndexOf("/")+1)}/**
1937
1937
  @license
1938
1938
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1939
1939
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1949,7 +1949,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1949
1949
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1950
1950
  Code distributed by Google as part of the polymer project is also
1951
1951
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1952
- */let fn=0;const H=function(o){let t=o.__mixinApplications;t||(t=new WeakMap,o.__mixinApplications=t);let e=fn++;function i(s){let r=s.__mixinSet;if(r&&r[e])return s;let n=t,a=n.get(s);if(!a){a=o(s),n.set(s,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l}return a}return i};/**
1952
+ */let fn=0;const B=function(o){let t=o.__mixinApplications;t||(t=new WeakMap,o.__mixinApplications=t);let e=fn++;function i(s){let r=s.__mixinSet;if(r&&r[e])return s;let n=t,a=n.get(s);if(!a){a=o(s),n.set(s,a);let l=Object.create(a.__mixinSet||r||null);l[e]=!0,a.__mixinSet=l}return a}return i};/**
1953
1953
  @license
1954
1954
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1955
1955
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1973,7 +1973,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1973
1973
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1974
1974
  Code distributed by Google as part of the polymer project is also
1975
1975
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1976
- */const V=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?o=>ShadyDOM.patch(o):o=>o;/**
1976
+ */const j=window.ShadyDOM&&window.ShadyDOM.noPatch&&window.ShadyDOM.wrap?window.ShadyDOM.wrap:window.ShadyDOM?o=>ShadyDOM.patch(o):o=>o;/**
1977
1977
  @license
1978
1978
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1979
1979
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -1981,7 +1981,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
1981
1981
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
1982
1982
  Code distributed by Google as part of the polymer project is also
1983
1983
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
1984
- */function Jt(o){return o.indexOf(".")>=0}function xe(o){let t=o.indexOf(".");return t===-1?o:o.slice(0,t)}function us(o,t){return o.indexOf(t+".")===0}function Xe(o,t){return t.indexOf(o+".")===0}function Ze(o,t,e){return t+e.slice(o.length)}function wn(o,t){return o===t||us(o,t)||Xe(o,t)}function Ve(o){if(Array.isArray(o)){let t=[];for(let e=0;e<o.length;e++){let i=o[e].toString().split(".");for(let s=0;s<i.length;s++)t.push(i[s])}return t.join(".")}else return o}function hs(o){return Array.isArray(o)?Ve(o).split("."):o.toString().split(".")}function W(o,t,e){let i=o,s=hs(t);for(let r=0;r<s.length;r++){if(!i)return;let n=s[r];i=i[n]}return e&&(e.path=s.join(".")),i}function oo(o,t,e){let i=o,s=hs(t),r=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(i=i[a],!i)return}i[r]=e}else i[t]=e;return s.join(".")}/**
1984
+ */function Jt(o){return o.indexOf(".")>=0}function xe(o){let t=o.indexOf(".");return t===-1?o:o.slice(0,t)}function us(o,t){return o.indexOf(t+".")===0}function Xe(o,t){return t.indexOf(o+".")===0}function Ze(o,t,e){return t+e.slice(o.length)}function wn(o,t){return o===t||us(o,t)||Xe(o,t)}function Ve(o){if(Array.isArray(o)){let t=[];for(let e=0;e<o.length;e++){let i=o[e].toString().split(".");for(let s=0;s<i.length;s++)t.push(i[s])}return t.join(".")}else return o}function hs(o){return Array.isArray(o)?Ve(o).split("."):o.toString().split(".")}function K(o,t,e){let i=o,s=hs(t);for(let r=0;r<s.length;r++){if(!i)return;let n=s[r];i=i[n]}return e&&(e.path=s.join(".")),i}function oo(o,t,e){let i=o,s=hs(t),r=s[s.length-1];if(s.length>1){for(let n=0;n<s.length-1;n++){let a=s[n];if(i=i[a],!i)return}i[r]=e}else i[t]=e;return s.join(".")}/**
1985
1985
  @license
1986
1986
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
1987
1987
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2005,7 +2005,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2005
2005
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2006
2006
  Code distributed by Google as part of the polymer project is also
2007
2007
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2008
- */const kn=_s,gs=H(o=>{class t extends o{static createProperties(i){const s=this.prototype;for(let r in i)r in s||s._createPropertyAccessor(r)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,s){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,s))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[i];return s||(s=this.constructor.attributeNameForProperty(i),this.__dataAttributes[s]=i),s}_definePropertyAccessor(i,s){Object.defineProperty(this,i,{get(){return this.__data[i]},set:s?function(){}:function(r){this._setPendingProperty(i,r,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,s){this._setPendingProperty(i,s)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,s,r){let n=this.__data[i],a=this._shouldPropertyChange(i,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=s,this.__dataPending[i]=s),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,kn.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const i=this.__data,s=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,s,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,s,r)),this.__dataCounter--}_shouldPropertiesChange(i,s,r){return!!s}_propertiesChanged(i,s,r){}_shouldPropertyChange(i,s,r){return r!==s&&(r===r||s===s)}attributeChangedCallback(i,s,r,n){s!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,s,r,n)}_attributeToProperty(i,s,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(s,r||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,s,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,s||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,s,r){const n=this._serializeValue(s);(r==="class"||r==="name"||r==="slot")&&(i=V(i)),n===void 0?i.removeAttribute(r):i.setAttribute(r,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,s){switch(s){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
2008
+ */const kn=_s,gs=B(o=>{class t extends o{static createProperties(i){const s=this.prototype;for(let r in i)r in s||s._createPropertyAccessor(r)}static attributeNameForProperty(i){return i.toLowerCase()}static typeForProperty(i){}_createPropertyAccessor(i,s){this._addPropertyToAttributeMap(i),this.hasOwnProperty(JSCompiler_renameProperty("__dataHasAccessor",this))||(this.__dataHasAccessor=Object.assign({},this.__dataHasAccessor)),this.__dataHasAccessor[i]||(this.__dataHasAccessor[i]=!0,this._definePropertyAccessor(i,s))}_addPropertyToAttributeMap(i){this.hasOwnProperty(JSCompiler_renameProperty("__dataAttributes",this))||(this.__dataAttributes=Object.assign({},this.__dataAttributes));let s=this.__dataAttributes[i];return s||(s=this.constructor.attributeNameForProperty(i),this.__dataAttributes[s]=i),s}_definePropertyAccessor(i,s){Object.defineProperty(this,i,{get(){return this.__data[i]},set:s?function(){}:function(r){this._setPendingProperty(i,r,!0)&&this._invalidateProperties()}})}constructor(){super(),this.__dataEnabled=!1,this.__dataReady=!1,this.__dataInvalid=!1,this.__data={},this.__dataPending=null,this.__dataOld=null,this.__dataInstanceProps=null,this.__dataCounter=0,this.__serializing=!1,this._initializeProperties()}ready(){this.__dataReady=!0,this._flushProperties()}_initializeProperties(){for(let i in this.__dataHasAccessor)this.hasOwnProperty(i)&&(this.__dataInstanceProps=this.__dataInstanceProps||{},this.__dataInstanceProps[i]=this[i],delete this[i])}_initializeInstanceProperties(i){Object.assign(this,i)}_setProperty(i,s){this._setPendingProperty(i,s)&&this._invalidateProperties()}_getProperty(i){return this.__data[i]}_setPendingProperty(i,s,r){let n=this.__data[i],a=this._shouldPropertyChange(i,s,n);return a&&(this.__dataPending||(this.__dataPending={},this.__dataOld={}),this.__dataOld&&!(i in this.__dataOld)&&(this.__dataOld[i]=n),this.__data[i]=s,this.__dataPending[i]=s),a}_isPropertyPending(i){return!!(this.__dataPending&&this.__dataPending.hasOwnProperty(i))}_invalidateProperties(){!this.__dataInvalid&&this.__dataReady&&(this.__dataInvalid=!0,kn.run(()=>{this.__dataInvalid&&(this.__dataInvalid=!1,this._flushProperties())}))}_enableProperties(){this.__dataEnabled||(this.__dataEnabled=!0,this.__dataInstanceProps&&(this._initializeInstanceProperties(this.__dataInstanceProps),this.__dataInstanceProps=null),this.ready())}_flushProperties(){this.__dataCounter++;const i=this.__data,s=this.__dataPending,r=this.__dataOld;this._shouldPropertiesChange(i,s,r)&&(this.__dataPending=null,this.__dataOld=null,this._propertiesChanged(i,s,r)),this.__dataCounter--}_shouldPropertiesChange(i,s,r){return!!s}_propertiesChanged(i,s,r){}_shouldPropertyChange(i,s,r){return r!==s&&(r===r||s===s)}attributeChangedCallback(i,s,r,n){s!==r&&this._attributeToProperty(i,r),super.attributeChangedCallback&&super.attributeChangedCallback(i,s,r,n)}_attributeToProperty(i,s,r){if(!this.__serializing){const n=this.__dataAttributes,a=n&&n[i]||i;this[a]=this._deserializeValue(s,r||this.constructor.typeForProperty(a))}}_propertyToAttribute(i,s,r){this.__serializing=!0,r=arguments.length<3?this[i]:r,this._valueToNodeAttribute(this,r,s||this.constructor.attributeNameForProperty(i)),this.__serializing=!1}_valueToNodeAttribute(i,s,r){const n=this._serializeValue(s);(r==="class"||r==="name"||r==="slot")&&(i=j(i)),n===void 0?i.removeAttribute(r):i.setAttribute(r,n===""&&window.trustedTypes?window.trustedTypes.emptyScript:n)}_serializeValue(i){switch(typeof i){case"boolean":return i?"":void 0;default:return i!=null?i.toString():void 0}}_deserializeValue(i,s){switch(s){case Boolean:return i!==null;case Number:return Number(i);default:return i}}}return t});/**
2009
2009
  @license
2010
2010
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2011
2011
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2013,7 +2013,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2013
2013
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2014
2014
  Code distributed by Google as part of the polymer project is also
2015
2015
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2016
- */const ys={};let nt=HTMLElement.prototype;for(;nt;){let o=Object.getOwnPropertyNames(nt);for(let t=0;t<o.length;t++)ys[o[t]]=!0;nt=Object.getPrototypeOf(nt)}const Sn=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function Pn(o,t){if(!ys[t]){let e=o[t];e!==void 0&&(o.__data?o._setPendingProperty(t,e):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[t]=e))}}const On=H(o=>{const t=gs(o);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let r=0;r<s.length;r++)this.prototype._createPropertyAccessor(ps(s[r]))}static attributeNameForProperty(s){return wt(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let r in s)this._setProperty(r,s[r])}_ensureAttribute(s,r){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,r,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Sn(s))return s;try{return JSON.stringify(s)}catch(r){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,r){let n;switch(r){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,r);break}return n}_definePropertyAccessor(s,r){Pn(this,s),super._definePropertyAccessor(s,r)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
2016
+ */const ys={};let nt=HTMLElement.prototype;for(;nt;){let o=Object.getOwnPropertyNames(nt);for(let t=0;t<o.length;t++)ys[o[t]]=!0;nt=Object.getPrototypeOf(nt)}const Sn=window.trustedTypes?o=>trustedTypes.isHTML(o)||trustedTypes.isScript(o)||trustedTypes.isScriptURL(o):()=>!1;function Pn(o,t){if(!ys[t]){let e=o[t];e!==void 0&&(o.__data?o._setPendingProperty(t,e):(o.__dataProto?o.hasOwnProperty(JSCompiler_renameProperty("__dataProto",o))||(o.__dataProto=Object.create(o.__dataProto)):o.__dataProto={},o.__dataProto[t]=e))}}const On=B(o=>{const t=gs(o);class e extends t{static createPropertiesForAttributes(){let s=this.observedAttributes;for(let r=0;r<s.length;r++)this.prototype._createPropertyAccessor(ps(s[r]))}static attributeNameForProperty(s){return wt(s)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties()}_initializeProtoProperties(s){for(let r in s)this._setProperty(r,s[r])}_ensureAttribute(s,r){const n=this;n.hasAttribute(s)||this._valueToNodeAttribute(n,r,s)}_serializeValue(s){switch(typeof s){case"object":if(s instanceof Date)return s.toString();if(s){if(Sn(s))return s;try{return JSON.stringify(s)}catch(r){return""}}default:return super._serializeValue(s)}}_deserializeValue(s,r){let n;switch(r){case Object:try{n=JSON.parse(s)}catch(a){n=s}break;case Array:try{n=JSON.parse(s)}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${s}`)}break;case Date:n=isNaN(s)?String(s):Number(s),n=new Date(n);break;default:n=super._deserializeValue(s,r);break}return n}_definePropertyAccessor(s,r){Pn(this,s),super._definePropertyAccessor(s,r)}_hasAccessor(s){return this.__dataHasAccessor&&this.__dataHasAccessor[s]}_isPropertyPending(s){return!!(this.__dataPending&&s in this.__dataPending)}}return e});/**
2017
2017
  @license
2018
2018
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2019
2019
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2021,7 +2021,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2021
2021
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2022
2022
  Code distributed by Google as part of the polymer project is also
2023
2023
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2024
- */const Mn={"dom-if":!0,"dom-repeat":!0};let so=!1,ro=!1;function In(){if(!so){so=!0;const o=document.createElement("textarea");o.placeholder="a",ro=o.placeholder===o.textContent}return ro}function Nn(o){In()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null)}const Fn=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,i)=>{const s=e.getAttribute(i);if(o&&i.startsWith("on-")){t.setAttribute(i,o.createScript(s,i));return}t.setAttribute(i,s)}})();function zn(o){let t=o.getAttribute("is");if(t&&Mn[t]){let e=o;for(e.removeAttribute("is"),o=e.ownerDocument.createElement(t),e.parentNode.replaceChild(o,e),o.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];Fn(o,e,i),e.removeAttribute(i)}}return o}function vs(o,t){let e=t.parentInfo&&vs(o,t.parentInfo);if(e){for(let i=e.firstChild,s=0;i;i=i.nextSibling)if(t.parentIndex===s++)return i}else return o}function Ln(o,t,e,i){i.id&&(t[i.id]=e)}function $n(o,t,e){if(e.events&&e.events.length)for(let i=0,s=e.events,r;i<s.length&&(r=s[i]);i++)o._addMethodEventListenerToNode(t,r.name,r.value,o)}function Rn(o,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i)}function Hn(o,t,e){return o=o._methodHost||o,function(s){o[e]?o[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const Bn=H(o=>{class t extends o{static _parseTemplate(i,s){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!s,r.stripWhiteSpace=s&&s.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,s,r){return this._parseTemplateNode(i.content,s,r)}static _parseTemplateNode(i,s,r){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,r)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),Nn(a),a.firstChild&&this._parseTemplateChildNodes(a,s,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,r)||n),n||r.noted}static _parseTemplateChildNodes(i,s,r){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=zn(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let u=l;for(;u&&u.nodeType===Node.TEXT_NODE;)n.textContent+=u.textContent,l=u.nextSibling,i.removeChild(u),u=l;if(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,s,r){let n=i,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,s,r){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,s,r,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,s,r,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(i){let s=i._templateInfo;return s&&s.content||i.content}_stampTemplate(i,s){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),s=s||this.constructor._parseTemplate(i);let r=s.nodeInfoList,n=s.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let d=0,u=r.length,h;d<u&&(h=r[d]);d++){let p=l[d]=vs(a,h);Ln(this,a.$,p,h),Rn(this,p,h,s),$n(this,p,h)}return a=a,a}_addMethodEventListenerToNode(i,s,r,n){n=n||i;let a=Hn(n,s,r);return this._addEventListenerToNode(i,s,a),a}_addEventListenerToNode(i,s,r){i.addEventListener(s,r)}_removeEventListenerFromNode(i,s,r){i.removeEventListener(s,r)}}return t});/**
2024
+ */const Mn={"dom-if":!0,"dom-repeat":!0};let so=!1,ro=!1;function In(){if(!so){so=!0;const o=document.createElement("textarea");o.placeholder="a",ro=o.placeholder===o.textContent}return ro}function Nn(o){In()&&o.localName==="textarea"&&o.placeholder&&o.placeholder===o.textContent&&(o.textContent=null)}const Fn=(()=>{const o=window.trustedTypes&&window.trustedTypes.createPolicy("polymer-template-event-attribute-policy",{createScript:t=>t});return(t,e,i)=>{const s=e.getAttribute(i);if(o&&i.startsWith("on-")){t.setAttribute(i,o.createScript(s,i));return}t.setAttribute(i,s)}})();function zn(o){let t=o.getAttribute("is");if(t&&Mn[t]){let e=o;for(e.removeAttribute("is"),o=e.ownerDocument.createElement(t),e.parentNode.replaceChild(o,e),o.appendChild(e);e.attributes.length;){const{name:i}=e.attributes[0];Fn(o,e,i),e.removeAttribute(i)}}return o}function vs(o,t){let e=t.parentInfo&&vs(o,t.parentInfo);if(e){for(let i=e.firstChild,s=0;i;i=i.nextSibling)if(t.parentIndex===s++)return i}else return o}function Ln(o,t,e,i){i.id&&(t[i.id]=e)}function $n(o,t,e){if(e.events&&e.events.length)for(let i=0,s=e.events,r;i<s.length&&(r=s[i]);i++)o._addMethodEventListenerToNode(t,r.name,r.value,o)}function Rn(o,t,e,i){e.templateInfo&&(t._templateInfo=e.templateInfo,t._parentTemplateInfo=i)}function Hn(o,t,e){return o=o._methodHost||o,function(s){o[e]?o[e](s,s.detail):console.warn("listener method `"+e+"` not defined")}}const Bn=B(o=>{class t extends o{static _parseTemplate(i,s){if(!i._templateInfo){let r=i._templateInfo={};r.nodeInfoList=[],r.nestedTemplate=!!s,r.stripWhiteSpace=s&&s.stripWhiteSpace||i.hasAttribute&&i.hasAttribute("strip-whitespace"),this._parseTemplateContent(i,r,{parent:null})}return i._templateInfo}static _parseTemplateContent(i,s,r){return this._parseTemplateNode(i.content,s,r)}static _parseTemplateNode(i,s,r){let n=!1,a=i;return a.localName=="template"&&!a.hasAttribute("preserve-content")?n=this._parseTemplateNestedTemplate(a,s,r)||n:a.localName==="slot"&&(s.hasInsertionPoint=!0),Nn(a),a.firstChild&&this._parseTemplateChildNodes(a,s,r),a.hasAttributes&&a.hasAttributes()&&(n=this._parseTemplateNodeAttributes(a,s,r)||n),n||r.noted}static _parseTemplateChildNodes(i,s,r){if(!(i.localName==="script"||i.localName==="style"))for(let n=i.firstChild,a=0,l;n;n=l){if(n.localName=="template"&&(n=zn(n)),l=n.nextSibling,n.nodeType===Node.TEXT_NODE){let u=l;for(;u&&u.nodeType===Node.TEXT_NODE;)n.textContent+=u.textContent,l=u.nextSibling,i.removeChild(u),u=l;if(s.stripWhiteSpace&&!n.textContent.trim()){i.removeChild(n);continue}}let d={parentIndex:a,parentInfo:r};this._parseTemplateNode(n,s,d)&&(d.infoIndex=s.nodeInfoList.push(d)-1),n.parentNode&&a++}}static _parseTemplateNestedTemplate(i,s,r){let n=i,a=this._parseTemplate(n,s);return(a.content=n.content.ownerDocument.createDocumentFragment()).appendChild(n.content),r.templateInfo=a,!0}static _parseTemplateNodeAttributes(i,s,r){let n=!1,a=Array.from(i.attributes);for(let l=a.length-1,d;d=a[l];l--)n=this._parseTemplateNodeAttribute(i,s,r,d.name,d.value)||n;return n}static _parseTemplateNodeAttribute(i,s,r,n,a){return n.slice(0,3)==="on-"?(i.removeAttribute(n),r.events=r.events||[],r.events.push({name:n.slice(3),value:a}),!0):n==="id"?(r.id=a,!0):!1}static _contentForTemplate(i){let s=i._templateInfo;return s&&s.content||i.content}_stampTemplate(i,s){i&&!i.content&&window.HTMLTemplateElement&&HTMLTemplateElement.decorate&&HTMLTemplateElement.decorate(i),s=s||this.constructor._parseTemplate(i);let r=s.nodeInfoList,n=s.content||i.content,a=document.importNode(n,!0);a.__noInsertionPoint=!s.hasInsertionPoint;let l=a.nodeList=new Array(r.length);a.$={};for(let d=0,u=r.length,h;d<u&&(h=r[d]);d++){let f=l[d]=vs(a,h);Ln(this,a.$,f,h),Rn(this,f,h,s),$n(this,f,h)}return a=a,a}_addMethodEventListenerToNode(i,s,r,n){n=n||i;let a=Hn(n,s,r);return this._addEventListenerToNode(i,s,a),a}_addEventListenerToNode(i,s,r){i.addEventListener(s,r)}_removeEventListenerFromNode(i,s,r){i.removeEventListener(s,r)}}return t});/**
2025
2025
  * @fileoverview
2026
2026
  * @suppress {checkPrototypalTypes}
2027
2027
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2031,7 +2031,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2031
2031
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2032
2032
  * Google as part of the polymer project is also subject to an additional IP
2033
2033
  * rights grant found at http://polymer.github.io/PATENTS.txt
2034
- */let Qe=0;const et=[],P={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},bs="__computeInfo",Vn=/[A-Z]/;function Mt(o,t,e){let i=o[t];if(!i)i=o[t]={};else if(!o.hasOwnProperty(t)&&(i=o[t]=Object.create(o[t]),e))for(let s in i){let r=i[s],n=i[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return i}function Ue(o,t,e,i,s,r){if(t){let n=!1;const a=Qe++;for(let l in e){let d=s?xe(l):l,u=t[d];if(u)for(let h=0,p=u.length,f;h<p&&(f=u[h]);h++)(!f.info||f.info.lastRun!==a)&&(!s||Ci(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(o,l,e,i,f.info,s,r),n=!0)}return n}return!1}function Un(o,t,e,i,s,r,n,a){let l=!1,d=n?xe(i):i,u=t[d];if(u)for(let h=0,p=u.length,f;h<p&&(f=u[h]);h++)(!f.info||f.info.lastRun!==e)&&(!n||Ci(i,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(o,i,s,r,f.info,n,a),l=!0);return l}function Ci(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&us(e,o))||!!(t.wildcard&&Xe(e,o))}else return!0}function no(o,t,e,i,s){let r=typeof s.method=="string"?o[s.method]:s.method,n=s.property;r?r.call(o,o.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function jn(o,t,e,i,s){let r=o[P.NOTIFY],n,a=Qe++;for(let d in t)t[d]&&(r&&Un(o,r,a,d,e,i,s)||s&&Yn(o,d,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Yn(o,t,e){let i=xe(t);if(i!==t){let s=wt(i)+"-changed";return ws(o,s,e[t],t),!0}return!1}function ws(o,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),V(o).dispatchEvent(new CustomEvent(t,{detail:s}))}function Wn(o,t,e,i,s,r){let a=(r?xe(t):t)!=t?t:null,l=a?W(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),ws(o,s.eventName,l,a)}function qn(o,t,e,i,s){let r,n=o.detail,a=n&&n.path;a?(i=Ze(e,i,a),r=n&&n.value):r=o.currentTarget[e],r=s?!r:r,(!t[P.READ_ONLY]||!t[P.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function Kn(o,t,e,i,s){let r=o.__data[t];ft&&(r=ft(r,s.attrName,"attribute",o)),o._propertyToAttribute(t,s.attrName,r)}function Gn(o,t,e,i){let s=o[P.COMPUTE];if(s)if(un){Qe++;const r=Xn(o),n=[];for(let l in t)ao(l,s,n,r,i);let a;for(;a=n.shift();)xs(o,"",t,e,a)&&ao(a.methodInfo,s,n,r,i);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;Ue(o,s,r,e,i);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const Jn=(o,t,e)=>{let i=0,s=t.length-1,r=-1;for(;i<=s;){const n=i+s>>1,a=e.get(t[n].methodInfo)-e.get(o.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{r=n;break}}r<0&&(r=s+1),t.splice(r,0,o)},ao=(o,t,e,i,s)=>{const r=s?xe(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Qe&&(!s||Ci(o,l.trigger))&&(l.info.lastRun=Qe,Jn(l.info,e,i))}};function Xn(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[P.COMPUTE];let{counts:i,ready:s,total:r}=Zn(o),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&s.push(d)})}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function Zn(o){const t=o[bs],e={},i=o[P.COMPUTE],s=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)t[n]||s.push(n);return{counts:e,ready:s,total:r}}function xs(o,t,e,i,s){let r=Zt(o,t,e,i,s);if(r===et)return!1;let n=s.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function Qn(o,t,e){let i=o.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];Xe(r,t)?(s=Ze(r,n,t),o._setPendingPropertyOrPath(s,e,!0,!0)):Xe(n,t)&&(s=Ze(n,r,t),o._setPendingPropertyOrPath(s,e,!0,!0))}}}function It(o,t,e,i,s,r,n){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),sa(a)){let{event:d,negate:u}=a.parts[0];a.listenerEvent=d||wt(s)+"-changed",a.listenerNegate=u}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let u=a.parts[d];u.compoundIndex=d,ea(o,t,a,u,l)}}function ea(o,t,e,i,s){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let r=i.dependencies,n={index:s,binding:e,part:i,evaluator:o};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=As(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:ta,info:n,trigger:l})}}}function ta(o,t,e,i,s,r,n){let a=n[s.index],l=s.binding,d=s.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=e[t];t=Ze(d.source,l.target,t),a._setPendingPropertyOrPath(t,u,!1,!0)&&o._enqueueClient(a)}else{let u=s.evaluator._evaluateBinding(o,d,t,e,i,r);u!==et&&ia(o,a,l,d,u)}}function ia(o,t,e,i,s){if(s=oa(t,s,e,i),ft&&(s=ft(s,e.target,e.kind,t)),e.kind=="attribute")o._valueToNodeAttribute(t,s,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[P.READ_ONLY]||!t[P.READ_ONLY][r])&&t._setPendingProperty(r,s)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,s)}}function oa(o,t,e,i){if(e.isCompound){let s=o.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(t=t==null?"":t),t}function sa(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function ra(o,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let r=i[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];na(n,d),aa(n,o,d)}n.__dataHost=o}}function na(o,t){if(t.isCompound){let e=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(o=V(o)),o[r]=t.literal)}}function aa(o,t,e){if(e.listenerEvent){let i=e.parts[0];o.addEventListener(e.listenerEvent,function(s){qn(s,t,e.target,i.source,i.negate)})}}function lo(o,t,e,i,s,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||o._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&o._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function Zt(o,t,e,i,s){let r=o._methodHost||o,n=r[s.methodName];if(n){let a=o._marshalArgs(s.args,t,e);return a===et?et:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const la=[],Cs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",da="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",ca="(?:'(?:[^'\\\\]|\\\\.)*')",ua='(?:"(?:[^"\\\\]|\\\\.)*")',ha="(?:"+ca+"|"+ua+")",co="(?:("+Cs+"|"+da+"|"+ha+")\\s*)",pa="(?:"+co+"(?:,\\s*"+co+")*)",fa="(?:\\(\\s*(?:"+pa+"?)\\)\\s*)",ma="("+Cs+"\\s*"+fa+"?)",_a="(\\[\\[|{{)\\s*",ga="(?:]]|}})",ya="(?:(!)\\s*)?",va=_a+ya+ma+ga,uo=new RegExp(va,"g");function ho(o){let t="";for(let e=0;e<o.length;e++){let i=o[e].literal;t+=i||""}return t}function Nt(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:la};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return ba(s,i)}else return i}return null}function ba(o,t){return t.args=o.map(function(e){let i=As(e);return i.literal||(t.static=!1),i},this),t}function As(o){let t=o.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=xe(t),e.structured=Jt(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function po(o,t,e){let i=W(o,e);return i===void 0&&(i=t[e]),i}function Ts(o,t,e,i){const s={indexSplices:i};Gt&&!o._overrideLegacyUndefined&&(t.splices=s),o.notifyPath(e+".splices",s),o.notifyPath(e+".length",t.length),Gt&&!o._overrideLegacyUndefined&&(s.indexSplices=[])}function $e(o,t,e,i,s,r){Ts(o,t,e,[{index:i,addedCount:s,removed:r,object:t,type:"splice"}])}function wa(o){return o[0].toUpperCase()+o.substring(1)}const Ai=H(o=>{const t=Bn(On(o));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return P}_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(Re.length){let s=Re[Re.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let r=this[P.READ_ONLY];for(let n in s)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,r,n){this._createPropertyAccessor(s,r==P.READ_ONLY);let a=Mt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=Mt(this,r,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,r){let n=this[r];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,P.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,P.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,P.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,P.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||xe(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=W(this,s);if(s=oo(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return Qn(this,s,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,r,n);this[s]=r}return!1}_setUnmanagedPropertyToNode(s,r,n){(n!==s[r]||typeof n=="object")&&(r==="className"&&(s=V(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&Jt(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,r,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=r:this.__data[s]=r,this.__dataPending[s]=r,(a||this[P.NOTIFY]&&this[P.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,r){this._setPendingProperty(s,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let r=0;r<s.length;r++){let n=s[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,r){for(let n in s)(r||!this[P.READ_ONLY]||!this[P.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Gn(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Ue(this,this[P.REFLECT],r,n,a),Ue(this,this[P.OBSERVE],r,n,a),l&&jn(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[P.PROPAGATE]&&Ue(this,this[P.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(d,u)=>{Ue(this,s.propertyEffects,d,n,u,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=Ve(s),r=Ve(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=Ve(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=W(this,s,n);Ts(this,a,n.path,r)}get(s,r){return W(r||this,s)}set(s,r,n){n?oo(n,s,r):(!this[P.READ_ONLY]||!this[P.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=W(this,s,n),l=a.length,d=a.push(...r);return r.length&&$e(this,a,n.path,l,r.length,[]),d}pop(s){let r={path:""},n=W(this,s,r),a=!!n.length,l=n.pop();return a&&$e(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},d=W(this,s,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let u;return arguments.length===2?u=d.splice(r):u=d.splice(r,n,...a),(a.length||u.length)&&$e(this,d,l.path,r,a.length,u),u}shift(s){let r={path:""},n=W(this,s,r),a=!!n.length,l=n.shift();return a&&$e(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=W(this,s,n),l=a.unshift(...r);return r.length&&$e(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=W(this,s,a),n=a.path}else Array.isArray(s)?n=Ve(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,P.READ_ONLY),r&&(this["_set"+wa(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,P.OBSERVE,{fn:no,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,P.OBSERVE,{fn:no,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Nt(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");lo(this,n,P.OBSERVE,Zt,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,P.NOTIFY,{fn:Wn,info:{eventName:wt(s)+"-changed",property:s}})}_createReflectedProperty(s){let r=this.constructor.attributeNameForProperty(s);r[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,P.REFLECT,{fn:Kn,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Nt(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=lo(this,a,P.COMPUTE,xs,s,n);Mt(this,bs)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let d=0,u=s.length;d<u;d++){let{name:h,structured:p,wildcard:f,value:v,literal:T}=s[d];if(!T)if(f){const E=Xe(h,r),A=po(a,n,E?r:h);v={path:E?r:h,value:A,base:E?W(a,h):A}}else v=p?po(a,n,h):a[h];if(Gt&&!this._overrideLegacyUndefined&&v===void 0&&s.length>1)return et;l[d]=v}return l}static addPropertyEffect(s,r,n){this.prototype._addPropertyEffect(s,r,n)}static createPropertyObserver(s,r,n){this.prototype._createPropertyObserver(s,r,n)}static createMethodObserver(s,r){this.prototype._createMethodObserver(s,r)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,r){this.prototype._createReadOnlyProperty(s,r)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,r,n){this.prototype._createComputedProperty(s,r,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,r){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,r,n){let a=s.hostProps=s.hostProps||{};a[r]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(s,r){r=r||this._bindTemplate(s,!0),Re.push(this);let n=super._stampTemplate(s,r);if(Re.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,ra(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const r=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let u=0;u<d.length;u++){let h=d[u];V(V(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,r,n){let a=t._parseTemplateNode.call(this,s,r,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,r);l&&(s.textContent=ho(l)||" ",It(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let d=this._parseBindings(l,r);if(d){let u=a,h="property";Vn.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let p=ho(d);return p&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(p+=" "+s.getAttribute(a)),s.setAttribute(a,p)),h=="attribute"&&u=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&u==="value"&&s.setAttribute(u,""),s.removeAttribute(u),h==="property"&&(a=ps(a)),It(this,r,n,h,a,d,p),!0}else return t._parseTemplateNodeAttribute.call(this,s,r,n,a,l)}static _parseTemplateNestedTemplate(s,r,n){let a=t._parseTemplateNestedTemplate.call(this,s,r,n);const l=s.parentNode,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";Xi&&(u||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let p=d.hostProps;if(hn&&u)p&&(r.hostProps=Object.assign(r.hostProps||{},p),Xi||(n.parentInfo.noted=!0));else{let f="{";for(let v in p){let T=[{mode:f,source:v,dependencies:[v],hostProp:!0}];It(this,r,n,"property","_host_"+v,T)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=uo.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),p=!1,f="",v=-1;d=="{"&&(v=h.indexOf("::"))>0&&(f=h.substring(v+2),h=h.substring(0,v),p=!0);let T=Nt(h),E=[];if(T){let{args:A,methodName:D}=T;for(let N=0;N<A.length;N++){let M=A[N];M.literal||E.push(M)}let I=r.dynamicFns;(I&&I[D]||T.static)&&(E.push(D),T.dynamicFn=!0)}else E.push(h);n.push({source:h,mode:d,negate:u,customEvent:p,signature:T,dependencies:E,event:f}),a=uo.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,d){let u;return r.signature?u=Zt(s,n,a,l,r.signature):n!=r.source?u=W(s,r.source):d&&Jt(n)?u=W(s,n):u=s.__data[n],r.negate&&(u=!u),u}}return e}),Re=[];/**
2034
+ */let Qe=0;const et=[],S={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},bs="__computeInfo",Vn=/[A-Z]/;function Mt(o,t,e){let i=o[t];if(!i)i=o[t]={};else if(!o.hasOwnProperty(t)&&(i=o[t]=Object.create(o[t]),e))for(let s in i){let r=i[s],n=i[s]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a]}return i}function Ue(o,t,e,i,s,r){if(t){let n=!1;const a=Qe++;for(let l in e){let d=s?xe(l):l,u=t[d];if(u)for(let h=0,f=u.length,_;h<f&&(_=u[h]);h++)(!_.info||_.info.lastRun!==a)&&(!s||Ci(l,_.trigger))&&(_.info&&(_.info.lastRun=a),_.fn(o,l,e,i,_.info,s,r),n=!0)}return n}return!1}function Un(o,t,e,i,s,r,n,a){let l=!1,d=n?xe(i):i,u=t[d];if(u)for(let h=0,f=u.length,_;h<f&&(_=u[h]);h++)(!_.info||_.info.lastRun!==e)&&(!n||Ci(i,_.trigger))&&(_.info&&(_.info.lastRun=e),_.fn(o,i,s,r,_.info,n,a),l=!0);return l}function Ci(o,t){if(t){let e=t.name;return e==o||!!(t.structured&&us(e,o))||!!(t.wildcard&&Xe(e,o))}else return!0}function no(o,t,e,i,s){let r=typeof s.method=="string"?o[s.method]:s.method,n=s.property;r?r.call(o,o.__data[n],i[n]):s.dynamicFn||console.warn("observer method `"+s.method+"` not defined")}function jn(o,t,e,i,s){let r=o[S.NOTIFY],n,a=Qe++;for(let d in t)t[d]&&(r&&Un(o,r,a,d,e,i,s)||s&&Yn(o,d,e))&&(n=!0);let l;n&&(l=o.__dataHost)&&l._invalidateProperties&&l._invalidateProperties()}function Yn(o,t,e){let i=xe(t);if(i!==t){let s=wt(i)+"-changed";return ws(o,s,e[t],t),!0}return!1}function ws(o,t,e,i){let s={value:e,queueProperty:!0};i&&(s.path=i),j(o).dispatchEvent(new CustomEvent(t,{detail:s}))}function Wn(o,t,e,i,s,r){let a=(r?xe(t):t)!=t?t:null,l=a?K(o,a):o.__data[t];a&&l===void 0&&(l=e[t]),ws(o,s.eventName,l,a)}function qn(o,t,e,i,s){let r,n=o.detail,a=n&&n.path;a?(i=Ze(e,i,a),r=n&&n.value):r=o.currentTarget[e],r=s?!r:r,(!t[S.READ_ONLY]||!t[S.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties()}function Kn(o,t,e,i,s){let r=o.__data[t];ft&&(r=ft(r,s.attrName,"attribute",o)),o._propertyToAttribute(t,s.attrName,r)}function Gn(o,t,e,i){let s=o[S.COMPUTE];if(s)if(un){Qe++;const r=Xn(o),n=[];for(let l in t)ao(l,s,n,r,i);let a;for(;a=n.shift();)xs(o,"",t,e,a)&&ao(a.methodInfo,s,n,r,i);Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),o.__dataPending=null}else{let r=t;for(;Ue(o,s,r,e,i);)Object.assign(e,o.__dataOld),Object.assign(t,o.__dataPending),r=o.__dataPending,o.__dataPending=null}}const Jn=(o,t,e)=>{let i=0,s=t.length-1,r=-1;for(;i<=s;){const n=i+s>>1,a=e.get(t[n].methodInfo)-e.get(o.methodInfo);if(a<0)i=n+1;else if(a>0)s=n-1;else{r=n;break}}r<0&&(r=s+1),t.splice(r,0,o)},ao=(o,t,e,i,s)=>{const r=s?xe(o):o,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Qe&&(!s||Ci(o,l.trigger))&&(l.info.lastRun=Qe,Jn(l.info,e,i))}};function Xn(o){let t=o.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=o[S.COMPUTE];let{counts:i,ready:s,total:r}=Zn(o),n;for(;n=s.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&s.push(d)})}r!==0&&console.warn(`Computed graph for ${o.localName} incomplete; circular?`),o.constructor.__orderedComputedDeps=t}return t}function Zn(o){const t=o[bs],e={},i=o[S.COMPUTE],s=[];let r=0;for(let n in t){const a=t[n];r+=e[n]=a.args.filter(l=>!l.literal).length+(a.dynamicFn?1:0)}for(let n in i)t[n]||s.push(n);return{counts:e,ready:s,total:r}}function xs(o,t,e,i,s){let r=Zt(o,t,e,i,s);if(r===et)return!1;let n=s.methodInfo;return o.__dataHasAccessor&&o.__dataHasAccessor[n]?o._setPendingProperty(n,r,!0):(o[n]=r,!1)}function Qn(o,t,e){let i=o.__dataLinkedPaths;if(i){let s;for(let r in i){let n=i[r];Xe(r,t)?(s=Ze(r,n,t),o._setPendingPropertyOrPath(s,e,!0,!0)):Xe(n,t)&&(s=Ze(n,r,t),o._setPendingPropertyOrPath(s,e,!0,!0))}}}function It(o,t,e,i,s,r,n){e.bindings=e.bindings||[];let a={kind:i,target:s,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),sa(a)){let{event:d,negate:u}=a.parts[0];a.listenerEvent=d||wt(s)+"-changed",a.listenerNegate=u}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let u=a.parts[d];u.compoundIndex=d,ea(o,t,a,u,l)}}function ea(o,t,e,i,s){if(!i.literal)if(e.kind==="attribute"&&e.target[0]==="-")console.warn("Cannot set attribute "+e.target+' because "-" is not a valid attribute starting character');else{let r=i.dependencies,n={index:s,binding:e,part:i,evaluator:o};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=As(l),l.wildcard=!0),o._addTemplatePropertyEffect(t,l.rootProperty,{fn:ta,info:n,trigger:l})}}}function ta(o,t,e,i,s,r,n){let a=n[s.index],l=s.binding,d=s.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let u=e[t];t=Ze(d.source,l.target,t),a._setPendingPropertyOrPath(t,u,!1,!0)&&o._enqueueClient(a)}else{let u=s.evaluator._evaluateBinding(o,d,t,e,i,r);u!==et&&ia(o,a,l,d,u)}}function ia(o,t,e,i,s){if(s=oa(t,s,e,i),ft&&(s=ft(s,e.target,e.kind,t)),e.kind=="attribute")o._valueToNodeAttribute(t,s,e.target);else{let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[S.READ_ONLY]||!t[S.READ_ONLY][r])&&t._setPendingProperty(r,s)&&o._enqueueClient(t):o._setUnmanagedPropertyToNode(t,r,s)}}function oa(o,t,e,i){if(e.isCompound){let s=o.__dataCompoundStorage[e.target];s[i.compoundIndex]=t,t=s.join("")}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(o.localName==="input"||o.localName==="textarea"))&&(t=t==null?"":t),t}function sa(o){return!!o.target&&o.kind!="attribute"&&o.kind!="text"&&!o.isCompound&&o.parts[0].mode==="{"}function ra(o,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let s=0;s<i.length;s++){let r=i[s],n=e[s],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];na(n,d),aa(n,o,d)}n.__dataHost=o}}function na(o,t){if(t.isCompound){let e=o.__dataCompoundStorage||(o.__dataCompoundStorage={}),i=t.parts,s=new Array(i.length);for(let n=0;n<i.length;n++)s[n]=i[n].literal;let r=t.target;e[r]=s,t.literal&&t.kind=="property"&&(r==="className"&&(o=j(o)),o[r]=t.literal)}}function aa(o,t,e){if(e.listenerEvent){let i=e.parts[0];o.addEventListener(e.listenerEvent,function(s){qn(s,t,e.target,i.source,i.negate)})}}function lo(o,t,e,i,s,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:s,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||o._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&o._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function Zt(o,t,e,i,s){let r=o._methodHost||o,n=r[s.methodName];if(n){let a=o._marshalArgs(s.args,t,e);return a===et?et:n.apply(r,a)}else s.dynamicFn||console.warn("method `"+s.methodName+"` not defined")}const la=[],Cs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",da="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",ca="(?:'(?:[^'\\\\]|\\\\.)*')",ua='(?:"(?:[^"\\\\]|\\\\.)*")',ha="(?:"+ca+"|"+ua+")",co="(?:("+Cs+"|"+da+"|"+ha+")\\s*)",pa="(?:"+co+"(?:,\\s*"+co+")*)",fa="(?:\\(\\s*(?:"+pa+"?)\\)\\s*)",ma="("+Cs+"\\s*"+fa+"?)",_a="(\\[\\[|{{)\\s*",ga="(?:]]|}})",ya="(?:(!)\\s*)?",va=_a+ya+ma+ga,uo=new RegExp(va,"g");function ho(o){let t="";for(let e=0;e<o.length;e++){let i=o[e].literal;t+=i||""}return t}function Nt(o){let t=o.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:la};if(t[2].trim()){let s=t[2].replace(/\\,/g,"&comma;").split(",");return ba(s,i)}else return i}return null}function ba(o,t){return t.args=o.map(function(e){let i=As(e);return i.literal||(t.static=!1),i},this),t}function As(o){let t=o.trim().replace(/&comma;/g,",").replace(/\\(.)/g,"$1"),e={name:t,value:"",literal:!1},i=t[0];switch(i==="-"&&(i=t[1]),i>="0"&&i<="9"&&(i="#"),i){case"'":case'"':e.value=t.slice(1,-1),e.literal=!0;break;case"#":e.value=Number(t),e.literal=!0;break}return e.literal||(e.rootProperty=xe(t),e.structured=Jt(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function po(o,t,e){let i=K(o,e);return i===void 0&&(i=t[e]),i}function Ts(o,t,e,i){const s={indexSplices:i};Gt&&!o._overrideLegacyUndefined&&(t.splices=s),o.notifyPath(e+".splices",s),o.notifyPath(e+".length",t.length),Gt&&!o._overrideLegacyUndefined&&(s.indexSplices=[])}function $e(o,t,e,i,s,r){Ts(o,t,e,[{index:i,addedCount:s,removed:r,object:t,type:"splice"}])}function wa(o){return o[0].toUpperCase()+o.substring(1)}const Ai=B(o=>{const t=Bn(On(o));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0,this.__dataClientsReady,this.__dataPendingClients,this.__dataToNotify,this.__dataLinkedPaths,this.__dataHasPaths,this.__dataCompoundStorage,this.__dataHost,this.__dataTemp,this.__dataClientsInitialized,this.__data,this.__dataPending,this.__dataOld,this.__computeEffects,this.__computeInfo,this.__reflectEffects,this.__notifyEffects,this.__propagateEffects,this.__observeEffects,this.__readOnly,this.__templateInfo,this._overrideLegacyUndefined}get PROPERTY_EFFECT_TYPES(){return S}_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(Re.length){let s=Re[Re.length-1];s._enqueueClient(this),this.__dataHost=s}}_initializeProtoProperties(s){this.__data=Object.create(s),this.__dataPending=Object.create(s),this.__dataOld={}}_initializeInstanceProperties(s){let r=this[S.READ_ONLY];for(let n in s)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=s[n])}_addPropertyEffect(s,r,n){this._createPropertyAccessor(s,r==S.READ_ONLY);let a=Mt(this,r,!0)[s];a||(a=this[r][s]=[]),a.push(n)}_removePropertyEffect(s,r,n){let a=Mt(this,r,!0)[s],l=a.indexOf(n);l>=0&&a.splice(l,1)}_hasPropertyEffect(s,r){let n=this[r];return!!(n&&n[s])}_hasReadOnlyEffect(s){return this._hasPropertyEffect(s,S.READ_ONLY)}_hasNotifyEffect(s){return this._hasPropertyEffect(s,S.NOTIFY)}_hasReflectEffect(s){return this._hasPropertyEffect(s,S.REFLECT)}_hasComputedEffect(s){return this._hasPropertyEffect(s,S.COMPUTE)}_setPendingPropertyOrPath(s,r,n,a){if(a||xe(Array.isArray(s)?s[0]:s)!==s){if(!a){let l=K(this,s);if(s=oo(this,s,r),!s||!super._shouldPropertyChange(s,r,l))return!1}if(this.__dataHasPaths=!0,this._setPendingProperty(s,r,n))return Qn(this,s,r),!0}else{if(this.__dataHasAccessor&&this.__dataHasAccessor[s])return this._setPendingProperty(s,r,n);this[s]=r}return!1}_setUnmanagedPropertyToNode(s,r,n){(n!==s[r]||typeof n=="object")&&(r==="className"&&(s=j(s)),s[r]=n)}_setPendingProperty(s,r,n){let a=this.__dataHasPaths&&Jt(s),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(s,r,l[s])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),s in this.__dataOld||(this.__dataOld[s]=this.__data[s]),a?this.__dataTemp[s]=r:this.__data[s]=r,this.__dataPending[s]=r,(a||this[S.NOTIFY]&&this[S.NOTIFY][s])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[s]=n),!0):!1}_setProperty(s,r){this._setPendingProperty(s,r,!0)&&this._invalidateProperties()}_invalidateProperties(){this.__dataReady&&this._flushProperties()}_enqueueClient(s){this.__dataPendingClients=this.__dataPendingClients||[],s!==this&&this.__dataPendingClients.push(s)}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0)}__enableOrFlushClients(){let s=this.__dataPendingClients;if(s){this.__dataPendingClients=null;for(let r=0;r<s.length;r++){let n=s[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties()}}}_readyClients(){this.__enableOrFlushClients()}setProperties(s,r){for(let n in s)(r||!this[S.READ_ONLY]||!this[S.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,s[n],!0);this._invalidateProperties()}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties()}_propertiesChanged(s,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;Gn(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Ue(this,this[S.REFLECT],r,n,a),Ue(this,this[S.OBSERVE],r,n,a),l&&jn(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={})}_propagatePropertyChanges(s,r,n){this[S.PROPAGATE]&&Ue(this,this[S.PROPAGATE],s,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,s,r,n)}_runEffectsForTemplate(s,r,n,a){const l=(d,u)=>{Ue(this,s.propertyEffects,d,n,u,s.nodeList);for(let h=s.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,u)};s.runEffects?s.runEffects(l,r,a):l(r,a)}linkPaths(s,r){s=Ve(s),r=Ve(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[s]=r}unlinkPaths(s){s=Ve(s),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[s]}notifySplices(s,r){let n={path:""},a=K(this,s,n);Ts(this,a,n.path,r)}get(s,r){return K(r||this,s)}set(s,r,n){n?oo(n,s,r):(!this[S.READ_ONLY]||!this[S.READ_ONLY][s])&&this._setPendingPropertyOrPath(s,r,!0)&&this._invalidateProperties()}push(s,...r){let n={path:""},a=K(this,s,n),l=a.length,d=a.push(...r);return r.length&&$e(this,a,n.path,l,r.length,[]),d}pop(s){let r={path:""},n=K(this,s,r),a=!!n.length,l=n.pop();return a&&$e(this,n,r.path,n.length,0,[l]),l}splice(s,r,n,...a){let l={path:""},d=K(this,s,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let u;return arguments.length===2?u=d.splice(r):u=d.splice(r,n,...a),(a.length||u.length)&&$e(this,d,l.path,r,a.length,u),u}shift(s){let r={path:""},n=K(this,s,r),a=!!n.length,l=n.shift();return a&&$e(this,n,r.path,0,0,[l]),l}unshift(s,...r){let n={path:""},a=K(this,s,n),l=a.unshift(...r);return r.length&&$e(this,a,n.path,0,r.length,[]),l}notifyPath(s,r){let n;if(arguments.length==1){let a={path:""};r=K(this,s,a),n=a.path}else Array.isArray(s)?n=Ve(s):n=s;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties()}_createReadOnlyProperty(s,r){this._addPropertyEffect(s,S.READ_ONLY),r&&(this["_set"+wa(s)]=function(n){this._setProperty(s,n)})}_createPropertyObserver(s,r,n){let a={property:s,method:r,dynamicFn:!!n};this._addPropertyEffect(s,S.OBSERVE,{fn:no,info:a,trigger:{name:s}}),n&&this._addPropertyEffect(r,S.OBSERVE,{fn:no,info:a,trigger:{name:r}})}_createMethodObserver(s,r){let n=Nt(s);if(!n)throw new Error("Malformed observer expression '"+s+"'");lo(this,n,S.OBSERVE,Zt,null,r)}_createNotifyingProperty(s){this._addPropertyEffect(s,S.NOTIFY,{fn:Wn,info:{eventName:wt(s)+"-changed",property:s}})}_createReflectedProperty(s){let r=this.constructor.attributeNameForProperty(s);r[0]==="-"?console.warn("Property "+s+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(s,S.REFLECT,{fn:Kn,info:{attrName:r}})}_createComputedProperty(s,r,n){let a=Nt(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=lo(this,a,S.COMPUTE,xs,s,n);Mt(this,bs)[s]=l}_marshalArgs(s,r,n){const a=this.__data,l=[];for(let d=0,u=s.length;d<u;d++){let{name:h,structured:f,wildcard:_,value:g,literal:x}=s[d];if(!x)if(_){const k=Xe(h,r),O=po(a,n,k?r:h);g={path:k?r:h,value:O,base:k?K(a,h):O}}else g=f?po(a,n,h):a[h];if(Gt&&!this._overrideLegacyUndefined&&g===void 0&&s.length>1)return et;l[d]=g}return l}static addPropertyEffect(s,r,n){this.prototype._addPropertyEffect(s,r,n)}static createPropertyObserver(s,r,n){this.prototype._createPropertyObserver(s,r,n)}static createMethodObserver(s,r){this.prototype._createMethodObserver(s,r)}static createNotifyingProperty(s){this.prototype._createNotifyingProperty(s)}static createReadOnlyProperty(s,r){this.prototype._createReadOnlyProperty(s,r)}static createReflectedProperty(s){this.prototype._createReflectedProperty(s)}static createComputedProperty(s,r,n){this.prototype._createComputedProperty(s,r,n)}static bindTemplate(s){return this.prototype._bindTemplate(s)}_bindTemplate(s,r){let n=this.constructor._parseTemplate(s),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else{const l=s._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(s,r,n){let a=s.hostProps=s.hostProps||{};a[r]=!0;let l=s.propertyEffects=s.propertyEffects||{};(l[r]=l[r]||[]).push(n)}_stampTemplate(s,r){r=r||this._bindTemplate(s,!0),Re.push(this);let n=super._stampTemplate(s,r);if(Re.pop(),r.nodeList=n.nodeList,!r.wasPreBound){let a=r.childNodes=[];for(let l=n.firstChild;l;l=l.nextSibling)a.push(l)}return n.templateInfo=r,ra(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(s){const r=s.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let u=0;u<d.length;u++){let h=d[u];j(j(h).parentNode).removeChild(h)}}static _parseTemplateNode(s,r,n){let a=t._parseTemplateNode.call(this,s,r,n);if(s.nodeType===Node.TEXT_NODE){let l=this._parseBindings(s.textContent,r);l&&(s.textContent=ho(l)||" ",It(this,r,n,"text","textContent",l),a=!0)}return a}static _parseTemplateNodeAttribute(s,r,n,a,l){let d=this._parseBindings(l,r);if(d){let u=a,h="property";Vn.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let f=ho(d);return f&&h=="attribute"&&(a=="class"&&s.hasAttribute("class")&&(f+=" "+s.getAttribute(a)),s.setAttribute(a,f)),h=="attribute"&&u=="disable-upgrade$"&&s.setAttribute(a,""),s.localName==="input"&&u==="value"&&s.setAttribute(u,""),s.removeAttribute(u),h==="property"&&(a=ps(a)),It(this,r,n,h,a,d,f),!0}else return t._parseTemplateNodeAttribute.call(this,s,r,n,a,l)}static _parseTemplateNestedTemplate(s,r,n){let a=t._parseTemplateNestedTemplate.call(this,s,r,n);const l=s.parentNode,d=n.templateInfo,u=l.localName==="dom-if",h=l.localName==="dom-repeat";Xi&&(u||h)&&(l.removeChild(s),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let f=d.hostProps;if(hn&&u)f&&(r.hostProps=Object.assign(r.hostProps||{},f),Xi||(n.parentInfo.noted=!0));else{let _="{";for(let g in f){let x=[{mode:_,source:g,dependencies:[g],hostProp:!0}];It(this,r,n,"property","_host_"+g,x)}}return a}static _parseBindings(s,r){let n=[],a=0,l;for(;(l=uo.exec(s))!==null;){l.index>a&&n.push({literal:s.slice(a,l.index)});let d=l[1][0],u=!!l[2],h=l[3].trim(),f=!1,_="",g=-1;d=="{"&&(g=h.indexOf("::"))>0&&(_=h.substring(g+2),h=h.substring(0,g),f=!0);let x=Nt(h),k=[];if(x){let{args:O,methodName:E}=x;for(let F=0;F<O.length;F++){let N=O[F];N.literal||k.push(N)}let P=r.dynamicFns;(P&&P[E]||x.static)&&(k.push(E),x.dynamicFn=!0)}else k.push(h);n.push({source:h,mode:d,negate:u,customEvent:f,signature:x,dependencies:k,event:_}),a=uo.lastIndex}if(a&&a<s.length){let d=s.substring(a);d&&n.push({literal:d})}return n.length?n:null}static _evaluateBinding(s,r,n,a,l,d){let u;return r.signature?u=Zt(s,n,a,l,r.signature):n!=r.source?u=K(s,r.source):d&&Jt(n)?u=K(s,n):u=s.__data[n],r.negate&&(u=!u),u}}return e}),Re=[];/**
2035
2035
  @license
2036
2036
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2037
2037
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2047,7 +2047,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2047
2047
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2048
2048
  Code distributed by Google as part of the polymer project is also
2049
2049
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2050
- */function xa(o){const t={};for(let e in o){const i=o[e];t[e]=typeof i=="function"?{type:i}:i}return t}const Ca=H(o=>{const t=gs(o);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof s?n:null}function i(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=xa(a))}r.__ownProperties=n}return r.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
2050
+ */function xa(o){const t={};for(let e in o){const i=o[e];t[e]=typeof i=="function"?{type:i}:i}return t}const Ca=B(o=>{const t=gs(o);function e(r){const n=Object.getPrototypeOf(r);return n.prototype instanceof s?n:null}function i(r){if(!r.hasOwnProperty(JSCompiler_renameProperty("__ownProperties",r))){let n=null;if(r.hasOwnProperty(JSCompiler_renameProperty("properties",r))){const a=r.properties;a&&(n=xa(a))}r.__ownProperties=n}return r.__ownProperties}class s extends t{static get observedAttributes(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__observedAttributes",this))){this.prototype;const n=this._properties;this.__observedAttributes=n?Object.keys(n).map(a=>this.prototype._addPropertyToAttributeMap(a)):[]}return this.__observedAttributes}static finalize(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__finalized",this))){const n=e(this);n&&n.finalize(),this.__finalized=!0,this._finalizeClass()}}static _finalizeClass(){const n=i(this);n&&this.createProperties(n)}static get _properties(){if(!this.hasOwnProperty(JSCompiler_renameProperty("__properties",this))){const n=e(this);this.__properties=Object.assign({},n&&n._properties,i(this))}return this.__properties}static typeForProperty(n){const a=this._properties[n];return a&&a.type}_initializeProperties(){this.constructor.finalize(),super._initializeProperties()}connectedCallback(){super.connectedCallback&&super.connectedCallback(),this._enableProperties()}disconnectedCallback(){super.disconnectedCallback&&super.disconnectedCallback()}}return s});/**
2051
2051
  * @fileoverview
2052
2052
  * @suppress {checkPrototypalTypes}
2053
2053
  * @license Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
@@ -2057,7 +2057,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2057
2057
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
2058
2058
  * Google as part of the polymer project is also subject to an additional IP
2059
2059
  * rights grant found at http://polymer.github.io/PATENTS.txt
2060
- */const Aa="3.5.2",fo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ta=H(o=>{const t=Ca(Ai(o));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let u in d){let h=d[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,d,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):u.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),u.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):u.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),u.observer&&l._createPropertyObserver(d,u.observer,h[u.observer]),l._addPropertyToAttributeMap(d)}function r(l,d,u,h){if(!fo){const p=d.content.querySelectorAll("style"),f=ds(d),v=bn(u),T=d.content.firstElementChild;for(let A=0;A<v.length;A++){let D=v[A];D.textContent=l._processStyleText(D.textContent,h),d.content.insertBefore(D,T)}let E=0;for(let A=0;A<f.length;A++){let D=f[A],I=p[E];I!==D?(D=D.cloneNode(!0),I.parentNode.insertBefore(D,I)):E++,D.textContent=l._processStyleText(D.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,u),pn&&fo&&an){const p=d.content.querySelectorAll("style");if(p){let f="";Array.from(p).forEach(v=>{f+=v.textContent,v.parentNode.removeChild(v)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f)}}}function n(l){let d=null;if(l&&(!mt||dn)&&(d=Je.import(l,"template"),mt&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Aa}static _finalizeClass(){t._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):rs||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let u in d)s(this.prototype,u,d[u],d)}static createObservers(d,u){const h=this.prototype;for(let p=0;p<d.length;p++)h._createMethodObserver(d[p],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=wi(d.url);else{const u=Je.import(this.is);this._importPath=u&&u.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=ln,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let u in d){let h=d[u];if(this._canApplyPropertyDefault(u)){let p=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,p,!0):this[u]=p}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,u){return bi(d,u)}static _finalizeTemplate(d){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,p=h?We(h):"";r(this,u,d,p),this.prototype._bindTemplate(u)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const u=V(this);if(u.attachShadow)return d?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:d}),u.shadowRoot.appendChild(d),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),cn&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,u){return!u&&this.importPath&&(u=We(this.importPath)),We(d,u)}static _parseTemplateContent(d,u,h){return u.dynamicFns=u.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,u,h)}static _addTemplatePropertyEffect(d,u,h){return ns&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,u,h)}}return a});/**
2060
+ */const Aa="3.5.2",fo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ta=B(o=>{const t=Ca(Ai(o));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let u in d){let h=d[u];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[u]=h)}}return l.__propertyDefaults}function i(l){return l.hasOwnProperty(JSCompiler_renameProperty("__ownObservers",l))||(l.__ownObservers=l.hasOwnProperty(JSCompiler_renameProperty("observers",l))?l.observers:null),l.__ownObservers}function s(l,d,u,h){u.computed&&(u.readOnly=!0),u.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,u.computed,h)),u.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!u.computed):u.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),u.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):u.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),u.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):u.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),u.observer&&l._createPropertyObserver(d,u.observer,h[u.observer]),l._addPropertyToAttributeMap(d)}function r(l,d,u,h){if(!fo){const f=d.content.querySelectorAll("style"),_=ds(d),g=bn(u),x=d.content.firstElementChild;for(let O=0;O<g.length;O++){let E=g[O];E.textContent=l._processStyleText(E.textContent,h),d.content.insertBefore(E,x)}let k=0;for(let O=0;O<_.length;O++){let E=_[O],P=f[k];P!==E?(E=E.cloneNode(!0),P.parentNode.insertBefore(E,P)):k++,E.textContent=l._processStyleText(E.textContent,h)}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,u),pn&&fo&&an){const f=d.content.querySelectorAll("style");if(f){let _="";Array.from(f).forEach(g=>{_+=g.textContent,g.parentNode.removeChild(g)}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(_)}}}function n(l){let d=null;if(l&&(!mt||dn)&&(d=Je.import(l,"template"),mt&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Aa}static _finalizeClass(){t._finalizeClass.call(this);const d=i(this);d&&this.createObservers(d,this._properties),this._prepareTemplate()}static _prepareTemplate(){let d=this.template;d&&(typeof d=="string"?(console.error("template getter must return HTMLTemplateElement"),d=null):rs||(d=d.cloneNode(!0))),this.prototype._template=d}static createProperties(d){for(let u in d)s(this.prototype,u,d[u],d)}static createObservers(d,u){const h=this.prototype;for(let f=0;f<d.length;f++)h._createMethodObserver(d[f],u)}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template}return this._template}static set template(d){this._template=d}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=wi(d.url);else{const u=Je.import(this.is);this._importPath=u&&u.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath}}return this._importPath}constructor(){super(),this._template,this._importPath,this.rootPath,this.importPath,this.root,this.$}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=ln,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let u in d){let h=d[u];if(this._canApplyPropertyDefault(u)){let f=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(u)?this._setPendingProperty(u,f,!0):this[u]=f}}}_canApplyPropertyDefault(d){return!this.hasOwnProperty(d)}static _processStyleText(d,u){return bi(d,u)}static _finalizeTemplate(d){const u=this.prototype._template;if(u&&!u.__polymerFinalized){u.__polymerFinalized=!0;const h=this.importPath,f=h?We(h):"";r(this,u,d,f),this.prototype._bindTemplate(u)}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback()}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready()}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients()}_attachDom(d){const u=j(this);if(u.attachShadow)return d?(u.shadowRoot||(u.attachShadow({mode:"open",shadyUpgradeFragment:d}),u.shadowRoot.appendChild(d),this.constructor._styleSheet&&(u.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),cn&&window.ShadyDOM&&window.ShadyDOM.flushInitial(u.shadowRoot),u.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d)}resolveUrl(d,u){return!u&&this.importPath&&(u=We(this.importPath)),We(d,u)}static _parseTemplateContent(d,u,h){return u.dynamicFns=u.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,u,h)}static _addTemplatePropertyEffect(d,u,h){return ns&&!(u in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${u}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,u,h)}}return a});/**
2061
2061
  @license
2062
2062
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
2063
2063
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -2073,7 +2073,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2073
2073
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2074
2074
  Code distributed by Google as part of the polymer project is also
2075
2075
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2076
- */const ue=Ta(HTMLElement);/**
2076
+ */const he=Ta(HTMLElement);/**
2077
2077
  * @license
2078
2078
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2079
2079
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2085,7 +2085,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2085
2085
  * @license
2086
2086
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2087
2087
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2088
- */const Pa=S`
2088
+ */const Pa=D`
2089
2089
  :host {
2090
2090
  display: flex;
2091
2091
  align-items: center;
@@ -2154,7 +2154,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2154
2154
  * @license
2155
2155
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2156
2156
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2157
- */L("vaadin-input-container",Pa,{moduleId:"vaadin-input-container-styles"});class Oa extends Sa(we(xt(ue))){static get is(){return"vaadin-input-container"}static get template(){return Ce`
2157
+ */$("vaadin-input-container",Pa,{moduleId:"vaadin-input-container-styles"});class Oa extends Sa(we(xt(he))){static get is(){return"vaadin-input-container"}static get template(){return Ce`
2158
2158
  <slot name="prefix"></slot>
2159
2159
  <slot></slot>
2160
2160
  <slot name="suffix"></slot>
@@ -2162,7 +2162,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2162
2162
  * @license
2163
2163
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2164
2164
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2165
- */const Ma=S`
2165
+ */const Ma=D`
2166
2166
  :host {
2167
2167
  z-index: 200;
2168
2168
  position: fixed;
@@ -2241,7 +2241,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2241
2241
  * @license
2242
2242
  * Copyright (c) 2017 Anton Korzunov
2243
2243
  * SPDX-License-Identifier: MIT
2244
- */let Ae=new WeakMap,at=new WeakMap,lt={},Ft=0;const _o=o=>o&&o.nodeType===Node.ELEMENT_NODE,zt=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},qa=(o,t)=>_o(o)?t.map(e=>{if(!_o(e))return zt(e,"is not a valid element"),null;let i=e;for(;i&&i!==o;){if(o.contains(i))return e;i=i.getRootNode().host}return zt(e,"is not contained inside",o),null}).filter(e=>!!e):(zt(o,"is not a valid element"),[]),Ka=(o,t,e,i)=>{const s=qa(t,Array.isArray(o)?o:[o]);lt[e]||(lt[e]=new WeakMap);const r=lt[e],n=[],a=new Set,l=new Set(s),d=h=>{if(!h||a.has(h))return;a.add(h);const p=h.assignedSlot;p&&d(p),d(h.parentNode||h.host)};s.forEach(d);const u=h=>{if(!h||l.has(h))return;const p=h.shadowRoot;(p?[...h.children,...p.children]:[...h.children]).forEach(v=>{if(!["template","script","style"].includes(v.localName))if(a.has(v))u(v);else{const T=v.getAttribute(i),E=T!==null&&T!=="false",A=(Ae.get(v)||0)+1,D=(r.get(v)||0)+1;Ae.set(v,A),r.set(v,D),n.push(v),A===1&&E&&at.set(v,!0),D===1&&v.setAttribute(e,"true"),E||v.setAttribute(i,"true")}})};return u(t),a.clear(),Ft+=1,()=>{n.forEach(h=>{const p=Ae.get(h)-1,f=r.get(h)-1;Ae.set(h,p),r.set(h,f),p||(at.has(h)?at.delete(h):h.removeAttribute(i)),f||h.removeAttribute(e)}),Ft-=1,Ft||(Ae=new WeakMap,Ae=new WeakMap,at=new WeakMap,lt={})}},Fs=(o,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(o)?o:[o]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),Ka(i,t,e,"aria-hidden")};/**
2244
+ */let Ae=new WeakMap,at=new WeakMap,lt={},Ft=0;const _o=o=>o&&o.nodeType===Node.ELEMENT_NODE,zt=(...o)=>{console.error(`Error: ${o.join(" ")}. Skip setting aria-hidden.`)},qa=(o,t)=>_o(o)?t.map(e=>{if(!_o(e))return zt(e,"is not a valid element"),null;let i=e;for(;i&&i!==o;){if(o.contains(i))return e;i=i.getRootNode().host}return zt(e,"is not contained inside",o),null}).filter(e=>!!e):(zt(o,"is not a valid element"),[]),Ka=(o,t,e,i)=>{const s=qa(t,Array.isArray(o)?o:[o]);lt[e]||(lt[e]=new WeakMap);const r=lt[e],n=[],a=new Set,l=new Set(s),d=h=>{if(!h||a.has(h))return;a.add(h);const f=h.assignedSlot;f&&d(f),d(h.parentNode||h.host)};s.forEach(d);const u=h=>{if(!h||l.has(h))return;const f=h.shadowRoot;(f?[...h.children,...f.children]:[...h.children]).forEach(g=>{if(!["template","script","style"].includes(g.localName))if(a.has(g))u(g);else{const x=g.getAttribute(i),k=x!==null&&x!=="false",O=(Ae.get(g)||0)+1,E=(r.get(g)||0)+1;Ae.set(g,O),r.set(g,E),n.push(g),O===1&&k&&at.set(g,!0),E===1&&g.setAttribute(e,"true"),k||g.setAttribute(i,"true")}})};return u(t),a.clear(),Ft+=1,()=>{n.forEach(h=>{const f=Ae.get(h)-1,_=r.get(h)-1;Ae.set(h,f),r.set(h,_),f||(at.has(h)?at.delete(h):h.removeAttribute(i)),_||h.removeAttribute(e)}),Ft-=1,Ft||(Ae=new WeakMap,Ae=new WeakMap,at=new WeakMap,lt={})}},Fs=(o,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(o)?o:[o]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),Ka(i,t,e,"aria-hidden")};/**
2245
2245
  * @license
2246
2246
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2247
2247
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2257,7 +2257,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2257
2257
  * @license
2258
2258
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2259
2259
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2260
- */const Fe=H(o=>typeof o.prototype.addController=="function"?o:class extends o{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
2260
+ */const Fe=B(o=>typeof o.prototype.addController=="function"?o:class extends o{constructor(){super(),this.__controllers=new Set}connectedCallback(){super.connectedCallback(),this.__controllers.forEach(e=>{e.hostConnected&&e.hostConnected()})}disconnectedCallback(){super.disconnectedCallback(),this.__controllers.forEach(e=>{e.hostDisconnected&&e.hostDisconnected()})}addController(e){this.__controllers.add(e),this.$!==void 0&&this.isConnected&&e.hostConnected&&e.hostConnected()}removeController(e){this.__controllers.delete(e)}});/**
2261
2261
  * @license
2262
2262
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2263
2263
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2277,11 +2277,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2277
2277
  * @license
2278
2278
  * Copyright (c) 2024 Vaadin Ltd.
2279
2279
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2280
- */function rl(o,t){let e=null;const i=document.documentElement;function s(){e&&e.disconnect(),e=null}function r(n=!1,a=1){s();const{left:l,top:d,width:u,height:h}=o.getBoundingClientRect();if(n||t(),!u||!h)return;const p=Math.floor(d),f=Math.floor(i.clientWidth-(l+u)),v=Math.floor(i.clientHeight-(d+h)),T=Math.floor(l),A={rootMargin:`${-p}px ${-f}px ${-v}px ${-T}px`,threshold:Math.max(0,Math.min(1,a))||1};let D=!0;function I(N){let M=N[0].intersectionRatio;if(M!==a){if(!D)return r();M===0&&(M=1e-7),r(!1,M)}D=!1}e=new IntersectionObserver(I,A),e.observe(o)}return r(!0),s}/**
2280
+ */function rl(o,t){let e=null;const i=document.documentElement;function s(){e&&e.disconnect(),e=null}function r(n=!1,a=1){s();const{left:l,top:d,width:u,height:h}=o.getBoundingClientRect();if(n||t(),!u||!h)return;const f=Math.floor(d),_=Math.floor(i.clientWidth-(l+u)),g=Math.floor(i.clientHeight-(d+h)),x=Math.floor(l),O={rootMargin:`${-f}px ${-_}px ${-g}px ${-x}px`,threshold:Math.max(0,Math.min(1,a))||1};let E=!0;function P(F){let N=F[0].intersectionRatio;if(N!==a){if(!E)return r();N===0&&(N=1e-7),r(!1,N)}E=!1}e=new IntersectionObserver(P,O),e.observe(o)}return r(!0),s}/**
2281
2281
  * @license
2282
2282
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2283
2283
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2284
- */const $t={start:"top",end:"bottom"},Rt={start:"left",end:"right"},go=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),nl=o=>class extends o{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=il(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=rl(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,go.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,go.observe(i))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(s[r],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const s=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,s),n=!s&&r||s&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,$t,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Rt,this,r);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,i){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,r,this.__margins,n,this.noHorizontalOverlap,Rt)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,s,this.__margins,r,this.noVerticalOverlap,$t)}__shouldAlignStart(e,i,s,r,n,a,l){const d=s-e[a?l.end:l.start]-r[l.end],u=e[a?l.start:l.end]-r[l.start],h=n?d:u,f=h>(n?u:d)||h>i;return n===f}__adjustBottomProperty(e,i,s){let r;if(e===i.end){if(i.end===$t.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=s-a}this.__oldViewportHeight=n}if(i.end===Rt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=s-a}this.__oldViewportWidth=n}}return r}__calculatePositionInOneDimension(e,i,s,r,n,a){const l=a?r.start:r.end,d=a?r.end:r.start,u=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,u),p=i[a?r.start:r.end]-e[s===a?r.end:r.start],f=h?`${h}px`:`${u+p*(a?-1:1)}px`;return{[l]:f,[d]:""}}};/**
2284
+ */const $t={start:"top",end:"bottom"},Rt={start:"left",end:"right"},go=new ResizeObserver(o=>{setTimeout(()=>{o.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition()})})}),nl=o=>class extends o{static get properties(){return{positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this)}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners()}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners()}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=il(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0)}),this.positionTarget&&(this.__observePositionTargetMove=rl(this.positionTarget,()=>{this._updatePosition()}))}__removeUpdatePositionEventListeners(){window.visualViewport.removeEventListener("resize",this._updatePosition),window.visualViewport.removeEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes&&(this.__positionTargetAncestorRootNodes.forEach(e=>{e.removeEventListener("scroll",this.__onScroll,!0)}),this.__positionTargetAncestorRootNodes=null),this.__observePositionTargetMove&&(this.__observePositionTargetMove(),this.__observePositionTargetMove=null)}__overlayOpenedChanged(e,i){if(this.__removeUpdatePositionEventListeners(),i&&(i.__overlay=null,go.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,go.observe(i))),e){const s=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(s[r],10)})),this._updatePosition(),requestAnimationFrame(()=>this._updatePosition())}}__positionSettingsChanged(){this._updatePosition()}__onScroll(e){e.target instanceof Node&&this.contains(e.target)||this._updatePosition()}_updatePosition(){if(!this.positionTarget||!this.opened||!this.__margins)return;const e=this.positionTarget.getBoundingClientRect();if(e.width===0&&e.height===0&&this.opened){this.opened=!1;return}const i=this.__shouldAlignStartVertically(e);this.style.justifyContent=i?"flex-start":"flex-end";const s=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,s),n=!s&&r||s&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,$t,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Rt,this,r);Object.assign(this.style,l,d),this.toggleAttribute("bottom-aligned",!i),this.toggleAttribute("top-aligned",i),this.toggleAttribute("end-aligned",!n),this.toggleAttribute("start-aligned",n)}__shouldAlignStartHorizontally(e,i){const s=Math.max(this.__oldContentWidth||0,this.$.overlay.offsetWidth);this.__oldContentWidth=this.$.overlay.offsetWidth;const r=Math.min(window.innerWidth,document.documentElement.clientWidth),n=!i&&this.horizontalAlign==="start"||i&&this.horizontalAlign==="end";return this.__shouldAlignStart(e,s,r,this.__margins,n,this.noHorizontalOverlap,Rt)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const s=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,s,this.__margins,r,this.noVerticalOverlap,$t)}__shouldAlignStart(e,i,s,r,n,a,l){const d=s-e[a?l.end:l.start]-r[l.end],u=e[a?l.start:l.end]-r[l.start],h=n?d:u,_=h>(n?u:d)||h>i;return n===_}__adjustBottomProperty(e,i,s){let r;if(e===i.end){if(i.end===$t.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(s>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=s-a}this.__oldViewportHeight=n}if(i.end===Rt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(s>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=s-a}this.__oldViewportWidth=n}}return r}__calculatePositionInOneDimension(e,i,s,r,n,a){const l=a?r.start:r.end,d=a?r.end:r.start,u=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,u),f=i[a?r.start:r.end]-e[s===a?r.end:r.start],_=h?`${h}px`:`${u+f*(a?-1:1)}px`;return{[l]:_,[d]:""}}};/**
2285
2285
  * @license
2286
2286
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
2287
2287
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2289,7 +2289,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2289
2289
  * @license
2290
2290
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2291
2291
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2292
- */const ll=S`
2292
+ */const ll=D`
2293
2293
  [part='overlay'] {
2294
2294
  display: flex;
2295
2295
  flex: auto;
@@ -2308,7 +2308,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2308
2308
  * @license
2309
2309
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2310
2310
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2311
- */L("vaadin-date-picker-overlay",[Ma,ll],{moduleId:"vaadin-date-picker-overlay-styles"});class dl extends al(xt(we(ue))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ce`
2311
+ */$("vaadin-date-picker-overlay",[Ma,ll],{moduleId:"vaadin-date-picker-overlay-styles"});class dl extends al(xt(we(he))){static get is(){return"vaadin-date-picker-overlay"}static get template(){return Ce`
2312
2312
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
2313
2313
  <div part="overlay" id="overlay">
2314
2314
  <div part="content" id="content">
@@ -2833,7 +2833,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2833
2833
  * @license
2834
2834
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2835
2835
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2836
- */const Tl=S`
2836
+ */const Tl=D`
2837
2837
  :host {
2838
2838
  display: inline-block;
2839
2839
  position: relative;
@@ -2914,15 +2914,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
2914
2914
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
2915
2915
  Code distributed by Google as part of the polymer project is also
2916
2916
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
2917
- */const Dl=o=>o,Us=typeof document.head.style.touchAction=="string",di="__polymerGestures",Bt="__polymerGesturesHandled",ci="__polymerGesturesTouchAction",wo=25,xo=5,kl=2,Sl=["mousedown","mousemove","mouseup","click"],Pl=[0,1,4,2],Ol=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function ki(o){return Sl.indexOf(o)>-1}let Ml=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){Ml=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function Il(o){ki(o)}const Nl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Fl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ve(o){const t=o.type;if(!ki(t))return!1;if(t==="mousemove"){let i=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!Ol&&(i=Pl[o.which]||0),!!(i&1)}return(o.button===void 0?0:o.button)===0}function zl(o){if(o.type==="click"){if(o.detail===0)return!0;const t=ce(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),i=o.pageX,s=o.pageY;return!(i>=e.left&&i<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const re={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ll(o){let t="auto";const e=Ys(o);for(let i=0,s;i<e.length;i++)if(s=e[i],s[ci]){t=s[ci];break}return t}function js(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function Se(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const Ys=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Si={},ge=[];function $l(o,t){let e=document.elementFromPoint(o,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const s=i;if(i=i.shadowRoot.elementFromPoint(o,t),s===i)break;i&&(e=i)}return e}function ce(o){const t=Ys(o);return t.length>0?t[0]:o.target}function Rl(o){const t=o.type,i=o.currentTarget[di];if(!i)return;const s=i[t];if(!s)return;if(!o[Bt]&&(o[Bt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(re.touch.id=n.identifier),re.touch.id!==n.identifier)return;Us||(t==="touchstart"||t==="touchmove")&&Hl(o)}const r=o[Bt];if(!r.skip){for(let n=0,a;n<ge.length;n++)a=ge[n],s[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<ge.length;n++)a=ge[n],s[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o))}}function Hl(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")re.touch.x=t.clientX,re.touch.y=t.clientY,re.touch.scrollDecided=!1;else if(e==="touchmove"){if(re.touch.scrollDecided)return;re.touch.scrollDecided=!0;const i=Ll(o);let s=!1;const r=Math.abs(re.touch.x-t.clientX),n=Math.abs(re.touch.y-t.clientY);o.cancelable&&(i==="none"?s=!0:i==="pan-x"?s=n>r:i==="pan-y"&&(s=r>n)),s?o.preventDefault():yt("track")}}function te(o,t,e){return Si[t]?(Bl(o,t,e),!0):!1}function Bl(o,t,e){const i=Si[t],s=i.deps,r=i.name;let n=o[di];n||(o[di]=n={});for(let a=0,l,d;a<s.length;a++)l=s[a],!(Nl&&ki(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&o.addEventListener(l,Rl,Il(l)),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);o.addEventListener(t,e),i.touchAction&&Ws(o,i.touchAction)}function Pi(o){ge.push(o),o.emits.forEach(t=>{Si[t]=o})}function Vl(o){for(let t=0,e;t<ge.length;t++){e=ge[t];for(let i=0,s;i<e.emits.length;i++)if(s=e.emits[i],s===o)return e}return null}function Ws(o,t){Us&&o instanceof HTMLElement&&wl.run(()=>{o.style.touchAction=t}),o[ci]=t}function Oi(o,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,Dl(o).dispatchEvent(i),i.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function yt(o){const t=Vl(o);t.info&&(t.info.prevent=!0)}Pi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Se(this.info)},mousedown(o){if(!ve(o))return;const t=ce(o),e=this,i=r=>{ve(r)||(He("up",t,r),Se(e.info))},s=r=>{ve(r)&&He("up",t,r),Se(e.info)};js(this.info,i,s),He("down",t,o)},touchstart(o){He("down",ce(o),o.changedTouches[0],o)},touchend(o){He("up",ce(o),o.changedTouches[0],o)}});function He(o,t,e,i){t&&Oi(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(s){return yt(s)}})}Pi({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(o){this.moves.length>kl&&this.moves.shift(),this.moves.push(o)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Se(this.info)},mousedown(o){if(!ve(o))return;const t=ce(o),e=this,i=r=>{const n=r.clientX,a=r.clientY;Co(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&yt("tap"),e.info.addMove({x:n,y:a}),ve(r)||(e.info.state="end",Se(e.info)),t&&Vt(e.info,t,r),e.info.started=!0)},s=r=>{e.info.started&&i(r),Se(e.info)};js(this.info,i,s),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(o){const t=ce(o),e=o.changedTouches[0],i=e.clientX,s=e.clientY;Co(this.info,i,s)&&(this.info.state==="start"&&yt("tap"),this.info.addMove({x:i,y:s}),Vt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(o){const t=ce(o),e=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Vt(this.info,t,e))}});function Co(o,t,e){if(o.prevent)return!1;if(o.started)return!0;const i=Math.abs(o.x-t),s=Math.abs(o.y-e);return i>=xo||s>=xo}function Vt(o,t,e){if(!t)return;const i=o.moves[o.moves.length-2],s=o.moves[o.moves.length-1],r=s.x-o.x,n=s.y-o.y;let a,l=0;i&&(a=s.x-i.x,l=s.y-i.y),Oi(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return $l(e.clientX,e.clientY)}})}Pi({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(o){ve(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){ve(o)&&Ao(this.info,o)},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(o){Ao(this.info,o.changedTouches[0],o)}});function Ao(o,t,e){const i=Math.abs(t.clientX-o.x),s=Math.abs(t.clientY-o.y),r=ce(e||t);!r||Fl[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(s)||i<=wo&&s<=wo||zl(t))&&(o.prevent||Oi(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2917
+ */const Dl=o=>o,Us=typeof document.head.style.touchAction=="string",di="__polymerGestures",Bt="__polymerGesturesHandled",ci="__polymerGesturesTouchAction",wo=25,xo=5,kl=2,Sl=["mousedown","mousemove","mouseup","click"],Pl=[0,1,4,2],Ol=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(o){return!1}}();function ki(o){return Sl.indexOf(o)>-1}let Ml=!1;(function(){try{const o=Object.defineProperty({},"passive",{get(){Ml=!0}});window.addEventListener("test",null,o),window.removeEventListener("test",null,o)}catch(o){}})();function Il(o){ki(o)}const Nl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Fl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ve(o){const t=o.type;if(!ki(t))return!1;if(t==="mousemove"){let i=o.buttons===void 0?1:o.buttons;return o instanceof window.MouseEvent&&!Ol&&(i=Pl[o.which]||0),!!(i&1)}return(o.button===void 0?0:o.button)===0}function zl(o){if(o.type==="click"){if(o.detail===0)return!0;const t=ue(o);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return!0;const e=t.getBoundingClientRect(),i=o.pageX,s=o.pageY;return!(i>=e.left&&i<=e.right&&s>=e.top&&s<=e.bottom)}return!1}const re={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Ll(o){let t="auto";const e=Ys(o);for(let i=0,s;i<e.length;i++)if(s=e[i],s[ci]){t=s[ci];break}return t}function js(o,t,e){o.movefn=t,o.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e)}function Se(o){document.removeEventListener("mousemove",o.movefn),document.removeEventListener("mouseup",o.upfn),o.movefn=null,o.upfn=null}const Ys=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:o=>o.composedPath&&o.composedPath()||[],Si={},ge=[];function $l(o,t){let e=document.elementFromPoint(o,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const s=i;if(i=i.shadowRoot.elementFromPoint(o,t),s===i)break;i&&(e=i)}return e}function ue(o){const t=Ys(o);return t.length>0?t[0]:o.target}function Rl(o){const t=o.type,i=o.currentTarget[di];if(!i)return;const s=i[t];if(!s)return;if(!o[Bt]&&(o[Bt]={},t.startsWith("touch"))){const n=o.changedTouches[0];if(t==="touchstart"&&o.touches.length===1&&(re.touch.id=n.identifier),re.touch.id!==n.identifier)return;Us||(t==="touchstart"||t==="touchmove")&&Hl(o)}const r=o[Bt];if(!r.skip){for(let n=0,a;n<ge.length;n++)a=ge[n],s[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(o.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<ge.length;n++)a=ge[n],s[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](o))}}function Hl(o){const t=o.changedTouches[0],e=o.type;if(e==="touchstart")re.touch.x=t.clientX,re.touch.y=t.clientY,re.touch.scrollDecided=!1;else if(e==="touchmove"){if(re.touch.scrollDecided)return;re.touch.scrollDecided=!0;const i=Ll(o);let s=!1;const r=Math.abs(re.touch.x-t.clientX),n=Math.abs(re.touch.y-t.clientY);o.cancelable&&(i==="none"?s=!0:i==="pan-x"?s=n>r:i==="pan-y"&&(s=r>n)),s?o.preventDefault():yt("track")}}function te(o,t,e){return Si[t]?(Bl(o,t,e),!0):!1}function Bl(o,t,e){const i=Si[t],s=i.deps,r=i.name;let n=o[di];n||(o[di]=n={});for(let a=0,l,d;a<s.length;a++)l=s[a],!(Nl&&ki(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&o.addEventListener(l,Rl,Il(l)),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);o.addEventListener(t,e),i.touchAction&&Ws(o,i.touchAction)}function Pi(o){ge.push(o),o.emits.forEach(t=>{Si[t]=o})}function Vl(o){for(let t=0,e;t<ge.length;t++){e=ge[t];for(let i=0,s;i<e.emits.length;i++)if(s=e.emits[i],s===o)return e}return null}function Ws(o,t){Us&&o instanceof HTMLElement&&wl.run(()=>{o.style.touchAction=t}),o[ci]=t}function Oi(o,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,Dl(o).dispatchEvent(i),i.defaultPrevented){const s=e.preventer||e.sourceEvent;s&&s.preventDefault&&s.preventDefault()}}function yt(o){const t=Vl(o);t.info&&(t.info.prevent=!0)}Pi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){Se(this.info)},mousedown(o){if(!ve(o))return;const t=ue(o),e=this,i=r=>{ve(r)||(He("up",t,r),Se(e.info))},s=r=>{ve(r)&&He("up",t,r),Se(e.info)};js(this.info,i,s),He("down",t,o)},touchstart(o){He("down",ue(o),o.changedTouches[0],o)},touchend(o){He("up",ue(o),o.changedTouches[0],o)}});function He(o,t,e,i){t&&Oi(t,o,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(s){return yt(s)}})}Pi({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(o){this.moves.length>kl&&this.moves.shift(),this.moves.push(o)},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,Se(this.info)},mousedown(o){if(!ve(o))return;const t=ue(o),e=this,i=r=>{const n=r.clientX,a=r.clientY;Co(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&yt("tap"),e.info.addMove({x:n,y:a}),ve(r)||(e.info.state="end",Se(e.info)),t&&Vt(e.info,t,r),e.info.started=!0)},s=r=>{e.info.started&&i(r),Se(e.info)};js(this.info,i,s),this.info.x=o.clientX,this.info.y=o.clientY},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchmove(o){const t=ue(o),e=o.changedTouches[0],i=e.clientX,s=e.clientY;Co(this.info,i,s)&&(this.info.state==="start"&&yt("tap"),this.info.addMove({x:i,y:s}),Vt(this.info,t,e),this.info.state="track",this.info.started=!0)},touchend(o){const t=ue(o),e=o.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Vt(this.info,t,e))}});function Co(o,t,e){if(o.prevent)return!1;if(o.started)return!0;const i=Math.abs(o.x-t),s=Math.abs(o.y-e);return i>=xo||s>=xo}function Vt(o,t,e){if(!t)return;const i=o.moves[o.moves.length-2],s=o.moves[o.moves.length-1],r=s.x-o.x,n=s.y-o.y;let a,l=0;i&&(a=s.x-i.x,l=s.y-i.y),Oi(t,"track",{state:o.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return $l(e.clientX,e.clientY)}})}Pi({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1},mousedown(o){ve(o)&&(this.info.x=o.clientX,this.info.y=o.clientY)},click(o){ve(o)&&Ao(this.info,o)},touchstart(o){const t=o.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY},touchend(o){Ao(this.info,o.changedTouches[0],o)}});function Ao(o,t,e){const i=Math.abs(t.clientX-o.x),s=Math.abs(t.clientY-o.y),r=ue(e||t);!r||Fl[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(s)||i<=wo&&s<=wo||zl(t))&&(o.prevent||Oi(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}))}/**
2918
2918
  * @license
2919
2919
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2920
2920
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2921
- */const qs=H(o=>class extends o{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2921
+ */const qs=B(o=>class extends o{static get properties(){return{disabled:{type:Boolean,value:!1,observer:"_disabledChanged",reflectToAttribute:!0}}}_disabledChanged(e){this._setAriaDisabled(e)}_setAriaDisabled(e){e?this.setAttribute("aria-disabled","true"):this.removeAttribute("aria-disabled")}click(){this.disabled||super.click()}});/**
2922
2922
  * @license
2923
2923
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2924
2924
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2925
- */const Tt=H(o=>class extends o{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
2925
+ */const Tt=B(o=>class extends o{ready(){super.ready(),this.addEventListener("keydown",e=>{this._onKeyDown(e)}),this.addEventListener("keyup",e=>{this._onKeyUp(e)})}_onKeyDown(e){switch(e.key){case"Enter":this._onEnter(e);break;case"Escape":this._onEscape(e);break}}_onKeyUp(e){}_onEnter(e){}_onEscape(e){}});/**
2926
2926
  * @license
2927
2927
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2928
2928
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2930,7 +2930,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2930
2930
  * @license
2931
2931
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2932
2932
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2933
- */const Mi=H(o=>class extends o{get _keyboardActive(){return Ei()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
2933
+ */const Mi=B(o=>class extends o{get _keyboardActive(){return Ei()}ready(){this.addEventListener("focusin",e=>{this._shouldSetFocus(e)&&this._setFocused(!0)}),this.addEventListener("focusout",e=>{this._shouldRemoveFocus(e)&&this._setFocused(!1)}),super.ready()}disconnectedCallback(){super.disconnectedCallback(),this.hasAttribute("focused")&&this._setFocused(!1)}_setFocused(e){this.toggleAttribute("focused",e),this.toggleAttribute("focus-ring",e&&this._keyboardActive)}_shouldSetFocus(e){return!0}_shouldRemoveFocus(e){return!0}});/**
2934
2934
  * @license
2935
2935
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
2936
2936
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -2942,7 +2942,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
2942
2942
  * @license
2943
2943
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
2944
2944
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
2945
- */L("vaadin-button",Tl,{moduleId:"vaadin-button-styles"});class Yl extends jl(Hs(we(Fe(ue)))){static get is(){return"vaadin-button"}static get template(){return El(Ce)}ready(){super.ready(),this._tooltipController=new Vs(this),this.addController(this._tooltipController)}}ie(Yl);/**
2945
+ */$("vaadin-button",Tl,{moduleId:"vaadin-button-styles"});class Yl extends jl(Hs(we(Fe(he)))){static get is(){return"vaadin-button"}static get template(){return El(Ce)}ready(){super.ready(),this._tooltipController=new Vs(this),this.addController(this._tooltipController)}}ie(Yl);/**
2946
2946
  * @license
2947
2947
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
2948
2948
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3078,7 +3078,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3078
3078
  * @license
3079
3079
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3080
3080
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3081
- */class td extends we(ed(ue)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ce`
3081
+ */class td extends we(ed(he)){static get is(){return"vaadin-date-picker-year"}static get template(){return Ce`
3082
3082
  <style>
3083
3083
  :host {
3084
3084
  display: block;
@@ -3095,7 +3095,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3095
3095
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3096
3096
  Code distributed by Google as part of the polymer project is also
3097
3097
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3098
- */function Fi(o,t,e,i,s){let r;s&&(r=typeof e=="object"&&e!==null,r&&(i=o.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(o.__dataTemp[t]=e),n}const zi=H(o=>{class t extends o{_shouldPropertyChange(i,s,r){return Fi(this,i,s,r,!0)}}return t}),id=H(o=>{class t extends o{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,s,r){return Fi(this,i,s,r,this.mutableData)}}return t});zi._mutablePropertyChange=Fi;/**
3098
+ */function Fi(o,t,e,i,s){let r;s&&(r=typeof e=="object"&&e!==null,r&&(i=o.__dataTemp[t]));let n=i!==e&&(i===i||e===e);return r&&n&&(o.__dataTemp[t]=e),n}const zi=B(o=>{class t extends o{_shouldPropertyChange(i,s,r){return Fi(this,i,s,r,!0)}}return t}),id=B(o=>{class t extends o{static get properties(){return{mutableData:Boolean}}_shouldPropertyChange(i,s,r){return Fi(this,i,s,r,this.mutableData)}}return t});zi._mutablePropertyChange=Fi;/**
3099
3099
  @license
3100
3100
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3101
3101
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3103,7 +3103,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3103
3103
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3104
3104
  Code distributed by Google as part of the polymer project is also
3105
3105
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3106
- */let hi=null;function pi(){return hi}pi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:pi,writable:!0}});const tr=Ai(pi),od=zi(tr);function sd(o,t){hi=o,Object.setPrototypeOf(o,t.prototype),new t,hi=null}const rd=Ai(class{});function nd(o,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!o!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)o?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(o)i.__polymerReplaced__=document.createComment("hidden-slot"),V(V(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const s=i.__polymerReplaced__;s&&V(V(s).parentNode).replaceChild(i,s)}else i.style&&(o?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=o,i._showHideChildren&&i._showHideChildren(o)}}class he extends rd{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let s=this.root.firstChild;s;s=s.nextSibling)e.push(s),s.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,s=>{s.model=this,i(s)});else{let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,i)}}_showHideChildren(t){nd(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}he.prototype.__dataHost;he.prototype.__templatizeOptions;he.prototype._methodHost;he.prototype.__templatizeOwner;he.prototype.__hostProps;const ad=zi(he);function To(o){let t=o.__dataHost;return t&&t._methodHost||t}function ld(o,t,e){let i=e.mutableData?ad:he;fi.mixin&&(i=fi.mixin(i));let s=class extends i{};return s.prototype.__templatizeOptions=e,s.prototype._bindTemplate(o),ud(s,o,t,e),s}function dd(o,t,e,i){let s=e.forwardHostProp;if(s&&t.hasHostProps){const r=o.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?od:tr;class d extends l{}n=t.templatizeTemplateClass=d}else{const l=o.constructor;class d extends l{}n=t.templatizeTemplateClass=d}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:cd(l,s)}),n.prototype._createNotifyingProperty("_host_"+l);ns&&i&&fd(t,e,i)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),r)sd(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in o){const d=o[l];delete o[l],o.__data[l]=d}}}}function cd(o,t){return function(i,s,r){t.call(i.__templatizeOwner,s.substring(6),r[s])}}function ud(o,t,e,i){let s=e.hostProps||{};for(let r in i.instanceProps){delete s[r];let n=i.notifyInstanceProp;n&&o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:hd(r,n)})}if(i.forwardHostProp&&t.__dataHost)for(let r in s)e.hasHostProps||(e.hasHostProps=!0),o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:pd()})}function hd(o,t){return function(i,s,r){t.call(i.__templatizeOwner,i,s,r[s])}}function pd(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}}function fi(o,t,e){if(mt&&!To(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=t;let s=(t?t.constructor:he)._parseTemplate(o),r=s.templatizeInstanceClass;r||(r=ld(o,s,e),s.templatizeInstanceClass=r);const n=To(o);dd(o,s,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=o,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=s.hostProps,a=a,a}function fd(o,t,e){const i=e.constructor._properties,{propertyEffects:s}=o,{instanceProps:r}=t;for(let n in s)if(!i[n]&&!(r&&r[n])){const a=s[n];for(let l=0;l<a.length;l++){const{part:d}=a[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function md(o,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=o)t=e.__dataHost;else return e;else t=V(t).parentNode;return null}/**
3106
+ */let hi=null;function pi(){return hi}pi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:pi,writable:!0}});const tr=Ai(pi),od=zi(tr);function sd(o,t){hi=o,Object.setPrototypeOf(o,t.prototype),new t,hi=null}const rd=Ai(class{});function nd(o,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!o!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)o?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(o)i.__polymerReplaced__=document.createComment("hidden-slot"),j(j(i).parentNode).replaceChild(i.__polymerReplaced__,i);else{const s=i.__polymerReplaced__;s&&j(j(s).parentNode).replaceChild(i,s)}else i.style&&(o?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=o,i._showHideChildren&&i._showHideChildren(o)}}class pe extends rd{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let s=this.root.firstChild;s;s=s.nextSibling)e.push(s),s.__templatizeInstance=this;this.__templatizeOwner&&this.__templatizeOwner.__hideTemplateChildren__&&this._showHideChildren(!0);let i=this.__templatizeOptions;(t&&i.instanceProps||!i.instanceProps)&&this._enableProperties()}_configureProperties(t){if(this.__templatizeOptions.forwardHostProp)for(let i in this.__hostProps)this._setPendingProperty(i,this.__dataHost["_host_"+i]);for(let i in t)this._setPendingProperty(i,t[i])}forwardHostProp(t,e){this._setPendingPropertyOrPath(t,e,!1,!0)&&this.__dataHost._enqueueClient(this)}_addEventListenerToNode(t,e,i){if(this._methodHost&&this.__templatizeOptions.parentModel)this._methodHost._addEventListenerToNode(t,e,s=>{s.model=this,i(s)});else{let s=this.__dataHost.__dataHost;s&&s._addEventListenerToNode(t,e,i)}}_showHideChildren(t){nd(t,this.children)}_setUnmanagedPropertyToNode(t,e,i){t.__hideTemplateChildren__&&t.nodeType==Node.TEXT_NODE&&e=="textContent"?t.__polymerTextContent__=i:super._setUnmanagedPropertyToNode(t,e,i)}get parentModel(){let t=this.__parentModel;if(!t){let e;t=this;do t=t.__dataHost.__dataHost;while((e=t.__templatizeOptions)&&!e.parentModel);this.__parentModel=t}return t}dispatchEvent(t){return!0}}pe.prototype.__dataHost;pe.prototype.__templatizeOptions;pe.prototype._methodHost;pe.prototype.__templatizeOwner;pe.prototype.__hostProps;const ad=zi(pe);function To(o){let t=o.__dataHost;return t&&t._methodHost||t}function ld(o,t,e){let i=e.mutableData?ad:pe;fi.mixin&&(i=fi.mixin(i));let s=class extends i{};return s.prototype.__templatizeOptions=e,s.prototype._bindTemplate(o),ud(s,o,t,e),s}function dd(o,t,e,i){let s=e.forwardHostProp;if(s&&t.hasHostProps){const r=o.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?od:tr;class d extends l{}n=t.templatizeTemplateClass=d}else{const l=o.constructor;class d extends l{}n=t.templatizeTemplateClass=d}let a=t.hostProps;for(let l in a)n.prototype._addPropertyEffect("_host_"+l,n.prototype.PROPERTY_EFFECT_TYPES.PROPAGATE,{fn:cd(l,s)}),n.prototype._createNotifyingProperty("_host_"+l);ns&&i&&fd(t,e,i)}if(o.__dataProto&&Object.assign(o.__data,o.__dataProto),r)sd(o,n),o.__dataTemp={},o.__dataPending=null,o.__dataOld=null,o._enableProperties();else{Object.setPrototypeOf(o,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in o){const d=o[l];delete o[l],o.__data[l]=d}}}}function cd(o,t){return function(i,s,r){t.call(i.__templatizeOwner,s.substring(6),r[s])}}function ud(o,t,e,i){let s=e.hostProps||{};for(let r in i.instanceProps){delete s[r];let n=i.notifyInstanceProp;n&&o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:hd(r,n)})}if(i.forwardHostProp&&t.__dataHost)for(let r in s)e.hasHostProps||(e.hasHostProps=!0),o.prototype._addPropertyEffect(r,o.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:pd()})}function hd(o,t){return function(i,s,r){t.call(i.__templatizeOwner,i,s,r[s])}}function pd(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0)}}function fi(o,t,e){if(mt&&!To(o))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},o.__templatizeOwner)throw new Error("A <template> can only be templatized once");o.__templatizeOwner=t;let s=(t?t.constructor:pe)._parseTemplate(o),r=s.templatizeInstanceClass;r||(r=ld(o,s,e),s.templatizeInstanceClass=r);const n=To(o);dd(o,s,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=o,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=s.hostProps,a=a,a}function fd(o,t,e){const i=e.constructor._properties,{propertyEffects:s}=o,{instanceProps:r}=t;for(let n in s)if(!i[n]&&!(r&&r[n])){const a=s[n];for(let l=0;l<a.length;l++){const{part:d}=a[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function md(o,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=o)t=e.__dataHost;else return e;else t=j(t).parentNode;return null}/**
3107
3107
  @license
3108
3108
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
3109
3109
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -3119,7 +3119,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
3119
3119
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
3120
3120
  Code distributed by Google as part of the polymer project is also
3121
3121
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
3122
- */const gd=id(ue);class Do extends gd{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Zi,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),_d()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=V(V(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let s=new MutationObserver(()=>{if(this.querySelector("template"))s.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=fi(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(s,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(s,r)},notifyInstanceProp:function(s,r,n){if(wn(this.as,r)){let a=s[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=Ze(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=vt.debounce(this.__renderDebouncer,e>0?Dn.after(e):_s,t.bind(this)),Jl(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ni()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Zi||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,s,r)=>this.__filterFn(t[i],s,r))),this.__sortFn&&e.sort((i,s)=>this.__sortFn(t[i],t[s])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-i,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+s,t)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];s[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const i=V(e.root);for(let s=0;s<e.children.length;s++){let r=e.children[s];i.appendChild(r)}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=i,new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return V(V(this).parentNode).insertBefore(s.root,n),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),s=i.indexOf("."),r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let n=s<0?"":i.substring(s+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return md(this.template,t)}}customElements.define(Do.is,Do);/**
3122
+ */const gd=id(he);class Do extends gd{static get is(){return"dom-repeat"}static get template(){return null}static get properties(){return{items:{type:Array},as:{type:String,value:"item"},indexAs:{type:String,value:"index"},itemsIndexAs:{type:String,value:"itemsIndex"},sort:{type:Function,observer:"__sortChanged"},filter:{type:Function,observer:"__filterChanged"},observe:{type:String,observer:"__observeChanged"},delay:Number,renderedItemCount:{type:Number,notify:!Zi,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null,this._templateInfo}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId)}connectedCallback(){if(super.connectedCallback(),_d()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=j(j(this).parentNode);for(let e=0;e<this.__instances.length;e++)this.__attachInstance(e,t);this.__chunkingId&&this.__render()}}__ensureTemplatized(){if(!this.__ctor){const t=this;let e=this.template=t._templateInfo?t:this.querySelector("template");if(!e){let s=new MutationObserver(()=>{if(this.querySelector("template"))s.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return s.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=fi(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(s,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(s,r)},notifyInstanceProp:function(s,r,n){if(wn(this.as,r)){let a=s[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=Ze(this.as,`${JSCompiler_renameProperty("items",this)}.${a}`,r);this.notifyPath(l,n)}}})}return!0}__getMethodHost(){return this.__dataHost._methodHost||this.__dataHost}__functionFromPropertyValue(t){if(typeof t=="string"){let e=t,i=this.__getMethodHost();return function(){return i[e].apply(i,arguments)}}return t}__sortChanged(t){this.__sortFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__filterChanged(t){this.__filterFn=this.__functionFromPropertyValue(t),this.items&&this.__debounceRender(this.__render)}__computeFrameTime(t){return Math.ceil(1e3/t)}__observeChanged(){this.__observePaths=this.observe&&this.observe.replace(".*",".").split(" ")}__handleObservedPaths(t){if(this.__sortFn||this.__filterFn){if(!t)this.__debounceRender(this.__render,this.delay);else if(this.__observePaths){let e=this.__observePaths;for(let i=0;i<e.length;i++)t.indexOf(e[i])===0&&this.__debounceRender(this.__render,this.delay)}}}__itemsChanged(t){this.items&&!Array.isArray(this.items)&&console.warn("dom-repeat expected array for `items`, found",this.items),this.__handleItemPath(t.path,t.value)||(t.path==="items"&&(this.__itemsArrayChanged=!0),this.__debounceRender(this.__render))}__debounceRender(t,e=0){this.__renderDebouncer=vt.debounce(this.__renderDebouncer,e>0?Dn.after(e):_s,t.bind(this)),Jl(this.__renderDebouncer)}render(){this.__debounceRender(this.__render),Ni()}__render(){if(!this.__ensureTemplatized())return;let t=this.items||[];const e=this.__sortAndFilterItems(t),i=this.__calculateLimit(e.length);this.__updateInstances(t,i,e),this.initialCount&&(this.__shouldMeasureChunk||this.__shouldContinueChunking)&&(cancelAnimationFrame(this.__chunkingId),this.__chunkingId=requestAnimationFrame(()=>{this.__chunkingId=null,this.__continueChunking()})),this._setRenderedItemCount(this.__instances.length),(!Zi||this.notifyDomChange)&&this.dispatchEvent(new CustomEvent("dom-change",{bubbles:!0,composed:!0}))}__sortAndFilterItems(t){let e=new Array(t.length);for(let i=0;i<t.length;i++)e[i]=i;return this.__filterFn&&(e=e.filter((i,s,r)=>this.__filterFn(t[i],s,r))),this.__sortFn&&e.sort((i,s)=>this.__sortFn(t[i],t[s])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let s;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),s=Math.max(e-i,0),this.__chunkCount=s||1):(s=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+s,t)),this.__shouldMeasureChunk=s===this.__chunkCount,this.__shouldContinueChunking=e<t,this.__renderStartTime=performance.now()}return this.__itemsArrayChanged=!1,e}__continueChunking(){if(this.__shouldMeasureChunk){const t=performance.now()-this.__renderStartTime,e=this._targetFrameTime/t;this.__chunkCount=Math.round(this.__chunkCount*e)||1}this.__shouldContinueChunking&&this.__debounceRender(this.__render)}__updateInstances(t,e,i){const s=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];s[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a)}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n)}__detachInstance(t){let e=this.__instances[t];const i=j(e.root);for(let s=0;s<e.children.length;s++){let r=e.children[s];i.appendChild(r)}return e}__attachInstance(t,e){let i=this.__instances[t];e.insertBefore(i.root,this)}__detachAndRemoveInstance(t){this.__detachInstance(t),this.__instances.splice(t,1)}__stampInstance(t,e,i){let s={};return s[this.as]=t,s[this.indexAs]=e,s[this.itemsIndexAs]=i,new this.__ctor(s)}__insertInstance(t,e,i){const s=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return j(j(this).parentNode).insertBefore(s.root,n),this.__instances[e]=s,s}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t)}__handleItemPath(t,e){let i=t.slice(6),s=i.indexOf("."),r=s<0?i:i.substring(0,s);if(r==parseInt(r,10)){let n=s<0?"":i.substring(s+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,e,!1,!0),l._flushProperties()}return!0}}itemForElement(t){let e=this.modelForElement(t);return e&&e[this.as]}indexForElement(t){let e=this.modelForElement(t);return e&&e[this.indexAs]}modelForElement(t){return md(this.template,t)}}customElements.define(Do.is,Do);/**
3123
3123
  * @license
3124
3124
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3125
3125
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3127,7 +3127,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3127
3127
  * @license
3128
3128
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3129
3129
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3130
- */const vd=S`
3130
+ */const vd=D`
3131
3131
  :host {
3132
3132
  display: block;
3133
3133
  }
@@ -3187,7 +3187,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3187
3187
  * @license
3188
3188
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3189
3189
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3190
- */L("vaadin-month-calendar",vd,{moduleId:"vaadin-month-calendar-styles"});class bd extends yd(we(ue)){static get template(){return Ce`
3190
+ */$("vaadin-month-calendar",vd,{moduleId:"vaadin-month-calendar-styles"});class bd extends yd(we(he)){static get template(){return Ce`
3191
3191
  <div part="month-header" id="month-header" aria-hidden="true">[[_getTitle(month, i18n)]]</div>
3192
3192
  <table
3193
3193
  id="monthGrid"
@@ -3237,11 +3237,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3237
3237
  * @license
3238
3238
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3239
3239
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3240
- */const wd=o=>class extends o{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Ws(this.$.scrollers,"pan-y"),te(this.$.scrollers,"track",this._track.bind(this)),te(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),te(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),te(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new ir(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new _e(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),te(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new _e(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),te(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,i){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new _e(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i)}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=i}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new _e(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),te(e,"tap",i=>{this._onYearTap(i)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,i){e&&(e.textContent=i&&i.cancel)}__updateTodayButton(e,i,s,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(s,r,n))}__updateCalendars(e,i,s,r,n,a,l,d,u,h){e&&e.length&&e.forEach(p=>{p.i18n=i,p.minDate=s,p.maxDate=r,p.isDateDisabled=h,p.focusedDate=a,p.selectedDate=n,p.showWeekNumbers=l,p.ignoreTaps=d,u?p.setAttribute("theme",u):p.removeAttribute("theme")})}__updateYears(e,i,s){e&&e.length&&e.forEach(r=>{r.selectedDate=i,s?r.setAttribute("theme",s):r.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,i=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+d,i);return}const r=this._monthScroller.position>s,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<s;r?this._scrollToPosition(s,i):l&&this._scrollToPosition(s-a+1,i)}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let s=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(s+=1);return s/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Me.debounce(this._debouncer,gt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Ii(e)):s}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const s=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+s*12,!0)}}_scrollToPosition(e,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(d=>{s=d});const r=(d,u,h,p)=>(d/=p/2,d<1?h/2*d*d+u:(d-=1,-h/2*(d*(d-2)-1)+u));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const u=d-n;if(u<this.scrollDuration){const h=r(u,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,i){return Math.min(i.max,Math.max(i.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Js(e).getFullYear()}_differenceInMonths(e,i){return(e.getFullYear()-i.getFullYear())*12-i.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){ne(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&ne(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return st(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,i||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return st(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Is(this,()=>{Ni(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Gs(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,i,s){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,i){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),i&&s.setDate(this.focusedDate.getDate()+i),s}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1)}_moveFocusByMonths(e){const i=this._getDateDiff(e),s=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==s&&i.setDate(0),this._focusAllowedDate(i,e,!0)}_moveFocusInsideMonth(e,i){const s=new Date(0,0);s.setFullYear(e.getFullYear()),i==="minDate"?(s.setMonth(e.getMonth()),s.setDate(1)):(s.setMonth(e.getMonth()+1),s.setDate(0)),this._dateAllowed(s)?this.focusDate(s):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e)}_dateAllowed(e,i=this.minDate,s=this.maxDate,r=this.isDateDisabled){return Ie(e,i,s,r)}_isTodayAllowed(e,i,s){return this._dateAllowed(this._getTodayMidnight(),e,i,s)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
3240
+ */const wd=o=>class extends o{static get properties(){return{scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Ws(this.$.scrollers,"pan-y"),te(this.$.scrollers,"track",this._track.bind(this)),te(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),te(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),te(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this))}_initControllers(){this.addController(new ir(this._desktopMediaQuery,e=>{this._desktopMode=e})),this.addController(new _e(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),te(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e}})),this.addController(new _e(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),te(e,"tap",this._cancel.bind(this)),this._cancelButton=e}})),this.__initMonthScroller(),this.__initYearScroller()}reset(){this._closeYearScroller(),this._toggleAnimateClass(!0)}focusCancel(){this._cancelButton.focus()}scrollToDate(e,i){const s=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+s,i),this._monthScroller.forceUpdate()}__initMonthScroller(){this.addController(new _e(this,"months","vaadin-date-picker-month-scroller",{observe:!1,initializer:e=>{e.addEventListener("custom-scroll",()=>{this._onMonthScroll()}),e.addEventListener("touchstart",()=>{this._onMonthScrollTouchStart()}),e.addEventListener("keydown",i=>{this.__onMonthCalendarKeyDown(i)}),e.addEventListener("init-done",()=>{const i=[...this.querySelectorAll("vaadin-month-calendar")];i.forEach(s=>{s.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value})}),this.calendars=i}),this._monthScroller=e}}))}__initYearScroller(){this.addController(new _e(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),te(e,"tap",i=>{this._onYearTap(i)}),e.addEventListener("custom-scroll",()=>{this._onYearScroll()}),e.addEventListener("touchstart",()=>{this._onYearScrollTouchStart()}),e.addEventListener("init-done",()=>{this.years=[...this.querySelectorAll("vaadin-date-picker-year")]}),this._yearScroller=e}}))}__updateCancelButton(e,i){e&&(e.textContent=i&&i.cancel)}__updateTodayButton(e,i,s,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(s,r,n))}__updateCalendars(e,i,s,r,n,a,l,d,u,h){e&&e.length&&e.forEach(f=>{f.i18n=i,f.minDate=s,f.maxDate=r,f.isDateDisabled=h,f.focusedDate=a,f.selectedDate=n,f.showWeekNumbers=l,f.ignoreTaps=d,u?f.setAttribute("theme",u):f.removeAttribute("theme")})}__updateYears(e,i,s){e&&e.length&&e.forEach(r=>{r.selectedDate=i,s?r.setAttribute("theme",s):r.removeAttribute("theme")})}_selectDate(e){return this._dateAllowed(e)?(this.selectedDate=e,this.dispatchEvent(new CustomEvent("date-selected",{detail:{date:e},bubbles:!0,composed:!0})),!0):!1}_desktopModeChanged(e){this.toggleAttribute("desktop",e)}_focusedDateChanged(e){this.revealDate(e)}revealDate(e,i=!0){if(!e)return;const s=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(s+d,i);return}const r=this._monthScroller.position>s,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<s;r?this._scrollToPosition(s,i):l&&this._scrollToPosition(s-a+1,i)}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let s=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(s+=1);return s/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e)}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position)}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps()}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps()}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0},300),this._repositionMonthScroller()}_onMonthScrollTouchStart(){this._repositionYearScroller()}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=Me.debounce(this._debouncer,gt.after(300),()=>{this._ignoreTaps=!1})}_formatDisplayed(e,i,s){return e&&i&&typeof i.formatDate=="function"?i.formatDate(Ii(e)):s}_onTodayTap(){const e=this._getTodayMidnight();Math.abs(this._monthScroller.position-this._differenceInMonths(e,this._originDate))<.001?(this._selectDate(e),this._close()):this._scrollToCurrentMonth()}_scrollToCurrentMonth(){this.focusedDate&&(this.focusedDate=new Date),this.scrollToDate(new Date,!0)}_onYearTap(e){if(!this._ignoreTaps&&!this._notTapping){const s=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+s*12,!0)}}_scrollToPosition(e,i){if(this._targetPosition!==void 0){this._targetPosition=e;return}if(!i){this._monthScroller.position=e,this._monthScroller.forceUpdate(),this._targetPosition=void 0,this._repositionYearScroller(),this.__tryFocusDate();return}this._targetPosition=e;let s;this._revealPromise=new Promise(d=>{s=d});const r=(d,u,h,f)=>(d/=f/2,d<1?h/2*d*d+u:(d-=1,-h/2*(d*(d-2)-1)+u));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const u=d-n;if(u<this.scrollDuration){const h=r(u,a,this._targetPosition-a,this.scrollDuration);this._monthScroller.position=h,window.requestAnimationFrame(l)}else this.dispatchEvent(new CustomEvent("scroll-animation-finished",{bubbles:!0,composed:!0,detail:{position:this._targetPosition,oldPosition:a}})),this._monthScroller.position=this._targetPosition,this._monthScroller.forceUpdate(),this._targetPosition=void 0,s(),this._revealPromise=void 0;setTimeout(this._repositionYearScroller.bind(this),1)};window.requestAnimationFrame(l)}_limit(e,i){return Math.min(i.max,Math.max(i.min,e))}_handleTrack(e){if(Math.abs(e.detail.dx)<10||Math.abs(e.detail.ddy)>10)return;Math.abs(e.detail.ddx)>this._yearScrollerWidth/3&&this._toggleAnimateClass(!0);const i=this._translateX+e.detail.ddx;this._translateX=this._limit(i,{min:0,max:this._yearScrollerWidth})}_track(e){if(!this._desktopMode)switch(e.detail.state){case"start":this._toggleAnimateClass(!1);break;case"track":this._handleTrack(e);break;case"end":this._toggleAnimateClass(!0),this._translateX>=this._yearScrollerWidth/2?this._closeYearScroller():this._openYearScroller();break}}_toggleAnimateClass(e){e?this.classList.add("animate"):this.classList.remove("animate")}_toggleYearScroller(){this._isYearScrollerVisible()?this._closeYearScroller():this._openYearScroller()}_openYearScroller(){this._translateX=0,this.setAttribute("years-visible","")}_closeYearScroller(){this.removeAttribute("years-visible"),this._translateX=this._yearScrollerWidth}_isYearScrollerVisible(){return this._translateX<this._yearScrollerWidth/2}_translateXChanged(e){this._desktopMode||(this._monthScroller.style.transform=`translateX(${e-this._yearScrollerWidth}px)`,this._yearScroller.style.transform=`translateX(${e}px)`)}_yearAfterXMonths(e){return Js(e).getFullYear()}_differenceInMonths(e,i){return(e.getFullYear()-i.getFullYear())*12-i.getMonth()+e.getMonth()}_clear(){this._selectDate("")}_close(){this.dispatchEvent(new CustomEvent("close",{bubbles:!0,composed:!0}))}_cancel(){this.focusedDate=this.selectedDate,this._close()}_preventDefault(e){e.preventDefault()}__toggleDate(e){ne(e,this.selectedDate)?(this._clear(),this.focusedDate=e):this._selectDate(e)}__onMonthCalendarKeyDown(e){let i=!1;switch(e.key){case"ArrowDown":this._moveFocusByDays(7),i=!0;break;case"ArrowUp":this._moveFocusByDays(-7),i=!0;break;case"ArrowRight":this._moveFocusByDays(this.__isRTL?-1:1),i=!0;break;case"ArrowLeft":this._moveFocusByDays(this.__isRTL?1:-1),i=!0;break;case"Enter":this._selectDate(this.focusedDate)&&(this._close(),i=!0);break;case" ":this.__toggleDate(this.focusedDate),i=!0;break;case"Home":this._moveFocusInsideMonth(this.focusedDate,"minDate"),i=!0;break;case"End":this._moveFocusInsideMonth(this.focusedDate,"maxDate"),i=!0;break;case"PageDown":this._moveFocusByMonths(e.shiftKey?12:1),i=!0;break;case"PageUp":this._moveFocusByMonths(e.shiftKey?-12:-1),i=!0;break;case"Tab":this._onTabKeyDown(e,"calendar");break}i&&(e.preventDefault(),e.stopPropagation())}_onTabKeyDown(e,i){switch(e.stopPropagation(),i){case"calendar":e.shiftKey&&(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusCancel():this.__focusInput());break;case"today":e.shiftKey&&(e.preventDefault(),this.focusDateElement());break;case"cancel":e.shiftKey||(e.preventDefault(),this.hasAttribute("fullscreen")?this.focusDateElement():this.__focusInput());break}}__onTodayButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"today")}__onCancelButtonKeyDown(e){e.key==="Tab"&&this._onTabKeyDown(e,"cancel")}__focusInput(){this.dispatchEvent(new CustomEvent("focus-input",{bubbles:!0,composed:!0}))}__tryFocusDate(){if(this.__pendingDateFocus){const i=this.focusableDateElement;i&&ne(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus())}}focusDate(e,i){return st(this,null,function*(){const s=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=s,i||(this._focusedMonthDate=s.getDate()),yield this.focusDateElement(!1)})}focusDateElement(e=!0){return st(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Is(this,()=>{Ni(),i()})})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate()})}_focusClosestDate(e){this.focusDate(Gs(e,[this.minDate,this.maxDate]))}_focusAllowedDate(e,i,s){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,s):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate)}_getDateDiff(e,i){const s=new Date(0,0);return s.setFullYear(this.focusedDate.getFullYear()),s.setMonth(this.focusedDate.getMonth()+e),i&&s.setDate(this.focusedDate.getDate()+i),s}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1)}_moveFocusByMonths(e){const i=this._getDateDiff(e),s=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==s&&i.setDate(0),this._focusAllowedDate(i,e,!0)}_moveFocusInsideMonth(e,i){const s=new Date(0,0);s.setFullYear(e.getFullYear()),i==="minDate"?(s.setMonth(e.getMonth()),s.setDate(1)):(s.setMonth(e.getMonth()+1),s.setDate(0)),this._dateAllowed(s)?this.focusDate(s):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e)}_dateAllowed(e,i=this.minDate,s=this.maxDate,r=this.isDateDisabled){return Ie(e,i,s,r)}_isTodayAllowed(e,i,s){return this._dateAllowed(this._getTodayMidnight(),e,i,s)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
3241
3241
  * @license
3242
3242
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3243
3243
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3244
- */const xd=S`
3244
+ */const xd=D`
3245
3245
  :host {
3246
3246
  display: flex;
3247
3247
  flex-direction: column;
@@ -3305,7 +3305,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3305
3305
  * @license
3306
3306
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3307
3307
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3308
- */L("vaadin-date-picker-overlay-content",xd,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Cd extends wd(Fe(we(xt(ue)))){static get template(){return Ce`
3308
+ */$("vaadin-date-picker-overlay-content",xd,{moduleId:"vaadin-date-picker-overlay-content-styles"});class Cd extends wd(Fe(we(xt(he)))){static get template(){return Ce`
3309
3309
  <div part="overlay-header" on-touchend="_preventDefault" aria-hidden="true">
3310
3310
  <div part="label">[[_formatDisplayed(selectedDate, i18n, label)]]</div>
3311
3311
  <div part="clear-button" hidden$="[[!selectedDate]]"></div>
@@ -3329,15 +3329,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3329
3329
  * @license
3330
3330
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3331
3331
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3332
- */const or=H(o=>class extends Mi(Ks(o)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,i){super._disabledChanged(e,i),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
3332
+ */const or=B(o=>class extends Mi(Ks(o)){static get properties(){return{autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this)}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","")})}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus()}blur(){this.focusElement&&this.focusElement.blur()}click(){this.focusElement&&!this.disabled&&this.focusElement.click()}_focusElementChanged(e,i){e?(e.disabled=this.disabled,this._addFocusListeners(e),this.__forwardTabIndex(this.tabindex)):i&&this._removeFocusListeners(i)}_addFocusListeners(e){e.addEventListener("blur",this._boundOnBlur),e.addEventListener("focus",this._boundOnFocus)}_removeFocusListeners(e){e.removeEventListener("blur",this._boundOnBlur),e.removeEventListener("focus",this._boundOnFocus)}_onFocus(e){e.stopPropagation(),this.dispatchEvent(new Event("focus"))}_onBlur(e){e.stopPropagation(),this.dispatchEvent(new Event("blur"))}_shouldSetFocus(e){return e.target===this.focusElement}_shouldRemoveFocus(e){return e.target===this.focusElement}_disabledChanged(e,i){super._disabledChanged(e,i),this.focusElement&&(this.focusElement.disabled=e),e&&this.blur()}_tabindexChanged(e){this.__forwardTabIndex(e)}__forwardTabIndex(e){e!==void 0&&this.focusElement&&(this.focusElement.tabIndex=e,e!==-1&&(this.tabindex=void 0)),this.disabled&&e&&(e!==-1&&(this._lastTabIndex=e),this.tabindex=void 0)}});/**
3333
3333
  * @license
3334
3334
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3335
3335
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3336
- */const Ut=new WeakMap;function Ad(o){return Ut.has(o)||Ut.set(o,new Set),Ut.get(o)}function Td(o,t){const e=document.createElement("style");e.textContent=o,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Ed=H(o=>class extends o{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),i=Ad(e);this.slotStyles.forEach(s=>{i.has(s)||(Td(s,e),i.add(s))})}});/**
3336
+ */const Ut=new WeakMap;function Ad(o){return Ut.has(o)||Ut.set(o,new Set),Ut.get(o)}function Td(o,t){const e=document.createElement("style");e.textContent=o,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild)}const Ed=B(o=>class extends o{get slotStyles(){return{}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles()}__applySlotStyles(){const e=this.getRootNode(),i=Ad(e);this.slotStyles.forEach(s=>{i.has(s)||(Td(s,e),i.add(s))})}});/**
3337
3337
  * @license
3338
3338
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3339
3339
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3340
- */const sr=H(o=>class extends o{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,i){e?this._addInputListeners(e):i&&this._removeInputListeners(i)}_hasInputValueChanged(e,i){(e||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const i=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,i){this._toggleHasValue(this._hasValue),!(e===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const i=e.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
3340
+ */const sr=B(o=>class extends o{static get properties(){return{inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this)}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return"value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e)}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue=""}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange)}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange)}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"")}_inputElementChanged(e,i){e?this._addInputListeners(e):i&&this._removeInputListeners(i)}_hasInputValueChanged(e,i){(e||i)&&this.dispatchEvent(new CustomEvent("has-input-value-changed"))}__onInput(e){this._setHasInputValue(e),this._onInput(e)}_onInput(e){const i=e.composedPath()[0];this.__userInput=e.isTrusted,this.value=i.value,this.__userInput=!1}_onChange(e){}_toggleHasValue(e){this.toggleAttribute("has-value",e)}_valueChanged(e,i){this._toggleHasValue(this._hasValue),!(e===""&&i===void 0)&&(this.__userInput||this._forwardInputValue(e))}_setHasInputValue(e){const i=e.composedPath()[0];this._hasInputValue=i.value.length>0}});/**
3341
3341
  * @license
3342
3342
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3343
3343
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3353,7 +3353,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3353
3353
  * @license
3354
3354
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3355
3355
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3356
- */const Z=document.createElement("div");Z.style.position="fixed";Z.style.clip="rect(0px, 0px, 0px, 0px)";Z.setAttribute("aria-live","polite");document.body.appendChild(Z);let dt;function Od(o,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(Z.removeAttribute("aria-live"),Z.removeAttribute("role"),dt=Me.debounce(dt,vl,()=>{Z.setAttribute("role","alert")})):(dt&&dt.cancel(),Z.removeAttribute("role"),Z.setAttribute("aria-live",e)),Z.textContent="",setTimeout(()=>{Z.textContent=o},i)}/**
3356
+ */const ee=document.createElement("div");ee.style.position="fixed";ee.style.clip="rect(0px, 0px, 0px, 0px)";ee.setAttribute("aria-live","polite");document.body.appendChild(ee);let dt;function Od(o,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(ee.removeAttribute("aria-live"),ee.removeAttribute("role"),dt=Me.debounce(dt,vl,()=>{ee.setAttribute("role","alert")})):(dt&&dt.cancel(),ee.removeAttribute("role"),ee.setAttribute("aria-live",e)),ee.textContent="",setTimeout(()=>{ee.textContent=o},i)}/**
3357
3357
  * @license
3358
3358
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
3359
3359
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3373,11 +3373,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3373
3373
  * @license
3374
3374
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3375
3375
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3376
- */const Fd=H(o=>class extends Fe(o){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Nd(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
3376
+ */const Fd=B(o=>class extends Fe(o){static get properties(){return{label:{type:String,observer:"_labelChanged"}}}constructor(){super(),this._labelController=new Nd(this),this._labelController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-label",e.detail.hasContent)})}get _labelId(){const e=this._labelNode;return e&&e.id}get _labelNode(){return this._labelController.node}ready(){super.ready(),this.addController(this._labelController)}_labelChanged(e){this._labelController.setLabel(e)}});/**
3377
3377
  * @license
3378
3378
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3379
3379
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3380
- */const ar=H(o=>class extends o{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
3380
+ */const ar=B(o=>class extends o{static get properties(){return{invalid:{type:Boolean,reflectToAttribute:!0,notify:!0,value:!1},required:{type:Boolean,reflectToAttribute:!0}}}validate(){const e=this.checkValidity();return this._setInvalid(!e),this.dispatchEvent(new CustomEvent("validated",{detail:{valid:e}})),e}checkValidity(){return!this.required||!!this.value}_setInvalid(e){this._shouldSetInvalid(e)&&(this.invalid=e)}_shouldSetInvalid(e){return!0}});/**
3381
3381
  * @license
3382
3382
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3383
3383
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3385,11 +3385,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3385
3385
  * @license
3386
3386
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3387
3387
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3388
- */const Ld=H(o=>class extends o{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((i,s)=>{this._delegateAttribute(i,e[s])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,s)=>{this._delegateProperty(i,e[s])})}_delegateAttribute(e,i){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e))}_delegateProperty(e,i){this.stateTarget&&(this.stateTarget[e]=i)}});/**
3388
+ */const Ld=B(o=>class extends o{static get properties(){return{stateTarget:{type:Object,observer:"_stateTargetChanged"}}}static get delegateAttrs(){return[]}static get delegateProps(){return[]}ready(){super.ready(),this._createDelegateAttrsObserver(),this._createDelegatePropsObserver()}_stateTargetChanged(e){e&&(this._ensureAttrsDelegated(),this._ensurePropsDelegated())}_createDelegateAttrsObserver(){this._createMethodObserver(`_delegateAttrsChanged(${this.constructor.delegateAttrs.join(", ")})`)}_createDelegatePropsObserver(){this._createMethodObserver(`_delegatePropsChanged(${this.constructor.delegateProps.join(", ")})`)}_ensureAttrsDelegated(){this.constructor.delegateAttrs.forEach(e=>{this._delegateAttribute(e,this[e])})}_ensurePropsDelegated(){this.constructor.delegateProps.forEach(e=>{this._delegateProperty(e,this[e])})}_delegateAttrsChanged(...e){this.constructor.delegateAttrs.forEach((i,s)=>{this._delegateAttribute(i,e[s])})}_delegatePropsChanged(...e){this.constructor.delegateProps.forEach((i,s)=>{this._delegateProperty(i,e[s])})}_delegateAttribute(e,i){this.stateTarget&&(e==="invalid"&&this._delegateAttribute("aria-invalid",i?"true":!1),typeof i=="boolean"?this.stateTarget.toggleAttribute(e,i):i?this.stateTarget.setAttribute(e,i):this.stateTarget.removeAttribute(e))}_delegateProperty(e,i){this.stateTarget&&(this.stateTarget[e]=i)}});/**
3389
3389
  * @license
3390
3390
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3391
3391
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3392
- */const lr=H(o=>class extends Ld(ar(sr(o))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...i){if(!e)return;const s=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=s}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3392
+ */const lr=B(o=>class extends Ld(ar(sr(o))){static get constraints(){return["required"]}static get delegateAttrs(){return[...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver()}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`)}_constraintsChanged(e,...i){if(!e)return;const s=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!s;(this._hasValue||this.invalid)&&s?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=s}_onChange(e){e.stopPropagation(),this.validate(),this.dispatchEvent(new CustomEvent("change",{detail:{sourceEvent:e},bubbles:e.bubbles,cancelable:e.cancelable}))}__isValidConstraint(e){return!!e||e===0}});/**
3393
3393
  * @license
3394
3394
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
3395
3395
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -3410,7 +3410,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3410
3410
  * @license
3411
3411
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3412
3412
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3413
- */const Bd=S`
3413
+ */const Bd=D`
3414
3414
  [part='clear-button'] {
3415
3415
  display: none;
3416
3416
  cursor: default;
@@ -3427,7 +3427,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3427
3427
  * @license
3428
3428
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3429
3429
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3430
- */const Vd=S`
3430
+ */const Vd=D`
3431
3431
  :host {
3432
3432
  display: inline-flex;
3433
3433
  outline: none;
@@ -3465,7 +3465,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3465
3465
  * @license
3466
3466
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
3467
3467
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3468
- */const Ud=S`
3468
+ */const Ud=D`
3469
3469
  [class$='container'] {
3470
3470
  display: flex;
3471
3471
  flex-direction: column;
@@ -3493,7 +3493,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3493
3493
  * @license
3494
3494
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3495
3495
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3496
- */const Kd=S`
3496
+ */const Kd=D`
3497
3497
  :host([opened]) {
3498
3498
  pointer-events: auto;
3499
3499
  }
@@ -3510,7 +3510,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3510
3510
  * @license
3511
3511
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
3512
3512
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
3513
- */L("vaadin-date-picker",[jd,Kd],{moduleId:"vaadin-date-picker-styles"});class Gd extends qd($d(we(Hs(ue)))){static get is(){return"vaadin-date-picker"}static get template(){return Ce`
3513
+ */$("vaadin-date-picker",[jd,Kd],{moduleId:"vaadin-date-picker-styles"});class Gd extends qd($d(we(Hs(he)))){static get is(){return"vaadin-date-picker"}static get template(){return Ce`
3514
3514
  <div class="vaadin-date-picker-container">
3515
3515
  <div part="label">
3516
3516
  <slot name="label"></slot>
@@ -3552,4 +3552,4 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
3552
3552
  ></vaadin-date-picker-overlay>
3553
3553
 
3554
3554
  <slot name="tooltip"></slot>
3555
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Rd(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Hd(this.inputElement,this._labelController)),this._tooltipController=new Vs(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ie(Gd);if(typeof window!="undefined"){let o=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGeneralConfirmationModal-Dw-0WM0v.cjs")).then(t=>t.PlayerAccountGeneralConfirmationModal_ce).then(({default:t})=>{!customElements.get("player-account-general-confirmation-modal")&&customElements.define("player-account-general-confirmation-modal",t.element)})}var dr={exports:{}};(function(o,t){(function(e,i){o.exports=i()})(c.commonjsGlobal,function(){var e=1e3,i=6e4,s=36e5,r="millisecond",n="second",a="minute",l="hour",d="day",u="week",h="month",p="quarter",f="year",v="date",T="Invalid Date",E=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,A=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,D={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(b){var g=["th","st","nd","rd"],y=b%100;return"["+b+(g[(y-20)%10]||g[y]||g[0])+"]"}},I=function(b,g,y){var m=String(b);return!m||m.length>=g?b:""+Array(g+1-m.length).join(y)+b},N={s:I,z:function(b){var g=-b.utcOffset(),y=Math.abs(g),m=Math.floor(y/60),_=y%60;return(g<=0?"+":"-")+I(m,2,"0")+":"+I(_,2,"0")},m:function b(g,y){if(g.date()<y.date())return-b(y,g);var m=12*(y.year()-g.year())+(y.month()-g.month()),_=g.clone().add(m,h),x=y-_<0,C=g.clone().add(m+(x?-1:1),h);return+(-(m+(y-_)/(x?_-C:C-_))||0)},a:function(b){return b<0?Math.ceil(b)||0:Math.floor(b)},p:function(b){return{M:h,y:f,w:u,d,D:v,h:l,m:a,s:n,ms:r,Q:p}[b]||String(b||"").toLowerCase().replace(/s$/,"")},u:function(b){return b===void 0}},M="en",U={};U[M]=D;var Q="$isDayjsObject",q=function(b){return b instanceof j||!(!b||!b[Q])},X=function b(g,y,m){var _;if(!g)return M;if(typeof g=="string"){var x=g.toLowerCase();U[x]&&(_=x),y&&(U[x]=y,_=x);var C=g.split("-");if(!_&&C.length>1)return b(C[0])}else{var O=g.name;U[O]=g,_=O}return!m&&_&&(M=_),_||!m&&M},F=function(b,g){if(q(b))return b.clone();var y=typeof g=="object"?g:{};return y.date=b,y.args=arguments,new j(y)},k=N;k.l=X,k.i=q,k.w=function(b,g){return F(b,{locale:g.$L,utc:g.$u,x:g.$x,$offset:g.$offset})};var j=function(){function b(y){this.$L=X(y.locale,null,!0),this.parse(y),this.$x=this.$x||y.x||{},this[Q]=!0}var g=b.prototype;return g.parse=function(y){this.$d=function(m){var _=m.date,x=m.utc;if(_===null)return new Date(NaN);if(k.u(_))return new Date;if(_ instanceof Date)return new Date(_);if(typeof _=="string"&&!/Z$/i.test(_)){var C=_.match(E);if(C){var O=C[2]-1||0,z=(C[7]||"0").substring(0,3);return x?new Date(Date.UTC(C[1],O,C[3]||1,C[4]||0,C[5]||0,C[6]||0,z)):new Date(C[1],O,C[3]||1,C[4]||0,C[5]||0,C[6]||0,z)}}return new Date(_)}(y),this.init()},g.init=function(){var y=this.$d;this.$y=y.getFullYear(),this.$M=y.getMonth(),this.$D=y.getDate(),this.$W=y.getDay(),this.$H=y.getHours(),this.$m=y.getMinutes(),this.$s=y.getSeconds(),this.$ms=y.getMilliseconds()},g.$utils=function(){return k},g.isValid=function(){return this.$d.toString()!==T},g.isSame=function(y,m){var _=F(y);return this.startOf(m)<=_&&_<=this.endOf(m)},g.isAfter=function(y,m){return F(y)<this.startOf(m)},g.isBefore=function(y,m){return this.endOf(m)<F(y)},g.$g=function(y,m,_){return k.u(y)?this[m]:this.set(_,y)},g.unix=function(){return Math.floor(this.valueOf()/1e3)},g.valueOf=function(){return this.$d.getTime()},g.startOf=function(y,m){var _=this,x=!!k.u(m)||m,C=k.p(y),O=function(pe,Y){var ae=k.w(_.$u?Date.UTC(_.$y,Y,pe):new Date(_.$y,Y,pe),_);return x?ae:ae.endOf(d)},z=function(pe,Y){return k.w(_.toDate()[pe].apply(_.toDate("s"),(x?[0,0,0,0]:[23,59,59,999]).slice(Y)),_)},$=this.$W,w=this.$M,R=this.$D,K="set"+(this.$u?"UTC":"");switch(C){case f:return x?O(1,0):O(31,11);case h:return x?O(1,w):O(0,w+1);case u:var ee=this.$locale().weekStart||0,oe=($<ee?$+7:$)-ee;return O(x?R-oe:R+(6-oe),w);case d:case v:return z(K+"Hours",0);case l:return z(K+"Minutes",1);case a:return z(K+"Seconds",2);case n:return z(K+"Milliseconds",3);default:return this.clone()}},g.endOf=function(y){return this.startOf(y,!1)},g.$set=function(y,m){var _,x=k.p(y),C="set"+(this.$u?"UTC":""),O=(_={},_[d]=C+"Date",_[v]=C+"Date",_[h]=C+"Month",_[f]=C+"FullYear",_[l]=C+"Hours",_[a]=C+"Minutes",_[n]=C+"Seconds",_[r]=C+"Milliseconds",_)[x],z=x===d?this.$D+(m-this.$W):m;if(x===h||x===f){var $=this.clone().set(v,1);$.$d[O](z),$.init(),this.$d=$.set(v,Math.min(this.$D,$.daysInMonth())).$d}else O&&this.$d[O](z);return this.init(),this},g.set=function(y,m){return this.clone().$set(y,m)},g.get=function(y){return this[k.p(y)]()},g.add=function(y,m){var _,x=this;y=Number(y);var C=k.p(m),O=function(w){var R=F(x);return k.w(R.date(R.date()+Math.round(w*y)),x)};if(C===h)return this.set(h,this.$M+y);if(C===f)return this.set(f,this.$y+y);if(C===d)return O(1);if(C===u)return O(7);var z=(_={},_[a]=i,_[l]=s,_[n]=e,_)[C]||1,$=this.$d.getTime()+y*z;return k.w($,this)},g.subtract=function(y,m){return this.add(-1*y,m)},g.format=function(y){var m=this,_=this.$locale();if(!this.isValid())return _.invalidDate||T;var x=y||"YYYY-MM-DDTHH:mm:ssZ",C=k.z(this),O=this.$H,z=this.$m,$=this.$M,w=_.weekdays,R=_.months,K=_.meridiem,ee=function(Y,ae,ze,ot){return Y&&(Y[ae]||Y(m,x))||ze[ae].slice(0,ot)},oe=function(Y){return k.s(O%12||12,Y,"0")},pe=K||function(Y,ae,ze){var ot=Y<12?"AM":"PM";return ze?ot.toLowerCase():ot};return x.replace(A,function(Y,ae){return ae||function(ze){switch(ze){case"YY":return String(m.$y).slice(-2);case"YYYY":return k.s(m.$y,4,"0");case"M":return $+1;case"MM":return k.s($+1,2,"0");case"MMM":return ee(_.monthsShort,$,R,3);case"MMMM":return ee(R,$);case"D":return m.$D;case"DD":return k.s(m.$D,2,"0");case"d":return String(m.$W);case"dd":return ee(_.weekdaysMin,m.$W,w,2);case"ddd":return ee(_.weekdaysShort,m.$W,w,3);case"dddd":return w[m.$W];case"H":return String(O);case"HH":return k.s(O,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return pe(O,z,!0);case"A":return pe(O,z,!1);case"m":return String(z);case"mm":return k.s(z,2,"0");case"s":return String(m.$s);case"ss":return k.s(m.$s,2,"0");case"SSS":return k.s(m.$ms,3,"0");case"Z":return C}return null}(Y)||C.replace(":","")})},g.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},g.diff=function(y,m,_){var x,C=this,O=k.p(m),z=F(y),$=(z.utcOffset()-this.utcOffset())*i,w=this-z,R=function(){return k.m(C,z)};switch(O){case f:x=R()/12;break;case h:x=R();break;case p:x=R()/3;break;case u:x=(w-$)/6048e5;break;case d:x=(w-$)/864e5;break;case l:x=w/s;break;case a:x=w/i;break;case n:x=w/e;break;default:x=w}return _?x:k.a(x)},g.daysInMonth=function(){return this.endOf(h).$D},g.$locale=function(){return U[this.$L]},g.locale=function(y,m){if(!y)return this.$L;var _=this.clone(),x=X(y,m,!0);return x&&(_.$L=x),_},g.clone=function(){return k.w(this.$d,this)},g.toDate=function(){return new Date(this.valueOf())},g.toJSON=function(){return this.isValid()?this.toISOString():null},g.toISOString=function(){return this.$d.toISOString()},g.toString=function(){return this.$d.toUTCString()},b}(),J=j.prototype;return F.prototype=J,[["$ms",r],["$s",n],["$m",a],["$H",l],["$W",d],["$M",h],["$y",f],["$D",v]].forEach(function(b){J[b[1]]=function(g){return this.$g(g,b[0],b[1])}}),F.extend=function(b,g){return b.$i||(b(g,j,F),b.$i=!0),F},F.locale=X,F.isDayjs=q,F.unix=function(b){return F(1e3*b)},F.en=U[M],F.Ls=U,F.p={},F})})(dr);var Jd=dr.exports;const ko=c.getDefaultExportFromCjs(Jd);function So(o,t){c.addMessages(o,t)}function Xd(o){c.$locale.set(o)}const Po={en:{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",CoolOffFor24Hours:"24 hours",CoolOffFor72Hours:"72 hours",CoolOffFor7Days:"7 days",CoolOffFor30Days:"30 days",CoolOffFor6Weeks:"6 weeks",CoolOffFor2Months:"2 months",CoolOffFor3Months:"3 months",CoolOffUntilSelectedDate:"Until",dateInstructions:"In order to manually input date use the following format:",duration:"Duration:",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Are you sure you want to cool-off for {period}?",confirmationModalTextUntilTimeout:"Are you sure you want to cool-off until {date}?"},"en-us":{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",CoolOffFor24Hours:"24 hours",CoolOffFor72Hours:"72 hours",CoolOffFor7Days:"7 days",CoolOffFor30Days:"30 days",CoolOffFor6Weeks:"6 weeks",CoolOffFor2Months:"2 months",CoolOffFor3Months:"3 months",CoolOffUntilSelectedDate:"Until",dateInstructions:"In order to manually input date use the following format:",duration:"Duration:",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Are you sure you want to cool-off for {period}?",confirmationModalTextUntilTimeout:"Are you sure you want to cool-off until {date}?"},"zh-hk":{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} 為您提供一種從遊戲中休息的簡單方法。 您可以請求自動封鎖您的帳戶 24 小時。 在臨時限制期間,您將無法訪問您的帳戶。",timeoutTextSecondary:"請注意,“超時設施”在任何情況下都不能取代“自我排除”。 如果您認為自己有賭博成癮問題,請進入“負責任博彩”下的鏈接並使用“自我排除服務”或盡快與我們聯繫。",save:"節省",CoolOffFor24Hours:"24小時",CoolOffFor72Hours:"72小時",CoolOffFor7Days:"7天",CoolOffFor30Days:"30天",CoolOffFor6Weeks:"6週",CoolOffFor2Months:"2個月",CoolOffFor3Months:"3個月",CoolOffUntilSelectedDate:"直到",dateInstructions:"如需手動輸入日期,請使用以下格式:",duration:"持續時間:",confirmationModalTitle:"確認",confirmationModalTextPeriodTimeout:"您確定要冷靜 {period} 嗎?",confirmationModalTextUntilTimeout:"您確定要冷靜直到 {date} 嗎?"},fr:{titleTimeout:"Délai d'attente",timeoutTextFirst:"{operatorname} vous offre un moyen facile de faire une pause dans les jeux.vous pouvez demander le blocage automatique de votre compte pendant 24 heures . Pendant le blocage temporaire ,vous ne pourrez pas accéder à votre compte.",timeoutTextSecondary:`Veuillez noter que l'"installation du temps mort" ne remplace en aucun cas "l'auto exclusion". Si vous pensez avoir un problème de dépendance au jeu,veuillez cliquer sur le lien "jeux responsable" et utiliser le "service d'auto exclusion" ou nous contacter dès que possible.`,save:"Savez",CoolOffFor24Hours:"24 heures",CoolOffFor72Hours:"72 heures",CoolOffFor7Days:"7 jours",CoolOffFor30Days:"30 jours",CoolOffFor6Weeks:"6 semaines",CoolOffFor2Months:"2 mois",CoolOffFor3Months:"3 mois",CoolOffUntilSelectedDate:"Jusqu'à",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",duration:"Durée :",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Êtes-vous sûr de vouloir vous refroidir pendant {period} ?",confirmationModalTextUntilTimeout:"Êtes-vous sûr de vouloir vous refroidir jusqu'au {date} ?"},ro:{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} îți asigură o cale ușoară de a lua o pauză de la jocuri. Poți solicita o blocare automată a contului tău pentru 24 de ore. În timpul restricției temporare, nu vei putea accesa contul.",timeoutTextSecondary:"Te rugăm să reții că „Facilitatea de time-out” nu înlocuiește în niciun caz „Auto-excluderea”. Dacă crezi că te confrunți cu o problemă de dependență de jocuri de noroc, te rugăm să accesezi secțiunea de „Joc responsabil” și să utilizezi „Serviciul de auto-excludere” sau să ne contactezi cât mai curând posibil.",save:"Salvează",CoolOffFor24Hours:"24 ore",CoolOffFor72Hours:"72 ore",CoolOffFor7Days:"7 zile",CoolOffFor30Days:"30 zile",CoolOffFor6Weeks:"6 săptămâni",CoolOffFor2Months:"2 luni",CoolOffFor3Months:"3 luni",CoolOffUntilSelectedDate:"Până la",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",duration:"Durată:",confirmationModalTitle:"Confirmare",confirmationModalTextPeriodTimeout:"Ești sigur că vrei să te răcorești pentru {period}?",confirmationModalTextUntilTimeout:"Ești sigur că vrei să te răcorești până la {date}?"},es:{titleTimeout:"Descanso",timeoutTextFirst:"{operatorname} le brinda una manera fácil de tomarse un descanso de los juegos. Puedes solicitar un bloqueo automático de tu cuenta durante 24 horas. Durante la contención temporal, no será posible ingresar a su cuenta.",timeoutTextSecondary:'Tenga en cuenta que la función de tiempo de espera no sustituye en ningún caso la autoexclusión. Si cree que tiene un problema de adicción al juego, por favor ingrese al enlace de "Juego Responsable" y use el "Servicio de autoexclusión" o ponte en contacto con nosotros a la brevedad posible.',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 días",CoolOffFor30Days:"30 días",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Hasta",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",duration:"Duración:",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodTimeout:"¿Estás seguro de que quieres enfriarte por {period}?",confirmationModalTextUntilTimeout:"¿Estás seguro de que quieres enfriarte hasta {date}?"},pt:{titleTimeout:"Tempo esgotado",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de fazer uma pausa nos jogos. Você pode solicitar o bloqueio automático de sua conta por 24 horas. Durante a restrição temporária, você não poderá acessar sua conta.",timeoutTextSecondary:'Observe que a “Facilidade de tempo limite” não substitui em nenhum caso a “Autoexclusão”. Se você acha que está enfrentando um problema de vício em jogos de azar, entre no link em "Jogo Responsável" e use o "Serviço de autoexclusão" ou entre em contato conosco o mais rápido possível.',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 dias",CoolOffFor30Days:"30 dias",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Até",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",duration:"Duração:",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodTimeout:"Tem a certeza de que deseja se refrescar por {period}?",confirmationModalTextUntilTimeout:"Tem a certeza de que deseja se refrescar até {date}?"},hr:{titleTimeout:"Samoisključenje",timeoutTextFirst:'Svjesni smo da kockanje može dovesti do ovisnosti i u našem nastojanju da spriječimo te probleme Samoisključenje stupa na snagu od trenutka kada je postavljeno za razdoblje koje odaberete. Odaberite vremenski okvir ispod, a zatim kliknite "Potvrdi".',timeoutTextSecondary:"Tijekom samoisključivanja nećete moći pristupiti svom računu. U slučaju trajnog samoisključenja E-mail: {supportemail}",save:"Spremi",CoolOffFor24Hours:"24 sata",CoolOffFor72Hours:"72 sata",CoolOffFor7Days:"7 dana",CoolOffFor30Days:"30 dana",CoolOffFor6Weeks:"6 tjedana",CoolOffFor2Months:"2 mjeseca",CoolOffFor3Months:"3 mjeseca",CoolOffUntilSelectedDate:"Do",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",duration:"Trajanje:",confirmationModalTitle:"Potvrda",confirmationModalTextPeriodTimeout:"Jeste li sigurni da se želite rashladiti na {period}?",confirmationModalTextUntilTimeout:"Jeste li sigurni da se želite rashladiti do {date}?"},"pt-br":{titleTimeout:"Tempo fora",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de pausar o jogo. Você pode solicitar o bloqueio automático da conta por 24 horas. Durante a restrição temporária,no tendrá acceso a su cuenta",timeoutTextSecondary:"Observe que o tempo limite não substitui a autoexclusão. Se você acha que tem um problema de dependência de jogo, por favor acesse o link em “Jogo Responsável” e utilize o “Serviço de Autoexclusão” ou entre em contate-nos inmediatamente",save:"Manter",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 dias",CoolOffFor30Days:"30 dias",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Até",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",duration:"Duração:",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodTimeout:"Tem certeza de que deseja se refrescar por {period}?",confirmationModalTextUntilTimeout:"Tem certeza de que deseja se refrescar até {date}?"},"es-mx":{titleTimeout:"Tiempo Fuera",timeoutTextFirst:"{operatorname} le ofrece una forma fácil de tomar pausa del juego. Puede solicitar bloqueo automático de la cuenta por 24 hrs. Durante la restriccion temporal,no tendrá acceso a su cuenta",timeoutTextSecondary:'Por favor tenga en cuenta que el tiemo-fuera no reemplaza la auto-exclusión. Si usted cree que tiene un problema de adicción al juego," por favor acceda a la liga bajo ""Juego Responsable"" y utilice el ""servicio de Auto-exclusión"" o contáctenos en cuanto antes. "',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 días",CoolOffFor30Days:"30 días",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Hasta",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",duration:"Duración:",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodTimeout:"¿Está seguro de que desea refrescarse por {period}?",confirmationModalTextUntilTimeout:"¿Está seguro de que desea refrescarse hasta {date}?"},tr:{titleTimeout:"Zaman aşımı",timeoutTextFirst:"{operatorname} size oyunlara ara vermeniz için kolay bir yol sağlar. Hesabınızın 24 saat süreyle otomatik olarak engellenmesini talep edebilirsiniz. Geçici kısıtlama sırasında Hesabınıza erişemeyeceksiniz.",timeoutTextSecondary:"Lütfen 'Mola olanağının' hiçbir durumda 'Kendini ihraç etmenin' yerine geçmediğini unutmayın. Kumar bağımlılığı sorunu yaşadığınızı düşünüyorsanız lütfen Sorumlu Oyun altındaki bağlantıya girin ve 'Kendini men etme hizmetini' kullanın veya en kısa sürede bizimle iletişime geçin.",save:"Kaydetmek",CoolOffFor24Hours:"24 saat",CoolOffFor72Hours:"72 saat",CoolOffFor7Days:"7 gün",CoolOffFor30Days:"30 gün",CoolOffFor6Weeks:"6 hafta",CoolOffFor2Months:"2 ay",CoolOffFor3Months:"3 ay",CoolOffUntilSelectedDate:"Kadar",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",duration:"Süre:",confirmationModalTitle:"Onay",confirmationModalTextPeriodTimeout:"{period} için kendinizi soğutmak istediğinizden emin misiniz?",confirmationModalTextUntilTimeout:"{date} tarihine kadar kendinizi soğutmak istediğinizden emin misiniz?"}};function Zd(o){c.append_styles(o,"svelte-u6jylo",`.TimeoutWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.TimeoutWrapper.TimeoutWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TimeoutTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.TimeoutTitleMobile{font-size:16px}.TimeoutTitleNone{display:none}.TimeoutDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.TimeoutDescription.TimeoutDescriptionMobile{font-size:12px;line-height:18px}.TimeoutSelectWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;position:relative}.TimeoutSelectWrapper .TimeoutSelect{width:50%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background:var(--emw--color-white, #FFFFFF);border-radius:5px;box-sizing:border-box;padding:5px 10px;font-size:16px;line-height:18px;margin-bottom:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.TimeoutSelectWrapper .TimeoutSelect:focus,.TimeoutSelectWrapper .TimeoutSelect :focus-within,.TimeoutSelectWrapper .TimeoutSelect :focus-visible,.TimeoutSelectWrapper .TimeoutSelect :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TimeoutSelectWrapper .TimeoutSelect.TimeoutSelectMobile{width:100%;height:36px;font-size:12px}.TimeoutDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.TimeoutDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.TimeoutDateWrapper .TimeoutDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.TimeoutActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.TimeoutActionButtons .TimeoutSave{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.TimeoutActionButtons.TimeoutActionButtonsMobile{width:100%;grid-template-columns:1fr}.TimeoutActionButtons.TimeoutActionButtonsMobile .TimeoutSave{height:40px;font-size:12px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}`)}function Oo(o,t,e){const i=o.slice();return i[38]=t[e].value,i}function Qd(o){let t,e,i,s=o[16]("titleTimeout")+"",r,n,a,l,d=o[16]("timeoutTextFirst",{values:{operatorname:o[0]}})+"",u,h,p,f=o[16]("timeoutTextSecondary",{values:{supportemail:o[5]}})+"",v,T,E,A,D,I,N,M,U=o[16]("save")+"",Q,q,X,F,k,j=o[17]&&tc(o),J=c.ensure_array_like(o[8]),b=[];for(let m=0;m<J.length;m+=1)b[m]=Mo(Oo(o,J,m));let g=o[10]&&Io(o),y=o[18]&&ic(o);return{c(){t=c.element("form"),j&&j.c(),e=c.space(),i=c.element("h2"),r=c.text(s),n=c.space(),a=c.element("div"),l=c.element("p"),u=c.text(d),h=c.space(),p=c.element("p"),v=c.text(f),T=c.space(),E=c.element("div"),A=c.element("select");for(let m=0;m<b.length;m+=1)b[m].c();D=c.space(),g&&g.c(),I=c.space(),N=c.element("div"),M=c.element("button"),Q=c.text(U),q=c.space(),y&&y.c(),X=c.empty(),c.attr(i,"class","TimeoutTitle "+(o[17]?"TimeoutTitleNone":"")),c.attr(a,"class","TimeoutDescription "+(o[17]?"TimeoutDescriptionMobile":"")),c.attr(A,"class","TimeoutSelect "+(o[17]?"TimeoutSelectMobile":"")),o[9]===void 0&&c.add_render_callback(()=>o[26].call(A)),c.attr(E,"class","TimeoutSelectWrapper"),c.attr(M,"class","TimeoutSave"),c.attr(N,"class","TimeoutActionButtons "+(o[17]?"TimeoutActionButtonsMobile":"")),c.attr(t,"class","TimeoutWrapper "+(o[17]?"TimeoutWrapperMobile":""))},m(m,_){c.insert(m,t,_),j&&j.m(t,null),c.append(t,e),c.append(t,i),c.append(i,r),c.append(t,n),c.append(t,a),c.append(a,l),c.append(l,u),c.append(a,h),c.append(a,p),c.append(p,v),c.append(t,T),c.append(t,E),c.append(E,A);for(let x=0;x<b.length;x+=1)b[x]&&b[x].m(A,null);c.select_option(A,o[9],!0),c.append(t,D),g&&g.m(t,null),c.append(t,I),c.append(t,N),c.append(N,M),c.append(M,Q),c.insert(m,q,_),y&&y.m(m,_),c.insert(m,X,_),F||(k=[c.listen(A,"change",o[26]),c.listen(A,"change",o[21]),c.listen(M,"click",o[28])],F=!0)},p(m,_){if(m[17]&&j.p(m,_),_[0]&65536&&s!==(s=m[16]("titleTimeout")+"")&&c.set_data(r,s),_[0]&65537&&d!==(d=m[16]("timeoutTextFirst",{values:{operatorname:m[0]}})+"")&&c.set_data(u,d),_[0]&65568&&f!==(f=m[16]("timeoutTextSecondary",{values:{supportemail:m[5]}})+"")&&c.set_data(v,f),_[0]&65792){J=c.ensure_array_like(m[8]);let x;for(x=0;x<J.length;x+=1){const C=Oo(m,J,x);b[x]?b[x].p(C,_):(b[x]=Mo(C),b[x].c(),b[x].m(A,null))}for(;x<b.length;x+=1)b[x].d(1);b.length=J.length}_[0]&768&&c.select_option(A,m[9]),m[10]?g?g.p(m,_):(g=Io(m),g.c(),g.m(t,I)):g&&(g.d(1),g=null),_[0]&65536&&U!==(U=m[16]("save")+"")&&c.set_data(Q,U),m[18]&&y.p(m,_)},d(m){m&&(c.detach(t),c.detach(q),c.detach(X)),j&&j.d(),c.destroy_each(b,m),g&&g.d(),y&&y.d(m),F=!1,c.run_all(k)}}}function ec(o){let t,e,i,s,r,n,a,l,d,u,h,p,f,v,T,E;function A(N,M){return N[17]?sc:oc}let I=A(o)(o);return{c(){t=c.element("div"),I.c(),e=c.space(),i=c.element("div"),s=c.element("ui-skeleton"),r=c.space(),n=c.element("div"),a=c.space(),l=c.element("ui-skeleton"),d=c.space(),u=c.element("div"),h=c.space(),p=c.element("div"),f=c.element("ui-skeleton"),v=c.space(),T=c.element("div"),E=c.element("ui-skeleton"),c.set_custom_element_data(s,"structure","text"),c.set_custom_element_data(s,"height",o[17]?"15px":"20px"),c.set_custom_element_data(s,"rows","3"),c.set_custom_element_data(s,"width","100%"),c.set_style(n,"height",o[17]?"10px":"30px"),c.set_custom_element_data(l,"structure","text"),c.set_custom_element_data(l,"height",o[17]?"15px":"20px"),c.set_custom_element_data(l,"rows","3"),c.set_custom_element_data(l,"width","100%"),c.set_style(u,"height",o[17]?"10px":"30px"),c.attr(i,"class","TimeoutDescription"),c.set_custom_element_data(f,"structure","rectangle"),c.set_custom_element_data(f,"width",o[17]?"100%":"50%"),c.set_custom_element_data(f,"height",o[17]?"30px":"44px"),c.set_custom_element_data(f,"margin-bottom","16px"),c.attr(p,"class","TimeoutSelectWrapper"),c.set_custom_element_data(E,"structure","rectangle"),c.set_custom_element_data(E,"width","100%"),c.set_custom_element_data(E,"height",o[17]?"35px":"50px"),c.attr(T,"class","TimeoutActionButtons "+(o[17]?"TimeoutActionButtonsMobile":"")),c.attr(t,"class","TimeoutWrapper "+(o[17]?"TimeoutWrapperMobile":""))},m(N,M){c.insert(N,t,M),I.m(t,null),c.append(t,e),c.append(t,i),c.append(i,s),c.append(i,r),c.append(i,n),c.append(i,a),c.append(i,l),c.append(i,d),c.append(i,u),c.append(t,h),c.append(t,p),c.append(p,f),c.append(t,v),c.append(t,T),c.append(T,E)},p:c.noop,d(N){N&&c.detach(t),I.d()}}}function tc(o){let t,e,i,s,r,n,a,l,d,u,h=o[16]("titleTimeout")+"",p,f,v;return{c(){t=c.element("div"),e=c.svg_element("svg"),i=c.svg_element("defs"),s=c.svg_element("style"),r=c.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),n=c.svg_element("g"),a=c.svg_element("g"),l=c.svg_element("path"),d=c.space(),u=c.element("h2"),p=c.text(h),c.attr(l,"class","aaa"),c.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),c.attr(l,"transform","translate(15 15) rotate(180)"),c.attr(a,"transform","translate(20 158)"),c.attr(n,"transform","translate(-20 -158)"),c.attr(e,"xmlns","http://www.w3.org/2000/svg"),c.attr(e,"width","15"),c.attr(e,"height","15"),c.attr(e,"viewBox","0 0 15 15"),c.attr(u,"class","TimeoutTitleMobile"),c.attr(u,"part","TimeoutTitleMobile"),c.attr(t,"class","MenuReturnButton"),c.attr(t,"part","MenuReturnButton")},m(T,E){c.insert(T,t,E),c.append(t,e),c.append(e,i),c.append(i,s),c.append(s,r),c.append(e,n),c.append(n,a),c.append(a,l),c.append(t,d),c.append(t,u),c.append(u,p),f||(v=c.listen(t,"click",o[25]),f=!0)},p(T,E){E[0]&65536&&h!==(h=T[16]("titleTimeout")+"")&&c.set_data(p,h)},d(T){T&&c.detach(t),f=!1,v()}}}function Mo(o){let t,e=o[16](o[38])+"",i,s;return{c(){t=c.element("option"),i=c.text(e),t.__value=s=o[38],c.set_input_value(t,t.__value)},m(r,n){c.insert(r,t,n),c.append(t,i)},p(r,n){n[0]&65792&&e!==(e=r[16](r[38])+"")&&c.set_data(i,e),n[0]&256&&s!==(s=r[38])&&(t.__value=s,c.set_input_value(t,t.__value))},d(r){r&&c.detach(t)}}}function Io(o){let t,e,i=o[16]("duration")+"",s,r,n,a=o[16]("dateInstructions")+"",l,d,u,h,p;return{c(){t=c.element("div"),e=c.element("label"),s=c.text(i),r=c.space(),n=c.element("span"),l=c.text(a),d=c.space(),u=c.element("strong"),u.innerHTML="MM/DD/YYYY<strong></strong>",h=c.space(),p=c.element("vaadin-date-picker"),c.attr(e,"for","TimeoutDate"),c.attr(n,"class","TimeoutDateInstructions"),c.set_custom_element_data(p,"min",o[12]),c.set_custom_element_data(p,"max",o[13]),c.set_custom_element_data(p,"value",o[12]),c.attr(t,"class","TimeoutDateWrapper "+(o[17]?"TimeoutDateWrapperMobile":""))},m(f,v){c.insert(f,t,v),c.append(t,e),c.append(e,s),c.append(t,r),c.append(t,n),c.append(n,l),c.append(n,d),c.append(n,u),c.append(t,h),c.append(t,p),o[27](p)},p(f,v){v[0]&65536&&i!==(i=f[16]("duration")+"")&&c.set_data(s,i),v[0]&65536&&a!==(a=f[16]("dateInstructions")+"")&&c.set_data(l,a),v[0]&4096&&c.set_custom_element_data(p,"min",f[12]),v[0]&8192&&c.set_custom_element_data(p,"max",f[13]),v[0]&4096&&c.set_custom_element_data(p,"value",f[12])},d(f){f&&c.detach(t),o[27](null)}}}function ic(o){let t,e,i,s;return{c(){t=c.element("player-account-modal"),e=c.element("player-account-general-confirmation-modal"),c.set_custom_element_data(e,"modalTitle",i=o[16]("confirmationModalTitle")),c.set_custom_element_data(e,"modalText",o[14]),c.set_custom_element_data(e,"hascancelbutton",!1),c.set_custom_element_data(e,"modalconfirmevent",s={type:"SetPlayerAccountTimeout",timeoutSelected:o[9],timeoutExpiryDate:o[11]}),c.set_custom_element_data(e,"mbsource",o[4]),c.set_custom_element_data(e,"lang",o[1]),c.set_custom_element_data(t,"clientstyling",o[2]),c.set_custom_element_data(t,"clientstylingurl",o[3]),c.set_custom_element_data(t,"mbsource",o[4]),c.set_custom_element_data(t,"showmodaleventname","ShowTimeoutConfirmationModal")},m(r,n){c.insert(r,t,n),c.append(t,e)},p(r,n){n[0]&65536&&i!==(i=r[16]("confirmationModalTitle"))&&c.set_custom_element_data(e,"modalTitle",i),n[0]&16384&&c.set_custom_element_data(e,"modalText",r[14]),n[0]&2816&&s!==(s={type:"SetPlayerAccountTimeout",timeoutSelected:r[9],timeoutExpiryDate:r[11]})&&c.set_custom_element_data(e,"modalconfirmevent",s),n[0]&16&&c.set_custom_element_data(e,"mbsource",r[4]),n[0]&2&&c.set_custom_element_data(e,"lang",r[1]),n[0]&4&&c.set_custom_element_data(t,"clientstyling",r[2]),n[0]&8&&c.set_custom_element_data(t,"clientstylingurl",r[3]),n[0]&16&&c.set_custom_element_data(t,"mbsource",r[4])},d(r){r&&c.detach(t)}}}function oc(o){let t;return{c(){t=c.element("ui-skeleton"),c.set_custom_element_data(t,"structure","title"),c.set_custom_element_data(t,"width","100px"),c.set_custom_element_data(t,"margin-top","20px"),c.set_custom_element_data(t,"margin-bottom","20px")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function sc(o){let t;return{c(){t=c.element("div"),t.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',c.attr(t,"class","MenuReturnButton")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function rc(o){let t;function e(r,n){return r[15]?ec:Qd}let i=e(o),s=i(o);return{c(){t=c.element("div"),s.c()},m(r,n){c.insert(r,t,n),s.m(t,null),o[29](t)},p(r,n){i===(i=e(r))&&s?s.p(r,n):(s.d(1),s=i(r),s&&(s.c(),s.m(t,null)))},i:c.noop,o:c.noop,d(r){r&&c.detach(t),s.d(),o[29](null)}}}function nc(o,t,e){let i;c.component_subscribe(o,c.$format,w=>e(16,i=w));let{operator:s="Everymatrix"}=t,{lang:r="en"}=t,{clientstyling:n=""}=t,{clientstylingurl:a=""}=t,{mbsource:l}=t,{translationurl:d=""}=t,{supportemail:u=""}=t,{endpoint:h=""}=t,{hasconfirmationmodal:p="false"}=t,f,v,T=window.navigator.userAgent,E=c.getDevice(T)!=="PC",A=[{value:"CoolOffFor24Hours",dateSelector:!1},{value:"CoolOffFor7Days",dateSelector:!1},{value:"CoolOffFor30Days",dateSelector:!1},{value:"CoolOffFor3Months",dateSelector:!1}],D=A[0].value,I=!1,N="",M,U,Q="",q=p==="true",X=!0;const F=()=>{fetch(d).then(w=>w.json()).then(w=>{Object.keys(w).forEach(R=>{So(R,w[R])})}).catch(w=>{console.log(w)})};Object.keys(Po).forEach(w=>{So(w,Po[w])});const k=()=>{const w=new URL("/v1/player/coolOffSettings",h),R={method:"GET"};fetch(w.href,R).then(K=>{if(!K.ok)throw new Error("There was an error while fetching the configuration");return K.json()}).then(K=>{const{periods:ee}=K;ee&&e(8,A=ee.map(oe=>({value:oe.key,text:oe.text,dateSelector:oe.dateSelector})))}).catch(K=>{console.log(K)}).finally(()=>{e(15,X=!1),e(9,D=A[0].value)})},j=()=>{if(!q){e(14,Q="");return}e(14,Q=I?i("confirmationModalTextUntilTimeout",{values:{date:N}}):i("confirmationModalTextPeriodTimeout",{values:{period:i(D)}}))},J=w=>{w.preventDefault(),q?window.postMessage({type:"ShowTimeoutConfirmationModal"},window.location.href):window.postMessage({type:"SetPlayerAccountTimeout",timeoutSelected:D,timeoutExpiryDate:N},window.location.href)},b=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:E},window.location.href)},g=()=>{Xd(r),k()},y=()=>{const w=A.find(R=>R.value===D);e(10,I=!1),w.dateSelector&&(e(10,I=!0),e(12,M=ko().format("YYYY-MM-DD")),e(13,U=ko().add(6,"months").format("YYYY-MM-DD")),e(11,N=M)),q&&j()},m=w=>{e(11,N=w.target.value)},_=()=>{v.addEventListener("change",m,!1)};c.onMount(()=>()=>{v.removeEventListener("change",m)});const x=()=>b();function C(){D=c.select_value(this),e(9,D),e(8,A)}function O(w){c.binding_callbacks[w?"unshift":"push"](()=>{v=w,e(7,v)})}const z=w=>J(w);function $(w){c.binding_callbacks[w?"unshift":"push"](()=>{f=w,e(6,f)})}return o.$$set=w=>{"operator"in w&&e(0,s=w.operator),"lang"in w&&e(1,r=w.lang),"clientstyling"in w&&e(2,n=w.clientstyling),"clientstylingurl"in w&&e(3,a=w.clientstylingurl),"mbsource"in w&&e(4,l=w.mbsource),"translationurl"in w&&e(22,d=w.translationurl),"supportemail"in w&&e(5,u=w.supportemail),"endpoint"in w&&e(23,h=w.endpoint),"hasconfirmationmodal"in w&&e(24,p=w.hasconfirmationmodal)},o.$$.update=()=>{o.$$.dirty[0]&128&&v&&_(),o.$$.dirty[0]&2&&r&&g(),o.$$.dirty[0]&68&&n&&f&&c.setClientStyling(f,n),o.$$.dirty[0]&72&&a&&f&&c.setClientStylingURL(f,a),o.$$.dirty[0]&80&&l&&f&&c.setStreamStyling(f,`${l}.Style`),o.$$.dirty[0]&4194304&&d&&F()},q&&j(),[s,r,n,a,l,u,f,v,A,D,I,N,M,U,Q,X,i,E,q,J,b,y,d,h,p,x,C,O,z,$]}class cr extends c.SvelteComponent{constructor(t){super(),c.init(this,t,nc,rc,c.safe_not_equal,{operator:0,lang:1,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:22,supportemail:5,endpoint:23,hasconfirmationmodal:24},Zd,[-1,-1])}get operator(){return this.$$.ctx[0]}set operator(t){this.$$set({operator:t}),c.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),c.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),c.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),c.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),c.flush()}get translationurl(){return this.$$.ctx[22]}set translationurl(t){this.$$set({translationurl:t}),c.flush()}get supportemail(){return this.$$.ctx[5]}set supportemail(t){this.$$set({supportemail:t}),c.flush()}get endpoint(){return this.$$.ctx[23]}set endpoint(t){this.$$set({endpoint:t}),c.flush()}get hasconfirmationmodal(){return this.$$.ctx[24]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),c.flush()}}c.create_custom_element(cr,{operator:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},supportemail:{},endpoint:{},hasconfirmationmodal:{}},[],[],!0);exports.default=cr;
3555
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Rd(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e},{uniqueIdPrefix:"search-input"})),this.addController(new Hd(this.inputElement,this._labelController)),this._tooltipController=new Vs(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(e=>!e.opened),this.shadowRoot.querySelector('[part="toggle-button"]').addEventListener("mousedown",e=>e.preventDefault()),this.$.overlay.addEventListener("vaadin-overlay-close",this._onVaadinOverlayClose.bind(this))}_onVaadinOverlayClose(t){t.detail.sourceEvent&&t.detail.sourceEvent.composedPath().includes(this)&&t.preventDefault()}_toggle(t){t.stopPropagation(),this.$.overlay.opened?this.close():this.open()}_openedChanged(t){super._openedChanged(t),this.$.overlay.positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this.$.overlay.noVerticalOverlap=!0}}ie(Gd);if(typeof window!="undefined"){let o=function(t){return function(...e){try{return t.apply(this,e)}catch(i){if(i instanceof DOMException&&i.message.includes("has already been used with this registry")||i.message.includes("Cannot define multiple custom elements with the same tag name"))return!1;throw i}}};customElements.define=o(customElements.define),Promise.resolve().then(()=>require("./PlayerAccountGeneralConfirmationModal-Dw-0WM0v.cjs")).then(t=>t.PlayerAccountGeneralConfirmationModal_ce).then(({default:t})=>{!customElements.get("player-account-general-confirmation-modal")&&customElements.define("player-account-general-confirmation-modal",t.element)})}var dr={exports:{}};(function(o,t){(function(e,i){o.exports=i()})(c.commonjsGlobal,function(){var e=1e3,i=6e4,s=36e5,r="millisecond",n="second",a="minute",l="hour",d="day",u="week",h="month",f="quarter",_="year",g="date",x="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,O=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,E={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(w){var p=["th","st","nd","rd"],m=w%100;return"["+w+(p[(m-20)%10]||p[m]||p[0])+"]"}},P=function(w,p,m){var y=String(w);return!y||y.length>=p?w:""+Array(p+1-y.length).join(m)+w},F={s:P,z:function(w){var p=-w.utcOffset(),m=Math.abs(p),y=Math.floor(m/60),v=m%60;return(p<=0?"+":"-")+P(y,2,"0")+":"+P(v,2,"0")},m:function w(p,m){if(p.date()<m.date())return-w(m,p);var y=12*(m.year()-p.year())+(m.month()-p.month()),v=p.clone().add(y,h),C=m-v<0,A=p.clone().add(y+(C?-1:1),h);return+(-(y+(m-v)/(C?v-A:A-v))||0)},a:function(w){return w<0?Math.ceil(w)||0:Math.floor(w)},p:function(w){return{M:h,y:_,w:u,d,D:g,h:l,m:a,s:n,ms:r,Q:f}[w]||String(w||"").toLowerCase().replace(/s$/,"")},u:function(w){return w===void 0}},N="en",Y={};Y[N]=E;var oe="$isDayjsObject",Z=function(w){return w instanceof L||!(!w||!w[oe])},G=function w(p,m,y){var v;if(!p)return N;if(typeof p=="string"){var C=p.toLowerCase();Y[C]&&(v=C),m&&(Y[C]=m,v=C);var A=p.split("-");if(!v&&A.length>1)return w(A[0])}else{var I=p.name;Y[I]=p,v=I}return!y&&v&&(N=v),v||!y&&N},M=function(w,p){if(Z(w))return w.clone();var m=typeof p=="object"?p:{};return m.date=w,m.args=arguments,new L(m)},T=F;T.l=G,T.i=Z,T.w=function(w,p){return M(w,{locale:p.$L,utc:p.$u,x:p.$x,$offset:p.$offset})};var L=function(){function w(m){this.$L=G(m.locale,null,!0),this.parse(m),this.$x=this.$x||m.x||{},this[oe]=!0}var p=w.prototype;return p.parse=function(m){this.$d=function(y){var v=y.date,C=y.utc;if(v===null)return new Date(NaN);if(T.u(v))return new Date;if(v instanceof Date)return new Date(v);if(typeof v=="string"&&!/Z$/i.test(v)){var A=v.match(k);if(A){var I=A[2]-1||0,z=(A[7]||"0").substring(0,3);return C?new Date(Date.UTC(A[1],I,A[3]||1,A[4]||0,A[5]||0,A[6]||0,z)):new Date(A[1],I,A[3]||1,A[4]||0,A[5]||0,A[6]||0,z)}}return new Date(v)}(m),this.init()},p.init=function(){var m=this.$d;this.$y=m.getFullYear(),this.$M=m.getMonth(),this.$D=m.getDate(),this.$W=m.getDay(),this.$H=m.getHours(),this.$m=m.getMinutes(),this.$s=m.getSeconds(),this.$ms=m.getMilliseconds()},p.$utils=function(){return T},p.isValid=function(){return this.$d.toString()!==x},p.isSame=function(m,y){var v=M(m);return this.startOf(y)<=v&&v<=this.endOf(y)},p.isAfter=function(m,y){return M(m)<this.startOf(y)},p.isBefore=function(m,y){return this.endOf(y)<M(m)},p.$g=function(m,y,v){return T.u(m)?this[y]:this.set(v,m)},p.unix=function(){return Math.floor(this.valueOf()/1e3)},p.valueOf=function(){return this.$d.getTime()},p.startOf=function(m,y){var v=this,C=!!T.u(y)||y,A=T.p(m),I=function(Q,q){var le=T.w(v.$u?Date.UTC(v.$y,q,Q):new Date(v.$y,q,Q),v);return C?le:le.endOf(d)},z=function(Q,q){return T.w(v.toDate()[Q].apply(v.toDate("s"),(C?[0,0,0,0]:[23,59,59,999]).slice(q)),v)},H=this.$W,V=this.$M,b=this.$D,J="set"+(this.$u?"UTC":"");switch(A){case _:return C?I(1,0):I(31,11);case h:return C?I(1,V):I(0,V+1);case u:var W=this.$locale().weekStart||0,ae=(H<W?H+7:H)-W;return I(C?b-ae:b+(6-ae),V);case d:case g:return z(J+"Hours",0);case l:return z(J+"Minutes",1);case a:return z(J+"Seconds",2);case n:return z(J+"Milliseconds",3);default:return this.clone()}},p.endOf=function(m){return this.startOf(m,!1)},p.$set=function(m,y){var v,C=T.p(m),A="set"+(this.$u?"UTC":""),I=(v={},v[d]=A+"Date",v[g]=A+"Date",v[h]=A+"Month",v[_]=A+"FullYear",v[l]=A+"Hours",v[a]=A+"Minutes",v[n]=A+"Seconds",v[r]=A+"Milliseconds",v)[C],z=C===d?this.$D+(y-this.$W):y;if(C===h||C===_){var H=this.clone().set(g,1);H.$d[I](z),H.init(),this.$d=H.set(g,Math.min(this.$D,H.daysInMonth())).$d}else I&&this.$d[I](z);return this.init(),this},p.set=function(m,y){return this.clone().$set(m,y)},p.get=function(m){return this[T.p(m)]()},p.add=function(m,y){var v,C=this;m=Number(m);var A=T.p(y),I=function(V){var b=M(C);return T.w(b.date(b.date()+Math.round(V*m)),C)};if(A===h)return this.set(h,this.$M+m);if(A===_)return this.set(_,this.$y+m);if(A===d)return I(1);if(A===u)return I(7);var z=(v={},v[a]=i,v[l]=s,v[n]=e,v)[A]||1,H=this.$d.getTime()+m*z;return T.w(H,this)},p.subtract=function(m,y){return this.add(-1*m,y)},p.format=function(m){var y=this,v=this.$locale();if(!this.isValid())return v.invalidDate||x;var C=m||"YYYY-MM-DDTHH:mm:ssZ",A=T.z(this),I=this.$H,z=this.$m,H=this.$M,V=v.weekdays,b=v.months,J=v.meridiem,W=function(q,le,ze,ot){return q&&(q[le]||q(y,C))||ze[le].slice(0,ot)},ae=function(q){return T.s(I%12||12,q,"0")},Q=J||function(q,le,ze){var ot=q<12?"AM":"PM";return ze?ot.toLowerCase():ot};return C.replace(O,function(q,le){return le||function(ze){switch(ze){case"YY":return String(y.$y).slice(-2);case"YYYY":return T.s(y.$y,4,"0");case"M":return H+1;case"MM":return T.s(H+1,2,"0");case"MMM":return W(v.monthsShort,H,b,3);case"MMMM":return W(b,H);case"D":return y.$D;case"DD":return T.s(y.$D,2,"0");case"d":return String(y.$W);case"dd":return W(v.weekdaysMin,y.$W,V,2);case"ddd":return W(v.weekdaysShort,y.$W,V,3);case"dddd":return V[y.$W];case"H":return String(I);case"HH":return T.s(I,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return Q(I,z,!0);case"A":return Q(I,z,!1);case"m":return String(z);case"mm":return T.s(z,2,"0");case"s":return String(y.$s);case"ss":return T.s(y.$s,2,"0");case"SSS":return T.s(y.$ms,3,"0");case"Z":return A}return null}(q)||A.replace(":","")})},p.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},p.diff=function(m,y,v){var C,A=this,I=T.p(y),z=M(m),H=(z.utcOffset()-this.utcOffset())*i,V=this-z,b=function(){return T.m(A,z)};switch(I){case _:C=b()/12;break;case h:C=b();break;case f:C=b()/3;break;case u:C=(V-H)/6048e5;break;case d:C=(V-H)/864e5;break;case l:C=V/s;break;case a:C=V/i;break;case n:C=V/e;break;default:C=V}return v?C:T.a(C)},p.daysInMonth=function(){return this.endOf(h).$D},p.$locale=function(){return Y[this.$L]},p.locale=function(m,y){if(!m)return this.$L;var v=this.clone(),C=G(m,y,!0);return C&&(v.$L=C),v},p.clone=function(){return T.w(this.$d,this)},p.toDate=function(){return new Date(this.valueOf())},p.toJSON=function(){return this.isValid()?this.toISOString():null},p.toISOString=function(){return this.$d.toISOString()},p.toString=function(){return this.$d.toUTCString()},w}(),R=L.prototype;return M.prototype=R,[["$ms",r],["$s",n],["$m",a],["$H",l],["$W",d],["$M",h],["$y",_],["$D",g]].forEach(function(w){R[w[1]]=function(p){return this.$g(p,w[0],w[1])}}),M.extend=function(w,p){return w.$i||(w(p,L,M),w.$i=!0),M},M.locale=G,M.isDayjs=Z,M.unix=function(w){return M(1e3*w)},M.en=Y[N],M.Ls=Y,M.p={},M})})(dr);var Jd=dr.exports;const ko=c.getDefaultExportFromCjs(Jd);function So(o,t){c.addMessages(o,t)}function Xd(o){c.$locale.set(o)}const Po={en:{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",CoolOffFor24Hours:"24 hours",CoolOffFor72Hours:"72 hours",CoolOffFor7Days:"7 days",CoolOffFor30Days:"30 days",CoolOffFor6Weeks:"6 weeks",CoolOffFor2Months:"2 months",CoolOffFor3Months:"3 months",CoolOffUntilSelectedDate:"Until",dateInstructions:"In order to manually input date use the following format:",duration:"Duration:",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Are you sure you want to cool-off for {period}?",confirmationModalTextUntilTimeout:"Are you sure you want to cool-off until {date}?"},"en-us":{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} provides you an easy way to take a break from the games. You can request automatic blocking of your account for 24 hours. During the temporary restraint, you will not be able to access your Account.",timeoutTextSecondary:'Please note that the “Time-out facility” does not in any case replace “Self-exclusion”. If you think you are experiencing a gambling addiction problem, please enter the link under "Responsible Gaming" and use the "Self-exclusion service" or contact us as soon as possible.',save:"Save",CoolOffFor24Hours:"24 hours",CoolOffFor72Hours:"72 hours",CoolOffFor7Days:"7 days",CoolOffFor30Days:"30 days",CoolOffFor6Weeks:"6 weeks",CoolOffFor2Months:"2 months",CoolOffFor3Months:"3 months",CoolOffUntilSelectedDate:"Until",dateInstructions:"In order to manually input date use the following format:",duration:"Duration:",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Are you sure you want to cool-off for {period}?",confirmationModalTextUntilTimeout:"Are you sure you want to cool-off until {date}?"},"zh-hk":{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} 為您提供一種從遊戲中休息的簡單方法。 您可以請求自動封鎖您的帳戶 24 小時。 在臨時限制期間,您將無法訪問您的帳戶。",timeoutTextSecondary:"請注意,“超時設施”在任何情況下都不能取代“自我排除”。 如果您認為自己有賭博成癮問題,請進入“負責任博彩”下的鏈接並使用“自我排除服務”或盡快與我們聯繫。",save:"節省",CoolOffFor24Hours:"24小時",CoolOffFor72Hours:"72小時",CoolOffFor7Days:"7天",CoolOffFor30Days:"30天",CoolOffFor6Weeks:"6週",CoolOffFor2Months:"2個月",CoolOffFor3Months:"3個月",CoolOffUntilSelectedDate:"直到",dateInstructions:"如需手動輸入日期,請使用以下格式:",duration:"持續時間:",confirmationModalTitle:"確認",confirmationModalTextPeriodTimeout:"您確定要冷靜 {period} 嗎?",confirmationModalTextUntilTimeout:"您確定要冷靜直到 {date} 嗎?"},fr:{titleTimeout:"Délai d'attente",timeoutTextFirst:"{operatorname} vous offre un moyen facile de faire une pause dans les jeux.vous pouvez demander le blocage automatique de votre compte pendant 24 heures . Pendant le blocage temporaire ,vous ne pourrez pas accéder à votre compte.",timeoutTextSecondary:`Veuillez noter que l'"installation du temps mort" ne remplace en aucun cas "l'auto exclusion". Si vous pensez avoir un problème de dépendance au jeu,veuillez cliquer sur le lien "jeux responsable" et utiliser le "service d'auto exclusion" ou nous contacter dès que possible.`,save:"Savez",CoolOffFor24Hours:"24 heures",CoolOffFor72Hours:"72 heures",CoolOffFor7Days:"7 jours",CoolOffFor30Days:"30 jours",CoolOffFor6Weeks:"6 semaines",CoolOffFor2Months:"2 mois",CoolOffFor3Months:"3 mois",CoolOffUntilSelectedDate:"Jusqu'à",dateInstructions:"Pour saisir une date manuellement, utilisez le format suivant :",duration:"Durée :",confirmationModalTitle:"Confirmation",confirmationModalTextPeriodTimeout:"Êtes-vous sûr de vouloir vous refroidir pendant {period} ?",confirmationModalTextUntilTimeout:"Êtes-vous sûr de vouloir vous refroidir jusqu'au {date} ?"},ro:{titleTimeout:"Timeout",timeoutTextFirst:"{operatorname} îți asigură o cale ușoară de a lua o pauză de la jocuri. Poți solicita o blocare automată a contului tău pentru 24 de ore. În timpul restricției temporare, nu vei putea accesa contul.",timeoutTextSecondary:"Te rugăm să reții că „Facilitatea de time-out” nu înlocuiește în niciun caz „Auto-excluderea”. Dacă crezi că te confrunți cu o problemă de dependență de jocuri de noroc, te rugăm să accesezi secțiunea de „Joc responsabil” și să utilizezi „Serviciul de auto-excludere” sau să ne contactezi cât mai curând posibil.",save:"Salvează",CoolOffFor24Hours:"24 ore",CoolOffFor72Hours:"72 ore",CoolOffFor7Days:"7 zile",CoolOffFor30Days:"30 zile",CoolOffFor6Weeks:"6 săptămâni",CoolOffFor2Months:"2 luni",CoolOffFor3Months:"3 luni",CoolOffUntilSelectedDate:"Până la",dateInstructions:"Pentru a introduce manual o dată, utilizați următorul format:",duration:"Durată:",confirmationModalTitle:"Confirmare",confirmationModalTextPeriodTimeout:"Ești sigur că vrei să te răcorești pentru {period}?",confirmationModalTextUntilTimeout:"Ești sigur că vrei să te răcorești până la {date}?"},es:{titleTimeout:"Descanso",timeoutTextFirst:"{operatorname} le brinda una manera fácil de tomarse un descanso de los juegos. Puedes solicitar un bloqueo automático de tu cuenta durante 24 horas. Durante la contención temporal, no será posible ingresar a su cuenta.",timeoutTextSecondary:'Tenga en cuenta que la función de tiempo de espera no sustituye en ningún caso la autoexclusión. Si cree que tiene un problema de adicción al juego, por favor ingrese al enlace de "Juego Responsable" y use el "Servicio de autoexclusión" o ponte en contacto con nosotros a la brevedad posible.',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 días",CoolOffFor30Days:"30 días",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Hasta",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",duration:"Duración:",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodTimeout:"¿Estás seguro de que quieres enfriarte por {period}?",confirmationModalTextUntilTimeout:"¿Estás seguro de que quieres enfriarte hasta {date}?"},pt:{titleTimeout:"Tempo esgotado",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de fazer uma pausa nos jogos. Você pode solicitar o bloqueio automático de sua conta por 24 horas. Durante a restrição temporária, você não poderá acessar sua conta.",timeoutTextSecondary:'Observe que a “Facilidade de tempo limite” não substitui em nenhum caso a “Autoexclusão”. Se você acha que está enfrentando um problema de vício em jogos de azar, entre no link em "Jogo Responsável" e use o "Serviço de autoexclusão" ou entre em contato conosco o mais rápido possível.',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 dias",CoolOffFor30Days:"30 dias",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Até",dateInstructions:"Para introduzir manualmente a data, utilize o seguinte formato:",duration:"Duração:",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodTimeout:"Tem a certeza de que deseja se refrescar por {period}?",confirmationModalTextUntilTimeout:"Tem a certeza de que deseja se refrescar até {date}?"},hr:{titleTimeout:"Samoisključenje",timeoutTextFirst:'Svjesni smo da kockanje može dovesti do ovisnosti i u našem nastojanju da spriječimo te probleme Samoisključenje stupa na snagu od trenutka kada je postavljeno za razdoblje koje odaberete. Odaberite vremenski okvir ispod, a zatim kliknite "Potvrdi".',timeoutTextSecondary:"Tijekom samoisključivanja nećete moći pristupiti svom računu. U slučaju trajnog samoisključenja E-mail: {supportemail}",save:"Spremi",CoolOffFor24Hours:"24 sata",CoolOffFor72Hours:"72 sata",CoolOffFor7Days:"7 dana",CoolOffFor30Days:"30 dana",CoolOffFor6Weeks:"6 tjedana",CoolOffFor2Months:"2 mjeseca",CoolOffFor3Months:"3 mjeseca",CoolOffUntilSelectedDate:"Do",dateInstructions:"Za ručni unos datuma koristite sljedeći format:",duration:"Trajanje:",confirmationModalTitle:"Potvrda",confirmationModalTextPeriodTimeout:"Jeste li sigurni da se želite rashladiti na {period}?",confirmationModalTextUntilTimeout:"Jeste li sigurni da se želite rashladiti do {date}?"},"pt-br":{titleTimeout:"Tempo fora",timeoutTextFirst:"{operatorname} oferece uma maneira fácil de pausar o jogo. Você pode solicitar o bloqueio automático da conta por 24 horas. Durante a restrição temporária,no tendrá acceso a su cuenta",timeoutTextSecondary:"Observe que o tempo limite não substitui a autoexclusão. Se você acha que tem um problema de dependência de jogo, por favor acesse o link em “Jogo Responsável” e utilize o “Serviço de Autoexclusão” ou entre em contate-nos inmediatamente",save:"Manter",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 dias",CoolOffFor30Days:"30 dias",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Até",dateInstructions:"Para inserir manualmente a data, use o seguinte formato:",duration:"Duração:",confirmationModalTitle:"Confirmação",confirmationModalTextPeriodTimeout:"Tem certeza de que deseja se refrescar por {period}?",confirmationModalTextUntilTimeout:"Tem certeza de que deseja se refrescar até {date}?"},"es-mx":{titleTimeout:"Tiempo Fuera",timeoutTextFirst:"{operatorname} le ofrece una forma fácil de tomar pausa del juego. Puede solicitar bloqueo automático de la cuenta por 24 hrs. Durante la restriccion temporal,no tendrá acceso a su cuenta",timeoutTextSecondary:'Por favor tenga en cuenta que el tiemo-fuera no reemplaza la auto-exclusión. Si usted cree que tiene un problema de adicción al juego," por favor acceda a la liga bajo ""Juego Responsable"" y utilice el ""servicio de Auto-exclusión"" o contáctenos en cuanto antes. "',save:"Guardar",CoolOffFor24Hours:"24 horas",CoolOffFor72Hours:"72 horas",CoolOffFor7Days:"7 días",CoolOffFor30Days:"30 días",CoolOffFor6Weeks:"6 semanas",CoolOffFor2Months:"2 meses",CoolOffFor3Months:"3 meses",CoolOffUntilSelectedDate:"Hasta",dateInstructions:"Para ingresar manualmente la fecha, utilice el siguiente formato:",duration:"Duración:",confirmationModalTitle:"Confirmación",confirmationModalTextPeriodTimeout:"¿Está seguro de que desea refrescarse por {period}?",confirmationModalTextUntilTimeout:"¿Está seguro de que desea refrescarse hasta {date}?"},tr:{titleTimeout:"Zaman aşımı",timeoutTextFirst:"{operatorname} size oyunlara ara vermeniz için kolay bir yol sağlar. Hesabınızın 24 saat süreyle otomatik olarak engellenmesini talep edebilirsiniz. Geçici kısıtlama sırasında Hesabınıza erişemeyeceksiniz.",timeoutTextSecondary:"Lütfen 'Mola olanağının' hiçbir durumda 'Kendini ihraç etmenin' yerine geçmediğini unutmayın. Kumar bağımlılığı sorunu yaşadığınızı düşünüyorsanız lütfen Sorumlu Oyun altındaki bağlantıya girin ve 'Kendini men etme hizmetini' kullanın veya en kısa sürede bizimle iletişime geçin.",save:"Kaydetmek",CoolOffFor24Hours:"24 saat",CoolOffFor72Hours:"72 saat",CoolOffFor7Days:"7 gün",CoolOffFor30Days:"30 gün",CoolOffFor6Weeks:"6 hafta",CoolOffFor2Months:"2 ay",CoolOffFor3Months:"3 ay",CoolOffUntilSelectedDate:"Kadar",dateInstructions:"Tarihi manuel olarak girmek için şu formatı kullanın:",duration:"Süre:",confirmationModalTitle:"Onay",confirmationModalTextPeriodTimeout:"{period} için kendinizi soğutmak istediğinizden emin misiniz?",confirmationModalTextUntilTimeout:"{date} tarihine kadar kendinizi soğutmak istediğinizden emin misiniz?"}};function Zd(o){c.append_styles(o,"svelte-u6jylo",`.TimeoutWrapper{color:var(--emw--pam-typography, var(--emw--color-contrast, #07072A));padding:50px;max-width:760px;animation-name:fadeIn;animation-iteration-count:1;animation-timing-function:ease-in;animation-duration:0.3s}.TimeoutWrapper.TimeoutWrapperMobile{padding:20px 15px;max-width:unset}.MenuReturnButton{color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));display:inline-flex;align-items:center;column-gap:20px}.MenuReturnButton svg{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TimeoutTitle{font-size:26px;color:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));font-weight:400}.TimeoutTitleMobile{font-size:16px}.TimeoutTitleNone{display:none}.TimeoutDescription{color:var(--emw--color-gray-300, #58586B);line-height:24px}.TimeoutDescription.TimeoutDescriptionMobile{font-size:12px;line-height:18px}.TimeoutSelectWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;position:relative}.TimeoutSelectWrapper .TimeoutSelect{width:50%;height:44px;border:1px solid var(--emw--color-gray-100, #E6E6E6);background:var(--emw--color-white, #FFFFFF);border-radius:5px;box-sizing:border-box;padding:5px 10px;font-size:16px;line-height:18px;margin-bottom:16px;-webkit-appearance:none;-moz-appearance:none;appearance:none;background:url("data:image/svg+xml,<svg height='10px' width='10px' viewBox='0 0 16 16' fill='%23000000' xmlns='http://www.w3.org/2000/svg'><path d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/></svg>") no-repeat var(--emw--color-white, #FFFFFF);background-position:calc(100% - 0.75rem) center}.TimeoutSelectWrapper .TimeoutSelect:focus,.TimeoutSelectWrapper .TimeoutSelect :focus-within,.TimeoutSelectWrapper .TimeoutSelect :focus-visible,.TimeoutSelectWrapper .TimeoutSelect :visited{border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));box-shadow:0 0 0 1pt var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E))}.TimeoutSelectWrapper .TimeoutSelect.TimeoutSelectMobile{width:100%;height:36px;font-size:12px}.TimeoutDateWrapper{color:var(--emw--color-gray-300, #58586B);display:flex;flex-direction:column;padding-bottom:16px;position:relative;width:50%}.TimeoutDateWrapper label{font-size:var(--emw--font-size-small, 14px);font-weight:300;padding-bottom:5px}.TimeoutDateWrapper .TimeoutDateInstructions{font-size:var(--emw--font-size-small, 12px);font-weight:300;padding-bottom:5px;line-height:18px}.TimeoutActionButtons{display:grid;grid-column-gap:10px;grid-template-rows:auto;grid-template-columns:1fr;margin-top:20px;width:50%}.TimeoutActionButtons .TimeoutSave{background:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));border:1px solid var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));color:var(--emw--button-typography, var(--emw--color-white, #FFFFFF));cursor:pointer;border-radius:5px;width:100%;height:50px;display:flex;align-items:center;justify-content:center;font-size:16px;text-transform:uppercase;transition-duration:0.3s;box-sizing:border-box}.TimeoutActionButtons.TimeoutActionButtonsMobile{width:100%;grid-template-columns:1fr}.TimeoutActionButtons.TimeoutActionButtonsMobile .TimeoutSave{height:40px;font-size:12px}@keyframes fadeIn{0%{opacity:0.01}1%{opacity:0}50%{opacity:0}100%{opacity:1}}`)}function Oo(o,t,e){const i=o.slice();return i[39]=t[e].value,i}function Qd(o){let t,e,i,s=o[17]("titleTimeout")+"",r,n,a,l,d=o[17]("timeoutTextFirst",{values:{operatorname:o[0],baseurl:o[6],lang:o[1]}})+"",u,h,f=o[17]("timeoutTextSecondary",{values:{supportemail:o[5],baseurl:o[6],lang:o[1]}})+"",_,g,x,k,O,E,P,F=o[17]("save")+"",N,Y,oe,Z,G,M=o[18]&&tc(o),T=c.ensure_array_like(o[9]),L=[];for(let p=0;p<T.length;p+=1)L[p]=Mo(Oo(o,T,p));let R=o[11]&&Io(o),w=o[19]&&ic(o);return{c(){t=c.element("form"),M&&M.c(),e=c.space(),i=c.element("h2"),r=c.text(s),n=c.space(),a=c.element("div"),l=c.element("p"),u=c.space(),h=c.element("p"),_=c.space(),g=c.element("div"),x=c.element("select");for(let p=0;p<L.length;p+=1)L[p].c();k=c.space(),R&&R.c(),O=c.space(),E=c.element("div"),P=c.element("button"),N=c.text(F),Y=c.space(),w&&w.c(),oe=c.empty(),c.attr(i,"class","TimeoutTitle "+(o[18]?"TimeoutTitleNone":"")),c.attr(a,"class","TimeoutDescription "+(o[18]?"TimeoutDescriptionMobile":"")),c.attr(x,"class","TimeoutSelect "+(o[18]?"TimeoutSelectMobile":"")),o[10]===void 0&&c.add_render_callback(()=>o[27].call(x)),c.attr(g,"class","TimeoutSelectWrapper"),c.attr(P,"class","TimeoutSave"),c.attr(E,"class","TimeoutActionButtons "+(o[18]?"TimeoutActionButtonsMobile":"")),c.attr(t,"class","TimeoutWrapper "+(o[18]?"TimeoutWrapperMobile":""))},m(p,m){c.insert(p,t,m),M&&M.m(t,null),c.append(t,e),c.append(t,i),c.append(i,r),c.append(t,n),c.append(t,a),c.append(a,l),l.innerHTML=d,c.append(a,u),c.append(a,h),h.innerHTML=f,c.append(t,_),c.append(t,g),c.append(g,x);for(let y=0;y<L.length;y+=1)L[y]&&L[y].m(x,null);c.select_option(x,o[10],!0),c.append(t,k),R&&R.m(t,null),c.append(t,O),c.append(t,E),c.append(E,P),c.append(P,N),c.insert(p,Y,m),w&&w.m(p,m),c.insert(p,oe,m),Z||(G=[c.listen(x,"change",o[27]),c.listen(x,"change",o[22]),c.listen(P,"click",o[29])],Z=!0)},p(p,m){if(p[18]&&M.p(p,m),m[0]&131072&&s!==(s=p[17]("titleTimeout")+"")&&c.set_data(r,s),m[0]&131139&&d!==(d=p[17]("timeoutTextFirst",{values:{operatorname:p[0],baseurl:p[6],lang:p[1]}})+"")&&(l.innerHTML=d),m[0]&131170&&f!==(f=p[17]("timeoutTextSecondary",{values:{supportemail:p[5],baseurl:p[6],lang:p[1]}})+"")&&(h.innerHTML=f),m[0]&131584){T=c.ensure_array_like(p[9]);let y;for(y=0;y<T.length;y+=1){const v=Oo(p,T,y);L[y]?L[y].p(v,m):(L[y]=Mo(v),L[y].c(),L[y].m(x,null))}for(;y<L.length;y+=1)L[y].d(1);L.length=T.length}m[0]&1536&&c.select_option(x,p[10]),p[11]?R?R.p(p,m):(R=Io(p),R.c(),R.m(t,O)):R&&(R.d(1),R=null),m[0]&131072&&F!==(F=p[17]("save")+"")&&c.set_data(N,F),p[19]&&w.p(p,m)},d(p){p&&(c.detach(t),c.detach(Y),c.detach(oe)),M&&M.d(),c.destroy_each(L,p),R&&R.d(),w&&w.d(p),Z=!1,c.run_all(G)}}}function ec(o){let t,e,i,s,r,n,a,l,d,u,h,f,_,g,x,k;function O(F,N){return F[18]?sc:oc}let P=O(o)(o);return{c(){t=c.element("div"),P.c(),e=c.space(),i=c.element("div"),s=c.element("ui-skeleton"),r=c.space(),n=c.element("div"),a=c.space(),l=c.element("ui-skeleton"),d=c.space(),u=c.element("div"),h=c.space(),f=c.element("div"),_=c.element("ui-skeleton"),g=c.space(),x=c.element("div"),k=c.element("ui-skeleton"),c.set_custom_element_data(s,"structure","text"),c.set_custom_element_data(s,"height",o[18]?"15px":"20px"),c.set_custom_element_data(s,"rows","3"),c.set_custom_element_data(s,"width","100%"),c.set_style(n,"height",o[18]?"10px":"30px"),c.set_custom_element_data(l,"structure","text"),c.set_custom_element_data(l,"height",o[18]?"15px":"20px"),c.set_custom_element_data(l,"rows","3"),c.set_custom_element_data(l,"width","100%"),c.set_style(u,"height",o[18]?"10px":"30px"),c.attr(i,"class","TimeoutDescription"),c.set_custom_element_data(_,"structure","rectangle"),c.set_custom_element_data(_,"width",o[18]?"100%":"50%"),c.set_custom_element_data(_,"height",o[18]?"30px":"44px"),c.set_custom_element_data(_,"margin-bottom","16px"),c.attr(f,"class","TimeoutSelectWrapper"),c.set_custom_element_data(k,"structure","rectangle"),c.set_custom_element_data(k,"width","100%"),c.set_custom_element_data(k,"height",o[18]?"35px":"50px"),c.attr(x,"class","TimeoutActionButtons "+(o[18]?"TimeoutActionButtonsMobile":"")),c.attr(t,"class","TimeoutWrapper "+(o[18]?"TimeoutWrapperMobile":""))},m(F,N){c.insert(F,t,N),P.m(t,null),c.append(t,e),c.append(t,i),c.append(i,s),c.append(i,r),c.append(i,n),c.append(i,a),c.append(i,l),c.append(i,d),c.append(i,u),c.append(t,h),c.append(t,f),c.append(f,_),c.append(t,g),c.append(t,x),c.append(x,k)},p:c.noop,d(F){F&&c.detach(t),P.d()}}}function tc(o){let t,e,i,s,r,n,a,l,d,u,h=o[17]("titleTimeout")+"",f,_,g;return{c(){t=c.element("div"),e=c.svg_element("svg"),i=c.svg_element("defs"),s=c.svg_element("style"),r=c.text(".aaa{fill:var(--emw--pam-color-primary, var(--emw--color-primary, #22B04E));}"),n=c.svg_element("g"),a=c.svg_element("g"),l=c.svg_element("path"),d=c.space(),u=c.element("h2"),f=c.text(h),c.attr(l,"class","aaa"),c.attr(l,"d","M7.5,0,6.136,1.364,11.3,6.526H0V8.474H11.3L6.136,13.636,7.5,15,15,7.5Z"),c.attr(l,"transform","translate(15 15) rotate(180)"),c.attr(a,"transform","translate(20 158)"),c.attr(n,"transform","translate(-20 -158)"),c.attr(e,"xmlns","http://www.w3.org/2000/svg"),c.attr(e,"width","15"),c.attr(e,"height","15"),c.attr(e,"viewBox","0 0 15 15"),c.attr(u,"class","TimeoutTitleMobile"),c.attr(u,"part","TimeoutTitleMobile"),c.attr(t,"class","MenuReturnButton"),c.attr(t,"part","MenuReturnButton")},m(x,k){c.insert(x,t,k),c.append(t,e),c.append(e,i),c.append(i,s),c.append(s,r),c.append(e,n),c.append(n,a),c.append(a,l),c.append(t,d),c.append(t,u),c.append(u,f),_||(g=c.listen(t,"click",o[26]),_=!0)},p(x,k){k[0]&131072&&h!==(h=x[17]("titleTimeout")+"")&&c.set_data(f,h)},d(x){x&&c.detach(t),_=!1,g()}}}function Mo(o){let t,e=o[17](o[39])+"",i,s;return{c(){t=c.element("option"),i=c.text(e),t.__value=s=o[39],c.set_input_value(t,t.__value)},m(r,n){c.insert(r,t,n),c.append(t,i)},p(r,n){n[0]&131584&&e!==(e=r[17](r[39])+"")&&c.set_data(i,e),n[0]&512&&s!==(s=r[39])&&(t.__value=s,c.set_input_value(t,t.__value))},d(r){r&&c.detach(t)}}}function Io(o){let t,e,i=o[17]("duration")+"",s,r,n,a=o[17]("dateInstructions")+"",l,d,u,h,f;return{c(){t=c.element("div"),e=c.element("label"),s=c.text(i),r=c.space(),n=c.element("span"),l=c.text(a),d=c.space(),u=c.element("strong"),u.innerHTML="MM/DD/YYYY<strong></strong>",h=c.space(),f=c.element("vaadin-date-picker"),c.attr(e,"for","TimeoutDate"),c.attr(n,"class","TimeoutDateInstructions"),c.set_custom_element_data(f,"min",o[13]),c.set_custom_element_data(f,"max",o[14]),c.set_custom_element_data(f,"value",o[13]),c.attr(t,"class","TimeoutDateWrapper "+(o[18]?"TimeoutDateWrapperMobile":""))},m(_,g){c.insert(_,t,g),c.append(t,e),c.append(e,s),c.append(t,r),c.append(t,n),c.append(n,l),c.append(n,d),c.append(n,u),c.append(t,h),c.append(t,f),o[28](f)},p(_,g){g[0]&131072&&i!==(i=_[17]("duration")+"")&&c.set_data(s,i),g[0]&131072&&a!==(a=_[17]("dateInstructions")+"")&&c.set_data(l,a),g[0]&8192&&c.set_custom_element_data(f,"min",_[13]),g[0]&16384&&c.set_custom_element_data(f,"max",_[14]),g[0]&8192&&c.set_custom_element_data(f,"value",_[13])},d(_){_&&c.detach(t),o[28](null)}}}function ic(o){let t,e,i,s;return{c(){t=c.element("player-account-modal"),e=c.element("player-account-general-confirmation-modal"),c.set_custom_element_data(e,"modalTitle",i=o[17]("confirmationModalTitle")),c.set_custom_element_data(e,"modalText",o[15]),c.set_custom_element_data(e,"hascancelbutton",!1),c.set_custom_element_data(e,"modalconfirmevent",s={type:"SetPlayerAccountTimeout",timeoutSelected:o[10],timeoutExpiryDate:o[12]}),c.set_custom_element_data(e,"mbsource",o[4]),c.set_custom_element_data(e,"lang",o[1]),c.set_custom_element_data(t,"clientstyling",o[2]),c.set_custom_element_data(t,"clientstylingurl",o[3]),c.set_custom_element_data(t,"mbsource",o[4]),c.set_custom_element_data(t,"showmodaleventname","ShowTimeoutConfirmationModal")},m(r,n){c.insert(r,t,n),c.append(t,e)},p(r,n){n[0]&131072&&i!==(i=r[17]("confirmationModalTitle"))&&c.set_custom_element_data(e,"modalTitle",i),n[0]&32768&&c.set_custom_element_data(e,"modalText",r[15]),n[0]&5632&&s!==(s={type:"SetPlayerAccountTimeout",timeoutSelected:r[10],timeoutExpiryDate:r[12]})&&c.set_custom_element_data(e,"modalconfirmevent",s),n[0]&16&&c.set_custom_element_data(e,"mbsource",r[4]),n[0]&2&&c.set_custom_element_data(e,"lang",r[1]),n[0]&4&&c.set_custom_element_data(t,"clientstyling",r[2]),n[0]&8&&c.set_custom_element_data(t,"clientstylingurl",r[3]),n[0]&16&&c.set_custom_element_data(t,"mbsource",r[4])},d(r){r&&c.detach(t)}}}function oc(o){let t;return{c(){t=c.element("ui-skeleton"),c.set_custom_element_data(t,"structure","title"),c.set_custom_element_data(t,"width","100px"),c.set_custom_element_data(t,"margin-top","20px"),c.set_custom_element_data(t,"margin-bottom","20px")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function sc(o){let t;return{c(){t=c.element("div"),t.innerHTML='<ui-skeleton structure="title" width="20px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton> <ui-skeleton structure="title" width="100px" height="20px" margin-top="20px" margin-bottom="20px"></ui-skeleton>',c.attr(t,"class","MenuReturnButton")},m(e,i){c.insert(e,t,i)},d(e){e&&c.detach(t)}}}function rc(o){let t;function e(r,n){return r[16]?ec:Qd}let i=e(o),s=i(o);return{c(){t=c.element("div"),s.c()},m(r,n){c.insert(r,t,n),s.m(t,null),o[30](t)},p(r,n){i===(i=e(r))&&s?s.p(r,n):(s.d(1),s=i(r),s&&(s.c(),s.m(t,null)))},i:c.noop,o:c.noop,d(r){r&&c.detach(t),s.d(),o[30](null)}}}function nc(o,t,e){let i;c.component_subscribe(o,c.$format,b=>e(17,i=b));let{operator:s="Everymatrix"}=t,{lang:r="en"}=t,{clientstyling:n=""}=t,{clientstylingurl:a=""}=t,{mbsource:l}=t,{translationurl:d=""}=t,{supportemail:u=""}=t,{endpoint:h=""}=t,{baseurl:f=""}=t,{hasconfirmationmodal:_="false"}=t,g,x,k=window.navigator.userAgent,O=c.getDevice(k)!=="PC",E=[{value:"CoolOffFor24Hours",dateSelector:!1},{value:"CoolOffFor7Days",dateSelector:!1},{value:"CoolOffFor30Days",dateSelector:!1},{value:"CoolOffFor3Months",dateSelector:!1}],P=E[0].value,F=!1,N="",Y,oe,Z="",G=_==="true",M=!0;const T=()=>{fetch(d).then(b=>b.json()).then(b=>{Object.keys(b).forEach(J=>{So(J,b[J])})}).catch(b=>{console.log(b)})};Object.keys(Po).forEach(b=>{So(b,Po[b])});const L=()=>{const b=new URL("/v1/player/coolOffSettings",h),J={method:"GET"};fetch(b.href,J).then(W=>{if(!W.ok)throw new Error("There was an error while fetching the configuration");return W.json()}).then(W=>{const{periods:ae}=W;ae&&e(9,E=ae.map(Q=>({value:Q.key,text:Q.text,dateSelector:Q.dateSelector})))}).catch(W=>{console.log(W)}).finally(()=>{e(16,M=!1),e(10,P=E[0].value)})},R=()=>{if(!G){e(15,Z="");return}e(15,Z=F?i("confirmationModalTextUntilTimeout",{values:{date:N}}):i("confirmationModalTextPeriodTimeout",{values:{period:i(P)}}))},w=b=>{b.preventDefault(),G?window.postMessage({type:"ShowTimeoutConfirmationModal"},window.location.href):window.postMessage({type:"SetPlayerAccountTimeout",timeoutSelected:P,timeoutExpiryDate:N},window.location.href)},p=()=>{window.postMessage({type:"PlayerAccountMenuActive",isMobile:O},window.location.href)},m=()=>{Xd(r),L()},y=()=>{const b=E.find(J=>J.value===P);e(11,F=!1),b.dateSelector&&(e(11,F=!0),e(13,Y=ko().format("YYYY-MM-DD")),e(14,oe=ko().add(6,"months").format("YYYY-MM-DD")),e(12,N=Y)),G&&R()},v=b=>{e(12,N=b.target.value)},C=()=>{x.addEventListener("change",v,!1)};c.onMount(()=>()=>{x.removeEventListener("change",v)});const A=()=>p();function I(){P=c.select_value(this),e(10,P),e(9,E)}function z(b){c.binding_callbacks[b?"unshift":"push"](()=>{x=b,e(8,x)})}const H=b=>w(b);function V(b){c.binding_callbacks[b?"unshift":"push"](()=>{g=b,e(7,g)})}return o.$$set=b=>{"operator"in b&&e(0,s=b.operator),"lang"in b&&e(1,r=b.lang),"clientstyling"in b&&e(2,n=b.clientstyling),"clientstylingurl"in b&&e(3,a=b.clientstylingurl),"mbsource"in b&&e(4,l=b.mbsource),"translationurl"in b&&e(23,d=b.translationurl),"supportemail"in b&&e(5,u=b.supportemail),"endpoint"in b&&e(24,h=b.endpoint),"baseurl"in b&&e(6,f=b.baseurl),"hasconfirmationmodal"in b&&e(25,_=b.hasconfirmationmodal)},o.$$.update=()=>{o.$$.dirty[0]&256&&x&&C(),o.$$.dirty[0]&2&&r&&m(),o.$$.dirty[0]&132&&n&&g&&c.setClientStyling(g,n),o.$$.dirty[0]&136&&a&&g&&c.setClientStylingURL(g,a),o.$$.dirty[0]&144&&l&&g&&c.setStreamStyling(g,`${l}.Style`),o.$$.dirty[0]&8388608&&d&&T()},G&&R(),[s,r,n,a,l,u,f,g,x,E,P,F,N,Y,oe,Z,M,i,O,G,w,p,y,d,h,_,A,I,z,H,V]}class cr extends c.SvelteComponent{constructor(t){super(),c.init(this,t,nc,rc,c.safe_not_equal,{operator:0,lang:1,clientstyling:2,clientstylingurl:3,mbsource:4,translationurl:23,supportemail:5,endpoint:24,baseurl:6,hasconfirmationmodal:25},Zd,[-1,-1])}get operator(){return this.$$.ctx[0]}set operator(t){this.$$set({operator:t}),c.flush()}get lang(){return this.$$.ctx[1]}set lang(t){this.$$set({lang:t}),c.flush()}get clientstyling(){return this.$$.ctx[2]}set clientstyling(t){this.$$set({clientstyling:t}),c.flush()}get clientstylingurl(){return this.$$.ctx[3]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),c.flush()}get mbsource(){return this.$$.ctx[4]}set mbsource(t){this.$$set({mbsource:t}),c.flush()}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),c.flush()}get supportemail(){return this.$$.ctx[5]}set supportemail(t){this.$$set({supportemail:t}),c.flush()}get endpoint(){return this.$$.ctx[24]}set endpoint(t){this.$$set({endpoint:t}),c.flush()}get baseurl(){return this.$$.ctx[6]}set baseurl(t){this.$$set({baseurl:t}),c.flush()}get hasconfirmationmodal(){return this.$$.ctx[25]}set hasconfirmationmodal(t){this.$$set({hasconfirmationmodal:t}),c.flush()}}c.create_custom_element(cr,{operator:{},lang:{},clientstyling:{},clientstylingurl:{},mbsource:{},translationurl:{},supportemail:{},endpoint:{},baseurl:{},hasconfirmationmodal:{}},[],[],!0);exports.default=cr;