@everymatrix/general-registration 1.86.2 → 1.86.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (17) hide show
  1. package/dist/cjs/checkbox-group-input_15.cjs.entry.js +160 -147
  2. package/dist/esm/checkbox-group-input_15.entry.js +160 -147
  3. package/dist/general-registration/checkbox-group-input_15.entry.js +250 -236
  4. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +2 -0
  5. package/dist/types/Users/maria.bumbar/Desktop/Widgets & Template/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +2 -0
  6. package/package.json +1 -1
  7. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.d.ts +0 -2
  8. package/dist/types/builds/emfe-widgets/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/stencil.config.dev.d.ts +0 -2
  9. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-registration/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  10. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-input/src/utils/types.d.ts +0 -0
  11. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/storybook/main.d.ts +0 -0
  12. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-registration/.stencil/packages/stencil/general-registration/storybook/preview.d.ts +0 -0
  13. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/index.d.ts +0 -0
  14. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/lazy-load-chunk-plugin.d.ts +0 -0
  15. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  16. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  17. /package/dist/types/{builds/emfe-widgets → Users/maria.bumbar/Desktop/Widgets & Template}/widgets-monorepo/packages/stencil/general-registration/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -6121,7 +6121,7 @@ const EmailInput = class {
6121
6121
  };
6122
6122
  EmailInput.style = EmailInputStyle0;
6123
6123
 
6124
- var jr=Object.defineProperty,qr=Object.defineProperties;var Yr=Object.getOwnPropertyDescriptors;var lo=Object.getOwnPropertySymbols;var Kr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable;var Mt$1=(s,t,e)=>t in s?jr(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,we=(s,t)=>{for(var e in t||(t={}))Kr.call(t,e)&&Mt$1(s,e,t[e]);if(lo)for(var e of lo(t))Gr.call(t,e)&&Mt$1(s,e,t[e]);return s},Nt$1=(s,t)=>qr(s,Yr(t));var k$1=(s,t,e)=>(Mt$1(s,typeof t!="symbol"?t+"":t,e),e);var Ce=(s,t,e)=>new Promise((i,o)=>{var r=l=>{try{a(e.next(l));}catch(d){o(d);}},n=l=>{try{a(e.throw(l));}catch(d){o(d);}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next());});/**
6124
+ var jr=Object.defineProperty,qr=Object.defineProperties;var Yr=Object.getOwnPropertyDescriptors;var lo=Object.getOwnPropertySymbols;var Kr=Object.prototype.hasOwnProperty,Gr=Object.prototype.propertyIsEnumerable;var zt=(s,t,e)=>t in s?jr(s,t,{enumerable:!0,configurable:!0,writable:!0,value:e}):s[t]=e,xe=(s,t)=>{for(var e in t||(t={}))Kr.call(t,e)&&zt(s,e,t[e]);if(lo)for(var e of lo(t))Gr.call(t,e)&&zt(s,e,t[e]);return s},Mt$1=(s,t)=>qr(s,Yr(t));var k$1=(s,t,e)=>(zt(s,typeof t!="symbol"?t+"":t,e),e);var we=(s,t,e)=>new Promise((i,o)=>{var r=l=>{try{a(e.next(l));}catch(d){o(d);}},n=l=>{try{a(e.throw(l));}catch(d){o(d);}},a=l=>l.done?i(l.value):Promise.resolve(l.value).then(r,n);a((e=e.apply(s,t)).next());});/**
6125
6125
  * @license
6126
6126
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
6127
6127
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -6133,35 +6133,35 @@ var jr=Object.defineProperty,qr=Object.defineProperties;var Yr=Object.getOwnProp
6133
6133
  * @license
6134
6134
  * Copyright 2019 Google LLC
6135
6135
  * SPDX-License-Identifier: BSD-3-Clause
6136
- */const lt$1=globalThis,Ei=lt$1.ShadowRoot&&(lt$1.ShadyCSS===void 0||lt$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ai=Symbol(),co=new WeakMap;let ki=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ai)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(Ei&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=co.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&co.set(e,t));}return t}toString(){return this.cssText}};const Jr=s=>new ki(typeof s=="string"?s:s+"",void 0,Ai),p$1=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,o,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[r+1],s[0]);return new ki(e,s,Ai)},ns=(s,t)=>{if(Ei)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),o=lt$1.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i);}},ho=Ei?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Jr(e)})(s):s;/**
6136
+ */const at$1=globalThis,Ci=at$1.ShadowRoot&&(at$1.ShadyCSS===void 0||at$1.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,Ei=Symbol(),co=new WeakMap;let Ai=class{constructor(t,e,i){if(this._$cssResult$=!0,i!==Ei)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(Ci&&t===void 0){const i=e!==void 0&&e.length===1;i&&(t=co.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),i&&co.set(e,t));}return t}toString(){return this.cssText}};const Jr=s=>new Ai(typeof s=="string"?s:s+"",void 0,Ei),p$1=(s,...t)=>{const e=s.length===1?s[0]:t.reduce((i,o,r)=>i+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(o)+s[r+1],s[0]);return new Ai(e,s,Ei)},ns=(s,t)=>{if(Ci)s.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(const e of t){const i=document.createElement("style"),o=at$1.litNonce;o!==void 0&&i.setAttribute("nonce",o),i.textContent=e.cssText,s.appendChild(i);}},ho=Ci?s=>s:s=>s instanceof CSSStyleSheet?(t=>{let e="";for(const i of t.cssRules)e+=i.cssText;return Jr(e)})(s):s;/**
6137
6137
  * @license
6138
6138
  * Copyright 2017 Google LLC
6139
6139
  * SPDX-License-Identifier: BSD-3-Clause
6140
- */const{is:Qr,defineProperty:Zr,getOwnPropertyDescriptor:en,getOwnPropertyNames:tn,getOwnPropertySymbols:on,getPrototypeOf:sn}=Object,q$1=globalThis,uo=q$1.trustedTypes,rn=uo?uo.emptyScript:"",Lt$1=q$1.reactiveElementPolyfillSupport,Oe=(s,t)=>s,ei={toAttribute(s,t){switch(t){case Boolean:s=s?rn:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s);}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s);}catch(i){e=null;}}return e}},as=(s,t)=>!Qr(s,t),po={attribute:!0,type:String,converter:ei,reflect:!1,useDefault:!1,hasChanged:as};(Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(q$1.litPropertyMetadata)!=null||(q$1.litPropertyMetadata=new WeakMap);class de 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=po){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(),o=this.getPropertyDescriptor(t,i,e);o!==void 0&&Zr(this.prototype,t,o);}}static getPropertyDescriptor(t,e,i){var n;const{get:o,set:r}=(n=en(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a;}};return {get:o,set(a){const l=o==null?void 0:o.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:po}static _$Ei(){if(this.hasOwnProperty(Oe("elementProperties")))return;const t=sn(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(Oe("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(Oe("properties"))){const e=this.properties,i=[...tn(e),...on(e)];for(const o of i)this.createProperty(o,e[o]);}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,o]of e)this.elementProperties.set(i,o);}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const o=this._$Eu(e,i);o!==void 0&&this._$Eh.set(o,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 o of i)e.unshift(ho(o));}else t!==void 0&&e.push(ho(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 ns(t,this.constructor.elementStyles),t}connectedCallback(){var e;(this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var o;return (o=i.hostConnected)==null?void 0:o.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),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:ei).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null;}}_$AK(t,e){var r,n,a;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const l=i.getPropertyOptions(o),d=typeof l.converter=="function"?{fromAttribute:l.converter}:((r=l.converter)==null?void 0:r.fromAttribute)!==void 0?l.converter:ei;this._$Em=o;const c=d.fromAttribute(e,l.type);this[o]=(a=c!=null?c:(n=this._$Ej)==null?void 0:n.get(o))!=null?a:c,this._$Em=null;}}requestUpdate(t,e,i){var o,r;if(t!==void 0){const n=this.constructor,a=this[t];if(i!=null||(i=n.getPropertyOptions(t)),!(((o=i.hasChanged)!=null?o:as)(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:o,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)),o===!0&&this._$Em!==t&&((d=this._$Eq)!=null?d:this._$Eq=new Set).add(t));}_$EP(){return Ce(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES;}catch(e){Promise.reject(e);}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((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),(o=this._$EO)==null||o.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 o;return (o=i.hostUpdated)==null?void 0:o.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 is;de.elementStyles=[],de.shadowRootOptions={mode:"open"},de[Oe("elementProperties")]=new Map,de[Oe("finalized")]=new Map,Lt$1==null||Lt$1({ReactiveElement:de}),((is=q$1.reactiveElementVersions)!=null?is:q$1.reactiveElementVersions=[]).push("2.1.1");/**
6140
+ */const{is:Qr,defineProperty:Zr,getOwnPropertyDescriptor:en,getOwnPropertyNames:tn,getOwnPropertySymbols:on,getPrototypeOf:sn}=Object,q$1=globalThis,uo=q$1.trustedTypes,rn=uo?uo.emptyScript:"",Nt$1=q$1.reactiveElementPolyfillSupport,De=(s,t)=>s,Zt={toAttribute(s,t){switch(t){case Boolean:s=s?rn:null;break;case Object:case Array:s=s==null?s:JSON.stringify(s);}return s},fromAttribute(s,t){let e=s;switch(t){case Boolean:e=s!==null;break;case Number:e=s===null?null:Number(s);break;case Object:case Array:try{e=JSON.parse(s);}catch(i){e=null;}}return e}},as=(s,t)=>!Qr(s,t),po={attribute:!0,type:String,converter:Zt,reflect:!1,hasChanged:as};(Symbol.metadata)!=null||(Symbol.metadata=Symbol("metadata")),(q$1.litPropertyMetadata)!=null||(q$1.litPropertyMetadata=new WeakMap);class le 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=po){if(e.state&&(e.attribute=!1),this._$Ei(),this.elementProperties.set(t,e),!e.noAccessor){const i=Symbol(),o=this.getPropertyDescriptor(t,i,e);o!==void 0&&Zr(this.prototype,t,o);}}static getPropertyDescriptor(t,e,i){var n;const{get:o,set:r}=(n=en(this.prototype,t))!=null?n:{get(){return this[e]},set(a){this[e]=a;}};return {get(){return o==null?void 0:o.call(this)},set(a){const l=o==null?void 0:o.call(this);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:po}static _$Ei(){if(this.hasOwnProperty(De("elementProperties")))return;const t=sn(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties);}static finalize(){if(this.hasOwnProperty(De("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(De("properties"))){const e=this.properties,i=[...tn(e),...on(e)];for(const o of i)this.createProperty(o,e[o]);}const t=this[Symbol.metadata];if(t!==null){const e=litPropertyMetadata.get(t);if(e!==void 0)for(const[i,o]of e)this.elementProperties.set(i,o);}this._$Eh=new Map;for(const[e,i]of this.elementProperties){const o=this._$Eu(e,i);o!==void 0&&this._$Eh.set(o,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 o of i)e.unshift(ho(o));}else t!==void 0&&e.push(ho(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 ns(t,this.constructor.elementStyles),t}connectedCallback(){var e;(this.renderRoot)!=null||(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),(e=this._$EO)==null||e.forEach(i=>{var o;return (o=i.hostConnected)==null?void 0:o.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);}_$EC(t,e){var r;const i=this.constructor.elementProperties.get(t),o=this.constructor._$Eu(t,i);if(o!==void 0&&i.reflect===!0){const n=(((r=i.converter)==null?void 0:r.toAttribute)!==void 0?i.converter:Zt).toAttribute(e,i.type);this._$Em=t,n==null?this.removeAttribute(o):this.setAttribute(o,n),this._$Em=null;}}_$AK(t,e){var r;const i=this.constructor,o=i._$Eh.get(t);if(o!==void 0&&this._$Em!==o){const n=i.getPropertyOptions(o),a=typeof n.converter=="function"?{fromAttribute:n.converter}:((r=n.converter)==null?void 0:r.fromAttribute)!==void 0?n.converter:Zt;this._$Em=o,this[o]=a.fromAttribute(e,n.type),this._$Em=null;}}requestUpdate(t,e,i){var o;if(t!==void 0){if(i!=null||(i=this.constructor.getPropertyOptions(t)),!((o=i.hasChanged)!=null?o:as)(this[t],e))return;this.P(t,e,i);}this.isUpdatePending===!1&&(this._$ES=this._$ET());}P(t,e,i){var o;this._$AL.has(t)||this._$AL.set(t,e),i.reflect===!0&&this._$Em!==t&&((o=this._$Ej)!=null?o:this._$Ej=new Set).add(t);}_$ET(){return we(this,null,function*(){this.isUpdatePending=!0;try{yield this._$ES;}catch(e){Promise.reject(e);}const t=this.scheduleUpdate();return t!=null&&(yield t),!this.isUpdatePending})}scheduleUpdate(){return this.performUpdate()}performUpdate(){var o;if(!this.isUpdatePending)return;if(!this.hasUpdated){if((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)a.wrapped!==!0||this._$AL.has(n)||this[n]===void 0||this.P(n,this[n],a);}let t=!1;const e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),(o=this._$EO)==null||o.forEach(r=>{var n;return (n=r.hostUpdate)==null?void 0:n.call(r)}),this.update(e)):this._$EU();}catch(r){throw t=!1,this._$EU(),r}t&&this._$AE(e);}willUpdate(t){}_$AE(t){var e;(e=this._$EO)==null||e.forEach(i=>{var o;return (o=i.hostUpdated)==null?void 0:o.call(i)}),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t);}_$EU(){this._$AL=new Map,this.isUpdatePending=!1;}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return !0}update(t){this._$Ej&&(this._$Ej=this._$Ej.forEach(e=>this._$EC(e,this[e]))),this._$EU();}updated(t){}firstUpdated(t){}}var is;le.elementStyles=[],le.shadowRootOptions={mode:"open"},le[De("elementProperties")]=new Map,le[De("finalized")]=new Map,Nt$1==null||Nt$1({ReactiveElement:le}),((is=q$1.reactiveElementVersions)!=null?is:q$1.reactiveElementVersions=[]).push("2.0.4");/**
6141
6141
  * @license
6142
6142
  * Copyright 2017 Google LLC
6143
6143
  * SPDX-License-Identifier: BSD-3-Clause
6144
- */const ze=globalThis,ht$1=ze.trustedTypes,mo=ht$1?ht$1.createPolicy("lit-html",{createHTML:s=>s}):void 0,ls="$lit$",j=`lit$${Math.random().toFixed(9).slice(2)}$`,ds="?"+j,nn=`<${ds}>`,oe=document,Ne=()=>oe.createComment(""),Le=s=>s===null||typeof s!="object"&&typeof s!="function",Ii=Array.isArray,an=s=>Ii(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Bt$1=`[
6145
- \f\r]`,Ee=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fo=/-->/g,_o=/>/g,Q$1=RegExp(`>|${Bt$1}(?:([^\\s"'>=/]+)(${Bt$1}*=${Bt$1}*(?:[^
6146
- \f\r"'\`<>=]|("|')|))|$)`,"g"),vo=/'/g,go=/"/g,cs=/^(?:script|style|textarea|title)$/i,fe=Symbol.for("lit-noChange"),A$1=Symbol.for("lit-nothing"),bo=new WeakMap,Z$1=oe.createTreeWalker(oe,129);function hs(s,t){if(!Ii(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return mo!==void 0?mo.createHTML(t):t}const ln=(s,t)=>{const e=s.length-1,i=[];let o,r=t===2?"<svg>":t===3?"<math>":"",n=Ee;for(let a=0;a<e;a++){const l=s[a];let d,c,h=-1,u=0;for(;u<l.length&&(n.lastIndex=u,c=n.exec(l),c!==null);)u=n.lastIndex,n===Ee?c[1]==="!--"?n=fo:c[1]!==void 0?n=_o:c[2]!==void 0?(cs.test(c[2])&&(o=RegExp("</"+c[2],"g")),n=Q$1):c[3]!==void 0&&(n=Q$1):n===Q$1?c[0]===">"?(n=o!=null?o:Ee,h=-1):c[1]===void 0?h=-2:(h=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?Q$1:c[3]==='"'?go:vo):n===go||n===vo?n=Q$1:n===fo||n===_o?n=Ee:(n=Q$1,o=void 0);const f=n===Q$1&&s[a+1].startsWith("/>")?" ":"";r+=n===Ee?l+nn:h>=0?(i.push(d),l.slice(0,h)+ls+l.slice(h)+j+f):l+j+(h===-2?a:f);}return [hs(s,r+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Be{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[d,c]=ln(t,e);if(this.el=Be.createElement(d,i),Z$1.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes);}for(;(o=Z$1.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const h of o.getAttributeNames())if(h.endsWith(ls)){const u=c[n++],f=o.getAttribute(h).split(j),_=/([.?@])?(.*)/.exec(u);l.push({type:1,index:r,name:_[2],strings:f,ctor:_[1]==="."?cn:_[1]==="?"?hn:_[1]==="@"?un:xt$1}),o.removeAttribute(h);}else h.startsWith(j)&&(l.push({type:6,index:r}),o.removeAttribute(h));if(cs.test(o.tagName)){const h=o.textContent.split(j),u=h.length-1;if(u>0){o.textContent=ht$1?ht$1.emptyScript:"";for(let f=0;f<u;f++)o.append(h[f],Ne()),Z$1.nextNode(),l.push({type:2,index:++r});o.append(h[u],Ne());}}}else if(o.nodeType===8)if(o.data===ds)l.push({type:2,index:r});else {let h=-1;for(;(h=o.data.indexOf(j,h+1))!==-1;)l.push({type:7,index:r}),h+=j.length-1;}r++;}}static createElement(t,e){const i=oe.createElement("template");return i.innerHTML=t,i}}function _e(s,t,e=s,i){var n,a,l;if(t===fe)return t;let o=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=Le(t)?void 0:t._$litDirective$;return (o==null?void 0:o.constructor)!==r&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),r===void 0?o=void 0:(o=new r(s),o._$AT(s,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=o:e._$Cl=o),o!==void 0&&(t=_e(s,o._$AS(s,t.values),o,i)),t}class dn{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,o=((d=t==null?void 0:t.creationScope)!=null?d:oe).importNode(e,!0);Z$1.currentNode=o;let r=Z$1.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let c;l.type===2?c=new qe(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new pn(r,this,t)),this._$AV.push(c),l=i[++a];}n!==(l==null?void 0:l.index)&&(r=Z$1.nextNode(),n++);}return Z$1.currentNode=oe,o}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 qe{get _$AU(){var t,e;return (e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,o){var r;this.type=2,this._$AH=A$1,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=(r=o==null?void 0:o.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=_e(this,t,e),Le(t)?t===A$1||t==null||t===""?(this._$AH!==A$1&&this._$AR(),this._$AH=A$1):t!==this._$AH&&t!==fe&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):an(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!==A$1&&Le(this._$AH)?this._$AA.nextSibling.data=t:this.T(oe.createTextNode(t)),this._$AH=t;}$(t){var r;const{values:e,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Be.createElement(hs(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(e);else {const n=new dn(o,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n;}}_$AC(t){let e=bo.get(t.strings);return e===void 0&&bo.set(t.strings,e=new Be(t)),e}k(t){Ii(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new qe(this.O(Ne()),this.O(Ne()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o);}_$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 o=t.nextSibling;t.remove(),t=o;}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t));}}class xt$1{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=A$1,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A$1;}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(r===void 0)t=_e(this,t,e,0),n=!Le(t)||t!==this._$AH&&t!==fe,n&&(this._$AH=t);else {const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=_e(this,a[i+l],e,l),d===fe&&(d=this._$AH[l]),n||(n=!Le(d)||d!==this._$AH[l]),d===A$1?t=A$1:t!==A$1&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d;}n&&!o&&this.j(t);}j(t){t===A$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"");}}class cn extends xt$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===A$1?void 0:t;}}class hn extends xt$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A$1);}}class un extends xt$1{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5;}_$AI(t,e=this){var n;if((t=(n=_e(this,t,e,0))!=null?n:A$1)===fe)return;const i=this._$AH,o=t===A$1&&i!==A$1||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==A$1&&(i===A$1||o);o&&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 pn{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){_e(this,t);}}const Ft=ze.litHtmlPolyfillSupport;var os;Ft==null||Ft(Be,qe),((os=ze.litHtmlVersions)!=null?os:ze.litHtmlVersions=[]).push("3.3.1");const us=(s,t,e)=>{var r,n;const i=(r=e==null?void 0:e.renderBefore)!=null?r:t;let o=i._$litPart$;if(o===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=o=new qe(t.insertBefore(Ne(),a),a,void 0,e!=null?e:{});}return o._$AI(s),o};/**
6144
+ */const Oe=globalThis,ct$1=Oe.trustedTypes,mo=ct$1?ct$1.createPolicy("lit-html",{createHTML:s=>s}):void 0,ls="$lit$",j=`lit$${Math.random().toFixed(9).slice(2)}$`,ds="?"+j,nn=`<${ds}>`,ie=document,Me=()=>ie.createComment(""),Ne=s=>s===null||typeof s!="object"&&typeof s!="function",ki=Array.isArray,an=s=>ki(s)||typeof(s==null?void 0:s[Symbol.iterator])=="function",Lt$1=`[
6145
+ \f\r]`,Ce=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,fo=/-->/g,_o=/>/g,Q$1=RegExp(`>|${Lt$1}(?:([^\\s"'>=/]+)(${Lt$1}*=${Lt$1}*(?:[^
6146
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),vo=/'/g,go=/"/g,cs=/^(?:script|style|textarea|title)$/i,me=Symbol.for("lit-noChange"),A$1=Symbol.for("lit-nothing"),bo=new WeakMap,Z$1=ie.createTreeWalker(ie,129);function hs(s,t){if(!ki(s)||!s.hasOwnProperty("raw"))throw Error("invalid template strings array");return mo!==void 0?mo.createHTML(t):t}const ln=(s,t)=>{const e=s.length-1,i=[];let o,r=t===2?"<svg>":t===3?"<math>":"",n=Ce;for(let a=0;a<e;a++){const l=s[a];let d,c,h=-1,u=0;for(;u<l.length&&(n.lastIndex=u,c=n.exec(l),c!==null);)u=n.lastIndex,n===Ce?c[1]==="!--"?n=fo:c[1]!==void 0?n=_o:c[2]!==void 0?(cs.test(c[2])&&(o=RegExp("</"+c[2],"g")),n=Q$1):c[3]!==void 0&&(n=Q$1):n===Q$1?c[0]===">"?(n=o!=null?o:Ce,h=-1):c[1]===void 0?h=-2:(h=n.lastIndex-c[2].length,d=c[1],n=c[3]===void 0?Q$1:c[3]==='"'?go:vo):n===go||n===vo?n=Q$1:n===fo||n===_o?n=Ce:(n=Q$1,o=void 0);const f=n===Q$1&&s[a+1].startsWith("/>")?" ":"";r+=n===Ce?l+nn:h>=0?(i.push(d),l.slice(0,h)+ls+l.slice(h)+j+f):l+j+(h===-2?a:f);}return [hs(s,r+(s[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),i]};class Le{constructor({strings:t,_$litType$:e},i){let o;this.parts=[];let r=0,n=0;const a=t.length-1,l=this.parts,[d,c]=ln(t,e);if(this.el=Le.createElement(d,i),Z$1.currentNode=this.el.content,e===2||e===3){const h=this.el.content.firstChild;h.replaceWith(...h.childNodes);}for(;(o=Z$1.nextNode())!==null&&l.length<a;){if(o.nodeType===1){if(o.hasAttributes())for(const h of o.getAttributeNames())if(h.endsWith(ls)){const u=c[n++],f=o.getAttribute(h).split(j),_=/([.?@])?(.*)/.exec(u);l.push({type:1,index:r,name:_[2],strings:f,ctor:_[1]==="."?cn:_[1]==="?"?hn:_[1]==="@"?un:yt$1}),o.removeAttribute(h);}else h.startsWith(j)&&(l.push({type:6,index:r}),o.removeAttribute(h));if(cs.test(o.tagName)){const h=o.textContent.split(j),u=h.length-1;if(u>0){o.textContent=ct$1?ct$1.emptyScript:"";for(let f=0;f<u;f++)o.append(h[f],Me()),Z$1.nextNode(),l.push({type:2,index:++r});o.append(h[u],Me());}}}else if(o.nodeType===8)if(o.data===ds)l.push({type:2,index:r});else {let h=-1;for(;(h=o.data.indexOf(j,h+1))!==-1;)l.push({type:7,index:r}),h+=j.length-1;}r++;}}static createElement(t,e){const i=ie.createElement("template");return i.innerHTML=t,i}}function fe(s,t,e=s,i){var n,a,l;if(t===me)return t;let o=i!==void 0?(n=e._$Co)==null?void 0:n[i]:e._$Cl;const r=Ne(t)?void 0:t._$litDirective$;return (o==null?void 0:o.constructor)!==r&&((a=o==null?void 0:o._$AO)==null||a.call(o,!1),r===void 0?o=void 0:(o=new r(s),o._$AT(s,e,i)),i!==void 0?((l=e._$Co)!=null?l:e._$Co=[])[i]=o:e._$Cl=o),o!==void 0&&(t=fe(s,o._$AS(s,t.values),o,i)),t}class dn{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,o=((d=t==null?void 0:t.creationScope)!=null?d:ie).importNode(e,!0);Z$1.currentNode=o;let r=Z$1.nextNode(),n=0,a=0,l=i[0];for(;l!==void 0;){if(n===l.index){let c;l.type===2?c=new je(r,r.nextSibling,this,t):l.type===1?c=new l.ctor(r,l.name,l.strings,this,t):l.type===6&&(c=new pn(r,this,t)),this._$AV.push(c),l=i[++a];}n!==(l==null?void 0:l.index)&&(r=Z$1.nextNode(),n++);}return Z$1.currentNode=ie,o}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 je{get _$AU(){var t,e;return (e=(t=this._$AM)==null?void 0:t._$AU)!=null?e:this._$Cv}constructor(t,e,i,o){var r;this.type=2,this._$AH=A$1,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=i,this.options=o,this._$Cv=(r=o==null?void 0:o.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=fe(this,t,e),Ne(t)?t===A$1||t==null||t===""?(this._$AH!==A$1&&this._$AR(),this._$AH=A$1):t!==this._$AH&&t!==me&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):an(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!==A$1&&Ne(this._$AH)?this._$AA.nextSibling.data=t:this.T(ie.createTextNode(t)),this._$AH=t;}$(t){var r;const{values:e,_$litType$:i}=t,o=typeof i=="number"?this._$AC(t):(i.el===void 0&&(i.el=Le.createElement(hs(i.h,i.h[0]),this.options)),i);if(((r=this._$AH)==null?void 0:r._$AD)===o)this._$AH.p(e);else {const n=new dn(o,this),a=n.u(this.options);n.p(e),this.T(a),this._$AH=n;}}_$AC(t){let e=bo.get(t.strings);return e===void 0&&bo.set(t.strings,e=new Le(t)),e}k(t){ki(this._$AH)||(this._$AH=[],this._$AR());const e=this._$AH;let i,o=0;for(const r of t)o===e.length?e.push(i=new je(this.O(Me()),this.O(Me()),this,this.options)):i=e[o],i._$AI(r),o++;o<e.length&&(this._$AR(i&&i._$AB.nextSibling,o),e.length=o);}_$AR(t=this._$AA.nextSibling,e){var i;for((i=this._$AP)==null?void 0:i.call(this,!1,!0,e);t&&t!==this._$AB;){const o=t.nextSibling;t.remove(),t=o;}}setConnected(t){var e;this._$AM===void 0&&(this._$Cv=t,(e=this._$AP)==null||e.call(this,t));}}class yt$1{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,i,o,r){this.type=1,this._$AH=A$1,this._$AN=void 0,this.element=t,this.name=e,this._$AM=o,this.options=r,i.length>2||i[0]!==""||i[1]!==""?(this._$AH=Array(i.length-1).fill(new String),this.strings=i):this._$AH=A$1;}_$AI(t,e=this,i,o){const r=this.strings;let n=!1;if(r===void 0)t=fe(this,t,e,0),n=!Ne(t)||t!==this._$AH&&t!==me,n&&(this._$AH=t);else {const a=t;let l,d;for(t=r[0],l=0;l<r.length-1;l++)d=fe(this,a[i+l],e,l),d===me&&(d=this._$AH[l]),n||(n=!Ne(d)||d!==this._$AH[l]),d===A$1?t=A$1:t!==A$1&&(t+=(d!=null?d:"")+r[l+1]),this._$AH[l]=d;}n&&!o&&this.j(t);}j(t){t===A$1?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t!=null?t:"");}}class cn extends yt$1{constructor(){super(...arguments),this.type=3;}j(t){this.element[this.name]=t===A$1?void 0:t;}}class hn extends yt$1{constructor(){super(...arguments),this.type=4;}j(t){this.element.toggleAttribute(this.name,!!t&&t!==A$1);}}class un extends yt$1{constructor(t,e,i,o,r){super(t,e,i,o,r),this.type=5;}_$AI(t,e=this){var n;if((t=(n=fe(this,t,e,0))!=null?n:A$1)===me)return;const i=this._$AH,o=t===A$1&&i!==A$1||t.capture!==i.capture||t.once!==i.once||t.passive!==i.passive,r=t!==A$1&&(i===A$1||o);o&&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 pn{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){fe(this,t);}}const Bt$1=Oe.litHtmlPolyfillSupport;var os;Bt$1==null||Bt$1(Le,je),((os=Oe.litHtmlVersions)!=null?os:Oe.litHtmlVersions=[]).push("3.2.1");const us=(s,t,e)=>{var r,n;const i=(r=e==null?void 0:e.renderBefore)!=null?r:t;let o=i._$litPart$;if(o===void 0){const a=(n=e==null?void 0:e.renderBefore)!=null?n:null;i._$litPart$=o=new je(t.insertBefore(Me(),a),a,void 0,e!=null?e:{});}return o._$AI(s),o};/**
6147
6147
  * @license
6148
6148
  * Copyright 2017 Google LLC
6149
6149
  * SPDX-License-Identifier: BSD-3-Clause
6150
- */const te=globalThis;class ce extends de{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e;const t=super.createRenderRoot();return ((e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=us(e,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1);}render(){return fe}}var ss;ce._$litElement$=!0,ce.finalized=!0,(ss=te.litElementHydrateSupport)==null||ss.call(te,{LitElement:ce});const Vt=te.litElementPolyfillSupport;Vt==null||Vt({LitElement:ce});var rs;((rs=te.litElementVersions)!=null?rs:te.litElementVersions=[]).push("4.2.1");/**
6150
+ */class de extends le{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0;}createRenderRoot(){var e;const t=super.createRenderRoot();return ((e=this.renderOptions).renderBefore)!=null||(e.renderBefore=t.firstChild),t}update(t){const e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=us(e,this.renderRoot,this.renderOptions);}connectedCallback(){var t;super.connectedCallback(),(t=this._$Do)==null||t.setConnected(!0);}disconnectedCallback(){var t;super.disconnectedCallback(),(t=this._$Do)==null||t.setConnected(!1);}render(){return me}}var ss;de._$litElement$=!0,de.finalized=!0,(ss=globalThis.litElementHydrateSupport)==null||ss.call(globalThis,{LitElement:de});const Ft=globalThis.litElementPolyfillSupport;Ft==null||Ft({LitElement:de});var rs;((rs=globalThis.litElementVersions)!=null?rs:globalThis.litElementVersions=[]).push("4.1.1");/**
6151
6151
  * @license
6152
6152
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6153
6153
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6154
- */const wt$1=s=>class extends s{static get properties(){return {_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return [...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,o){super.attributeChangedCallback(e,i,o),e==="theme"&&this._set_theme(o);}};/**
6154
+ */const xt$1=s=>class extends s{static get properties(){return {_theme:{type:String,readOnly:!0}}}static get observedAttributes(){return [...super.observedAttributes,"theme"]}attributeChangedCallback(e,i,o){super.attributeChangedCallback(e,i,o),e==="theme"&&this._set_theme(o);}};/**
6155
6155
  * @license
6156
6156
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6157
6157
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6158
- */const ps=[],ti=new Set,Si=new Set;function ms(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function mn(s){return ms(customElements.get(s))}function fn(s=[]){return [s].flat(1/0).filter(t=>t instanceof ki?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function fs(s,t){return (s||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function _s(s){return s.map(t=>t.cssText).join(`
6159
- `)}const ut$1="vaadin-themable-mixin-style";function _n(s,t){const e=document.createElement("style");e.id=ut$1,e.textContent=_s(s),t.content.appendChild(e);}function vn(s){if(!s.shadowRoot)return;const t=s.constructor;if(s instanceof ce)[...s.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),ns(s.shadowRoot,t.elementStyles);else {const e=s.shadowRoot.getElementById(ut$1),i=t.prototype._template;e.textContent=i.content.getElementById(ut$1).textContent;}}function gn(s){ti.forEach(t=>{const e=t.deref();e instanceof s?vn(e):e||ti.delete(t);});}function vs(s){if(s.prototype instanceof ce)s.elementStyles=s.finalizeStyles(s.styles);else {const t=s.prototype._template;t.content.getElementById(ut$1).textContent=_s(s.getStylesForThis());}Si.forEach(t=>{const e=customElements.get(t);e!==s&&e.prototype instanceof s&&vs(e);});}function bn(s,t){const e=s.__themes;return !e||!t?!1:e.some(i=>i.styles.some(o=>t.some(r=>r.cssText===o.cssText)))}function m$1(s,t,e={}){t=fn(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,t,e):ps.push({themeFor:s,styles:t,include:e.include,moduleId:e.moduleId}),s&&Si.forEach(i=>{if(fs(s,i)&&mn(i)){const o=customElements.get(i);bn(o,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".`),vs(o),gn(o);}});}function ii(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():ps}function yn(s=""){let t=0;return s.startsWith("lumo-")||s.startsWith("material-")?t=1:s.startsWith("vaadin-")&&(t=2),t}function gs(s){const t=[];return s.include&&[].concat(s.include).forEach(e=>{const i=ii().find(o=>o.moduleId===e);i?t.push(...gs(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`);},s.styles),t}function xn(s){const t=`${s}-default-theme`,e=ii().filter(i=>i.moduleId!==t&&fs(i.themeFor,s)).map(i=>Nt$1(we({},i),{styles:[...gs(i),...i.styles],includePriority:yn(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return e.length>0?e:ii().filter(i=>i.moduleId===t)}const x=s=>class extends wt$1(s){constructor(){super(),ti.add(new WeakRef(this));}static finalize(){if(super.finalize(),this.is&&Si.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||ms(this)||_n(this.getStylesForThis(),e);}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=s.__themes||[],i=Object.getPrototypeOf(this.prototype),o=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...o,...xn(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
6158
+ */const ps=[],ei=new Set,Ii=new Set;function ms(s){return s&&Object.prototype.hasOwnProperty.call(s,"__themes")}function mn(s){return ms(customElements.get(s))}function fn(s=[]){return [s].flat(1/0).filter(t=>t instanceof Ai?!0:(console.warn("An item in styles is not of type CSSResult. Use `unsafeCSS` or `css`."),!1))}function fs(s,t){return (s||"").split(" ").some(e=>new RegExp(`^${e.split("*").join(".*")}$`,"u").test(t))}function _s(s){return s.map(t=>t.cssText).join(`
6159
+ `)}const ht$1="vaadin-themable-mixin-style";function _n(s,t){const e=document.createElement("style");e.id=ht$1,e.textContent=_s(s),t.content.appendChild(e);}function vn(s){if(!s.shadowRoot)return;const t=s.constructor;if(s instanceof de)[...s.shadowRoot.querySelectorAll("style")].forEach(e=>e.remove()),ns(s.shadowRoot,t.elementStyles);else {const e=s.shadowRoot.getElementById(ht$1),i=t.prototype._template;e.textContent=i.content.getElementById(ht$1).textContent;}}function gn(s){ei.forEach(t=>{const e=t.deref();e instanceof s?vn(e):e||ei.delete(t);});}function vs(s){if(s.prototype instanceof de)s.elementStyles=s.finalizeStyles(s.styles);else {const t=s.prototype._template;t.content.getElementById(ht$1).textContent=_s(s.getStylesForThis());}Ii.forEach(t=>{const e=customElements.get(t);e!==s&&e.prototype instanceof s&&vs(e);});}function bn(s,t){const e=s.__themes;return !e||!t?!1:e.some(i=>i.styles.some(o=>t.some(r=>r.cssText===o.cssText)))}function m$1(s,t,e={}){t=fn(t),window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.registerStyles(s,t,e):ps.push({themeFor:s,styles:t,include:e.include,moduleId:e.moduleId}),s&&Ii.forEach(i=>{if(fs(s,i)&&mn(i)){const o=customElements.get(i);bn(o,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".`),vs(o),gn(o);}});}function ti(){return window.Vaadin&&window.Vaadin.styleModules?window.Vaadin.styleModules.getAllThemes():ps}function yn(s=""){let t=0;return s.startsWith("lumo-")||s.startsWith("material-")?t=1:s.startsWith("vaadin-")&&(t=2),t}function gs(s){const t=[];return s.include&&[].concat(s.include).forEach(e=>{const i=ti().find(o=>o.moduleId===e);i?t.push(...gs(i),...i.styles):console.warn(`Included moduleId ${e} not found in style registry`);},s.styles),t}function xn(s){const t=`${s}-default-theme`,e=ti().filter(i=>i.moduleId!==t&&fs(i.themeFor,s)).map(i=>Mt$1(xe({},i),{styles:[...gs(i),...i.styles],includePriority:yn(i.moduleId)})).sort((i,o)=>o.includePriority-i.includePriority);return e.length>0?e:ti().filter(i=>i.moduleId===t)}const x=s=>class extends xt$1(s){constructor(){super(),ei.add(new WeakRef(this));}static finalize(){if(super.finalize(),this.is&&Ii.add(this.is),this.elementStyles)return;const e=this.prototype._template;!e||ms(this)||_n(this.getStylesForThis(),e);}static finalizeStyles(e){const i=this.getStylesForThis();return e?[...[e].flat(1/0),...i]:i}static getStylesForThis(){const e=s.__themes||[],i=Object.getPrototypeOf(this.prototype),o=(i?i.constructor.__themes:[])||[];this.__themes=[...e,...o,...xn(this.is)];const r=this.__themes.flatMap(n=>n.styles);return r.filter((n,a)=>a===r.lastIndexOf(n))}};/**
6160
6160
  * @license
6161
6161
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6162
6162
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
6163
6163
  */const wn=(s,...t)=>{const e=document.createElement("style");e.id=s,e.textContent=t.map(i=>i.toString()).join(`
6164
- `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e);},ge=(s,...t)=>{wn(`lumo-${s}`,t);};/**
6164
+ `).replace(":host","html"),document.head.insertAdjacentElement("afterbegin",e);},ve=(s,...t)=>{wn(`lumo-${s}`,t);};/**
6165
6165
  * @license
6166
6166
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6167
6167
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -6250,7 +6250,7 @@ var jr=Object.defineProperty,qr=Object.defineProperties;var Yr=Object.getOwnProp
6250
6250
  --lumo-disabled-text-color: GrayText;
6251
6251
  }
6252
6252
  }
6253
- `;ge("color-props",Cn);const En=p$1`
6253
+ `;ve("color-props",Cn);const En=p$1`
6254
6254
  [theme~='dark'] {
6255
6255
  /* Base (background) */
6256
6256
  --lumo-base-color: hsl(214, 35%, 21%);
@@ -6425,7 +6425,7 @@ var jr=Object.defineProperty,qr=Object.defineProperties;var Yr=Object.getOwnProp
6425
6425
  --lumo-icons-upload: '\\ea29';
6426
6426
  --lumo-icons-user: '\\ea2a';
6427
6427
  }
6428
- `;ge("font-icons",An);/**
6428
+ `;ve("font-icons",An);/**
6429
6429
  * @license
6430
6430
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6431
6431
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -6444,7 +6444,7 @@ var jr=Object.defineProperty,qr=Object.defineProperties;var Yr=Object.getOwnProp
6444
6444
  /* For backwards compatibility */
6445
6445
  --lumo-icon-size: var(--lumo-icon-size-m);
6446
6446
  }
6447
- `;ge("sizing-props",kn);/**
6447
+ `;ve("sizing-props",kn);/**
6448
6448
  * @license
6449
6449
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6450
6450
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -6471,7 +6471,7 @@ var jr=Object.defineProperty,qr=Object.defineProperties;var Yr=Object.getOwnProp
6471
6471
  --lumo-space-tall-l: var(--lumo-space-l) calc(var(--lumo-space-l) / 2);
6472
6472
  --lumo-space-tall-xl: var(--lumo-space-xl) calc(var(--lumo-space-xl) / 2);
6473
6473
  }
6474
- `;ge("spacing-props",In);/**
6474
+ `;ve("spacing-props",In);/**
6475
6475
  * @license
6476
6476
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6477
6477
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -6575,7 +6575,7 @@ var jr=Object.defineProperty,qr=Object.defineProperties;var Yr=Object.getOwnProp
6575
6575
  --vaadin-input-field-value-font-size: var(--lumo-font-size-m);
6576
6576
  --vaadin-input-field-value-font-weight: 500;
6577
6577
  }
6578
- `;ge("style-props",Sn);/**
6578
+ `;ve("style-props",Sn);/**
6579
6579
  * @license
6580
6580
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
6581
6581
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -6691,7 +6691,7 @@ var jr=Object.defineProperty,qr=Object.defineProperties;var Yr=Object.getOwnProp
6691
6691
  border-left: none;
6692
6692
  border-right: 2px solid var(--lumo-contrast-30pct);
6693
6693
  }
6694
- `;m$1("",Tn,{moduleId:"lumo-typography"});ge("typography-props",Pn);m$1("vaadin-checkbox",p$1`
6694
+ `;m$1("",Tn,{moduleId:"lumo-typography"});ve("typography-props",Pn);m$1("vaadin-checkbox",p$1`
6695
6695
  :host {
6696
6696
  color: var(--vaadin-checkbox-label-color, var(--lumo-body-text-color));
6697
6697
  font-size: var(--vaadin-checkbox-label-font-size, var(--lumo-font-size-m));
@@ -7011,7 +7011,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7011
7011
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7012
7012
  Code distributed by Google as part of the polymer project is also
7013
7013
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7014
- */let Dn=/(url\()([^)]*)(\))/g,On=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,et$1,O;function Me(s,t){if(s&&On.test(s)||s==="//")return s;if(et$1===void 0){et$1=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",et$1=e.href==="http://a/c%20d";}catch(e){}}if(t||(t=document.baseURI||window.location.href),et$1)try{return new URL(s,t).href}catch(e){return s}return O||(O=document.implementation.createHTMLDocument("temp"),O.base=O.createElement("base"),O.head.appendChild(O.base),O.anchor=O.createElement("a"),O.body.appendChild(O.anchor)),O.base.href=t,O.anchor.href=s,O.anchor.href||s}function Pi(s,t){return s.replace(Dn,function(e,i,o,r){return i+"'"+Me(o.replace(/["']/g,""),t)+"'"+r})}function Ti(s){return s.substring(0,s.lastIndexOf("/")+1)}/**
7014
+ */let Dn=/(url\()([^)]*)(\))/g,On=/(^\/[^\/])|(^#)|(^[\w-\d]*:)/,Ze,O;function ze(s,t){if(s&&On.test(s)||s==="//")return s;if(Ze===void 0){Ze=!1;try{const e=new URL("b","http://a");e.pathname="c%20d",Ze=e.href==="http://a/c%20d";}catch(e){}}if(t||(t=document.baseURI||window.location.href),Ze)try{return new URL(s,t).href}catch(e){return s}return O||(O=document.implementation.createHTMLDocument("temp"),O.base=O.createElement("base"),O.head.appendChild(O.base),O.anchor=O.createElement("a"),O.body.appendChild(O.anchor)),O.base.href=t,O.anchor.href=s,O.anchor.href||s}function Si(s,t){return s.replace(Dn,function(e,i,o,r){return i+"'"+ze(o.replace(/["']/g,""),t)+"'"+r})}function Pi(s){return s.substring(0,s.lastIndexOf("/")+1)}/**
7015
7015
  @license
7016
7016
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7017
7017
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7019,7 +7019,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7019
7019
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7020
7020
  Code distributed by Google as part of the polymer project is also
7021
7021
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7022
- */const bs=!window.ShadyDOM||!window.ShadyDOM.inUse;const zn=bs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const s=new CSSStyleSheet;s.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[s],t.shadowRoot.adoptedStyleSheets[0]===s}catch(s){return !1}})();let Mn=window.Polymer&&window.Polymer.rootPath||Ti(document.baseURI||window.location.href),pt$1=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;let mt$1=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Nn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ys=window.Polymer&&window.Polymer.legacyOptimizations||!1,xs=window.Polymer&&window.Polymer.legacyWarnings||!1,Ln=window.Polymer&&window.Polymer.syncInitialRender||!1,oi=window.Polymer&&window.Polymer.legacyUndefined||!1,Bn=window.Polymer&&window.Polymer.orderedComputed||!1,yo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Fn=window.Polymer&&window.Polymer.fastDomIf||!1,xo=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;let Vn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
7022
+ */const bs=!window.ShadyDOM||!window.ShadyDOM.inUse;const zn=bs&&"adoptedStyleSheets"in Document.prototype&&"replaceSync"in CSSStyleSheet.prototype&&(()=>{try{const s=new CSSStyleSheet;s.replaceSync("");const t=document.createElement("div");return t.attachShadow({mode:"open"}),t.shadowRoot.adoptedStyleSheets=[s],t.shadowRoot.adoptedStyleSheets[0]===s}catch(s){return !1}})();let Mn=window.Polymer&&window.Polymer.rootPath||Pi(document.baseURI||window.location.href),ut$1=window.Polymer&&window.Polymer.sanitizeDOMValue||void 0;let pt$1=window.Polymer&&window.Polymer.strictTemplatePolicy||!1,Nn=window.Polymer&&window.Polymer.allowTemplateFromDomModule||!1,ys=window.Polymer&&window.Polymer.legacyOptimizations||!1,xs=window.Polymer&&window.Polymer.legacyWarnings||!1,Ln=window.Polymer&&window.Polymer.syncInitialRender||!1,ii=window.Polymer&&window.Polymer.legacyUndefined||!1,Bn=window.Polymer&&window.Polymer.orderedComputed||!1,yo=window.Polymer&&window.Polymer.removeNestedTemplates||!1,Fn=window.Polymer&&window.Polymer.fastDomIf||!1,xo=window.Polymer&&window.Polymer.suppressTemplateNotifications||!1;let Vn=window.Polymer&&window.Polymer.useAdoptedStyleSheetsWithBuiltCSS||!1;/**
7023
7023
  @license
7024
7024
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7025
7025
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7035,7 +7035,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7035
7035
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7036
7036
  Code distributed by Google as part of the polymer project is also
7037
7037
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7038
- */let Di={},ws={};function wo(s,t){Di[s]=ws[s.toLowerCase()]=t;}function Co(s){return Di[s]||ws[s.toLowerCase()]}function $n(s){s.querySelector("style")&&console.warn("dom-module %s has style outside template",s.id);}class Fe extends HTMLElement{static get observedAttributes(){return ["id"]}static import(t,e){if(t){let i=Co(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,o){e!==i&&this.register();}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=Me(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Ti(e);}return this.__assetpath}register(t){if(t=t||this.id,t){if(mt$1&&Co(t)!==void 0)throw wo(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,wo(t,this),$n(this);}}}Fe.prototype.modules=Di;customElements.define("dom-module",Fe);/**
7038
+ */let Ti={},ws={};function wo(s,t){Ti[s]=ws[s.toLowerCase()]=t;}function Co(s){return Ti[s]||ws[s.toLowerCase()]}function $n(s){s.querySelector("style")&&console.warn("dom-module %s has style outside template",s.id);}class Be extends HTMLElement{static get observedAttributes(){return ["id"]}static import(t,e){if(t){let i=Co(t);return i&&e?i.querySelector(e):i}return null}attributeChangedCallback(t,e,i,o){e!==i&&this.register();}get assetpath(){if(!this.__assetpath){const t=window.HTMLImports&&HTMLImports.importForElement?HTMLImports.importForElement(this)||document:this.ownerDocument,e=ze(this.getAttribute("assetpath")||"",t.baseURI);this.__assetpath=Pi(e);}return this.__assetpath}register(t){if(t=t||this.id,t){if(pt$1&&Co(t)!==void 0)throw wo(t,null),new Error(`strictTemplatePolicy: dom-module ${t} re-registered`);this.id=t,wo(t,this),$n(this);}}}Be.prototype.modules=Ti;customElements.define("dom-module",Be);/**
7039
7039
  @license
7040
7040
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7041
7041
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7043,7 +7043,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7043
7043
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7044
7044
  Code distributed by Google as part of the polymer project is also
7045
7045
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7046
- */const Hn="link[rel=import][type~=css]",Un="include",Eo="shady-unscoped";function Cs(s){return Fe.import(s)}function Ao(s){let t=s.body?s.body:s;const e=Pi(t.textContent,s.baseURI),i=document.createElement("style");return i.textContent=e,i}function Wn(s){const t=s.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...jn(t[i]));return e}function jn(s){const t=Cs(s);if(!t)return console.warn("Could not find style data in module named",s),[];if(t._styles===void 0){const e=[];e.push(...As(t));const i=t.querySelector("template");i&&e.push(...Es(i,t.assetpath)),t._styles=e;}return t._styles}function Es(s,t){if(!s._styles){const e=[],i=s.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let r=i[o],n=r.getAttribute(Un);n&&e.push(...Wn(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(r.textContent=Pi(r.textContent,t)),e.push(r);}s._styles=e;}return s._styles}function qn(s){let t=Cs(s);return t?As(t):[]}function As(s){const t=[],e=s.querySelectorAll(Hn);for(let i=0;i<e.length;i++){let o=e[i];if(o.import){const r=o.import,n=o.hasAttribute(Eo);if(n&&!r._unscopedStyle){const a=Ao(r);a.setAttribute(Eo,""),r._unscopedStyle=a;}else r._style||(r._style=Ao(r));t.push(n?r._unscopedStyle:r._style);}}return t}/**
7046
+ */const Hn="link[rel=import][type~=css]",Un="include",Eo="shady-unscoped";function Cs(s){return Be.import(s)}function Ao(s){let t=s.body?s.body:s;const e=Si(t.textContent,s.baseURI),i=document.createElement("style");return i.textContent=e,i}function Wn(s){const t=s.trim().split(/\s+/),e=[];for(let i=0;i<t.length;i++)e.push(...jn(t[i]));return e}function jn(s){const t=Cs(s);if(!t)return console.warn("Could not find style data in module named",s),[];if(t._styles===void 0){const e=[];e.push(...As(t));const i=t.querySelector("template");i&&e.push(...Es(i,t.assetpath)),t._styles=e;}return t._styles}function Es(s,t){if(!s._styles){const e=[],i=s.content.querySelectorAll("style");for(let o=0;o<i.length;o++){let r=i[o],n=r.getAttribute(Un);n&&e.push(...Wn(n).filter(function(a,l,d){return d.indexOf(a)===l})),t&&(r.textContent=Si(r.textContent,t)),e.push(r);}s._styles=e;}return s._styles}function qn(s){let t=Cs(s);return t?As(t):[]}function As(s){const t=[],e=s.querySelectorAll(Hn);for(let i=0;i<e.length;i++){let o=e[i];if(o.import){const r=o.import,n=o.hasAttribute(Eo);if(n&&!r._unscopedStyle){const a=Ao(r);a.setAttribute(Eo,""),r._unscopedStyle=a;}else r._style||(r._style=Ao(r));t.push(n?r._unscopedStyle:r._style);}}return t}/**
7047
7047
  @license
7048
7048
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7049
7049
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7059,7 +7059,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7059
7059
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7060
7060
  Code distributed by Google as part of the polymer project is also
7061
7061
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7062
- */function si(s){return s.indexOf(".")>=0}function se(s){let t=s.indexOf(".");return t===-1?s:s.slice(0,t)}function ks(s,t){return s.indexOf(t+".")===0}function Ve(s,t){return t.indexOf(s+".")===0}function Re(s,t,e){return t+e.slice(s.length)}function Yn(s,t){return s===t||ks(s,t)||Ve(s,t)}function Pe(s){if(Array.isArray(s)){let t=[];for(let e=0;e<s.length;e++){let i=s[e].toString().split(".");for(let o=0;o<i.length;o++)t.push(i[o]);}return t.join(".")}else return s}function Is(s){return Array.isArray(s)?Pe(s).split("."):s.toString().split(".")}function D$1(s,t,e){let i=s,o=Is(t);for(let r=0;r<o.length;r++){if(!i)return;let n=o[r];i=i[n];}return e&&(e.path=o.join(".")),i}function ko(s,t,e){let i=s,o=Is(t),r=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let a=o[n];if(i=i[a],!i)return}i[r]=e;}else i[t]=e;return o.join(".")}/**
7062
+ */function oi(s){return s.indexOf(".")>=0}function oe(s){let t=s.indexOf(".");return t===-1?s:s.slice(0,t)}function ks(s,t){return s.indexOf(t+".")===0}function Fe(s,t){return t.indexOf(s+".")===0}function Ve(s,t,e){return t+e.slice(s.length)}function Yn(s,t){return s===t||ks(s,t)||Fe(s,t)}function Se(s){if(Array.isArray(s)){let t=[];for(let e=0;e<s.length;e++){let i=s[e].toString().split(".");for(let o=0;o<i.length;o++)t.push(i[o]);}return t.join(".")}else return s}function Is(s){return Array.isArray(s)?Se(s).split("."):s.toString().split(".")}function D$1(s,t,e){let i=s,o=Is(t);for(let r=0;r<o.length;r++){if(!i)return;let n=o[r];i=i[n];}return e&&(e.path=o.join(".")),i}function ko(s,t,e){let i=s,o=Is(t),r=o[o.length-1];if(o.length>1){for(let n=0;n<o.length-1;n++){let a=o[n];if(i=i[a],!i)return}i[r]=e;}else i[t]=e;return o.join(".")}/**
7063
7063
  @license
7064
7064
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7065
7065
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7067,7 +7067,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7067
7067
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7068
7068
  Code distributed by Google as part of the polymer project is also
7069
7069
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7070
- */const ft$1={},Kn=/-[a-z]/g,Gn=/([A-Z])/g;function Ss(s){return ft$1[s]||(ft$1[s]=s.indexOf("-")<0?s:s.replace(Kn,t=>t[1].toUpperCase()))}function Ct$1(s){return ft$1[s]||(ft$1[s]=s.replace(Gn,"-$1").toLowerCase())}/**
7070
+ */const mt$1={},Kn=/-[a-z]/g,Gn=/([A-Z])/g;function Ss(s){return mt$1[s]||(mt$1[s]=s.indexOf("-")<0?s:s.replace(Kn,t=>t[1].toUpperCase()))}function wt$1(s){return mt$1[s]||(mt$1[s]=s.replace(Gn,"-$1").toLowerCase())}/**
7071
7071
  @license
7072
7072
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7073
7073
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7075,7 +7075,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7075
7075
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7076
7076
  Code distributed by Google as part of the polymer project is also
7077
7077
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7078
- */let Xn=0,Ps=0,he=[],Jn=0,ri=!1,Ts=document.createTextNode("");new window.MutationObserver(Qn).observe(Ts,{characterData:!0});function Qn(){ri=!1;const s=he.length;for(let t=0;t<s;t++){let e=he[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}he.splice(0,s),Ps+=s;}const Zn={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},Ds={run(s){return ri||(ri=!0,Ts.textContent=Jn++),he.push(s),Xn++},cancel(s){const t=s-Ps;if(t>=0){if(!he[t])throw new Error("invalid async handle: "+s);he[t]=null;}}};/**
7078
+ */let Xn=0,Ps=0,ce=[],Jn=0,si=!1,Ts=document.createTextNode("");new window.MutationObserver(Qn).observe(Ts,{characterData:!0});function Qn(){si=!1;const s=ce.length;for(let t=0;t<s;t++){let e=ce[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}ce.splice(0,s),Ps+=s;}const Zn={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},Ds={run(s){return si||(si=!0,Ts.textContent=Jn++),ce.push(s),Xn++},cancel(s){const t=s-Ps;if(t>=0){if(!ce[t])throw new Error("invalid async handle: "+s);ce[t]=null;}}};/**
7079
7079
  @license
7080
7080
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7081
7081
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7091,7 +7091,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7091
7091
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7092
7092
  Code distributed by Google as part of the polymer project is also
7093
7093
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7094
- */const zs={};let tt$1=HTMLElement.prototype;for(;tt$1;){let s=Object.getOwnPropertyNames(tt$1);for(let t=0;t<s.length;t++)zs[s[t]]=!0;tt$1=Object.getPrototypeOf(tt$1);}const ta=window.trustedTypes?s=>trustedTypes.isHTML(s)||trustedTypes.isScript(s)||trustedTypes.isScriptURL(s):()=>!1;function ia(s,t){if(!zs[t]){let e=s[t];e!==void 0&&(s.__data?s._setPendingProperty(t,e):(s.__dataProto?s.hasOwnProperty(JSCompiler_renameProperty("__dataProto",s))||(s.__dataProto=Object.create(s.__dataProto)):s.__dataProto={},s.__dataProto[t]=e));}}const oa=w$1(s=>{const t=Os(s);class e extends t{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let r=0;r<o.length;r++)this.prototype._createPropertyAccessor(Ss(o[r]));}static attributeNameForProperty(o){return Ct$1(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties();}_initializeProtoProperties(o){for(let r in o)this._setProperty(r,o[r]);}_ensureAttribute(o,r){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,r,o);}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(ta(o))return o;try{return JSON.stringify(o)}catch(r){return ""}}default:return super._serializeValue(o)}}_deserializeValue(o,r){let n;switch(r){case Object:try{n=JSON.parse(o);}catch(a){n=o;}break;case Array:try{n=JSON.parse(o);}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`);}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,r);break}return n}_definePropertyAccessor(o,r){ia(this,o),super._definePropertyAccessor(o,r);}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return !!(this.__dataPending&&o in this.__dataPending)}}return e});/**
7094
+ */const zs={};let et$1=HTMLElement.prototype;for(;et$1;){let s=Object.getOwnPropertyNames(et$1);for(let t=0;t<s.length;t++)zs[s[t]]=!0;et$1=Object.getPrototypeOf(et$1);}const ta=window.trustedTypes?s=>trustedTypes.isHTML(s)||trustedTypes.isScript(s)||trustedTypes.isScriptURL(s):()=>!1;function ia(s,t){if(!zs[t]){let e=s[t];e!==void 0&&(s.__data?s._setPendingProperty(t,e):(s.__dataProto?s.hasOwnProperty(JSCompiler_renameProperty("__dataProto",s))||(s.__dataProto=Object.create(s.__dataProto)):s.__dataProto={},s.__dataProto[t]=e));}}const oa=w$1(s=>{const t=Os(s);class e extends t{static createPropertiesForAttributes(){let o=this.observedAttributes;for(let r=0;r<o.length;r++)this.prototype._createPropertyAccessor(Ss(o[r]));}static attributeNameForProperty(o){return wt$1(o)}_initializeProperties(){this.__dataProto&&(this._initializeProtoProperties(this.__dataProto),this.__dataProto=null),super._initializeProperties();}_initializeProtoProperties(o){for(let r in o)this._setProperty(r,o[r]);}_ensureAttribute(o,r){const n=this;n.hasAttribute(o)||this._valueToNodeAttribute(n,r,o);}_serializeValue(o){switch(typeof o){case"object":if(o instanceof Date)return o.toString();if(o){if(ta(o))return o;try{return JSON.stringify(o)}catch(r){return ""}}default:return super._serializeValue(o)}}_deserializeValue(o,r){let n;switch(r){case Object:try{n=JSON.parse(o);}catch(a){n=o;}break;case Array:try{n=JSON.parse(o);}catch(a){n=null,console.warn(`Polymer::Attributes: couldn't decode Array as JSON: ${o}`);}break;case Date:n=isNaN(o)?String(o):Number(o),n=new Date(n);break;default:n=super._deserializeValue(o,r);break}return n}_definePropertyAccessor(o,r){ia(this,o),super._definePropertyAccessor(o,r);}_hasAccessor(o){return this.__dataHasAccessor&&this.__dataHasAccessor[o]}_isPropertyPending(o){return !!(this.__dataPending&&o in this.__dataPending)}}return e});/**
7095
7095
  @license
7096
7096
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7097
7097
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7109,7 +7109,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7109
7109
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
7110
7110
  * Google as part of the polymer project is also subject to an additional IP
7111
7111
  * rights grant found at http://polymer.github.io/PATENTS.txt
7112
- */let $e=0;const He=[],y$1={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ns="__computeInfo",ma=/[A-Z]/;function Rt(s,t,e){let i=s[t];if(!i)i=s[t]={};else if(!s.hasOwnProperty(t)&&(i=s[t]=Object.create(s[t]),e))for(let o in i){let r=i[o],n=i[o]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a];}return i}function Te(s,t,e,i,o,r){if(t){let n=!1;const a=$e++;for(let l in e){let d=o?se(l):l,c=t[d];if(c)for(let h=0,u=c.length,f;h<u&&(f=c[h]);h++)(!f.info||f.info.lastRun!==a)&&(!o||Oi(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(s,l,e,i,f.info,o,r),n=!0);}return n}return !1}function fa(s,t,e,i,o,r,n,a){let l=!1,d=n?se(i):i,c=t[d];if(c)for(let h=0,u=c.length,f;h<u&&(f=c[h]);h++)(!f.info||f.info.lastRun!==e)&&(!n||Oi(i,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(s,i,o,r,f.info,n,a),l=!0);return l}function Oi(s,t){if(t){let e=t.name;return e==s||!!(t.structured&&ks(e,s))||!!(t.wildcard&&Ve(e,s))}else return !0}function Po(s,t,e,i,o){let r=typeof o.method=="string"?s[o.method]:o.method,n=o.property;r?r.call(s,s.__data[n],i[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined");}function _a(s,t,e,i,o){let r=s[y$1.NOTIFY],n,a=$e++;for(let d in t)t[d]&&(r&&fa(s,r,a,d,e,i,o)||o&&va(s,d,e))&&(n=!0);let l;n&&(l=s.__dataHost)&&l._invalidateProperties&&l._invalidateProperties();}function va(s,t,e){let i=se(t);if(i!==t){let o=Ct$1(i)+"-changed";return Ls(s,o,e[t],t),!0}return !1}function Ls(s,t,e,i){let o={value:e,queueProperty:!0};i&&(o.path=i),I$1(s).dispatchEvent(new CustomEvent(t,{detail:o}));}function ga(s,t,e,i,o,r){let a=(r?se(t):t)!=t?t:null,l=a?D$1(s,a):s.__data[t];a&&l===void 0&&(l=e[t]),Ls(s,o.eventName,l,a);}function ba(s,t,e,i,o){let r,n=s.detail,a=n&&n.path;a?(i=Re(e,i,a),r=n&&n.value):r=s.currentTarget[e],r=o?!r:r,(!t[y$1.READ_ONLY]||!t[y$1.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties();}function ya(s,t,e,i,o){let r=s.__data[t];pt$1&&(r=pt$1(r,o.attrName,"attribute",s)),s._propertyToAttribute(t,o.attrName,r);}function xa(s,t,e,i){let o=s[y$1.COMPUTE];if(o)if(Bn){$e++;const r=Ca(s),n=[];for(let l in t)To(l,o,n,r,i);let a;for(;a=n.shift();)Bs(s,"",t,e,a)&&To(a.methodInfo,o,n,r,i);Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),s.__dataPending=null;}else {let r=t;for(;Te(s,o,r,e,i);)Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),r=s.__dataPending,s.__dataPending=null;}}const wa=(s,t,e)=>{let i=0,o=t.length-1,r=-1;for(;i<=o;){const n=i+o>>1,a=e.get(t[n].methodInfo)-e.get(s.methodInfo);if(a<0)i=n+1;else if(a>0)o=n-1;else {r=n;break}}r<0&&(r=o+1),t.splice(r,0,s);},To=(s,t,e,i,o)=>{const r=o?se(s):s,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==$e&&(!o||Oi(s,l.trigger))&&(l.info.lastRun=$e,wa(l.info,e,i));}};function Ca(s){let t=s.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=s[y$1.COMPUTE];let{counts:i,ready:o,total:r}=Ea(s),n;for(;n=o.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&o.push(d);});}r!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=t;}return t}function Ea(s){const t=s[Ns],e={},i=s[y$1.COMPUTE],o=[];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]||o.push(n);return {counts:e,ready:o,total:r}}function Bs(s,t,e,i,o){let r=ni(s,t,e,i,o);if(r===He)return !1;let n=o.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[n]?s._setPendingProperty(n,r,!0):(s[n]=r,!1)}function Aa(s,t,e){let i=s.__dataLinkedPaths;if(i){let o;for(let r in i){let n=i[r];Ve(r,t)?(o=Re(r,n,t),s._setPendingPropertyOrPath(o,e,!0,!0)):Ve(n,t)&&(o=Re(n,r,t),s._setPendingPropertyOrPath(o,e,!0,!0));}}}function $t$1(s,t,e,i,o,r,n){e.bindings=e.bindings||[];let a={kind:i,target:o,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),Ta(a)){let{event:d,negate:c}=a.parts[0];a.listenerEvent=d||Ct$1(o)+"-changed",a.listenerNegate=c;}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let c=a.parts[d];c.compoundIndex=d,ka(s,t,a,c,l);}}function ka(s,t,e,i,o){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:o,binding:e,part:i,evaluator:s};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=Vs(l),l.wildcard=!0),s._addTemplatePropertyEffect(t,l.rootProperty,{fn:Ia,info:n,trigger:l});}}}function Ia(s,t,e,i,o,r,n){let a=n[o.index],l=o.binding,d=o.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[t];t=Re(d.source,l.target,t),a._setPendingPropertyOrPath(t,c,!1,!0)&&s._enqueueClient(a);}else {let c=o.evaluator._evaluateBinding(s,d,t,e,i,r);c!==He&&Sa(s,a,l,d,c);}}function Sa(s,t,e,i,o){if(o=Pa(t,o,e,i),pt$1&&(o=pt$1(o,e.target,e.kind,t)),e.kind=="attribute")s._valueToNodeAttribute(t,o,e.target);else {let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[y$1.READ_ONLY]||!t[y$1.READ_ONLY][r])&&t._setPendingProperty(r,o)&&s._enqueueClient(t):s._setUnmanagedPropertyToNode(t,r,o);}}function Pa(s,t,e,i){if(e.isCompound){let o=s.__dataCompoundStorage[e.target];o[i.compoundIndex]=t,t=o.join("");}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(t=t==null?"":t),t}function Ta(s){return !!s.target&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function Da(s,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let o=0;o<i.length;o++){let r=i[o],n=e[o],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];Oa(n,d),za(n,s,d);}n.__dataHost=s;}}function Oa(s,t){if(t.isCompound){let e=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),i=t.parts,o=new Array(i.length);for(let n=0;n<i.length;n++)o[n]=i[n].literal;let r=t.target;e[r]=o,t.literal&&t.kind=="property"&&(r==="className"&&(s=I$1(s)),s[r]=t.literal);}}function za(s,t,e){if(e.listenerEvent){let i=e.parts[0];s.addEventListener(e.listenerEvent,function(o){ba(o,t,e.target,i.source,i.negate);});}}function Do(s,t,e,i,o,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:o,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||s._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&s._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function ni(s,t,e,i,o){let r=s._methodHost||s,n=r[o.methodName];if(n){let a=s._marshalArgs(o.args,t,e);return a===He?He:n.apply(r,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined");}const Ma=[],Fs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Na="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",La="(?:'(?:[^'\\\\]|\\\\.)*')",Ba='(?:"(?:[^"\\\\]|\\\\.)*")',Fa="(?:"+La+"|"+Ba+")",Oo="(?:("+Fs+"|"+Na+"|"+Fa+")\\s*)",Va="(?:"+Oo+"(?:,\\s*"+Oo+")*)",Ra="(?:\\(\\s*(?:"+Va+"?)\\)\\s*)",$a="("+Fs+"\\s*"+Ra+"?)",Ha="(\\[\\[|{{)\\s*",Ua="(?:]]|}})",Wa="(?:(!)\\s*)?",ja=Ha+Wa+$a+Ua,zo=new RegExp(ja,"g");function Mo(s){let t="";for(let e=0;e<s.length;e++){let i=s[e].literal;t+=i||"";}return t}function Ht$1(s){let t=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Ma};if(t[2].trim()){let o=t[2].replace(/\\,/g,"&comma;").split(",");return qa(o,i)}else return i}return null}function qa(s,t){return t.args=s.map(function(e){let i=Vs(e);return i.literal||(t.static=!1),i},this),t}function Vs(s){let t=s.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=se(t),e.structured=si(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function No(s,t,e){let i=D$1(s,e);return i===void 0&&(i=t[e]),i}function Rs(s,t,e,i){const o={indexSplices:i};oi&&!s._overrideLegacyUndefined&&(t.splices=o),s.notifyPath(e+".splices",o),s.notifyPath(e+".length",t.length),oi&&!s._overrideLegacyUndefined&&(o.indexSplices=[]);}function Ae(s,t,e,i,o,r){Rs(s,t,e,[{index:i,addedCount:o,removed:r,object:t,type:"splice"}]);}function Ya(s){return s[0].toUpperCase()+s.substring(1)}const zi=w$1(s=>{const t=pa(oa(s));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0;}get PROPERTY_EFFECT_TYPES(){return y$1}_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(ke.length){let o=ke[ke.length-1];o._enqueueClient(this),this.__dataHost=o;}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={};}_initializeInstanceProperties(o){let r=this[y$1.READ_ONLY];for(let n in o)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n]);}_addPropertyEffect(o,r,n){this._createPropertyAccessor(o,r==y$1.READ_ONLY);let a=Rt(this,r,!0)[o];a||(a=this[r][o]=[]),a.push(n);}_removePropertyEffect(o,r,n){let a=Rt(this,r,!0)[o],l=a.indexOf(n);l>=0&&a.splice(l,1);}_hasPropertyEffect(o,r){let n=this[r];return !!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,y$1.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,y$1.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,y$1.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,y$1.COMPUTE)}_setPendingPropertyOrPath(o,r,n,a){if(a||se(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=D$1(this,o);if(o=ko(this,o,r),!o||!super._shouldPropertyChange(o,r,l))return !1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,r,n))return Aa(this,o,r),!0}else {if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,r,n);this[o]=r;}return !1}_setUnmanagedPropertyToNode(o,r,n){(n!==o[r]||typeof n=="object")&&(r==="className"&&(o=I$1(o)),o[r]=n);}_setPendingProperty(o,r,n){let a=this.__dataHasPaths&&si(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,r,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=r:this.__data[o]=r,this.__dataPending[o]=r,(a||this[y$1.NOTIFY]&&this[y$1.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,r){this._setPendingProperty(o,r,!0)&&this._invalidateProperties();}_invalidateProperties(){this.__dataReady&&this._flushProperties();}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o);}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0);}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let r=0;r<o.length;r++){let n=o[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties();}}}_readyClients(){this.__enableOrFlushClients();}setProperties(o,r){for(let n in o)(r||!this[y$1.READ_ONLY]||!this[y$1.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties();}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties();}_propertiesChanged(o,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;xa(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Te(this,this[y$1.REFLECT],r,n,a),Te(this,this[y$1.OBSERVE],r,n,a),l&&_a(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={});}_propagatePropertyChanges(o,r,n){this[y$1.PROPAGATE]&&Te(this,this[y$1.PROPAGATE],o,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,r,n);}_runEffectsForTemplate(o,r,n,a){const l=(d,c)=>{Te(this,o.propertyEffects,d,n,c,o.nodeList);for(let h=o.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,c);};o.runEffects?o.runEffects(l,r,a):l(r,a);}linkPaths(o,r){o=Pe(o),r=Pe(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=r;}unlinkPaths(o){o=Pe(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o];}notifySplices(o,r){let n={path:""},a=D$1(this,o,n);Rs(this,a,n.path,r);}get(o,r){return D$1(r||this,o)}set(o,r,n){n?ko(n,o,r):(!this[y$1.READ_ONLY]||!this[y$1.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,r,!0)&&this._invalidateProperties();}push(o,...r){let n={path:""},a=D$1(this,o,n),l=a.length,d=a.push(...r);return r.length&&Ae(this,a,n.path,l,r.length,[]),d}pop(o){let r={path:""},n=D$1(this,o,r),a=!!n.length,l=n.pop();return a&&Ae(this,n,r.path,n.length,0,[l]),l}splice(o,r,n,...a){let l={path:""},d=D$1(this,o,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let c;return arguments.length===2?c=d.splice(r):c=d.splice(r,n,...a),(a.length||c.length)&&Ae(this,d,l.path,r,a.length,c),c}shift(o){let r={path:""},n=D$1(this,o,r),a=!!n.length,l=n.shift();return a&&Ae(this,n,r.path,0,0,[l]),l}unshift(o,...r){let n={path:""},a=D$1(this,o,n),l=a.unshift(...r);return r.length&&Ae(this,a,n.path,0,r.length,[]),l}notifyPath(o,r){let n;if(arguments.length==1){let a={path:""};r=D$1(this,o,a),n=a.path;}else Array.isArray(o)?n=Pe(o):n=o;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties();}_createReadOnlyProperty(o,r){this._addPropertyEffect(o,y$1.READ_ONLY),r&&(this["_set"+Ya(o)]=function(n){this._setProperty(o,n);});}_createPropertyObserver(o,r,n){let a={property:o,method:r,dynamicFn:!!n};this._addPropertyEffect(o,y$1.OBSERVE,{fn:Po,info:a,trigger:{name:o}}),n&&this._addPropertyEffect(r,y$1.OBSERVE,{fn:Po,info:a,trigger:{name:r}});}_createMethodObserver(o,r){let n=Ht$1(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");Do(this,n,y$1.OBSERVE,ni,null,r);}_createNotifyingProperty(o){this._addPropertyEffect(o,y$1.NOTIFY,{fn:ga,info:{eventName:Ct$1(o)+"-changed",property:o}});}_createReflectedProperty(o){let r=this.constructor.attributeNameForProperty(o);r[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,y$1.REFLECT,{fn:ya,info:{attrName:r}});}_createComputedProperty(o,r,n){let a=Ht$1(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=Do(this,a,y$1.COMPUTE,Bs,o,n);Rt(this,Ns)[o]=l;}_marshalArgs(o,r,n){const a=this.__data,l=[];for(let d=0,c=o.length;d<c;d++){let{name:h,structured:u,wildcard:f,value:_,literal:S}=o[d];if(!S)if(f){const P=Ve(h,r),E=No(a,n,P?r:h);_={path:P?r:h,value:E,base:P?D$1(a,h):E};}else _=u?No(a,n,h):a[h];if(oi&&!this._overrideLegacyUndefined&&_===void 0&&o.length>1)return He;l[d]=_;}return l}static addPropertyEffect(o,r,n){this.prototype._addPropertyEffect(o,r,n);}static createPropertyObserver(o,r,n){this.prototype._createPropertyObserver(o,r,n);}static createMethodObserver(o,r){this.prototype._createMethodObserver(o,r);}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o);}static createReadOnlyProperty(o,r){this.prototype._createReadOnlyProperty(o,r);}static createReflectedProperty(o){this.prototype._createReflectedProperty(o);}static createComputedProperty(o,r,n){this.prototype._createComputedProperty(o,r,n);}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,r){let n=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else {const l=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n;}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,r,n){let a=o.hostProps=o.hostProps||{};a[r]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[r]=l[r]||[]).push(n);}_stampTemplate(o,r){r=r||this._bindTemplate(o,!0),ke.push(this);let n=super._stampTemplate(o,r);if(ke.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,Da(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const r=o.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let c=0;c<d.length;c++){let h=d[c];I$1(I$1(h).parentNode).removeChild(h);}}static _parseTemplateNode(o,r,n){let a=t._parseTemplateNode.call(this,o,r,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,r);l&&(o.textContent=Mo(l)||" ",$t$1(this,r,n,"text","textContent",l),a=!0);}return a}static _parseTemplateNodeAttribute(o,r,n,a,l){let d=this._parseBindings(l,r);if(d){let c=a,h="property";ma.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let u=Mo(d);return u&&h=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(u+=" "+o.getAttribute(a)),o.setAttribute(a,u)),h=="attribute"&&c=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&c==="value"&&o.setAttribute(c,""),o.removeAttribute(c),h==="property"&&(a=Ss(a)),$t$1(this,r,n,h,a,d,u),!0}else return t._parseTemplateNodeAttribute.call(this,o,r,n,a,l)}static _parseTemplateNestedTemplate(o,r,n){let a=t._parseTemplateNestedTemplate.call(this,o,r,n);const l=o.parentNode,d=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";yo&&(c||h)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let u=d.hostProps;if(Fn&&c)u&&(r.hostProps=Object.assign(r.hostProps||{},u),yo||(n.parentInfo.noted=!0));else {let f="{";for(let _ in u){let S=[{mode:f,source:_,dependencies:[_],hostProp:!0}];$t$1(this,r,n,"property","_host_"+_,S);}}return a}static _parseBindings(o,r){let n=[],a=0,l;for(;(l=zo.exec(o))!==null;){l.index>a&&n.push({literal:o.slice(a,l.index)});let d=l[1][0],c=!!l[2],h=l[3].trim(),u=!1,f="",_=-1;d=="{"&&(_=h.indexOf("::"))>0&&(f=h.substring(_+2),h=h.substring(0,_),u=!0);let S=Ht$1(h),P=[];if(S){let{args:E,methodName:C}=S;for(let xe=0;xe<E.length;xe++){let J=E[xe];J.literal||P.push(J);}let W=r.dynamicFns;(W&&W[C]||S.static)&&(P.push(C),S.dynamicFn=!0);}else P.push(h);n.push({source:h,mode:d,negate:c,customEvent:u,signature:S,dependencies:P,event:f}),a=zo.lastIndex;}if(a&&a<o.length){let d=o.substring(a);d&&n.push({literal:d});}return n.length?n:null}static _evaluateBinding(o,r,n,a,l,d){let c;return r.signature?c=ni(o,n,a,l,r.signature):n!=r.source?c=D$1(o,r.source):d&&si(n)?c=D$1(o,n):c=o.__data[n],r.negate&&(c=!c),c}}return e}),ke=[];/**
7112
+ */let Re=0;const $e=[],y$1={COMPUTE:"__computeEffects",REFLECT:"__reflectEffects",NOTIFY:"__notifyEffects",PROPAGATE:"__propagateEffects",OBSERVE:"__observeEffects",READ_ONLY:"__readOnly"},Ns="__computeInfo",ma=/[A-Z]/;function Vt(s,t,e){let i=s[t];if(!i)i=s[t]={};else if(!s.hasOwnProperty(t)&&(i=s[t]=Object.create(s[t]),e))for(let o in i){let r=i[o],n=i[o]=Array(r.length);for(let a=0;a<r.length;a++)n[a]=r[a];}return i}function Pe(s,t,e,i,o,r){if(t){let n=!1;const a=Re++;for(let l in e){let d=o?oe(l):l,c=t[d];if(c)for(let h=0,u=c.length,f;h<u&&(f=c[h]);h++)(!f.info||f.info.lastRun!==a)&&(!o||Di(l,f.trigger))&&(f.info&&(f.info.lastRun=a),f.fn(s,l,e,i,f.info,o,r),n=!0);}return n}return !1}function fa(s,t,e,i,o,r,n,a){let l=!1,d=n?oe(i):i,c=t[d];if(c)for(let h=0,u=c.length,f;h<u&&(f=c[h]);h++)(!f.info||f.info.lastRun!==e)&&(!n||Di(i,f.trigger))&&(f.info&&(f.info.lastRun=e),f.fn(s,i,o,r,f.info,n,a),l=!0);return l}function Di(s,t){if(t){let e=t.name;return e==s||!!(t.structured&&ks(e,s))||!!(t.wildcard&&Fe(e,s))}else return !0}function Po(s,t,e,i,o){let r=typeof o.method=="string"?s[o.method]:o.method,n=o.property;r?r.call(s,s.__data[n],i[n]):o.dynamicFn||console.warn("observer method `"+o.method+"` not defined");}function _a(s,t,e,i,o){let r=s[y$1.NOTIFY],n,a=Re++;for(let d in t)t[d]&&(r&&fa(s,r,a,d,e,i,o)||o&&va(s,d,e))&&(n=!0);let l;n&&(l=s.__dataHost)&&l._invalidateProperties&&l._invalidateProperties();}function va(s,t,e){let i=oe(t);if(i!==t){let o=wt$1(i)+"-changed";return Ls(s,o,e[t],t),!0}return !1}function Ls(s,t,e,i){let o={value:e,queueProperty:!0};i&&(o.path=i),I$1(s).dispatchEvent(new CustomEvent(t,{detail:o}));}function ga(s,t,e,i,o,r){let a=(r?oe(t):t)!=t?t:null,l=a?D$1(s,a):s.__data[t];a&&l===void 0&&(l=e[t]),Ls(s,o.eventName,l,a);}function ba(s,t,e,i,o){let r,n=s.detail,a=n&&n.path;a?(i=Ve(e,i,a),r=n&&n.value):r=s.currentTarget[e],r=o?!r:r,(!t[y$1.READ_ONLY]||!t[y$1.READ_ONLY][i])&&t._setPendingPropertyOrPath(i,r,!0,!!a)&&(!n||!n.queueProperty)&&t._invalidateProperties();}function ya(s,t,e,i,o){let r=s.__data[t];ut$1&&(r=ut$1(r,o.attrName,"attribute",s)),s._propertyToAttribute(t,o.attrName,r);}function xa(s,t,e,i){let o=s[y$1.COMPUTE];if(o)if(Bn){Re++;const r=Ca(s),n=[];for(let l in t)To(l,o,n,r,i);let a;for(;a=n.shift();)Bs(s,"",t,e,a)&&To(a.methodInfo,o,n,r,i);Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),s.__dataPending=null;}else {let r=t;for(;Pe(s,o,r,e,i);)Object.assign(e,s.__dataOld),Object.assign(t,s.__dataPending),r=s.__dataPending,s.__dataPending=null;}}const wa=(s,t,e)=>{let i=0,o=t.length-1,r=-1;for(;i<=o;){const n=i+o>>1,a=e.get(t[n].methodInfo)-e.get(s.methodInfo);if(a<0)i=n+1;else if(a>0)o=n-1;else {r=n;break}}r<0&&(r=o+1),t.splice(r,0,s);},To=(s,t,e,i,o)=>{const r=o?oe(s):s,n=t[r];if(n)for(let a=0;a<n.length;a++){const l=n[a];l.info.lastRun!==Re&&(!o||Di(s,l.trigger))&&(l.info.lastRun=Re,wa(l.info,e,i));}};function Ca(s){let t=s.constructor.__orderedComputedDeps;if(!t){t=new Map;const e=s[y$1.COMPUTE];let{counts:i,ready:o,total:r}=Ea(s),n;for(;n=o.shift();){t.set(n,t.size);const a=e[n];a&&a.forEach(l=>{const d=l.info.methodInfo;--r,--i[d]===0&&o.push(d);});}r!==0&&console.warn(`Computed graph for ${s.localName} incomplete; circular?`),s.constructor.__orderedComputedDeps=t;}return t}function Ea(s){const t=s[Ns],e={},i=s[y$1.COMPUTE],o=[];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]||o.push(n);return {counts:e,ready:o,total:r}}function Bs(s,t,e,i,o){let r=ri(s,t,e,i,o);if(r===$e)return !1;let n=o.methodInfo;return s.__dataHasAccessor&&s.__dataHasAccessor[n]?s._setPendingProperty(n,r,!0):(s[n]=r,!1)}function Aa(s,t,e){let i=s.__dataLinkedPaths;if(i){let o;for(let r in i){let n=i[r];Fe(r,t)?(o=Ve(r,n,t),s._setPendingPropertyOrPath(o,e,!0,!0)):Fe(n,t)&&(o=Ve(n,r,t),s._setPendingPropertyOrPath(o,e,!0,!0));}}}function Rt(s,t,e,i,o,r,n){e.bindings=e.bindings||[];let a={kind:i,target:o,parts:r,literal:n,isCompound:r.length!==1};if(e.bindings.push(a),Ta(a)){let{event:d,negate:c}=a.parts[0];a.listenerEvent=d||wt$1(o)+"-changed",a.listenerNegate=c;}let l=t.nodeInfoList.length;for(let d=0;d<a.parts.length;d++){let c=a.parts[d];c.compoundIndex=d,ka(s,t,a,c,l);}}function ka(s,t,e,i,o){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:o,binding:e,part:i,evaluator:s};for(let a=0;a<r.length;a++){let l=r[a];typeof l=="string"&&(l=Vs(l),l.wildcard=!0),s._addTemplatePropertyEffect(t,l.rootProperty,{fn:Ia,info:n,trigger:l});}}}function Ia(s,t,e,i,o,r,n){let a=n[o.index],l=o.binding,d=o.part;if(r&&d.source&&t.length>d.source.length&&l.kind=="property"&&!l.isCompound&&a.__isPropertyEffectsClient&&a.__dataHasAccessor&&a.__dataHasAccessor[l.target]){let c=e[t];t=Ve(d.source,l.target,t),a._setPendingPropertyOrPath(t,c,!1,!0)&&s._enqueueClient(a);}else {let c=o.evaluator._evaluateBinding(s,d,t,e,i,r);c!==$e&&Sa(s,a,l,d,c);}}function Sa(s,t,e,i,o){if(o=Pa(t,o,e,i),ut$1&&(o=ut$1(o,e.target,e.kind,t)),e.kind=="attribute")s._valueToNodeAttribute(t,o,e.target);else {let r=e.target;t.__isPropertyEffectsClient&&t.__dataHasAccessor&&t.__dataHasAccessor[r]?(!t[y$1.READ_ONLY]||!t[y$1.READ_ONLY][r])&&t._setPendingProperty(r,o)&&s._enqueueClient(t):s._setUnmanagedPropertyToNode(t,r,o);}}function Pa(s,t,e,i){if(e.isCompound){let o=s.__dataCompoundStorage[e.target];o[i.compoundIndex]=t,t=o.join("");}return e.kind!=="attribute"&&(e.target==="textContent"||e.target==="value"&&(s.localName==="input"||s.localName==="textarea"))&&(t=t==null?"":t),t}function Ta(s){return !!s.target&&s.kind!="attribute"&&s.kind!="text"&&!s.isCompound&&s.parts[0].mode==="{"}function Da(s,t){let{nodeList:e,nodeInfoList:i}=t;if(i.length)for(let o=0;o<i.length;o++){let r=i[o],n=e[o],a=r.bindings;if(a)for(let l=0;l<a.length;l++){let d=a[l];Oa(n,d),za(n,s,d);}n.__dataHost=s;}}function Oa(s,t){if(t.isCompound){let e=s.__dataCompoundStorage||(s.__dataCompoundStorage={}),i=t.parts,o=new Array(i.length);for(let n=0;n<i.length;n++)o[n]=i[n].literal;let r=t.target;e[r]=o,t.literal&&t.kind=="property"&&(r==="className"&&(s=I$1(s)),s[r]=t.literal);}}function za(s,t,e){if(e.listenerEvent){let i=e.parts[0];s.addEventListener(e.listenerEvent,function(o){ba(o,t,e.target,i.source,i.negate);});}}function Do(s,t,e,i,o,r){r=t.static||r&&(typeof r!="object"||r[t.methodName]);let n={methodName:t.methodName,args:t.args,methodInfo:o,dynamicFn:r};for(let a=0,l;a<t.args.length&&(l=t.args[a]);a++)l.literal||s._addPropertyEffect(l.rootProperty,e,{fn:i,info:n,trigger:l});return r&&s._addPropertyEffect(t.methodName,e,{fn:i,info:n}),n}function ri(s,t,e,i,o){let r=s._methodHost||s,n=r[o.methodName];if(n){let a=s._marshalArgs(o.args,t,e);return a===$e?$e:n.apply(r,a)}else o.dynamicFn||console.warn("method `"+o.methodName+"` not defined");}const Ma=[],Fs="(?:[a-zA-Z_$][\\w.:$\\-*]*)",Na="(?:[-+]?[0-9]*\\.?[0-9]+(?:[eE][-+]?[0-9]+)?)",La="(?:'(?:[^'\\\\]|\\\\.)*')",Ba='(?:"(?:[^"\\\\]|\\\\.)*")',Fa="(?:"+La+"|"+Ba+")",Oo="(?:("+Fs+"|"+Na+"|"+Fa+")\\s*)",Va="(?:"+Oo+"(?:,\\s*"+Oo+")*)",Ra="(?:\\(\\s*(?:"+Va+"?)\\)\\s*)",$a="("+Fs+"\\s*"+Ra+"?)",Ha="(\\[\\[|{{)\\s*",Ua="(?:]]|}})",Wa="(?:(!)\\s*)?",ja=Ha+Wa+$a+Ua,zo=new RegExp(ja,"g");function Mo(s){let t="";for(let e=0;e<s.length;e++){let i=s[e].literal;t+=i||"";}return t}function $t$1(s){let t=s.match(/([^\s]+?)\(([\s\S]*)\)/);if(t){let i={methodName:t[1],static:!0,args:Ma};if(t[2].trim()){let o=t[2].replace(/\\,/g,"&comma;").split(",");return qa(o,i)}else return i}return null}function qa(s,t){return t.args=s.map(function(e){let i=Vs(e);return i.literal||(t.static=!1),i},this),t}function Vs(s){let t=s.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=oe(t),e.structured=oi(t),e.structured&&(e.wildcard=t.slice(-2)==".*",e.wildcard&&(e.name=t.slice(0,-2)))),e}function No(s,t,e){let i=D$1(s,e);return i===void 0&&(i=t[e]),i}function Rs(s,t,e,i){const o={indexSplices:i};ii&&!s._overrideLegacyUndefined&&(t.splices=o),s.notifyPath(e+".splices",o),s.notifyPath(e+".length",t.length),ii&&!s._overrideLegacyUndefined&&(o.indexSplices=[]);}function Ee(s,t,e,i,o,r){Rs(s,t,e,[{index:i,addedCount:o,removed:r,object:t,type:"splice"}]);}function Ya(s){return s[0].toUpperCase()+s.substring(1)}const Oi=w$1(s=>{const t=pa(oa(s));class e extends t{constructor(){super(),this.__isPropertyEffectsClient=!0;}get PROPERTY_EFFECT_TYPES(){return y$1}_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(Ae.length){let o=Ae[Ae.length-1];o._enqueueClient(this),this.__dataHost=o;}}_initializeProtoProperties(o){this.__data=Object.create(o),this.__dataPending=Object.create(o),this.__dataOld={};}_initializeInstanceProperties(o){let r=this[y$1.READ_ONLY];for(let n in o)(!r||!r[n])&&(this.__dataPending=this.__dataPending||{},this.__dataOld=this.__dataOld||{},this.__data[n]=this.__dataPending[n]=o[n]);}_addPropertyEffect(o,r,n){this._createPropertyAccessor(o,r==y$1.READ_ONLY);let a=Vt(this,r,!0)[o];a||(a=this[r][o]=[]),a.push(n);}_removePropertyEffect(o,r,n){let a=Vt(this,r,!0)[o],l=a.indexOf(n);l>=0&&a.splice(l,1);}_hasPropertyEffect(o,r){let n=this[r];return !!(n&&n[o])}_hasReadOnlyEffect(o){return this._hasPropertyEffect(o,y$1.READ_ONLY)}_hasNotifyEffect(o){return this._hasPropertyEffect(o,y$1.NOTIFY)}_hasReflectEffect(o){return this._hasPropertyEffect(o,y$1.REFLECT)}_hasComputedEffect(o){return this._hasPropertyEffect(o,y$1.COMPUTE)}_setPendingPropertyOrPath(o,r,n,a){if(a||oe(Array.isArray(o)?o[0]:o)!==o){if(!a){let l=D$1(this,o);if(o=ko(this,o,r),!o||!super._shouldPropertyChange(o,r,l))return !1}if(this.__dataHasPaths=!0,this._setPendingProperty(o,r,n))return Aa(this,o,r),!0}else {if(this.__dataHasAccessor&&this.__dataHasAccessor[o])return this._setPendingProperty(o,r,n);this[o]=r;}return !1}_setUnmanagedPropertyToNode(o,r,n){(n!==o[r]||typeof n=="object")&&(r==="className"&&(o=I$1(o)),o[r]=n);}_setPendingProperty(o,r,n){let a=this.__dataHasPaths&&oi(o),l=a?this.__dataTemp:this.__data;return this._shouldPropertyChange(o,r,l[o])?(this.__dataPending||(this.__dataPending={},this.__dataOld={}),o in this.__dataOld||(this.__dataOld[o]=this.__data[o]),a?this.__dataTemp[o]=r:this.__data[o]=r,this.__dataPending[o]=r,(a||this[y$1.NOTIFY]&&this[y$1.NOTIFY][o])&&(this.__dataToNotify=this.__dataToNotify||{},this.__dataToNotify[o]=n),!0):!1}_setProperty(o,r){this._setPendingProperty(o,r,!0)&&this._invalidateProperties();}_invalidateProperties(){this.__dataReady&&this._flushProperties();}_enqueueClient(o){this.__dataPendingClients=this.__dataPendingClients||[],o!==this&&this.__dataPendingClients.push(o);}_flushClients(){this.__dataClientsReady?this.__enableOrFlushClients():(this.__dataClientsReady=!0,this._readyClients(),this.__dataReady=!0);}__enableOrFlushClients(){let o=this.__dataPendingClients;if(o){this.__dataPendingClients=null;for(let r=0;r<o.length;r++){let n=o[r];n.__dataEnabled?n.__dataPending&&n._flushProperties():n._enableProperties();}}}_readyClients(){this.__enableOrFlushClients();}setProperties(o,r){for(let n in o)(r||!this[y$1.READ_ONLY]||!this[y$1.READ_ONLY][n])&&this._setPendingPropertyOrPath(n,o[n],!0);this._invalidateProperties();}ready(){this._flushProperties(),this.__dataClientsReady||this._flushClients(),this.__dataPending&&this._flushProperties();}_propertiesChanged(o,r,n){let a=this.__dataHasPaths;this.__dataHasPaths=!1;let l;xa(this,r,n,a),l=this.__dataToNotify,this.__dataToNotify=null,this._propagatePropertyChanges(r,n,a),this._flushClients(),Pe(this,this[y$1.REFLECT],r,n,a),Pe(this,this[y$1.OBSERVE],r,n,a),l&&_a(this,l,r,n,a),this.__dataCounter==1&&(this.__dataTemp={});}_propagatePropertyChanges(o,r,n){this[y$1.PROPAGATE]&&Pe(this,this[y$1.PROPAGATE],o,r,n),this.__templateInfo&&this._runEffectsForTemplate(this.__templateInfo,o,r,n);}_runEffectsForTemplate(o,r,n,a){const l=(d,c)=>{Pe(this,o.propertyEffects,d,n,c,o.nodeList);for(let h=o.firstChild;h;h=h.nextSibling)this._runEffectsForTemplate(h,d,n,c);};o.runEffects?o.runEffects(l,r,a):l(r,a);}linkPaths(o,r){o=Se(o),r=Se(r),this.__dataLinkedPaths=this.__dataLinkedPaths||{},this.__dataLinkedPaths[o]=r;}unlinkPaths(o){o=Se(o),this.__dataLinkedPaths&&delete this.__dataLinkedPaths[o];}notifySplices(o,r){let n={path:""},a=D$1(this,o,n);Rs(this,a,n.path,r);}get(o,r){return D$1(r||this,o)}set(o,r,n){n?ko(n,o,r):(!this[y$1.READ_ONLY]||!this[y$1.READ_ONLY][o])&&this._setPendingPropertyOrPath(o,r,!0)&&this._invalidateProperties();}push(o,...r){let n={path:""},a=D$1(this,o,n),l=a.length,d=a.push(...r);return r.length&&Ee(this,a,n.path,l,r.length,[]),d}pop(o){let r={path:""},n=D$1(this,o,r),a=!!n.length,l=n.pop();return a&&Ee(this,n,r.path,n.length,0,[l]),l}splice(o,r,n,...a){let l={path:""},d=D$1(this,o,l);r<0?r=d.length-Math.floor(-r):r&&(r=Math.floor(r));let c;return arguments.length===2?c=d.splice(r):c=d.splice(r,n,...a),(a.length||c.length)&&Ee(this,d,l.path,r,a.length,c),c}shift(o){let r={path:""},n=D$1(this,o,r),a=!!n.length,l=n.shift();return a&&Ee(this,n,r.path,0,0,[l]),l}unshift(o,...r){let n={path:""},a=D$1(this,o,n),l=a.unshift(...r);return r.length&&Ee(this,a,n.path,0,r.length,[]),l}notifyPath(o,r){let n;if(arguments.length==1){let a={path:""};r=D$1(this,o,a),n=a.path;}else Array.isArray(o)?n=Se(o):n=o;this._setPendingPropertyOrPath(n,r,!0,!0)&&this._invalidateProperties();}_createReadOnlyProperty(o,r){this._addPropertyEffect(o,y$1.READ_ONLY),r&&(this["_set"+Ya(o)]=function(n){this._setProperty(o,n);});}_createPropertyObserver(o,r,n){let a={property:o,method:r,dynamicFn:!!n};this._addPropertyEffect(o,y$1.OBSERVE,{fn:Po,info:a,trigger:{name:o}}),n&&this._addPropertyEffect(r,y$1.OBSERVE,{fn:Po,info:a,trigger:{name:r}});}_createMethodObserver(o,r){let n=$t$1(o);if(!n)throw new Error("Malformed observer expression '"+o+"'");Do(this,n,y$1.OBSERVE,ri,null,r);}_createNotifyingProperty(o){this._addPropertyEffect(o,y$1.NOTIFY,{fn:ga,info:{eventName:wt$1(o)+"-changed",property:o}});}_createReflectedProperty(o){let r=this.constructor.attributeNameForProperty(o);r[0]==="-"?console.warn("Property "+o+" cannot be reflected to attribute "+r+' because "-" is not a valid starting attribute name. Use a lowercase first letter for the property instead.'):this._addPropertyEffect(o,y$1.REFLECT,{fn:ya,info:{attrName:r}});}_createComputedProperty(o,r,n){let a=$t$1(r);if(!a)throw new Error("Malformed computed expression '"+r+"'");const l=Do(this,a,y$1.COMPUTE,Bs,o,n);Vt(this,Ns)[o]=l;}_marshalArgs(o,r,n){const a=this.__data,l=[];for(let d=0,c=o.length;d<c;d++){let{name:h,structured:u,wildcard:f,value:_,literal:S}=o[d];if(!S)if(f){const P=Fe(h,r),E=No(a,n,P?r:h);_={path:P?r:h,value:E,base:P?D$1(a,h):E};}else _=u?No(a,n,h):a[h];if(ii&&!this._overrideLegacyUndefined&&_===void 0&&o.length>1)return $e;l[d]=_;}return l}static addPropertyEffect(o,r,n){this.prototype._addPropertyEffect(o,r,n);}static createPropertyObserver(o,r,n){this.prototype._createPropertyObserver(o,r,n);}static createMethodObserver(o,r){this.prototype._createMethodObserver(o,r);}static createNotifyingProperty(o){this.prototype._createNotifyingProperty(o);}static createReadOnlyProperty(o,r){this.prototype._createReadOnlyProperty(o,r);}static createReflectedProperty(o){this.prototype._createReflectedProperty(o);}static createComputedProperty(o,r,n){this.prototype._createComputedProperty(o,r,n);}static bindTemplate(o){return this.prototype._bindTemplate(o)}_bindTemplate(o,r){let n=this.constructor._parseTemplate(o),a=this.__preBoundTemplateInfo==n;if(!a)for(let l in n.propertyEffects)this._createPropertyAccessor(l);if(r)if(n=Object.create(n),n.wasPreBound=a,!this.__templateInfo)this.__templateInfo=n;else {const l=o._parentTemplateInfo||this.__templateInfo,d=l.lastChild;n.parent=l,l.lastChild=n,n.previousSibling=d,d?d.nextSibling=n:l.firstChild=n;}else this.__preBoundTemplateInfo=n;return n}static _addTemplatePropertyEffect(o,r,n){let a=o.hostProps=o.hostProps||{};a[r]=!0;let l=o.propertyEffects=o.propertyEffects||{};(l[r]=l[r]||[]).push(n);}_stampTemplate(o,r){r=r||this._bindTemplate(o,!0),Ae.push(this);let n=super._stampTemplate(o,r);if(Ae.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,Da(this,r),this.__dataClientsReady&&(this._runEffectsForTemplate(r,this.__data,null,!1),this._flushClients()),n}_removeBoundDom(o){const r=o.templateInfo,{previousSibling:n,nextSibling:a,parent:l}=r;n?n.nextSibling=a:l&&(l.firstChild=a),a?a.previousSibling=n:l&&(l.lastChild=n),r.nextSibling=r.previousSibling=null;let d=r.childNodes;for(let c=0;c<d.length;c++){let h=d[c];I$1(I$1(h).parentNode).removeChild(h);}}static _parseTemplateNode(o,r,n){let a=t._parseTemplateNode.call(this,o,r,n);if(o.nodeType===Node.TEXT_NODE){let l=this._parseBindings(o.textContent,r);l&&(o.textContent=Mo(l)||" ",Rt(this,r,n,"text","textContent",l),a=!0);}return a}static _parseTemplateNodeAttribute(o,r,n,a,l){let d=this._parseBindings(l,r);if(d){let c=a,h="property";ma.test(a)?h="attribute":a[a.length-1]=="$"&&(a=a.slice(0,-1),h="attribute");let u=Mo(d);return u&&h=="attribute"&&(a=="class"&&o.hasAttribute("class")&&(u+=" "+o.getAttribute(a)),o.setAttribute(a,u)),h=="attribute"&&c=="disable-upgrade$"&&o.setAttribute(a,""),o.localName==="input"&&c==="value"&&o.setAttribute(c,""),o.removeAttribute(c),h==="property"&&(a=Ss(a)),Rt(this,r,n,h,a,d,u),!0}else return t._parseTemplateNodeAttribute.call(this,o,r,n,a,l)}static _parseTemplateNestedTemplate(o,r,n){let a=t._parseTemplateNestedTemplate.call(this,o,r,n);const l=o.parentNode,d=n.templateInfo,c=l.localName==="dom-if",h=l.localName==="dom-repeat";yo&&(c||h)&&(l.removeChild(o),n=n.parentInfo,n.templateInfo=d,n.noted=!0,a=!1);let u=d.hostProps;if(Fn&&c)u&&(r.hostProps=Object.assign(r.hostProps||{},u),yo||(n.parentInfo.noted=!0));else {let f="{";for(let _ in u){let S=[{mode:f,source:_,dependencies:[_],hostProp:!0}];Rt(this,r,n,"property","_host_"+_,S);}}return a}static _parseBindings(o,r){let n=[],a=0,l;for(;(l=zo.exec(o))!==null;){l.index>a&&n.push({literal:o.slice(a,l.index)});let d=l[1][0],c=!!l[2],h=l[3].trim(),u=!1,f="",_=-1;d=="{"&&(_=h.indexOf("::"))>0&&(f=h.substring(_+2),h=h.substring(0,_),u=!0);let S=$t$1(h),P=[];if(S){let{args:E,methodName:C}=S;for(let ye=0;ye<E.length;ye++){let J=E[ye];J.literal||P.push(J);}let W=r.dynamicFns;(W&&W[C]||S.static)&&(P.push(C),S.dynamicFn=!0);}else P.push(h);n.push({source:h,mode:d,negate:c,customEvent:u,signature:S,dependencies:P,event:f}),a=zo.lastIndex;}if(a&&a<o.length){let d=o.substring(a);d&&n.push({literal:d});}return n.length?n:null}static _evaluateBinding(o,r,n,a,l,d){let c;return r.signature?c=ri(o,n,a,l,r.signature):n!=r.source?c=D$1(o,r.source):d&&oi(n)?c=D$1(o,n):c=o.__data[n],r.negate&&(c=!c),c}}return e}),Ae=[];/**
7113
7113
  @license
7114
7114
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7115
7115
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7135,7 +7135,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7135
7135
  * be found at http://polymer.github.io/CONTRIBUTORS.txt Code distributed by
7136
7136
  * Google as part of the polymer project is also subject to an additional IP
7137
7137
  * rights grant found at http://polymer.github.io/PATENTS.txt
7138
- */const Xa="3.5.2",Lo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ja=w$1(s=>{const t=Ga(zi(s));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let c in d){let h=d[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=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 o(l,d,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):c.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),c.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):c.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),c.observer&&l._createPropertyObserver(d,c.observer,h[c.observer]),l._addPropertyToAttributeMap(d);}function r(l,d,c,h){if(!Lo){const u=d.content.querySelectorAll("style"),f=Es(d),_=qn(c),S=d.content.firstElementChild;for(let E=0;E<_.length;E++){let C=_[E];C.textContent=l._processStyleText(C.textContent,h),d.content.insertBefore(C,S);}let P=0;for(let E=0;E<f.length;E++){let C=f[E],W=u[P];W!==C?(C=C.cloneNode(!0),W.parentNode.insertBefore(C,W)):P++,C.textContent=l._processStyleText(C.textContent,h);}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,c),Vn&&Lo&&zn){const u=d.content.querySelectorAll("style");if(u){let f="";Array.from(u).forEach(_=>{f+=_.textContent,_.parentNode.removeChild(_);}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f);}}}function n(l){let d=null;if(l&&(!mt$1||Nn)&&(d=Fe.import(l,"template"),mt$1&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Xa}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):ys||(d=d.cloneNode(!0))),this.prototype._template=d;}static createProperties(d){for(let c in d)o(this.prototype,c,d[c],d);}static createObservers(d,c){const h=this.prototype;for(let u=0;u<d.length;u++)h._createMethodObserver(d[u],c);}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template;}return this._template}static set template(d){this._template=d;}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Ti(d.url);else {const c=Fe.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath;}}return this._importPath}constructor(){super();}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Mn,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let c in d){let h=d[c];if(this._canApplyPropertyDefault(c)){let u=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,u,!0):this[c]=u;}}}_canApplyPropertyDefault(d){return !this.hasOwnProperty(d)}static _processStyleText(d,c){return Pi(d,c)}static _finalizeTemplate(d){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,u=h?Me(h):"";r(this,c,d,u),this.prototype._bindTemplate(c);}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback();}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready();}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients();}_attachDom(d){const c=I$1(this);if(c.attachShadow)return d?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:d}),c.shadowRoot.appendChild(d),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Ln&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d);}resolveUrl(d,c){return !c&&this.importPath&&(c=Me(this.importPath)),Me(d,c)}static _parseTemplateContent(d,c,h){return c.dynamicFns=c.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,c,h)}static _addTemplatePropertyEffect(d,c,h){return xs&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,c,h)}}return a});/**
7138
+ */const Xa="3.5.2",Lo=window.ShadyCSS&&window.ShadyCSS.cssBuild,Ja=w$1(s=>{const t=Ga(Oi(s));function e(l){if(!l.hasOwnProperty(JSCompiler_renameProperty("__propertyDefaults",l))){l.__propertyDefaults=null;let d=l._properties;for(let c in d){let h=d[c];"value"in h&&(l.__propertyDefaults=l.__propertyDefaults||{},l.__propertyDefaults[c]=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 o(l,d,c,h){c.computed&&(c.readOnly=!0),c.computed&&(l._hasReadOnlyEffect(d)?console.warn(`Cannot redefine computed property '${d}'.`):l._createComputedProperty(d,c.computed,h)),c.readOnly&&!l._hasReadOnlyEffect(d)?l._createReadOnlyProperty(d,!c.computed):c.readOnly===!1&&l._hasReadOnlyEffect(d)&&console.warn(`Cannot make readOnly property '${d}' non-readOnly.`),c.reflectToAttribute&&!l._hasReflectEffect(d)?l._createReflectedProperty(d):c.reflectToAttribute===!1&&l._hasReflectEffect(d)&&console.warn(`Cannot make reflected property '${d}' non-reflected.`),c.notify&&!l._hasNotifyEffect(d)?l._createNotifyingProperty(d):c.notify===!1&&l._hasNotifyEffect(d)&&console.warn(`Cannot make notify property '${d}' non-notify.`),c.observer&&l._createPropertyObserver(d,c.observer,h[c.observer]),l._addPropertyToAttributeMap(d);}function r(l,d,c,h){if(!Lo){const u=d.content.querySelectorAll("style"),f=Es(d),_=qn(c),S=d.content.firstElementChild;for(let E=0;E<_.length;E++){let C=_[E];C.textContent=l._processStyleText(C.textContent,h),d.content.insertBefore(C,S);}let P=0;for(let E=0;E<f.length;E++){let C=f[E],W=u[P];W!==C?(C=C.cloneNode(!0),W.parentNode.insertBefore(C,W)):P++,C.textContent=l._processStyleText(C.textContent,h);}}if(window.ShadyCSS&&window.ShadyCSS.prepareTemplate(d,c),Vn&&Lo&&zn){const u=d.content.querySelectorAll("style");if(u){let f="";Array.from(u).forEach(_=>{f+=_.textContent,_.parentNode.removeChild(_);}),l._styleSheet=new CSSStyleSheet,l._styleSheet.replaceSync(f);}}}function n(l){let d=null;if(l&&(!pt$1||Nn)&&(d=Be.import(l,"template"),pt$1&&!d))throw new Error(`strictTemplatePolicy: expecting dom-module or null template for ${l}`);return d}class a extends t{static get polymerElementVersion(){return Xa}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):ys||(d=d.cloneNode(!0))),this.prototype._template=d;}static createProperties(d){for(let c in d)o(this.prototype,c,d[c],d);}static createObservers(d,c){const h=this.prototype;for(let u=0;u<d.length;u++)h._createMethodObserver(d[u],c);}static get template(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_template",this))){let d=this.prototype.hasOwnProperty(JSCompiler_renameProperty("_template",this.prototype))?this.prototype._template:void 0;typeof d=="function"&&(d=d()),this._template=d!==void 0?d:this.hasOwnProperty(JSCompiler_renameProperty("is",this))&&n(this.is)||Object.getPrototypeOf(this.prototype).constructor.template;}return this._template}static set template(d){this._template=d;}static get importPath(){if(!this.hasOwnProperty(JSCompiler_renameProperty("_importPath",this))){const d=this.importMeta;if(d)this._importPath=Pi(d.url);else {const c=Be.import(this.is);this._importPath=c&&c.assetpath||Object.getPrototypeOf(this.prototype).constructor.importPath;}}return this._importPath}constructor(){super();}_initializeProperties(){this.constructor.finalize(),this.constructor._finalizeTemplate(this.localName),super._initializeProperties(),this.rootPath=Mn,this.importPath=this.constructor.importPath;let d=e(this.constructor);if(d)for(let c in d){let h=d[c];if(this._canApplyPropertyDefault(c)){let u=typeof h.value=="function"?h.value.call(this):h.value;this._hasAccessor(c)?this._setPendingProperty(c,u,!0):this[c]=u;}}}_canApplyPropertyDefault(d){return !this.hasOwnProperty(d)}static _processStyleText(d,c){return Si(d,c)}static _finalizeTemplate(d){const c=this.prototype._template;if(c&&!c.__polymerFinalized){c.__polymerFinalized=!0;const h=this.importPath,u=h?ze(h):"";r(this,c,d,u),this.prototype._bindTemplate(c);}}connectedCallback(){window.ShadyCSS&&this._template&&window.ShadyCSS.styleElement(this),super.connectedCallback();}ready(){this._template&&(this.root=this._stampTemplate(this._template),this.$=this.root.$),super.ready();}_readyClients(){this._template&&(this.root=this._attachDom(this.root)),super._readyClients();}_attachDom(d){const c=I$1(this);if(c.attachShadow)return d?(c.shadowRoot||(c.attachShadow({mode:"open",shadyUpgradeFragment:d}),c.shadowRoot.appendChild(d),this.constructor._styleSheet&&(c.shadowRoot.adoptedStyleSheets=[this.constructor._styleSheet])),Ln&&window.ShadyDOM&&window.ShadyDOM.flushInitial(c.shadowRoot),c.shadowRoot):null;throw new Error("ShadowDOM not available. PolymerElement can create dom as children instead of in ShadowDOM by setting `this.root = this;` before `ready`.")}updateStyles(d){window.ShadyCSS&&window.ShadyCSS.styleSubtree(this,d);}resolveUrl(d,c){return !c&&this.importPath&&(c=ze(this.importPath)),ze(d,c)}static _parseTemplateContent(d,c,h){return c.dynamicFns=c.dynamicFns||this._properties,t._parseTemplateContent.call(this,d,c,h)}static _addTemplatePropertyEffect(d,c,h){return xs&&!(c in this._properties)&&!(h.info.part.signature&&h.info.part.signature.static)&&!h.info.part.hostProp&&!d.nestedTemplate&&console.warn(`Property '${c}' used in template but not declared in 'properties'; attribute will not be observed.`),t._addTemplatePropertyEffect.call(this,d,c,h)}}return a});/**
7139
7139
  @license
7140
7140
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7141
7141
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7151,7 +7151,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7151
7151
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7152
7152
  Code distributed by Google as part of the polymer project is also
7153
7153
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7154
- */const b$1=Ja(HTMLElement),Za=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,dt$1=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function el(){function s(){return !0}return Ws(s)}function tl(){try{return il()?!0:ol()?dt$1?!sl():!el():!1}catch(s){return !1}}function il(){return localStorage.getItem("vaadin.developmentmode.force")}function ol(){return ["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function sl(){return !!(dt$1&&Object.keys(dt$1).map(t=>dt$1[t]).filter(t=>t.productionMode).length>0)}function Ws(s,t){if(typeof s!="function")return;const e=Za.exec(s.toString());if(e)try{s=new Function(e[1]);}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i);}return s(t)}window.Vaadin=window.Vaadin||{};const Fo=function(s,t){if(window.Vaadin.developmentMode)return Ws(s,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=tl());function rl(){/*! vaadin-dev-mode:start
7154
+ */const b$1=Ja(HTMLElement),Za=/\/\*[\*!]\s+vaadin-dev-mode:start([\s\S]*)vaadin-dev-mode:end\s+\*\*\//i,lt$1=window.Vaadin&&window.Vaadin.Flow&&window.Vaadin.Flow.clients;function el(){function s(){return !0}return Ws(s)}function tl(){try{return il()?!0:ol()?lt$1?!sl():!el():!1}catch(s){return !1}}function il(){return localStorage.getItem("vaadin.developmentmode.force")}function ol(){return ["localhost","127.0.0.1"].indexOf(window.location.hostname)>=0}function sl(){return !!(lt$1&&Object.keys(lt$1).map(t=>lt$1[t]).filter(t=>t.productionMode).length>0)}function Ws(s,t){if(typeof s!="function")return;const e=Za.exec(s.toString());if(e)try{s=new Function(e[1]);}catch(i){console.log("vaadin-development-mode-detector: uncommentAndRun() failed",i);}return s(t)}window.Vaadin=window.Vaadin||{};const Fo=function(s,t){if(window.Vaadin.developmentMode)return Ws(s,t)};window.Vaadin.developmentMode===void 0&&(window.Vaadin.developmentMode=tl());function rl(){/*! vaadin-dev-mode:start
7155
7155
  (function () {
7156
7156
  'use strict';
7157
7157
 
@@ -7637,7 +7637,7 @@ try {
7637
7637
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7638
7638
  * Code distributed by Google as part of the polymer project is also
7639
7639
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7640
- */let Vo=0,js=0;const ue=[];let ai=!1;function al(){ai=!1;const s=ue.length;for(let t=0;t<s;t++){const e=ue[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}ue.splice(0,s),js+=s;}const Y$1={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},Ue={run(s){return window.requestAnimationFrame(s)},cancel(s){window.cancelAnimationFrame(s);}},qs={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s);}},_t$1={run(s){ai||(ai=!0,queueMicrotask(()=>al())),ue.push(s);const t=Vo;return Vo+=1,t},cancel(s){const t=s-js;if(t>=0){if(!ue[t])throw new Error(`invalid async handle: ${s}`);ue[t]=null;}}};/**
7640
+ */let Vo=0,js=0;const he=[];let ni=!1;function al(){ni=!1;const s=he.length;for(let t=0;t<s;t++){const e=he[t];if(e)try{e();}catch(i){setTimeout(()=>{throw i});}}he.splice(0,s),js+=s;}const Y$1={after(s){return {run(t){return window.setTimeout(t,s)},cancel(t){window.clearTimeout(t);}}},run(s,t){return window.setTimeout(s,t)},cancel(s){window.clearTimeout(s);}},He={run(s){return window.requestAnimationFrame(s)},cancel(s){window.cancelAnimationFrame(s);}},qs={run(s){return window.requestIdleCallback?window.requestIdleCallback(s):window.setTimeout(s,16)},cancel(s){window.cancelIdleCallback?window.cancelIdleCallback(s):window.clearTimeout(s);}},ft$1={run(s){ni||(ni=!0,queueMicrotask(()=>al())),he.push(s);const t=Vo;return Vo+=1,t},cancel(s){const t=s-js;if(t>=0){if(!he[t])throw new Error(`invalid async handle: ${s}`);he[t]=null;}}};/**
7641
7641
  @license
7642
7642
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
7643
7643
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -7645,31 +7645,31 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7645
7645
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7646
7646
  Code distributed by Google as part of the polymer project is also
7647
7647
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7648
- */const We=new Set;let z$1=class li{static debounce(t,e,i){return t instanceof li?t._cancelAsync():t=new li,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,We.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),We.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}};function Ys(s){We.add(s);}function ll(){const s=!!We.size;return We.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s}const De=()=>{let s;do s=ll();while(s)};/**
7648
+ */const Ue=new Set;let z$1=class ai{static debounce(t,e,i){return t instanceof ai?t._cancelAsync():t=new ai,t.setConfig(e,i),t}constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,Ue.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),Ue.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}};function Ys(s){Ue.add(s);}function ll(){const s=!!Ue.size;return Ue.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s}const Te=()=>{let s;do s=ll();while(s)};/**
7649
7649
  * @license
7650
7650
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7651
7651
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7652
- */const V$1=[];function di(s,t,e=s.getAttribute("dir")){t?s.setAttribute("dir",t):e!=null&&s.removeAttribute("dir");}function ci(){return document.documentElement.getAttribute("dir")}function dl(){const s=ci();V$1.forEach(t=>{di(t,s);});}const cl=new MutationObserver(dl);cl.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const M$1=s=>class extends s{static get properties(){return {dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),di(this,ci(),null));}attributeChangedCallback(e,i,o){if(super.attributeChangedCallback(e,i,o),e!=="dir")return;const r=ci(),n=o===r&&V$1.indexOf(this)===-1,a=!o&&i&&V$1.indexOf(this)===-1;n||a?(this.__subscribe(),di(this,r,o)):o!==r&&i===r&&this.__unsubscribe();}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=V$1.includes(this),this.__unsubscribe();}_valueToNodeAttribute(e,i,o){o==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,o);}_attributeToProperty(e,i,o){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,o);}__subscribe(){V$1.includes(this)||V$1.push(this);}__unsubscribe(){V$1.includes(this)&&V$1.splice(V$1.indexOf(this),1);}};/**
7652
+ */const V$1=[];function li(s,t,e=s.getAttribute("dir")){t?s.setAttribute("dir",t):e!=null&&s.removeAttribute("dir");}function di(){return document.documentElement.getAttribute("dir")}function dl(){const s=di();V$1.forEach(t=>{li(t,s);});}const cl=new MutationObserver(dl);cl.observe(document.documentElement,{attributes:!0,attributeFilter:["dir"]});const M$1=s=>class extends s{static get properties(){return {dir:{type:String,value:"",reflectToAttribute:!0,converter:{fromAttribute:e=>e||"",toAttribute:e=>e===""?null:e}}}}get __isRTL(){return this.getAttribute("dir")==="rtl"}connectedCallback(){super.connectedCallback(),(!this.hasAttribute("dir")||this.__restoreSubscription)&&(this.__subscribe(),li(this,di(),null));}attributeChangedCallback(e,i,o){if(super.attributeChangedCallback(e,i,o),e!=="dir")return;const r=di(),n=o===r&&V$1.indexOf(this)===-1,a=!o&&i&&V$1.indexOf(this)===-1;n||a?(this.__subscribe(),li(this,r,o)):o!==r&&i===r&&this.__unsubscribe();}disconnectedCallback(){super.disconnectedCallback(),this.__restoreSubscription=V$1.includes(this),this.__unsubscribe();}_valueToNodeAttribute(e,i,o){o==="dir"&&i===""&&!e.hasAttribute("dir")||super._valueToNodeAttribute(e,i,o);}_attributeToProperty(e,i,o){e==="dir"&&!i?this.dir="":super._attributeToProperty(e,i,o);}__subscribe(){V$1.includes(this)||V$1.push(this);}__unsubscribe(){V$1.includes(this)&&V$1.splice(V$1.indexOf(this),1);}};/**
7653
7653
  * @license
7654
7654
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7655
7655
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7656
- */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){nl();};let Ut;const Ro=new Set,N$1=s=>class extends M$1(s){static finalize(){super.finalize();const{is:e}=this;e&&!Ro.has(e)&&(window.Vaadin.registrations.push(this),Ro.add(e),window.Vaadin.developmentModeCallback&&(Ut=z$1.debounce(Ut,qs,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]();}),Ys(Ut)));}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.');}};/**
7656
+ */window.Vaadin||(window.Vaadin={});window.Vaadin.registrations||(window.Vaadin.registrations=[]);window.Vaadin.developmentModeCallback||(window.Vaadin.developmentModeCallback={});window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]=function(){nl();};let Ht$1;const Ro=new Set,N$1=s=>class extends M$1(s){static finalize(){super.finalize();const{is:e}=this;e&&!Ro.has(e)&&(window.Vaadin.registrations.push(this),Ro.add(e),window.Vaadin.developmentModeCallback&&(Ht$1=z$1.debounce(Ht$1,qs,()=>{window.Vaadin.developmentModeCallback["vaadin-usage-statistics"]();}),Ys(Ht$1)));}constructor(){super(),document.doctype===null&&console.warn('Vaadin components require the "standards mode" declaration. Please add <!DOCTYPE html> to the HTML document.');}};/**
7657
7657
  * @license
7658
7658
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7659
7659
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7660
- */function hl(s){const t=[];for(;s;){if(s.nodeType===Node.DOCUMENT_NODE){t.push(s);break}if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(s),s=s.host;continue}if(s.assignedSlot){s=s.assignedSlot;continue}s=s.parentNode;}return t}function Ks(s){const t=[];let e;return s.localName==="slot"?e=s.assignedElements():(t.push(s),e=[...s.children]),e.forEach(i=>t.push(...Ks(i))),t}function Mi(s){return s?new Set(s.split(" ")):new Set}function Et$1(s){return s?[...s].join(" "):""}function Gs(s,t,e){const i=Mi(s.getAttribute(t));i.add(e),s.setAttribute(t,Et$1(i));}function ul(s,t,e){const i=Mi(s.getAttribute(t));if(i.delete(e),i.size===0){s.removeAttribute(t);return}s.setAttribute(t,Et$1(i));}function pl(s){return s.nodeType===Node.TEXT_NODE&&s.textContent.trim()===""}/**
7660
+ */function hl(s){const t=[];for(;s;){if(s.nodeType===Node.DOCUMENT_NODE){t.push(s);break}if(s.nodeType===Node.DOCUMENT_FRAGMENT_NODE){t.push(s),s=s.host;continue}if(s.assignedSlot){s=s.assignedSlot;continue}s=s.parentNode;}return t}function Ks(s){const t=[];let e;return s.localName==="slot"?e=s.assignedElements():(t.push(s),e=[...s.children]),e.forEach(i=>t.push(...Ks(i))),t}function zi(s){return s?new Set(s.split(" ")):new Set}function Ct$1(s){return s?[...s].join(" "):""}function Gs(s,t,e){const i=zi(s.getAttribute(t));i.add(e),s.setAttribute(t,Ct$1(i));}function ul(s,t,e){const i=zi(s.getAttribute(t));if(i.delete(e),i.size===0){s.removeAttribute(t);return}s.setAttribute(t,Ct$1(i));}function pl(s){return s.nodeType===Node.TEXT_NODE&&s.textContent.trim()===""}/**
7661
7661
  * @license
7662
7662
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
7663
7663
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7664
- */class Ni{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule();},this.connect(),this._schedule();}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0;}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1;}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush();}));}flush(){this._connected&&(this._scheduled=!1,this._processNodes());}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],o=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?i.push(r):a!==n&&o.push(r);}),(e.length||i.length||o.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:o,removedNodes:i}),this._storedNodes=t;}}/**
7664
+ */class Mi{constructor(t,e){this.slot=t,this.callback=e,this._storedNodes=[],this._connected=!1,this._scheduled=!1,this._boundSchedule=()=>{this._schedule();},this.connect(),this._schedule();}connect(){this.slot.addEventListener("slotchange",this._boundSchedule),this._connected=!0;}disconnect(){this.slot.removeEventListener("slotchange",this._boundSchedule),this._connected=!1;}_schedule(){this._scheduled||(this._scheduled=!0,queueMicrotask(()=>{this.flush();}));}flush(){this._connected&&(this._scheduled=!1,this._processNodes());}_processNodes(){const t=this.slot.assignedNodes({flatten:!0});let e=[];const i=[],o=[];t.length&&(e=t.filter(r=>!this._storedNodes.includes(r))),this._storedNodes.length&&this._storedNodes.forEach((r,n)=>{const a=t.indexOf(r);a===-1?i.push(r):a!==n&&o.push(r);}),(e.length||i.length||o.length)&&this.callback({addedNodes:e,currentNodes:t,movedNodes:o,removedNodes:i}),this._storedNodes=t;}}/**
7665
7665
  * @license
7666
7666
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7667
7667
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7668
- */let ml=0;function Ye(){return ml++}/**
7668
+ */let ml=0;function qe(){return ml++}/**
7669
7669
  * @license
7670
7670
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7671
7671
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7672
- */class T$1 extends EventTarget{static generateId(t,e="default"){return `${e}-${t.localName}-${Ye()}`}constructor(t,e,i,o={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,d||e));}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0);}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t));}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e));}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e);});}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let o=this.defaultNode;return !o&&i&&(o=document.createElement(i),o instanceof Element&&(e!==""&&o.setAttribute("slot",e),this.defaultNode=o)),o&&(this.node=o,t.appendChild(o)),o}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host);}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t));}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Ni(i,({addedNodes:o,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=o.filter(l=>!pl(l)&&!n.includes(l));r.length&&(this.nodes=n.filter(l=>!r.includes(l)),r.forEach(l=>{this.teardownNode(l);})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l);})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)));});}}/**
7672
+ */class T$1 extends EventTarget{static generateId(t,e="default"){return `${e}-${t.localName}-${qe()}`}constructor(t,e,i,o={}){super();const{initializer:r,multiple:n,observe:a,useUniqueId:l,uniqueIdPrefix:d}=o;this.host=t,this.slotName=e,this.tagName=i,this.observe=typeof a=="boolean"?a:!0,this.multiple=typeof n=="boolean"?n:!1,this.slotInitializer=r,n&&(this.nodes=[]),l&&(this.defaultId=this.constructor.generateId(t,d||e));}hostConnected(){this.initialized||(this.multiple?this.initMultiple():this.initSingle(),this.observe&&this.observeSlot(),this.initialized=!0);}initSingle(){let t=this.getSlotChild();t?(this.node=t,this.initAddedNode(t)):(t=this.attachDefaultNode(),this.initNode(t));}initMultiple(){const t=this.getSlotChildren();if(t.length===0){const e=this.attachDefaultNode();e&&(this.nodes=[e],this.initNode(e));}else this.nodes=t,t.forEach(e=>{this.initAddedNode(e);});}attachDefaultNode(){const{host:t,slotName:e,tagName:i}=this;let o=this.defaultNode;return !o&&i&&(o=document.createElement(i),o instanceof Element&&(e!==""&&o.setAttribute("slot",e),this.defaultNode=o)),o&&(this.node=o,t.appendChild(o)),o}getSlotChildren(){const{slotName:t}=this;return Array.from(this.host.childNodes).filter(e=>e.nodeType===Node.ELEMENT_NODE&&e.slot===t||e.nodeType===Node.TEXT_NODE&&e.textContent.trim()&&t==="")}getSlotChild(){return this.getSlotChildren()[0]}initNode(t){const{slotInitializer:e}=this;e&&e(t,this.host);}initCustomNode(t){}teardownNode(t){}initAddedNode(t){t!==this.defaultNode&&(this.initCustomNode(t),this.initNode(t));}observeSlot(){const{slotName:t}=this,e=t===""?"slot:not([name])":`slot[name=${t}]`,i=this.host.shadowRoot.querySelector(e);this.__slotObserver=new Mi(i,({addedNodes:o,removedNodes:r})=>{const n=this.multiple?this.nodes:[this.node],a=o.filter(l=>!pl(l)&&!n.includes(l));r.length&&(this.nodes=n.filter(l=>!r.includes(l)),r.forEach(l=>{this.teardownNode(l);})),a&&a.length>0&&(this.multiple?(this.defaultNode&&this.defaultNode.remove(),this.nodes=[...n,...a].filter(l=>l!==this.defaultNode),a.forEach(l=>{this.initAddedNode(l);})):(this.node&&this.node.remove(),this.node=a[0],this.initAddedNode(this.node)));});}}/**
7673
7673
  * @license
7674
7674
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
7675
7675
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7681,35 +7681,35 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
7681
7681
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
7682
7682
  Code distributed by Google as part of the polymer project is also
7683
7683
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
7684
- */const fl=s=>s,Xs=typeof document.head.style.touchAction=="string",hi="__polymerGestures",Wt="__polymerGesturesHandled",ui="__polymerGesturesTouchAction",$o=25,Ho=5,_l=2,vl=["mousedown","mousemove","mouseup","click"],gl=[0,1,4,2],bl=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(s){return !1}}();function Li(s){return vl.indexOf(s)>-1}(function(){try{const s=Object.defineProperty({},"passive",{get(){}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s);}catch(s){}})();function xl(s){}const wl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Cl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function ie(s){const t=s.type;if(!Li(t))return !1;if(t==="mousemove"){let i=s.buttons===void 0?1:s.buttons;return s instanceof window.MouseEvent&&!bl&&(i=gl[s.which]||0),!!(i&1)}return (s.button===void 0?0:s.button)===0}function El(s){if(s.type==="click"){if(s.detail===0)return !0;const t=K$1(s);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return !0;const e=t.getBoundingClientRect(),i=s.pageX,o=s.pageY;return !(i>=e.left&&i<=e.right&&o>=e.top&&o<=e.bottom)}return !1}const R$1={touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Al(s){let t="auto";const e=Qs(s);for(let i=0,o;i<e.length;i++)if(o=e[i],o[ui]){t=o[ui];break}return t}function Js(s,t,e){s.movefn=t,s.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e);}function pe(s){document.removeEventListener("mousemove",s.movefn),document.removeEventListener("mouseup",s.upfn),s.movefn=null,s.upfn=null;}const Qs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:s=>s.composedPath&&s.composedPath()||[],Bi={},ee=[];function kl(s,t){let e=document.elementFromPoint(s,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(s,t),o===i)break;i&&(e=i);}return e}function K$1(s){const t=Qs(s);return t.length>0?t[0]:s.target}function Il(s){const t=s.type,i=s.currentTarget[hi];if(!i)return;const o=i[t];if(!o)return;if(!s[Wt]&&(s[Wt]={},t.startsWith("touch"))){const n=s.changedTouches[0];if(t==="touchstart"&&s.touches.length===1&&(R$1.touch.id=n.identifier),R$1.touch.id!==n.identifier)return;Xs||(t==="touchstart"||t==="touchmove")&&Sl(s);}const r=s[Wt];if(!r.skip){for(let n=0,a;n<ee.length;n++)a=ee[n],o[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(s.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<ee.length;n++)a=ee[n],o[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](s));}}function Sl(s){const t=s.changedTouches[0],e=s.type;if(e==="touchstart")R$1.touch.x=t.clientX,R$1.touch.y=t.clientY,R$1.touch.scrollDecided=!1;else if(e==="touchmove"){if(R$1.touch.scrollDecided)return;R$1.touch.scrollDecided=!0;const i=Al(s);let o=!1;const r=Math.abs(R$1.touch.x-t.clientX),n=Math.abs(R$1.touch.y-t.clientY);s.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=n>r:i==="pan-y"&&(o=r>n)),o?s.preventDefault():vt$1("track");}}function B$1(s,t,e){return Bi[t]?(Pl(s,t,e),!0):!1}function Pl(s,t,e){const i=Bi[t],o=i.deps,r=i.name;let n=s[hi];n||(s[hi]=n={});for(let a=0,l,d;a<o.length;a++)l=o[a],!(wl&&Li(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&s.addEventListener(l,Il,xl()),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);s.addEventListener(t,e),i.touchAction&&Zs(s,i.touchAction);}function Fi(s){ee.push(s),s.emits.forEach(t=>{Bi[t]=s;});}function Tl(s){for(let t=0,e;t<ee.length;t++){e=ee[t];for(let i=0,o;i<e.emits.length;i++)if(o=e.emits[i],o===s)return e}return null}function Zs(s,t){Xs&&s instanceof HTMLElement&&_t$1.run(()=>{s.style.touchAction=t;}),s[ui]=t;}function Vi(s,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,fl(s).dispatchEvent(i),i.defaultPrevented){const o=e.preventer||e.sourceEvent;o&&o.preventDefault&&o.preventDefault();}}function vt$1(s){const t=Tl(s);t.info&&(t.info.prevent=!0);}Fi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){pe(this.info);},mousedown(s){if(!ie(s))return;const t=K$1(s),e=this,i=r=>{ie(r)||(Ie("up",t,r),pe(e.info));},o=r=>{ie(r)&&Ie("up",t,r),pe(e.info);};Js(this.info,i,o),Ie("down",t,s);},touchstart(s){Ie("down",K$1(s),s.changedTouches[0],s);},touchend(s){Ie("up",K$1(s),s.changedTouches[0],s);}});function Ie(s,t,e,i){t&&Vi(t,s,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(o){return vt$1(o)}});}Fi({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(s){this.moves.length>_l&&this.moves.shift(),this.moves.push(s);},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,pe(this.info);},mousedown(s){if(!ie(s))return;const t=K$1(s),e=this,i=r=>{const n=r.clientX,a=r.clientY;Uo(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&vt$1("tap"),e.info.addMove({x:n,y:a}),ie(r)||(e.info.state="end",pe(e.info)),t&&jt$1(e.info,t,r),e.info.started=!0);},o=r=>{e.info.started&&i(r),pe(e.info);};Js(this.info,i,o),this.info.x=s.clientX,this.info.y=s.clientY;},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchmove(s){const t=K$1(s),e=s.changedTouches[0],i=e.clientX,o=e.clientY;Uo(this.info,i,o)&&(this.info.state==="start"&&vt$1("tap"),this.info.addMove({x:i,y:o}),jt$1(this.info,t,e),this.info.state="track",this.info.started=!0);},touchend(s){const t=K$1(s),e=s.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),jt$1(this.info,t,e));}});function Uo(s,t,e){if(s.prevent)return !1;if(s.started)return !0;const i=Math.abs(s.x-t),o=Math.abs(s.y-e);return i>=Ho||o>=Ho}function jt$1(s,t,e){if(!t)return;const i=s.moves[s.moves.length-2],o=s.moves[s.moves.length-1],r=o.x-s.x,n=o.y-s.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),Vi(t,"track",{state:s.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return kl(e.clientX,e.clientY)}});}Fi({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1;},mousedown(s){ie(s)&&(this.info.x=s.clientX,this.info.y=s.clientY);},click(s){ie(s)&&Wo(this.info,s);},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchend(s){Wo(this.info,s.changedTouches[0],s);}});function Wo(s,t,e){const i=Math.abs(t.clientX-s.x),o=Math.abs(t.clientY-s.y),r=K$1(e||t);!r||Cl[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=$o&&o<=$o||El(t))&&(s.prevent||Vi(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}));}/**
7684
+ */const fl=!1,_l=s=>s,Ni=typeof document.head.style.touchAction=="string",ci="__polymerGestures",Ut="__polymerGesturesHandled",hi="__polymerGesturesTouchAction",$o=25,Ho=5,vl=2,gl=["mousedown","mousemove","mouseup","click"],bl=[0,1,4,2],yl=function(){try{return new MouseEvent("test",{buttons:1}).buttons===1}catch(s){return !1}}();function Li(s){return gl.indexOf(s)>-1}let Xs=!1;(function(){try{const s=Object.defineProperty({},"passive",{get(){Xs=!0;}});window.addEventListener("test",null,s),window.removeEventListener("test",null,s);}catch(s){}})();function xl(s){if(!(Li(s)||s==="touchend")&&Ni&&Xs&&fl)return {passive:!0}}const wl=navigator.userAgent.match(/iP(?:[oa]d|hone)|Android/u),Cl={button:!0,command:!0,fieldset:!0,input:!0,keygen:!0,optgroup:!0,option:!0,select:!0,textarea:!0};function te(s){const t=s.type;if(!Li(t))return !1;if(t==="mousemove"){let i=s.buttons===void 0?1:s.buttons;return s instanceof window.MouseEvent&&!yl&&(i=bl[s.which]||0),!!(i&1)}return (s.button===void 0?0:s.button)===0}function El(s){if(s.type==="click"){if(s.detail===0)return !0;const t=K$1(s);if(!t.nodeType||t.nodeType!==Node.ELEMENT_NODE)return !0;const e=t.getBoundingClientRect(),i=s.pageX,o=s.pageY;return !(i>=e.left&&i<=e.right&&o>=e.top&&o<=e.bottom)}return !1}const R$1={mouse:{target:null,mouseIgnoreJob:null},touch:{x:0,y:0,id:-1,scrollDecided:!1}};function Al(s){let t="auto";const e=Qs(s);for(let i=0,o;i<e.length;i++)if(o=e[i],o[hi]){t=o[hi];break}return t}function Js(s,t,e){s.movefn=t,s.upfn=e,document.addEventListener("mousemove",t),document.addEventListener("mouseup",e);}function ue(s){document.removeEventListener("mousemove",s.movefn),document.removeEventListener("mouseup",s.upfn),s.movefn=null,s.upfn=null;}const Qs=window.ShadyDOM&&window.ShadyDOM.noPatch?window.ShadyDOM.composedPath:s=>s.composedPath&&s.composedPath()||[],Bi={},ee=[];function kl(s,t){let e=document.elementFromPoint(s,t),i=e;for(;i&&i.shadowRoot&&!window.ShadyDOM;){const o=i;if(i=i.shadowRoot.elementFromPoint(s,t),o===i)break;i&&(e=i);}return e}function K$1(s){const t=Qs(s);return t.length>0?t[0]:s.target}function Il(s){const t=s.type,i=s.currentTarget[ci];if(!i)return;const o=i[t];if(!o)return;if(!s[Ut]&&(s[Ut]={},t.startsWith("touch"))){const n=s.changedTouches[0];if(t==="touchstart"&&s.touches.length===1&&(R$1.touch.id=n.identifier),R$1.touch.id!==n.identifier)return;Ni||(t==="touchstart"||t==="touchmove")&&Sl(s);}const r=s[Ut];if(!r.skip){for(let n=0,a;n<ee.length;n++)a=ee[n],o[a.name]&&!r[a.name]&&a.flow&&a.flow.start.indexOf(s.type)>-1&&a.reset&&a.reset();for(let n=0,a;n<ee.length;n++)a=ee[n],o[a.name]&&!r[a.name]&&(r[a.name]=!0,a[t](s));}}function Sl(s){const t=s.changedTouches[0],e=s.type;if(e==="touchstart")R$1.touch.x=t.clientX,R$1.touch.y=t.clientY,R$1.touch.scrollDecided=!1;else if(e==="touchmove"){if(R$1.touch.scrollDecided)return;R$1.touch.scrollDecided=!0;const i=Al(s);let o=!1;const r=Math.abs(R$1.touch.x-t.clientX),n=Math.abs(R$1.touch.y-t.clientY);s.cancelable&&(i==="none"?o=!0:i==="pan-x"?o=n>r:i==="pan-y"&&(o=r>n)),o?s.preventDefault():_t$1("track");}}function B$1(s,t,e){return Bi[t]?(Pl(s,t,e),!0):!1}function Pl(s,t,e){const i=Bi[t],o=i.deps,r=i.name;let n=s[ci];n||(s[ci]=n={});for(let a=0,l,d;a<o.length;a++)l=o[a],!(wl&&Li(l)&&l!=="click")&&(d=n[l],d||(n[l]=d={_count:0}),d._count===0&&s.addEventListener(l,Il,xl(l)),d[r]=(d[r]||0)+1,d._count=(d._count||0)+1);s.addEventListener(t,e),i.touchAction&&Zs(s,i.touchAction);}function Fi(s){ee.push(s),s.emits.forEach(t=>{Bi[t]=s;});}function Tl(s){for(let t=0,e;t<ee.length;t++){e=ee[t];for(let i=0,o;i<e.emits.length;i++)if(o=e.emits[i],o===s)return e}return null}function Zs(s,t){Ni&&s instanceof HTMLElement&&ft$1.run(()=>{s.style.touchAction=t;}),s[hi]=t;}function Vi(s,t,e){const i=new Event(t,{bubbles:!0,cancelable:!0,composed:!0});if(i.detail=e,_l(s).dispatchEvent(i),i.defaultPrevented){const o=e.preventer||e.sourceEvent;o&&o.preventDefault&&o.preventDefault();}}function _t$1(s){const t=Tl(s);t.info&&(t.info.prevent=!0);}Fi({name:"downup",deps:["mousedown","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["down","up"],info:{movefn:null,upfn:null},reset(){ue(this.info);},mousedown(s){if(!te(s))return;const t=K$1(s),e=this,i=r=>{te(r)||(ke("up",t,r),ue(e.info));},o=r=>{te(r)&&ke("up",t,r),ue(e.info);};Js(this.info,i,o),ke("down",t,s);},touchstart(s){ke("down",K$1(s),s.changedTouches[0],s);},touchend(s){ke("up",K$1(s),s.changedTouches[0],s);}});function ke(s,t,e,i){t&&Vi(t,s,{x:e.clientX,y:e.clientY,sourceEvent:e,preventer:i,prevent(o){return _t$1(o)}});}Fi({name:"track",touchAction:"none",deps:["mousedown","touchstart","touchmove","touchend"],flow:{start:["mousedown","touchstart"],end:["mouseup","touchend"]},emits:["track"],info:{x:0,y:0,state:"start",started:!1,moves:[],addMove(s){this.moves.length>vl&&this.moves.shift(),this.moves.push(s);},movefn:null,upfn:null,prevent:!1},reset(){this.info.state="start",this.info.started=!1,this.info.moves=[],this.info.x=0,this.info.y=0,this.info.prevent=!1,ue(this.info);},mousedown(s){if(!te(s))return;const t=K$1(s),e=this,i=r=>{const n=r.clientX,a=r.clientY;Uo(e.info,n,a)&&(e.info.state=e.info.started?r.type==="mouseup"?"end":"track":"start",e.info.state==="start"&&_t$1("tap"),e.info.addMove({x:n,y:a}),te(r)||(e.info.state="end",ue(e.info)),t&&Wt(e.info,t,r),e.info.started=!0);},o=r=>{e.info.started&&i(r),ue(e.info);};Js(this.info,i,o),this.info.x=s.clientX,this.info.y=s.clientY;},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchmove(s){const t=K$1(s),e=s.changedTouches[0],i=e.clientX,o=e.clientY;Uo(this.info,i,o)&&(this.info.state==="start"&&_t$1("tap"),this.info.addMove({x:i,y:o}),Wt(this.info,t,e),this.info.state="track",this.info.started=!0);},touchend(s){const t=K$1(s),e=s.changedTouches[0];this.info.started&&(this.info.state="end",this.info.addMove({x:e.clientX,y:e.clientY}),Wt(this.info,t,e));}});function Uo(s,t,e){if(s.prevent)return !1;if(s.started)return !0;const i=Math.abs(s.x-t),o=Math.abs(s.y-e);return i>=Ho||o>=Ho}function Wt(s,t,e){if(!t)return;const i=s.moves[s.moves.length-2],o=s.moves[s.moves.length-1],r=o.x-s.x,n=o.y-s.y;let a,l=0;i&&(a=o.x-i.x,l=o.y-i.y),Vi(t,"track",{state:s.state,x:e.clientX,y:e.clientY,dx:r,dy:n,ddx:a,ddy:l,sourceEvent:e,hover(){return kl(e.clientX,e.clientY)}});}Fi({name:"tap",deps:["mousedown","click","touchstart","touchend"],flow:{start:["mousedown","touchstart"],end:["click","touchend"]},emits:["tap"],info:{x:NaN,y:NaN,prevent:!1},reset(){this.info.x=NaN,this.info.y=NaN,this.info.prevent=!1;},mousedown(s){te(s)&&(this.info.x=s.clientX,this.info.y=s.clientY);},click(s){te(s)&&Wo(this.info,s);},touchstart(s){const t=s.changedTouches[0];this.info.x=t.clientX,this.info.y=t.clientY;},touchend(s){Wo(this.info,s.changedTouches[0],s);}});function Wo(s,t,e){const i=Math.abs(t.clientX-s.x),o=Math.abs(t.clientY-s.y),r=K$1(e||t);!r||Cl[r.localName]&&r.hasAttribute("disabled")||(isNaN(i)||isNaN(o)||i<=$o&&o<=$o||El(t))&&(s.prevent||Vi(r,"tap",{x:t.clientX,y:t.clientY,sourceEvent:t,preventer:e}));}/**
7685
7685
  * @license
7686
7686
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7687
7687
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7688
- */const be=w$1(s=>class extends s{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();}});/**
7688
+ */const ge=w$1(s=>class extends s{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();}});/**
7689
7689
  * @license
7690
7690
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7691
7691
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7692
- */const re=w$1(s=>class extends s{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){}});/**
7692
+ */const se=w$1(s=>class extends s{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){}});/**
7693
7693
  * @license
7694
7694
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7695
7695
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7696
- */const Ri=s=>class extends be(re(s)){get _activeKeys(){return [" "]}ready(){super.ready(),B$1(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0);}),B$1(this,"up",()=>{this._setActive(!1);});}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1);}_shouldSetActive(e){return !this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1);},{once:!0}));}_setActive(e){this.toggleAttribute("active",e);}};/**
7696
+ */const Ri=s=>class extends ge(se(s)){get _activeKeys(){return [" "]}ready(){super.ready(),B$1(this,"down",e=>{this._shouldSetActive(e)&&this._setActive(!0);}),B$1(this,"up",()=>{this._setActive(!1);});}disconnectedCallback(){super.disconnectedCallback(),this._setActive(!1);}_shouldSetActive(e){return !this.disabled}_onKeyDown(e){super._onKeyDown(e),this._shouldSetActive(e)&&this._activeKeys.includes(e.key)&&(this._setActive(!0),document.addEventListener("keyup",i=>{this._activeKeys.includes(i.key)&&this._setActive(!1);},{once:!0}));}_setActive(e){this.toggleAttribute("active",e);}};/**
7697
7697
  * @license
7698
7698
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7699
7699
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7700
- */let $i=!1;window.addEventListener("keydown",()=>{$i=!0;},{capture:!0});window.addEventListener("mousedown",()=>{$i=!1;},{capture:!0});function pi(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function At$1(){return $i}function er(s){const t=s.style;if(t.visibility==="hidden"||t.display==="none")return !0;const e=window.getComputedStyle(s);return e.visibility==="hidden"||e.display==="none"}function Dl(s,t){const e=Math.max(s.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function Ol(s,t){const e=[];for(;s.length>0&&t.length>0;)Dl(s[0],t[0])?e.push(t.shift()):e.push(s.shift());return e.concat(s,t)}function mi(s){const t=s.length;if(t<2)return s;const e=Math.ceil(t/2),i=mi(s.slice(0,e)),o=mi(s.slice(e));return Ol(i,o)}function fi(s){return s.offsetParent===null&&s.clientWidth===0&&s.clientHeight===0?!0:er(s)}function Hi(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Ui(s){return s.getRootNode().activeElement===s}function zl(s){if(!Hi(s))return -1;const t=s.getAttribute("tabindex")||0;return Number(t)}function tr(s,t){if(s.nodeType!==Node.ELEMENT_NODE||er(s))return !1;const e=s,i=zl(e);let o=i>0;i>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{o=tr(n,t)||o;}),o}function Ml(s){const t=[];return tr(s,t)?mi(t):t}/**
7700
+ */let $i=!1;window.addEventListener("keydown",()=>{$i=!0;},{capture:!0});window.addEventListener("mousedown",()=>{$i=!1;},{capture:!0});function ui(){let s=document.activeElement||document.body;for(;s.shadowRoot&&s.shadowRoot.activeElement;)s=s.shadowRoot.activeElement;return s}function Et$1(){return $i}function er(s){const t=s.style;if(t.visibility==="hidden"||t.display==="none")return !0;const e=window.getComputedStyle(s);return e.visibility==="hidden"||e.display==="none"}function Dl(s,t){const e=Math.max(s.tabIndex,0),i=Math.max(t.tabIndex,0);return e===0||i===0?i>e:e>i}function Ol(s,t){const e=[];for(;s.length>0&&t.length>0;)Dl(s[0],t[0])?e.push(t.shift()):e.push(s.shift());return e.concat(s,t)}function pi(s){const t=s.length;if(t<2)return s;const e=Math.ceil(t/2),i=pi(s.slice(0,e)),o=pi(s.slice(e));return Ol(i,o)}function mi(s){return s.offsetParent===null&&s.clientWidth===0&&s.clientHeight===0?!0:er(s)}function Hi(s){return s.matches('[tabindex="-1"]')?!1:s.matches("input, select, textarea, button, object")?s.matches(":not([disabled])"):s.matches("a[href], area[href], iframe, [tabindex], [contentEditable]")}function Ui(s){return s.getRootNode().activeElement===s}function zl(s){if(!Hi(s))return -1;const t=s.getAttribute("tabindex")||0;return Number(t)}function tr(s,t){if(s.nodeType!==Node.ELEMENT_NODE||er(s))return !1;const e=s,i=zl(e);let o=i>0;i>=0&&t.push(e);let r=[];return e.localName==="slot"?r=e.assignedNodes({flatten:!0}):r=(e.shadowRoot||e).children,[...r].forEach(n=>{o=tr(n,t)||o;}),o}function Ml(s){const t=[];return tr(s,t)?pi(t):t}/**
7701
7701
  * @license
7702
7702
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7703
7703
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7704
- */const ne=w$1(s=>class extends s{get _keyboardActive(){return At$1()}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}});/**
7704
+ */const re=w$1(s=>class extends s{get _keyboardActive(){return Et$1()}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}});/**
7705
7705
  * @license
7706
7706
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7707
7707
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7708
- */const ir=s=>class extends be(s){static get properties(){return {tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,i){super._disabledChanged(e,i),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex);}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1);}};/**
7708
+ */const ir=s=>class extends ge(s){static get properties(){return {tabindex:{type:Number,reflectToAttribute:!0,observer:"_tabindexChanged"},_lastTabIndex:{type:Number}}}_disabledChanged(e,i){super._disabledChanged(e,i),e?(this.tabindex!==void 0&&(this._lastTabIndex=this.tabindex),this.tabindex=-1):i&&(this.tabindex=this._lastTabIndex);}_tabindexChanged(e){this.disabled&&e!==-1&&(this._lastTabIndex=e,this.tabindex=-1);}};/**
7709
7709
  * @license
7710
7710
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7711
7711
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7712
- */const kt$1=w$1(s=>class extends ne(ir(s)){static get properties(){return {autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this);}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","");});}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus();}blur(){this.focusElement&&this.focusElement.blur();}click(){this.focusElement&&!this.disabled&&this.focusElement.click();}_focusElementChanged(e,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);}});/**
7712
+ */const At$1=w$1(s=>class extends re(ir(s)){static get properties(){return {autofocus:{type:Boolean},focusElement:{type:Object,readOnly:!0,observer:"_focusElementChanged"},_lastTabIndex:{value:0}}}constructor(){super(),this._boundOnBlur=this._onBlur.bind(this),this._boundOnFocus=this._onFocus.bind(this);}ready(){super.ready(),this.autofocus&&!this.disabled&&requestAnimationFrame(()=>{this.focus(),this.setAttribute("focus-ring","");});}focus(){this.focusElement&&!this.disabled&&this.focusElement.focus();}blur(){this.focusElement&&this.focusElement.blur();}click(){this.focusElement&&!this.disabled&&this.focusElement.click();}_focusElementChanged(e,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);}});/**
7713
7713
  * @license
7714
7714
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7715
7715
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7717,19 +7717,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7717
7717
  * @license
7718
7718
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7719
7719
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7720
- */const Ke=w$1(s=>class extends s{static get properties(){return {inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this);}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return "value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e);}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue="";}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange);}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange);}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"");}_inputElementChanged(e,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;}});/**
7720
+ */const Ye=w$1(s=>class extends s{static get properties(){return {inputElement:{type:Object,readOnly:!0,observer:"_inputElementChanged"},type:{type:String,readOnly:!0},value:{type:String,value:"",observer:"_valueChanged",notify:!0,sync:!0},_hasInputValue:{type:Boolean,value:!1,observer:"_hasInputValueChanged"}}}constructor(){super(),this._boundOnInput=this.__onInput.bind(this),this._boundOnChange=this._onChange.bind(this);}get _hasValue(){return this.value!=null&&this.value!==""}get _inputElementValueProperty(){return "value"}get _inputElementValue(){return this.inputElement?this.inputElement[this._inputElementValueProperty]:void 0}set _inputElementValue(e){this.inputElement&&(this.inputElement[this._inputElementValueProperty]=e);}clear(){this._hasInputValue=!1,this.value="",this._inputElementValue="";}_addInputListeners(e){e.addEventListener("input",this._boundOnInput),e.addEventListener("change",this._boundOnChange);}_removeInputListeners(e){e.removeEventListener("input",this._boundOnInput),e.removeEventListener("change",this._boundOnChange);}_forwardInputValue(e){this.inputElement&&(this._inputElementValue=e!=null?e:"");}_inputElementChanged(e,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;}});/**
7721
7721
  * @license
7722
7722
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7723
7723
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7724
- */const Nl=w$1(s=>class extends Wi(be(Ke(s))){static get properties(){return {checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return [...super.delegateProps,"checked"]}_onChange(e){const i=e.target;this._toggleChecked(i.checked);}_toggleChecked(e){this.checked=e;}});/**
7724
+ */const Nl=w$1(s=>class extends Wi(ge(Ye(s))){static get properties(){return {checked:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0}}}static get delegateProps(){return [...super.delegateProps,"checked"]}_onChange(e){const i=e.target;this._toggleChecked(i.checked);}_toggleChecked(e){this.checked=e;}});/**
7725
7725
  * @license
7726
7726
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
7727
7727
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7728
- */const qt=new Map;function ji(s){return qt.has(s)||qt.set(s,new WeakMap),qt.get(s)}function or(s,t){s&&s.removeAttribute(t);}function sr(s,t){if(!s||!t)return;const e=ji(t);if(e.has(s))return;const i=Mi(s.getAttribute(t));e.set(s,new Set(i));}function Ll(s,t){if(!s||!t)return;const e=ji(t),i=e.get(s);!i||i.size===0?s.removeAttribute(t):Gs(s,t,Et$1(i)),e.delete(s);}function me(s,t,e={newId:null,oldId:null,fromUser:!1}){if(!s||!t)return;const{newId:i,oldId:o,fromUser:r}=e,n=ji(t),a=n.get(s);if(!r&&a){o&&a.delete(o),i&&a.add(i);return}r&&(a?i||n.delete(s):sr(s,t),or(s,t)),ul(s,t,o);const l=i||Et$1(a);l&&Gs(s,t,l);}function Bl(s,t){sr(s,t),or(s,t);}/**
7728
+ */const jt$1=new Map;function ji(s){return jt$1.has(s)||jt$1.set(s,new WeakMap),jt$1.get(s)}function or(s,t){s&&s.removeAttribute(t);}function sr(s,t){if(!s||!t)return;const e=ji(t);if(e.has(s))return;const i=zi(s.getAttribute(t));e.set(s,new Set(i));}function Ll(s,t){if(!s||!t)return;const e=ji(t),i=e.get(s);!i||i.size===0?s.removeAttribute(t):Gs(s,t,Ct$1(i)),e.delete(s);}function pe(s,t,e={newId:null,oldId:null,fromUser:!1}){if(!s||!t)return;const{newId:i,oldId:o,fromUser:r}=e,n=ji(t),a=n.get(s);if(!r&&a){o&&a.delete(o),i&&a.add(i);return}r&&(a?i||n.delete(s):sr(s,t),or(s,t)),ul(s,t,o);const l=i||Ct$1(a);l&&Gs(s,t,l);}function Bl(s,t){sr(s,t),or(s,t);}/**
7729
7729
  * @license
7730
7730
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7731
7731
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7732
- */class Fl{constructor(t){this.host=t,this.__required=!1;}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label);}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t;}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t;}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t;}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t;}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t;}__setAriaLabelToAttribute(t){this.__target&&(t?(Bl(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Ll(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")));}__setLabelIdToAriaAttribute(t,e,i){me(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i});}__setErrorIdToAriaAttribute(t,e){me(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setHelperIdToAriaAttribute(t,e){me(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")));}}/**
7732
+ */class Fl{constructor(t){this.host=t,this.__required=!1;}setTarget(t){this.__target=t,this.__setAriaRequiredAttribute(this.__required),this.__setLabelIdToAriaAttribute(this.__labelId,this.__labelId),this.__labelIdFromUser!=null&&this.__setLabelIdToAriaAttribute(this.__labelIdFromUser,this.__labelIdFromUser,!0),this.__setErrorIdToAriaAttribute(this.__errorId),this.__setHelperIdToAriaAttribute(this.__helperId),this.setAriaLabel(this.__label);}setRequired(t){this.__setAriaRequiredAttribute(t),this.__required=t;}setAriaLabel(t){this.__setAriaLabelToAttribute(t),this.__label=t;}setLabelId(t,e=!1){const i=e?this.__labelIdFromUser:this.__labelId;this.__setLabelIdToAriaAttribute(t,i,e),e?this.__labelIdFromUser=t:this.__labelId=t;}setErrorId(t){this.__setErrorIdToAriaAttribute(t,this.__errorId),this.__errorId=t;}setHelperId(t){this.__setHelperIdToAriaAttribute(t,this.__helperId),this.__helperId=t;}__setAriaLabelToAttribute(t){this.__target&&(t?(Bl(this.__target,"aria-labelledby"),this.__target.setAttribute("aria-label",t)):this.__label&&(Ll(this.__target,"aria-labelledby"),this.__target.removeAttribute("aria-label")));}__setLabelIdToAriaAttribute(t,e,i){pe(this.__target,"aria-labelledby",{newId:t,oldId:e,fromUser:i});}__setErrorIdToAriaAttribute(t,e){pe(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setHelperIdToAriaAttribute(t,e){pe(this.__target,"aria-describedby",{newId:t,oldId:e,fromUser:!1});}__setAriaRequiredAttribute(t){this.__target&&(["input","textarea"].includes(this.__target.localName)||(t?this.__target.setAttribute("aria-required","true"):this.__target.removeAttribute("aria-required")));}}/**
7733
7733
  * @license
7734
7734
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7735
7735
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7737,15 +7737,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7737
7737
  * @license
7738
7738
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
7739
7739
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7740
- */const L$1=document.createElement("div");L$1.style.position="fixed";L$1.style.clip="rect(0px, 0px, 0px, 0px)";L$1.setAttribute("aria-live","polite");document.body.appendChild(L$1);let it$1;function ct$1(s,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(L$1.removeAttribute("aria-live"),L$1.removeAttribute("role"),it$1=z$1.debounce(it$1,Ue,()=>{L$1.setAttribute("role","alert");})):(it$1&&it$1.cancel(),L$1.removeAttribute("role"),L$1.setAttribute("aria-live",e)),L$1.textContent="",setTimeout(()=>{L$1.textContent=s;},i);}/**
7740
+ */const L$1=document.createElement("div");L$1.style.position="fixed";L$1.style.clip="rect(0px, 0px, 0px, 0px)";L$1.setAttribute("aria-live","polite");document.body.appendChild(L$1);let tt$1;function dt$1(s,t={}){const e=t.mode||"polite",i=t.timeout===void 0?150:t.timeout;e==="alert"?(L$1.removeAttribute("aria-live"),L$1.removeAttribute("role"),tt$1=z$1.debounce(tt$1,He,()=>{L$1.setAttribute("role","alert");})):(tt$1&&tt$1.cancel(),L$1.removeAttribute("role"),L$1.setAttribute("aria-live",e)),L$1.textContent="",setTimeout(()=>{L$1.textContent=s;},i);}/**
7741
7741
  * @license
7742
7742
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
7743
7743
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7744
- */class qi extends T$1{constructor(t,e,i,o={}){super(t,e,i,Nt$1(we({},o),{useUniqueId:!0}));}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t);}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node));}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t);}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(i=>{const o=i.target,r=o===this.node;i.type==="attributes"?r&&this.__updateNodeId(o):(r||o.parentElement===this.node)&&this.__notifyChange(this.node);});}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0});}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}));}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId);}}/**
7744
+ */class qi extends T$1{constructor(t,e,i,o={}){super(t,e,i,Mt$1(xe({},o),{useUniqueId:!0}));}initCustomNode(t){this.__updateNodeId(t),this.__notifyChange(t);}teardownNode(t){const e=this.getSlotChild();e&&e!==this.defaultNode?this.__notifyChange(e):(this.restoreDefaultNode(),this.updateDefaultNode(this.node));}attachDefaultNode(){const t=super.attachDefaultNode();return t&&this.__updateNodeId(t),t}restoreDefaultNode(){}updateDefaultNode(t){this.__notifyChange(t);}observeNode(t){this.__nodeObserver&&this.__nodeObserver.disconnect(),this.__nodeObserver=new MutationObserver(e=>{e.forEach(i=>{const o=i.target,r=o===this.node;i.type==="attributes"?r&&this.__updateNodeId(o):(r||o.parentElement===this.node)&&this.__notifyChange(this.node);});}),this.__nodeObserver.observe(t,{attributes:!0,attributeFilter:["id"],childList:!0,subtree:!0,characterData:!0});}__hasContent(t){return t?t.nodeType===Node.ELEMENT_NODE&&(customElements.get(t.localName)||t.children.length>0)||t.textContent&&t.textContent.trim()!=="":!1}__notifyChange(t){this.dispatchEvent(new CustomEvent("slot-content-changed",{detail:{hasContent:this.__hasContent(t),node:t}}));}__updateNodeId(t){const e=!this.nodes||t===this.nodes[0];t.nodeType===Node.ELEMENT_NODE&&(!this.multiple||e)&&!t.id&&(t.id=this.defaultId);}}/**
7745
7745
  * @license
7746
7746
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7747
7747
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7748
- */class Vl extends qi{constructor(t){super(t,"error-message","div");}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node);}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node);}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t);}initNode(t){this.updateDefaultNode(t);}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t);}restoreDefaultNode(){this.attachDefaultNode();}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,o=!!(i&&e&&e.trim()!=="");t&&(t.textContent=o?e:"",t.hidden=!o,o&&ct$1(e,{mode:"assertive"})),super.updateDefaultNode(t);}}/**
7748
+ */class Vl extends qi{constructor(t){super(t,"error-message","div");}setErrorMessage(t){this.errorMessage=t,this.updateDefaultNode(this.node);}setInvalid(t){this.invalid=t,this.updateDefaultNode(this.node);}initAddedNode(t){t!==this.defaultNode&&this.initCustomNode(t);}initNode(t){this.updateDefaultNode(t);}initCustomNode(t){t.textContent&&!this.errorMessage&&(this.errorMessage=t.textContent.trim()),super.initCustomNode(t);}restoreDefaultNode(){this.attachDefaultNode();}updateDefaultNode(t){const{errorMessage:e,invalid:i}=this,o=!!(i&&e&&e.trim()!=="");t&&(t.textContent=o?e:"",t.hidden=!o,o&&dt$1(e,{mode:"assertive"})),super.updateDefaultNode(t);}}/**
7749
7749
  * @license
7750
7750
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7751
7751
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -7765,19 +7765,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
7765
7765
  * @license
7766
7766
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7767
7767
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7768
- */const It=s=>class extends Yi($l(F$1(s))){static get properties(){return {ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return ["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Fl(this),this._helperController=new Rl(this),this._errorController=new Vl(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent);}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.__labelChanged(i,o);}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,o);});}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController);}__helperChanged(e,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null);}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e);}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0);}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null);}_errorMessageChanged(e){this._errorController.setErrorMessage(e);}_helperTextChanged(e){this._helperController.setHelperText(e);}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e);}_requiredChanged(e){this._fieldAriaController.setRequired(e);}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id);}else this._fieldAriaController.setErrorId(null);});}};/**
7768
+ */const kt$1=s=>class extends Yi($l(F$1(s))){static get properties(){return {ariaTarget:{type:Object,observer:"_ariaTargetChanged"},errorMessage:{type:String,observer:"_errorMessageChanged"},helperText:{type:String,observer:"_helperTextChanged"},accessibleName:{type:String,observer:"_accessibleNameChanged"},accessibleNameRef:{type:String,observer:"_accessibleNameRefChanged"}}}static get observers(){return ["_invalidChanged(invalid)","_requiredChanged(required)"]}constructor(){super(),this._fieldAriaController=new Fl(this),this._helperController=new Rl(this),this._errorController=new Vl(this),this._errorController.addEventListener("slot-content-changed",e=>{this.toggleAttribute("has-error-message",e.detail.hasContent);}),this._labelController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.__labelChanged(i,o);}),this._helperController.addEventListener("slot-content-changed",e=>{const{hasContent:i,node:o}=e.detail;this.toggleAttribute("has-helper",i),this.__helperChanged(i,o);});}get _errorNode(){return this._errorController.node}get _helperNode(){return this._helperController.node}ready(){super.ready(),this.addController(this._fieldAriaController),this.addController(this._helperController),this.addController(this._errorController);}__helperChanged(e,i){e?this._fieldAriaController.setHelperId(i.id):this._fieldAriaController.setHelperId(null);}_accessibleNameChanged(e){this._fieldAriaController.setAriaLabel(e);}_accessibleNameRefChanged(e){this._fieldAriaController.setLabelId(e,!0);}__labelChanged(e,i){e?this._fieldAriaController.setLabelId(i.id):this._fieldAriaController.setLabelId(null);}_errorMessageChanged(e){this._errorController.setErrorMessage(e);}_helperTextChanged(e){this._helperController.setHelperText(e);}_ariaTargetChanged(e){e&&this._fieldAriaController.setTarget(e);}_requiredChanged(e){this._fieldAriaController.setRequired(e);}_invalidChanged(e){this._errorController.setInvalid(e),setTimeout(()=>{if(e){const i=this._errorNode;this._fieldAriaController.setErrorId(i&&i.id);}else this._fieldAriaController.setErrorId(null);});}};/**
7769
7769
  * @license
7770
7770
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7771
7771
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7772
- */class Ge extends T$1{constructor(t,e,i={}){const{uniqueIdPrefix:o}=i;super(t,"input","input",{initializer:(r,n)=>{n.value&&(r.value=n.value),n.type&&r.setAttribute("type",n.type),r.id=this.defaultId,typeof e=="function"&&e(r);},useUniqueId:!0,uniqueIdPrefix:o});}}/**
7772
+ */class Ke extends T$1{constructor(t,e,i={}){const{uniqueIdPrefix:o}=i;super(t,"input","input",{initializer:(r,n)=>{n.value&&(r.value=n.value),n.type&&r.setAttribute("type",n.type),r.id=this.defaultId,typeof e=="function"&&e(r);},useUniqueId:!0,uniqueIdPrefix:o});}}/**
7773
7773
  * @license
7774
7774
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
7775
7775
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7776
- */class Xe{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node);}),this.__initLabel(e.node);}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id));}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t);};this.input.addEventListener("click",t);}}/**
7776
+ */class Ge{constructor(t,e){this.input=t,this.__preventDuplicateLabelClick=this.__preventDuplicateLabelClick.bind(this),e.addEventListener("slot-content-changed",i=>{this.__initLabel(i.detail.node);}),this.__initLabel(e.node);}__initLabel(t){t&&(t.addEventListener("click",this.__preventDuplicateLabelClick),this.input&&t.setAttribute("for",this.input.id));}__preventDuplicateLabelClick(){const t=e=>{e.stopImmediatePropagation(),this.input.removeEventListener("click",t);};this.input.addEventListener("click",t);}}/**
7777
7777
  * @license
7778
7778
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7779
7779
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
7780
- */const Hl=s=>class extends It(Nl(kt$1(Ri(s)))){static get properties(){return {indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return ["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return [...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return [...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on";}ready(){super.ready(),this.addController(new Ge(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new Xe(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)");}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick);}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick);}_onInputClick(e){this.readonly&&e.preventDefault();}__readonlyChanged(e,i){i&&(e?i.setAttribute("aria-readonly","true"):i.removeAttribute("aria-readonly"));}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e);}checkValidity(){return !this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e;}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate();}_onRequiredIndicatorClick(){this._labelNode.click();}};/**
7780
+ */const Hl=s=>class extends kt$1(Nl(At$1(Ri(s)))){static get properties(){return {indeterminate:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0},name:{type:String,value:""},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},tabindex:{type:Number,value:0,reflectToAttribute:!0}}}static get observers(){return ["__readonlyChanged(readonly, inputElement)"]}static get delegateProps(){return [...super.delegateProps,"indeterminate"]}static get delegateAttrs(){return [...super.delegateAttrs,"name","invalid","required"]}constructor(){super(),this._setType("checkbox"),this._boundOnInputClick=this._onInputClick.bind(this),this.value="on";}ready(){super.ready(),this.addController(new Ke(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new Ge(this.inputElement,this._labelController)),this._createMethodObserver("_checkedChanged(checked)");}_shouldSetActive(e){return this.readonly||e.target.localName==="a"||e.target===this._helperNode||e.target===this._errorNode?!1:super._shouldSetActive(e)}_addInputListeners(e){super._addInputListeners(e),e.addEventListener("click",this._boundOnInputClick);}_removeInputListeners(e){super._removeInputListeners(e),e.removeEventListener("click",this._boundOnInputClick);}_onInputClick(e){this.readonly&&e.preventDefault();}__readonlyChanged(e,i){i&&(e?i.setAttribute("aria-readonly","true"):i.removeAttribute("aria-readonly"));}_toggleChecked(e){this.indeterminate&&(this.indeterminate=!1),super._toggleChecked(e);}checkValidity(){return !this.required||!!this.checked}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}_checkedChanged(e){(e||this.__oldChecked)&&this.validate(),this.__oldChecked=e;}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate();}_onRequiredIndicatorClick(){this._labelNode.click();}};/**
7781
7781
  * @license
7782
7782
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
7783
7783
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -8112,7 +8112,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8112
8112
  * @license
8113
8113
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
8114
8114
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8115
- */const ql=s=>class extends It(ne(be(s))){static get properties(){return {value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new U$1(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const i=e.detail.node;if(i&&i.isConnected){const o=this.__checkboxes.map(r=>r.inputElement);this._tooltipController.setAriaTarget(o);}else this._tooltipController.setAriaTarget([]);});}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Ni(e,({addedNodes:i,removedNodes:o})=>{const r=this.__filterCheckboxes(i),n=this.__filterCheckboxes(o);r.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);const a=this.__checkboxes.map(l=>l.inputElement);this._tooltipController.setAriaTarget(a),this.__warnOfCheckboxesWithoutValue(r);}),this.addController(this._tooltipController);}checkValidity(){return !this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(i=>i.nodeType===Node.ELEMENT_NODE&&i.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(o=>{const{value:r}=o;return !o.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.");}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0);}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value);}_disabledChanged(e,i){super._disabledChanged(e,i),!(!e&&i===void 0)&&i!==e&&this.__checkboxes.forEach(o=>{o.disabled=e;});}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e];}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(i=>i!==e));}__onCheckboxCheckedChanged(e){const i=e.target;i.checked?this.__addCheckboxToValue(i.value):this.__removeCheckboxFromValue(i.value);}__valueChanged(e,i){e&&e.length===0&&i===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(o=>{o.checked=e&&e.includes(o.value);}),i!==void 0&&this.validate());}__readonlyChanged(e,i){(e||i)&&this.__checkboxes.forEach(o=>{o.readonly=e;});}_shouldRemoveFocus(e){return !this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}};/**
8115
+ */const ql=s=>class extends kt$1(re(ge(s))){static get properties(){return {value:{type:Array,value:()=>[],notify:!0,sync:!0,observer:"__valueChanged"},readonly:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"__readonlyChanged"}}}constructor(){super(),this.__registerCheckbox=this.__registerCheckbox.bind(this),this.__unregisterCheckbox=this.__unregisterCheckbox.bind(this),this.__onCheckboxCheckedChanged=this.__onCheckboxCheckedChanged.bind(this),this._tooltipController=new U$1(this),this._tooltipController.addEventListener("tooltip-changed",e=>{const i=e.detail.node;if(i&&i.isConnected){const o=this.__checkboxes.map(r=>r.inputElement);this._tooltipController.setAriaTarget(o);}else this._tooltipController.setAriaTarget([]);});}get __checkboxes(){return this.__filterCheckboxes([...this.children])}ready(){super.ready(),this.ariaTarget=this,this.setAttribute("role","group");const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Mi(e,({addedNodes:i,removedNodes:o})=>{const r=this.__filterCheckboxes(i),n=this.__filterCheckboxes(o);r.forEach(this.__registerCheckbox),n.forEach(this.__unregisterCheckbox);const a=this.__checkboxes.map(l=>l.inputElement);this._tooltipController.setAriaTarget(a),this.__warnOfCheckboxesWithoutValue(r);}),this.addController(this._tooltipController);}checkValidity(){return !this.required||!!(this.value&&this.value.length>0)}__filterCheckboxes(e){return e.filter(i=>i.nodeType===Node.ELEMENT_NODE&&i.localName==="vaadin-checkbox")}__warnOfCheckboxesWithoutValue(e){e.some(o=>{const{value:r}=o;return !o.hasAttribute("value")&&(!r||r==="on")})&&console.warn("Please provide the value attribute to all the checkboxes inside the checkbox group.");}__registerCheckbox(e){e.addEventListener("checked-changed",this.__onCheckboxCheckedChanged),this.disabled&&(e.disabled=!0),this.readonly&&(e.readonly=!0),e.checked?this.__addCheckboxToValue(e.value):this.value&&this.value.includes(e.value)&&(e.checked=!0);}__unregisterCheckbox(e){e.removeEventListener("checked-changed",this.__onCheckboxCheckedChanged),e.checked&&this.__removeCheckboxFromValue(e.value);}_disabledChanged(e,i){super._disabledChanged(e,i),!(!e&&i===void 0)&&i!==e&&this.__checkboxes.forEach(o=>{o.disabled=e;});}__addCheckboxToValue(e){this.value?this.value.includes(e)||(this.value=[...this.value,e]):this.value=[e];}__removeCheckboxFromValue(e){this.value&&this.value.includes(e)&&(this.value=this.value.filter(i=>i!==e));}__onCheckboxCheckedChanged(e){const i=e.target;i.checked?this.__addCheckboxToValue(i.value):this.__removeCheckboxFromValue(i.value);}__valueChanged(e,i){e&&e.length===0&&i===void 0||(this.toggleAttribute("has-value",e&&e.length>0),this.__checkboxes.forEach(o=>{o.checked=e&&e.includes(o.value);}),i!==void 0&&this.validate());}__readonlyChanged(e,i){(e||i)&&this.__checkboxes.forEach(o=>{o.readonly=e;});}_shouldRemoveFocus(e){return !this.contains(e.relatedTarget)}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}};/**
8116
8116
  * @license
8117
8117
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
8118
8118
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -8174,7 +8174,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8174
8174
  * @license
8175
8175
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
8176
8176
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8177
- */const ye=p$1`
8177
+ */const be=p$1`
8178
8178
  :host {
8179
8179
  top: var(--lumo-space-m);
8180
8180
  right: var(--lumo-space-m);
@@ -8239,11 +8239,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8239
8239
  opacity: 1;
8240
8240
  }
8241
8241
  }
8242
- `;m$1("",ye,{moduleId:"lumo-overlay"});/**
8242
+ `;m$1("",be,{moduleId:"lumo-overlay"});/**
8243
8243
  * @license
8244
8244
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
8245
8245
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
8246
- */const St$1=p$1`
8246
+ */const It=p$1`
8247
8247
  :host([opening]),
8248
8248
  :host([closing]) {
8249
8249
  animation: 0.14s lumo-overlay-dummy-animation;
@@ -8273,7 +8273,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8273
8273
  opacity: 0;
8274
8274
  }
8275
8275
  }
8276
- `;m$1("",St$1,{moduleId:"lumo-menu-overlay-core"});const Gl=p$1`
8276
+ `;m$1("",It,{moduleId:"lumo-menu-overlay-core"});const Gl=p$1`
8277
8277
  /* Small viewport (bottom sheet) styles */
8278
8278
  /* Use direct media queries instead of the state attributes ([phone] and [fullscreen]) provided by the elements */
8279
8279
  @media (max-width: 450px), (max-height: 450px) {
@@ -8335,7 +8335,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
8335
8335
  transform: translateY(150%);
8336
8336
  }
8337
8337
  }
8338
- `,Gi=[ye,St$1,Gl];m$1("",Gi,{moduleId:"lumo-menu-overlay"});const Xl=p$1`
8338
+ `,Gi=[be,It,Gl];m$1("",Gi,{moduleId:"lumo-menu-overlay"});const Xl=p$1`
8339
8339
  [part='overlay'] {
8340
8340
  /*
8341
8341
  Width:
@@ -9321,7 +9321,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9321
9321
  [part='clear-button']::before {
9322
9322
  content: var(--lumo-icons-cross);
9323
9323
  }
9324
- `,ae=[Ki,Xi,nr,Jl];m$1("",ae,{moduleId:"lumo-input-field-shared-styles"});const Ql=p$1`
9324
+ `,ne=[Ki,Xi,nr,Jl];m$1("",ne,{moduleId:"lumo-input-field-shared-styles"});const Ql=p$1`
9325
9325
  [part='toggle-button']::before {
9326
9326
  content: var(--lumo-icons-calendar);
9327
9327
  }
@@ -9343,7 +9343,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9343
9343
  :host([dir='rtl']) [part='input-field'] ::slotted(input:placeholder-shown) {
9344
9344
  --_lumo-text-field-overflow-mask-image: none;
9345
9345
  }
9346
- `;m$1("vaadin-date-picker",[ae,Ql],{moduleId:"lumo-date-picker"});/**
9346
+ `;m$1("vaadin-date-picker",[ne,Ql],{moduleId:"lumo-date-picker"});/**
9347
9347
  * @license
9348
9348
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9349
9349
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9428,7 +9428,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9428
9428
  * @license
9429
9429
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9430
9430
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9431
- */const Je=p$1`
9431
+ */const Xe=p$1`
9432
9432
  :host {
9433
9433
  z-index: 200;
9434
9434
  position: fixed;
@@ -9495,15 +9495,15 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9495
9495
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9496
9496
  Code distributed by Google as part of the polymer project is also
9497
9497
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9498
- */let _i=!1,td=[],dr=[];function id(){_i=!0,requestAnimationFrame(function(){_i=!1,od(td),setTimeout(function(){sd(dr);});});}function od(s){for(;s.length;)cr(s.shift());}function sd(s){for(let t=0,e=s.length;t<e;t++)cr(s.shift());}function cr(s){const t=s[0],e=s[1],i=s[2];try{e.apply(t,i);}catch(o){setTimeout(()=>{throw o});}}function Ji(s,t,e){_i||id(),dr.push([s,t,e]);}/**
9498
+ */let fi=!1,td=[],dr=[];function id(){fi=!0,requestAnimationFrame(function(){fi=!1,od(td),setTimeout(function(){sd(dr);});});}function od(s){for(;s.length;)cr(s.shift());}function sd(s){for(let t=0,e=s.length;t<e;t++)cr(s.shift());}function cr(s){const t=s[0],e=s[1],i=s[2];try{e.apply(t,i);}catch(o){setTimeout(()=>{throw o});}}function Ji(s,t,e){fi||id(),dr.push([s,t,e]);}/**
9499
9499
  * @license
9500
9500
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9501
9501
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9502
- */const Pt$1=s=>s.test(navigator.userAgent),vi=s=>s.test(navigator.platform),rd=s=>s.test(navigator.vendor);Pt$1(/Android/u);Pt$1(/Chrome/u)&&rd(/Google Inc/u);Pt$1(/Firefox/u);const nd=vi(/^iPad/u)||vi(/^Mac/u)&&navigator.maxTouchPoints>1,ad=vi(/^iPhone/u),Qi=ad||nd,ld=Pt$1(/^((?!chrome|android).)*safari/iu),gi=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(s){return !1}})();/**
9502
+ */const St$1=s=>s.test(navigator.userAgent),_i=s=>s.test(navigator.platform),rd=s=>s.test(navigator.vendor);St$1(/Android/u);St$1(/Chrome/u)&&rd(/Google Inc/u);St$1(/Firefox/u);const nd=_i(/^iPad/u)||_i(/^Mac/u)&&navigator.maxTouchPoints>1,ad=_i(/^iPhone/u),Qi=ad||nd,ld=St$1(/^((?!chrome|android).)*safari/iu),vi=(()=>{try{return document.createEvent("TouchEvent"),!0}catch(s){return !1}})();/**
9503
9503
  * @license
9504
9504
  * Copyright (c) 2017 Anton Korzunov
9505
9505
  * SPDX-License-Identifier: MIT
9506
- */let le=new WeakMap,ot$1=new WeakMap,st$1={},Yt=0;const jo=s=>s&&s.nodeType===Node.ELEMENT_NODE,Kt=(...s)=>{console.error(`Error: ${s.join(" ")}. Skip setting aria-hidden.`);},dd=(s,t)=>jo(s)?t.map(e=>{if(!jo(e))return Kt(e,"is not a valid element"),null;let i=e;for(;i&&i!==s;){if(s.contains(i))return e;i=i.getRootNode().host;}return Kt(e,"is not contained inside",s),null}).filter(e=>!!e):(Kt(s,"is not a valid element"),[]),cd=(s,t,e,i)=>{const o=dd(t,Array.isArray(s)?s:[s]);st$1[e]||(st$1[e]=new WeakMap);const r=st$1[e],n=[],a=new Set,l=new Set(o),d=h=>{if(!h||a.has(h))return;a.add(h);const u=h.assignedSlot;u&&d(u),d(h.parentNode||h.host);};o.forEach(d);const c=h=>{if(!h||l.has(h))return;const u=h.shadowRoot;(u?[...h.children,...u.children]:[...h.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))c(_);else {const S=_.getAttribute(i),P=S!==null&&S!=="false",E=(le.get(_)||0)+1,C=(r.get(_)||0)+1;le.set(_,E),r.set(_,C),n.push(_),E===1&&P&&ot$1.set(_,!0),C===1&&_.setAttribute(e,"true"),P||_.setAttribute(i,"true");}});};return c(t),a.clear(),Yt+=1,()=>{n.forEach(h=>{const u=le.get(h)-1,f=r.get(h)-1;le.set(h,u),r.set(h,f),u||(ot$1.has(h)?ot$1.delete(h):h.removeAttribute(i)),f||h.removeAttribute(e);}),Yt-=1,Yt||(le=new WeakMap,le=new WeakMap,ot$1=new WeakMap,st$1={});}},hr=(s,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(s)?s:[s]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),cd(i,t,e,"aria-hidden")};/**
9506
+ */let ae=new WeakMap,it$1=new WeakMap,ot$1={},qt=0;const jo=s=>s&&s.nodeType===Node.ELEMENT_NODE,Yt=(...s)=>{console.error(`Error: ${s.join(" ")}. Skip setting aria-hidden.`);},dd=(s,t)=>jo(s)?t.map(e=>{if(!jo(e))return Yt(e,"is not a valid element"),null;let i=e;for(;i&&i!==s;){if(s.contains(i))return e;i=i.getRootNode().host;}return Yt(e,"is not contained inside",s),null}).filter(e=>!!e):(Yt(s,"is not a valid element"),[]),cd=(s,t,e,i)=>{const o=dd(t,Array.isArray(s)?s:[s]);ot$1[e]||(ot$1[e]=new WeakMap);const r=ot$1[e],n=[],a=new Set,l=new Set(o),d=h=>{if(!h||a.has(h))return;a.add(h);const u=h.assignedSlot;u&&d(u),d(h.parentNode||h.host);};o.forEach(d);const c=h=>{if(!h||l.has(h))return;const u=h.shadowRoot;(u?[...h.children,...u.children]:[...h.children]).forEach(_=>{if(!["template","script","style"].includes(_.localName))if(a.has(_))c(_);else {const S=_.getAttribute(i),P=S!==null&&S!=="false",E=(ae.get(_)||0)+1,C=(r.get(_)||0)+1;ae.set(_,E),r.set(_,C),n.push(_),E===1&&P&&it$1.set(_,!0),C===1&&_.setAttribute(e,"true"),P||_.setAttribute(i,"true");}});};return c(t),a.clear(),qt+=1,()=>{n.forEach(h=>{const u=ae.get(h)-1,f=r.get(h)-1;ae.set(h,u),r.set(h,f),u||(it$1.has(h)?it$1.delete(h):h.removeAttribute(i)),f||h.removeAttribute(e);}),qt-=1,qt||(ae=new WeakMap,ae=new WeakMap,it$1=new WeakMap,ot$1={});}},hr=(s,t=document.body,e="data-aria-hidden")=>{const i=Array.from(Array.isArray(s)?s:[s]);return t&&i.push(...Array.from(t.querySelectorAll("[aria-live]"))),cd(i,t,e,"aria-hidden")};/**
9507
9507
  * @license
9508
9508
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9509
9509
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9511,35 +9511,35 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9511
9511
  * @license
9512
9512
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9513
9513
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9514
- */class ud{saveFocus(t){this.focusNode=t||pi();}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=t?t.preventScroll:!1;pi()===document.body?setTimeout(()=>e.focus({preventScroll:i})):e.focus({preventScroll:i}),this.focusNode=null;}}/**
9514
+ */class ud{saveFocus(t){this.focusNode=t||ui();}restoreFocus(t){const e=this.focusNode;if(!e)return;const i=t?t.preventScroll:!1;ui()===document.body?setTimeout(()=>e.focus({preventScroll:i})):e.focus({preventScroll:i}),this.focusNode=null;}}/**
9515
9515
  * @license
9516
9516
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9517
9517
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9518
- */const Gt=[];class pd{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this);}get __focusableElements(){return Ml(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Ui).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown);}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown);}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Gt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus();}releaseFocus(){this.__trapNode=null,Gt.pop();}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Gt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e);}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,o=this.__focusedElementIndex,r=(e.length+o+i)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select();}}/**
9518
+ */const Kt=[];class pd{constructor(t){this.host=t,this.__trapNode=null,this.__onKeyDown=this.__onKeyDown.bind(this);}get __focusableElements(){return Ml(this.__trapNode)}get __focusedElementIndex(){const t=this.__focusableElements;return t.indexOf(t.filter(Ui).pop())}hostConnected(){document.addEventListener("keydown",this.__onKeyDown);}hostDisconnected(){document.removeEventListener("keydown",this.__onKeyDown);}trapFocus(t){if(this.__trapNode=t,this.__focusableElements.length===0)throw this.__trapNode=null,new Error("The trap node should have at least one focusable descendant or be focusable itself.");Kt.push(this),this.__focusedElementIndex===-1&&this.__focusableElements[0].focus();}releaseFocus(){this.__trapNode=null,Kt.pop();}__onKeyDown(t){if(this.__trapNode&&this===Array.from(Kt).pop()&&t.key==="Tab"){t.preventDefault();const e=t.shiftKey;this.__focusNextElement(e);}}__focusNextElement(t=!1){const e=this.__focusableElements,i=t?-1:1,o=this.__focusedElementIndex,r=(e.length+o+i)%e.length,n=e[r];n.focus(),n.localName==="input"&&n.select();}}/**
9519
9519
  * @license
9520
9520
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9521
9521
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9522
- */const md=s=>class extends F$1(s){static get properties(){return {focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new hd(this),this.__focusTrapController=new pd(this),this.__focusRestorationController=new ud;}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController);}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!At$1();this.__focusRestorationController.restoreFocus({preventScroll:e});}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode);}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay));}_shouldRestoreFocus(){const e=pi();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return !0;let i=e;const o=e.ownerDocument;for(;i&&i!==o&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
9522
+ */const md=s=>class extends F$1(s){static get properties(){return {focusTrap:{type:Boolean,value:!1},restoreFocusOnClose:{type:Boolean,value:!1},restoreFocusNode:{type:HTMLElement}}}constructor(){super(),this.__ariaModalController=new hd(this),this.__focusTrapController=new pd(this),this.__focusRestorationController=new ud;}ready(){super.ready(),this.addController(this.__ariaModalController),this.addController(this.__focusTrapController),this.addController(this.__focusRestorationController);}_resetFocus(){if(this.focusTrap&&(this.__ariaModalController.close(),this.__focusTrapController.releaseFocus()),this.restoreFocusOnClose&&this._shouldRestoreFocus()){const e=!Et$1();this.__focusRestorationController.restoreFocus({preventScroll:e});}}_saveFocus(){this.restoreFocusOnClose&&this.__focusRestorationController.saveFocus(this.restoreFocusNode);}_trapFocus(){this.focusTrap&&(this.__ariaModalController.showModal(),this.__focusTrapController.trapFocus(this.$.overlay));}_shouldRestoreFocus(){const e=ui();return e===document.body||this._deepContains(e)}_deepContains(e){if(this.contains(e))return !0;let i=e;const o=e.ownerDocument;for(;i&&i!==o&&i!==this;)i=i.parentNode||i.host;return i===this}};/**
9523
9523
  * @license
9524
9524
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9525
9525
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9526
- */const ur=()=>Array.from(document.body.children).filter(s=>s instanceof HTMLElement&&s._hasOverlayStackMixin&&!s.hasAttribute("closing")).sort((s,t)=>s.__zIndex-t.__zIndex||0),bi=()=>ur().filter(s=>s.$.overlay),fd=s=>s===bi().pop(),pr=s=>class extends s{constructor(){super(),this._hasOverlayStackMixin=!0;}get _last(){return fd(this)}bringToFront(){let e="";const i=ur().filter(o=>o!==this).pop();i&&(e=i.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex);}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),bi().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none");});}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=bi();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
9526
+ */const ur=()=>Array.from(document.body.children).filter(s=>s instanceof HTMLElement&&s._hasOverlayStackMixin&&!s.hasAttribute("closing")).sort((s,t)=>s.__zIndex-t.__zIndex||0),gi=()=>ur().filter(s=>s.$.overlay),fd=s=>s===gi().pop(),pr=s=>class extends s{constructor(){super(),this._hasOverlayStackMixin=!0;}get _last(){return fd(this)}bringToFront(){let e="";const i=ur().filter(o=>o!==this).pop();i&&(e=i.__zIndex+1),this.style.zIndex=e,this.__zIndex=e||parseFloat(getComputedStyle(this).zIndex);}_enterModalState(){document.body.style.pointerEvents!=="none"&&(this._previousDocumentPointerEvents=document.body.style.pointerEvents,document.body.style.pointerEvents="none"),gi().forEach(e=>{e!==this&&(e.$.overlay.style.pointerEvents="none");});}_exitModalState(){this._previousDocumentPointerEvents!==void 0&&(document.body.style.pointerEvents=this._previousDocumentPointerEvents,delete this._previousDocumentPointerEvents);const e=gi();let i;for(;(i=e.pop())&&!(i!==this&&(i.$.overlay.style.removeProperty("pointer-events"),!i.modeless)););}};/**
9527
9527
  * @license
9528
9528
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9529
9529
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9530
- */const Qe=s=>class extends md(pr(s)){static get properties(){return {opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return ["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Qi&&(this._boundIosResizeListener=()=>this._detectIosNavbar());}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus();});}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener));}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener);}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model);}close(e){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1);}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,o=window.innerWidth>e,r=document.documentElement.clientHeight;o&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0");}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0);}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0);}_rendererOrDataChanged(e,i,o,r){const n=this._oldOwner!==i||this._oldModel!==o;this._oldModel=o,this._oldOwner=i;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const d=this._oldOpened!==r;this._oldOpened=r,a&&l&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||d||n)&&this.requestContentUpdate();}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState());}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),Ji(this,()=>{this._trapFocus();const o=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(o);}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners());}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing");}_shouldAnimate(){const e=getComputedStyle(this),i=e.getPropertyValue("animation-name");return !(e.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(e,i){const o=`__${e}Handler`,r=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",r),delete this[o]);};this[o]=r,this.addEventListener("animationend",r);}_flushAnimation(e){const i=`__${e}Handler`;typeof this[i]=="function"&&this[i]();}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening();}):this._finishOpening();}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront();}_finishOpening(){this.removeAttribute("opening");}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"));}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing();}):this._finishClosing());}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder);}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0;}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0;}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}}};/**
9530
+ */const Je=s=>class extends md(pr(s)){static get properties(){return {opened:{type:Boolean,notify:!0,observer:"_openedChanged",reflectToAttribute:!0},owner:{type:Object},model:{type:Object},renderer:{type:Object},modeless:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_modelessChanged"},hidden:{type:Boolean,reflectToAttribute:!0,observer:"_hiddenChanged"},withBackdrop:{type:Boolean,value:!1,reflectToAttribute:!0}}}static get observers(){return ["_rendererOrDataChanged(renderer, owner, model, opened)"]}constructor(){super(),this._boundMouseDownListener=this._mouseDownListener.bind(this),this._boundMouseUpListener=this._mouseUpListener.bind(this),this._boundOutsideClickListener=this._outsideClickListener.bind(this),this._boundKeydownListener=this._keydownListener.bind(this),Qi&&(this._boundIosResizeListener=()=>this._detectIosNavbar());}ready(){super.ready(),this.addEventListener("click",()=>{}),this.$.backdrop.addEventListener("click",()=>{}),this.addEventListener("mouseup",()=>{document.activeElement===document.body&&this.$.overlay.getAttribute("tabindex")==="0"&&this.$.overlay.focus();});}connectedCallback(){super.connectedCallback(),this._boundIosResizeListener&&(this._detectIosNavbar(),window.addEventListener("resize",this._boundIosResizeListener));}disconnectedCallback(){super.disconnectedCallback(),this._boundIosResizeListener&&window.removeEventListener("resize",this._boundIosResizeListener);}requestContentUpdate(){this.renderer&&this.renderer.call(this.owner,this,this.owner,this.model);}close(e){const i=new CustomEvent("vaadin-overlay-close",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),i.defaultPrevented||(this.opened=!1);}_detectIosNavbar(){if(!this.opened)return;const e=window.innerHeight,o=window.innerWidth>e,r=document.documentElement.clientHeight;o&&r>e?this.style.setProperty("--vaadin-overlay-viewport-bottom",`${r-e}px`):this.style.setProperty("--vaadin-overlay-viewport-bottom","0");}_addGlobalListeners(){document.addEventListener("mousedown",this._boundMouseDownListener),document.addEventListener("mouseup",this._boundMouseUpListener),document.documentElement.addEventListener("click",this._boundOutsideClickListener,!0);}_removeGlobalListeners(){document.removeEventListener("mousedown",this._boundMouseDownListener),document.removeEventListener("mouseup",this._boundMouseUpListener),document.documentElement.removeEventListener("click",this._boundOutsideClickListener,!0);}_rendererOrDataChanged(e,i,o,r){const n=this._oldOwner!==i||this._oldModel!==o;this._oldModel=o,this._oldOwner=i;const a=this._oldRenderer!==e,l=this._oldRenderer!==void 0;this._oldRenderer=e;const d=this._oldOpened!==r;this._oldOpened=r,a&&l&&(this.innerHTML="",delete this._$litPart$),r&&e&&(a||d||n)&&this.requestContentUpdate();}_modelessChanged(e){e?(this._removeGlobalListeners(),this._exitModalState()):this.opened&&(this._addGlobalListeners(),this._enterModalState());}_openedChanged(e,i){e?(this._saveFocus(),this._animatedOpening(),Ji(this,()=>{this._trapFocus();const o=new CustomEvent("vaadin-overlay-open",{bubbles:!0});this.dispatchEvent(o);}),document.addEventListener("keydown",this._boundKeydownListener),this.modeless||this._addGlobalListeners()):i&&(this._resetFocus(),this._animatedClosing(),document.removeEventListener("keydown",this._boundKeydownListener),this.modeless||this._removeGlobalListeners());}_hiddenChanged(e){e&&this.hasAttribute("closing")&&this._flushAnimation("closing");}_shouldAnimate(){const e=getComputedStyle(this),i=e.getPropertyValue("animation-name");return !(e.getPropertyValue("display")==="none")&&i&&i!=="none"}_enqueueAnimation(e,i){const o=`__${e}Handler`,r=n=>{n&&n.target!==this||(i(),this.removeEventListener("animationend",r),delete this[o]);};this[o]=r,this.addEventListener("animationend",r);}_flushAnimation(e){const i=`__${e}Handler`;typeof this[i]=="function"&&this[i]();}_animatedOpening(){this.parentNode===document.body&&this.hasAttribute("closing")&&this._flushAnimation("closing"),this._attachOverlay(),this.modeless||this._enterModalState(),this.setAttribute("opening",""),this._shouldAnimate()?this._enqueueAnimation("opening",()=>{this._finishOpening();}):this._finishOpening();}_attachOverlay(){this._placeholder=document.createComment("vaadin-overlay-placeholder"),this.parentNode.insertBefore(this._placeholder,this),document.body.appendChild(this),this.bringToFront();}_finishOpening(){this.removeAttribute("opening");}_finishClosing(){this._detachOverlay(),this.$.overlay.style.removeProperty("pointer-events"),this.removeAttribute("closing"),this.dispatchEvent(new CustomEvent("vaadin-overlay-closed"));}_animatedClosing(){this.hasAttribute("opening")&&this._flushAnimation("opening"),this._placeholder&&(this._exitModalState(),this.setAttribute("closing",""),this.dispatchEvent(new CustomEvent("vaadin-overlay-closing")),this._shouldAnimate()?this._enqueueAnimation("closing",()=>{this._finishClosing();}):this._finishClosing());}_detachOverlay(){this._placeholder.parentNode.insertBefore(this,this._placeholder),this._placeholder.parentNode.removeChild(this._placeholder);}_mouseDownListener(e){this._mouseDownInside=e.composedPath().indexOf(this.$.overlay)>=0;}_mouseUpListener(e){this._mouseUpInside=e.composedPath().indexOf(this.$.overlay)>=0;}_shouldCloseOnOutsideClick(e){return this._last}_outsideClickListener(e){if(e.composedPath().includes(this.$.overlay)||this._mouseDownInside||this._mouseUpInside){this._mouseDownInside=!1,this._mouseUpInside=!1;return}if(!this._shouldCloseOnOutsideClick(e))return;const i=new CustomEvent("vaadin-overlay-outside-click",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}_keydownListener(e){if(this._last&&!(this.modeless&&!e.composedPath().includes(this.$.overlay))&&e.key==="Escape"){const i=new CustomEvent("vaadin-overlay-escape-press",{bubbles:!0,cancelable:!0,detail:{sourceEvent:e}});this.dispatchEvent(i),this.opened&&!i.defaultPrevented&&this.close(e);}}};/**
9531
9531
  * @license
9532
9532
  * Copyright (c) 2024 Vaadin Ltd.
9533
9533
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9534
- */function _d(s,t){let e=null;const i=document.documentElement;function o(){e&&e.disconnect(),e=null;}function r(n=!1,a=1){o();const{left:l,top:d,width:c,height:h}=s.getBoundingClientRect();if(n||t(),!c||!h)return;const u=Math.floor(d),f=Math.floor(i.clientWidth-(l+c)),_=Math.floor(i.clientHeight-(d+h)),S=Math.floor(l),E={rootMargin:`${-u}px ${-f}px ${-_}px ${-S}px`,threshold:Math.max(0,Math.min(1,a))||1};let C=!0;function W(xe){let J=xe[0].intersectionRatio;if(J!==a){if(!C)return r();J===0&&(J=1e-7),r(!1,J);}C=!1;}e=new IntersectionObserver(W,E),e.observe(s);}return r(!0),o}/**
9534
+ */function _d(s,t){let e=null;const i=document.documentElement;function o(){e&&e.disconnect(),e=null;}function r(n=!1,a=1){o();const{left:l,top:d,width:c,height:h}=s.getBoundingClientRect();if(n||t(),!c||!h)return;const u=Math.floor(d),f=Math.floor(i.clientWidth-(l+c)),_=Math.floor(i.clientHeight-(d+h)),S=Math.floor(l),E={rootMargin:`${-u}px ${-f}px ${-_}px ${-S}px`,threshold:Math.max(0,Math.min(1,a))||1};let C=!0;function W(ye){let J=ye[0].intersectionRatio;if(J!==a){if(!C)return r();J===0&&(J=1e-7),r(!1,J);}C=!1;}e=new IntersectionObserver(W,E),e.observe(s);}return r(!0),o}/**
9535
9535
  * @license
9536
9536
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9537
9537
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9538
- */const Xt={start:"top",end:"bottom"},Jt={start:"left",end:"right"},qo=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition();});});}),Zi=s=>class extends s{static get properties(){return {positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return ["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this);}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners();}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners();}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=hl(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0);}),this.positionTarget&&(this.__observePositionTargetMove=_d(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,qo.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,qo.observe(i))),e){const o=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(o[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 o=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,o),n=!o&&r||o&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Xt,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Jt,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 o=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,o,r,this.__margins,n,this.noHorizontalOverlap,Jt)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,o,this.__margins,r,this.noVerticalOverlap,Xt)}__shouldAlignStart(e,i,o,r,n,a,l){const d=o-e[a?l.end:l.start]-r[l.end],c=e[a?l.start:l.end]-r[l.start],h=n?d:c,f=h>(n?c:d)||h>i;return n===f}__adjustBottomProperty(e,i,o){let r;if(e===i.end){if(i.end===Xt.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=o-a;}this.__oldViewportHeight=n;}if(i.end===Jt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=o-a;}this.__oldViewportWidth=n;}}return r}__calculatePositionInOneDimension(e,i,o,r,n,a){const l=a?r.start:r.end,d=a?r.end:r.start,c=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,c),u=i[a?r.start:r.end]-e[o===a?r.end:r.start],f=h?`${h}px`:`${c+u*(a?-1:1)}px`;return {[l]:f,[d]:""}}};/**
9538
+ */const Gt={start:"top",end:"bottom"},Xt={start:"left",end:"right"},qo=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(t=>{t.target.__overlay&&t.target.__overlay._updatePosition();});});}),Zi=s=>class extends s{static get properties(){return {positionTarget:{type:Object,value:null,sync:!0},horizontalAlign:{type:String,value:"start",sync:!0},verticalAlign:{type:String,value:"top",sync:!0},noHorizontalOverlap:{type:Boolean,value:!1,sync:!0},noVerticalOverlap:{type:Boolean,value:!1,sync:!0},requiredVerticalSpace:{type:Number,value:0,sync:!0}}}static get observers(){return ["__positionSettingsChanged(horizontalAlign, verticalAlign, noHorizontalOverlap, noVerticalOverlap, requiredVerticalSpace)","__overlayOpenedChanged(opened, positionTarget)"]}constructor(){super(),this.__onScroll=this.__onScroll.bind(this),this._updatePosition=this._updatePosition.bind(this);}connectedCallback(){super.connectedCallback(),this.opened&&this.__addUpdatePositionEventListeners();}disconnectedCallback(){super.disconnectedCallback(),this.__removeUpdatePositionEventListeners();}__addUpdatePositionEventListeners(){window.visualViewport.addEventListener("resize",this._updatePosition),window.visualViewport.addEventListener("scroll",this.__onScroll,!0),this.__positionTargetAncestorRootNodes=hl(this.positionTarget),this.__positionTargetAncestorRootNodes.forEach(e=>{e.addEventListener("scroll",this.__onScroll,!0);}),this.positionTarget&&(this.__observePositionTargetMove=_d(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,qo.unobserve(i),e&&(this.__addUpdatePositionEventListeners(),i.__overlay=this,qo.observe(i))),e){const o=getComputedStyle(this);this.__margins||(this.__margins={},["top","bottom","left","right"].forEach(r=>{this.__margins[r]=parseInt(o[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 o=this.__isRTL,r=this.__shouldAlignStartHorizontally(e,o),n=!o&&r||o&&!r;this.style.alignItems=n?"flex-start":"flex-end";const a=this.getBoundingClientRect(),l=this.__calculatePositionInOneDimension(e,a,this.noVerticalOverlap,Gt,this,i),d=this.__calculatePositionInOneDimension(e,a,this.noHorizontalOverlap,Xt,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 o=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,o,r,this.__margins,n,this.noHorizontalOverlap,Xt)}__shouldAlignStartVertically(e){const i=this.requiredVerticalSpace||Math.max(this.__oldContentHeight||0,this.$.overlay.offsetHeight);this.__oldContentHeight=this.$.overlay.offsetHeight;const o=Math.min(window.innerHeight,document.documentElement.clientHeight),r=this.verticalAlign==="top";return this.__shouldAlignStart(e,i,o,this.__margins,r,this.noVerticalOverlap,Gt)}__shouldAlignStart(e,i,o,r,n,a,l){const d=o-e[a?l.end:l.start]-r[l.end],c=e[a?l.start:l.end]-r[l.start],h=n?d:c,f=h>(n?c:d)||h>i;return n===f}__adjustBottomProperty(e,i,o){let r;if(e===i.end){if(i.end===Gt.end){const n=Math.min(window.innerHeight,document.documentElement.clientHeight);if(o>n&&this.__oldViewportHeight){const a=this.__oldViewportHeight-n;r=o-a;}this.__oldViewportHeight=n;}if(i.end===Xt.end){const n=Math.min(window.innerWidth,document.documentElement.clientWidth);if(o>n&&this.__oldViewportWidth){const a=this.__oldViewportWidth-n;r=o-a;}this.__oldViewportWidth=n;}}return r}__calculatePositionInOneDimension(e,i,o,r,n,a){const l=a?r.start:r.end,d=a?r.end:r.start,c=parseFloat(n.style[l]||getComputedStyle(n)[l]),h=this.__adjustBottomProperty(l,r,c),u=i[a?r.start:r.end]-e[o===a?r.end:r.start],f=h?`${h}px`:`${c+u*(a?-1:1)}px`;return {[l]:f,[d]:""}}};/**
9539
9539
  * @license
9540
9540
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
9541
9541
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9542
- */const vd=s=>class extends Zi(Qe(s)){_shouldCloseOnOutsideClick(e){return !e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Hi(e.composedPath()[0])&&e.preventDefault();}};/**
9542
+ */const vd=s=>class extends Zi(Je(s)){_shouldCloseOnOutsideClick(e){return !e.composedPath().includes(this.positionTarget)}_mouseDownListener(e){super._mouseDownListener(e),this._shouldCloseOnOutsideClick(e)&&!Hi(e.composedPath()[0])&&e.preventDefault();}};/**
9543
9543
  * @license
9544
9544
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9545
9545
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9562,7 +9562,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9562
9562
  * @license
9563
9563
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9564
9564
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9565
- */m$1("vaadin-date-picker-overlay",[Je,gd],{moduleId:"vaadin-date-picker-overlay-styles"});class bd extends vd(M$1(x(b$1))){static get is(){return "vaadin-date-picker-overlay"}static get template(){return g$1`
9565
+ */m$1("vaadin-date-picker-overlay",[Xe,gd],{moduleId:"vaadin-date-picker-overlay-styles"});class bd extends vd(M$1(x(b$1))){static get is(){return "vaadin-date-picker-overlay"}static get template(){return g$1`
9566
9566
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
9567
9567
  <div part="overlay" id="overlay">
9568
9568
  <div part="content" id="content">
@@ -9650,7 +9650,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9650
9650
  * @license
9651
9651
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9652
9652
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9653
- */const eo=s=>class extends Ri(ir(ne(s))){static get properties(){return {tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return ["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button");}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click());}};/**
9653
+ */const eo=s=>class extends Ri(ir(re(s))){static get properties(){return {tabindex:{type:Number,value:0,reflectToAttribute:!0}}}get _activeKeys(){return ["Enter"," "]}ready(){super.ready(),this.hasAttribute("role")||this.setAttribute("role","button");}_onKeyDown(e){super._onKeyDown(e),!(e.altKey||e.shiftKey||e.ctrlKey||e.metaKey)&&this._activeKeys.includes(e.key)&&(e.preventDefault(),this.click());}};/**
9654
9654
  * @license
9655
9655
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
9656
9656
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9658,7 +9658,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9658
9658
  * @license
9659
9659
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9660
9660
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9661
- */function wd(s){let t=s.getDay();t===0&&(t=7);const e=4-t,i=new Date(s.getTime()+e*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const r=i.getTime()-o.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function yi(s){const t=new Date(s);return t.setHours(0,0,0,0),t}function H$1(s,t,e=yi){return s instanceof Date&&t instanceof Date&&e(s).getTime()===e(t).getTime()}function to(s){return {day:s.getDate(),month:s.getMonth(),year:s.getFullYear()}}function ve(s,t,e,i){let o=!1;if(typeof i=="function"&&s){const r=to(s);o=i(r);}return (!t||s>=t)&&(!e||s<=e)&&!o}function fr(s,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const o=Math.abs(s.getTime()-i.getTime()),r=Math.abs(e.getTime()-s.getTime());return o<r?i:e})}function _r(s){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(s)+t.getMonth()),e}function Cd(s,t,e=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let o=t+Math.floor(s.getFullYear()/100)*100;return s<new Date(o-50,e,i)?o-=100:s>new Date(o+50,e,i)&&(o+=100),o}function Se(s){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(s);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}function Ed(s){const t=(l,d="00")=>(d+l).substr((d+l).length-d.length);let e="",i="0000",o=s.year;o<0?(o=-o,e="-",i="000000"):s.year>=1e4&&(e="+",i="000000");const r=e+t(o,i),n=t(s.month+1),a=t(s.day);return [r,n,a].join("-")}function Ad(s){return s instanceof Date?Ed({year:s.getFullYear(),month:s.getMonth(),day:s.getDate()}):""}/**
9661
+ */function wd(s){let t=s.getDay();t===0&&(t=7);const e=4-t,i=new Date(s.getTime()+e*24*3600*1e3),o=new Date(0,0);o.setFullYear(i.getFullYear());const r=i.getTime()-o.getTime(),n=Math.round(r/(24*3600*1e3));return Math.floor(n/7+1)}function bi(s){const t=new Date(s);return t.setHours(0,0,0,0),t}function H$1(s,t,e=bi){return s instanceof Date&&t instanceof Date&&e(s).getTime()===e(t).getTime()}function to(s){return {day:s.getDate(),month:s.getMonth(),year:s.getFullYear()}}function _e(s,t,e,i){let o=!1;if(typeof i=="function"&&s){const r=to(s);o=i(r);}return (!t||s>=t)&&(!e||s<=e)&&!o}function fr(s,t){return t.filter(e=>e!==void 0).reduce((e,i)=>{if(!i)return e;if(!e)return i;const o=Math.abs(s.getTime()-i.getTime()),r=Math.abs(e.getTime()-s.getTime());return o<r?i:e})}function _r(s){const t=new Date,e=new Date(t);return e.setDate(1),e.setMonth(parseInt(s)+t.getMonth()),e}function Cd(s,t,e=0,i=1){if(t>99)throw new Error("The provided year cannot have more than 2 digits.");if(t<0)throw new Error("The provided year cannot be negative.");let o=t+Math.floor(s.getFullYear()/100)*100;return s<new Date(o-50,e,i)?o-=100:s>new Date(o+50,e,i)&&(o+=100),o}function Ie(s){const t=/^([-+]\d{1}|\d{2,4}|[-+]\d{6})-(\d{1,2})-(\d{1,2})$/u.exec(s);if(!t)return;const e=new Date(0,0);return e.setFullYear(parseInt(t[1],10)),e.setMonth(parseInt(t[2],10)-1),e.setDate(parseInt(t[3],10)),e}function Ed(s){const t=(l,d="00")=>(d+l).substr((d+l).length-d.length);let e="",i="0000",o=s.year;o<0?(o=-o,e="-",i="000000"):s.year>=1e4&&(e="+",i="000000");const r=e+t(o,i),n=t(s.month+1),a=t(s.day);return [r,n,a].join("-")}function Ad(s){return s instanceof Date?Ed({year:s.getFullYear(),month:s.getMonth(),day:s.getDate()}):""}/**
9662
9662
  @license
9663
9663
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9664
9664
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9666,7 +9666,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9666
9666
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9667
9667
  Code distributed by Google as part of the polymer project is also
9668
9668
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9669
- */class gt$1{constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,je.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),je.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}static debounce(t,e,i){return t instanceof gt$1?t._cancelAsync():t=new gt$1,t.setConfig(e,i),t}}let je=new Set;const kd=function(s){je.add(s);},Id=function(){const s=!!je.size;return je.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s};/**
9669
+ */class vt$1{constructor(){this._asyncModule=null,this._callback=null,this._timer=null;}setConfig(t,e){this._asyncModule=t,this._callback=e,this._timer=this._asyncModule.run(()=>{this._timer=null,We.delete(this),this._callback();});}cancel(){this.isActive()&&(this._cancelAsync(),We.delete(this));}_cancelAsync(){this.isActive()&&(this._asyncModule.cancel(this._timer),this._timer=null);}flush(){this.isActive()&&(this.cancel(),this._callback());}isActive(){return this._timer!=null}static debounce(t,e,i){return t instanceof vt$1?t._cancelAsync():t=new vt$1,t.setConfig(e,i),t}}let We=new Set;const kd=function(s){We.add(s);},Id=function(){const s=!!We.size;return We.forEach(t=>{try{t.flush();}catch(e){setTimeout(()=>{throw e});}}),s};/**
9670
9670
  @license
9671
9671
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9672
9672
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9728,7 +9728,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9728
9728
  <div class="buffer"></div>
9729
9729
  <div id="fullHeight"></div>
9730
9730
  </div>
9731
- `;class gr extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(vr.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1;}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0);}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i);}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return (this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll");},10));}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t;}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`);}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),io();}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper);});}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")));}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse();}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+e,o=t<this._buffers[0].translateY+e;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=z$1.debounce(this._debouncerScrollFinish,Y$1.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position);});}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`;}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=z$1.debounce(this._debouncerUpdateClones,Y$1.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones();}),this._scrollDisabled=!1;}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const r=`vaadin-infinite-scroller-item-content-${Ye()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=o,e.appendChild(n),o.setAttribute("slot",r),this.appendChild(o),this._isVisible(o,t)&&this._ensureStampedInstance(o);}}),requestAnimationFrame(()=>{this._finishInit();});}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(i=>{t.instance[i]=e[i];});}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*o;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a);}),i.updated=!0;}});}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
9731
+ `;class gr extends HTMLElement{constructor(){super(),this.attachShadow({mode:"open"}).appendChild(vr.content.cloneNode(!0)),this.bufferSize=20,this._initialScroll=5e5,this._initialIndex=0,this._activated=!1;}get active(){return this._activated}set active(t){t&&!this._activated&&(this._createPool(),this._activated=!0);}get bufferOffset(){return this._buffers[0].offsetTop}get itemHeight(){if(!this._itemHeightVal){const t=getComputedStyle(this).getPropertyValue("--vaadin-infinite-scroller-item-height"),e="background-position";this.$.fullHeight.style.setProperty(e,t);const i=getComputedStyle(this.$.fullHeight).getPropertyValue(e);this.$.fullHeight.style.removeProperty(e),this._itemHeightVal=parseFloat(i);}return this._itemHeightVal}get _bufferHeight(){return this.itemHeight*this.bufferSize}get position(){return (this.$.scroller.scrollTop-this._buffers[0].translateY)/this.itemHeight+this._firstIndex}set position(t){this._preventScrollEvent=!0,t>this._firstIndex&&t<this._firstIndex+this.bufferSize*2?this.$.scroller.scrollTop=this.itemHeight*(t-this._firstIndex)+this._buffers[0].translateY:(this._initialIndex=~~t,this._reset(),this._scrollDisabled=!0,this.$.scroller.scrollTop+=t%1*this.itemHeight,this._scrollDisabled=!1),this._mayHaveMomentum&&(this.$.scroller.classList.add("notouchscroll"),this._mayHaveMomentum=!1,setTimeout(()=>{this.$.scroller.classList.remove("notouchscroll");},10));}connectedCallback(){this._ready||(this._ready=!0,this.$={},this.shadowRoot.querySelectorAll("[id]").forEach(t=>{this.$[t.id]=t;}),this.$.scroller.addEventListener("scroll",()=>this._scroll()),this._buffers=[...this.shadowRoot.querySelectorAll(".buffer")],this.$.fullHeight.style.height=`${this._initialScroll*2}px`);}forceUpdate(){this._debouncerScrollFinish&&this._debouncerScrollFinish.flush(),this._debouncerUpdateClones&&(this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(),this._debouncerUpdateClones.cancel()),io();}_createElement(){}_updateElement(t,e){}_finishInit(){this._initDone||(this._buffers.forEach(t=>{[...t.children].forEach(e=>{this._ensureStampedInstance(e._itemWrapper);});}),this._buffers[0].translateY||this._reset(),this._initDone=!0,this.dispatchEvent(new CustomEvent("init-done")));}_translateBuffer(t){const e=t?1:0;this._buffers[e].translateY=this._buffers[e?0:1].translateY+this._bufferHeight*(e?-1:1),this._buffers[e].style.transform=`translate3d(0, ${this._buffers[e].translateY}px, 0)`,this._buffers[e].updated=!1,this._buffers.reverse();}_scroll(){if(this._scrollDisabled)return;const t=this.$.scroller.scrollTop;(t<this._bufferHeight||t>this._initialScroll*2-this._bufferHeight)&&(this._initialIndex=~~this.position,this._reset());const e=this.itemHeight+this.bufferOffset,i=t>this._buffers[1].translateY+e,o=t<this._buffers[0].translateY+e;(i||o)&&(this._translateBuffer(o),this._updateClones()),this._preventScrollEvent||(this.dispatchEvent(new CustomEvent("custom-scroll",{bubbles:!1,composed:!0})),this._mayHaveMomentum=!0),this._preventScrollEvent=!1,this._debouncerScrollFinish=z$1.debounce(this._debouncerScrollFinish,Y$1.after(200),()=>{const r=this.$.scroller.getBoundingClientRect();!this._isVisible(this._buffers[0],r)&&!this._isVisible(this._buffers[1],r)&&(this.position=this.position);});}_reset(){this._scrollDisabled=!0,this.$.scroller.scrollTop=this._initialScroll,this._buffers[0].translateY=this._initialScroll-this._bufferHeight,this._buffers[1].translateY=this._initialScroll,this._buffers.forEach(t=>{t.style.transform=`translate3d(0, ${t.translateY}px, 0)`;}),this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones(!0),this._debouncerUpdateClones=z$1.debounce(this._debouncerUpdateClones,Y$1.after(200),()=>{this._buffers[0].updated=this._buffers[1].updated=!1,this._updateClones();}),this._scrollDisabled=!1;}_createPool(){const t=this.getBoundingClientRect();this._buffers.forEach(e=>{for(let i=0;i<this.bufferSize;i++){const o=document.createElement("div");o.style.height=`${this.itemHeight}px`,o.instance={};const r=`vaadin-infinite-scroller-item-content-${qe()}`,n=document.createElement("slot");n.setAttribute("name",r),n._itemWrapper=o,e.appendChild(n),o.setAttribute("slot",r),this.appendChild(o),this._isVisible(o,t)&&this._ensureStampedInstance(o);}}),requestAnimationFrame(()=>{this._finishInit();});}_ensureStampedInstance(t){if(t.firstElementChild)return;const e=t.instance;t.instance=this._createElement(),t.appendChild(t.instance),Object.keys(e).forEach(i=>{t.instance[i]=e[i];});}_updateClones(t){this._firstIndex=Math.round((this._buffers[0].translateY-this._initialScroll)/this.itemHeight)+this._initialIndex;const e=t?this.$.scroller.getBoundingClientRect():void 0;this._buffers.forEach((i,o)=>{if(!i.updated){const r=this._firstIndex+this.bufferSize*o;[...i.children].forEach((n,a)=>{const l=n._itemWrapper;(!t||this._isVisible(l,e))&&this._updateElement(l.instance,r+a);}),i.updated=!0;}});}_isVisible(t,e){const i=t.getBoundingClientRect();return i.bottom>e.top&&i.top<e.bottom}}/**
9732
9732
  * @license
9733
9733
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9734
9734
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9815,7 +9815,7 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9815
9815
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9816
9816
  Code distributed by Google as part of the polymer project is also
9817
9817
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9818
- */let xi=null;function wi(){return xi}wi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:wi,writable:!0}});const xr=zi(wi),zd=so(xr);function Md(s,t){xi=s,Object.setPrototypeOf(s,t.prototype),new t,xi=null;}const Nd=zi(class{});function Ld(s,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!s!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)s?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(s)i.__polymerReplaced__=document.createComment("hidden-slot"),I$1(I$1(i).parentNode).replaceChild(i.__polymerReplaced__,i);else {const o=i.__polymerReplaced__;o&&I$1(I$1(o).parentNode).replaceChild(i,o);}else i.style&&(s?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=s,i._showHideChildren&&i._showHideChildren(s);}}class X$1 extends Nd{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let o=this.root.firstChild;o;o=o.nextSibling)e.push(o),o.__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,o=>{o.model=this,i(o);});else {let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(t,e,i);}}_showHideChildren(t){Ld(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}}const Bd=so(X$1);function Yo(s){let t=s.__dataHost;return t&&t._methodHost||t}function Fd(s,t,e){let i=e.mutableData?Bd:X$1;Ci.mixin&&(i=Ci.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=e,o.prototype._bindTemplate(s),$d(o,s,t,e),o}function Vd(s,t,e,i){let o=e.forwardHostProp;if(o&&t.hasHostProps){const r=s.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?zd:xr;class d extends l{}n=t.templatizeTemplateClass=d;}else {const l=s.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:Rd(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);xs&&i&&Wd(t,e,i);}if(s.__dataProto&&Object.assign(s.__data,s.__dataProto),r)Md(s,n),s.__dataTemp={},s.__dataPending=null,s.__dataOld=null,s._enableProperties();else {Object.setPrototypeOf(s,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in s){const d=s[l];delete s[l],s.__data[l]=d;}}}}function Rd(s,t){return function(i,o,r){t.call(i.__templatizeOwner,o.substring(6),r[o]);}}function $d(s,t,e,i){let o=e.hostProps||{};for(let r in i.instanceProps){delete o[r];let n=i.notifyInstanceProp;n&&s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Hd(r,n)});}if(i.forwardHostProp&&t.__dataHost)for(let r in o)e.hasHostProps||(e.hasHostProps=!0),s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ud()});}function Hd(s,t){return function(i,o,r){t.call(i.__templatizeOwner,i,o,r[o]);}}function Ud(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0);}}function Ci(s,t,e){if(mt$1&&!Yo(s))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},s.__templatizeOwner)throw new Error("A <template> can only be templatized once");s.__templatizeOwner=t;let o=(t?t.constructor:X$1)._parseTemplate(s),r=o.templatizeInstanceClass;r||(r=Fd(s,o,e),o.templatizeInstanceClass=r);const n=Yo(s);Vd(s,o,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=s,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=o.hostProps,a=a,a}function Wd(s,t,e){const i=e.constructor._properties,{propertyEffects:o}=s,{instanceProps:r}=t;for(let n in o)if(!i[n]&&!(r&&r[n])){const a=o[n];for(let l=0;l<a.length;l++){const{part:d}=a[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function jd(s,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=s)t=e.__dataHost;else return e;else t=I$1(t).parentNode;return null}/**
9818
+ */let yi=null;function xi(){return yi}xi.prototype=Object.create(HTMLTemplateElement.prototype,{constructor:{value:xi,writable:!0}});const xr=Oi(xi),zd=so(xr);function Md(s,t){yi=s,Object.setPrototypeOf(s,t.prototype),new t,yi=null;}const Nd=Oi(class{});function Ld(s,t){for(let e=0;e<t.length;e++){let i=t[e];if(!!s!=!!i.__hideTemplateChildren__)if(i.nodeType===Node.TEXT_NODE)s?(i.__polymerTextContent__=i.textContent,i.textContent=""):i.textContent=i.__polymerTextContent__;else if(i.localName==="slot")if(s)i.__polymerReplaced__=document.createComment("hidden-slot"),I$1(I$1(i).parentNode).replaceChild(i.__polymerReplaced__,i);else {const o=i.__polymerReplaced__;o&&I$1(I$1(o).parentNode).replaceChild(i,o);}else i.style&&(s?(i.__polymerDisplay__=i.style.display,i.style.display="none"):i.style.display=i.__polymerDisplay__);i.__hideTemplateChildren__=s,i._showHideChildren&&i._showHideChildren(s);}}class X$1 extends Nd{constructor(t){super(),this._configureProperties(t),this.root=this._stampTemplate(this.__dataHost);let e=[];this.children=e;for(let o=this.root.firstChild;o;o=o.nextSibling)e.push(o),o.__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,o=>{o.model=this,i(o);});else {let o=this.__dataHost.__dataHost;o&&o._addEventListenerToNode(t,e,i);}}_showHideChildren(t){Ld(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}}const Bd=so(X$1);function Yo(s){let t=s.__dataHost;return t&&t._methodHost||t}function Fd(s,t,e){let i=e.mutableData?Bd:X$1;wi.mixin&&(i=wi.mixin(i));let o=class extends i{};return o.prototype.__templatizeOptions=e,o.prototype._bindTemplate(s),$d(o,s,t,e),o}function Vd(s,t,e,i){let o=e.forwardHostProp;if(o&&t.hasHostProps){const r=s.localName=="template";let n=t.templatizeTemplateClass;if(!n){if(r){let l=e.mutableData?zd:xr;class d extends l{}n=t.templatizeTemplateClass=d;}else {const l=s.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:Rd(l,o)}),n.prototype._createNotifyingProperty("_host_"+l);xs&&i&&Wd(t,e,i);}if(s.__dataProto&&Object.assign(s.__data,s.__dataProto),r)Md(s,n),s.__dataTemp={},s.__dataPending=null,s.__dataOld=null,s._enableProperties();else {Object.setPrototypeOf(s,n.prototype);const a=t.hostProps;for(let l in a)if(l="_host_"+l,l in s){const d=s[l];delete s[l],s.__data[l]=d;}}}}function Rd(s,t){return function(i,o,r){t.call(i.__templatizeOwner,o.substring(6),r[o]);}}function $d(s,t,e,i){let o=e.hostProps||{};for(let r in i.instanceProps){delete o[r];let n=i.notifyInstanceProp;n&&s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Hd(r,n)});}if(i.forwardHostProp&&t.__dataHost)for(let r in o)e.hasHostProps||(e.hasHostProps=!0),s.prototype._addPropertyEffect(r,s.prototype.PROPERTY_EFFECT_TYPES.NOTIFY,{fn:Ud()});}function Hd(s,t){return function(i,o,r){t.call(i.__templatizeOwner,i,o,r[o]);}}function Ud(){return function(t,e,i){t.__dataHost._setPendingPropertyOrPath("_host_"+e,i[e],!0,!0);}}function wi(s,t,e){if(pt$1&&!Yo(s))throw new Error("strictTemplatePolicy: template owner not trusted");if(e=e||{},s.__templatizeOwner)throw new Error("A <template> can only be templatized once");s.__templatizeOwner=t;let o=(t?t.constructor:X$1)._parseTemplate(s),r=o.templatizeInstanceClass;r||(r=Fd(s,o,e),o.templatizeInstanceClass=r);const n=Yo(s);Vd(s,o,e,n);let a=class extends r{};return a.prototype._methodHost=n,a.prototype.__dataHost=s,a.prototype.__templatizeOwner=t,a.prototype.__hostProps=o.hostProps,a=a,a}function Wd(s,t,e){const i=e.constructor._properties,{propertyEffects:o}=s,{instanceProps:r}=t;for(let n in o)if(!i[n]&&!(r&&r[n])){const a=o[n];for(let l=0;l<a.length;l++){const{part:d}=a[l].info;if(!(d.signature&&d.signature.static)){console.warn(`Property '${n}' used in template but not declared in 'properties'; attribute will not be observed.`);break}}}}function jd(s,t){let e;for(;t;)if(e=t.__dataHost?t:t.__templatizeInstance)if(e.__dataHost!=s)t=e.__dataHost;else return e;else t=I$1(t).parentNode;return null}/**
9819
9819
  @license
9820
9820
  Copyright (c) 2017 The Polymer Project Authors. All rights reserved.
9821
9821
  This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -9831,11 +9831,11 @@ The complete set of authors may be found at http://polymer.github.io/AUTHORS.txt
9831
9831
  The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
9832
9832
  Code distributed by Google as part of the polymer project is also
9833
9833
  subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
9834
- */const Yd=Od(b$1);class Go extends Yd{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:!xo,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return ["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null;}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId);}connectedCallback(){if(super.connectedCallback(),qd()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=I$1(I$1(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 o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=Ci(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(o,r);},notifyInstanceProp:function(o,r,n){if(Yn(this.as,r)){let a=o[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=Re(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=gt$1.debounce(this.__renderDebouncer,e>0?Zn.after(e):Ds,t.bind(this)),kd(this.__renderDebouncer);}render(){this.__debounceRender(this.__render),io();}__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),(!xo||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,o,r)=>this.__filterFn(t[i],o,r))),this.__sortFn&&e.sort((i,o)=>this.__sortFn(t[i],t[o])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),o=Math.max(e-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+o,t)),this.__shouldMeasureChunk=o===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 o=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];o[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a);}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n);}__detachInstance(t){let e=this.__instances[t];const i=I$1(e.root);for(let o=0;o<e.children.length;o++){let r=e.children[o];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 o={};return o[this.as]=t,o[this.indexAs]=e,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(t,e,i){const o=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return I$1(I$1(this).parentNode).insertBefore(o.root,n),this.__instances[e]=o,o}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t);}__handleItemPath(t,e){let i=t.slice(6),o=i.indexOf("."),r=o<0?i:i.substring(0,o);if(r==parseInt(r,10)){let n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,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 jd(this.template,t)}}customElements.define(Go.is,Go);/**
9834
+ */const Yd=Od(b$1);class Go extends Yd{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:!xo,readOnly:!0},initialCount:{type:Number},targetFramerate:{type:Number,value:20},_targetFrameTime:{type:Number,computed:"__computeFrameTime(targetFramerate)"},notifyDomChange:{type:Boolean},reuseChunkedInstances:{type:Boolean}}}static get observers(){return ["__itemsChanged(items.*)"]}constructor(){super(),this.__instances=[],this.__renderDebouncer=null,this.__itemsIdxToInstIdx={},this.__chunkCount=null,this.__renderStartTime=null,this.__itemsArrayChanged=!1,this.__shouldMeasureChunk=!1,this.__shouldContinueChunking=!1,this.__chunkingId=0,this.__sortFn=null,this.__filterFn=null,this.__observePaths=null,this.__ctor=null,this.__isDetached=!0,this.template=null;}disconnectedCallback(){super.disconnectedCallback(),this.__isDetached=!0;for(let t=0;t<this.__instances.length;t++)this.__detachInstance(t);this.__chunkingId&&cancelAnimationFrame(this.__chunkingId);}connectedCallback(){if(super.connectedCallback(),qd()||(this.style.display="none"),this.__isDetached){this.__isDetached=!1;let t=I$1(I$1(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 o=new MutationObserver(()=>{if(this.querySelector("template"))o.disconnect(),this.__render();else throw new Error("dom-repeat requires a <template> child")});return o.observe(this,{childList:!0}),!1}let i={};i[this.as]=!0,i[this.indexAs]=!0,i[this.itemsIndexAs]=!0,this.__ctor=wi(e,this,{mutableData:this.mutableData,parentModel:!0,instanceProps:i,forwardHostProp:function(o,r){let n=this.__instances;for(let a=0,l;a<n.length&&(l=n[a]);a++)l.forwardHostProp(o,r);},notifyInstanceProp:function(o,r,n){if(Yn(this.as,r)){let a=o[this.itemsIndexAs];r==this.as&&(this.items[a]=n);let l=Ve(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$1.debounce(this.__renderDebouncer,e>0?Zn.after(e):Ds,t.bind(this)),kd(this.__renderDebouncer);}render(){this.__debounceRender(this.__render),io();}__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),(!xo||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,o,r)=>this.__filterFn(t[i],o,r))),this.__sortFn&&e.sort((i,o)=>this.__sortFn(t[i],t[o])),e}__calculateLimit(t){let e=t;const i=this.__instances.length;if(this.initialCount){let o;!this.__chunkCount||this.__itemsArrayChanged&&!this.reuseChunkedInstances?(e=Math.min(t,this.initialCount),o=Math.max(e-i,0),this.__chunkCount=o||1):(o=Math.min(Math.max(t-i,0),this.__chunkCount),e=Math.min(i+o,t)),this.__shouldMeasureChunk=o===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 o=this.__itemsIdxToInstIdx={};let r;for(r=0;r<e;r++){let n=this.__instances[r],a=i[r],l=t[a];o[a]=r,n?(n._setPendingProperty(this.as,l),n._setPendingProperty(this.indexAs,r),n._setPendingProperty(this.itemsIndexAs,a),n._flushProperties()):this.__insertInstance(l,r,a);}for(let n=this.__instances.length-1;n>=r;n--)this.__detachAndRemoveInstance(n);}__detachInstance(t){let e=this.__instances[t];const i=I$1(e.root);for(let o=0;o<e.children.length;o++){let r=e.children[o];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 o={};return o[this.as]=t,o[this.indexAs]=e,o[this.itemsIndexAs]=i,new this.__ctor(o)}__insertInstance(t,e,i){const o=this.__stampInstance(t,e,i);let r=this.__instances[e+1],n=r?r.children[0]:this;return I$1(I$1(this).parentNode).insertBefore(o.root,n),this.__instances[e]=o,o}_showHideChildren(t){for(let e=0;e<this.__instances.length;e++)this.__instances[e]._showHideChildren(t);}__handleItemPath(t,e){let i=t.slice(6),o=i.indexOf("."),r=o<0?i:i.substring(0,o);if(r==parseInt(r,10)){let n=o<0?"":i.substring(o+1);this.__handleObservedPaths(n);let a=this.__itemsIdxToInstIdx[r],l=this.__instances[a];if(l){let d=this.as+(n?"."+n:"");l._setPendingPropertyOrPath(d,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 jd(this.template,t)}}customElements.define(Go.is,Go);/**
9835
9835
  * @license
9836
9836
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9837
9837
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9838
- */const Kd=s=>class extends ne(s){static get properties(){return {month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return ["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return [...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>H$1(e.date,this.focusedDate))}ready(){super.ready(),B$1(this.$.monthGrid,"tap",this._handleTap.bind(this));}_isDisabled(e,i,o){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),i&&o&&i.getMonth()===o.getMonth()&&i.getMonth()===e.getMonth()&&o.getDate()-i.getDate()>=0?!1:!ve(r,i,o)&&!ve(n,i,o)}_getTitle(e,i){if(!(e===void 0||i===void 0))return i.formatTitle(i.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0;},300);}_dateAdd(e,i){e.setDate(e.getDate()+i);}_applyFirstDayOfWeek(e,i){if(!(e===void 0||i===void 0))return e.slice(i).concat(e.slice(0,i))}_getWeekDayNames(e,i){if(e===void 0||i===void 0)return [];const{weekdays:o,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(o,n).map((d,c)=>({weekDay:d,weekDayShort:a[c]})).slice(0,7)}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(o=>H$1(o,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true");}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,i){return e&&i&&i.firstDayOfWeek===1}_isToday(e){return H$1(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return [];const o=new Date(0,0);for(o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);o.getDay()!==i.firstDayOfWeek;)this._dateAdd(o,-1);const r=[],n=o.getMonth(),a=e.getMonth();for(;o.getMonth()===a||o.getMonth()===n;)r.push(o.getMonth()===a?new Date(o.getTime()):null),this._dateAdd(o,1);return r}_getWeeks(e){return e.reduce((i,o,r)=>(r%7===0&&i.push([]),i[i.length-1].push(o),i),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})));}_preventDefault(e){e.preventDefault();}__getWeekNumber(e){const i=e.reduce((o,r)=>!o&&r?r:o);return wd(i)}__getDayAriaLabel(e){if(!e)return "";let i=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(i+=`, ${this.i18n.today}`),i}};/**
9838
+ */const Kd=s=>class extends re(s){static get properties(){return {month:{type:Object,value:new Date,sync:!0},selectedDate:{type:Object,notify:!0,sync:!0},focusedDate:{type:Object},showWeekNumbers:{type:Boolean,value:!1},i18n:{type:Object},ignoreTaps:{type:Boolean},minDate:{type:Date,value:null,sync:!0},maxDate:{type:Date,value:null,sync:!0},isDateDisabled:{type:Function,value:()=>!1},disabled:{type:Boolean,reflectToAttribute:!0},_days:{type:Array},_weeks:{type:Array},_notTapping:{type:Boolean}}}static get observers(){return ["__focusedDateChanged(focusedDate, _days)"]}get focusableDateElement(){return [...this.shadowRoot.querySelectorAll("[part~=date]")].find(e=>H$1(e.date,this.focusedDate))}ready(){super.ready(),B$1(this.$.monthGrid,"tap",this._handleTap.bind(this));}_isDisabled(e,i,o){const r=new Date(0,0);r.setFullYear(e.getFullYear()),r.setMonth(e.getMonth()),r.setDate(1);const n=new Date(0,0);return n.setFullYear(e.getFullYear()),n.setMonth(e.getMonth()+1),n.setDate(0),i&&o&&i.getMonth()===o.getMonth()&&i.getMonth()===e.getMonth()&&o.getDate()-i.getDate()>=0?!1:!_e(r,i,o)&&!_e(n,i,o)}_getTitle(e,i){if(!(e===void 0||i===void 0))return i.formatTitle(i.monthNames[e.getMonth()],e.getFullYear())}_onMonthGridTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0;},300);}_dateAdd(e,i){e.setDate(e.getDate()+i);}_applyFirstDayOfWeek(e,i){if(!(e===void 0||i===void 0))return e.slice(i).concat(e.slice(0,i))}_getWeekDayNames(e,i){if(e===void 0||i===void 0)return [];const{weekdays:o,weekdaysShort:r,firstDayOfWeek:n}=e,a=this._applyFirstDayOfWeek(r,n);return this._applyFirstDayOfWeek(o,n).map((d,c)=>({weekDay:d,weekDayShort:a[c]})).slice(0,7)}__focusedDateChanged(e,i){Array.isArray(i)&&i.some(o=>H$1(o,e))?this.removeAttribute("aria-hidden"):this.setAttribute("aria-hidden","true");}_getDate(e){return e?e.getDate():""}_showWeekSeparator(e,i){return e&&i&&i.firstDayOfWeek===1}_isToday(e){return H$1(new Date,e)}_getDays(e,i){if(e===void 0||i===void 0)return [];const o=new Date(0,0);for(o.setFullYear(e.getFullYear()),o.setMonth(e.getMonth()),o.setDate(1);o.getDay()!==i.firstDayOfWeek;)this._dateAdd(o,-1);const r=[],n=o.getMonth(),a=e.getMonth();for(;o.getMonth()===a||o.getMonth()===n;)r.push(o.getMonth()===a?new Date(o.getTime()):null),this._dateAdd(o,1);return r}_getWeeks(e){return e.reduce((i,o,r)=>(r%7===0&&i.push([]),i[i.length-1].push(o),i),[])}_handleTap(e){!this.ignoreTaps&&!this._notTapping&&e.target.date&&!e.target.hasAttribute("disabled")&&(this.selectedDate=e.target.date,this.dispatchEvent(new CustomEvent("date-tap",{detail:{date:e.target.date},bubbles:!0,composed:!0})));}_preventDefault(e){e.preventDefault();}__getWeekNumber(e){const i=e.reduce((o,r)=>!o&&r?r:o);return wd(i)}__getDayAriaLabel(e){if(!e)return "";let i=`${this._getDate(e)} ${this.i18n.monthNames[e.getMonth()]} ${e.getFullYear()}, ${this.i18n.weekdays[e.getDay()]}`;return this._isToday(e)&&(i+=`, ${this.i18n.today}`),i}};/**
9839
9839
  * @license
9840
9840
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9841
9841
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9941,7 +9941,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9941
9941
  </template>
9942
9942
  </tbody>
9943
9943
  </table>
9944
- `}static get is(){return "vaadin-month-calendar"}static get properties(){return {_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return ["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers");}__getDatePart(t,e,i,o,r,n){const a=["date"],l=t>yi(new Date),d=t<yi(new Date);return this.__isDayDisabled(t,o,r,n)&&a.push("disabled"),this.__isDayFocused(t,e)&&a.push("focused"),this.__isDaySelected(t,i)&&a.push("selected"),this._isToday(t)&&a.push("today"),d&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,e){return H$1(t,e)}__isDaySelected(t,e){return H$1(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return "true"}__isDayDisabled(t,e,i,o){return !ve(t,e,i,o)}__getDayAriaDisabled(t,e,i,o){if(!(t===void 0||e===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(t,e,i,o))return "true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}v$1(Xd);/**
9944
+ `}static get is(){return "vaadin-month-calendar"}static get properties(){return {_days:{type:Array,computed:"_getDays(month, i18n, minDate, maxDate, isDateDisabled)"},_weeks:{type:Array,computed:"_getWeeks(_days)"},disabled:{type:Boolean,reflectToAttribute:!0,computed:"_isDisabled(month, minDate, maxDate)"}}}static get observers(){return ["_showWeekNumbersChanged(showWeekNumbers, i18n)"]}_showWeekNumbersChanged(t,e){t&&e&&e.firstDayOfWeek===1?this.setAttribute("week-numbers",""):this.removeAttribute("week-numbers");}__getDatePart(t,e,i,o,r,n){const a=["date"],l=t>bi(new Date),d=t<bi(new Date);return this.__isDayDisabled(t,o,r,n)&&a.push("disabled"),this.__isDayFocused(t,e)&&a.push("focused"),this.__isDaySelected(t,i)&&a.push("selected"),this._isToday(t)&&a.push("today"),d&&a.push("past"),l&&a.push("future"),a.join(" ")}__isDayFocused(t,e){return H$1(t,e)}__isDaySelected(t,e){return H$1(t,e)}__getDayAriaSelected(t,e){if(this.__isDaySelected(t,e))return "true"}__isDayDisabled(t,e,i,o){return !_e(t,e,i,o)}__getDayAriaDisabled(t,e,i,o){if(!(t===void 0||e===void 0&&i===void 0&&o===void 0)&&this.__isDayDisabled(t,e,i,o))return "true"}__getDayTabindex(t,e){return this.__isDayFocused(t,e)?"0":"-1"}}v$1(Xd);/**
9945
9945
  * @license
9946
9946
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
9947
9947
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -9949,7 +9949,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
9949
9949
  * @license
9950
9950
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9951
9951
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
9952
- */const Jd=s=>class extends s{static get properties(){return {scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return ["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Zs(this.$.scrollers,"pan-y"),B$1(this.$.scrollers,"track",this._track.bind(this)),B$1(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),B$1(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),B$1(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this));}_initControllers(){this.addController(new ro(this._desktopMediaQuery,e=>{this._desktopMode=e;})),this.addController(new T$1(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),B$1(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e;}})),this.addController(new T$1(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),B$1(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 o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+o,i),this._monthScroller.forceUpdate();}__initMonthScroller(){this.addController(new T$1(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(o=>{o.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value;});}),this.calendars=i;}),this._monthScroller=e;}}));}__initYearScroller(){this.addController(new T$1(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),B$1(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,o,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(o,r,n));}__updateCalendars(e,i,o,r,n,a,l,d,c,h){e&&e.length&&e.forEach(u=>{u.i18n=i,u.minDate=o,u.maxDate=r,u.isDateDisabled=h,u.focusedDate=a,u.selectedDate=n,u.showWeekNumbers=l,u.ignoreTaps=d,c?u.setAttribute("theme",c):u.removeAttribute("theme");});}__updateYears(e,i,o){e&&e.length&&e.forEach(r=>{r.selectedDate=i,o?r.setAttribute("theme",o):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 o=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(o+d,i);return}const r=this._monthScroller.position>o,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<o;r?this._scrollToPosition(o,i):l&&this._scrollToPosition(o-a+1,i);}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let o=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(o+=1);return o/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e);}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12;}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position);}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps();}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps();}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0;},300),this._repositionMonthScroller();}_onMonthScrollTouchStart(){this._repositionYearScroller();}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=z$1.debounce(this._debouncer,Y$1.after(300),()=>{this._ignoreTaps=!1;});}_formatDisplayed(e,i,o){return e&&i&&typeof i.formatDate=="function"?i.formatDate(to(e)):o}_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 o=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+o*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 o;this._revealPromise=new Promise(d=>{o=d;});const r=(d,c,h,u)=>(d/=u/2,d<1?h/2*d*d+c:(d-=1,-h/2*(d*(d-2)-1)+c));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const c=d-n;if(c<this.scrollDuration){const h=r(c,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,o(),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 _r(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){H$1(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&&H$1(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus());}}focusDate(e,i){return Ce(this,null,function*(){const o=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,i||(this._focusedMonthDate=o.getDate()),yield this.focusDateElement(!1);})}focusDateElement(e=!0){return Ce(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Ji(this,()=>{io(),i();});})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate();})}_focusClosestDate(e){this.focusDate(fr(e,[this.minDate,this.maxDate]));}_focusAllowedDate(e,i,o){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,o):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate);}_getDateDiff(e,i){const o=new Date(0,0);return o.setFullYear(this.focusedDate.getFullYear()),o.setMonth(this.focusedDate.getMonth()+e),i&&o.setDate(this.focusedDate.getDate()+i),o}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1);}_moveFocusByMonths(e){const i=this._getDateDiff(e),o=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==o&&i.setDate(0),this._focusAllowedDate(i,e,!0);}_moveFocusInsideMonth(e,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),i==="minDate"?(o.setMonth(e.getMonth()),o.setDate(1)):(o.setMonth(e.getMonth()+1),o.setDate(0)),this._dateAllowed(o)?this.focusDate(o):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e);}_dateAllowed(e,i=this.minDate,o=this.maxDate,r=this.isDateDisabled){return ve(e,i,o,r)}_isTodayAllowed(e,i,o){return this._dateAllowed(this._getTodayMidnight(),e,i,o)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
9952
+ */const Jd=s=>class extends s{static get properties(){return {scrollDuration:{type:Number,value:300},selectedDate:{type:Object,value:null,sync:!0},focusedDate:{type:Object,notify:!0,observer:"_focusedDateChanged",sync:!0},_focusedMonthDate:Number,initialPosition:{type:Object,observer:"_initialPositionChanged"},_originDate:{type:Object,value:new Date},_visibleMonthIndex:Number,_desktopMode:{type:Boolean,observer:"_desktopModeChanged"},_desktopMediaQuery:{type:String,value:"(min-width: 375px)"},_translateX:{observer:"_translateXChanged"},_yearScrollerWidth:{value:50},i18n:{type:Object},showWeekNumbers:{type:Boolean,value:!1},_ignoreTaps:Boolean,_notTapping:Boolean,minDate:{type:Object,sync:!0},maxDate:{type:Object,sync:!0},isDateDisabled:{type:Function},label:String,_cancelButton:{type:Object},_todayButton:{type:Object},calendars:{type:Array,value:()=>[]},years:{type:Array,value:()=>[]}}}static get observers(){return ["__updateCalendars(calendars, i18n, minDate, maxDate, selectedDate, focusedDate, showWeekNumbers, _ignoreTaps, _theme, isDateDisabled)","__updateCancelButton(_cancelButton, i18n)","__updateTodayButton(_todayButton, i18n, minDate, maxDate, isDateDisabled)","__updateYears(years, selectedDate, _theme)"]}get __useSubMonthScrolling(){return this._monthScroller.clientHeight<this._monthScroller.itemHeight+this._monthScroller.bufferOffset}get focusableDateElement(){return this.calendars.map(e=>e.focusableDateElement).find(Boolean)}_addListeners(){Zs(this.$.scrollers,"pan-y"),B$1(this.$.scrollers,"track",this._track.bind(this)),B$1(this.shadowRoot.querySelector('[part="clear-button"]'),"tap",this._clear.bind(this)),B$1(this.shadowRoot.querySelector('[part="toggle-button"]'),"tap",this._cancel.bind(this)),B$1(this.shadowRoot.querySelector('[part="years-toggle-button"]'),"tap",this._toggleYearScroller.bind(this));}_initControllers(){this.addController(new ro(this._desktopMediaQuery,e=>{this._desktopMode=e;})),this.addController(new T$1(this,"today-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onTodayButtonKeyDown(i)),B$1(e,"tap",this._onTodayTap.bind(this)),this._todayButton=e;}})),this.addController(new T$1(this,"cancel-button","vaadin-button",{observe:!1,initializer:e=>{e.setAttribute("theme","tertiary"),e.addEventListener("keydown",i=>this.__onCancelButtonKeyDown(i)),B$1(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 o=this.__useSubMonthScrolling?this._calculateWeekScrollOffset(e):0;this._scrollToPosition(this._differenceInMonths(e,this._originDate)+o,i),this._monthScroller.forceUpdate();}__initMonthScroller(){this.addController(new T$1(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(o=>{o.addEventListener("selected-date-changed",r=>{this.selectedDate=r.detail.value;});}),this.calendars=i;}),this._monthScroller=e;}}));}__initYearScroller(){this.addController(new T$1(this,"years","vaadin-date-picker-year-scroller",{observe:!1,initializer:e=>{e.setAttribute("aria-hidden","true"),B$1(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,o,r,n){e&&(e.textContent=i&&i.today,e.disabled=!this._isTodayAllowed(o,r,n));}__updateCalendars(e,i,o,r,n,a,l,d,c,h){e&&e.length&&e.forEach(u=>{u.i18n=i,u.minDate=o,u.maxDate=r,u.isDateDisabled=h,u.focusedDate=a,u.selectedDate=n,u.showWeekNumbers=l,u.ignoreTaps=d,c?u.setAttribute("theme",c):u.removeAttribute("theme");});}__updateYears(e,i,o){e&&e.length&&e.forEach(r=>{r.selectedDate=i,o?r.setAttribute("theme",o):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 o=this._differenceInMonths(e,this._originDate);if(this.__useSubMonthScrolling){const d=this._calculateWeekScrollOffset(e);this._scrollToPosition(o+d,i);return}const r=this._monthScroller.position>o,a=Math.max(this._monthScroller.itemHeight,this._monthScroller.clientHeight-this._monthScroller.bufferOffset*2)/this._monthScroller.itemHeight,l=this._monthScroller.position+a-1<o;r?this._scrollToPosition(o,i):l&&this._scrollToPosition(o-a+1,i);}_calculateWeekScrollOffset(e){const i=new Date(0,0);i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(1);let o=0;for(;i.getDate()<e.getDate();)i.setDate(i.getDate()+1),i.getDay()===this.i18n.firstDayOfWeek&&(o+=1);return o/6}_initialPositionChanged(e){this._monthScroller&&this._yearScroller&&(this._monthScroller.active=!0,this._yearScroller.active=!0),this.scrollToDate(e);}_repositionYearScroller(){const e=this._monthScroller.position;this._visibleMonthIndex=Math.floor(e),this._yearScroller.position=(e+this._originDate.getMonth())/12;}_repositionMonthScroller(){this._monthScroller.position=this._yearScroller.position*12-this._originDate.getMonth(),this._visibleMonthIndex=Math.floor(this._monthScroller.position);}_onMonthScroll(){this._repositionYearScroller(),this._doIgnoreTaps();}_onYearScroll(){this._repositionMonthScroller(),this._doIgnoreTaps();}_onYearScrollTouchStart(){this._notTapping=!1,setTimeout(()=>{this._notTapping=!0;},300),this._repositionMonthScroller();}_onMonthScrollTouchStart(){this._repositionYearScroller();}_doIgnoreTaps(){this._ignoreTaps=!0,this._debouncer=z$1.debounce(this._debouncer,Y$1.after(300),()=>{this._ignoreTaps=!1;});}_formatDisplayed(e,i,o){return e&&i&&typeof i.formatDate=="function"?i.formatDate(to(e)):o}_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 o=(e.detail.y-(this._yearScroller.getBoundingClientRect().top+this._yearScroller.clientHeight/2))/this._yearScroller.itemHeight;this._scrollToPosition(this._monthScroller.position+o*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 o;this._revealPromise=new Promise(d=>{o=d;});const r=(d,c,h,u)=>(d/=u/2,d<1?h/2*d*d+c:(d-=1,-h/2*(d*(d-2)-1)+c));let n=0;const a=this._monthScroller.position,l=d=>{n||(n=d);const c=d-n;if(c<this.scrollDuration){const h=r(c,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,o(),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 _r(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){H$1(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&&H$1(i.date,this.__pendingDateFocus)&&(delete this.__pendingDateFocus,i.focus());}}focusDate(e,i){return we(this,null,function*(){const o=e||this.selectedDate||this.initialPosition||new Date;this.focusedDate=o,i||(this._focusedMonthDate=o.getDate()),yield this.focusDateElement(!1);})}focusDateElement(e=!0){return we(this,null,function*(){this.__pendingDateFocus=this.focusedDate,this.calendars.length||(yield new Promise(i=>{Ji(this,()=>{io(),i();});})),e&&this.revealDate(this.focusedDate),this._revealPromise&&(yield this._revealPromise),this.__tryFocusDate();})}_focusClosestDate(e){this.focusDate(fr(e,[this.minDate,this.maxDate]));}_focusAllowedDate(e,i,o){this._dateAllowed(e,void 0,void 0,()=>!1)?this.focusDate(e,o):this._dateAllowed(this.focusedDate)?i>0?this.focusDate(this.maxDate):this.focusDate(this.minDate):this._focusClosestDate(this.focusedDate);}_getDateDiff(e,i){const o=new Date(0,0);return o.setFullYear(this.focusedDate.getFullYear()),o.setMonth(this.focusedDate.getMonth()+e),i&&o.setDate(this.focusedDate.getDate()+i),o}_moveFocusByDays(e){const i=this._getDateDiff(0,e);this._focusAllowedDate(i,e,!1);}_moveFocusByMonths(e){const i=this._getDateDiff(e),o=i.getMonth();this._focusedMonthDate||(this._focusedMonthDate=this.focusedDate.getDate()),i.setDate(this._focusedMonthDate),i.getMonth()!==o&&i.setDate(0),this._focusAllowedDate(i,e,!0);}_moveFocusInsideMonth(e,i){const o=new Date(0,0);o.setFullYear(e.getFullYear()),i==="minDate"?(o.setMonth(e.getMonth()),o.setDate(1)):(o.setMonth(e.getMonth()+1),o.setDate(0)),this._dateAllowed(o)?this.focusDate(o):this._dateAllowed(e)?this.focusDate(this[i]):this._focusClosestDate(e);}_dateAllowed(e,i=this.minDate,o=this.maxDate,r=this.isDateDisabled){return _e(e,i,o,r)}_isTodayAllowed(e,i,o){return this._dateAllowed(this._getTodayMidnight(),e,i,o)}_getTodayMidnight(){const e=new Date,i=new Date(0,0);return i.setFullYear(e.getFullYear()),i.setMonth(e.getMonth()),i.setDate(e.getDate()),i}};/**
9953
9953
  * @license
9954
9954
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
9955
9955
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10041,19 +10041,19 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10041
10041
  * @license
10042
10042
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10043
10043
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10044
- */const Qt=new WeakMap;function ec(s){return Qt.has(s)||Qt.set(s,new Set),Qt.get(s)}function tc(s,t){const e=document.createElement("style");e.textContent=s,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild);}const wr=w$1(s=>class extends s{get slotStyles(){return {}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles();}__applySlotStyles(){const e=this.getRootNode(),i=ec(e);this.slotStyles.forEach(o=>{i.has(o)||(tc(o,e),i.add(o));});}});/**
10044
+ */const Jt=new WeakMap;function ec(s){return Jt.has(s)||Jt.set(s,new Set),Jt.get(s)}function tc(s,t){const e=document.createElement("style");e.textContent=s,t===document?document.head.appendChild(e):t.insertBefore(e,t.firstChild);}const wr=w$1(s=>class extends s{get slotStyles(){return {}}connectedCallback(){super.connectedCallback(),this.__applySlotStyles();}__applySlotStyles(){const e=this.getRootNode(),i=ec(e);this.slotStyles.forEach(o=>{i.has(o)||(tc(o,e),i.add(o));});}});/**
10045
10045
  * @license
10046
10046
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10047
10047
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10048
- */const ic=s=>class extends Ke(re(s)){static get properties(){return {clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)));}_onClearButtonClick(e){e.preventDefault(),this._onClearAction();}_onClearButtonMouseDown(e){e.preventDefault(),gi||this.inputElement.focus();}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}));}};/**
10048
+ */const ic=s=>class extends Ye(se(s)){static get properties(){return {clearButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1}}}get clearElement(){return console.warn(`Please implement the 'clearElement' property in <${this.localName}>`),null}ready(){super.ready(),this.clearElement&&(this.clearElement.addEventListener("mousedown",e=>this._onClearButtonMouseDown(e)),this.clearElement.addEventListener("click",e=>this._onClearButtonClick(e)));}_onClearButtonClick(e){e.preventDefault(),this._onClearAction();}_onClearButtonMouseDown(e){e.preventDefault(),vi||this.inputElement.focus();}_onEscape(e){super._onEscape(e),this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_onClearAction(){this._inputElementValue="",this.inputElement.dispatchEvent(new Event("input",{bubbles:!0,composed:!0})),this.inputElement.dispatchEvent(new Event("change",{bubbles:!0}));}};/**
10049
10049
  * @license
10050
10050
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10051
10051
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10052
- */const no=w$1(s=>class extends Wi(Yi(Ke(s))){static get constraints(){return ["required"]}static get delegateAttrs(){return [...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver();}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`);}_constraintsChanged(e,...i){if(!e)return;const o=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=o;}_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}});/**
10052
+ */const no=w$1(s=>class extends Wi(Yi(Ye(s))){static get constraints(){return ["required"]}static get delegateAttrs(){return [...super.delegateAttrs,"required"]}ready(){super.ready(),this._createConstraintsObserver();}checkValidity(){return this.inputElement&&this._hasValidConstraints(this.constructor.constraints.map(e=>this[e]))?this.inputElement.checkValidity():!this.invalid}_hasValidConstraints(e){return e.some(i=>this.__isValidConstraint(i))}_createConstraintsObserver(){this._createMethodObserver(`_constraintsChanged(stateTarget, ${this.constructor.constraints.join(", ")})`);}_constraintsChanged(e,...i){if(!e)return;const o=this._hasValidConstraints(i),r=this.__previousHasConstraints&&!o;(this._hasValue||this.invalid)&&o?this.validate():r&&this._setInvalid(!1),this.__previousHasConstraints=o;}_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}});/**
10053
10053
  * @license
10054
10054
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10055
10055
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10056
- */const Tt$1=s=>class extends wr(kt$1(no(It(ic(re(s)))))){static get properties(){return {allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return [...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);}get slotStyles(){return [`
10056
+ */const Pt$1=s=>class extends wr(At$1(no(kt$1(ic(se(s)))))){static get properties(){return {allowedCharPattern:{type:String,observer:"_allowedCharPatternChanged"},autoselect:{type:Boolean,value:!1},name:{type:String,reflectToAttribute:!0},placeholder:{type:String,reflectToAttribute:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},title:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return [...super.delegateAttrs,"name","type","placeholder","readonly","invalid","title"]}constructor(){super(),this._boundOnPaste=this._onPaste.bind(this),this._boundOnDrop=this._onDrop.bind(this),this._boundOnBeforeInput=this._onBeforeInput.bind(this);}get slotStyles(){return [`
10057
10057
  :is(input[slot='input'], textarea[slot='textarea'])::placeholder {
10058
10058
  font: inherit;
10059
10059
  color: inherit;
@@ -10129,11 +10129,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10129
10129
  * @license
10130
10130
  * Copyright (c) 2021 - 2024 Vaadin Ltd..
10131
10131
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10132
- */const Dt=[Cr,Er,oc];/**
10132
+ */const Tt$1=[Cr,Er,oc];/**
10133
10133
  * @license
10134
10134
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
10135
10135
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10136
- */const Ze=s=>class extends s{static get properties(){return {overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return ["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,i){if(!i||e===void 0)return;const{classList:o}=i;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&o.remove(...n);}const r=typeof e=="string"?e.split(" ").filter(Boolean):[];r.length>0&&o.add(...r),this.__previousClasses=r;}};/**
10136
+ */const Qe=s=>class extends s{static get properties(){return {overlayClass:{type:String},_overlayElement:{type:Object}}}static get observers(){return ["__updateOverlayClassNames(overlayClass, _overlayElement)"]}__updateOverlayClassNames(e,i){if(!i||e===void 0)return;const{classList:o}=i;if(this.__initialClasses||(this.__initialClasses=new Set(o)),Array.isArray(this.__previousClasses)){const n=this.__previousClasses.filter(a=>!this.__initialClasses.has(a));n.length>0&&o.remove(...n);}const r=typeof e=="string"?e.split(" ").filter(Boolean):[];r.length>0&&o.add(...r),this.__previousClasses=r;}};/**
10137
10137
  * @license
10138
10138
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10139
10139
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10141,7 +10141,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10141
10141
  * @license
10142
10142
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
10143
10143
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10144
- */const sc=s=>class extends Ze(F$1(kt$1(no(re(s))))){static get properties(){return {_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const i=String(e.year).replace(/\d+/u,o=>"0000".substr(o.length)+o);return [e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),o=new Date;let r,n=o.getMonth(),a=o.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?Se(this.referenceDate):new Date;a=Cd(l,a,n,r);}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return {day:r,month:n,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Qi},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return ["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return [...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this);}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1;}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return !this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!At$1()&&e.target.blur();}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate());}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new ro(this._fullscreenMediaQuery,i=>{this._fullscreen=i;})),this.addController(new Ar(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront());}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1;}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.$.overlay.close();}_overlayRenderer(e){if(e.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close();}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",o=>{this.__commitDate(o.detail.date),this._close();}),i.addEventListener("date-selected",o=>{this.__commitDate(o.detail.date);}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0);}),i.addEventListener("focusout",o=>{this._shouldRemoveFocus(o)&&this._setFocused(!1);}),i.addEventListener("focused-date-changed",o=>{this._focusedDate=o.detail.value;}),i.addEventListener("click",o=>o.stopPropagation());}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=Se(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(to(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||ve(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),i&&o&&r}_shouldSetFocus(e){return !this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:i}=e;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive;}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e;}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange();}_close(){this._focus(),this.close();}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront();});}_isNoInput(e,i,o,r,n,a){return !e||i&&(!a||n)||o&&n||!r.parseDate}_formatISO(e){return Ad(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate));}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e);}_selectedDateChanged(e,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1);}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e);}_valueChanged(e,i){const o=Se(e);if(e&&!o){this.value=i;return}e?H$1(this._selectedDate,o)||(this._selectedDate=o,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue);}__updateOverlayContent(e,i,o,r,n,a,l,d,c){e&&(e.i18n=i,e.label=o,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=d,e.isDateDisabled=c);}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"));}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i);}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1;}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const o=e.focusedDate||i;e.scrollToDate(o),this._ignoreFocusedDateChange=!0,e.focusedDate=o,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=hr(n);}_getInitialPosition(){const e=Se(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||ve(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?fr(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this.__commitDate(i):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1);}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1;}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate();}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller();}_focus(){this._noInput||this.inputElement.focus();}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length);}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):"";}_setSelectionRange(e,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i);}_onChange(e){e.stopPropagation();}_onClick(e){this._isClearButton(e)||this._onHostClick(e);}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open());}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null);}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate();}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate);}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,H$1(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1);}}__computeMinOrMaxDate(e){return Se(e)}};/**
10144
+ */const sc=s=>class extends Qe(F$1(At$1(no(se(s))))){static get properties(){return {_selectedDate:{type:Object,sync:!0},_focusedDate:{type:Object,sync:!0},value:{type:String,notify:!0,value:"",sync:!0},initialPosition:String,opened:{type:Boolean,reflectToAttribute:!0,notify:!0,observer:"_openedChanged",sync:!0},autoOpenDisabled:Boolean,showWeekNumbers:{type:Boolean,value:!1,sync:!0},_fullscreen:{type:Boolean,value:!1,sync:!0},_fullscreenMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},i18n:{type:Object,sync:!0,value:()=>({monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],weekdays:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],weekdaysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],firstDayOfWeek:0,today:"Today",cancel:"Cancel",referenceDate:"",formatDate(e){const i=String(e.year).replace(/\d+/u,o=>"0000".substr(o.length)+o);return [e.month+1,e.day,i].join("/")},parseDate(e){const i=e.split("/"),o=new Date;let r,n=o.getMonth(),a=o.getFullYear();if(i.length===3){if(n=parseInt(i[0])-1,r=parseInt(i[1]),a=parseInt(i[2]),i[2].length<3&&a>=0){const l=this.referenceDate?Ie(this.referenceDate):new Date;a=Cd(l,a,n,r);}}else i.length===2?(n=parseInt(i[0])-1,r=parseInt(i[1])):i.length===1&&(r=parseInt(i[0]));if(r!==void 0)return {day:r,month:n,year:a}},formatTitle:(e,i)=>`${e} ${i}`})},min:{type:String,sync:!0},max:{type:String,sync:!0},isDateDisabled:{type:Function},_minDate:{type:Date,computed:"__computeMinOrMaxDate(min)",sync:!0},_maxDate:{type:Date,computed:"__computeMinOrMaxDate(max)",sync:!0},_noInput:{type:Boolean,computed:"_isNoInput(inputElement, _fullscreen, _ios, i18n, opened, autoOpenDisabled)"},_ios:{type:Boolean,value:Qi},_focusOverlayOnOpen:Boolean,_overlayContent:{type:Object,sync:!0},_hasInputValue:{type:Boolean}}}static get observers(){return ["_selectedDateChanged(_selectedDate, i18n)","_focusedDateChanged(_focusedDate, i18n)","__updateOverlayContent(_overlayContent, i18n, label, _minDate, _maxDate, _focusedDate, _selectedDate, showWeekNumbers, isDateDisabled)","__updateOverlayContentTheme(_overlayContent, _theme)","__updateOverlayContentFullScreen(_overlayContent, _fullscreen)"]}static get constraints(){return [...super.constraints,"min","max"]}constructor(){super(),this._boundOnClick=this._onClick.bind(this),this._boundOnScroll=this._onScroll.bind(this),this._boundOverlayRenderer=this._overlayRenderer.bind(this);}get _inputElementValue(){return super._inputElementValue}set _inputElementValue(e){super._inputElementValue=e,this._hasInputValue=!1;}get clearElement(){return null}get _nativeInput(){return this.inputElement?this.inputElement.focusElement||this.inputElement:null}get __unparsableValue(){return !this._inputElementValue||this.__parseDate(this._inputElementValue)?"":this._inputElementValue}_onFocus(e){super._onFocus(e),this._noInput&&!Et$1()&&e.target.blur();}_onBlur(e){super._onBlur(e),this.opened||(this.__commitParsedOrFocusedDate(),document.hasFocus()&&this.validate());}ready(){super.ready(),this.addEventListener("click",this._boundOnClick),this.addController(new ro(this._fullscreenMediaQuery,i=>{this._fullscreen=i;})),this.addController(new Ar(this));const e=this.$.overlay;this._overlayElement=e,e.renderer=this._boundOverlayRenderer,this.addEventListener("mousedown",()=>this.__bringToFront()),this.addEventListener("touchstart",()=>this.__bringToFront());}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1;}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.$.overlay.close();}_overlayRenderer(e){if(e.firstChild)return;const i=document.createElement("vaadin-date-picker-overlay-content");e.appendChild(i),this._overlayContent=i,i.addEventListener("close",()=>{this._close();}),i.addEventListener("focus-input",this._focusAndSelect.bind(this)),i.addEventListener("date-tap",o=>{this.__commitDate(o.detail.date),this._close();}),i.addEventListener("date-selected",o=>{this.__commitDate(o.detail.date);}),i.addEventListener("focusin",()=>{this._keyboardActive&&this._setFocused(!0);}),i.addEventListener("focusout",o=>{this._shouldRemoveFocus(o)&&this._setFocused(!1);}),i.addEventListener("focused-date-changed",o=>{this._focusedDate=o.detail.value;}),i.addEventListener("click",o=>o.stopPropagation());}__parseDate(e){if(!this.i18n.parseDate)return;let i=this.i18n.parseDate(e);if(i&&(i=Ie(`${i.year}-${i.month+1}-${i.day}`)),i&&!isNaN(i.getTime()))return i}__formatDate(e){if(this.i18n.formatDate)return this.i18n.formatDate(to(e))}checkValidity(){const e=this._inputElementValue,i=!e||!!this._selectedDate&&e===this.__formatDate(this._selectedDate),o=!this._selectedDate||_e(this._selectedDate,this._minDate,this._maxDate,this.isDateDisabled);let r=!0;return this.inputElement&&(this.inputElement.checkValidity?r=this.inputElement.checkValidity():this.inputElement.validate&&(r=this.inputElement.validate())),i&&o&&r}_shouldSetFocus(e){return !this._shouldKeepFocusRing}_shouldRemoveFocus(e){const{relatedTarget:i}=e;return this.opened&&i!==null&&i!==document.body&&!this.contains(i)&&!this._overlayContent.contains(i)?!0:!this.opened}_setFocused(e){super._setFocused(e),this._shouldKeepFocusRing=e&&this._keyboardActive;}__commitValueChange(){const e=this.__unparsableValue;this.__committedValue!==this.value?(this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}))):this.__committedUnparsableValue!==e&&(this.validate(),this.dispatchEvent(new CustomEvent("unparsable-change"))),this.__committedValue=this.value,this.__committedUnparsableValue=e;}__commitDate(e){this.__keepCommittedValue=!0,this._selectedDate=e,this.__keepCommittedValue=!1,this.__commitValueChange();}_close(){this._focus(),this.close();}__bringToFront(){requestAnimationFrame(()=>{this.$.overlay.bringToFront();});}_isNoInput(e,i,o,r,n,a){return !e||i&&(!a||n)||o&&n||!r.parseDate}_formatISO(e){return Ad(e)}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.autocomplete="off",e.setAttribute("role","combobox"),e.setAttribute("aria-haspopup","dialog"),e.setAttribute("aria-expanded",!!this.opened),this._applyInputValue(this._selectedDate));}_openedChanged(e){this.inputElement&&this.inputElement.setAttribute("aria-expanded",e);}_selectedDateChanged(e,i){e===void 0||i===void 0||(this.__keepInputValue||this._applyInputValue(e),this.value=this._formatISO(e),this._ignoreFocusedDateChange=!0,this._focusedDate=e,this._ignoreFocusedDateChange=!1);}_focusedDateChanged(e,i){e===void 0||i===void 0||!this._ignoreFocusedDateChange&&!this._noInput&&this._applyInputValue(e);}_valueChanged(e,i){const o=Ie(e);if(e&&!o){this.value=i;return}e?H$1(this._selectedDate,o)||(this._selectedDate=o,i!==void 0&&this.validate()):this._selectedDate=null,this.__keepCommittedValue||(this.__committedValue=this.value,this.__committedUnparsableValue=""),this._toggleHasValue(this._hasValue);}__updateOverlayContent(e,i,o,r,n,a,l,d,c){e&&(e.i18n=i,e.label=o,e.minDate=r,e.maxDate=n,e.focusedDate=a,e.selectedDate=l,e.showWeekNumbers=d,e.isDateDisabled=c);}__updateOverlayContentTheme(e,i){e&&(i?e.setAttribute("theme",i):e.removeAttribute("theme"));}__updateOverlayContentFullScreen(e,i){e&&e.toggleAttribute("fullscreen",i);}_onOverlayEscapePress(){this._focusedDate=this._selectedDate,this._closedByEscape=!0,this._close(),this._closedByEscape=!1;}_onOverlayOpened(){const e=this._overlayContent;e.reset();const i=this._getInitialPosition();e.initialPosition=i;const o=e.focusedDate||i;e.scrollToDate(o),this._ignoreFocusedDateChange=!0,e.focusedDate=o,this._ignoreFocusedDateChange=!1,window.addEventListener("scroll",this._boundOnScroll,!0),this._focusOverlayOnOpen?(e.focusDateElement(),this._focusOverlayOnOpen=!1):this._focus();const r=this._nativeInput;this._noInput&&r&&(r.blur(),this._overlayContent.focusDateElement());const n=this._noInput?e:[r,e];this.__showOthers=hr(n);}_getInitialPosition(){const e=Ie(this.initialPosition),i=this._selectedDate||this._overlayContent.initialPosition||e||new Date;return e||_e(i,this._minDate,this._maxDate,this.isDateDisabled)?i:this._minDate||this._maxDate?fr(i,[this._minDate,this._maxDate]):new Date}__commitParsedOrFocusedDate(){if(this._ignoreFocusedDateChange=!0,this.i18n.parseDate){const e=this._inputElementValue||"",i=this.__parseDate(e);i?this.__commitDate(i):(this.__keepInputValue=!0,this.__commitDate(null),this.__keepInputValue=!1);}else this._focusedDate&&this.__commitDate(this._focusedDate);this._ignoreFocusedDateChange=!1;}_onOverlayClosed(){this.__showOthers&&(this.__showOthers(),this.__showOthers=null),window.removeEventListener("scroll",this._boundOnScroll,!0),this._closedByEscape&&this._applyInputValue(this._selectedDate),this.__commitParsedOrFocusedDate(),this._nativeInput&&this._nativeInput.selectionStart&&(this._nativeInput.selectionStart=this._nativeInput.selectionEnd),!this.value&&!this._keyboardActive&&this.validate();}_onScroll(e){(e.target===window||!this._overlayContent.contains(e.target))&&this._overlayContent._repositionYearScroller();}_focus(){this._noInput||this.inputElement.focus();}_focusAndSelect(){this._focus(),this._setSelectionRange(0,this._inputElementValue.length);}_applyInputValue(e){this._inputElementValue=e?this.__formatDate(e):"";}_setSelectionRange(e,i){this._nativeInput&&this._nativeInput.setSelectionRange&&this._nativeInput.setSelectionRange(e,i);}_onChange(e){e.stopPropagation();}_onClick(e){this._isClearButton(e)||this._onHostClick(e);}_onHostClick(e){(!this.autoOpenDisabled||this._noInput)&&(e.preventDefault(),this.open());}_onClearButtonClick(e){e.preventDefault(),this.__commitDate(null);}_onKeyDown(e){switch(super._onKeyDown(e),this._noInput&&[9].indexOf(e.keyCode)===-1&&e.preventDefault(),e.key){case"ArrowDown":case"ArrowUp":e.preventDefault(),this.opened?this._overlayContent.focusDateElement():(this._focusOverlayOnOpen=!0,this.open());break;case"Tab":this.opened&&(e.preventDefault(),e.stopPropagation(),this._setSelectionRange(0,0),e.shiftKey?this._overlayContent.focusCancel():this._overlayContent.focusDateElement());break}}_onEnter(e){this.opened?this.close():this.__commitParsedOrFocusedDate();}_onEscape(e){if(!this.opened){if(this.clearButtonVisible&&this.value&&!this.readonly){e.stopPropagation(),this._onClearButtonClick(e);return}this.inputElement.value===""?this.__commitDate(null):this._applyInputValue(this._selectedDate);}}_isClearButton(e){return e.composedPath()[0]===this.clearElement}_onInput(){if(!this.opened&&this._inputElementValue&&!this.autoOpenDisabled&&this.open(),this._inputElementValue){const e=this.__parseDate(this._inputElementValue);e&&(this._ignoreFocusedDateChange=!0,H$1(e,this._focusedDate)||(this._focusedDate=e),this._ignoreFocusedDateChange=!1);}}__computeMinOrMaxDate(e){return Ie(e)}};/**
10145
10145
  * @license
10146
10146
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
10147
10147
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10162,7 +10162,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10162
10162
  * @license
10163
10163
  * Copyright (c) 2016 - 2024 Vaadin Ltd.
10164
10164
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10165
- */m$1("vaadin-date-picker",[Dt,rc],{moduleId:"vaadin-date-picker-styles"});class nc extends sc(Tt$1(x(N$1(b$1)))){static get is(){return "vaadin-date-picker"}static get template(){return g$1`
10165
+ */m$1("vaadin-date-picker",[Tt$1,rc],{moduleId:"vaadin-date-picker-styles"});class nc extends sc(Pt$1(x(N$1(b$1)))){static get is(){return "vaadin-date-picker"}static get template(){return g$1`
10166
10166
  <div class="vaadin-date-picker-container">
10167
10167
  <div part="label">
10168
10168
  <slot name="label"></slot>
@@ -10204,23 +10204,23 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10204
10204
  ></vaadin-date-picker-overlay>
10205
10205
 
10206
10206
  <slot name="tooltip"></slot>
10207
- `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ge(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;},{uniqueIdPrefix:"search-input"})),this.addController(new Xe(this.inputElement,this._labelController)),this._tooltipController=new U$1(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;}}v$1(nc);/**
10207
+ `}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ke(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;},{uniqueIdPrefix:"search-input"})),this.addController(new Ge(this.inputElement,this._labelController)),this._tooltipController=new U$1(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;}}v$1(nc);/**
10208
10208
  * @license
10209
10209
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
10210
10210
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10211
- */m$1("vaadin-text-field",ae,{moduleId:"lumo-text-field-styles"});/**
10211
+ */m$1("vaadin-text-field",ne,{moduleId:"lumo-text-field-styles"});/**
10212
10212
  * @license
10213
10213
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10214
10214
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10215
- */const ac=s=>class extends Tt$1(s){static get properties(){return {autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return [...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e;}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value));}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}_onInput(e){super._onInput(e),this.invalid&&this.validate();}_valueChanged(e,i){super._valueChanged(e,i),i!==void 0&&this.invalid&&this.validate();}};/**
10215
+ */const ac=s=>class extends Pt$1(s){static get properties(){return {autocomplete:{type:String},autocorrect:{type:String},autocapitalize:{type:String,reflectToAttribute:!0}}}static get delegateAttrs(){return [...super.delegateAttrs,"autocapitalize","autocomplete","autocorrect"]}get __data(){return this.__dataValue||{}}set __data(e){this.__dataValue=e;}_inputElementChanged(e){super._inputElementChanged(e),e&&(e.value&&e.value!==this.value&&(console.warn(`Please define value on the <${this.localName}> component!`),e.value=""),this.value&&(e.value=this.value));}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}_onInput(e){super._onInput(e),this.invalid&&this.validate();}_valueChanged(e,i){super._valueChanged(e,i),i!==void 0&&this.invalid&&this.validate();}};/**
10216
10216
  * @license
10217
10217
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10218
10218
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10219
- */const lc=s=>class extends ac(s){static get properties(){return {maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return [...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return [...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text");}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ge(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new Xe(this.inputElement,this._labelController));}};/**
10219
+ */const lc=s=>class extends ac(s){static get properties(){return {maxlength:{type:Number},minlength:{type:Number},pattern:{type:String}}}static get delegateAttrs(){return [...super.delegateAttrs,"maxlength","minlength","pattern"]}static get constraints(){return [...super.constraints,"maxlength","minlength","pattern"]}constructor(){super(),this._setType("text");}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ke(this,e=>{this._setInputElement(e),this._setFocusElement(e),this.stateTarget=e,this.ariaTarget=e;})),this.addController(new Ge(this.inputElement,this._labelController));}};/**
10220
10220
  * @license
10221
10221
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
10222
10222
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10223
- */m$1("vaadin-text-field",Dt,{moduleId:"vaadin-text-field-styles"});class kr extends lc(x(N$1(b$1))){static get is(){return "vaadin-text-field"}static get template(){return g$1`
10223
+ */m$1("vaadin-text-field",Tt$1,{moduleId:"vaadin-text-field-styles"});class kr extends lc(x(N$1(b$1))){static get is(){return "vaadin-text-field"}static get template(){return g$1`
10224
10224
  <div class="vaadin-field-container">
10225
10225
  <div part="label">
10226
10226
  <slot name="label"></slot>
@@ -10288,7 +10288,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10288
10288
  [part='reveal-button'][hidden] {
10289
10289
  display: none !important;
10290
10290
  }
10291
- `;m$1("vaadin-password-field",[ae,cc],{moduleId:"lumo-password-field"});/**
10291
+ `;m$1("vaadin-password-field",[ne,cc],{moduleId:"lumo-password-field"});/**
10292
10292
  * @license
10293
10293
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10294
10294
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10296,7 +10296,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10296
10296
  * @license
10297
10297
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10298
10298
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10299
- */const uc=s=>class extends wr(be(ne(Ke(s)))){static get properties(){return {revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return ["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange="";}get slotStyles(){const e=this.localName;return [...super.slotStyles,`
10299
+ */const uc=s=>class extends wr(ge(re(Ye(s)))){static get properties(){return {revealButtonHidden:{type:Boolean,observer:"_revealButtonHiddenChanged",value:!1},passwordVisible:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_passwordVisibleChanged",readOnly:!0},i18n:{type:Object,value:()=>({reveal:"Show password"})}}}static get observers(){return ["__i18nChanged(i18n)"]}constructor(){super(),this._setType("password"),this.__boundRevealButtonClick=this._onRevealButtonClick.bind(this),this.__boundRevealButtonMouseDown=this._onRevealButtonMouseDown.bind(this),this.__lastChange="";}get slotStyles(){const e=this.localName;return [...super.slotStyles,`
10300
10300
  ${e} [slot="input"]::-ms-reveal {
10301
10301
  display: none;
10302
10302
  }
@@ -10308,7 +10308,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10308
10308
  <div part="reveal-button" slot="suffix">
10309
10309
  <slot name="reveal"></slot>
10310
10310
  </div>
10311
- `;let rt$1;class mc extends uc(kr){static get is(){return "vaadin-password-field"}static get template(){if(!rt$1){rt$1=super.template.cloneNode(!0);const t=pc.content.querySelector('[part="reveal-button"]');rt$1.content.querySelector('[part="input-field"]').appendChild(t);}return rt$1}}v$1(mc);const Ot$1=p$1`
10311
+ `;let st$1;class mc extends uc(kr){static get is(){return "vaadin-password-field"}static get template(){if(!st$1){st$1=super.template.cloneNode(!0);const t=pc.content.querySelector('[part="reveal-button"]');st$1.content.querySelector('[part="input-field"]').appendChild(t);}return st$1}}v$1(mc);const Dt=p$1`
10312
10312
  :host {
10313
10313
  display: flex;
10314
10314
  align-items: center;
@@ -10392,7 +10392,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10392
10392
  width: var(--lumo-icon-size-m);
10393
10393
  height: var(--lumo-icon-size-m);
10394
10394
  }
10395
- `;m$1("vaadin-item",Ot$1,{moduleId:"lumo-item"});const Ir=p$1`
10395
+ `;m$1("vaadin-item",Dt,{moduleId:"lumo-item"});const Ir=p$1`
10396
10396
  :host {
10397
10397
  transition: background-color 100ms;
10398
10398
  overflow: hidden;
@@ -10404,7 +10404,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10404
10404
  :host([focused]:not([disabled])) {
10405
10405
  box-shadow: inset 0 0 0 var(--_focus-ring-width) var(--_focus-ring-color);
10406
10406
  }
10407
- `;m$1("vaadin-combo-box-item",[Ot$1,Ir],{moduleId:"lumo-combo-box-item"});/**
10407
+ `;m$1("vaadin-combo-box-item",[Dt,Ir],{moduleId:"lumo-combo-box-item"});/**
10408
10408
  * @license
10409
10409
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
10410
10410
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10479,7 +10479,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10479
10479
  top: var(--lumo-space-s);
10480
10480
  margin-inline: auto 0;
10481
10481
  }
10482
- `;m$1("vaadin-combo-box-overlay",[ye,St$1,Pr,Sr,Tr,p$1`
10482
+ `;m$1("vaadin-combo-box-overlay",[be,It,Pr,Sr,Tr,p$1`
10483
10483
  :host {
10484
10484
  --_vaadin-combo-box-items-container-border-width: var(--lumo-space-xs);
10485
10485
  --_vaadin-combo-box-items-container-border-style: solid;
@@ -10488,7 +10488,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10488
10488
  [part='toggle-button']::before {
10489
10489
  content: var(--lumo-icons-dropdown);
10490
10490
  }
10491
- `;m$1("vaadin-combo-box",[ae,fc],{moduleId:"lumo-combo-box"});/**
10491
+ `;m$1("vaadin-combo-box",[ne,fc],{moduleId:"lumo-combo-box"});/**
10492
10492
  * @license
10493
10493
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10494
10494
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10528,7 +10528,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10528
10528
  flex-direction: column;
10529
10529
  height: 100%;
10530
10530
  }
10531
- `;m$1("vaadin-combo-box-overlay",[Je,vc],{moduleId:"vaadin-combo-box-overlay-styles"});class gc extends Or(Qe(M$1(x(b$1)))){static get is(){return "vaadin-combo-box-overlay"}static get template(){return g$1`
10531
+ `;m$1("vaadin-combo-box-overlay",[Xe,vc],{moduleId:"vaadin-combo-box-overlay-styles"});class gc extends Or(Je(M$1(x(b$1)))){static get is(){return "vaadin-combo-box-overlay"}static get template(){return g$1`
10532
10532
  <div id="backdrop" part="backdrop" hidden></div>
10533
10533
  <div part="overlay" id="overlay">
10534
10534
  <div part="loader"></div>
@@ -10538,7 +10538,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10538
10538
  * @license
10539
10539
  * Copyright (c) 2023 - 2024 Vaadin Ltd.
10540
10540
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10541
- */function bt$1(s,t){return s.split(".").reduce((e,i)=>e?e[i]:void 0,t)}/**
10541
+ */function gt$1(s,t){return s.split(".").reduce((e,i)=>e?e[i]:void 0,t)}/**
10542
10542
  * @license
10543
10543
  * Copyright (c) 2016 The Polymer Project Authors. All rights reserved.
10544
10544
  * This code may only be used under the BSD style license found at http://polymer.github.io/LICENSE.txt
@@ -10546,11 +10546,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10546
10546
  * The complete set of contributors may be found at http://polymer.github.io/CONTRIBUTORS.txt
10547
10547
  * Code distributed by Google as part of the polymer project is also
10548
10548
  * subject to an additional IP rights grant found at http://polymer.github.io/PATENTS.txt
10549
- */const Xo=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),bc=Xo&&Xo[1]>=8,Jo=3,yc={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const s=this._virtualCount;return Math.max(0,s-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(s){s=this._clamp(s,0,this._maxVirtualStart),this._virtualStartVal=s;},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(s){s%=this._physicalCount,s<0&&(s=this._physicalCount+s),this._physicalStartVal=s;},get _physicalEnd(){return (this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(s){this._physicalCountVal=s;},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return !!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let s=this._firstVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;s=this._iterateItems((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=s;}return s},get lastVisibleIndex(){let s=this._lastVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,i)=>{t<this._scrollBottom&&(s=i),t+=this._getPhysicalSizeIncrement(e);}),this._lastVisibleIndexVal=s;}return s},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const s=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=s-this._scrollPosition;const e=t>=0;if(this._scrollPosition=s,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const i=Math.round(t/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update();}else if(this._physicalCount>0){const i=this._getReusables(e);e?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,e?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),_t$1);}},_getReusables(s){let t,e,i;const o=[],r=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const c=this._physicalBottom+this._scrollOffset,h=this._scrollPosition,u=this._scrollBottom;for(s?(t=this._physicalStart,e=h-d):(t=this._physicalEnd,e=c-u);i=this._getPhysicalSizeIncrement(t),e-=i,!(o.length>=l||e<=r);)if(s){if(a+o.length+1>=this._virtualCount||d+i>=h-this._scrollOffset)break;o.push(t),d+=i,t=(t+1)%l;}else {if(n-o.length<=0||d+this._physicalSize-i<=u)break;o.push(t),d-=i,t=t===0?l-1:t-1;}return {indexes:o,physicalTop:d-this._scrollOffset}},_update(s,t){if(!(s&&s.length===0||this._physicalCount===0)){if(this._assignModels(s),this._updateMetrics(s),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e);}this._positionItems(),this._updateScrollerSize();}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(s){const e=this._clamp(this._physicalCount+s,Jo,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const o=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let r=0;r<e;r++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-o)/e,i=Math.round(this._physicalCount*.5);}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),qs):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),_t$1));}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const s=this._getReusables(!0);this._physicalTop=s.physicalTop,this._virtualStart+=s.indexes.length,this._physicalStart+=s.indexes.length,this._update(s.indexes),this._update(),this._increasePoolIfNeeded(0);}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Jo));},_itemsChanged(s){s.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,Ue));},_iterateItems(s,t){let e,i,o,r;if(arguments.length===2&&t){for(r=0;r<t.length;r++)if(e=t[r],i=this._computeVidx(e),(o=s.call(this,e,i))!=null)return o}else {for(e=this._physicalStart,i=this._virtualStart;e<this._physicalCount;e++,i++)if((o=s.call(this,e,i))!=null)return o;for(e=0;e<this._physicalStart;e++,i++)if((o=s.call(this,e,i))!=null)return o}},_computeVidx(s){return s>=this._physicalStart?this._virtualStart+(s-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+s},_positionItems(){this._adjustScrollPosition();let s=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${s}px`,0,this._physicalItems[t]),s+=this._physicalSizes[t];});},_getPhysicalSizeIncrement(s){return this._physicalSizes[s]},_adjustScrollPosition(){const s=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(s!==0){this._physicalTop-=s;const t=this._scrollPosition;!bc&&t>0&&this._resetScrollPosition(t-s);}},_resetScrollPosition(s){this.scrollTarget&&s>=0&&(this._scrollTop=s,this._scrollPosition=this._scrollTop);},_updateScrollerSize(s){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(s||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t);},scrollToIndex(s){if(typeof s!="number"||s<0||s>this.items.length-1||(De(),this._physicalCount===0))return;s=this._clamp(s,0,this._virtualCount-1),(!this._isIndexRendered(s)||s>=this._maxVirtualStart)&&(this._virtualStart=s-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,e=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;e<s&&i<=o;)i+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null;},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0;},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1);},Ue);},_isIndexRendered(s){return s>=this._virtualStart&&s<=this._virtualEnd},_getPhysicalIndex(s){return (this._physicalStart+(s-this._virtualStart))%this._physicalCount},_clamp(s,t,e){return Math.min(e,Math.max(t,s))},_debounce(s,t,e){this._debouncers||(this._debouncers={}),this._debouncers[s]=z$1.debounce(this._debouncers[s],e,t.bind(this)),Ys(this._debouncers[s]);}};/**
10549
+ */const Xo=navigator.userAgent.match(/iP(?:hone|ad;(?: U;)? CPU) OS (\d+)/u),bc=Xo&&Xo[1]>=8,Jo=3,yc={_ratio:.5,_scrollerPaddingTop:0,_scrollPosition:0,_physicalSize:0,_physicalAverage:0,_physicalAverageCount:0,_physicalTop:0,_virtualCount:0,_estScrollHeight:0,_scrollHeight:0,_viewportHeight:0,_viewportWidth:0,_physicalItems:null,_physicalSizes:null,_firstVisibleIndexVal:null,_lastVisibleIndexVal:null,_maxPages:2,_templateCost:0,get _physicalBottom(){return this._physicalTop+this._physicalSize},get _scrollBottom(){return this._scrollPosition+this._viewportHeight},get _virtualEnd(){return this._virtualStart+this._physicalCount-1},get _hiddenContentSize(){return this._physicalSize-this._viewportHeight},get _maxScrollTop(){return this._estScrollHeight-this._viewportHeight+this._scrollOffset},get _maxVirtualStart(){const s=this._virtualCount;return Math.max(0,s-this._physicalCount)},get _virtualStart(){return this._virtualStartVal||0},set _virtualStart(s){s=this._clamp(s,0,this._maxVirtualStart),this._virtualStartVal=s;},get _physicalStart(){return this._physicalStartVal||0},set _physicalStart(s){s%=this._physicalCount,s<0&&(s=this._physicalCount+s),this._physicalStartVal=s;},get _physicalEnd(){return (this._physicalStart+this._physicalCount-1)%this._physicalCount},get _physicalCount(){return this._physicalCountVal||0},set _physicalCount(s){this._physicalCountVal=s;},get _optPhysicalSize(){return this._viewportHeight===0?1/0:this._viewportHeight*this._maxPages},get _isVisible(){return !!(this.offsetWidth||this.offsetHeight)},get firstVisibleIndex(){let s=this._firstVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;s=this._iterateItems((e,i)=>{if(t+=this._getPhysicalSizeIncrement(e),t>this._scrollPosition)return i})||0,this._firstVisibleIndexVal=s;}return s},get lastVisibleIndex(){let s=this._lastVisibleIndexVal;if(s==null){let t=this._physicalTop+this._scrollOffset;this._iterateItems((e,i)=>{t<this._scrollBottom&&(s=i),t+=this._getPhysicalSizeIncrement(e);}),this._lastVisibleIndexVal=s;}return s},get _scrollOffset(){return this._scrollerPaddingTop+this.scrollOffset},_scrollHandler(){const s=Math.max(0,Math.min(this._maxScrollTop,this._scrollTop));let t=s-this._scrollPosition;const e=t>=0;if(this._scrollPosition=s,this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,Math.abs(t)>this._physicalSize&&this._physicalSize>0){t-=this._scrollOffset;const i=Math.round(t/this._physicalAverage);this._virtualStart+=i,this._physicalStart+=i,this._physicalTop=Math.min(Math.floor(this._virtualStart)*this._physicalAverage,this._scrollPosition),this._update();}else if(this._physicalCount>0){const i=this._getReusables(e);e?(this._physicalTop=i.physicalTop,this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length):(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length),this._update(i.indexes,e?null:i.indexes),this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,0),ft$1);}},_getReusables(s){let t,e,i;const o=[],r=this._hiddenContentSize*this._ratio,n=this._virtualStart,a=this._virtualEnd,l=this._physicalCount;let d=this._physicalTop+this._scrollOffset;const c=this._physicalBottom+this._scrollOffset,h=this._scrollPosition,u=this._scrollBottom;for(s?(t=this._physicalStart,e=h-d):(t=this._physicalEnd,e=c-u);i=this._getPhysicalSizeIncrement(t),e-=i,!(o.length>=l||e<=r);)if(s){if(a+o.length+1>=this._virtualCount||d+i>=h-this._scrollOffset)break;o.push(t),d+=i,t=(t+1)%l;}else {if(n-o.length<=0||d+this._physicalSize-i<=u)break;o.push(t),d-=i,t=t===0?l-1:t-1;}return {indexes:o,physicalTop:d-this._scrollOffset}},_update(s,t){if(!(s&&s.length===0||this._physicalCount===0)){if(this._assignModels(s),this._updateMetrics(s),t)for(;t.length;){const e=t.pop();this._physicalTop-=this._getPhysicalSizeIncrement(e);}this._positionItems(),this._updateScrollerSize();}},_isClientFull(){return this._scrollBottom!==0&&this._physicalBottom-1>=this._scrollBottom&&this._physicalTop<=this._scrollPosition},_increasePoolIfNeeded(s){const e=this._clamp(this._physicalCount+s,Jo,this._virtualCount-this._virtualStart)-this._physicalCount;let i=Math.round(this._physicalCount*.5);if(!(e<0)){if(e>0){const o=window.performance.now();[].push.apply(this._physicalItems,this._createPool(e));for(let r=0;r<e;r++)this._physicalSizes.push(0);this._physicalCount+=e,this._physicalStart>this._physicalEnd&&this._isIndexRendered(this._focusedVirtualIndex)&&this._getPhysicalIndex(this._focusedVirtualIndex)<this._physicalEnd&&(this._physicalStart+=e),this._update(),this._templateCost=(window.performance.now()-o)/e,i=Math.round(this._physicalCount*.5);}this._virtualEnd>=this._virtualCount-1||i===0||(this._isClientFull()?this._physicalSize<this._optPhysicalSize&&this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,this._clamp(Math.round(50/this._templateCost),1,i)),qs):this._debounce("_increasePoolIfNeeded",this._increasePoolIfNeeded.bind(this,i),ft$1));}},_render(){if(!(!this.isAttached||!this._isVisible))if(this._physicalCount!==0){const s=this._getReusables(!0);this._physicalTop=s.physicalTop,this._virtualStart+=s.indexes.length,this._physicalStart+=s.indexes.length,this._update(s.indexes),this._update(),this._increasePoolIfNeeded(0);}else this._virtualCount>0&&(this.updateViewportBoundaries(),this._increasePoolIfNeeded(Jo));},_itemsChanged(s){s.path==="items"&&(this._virtualStart=0,this._physicalTop=0,this._virtualCount=this.items?this.items.length:0,this._physicalIndexForKey={},this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._physicalItems||(this._physicalItems=[]),this._physicalSizes||(this._physicalSizes=[]),this._physicalStart=0,this._scrollTop>this._scrollOffset&&this._resetScrollPosition(0),this._debounce("_render",this._render,He));},_iterateItems(s,t){let e,i,o,r;if(arguments.length===2&&t){for(r=0;r<t.length;r++)if(e=t[r],i=this._computeVidx(e),(o=s.call(this,e,i))!=null)return o}else {for(e=this._physicalStart,i=this._virtualStart;e<this._physicalCount;e++,i++)if((o=s.call(this,e,i))!=null)return o;for(e=0;e<this._physicalStart;e++,i++)if((o=s.call(this,e,i))!=null)return o}},_computeVidx(s){return s>=this._physicalStart?this._virtualStart+(s-this._physicalStart):this._virtualStart+(this._physicalCount-this._physicalStart)+s},_positionItems(){this._adjustScrollPosition();let s=this._physicalTop;this._iterateItems(t=>{this.translate3d(0,`${s}px`,0,this._physicalItems[t]),s+=this._physicalSizes[t];});},_getPhysicalSizeIncrement(s){return this._physicalSizes[s]},_adjustScrollPosition(){const s=this._virtualStart===0?this._physicalTop:Math.min(this._scrollPosition+this._physicalTop,0);if(s!==0){this._physicalTop-=s;const t=this._scrollPosition;!bc&&t>0&&this._resetScrollPosition(t-s);}},_resetScrollPosition(s){this.scrollTarget&&s>=0&&(this._scrollTop=s,this._scrollPosition=this._scrollTop);},_updateScrollerSize(s){const t=this._physicalBottom+Math.max(this._virtualCount-this._physicalCount-this._virtualStart,0)*this._physicalAverage;this._estScrollHeight=t,(s||this._scrollHeight===0||this._scrollPosition>=t-this._physicalSize||Math.abs(t-this._scrollHeight)>=this._viewportHeight)&&(this.$.items.style.height=`${t}px`,this._scrollHeight=t);},scrollToIndex(s){if(typeof s!="number"||s<0||s>this.items.length-1||(Te(),this._physicalCount===0))return;s=this._clamp(s,0,this._virtualCount-1),(!this._isIndexRendered(s)||s>=this._maxVirtualStart)&&(this._virtualStart=s-1),this._assignModels(),this._updateMetrics(),this._physicalTop=this._virtualStart*this._physicalAverage;let t=this._physicalStart,e=this._virtualStart,i=0;const o=this._hiddenContentSize;for(;e<s&&i<=o;)i+=this._getPhysicalSizeIncrement(t),t=(t+1)%this._physicalCount,e+=1;this._updateScrollerSize(!0),this._positionItems(),this._resetScrollPosition(this._physicalTop+this._scrollOffset+i),this._increasePoolIfNeeded(0),this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null;},_resetAverage(){this._physicalAverage=0,this._physicalAverageCount=0;},_resizeHandler(){this._debounce("_render",()=>{this._firstVisibleIndexVal=null,this._lastVisibleIndexVal=null,this._isVisible?(this.updateViewportBoundaries(),this.toggleScrollListener(!0),this._resetAverage(),this._render()):this.toggleScrollListener(!1);},He);},_isIndexRendered(s){return s>=this._virtualStart&&s<=this._virtualEnd},_getPhysicalIndex(s){return (this._physicalStart+(s-this._virtualStart))%this._physicalCount},_clamp(s,t,e){return Math.min(e,Math.max(t,s))},_debounce(s,t,e){this._debouncers||(this._debouncers={}),this._debouncers[s]=z$1.debounce(this._debouncers[s],e,t.bind(this)),Ys(this._debouncers[s]);}};/**
10550
10550
  * @license
10551
10551
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10552
10552
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10553
- */const xc=1e5,Zt=1e3;class zr{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:o,elementsContainer:r,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=r||o,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d;}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}));}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0;}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements();}));}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<Zt?(i=t,this._vidxOffset=0):(i=Zt,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t);}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),De(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush());}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=t&&o.__virtualIndex<=e&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o));}),this.__afterElementsUpdated(i);}_updateMetrics(t){De();let e=0,i=0;const o=this._physicalAverageCount,r=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0;},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((r*o+e)/this._physicalAverageCount));}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const o=parseFloat(e.paddingBottom)||0,r=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,a=parseFloat(e.borderTopWidth)||0;return i+o+r+n+a}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e);}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=z$1.debounce(this.__placeholderClearDebouncer,Ue,()=>this._resizeHandler());else {this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(r=>r!==void 0);this.__placeholderHeight=Math.round(o.reduce((r,n)=>r+n,0)/o.length);}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex);}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let e,i;if(t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),De(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const o=this.__getIndexScrollOffset(e);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o);}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),De(),this._debounce("_update",this._update,_t$1);}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t;}get items(){return {length:Math.min(this.size,xc)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return {items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics();}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o);}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,o)=>{const r=this._physicalItems[i];r.hidden=o>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),e.push(r));},t),this.__afterElementsUpdated(e);}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0;}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,o){o.style.transform=`translateY(${e})`;}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find(e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return e.indexOf(t)===0&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,o)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush());}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler());}t&&(this.__fixInvalidItemPositioningDebouncer=z$1.debounce(this.__fixInvalidItemPositioningDebouncer,Y$1.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=z$1.debounce(this.__scrollReorderDebouncer,Y$1.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0);}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!o){const r=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(r?-1:1),this._scrollHandler(),this._ratio=n;}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=z$1.debounce(this.__debouncerWheelAnimationFrame,Ue,()=>{this._wheelAnimationFrame=!1;});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=z$1.debounce(this._debouncerIgnoreNewWheel,Y$1.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1;})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i;}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return !1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return !0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)));}else super._increasePoolIfNeeded(t);}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const o=i.__virtualIndex-t,r=e.indexOf(i)-o;if(r>0)for(let n=0;n<r;n++)this.elementsContainer.appendChild(e[n]);else if(r<0)for(let n=e.length+r;n<e.length;n++)this.elementsContainer.insertBefore(e[n],e[0]);if(ld){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n;});}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*e);}else {const i=this._vidxOffset,o=Zt,r=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)));}}}Object.setPrototypeOf(zr.prototype,yc);class wc{constructor(t){this.__adapter=new zr(t);}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t;}scrollToIndex(t){this.__adapter.scrollToIndex(t);}update(t=0,e=this.size-1){this.__adapter.update(t,e);}flush(){this.__adapter.flush();}}/**
10553
+ */const xc=1e5,Qt=1e3;class zr{constructor({createElements:t,updateElement:e,scrollTarget:i,scrollContainer:o,elementsContainer:r,reorderElements:n}){this.isAttached=!0,this._vidxOffset=0,this.createElements=t,this.updateElement=e,this.scrollTarget=i,this.scrollContainer=o,this.elementsContainer=r||o,this.reorderElements=n,this._maxPages=1.3,this.__placeholderHeight=200,this.__elementHeightQueue=Array(10),this.timeouts={SCROLL_REORDER:500,IGNORE_WHEEL:500,FIX_INVALID_ITEM_POSITIONING:100},this.__resizeObserver=new ResizeObserver(()=>this._resizeHandler()),getComputedStyle(this.scrollTarget).overflow==="visible"&&(this.scrollTarget.style.overflow="auto"),getComputedStyle(this.scrollContainer).position==="static"&&(this.scrollContainer.style.position="relative"),this.__resizeObserver.observe(this.scrollTarget),this.scrollTarget.addEventListener("scroll",()=>this._scrollHandler()),new ResizeObserver(([{contentRect:l}])=>{const d=l.width===0&&l.height===0;!d&&this.__scrollTargetHidden&&this.scrollTarget.scrollTop!==this._scrollPosition&&(this.scrollTarget.scrollTop=this._scrollPosition),this.__scrollTargetHidden=d;}).observe(this.scrollTarget),this._scrollLineHeight=this._getScrollLineHeight(),this.scrollTarget.addEventListener("wheel",l=>this.__onWheel(l)),this.scrollTarget.addEventListener("virtualizer-element-focused",l=>this.__onElementFocused(l)),this.elementsContainer.addEventListener("focusin",()=>{this.scrollTarget.dispatchEvent(new CustomEvent("virtualizer-element-focused",{detail:{element:this.__getFocusedElement()}}));}),this.reorderElements&&(this.scrollTarget.addEventListener("mousedown",()=>{this.__mouseDown=!0;}),this.scrollTarget.addEventListener("mouseup",()=>{this.__mouseDown=!1,this.__pendingReorder&&this.__reorderElements();}));}get scrollOffset(){return 0}get adjustedFirstVisibleIndex(){return this.firstVisibleIndex+this._vidxOffset}get adjustedLastVisibleIndex(){return this.lastVisibleIndex+this._vidxOffset}get _maxVirtualIndexOffset(){return this.size-this._virtualCount}__hasPlaceholders(){return this.__getVisibleElements().some(t=>t.__virtualizerPlaceholder)}scrollToIndex(t){if(typeof t!="number"||isNaN(t)||this.size===0||!this.scrollTarget.offsetHeight)return;delete this.__pendingScrollToIndex,this._physicalCount<=3&&this.flush(),t=this._clamp(t,0,this.size-1);const e=this.__getVisibleElements().length;let i=Math.floor(t/this.size*this._virtualCount);this._virtualCount-i<e?(i=this._virtualCount-(this.size-t),this._vidxOffset=this._maxVirtualIndexOffset):i<e?t<Qt?(i=t,this._vidxOffset=0):(i=Qt,this._vidxOffset=t-i):this._vidxOffset=t-i,this.__skipNextVirtualIndexAdjust=!0,super.scrollToIndex(i),this.adjustedFirstVisibleIndex!==t&&this._scrollTop<this._maxScrollTop&&!this.grid&&(this._scrollTop-=this.__getIndexScrollOffset(t)||0),this._scrollHandler(),this.__hasPlaceholders()&&(this.__pendingScrollToIndex=t);}flush(){this.scrollTarget.offsetHeight!==0&&(this._resizeHandler(),Te(),this._scrollHandler(),this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.flush(),this.__scrollReorderDebouncer&&this.__scrollReorderDebouncer.flush(),this.__debouncerWheelAnimationFrame&&this.__debouncerWheelAnimationFrame.flush());}update(t=0,e=this.size-1){const i=[];this.__getVisibleElements().forEach(o=>{o.__virtualIndex>=t&&o.__virtualIndex<=e&&(this.__updateElement(o,o.__virtualIndex,!0),i.push(o));}),this.__afterElementsUpdated(i);}_updateMetrics(t){Te();let e=0,i=0;const o=this._physicalAverageCount,r=this._physicalAverage;this._iterateItems((n,a)=>{i+=this._physicalSizes[n],this._physicalSizes[n]=Math.ceil(this.__getBorderBoxHeight(this._physicalItems[n])),e+=this._physicalSizes[n],this._physicalAverageCount+=this._physicalSizes[n]?1:0;},t),this._physicalSize=this._physicalSize+e-i,this._physicalAverageCount!==o&&(this._physicalAverage=Math.round((r*o+e)/this._physicalAverageCount));}__getBorderBoxHeight(t){const e=getComputedStyle(t),i=parseFloat(e.height)||0;if(e.boxSizing==="border-box")return i;const o=parseFloat(e.paddingBottom)||0,r=parseFloat(e.paddingTop)||0,n=parseFloat(e.borderBottomWidth)||0,a=parseFloat(e.borderTopWidth)||0;return i+o+r+n+a}__updateElement(t,e,i){t.__virtualizerPlaceholder&&(t.style.paddingTop="",t.style.opacity="",t.__virtualizerPlaceholder=!1),!this.__preventElementUpdates&&(t.__lastUpdatedIndex!==e||i)&&(this.updateElement(t,e),t.__lastUpdatedIndex=e);}__afterElementsUpdated(t){t.forEach(e=>{const i=e.offsetHeight;if(i===0)e.style.paddingTop=`${this.__placeholderHeight}px`,e.style.opacity="0",e.__virtualizerPlaceholder=!0,this.__placeholderClearDebouncer=z$1.debounce(this.__placeholderClearDebouncer,He,()=>this._resizeHandler());else {this.__elementHeightQueue.push(i),this.__elementHeightQueue.shift();const o=this.__elementHeightQueue.filter(r=>r!==void 0);this.__placeholderHeight=Math.round(o.reduce((r,n)=>r+n,0)/o.length);}}),this.__pendingScrollToIndex!==void 0&&!this.__hasPlaceholders()&&this.scrollToIndex(this.__pendingScrollToIndex);}__getIndexScrollOffset(t){const e=this.__getVisibleElements().find(i=>i.__virtualIndex===t);return e?this.scrollTarget.getBoundingClientRect().top-e.getBoundingClientRect().top:void 0}get size(){return this.__size}set size(t){if(t===this.size)return;this.__fixInvalidItemPositioningDebouncer&&this.__fixInvalidItemPositioningDebouncer.cancel(),this._debouncers&&this._debouncers._increasePoolIfNeeded&&this._debouncers._increasePoolIfNeeded.cancel(),this.__preventElementUpdates=!0;let e,i;if(t>0&&(e=this.adjustedFirstVisibleIndex,i=this.__getIndexScrollOffset(e)),this.__size=t,this._itemsChanged({path:"items"}),Te(),t>0){e=Math.min(e,t-1),this.scrollToIndex(e);const o=this.__getIndexScrollOffset(e);i!==void 0&&o!==void 0&&(this._scrollTop+=i-o);}this.__preventElementUpdates=!1,this._isVisible||this._assignModels(),this.elementsContainer.children.length||requestAnimationFrame(()=>this._resizeHandler()),this._resizeHandler(),Te(),this._debounce("_update",this._update,ft$1);}get _scrollTop(){return this.scrollTarget.scrollTop}set _scrollTop(t){this.scrollTarget.scrollTop=t;}get items(){return {length:Math.min(this.size,xc)}}get offsetHeight(){return this.scrollTarget.offsetHeight}get $(){return {items:this.scrollContainer}}updateViewportBoundaries(){const t=window.getComputedStyle(this.scrollTarget);this._scrollerPaddingTop=this.scrollTarget===this?0:parseInt(t["padding-top"],10),this._isRTL=t.direction==="rtl",this._viewportWidth=this.elementsContainer.offsetWidth,this._viewportHeight=this.scrollTarget.offsetHeight,this._scrollPageHeight=this._viewportHeight-this._scrollLineHeight,this.grid&&this._updateGridMetrics();}setAttribute(){}_createPool(t){const e=this.createElements(t),i=document.createDocumentFragment();return e.forEach(o=>{o.style.position="absolute",i.appendChild(o),this.__resizeObserver.observe(o);}),this.elementsContainer.appendChild(i),e}_assignModels(t){const e=[];this._iterateItems((i,o)=>{const r=this._physicalItems[i];r.hidden=o>=this.size,r.hidden?delete r.__lastUpdatedIndex:(r.__virtualIndex=o+(this._vidxOffset||0),this.__updateElement(r,r.__virtualIndex),e.push(r));},t),this.__afterElementsUpdated(e);}_isClientFull(){return setTimeout(()=>{this.__clientFull=!0;}),this.__clientFull||super._isClientFull()}translate3d(t,e,i,o){o.style.transform=`translateY(${e})`;}toggleScrollListener(){}__getFocusedElement(t=this.__getVisibleElements()){return t.find(e=>e.contains(this.elementsContainer.getRootNode().activeElement)||e.contains(this.scrollTarget.getRootNode().activeElement))}__nextFocusableSiblingMissing(t,e){return e.indexOf(t)===e.length-1&&this.size>t.__virtualIndex+1}__previousFocusableSiblingMissing(t,e){return e.indexOf(t)===0&&t.__virtualIndex>0}__onElementFocused(t){if(!this.reorderElements)return;const e=t.detail.element;if(!e)return;const i=this.__getVisibleElements();(this.__previousFocusableSiblingMissing(e,i)||this.__nextFocusableSiblingMissing(e,i))&&this.flush();const o=this.__getVisibleElements();this.__nextFocusableSiblingMissing(e,o)?(this._scrollTop+=Math.ceil(e.getBoundingClientRect().bottom)-Math.floor(this.scrollTarget.getBoundingClientRect().bottom-1),this.flush()):this.__previousFocusableSiblingMissing(e,o)&&(this._scrollTop-=Math.ceil(this.scrollTarget.getBoundingClientRect().top+1)-Math.floor(e.getBoundingClientRect().top),this.flush());}_scrollHandler(){if(this.scrollTarget.offsetHeight===0)return;this._adjustVirtualIndexOffset(this._scrollTop-(this.__previousScrollTop||0));const t=this.scrollTarget.scrollTop-this._scrollPosition;if(super._scrollHandler(),this._physicalCount!==0){const e=t>=0,i=this._getReusables(!e);i.indexes.length&&(this._physicalTop=i.physicalTop,e?(this._virtualStart-=i.indexes.length,this._physicalStart-=i.indexes.length):(this._virtualStart+=i.indexes.length,this._physicalStart+=i.indexes.length),this._resizeHandler());}t&&(this.__fixInvalidItemPositioningDebouncer=z$1.debounce(this.__fixInvalidItemPositioningDebouncer,Y$1.after(this.timeouts.FIX_INVALID_ITEM_POSITIONING),()=>this.__fixInvalidItemPositioning())),this.reorderElements&&(this.__scrollReorderDebouncer=z$1.debounce(this.__scrollReorderDebouncer,Y$1.after(this.timeouts.SCROLL_REORDER),()=>this.__reorderElements())),this.__previousScrollTop=this._scrollTop,this._scrollTop===0&&this.firstVisibleIndex!==0&&Math.abs(t)>0&&this.scrollToIndex(0);}__fixInvalidItemPositioning(){if(!this.scrollTarget.isConnected)return;const t=this._physicalTop>this._scrollTop,e=this._physicalBottom<this._scrollBottom,i=this.adjustedFirstVisibleIndex===0,o=this.adjustedLastVisibleIndex===this.size-1;if(t&&!i||e&&!o){const r=e,n=this._ratio;this._ratio=0,this._scrollPosition=this._scrollTop+(r?-1:1),this._scrollHandler(),this._ratio=n;}}__onWheel(t){if(t.ctrlKey||this._hasScrolledAncestor(t.target,t.deltaX,t.deltaY))return;let e=t.deltaY;if(t.deltaMode===WheelEvent.DOM_DELTA_LINE?e*=this._scrollLineHeight:t.deltaMode===WheelEvent.DOM_DELTA_PAGE&&(e*=this._scrollPageHeight),this._deltaYAcc||(this._deltaYAcc=0),this._wheelAnimationFrame){this._deltaYAcc+=e,t.preventDefault();return}e+=this._deltaYAcc,this._deltaYAcc=0,this._wheelAnimationFrame=!0,this.__debouncerWheelAnimationFrame=z$1.debounce(this.__debouncerWheelAnimationFrame,He,()=>{this._wheelAnimationFrame=!1;});const i=Math.abs(t.deltaX)+Math.abs(e);this._canScroll(this.scrollTarget,t.deltaX,e)?(t.preventDefault(),this.scrollTarget.scrollTop+=e,this.scrollTarget.scrollLeft+=t.deltaX,this._hasResidualMomentum=!0,this._ignoreNewWheel=!0,this._debouncerIgnoreNewWheel=z$1.debounce(this._debouncerIgnoreNewWheel,Y$1.after(this.timeouts.IGNORE_WHEEL),()=>{this._ignoreNewWheel=!1;})):this._hasResidualMomentum&&i<=this._previousMomentum||this._ignoreNewWheel?t.preventDefault():i>this._previousMomentum&&(this._hasResidualMomentum=!1),this._previousMomentum=i;}_hasScrolledAncestor(t,e,i){if(t===this.scrollTarget||t===this.scrollTarget.getRootNode().host)return !1;if(this._canScroll(t,e,i)&&["auto","scroll"].indexOf(getComputedStyle(t).overflow)!==-1)return !0;if(t!==this&&t.parentElement)return this._hasScrolledAncestor(t.parentElement,e,i)}_canScroll(t,e,i){return i>0&&t.scrollTop<t.scrollHeight-t.offsetHeight||i<0&&t.scrollTop>0||e>0&&t.scrollLeft<t.scrollWidth-t.offsetWidth||e<0&&t.scrollLeft>0}_increasePoolIfNeeded(t){if(this._physicalCount>2&&t){const i=Math.ceil(this._optPhysicalSize/this._physicalAverage)-this._physicalCount;super._increasePoolIfNeeded(Math.max(t,Math.min(100,i)));}else super._increasePoolIfNeeded(t);}get _optPhysicalSize(){const t=super._optPhysicalSize;return t<=0||this.__hasPlaceholders()?t:t+this.__getItemHeightBuffer()}__getItemHeightBuffer(){if(this._physicalCount===0)return 0;const t=Math.ceil(this._viewportHeight*(this._maxPages-1)/2),e=Math.max(...this._physicalSizes);return e>Math.min(...this._physicalSizes)?Math.max(0,e-t):0}_getScrollLineHeight(){const t=document.createElement("div");t.style.fontSize="initial",t.style.display="none",document.body.appendChild(t);const e=window.getComputedStyle(t).fontSize;return document.body.removeChild(t),e?window.parseInt(e):void 0}__getVisibleElements(){return Array.from(this.elementsContainer.children).filter(t=>!t.hidden)}__reorderElements(){if(this.__mouseDown){this.__pendingReorder=!0;return}this.__pendingReorder=!1;const t=this._virtualStart+(this._vidxOffset||0),e=this.__getVisibleElements(),i=this.__getFocusedElement(e)||e[0];if(!i)return;const o=i.__virtualIndex-t,r=e.indexOf(i)-o;if(r>0)for(let n=0;n<r;n++)this.elementsContainer.appendChild(e[n]);else if(r<0)for(let n=e.length+r;n<e.length;n++)this.elementsContainer.insertBefore(e[n],e[0]);if(ld){const{transform:n}=this.scrollTarget.style;this.scrollTarget.style.transform="translateZ(0)",setTimeout(()=>{this.scrollTarget.style.transform=n;});}}_adjustVirtualIndexOffset(t){const e=this._maxVirtualIndexOffset;if(this._virtualCount>=this.size)this._vidxOffset=0;else if(this.__skipNextVirtualIndexAdjust)this.__skipNextVirtualIndexAdjust=!1;else if(Math.abs(t)>1e4){const i=this._scrollTop/(this.scrollTarget.scrollHeight-this.scrollTarget.clientHeight);this._vidxOffset=Math.round(i*e);}else {const i=this._vidxOffset,o=Qt,r=100;this._scrollTop===0?(this._vidxOffset=0,i!==this._vidxOffset&&super.scrollToIndex(0)):this.firstVisibleIndex<o&&this._vidxOffset>0&&(this._vidxOffset-=Math.min(this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex+(i-this._vidxOffset))),this._scrollTop>=this._maxScrollTop&&this._maxScrollTop>0?(this._vidxOffset=e,i!==this._vidxOffset&&super.scrollToIndex(this._virtualCount-1)):this.firstVisibleIndex>this._virtualCount-o&&this._vidxOffset<e&&(this._vidxOffset+=Math.min(e-this._vidxOffset,r),super.scrollToIndex(this.firstVisibleIndex-(this._vidxOffset-i)));}}}Object.setPrototypeOf(zr.prototype,yc);class wc{constructor(t){this.__adapter=new zr(t);}get firstVisibleIndex(){return this.__adapter.adjustedFirstVisibleIndex}get lastVisibleIndex(){return this.__adapter.adjustedLastVisibleIndex}get size(){return this.__adapter.size}set size(t){this.__adapter.size=t;}scrollToIndex(t){this.__adapter.scrollToIndex(t);}update(t=0,e=this.size-1){this.__adapter.update(t,e);}flush(){this.__adapter.flush();}}/**
10554
10554
  * @license
10555
10555
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10556
10556
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10558,7 +10558,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10558
10558
  * @license
10559
10559
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10560
10560
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10561
- */const Mr=s=>class extends s{static get properties(){return {items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this);}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(i=>parseInt(i,10)).reduce((i,o)=>i+o);}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${Ye()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling();}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update());}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const i=this._visibleItemsCount();let o=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),o=e-i+1):e>this.__virtualizer.firstVisibleIndex&&(o=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,o));const r=[...this.children].find(d=>!d.hidden&&d.index===this.__virtualizer.lastVisibleIndex);if(!r||e!==r.index)return;const n=r.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l);}_isItemSelected(e,i,o){return e instanceof G$1?!1:o&&e!==void 0&&i!==void 0?bt$1(o,e)===bt$1(o,i):e===i}__initVirtualizer(){this.__virtualizer=new wc({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0});}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate();}__loadingChanged(){this.requestContentUpdate();}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate());}__selectedItemChanged(){this.requestContentUpdate();}__itemClassNameGeneratorChanged(e,i){(e||i)&&this.requestContentUpdate();}__focusedIndexChanged(e,i){e!==i&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e);}__rendererChanged(e,i){(e||i)&&this.requestContentUpdate();}__createElements(e){return [...Array(e)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(e,i){const o=this.items[i],r=this.focusedIndex,n=this._isItemSelected(o,this.selectedItem,this.itemIdPath);e.setProperties({item:o,index:i,label:this.getItemLabel(o),selected:n,renderer:this.renderer,focused:!this.loading&&r===i}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(o):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${i}`,e.setAttribute("role",i!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",i+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),o instanceof G$1&&this.__requestItemByIndex(i);}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}));}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const i=this.scrollTop===0,o=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&e.deltaY<0||o&&e.deltaY>0)&&e.preventDefault();});}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}));});}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
10561
+ */const Mr=s=>class extends s{static get properties(){return {items:{type:Array,sync:!0,observer:"__itemsChanged"},focusedIndex:{type:Number,sync:!0,observer:"__focusedIndexChanged"},loading:{type:Boolean,sync:!0,observer:"__loadingChanged"},opened:{type:Boolean,sync:!0,observer:"__openedChanged"},selectedItem:{type:Object,sync:!0,observer:"__selectedItemChanged"},itemClassNameGenerator:{type:Object,observer:"__itemClassNameGeneratorChanged"},itemIdPath:{type:String},owner:{type:Object},getItemLabel:{type:Object},renderer:{type:Object,sync:!0,observer:"__rendererChanged"},theme:{type:String}}}constructor(){super(),this.__boundOnItemClick=this.__onItemClick.bind(this);}get _viewportTotalPaddingBottom(){if(this._cachedViewportTotalPaddingBottom===void 0){const e=window.getComputedStyle(this.$.selector);this._cachedViewportTotalPaddingBottom=[e.paddingBottom,e.borderBottomWidth].map(i=>parseInt(i,10)).reduce((i,o)=>i+o);}return this._cachedViewportTotalPaddingBottom}ready(){super.ready(),this.setAttribute("role","listbox"),this.id=`${this.localName}-${qe()}`,this.__hostTagName=this.constructor.is.replace("-scroller",""),this.addEventListener("click",e=>e.stopPropagation()),this.__patchWheelOverScrolling();}requestContentUpdate(){this.__virtualizer&&(this.items&&(this.__virtualizer.size=this.items.length),this.opened&&this.__virtualizer.update());}scrollIntoView(e){if(!this.__virtualizer||!(this.opened&&e>=0))return;const i=this._visibleItemsCount();let o=e;e>this.__virtualizer.lastVisibleIndex-1?(this.__virtualizer.scrollToIndex(e),o=e-i+1):e>this.__virtualizer.firstVisibleIndex&&(o=this.__virtualizer.firstVisibleIndex),this.__virtualizer.scrollToIndex(Math.max(0,o));const r=[...this.children].find(d=>!d.hidden&&d.index===this.__virtualizer.lastVisibleIndex);if(!r||e!==r.index)return;const n=r.getBoundingClientRect(),a=this.getBoundingClientRect(),l=n.bottom-a.bottom+this._viewportTotalPaddingBottom;l>0&&(this.scrollTop+=l);}_isItemSelected(e,i,o){return e instanceof G$1?!1:o&&e!==void 0&&i!==void 0?gt$1(o,e)===gt$1(o,i):e===i}__initVirtualizer(){this.__virtualizer=new wc({createElements:this.__createElements.bind(this),updateElement:this._updateElement.bind(this),elementsContainer:this,scrollTarget:this,scrollContainer:this.$.selector,reorderElements:!0});}__itemsChanged(e){e&&this.__virtualizer&&this.requestContentUpdate();}__loadingChanged(){this.requestContentUpdate();}__openedChanged(e){e&&(this.__virtualizer||this.__initVirtualizer(),this.requestContentUpdate());}__selectedItemChanged(){this.requestContentUpdate();}__itemClassNameGeneratorChanged(e,i){(e||i)&&this.requestContentUpdate();}__focusedIndexChanged(e,i){e!==i&&this.requestContentUpdate(),e>=0&&!this.loading&&this.scrollIntoView(e);}__rendererChanged(e,i){(e||i)&&this.requestContentUpdate();}__createElements(e){return [...Array(e)].map(()=>{const i=document.createElement(`${this.__hostTagName}-item`);return i.addEventListener("click",this.__boundOnItemClick),i.tabIndex="-1",i.style.width="100%",i})}_updateElement(e,i){const o=this.items[i],r=this.focusedIndex,n=this._isItemSelected(o,this.selectedItem,this.itemIdPath);e.setProperties({item:o,index:i,label:this.getItemLabel(o),selected:n,renderer:this.renderer,focused:!this.loading&&r===i}),typeof this.itemClassNameGenerator=="function"?e.className=this.itemClassNameGenerator(o):e.className!==""&&(e.className=""),e.performUpdate&&!e.hasUpdated&&e.performUpdate(),e.id=`${this.__hostTagName}-item-${i}`,e.setAttribute("role",i!==void 0?"option":!1),e.setAttribute("aria-selected",n.toString()),e.setAttribute("aria-posinset",i+1),e.setAttribute("aria-setsize",this.items.length),this.theme?e.setAttribute("theme",this.theme):e.removeAttribute("theme"),o instanceof G$1&&this.__requestItemByIndex(i);}__onItemClick(e){this.dispatchEvent(new CustomEvent("selection-changed",{detail:{item:e.currentTarget.item}}));}__patchWheelOverScrolling(){this.$.selector.addEventListener("wheel",e=>{const i=this.scrollTop===0,o=this.scrollHeight-this.scrollTop-this.clientHeight<=1;(i&&e.deltaY<0||o&&e.deltaY>0)&&e.preventDefault();});}__requestItemByIndex(e){requestAnimationFrame(()=>{this.dispatchEvent(new CustomEvent("index-requested",{detail:{index:e}}));});}_visibleItemsCount(){return this.__virtualizer.scrollToIndex(this.__virtualizer.firstVisibleIndex),this.__virtualizer.size>0?this.__virtualizer.lastVisibleIndex-this.__virtualizer.firstVisibleIndex+1:0}};/**
10562
10562
  * @license
10563
10563
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10564
10564
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10597,15 +10597,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10597
10597
  * @license
10598
10598
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10599
10599
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10600
- */function yt$1(s,t,e=0){let i=t;for(const o of s.subCaches){const r=o.parentCacheIndex;if(i<=r)break;if(i<=r+o.flatSize)return yt$1(o,i-r-1,e+1);i-=o.flatSize;}return {cache:s,item:s.items[i],index:i,page:Math.floor(i/s.pageSize),level:e}}function Nr({getItemId:s},t,e,i=0,o=0){for(let r=0;r<t.items.length;r++){const n=t.items[r];if(n&&s(n)===s(e))return {cache:t,level:i,item:n,index:r,page:Math.floor(r/t.pageSize),subCache:t.getSubCache(r),flatIndex:o+t.getFlatIndex(r)}}for(const r of t.subCaches){const n=o+t.getFlatIndex(r.parentCacheIndex),a=Nr({getItemId:s},r,e,i+1,n+1);if(a)return a}}function Lr(s,[t,...e],i=0){t===1/0&&(t=s.size-1);const o=s.getFlatIndex(t),r=s.getSubCache(t);return r&&r.flatSize>0&&e.length?Lr(r,e,i+o+1):i+o}/**
10600
+ */function bt$1(s,t,e=0){let i=t;for(const o of s.subCaches){const r=o.parentCacheIndex;if(i<=r)break;if(i<=r+o.flatSize)return bt$1(o,i-r-1,e+1);i-=o.flatSize;}return {cache:s,item:s.items[i],index:i,page:Math.floor(i/s.pageSize),level:e}}function Nr({getItemId:s},t,e,i=0,o=0){for(let r=0;r<t.items.length;r++){const n=t.items[r];if(n&&s(n)===s(e))return {cache:t,level:i,item:n,index:r,page:Math.floor(r/t.pageSize),subCache:t.getSubCache(r),flatIndex:o+t.getFlatIndex(r)}}for(const r of t.subCaches){const n=o+t.getFlatIndex(r.parentCacheIndex),a=Nr({getItemId:s},r,e,i+1,n+1);if(a)return a}}function Lr(s,[t,...e],i=0){t===1/0&&(t=s.size-1);const o=s.getFlatIndex(t),r=s.getSubCache(t);return r&&r.flatSize>0&&e.length?Lr(r,e,i+o+1):i+o}/**
10601
10601
  * @license
10602
10602
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10603
10603
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10604
- */class ao{constructor(t,e,i,o,r){k$1(this,"context");k$1(this,"pageSize");k$1(this,"items",[]);k$1(this,"pendingRequests",{});k$1(this,"__subCacheByIndex",{});k$1(this,"__size",0);k$1(this,"__flatSize",0);this.context=t,this.pageSize=e,this.size=i,this.parentCache=o,this.parentCacheIndex=r,this.__flatSize=i||0;}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(t=>t.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(t){var i;if(this.__size!==t){if(this.__size=t,this.context.placeholder!==void 0){this.items.length=t||0;for(let o=0;o<t;o++)(i=this.items)[o]||(i[o]=this.context.placeholder);}Object.keys(this.pendingRequests).forEach(o=>{parseInt(o)*this.pageSize>=this.size&&delete this.pendingRequests[o];});}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((t,e)=>(e.recalculateFlatSize(),t+e.flatSize),0):0;}setPage(t,e){const i=t*this.pageSize;e.forEach((o,r)=>{const n=i+r;(this.size===void 0||n<this.size)&&(this.items[n]=o);});}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t];}removeSubCaches(){this.__subCacheByIndex={};}createSubCache(t){const e=new ao(this.context,this.pageSize,0,this,t);return this.__subCacheByIndex[t]=e,e}getFlatIndex(t){const e=Math.max(0,Math.min(this.size-1,t));return this.subCaches.reduce((i,o)=>{const r=o.parentCacheIndex;return e>r?i+o.flatSize:i},e)}getItemForIndex(t){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:e}=yt$1(this,t);return e}getCacheAndIndex(t){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:e,index:i}=yt$1(this,t);return {cache:e,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize();}ensureSubCacheForScaledIndex(t){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(t)){const e=this.createSubCache(t);this.context.__controller.__loadCachePage(e,0);}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
10604
+ */class ao{constructor(t,e,i,o,r){k$1(this,"context");k$1(this,"pageSize");k$1(this,"items",[]);k$1(this,"pendingRequests",{});k$1(this,"__subCacheByIndex",{});k$1(this,"__size",0);k$1(this,"__flatSize",0);this.context=t,this.pageSize=e,this.size=i,this.parentCache=o,this.parentCacheIndex=r,this.__flatSize=i||0;}get parentItem(){return this.parentCache&&this.parentCache.items[this.parentCacheIndex]}get subCaches(){return Object.values(this.__subCacheByIndex)}get isLoading(){return Object.keys(this.pendingRequests).length>0?!0:this.subCaches.some(t=>t.isLoading)}get flatSize(){return this.__flatSize}get effectiveSize(){return console.warn("<vaadin-grid> The `effectiveSize` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.flatSize}get size(){return this.__size}set size(t){var i;if(this.__size!==t){if(this.__size=t,this.context.placeholder!==void 0){this.items.length=t||0;for(let o=0;o<t;o++)(i=this.items)[o]||(i[o]=this.context.placeholder);}Object.keys(this.pendingRequests).forEach(o=>{parseInt(o)*this.pageSize>=this.size&&delete this.pendingRequests[o];});}}recalculateFlatSize(){this.__flatSize=!this.parentItem||this.context.isExpanded(this.parentItem)?this.size+this.subCaches.reduce((t,e)=>(e.recalculateFlatSize(),t+e.flatSize),0):0;}setPage(t,e){const i=t*this.pageSize;e.forEach((o,r)=>{const n=i+r;(this.size===void 0||n<this.size)&&(this.items[n]=o);});}getSubCache(t){return this.__subCacheByIndex[t]}removeSubCache(t){delete this.__subCacheByIndex[t];}removeSubCaches(){this.__subCacheByIndex={};}createSubCache(t){const e=new ao(this.context,this.pageSize,0,this,t);return this.__subCacheByIndex[t]=e,e}getFlatIndex(t){const e=Math.max(0,Math.min(this.size-1,t));return this.subCaches.reduce((i,o)=>{const r=o.parentCacheIndex;return e>r?i+o.flatSize:i},e)}getItemForIndex(t){console.warn("<vaadin-grid> The `getItemForIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{item:e}=bt$1(this,t);return e}getCacheAndIndex(t){console.warn("<vaadin-grid> The `getCacheAndIndex` method of ItemCache is deprecated and will be removed in Vaadin 25.");const{cache:e,index:i}=bt$1(this,t);return {cache:e,scaledIndex:i}}updateSize(){console.warn("<vaadin-grid> The `updateSize` method of ItemCache is deprecated and will be removed in Vaadin 25."),this.recalculateFlatSize();}ensureSubCacheForScaledIndex(t){if(console.warn("<vaadin-grid> The `ensureSubCacheForScaledIndex` method of ItemCache is deprecated and will be removed in Vaadin 25."),!this.getSubCache(t)){const e=this.createSubCache(t);this.context.__controller.__loadCachePage(e,0);}}get grid(){return console.warn("<vaadin-grid> The `grid` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.context.__controller.host}get itemCaches(){return console.warn("<vaadin-grid> The `itemCaches` property of ItemCache is deprecated and will be removed in Vaadin 25."),this.__subCacheByIndex}}/**
10605
10605
  * @license
10606
10606
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10607
10607
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10608
- */class Ac extends EventTarget{constructor(e,{size:i,pageSize:o,isExpanded:r,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:d,dataProviderParams:c}){super();k$1(this,"host");k$1(this,"dataProvider");k$1(this,"dataProviderParams");k$1(this,"pageSize");k$1(this,"isExpanded");k$1(this,"getItemId");k$1(this,"rootCache");k$1(this,"placeholder");k$1(this,"isPlaceholder");this.host=e,this.pageSize=o,this.getItemId=n,this.isExpanded=r,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=d,this.dataProviderParams=c,this.rootCache=this.__createRootCache(i);}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return {isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache();}setDataProvider(e){this.dataProvider=e,this.clearCache();}recalculateFlatSize(){this.rootCache.recalculateFlatSize();}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size);}getFlatIndexContext(e){return yt$1(this.rootCache,e)}getItemContext(e){return Nr({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Lr(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:i,page:o,item:r}=this.getFlatIndexContext(e);this.__isItemLoaded(r)||this.__loadCachePage(i,o);}ensureFlatIndexHierarchy(e){const{cache:i,item:o,index:r}=this.getFlatIndexContext(e);if(this.__isItemLoaded(o)&&this.isExpanded(o)&&!i.getSubCache(r)){const n=i.createSubCache(r);this.__loadCachePage(n,0);}}loadFirstPage(){this.__loadCachePage(this.rootCache,0);}__createRootCache(e){return new ao(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,i){if(!this.dataProvider||e.pendingRequests[i])return;let o={page:i,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(o=we(we({},o),this.dataProviderParams()));const r=(n,a)=>{e.pendingRequests[i]===r&&(a!==void 0?e.size=a:o.parentItem&&(e.size=n.length),e.setPage(i,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[i],this.dispatchEvent(new CustomEvent("page-loaded")));};e.pendingRequests[i]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(o,r);}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
10608
+ */class Ac extends EventTarget{constructor(e,{size:i,pageSize:o,isExpanded:r,getItemId:n,isPlaceholder:a,placeholder:l,dataProvider:d,dataProviderParams:c}){super();k$1(this,"host");k$1(this,"dataProvider");k$1(this,"dataProviderParams");k$1(this,"pageSize");k$1(this,"isExpanded");k$1(this,"getItemId");k$1(this,"rootCache");k$1(this,"placeholder");k$1(this,"isPlaceholder");this.host=e,this.pageSize=o,this.getItemId=n,this.isExpanded=r,this.placeholder=l,this.isPlaceholder=a,this.dataProvider=d,this.dataProviderParams=c,this.rootCache=this.__createRootCache(i);}get flatSize(){return this.rootCache.flatSize}get __cacheContext(){return {isExpanded:this.isExpanded,placeholder:this.placeholder,__controller:this}}isLoading(){return this.rootCache.isLoading}setPageSize(e){this.pageSize=e,this.clearCache();}setDataProvider(e){this.dataProvider=e,this.clearCache();}recalculateFlatSize(){this.rootCache.recalculateFlatSize();}clearCache(){this.rootCache=this.__createRootCache(this.rootCache.size);}getFlatIndexContext(e){return bt$1(this.rootCache,e)}getItemContext(e){return Nr({getItemId:this.getItemId},this.rootCache,e)}getFlatIndexByPath(e){return Lr(this.rootCache,e)}ensureFlatIndexLoaded(e){const{cache:i,page:o,item:r}=this.getFlatIndexContext(e);this.__isItemLoaded(r)||this.__loadCachePage(i,o);}ensureFlatIndexHierarchy(e){const{cache:i,item:o,index:r}=this.getFlatIndexContext(e);if(this.__isItemLoaded(o)&&this.isExpanded(o)&&!i.getSubCache(r)){const n=i.createSubCache(r);this.__loadCachePage(n,0);}}loadFirstPage(){this.__loadCachePage(this.rootCache,0);}__createRootCache(e){return new ao(this.__cacheContext,this.pageSize,e)}__loadCachePage(e,i){if(!this.dataProvider||e.pendingRequests[i])return;let o={page:i,pageSize:this.pageSize,parentItem:e.parentItem};this.dataProviderParams&&(o=xe(xe({},o),this.dataProviderParams()));const r=(n,a)=>{e.pendingRequests[i]===r&&(a!==void 0?e.size=a:o.parentItem&&(e.size=n.length),e.setPage(i,n),this.recalculateFlatSize(),this.dispatchEvent(new CustomEvent("page-received")),delete e.pendingRequests[i],this.dispatchEvent(new CustomEvent("page-loaded")));};e.pendingRequests[i]=r,this.dispatchEvent(new CustomEvent("page-requested")),this.dataProvider(o,r);}__isItemLoaded(e){return this.isPlaceholder?!this.isPlaceholder(e):this.placeholder?e!==this.placeholder:!!e}}/**
10609
10609
  * @license
10610
10610
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10611
10611
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10613,15 +10613,15 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10613
10613
  * @license
10614
10614
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10615
10615
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10616
- */function zt(s){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(s);return}s.querySelector("template")&&console.warn(`WARNING: <template> inside <${s.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`);}/**
10616
+ */function Ot$1(s){if(window.Vaadin&&window.Vaadin.templateRendererCallback){window.Vaadin.templateRendererCallback(s);return}s.querySelector("template")&&console.warn(`WARNING: <template> inside <${s.localName}> is no longer supported. Import @vaadin/polymer-legacy-adapter/template-renderer.js to enable compatibility.`);}/**
10617
10617
  * @license
10618
10618
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10619
10619
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10620
- */function Qo(s){return s!=null}function Zo(s,t){return s.findIndex(e=>e instanceof G$1?!1:t(e))}const Fr=s=>class extends Ze(F$1(Yi(ne(re(Ke(be(s))))))){static get properties(){return {opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return ["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this);}get _tagNamePrefix(){return "vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown));}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront();});};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),zt(this),this.addController(new Ar(this));}disconnectedCallback(){super.disconnectedCallback(),this.close();}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate();}));}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.opened=!1;}_propertiesChanged(e,i,o){super._propertiesChanged(e,i,o),i.filter!==void 0&&this._filterChanged(i.filter);}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter);}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value;}),this._overlayElement=e;}_initScroller(e){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=e||this,i.getItemLabel=this._getItemLabel.bind(this),i.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const o=this._overlayElement;o.renderer=r=>{r.innerHTML||r.appendChild(i);},o.requestContentUpdate(),this._scroller=i;}_updateScroller(e,i,o,r,n,a,l,d,c,h){if(e&&(o&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:o?i:[],opened:o,loading:r,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:d,theme:c,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate();}catch(u){}}_openedOrItemsChanged(e,i,o,r){this._overlayOpened=e&&(r||o||!!(i&&i.length));}_overlayOpenedChanged(e,i){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})));}_focusedIndexChanged(e,i){i!==void 0&&this._updateActiveDescendant(e);}_isInputFocused(){return this.inputElement&&Ui(this.inputElement)}_updateActiveDescendant(e){const i=this._nativeInput;if(!i)return;const o=this._getItemElements().find(r=>r.index===e);o?i.setAttribute("aria-activedescendant",o.id):i.removeAttribute("aria-activedescendant");}_openedChanged(e,i){if(i===void 0)return;e?!this._isInputFocused()&&!gi&&this.inputElement&&this.inputElement.focus():this._onClosed();const o=this._nativeInput;o&&(o.setAttribute("aria-expanded",!!e),e?o.setAttribute("aria-controls",this._scroller.id):o.removeAttribute("aria-controls"));}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1;}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus();}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate();}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open();}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open());}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e);}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault());}_getItemLabel(e){let i=e&&this.itemLabelPath?bt$1(this.itemLabelPath,e):void 0;return i==null&&(i=e?e.toString():""),i}_getItemValue(e){let i=e&&this.itemValuePath?bt$1(this.itemValuePath,e):void 0;return i===void 0&&(i=e?e.toString():""),i}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel());}else this.open();}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else {const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1);}this._prefillFocusedItemLabel();}else this.open();}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange();}}_setSelectionRange(e,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,i);}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length);}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e);}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close();}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit();}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("click",()=>{gi&&!this._isInputFocused()&&document.activeElement.blur();}));}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange();}_clearFilter(){this.filter="";}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit();}_onOpened(){this._lastCommittedValue=this.value;}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue();}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1;}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else {const e=[this.selectedItem,...this._dropdownItems||[]],i=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!i){const o=this._inputElementValue;this._lastCustomValue=o;const r=new CustomEvent("custom-value-set",{detail:o,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(r),r.defaultPrevented||(this.value=o);}else !this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._revertInputValueToValue();}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter();}_onInput(e){const i=this._inputElementValue,o={};this.filter===i?this._filterChanged(this.filter):o.filter=i,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(o.opened=!0),this.setProperties(o);}_onChange(e){e.stopPropagation();}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string");}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems);}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange();}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem);}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else {const i=this._getItemValue(e);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e);}}_valueChanged(e,i){e===""&&i===void 0||(Qo(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0);}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value);}_itemsChanged(e,i){this._ensureItemsOrDataProvider(()=>{this.items=i;}),e?this.filteredItems=e.slice(0):i&&(this.filteredItems=null);}_filteredItemsChanged(e){this._setDropdownItems(e);}_filterItems(e,i){return e&&e.filter(r=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(e){const i=this.__getItemIndexByValue(this.filteredItems,e),o=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&o===null&&this._selectedItemChanged(this.selectedItem);}_setDropdownItems(e){const i=this._dropdownItems;this._dropdownItems=e;const o=i?i[this._focusedIndex]:null,r=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&r>=0&&(this.selectedItem=e[r]);const n=this.__getItemIndexByValue(e,this._getItemValue(o));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter);}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e);}__getItemIndexByValue(e,i){return !e||!Qo(i)?-1:Zo(e,o=>this._getItemValue(o)===i)}__getItemIndexByLabel(e,i){return !e||!i?-1:Zo(e,o=>this._getItemLabel(o).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof G$1)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close());}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(At$1()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue();}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction());}};/**
10620
+ */function Qo(s){return s!=null}function Zo(s,t){return s.findIndex(e=>e instanceof G$1?!1:t(e))}const Fr=s=>class extends Qe(F$1(Yi(re(se(Ye(ge(s))))))){static get properties(){return {opened:{type:Boolean,notify:!0,value:!1,reflectToAttribute:!0,sync:!0,observer:"_openedChanged"},autoOpenDisabled:{type:Boolean,sync:!0},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},renderer:{type:Object,sync:!0},items:{type:Array,sync:!0,observer:"_itemsChanged"},allowCustomValue:{type:Boolean,value:!1},filteredItems:{type:Array,observer:"_filteredItemsChanged",sync:!0},_lastCommittedValue:String,loading:{type:Boolean,value:!1,reflectToAttribute:!0,sync:!0},_focusedIndex:{type:Number,observer:"_focusedIndexChanged",value:-1,sync:!0},filter:{type:String,value:"",notify:!0,sync:!0},selectedItem:{type:Object,notify:!0,sync:!0},itemClassNameGenerator:{type:Object},itemLabelPath:{type:String,value:"label",observer:"_itemLabelPathChanged",sync:!0},itemValuePath:{type:String,value:"value",sync:!0},itemIdPath:{type:String,sync:!0},_toggleElement:{type:Object,observer:"_toggleElementChanged"},_dropdownItems:{type:Array,sync:!0},_closeOnBlurIsPrevented:Boolean,_scroller:{type:Object,sync:!0},_overlayOpened:{type:Boolean,sync:!0,observer:"_overlayOpenedChanged"},__keepOverlayOpened:{type:Boolean,sync:!0}}}static get observers(){return ["_selectedItemChanged(selectedItem, itemValuePath, itemLabelPath)","_openedOrItemsChanged(opened, _dropdownItems, loading, __keepOverlayOpened)","_updateScroller(_scroller, _dropdownItems, opened, loading, selectedItem, itemIdPath, _focusedIndex, renderer, _theme, itemClassNameGenerator)"]}constructor(){super(),this._boundOverlaySelectedItemChanged=this._overlaySelectedItemChanged.bind(this),this._boundOnClearButtonMouseDown=this.__onClearButtonMouseDown.bind(this),this._boundOnClick=this._onClick.bind(this),this._boundOnOverlayTouchAction=this._onOverlayTouchAction.bind(this),this._boundOnTouchend=this._onTouchend.bind(this);}get _tagNamePrefix(){return "vaadin-combo-box"}get _nativeInput(){return this.inputElement}_inputElementChanged(e){super._inputElementChanged(e);const i=this._nativeInput;i&&(i.autocomplete="off",i.autocapitalize="off",i.setAttribute("role","combobox"),i.setAttribute("aria-autocomplete","list"),i.setAttribute("aria-expanded",!!this.opened),i.setAttribute("spellcheck","false"),i.setAttribute("autocorrect","off"),this._revertInputValueToValue(),this.clearElement&&this.clearElement.addEventListener("mousedown",this._boundOnClearButtonMouseDown));}ready(){super.ready(),this._initOverlay(),this._initScroller(),this._lastCommittedValue=this.value,this.addEventListener("click",this._boundOnClick),this.addEventListener("touchend",this._boundOnTouchend);const e=()=>{requestAnimationFrame(()=>{this._overlayElement.bringToFront();});};this.addEventListener("mousedown",e),this.addEventListener("touchstart",e),Ot$1(this),this.addController(new Ar(this));}disconnectedCallback(){super.disconnectedCallback(),this.close();}requestContentUpdate(){this._scroller&&(this._scroller.requestContentUpdate(),this._getItemElements().forEach(e=>{e.requestContentUpdate();}));}open(){!this.disabled&&!this.readonly&&(this.opened=!0);}close(){this.opened=!1;}_propertiesChanged(e,i,o){super._propertiesChanged(e,i,o),i.filter!==void 0&&this._filterChanged(i.filter);}updated(e){super.updated(e),e.has("filter")&&this._filterChanged(this.filter);}_initOverlay(){const e=this.$.overlay;e._comboBox=this,e.addEventListener("touchend",this._boundOnOverlayTouchAction),e.addEventListener("touchmove",this._boundOnOverlayTouchAction),e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("opened-changed",i=>{this._overlayOpened=i.detail.value;}),this._overlayElement=e;}_initScroller(e){const i=document.createElement(`${this._tagNamePrefix}-scroller`);i.owner=e||this,i.getItemLabel=this._getItemLabel.bind(this),i.addEventListener("selection-changed",this._boundOverlaySelectedItemChanged);const o=this._overlayElement;o.renderer=r=>{r.innerHTML||r.appendChild(i);},o.requestContentUpdate(),this._scroller=i;}_updateScroller(e,i,o,r,n,a,l,d,c,h){if(e&&(o&&(e.style.maxHeight=getComputedStyle(this).getPropertyValue(`--${this._tagNamePrefix}-overlay-max-height`)||"65vh"),e.setProperties({items:o?i:[],opened:o,loading:r,selectedItem:n,itemIdPath:a,focusedIndex:l,renderer:d,theme:c,itemClassNameGenerator:h}),e.performUpdate&&!e.hasUpdated))try{e.performUpdate();}catch(u){}}_openedOrItemsChanged(e,i,o,r){this._overlayOpened=e&&(r||o||!!(i&&i.length));}_overlayOpenedChanged(e,i){e?(this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-opened",{bubbles:!0,composed:!0})),this._onOpened()):i&&this._dropdownItems&&this._dropdownItems.length&&(this.close(),this.dispatchEvent(new CustomEvent("vaadin-combo-box-dropdown-closed",{bubbles:!0,composed:!0})));}_focusedIndexChanged(e,i){i!==void 0&&this._updateActiveDescendant(e);}_isInputFocused(){return this.inputElement&&Ui(this.inputElement)}_updateActiveDescendant(e){const i=this._nativeInput;if(!i)return;const o=this._getItemElements().find(r=>r.index===e);o?i.setAttribute("aria-activedescendant",o.id):i.removeAttribute("aria-activedescendant");}_openedChanged(e,i){if(i===void 0)return;e?!this._isInputFocused()&&!vi&&this.inputElement&&this.inputElement.focus():this._onClosed();const o=this._nativeInput;o&&(o.setAttribute("aria-expanded",!!e),e?o.setAttribute("aria-controls",this._scroller.id):o.removeAttribute("aria-controls"));}_onOverlayTouchAction(){this._closeOnBlurIsPrevented=!0,this.inputElement.blur(),this._closeOnBlurIsPrevented=!1;}_isClearButton(e){return e.composedPath()[0]===this.clearElement}__onClearButtonMouseDown(e){e.preventDefault(),this.inputElement.focus();}_onClearButtonClick(e){e.preventDefault(),this._onClearAction(),this.opened&&this.requestContentUpdate();}_onToggleButtonClick(e){e.preventDefault(),this.opened?this.close():this.open();}_onHostClick(e){this.autoOpenDisabled||(e.preventDefault(),this.open());}_onClick(e){this._isClearButton(e)?this._onClearButtonClick(e):e.composedPath().includes(this._toggleElement)?this._onToggleButtonClick(e):this._onHostClick(e);}_onKeyDown(e){super._onKeyDown(e),e.key==="ArrowDown"?(this._onArrowDown(),e.preventDefault()):e.key==="ArrowUp"&&(this._onArrowUp(),e.preventDefault());}_getItemLabel(e){let i=e&&this.itemLabelPath?gt$1(this.itemLabelPath,e):void 0;return i==null&&(i=e?e.toString():""),i}_getItemValue(e){let i=e&&this.itemValuePath?gt$1(this.itemValuePath,e):void 0;return i===void 0&&(i=e?e.toString():""),i}_onArrowDown(){if(this.opened){const e=this._dropdownItems;e&&(this._focusedIndex=Math.min(e.length-1,this._focusedIndex+1),this._prefillFocusedItemLabel());}else this.open();}_onArrowUp(){if(this.opened){if(this._focusedIndex>-1)this._focusedIndex=Math.max(0,this._focusedIndex-1);else {const e=this._dropdownItems;e&&(this._focusedIndex=e.length-1);}this._prefillFocusedItemLabel();}else this.open();}_prefillFocusedItemLabel(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this._inputElementValue=this._getItemLabel(e),this._markAllSelectionRange();}}_setSelectionRange(e,i){this._isInputFocused()&&this.inputElement.setSelectionRange&&this.inputElement.setSelectionRange(e,i);}_markAllSelectionRange(){this._inputElementValue!==void 0&&this._setSelectionRange(0,this._inputElementValue.length);}_clearSelectionRange(){if(this._inputElementValue!==void 0){const e=this._inputElementValue?this._inputElementValue.length:0;this._setSelectionRange(e,e);}}_closeOrCommit(){!this.opened&&!this.loading?this._commitValue():this.close();}_onEnter(e){if(!this._hasValidInputValue()){e.preventDefault(),e.stopPropagation();return}this.opened&&(e.preventDefault(),e.stopPropagation()),this._closeOrCommit();}_hasValidInputValue(){const e=this._focusedIndex<0&&this._inputElementValue!==""&&this._getItemLabel(this.selectedItem)!==this._inputElementValue;return this.allowCustomValue||!e}_onEscape(e){this.autoOpenDisabled&&(this.opened||this.value!==this._inputElementValue&&this._inputElementValue.length>0)?(e.stopPropagation(),this._focusedIndex=-1,this.cancel()):this.opened?(e.stopPropagation(),this._focusedIndex>-1?(this._focusedIndex=-1,this._revertInputValue()):this.cancel()):this.clearButtonVisible&&this.value&&!this.readonly&&(e.stopPropagation(),this._onClearAction());}_toggleElementChanged(e){e&&(e.addEventListener("mousedown",i=>i.preventDefault()),e.addEventListener("click",()=>{vi&&!this._isInputFocused()&&document.activeElement.blur();}));}_onClearAction(){this.selectedItem=null,this.allowCustomValue&&(this.value=""),this._detectAndDispatchChange();}_clearFilter(){this.filter="";}cancel(){this._revertInputValueToValue(),this._lastCommittedValue=this.value,this._closeOrCommit();}_onOpened(){this._lastCommittedValue=this.value;}_onClosed(){(!this.loading||this.allowCustomValue)&&this._commitValue();}_commitValue(){if(this._focusedIndex>-1){const e=this._dropdownItems[this._focusedIndex];this.selectedItem!==e&&(this.selectedItem=e),this._inputElementValue=this._getItemLabel(this.selectedItem),this._focusedIndex=-1;}else if(this._inputElementValue===""||this._inputElementValue===void 0)this.selectedItem=null,this.allowCustomValue&&(this.value="");else {const e=[this.selectedItem,...this._dropdownItems||[]],i=e[this.__getItemIndexByLabel(e,this._inputElementValue)];if(this.allowCustomValue&&!i){const o=this._inputElementValue;this._lastCustomValue=o;const r=new CustomEvent("custom-value-set",{detail:o,composed:!0,cancelable:!0,bubbles:!0});this.dispatchEvent(r),r.defaultPrevented||(this.value=o);}else !this.allowCustomValue&&!this.opened&&i?this.value=this._getItemValue(i):this._revertInputValueToValue();}this._detectAndDispatchChange(),this._clearSelectionRange(),this._clearFilter();}_onInput(e){const i=this._inputElementValue,o={};this.filter===i?this._filterChanged(this.filter):o.filter=i,!this.opened&&!this._isClearButton(e)&&!this.autoOpenDisabled&&(o.opened=!0),this.setProperties(o);}_onChange(e){e.stopPropagation();}_itemLabelPathChanged(e){typeof e!="string"&&console.error("You should set itemLabelPath to a valid string");}_filterChanged(e){this._scrollIntoView(0),this._focusedIndex=-1,this.items?this.filteredItems=this._filterItems(this.items,e):this._filteredItemsChanged(this.filteredItems);}_revertInputValue(){this.filter!==""?this._inputElementValue=this.filter:this._revertInputValueToValue(),this._clearSelectionRange();}_revertInputValueToValue(){this.allowCustomValue&&!this.selectedItem?this._inputElementValue=this.value:this._inputElementValue=this._getItemLabel(this.selectedItem);}_selectedItemChanged(e){if(e==null)this.filteredItems&&(this.allowCustomValue||(this.value=""),this._toggleHasValue(this._hasValue),this._inputElementValue=this.value);else {const i=this._getItemValue(e);if(this.value!==i&&(this.value=i,this.value!==i))return;this._toggleHasValue(!0),this._inputElementValue=this._getItemLabel(e);}}_valueChanged(e,i){e===""&&i===void 0||(Qo(e)?(this._getItemValue(this.selectedItem)!==e&&this._selectItemForValue(e),!this.selectedItem&&this.allowCustomValue&&(this._inputElementValue=e),this._toggleHasValue(this._hasValue)):this.selectedItem=null,this._clearFilter(),this._lastCommittedValue=void 0);}_detectAndDispatchChange(){document.hasFocus()&&this.validate(),this.value!==this._lastCommittedValue&&(this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this._lastCommittedValue=this.value);}_itemsChanged(e,i){this._ensureItemsOrDataProvider(()=>{this.items=i;}),e?this.filteredItems=e.slice(0):i&&(this.filteredItems=null);}_filteredItemsChanged(e){this._setDropdownItems(e);}_filterItems(e,i){return e&&e.filter(r=>(i=i?i.toString().toLowerCase():"",this._getItemLabel(r).toString().toLowerCase().indexOf(i)>-1))}_selectItemForValue(e){const i=this.__getItemIndexByValue(this.filteredItems,e),o=this.selectedItem;i>=0?this.selectedItem=this.filteredItems[i]:this.dataProvider&&this.selectedItem===void 0?this.selectedItem=void 0:this.selectedItem=null,this.selectedItem===null&&o===null&&this._selectedItemChanged(this.selectedItem);}_setDropdownItems(e){const i=this._dropdownItems;this._dropdownItems=e;const o=i?i[this._focusedIndex]:null,r=this.__getItemIndexByValue(e,this.value);(this.selectedItem===null||this.selectedItem===void 0)&&r>=0&&(this.selectedItem=e[r]);const n=this.__getItemIndexByValue(e,this._getItemValue(o));n>-1?this._focusedIndex=n:this._focusedIndex=this.__getItemIndexByLabel(e,this.filter);}_getItemElements(){return Array.from(this._scroller.querySelectorAll(`${this._tagNamePrefix}-item`))}_scrollIntoView(e){this._scroller&&this._scroller.scrollIntoView(e);}__getItemIndexByValue(e,i){return !e||!Qo(i)?-1:Zo(e,o=>this._getItemValue(o)===i)}__getItemIndexByLabel(e,i){return !e||!i?-1:Zo(e,o=>this._getItemLabel(o).toString().toLowerCase()===i.toString().toLowerCase())}_overlaySelectedItemChanged(e){e.stopPropagation(),!(e.detail.item instanceof G$1)&&this.opened&&(this._focusedIndex=this.filteredItems.indexOf(e.detail.item),this.close());}_setFocused(e){if(super._setFocused(e),!e&&!this.readonly&&!this._closeOnBlurIsPrevented){if(!this.opened&&this.allowCustomValue&&this._inputElementValue===this._lastCustomValue){delete this._lastCustomValue;return}if(Et$1()){this._closeOrCommit();return}this.opened?this._overlayOpened||this.close():this._commitValue();}}_shouldRemoveFocus(e){return e.relatedTarget&&e.relatedTarget.localName===`${this._tagNamePrefix}-item`?!1:e.relatedTarget===this._overlayElement?(e.composedPath()[0].focus(),!1):!0}_onTouchend(e){!this.clearElement||e.composedPath()[0]!==this.clearElement||(e.preventDefault(),this._onClearAction());}};/**
10621
10621
  * @license
10622
10622
  * Copyright (c) 2015 - 2024 Vaadin Ltd.
10623
10623
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10624
- */m$1("vaadin-combo-box",Dt,{moduleId:"vaadin-combo-box-styles"});class kc extends Br(Fr(Ec(Tt$1(x(N$1(b$1)))))){static get is(){return "vaadin-combo-box"}static get template(){return g$1`
10624
+ */m$1("vaadin-combo-box",Tt$1,{moduleId:"vaadin-combo-box-styles"});class kc extends Br(Fr(Ec(Pt$1(x(N$1(b$1)))))){static get is(){return "vaadin-combo-box"}static get template(){return g$1`
10625
10625
  <style>
10626
10626
  :host([opened]) {
10627
10627
  pointer-events: auto;
@@ -10666,7 +10666,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10666
10666
  ></vaadin-combo-box-overlay>
10667
10667
 
10668
10668
  <slot name="tooltip"></slot>
10669
- `}static get properties(){return {_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ge(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t;})),this.addController(new Xe(this.inputElement,this._labelController)),this._tooltipController=new U$1(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton;}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t);}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t);}}v$1(kc);/**
10669
+ `}static get properties(){return {_positionTarget:{type:Object}}}get clearElement(){return this.$.clearButton}ready(){super.ready(),this.addController(new Ke(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t;})),this.addController(new Ge(this.inputElement,this._labelController)),this._tooltipController=new U$1(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._positionTarget=this.shadowRoot.querySelector('[part="input-field"]'),this._toggleElement=this.$.toggleButton;}_onClearButtonClick(t){t.stopPropagation(),super._onClearButtonClick(t);}_onHostClick(t){const e=t.composedPath();(e.includes(this._labelNode)||e.includes(this._positionTarget))&&super._onHostClick(t);}}v$1(kc);/**
10670
10670
  * @license
10671
10671
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10672
10672
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10770,7 +10770,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10770
10770
  cursor: default;
10771
10771
  }
10772
10772
  }
10773
- `;m$1("vaadin-multi-select-combo-box-item",[Ot$1,Ir,Sc],{moduleId:"lumo-multi-select-combo-box-item"});m$1("vaadin-multi-select-combo-box-overlay",[ye,St$1,Pr,Sr,Tr,p$1`
10773
+ `;m$1("vaadin-multi-select-combo-box-item",[Dt,Ir,Sc],{moduleId:"lumo-multi-select-combo-box-item"});m$1("vaadin-multi-select-combo-box-overlay",[be,It,Pr,Sr,Tr,p$1`
10774
10774
  :host {
10775
10775
  --_vaadin-multi-select-combo-box-items-container-border-width: var(--lumo-space-xs);
10776
10776
  --_vaadin-multi-select-combo-box-items-container-border-style: solid;
@@ -10832,7 +10832,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10832
10832
  color: var(--lumo-contrast-60pct);
10833
10833
  cursor: var(--lumo-clickable-cursor);
10834
10834
  }
10835
- `;m$1("vaadin-multi-select-combo-box",[ae,Pc],{moduleId:"lumo-multi-select-combo-box"});/**
10835
+ `;m$1("vaadin-multi-select-combo-box",[ne,Pc],{moduleId:"lumo-multi-select-combo-box"});/**
10836
10836
  * @license
10837
10837
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10838
10838
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10879,7 +10879,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10879
10879
  :host([auto-expand-vertically]) #wrapper {
10880
10880
  flex-wrap: wrap;
10881
10881
  }
10882
- `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let nt$1;class Dc extends lr{static get is(){return "vaadin-multi-select-combo-box-container"}static get template(){if(!nt$1){nt$1=super.template.cloneNode(!0);const t=nt$1.content,e=t.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),t.insertBefore(i,e[2]),i.appendChild(e[0]),i.appendChild(e[1]);}return nt$1}static get properties(){return {autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}v$1(Dc);/**
10882
+ `,{moduleId:"vaadin-multi-select-combo-box-container-styles"});let rt$1;class Dc extends lr{static get is(){return "vaadin-multi-select-combo-box-container"}static get template(){if(!rt$1){rt$1=super.template.cloneNode(!0);const t=rt$1.content,e=t.querySelectorAll("slot"),i=document.createElement("div");i.setAttribute("id","wrapper"),t.insertBefore(i,e[2]),i.appendChild(e[0]),i.appendChild(e[1]);}return rt$1}static get properties(){return {autoExpandVertically:{type:Boolean,reflectToAttribute:!0}}}}v$1(Dc);/**
10883
10883
  * @license
10884
10884
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10885
10885
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -10914,7 +10914,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10914
10914
  flex-direction: column;
10915
10915
  height: 100%;
10916
10916
  }
10917
- `;m$1("vaadin-multi-select-combo-box-overlay",[Je,zc],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Mc extends Or(Qe(M$1(x(b$1)))){static get is(){return "vaadin-multi-select-combo-box-overlay"}static get template(){return g$1`
10917
+ `;m$1("vaadin-multi-select-combo-box-overlay",[Xe,zc],{moduleId:"vaadin-multi-select-combo-box-overlay-styles"});class Mc extends Or(Je(M$1(x(b$1)))){static get is(){return "vaadin-multi-select-combo-box-overlay"}static get template(){return g$1`
10918
10918
  <div id="backdrop" part="backdrop" hidden></div>
10919
10919
  <div part="overlay" id="overlay">
10920
10920
  <div part="loader"></div>
@@ -10977,7 +10977,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
10977
10977
  * @license
10978
10978
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10979
10979
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
10980
- */const at$1=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(t=>{t.target.resizables?t.target.resizables.forEach(e=>{e._onResize(t.contentRect);}):t.target._onResize(t.contentRect);});});}),Vr=w$1(s=>class extends s{get _observeParent(){return !1}connectedCallback(){if(super.connectedCallback(),at$1.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,at$1.observe(e)),e.resizables.add(this),this.__parent=e;}}disconnectedCallback(){super.disconnectedCallback(),at$1.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const i=e.resizables;i&&(i.delete(this),i.size===0&&at$1.unobserve(e)),this.__parent=null;}}_onResize(e){}});/**
10980
+ */const nt$1=new ResizeObserver(s=>{setTimeout(()=>{s.forEach(t=>{t.target.resizables?t.target.resizables.forEach(e=>{e._onResize(t.contentRect);}):t.target._onResize(t.contentRect);});});}),Vr=w$1(s=>class extends s{get _observeParent(){return !1}connectedCallback(){if(super.connectedCallback(),nt$1.observe(this),this._observeParent){const e=this.parentNode instanceof ShadowRoot?this.parentNode.host:this.parentNode;e.resizables||(e.resizables=new Set,nt$1.observe(e)),e.resizables.add(this),this.__parent=e;}}disconnectedCallback(){super.disconnectedCallback(),nt$1.unobserve(this);const e=this.__parent;if(this._observeParent&&e){const i=e.resizables;i&&(i.delete(this),i.size===0&&nt$1.unobserve(e)),this.__parent=null;}}_onResize(e){}});/**
10981
10981
  * @license
10982
10982
  * Copyright (c) 2021 - 2024 Vaadin Ltd.
10983
10983
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -11019,7 +11019,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11019
11019
  :host([auto-expand-horizontally]) [class$='container'] {
11020
11020
  width: auto;
11021
11021
  }
11022
- `;m$1("vaadin-multi-select-combo-box",[Dt,Bc],{moduleId:"vaadin-multi-select-combo-box-styles"});class Fc extends Vr(Tt$1(x(N$1(b$1)))){static get is(){return "vaadin-multi-select-combo-box"}static get template(){return g$1`
11022
+ `;m$1("vaadin-multi-select-combo-box",[Tt$1,Bc],{moduleId:"vaadin-multi-select-combo-box-styles"});class Fc extends Vr(Pt$1(x(N$1(b$1)))){static get is(){return "vaadin-multi-select-combo-box"}static get template(){return g$1`
11023
11023
  <div class="vaadin-multi-select-combo-box-container">
11024
11024
  <div part="label">
11025
11025
  <slot name="label"></slot>
@@ -11095,7 +11095,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11095
11095
  color: transparent !important;
11096
11096
  forced-color-adjust: none;
11097
11097
  }
11098
- `]}get clearElement(){return this.$.clearButton}get _chips(){return [...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Ge(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t;})),this.addController(new Xe(this.inputElement,this._labelController)),this._tooltipController=new U$1(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new T$1(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:t=>{t.addEventListener("mousedown",e=>this._preventBlur(e)),this._overflow=t;}}),this.addController(this._overflowController),this.__updateChips(),zt(this);}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),ct$1(this.i18n.cleared);}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache();}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate();}_disabledChanged(t,e){super._disabledChanged(t,e),(t||e)&&this.__updateChips();}_inputElementChanged(t){super._inputElementChanged(t),t&&this.$.comboBox._setInputElement(t);}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate());}_onResize(){this.__updateChips();}_delegateAttribute(t,e){if(this.stateTarget){if(t==="required"){this._delegateAttribute("aria-required",e?"true":!1);return}super._delegateAttribute(t,e);}}_autoExpandHorizontallyChanged(t,e){(t||e)&&this.__updateChips();}_autoExpandVerticallyChanged(t,e){(t||e)&&this.__updateChips();}_clearButtonVisibleChanged(t,e){(t||e)&&this.__updateChips();}_onFilteredItemsChanged(t){const{value:e}=t.detail;(Array.isArray(e)||e==null)&&(this.filteredItems=e);}_readonlyChanged(t,e){(t||e)&&this.__updateChips(),this.dataProvider&&this.clearCache();}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.__updateChips();}_pageSizeChanged(t,e){(Math.floor(t)!==t||t<=0)&&(this.pageSize=e,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize;}_placeholderChanged(t){const e=this.__tmpA11yPlaceholder;e!==t&&(this.__savedPlaceholder=t,e&&(this.placeholder=e));}_selectedItemsChanged(t){if(this._toggleHasValue(this._hasValue),this._hasValue){const e=this._mergeItemLabels(t);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=e,this.placeholder=e;}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth();}_getItemLabel(t){return this.$.comboBox._getItemLabel(t)}_mergeItemLabels(t){return t.map(e=>this._getItemLabel(e)).join(", ")}_findIndex(t,e,i){if(i&&t){for(let o=0;o<e.length;o++)if(e[o]&&e[o][i]===t[i])return o;return -1}return e.indexOf(t)}__clearInternalValue(t=!1){!this.keepFilter||t?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter);}__announceItem(t,e,i){const o=e?"selected":"deselected",r=this.i18n.total.replace("{count}",i||0);ct$1(`${t} ${this.i18n[o]} ${r}`);}__removeItem(t){const e=[...this.selectedItems];e.splice(e.indexOf(t),1),this.__updateSelection(e);const i=this._getItemLabel(t);this.__announceItem(i,!1,e.length);}__selectItem(t){const e=[...this.selectedItems],i=this._findIndex(t,e,this.itemIdPath),o=this._getItemLabel(t);let r=!1;if(i!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}e.splice(i,1);}else e.push(t),r=!0;this.__updateSelection(e),this.__clearInternalValue(),this.__announceItem(o,r,e.length);}__updateSelection(t){this.selectedItems=t,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}));}__updateTopGroup(t,e,i){t?i||(this._topGroup=[...e]):this._topGroup=[];}__createChip(t){const e=document.createElement("vaadin-multi-select-combo-box-chip");e.setAttribute("slot","chip"),e.item=t,e.disabled=this.disabled,e.readonly=this.readonly;const i=this._getItemLabel(t);return e.label=i,e.setAttribute("title",i),typeof this.itemClassNameGenerator=="function"&&(e.className=this.itemClassNameGenerator(t)),e.addEventListener("item-removed",o=>this._onItemRemoved(o)),e.addEventListener("mousedown",o=>this._preventBlur(o)),e}__getOverflowWidth(){const t=this._overflow;t.style.visibility="hidden",t.removeAttribute("hidden");const e=t.getAttribute("count");t.setAttribute("count","99");const i=getComputedStyle(t),o=t.clientWidth+parseInt(i.marginInlineStart);return t.setAttribute("count",e),t.setAttribute("hidden",""),t.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove();});const t=[...this.selectedItems],e=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=e-i;t.length>1&&(o-=this.__getOverflowWidth());const r=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=t.length-1,c=null;d>=0;d--){const h=this.__createChip(t[d]);this.insertBefore(h,c),c=h,n.unshift(h);}const a=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;n.length>1;){n.pop().remove(),a.unshift(t.pop());const c=a.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=c)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(r,o)}px`);}this._overflowItems=a;return}for(let n=t.length-1,a=null;n>=0;n--){const l=this.__createChip(t[n]);if(this.insertBefore(l,a),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(a===null)l.style.maxWidth=`${Math.max(r,o)}px`;else {l.remove();break}t.pop(),a=l;}this._overflowItems=t;}__updateOverflowChip(t,e,i,o){if(t){const r=e.length;t.label=`${r}`,t.setAttribute("count",`${r}`),t.setAttribute("title",this._mergeItemLabels(e)),t.toggleAttribute("hidden",r===0),t.disabled=i,t.readonly=o;}}_onClearButtonTouchend(t){t.preventDefault(),t.stopPropagation(),this.clear();}_onClearButtonClick(t){t.stopPropagation(),this.clear();}_onChange(t){t.stopPropagation();}_onEscape(t){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(t.stopPropagation(),this.selectedItems=[]);}_onKeyDown(t){super._onKeyDown(t);const e=this._chips;if(!this.readonly&&e.length>0)switch(t.key){case"Backspace":this._onBackSpace(e);break;case"ArrowLeft":this._onArrowLeft(e,t);break;case"ArrowRight":this._onArrowRight(e,t);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(t,e){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&e.preventDefault();let o;this.__isRTL?i===t.length-1?o=-1:i>-1&&(o=i+1):i===-1?o=t.length-1:i>0&&(o=i-1),o!==void 0&&(this._focusedChipIndex=o);}_onArrowRight(t,e){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&e.preventDefault();let o;this.__isRTL?i===-1?o=t.length-1:i>0&&(o=i-1):i===t.length-1?o=-1:i>-1&&(o=i+1),o!==void 0&&(this._focusedChipIndex=o);}_onBackSpace(t){if(this.inputElement.selectionStart!==0)return;const e=this._focusedChipIndex;e===-1?this._focusedChipIndex=t.length-1:(this.__removeItem(t[e].item),this._focusedChipIndex=-1);}_focusedChipIndexChanged(t,e){if(t>-1||e>-1){const i=this._chips;if(i.forEach((o,r)=>{o.toggleAttribute("focused",r===t);}),t>-1){const o=i[t].item,r=this._getItemLabel(o);ct$1(`${r} ${this.i18n.focused}`);}}}_onComboBoxChange(){const t=this.$.comboBox.selectedItem;t&&this.__selectItem(t);}_onComboBoxItemSelected(t){this.__selectItem(t.detail.item);}_onCustomValueSet(t){t.preventDefault(),t.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:t.detail,composed:!0,bubbles:!0}));}_onItemRemoved(t){this.__removeItem(t.detail.item);}_preventBlur(t){t.preventDefault();}}v$1(Fc);m$1("vaadin-notification-card",p$1`
11098
+ `]}get clearElement(){return this.$.clearButton}get _chips(){return [...this.querySelectorAll('[slot="chip"]')]}get _hasValue(){return this.selectedItems&&this.selectedItems.length>0}ready(){super.ready(),this.addController(new Ke(this,t=>{this._setInputElement(t),this._setFocusElement(t),this.stateTarget=t,this.ariaTarget=t;})),this.addController(new Ge(this.inputElement,this._labelController)),this._tooltipController=new U$1(this),this.addController(this._tooltipController),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.inputElement),this._tooltipController.setShouldShow(t=>!t.opened),this._inputField=this.shadowRoot.querySelector('[part="input-field"]'),this._overflowController=new T$1(this,"overflow","vaadin-multi-select-combo-box-chip",{initializer:t=>{t.addEventListener("mousedown",e=>this._preventBlur(e)),this._overflow=t;}}),this.addController(this._overflowController),this.__updateChips(),Ot$1(this);}checkValidity(){return this.required&&!this.readonly?this._hasValue:!0}clear(){this.__updateSelection([]),dt$1(this.i18n.cleared);}clearCache(){this.$&&this.$.comboBox&&this.$.comboBox.clearCache();}requestContentUpdate(){this.$&&this.$.comboBox&&this.$.comboBox.requestContentUpdate();}_disabledChanged(t,e){super._disabledChanged(t,e),(t||e)&&this.__updateChips();}_inputElementChanged(t){super._inputElementChanged(t),t&&this.$.comboBox._setInputElement(t);}_setFocused(t){super._setFocused(t),!t&&document.hasFocus()&&(this._focusedChipIndex=-1,this.validate());}_onResize(){this.__updateChips();}_delegateAttribute(t,e){if(this.stateTarget){if(t==="required"){this._delegateAttribute("aria-required",e?"true":!1);return}super._delegateAttribute(t,e);}}_autoExpandHorizontallyChanged(t,e){(t||e)&&this.__updateChips();}_autoExpandVerticallyChanged(t,e){(t||e)&&this.__updateChips();}_clearButtonVisibleChanged(t,e){(t||e)&&this.__updateChips();}_onFilteredItemsChanged(t){const{value:e}=t.detail;(Array.isArray(e)||e==null)&&(this.filteredItems=e);}_readonlyChanged(t,e){(t||e)&&this.__updateChips(),this.dataProvider&&this.clearCache();}__itemClassNameGeneratorChanged(t,e){(t||e)&&this.__updateChips();}_pageSizeChanged(t,e){(Math.floor(t)!==t||t<=0)&&(this.pageSize=e,console.error('"pageSize" value must be an integer > 0')),this.$.comboBox.pageSize=this.pageSize;}_placeholderChanged(t){const e=this.__tmpA11yPlaceholder;e!==t&&(this.__savedPlaceholder=t,e&&(this.placeholder=e));}_selectedItemsChanged(t){if(this._toggleHasValue(this._hasValue),this._hasValue){const e=this._mergeItemLabels(t);this.__tmpA11yPlaceholder===void 0&&(this.__savedPlaceholder=this.placeholder),this.__tmpA11yPlaceholder=e,this.placeholder=e;}else this.__tmpA11yPlaceholder!==void 0&&(delete this.__tmpA11yPlaceholder,this.placeholder=this.__savedPlaceholder);this.__updateChips(),this.requestContentUpdate(),this.opened&&this.$.comboBox.$.overlay._updateOverlayWidth();}_getItemLabel(t){return this.$.comboBox._getItemLabel(t)}_mergeItemLabels(t){return t.map(e=>this._getItemLabel(e)).join(", ")}_findIndex(t,e,i){if(i&&t){for(let o=0;o<e.length;o++)if(e[o]&&e[o][i]===t[i])return o;return -1}return e.indexOf(t)}__clearInternalValue(t=!1){!this.keepFilter||t?(this.filter="",this.$.comboBox.clear()):(this.$.comboBox.clear(),this._inputElementValue=this.filter);}__announceItem(t,e,i){const o=e?"selected":"deselected",r=this.i18n.total.replace("{count}",i||0);dt$1(`${t} ${this.i18n[o]} ${r}`);}__removeItem(t){const e=[...this.selectedItems];e.splice(e.indexOf(t),1),this.__updateSelection(e);const i=this._getItemLabel(t);this.__announceItem(i,!1,e.length);}__selectItem(t){const e=[...this.selectedItems],i=this._findIndex(t,e,this.itemIdPath),o=this._getItemLabel(t);let r=!1;if(i!==-1){const n=this._lastFilter;if(n&&n.toLowerCase()===o.toLowerCase()){this.__clearInternalValue();return}e.splice(i,1);}else e.push(t),r=!0;this.__updateSelection(e),this.__clearInternalValue(),this.__announceItem(o,r,e.length);}__updateSelection(t){this.selectedItems=t,this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0}));}__updateTopGroup(t,e,i){t?i||(this._topGroup=[...e]):this._topGroup=[];}__createChip(t){const e=document.createElement("vaadin-multi-select-combo-box-chip");e.setAttribute("slot","chip"),e.item=t,e.disabled=this.disabled,e.readonly=this.readonly;const i=this._getItemLabel(t);return e.label=i,e.setAttribute("title",i),typeof this.itemClassNameGenerator=="function"&&(e.className=this.itemClassNameGenerator(t)),e.addEventListener("item-removed",o=>this._onItemRemoved(o)),e.addEventListener("mousedown",o=>this._preventBlur(o)),e}__getOverflowWidth(){const t=this._overflow;t.style.visibility="hidden",t.removeAttribute("hidden");const e=t.getAttribute("count");t.setAttribute("count","99");const i=getComputedStyle(t),o=t.clientWidth+parseInt(i.marginInlineStart);return t.setAttribute("count",e),t.setAttribute("hidden",""),t.style.visibility="",o}__updateChips(){if(!this._inputField||!this.inputElement)return;this._chips.forEach(n=>{n.remove();});const t=[...this.selectedItems],e=this._inputField.$.wrapper.clientWidth,i=parseInt(getComputedStyle(this.inputElement).flexBasis);let o=e-i;t.length>1&&(o-=this.__getOverflowWidth());const r=parseInt(getComputedStyle(this).getPropertyValue("--_chip-min-width"));if(this.autoExpandHorizontally){const n=[];for(let d=t.length-1,c=null;d>=0;d--){const h=this.__createChip(t[d]);this.insertBefore(h,c),c=h,n.unshift(h);}const a=[],l=this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth;if(!this.autoExpandVertically&&l<i){for(;n.length>1;){n.pop().remove(),a.unshift(t.pop());const c=a.length>0?i+this.__getOverflowWidth():i;if(this._inputField.$.wrapper.clientWidth-this.$.chips.clientWidth>=c)break}n.length===1&&(n[0].style.maxWidth=`${Math.max(r,o)}px`);}this._overflowItems=a;return}for(let n=t.length-1,a=null;n>=0;n--){const l=this.__createChip(t[n]);if(this.insertBefore(l,a),!this.autoExpandVertically&&this.$.chips.clientWidth>o)if(a===null)l.style.maxWidth=`${Math.max(r,o)}px`;else {l.remove();break}t.pop(),a=l;}this._overflowItems=t;}__updateOverflowChip(t,e,i,o){if(t){const r=e.length;t.label=`${r}`,t.setAttribute("count",`${r}`),t.setAttribute("title",this._mergeItemLabels(e)),t.toggleAttribute("hidden",r===0),t.disabled=i,t.readonly=o;}}_onClearButtonTouchend(t){t.preventDefault(),t.stopPropagation(),this.clear();}_onClearButtonClick(t){t.stopPropagation(),this.clear();}_onChange(t){t.stopPropagation();}_onEscape(t){this.clearButtonVisible&&this.selectedItems&&this.selectedItems.length&&(t.stopPropagation(),this.selectedItems=[]);}_onKeyDown(t){super._onKeyDown(t);const e=this._chips;if(!this.readonly&&e.length>0)switch(t.key){case"Backspace":this._onBackSpace(e);break;case"ArrowLeft":this._onArrowLeft(e,t);break;case"ArrowRight":this._onArrowRight(e,t);break;default:this._focusedChipIndex=-1;break}}_onArrowLeft(t,e){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&e.preventDefault();let o;this.__isRTL?i===t.length-1?o=-1:i>-1&&(o=i+1):i===-1?o=t.length-1:i>0&&(o=i-1),o!==void 0&&(this._focusedChipIndex=o);}_onArrowRight(t,e){if(this.inputElement.selectionStart!==0)return;const i=this._focusedChipIndex;i!==-1&&e.preventDefault();let o;this.__isRTL?i===-1?o=t.length-1:i>0&&(o=i-1):i===t.length-1?o=-1:i>-1&&(o=i+1),o!==void 0&&(this._focusedChipIndex=o);}_onBackSpace(t){if(this.inputElement.selectionStart!==0)return;const e=this._focusedChipIndex;e===-1?this._focusedChipIndex=t.length-1:(this.__removeItem(t[e].item),this._focusedChipIndex=-1);}_focusedChipIndexChanged(t,e){if(t>-1||e>-1){const i=this._chips;if(i.forEach((o,r)=>{o.toggleAttribute("focused",r===t);}),t>-1){const o=i[t].item,r=this._getItemLabel(o);dt$1(`${r} ${this.i18n.focused}`);}}}_onComboBoxChange(){const t=this.$.comboBox.selectedItem;t&&this.__selectItem(t);}_onComboBoxItemSelected(t){this.__selectItem(t.detail.item);}_onCustomValueSet(t){t.preventDefault(),t.stopPropagation(),this.__clearInternalValue(!0),this.dispatchEvent(new CustomEvent("custom-value-set",{detail:t.detail,composed:!0,bubbles:!0}));}_onItemRemoved(t){this.__removeItem(t.detail.item);}_preventBlur(t){t.preventDefault();}}v$1(Fc);m$1("vaadin-notification-card",p$1`
11099
11099
  :host {
11100
11100
  position: relative;
11101
11101
  margin: var(--lumo-space-s);
@@ -11406,14 +11406,14 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11406
11406
  <slot></slot>
11407
11407
  </div>
11408
11408
  </div>
11409
- `}static get is(){return "vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite");}}class $$1 extends Ze(wt$1(N$1(b$1))){static get template(){return g$1`
11409
+ `}static get is(){return "vaadin-notification-card"}ready(){super.ready(),this.setAttribute("role","alert"),this.setAttribute("aria-live","polite");}}class $$1 extends Qe(xt$1(N$1(b$1))){static get template(){return g$1`
11410
11410
  <style>
11411
11411
  :host {
11412
11412
  display: none !important;
11413
11413
  }
11414
11414
  </style>
11415
11415
  <vaadin-notification-card theme$="[[_theme]]"> </vaadin-notification-card>
11416
- `}static get is(){return "vaadin-notification"}static get properties(){return {duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return ["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(t,e){return Vc(t)?$$1._createAndShowNotification(i=>{us(t,i);},e):$$1._createAndShowNotification(i=>{i.innerText=t;},e)}static _createAndShowNotification(t,e){const i=document.createElement($$1.is);return e&&Number.isFinite(e.duration)&&(i.duration=e.duration),e&&e.position&&(i.position=e.position),e&&e.theme&&i.setAttribute("theme",e.theme),i.renderer=t,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",o=>{o.detail.value||i.remove();}),i}get _container(){return $$1._container||($$1._container=document.createElement("vaadin-notification-container"),document.body.appendChild($$1._container)),$$1._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),zt(this);}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1);});}requestContentUpdate(){this.renderer&&this.renderer(this._card,this);}_rendererChanged(t,e,i){if(!i)return;const o=this._oldRenderer!==t;this._oldRenderer=t,o&&(i.innerHTML="",delete i._$litPart$),e&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate());}open(){this.opened=!0;}close(){this.opened=!1;}_openedChanged(t){t?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard();}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener);}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1;}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card);}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"));}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard();}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");t&&t!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState();},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard();}_positionChanged(){this.opened&&this._animatedAppendNotificationCard();}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),t)));}}v$1(Rc);v$1($c);v$1($$1);const Rr=p$1`
11416
+ `}static get is(){return "vaadin-notification"}static get properties(){return {duration:{type:Number,value:5e3},opened:{type:Boolean,value:!1,notify:!0,observer:"_openedChanged"},position:{type:String,value:"bottom-start",observer:"_positionChanged"},renderer:Function}}static get observers(){return ["_durationChanged(duration, opened)","_rendererChanged(renderer, opened, _overlayElement)"]}static show(t,e){return Vc(t)?$$1._createAndShowNotification(i=>{us(t,i);},e):$$1._createAndShowNotification(i=>{i.innerText=t;},e)}static _createAndShowNotification(t,e){const i=document.createElement($$1.is);return e&&Number.isFinite(e.duration)&&(i.duration=e.duration),e&&e.position&&(i.position=e.position),e&&e.theme&&i.setAttribute("theme",e.theme),i.renderer=t,document.body.appendChild(i),i.opened=!0,i.addEventListener("opened-changed",o=>{o.detail.value||i.remove();}),i}get _container(){return $$1._container||($$1._container=document.createElement("vaadin-notification-container"),document.body.appendChild($$1._container)),$$1._container}get _card(){return this._overlayElement}ready(){super.ready(),this._overlayElement=this.shadowRoot.querySelector("vaadin-notification-card"),Ot$1(this);}disconnectedCallback(){super.disconnectedCallback(),queueMicrotask(()=>{this.isConnected||(this.opened=!1);});}requestContentUpdate(){this.renderer&&this.renderer(this._card,this);}_rendererChanged(t,e,i){if(!i)return;const o=this._oldRenderer!==t;this._oldRenderer=t,o&&(i.innerHTML="",delete i._$litPart$),e&&(this._didAnimateNotificationAppend||this._animatedAppendNotificationCard(),this.requestContentUpdate());}open(){this.opened=!0;}close(){this.opened=!1;}_openedChanged(t){t?(this._container.opened=!0,this._animatedAppendNotificationCard()):this._card&&this._closeNotificationCard();}__cleanUpOpeningClosingState(){this._card.removeAttribute("opening"),this._card.removeAttribute("closing"),this._card.removeEventListener("animationend",this.__animationEndListener);}_animatedAppendNotificationCard(){this._card?(this.__cleanUpOpeningClosingState(),this._card.setAttribute("opening",""),this._appendNotificationCard(),this.__animationEndListener=()=>this.__cleanUpOpeningClosingState(),this._card.addEventListener("animationend",this.__animationEndListener),this._didAnimateNotificationAppend=!0):this._didAnimateNotificationAppend=!1;}_appendNotificationCard(){if(this._card){if(!this._container.shadowRoot.querySelector(`slot[name="${this.position}"]`)){console.warn(`Invalid alignment parameter provided: position=${this.position}`);return}this._container.bringToFront(),this._card.slot=this.position,this._container.firstElementChild&&/top/u.test(this.position)?this._container.insertBefore(this._card,this._container.firstElementChild):this._container.appendChild(this._card);}}_removeNotificationCard(){this._card.parentNode&&this._card.parentNode.removeChild(this._card),this._card.removeAttribute("closing"),this._container.opened=!!this._container.firstElementChild,this.dispatchEvent(new CustomEvent("closed"));}_closeNotificationCard(){this._durationTimeoutId&&clearTimeout(this._durationTimeoutId),this._animatedRemoveNotificationCard();}_animatedRemoveNotificationCard(){this.__cleanUpOpeningClosingState(),this._card.setAttribute("closing","");const t=getComputedStyle(this._card).getPropertyValue("animation-name");t&&t!=="none"?(this.__animationEndListener=()=>{this._removeNotificationCard(),this.__cleanUpOpeningClosingState();},this._card.addEventListener("animationend",this.__animationEndListener)):this._removeNotificationCard();}_positionChanged(){this.opened&&this._animatedAppendNotificationCard();}_durationChanged(t,e){e&&(clearTimeout(this._durationTimeoutId),t>0&&(this._durationTimeoutId=setTimeout(()=>this.close(),t)));}}v$1(Rc);v$1($c);v$1($$1);const Rr=p$1`
11417
11417
  :host {
11418
11418
  -webkit-tap-highlight-color: transparent;
11419
11419
  --_lumo-item-selected-icon-display: var(--_lumo-list-box-item-selected-icon-display, block);
@@ -11431,7 +11431,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11431
11431
  * @license
11432
11432
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
11433
11433
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11434
- */m$1("vaadin-select-item",Ot$1,{moduleId:"lumo-select-item"});m$1("vaadin-select-list-box",Rr,{moduleId:"lumo-select-list-box"});const Hc=p$1`
11434
+ */m$1("vaadin-select-item",Dt,{moduleId:"lumo-select-item"});m$1("vaadin-select-list-box",Rr,{moduleId:"lumo-select-list-box"});const Hc=p$1`
11435
11435
  :host(:not([theme*='align'])) ::slotted([slot='value']) {
11436
11436
  text-align: start;
11437
11437
  }
@@ -11474,7 +11474,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11474
11474
  --_lumo-selected-item-height: var(--lumo-size-s);
11475
11475
  --_lumo-selected-item-padding: 0;
11476
11476
  }
11477
- `;m$1("vaadin-select",[ae,Hc],{moduleId:"lumo-select"});m$1("vaadin-select-value-button",p$1`
11477
+ `;m$1("vaadin-select",[ne,Hc],{moduleId:"lumo-select"});m$1("vaadin-select-value-button",p$1`
11478
11478
  :host {
11479
11479
  font-family: var(--lumo-font-family);
11480
11480
  font-size: var(--vaadin-input-field-value-font-size, var(--lumo-font-size-m));
@@ -11533,7 +11533,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11533
11533
  * @license
11534
11534
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
11535
11535
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11536
- */const $r=s=>class extends Ri(ne(s)){static get properties(){return {_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return ["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e;}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e);}focus(){this.disabled||(super.focus(),this._setFocused(!0));}_shouldSetActive(e){return !this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e);}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur());}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click());}};/**
11536
+ */const $r=s=>class extends Ri(re(s)){static get properties(){return {_hasVaadinItemMixin:{value:!0},selected:{type:Boolean,value:!1,reflectToAttribute:!0,observer:"_selectedChanged"},_value:String}}get _activeKeys(){return ["Enter"," "]}get value(){return this._value!==void 0?this._value:this.textContent.trim()}set value(e){this._value=e;}ready(){super.ready();const e=this.getAttribute("value");e!==null&&(this.value=e);}focus(){this.disabled||(super.focus(),this._setFocused(!0));}_shouldSetActive(e){return !this.disabled&&!(e.type==="keydown"&&e.defaultPrevented)}_selectedChanged(e){this.setAttribute("aria-selected",e);}_disabledChanged(e){super._disabledChanged(e),e&&(this.selected=!1,this.blur());}_onKeyDown(e){super._onKeyDown(e),this._activeKeys.includes(e.key)&&!e.defaultPrevented&&(e.preventDefault(),this.click());}};/**
11537
11537
  * @license
11538
11538
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
11539
11539
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -11559,11 +11559,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11559
11559
  * @license
11560
11560
  * Copyright (c) 2022 - 2024 Vaadin Ltd.
11561
11561
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11562
- */const qc=s=>class extends re(s){get focused(){return (this._getItems()||[]).find(Ui)}get _vertical(){return !0}focus(){const e=this._getItems();if(Array.isArray(e)){const i=this._getAvailableIndex(e,0,null,o=>!fi(o));i>=0&&this._focus(i);}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:i}=e,o=this._getItems()||[],r=o.indexOf(this.focused);let n,a;const d=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(i)?(a=-d,n=r-d):this.__isNextKey(i)?(a=d,n=r+d):i==="Home"?(a=1,n=0):i==="End"&&(a=-1,n=o.length-1),n=this._getAvailableIndex(o,n,a,c=>!fi(c)),n>=0&&(e.preventDefault(),this._focus(n,!0));}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,i=!1){const o=this._getItems();this._focusItem(o[e],i);}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""));}_getAvailableIndex(e,i,o,r){const n=e.length;let a=i;for(let l=0;typeof a=="number"&&l<n;l+=1,a+=o||1){a<0?a=n-1:a>=n&&(a=0);const d=e[a];if(!d.hasAttribute("disabled")&&this.__isMatchingItem(d,r))return a}return -1}__isMatchingItem(e,i){return typeof i=="function"?i(e):!0}};/**
11562
+ */const qc=s=>class extends se(s){get focused(){return (this._getItems()||[]).find(Ui)}get _vertical(){return !0}focus(){const e=this._getItems();if(Array.isArray(e)){const i=this._getAvailableIndex(e,0,null,o=>!mi(o));i>=0&&this._focus(i);}}_getItems(){return Array.from(this.children)}_onKeyDown(e){if(super._onKeyDown(e),e.metaKey||e.ctrlKey)return;const{key:i}=e,o=this._getItems()||[],r=o.indexOf(this.focused);let n,a;const d=!this._vertical&&this.getAttribute("dir")==="rtl"?-1:1;this.__isPrevKey(i)?(a=-d,n=r-d):this.__isNextKey(i)?(a=d,n=r+d):i==="Home"?(a=1,n=0):i==="End"&&(a=-1,n=o.length-1),n=this._getAvailableIndex(o,n,a,c=>!mi(c)),n>=0&&(e.preventDefault(),this._focus(n,!0));}__isPrevKey(e){return this._vertical?e==="ArrowUp":e==="ArrowLeft"}__isNextKey(e){return this._vertical?e==="ArrowDown":e==="ArrowRight"}_focus(e,i=!1){const o=this._getItems();this._focusItem(o[e],i);}_focusItem(e){e&&(e.focus(),e.setAttribute("focus-ring",""));}_getAvailableIndex(e,i,o,r){const n=e.length;let a=i;for(let l=0;typeof a=="number"&&l<n;l+=1,a+=o||1){a<0?a=n-1:a>=n&&(a=0);const d=e[a];if(!d.hasAttribute("disabled")&&this.__isMatchingItem(d,r))return a}return -1}__isMatchingItem(e,i){return typeof i=="function"?i(e):!0}};/**
11563
11563
  * @license
11564
11564
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
11565
11565
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11566
- */const Ur=s=>class extends qc(s){static get properties(){return {disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return ["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return !this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],i=this._getAvailableIndex(e,0,null,o=>o.tabIndex===0&&!fi(o));i>=0?this._focus(i):super.focus();}ready(){super.ready(),this.addEventListener("click",i=>this._onClick(i));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Ni(e,()=>{this._setItems(this._filterItems(Ks(this)));});}_getItems(){return this.items}_enhanceItems(e,i,o,r){if(!r&&e){this.setAttribute("aria-orientation",i||"vertical"),e.forEach(a=>{i?a.setAttribute("orientation",i):a.removeAttribute("orientation");}),this._setFocusable(o<0||!o?0:o);const n=e[o];e.forEach(a=>{a.selected=a===n;}),n&&!n.disabled&&this._scrollToItem(o);}}_filterItems(e){return e.filter(i=>i._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const i=this._filterItems(e.composedPath())[0];let o;i&&!i.disabled&&(o=this.items.indexOf(i))>=0&&(this.selected=o);}_searchKey(e,i){this._searchReset=z$1.debounce(this._searchReset,Y$1.after(500),()=>{this._searchBuf="";}),this._searchBuf+=i.toLowerCase(),this.items.some(r=>this.__isMatchingKey(r))||(this._searchBuf=i.toLowerCase());const o=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,o,1,r=>this.__isMatchingKey(r)&&getComputedStyle(r).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const i=e.key,o=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(i)&&i.length===1){const r=this._searchKey(o,i);r>=0&&this._focus(r);return}super._onKeyDown(e);}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const i=this.items[e];this.items.forEach(o=>{o.tabIndex=o===i?0:-1;});}_focus(e){this.items.forEach((i,o)=>{i.focused=o===e;}),this._setFocusable(e),this._scrollToItem(e),super._focus(e);}_scrollToItem(e){const i=this.items[e];if(!i)return;const o=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],r=this._scrollerElement.getBoundingClientRect(),n=(this.items[e+1]||i).getBoundingClientRect(),a=(this.items[e-1]||i).getBoundingClientRect();let l=0;!this._isRTL&&n[o[1]]>=r[o[1]]||this._isRTL&&n[o[1]]<=r[o[1]]?l=n[o[1]]-r[o[1]]:(!this._isRTL&&a[o[0]]<=r[o[0]]||this._isRTL&&a[o[0]]>=r[o[0]])&&(l=a[o[0]]-r[o[0]]),this._scroll(l);}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else {const i=this.getAttribute("dir")||"ltr",o=Hr(this._scrollerElement,i)+e;jc(this._scrollerElement,i,o);}}};/**
11566
+ */const Ur=s=>class extends qc(s){static get properties(){return {disabled:{type:Boolean,value:!1,reflectToAttribute:!0},selected:{type:Number,reflectToAttribute:!0,notify:!0},orientation:{type:String,reflectToAttribute:!0,value:""},items:{type:Array,readOnly:!0,notify:!0},_searchBuf:{type:String,value:""}}}static get observers(){return ["_enhanceItems(items, orientation, selected, disabled)"]}get _isRTL(){return !this._vertical&&this.getAttribute("dir")==="rtl"}get _scrollerElement(){return console.warn(`Please implement the '_scrollerElement' property in <${this.localName}>`),this}get _vertical(){return this.orientation!=="horizontal"}focus(){this._observer&&this._observer.flush();const e=Array.isArray(this.items)?this.items:[],i=this._getAvailableIndex(e,0,null,o=>o.tabIndex===0&&!mi(o));i>=0?this._focus(i):super.focus();}ready(){super.ready(),this.addEventListener("click",i=>this._onClick(i));const e=this.shadowRoot.querySelector("slot:not([name])");this._observer=new Mi(e,()=>{this._setItems(this._filterItems(Ks(this)));});}_getItems(){return this.items}_enhanceItems(e,i,o,r){if(!r&&e){this.setAttribute("aria-orientation",i||"vertical"),e.forEach(a=>{i?a.setAttribute("orientation",i):a.removeAttribute("orientation");}),this._setFocusable(o<0||!o?0:o);const n=e[o];e.forEach(a=>{a.selected=a===n;}),n&&!n.disabled&&this._scrollToItem(o);}}_filterItems(e){return e.filter(i=>i._hasVaadinItemMixin)}_onClick(e){if(e.metaKey||e.shiftKey||e.ctrlKey||e.defaultPrevented)return;const i=this._filterItems(e.composedPath())[0];let o;i&&!i.disabled&&(o=this.items.indexOf(i))>=0&&(this.selected=o);}_searchKey(e,i){this._searchReset=z$1.debounce(this._searchReset,Y$1.after(500),()=>{this._searchBuf="";}),this._searchBuf+=i.toLowerCase(),this.items.some(r=>this.__isMatchingKey(r))||(this._searchBuf=i.toLowerCase());const o=this._searchBuf.length===1?e+1:e;return this._getAvailableIndex(this.items,o,1,r=>this.__isMatchingKey(r)&&getComputedStyle(r).display!=="none")}__isMatchingKey(e){return e.textContent.replace(/[^\p{L}\p{Nd}]/gu,"").toLowerCase().startsWith(this._searchBuf)}_onKeyDown(e){if(e.metaKey||e.ctrlKey)return;const i=e.key,o=this.items.indexOf(this.focused);if(/[\p{L}\p{Nd}]/u.test(i)&&i.length===1){const r=this._searchKey(o,i);r>=0&&this._focus(r);return}super._onKeyDown(e);}_isItemHidden(e){return getComputedStyle(e).display==="none"}_setFocusable(e){e=this._getAvailableIndex(this.items,e,1);const i=this.items[e];this.items.forEach(o=>{o.tabIndex=o===i?0:-1;});}_focus(e){this.items.forEach((i,o)=>{i.focused=o===e;}),this._setFocusable(e),this._scrollToItem(e),super._focus(e);}_scrollToItem(e){const i=this.items[e];if(!i)return;const o=this._vertical?["top","bottom"]:this._isRTL?["right","left"]:["left","right"],r=this._scrollerElement.getBoundingClientRect(),n=(this.items[e+1]||i).getBoundingClientRect(),a=(this.items[e-1]||i).getBoundingClientRect();let l=0;!this._isRTL&&n[o[1]]>=r[o[1]]||this._isRTL&&n[o[1]]<=r[o[1]]?l=n[o[1]]-r[o[1]]:(!this._isRTL&&a[o[0]]<=r[o[0]]||this._isRTL&&a[o[0]]>=r[o[0]])&&(l=a[o[0]]-r[o[0]]),this._scroll(l);}_scroll(e){if(this._vertical)this._scrollerElement.scrollTop+=e;else {const i=this.getAttribute("dir")||"ltr",o=Hr(this._scrollerElement,i)+e;jc(this._scrollerElement,i,o);}}};/**
11567
11567
  * @license
11568
11568
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
11569
11569
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -11591,7 +11591,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11591
11591
  * @license
11592
11592
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
11593
11593
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11594
- */const Kc=s=>class extends Zi(Qe(M$1(s))){static get observers(){return ["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0;}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,i){if(e&&i){const o="--vaadin-select-overlay-width",r=getComputedStyle(i).getPropertyValue(o);r===""?this.style.removeProperty(o):this.style.setProperty(o,r);}}};/**
11594
+ */const Kc=s=>class extends Zi(Je(M$1(s))){static get observers(){return ["_updateOverlayWidth(opened, owner)"]}ready(){super.ready(),this.restoreFocusOnClose=!0;}_getMenuElement(){return Array.from(this.children).find(e=>e.localName!=="style")}_updateOverlayWidth(e,i){if(e&&i){const o="--vaadin-select-overlay-width",r=getComputedStyle(i).getPropertyValue(o);r===""?this.style.removeProperty(o):this.style.setProperty(o,r);}}};/**
11595
11595
  * @license
11596
11596
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
11597
11597
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -11610,7 +11610,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11610
11610
  outline: 3px solid;
11611
11611
  }
11612
11612
  }
11613
- `;m$1("vaadin-select-overlay",[Je,Gc],{moduleId:"vaadin-select-overlay-styles"});class Xc extends Kc(x(b$1)){static get is(){return "vaadin-select-overlay"}static get template(){return g$1`
11613
+ `;m$1("vaadin-select-overlay",[Xe,Gc],{moduleId:"vaadin-select-overlay-styles"});class Xc extends Kc(x(b$1)){static get is(){return "vaadin-select-overlay"}static get template(){return g$1`
11614
11614
  <div id="backdrop" part="backdrop" hidden$="[[!withBackdrop]]"></div>
11615
11615
  <div part="overlay" id="overlay" tabindex="0">
11616
11616
  <div part="content" id="content">
@@ -11699,7 +11699,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11699
11699
  * @license
11700
11700
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
11701
11701
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
11702
- */const th=s=>class extends Ze(kt$1(Wi(re(It(s))))){static get properties(){return {items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return [...super.delegateAttrs,"invalid"]}static get observers(){return ["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${Ye()}`,this._srLabelController=new rr(this),this._srLabelController.slotName="sr-label";}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1;}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new eh(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new ro(this._phoneMediaQuery,e=>{this._phone=e;})),this._tooltipController=new U$1(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController);}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items));}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate();}__itemsChanged(e,i){(e||i)&&this.requestContentUpdate();}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e);}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",i=>this._onKeyDownInside(i),!0),e.addEventListener("click",i=>{const o=i.composedPath().find(r=>r._hasVaadinItemMixin);this.__dispatchChangePending=!!(o&&o.value!==void 0&&o.value!==this.value),this.opened=!1;},!0),this.__lastMenuElement=e);}__initMenuItems(e){e.items&&(this._items=e.items);}_valueChanged(e,i){this.toggleAttribute("has-value",!!e),i!==void 0&&!this.__dispatchChangePending&&this.validate();}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly);}_onToggleMouseDown(e){e.preventDefault();}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const i=this._menuElement.selected,o=i!==void 0?i:-1,r=this._menuElement._searchKey(o,e.key);r>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=r);}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1);}_openedChanged(e,i,o){if(!(!i||!o)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),i.style.setProperty("--vaadin-select-text-field-width",`${o.offsetWidth}px`);const r=this.hasAttribute("focus-ring");this._openedWithFocusRing=r,r&&this.removeAttribute("focus-ring");}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e;}}_updateAriaExpanded(e,i){i&&i.setAttribute("aria-expanded",e?"true":"false");}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"));}__attachSelectedItem(e){let i;const o=e.getAttribute("label");o?i=this.__createItemElement({label:o}):i=e.cloneNode(!0),i._sourceItem=e,this.__appendValueItemElement(i,this.focusElement),i.selected=!0;}__createItemElement(e){const i=document.createElement(e.component||"vaadin-select-item");return e.label&&(i.textContent=e.label),e.value&&(i.value=e.value),e.disabled&&(i.disabled=e.disabled),e.className&&(i.className=e.className),i}__appendValueItemElement(e,i){i.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId);}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null);}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e);}_setCustomAriaLabelledBy(e){const i=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(i,!0);}_getLabelIdWithItemId(e){const o=(this._items?this._items[this._menuElement.selected]:!1)||this.placeholder?this._itemId:"";return e?`${e} ${o}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const i=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(i))this.__attachSelectedItem(i);else if(this.placeholder){const r=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(r,e),e.setAttribute("placeholder","");}!this._valueChanging&&i&&(this._selectedChanging=!0,this.value=i.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const o=i||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};me(e,"aria-labelledby",o),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId);}_hasContent(e){if(!e)return !1;const i=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),o=e.childElementCount>0;return i||o}_updateSelectedItem(e,i){if(i){const o=e==null?e:e.toString();this._menuElement.selected=i.reduce((r,n,a)=>r===void 0&&n.value===o?a:r,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging);}}_shouldRemoveFocus(){return !this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}checkValidity(){return !this.required||this.readonly||!!this.value}__defaultRenderer(e,i){if(!this.items||this.items.length===0){e.textContent="";return}let o=e.firstElementChild;o||(o=document.createElement("vaadin-select-list-box"),e.appendChild(o)),o.textContent="",this.items.forEach(r=>{o.appendChild(this.__createItemElement(r));});}__dispatchChange(){return Ce(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1;})}};/**
11702
+ */const th=s=>class extends Qe(At$1(Wi(se(kt$1(s))))){static get properties(){return {items:{type:Array,observer:"__itemsChanged"},opened:{type:Boolean,value:!1,notify:!0,reflectToAttribute:!0,sync:!0},renderer:{type:Object},value:{type:String,value:"",notify:!0,observer:"_valueChanged"},name:{type:String},placeholder:{type:String},readonly:{type:Boolean,value:!1,reflectToAttribute:!0},noVerticalOverlap:{type:Boolean,value:!1},_phone:Boolean,_phoneMediaQuery:{value:"(max-width: 450px), (max-height: 450px)"},_inputContainer:Object,_items:Object}}static get delegateAttrs(){return [...super.delegateAttrs,"invalid"]}static get observers(){return ["_updateAriaExpanded(opened, focusElement)","_updateSelectedItem(value, _items, placeholder)","_openedChanged(opened, _overlayElement, _inputContainer)"]}constructor(){super(),this._itemId=`value-${this.localName}-${qe()}`,this._srLabelController=new rr(this),this._srLabelController.slotName="sr-label";}disconnectedCallback(){super.disconnectedCallback(),this.opened=!1;}ready(){super.ready(),this._inputContainer=this.shadowRoot.querySelector('[part~="input-field"]'),this._valueButtonController=new eh(this),this.addController(this._valueButtonController),this.addController(this._srLabelController),this.addController(new ro(this._phoneMediaQuery,e=>{this._phone=e;})),this._tooltipController=new U$1(this),this._tooltipController.setPosition("top"),this._tooltipController.setAriaTarget(this.focusElement),this.addController(this._tooltipController);}requestContentUpdate(){this._overlayElement&&(this._overlayElement.requestContentUpdate(),this._menuElement&&this._menuElement.items&&this._updateSelectedItem(this.value,this._menuElement.items));}_requiredChanged(e){super._requiredChanged(e),e===!1&&this.validate();}__itemsChanged(e,i){(e||i)&&this.requestContentUpdate();}_assignMenuElement(e){e&&e!==this.__lastMenuElement&&(this._menuElement=e,this.__initMenuItems(e),e.addEventListener("items-changed",()=>{this.__initMenuItems(e);}),e.addEventListener("selected-changed",()=>this.__updateValueButton()),e.addEventListener("keydown",i=>this._onKeyDownInside(i),!0),e.addEventListener("click",i=>{const o=i.composedPath().find(r=>r._hasVaadinItemMixin);this.__dispatchChangePending=!!(o&&o.value!==void 0&&o.value!==this.value),this.opened=!1;},!0),this.__lastMenuElement=e);}__initMenuItems(e){e.items&&(this._items=e.items);}_valueChanged(e,i){this.toggleAttribute("has-value",!!e),i!==void 0&&!this.__dispatchChangePending&&this.validate();}_onClick(e){this.disabled||(e.preventDefault(),this.opened=!this.readonly);}_onToggleMouseDown(e){e.preventDefault();}_onKeyDown(e){if(e.target===this.focusElement&&!this.readonly&&!this.disabled&&!this.opened){if(/^(Enter|SpaceBar|\s|ArrowDown|Down|ArrowUp|Up)$/u.test(e.key))e.preventDefault(),this.opened=!0;else if(/[\p{L}\p{Nd}]/u.test(e.key)&&e.key.length===1){const i=this._menuElement.selected,o=i!==void 0?i:-1,r=this._menuElement._searchKey(o,e.key);r>=0&&(this.__dispatchChangePending=!0,this._updateAriaLive(!0),this._menuElement.selected=r);}}}_onKeyDownInside(e){/^(Tab)$/u.test(e.key)&&(this.opened=!1);}_openedChanged(e,i,o){if(!(!i||!o)){if(e){if(this.disabled||this.readonly){this.opened=!1;return}this._updateAriaLive(!1),i.style.setProperty("--vaadin-select-text-field-width",`${o.offsetWidth}px`);const r=this.hasAttribute("focus-ring");this._openedWithFocusRing=r,r&&this.removeAttribute("focus-ring");}else this.__oldOpened&&(this._openedWithFocusRing&&this.setAttribute("focus-ring",""),!this.__dispatchChangePending&&!this._keyboardActive&&this.validate());this.__oldOpened=e;}}_updateAriaExpanded(e,i){i&&i.setAttribute("aria-expanded",e?"true":"false");}_updateAriaLive(e){this.focusElement&&(e?this.focusElement.setAttribute("aria-live","polite"):this.focusElement.removeAttribute("aria-live"));}__attachSelectedItem(e){let i;const o=e.getAttribute("label");o?i=this.__createItemElement({label:o}):i=e.cloneNode(!0),i._sourceItem=e,this.__appendValueItemElement(i,this.focusElement),i.selected=!0;}__createItemElement(e){const i=document.createElement(e.component||"vaadin-select-item");return e.label&&(i.textContent=e.label),e.value&&(i.value=e.value),e.disabled&&(i.disabled=e.disabled),e.className&&(i.className=e.className),i}__appendValueItemElement(e,i){i.appendChild(e),e.removeAttribute("tabindex"),e.removeAttribute("aria-selected"),e.removeAttribute("role"),e.removeAttribute("focused"),e.removeAttribute("focus-ring"),e.removeAttribute("active"),e.setAttribute("id",this._itemId);}_accessibleNameChanged(e){this._srLabelController.setLabel(e),this._setCustomAriaLabelledBy(e?this._srLabelController.defaultId:null);}_accessibleNameRefChanged(e){this._setCustomAriaLabelledBy(e);}_setCustomAriaLabelledBy(e){const i=this._getLabelIdWithItemId(e);this._fieldAriaController.setLabelId(i,!0);}_getLabelIdWithItemId(e){const o=(this._items?this._items[this._menuElement.selected]:!1)||this.placeholder?this._itemId:"";return e?`${e} ${o}`.trim():null}__updateValueButton(){const e=this.focusElement;if(!e)return;e.innerHTML="";const i=this._items[this._menuElement.selected];if(e.removeAttribute("placeholder"),this._hasContent(i))this.__attachSelectedItem(i);else if(this.placeholder){const r=this.__createItemElement({label:this.placeholder});this.__appendValueItemElement(r,e),e.setAttribute("placeholder","");}!this._valueChanging&&i&&(this._selectedChanging=!0,this.value=i.value||"",this.__dispatchChangePending&&this.__dispatchChange(),delete this._selectedChanging);const o=i||this.placeholder?{newId:this._itemId}:{oldId:this._itemId};pe(e,"aria-labelledby",o),(this.accessibleName||this.accessibleNameRef)&&this._setCustomAriaLabelledBy(this.accessibleNameRef||this._srLabelController.defaultId);}_hasContent(e){if(!e)return !1;const i=!!(e.hasAttribute("label")?e.getAttribute("label"):e.textContent.trim()),o=e.childElementCount>0;return i||o}_updateSelectedItem(e,i){if(i){const o=e==null?e:e.toString();this._menuElement.selected=i.reduce((r,n,a)=>r===void 0&&n.value===o?a:r,void 0),this._selectedChanging||(this._valueChanging=!0,this.__updateValueButton(),delete this._valueChanging);}}_shouldRemoveFocus(){return !this.opened}_setFocused(e){super._setFocused(e),!e&&document.hasFocus()&&this.validate();}checkValidity(){return !this.required||this.readonly||!!this.value}__defaultRenderer(e,i){if(!this.items||this.items.length===0){e.textContent="";return}let o=e.firstElementChild;o||(o=document.createElement("vaadin-select-list-box"),e.appendChild(o)),o.textContent="",this.items.forEach(r=>{o.appendChild(this.__createItemElement(r));});}__dispatchChange(){return we(this,null,function*(){this.updateComplete&&(yield this.updateComplete),this.validate(),this.dispatchEvent(new CustomEvent("change",{bubbles:!0})),this.__dispatchChangePending=!1;})}};/**
11703
11703
  * @license
11704
11704
  * Copyright (c) 2017 - 2024 Vaadin Ltd.
11705
11705
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
@@ -11756,7 +11756,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11756
11756
  <div class="sr-only">
11757
11757
  <slot name="sr-label"></slot>
11758
11758
  </div>
11759
- `}static get observers(){return ["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),zt(this);}_rendererChanged(t,e){e&&(e.renderer=t||this.__defaultRenderer,this.requestContentUpdate());}_onOverlayOpen(){this._menuElement&&this._menuElement.focus();}}v$1(ih);const Wr=p$1`
11759
+ `}static get observers(){return ["_rendererChanged(renderer, _overlayElement)"]}ready(){super.ready(),Ot$1(this);}_rendererChanged(t,e){e&&(e.renderer=t||this.__defaultRenderer,this.requestContentUpdate());}_onOverlayOpen(){this._menuElement&&this._menuElement.focus();}}v$1(ih);const Wr=p$1`
11760
11760
  /* Optical centering */
11761
11761
  :host::before,
11762
11762
  :host::after {
@@ -11856,7 +11856,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
11856
11856
  transform: scale(1.02);
11857
11857
  }
11858
11858
  }
11859
- `;m$1("vaadin-dialog-overlay",[ye,Wr],{moduleId:"lumo-dialog"});m$1("vaadin-confirm-dialog-overlay",[ye,Wr,p$1`
11859
+ `;m$1("vaadin-dialog-overlay",[be,Wr],{moduleId:"lumo-dialog"});m$1("vaadin-confirm-dialog-overlay",[be,Wr,p$1`
11860
11860
  [part='header'] ::slotted(h3) {
11861
11861
  margin-top: 0 !important;
11862
11862
  margin-bottom: 0 !important;
@@ -12101,7 +12101,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12101
12101
  * @license
12102
12102
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
12103
12103
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12104
- */m$1("vaadin-confirm-dialog-overlay",[Je,sh,nh],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class ah extends Qe(M$1(x(b$1))){static get is(){return "vaadin-confirm-dialog-overlay"}static get template(){return g$1`
12104
+ */m$1("vaadin-confirm-dialog-overlay",[Xe,sh,nh],{moduleId:"vaadin-confirm-dialog-overlay-styles"});class ah extends Je(M$1(x(b$1))){static get is(){return "vaadin-confirm-dialog-overlay"}static get template(){return g$1`
12105
12105
  <div part="backdrop" id="backdrop" hidden$="[[!withBackdrop]]"></div>
12106
12106
  <div part="overlay" id="overlay" tabindex="0">
12107
12107
  <section id="resizerContainer" class="resizer-container">
@@ -12122,7 +12122,7 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12122
12122
  </footer>
12123
12123
  </section>
12124
12124
  </div>
12125
- `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","");}}v$1(ah);class lh extends rh(oh(Ze(wt$1(b$1)))){static get is(){return "vaadin-confirm-dialog-dialog"}static get template(){return g$1`
12125
+ `}ready(){super.ready(),this.setAttribute("has-header",""),this.setAttribute("has-footer","");}}v$1(ah);class lh extends rh(oh(Qe(xt$1(b$1)))){static get is(){return "vaadin-confirm-dialog-dialog"}static get template(){return g$1`
12126
12126
  <style>
12127
12127
  :host {
12128
12128
  display: none;
@@ -12147,11 +12147,11 @@ subject to an additional IP rights grant found at http://polymer.github.io/PATEN
12147
12147
  * @license
12148
12148
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
12149
12149
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12150
- */const dh=s=>class extends s{static get properties(){return {accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return ["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this);}get __slottedNodes(){return [this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new T$1(this,"header","h3",{initializer:e=>{this._headerNode=e;}}),this.addController(this._headerController),this._messageController=new T$1(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const i=document.createElement("div");i.style.display="contents";const o=`confirm-dialog-message-${Ye()}`;i.id=o,this.appendChild(i),i.appendChild(e),this._messageNodes=[...this._messageNodes,i];}}),this.addController(this._messageController),this._cancelController=new T$1(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e);}}),this.addController(this._cancelController),this._rejectController=new T$1(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e);}}),this.addController(this._rejectController),this._confirmController=new T$1(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e);}}),this.addController(this._confirmController);}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog");}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(o=>{e.appendChild(o);});const i=e.querySelector('[slot="confirm-button"]');i&&i.focus();}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e);}),this.dispatchEvent(new CustomEvent("closed"));}__accessibleDescriptionRefChanged(e,i,o){!e||!i||(o!==void 0?me(e,"aria-describedby",{newId:o,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):i.forEach(r=>{me(e,"aria-describedby",{newId:r.id});}),this.__oldAccessibleDescriptionRef=o);}__setupSlottedButton(e,i){const o=`_${e}Button`,r=`__${e}`;this[o]&&this[o]!==i&&this[o].remove(),i.addEventListener("click",this[r]),this[o]=i;}__updateCancelButton(e,i,o,r){e&&(e===this._cancelController.defaultNode&&(e.textContent=i,e.setAttribute("theme",o)),e.toggleAttribute("hidden",!r));}__updateConfirmButton(e,i,o){e&&e===this._confirmController.defaultNode&&(e.textContent=i,e.setAttribute("theme",o));}__updateHeaderNode(e,i){e&&e===this._headerController.defaultNode&&(e.textContent=i);}__updateMessageNodes(e,i){if(e&&e.length>0){const o=e.find(r=>this._messageController.defaultNode&&r===this._messageController.defaultNode.parentElement);o&&(o.firstChild.textContent=i);}}__updateRejectButton(e,i,o,r){e&&(e===this._rejectController.defaultNode&&(e.textContent=i,e.setAttribute("theme",o)),e.toggleAttribute("hidden",!r));}_escPressed(e){e.defaultPrevented||this.__cancel();}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1;}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1;}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1;}_getAriaLabel(e){return e||"confirmation"}};/**
12150
+ */const dh=s=>class extends s{static get properties(){return {accessibleDescriptionRef:{type:String},opened:{type:Boolean,value:!1,notify:!0},header:{type:String,value:""},message:{type:String,value:""},confirmText:{type:String,value:"Confirm"},confirmTheme:{type:String,value:"primary"},noCloseOnEsc:{type:Boolean,value:!1},rejectButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},rejectText:{type:String,value:"Reject"},rejectTheme:{type:String,value:"error tertiary"},cancelButtonVisible:{type:Boolean,reflectToAttribute:!0,value:!1},cancelText:{type:String,value:"Cancel"},cancelTheme:{type:String,value:"tertiary"},overlayClass:{type:String},_cancelButton:{type:Object},_confirmButton:{type:Object},_headerNode:{type:Object},_messageNodes:{type:Array,value:()=>[]},_overlayElement:{type:Object,sync:!0},_rejectButton:{type:Object},_contentHeight:{type:String},_contentWidth:{type:String}}}static get observers(){return ["__updateConfirmButton(_confirmButton, confirmText, confirmTheme)","__updateCancelButton(_cancelButton, cancelText, cancelTheme, cancelButtonVisible)","__updateHeaderNode(_headerNode, header)","__updateMessageNodes(_messageNodes, message)","__updateRejectButton(_rejectButton, rejectText, rejectTheme, rejectButtonVisible)","__accessibleDescriptionRefChanged(_overlayElement, _messageNodes, accessibleDescriptionRef)"]}constructor(){super(),this.__cancel=this.__cancel.bind(this),this.__confirm=this.__confirm.bind(this),this.__reject=this.__reject.bind(this);}get __slottedNodes(){return [this._headerNode,...this._messageNodes,this._cancelButton,this._confirmButton,this._rejectButton]}ready(){super.ready(),this._headerController=new T$1(this,"header","h3",{initializer:e=>{this._headerNode=e;}}),this.addController(this._headerController),this._messageController=new T$1(this,"","div",{multiple:!0,observe:!1,initializer:e=>{const i=document.createElement("div");i.style.display="contents";const o=`confirm-dialog-message-${qe()}`;i.id=o,this.appendChild(i),i.appendChild(e),this._messageNodes=[...this._messageNodes,i];}}),this.addController(this._messageController),this._cancelController=new T$1(this,"cancel-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("cancel",e);}}),this.addController(this._cancelController),this._rejectController=new T$1(this,"reject-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("reject",e);}}),this.addController(this._rejectController),this._confirmController=new T$1(this,"confirm-button","vaadin-button",{initializer:e=>{this.__setupSlottedButton("confirm",e);}}),this.addController(this._confirmController);}_initOverlay(e){e.addEventListener("vaadin-overlay-escape-press",this._escPressed.bind(this)),e.addEventListener("vaadin-overlay-open",()=>this.__onDialogOpened()),e.addEventListener("vaadin-overlay-closed",()=>this.__onDialogClosed()),e.setAttribute("role","alertdialog");}__onDialogOpened(){const e=this._overlayElement;this.__slottedNodes.forEach(o=>{e.appendChild(o);});const i=e.querySelector('[slot="confirm-button"]');i&&i.focus();}__onDialogClosed(){this.__slottedNodes.forEach(e=>{this.appendChild(e);}),this.dispatchEvent(new CustomEvent("closed"));}__accessibleDescriptionRefChanged(e,i,o){!e||!i||(o!==void 0?pe(e,"aria-describedby",{newId:o,oldId:this.__oldAccessibleDescriptionRef,fromUser:!0}):i.forEach(r=>{pe(e,"aria-describedby",{newId:r.id});}),this.__oldAccessibleDescriptionRef=o);}__setupSlottedButton(e,i){const o=`_${e}Button`,r=`__${e}`;this[o]&&this[o]!==i&&this[o].remove(),i.addEventListener("click",this[r]),this[o]=i;}__updateCancelButton(e,i,o,r){e&&(e===this._cancelController.defaultNode&&(e.textContent=i,e.setAttribute("theme",o)),e.toggleAttribute("hidden",!r));}__updateConfirmButton(e,i,o){e&&e===this._confirmController.defaultNode&&(e.textContent=i,e.setAttribute("theme",o));}__updateHeaderNode(e,i){e&&e===this._headerController.defaultNode&&(e.textContent=i);}__updateMessageNodes(e,i){if(e&&e.length>0){const o=e.find(r=>this._messageController.defaultNode&&r===this._messageController.defaultNode.parentElement);o&&(o.firstChild.textContent=i);}}__updateRejectButton(e,i,o,r){e&&(e===this._rejectController.defaultNode&&(e.textContent=i,e.setAttribute("theme",o)),e.toggleAttribute("hidden",!r));}_escPressed(e){e.defaultPrevented||this.__cancel();}__confirm(){this.dispatchEvent(new CustomEvent("confirm")),this.opened=!1;}__cancel(){this.dispatchEvent(new CustomEvent("cancel")),this.opened=!1;}__reject(){this.dispatchEvent(new CustomEvent("reject")),this.opened=!1;}_getAriaLabel(e){return e||"confirmation"}};/**
12151
12151
  * @license
12152
12152
  * Copyright (c) 2018 - 2024 Vaadin Ltd.
12153
12153
  * This program is available under Apache License Version 2.0, available at https://vaadin.com/license/
12154
- */class ch extends dh(N$1(wt$1(F$1(b$1)))){static get template(){return g$1`
12154
+ */class ch extends dh(N$1(xt$1(F$1(b$1)))){static get template(){return g$1`
12155
12155
  <style>
12156
12156
  :host,
12157
12157
  [hidden] {
@@ -13967,19 +13967,32 @@ const checkEmptyValue = (val) => {
13967
13967
  return false;
13968
13968
  };
13969
13969
 
13970
- var PlayerConsentsBpocBWYo = {};
13970
+ var PlayerConsentsBtszdxkn = {};
13971
13971
 
13972
- var GeneralAnimationLoadingCvjpSnS0 = {};
13972
+ var GeneralAnimationLoadingDLDqBYF = {};
13973
13973
 
13974
- var st=Object.defineProperty,it=Object.defineProperties;var ct=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var rt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var S=(e,t,n)=>t in e?st(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))rt.call(t,n)&&S(e,n,t[n]);if(H)for(var n of H(t))ot.call(t,n)&&S(e,n,t[n]);return e},R=(e,t)=>it(e,ct(t));var f=(e,t,n)=>(S(e,typeof t!="symbol"?t+"":t,n),n);var U=(e,t,n)=>new Promise((s,c)=>{var i=o=>{try{u(n.next(o));}catch(l){c(l);}},r=o=>{try{u(n.throw(o));}catch(l){c(l);}},u=o=>o.done?s(o.value):Promise.resolve(o.value).then(i,r);u((n=n.apply(e,t)).next());});function h(){}function I(e){return e()}function z(){return Object.create(null)}function b(e){e.forEach(I);}function N(e){return typeof e=="function"}function D(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function lt(e){return Object.keys(e).length===0}function F(e,...t){if(e==null){for(const s of t)s(void 0);return h}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ut(e,t,n){e.$$.on_destroy.push(F(t,n));}function ft(e){return e}function J(e,t){e.appendChild(t);}function V(e,t,n){const s=dt(e);if(!s.getElementById(t)){const c=w("style");c.id=t,c.textContent=n,ht(s,c);}}function dt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ht(e,t){return J(e.head||e,t),t.sheet}function v(e,t,n){e.insertBefore(t,n||null);}function y(e){e.parentNode&&e.parentNode.removeChild(e);}function at(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t);}function w(e){return document.createElement(e)}function q(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function T(e){return document.createTextNode(e)}function $t(){return T(" ")}function mt(){return T("")}function _t(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function M(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n);}function pt(e,t,n){const s=t.toLowerCase();s in e?e[s]=typeof e[s]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:M(e,t,n);}function gt(e){return Array.from(e.childNodes)}function bt(e,t){t=""+t,e.data!==t&&(e.data=t);}class yt{constructor(t=!1){f(this,"is_svg",!1);f(this,"e");f(this,"n");f(this,"t");f(this,"a");this.is_svg=t,this.e=this.n=null;}c(t){this.h(t);}m(t,n,s=null){this.e||(this.is_svg?this.e=q(n.nodeName):this.e=w(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(s);}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes);}i(t){for(let n=0;n<this.n.length;n+=1)v(this.t,this.n[n],t);}p(t){this.d(),this.h(t),this.i(this.a);}d(){this.n.forEach(y);}}function wt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0;}),t}let g;function p(e){g=e;}function xt(){if(!g)throw new Error("Function called outside component initialization");return g}function K(e){xt().$$.on_mount.push(e);}const $=[],L=[];let m=[];const G=[],Et=Promise.resolve();let A=!1;function Lt(){A||(A=!0,Et.then(_));}function C(e){m.push(e);}const k=new Set;let a=0;function _(){if(a!==0)return;const e=g;do{try{for(;a<$.length;){const t=$[a];a++,p(t),vt(t.$$);}}catch(t){throw $.length=0,a=0,t}for(p(null),$.length=0,a=0;L.length;)L.pop()();for(let t=0;t<m.length;t+=1){const n=m[t];k.has(n)||(k.add(n),n());}m.length=0;}while($.length);for(;G.length;)G.pop()();A=!1,k.clear(),p(e);}function vt(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C);}}function St(e){const t=[],n=[];m.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),m=t;}const kt=new Set;function At(e,t){e&&e.i&&(kt.delete(e),e.i(t));}function Ct(e){return (e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Nt(e,t,n){const{fragment:s,after_update:c}=e.$$;s&&s.m(t,n),C(()=>{const i=e.$$.on_mount.map(I).filter(N);e.$$.on_destroy?e.$$.on_destroy.push(...i):b(i),e.$$.on_mount=[];}),c.forEach(C);}function Tt(e,t){const n=e.$$;n.fragment!==null&&(St(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]);}function Mt(e,t){e.$$.dirty[0]===-1&&($.push(e),Lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function Q(e,t,n,s,c,i,r=null,u=[-1]){const o=g;p(e);const l=e.$$={fragment:null,ctx:[],props:i,update:h,not_equal:c,bound:z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:z(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};r&&r(l.root);let x=!1;if(l.ctx=n?n(e,t.props||{},(d,j,...O)=>{const P=O.length?O[0]:j;return l.ctx&&c(l.ctx[d],l.ctx[d]=P)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](P),x&&Mt(e,d)),j}):[],l.update(),x=!0,b(l.before_update),l.fragment=s?s(l.ctx):!1,t.target){if(t.hydrate){const d=gt(t.target);l.fragment&&l.fragment.l(d),d.forEach(y);}else l.fragment&&l.fragment.c();t.intro&&At(e.$$.fragment),Nt(e,t.target,t.anchor),_();}p(o);}let W;typeof HTMLElement=="function"&&(W=class extends HTMLElement{constructor(t,n,s){super();f(this,"$$ctor");f(this,"$$s");f(this,"$$c");f(this,"$$cn",!1);f(this,"$$d",{});f(this,"$$r",!1);f(this,"$$p_d",{});f(this,"$$l",{});f(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"});}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const c=this.$$c.$on(t,n);this.$$l_u.set(n,c);}super.addEventListener(t,n,s);}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const c=this.$$l_u.get(n);c&&(c(),this.$$l_u.delete(n));}}connectedCallback(){return U(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return ()=>{let r;return {c:function(){r=w("slot"),i!=="default"&&M(r,"name",i);},m:function(l,x){v(l,r,x);},d:function(l){l&&y(r);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=wt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const r=this.$$g_p(i.name);r in this.$$d||(this.$$d[r]=E(r,i.value,this.$$p_d,"toProp"));}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:R(B({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const c=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const r=E(i,this.$$d[i],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,r);}this.$$r=!1;};this.$$c.$$.after_update.push(c),c();for(const i in this.$$l)for(const r of this.$$l[i]){const u=this.$$c.$on(i,r);this.$$l_u.set(r,u);}this.$$l={};}})}attributeChangedCallback(t,n,s){var c;this.$$r||(t=this.$$g_p(t),this.$$d[t]=E(t,s,this.$$p_d,"toProp"),(c=this.$$c)==null||c.$set({[t]:this.$$d[t]}));}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0);});}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function E(e,t,n,s){var i;const c=(i=n[e])==null?void 0:i.type;if(t=c==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(c){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(c){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function X(e,t,n,s,c,i){let r=class extends W{constructor(){super(e,n,c),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(r.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var l;o=E(u,o,t),this.$$d[u]=o,(l=this.$$c)==null||l.$set({[u]:o});}});}),s.forEach(u=>{Object.defineProperty(r.prototype,u,{get(){var o;return (o=this.$$c)==null?void 0:o[u]}});}),e.element=r,r}class Y{constructor(){f(this,"$$");f(this,"$$set");}$destroy(){Tt(this,1),this.$destroy=h;}$on(t,n){if(!N(n))return h;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const c=s.indexOf(n);c!==-1&&s.splice(c,1);}}$set(t){this.$$set&&!lt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const jt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(jt);function Z(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n);}}function tt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const c=document.createElement("style");c.innerHTML=s,e&&e.appendChild(c);}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s);});}function et(e,t,n){if(window.emMessageBus){const s=document.createElement("style");window.emMessageBus.subscribe(t,c=>{s.innerHTML=c,e&&e.appendChild(s);});}}function Ot(e){V(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");}function Pt(e){let t;return {c(){t=w("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(n,s){v(n,t,s),e[4](t);},p:h,i:h,o:h,d(n){n&&y(t),e[4](null);}}}function Ht(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:c=""}=t,{mbsource:i}=t,r;K(()=>()=>{});function u(o){L[o?"unshift":"push"](()=>{r=o,n(0,r);});}return e.$$set=o=>{"clientstyling"in o&&n(1,s=o.clientstyling),"clientstylingurl"in o&&n(2,c=o.clientstylingurl),"mbsource"in o&&n(3,i=o.mbsource);},e.$$.update=()=>{e.$$.dirty&3&&s&&r&&Z(r,s),e.$$.dirty&5&&c&&r&&tt(r,c),e.$$.dirty&9&&i&&r&&et(r,`${i}.Style`);},[r,s,c,i,u]}class nt extends Y{constructor(t){super(),Q(this,t,Ht,Pt,D,{clientstyling:1,clientstylingurl:2,mbsource:3},Ot);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),_();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),_();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),_();}}X(nt,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);const Bt=Object.freeze(Object.defineProperty({__proto__:null,default:nt},Symbol.toStringTag,{value:"Module"}));GeneralAnimationLoadingCvjpSnS0.GeneralAnimationLoading_ce=Bt;GeneralAnimationLoadingCvjpSnS0.HtmlTag=yt;GeneralAnimationLoadingCvjpSnS0.SvelteComponent=Y;GeneralAnimationLoadingCvjpSnS0.append=J;GeneralAnimationLoadingCvjpSnS0.append_styles=V;GeneralAnimationLoadingCvjpSnS0.attr=M;GeneralAnimationLoadingCvjpSnS0.binding_callbacks=L;GeneralAnimationLoadingCvjpSnS0.component_subscribe=ut;GeneralAnimationLoadingCvjpSnS0.create_custom_element=X;GeneralAnimationLoadingCvjpSnS0.destroy_each=at;GeneralAnimationLoadingCvjpSnS0.detach=y;GeneralAnimationLoadingCvjpSnS0.element=w;GeneralAnimationLoadingCvjpSnS0.empty=mt;GeneralAnimationLoadingCvjpSnS0.ensure_array_like=Ct;GeneralAnimationLoadingCvjpSnS0.flush=_;GeneralAnimationLoadingCvjpSnS0.init=Q;GeneralAnimationLoadingCvjpSnS0.insert=v;GeneralAnimationLoadingCvjpSnS0.is_function=N;GeneralAnimationLoadingCvjpSnS0.listen=_t;GeneralAnimationLoadingCvjpSnS0.noop=h;GeneralAnimationLoadingCvjpSnS0.null_to_empty=ft;GeneralAnimationLoadingCvjpSnS0.onMount=K;GeneralAnimationLoadingCvjpSnS0.run_all=b;GeneralAnimationLoadingCvjpSnS0.safe_not_equal=D;GeneralAnimationLoadingCvjpSnS0.setClientStyling=Z;GeneralAnimationLoadingCvjpSnS0.setClientStylingURL=tt;GeneralAnimationLoadingCvjpSnS0.setStreamStyling=et;GeneralAnimationLoadingCvjpSnS0.set_custom_element_data=pt;GeneralAnimationLoadingCvjpSnS0.set_data=bt;GeneralAnimationLoadingCvjpSnS0.space=$t;GeneralAnimationLoadingCvjpSnS0.subscribe=F;GeneralAnimationLoadingCvjpSnS0.svg_element=q;GeneralAnimationLoadingCvjpSnS0.text=T;
13974
+ var st=Object.defineProperty,it=Object.defineProperties;var ct=Object.getOwnPropertyDescriptors;var H=Object.getOwnPropertySymbols;var rt=Object.prototype.hasOwnProperty,ot=Object.prototype.propertyIsEnumerable;var S=(e,t,n)=>t in e?st(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,B=(e,t)=>{for(var n in t||(t={}))rt.call(t,n)&&S(e,n,t[n]);if(H)for(var n of H(t))ot.call(t,n)&&S(e,n,t[n]);return e},R=(e,t)=>it(e,ct(t));var f=(e,t,n)=>(S(e,typeof t!="symbol"?t+"":t,n),n);var U=(e,t,n)=>new Promise((s,c)=>{var i=o=>{try{u(n.next(o));}catch(l){c(l);}},r=o=>{try{u(n.throw(o));}catch(l){c(l);}},u=o=>o.done?s(o.value):Promise.resolve(o.value).then(i,r);u((n=n.apply(e,t)).next());});function h(){}function I(e){return e()}function z(){return Object.create(null)}function b(e){e.forEach(I);}function N(e){return typeof e=="function"}function D(e,t){return e!=e?t==t:e!==t||e&&typeof e=="object"||typeof e=="function"}function lt(e){return Object.keys(e).length===0}function F(e,...t){if(e==null){for(const s of t)s(void 0);return h}const n=e.subscribe(...t);return n.unsubscribe?()=>n.unsubscribe():n}function ut(e,t,n){e.$$.on_destroy.push(F(t,n));}function ft(e){return e==null?"":e}function J(e,t){e.appendChild(t);}function V(e,t,n){const s=dt(e);if(!s.getElementById(t)){const c=w("style");c.id=t,c.textContent=n,ht(s,c);}}function dt(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function ht(e,t){return J(e.head||e,t),t.sheet}function v(e,t,n){e.insertBefore(t,n||null);}function y(e){e.parentNode&&e.parentNode.removeChild(e);}function at(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t);}function w(e){return document.createElement(e)}function q(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function T(e){return document.createTextNode(e)}function $t(){return T(" ")}function mt(){return T("")}function _t(e,t,n,s){return e.addEventListener(t,n,s),()=>e.removeEventListener(t,n,s)}function M(e,t,n){n==null?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n);}function pt(e,t,n){const s=t.toLowerCase();s in e?e[s]=typeof e[s]=="boolean"&&n===""?!0:n:t in e?e[t]=typeof e[t]=="boolean"&&n===""?!0:n:M(e,t,n);}function gt(e){return Array.from(e.childNodes)}function bt(e,t){t=""+t,e.data!==t&&(e.data=t);}class yt{constructor(t=!1){f(this,"is_svg",!1);f(this,"e");f(this,"n");f(this,"t");f(this,"a");this.is_svg=t,this.e=this.n=null;}c(t){this.h(t);}m(t,n,s=null){this.e||(this.is_svg?this.e=q(n.nodeName):this.e=w(n.nodeType===11?"TEMPLATE":n.nodeName),this.t=n.tagName!=="TEMPLATE"?n:n.content,this.c(t)),this.i(s);}h(t){this.e.innerHTML=t,this.n=Array.from(this.e.nodeName==="TEMPLATE"?this.e.content.childNodes:this.e.childNodes);}i(t){for(let n=0;n<this.n.length;n+=1)v(this.t,this.n[n],t);}p(t){this.d(),this.h(t),this.i(this.a);}d(){this.n.forEach(y);}}function wt(e){const t={};return e.childNodes.forEach(n=>{t[n.slot||"default"]=!0;}),t}let g;function p(e){g=e;}function xt(){if(!g)throw new Error("Function called outside component initialization");return g}function K(e){xt().$$.on_mount.push(e);}const $=[],L=[];let m=[];const G=[],Et=Promise.resolve();let A=!1;function Lt(){A||(A=!0,Et.then(_));}function C(e){m.push(e);}const k=new Set;let a=0;function _(){if(a!==0)return;const e=g;do{try{for(;a<$.length;){const t=$[a];a++,p(t),vt(t.$$);}}catch(t){throw $.length=0,a=0,t}for(p(null),$.length=0,a=0;L.length;)L.pop()();for(let t=0;t<m.length;t+=1){const n=m[t];k.has(n)||(k.add(n),n());}m.length=0;}while($.length);for(;G.length;)G.pop()();A=!1,k.clear(),p(e);}function vt(e){if(e.fragment!==null){e.update(),b(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(C);}}function St(e){const t=[],n=[];m.forEach(s=>e.indexOf(s)===-1?t.push(s):n.push(s)),n.forEach(s=>s()),m=t;}const kt=new Set;function At(e,t){e&&e.i&&(kt.delete(e),e.i(t));}function Ct(e){return (e==null?void 0:e.length)!==void 0?e:Array.from(e)}function Nt(e,t,n){const{fragment:s,after_update:c}=e.$$;s&&s.m(t,n),C(()=>{const i=e.$$.on_mount.map(I).filter(N);e.$$.on_destroy?e.$$.on_destroy.push(...i):b(i),e.$$.on_mount=[];}),c.forEach(C);}function Tt(e,t){const n=e.$$;n.fragment!==null&&(St(n.after_update),b(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[]);}function Mt(e,t){e.$$.dirty[0]===-1&&($.push(e),Lt(),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31;}function Q(e,t,n,s,c,i,r=null,u=[-1]){const o=g;p(e);const l=e.$$={fragment:null,ctx:[],props:i,update:h,not_equal:c,bound:z(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(t.context||(o?o.$$.context:[])),callbacks:z(),dirty:u,skip_bound:!1,root:t.target||o.$$.root};r&&r(l.root);let x=!1;if(l.ctx=n?n(e,t.props||{},(d,j,...O)=>{const P=O.length?O[0]:j;return l.ctx&&c(l.ctx[d],l.ctx[d]=P)&&(!l.skip_bound&&l.bound[d]&&l.bound[d](P),x&&Mt(e,d)),j}):[],l.update(),x=!0,b(l.before_update),l.fragment=s?s(l.ctx):!1,t.target){if(t.hydrate){const d=gt(t.target);l.fragment&&l.fragment.l(d),d.forEach(y);}else l.fragment&&l.fragment.c();t.intro&&At(e.$$.fragment),Nt(e,t.target,t.anchor),_();}p(o);}let W;typeof HTMLElement=="function"&&(W=class extends HTMLElement{constructor(t,n,s){super();f(this,"$$ctor");f(this,"$$s");f(this,"$$c");f(this,"$$cn",!1);f(this,"$$d",{});f(this,"$$r",!1);f(this,"$$p_d",{});f(this,"$$l",{});f(this,"$$l_u",new Map);this.$$ctor=t,this.$$s=n,s&&this.attachShadow({mode:"open"});}addEventListener(t,n,s){if(this.$$l[t]=this.$$l[t]||[],this.$$l[t].push(n),this.$$c){const c=this.$$c.$on(t,n);this.$$l_u.set(n,c);}super.addEventListener(t,n,s);}removeEventListener(t,n,s){if(super.removeEventListener(t,n,s),this.$$c){const c=this.$$l_u.get(n);c&&(c(),this.$$l_u.delete(n));}}connectedCallback(){return U(this,null,function*(){if(this.$$cn=!0,!this.$$c){let t=function(i){return ()=>{let r;return {c:function(){r=w("slot"),i!=="default"&&M(r,"name",i);},m:function(l,x){v(l,r,x);},d:function(l){l&&y(r);}}}};if(yield Promise.resolve(),!this.$$cn||this.$$c)return;const n={},s=wt(this);for(const i of this.$$s)i in s&&(n[i]=[t(i)]);for(const i of this.attributes){const r=this.$$g_p(i.name);r in this.$$d||(this.$$d[r]=E(r,i.value,this.$$p_d,"toProp"));}for(const i in this.$$p_d)!(i in this.$$d)&&this[i]!==void 0&&(this.$$d[i]=this[i],delete this[i]);this.$$c=new this.$$ctor({target:this.shadowRoot||this,props:R(B({},this.$$d),{$$slots:n,$$scope:{ctx:[]}})});const c=()=>{this.$$r=!0;for(const i in this.$$p_d)if(this.$$d[i]=this.$$c.$$.ctx[this.$$c.$$.props[i]],this.$$p_d[i].reflect){const r=E(i,this.$$d[i],this.$$p_d,"toAttribute");r==null?this.removeAttribute(this.$$p_d[i].attribute||i):this.setAttribute(this.$$p_d[i].attribute||i,r);}this.$$r=!1;};this.$$c.$$.after_update.push(c),c();for(const i in this.$$l)for(const r of this.$$l[i]){const u=this.$$c.$on(i,r);this.$$l_u.set(r,u);}this.$$l={};}})}attributeChangedCallback(t,n,s){var c;this.$$r||(t=this.$$g_p(t),this.$$d[t]=E(t,s,this.$$p_d,"toProp"),(c=this.$$c)==null||c.$set({[t]:this.$$d[t]}));}disconnectedCallback(){this.$$cn=!1,Promise.resolve().then(()=>{!this.$$cn&&this.$$c&&(this.$$c.$destroy(),this.$$c=void 0);});}$$g_p(t){return Object.keys(this.$$p_d).find(n=>this.$$p_d[n].attribute===t||!this.$$p_d[n].attribute&&n.toLowerCase()===t)||t}});function E(e,t,n,s){var i;const c=(i=n[e])==null?void 0:i.type;if(t=c==="Boolean"&&typeof t!="boolean"?t!=null:t,!s||!n[e])return t;if(s==="toAttribute")switch(c){case"Object":case"Array":return t==null?null:JSON.stringify(t);case"Boolean":return t?"":null;case"Number":return t==null?null:t;default:return t}else switch(c){case"Object":case"Array":return t&&JSON.parse(t);case"Boolean":return t;case"Number":return t!=null?+t:t;default:return t}}function X(e,t,n,s,c,i){let r=class extends W{constructor(){super(e,n,c),this.$$p_d=t;}static get observedAttributes(){return Object.keys(t).map(u=>(t[u].attribute||u).toLowerCase())}};return Object.keys(t).forEach(u=>{Object.defineProperty(r.prototype,u,{get(){return this.$$c&&u in this.$$c?this.$$c[u]:this.$$d[u]},set(o){var l;o=E(u,o,t),this.$$d[u]=o,(l=this.$$c)==null||l.$set({[u]:o});}});}),s.forEach(u=>{Object.defineProperty(r.prototype,u,{get(){var o;return (o=this.$$c)==null?void 0:o[u]}});}),e.element=r,r}class Y{constructor(){f(this,"$$");f(this,"$$set");}$destroy(){Tt(this,1),this.$destroy=h;}$on(t,n){if(!N(n))return h;const s=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return s.push(n),()=>{const c=s.indexOf(n);c!==-1&&s.splice(c,1);}}$set(t){this.$$set&&!lt(t)&&(this.$$.skip_bound=!0,this.$$set(t),this.$$.skip_bound=!1);}}const jt="4";typeof window!="undefined"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(jt);function Z(e,t){if(e){const n=document.createElement("style");n.innerHTML=t,e.appendChild(n);}}function tt(e,t){if(!e||!t)return;const n=new URL(t);fetch(n.href).then(s=>s.text()).then(s=>{const c=document.createElement("style");c.innerHTML=s,e&&e.appendChild(c);}).catch(s=>{console.error("There was an error while trying to load client styling from URL",s);});}function et(e,t,n){if(window.emMessageBus){const s=document.createElement("style");window.emMessageBus.subscribe(t,c=>{s.innerHTML=c,e&&e.appendChild(s);});}}function Ot(e){V(e,"svelte-gnt082",".LoaderContainer{display:flex;justify-content:center}.lds-ellipsis{display:inline-block;position:relative;width:80px;height:80px}.lds-ellipsis div{position:absolute;top:33px;width:13px;height:13px;border-radius:50%;background:#d1d1d1;animation-timing-function:cubic-bezier(0, 1, 1, 0)}.lds-ellipsis div:nth-child(1){left:8px;animation:lds-ellipsis1 0.6s infinite}.lds-ellipsis div:nth-child(2){left:8px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(3){left:32px;animation:lds-ellipsis2 0.6s infinite}.lds-ellipsis div:nth-child(4){left:56px;animation:lds-ellipsis3 0.6s infinite}@keyframes lds-ellipsis1{0%{transform:scale(0)}100%{transform:scale(1)}}@keyframes lds-ellipsis3{0%{transform:scale(1)}100%{transform:scale(0)}}@keyframes lds-ellipsis2{0%{transform:translate(0, 0)}100%{transform:translate(24px, 0)}}");}function Pt(e){let t;return {c(){t=w("div"),t.innerHTML='<section class="LoaderContainer"><div class="lds-ellipsis"><div></div><div></div><div></div><div></div></div></section>';},m(n,s){v(n,t,s),e[4](t);},p:h,i:h,o:h,d(n){n&&y(t),e[4](null);}}}function Ht(e,t,n){let{clientstyling:s=""}=t,{clientstylingurl:c=""}=t,{mbsource:i}=t,r;K(()=>()=>{});function u(o){L[o?"unshift":"push"](()=>{r=o,n(0,r);});}return e.$$set=o=>{"clientstyling"in o&&n(1,s=o.clientstyling),"clientstylingurl"in o&&n(2,c=o.clientstylingurl),"mbsource"in o&&n(3,i=o.mbsource);},e.$$.update=()=>{e.$$.dirty&3&&s&&r&&Z(r,s),e.$$.dirty&5&&c&&r&&tt(r,c),e.$$.dirty&9&&i&&r&&et(r,`${i}.Style`);},[r,s,c,i,u]}class nt extends Y{constructor(t){super(),Q(this,t,Ht,Pt,D,{clientstyling:1,clientstylingurl:2,mbsource:3},Ot);}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),_();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),_();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),_();}}X(nt,{clientstyling:{},clientstylingurl:{},mbsource:{}},[],[],!0);const Bt=Object.freeze(Object.defineProperty({__proto__:null,default:nt},Symbol.toStringTag,{value:"Module"}));GeneralAnimationLoadingDLDqBYF.GeneralAnimationLoading_ce=Bt;GeneralAnimationLoadingDLDqBYF.HtmlTag=yt;GeneralAnimationLoadingDLDqBYF.SvelteComponent=Y;GeneralAnimationLoadingDLDqBYF.append=J;GeneralAnimationLoadingDLDqBYF.append_styles=V;GeneralAnimationLoadingDLDqBYF.attr=M;GeneralAnimationLoadingDLDqBYF.binding_callbacks=L;GeneralAnimationLoadingDLDqBYF.component_subscribe=ut;GeneralAnimationLoadingDLDqBYF.create_custom_element=X;GeneralAnimationLoadingDLDqBYF.destroy_each=at;GeneralAnimationLoadingDLDqBYF.detach=y;GeneralAnimationLoadingDLDqBYF.element=w;GeneralAnimationLoadingDLDqBYF.empty=mt;GeneralAnimationLoadingDLDqBYF.ensure_array_like=Ct;GeneralAnimationLoadingDLDqBYF.flush=_;GeneralAnimationLoadingDLDqBYF.init=Q;GeneralAnimationLoadingDLDqBYF.insert=v;GeneralAnimationLoadingDLDqBYF.is_function=N;GeneralAnimationLoadingDLDqBYF.listen=_t;GeneralAnimationLoadingDLDqBYF.noop=h;GeneralAnimationLoadingDLDqBYF.null_to_empty=ft;GeneralAnimationLoadingDLDqBYF.onMount=K;GeneralAnimationLoadingDLDqBYF.run_all=b;GeneralAnimationLoadingDLDqBYF.safe_not_equal=D;GeneralAnimationLoadingDLDqBYF.setClientStyling=Z;GeneralAnimationLoadingDLDqBYF.setClientStylingURL=tt;GeneralAnimationLoadingDLDqBYF.setStreamStyling=et;GeneralAnimationLoadingDLDqBYF.set_custom_element_data=pt;GeneralAnimationLoadingDLDqBYF.set_data=bt;GeneralAnimationLoadingDLDqBYF.space=$t;GeneralAnimationLoadingDLDqBYF.subscribe=F;GeneralAnimationLoadingDLDqBYF.svg_element=q;GeneralAnimationLoadingDLDqBYF.text=T;
13975
13975
 
13976
13976
  (function (exports) {
13977
- var gr=Object.defineProperty,fr=Object.defineProperties;var _r=Object.getOwnPropertyDescriptors;var qe=Object.getOwnPropertySymbols;var yr=Object.prototype.hasOwnProperty,vr=Object.prototype.propertyIsEnumerable;var We=(e,t,r)=>t in e?gr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,D=(e,t)=>{for(var r in t||(t={}))yr.call(t,r)&&We(e,r,t[r]);if(qe)for(var r of qe(t))vr.call(t,r)&&We(e,r,t[r]);return e},Ze=(e,t)=>fr(e,_r(t));var ne=(e,t,r)=>new Promise((n,i)=>{var o=d=>{try{l(r.next(d));}catch(h){i(h);}},s=d=>{try{l(r.throw(d));}catch(h){i(h);}},l=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,s);l((r=r.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=GeneralAnimationLoadingCvjpSnS0,X=[];function kr(e,t){return {subscribe:ke(e,t).subscribe}}function ke(e,t=a.noop){let r;const n=new Set;function i(l){if(a.safe_not_equal(e,l)&&(e=l,r)){const d=!X.length;for(const h of n)h[1](),X.push(h,e);if(d){for(let h=0;h<X.length;h+=2)X[h][0](X[h+1]);X.length=0;}}}function o(l){i(l(e));}function s(l,d=a.noop){const h=[l,d];return n.add(h),n.size===1&&(r=t(i,o)||a.noop),l(e),()=>{n.delete(h),n.size===0&&r&&(r(),r=null);}}return {set:i,update:o,subscribe:s}}function Q(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return kr(r,(s,l)=>{let d=!1;const h=[];let c=0,m=a.noop;const p=()=>{if(c)return;m();const _=t(n?h[0]:h,s,l);o?s(_):m=a.is_function(_)?_:a.noop;},k=i.map((_,g)=>a.subscribe(_,C=>{h[g]=C,c&=~(1<<g),d&&p();},()=>{c|=1<<g;}));return d=!0,p(),function(){a.run_all(k),m(),d=!1;}})}function br(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Er=function(t){return Cr(t)&&!Sr(t)};function Cr(e){return !!e&&typeof e=="object"}function Sr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||Mr(e)}var xr=typeof Symbol=="function"&&Symbol.for,Tr=xr?Symbol.for("react.element"):60103;function Mr(e){return e.$$typeof===Tr}function wr(e){return Array.isArray(e)?[]:{}}function ae(e,t){return t.clone!==!1&&t.isMergeableObject(e)?q(wr(e),e,t):e}function Nr(e,t,r){return e.concat(t).map(function(n){return ae(n,r)})}function Ar(e,t){if(!t.customMerge)return q;var r=t.customMerge(e);return typeof r=="function"?r:q}function Hr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Je(e){return Object.keys(e).concat(Hr(e))}function Et(e,t){try{return t in e}catch(r){return !1}}function Pr(e,t){return Et(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function Br(e,t,r){var n={};return r.isMergeableObject(e)&&Je(e).forEach(function(i){n[i]=ae(e[i],r);}),Je(t).forEach(function(i){Pr(e,i)||(Et(e,i)&&r.isMergeableObject(t[i])?n[i]=Ar(i,r)(e[i],t[i],r):n[i]=ae(t[i],r));}),n}function q(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Nr,r.isMergeableObject=r.isMergeableObject||Er,r.cloneUnlessOtherwiseSpecified=ae;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):Br(e,t,r):ae(t,r)}q.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return q(n,i,r)},{})};var Or=q,zr=Or;const Ir=br(zr);var Pe=function(e,t){return Pe=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n;}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);},Pe(e,t)};function be(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Pe(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var U=function(){return U=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},U.apply(this,arguments)};function jr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function Te(e,t,r){if(r||arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||Array.prototype.slice.call(t))}function Me(e,t){var r=t&&t.cache?t.cache:Vr,n=t&&t.serializer?t.serializer:Gr,i=t&&t.strategy?t.strategy:Ur;return i(e,{cache:r,serializer:n})}function Lr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function Rr(e,t,r,n){var i=Lr(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function Ct(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(i,o)),o}function St(e,t,r,n,i){return r.bind(t,e,n,i)}function Ur(e,t){var r=e.length===1?Rr:Ct;return St(e,this,r,t.cache.create(),t.serializer)}function Dr(e,t){return St(e,this,Ct,t.cache.create(),t.serializer)}var Gr=function(){return JSON.stringify(arguments)},Fr=function(){function e(){this.cache=Object.create(null);}return e.prototype.get=function(t){return this.cache[t]},e.prototype.set=function(t,r){this.cache[t]=r;},e}(),Vr={create:function(){return new Fr}},we={variadic:Dr},_e=function(){return _e=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},_e.apply(this,arguments)};var M;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG";})(M||(M={}));var A;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag";})(A||(A={}));var W;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime";})(W||(W={}));function Qe(e){return e.type===A.literal}function Xr(e){return e.type===A.argument}function xt(e){return e.type===A.number}function Tt(e){return e.type===A.date}function Mt(e){return e.type===A.time}function wt(e){return e.type===A.select}function Nt(e){return e.type===A.plural}function qr(e){return e.type===A.pound}function At(e){return e.type===A.tag}function Ht(e){return !!(e&&typeof e=="object"&&e.type===W.number)}function Be(e){return !!(e&&typeof e=="object"&&e.type===W.dateTime)}var Pt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Wr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Zr(e){var t={};return e.replace(Wr,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return ""}),t}var B=function(){return B=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},B.apply(this,arguments)};var Jr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Qr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Jr).filter(function(p){return p.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var l=s[0],d=s.slice(1),h=0,c=d;h<c.length;h++){var m=c[h];if(m.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:d});}return r}function Yr(e){return e.replace(/^(.*?)-/,"")}var Ye=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,Bt=/^(@+)?(\+|#+)?[rs]?$/g,Kr=/(\*)(0+)|(#+)(0+)|(0+)/g,Ot=/^(0+)$/;function Ke(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(Bt,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function zt(e){switch(e){case"sign-auto":return {signDisplay:"auto"};case"sign-accounting":case"()":return {currencySign:"accounting"};case"sign-always":case"+!":return {signDisplay:"always"};case"sign-accounting-always":case"()!":return {signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return {signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return {signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return {signDisplay:"never"}}}function $r(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ot.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length;}return t}function $e(e){var t={},r=zt(e);return r||t}function en(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Yr(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=B(B(B({},t),{notation:"scientific"}),i.options.reduce(function(d,h){return B(B({},d),$e(h))},{}));continue;case"engineering":t=B(B(B({},t),{notation:"engineering"}),i.options.reduce(function(d,h){return B(B({},d),$e(h))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Kr,function(d,h,c,m,p,k){if(h)t.minimumIntegerDigits=c.length;else {if(m&&p)throw new Error("We currently do not support maximum integer digits");if(k)throw new Error("We currently do not support exact integer digits")}return ""});continue}if(Ot.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ye.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ye,function(d,h,c,m,p,k){return c==="*"?t.minimumFractionDigits=h.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:p&&k?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+k.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var o=i.options[0];o==="w"?t=B(B({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=B(B({},t),Ke(o)));continue}if(Bt.test(i.stem)){t=B(B({},t),Ke(i.stem));continue}var s=zt(i.stem);s&&(t=B(B({},t),s));var l=$r(i.stem);l&&(t=B(B({},t),l));}return t}var pe={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function tn(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(o&1),l=o<2?1:3+(o>>1),d="a",h=rn(t);for((h=="H"||h=="k")&&(l=0);l-- >0;)r+=d;for(;s-- >0;)r=h+r;}else i==="J"?r+="H":r+=i;}return r}function rn(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return "k";case"h23":return "H";case"h12":return "h";case"h11":return "K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=pe[n||""]||pe[r||""]||pe["".concat(r,"-001")]||pe["001"];return i[0]}var Ne,nn=new RegExp("^".concat(Pt.source,"*")),an=new RegExp("".concat(Pt.source,"*$"));function w(e,t){return {start:e,end:t}}var on=!!String.prototype.startsWith&&"_a".startsWith("a",1),sn=!!String.fromCodePoint,ln=!!Object.fromEntries,cn=!!String.prototype.codePointAt,un=!!String.prototype.trimStart,hn=!!String.prototype.trimEnd,dn=!!Number.isSafeInteger,mn=dn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Oe=!0;try{var pn=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Oe=((Ne=pn.exec("a"))===null||Ne===void 0?void 0:Ne[0])==="a";}catch(e){Oe=!1;}var et=on?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ze=sn?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320);}return n},tt=ln?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],s=o[0],l=o[1];r[s]=l;}return r},It=cn?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},gn=un?function(t){return t.trimStart()}:function(t){return t.replace(nn,"")},fn=hn?function(t){return t.trimEnd()}:function(t){return t.replace(an,"")};function jt(e,t){return new RegExp(e,t)}var Ie;if(Oe){var rt=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Ie=function(t,r){var n;rt.lastIndex=r;var i=rt.exec(t);return (n=i[1])!==null&&n!==void 0?n:""};}else Ie=function(t,r){for(var n=[];;){var i=It(t,r);if(i===void 0||Lt(i)||kn(i))break;n.push(i),r+=i>=65536?2:1;}return ze.apply(void 0,n)};var _n=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons;}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val);}else {if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:A.pound,location:w(l,this.clonePosition())});}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(M.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&je(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val);}else {var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val);}}}return {val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return {val:{type:A.literal,value:"<".concat(i,"/>"),location:w(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!je(this.char()))return this.error(M.INVALID_TAG,w(l,this.clonePosition()));var d=this.clonePosition(),h=this.parseTagName();return i!==h?this.error(M.UNMATCHED_CLOSING_TAG,w(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:A.tag,value:i,children:s,location:w(n,this.clonePosition())},err:null}:this.error(M.INVALID_TAG,w(l,this.clonePosition())))}else return this.error(M.UNCLOSED_TAG,w(n,this.clonePosition()))}else return this.error(M.INVALID_TAG,w(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&vn(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var d=w(n,this.clonePosition());return {val:{type:A.literal,value:i,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!yn(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else {this.bump();break}else r.push(n);this.bump();}return ze.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),ze(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(M.EMPTY_ARGUMENT,w(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(M.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:A.argument,value:i,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(M.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Ie(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=w(t,o);return {value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(M.EXPECT_ARGUMENT_TYPE,w(s,d));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var p=fn(m.val);if(p.length===0)return this.error(M.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));var k=w(c,this.clonePosition());h={style:p,styleLocation:k};}var _=this.tryParseArgumentClose(i);if(_.err)return _;var g=w(i,this.clonePosition());if(h&&et(h==null?void 0:h.style,"::",0)){var C=gn(h.style.slice(2));if(l==="number"){var m=this.parseNumberSkeletonFromString(C,h.styleLocation);return m.err?m:{val:{type:A.number,value:n,location:g,style:m.val},err:null}}else {if(C.length===0)return this.error(M.EXPECT_DATE_TIME_SKELETON,g);var y=C;this.locale&&(y=tn(C,this.locale));var p={type:W.dateTime,pattern:y,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Zr(y):{}},v=l==="date"?A.date:A.time;return {val:{type:v,value:n,location:g,style:p},err:null}}}return {val:{type:l==="number"?A.number:l==="date"?A.date:A.time,value:n,location:g,style:(o=h==null?void 0:h.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var S=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(M.EXPECT_SELECT_ARGUMENT_OPTIONS,w(S,_e({},S)));this.bumpSpace();var N=this.parseIdentifierIfPossible(),E=0;if(l!=="select"&&N.value==="offset"){if(!this.bumpIf(":"))return this.error(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,M.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),N=this.parseIdentifierIfPossible(),E=m.val;}var H=this.tryParsePluralOrSelectOptions(t,l,r,N);if(H.err)return H;var _=this.tryParseArgumentClose(i);if(_.err)return _;var P=w(i,this.clonePosition());return l==="select"?{val:{type:A.select,value:n,options:tt(H.val),location:P},err:null}:{val:{type:A.plural,value:n,options:tt(H.val),offset:E,pluralType:l==="plural"?"cardinal":"ordinal",location:P},err:null}}default:return this.error(M.INVALID_ARGUMENT_TYPE,w(s,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(M.EXPECT_ARGUMENT_CLOSING_BRACE,w(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(M.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return {val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return {val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Qr(t);}catch(i){return this.error(M.INVALID_NUMBER_SKELETON,r)}return {val:{type:W.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?en(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,l=[],d=new Set,h=i.value,c=i.location;;){if(h.length===0){var m=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(M.EXPECT_PLURAL_ARGUMENT_SELECTOR,M.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=w(m,this.clonePosition()),h=this.message.slice(m.offset,this.offset());}else break}if(d.has(h))return this.error(r==="select"?M.DUPLICATE_SELECT_ARGUMENT_SELECTOR:M.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);h==="other"&&(s=!0),this.bumpSpace();var k=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:M.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var g=this.tryParseArgumentClose(k);if(g.err)return g;l.push([h,{value:_.val,location:w(k,this.clonePosition())}]),d.add(h),this.bumpSpace(),o=this.parseIdentifierIfPossible(),h=o.value,c=o.location;}return l.length===0?this.error(r==="select"?M.EXPECT_SELECT_ARGUMENT_SELECTOR:M.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(M.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,s=s*10+(l-48),this.bump();else break}var d=w(i,this.clonePosition());return o?(s*=n,mn(s)?{val:s,err:null}:this.error(r,d)):this.error(t,d)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return {offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=It(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return {val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2);}},e.prototype.bumpIf=function(t){if(et(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return !0}return !1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Lt(this.char());)this.bump();},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function je(e){return e>=97&&e<=122||e>=65&&e<=90}function yn(e){return je(e)||e===47}function vn(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Lt(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function kn(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Le(e){e.forEach(function(t){if(delete t.location,wt(t)||Nt(t))for(var r in t.options)delete t.options[r].location,Le(t.options[r].value);else xt(t)&&Ht(t.style)||(Tt(t)||Mt(t))&&Be(t.style)?delete t.style.location:At(t)&&Le(t.children);});}function bn(e,t){t===void 0&&(t={}),t=_e({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new _n(e,t).parse();if(r.err){var n=SyntaxError(M[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Le(r.val),r.val}var Z;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";})(Z||(Z={}));var Ee=function(e){be(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return "[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),nt=function(e){be(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Z.INVALID_VALUE,o)||this}return t}(Ee),En=function(e){be(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Z.INVALID_VALUE,i)||this}return t}(Ee),Cn=function(e){be(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Z.MISSING_VALUE,n)||this}return t}(Ee),j;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(j||(j={}));function Sn(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return !n||n.type!==j.literal||r.type!==j.literal?t.push(r):n.value+=r.value,t},[])}function xn(e){return typeof e=="function"}function ge(e,t,r,n,i,o,s){if(e.length===1&&Qe(e[0]))return [{type:j.literal,value:e[0].value}];for(var l=[],d=0,h=e;d<h.length;d++){var c=h[d];if(Qe(c)){l.push({type:j.literal,value:c.value});continue}if(qr(c)){typeof o=="number"&&l.push({type:j.literal,value:r.getNumberFormat(t).format(o)});continue}var m=c.value;if(!(i&&m in i))throw new Cn(m,s);var p=i[m];if(Xr(c)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),l.push({type:typeof p=="string"?j.literal:j.object,value:p});continue}if(Tt(c)){var k=typeof c.style=="string"?n.date[c.style]:Be(c.style)?c.style.parsedOptions:void 0;l.push({type:j.literal,value:r.getDateTimeFormat(t,k).format(p)});continue}if(Mt(c)){var k=typeof c.style=="string"?n.time[c.style]:Be(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:j.literal,value:r.getDateTimeFormat(t,k).format(p)});continue}if(xt(c)){var k=typeof c.style=="string"?n.number[c.style]:Ht(c.style)?c.style.parsedOptions:void 0;k&&k.scale&&(p=p*(k.scale||1)),l.push({type:j.literal,value:r.getNumberFormat(t,k).format(p)});continue}if(At(c)){var _=c.children,g=c.value,C=i[g];if(!xn(C))throw new En(g,"function",s);var y=ge(_,t,r,n,i,o),v=C(y.map(function(E){return E.value}));Array.isArray(v)||(v=[v]),l.push.apply(l,v.map(function(E){return {type:typeof E=="string"?j.literal:j.object,value:E}}));}if(wt(c)){var S=c.options[p]||c.options.other;if(!S)throw new nt(c.value,p,Object.keys(c.options),s);l.push.apply(l,ge(S.value,t,r,n,i));continue}if(Nt(c)){var S=c.options["=".concat(p)];if(!S){if(!Intl.PluralRules)throw new Ee(`Intl.PluralRules is not available in this environment.
13977
+ var fr=Object.defineProperty,_r=Object.defineProperties;var yr=Object.getOwnPropertyDescriptors;var We=Object.getOwnPropertySymbols;var vr=Object.prototype.hasOwnProperty,kr=Object.prototype.propertyIsEnumerable;var Ze=(e,t,r)=>t in e?fr(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,U=(e,t)=>{for(var r in t||(t={}))vr.call(t,r)&&Ze(e,r,t[r]);if(We)for(var r of We(t))kr.call(t,r)&&Ze(e,r,t[r]);return e},Je=(e,t)=>_r(e,yr(t));var ne=(e,t,r)=>new Promise((n,i)=>{var o=d=>{try{l(r.next(d));}catch(h){i(h);}},s=d=>{try{l(r.throw(d));}catch(h){i(h);}},l=d=>d.done?n(d.value):Promise.resolve(d.value).then(o,s);l((r=r.apply(e,t)).next());});Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const a=GeneralAnimationLoadingDLDqBYF,X=[];function br(e,t){return {subscribe:ve(e,t).subscribe}}function ve(e,t=a.noop){let r;const n=new Set;function i(l){if(a.safe_not_equal(e,l)&&(e=l,r)){const d=!X.length;for(const h of n)h[1](),X.push(h,e);if(d){for(let h=0;h<X.length;h+=2)X[h][0](X[h+1]);X.length=0;}}}function o(l){i(l(e));}function s(l,d=a.noop){const h=[l,d];return n.add(h),n.size===1&&(r=t(i,o)||a.noop),l(e),()=>{n.delete(h),n.size===0&&r&&(r(),r=null);}}return {set:i,update:o,subscribe:s}}function Q(e,t,r){const n=!Array.isArray(e),i=n?[e]:e;if(!i.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const o=t.length<2;return br(r,(s,l)=>{let d=!1;const h=[];let c=0,m=a.noop;const p=()=>{if(c)return;m();const _=t(n?h[0]:h,s,l);o?s(_):m=a.is_function(_)?_:a.noop;},v=i.map((_,g)=>a.subscribe(_,S=>{h[g]=S,c&=~(1<<g),d&&p();},()=>{c|=1<<g;}));return d=!0,p(),function(){a.run_all(v),m(),d=!1;}})}function Er(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Cr=function(t){return Sr(t)&&!xr(t)};function Sr(e){return !!e&&typeof e=="object"}function xr(e){var t=Object.prototype.toString.call(e);return t==="[object RegExp]"||t==="[object Date]"||wr(e)}var Mr=typeof Symbol=="function"&&Symbol.for,Tr=Mr?Symbol.for("react.element"):60103;function wr(e){return e.$$typeof===Tr}function Nr(e){return Array.isArray(e)?[]:{}}function ae(e,t){return t.clone!==!1&&t.isMergeableObject(e)?q(Nr(e),e,t):e}function Ar(e,t,r){return e.concat(t).map(function(n){return ae(n,r)})}function Hr(e,t){if(!t.customMerge)return q;var r=t.customMerge(e);return typeof r=="function"?r:q}function Pr(e){return Object.getOwnPropertySymbols?Object.getOwnPropertySymbols(e).filter(function(t){return Object.propertyIsEnumerable.call(e,t)}):[]}function Qe(e){return Object.keys(e).concat(Pr(e))}function Ct(e,t){try{return t in e}catch(r){return !1}}function Br(e,t){return Ct(e,t)&&!(Object.hasOwnProperty.call(e,t)&&Object.propertyIsEnumerable.call(e,t))}function zr(e,t,r){var n={};return r.isMergeableObject(e)&&Qe(e).forEach(function(i){n[i]=ae(e[i],r);}),Qe(t).forEach(function(i){Br(e,i)||(Ct(e,i)&&r.isMergeableObject(t[i])?n[i]=Hr(i,r)(e[i],t[i],r):n[i]=ae(t[i],r));}),n}function q(e,t,r){r=r||{},r.arrayMerge=r.arrayMerge||Ar,r.isMergeableObject=r.isMergeableObject||Cr,r.cloneUnlessOtherwiseSpecified=ae;var n=Array.isArray(t),i=Array.isArray(e),o=n===i;return o?n?r.arrayMerge(e,t,r):zr(e,t,r):ae(t,r)}q.all=function(t,r){if(!Array.isArray(t))throw new Error("first argument should be an array");return t.reduce(function(n,i){return q(n,i,r)},{})};var Or=q,Ir=Or;const Lr=Er(Ir);/*! *****************************************************************************
13978
+ Copyright (c) Microsoft Corporation.
13979
+
13980
+ Permission to use, copy, modify, and/or distribute this software for any
13981
+ purpose with or without fee is hereby granted.
13982
+
13983
+ THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
13984
+ REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
13985
+ AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
13986
+ INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
13987
+ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
13988
+ OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13989
+ PERFORMANCE OF THIS SOFTWARE.
13990
+ ***************************************************************************** */var He=function(e,t){return He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n;}||function(r,n){for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(r[i]=n[i]);},He(e,t)};function ke(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");He(e,t);function r(){this.constructor=e;}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r);}var N=function(){return N=Object.assign||function(t){for(var r,n=1,i=arguments.length;n<i;n++){r=arguments[n];for(var o in r)Object.prototype.hasOwnProperty.call(r,o)&&(t[o]=r[o]);}return t},N.apply(this,arguments)};function jr(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var i=0,n=Object.getOwnPropertySymbols(e);i<n.length;i++)t.indexOf(n[i])<0&&Object.prototype.propertyIsEnumerable.call(e,n[i])&&(r[n[i]]=e[n[i]]);return r}function xe(e,t,r){if(arguments.length===2)for(var n=0,i=t.length,o;n<i;n++)(o||!(n in t))&&(o||(o=Array.prototype.slice.call(t,0,n)),o[n]=t[n]);return e.concat(o||t)}function Me(e,t){var r=t&&t.cache?t.cache:Vr,n=t&&t.serializer?t.serializer:Fr,i=t&&t.strategy?t.strategy:Ur;return i(e,{cache:r,serializer:n})}function Rr(e){return e==null||typeof e=="number"||typeof e=="boolean"}function St(e,t,r,n){var i=Rr(n)?n:r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.call(this,n),t.set(i,o)),o}function xt(e,t,r){var n=Array.prototype.slice.call(arguments,3),i=r(n),o=t.get(i);return typeof o=="undefined"&&(o=e.apply(this,n),t.set(i,o)),o}function Ue(e,t,r,n,i){return r.bind(t,e,n,i)}function Ur(e,t){var r=e.length===1?St:xt;return Ue(e,this,r,t.cache.create(),t.serializer)}function Dr(e,t){return Ue(e,this,xt,t.cache.create(),t.serializer)}function Gr(e,t){return Ue(e,this,St,t.cache.create(),t.serializer)}var Fr=function(){return JSON.stringify(arguments)};function De(){this.cache=Object.create(null);}De.prototype.get=function(e){return this.cache[e]};De.prototype.set=function(e,t){this.cache[e]=t;};var Vr={create:function(){return new De}},Te={variadic:Dr,monadic:Gr},T;(function(e){e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]="EXPECT_ARGUMENT_CLOSING_BRACE",e[e.EMPTY_ARGUMENT=2]="EMPTY_ARGUMENT",e[e.MALFORMED_ARGUMENT=3]="MALFORMED_ARGUMENT",e[e.EXPECT_ARGUMENT_TYPE=4]="EXPECT_ARGUMENT_TYPE",e[e.INVALID_ARGUMENT_TYPE=5]="INVALID_ARGUMENT_TYPE",e[e.EXPECT_ARGUMENT_STYLE=6]="EXPECT_ARGUMENT_STYLE",e[e.INVALID_NUMBER_SKELETON=7]="INVALID_NUMBER_SKELETON",e[e.INVALID_DATE_TIME_SKELETON=8]="INVALID_DATE_TIME_SKELETON",e[e.EXPECT_NUMBER_SKELETON=9]="EXPECT_NUMBER_SKELETON",e[e.EXPECT_DATE_TIME_SKELETON=10]="EXPECT_DATE_TIME_SKELETON",e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]="UNCLOSED_QUOTE_IN_ARGUMENT_STYLE",e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]="EXPECT_SELECT_ARGUMENT_OPTIONS",e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]="EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]="INVALID_PLURAL_ARGUMENT_OFFSET_VALUE",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]="EXPECT_SELECT_ARGUMENT_SELECTOR",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]="EXPECT_PLURAL_ARGUMENT_SELECTOR",e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]="EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT",e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]="EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT",e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]="INVALID_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]="DUPLICATE_PLURAL_ARGUMENT_SELECTOR",e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]="DUPLICATE_SELECT_ARGUMENT_SELECTOR",e[e.MISSING_OTHER_CLAUSE=22]="MISSING_OTHER_CLAUSE",e[e.INVALID_TAG=23]="INVALID_TAG",e[e.INVALID_TAG_NAME=25]="INVALID_TAG_NAME",e[e.UNMATCHED_CLOSING_TAG=26]="UNMATCHED_CLOSING_TAG",e[e.UNCLOSED_TAG=27]="UNCLOSED_TAG";})(T||(T={}));var H;(function(e){e[e.literal=0]="literal",e[e.argument=1]="argument",e[e.number=2]="number",e[e.date=3]="date",e[e.time=4]="time",e[e.select=5]="select",e[e.plural=6]="plural",e[e.pound=7]="pound",e[e.tag=8]="tag";})(H||(H={}));var W;(function(e){e[e.number=0]="number",e[e.dateTime=1]="dateTime";})(W||(W={}));function Ye(e){return e.type===H.literal}function Xr(e){return e.type===H.argument}function Mt(e){return e.type===H.number}function Tt(e){return e.type===H.date}function wt(e){return e.type===H.time}function Nt(e){return e.type===H.select}function At(e){return e.type===H.plural}function qr(e){return e.type===H.pound}function Ht(e){return e.type===H.tag}function Pt(e){return !!(e&&typeof e=="object"&&e.type===W.number)}function Pe(e){return !!(e&&typeof e=="object"&&e.type===W.dateTime)}var Bt=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Wr=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function Zr(e){var t={};return e.replace(Wr,function(r){var n=r.length;switch(r[0]){case"G":t.era=n===4?"long":n===5?"narrow":"short";break;case"y":t.year=n===2?"2-digit":"numeric";break;case"Y":case"u":case"U":case"r":throw new RangeError("`Y/u/U/r` (year) patterns are not supported, use `y` instead");case"q":case"Q":throw new RangeError("`q/Q` (quarter) patterns are not supported");case"M":case"L":t.month=["numeric","2-digit","short","long","narrow"][n-1];break;case"w":case"W":throw new RangeError("`w/W` (week) patterns are not supported");case"d":t.day=["numeric","2-digit"][n-1];break;case"D":case"F":case"g":throw new RangeError("`D/F/g` (day) patterns are not supported, use `d` instead");case"E":t.weekday=n===4?"long":n===5?"narrow":"short";break;case"e":if(n<4)throw new RangeError("`e..eee` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"c":if(n<4)throw new RangeError("`c..ccc` (weekday) patterns are not supported");t.weekday=["short","long","narrow","short"][n-4];break;case"a":t.hour12=!0;break;case"b":case"B":throw new RangeError("`b/B` (period) patterns are not supported, use `a` instead");case"h":t.hourCycle="h12",t.hour=["numeric","2-digit"][n-1];break;case"H":t.hourCycle="h23",t.hour=["numeric","2-digit"][n-1];break;case"K":t.hourCycle="h11",t.hour=["numeric","2-digit"][n-1];break;case"k":t.hourCycle="h24",t.hour=["numeric","2-digit"][n-1];break;case"j":case"J":case"C":throw new RangeError("`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead");case"m":t.minute=["numeric","2-digit"][n-1];break;case"s":t.second=["numeric","2-digit"][n-1];break;case"S":case"A":throw new RangeError("`S/A` (second) patterns are not supported, use `s` instead");case"z":t.timeZoneName=n<4?"short":"long";break;case"Z":case"O":case"v":case"V":case"X":case"x":throw new RangeError("`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead")}return ""}),t}var Jr=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;function Qr(e){if(e.length===0)throw new Error("Number skeleton cannot be empty");for(var t=e.split(Jr).filter(function(p){return p.length>0}),r=[],n=0,i=t;n<i.length;n++){var o=i[n],s=o.split("/");if(s.length===0)throw new Error("Invalid number skeleton");for(var l=s[0],d=s.slice(1),h=0,c=d;h<c.length;h++){var m=c[h];if(m.length===0)throw new Error("Invalid number skeleton")}r.push({stem:l,options:d});}return r}function Yr(e){return e.replace(/^(.*?)-/,"")}var Ke=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,zt=/^(@+)?(\+|#+)?[rs]?$/g,Kr=/(\*)(0+)|(#+)(0+)|(0+)/g,Ot=/^(0+)$/;function $e(e){var t={};return e[e.length-1]==="r"?t.roundingPriority="morePrecision":e[e.length-1]==="s"&&(t.roundingPriority="lessPrecision"),e.replace(zt,function(r,n,i){return typeof i!="string"?(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length):i==="+"?t.minimumSignificantDigits=n.length:n[0]==="#"?t.maximumSignificantDigits=n.length:(t.minimumSignificantDigits=n.length,t.maximumSignificantDigits=n.length+(typeof i=="string"?i.length:0)),""}),t}function It(e){switch(e){case"sign-auto":return {signDisplay:"auto"};case"sign-accounting":case"()":return {currencySign:"accounting"};case"sign-always":case"+!":return {signDisplay:"always"};case"sign-accounting-always":case"()!":return {signDisplay:"always",currencySign:"accounting"};case"sign-except-zero":case"+?":return {signDisplay:"exceptZero"};case"sign-accounting-except-zero":case"()?":return {signDisplay:"exceptZero",currencySign:"accounting"};case"sign-never":case"+_":return {signDisplay:"never"}}}function $r(e){var t;if(e[0]==="E"&&e[1]==="E"?(t={notation:"engineering"},e=e.slice(2)):e[0]==="E"&&(t={notation:"scientific"},e=e.slice(1)),t){var r=e.slice(0,2);if(r==="+!"?(t.signDisplay="always",e=e.slice(2)):r==="+?"&&(t.signDisplay="exceptZero",e=e.slice(2)),!Ot.test(e))throw new Error("Malformed concise eng/scientific notation");t.minimumIntegerDigits=e.length;}return t}function et(e){var t={},r=It(e);return r||t}function en(e){for(var t={},r=0,n=e;r<n.length;r++){var i=n[r];switch(i.stem){case"percent":case"%":t.style="percent";continue;case"%x100":t.style="percent",t.scale=100;continue;case"currency":t.style="currency",t.currency=i.options[0];continue;case"group-off":case",_":t.useGrouping=!1;continue;case"precision-integer":case".":t.maximumFractionDigits=0;continue;case"measure-unit":case"unit":t.style="unit",t.unit=Yr(i.options[0]);continue;case"compact-short":case"K":t.notation="compact",t.compactDisplay="short";continue;case"compact-long":case"KK":t.notation="compact",t.compactDisplay="long";continue;case"scientific":t=N(N(N({},t),{notation:"scientific"}),i.options.reduce(function(d,h){return N(N({},d),et(h))},{}));continue;case"engineering":t=N(N(N({},t),{notation:"engineering"}),i.options.reduce(function(d,h){return N(N({},d),et(h))},{}));continue;case"notation-simple":t.notation="standard";continue;case"unit-width-narrow":t.currencyDisplay="narrowSymbol",t.unitDisplay="narrow";continue;case"unit-width-short":t.currencyDisplay="code",t.unitDisplay="short";continue;case"unit-width-full-name":t.currencyDisplay="name",t.unitDisplay="long";continue;case"unit-width-iso-code":t.currencyDisplay="symbol";continue;case"scale":t.scale=parseFloat(i.options[0]);continue;case"rounding-mode-floor":t.roundingMode="floor";continue;case"rounding-mode-ceiling":t.roundingMode="ceil";continue;case"rounding-mode-down":t.roundingMode="trunc";continue;case"rounding-mode-up":t.roundingMode="expand";continue;case"rounding-mode-half-even":t.roundingMode="halfEven";continue;case"rounding-mode-half-down":t.roundingMode="halfTrunc";continue;case"rounding-mode-half-up":t.roundingMode="halfExpand";continue;case"integer-width":if(i.options.length>1)throw new RangeError("integer-width stems only accept a single optional option");i.options[0].replace(Kr,function(d,h,c,m,p,v){if(h)t.minimumIntegerDigits=c.length;else {if(m&&p)throw new Error("We currently do not support maximum integer digits");if(v)throw new Error("We currently do not support exact integer digits")}return ""});continue}if(Ot.test(i.stem)){t.minimumIntegerDigits=i.stem.length;continue}if(Ke.test(i.stem)){if(i.options.length>1)throw new RangeError("Fraction-precision stems only accept a single optional option");i.stem.replace(Ke,function(d,h,c,m,p,v){return c==="*"?t.minimumFractionDigits=h.length:m&&m[0]==="#"?t.maximumFractionDigits=m.length:p&&v?(t.minimumFractionDigits=p.length,t.maximumFractionDigits=p.length+v.length):(t.minimumFractionDigits=h.length,t.maximumFractionDigits=h.length),""});var o=i.options[0];o==="w"?t=N(N({},t),{trailingZeroDisplay:"stripIfInteger"}):o&&(t=N(N({},t),$e(o)));continue}if(zt.test(i.stem)){t=N(N({},t),$e(i.stem));continue}var s=It(i.stem);s&&(t=N(N({},t),s));var l=$r(i.stem);l&&(t=N(N({},t),l));}return t}var pe={"001":["H","h"],419:["h","H","hB","hb"],AC:["H","h","hb","hB"],AD:["H","hB"],AE:["h","hB","hb","H"],AF:["H","hb","hB","h"],AG:["h","hb","H","hB"],AI:["H","h","hb","hB"],AL:["h","H","hB"],AM:["H","hB"],AO:["H","hB"],AR:["h","H","hB","hb"],AS:["h","H"],AT:["H","hB"],AU:["h","hb","H","hB"],AW:["H","hB"],AX:["H"],AZ:["H","hB","h"],BA:["H","hB","h"],BB:["h","hb","H","hB"],BD:["h","hB","H"],BE:["H","hB"],BF:["H","hB"],BG:["H","hB","h"],BH:["h","hB","hb","H"],BI:["H","h"],BJ:["H","hB"],BL:["H","hB"],BM:["h","hb","H","hB"],BN:["hb","hB","h","H"],BO:["h","H","hB","hb"],BQ:["H"],BR:["H","hB"],BS:["h","hb","H","hB"],BT:["h","H"],BW:["H","h","hb","hB"],BY:["H","h"],BZ:["H","h","hb","hB"],CA:["h","hb","H","hB"],CC:["H","h","hb","hB"],CD:["hB","H"],CF:["H","h","hB"],CG:["H","hB"],CH:["H","hB","h"],CI:["H","hB"],CK:["H","h","hb","hB"],CL:["h","H","hB","hb"],CM:["H","h","hB"],CN:["H","hB","hb","h"],CO:["h","H","hB","hb"],CP:["H"],CR:["h","H","hB","hb"],CU:["h","H","hB","hb"],CV:["H","hB"],CW:["H","hB"],CX:["H","h","hb","hB"],CY:["h","H","hb","hB"],CZ:["H"],DE:["H","hB"],DG:["H","h","hb","hB"],DJ:["h","H"],DK:["H"],DM:["h","hb","H","hB"],DO:["h","H","hB","hb"],DZ:["h","hB","hb","H"],EA:["H","h","hB","hb"],EC:["h","H","hB","hb"],EE:["H","hB"],EG:["h","hB","hb","H"],EH:["h","hB","hb","H"],ER:["h","H"],ES:["H","hB","h","hb"],ET:["hB","hb","h","H"],FI:["H"],FJ:["h","hb","H","hB"],FK:["H","h","hb","hB"],FM:["h","hb","H","hB"],FO:["H","h"],FR:["H","hB"],GA:["H","hB"],GB:["H","h","hb","hB"],GD:["h","hb","H","hB"],GE:["H","hB","h"],GF:["H","hB"],GG:["H","h","hb","hB"],GH:["h","H"],GI:["H","h","hb","hB"],GL:["H","h"],GM:["h","hb","H","hB"],GN:["H","hB"],GP:["H","hB"],GQ:["H","hB","h","hb"],GR:["h","H","hb","hB"],GT:["h","H","hB","hb"],GU:["h","hb","H","hB"],GW:["H","hB"],GY:["h","hb","H","hB"],HK:["h","hB","hb","H"],HN:["h","H","hB","hb"],HR:["H","hB"],HU:["H","h"],IC:["H","h","hB","hb"],ID:["H"],IE:["H","h","hb","hB"],IL:["H","hB"],IM:["H","h","hb","hB"],IN:["h","H"],IO:["H","h","hb","hB"],IQ:["h","hB","hb","H"],IR:["hB","H"],IS:["H"],IT:["H","hB"],JE:["H","h","hb","hB"],JM:["h","hb","H","hB"],JO:["h","hB","hb","H"],JP:["H","K","h"],KE:["hB","hb","H","h"],KG:["H","h","hB","hb"],KH:["hB","h","H","hb"],KI:["h","hb","H","hB"],KM:["H","h","hB","hb"],KN:["h","hb","H","hB"],KP:["h","H","hB","hb"],KR:["h","H","hB","hb"],KW:["h","hB","hb","H"],KY:["h","hb","H","hB"],KZ:["H","hB"],LA:["H","hb","hB","h"],LB:["h","hB","hb","H"],LC:["h","hb","H","hB"],LI:["H","hB","h"],LK:["H","h","hB","hb"],LR:["h","hb","H","hB"],LS:["h","H"],LT:["H","h","hb","hB"],LU:["H","h","hB"],LV:["H","hB","hb","h"],LY:["h","hB","hb","H"],MA:["H","h","hB","hb"],MC:["H","hB"],MD:["H","hB"],ME:["H","hB","h"],MF:["H","hB"],MG:["H","h"],MH:["h","hb","H","hB"],MK:["H","h","hb","hB"],ML:["H"],MM:["hB","hb","H","h"],MN:["H","h","hb","hB"],MO:["h","hB","hb","H"],MP:["h","hb","H","hB"],MQ:["H","hB"],MR:["h","hB","hb","H"],MS:["H","h","hb","hB"],MT:["H","h"],MU:["H","h"],MV:["H","h"],MW:["h","hb","H","hB"],MX:["h","H","hB","hb"],MY:["hb","hB","h","H"],MZ:["H","hB"],NA:["h","H","hB","hb"],NC:["H","hB"],NE:["H"],NF:["H","h","hb","hB"],NG:["H","h","hb","hB"],NI:["h","H","hB","hb"],NL:["H","hB"],NO:["H","h"],NP:["H","h","hB"],NR:["H","h","hb","hB"],NU:["H","h","hb","hB"],NZ:["h","hb","H","hB"],OM:["h","hB","hb","H"],PA:["h","H","hB","hb"],PE:["h","H","hB","hb"],PF:["H","h","hB"],PG:["h","H"],PH:["h","hB","hb","H"],PK:["h","hB","H"],PL:["H","h"],PM:["H","hB"],PN:["H","h","hb","hB"],PR:["h","H","hB","hb"],PS:["h","hB","hb","H"],PT:["H","hB"],PW:["h","H"],PY:["h","H","hB","hb"],QA:["h","hB","hb","H"],RE:["H","hB"],RO:["H","hB"],RS:["H","hB","h"],RU:["H"],RW:["H","h"],SA:["h","hB","hb","H"],SB:["h","hb","H","hB"],SC:["H","h","hB"],SD:["h","hB","hb","H"],SE:["H"],SG:["h","hb","H","hB"],SH:["H","h","hb","hB"],SI:["H","hB"],SJ:["H"],SK:["H"],SL:["h","hb","H","hB"],SM:["H","h","hB"],SN:["H","h","hB"],SO:["h","H"],SR:["H","hB"],SS:["h","hb","H","hB"],ST:["H","hB"],SV:["h","H","hB","hb"],SX:["H","h","hb","hB"],SY:["h","hB","hb","H"],SZ:["h","hb","H","hB"],TA:["H","h","hb","hB"],TC:["h","hb","H","hB"],TD:["h","H","hB"],TF:["H","h","hB"],TG:["H","hB"],TH:["H","h"],TJ:["H","h"],TL:["H","hB","hb","h"],TM:["H","h"],TN:["h","hB","hb","H"],TO:["h","H"],TR:["H","hB"],TT:["h","hb","H","hB"],TW:["hB","hb","h","H"],TZ:["hB","hb","H","h"],UA:["H","hB","h"],UG:["hB","hb","H","h"],UM:["h","hb","H","hB"],US:["h","hb","H","hB"],UY:["h","H","hB","hb"],UZ:["H","hB","h"],VA:["H","h","hB"],VC:["h","hb","H","hB"],VE:["h","H","hB","hb"],VG:["h","hb","H","hB"],VI:["h","hb","H","hB"],VN:["H","h"],VU:["h","H"],WF:["H","hB"],WS:["h","H"],XK:["H","hB","h"],YE:["h","hB","hb","H"],YT:["H","hB"],ZA:["H","h","hb","hB"],ZM:["h","hb","H","hB"],ZW:["H","h"],"af-ZA":["H","h","hB","hb"],"ar-001":["h","hB","hb","H"],"ca-ES":["H","h","hB"],"en-001":["h","hb","H","hB"],"en-HK":["h","hb","H","hB"],"en-IL":["H","h","hb","hB"],"en-MY":["h","hb","H","hB"],"es-BR":["H","h","hB","hb"],"es-ES":["H","h","hB","hb"],"es-GQ":["H","h","hB","hb"],"fr-CA":["H","h","hB"],"gl-ES":["H","h","hB"],"gu-IN":["hB","hb","h","H"],"hi-IN":["hB","h","H"],"it-CH":["H","h","hB"],"it-IT":["H","h","hB"],"kn-IN":["hB","h","H"],"ml-IN":["hB","h","H"],"mr-IN":["hB","hb","h","H"],"pa-IN":["hB","hb","h","H"],"ta-IN":["hB","h","hb","H"],"te-IN":["hB","h","H"],"zu-ZA":["H","hB","hb","h"]};function tn(e,t){for(var r="",n=0;n<e.length;n++){var i=e.charAt(n);if(i==="j"){for(var o=0;n+1<e.length&&e.charAt(n+1)===i;)o++,n++;var s=1+(o&1),l=o<2?1:3+(o>>1),d="a",h=rn(t);for((h=="H"||h=="k")&&(l=0);l-- >0;)r+=d;for(;s-- >0;)r=h+r;}else i==="J"?r+="H":r+=i;}return r}function rn(e){var t=e.hourCycle;if(t===void 0&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case"h24":return "k";case"h23":return "H";case"h12":return "h";case"h11":return "K";default:throw new Error("Invalid hourCycle")}var r=e.language,n;r!=="root"&&(n=e.maximize().region);var i=pe[n||""]||pe[r||""]||pe["".concat(r,"-001")]||pe["001"];return i[0]}var we,nn=new RegExp("^".concat(Bt.source,"*")),an=new RegExp("".concat(Bt.source,"*$"));function w(e,t){return {start:e,end:t}}var on=!!String.prototype.startsWith&&"_a".startsWith("a",1),sn=!!String.fromCodePoint,ln=!!Object.fromEntries,cn=!!String.prototype.codePointAt,un=!!String.prototype.trimStart,hn=!!String.prototype.trimEnd,dn=!!Number.isSafeInteger,mn=dn?Number.isSafeInteger:function(e){return typeof e=="number"&&isFinite(e)&&Math.floor(e)===e&&Math.abs(e)<=9007199254740991},Be=!0;try{var pn=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Be=((we=pn.exec("a"))===null||we===void 0?void 0:we[0])==="a";}catch(e){Be=!1;}var tt=on?function(t,r,n){return t.startsWith(r,n)}:function(t,r,n){return t.slice(n,n+r.length)===r},ze=sn?String.fromCodePoint:function(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];for(var n="",i=t.length,o=0,s;i>o;){if(s=t[o++],s>1114111)throw RangeError(s+" is not a valid code point");n+=s<65536?String.fromCharCode(s):String.fromCharCode(((s-=65536)>>10)+55296,s%1024+56320);}return n},rt=ln?Object.fromEntries:function(t){for(var r={},n=0,i=t;n<i.length;n++){var o=i[n],s=o[0],l=o[1];r[s]=l;}return r},Lt=cn?function(t,r){return t.codePointAt(r)}:function(t,r){var n=t.length;if(!(r<0||r>=n)){var i=t.charCodeAt(r),o;return i<55296||i>56319||r+1===n||(o=t.charCodeAt(r+1))<56320||o>57343?i:(i-55296<<10)+(o-56320)+65536}},gn=un?function(t){return t.trimStart()}:function(t){return t.replace(nn,"")},fn=hn?function(t){return t.trimEnd()}:function(t){return t.replace(an,"")};function jt(e,t){return new RegExp(e,t)}var Oe;if(Be){var nt=jt("([^\\p{White_Space}\\p{Pattern_Syntax}]*)","yu");Oe=function(t,r){var n;nt.lastIndex=r;var i=nt.exec(t);return (n=i[1])!==null&&n!==void 0?n:""};}else Oe=function(t,r){for(var n=[];;){var i=Lt(t,r);if(i===void 0||Rt(i)||kn(i))break;n.push(i),r+=i>=65536?2:1;}return ze.apply(void 0,n)};var _n=function(){function e(t,r){r===void 0&&(r={}),this.message=t,this.position={offset:0,line:1,column:1},this.ignoreTag=!!r.ignoreTag,this.locale=r.locale,this.requiresOtherClause=!!r.requiresOtherClause,this.shouldParseSkeletons=!!r.shouldParseSkeletons;}return e.prototype.parse=function(){if(this.offset()!==0)throw Error("parser can only be used once");return this.parseMessage(0,"",!1)},e.prototype.parseMessage=function(t,r,n){for(var i=[];!this.isEOF();){var o=this.char();if(o===123){var s=this.parseArgument(t,n);if(s.err)return s;i.push(s.val);}else {if(o===125&&t>0)break;if(o===35&&(r==="plural"||r==="selectordinal")){var l=this.clonePosition();this.bump(),i.push({type:H.pound,location:w(l,this.clonePosition())});}else if(o===60&&!this.ignoreTag&&this.peek()===47){if(n)break;return this.error(T.UNMATCHED_CLOSING_TAG,w(this.clonePosition(),this.clonePosition()))}else if(o===60&&!this.ignoreTag&&Ie(this.peek()||0)){var s=this.parseTag(t,r);if(s.err)return s;i.push(s.val);}else {var s=this.parseLiteral(t,r);if(s.err)return s;i.push(s.val);}}}return {val:i,err:null}},e.prototype.parseTag=function(t,r){var n=this.clonePosition();this.bump();var i=this.parseTagName();if(this.bumpSpace(),this.bumpIf("/>"))return {val:{type:H.literal,value:"<".concat(i,"/>"),location:w(n,this.clonePosition())},err:null};if(this.bumpIf(">")){var o=this.parseMessage(t+1,r,!0);if(o.err)return o;var s=o.val,l=this.clonePosition();if(this.bumpIf("</")){if(this.isEOF()||!Ie(this.char()))return this.error(T.INVALID_TAG,w(l,this.clonePosition()));var d=this.clonePosition(),h=this.parseTagName();return i!==h?this.error(T.UNMATCHED_CLOSING_TAG,w(d,this.clonePosition())):(this.bumpSpace(),this.bumpIf(">")?{val:{type:H.tag,value:i,children:s,location:w(n,this.clonePosition())},err:null}:this.error(T.INVALID_TAG,w(l,this.clonePosition())))}else return this.error(T.UNCLOSED_TAG,w(n,this.clonePosition()))}else return this.error(T.INVALID_TAG,w(n,this.clonePosition()))},e.prototype.parseTagName=function(){var t=this.offset();for(this.bump();!this.isEOF()&&vn(this.char());)this.bump();return this.message.slice(t,this.offset())},e.prototype.parseLiteral=function(t,r){for(var n=this.clonePosition(),i="";;){var o=this.tryParseQuote(r);if(o){i+=o;continue}var s=this.tryParseUnquoted(t,r);if(s){i+=s;continue}var l=this.tryParseLeftAngleBracket();if(l){i+=l;continue}break}var d=w(n,this.clonePosition());return {val:{type:H.literal,value:i,location:d},err:null}},e.prototype.tryParseLeftAngleBracket=function(){return !this.isEOF()&&this.char()===60&&(this.ignoreTag||!yn(this.peek()||0))?(this.bump(),"<"):null},e.prototype.tryParseQuote=function(t){if(this.isEOF()||this.char()!==39)return null;switch(this.peek()){case 39:return this.bump(),this.bump(),"'";case 123:case 60:case 62:case 125:break;case 35:if(t==="plural"||t==="selectordinal")break;return null;default:return null}this.bump();var r=[this.char()];for(this.bump();!this.isEOF();){var n=this.char();if(n===39)if(this.peek()===39)r.push(39),this.bump();else {this.bump();break}else r.push(n);this.bump();}return ze.apply(void 0,r)},e.prototype.tryParseUnquoted=function(t,r){if(this.isEOF())return null;var n=this.char();return n===60||n===123||n===35&&(r==="plural"||r==="selectordinal")||n===125&&t>0?null:(this.bump(),ze(n))},e.prototype.parseArgument=function(t,r){var n=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));if(this.char()===125)return this.bump(),this.error(T.EMPTY_ARGUMENT,w(n,this.clonePosition()));var i=this.parseIdentifierIfPossible().value;if(!i)return this.error(T.MALFORMED_ARGUMENT,w(n,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:H.argument,value:i,location:w(n,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,w(n,this.clonePosition())):this.parseArgumentOptions(t,r,i,n);default:return this.error(T.MALFORMED_ARGUMENT,w(n,this.clonePosition()))}},e.prototype.parseIdentifierIfPossible=function(){var t=this.clonePosition(),r=this.offset(),n=Oe(this.message,r),i=r+n.length;this.bumpTo(i);var o=this.clonePosition(),s=w(t,o);return {value:n,location:s}},e.prototype.parseArgumentOptions=function(t,r,n,i){var o,s=this.clonePosition(),l=this.parseIdentifierIfPossible().value,d=this.clonePosition();switch(l){case"":return this.error(T.EXPECT_ARGUMENT_TYPE,w(s,d));case"number":case"date":case"time":{this.bumpSpace();var h=null;if(this.bumpIf(",")){this.bumpSpace();var c=this.clonePosition(),m=this.parseSimpleArgStyleIfPossible();if(m.err)return m;var p=fn(m.val);if(p.length===0)return this.error(T.EXPECT_ARGUMENT_STYLE,w(this.clonePosition(),this.clonePosition()));var v=w(c,this.clonePosition());h={style:p,styleLocation:v};}var _=this.tryParseArgumentClose(i);if(_.err)return _;var g=w(i,this.clonePosition());if(h&&tt(h==null?void 0:h.style,"::",0)){var S=gn(h.style.slice(2));if(l==="number"){var m=this.parseNumberSkeletonFromString(S,h.styleLocation);return m.err?m:{val:{type:H.number,value:n,location:g,style:m.val},err:null}}else {if(S.length===0)return this.error(T.EXPECT_DATE_TIME_SKELETON,g);var y=S;this.locale&&(y=tn(S,this.locale));var p={type:W.dateTime,pattern:y,location:h.styleLocation,parsedOptions:this.shouldParseSkeletons?Zr(y):{}},k=l==="date"?H.date:H.time;return {val:{type:k,value:n,location:g,style:p},err:null}}}return {val:{type:l==="number"?H.number:l==="date"?H.date:H.time,value:n,location:g,style:(o=h==null?void 0:h.style)!==null&&o!==void 0?o:null},err:null}}case"plural":case"selectordinal":case"select":{var C=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(","))return this.error(T.EXPECT_SELECT_ARGUMENT_OPTIONS,w(C,N({},C)));this.bumpSpace();var A=this.parseIdentifierIfPossible(),E=0;if(l!=="select"&&A.value==="offset"){if(!this.bumpIf(":"))return this.error(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,w(this.clonePosition(),this.clonePosition()));this.bumpSpace();var m=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,T.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(m.err)return m;this.bumpSpace(),A=this.parseIdentifierIfPossible(),E=m.val;}var P=this.tryParsePluralOrSelectOptions(t,l,r,A);if(P.err)return P;var _=this.tryParseArgumentClose(i);if(_.err)return _;var D=w(i,this.clonePosition());return l==="select"?{val:{type:H.select,value:n,options:rt(P.val),location:D},err:null}:{val:{type:H.plural,value:n,options:rt(P.val),offset:E,pluralType:l==="plural"?"cardinal":"ordinal",location:D},err:null}}default:return this.error(T.INVALID_ARGUMENT_TYPE,w(s,d))}},e.prototype.tryParseArgumentClose=function(t){return this.isEOF()||this.char()!==125?this.error(T.EXPECT_ARGUMENT_CLOSING_BRACE,w(t,this.clonePosition())):(this.bump(),{val:!0,err:null})},e.prototype.parseSimpleArgStyleIfPossible=function(){for(var t=0,r=this.clonePosition();!this.isEOF();){var n=this.char();switch(n){case 39:{this.bump();var i=this.clonePosition();if(!this.bumpUntil("'"))return this.error(T.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,w(i,this.clonePosition()));this.bump();break}case 123:{t+=1,this.bump();break}case 125:{if(t>0)t-=1;else return {val:this.message.slice(r.offset,this.offset()),err:null};break}default:this.bump();break}}return {val:this.message.slice(r.offset,this.offset()),err:null}},e.prototype.parseNumberSkeletonFromString=function(t,r){var n=[];try{n=Qr(t);}catch(i){return this.error(T.INVALID_NUMBER_SKELETON,r)}return {val:{type:W.number,tokens:n,location:r,parsedOptions:this.shouldParseSkeletons?en(n):{}},err:null}},e.prototype.tryParsePluralOrSelectOptions=function(t,r,n,i){for(var o,s=!1,l=[],d=new Set,h=i.value,c=i.location;;){if(h.length===0){var m=this.clonePosition();if(r!=="select"&&this.bumpIf("=")){var p=this.tryParseDecimalInteger(T.EXPECT_PLURAL_ARGUMENT_SELECTOR,T.INVALID_PLURAL_ARGUMENT_SELECTOR);if(p.err)return p;c=w(m,this.clonePosition()),h=this.message.slice(m.offset,this.offset());}else break}if(d.has(h))return this.error(r==="select"?T.DUPLICATE_SELECT_ARGUMENT_SELECTOR:T.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,c);h==="other"&&(s=!0),this.bumpSpace();var v=this.clonePosition();if(!this.bumpIf("{"))return this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:T.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,w(this.clonePosition(),this.clonePosition()));var _=this.parseMessage(t+1,r,n);if(_.err)return _;var g=this.tryParseArgumentClose(v);if(g.err)return g;l.push([h,{value:_.val,location:w(v,this.clonePosition())}]),d.add(h),this.bumpSpace(),o=this.parseIdentifierIfPossible(),h=o.value,c=o.location;}return l.length===0?this.error(r==="select"?T.EXPECT_SELECT_ARGUMENT_SELECTOR:T.EXPECT_PLURAL_ARGUMENT_SELECTOR,w(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!s?this.error(T.MISSING_OTHER_CLAUSE,w(this.clonePosition(),this.clonePosition())):{val:l,err:null}},e.prototype.tryParseDecimalInteger=function(t,r){var n=1,i=this.clonePosition();this.bumpIf("+")||this.bumpIf("-")&&(n=-1);for(var o=!1,s=0;!this.isEOF();){var l=this.char();if(l>=48&&l<=57)o=!0,s=s*10+(l-48),this.bump();else break}var d=w(i,this.clonePosition());return o?(s*=n,mn(s)?{val:s,err:null}:this.error(r,d)):this.error(t,d)},e.prototype.offset=function(){return this.position.offset},e.prototype.isEOF=function(){return this.offset()===this.message.length},e.prototype.clonePosition=function(){return {offset:this.position.offset,line:this.position.line,column:this.position.column}},e.prototype.char=function(){var t=this.position.offset;if(t>=this.message.length)throw Error("out of bound");var r=Lt(this.message,t);if(r===void 0)throw Error("Offset ".concat(t," is at invalid UTF-16 code unit boundary"));return r},e.prototype.error=function(t,r){return {val:null,err:{kind:t,message:this.message,location:r}}},e.prototype.bump=function(){if(!this.isEOF()){var t=this.char();t===10?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=t<65536?1:2);}},e.prototype.bumpIf=function(t){if(tt(this.message,t,this.offset())){for(var r=0;r<t.length;r++)this.bump();return !0}return !1},e.prototype.bumpUntil=function(t){var r=this.offset(),n=this.message.indexOf(t,r);return n>=0?(this.bumpTo(n),!0):(this.bumpTo(this.message.length),!1)},e.prototype.bumpTo=function(t){if(this.offset()>t)throw Error("targetOffset ".concat(t," must be greater than or equal to the current offset ").concat(this.offset()));for(t=Math.min(t,this.message.length);;){var r=this.offset();if(r===t)break;if(r>t)throw Error("targetOffset ".concat(t," is at invalid UTF-16 code unit boundary"));if(this.bump(),this.isEOF())break}},e.prototype.bumpSpace=function(){for(;!this.isEOF()&&Rt(this.char());)this.bump();},e.prototype.peek=function(){if(this.isEOF())return null;var t=this.char(),r=this.offset(),n=this.message.charCodeAt(r+(t>=65536?2:1));return n!=null?n:null},e}();function Ie(e){return e>=97&&e<=122||e>=65&&e<=90}function yn(e){return Ie(e)||e===47}function vn(e){return e===45||e===46||e>=48&&e<=57||e===95||e>=97&&e<=122||e>=65&&e<=90||e==183||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function Rt(e){return e>=9&&e<=13||e===32||e===133||e>=8206&&e<=8207||e===8232||e===8233}function kn(e){return e>=33&&e<=35||e===36||e>=37&&e<=39||e===40||e===41||e===42||e===43||e===44||e===45||e>=46&&e<=47||e>=58&&e<=59||e>=60&&e<=62||e>=63&&e<=64||e===91||e===92||e===93||e===94||e===96||e===123||e===124||e===125||e===126||e===161||e>=162&&e<=165||e===166||e===167||e===169||e===171||e===172||e===174||e===176||e===177||e===182||e===187||e===191||e===215||e===247||e>=8208&&e<=8213||e>=8214&&e<=8215||e===8216||e===8217||e===8218||e>=8219&&e<=8220||e===8221||e===8222||e===8223||e>=8224&&e<=8231||e>=8240&&e<=8248||e===8249||e===8250||e>=8251&&e<=8254||e>=8257&&e<=8259||e===8260||e===8261||e===8262||e>=8263&&e<=8273||e===8274||e===8275||e>=8277&&e<=8286||e>=8592&&e<=8596||e>=8597&&e<=8601||e>=8602&&e<=8603||e>=8604&&e<=8607||e===8608||e>=8609&&e<=8610||e===8611||e>=8612&&e<=8613||e===8614||e>=8615&&e<=8621||e===8622||e>=8623&&e<=8653||e>=8654&&e<=8655||e>=8656&&e<=8657||e===8658||e===8659||e===8660||e>=8661&&e<=8691||e>=8692&&e<=8959||e>=8960&&e<=8967||e===8968||e===8969||e===8970||e===8971||e>=8972&&e<=8991||e>=8992&&e<=8993||e>=8994&&e<=9e3||e===9001||e===9002||e>=9003&&e<=9083||e===9084||e>=9085&&e<=9114||e>=9115&&e<=9139||e>=9140&&e<=9179||e>=9180&&e<=9185||e>=9186&&e<=9254||e>=9255&&e<=9279||e>=9280&&e<=9290||e>=9291&&e<=9311||e>=9472&&e<=9654||e===9655||e>=9656&&e<=9664||e===9665||e>=9666&&e<=9719||e>=9720&&e<=9727||e>=9728&&e<=9838||e===9839||e>=9840&&e<=10087||e===10088||e===10089||e===10090||e===10091||e===10092||e===10093||e===10094||e===10095||e===10096||e===10097||e===10098||e===10099||e===10100||e===10101||e>=10132&&e<=10175||e>=10176&&e<=10180||e===10181||e===10182||e>=10183&&e<=10213||e===10214||e===10215||e===10216||e===10217||e===10218||e===10219||e===10220||e===10221||e===10222||e===10223||e>=10224&&e<=10239||e>=10240&&e<=10495||e>=10496&&e<=10626||e===10627||e===10628||e===10629||e===10630||e===10631||e===10632||e===10633||e===10634||e===10635||e===10636||e===10637||e===10638||e===10639||e===10640||e===10641||e===10642||e===10643||e===10644||e===10645||e===10646||e===10647||e===10648||e>=10649&&e<=10711||e===10712||e===10713||e===10714||e===10715||e>=10716&&e<=10747||e===10748||e===10749||e>=10750&&e<=11007||e>=11008&&e<=11055||e>=11056&&e<=11076||e>=11077&&e<=11078||e>=11079&&e<=11084||e>=11085&&e<=11123||e>=11124&&e<=11125||e>=11126&&e<=11157||e===11158||e>=11159&&e<=11263||e>=11776&&e<=11777||e===11778||e===11779||e===11780||e===11781||e>=11782&&e<=11784||e===11785||e===11786||e===11787||e===11788||e===11789||e>=11790&&e<=11798||e===11799||e>=11800&&e<=11801||e===11802||e===11803||e===11804||e===11805||e>=11806&&e<=11807||e===11808||e===11809||e===11810||e===11811||e===11812||e===11813||e===11814||e===11815||e===11816||e===11817||e>=11818&&e<=11822||e===11823||e>=11824&&e<=11833||e>=11834&&e<=11835||e>=11836&&e<=11839||e===11840||e===11841||e===11842||e>=11843&&e<=11855||e>=11856&&e<=11857||e===11858||e>=11859&&e<=11903||e>=12289&&e<=12291||e===12296||e===12297||e===12298||e===12299||e===12300||e===12301||e===12302||e===12303||e===12304||e===12305||e>=12306&&e<=12307||e===12308||e===12309||e===12310||e===12311||e===12312||e===12313||e===12314||e===12315||e===12316||e===12317||e>=12318&&e<=12319||e===12320||e===12336||e===64830||e===64831||e>=65093&&e<=65094}function Le(e){e.forEach(function(t){if(delete t.location,Nt(t)||At(t))for(var r in t.options)delete t.options[r].location,Le(t.options[r].value);else Mt(t)&&Pt(t.style)||(Tt(t)||wt(t))&&Pe(t.style)?delete t.style.location:Ht(t)&&Le(t.children);});}function bn(e,t){t===void 0&&(t={}),t=N({shouldParseSkeletons:!0,requiresOtherClause:!0},t);var r=new _n(e,t).parse();if(r.err){var n=SyntaxError(T[r.err.kind]);throw n.location=r.err.location,n.originalMessage=r.err.message,n}return t!=null&&t.captureLocation||Le(r.val),r.val}var Z;(function(e){e.MISSING_VALUE="MISSING_VALUE",e.INVALID_VALUE="INVALID_VALUE",e.MISSING_INTL_API="MISSING_INTL_API";})(Z||(Z={}));var be=function(e){ke(t,e);function t(r,n,i){var o=e.call(this,r)||this;return o.code=n,o.originalMessage=i,o}return t.prototype.toString=function(){return "[formatjs Error: ".concat(this.code,"] ").concat(this.message)},t}(Error),it=function(e){ke(t,e);function t(r,n,i,o){return e.call(this,'Invalid values for "'.concat(r,'": "').concat(n,'". Options are "').concat(Object.keys(i).join('", "'),'"'),Z.INVALID_VALUE,o)||this}return t}(be),En=function(e){ke(t,e);function t(r,n,i){return e.call(this,'Value for "'.concat(r,'" must be of type ').concat(n),Z.INVALID_VALUE,i)||this}return t}(be),Cn=function(e){ke(t,e);function t(r,n){return e.call(this,'The intl string context variable "'.concat(r,'" was not provided to the string "').concat(n,'"'),Z.MISSING_VALUE,n)||this}return t}(be),L;(function(e){e[e.literal=0]="literal",e[e.object=1]="object";})(L||(L={}));function Sn(e){return e.length<2?e:e.reduce(function(t,r){var n=t[t.length-1];return !n||n.type!==L.literal||r.type!==L.literal?t.push(r):n.value+=r.value,t},[])}function xn(e){return typeof e=="function"}function ge(e,t,r,n,i,o,s){if(e.length===1&&Ye(e[0]))return [{type:L.literal,value:e[0].value}];for(var l=[],d=0,h=e;d<h.length;d++){var c=h[d];if(Ye(c)){l.push({type:L.literal,value:c.value});continue}if(qr(c)){typeof o=="number"&&l.push({type:L.literal,value:r.getNumberFormat(t).format(o)});continue}var m=c.value;if(!(i&&m in i))throw new Cn(m,s);var p=i[m];if(Xr(c)){(!p||typeof p=="string"||typeof p=="number")&&(p=typeof p=="string"||typeof p=="number"?String(p):""),l.push({type:typeof p=="string"?L.literal:L.object,value:p});continue}if(Tt(c)){var v=typeof c.style=="string"?n.date[c.style]:Pe(c.style)?c.style.parsedOptions:void 0;l.push({type:L.literal,value:r.getDateTimeFormat(t,v).format(p)});continue}if(wt(c)){var v=typeof c.style=="string"?n.time[c.style]:Pe(c.style)?c.style.parsedOptions:n.time.medium;l.push({type:L.literal,value:r.getDateTimeFormat(t,v).format(p)});continue}if(Mt(c)){var v=typeof c.style=="string"?n.number[c.style]:Pt(c.style)?c.style.parsedOptions:void 0;v&&v.scale&&(p=p*(v.scale||1)),l.push({type:L.literal,value:r.getNumberFormat(t,v).format(p)});continue}if(Ht(c)){var _=c.children,g=c.value,S=i[g];if(!xn(S))throw new En(g,"function",s);var y=ge(_,t,r,n,i,o),k=S(y.map(function(E){return E.value}));Array.isArray(k)||(k=[k]),l.push.apply(l,k.map(function(E){return {type:typeof E=="string"?L.literal:L.object,value:E}}));}if(Nt(c)){var C=c.options[p]||c.options.other;if(!C)throw new it(c.value,p,Object.keys(c.options),s);l.push.apply(l,ge(C.value,t,r,n,i));continue}if(At(c)){var C=c.options["=".concat(p)];if(!C){if(!Intl.PluralRules)throw new be(`Intl.PluralRules is not available in this environment.
13978
13991
  Try polyfilling it using "@formatjs/intl-pluralrules"
13979
- `,Z.MISSING_INTL_API,s);var N=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));S=c.options[N]||c.options.other;}if(!S)throw new nt(c.value,p,Object.keys(c.options),s);l.push.apply(l,ge(S.value,t,r,n,i,p-(c.offset||0)));continue}}return Sn(l)}function Tn(e,t){return t?U(U(U({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=U(U({},e[n]),t[n]||{}),r},{})):e}function Mn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Tn(e[n],t[n]),r},U({},e)):e}function Ae(e){return {create:function(){return {get:function(t){return e[t]},set:function(t,r){e[t]=r;}}}}}function wn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,Te([void 0],r,!1)))},{cache:Ae(e.number),strategy:we.variadic}),getDateTimeFormat:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,Te([void 0],r,!1)))},{cache:Ae(e.dateTime),strategy:we.variadic}),getPluralRules:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,Te([void 0],r,!1)))},{cache:Ae(e.pluralRules),strategy:we.variadic})}}var Nn=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(d){var h=o.formatToParts(d);if(h.length===1)return h[0].value;var c=h.reduce(function(m,p){return !m.length||p.type!==j.literal||typeof m[m.length-1]!="string"?m.push(p.value):m[m.length-1]+=p.value,m},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(d){return ge(o.ast,o.locales,o.formatters,o.formats,d,void 0,o.message)},this.resolvedOptions=function(){var d;return {locale:((d=o.resolvedLocale)===null||d===void 0?void 0:d.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};var l=jr(s,["formatters"]);this.ast=e.__parse(t,U(U({},l),{locale:this.resolvedLocale}));}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Mn(e.formats,n),this.formatters=i&&i.formatters||wn(this.formatterCache);}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=bn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function An(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]];}else n=void 0;return n}const F={},Hn=(e,t,r)=>r&&(t in F||(F[t]={}),e in F[t]||(F[t][e]=r),r),Rt=(e,t)=>{if(t==null)return;if(t in F&&e in F[t])return F[t][e];const r=Ce(t);for(let n=0;n<r.length;n++){const i=r[n],o=Bn(i,e);if(o)return Hn(e,t,o)}};let De;const se=ke({});function Pn(e){return De[e]||null}function Ut(e){return e in De}function Bn(e,t){if(!Ut(e))return null;const r=Pn(e);return An(r,t)}function On(e){if(e==null)return;const t=Ce(e);for(let r=0;r<t.length;r++){const n=t[r];if(Ut(n))return n}}function Dt(e,...t){delete F[e],se.update(r=>(r[e]=Ir.all([r[e]||{},...t]),r));}Q([se],([e])=>Object.keys(e));se.subscribe(e=>De=e);const fe={};function zn(e,t){fe[e].delete(t),fe[e].size===0&&delete fe[e];}function Gt(e){return fe[e]}function In(e){return Ce(e).map(t=>{const r=Gt(t);return [t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function Re(e){return e==null?!1:Ce(e).some(t=>{var r;return (r=Gt(t))==null?void 0:r.size})}function jn(e,t){return Promise.all(t.map(n=>(zn(e,n),n().then(i=>i.default||i)))).then(n=>Dt(e,...n))}const ie={};function Ft(e){if(!Re(e))return e in ie?ie[e]:Promise.resolve();const t=In(e);return ie[e]=Promise.all(t.map(([r,n])=>jn(r,n))).then(()=>{if(Re(e))return Ft(e);delete ie[e];}),ie[e]}const Ln={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Rn={fallbackLocale:null,loadingDelay:200,formats:Ln,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Un=Rn;function J(){return Un}const He=ke(!1);var Dn=Object.defineProperty,Gn=Object.defineProperties,Fn=Object.getOwnPropertyDescriptors,it=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,at=(e,t,r)=>t in e?Dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qn=(e,t)=>{for(var r in t||(t={}))Vn.call(t,r)&&at(e,r,t[r]);if(it)for(var r of it(t))Xn.call(t,r)&&at(e,r,t[r]);return e},Wn=(e,t)=>Gn(e,Fn(t));let Ue;const ye=ke(null);function ot(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ce(e,t=J().fallbackLocale){const r=ot(e);return t?[...new Set([...r,...ot(t)])]:r}function V(){return Ue!=null?Ue:void 0}ye.subscribe(e=>{Ue=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e);});const Zn=e=>{if(e&&On(e)&&Re(e)){const{loadingDelay:t}=J();let r;return typeof window!="undefined"&&V()!=null&&t?r=window.setTimeout(()=>He.set(!0),t):He.set(!0),Ft(e).then(()=>{ye.set(e);}).finally(()=>{clearTimeout(r),He.set(!1);})}return ye.set(e)},Y=Wn(qn({},ye),{set:Zn}),Se=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Jn=Object.defineProperty,ve=Object.getOwnPropertySymbols,Vt=Object.prototype.hasOwnProperty,Xt=Object.prototype.propertyIsEnumerable,st=(e,t,r)=>t in e?Jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Ge=(e,t)=>{for(var r in t||(t={}))Vt.call(t,r)&&st(e,r,t[r]);if(ve)for(var r of ve(t))Xt.call(t,r)&&st(e,r,t[r]);return e},K=(e,t)=>{var r={};for(var n in e)Vt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ve)for(var n of ve(e))t.indexOf(n)<0&&Xt.call(e,n)&&(r[n]=e[n]);return r};const oe=(e,t)=>{const{formats:r}=J();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Qn=Se(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=oe("number",n)),new Intl.NumberFormat(r,i)}),Yn=Se(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=oe("date",n):Object.keys(i).length===0&&(i=oe("date","short")),new Intl.DateTimeFormat(r,i)}),Kn=Se(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=oe("time",n):Object.keys(i).length===0&&(i=oe("time","short")),new Intl.DateTimeFormat(r,i)}),$n=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Qn(Ge({locale:r},n))},ei=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Yn(Ge({locale:r},n))},ti=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Kn(Ge({locale:r},n))},ri=Se((e,t=V())=>new Nn(e,t,J().formats,{ignoreTag:J().ignoreTag})),ni=(e,t={})=>{var r,n,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:l,locale:d=V(),default:h}=s;if(d==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Rt(e,d);if(!c)c=(o=(i=(n=(r=J()).handleMissingMessage)==null?void 0:n.call(r,{locale:d,id:e,defaultValue:h}))!=null?i:h)!=null?o:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!l)return c;let m=c;try{m=ri(c,d).format(l);}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message);}return m},ii=(e,t)=>ti(t).format(e),ai=(e,t)=>ei(t).format(e),oi=(e,t)=>$n(t).format(e),si=(e,t=V())=>Rt(e,t),li=Q([Y,se],()=>ni);Q([Y],()=>ii);Q([Y],()=>ai);Q([Y],()=>oi);Q([Y,se],()=>si);function lt(e,t){Dt(e,t);}function ci(e){Y.set(e);}const ct={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingCvjpSnS0).then(t=>t.GeneralAnimationLoading_ce).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}function ui(e){let t,r;return {c(){t=a.svg_element("svg"),r=a.svg_element("path"),a.attr(r,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),a.attr(t,"xmlns","http://www.w3.org/2000/svg"),a.attr(t,"viewBox","0 0 512 512");},m(n,i){a.insert(n,t,i),a.append(t,r);},p:a.noop,i:a.noop,o:a.noop,d(n){n&&a.detach(t);}}}class hi extends a.SvelteComponent{constructor(t){super(),a.init(this,t,null,ui,a.safe_not_equal,{});}}customElements.define("circle-exclamation-icon",a.create_custom_element(hi,{},[],[],!0));function di(e){a.append_styles(e,"svelte-etk3ty",'.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');}function ut(e,t,r){const n=e.slice();return n[64]=t[r],n}function ht(e,t,r){const n=e.slice();return n[61]=t[r],n[62]=t,n[63]=r,n}function dt(e,t,r){const n=e.slice();return n[64]=t[r],n}function mi(e){let t,r,n=a.ensure_array_like(e[9]),i=[];for(let o=0;o<n.length;o+=1)i[o]=mt(ut(e,n,o));return {c(){t=a.element("div"),r=a.element("form");for(let o=0;o<i.length;o+=1)i[o].c();a.attr(r,"class","checkbox svelte-etk3ty"),a.attr(t,"class","legacyStyle");},m(o,s){a.insert(o,t,s),a.append(t,r);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(r,null);e[31](r);},p(o,s){if(s[0]&590336){n=a.ensure_array_like(o[9]);let l;for(l=0;l<n.length;l+=1){const d=ut(o,n,l);i[l]?i[l].p(d,s):(i[l]=mt(d),i[l].c(),i[l].m(r,null));}for(;l<i.length;l+=1)i[l].d(1);i.length=n.length;}},d(o){o&&a.detach(t),a.destroy_each(i,o),e[31](null);}}}function pi(e){let t=e[16]("title")||e[16]("description"),r,n,i,o=(e[16]("saveButtonContent")||"Save Consents")+"",s,l,d,h,c,m=t&&pt(e),p=a.ensure_array_like(e[8]),k=[];for(let g=0;g<p.length;g+=1)k[g]=kt(ht(e,p,g));let _=e[6]&&bt(e);return {c(){m&&m.c(),r=a.space();for(let g=0;g<k.length;g+=1)k[g].c();n=a.space(),i=a.element("button"),l=a.space(),_&&_.c(),d=a.empty(),a.attr(i,"class","SaveConsentsButton svelte-etk3ty"),i.disabled=s=!e[14];},m(g,C){m&&m.m(g,C),a.insert(g,r,C);for(let y=0;y<k.length;y+=1)k[y]&&k[y].m(g,C);a.insert(g,n,C),a.insert(g,i,C),i.innerHTML=o,a.insert(g,l,C),_&&_.m(g,C),a.insert(g,d,C),h||(c=a.listen(i,"click",e[17]),h=!0);},p(g,C){if(C[0]&65536&&(t=g[16]("title")||g[16]("description")),t?m?m.p(g,C):(m=pt(g),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),C[0]&867088){p=a.ensure_array_like(g[8]);let y;for(y=0;y<p.length;y+=1){const v=ht(g,p,y);k[y]?k[y].p(v,C):(k[y]=kt(v),k[y].c(),k[y].m(n.parentNode,n));}for(;y<k.length;y+=1)k[y].d(1);k.length=p.length;}C[0]&65536&&o!==(o=(g[16]("saveButtonContent")||"Save Consents")+"")&&(i.innerHTML=o),C[0]&16384&&s!==(s=!g[14])&&(i.disabled=s),g[6]?_?_.p(g,C):(_=bt(g),_.c(),_.m(d.parentNode,d)):_&&(_.d(1),_=null);},d(g){g&&(a.detach(r),a.detach(n),a.detach(i),a.detach(l),a.detach(d)),m&&m.d(g),a.destroy_each(k,g),_&&_.d(g),h=!1,c();}}}function gi(e){let t,r,n;return {c(){t=a.element("div"),r=a.element("strong"),n=a.text(e[7]),a.attr(r,"class","ErrorMessage svelte-etk3ty"),a.attr(t,"class","ContainerCenter svelte-etk3ty");},m(i,o){a.insert(i,t,o),a.append(t,r),a.append(r,n);},p(i,o){o[0]&128&&a.set_data(n,i[7]);},d(i){i&&a.detach(t);}}}function fi(e){let t;return {c(){t=a.element("general-animation-loading"),a.set_custom_element_data(t,"clientstyling",e[1]),a.set_custom_element_data(t,"clientstylingurl",e[2]),a.set_custom_element_data(t,"mbsource",e[3]);},m(r,n){a.insert(r,t,n);},p(r,n){n[0]&2&&a.set_custom_element_data(t,"clientstyling",r[1]),n[0]&4&&a.set_custom_element_data(t,"clientstylingurl",r[2]),n[0]&8&&a.set_custom_element_data(t,"mbsource",r[3]);},d(r){r&&a.detach(t);}}}function mt(e){let t,r,n,i,o,s,l,d,h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"",c=e[64].mustAccept?" *":"",m,p,k,_,g,C,y,v,S;function N(...E){return e[30](e[64],...E)}return {c(){t=a.element("div"),r=a.element("input"),o=a.space(),s=a.element("label"),l=a.element("div"),d=new a.HtmlTag(!1),m=a.text(c),k=a.space(),_=a.element("small"),C=a.space(),a.attr(r,"class","checkbox__input svelte-etk3ty"),a.attr(r,"type","checkbox"),r.checked=n=e[64].status==="1",a.attr(r,"id",i=`${e[64].tagCode}__input`),d.a=m,a.attr(l,"class","checkbox__label-text svelte-etk3ty"),a.attr(s,"class","checkbox__label svelte-etk3ty"),a.attr(s,"for",p=`${e[64].tagCode}__input`),a.attr(_,"class","checkbox__error-message svelte-etk3ty"),a.attr(_,"id",g="checkBoxError__"+e[64].tagCode),a.attr(t,"class",y="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty");},m(E,H){a.insert(E,t,H),a.append(t,r),a.append(t,o),a.append(t,s),a.append(s,l),d.m(h,l),a.append(l,m),a.append(t,k),a.append(t,_),a.append(t,C),v||(S=a.listen(r,"input",N),v=!0);},p(E,H){e=E,H[0]&512&&n!==(n=e[64].status==="1")&&(r.checked=n),H[0]&512&&i!==(i=`${e[64].tagCode}__input`)&&a.attr(r,"id",i),H[0]&66048&&h!==(h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"")&&d.p(h),H[0]&512&&c!==(c=e[64].mustAccept?" *":"")&&a.set_data(m,c),H[0]&512&&p!==(p=`${e[64].tagCode}__input`)&&a.attr(s,"for",p),H[0]&512&&g!==(g="checkBoxError__"+e[64].tagCode)&&a.attr(_,"id",g),H[0]&512&&y!==(y="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty")&&a.attr(t,"class",y);},d(E){E&&a.detach(t),v=!1,S();}}}function pt(e){let t,r=e[16]("title"),n,i=e[16]("description"),o=r&&gt(e),s=i&&ft(e);return {c(){t=a.element("div"),o&&o.c(),n=a.space(),s&&s.c(),a.attr(t,"class","PlayerConsentsHeader svelte-etk3ty");},m(l,d){a.insert(l,t,d),o&&o.m(t,null),a.append(t,n),s&&s.m(t,null);},p(l,d){d[0]&65536&&(r=l[16]("title")),r?o?o.p(l,d):(o=gt(l),o.c(),o.m(t,n)):o&&(o.d(1),o=null),d[0]&65536&&(i=l[16]("description")),i?s?s.p(l,d):(s=ft(l),s.c(),s.m(t,null)):s&&(s.d(1),s=null);},d(l){l&&a.detach(t),o&&o.d(),s&&s.d();}}}function gt(e){let t,r=e[16]("title")+"",n;return {c(){t=a.element("h2"),n=a.text(r),a.attr(t,"class","PlayerConsentsTitle");},m(i,o){a.insert(i,t,o),a.append(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("title")+"")&&a.set_data(n,r);},d(i){i&&a.detach(t);}}}function ft(e){let t,r=e[16]("description")+"",n;return {c(){t=a.element("p"),n=a.text(r),a.attr(t,"class","PlayerConsentsDescription");},m(i,o){a.insert(i,t,o),a.append(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("description")+"")&&a.set_data(n,r);},d(i){i&&a.detach(t);}}}function _t(e){let t;return {c(){t=a.element("sup"),t.textContent="*",a.attr(t,"class","ConsentRequired svelte-etk3ty");},m(r,n){a.insert(r,t,n);},d(r){r&&a.detach(t);}}}function yt(e){let t,r=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"";return {c(){t=a.element("p"),a.attr(t,"class","ConsentDescription svelte-etk3ty");},m(n,i){a.insert(n,t,i),t.innerHTML=r;},p(n,i){i[0]&66304&&r!==(r=(n[16](`${n[64].tagCode}__description`)||n[64].description)+"")&&(t.innerHTML=r);},d(n){n&&a.detach(t);}}}function vt(e){let t,r,n,i,o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"",s,l,d,h,c,m,p,k,_,g,C,y=e[64].mustAccept===!0&&_t(),v=e[4]==="true"&&yt(e);function S(...N){return e[29](e[64],...N)}return {c(){t=a.element("div"),r=a.element("div"),n=a.element("h4"),i=new a.HtmlTag(!1),s=a.space(),y&&y.c(),l=a.space(),v&&v.c(),d=a.space(),h=a.element("label"),c=a.element("input"),k=a.space(),_=a.element("span"),i.a=s,a.attr(n,"class","ConsentName svelte-etk3ty"),a.attr(r,"class","ConsentContent"),a.attr(c,"type","checkbox"),c.disabled=m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0,c.checked=p=e[13][e[64].tagCode],a.attr(c,"class","svelte-etk3ty"),a.attr(_,"class","Slider Round svelte-etk3ty"),a.attr(h,"class","ToggleSwitch svelte-etk3ty"),a.attr(t,"class","ConsentItem svelte-etk3ty");},m(N,E){a.insert(N,t,E),a.append(t,r),a.append(r,n),i.m(o,n),a.append(n,s),y&&y.m(n,null),a.append(r,l),v&&v.m(r,null),a.append(t,d),a.append(t,h),a.append(h,c),a.append(h,k),a.append(h,_),g||(C=a.listen(c,"input",S),g=!0);},p(N,E){e=N,E[0]&66304&&o!==(o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"")&&i.p(o),e[64].mustAccept===!0?y||(y=_t(),y.c(),y.m(n,null)):y&&(y.d(1),y=null),e[4]==="true"?v?v.p(e,E):(v=yt(e),v.c(),v.m(r,null)):v&&(v.d(1),v=null),E[0]&4864&&m!==(m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0)&&(c.disabled=m),E[0]&8960&&p!==(p=e[13][e[64].tagCode])&&(c.checked=p);},d(N){N&&a.detach(t),y&&y.d(),v&&v.d(),g=!1,C();}}}function kt(e){let t,r,n,i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"",o,s,l,d,h,c,m,p,k;function _(){e[26].call(l,e[61]);}function g(){return e[27](e[61])}function C(...S){return e[28](e[61],...S)}let y=a.ensure_array_like(e[9].filter(C)),v=[];for(let S=0;S<y.length;S+=1)v[S]=vt(dt(e,y,S));return {c(){t=a.element("div"),r=a.element("div"),n=a.element("h3"),o=a.space(),s=a.element("label"),l=a.element("input"),d=a.space(),h=a.element("span"),c=a.space(),m=a.element("div");for(let S=0;S<v.length;S+=1)v[S].c();a.attr(l,"type","checkbox"),a.attr(l,"class","svelte-etk3ty"),a.attr(h,"class","Slider Round svelte-etk3ty"),a.attr(s,"class","ToggleSwitch Big svelte-etk3ty"),a.attr(r,"class","AccordionHeader svelte-etk3ty"),a.attr(m,"class","AccordionContent svelte-etk3ty"),a.attr(t,"class","AccordionItem svelte-etk3ty");},m(S,N){a.insert(S,t,N),a.append(t,r),a.append(r,n),n.innerHTML=i,a.append(r,o),a.append(r,s),a.append(s,l),l.checked=e[11][e[61].categoryTagCode],a.append(s,d),a.append(s,h),a.append(t,c),a.append(t,m);for(let E=0;E<v.length;E+=1)v[E]&&v[E].m(m,null);p||(k=[a.listen(l,"change",_),a.listen(l,"change",g)],p=!0);},p(S,N){if(e=S,N[0]&65792&&i!==(i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"")&&(n.innerHTML=i),N[0]&2304&&(l.checked=e[11][e[61].categoryTagCode]),N[0]&602896){y=a.ensure_array_like(e[9].filter(C));let E;for(E=0;E<y.length;E+=1){const H=dt(e,y,E);v[E]?v[E].p(H,N):(v[E]=vt(H),v[E].c(),v[E].m(m,null));}for(;E<v.length;E+=1)v[E].d(1);v.length=y.length;}},d(S){S&&a.detach(t),a.destroy_each(v,S),p=!1,a.run_all(k);}}}function bt(e){let t,r,n,i,o;return {c(){t=a.element("div"),r=a.element("circle-exclamation-icon"),n=a.space(),i=a.element("strong"),o=a.text(e[6]),a.set_custom_element_data(r,"class","svelte-etk3ty"),a.attr(i,"class","ErrorMessage svelte-etk3ty"),a.attr(t,"class","ConsentErrorContainer svelte-etk3ty");},m(s,l){a.insert(s,t,l),a.append(t,r),a.append(t,n),a.append(t,i),a.append(i,o);},p(s,l){l[0]&64&&a.set_data(o,s[6]);},d(s){s&&a.detach(t);}}}function _i(e){let t,r;function n(s,l){if(s[10])return fi;if(s[7])return gi;if(s[0])return pi;if(!s[0])return mi}let i=n(e),o=i&&i(e);return {c(){t=a.element("div"),r=a.element("div"),o&&o.c(),a.attr(r,"class","ConsentsContainer svelte-etk3ty"),a.attr(t,"class",a.null_to_empty("")+" svelte-etk3ty");},m(s,l){a.insert(s,t,l),a.append(t,r),o&&o.m(r,null),e[32](r);},p(s,l){i===(i=n(s))&&o?o.p(s,l):(o&&o.d(1),o=i&&i(s),o&&(o.c(),o.m(r,null)));},i:a.noop,o:a.noop,d(s){s&&a.detach(t),o&&o.d(),e[32](null);}}}function yi(e,t,r){let n;a.component_subscribe(e,li,u=>r(16,n=u));let{session:i=""}=t,{userid:o=""}=t,{endpoint:s=""}=t,{clientstyling:l=""}=t,{clientstylingurl:d=""}=t,{mbsource:h}=t,{lang:c="en"}=t,{displayconsentdescription:m=""}=t,{translationurl:p=""}=t,{modalconsents:k="false"}=t,_,g=!1,C=!1,y="",v="",S="",N="",E=[],H=[],P=[],$=!0,le=!0,L={},ce={},G={},I={},ee,ue,z={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},he=!1;Object.keys(ct).forEach(u=>{lt(u,ct[u]);});const Wt=()=>{ci(c);},Zt=()=>{let u=new URL(p);fetch(u.href).then(f=>f.json()).then(f=>{Object.keys(f).forEach(T=>{lt(T,f[T]);});}).catch(f=>{console.log(f);});},Jt=()=>{i&&(y=i,C=!0),o&&(v=o);},de=(u,f=!1)=>{f?r(7,N=u):(tr(),r(6,S=u));},te=(u,f,T,b=!1)=>ne(this,null,function*(){try{const x=yield fetch(u,T);if(!x.ok)throw new Error(n(f));const O=yield x.json();return C?O:O.filter(R=>R.showOnRegister===!0)}catch(x){throw de(x instanceof TypeError?n(f):x.message,b),x}}),Qt=()=>ne(this,null,function*(){try{let u=[],f=[];if(C?[u,f]=yield Fe():u=yield Fe(),r(10,$=!1),H=[...u],r(8,E=Kt(H).sort((T,b)=>T.categoryTagCode.localeCompare(b.categoryTagCode))),r(11,L=$t(E)),ce=D({},L),r(9,P=[...f]),H.forEach(T=>{let b=P.find(x=>x.tagCode===T.tagCode);b||(b=Ze(D({},T),{status:z.denied.value}),P.push(b)),b.description=T.description,b.orderNumber=T.orderNumber;}),k==="true"){if(r(9,P=P.filter(T=>T.status===z.expired.value)),P.length!==0)return;de(n("wrongModalConfig"),!0);}er();}catch(u){throw r(10,$=!1),de(u instanceof TypeError?n("invalidUrl"):u.message,!0),u}}),Fe=()=>ne(this,null,function*(){const u=new URL(`${s}/api/v1/gm/consents`);if(u.searchParams.append("Status","Active"),!C)return yield te(u.href,"fetchConsentsError",{method:"GET"},!0);const f=new URL(`${s}/api/v1/gm/user-consents/${v}`);return yield Promise.all([te(u.href,"fetchConsentsError",{method:"GET"},!0),te(f.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":y,"Content-Type":"application/json"}})])}),Yt=()=>{he=!1;const u=new URL(`${s}/api/v2/gm/legislation/consents`),f={"Content-Type":"application/json",Accept:"application/json"},T={method:"GET",headers:f};fetch(u.href,T).then(b=>b.ok?b.json():(he=!0,b.json().then(x=>(console.error(x),me(x))))).then(b=>{if(!he){if(H=b,localStorage.getItem("playerConsents")){try{r(9,P=JSON.parse(localStorage.getItem("playerConsents")));}catch(x){return console.error(x),me(x)}return}return r(9,P=H.map(x=>({id:x.id,status:z.denied.key,friendlyName:x.friendlyName,tagCode:x.tagCode,selected:null,mustAccept:x.mustAccept}))),localStorage.setItem("playerConsents",JSON.stringify(P)),P}}).catch(b=>(console.error(b),me(b))).finally(()=>{r(10,$=!1);});},Kt=u=>{const f=new Map;return u.forEach(T=>{f.has(T.category.categoryTagCode)||f.set(T.category.categoryTagCode,T.category);}),Array.from(f.values())},$t=u=>{const f=localStorage.getItem("categoryToggle"+v);if(f===null){const T=u.reduce((b,x)=>(b[x.categoryTagCode]=!1,b),{});return localStorage.setItem("categoryToggle"+v,JSON.stringify(T)),T}else return JSON.parse(f)},er=()=>{P.forEach(u=>{r(12,G[u.tagCode]=u.status===z.accepted.value,G);}),r(13,I=D({},G));},tr=()=>{r(13,I=D({},G)),r(11,L=D({},ce));},rr=()=>ne(this,null,function*(){if(!le)return;le=!1;const u=[],f=[];if(Object.keys(I).forEach(b=>{const x=P.find(O=>O.tagCode===b);I[b]!==G[b]&&(x?u.push({tagCode:b,status:I[b]?z.accepted.value:z.denied.value}):f.push({tagCode:b,status:I[b]?z.accepted.value:z.denied.value}));}),!C){localStorage.setItem("categoryToggle"+v,JSON.stringify(L)),ce=D({},L),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(f)},window.location.href),le=!0;return}const T=new URL(`${s}/api/v1/gm/user-consents/${v}`);try{const b=yield Promise.allSettled([f.length>0&&te(T.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":y,"Content-Type":"application/json"},body:JSON.stringify({userConsents:f})}),u.length>0&&te(T.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":y,"Content-Type":"application/json"},body:JSON.stringify({userConsents:u})})]);b.forEach((x,O)=>{if(x.status==="rejected"||x.value.ok===!1){const R=O<f.length?f[O]:u[O-f.length];r(13,I[R.tagCode]=G[R.tagCode],I);}}),b.every(x=>x.status==="fulfilled")&&(localStorage.setItem("categoryToggle"+v,JSON.stringify(L)),ce=D({},L),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),r(12,G=D({},I)));}catch(b){de(b instanceof TypeError?n("saveChangesError"):b.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href);}finally{le=!0,r(14,ee=!1);}}),nr=u=>{const f=new URL(`${s}/api/v2/gm/legislation/consents`),T={"Content-Type":"application/json",Accept:"application/json"},b={playerConsents:P,registrationId:u},x={method:"POST",body:JSON.stringify(b),headers:T};fetch(f.href,x).then(O=>{O.ok||(he=!0);}).catch(O=>(console.error(O),me(O))).finally(()=>{r(10,$=!1);});},Ve=u=>{P.filter(f=>f.category.categoryTagCode===u).forEach(f=>{f.status=f.status===z.denied.value?z.accepted.value:z.denied.value,r(13,I[f.tagCode]=L[u]||!1,I);}),r(14,ee=Xe());},xe=(u,f,T)=>{const b=P.find(R=>R.id===T),x=f?"value":"key";let O;if(!f&&b.mustAccept){const R=Array.from(ue.children);for(const re of R)if(O=Array.from(re.children).find(pr=>pr.getAttribute("id")===`checkBoxError__${b.tagCode}`),O)break}if(b.status===z.accepted[x]?(b.status=z.denied[x],O&&(O.innerHTML=n("requiredError"))):(b.status=z.accepted[x],O&&(O.innerHTML="")),f){r(13,I[b.tagCode]=!I[b.tagCode],I);const R=P.filter(re=>re.category.categoryTagCode===f.categoryTagCode).every(re=>re.status!==z.denied.value);r(11,L[f.categoryTagCode]=R,L);}ir();},ir=((u,f)=>{let T;return function(...b){const x=this;clearTimeout(T),T=setTimeout(()=>{u.apply(x,b);},f);}})(()=>ar(),500),ar=()=>{r(14,ee=Xe()),i||(window.postMessage({type:"isConsentsValid",isValid:ee}),localStorage.setItem("playerConsents",JSON.stringify(P)));},Xe=()=>P.filter(f=>P.some(T=>f.tagCode===T.tagCode&&T.mustAccept&&(f.status===z.denied.key||f.status===z.denied.value))).length===0,me=u=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:u}},window.location.href);},or=u=>{u.data&&u.data.type!=="setUpPlayerConsents"||nr(u.data.registerid);};a.onMount(()=>{setTimeout(()=>{r(25,g=!0);},50);const u=f=>or(f);return window.addEventListener("message",u),()=>{window.removeEventListener("message",u);}});function sr(u){L[u.categoryTagCode]=this.checked,r(11,L);}const lr=u=>Ve(u.categoryTagCode),cr=(u,f)=>f.category.categoryTagCode===u.categoryTagCode,ur=(u,f)=>xe(f,u.category,u.id),hr=(u,f)=>xe(f,null,u.id);function dr(u){a.binding_callbacks[u?"unshift":"push"](()=>{ue=u,r(15,ue);});}function mr(u){a.binding_callbacks[u?"unshift":"push"](()=>{_=u,r(5,_);});}return e.$$set=u=>{"session"in u&&r(0,i=u.session),"userid"in u&&r(20,o=u.userid),"endpoint"in u&&r(21,s=u.endpoint),"clientstyling"in u&&r(1,l=u.clientstyling),"clientstylingurl"in u&&r(2,d=u.clientstylingurl),"mbsource"in u&&r(3,h=u.mbsource),"lang"in u&&r(22,c=u.lang),"displayconsentdescription"in u&&r(4,m=u.displayconsentdescription),"translationurl"in u&&r(23,p=u.translationurl),"modalconsents"in u&&r(24,k=u.modalconsents);},e.$$.update=()=>{e.$$.dirty[0]&33554433&&g&&i&&(Jt(),Qt()),e.$$.dirty[0]&1&&(i||Yt()),e.$$.dirty[0]&34&&l&&_&&a.setClientStyling(_,l),e.$$.dirty[0]&36&&d&&_&&a.setClientStylingURL(_,d),e.$$.dirty[0]&40&&_&&a.setStreamStyling(_,`${h}.Style`),e.$$.dirty[0]&4194304&&c&&Wt(),e.$$.dirty[0]&8388608&&p&&Zt();},[i,l,d,h,m,_,S,N,E,P,$,L,G,I,ee,ue,n,rr,Ve,xe,o,s,c,p,k,g,sr,lr,cr,ur,hr,dr,mr]}class qt extends a.SvelteComponent{constructor(t){super(),a.init(this,t,yi,_i,a.safe_not_equal,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},di,[-1,-1,-1]);}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),a.flush();}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),a.flush();}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),a.flush();}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),a.flush();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),a.flush();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),a.flush();}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),a.flush();}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),a.flush();}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),a.flush();}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),a.flush();}}a.create_custom_element(qt,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);exports.default=qt;
13980
- }(PlayerConsentsBpocBWYo));
13992
+ `,Z.MISSING_INTL_API,s);var A=r.getPluralRules(t,{type:c.pluralType}).select(p-(c.offset||0));C=c.options[A]||c.options.other;}if(!C)throw new it(c.value,p,Object.keys(c.options),s);l.push.apply(l,ge(C.value,t,r,n,i,p-(c.offset||0)));continue}}return Sn(l)}function Mn(e,t){return t?N(N(N({},e||{}),t||{}),Object.keys(e).reduce(function(r,n){return r[n]=N(N({},e[n]),t[n]||{}),r},{})):e}function Tn(e,t){return t?Object.keys(e).reduce(function(r,n){return r[n]=Mn(e[n],t[n]),r},N({},e)):e}function Ne(e){return {create:function(){return {get:function(t){return e[t]},set:function(t,r){e[t]=r;}}}}}function wn(e){return e===void 0&&(e={number:{},dateTime:{},pluralRules:{}}),{getNumberFormat:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.NumberFormat).bind.apply(t,xe([void 0],r,!1)))},{cache:Ne(e.number),strategy:Te.variadic}),getDateTimeFormat:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.DateTimeFormat).bind.apply(t,xe([void 0],r,!1)))},{cache:Ne(e.dateTime),strategy:Te.variadic}),getPluralRules:Me(function(){for(var t,r=[],n=0;n<arguments.length;n++)r[n]=arguments[n];return new((t=Intl.PluralRules).bind.apply(t,xe([void 0],r,!1)))},{cache:Ne(e.pluralRules),strategy:Te.variadic})}}var Nn=function(){function e(t,r,n,i){r===void 0&&(r=e.defaultLocale);var o=this;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=function(d){var h=o.formatToParts(d);if(h.length===1)return h[0].value;var c=h.reduce(function(m,p){return !m.length||p.type!==L.literal||typeof m[m.length-1]!="string"?m.push(p.value):m[m.length-1]+=p.value,m},[]);return c.length<=1?c[0]||"":c},this.formatToParts=function(d){return ge(o.ast,o.locales,o.formatters,o.formats,d,void 0,o.message)},this.resolvedOptions=function(){var d;return {locale:((d=o.resolvedLocale)===null||d===void 0?void 0:d.toString())||Intl.NumberFormat.supportedLocalesOf(o.locales)[0]}},this.getAst=function(){return o.ast},this.locales=r,this.resolvedLocale=e.resolveLocale(r),typeof t=="string"){if(this.message=t,!e.__parse)throw new TypeError("IntlMessageFormat.__parse must be set to process `message` of type `string`");var s=i||{};var l=jr(s,["formatters"]);this.ast=e.__parse(t,N(N({},l),{locale:this.resolvedLocale}));}else this.ast=t;if(!Array.isArray(this.ast))throw new TypeError("A message must be provided as a String or AST.");this.formats=Tn(e.formats,n),this.formatters=i&&i.formatters||wn(this.formatterCache);}return Object.defineProperty(e,"defaultLocale",{get:function(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=new Intl.NumberFormat().resolvedOptions().locale),e.memoizedDefaultLocale},enumerable:!1,configurable:!0}),e.memoizedDefaultLocale=null,e.resolveLocale=function(t){if(typeof Intl.Locale!="undefined"){var r=Intl.NumberFormat.supportedLocalesOf(t);return r.length>0?new Intl.Locale(r[0]):new Intl.Locale(typeof t=="string"?t:t[0])}},e.__parse=bn,e.formats={number:{integer:{maximumFractionDigits:0},currency:{style:"currency"},percent:{style:"percent"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},e}();function An(e,t){if(t==null)return;if(t in e)return e[t];const r=t.split(".");let n=e;for(let i=0;i<r.length;i++)if(typeof n=="object"){if(i>0){const o=r.slice(i,r.length).join(".");if(o in n){n=n[o];break}}n=n[r[i]];}else n=void 0;return n}const F={},Hn=(e,t,r)=>r&&(t in F||(F[t]={}),e in F[t]||(F[t][e]=r),r),Ut=(e,t)=>{if(t==null)return;if(t in F&&e in F[t])return F[t][e];const r=Ee(t);for(let n=0;n<r.length;n++){const i=r[n],o=Bn(i,e);if(o)return Hn(e,t,o)}};let Ge;const se=ve({});function Pn(e){return Ge[e]||null}function Dt(e){return e in Ge}function Bn(e,t){if(!Dt(e))return null;const r=Pn(e);return An(r,t)}function zn(e){if(e==null)return;const t=Ee(e);for(let r=0;r<t.length;r++){const n=t[r];if(Dt(n))return n}}function Gt(e,...t){delete F[e],se.update(r=>(r[e]=Lr.all([r[e]||{},...t]),r));}Q([se],([e])=>Object.keys(e));se.subscribe(e=>Ge=e);const fe={};function On(e,t){fe[e].delete(t),fe[e].size===0&&delete fe[e];}function Ft(e){return fe[e]}function In(e){return Ee(e).map(t=>{const r=Ft(t);return [t,r?[...r]:[]]}).filter(([,t])=>t.length>0)}function je(e){return e==null?!1:Ee(e).some(t=>{var r;return (r=Ft(t))==null?void 0:r.size})}function Ln(e,t){return Promise.all(t.map(n=>(On(e,n),n().then(i=>i.default||i)))).then(n=>Gt(e,...n))}const ie={};function Vt(e){if(!je(e))return e in ie?ie[e]:Promise.resolve();const t=In(e);return ie[e]=Promise.all(t.map(([r,n])=>Ln(r,n))).then(()=>{if(je(e))return Vt(e);delete ie[e];}),ie[e]}const jn={number:{scientific:{notation:"scientific"},engineering:{notation:"engineering"},compactLong:{notation:"compact",compactDisplay:"long"},compactShort:{notation:"compact",compactDisplay:"short"}},date:{short:{month:"numeric",day:"numeric",year:"2-digit"},medium:{month:"short",day:"numeric",year:"numeric"},long:{month:"long",day:"numeric",year:"numeric"},full:{weekday:"long",month:"long",day:"numeric",year:"numeric"}},time:{short:{hour:"numeric",minute:"numeric"},medium:{hour:"numeric",minute:"numeric",second:"numeric"},long:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"},full:{hour:"numeric",minute:"numeric",second:"numeric",timeZoneName:"short"}}},Rn={fallbackLocale:null,loadingDelay:200,formats:jn,warnOnMissingMessages:!0,handleMissingMessage:void 0,ignoreTag:!0},Un=Rn;function J(){return Un}const Ae=ve(!1);var Dn=Object.defineProperty,Gn=Object.defineProperties,Fn=Object.getOwnPropertyDescriptors,at=Object.getOwnPropertySymbols,Vn=Object.prototype.hasOwnProperty,Xn=Object.prototype.propertyIsEnumerable,ot=(e,t,r)=>t in e?Dn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,qn=(e,t)=>{for(var r in t||(t={}))Vn.call(t,r)&&ot(e,r,t[r]);if(at)for(var r of at(t))Xn.call(t,r)&&ot(e,r,t[r]);return e},Wn=(e,t)=>Gn(e,Fn(t));let Re;const _e=ve(null);function st(e){return e.split("-").map((t,r,n)=>n.slice(0,r+1).join("-")).reverse()}function Ee(e,t=J().fallbackLocale){const r=st(e);return t?[...new Set([...r,...st(t)])]:r}function V(){return Re!=null?Re:void 0}_e.subscribe(e=>{Re=e!=null?e:void 0,typeof window!="undefined"&&e!=null&&document.documentElement.setAttribute("lang",e);});const Zn=e=>{if(e&&zn(e)&&je(e)){const{loadingDelay:t}=J();let r;return typeof window!="undefined"&&V()!=null&&t?r=window.setTimeout(()=>Ae.set(!0),t):Ae.set(!0),Vt(e).then(()=>{_e.set(e);}).finally(()=>{clearTimeout(r),Ae.set(!1);})}return _e.set(e)},Y=Wn(qn({},_e),{set:Zn}),Ce=e=>{const t=Object.create(null);return n=>{const i=JSON.stringify(n);return i in t?t[i]:t[i]=e(n)}};var Jn=Object.defineProperty,ye=Object.getOwnPropertySymbols,Xt=Object.prototype.hasOwnProperty,qt=Object.prototype.propertyIsEnumerable,lt=(e,t,r)=>t in e?Jn(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Fe=(e,t)=>{for(var r in t||(t={}))Xt.call(t,r)&&lt(e,r,t[r]);if(ye)for(var r of ye(t))qt.call(t,r)&&lt(e,r,t[r]);return e},K=(e,t)=>{var r={};for(var n in e)Xt.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&ye)for(var n of ye(e))t.indexOf(n)<0&&qt.call(e,n)&&(r[n]=e[n]);return r};const oe=(e,t)=>{const{formats:r}=J();if(e in r&&t in r[e])return r[e][t];throw new Error(`[svelte-i18n] Unknown "${t}" ${e} format.`)},Qn=Ce(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format numbers');return n&&(i=oe("number",n)),new Intl.NumberFormat(r,i)}),Yn=Ce(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format dates');return n?i=oe("date",n):Object.keys(i).length===0&&(i=oe("date","short")),new Intl.DateTimeFormat(r,i)}),Kn=Ce(e=>{var t=e,{locale:r,format:n}=t,i=K(t,["locale","format"]);if(r==null)throw new Error('[svelte-i18n] A "locale" must be set to format time values');return n?i=oe("time",n):Object.keys(i).length===0&&(i=oe("time","short")),new Intl.DateTimeFormat(r,i)}),$n=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Qn(Fe({locale:r},n))},ei=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Yn(Fe({locale:r},n))},ti=(e={})=>{var t=e,{locale:r=V()}=t,n=K(t,["locale"]);return Kn(Fe({locale:r},n))},ri=Ce((e,t=V())=>new Nn(e,t,J().formats,{ignoreTag:J().ignoreTag})),ni=(e,t={})=>{var r,n,i,o;let s=t;typeof e=="object"&&(s=e,e=s.id);const{values:l,locale:d=V(),default:h}=s;if(d==null)throw new Error("[svelte-i18n] Cannot format a message without first setting the initial locale.");let c=Ut(e,d);if(!c)c=(o=(i=(n=(r=J()).handleMissingMessage)==null?void 0:n.call(r,{locale:d,id:e,defaultValue:h}))!=null?i:h)!=null?o:e;else if(typeof c!="string")return console.warn(`[svelte-i18n] Message with id "${e}" must be of type "string", found: "${typeof c}". Gettin its value through the "$format" method is deprecated; use the "json" method instead.`),c;if(!l)return c;let m=c;try{m=ri(c,d).format(l);}catch(p){p instanceof Error&&console.warn(`[svelte-i18n] Message "${e}" has syntax error:`,p.message);}return m},ii=(e,t)=>ti(t).format(e),ai=(e,t)=>ei(t).format(e),oi=(e,t)=>$n(t).format(e),si=(e,t=V())=>Ut(e,t),li=Q([Y,se],()=>ni);Q([Y],()=>ii);Q([Y],()=>ai);Q([Y],()=>oi);Q([Y,se],()=>si);function ct(e,t){Gt(e,t);}function ci(e){Y.set(e);}const ut={en:{invalidUrl:"Failed to construct 'URL': Invalid URL",fetchConsentsError:"Error: Could not fetch consents.",fetchPlayerConsentsError:"Error: Could not fetch player consents.",fetchConsentsCategoriesError:"Error: Could not fetch consents categories",updateConsentsError:"Error: Could not update consents.",saveChangesError:"Error: Could not save changes.",mustAcceptError:"Mandatory consents must be accepted.",title:"Consents",saveButtonContent:"Save Consents",description:"Here, you can explore and manage your preferences regarding how we collect and utilize your data. Your privacy matters to us, and this tool empowers you to make informed choices about your online experience.",marketing__category:"Marketing",Other__category:"Other",privacy__category:"Privacy and Data Sharing",dataSharing__name:"Data Sharing",dataSharing__description:"Data Sharing consent",emailMarketing__name:"Email Marketing",emailMarketing__description:"Email Marketing consent",smsMarketing__name:"SMS Marketing",smsMarketing__description:"SMS Marketing consent",cookiesAndTracking__name:"Cookies and Tracking",cookiesAndTracking__description:"Cookies and Tracking consent",termsandconditions__description:"Needed to prove user accepted terms and conditions.",emailmarketing__description:"Needed to prove email marketing consent.",sms__description:"Needed to prove sms marketing consent.","3rdparty__description":"Needed to prove 3rd party marketing consent.",noDataFound:"No data found for consents.",loading:"Loading...please wait",requiredError:"This field is mandatory",wrongModalConfig:"There was an error with the config! No expired consents found."},"zh-hk":{invalidUrl:"無法構建 'URL': 無效的URL",fetchConsentsError:"錯誤: 無法獲取同意。",fetchPlayerConsentsError:"錯誤: 無法獲取玩家同意。",fetchConsentsCategoriesError:"錯誤: 無法獲取同意類別。",updateConsentsError:"錯誤: 無法更新同意。",saveChangesError:"錯誤: 無法保存更改。",mustAcceptError:"必須接受強制性同意。",title:"同意",saveButtonContent:"保存同意",description:"在此,您可以探索和管理有關我們如何收集和使用您的數據的偏好。您的隱私對我們非常重要,這個工具可幫助您對您的在線體驗做出知情選擇。",marketing__category:"市場推廣",Other__category:"其他",privacy__category:"隱私與數據共享",dataSharing__name:"數據共享",dataSharing__description:"數據共享同意",emailMarketing__name:"電子郵件市場推廣",emailMarketing__description:"電子郵件市場推廣同意",smsMarketing__name:"短信市場推廣",smsMarketing__description:"短信市場推廣同意",cookiesAndTracking__name:"Cookies與追蹤",cookiesAndTracking__description:"Cookies與追蹤同意",termsandconditions__description:"用於證明用戶接受條款和條件。",emailmarketing__description:"用於證明電子郵件市場推廣同意。",sms__description:"用於證明短信市場推廣同意。","3rdparty__description":"用於證明第三方市場推廣同意。",noDataFound:"未找到同意數據。",loading:"加載中...請稍候",requiredError:"此字段為必填項",wrongModalConfig:"配置出錯!未找到過期的同意。"},de:{invalidUrl:"Fehler beim Erstellen von 'URL': Ungültige URL",fetchConsentsError:"Fehler: Konnte Einwilligungen nicht abrufen.",fetchPlayerConsentsError:"Fehler: Konnte Spielereinwilligungen nicht abrufen.",fetchConsentsCategoriesError:"Fehler: Konnte Einwilligungskategorien nicht abrufen.",updateConsentsError:"Fehler: Konnte Einwilligungen nicht aktualisieren.",saveChangesError:"Fehler: Änderungen konnten nicht gespeichert werden.",mustAcceptError:"Pflicht-Einwilligungen müssen akzeptiert werden.",title:"Einwilligungen",saveButtonContent:"Einwilligungen speichern",description:"Hier können Sie Ihre Präferenzen dazu verwalten, wie wir Ihre Daten sammeln und nutzen. Ihre Privatsphäre ist uns wichtig, und dieses Tool ermöglicht es Ihnen, informierte Entscheidungen über Ihr Online-Erlebnis zu treffen.",marketing__category:"Marketing",Other__category:"Sonstiges",privacy__category:"Datenschutz und Datenfreigabe",dataSharing__name:"Datenfreigabe",dataSharing__description:"Einwilligung zur Datenfreigabe",emailMarketing__name:"E-Mail-Marketing",emailMarketing__description:"Einwilligung für E-Mail-Marketing",smsMarketing__name:"SMS-Marketing",smsMarketing__description:"Einwilligung für SMS-Marketing",cookiesAndTracking__name:"Cookies und Tracking",cookiesAndTracking__description:"Einwilligung für Cookies und Tracking",termsandconditions__description:"Erforderlich, um nachzuweisen, dass der Benutzer die Bedingungen akzeptiert hat.",emailmarketing__description:"Erforderlich, um die Einwilligung für E-Mail-Marketing nachzuweisen.",sms__description:"Erforderlich, um die Einwilligung für SMS-Marketing nachzuweisen.","3rdparty__description":"Erforderlich, um die Einwilligung für Drittanbieter-Marketing nachzuweisen.",noDataFound:"Keine Daten zu Einwilligungen gefunden.",loading:"Wird geladen... bitte warten",requiredError:"Dieses Feld ist erforderlich",wrongModalConfig:"Ein Fehler in der Konfiguration ist aufgetreten! Keine abgelaufenen Einwilligungen gefunden."},it:{invalidUrl:"Impossibile costruire 'URL': URL non valido",fetchConsentsError:"Errore: Impossibile recuperare i consensi.",fetchPlayerConsentsError:"Errore: Impossibile recuperare i consensi del giocatore.",fetchConsentsCategoriesError:"Errore: Impossibile recuperare le categorie di consenso.",updateConsentsError:"Errore: Impossibile aggiornare i consensi.",saveChangesError:"Errore: Impossibile salvare le modifiche.",mustAcceptError:"I consensi obbligatori devono essere accettati.",title:"Consensi",saveButtonContent:"Salva Consensi",description:"Qui puoi esplorare e gestire le tue preferenze su come raccogliamo e utilizziamo i tuoi dati. La tua privacy è importante per noi e questo strumento ti consente di fare scelte informate sulla tua esperienza online.",marketing__category:"Marketing",Other__category:"Altro",privacy__category:"Privacy e Condivisione dei Dati",dataSharing__name:"Condivisione dei Dati",dataSharing__description:"Consenso alla condivisione dei dati",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consenso all'email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Consenso all'SMS marketing",cookiesAndTracking__name:"Cookies e Tracciamento",cookiesAndTracking__description:"Consenso ai cookies e tracciamento",termsandconditions__description:"Necessario per dimostrare che l'utente ha accettato i termini e le condizioni.",emailmarketing__description:"Necessario per dimostrare il consenso all'email marketing.",sms__description:"Necessario per dimostrare il consenso all'SMS marketing.","3rdparty__description":"Necessario per dimostrare il consenso al marketing di terze parti.",noDataFound:"Nessun dato trovato per i consensi.",loading:"Caricamento... attendere",requiredError:"Questo campo è obbligatorio",wrongModalConfig:"Si è verificato un errore con la configurazione! Nessun consenso scaduto trovato."},fr:{invalidUrl:"Impossible de construire 'URL' : URL invalide",fetchConsentsError:"Erreur : Impossible de récupérer les consentements.",fetchPlayerConsentsError:"Erreur : Impossible de récupérer les consentements des joueurs.",fetchConsentsCategoriesError:"Erreur : Impossible de récupérer les catégories de consentement.",updateConsentsError:"Erreur : Impossible de mettre à jour les consentements.",saveChangesError:"Erreur : Impossible d'enregistrer les modifications.",mustAcceptError:"Les consentements obligatoires doivent être acceptés.",title:"Consentements",saveButtonContent:"Enregistrer les Consentements",description:"Ici, vous pouvez explorer et gérer vos préférences concernant la manière dont nous collectons et utilisons vos données. Votre vie privée est importante pour nous, et cet outil vous permet de faire des choix éclairés sur votre expérience en ligne.",marketing__category:"Marketing",Other__category:"Autre",privacy__category:"Confidentialité et Partage des Données",dataSharing__name:"Partage des Données",dataSharing__description:"Consentement au partage des données",emailMarketing__name:"Marketing par Email",emailMarketing__description:"Consentement au marketing par email",smsMarketing__name:"Marketing par SMS",smsMarketing__description:"Consentement au marketing par SMS",cookiesAndTracking__name:"Cookies et Suivi",cookiesAndTracking__description:"Consentement aux cookies et au suivi",termsandconditions__description:"Nécessaire pour prouver que l'utilisateur a accepté les termes et conditions.",emailmarketing__description:"Nécessaire pour prouver le consentement au marketing par email.",sms__description:"Nécessaire pour prouver le consentement au marketing par SMS.","3rdparty__description":"Nécessaire pour prouver le consentement au marketing tiers.",noDataFound:"Aucune donnée trouvée pour les consentements.",loading:"Chargement... veuillez patienter",requiredError:"Ce champ est obligatoire",wrongModalConfig:"Une erreur s'est produite avec la configuration ! Aucun consentement expiré trouvé."},es:{invalidUrl:"Error al construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos del jugador.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y gestionar tus preferencias sobre cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otro",privacy__category:"Privacidad y Compartir Datos",dataSharing__name:"Compartir Datos",dataSharing__description:"Consentimiento para compartir datos",emailMarketing__name:"Email Marketing",emailMarketing__description:"Consentimiento para email marketing",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Seguimiento",cookiesAndTracking__description:"Consentimiento para cookies y seguimiento",termsandconditions__description:"Necesario para demostrar que el usuario aceptó los términos y condiciones.",emailmarketing__description:"Necesario para demostrar el consentimiento para email marketing.",sms__description:"Necesario para demostrar el consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar el consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para los consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error con la configuración! No se encontraron consentimientos expirados."},el:{invalidUrl:"Αποτυχία δημιουργίας 'URL': Μη έγκυρη διεύθυνση URL",fetchConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων.",fetchPlayerConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των συναινέσεων παικτών.",fetchConsentsCategoriesError:"Σφάλμα: Δεν ήταν δυνατή η ανάκτηση των κατηγοριών συναινέσεων.",updateConsentsError:"Σφάλμα: Δεν ήταν δυνατή η ενημέρωση των συναινέσεων.",saveChangesError:"Σφάλμα: Δεν ήταν δυνατή η αποθήκευση των αλλαγών.",mustAcceptError:"Πρέπει να αποδεχτείτε τις υποχρεωτικές συναινέσεις.",title:"Συναινέσεις",saveButtonContent:"Αποθήκευση Συναινέσεων",description:"Εδώ μπορείτε να εξερευνήσετε και να διαχειριστείτε τις προτιμήσεις σας σχετικά με το πώς συλλέγουμε και χρησιμοποιούμε τα δεδομένα σας. Η ιδιωτικότητά σας έχει σημασία για εμάς και αυτό το εργαλείο σας δίνει τη δυνατότητα να κάνετε ενημερωμένες επιλογές για την εμπειρία σας στο διαδίκτυο.",marketing__category:"Μάρκετινγκ",Other__category:"Άλλο",privacy__category:"Ιδιωτικότητα και Κοινοποίηση Δεδομένων",dataSharing__name:"Κοινοποίηση Δεδομένων",dataSharing__description:"Συναίνεση για κοινοποίηση δεδομένων",emailMarketing__name:"Email Marketing",emailMarketing__description:"Συναίνεση για email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Συναίνεση για SMS marketing",cookiesAndTracking__name:"Cookies και Παρακολούθηση",cookiesAndTracking__description:"Συναίνεση για cookies και παρακολούθηση",termsandconditions__description:"Απαιτείται για να αποδειχθεί ότι ο χρήστης αποδέχτηκε τους όρους και τις προϋποθέσεις.",emailmarketing__description:"Απαιτείται για να αποδειχθεί η συναίνεση για email marketing.",sms__description:"Απαιτείται για να αποδειχθεί η συναίνεση για SMS marketing.","3rdparty__description":"Απαιτείται για να αποδειχθεί η συναίνεση για marketing τρίτων.",noDataFound:"Δεν βρέθηκαν δεδομένα για τις συναινέσεις.",loading:"Φόρτωση... παρακαλώ περιμένετε",requiredError:"Αυτό το πεδίο είναι υποχρεωτικό",wrongModalConfig:"Παρουσιάστηκε σφάλμα με τη ρύθμιση! Δεν βρέθηκαν ληγμένες συναινέσεις."},tr:{invalidUrl:"'URL' oluşturulamadı: Geçersiz URL",fetchConsentsError:"Hata: Onaylar alınamadı.",fetchPlayerConsentsError:"Hata: Oyuncu onayları alınamadı.",fetchConsentsCategoriesError:"Hata: Onay kategorileri alınamadı.",updateConsentsError:"Hata: Onaylar güncellenemedi.",saveChangesError:"Hata: Değişiklikler kaydedilemedi.",mustAcceptError:"Zorunlu onaylar kabul edilmelidir.",title:"Onaylar",saveButtonContent:"Onayları Kaydet",description:"Burada, verilerinizi nasıl topladığımız ve kullandığımızla ilgili tercihlerinizi keşfedebilir ve yönetebilirsiniz. Gizliliğiniz bizim için önemlidir ve bu araç, çevrimiçi deneyiminiz hakkında bilinçli seçimler yapmanızı sağlar.",marketing__category:"Pazarlama",Other__category:"Diğer",privacy__category:"Gizlilik ve Veri Paylaşımı",dataSharing__name:"Veri Paylaşımı",dataSharing__description:"Veri paylaşımı onayı",emailMarketing__name:"E-posta Pazarlama",emailMarketing__description:"E-posta pazarlama onayı",smsMarketing__name:"SMS Pazarlama",smsMarketing__description:"SMS pazarlama onayı",cookiesAndTracking__name:"Çerezler ve İzleme",cookiesAndTracking__description:"Çerezler ve izleme onayı",termsandconditions__description:"Kullanıcının şartları ve koşulları kabul ettiğini kanıtlamak için gereklidir.",emailmarketing__description:"E-posta pazarlama onayı kanıtlamak için gereklidir.",sms__description:"SMS pazarlama onayı kanıtlamak için gereklidir.","3rdparty__description":"Üçüncü taraf pazarlama onayı kanıtlamak için gereklidir.",noDataFound:"Onaylarla ilgili veri bulunamadı.",loading:"Yükleniyor... lütfen bekleyin",requiredError:"Bu alan zorunludur",wrongModalConfig:"Yapılandırmada bir hata oluştu! Süresi dolmuş onay bulunamadı."},ru:{invalidUrl:"Не удалось создать 'URL': недопустимый URL",fetchConsentsError:"Ошибка: не удалось получить согласия.",fetchPlayerConsentsError:"Ошибка: не удалось получить согласия игроков.",fetchConsentsCategoriesError:"Ошибка: не удалось получить категории согласий.",updateConsentsError:"Ошибка: не удалось обновить согласия.",saveChangesError:"Ошибка: не удалось сохранить изменения.",mustAcceptError:"Обязательные согласия должны быть приняты.",title:"Согласия",saveButtonContent:"Сохранить согласия",description:"Здесь вы можете изучить и управлять своими предпочтениями относительно того, как мы собираем и используем ваши данные. Ваша конфиденциальность важна для нас, и этот инструмент помогает вам делать осознанный выбор о вашем онлайн-опыте.",marketing__category:"Маркетинг",Other__category:"Другое",privacy__category:"Конфиденциальность и Обмен Данными",dataSharing__name:"Обмен Данными",dataSharing__description:"Согласие на обмен данными",emailMarketing__name:"Email-Маркетинг",emailMarketing__description:"Согласие на email-маркетинг",smsMarketing__name:"SMS-Маркетинг",smsMarketing__description:"Согласие на SMS-маркетинг",cookiesAndTracking__name:"Cookies и Отслеживание",cookiesAndTracking__description:"Согласие на использование cookies и отслеживания",termsandconditions__description:"Необходимо для подтверждения принятия условий и положений.",emailmarketing__description:"Необходимо для подтверждения согласия на email-маркетинг.",sms__description:"Необходимо для подтверждения согласия на SMS-маркетинг.","3rdparty__description":"Необходимо для подтверждения согласия на маркетинг третьих лиц.",noDataFound:"Данные о согласиях не найдены.",loading:"Загрузка... пожалуйста, подождите",requiredError:"Это поле обязательно для заполнения",wrongModalConfig:"Произошла ошибка конфигурации! Истекшие согласия не найдены."},ro:{invalidUrl:"Nu s-a putut construi 'URL': URL invalid",fetchConsentsError:"Eroare: Nu s-au putut prelua consimțămintele.",fetchPlayerConsentsError:"Eroare: Nu s-au putut prelua consimțămintele utilizatorilor.",fetchConsentsCategoriesError:"Eroare: Nu s-au putut prelua categoriile de consimțământ.",updateConsentsError:"Eroare: Nu s-au putut actualiza consimțămintele.",saveChangesError:"Eroare: Nu s-au putut salva modificările.",mustAcceptError:"Consimțămintele obligatorii trebuie acceptate.",title:"Consimțăminte",saveButtonContent:"Salvează Consimțămintele",description:"Aici puteți explora și gestiona preferințele legate de modul în care colectăm și utilizăm datele dumneavoastră. Confidențialitatea dumneavoastră este importantă pentru noi, iar acest instrument vă ajută să luați decizii informate despre experiența dumneavoastră online.",marketing__category:"Marketing",Other__category:"Altele",privacy__category:"Confidențialitate și Partajare Date",dataSharing__name:"Partajare Date",dataSharing__description:"Consimțământ pentru partajarea datelor",emailMarketing__name:"Marketing prin Email",emailMarketing__description:"Consimțământ pentru marketing prin email",smsMarketing__name:"Marketing prin SMS",smsMarketing__description:"Consimțământ pentru marketing prin SMS",cookiesAndTracking__name:"Cookies și Urmărire",cookiesAndTracking__description:"Consimțământ pentru cookies și urmărire",termsandconditions__description:"Necesar pentru a demonstra acceptarea termenilor și condițiilor.",emailmarketing__description:"Necesar pentru a demonstra consimțământul pentru marketing prin email.",sms__description:"Necesar pentru a demonstra consimțământul pentru marketing prin SMS.","3rdparty__description":"Necesar pentru a demonstra consimțământul pentru marketing de la terți.",noDataFound:"Nu s-au găsit date pentru consimțăminte.",loading:"Se încarcă... vă rugăm să așteptați",requiredError:"Acest câmp este obligatoriu",wrongModalConfig:"A apărut o eroare în configurație! Nu s-au găsit consimțăminte expirate."},hr:{invalidUrl:"Nije moguće izraditi 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti privole.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke privole.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije privola.",updateConsentsError:"Greška: Nije moguće ažurirati privole.",saveChangesError:"Greška: Nije moguće spremiti promjene.",mustAcceptError:"Obavezne privole moraju biti prihvaćene.",title:"Privole",saveButtonContent:"Spremi Privole",description:"Ovdje možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućuje donošenje informiranih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Dijeljenje Podataka",dataSharing__name:"Dijeljenje Podataka",dataSharing__description:"Privola za dijeljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Privola za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Privola za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Privola za kolačiće i praćenje",termsandconditions__description:"Potrebno za dokazivanje prihvaćanja uvjeta korištenja.",emailmarketing__description:"Potrebno za dokazivanje privole za email marketing.",sms__description:"Potrebno za dokazivanje privole za SMS marketing.","3rdparty__description":"Potrebno za dokazivanje privole za marketing treće strane.",noDataFound:"Nema podataka o privolama.",loading:"Učitavanje... molimo pričekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do pogreške u konfiguraciji! Nisu pronađene istekle privole."},hu:{invalidUrl:"Nem sikerült létrehozni az 'URL'-t: Érvénytelen URL",fetchConsentsError:"Hiba: Nem sikerült lekérni a hozzájárulásokat.",fetchPlayerConsentsError:"Hiba: Nem sikerült lekérni a játékosok hozzájárulásait.",fetchConsentsCategoriesError:"Hiba: Nem sikerült lekérni a hozzájárulások kategóriáit.",updateConsentsError:"Hiba: Nem sikerült frissíteni a hozzájárulásokat.",saveChangesError:"Hiba: Nem sikerült menteni a módosításokat.",mustAcceptError:"A kötelező hozzájárulásokat el kell fogadni.",title:"Hozzájárulások",saveButtonContent:"Hozzájárulások Mentése",description:"Itt kezelheti és megismerheti azokat a preferenciákat, amelyek meghatározzák, hogyan gyűjtjük és használjuk fel az adatait. Az Ön adatvédelme fontos számunkra, és ez az eszköz lehetővé teszi, hogy tájékozott döntéseket hozzon az online élményéről.",marketing__category:"Marketing",Other__category:"Egyéb",privacy__category:"Adatvédelem és Adatmegosztás",dataSharing__name:"Adatmegosztás",dataSharing__description:"Hozzájárulás az adatmegosztáshoz",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Hozzájárulás az e-mail marketinghez",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Hozzájárulás az SMS marketinghez",cookiesAndTracking__name:"Sütik és Követés",cookiesAndTracking__description:"Hozzájárulás a sütikhez és a követéshez",termsandconditions__description:"Szükséges az Általános Szerződési Feltételek elfogadásának igazolásához.",emailmarketing__description:"Szükséges az e-mail marketing hozzájárulásának igazolásához.",sms__description:"Szükséges az SMS marketing hozzájárulásának igazolásához.","3rdparty__description":"Szükséges a harmadik felek marketingjéhez való hozzájárulás igazolásához.",noDataFound:"Nem található adat a hozzájárulásokról.",loading:"Betöltés... kérjük, várjon",requiredError:"Ez a mező kötelező",wrongModalConfig:"Hiba történt a konfigurációval! Nem található lejárt hozzájárulás."},pl:{invalidUrl:"Nie udało się utworzyć 'URL': Nieprawidłowy URL",fetchConsentsError:"Błąd: Nie udało się pobrać zgód.",fetchPlayerConsentsError:"Błąd: Nie udało się pobrać zgód użytkowników.",fetchConsentsCategoriesError:"Błąd: Nie udało się pobrać kategorii zgód.",updateConsentsError:"Błąd: Nie udało się zaktualizować zgód.",saveChangesError:"Błąd: Nie udało się zapisać zmian.",mustAcceptError:"Obowiązkowe zgody muszą zostać zaakceptowane.",title:"Zgody",saveButtonContent:"Zapisz Zgody",description:"Tutaj możesz eksplorować i zarządzać swoimi preferencjami dotyczącymi tego, jak zbieramy i wykorzystujemy Twoje dane. Twoja prywatność jest dla nas ważna, a to narzędzie pozwala podejmować świadome decyzje dotyczące Twojego doświadczenia online.",marketing__category:"Marketing",Other__category:"Inne",privacy__category:"Prywatność i Udostępnianie Danych",dataSharing__name:"Udostępnianie Danych",dataSharing__description:"Zgoda na udostępnianie danych",emailMarketing__name:"E-mail Marketing",emailMarketing__description:"Zgoda na e-mail marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Zgoda na SMS marketing",cookiesAndTracking__name:"Pliki Cookie i Śledzenie",cookiesAndTracking__description:"Zgoda na pliki cookie i śledzenie",termsandconditions__description:"Wymagane do potwierdzenia akceptacji warunków i zasad.",emailmarketing__description:"Wymagane do potwierdzenia zgody na e-mail marketing.",sms__description:"Wymagane do potwierdzenia zgody na SMS marketing.","3rdparty__description":"Wymagane do potwierdzenia zgody na marketing podmiotów trzecich.",noDataFound:"Nie znaleziono danych dotyczących zgód.",loading:"Ładowanie... proszę czekać",requiredError:"To pole jest wymagane",wrongModalConfig:"Wystąpił błąd konfiguracji! Nie znaleziono wygasłych zgód."},pt:{invalidUrl:"Não foi possível criar 'URL': URL inválido",fetchConsentsError:"Erro: Não foi possível obter os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível obter os consentimentos dos utilizadores.",fetchConsentsCategoriesError:"Erro: Não foi possível obter as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui, pode explorar e gerir as suas preferências relativamente à forma como recolhemos e utilizamos os seus dados. A sua privacidade é importante para nós e esta ferramenta permite-lhe tomar decisões informadas sobre a sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Partilha de Dados",dataSharing__name:"Partilha de Dados",dataSharing__description:"Consentimento para partilha de dados",emailMarketing__name:"Marketing por Email",emailMarketing__description:"Consentimento para marketing por email",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar o consentimento para marketing por email.",sms__description:"Necessário para comprovar o consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar o consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor, aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Ocorreu um erro na configuração! Nenhum consentimento expirado encontrado."},sl:{invalidUrl:"Ni bilo mogoče ustvariti 'URL': Neveljaven URL",fetchConsentsError:"Napaka: Ni bilo mogoče pridobiti soglasij.",fetchPlayerConsentsError:"Napaka: Ni bilo mogoče pridobiti uporabniških soglasij.",fetchConsentsCategoriesError:"Napaka: Ni bilo mogoče pridobiti kategorij soglasij.",updateConsentsError:"Napaka: Ni bilo mogoče posodobiti soglasij.",saveChangesError:"Napaka: Ni bilo mogoče shraniti sprememb.",mustAcceptError:"Obvezna soglasja je treba sprejeti.",title:"Soglasja",saveButtonContent:"Shrani Soglasja",description:"Tukaj lahko raziskujete in upravljate svoje nastavitve glede tega, kako zbiramo in uporabljamo vaše podatke. Vaša zasebnost je za nas pomembna, ta orodje pa vam omogoča informirane odločitve o vaši spletni izkušnji.",marketing__category:"Trženje",Other__category:"Drugo",privacy__category:"Zasebnost in Deljenje Podatkov",dataSharing__name:"Deljenje Podatkov",dataSharing__description:"Soglasje za deljenje podatkov",emailMarketing__name:"E-poštno Trženje",emailMarketing__description:"Soglasje za e-poštno trženje",smsMarketing__name:"SMS Trženje",smsMarketing__description:"Soglasje za SMS trženje",cookiesAndTracking__name:"Piškotki in Sledenje",cookiesAndTracking__description:"Soglasje za uporabo piškotkov in sledenja",termsandconditions__description:"Potrebno za potrditev sprejema pogojev in določil.",emailmarketing__description:"Potrebno za potrditev soglasja za e-poštno trženje.",sms__description:"Potrebno za potrditev soglasja za SMS trženje.","3rdparty__description":"Potrebno za potrditev soglasja za trženje tretjih oseb.",noDataFound:"Za soglasja ni bilo najdenih podatkov.",loading:"Nalaganje... prosimo, počakajte",requiredError:"To polje je obvezno",wrongModalConfig:"Prišlo je do napake v konfiguraciji! Potečena soglasja niso bila najdena."},sr:{invalidUrl:"Nije moguće kreirati 'URL': Nevažeći URL",fetchConsentsError:"Greška: Nije moguće dohvatiti saglasnosti.",fetchPlayerConsentsError:"Greška: Nije moguće dohvatiti korisničke saglasnosti.",fetchConsentsCategoriesError:"Greška: Nije moguće dohvatiti kategorije saglasnosti.",updateConsentsError:"Greška: Nije moguće ažurirati saglasnosti.",saveChangesError:"Greška: Nije moguće sačuvati promene.",mustAcceptError:"Obavezne saglasnosti moraju biti prihvaćene.",title:"Saglasnosti",saveButtonContent:"Sačuvaj Saglasnosti",description:"Ovde možete istražiti i upravljati svojim preferencijama o tome kako prikupljamo i koristimo vaše podatke. Vaša privatnost nam je važna, a ovaj alat vam omogućava donošenje informisanih odluka o vašem online iskustvu.",marketing__category:"Marketing",Other__category:"Ostalo",privacy__category:"Privatnost i Deljenje Podataka",dataSharing__name:"Deljenje Podataka",dataSharing__description:"Saglasnost za deljenje podataka",emailMarketing__name:"Email Marketing",emailMarketing__description:"Saglasnost za email marketing",smsMarketing__name:"SMS Marketing",smsMarketing__description:"Saglasnost za SMS marketing",cookiesAndTracking__name:"Kolačići i Praćenje",cookiesAndTracking__description:"Saglasnost za kolačiće i praćenje",termsandconditions__description:"Potrebno za potvrdu prihvatanja uslova i pravila.",emailmarketing__description:"Potrebno za potvrdu saglasnosti za email marketing.",sms__description:"Potrebno za potvrdu saglasnosti za SMS marketing.","3rdparty__description":"Potrebno za potvrdu saglasnosti za marketing trećih lica.",noDataFound:"Nema podataka o saglasnostima.",loading:"Učitavanje... molimo sačekajte",requiredError:"Ovo polje je obavezno",wrongModalConfig:"Došlo je do greške u konfiguraciji! Nema pronađenih istekao saglasnosti."},"es-mx":{invalidUrl:"No se pudo construir 'URL': URL no válida",fetchConsentsError:"Error: No se pudieron obtener los consentimientos.",fetchPlayerConsentsError:"Error: No se pudieron obtener los consentimientos de los usuarios.",fetchConsentsCategoriesError:"Error: No se pudieron obtener las categorías de consentimiento.",updateConsentsError:"Error: No se pudieron actualizar los consentimientos.",saveChangesError:"Error: No se pudieron guardar los cambios.",mustAcceptError:"Se deben aceptar los consentimientos obligatorios.",title:"Consentimientos",saveButtonContent:"Guardar Consentimientos",description:"Aquí puedes explorar y administrar tus preferencias respecto a cómo recopilamos y utilizamos tus datos. Tu privacidad es importante para nosotros, y esta herramienta te permite tomar decisiones informadas sobre tu experiencia en línea.",marketing__category:"Marketing",Other__category:"Otros",privacy__category:"Privacidad y Compartición de Datos",dataSharing__name:"Compartición de Datos",dataSharing__description:"Consentimiento para la compartición de datos",emailMarketing__name:"Marketing por Correo Electrónico",emailMarketing__description:"Consentimiento para marketing por correo electrónico",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimiento para marketing por SMS",cookiesAndTracking__name:"Cookies y Rastreo",cookiesAndTracking__description:"Consentimiento para cookies y rastreo",termsandconditions__description:"Necesario para demostrar que se aceptaron los términos y condiciones.",emailmarketing__description:"Necesario para demostrar consentimiento para marketing por correo electrónico.",sms__description:"Necesario para demostrar consentimiento para marketing por SMS.","3rdparty__description":"Necesario para demostrar consentimiento para marketing de terceros.",noDataFound:"No se encontraron datos para consentimientos.",loading:"Cargando... por favor espera",requiredError:"Este campo es obligatorio",wrongModalConfig:"¡Hubo un error en la configuración! No se encontraron consentimientos vencidos."},"pt-br":{invalidUrl:"Não foi possível construir 'URL': URL inválida",fetchConsentsError:"Erro: Não foi possível buscar os consentimentos.",fetchPlayerConsentsError:"Erro: Não foi possível buscar os consentimentos dos usuários.",fetchConsentsCategoriesError:"Erro: Não foi possível buscar as categorias de consentimento.",updateConsentsError:"Erro: Não foi possível atualizar os consentimentos.",saveChangesError:"Erro: Não foi possível salvar as alterações.",mustAcceptError:"Os consentimentos obrigatórios devem ser aceitos.",title:"Consentimentos",saveButtonContent:"Salvar Consentimentos",description:"Aqui você pode explorar e gerenciar suas preferências sobre como coletamos e utilizamos seus dados. Sua privacidade é importante para nós, e esta ferramenta permite que você tome decisões informadas sobre sua experiência online.",marketing__category:"Marketing",Other__category:"Outros",privacy__category:"Privacidade e Compartilhamento de Dados",dataSharing__name:"Compartilhamento de Dados",dataSharing__description:"Consentimento para compartilhamento de dados",emailMarketing__name:"Marketing por E-mail",emailMarketing__description:"Consentimento para marketing por e-mail",smsMarketing__name:"Marketing por SMS",smsMarketing__description:"Consentimento para marketing por SMS",cookiesAndTracking__name:"Cookies e Rastreamento",cookiesAndTracking__description:"Consentimento para cookies e rastreamento",termsandconditions__description:"Necessário para comprovar a aceitação dos termos e condições.",emailmarketing__description:"Necessário para comprovar consentimento para marketing por e-mail.",sms__description:"Necessário para comprovar consentimento para marketing por SMS.","3rdparty__description":"Necessário para comprovar consentimento para marketing de terceiros.",noDataFound:"Nenhum dado encontrado para consentimentos.",loading:"Carregando... por favor aguarde",requiredError:"Este campo é obrigatório",wrongModalConfig:"Houve um erro na configuração! Nenhum consentimento expirado encontrado."}};if(typeof window!="undefined"){let e=function(t){return function(...r){try{return t.apply(this,r)}catch(n){if(n instanceof DOMException&&n.message.includes("has already been used with this registry")||n.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw n}}};customElements.define=e(customElements.define),Promise.resolve().then(()=>GeneralAnimationLoadingDLDqBYF).then(t=>t.GeneralAnimationLoading_ce).then(({default:t})=>{!customElements.get("general-animation-loading")&&customElements.define("general-animation-loading",t.element);});}function ui(e){let t,r;return {c(){t=a.svg_element("svg"),r=a.svg_element("path"),a.attr(r,"d","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zm0-384c13.3 0 24 10.7 24 24l0 112c0 13.3-10.7 24-24 24s-24-10.7-24-24l0-112c0-13.3 10.7-24 24-24zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"),a.attr(t,"xmlns","http://www.w3.org/2000/svg"),a.attr(t,"viewBox","0 0 512 512");},m(n,i){a.insert(n,t,i),a.append(t,r);},p:a.noop,i:a.noop,o:a.noop,d(n){n&&a.detach(t);}}}class hi extends a.SvelteComponent{constructor(t){super(),a.init(this,t,null,ui,a.safe_not_equal,{});}}customElements.define("circle-exclamation-icon",a.create_custom_element(hi,{},[],[],!0));function di(e){a.append_styles(e,"svelte-etk3ty",'.DisplayNone.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:none}.ContainerCenter.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:100%;display:flex;flex-direction:column;justify-content:center;align-items:center;min-height:219px}.ErrorMessage.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-size:12px;color:var(--emw--color-error, #ed0909)}.PlayerConsentsHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:30px}.AccordionHeader.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{font-weight:bold;cursor:pointer;border-bottom:1px solid var(--emw--color-gray-50, #cccccc);display:flex;align-items:center;justify-content:space-between}.AccordionItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{margin-bottom:10px}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;padding:10px 0}.AccordionContent.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{padding-bottom:0}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;width:100%;justify-content:space-between;align-items:center;margin-bottom:20px}.ConsentItem.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:last-of-type{margin-bottom:0}.ConsentItem.svelte-etk3ty .ConsentName.svelte-etk3ty.svelte-etk3ty{margin:0}.ConsentItem.svelte-etk3ty .ConsentDescription.svelte-etk3ty.svelte-etk3ty{font-size:0.8rem}.ToggleSwitch.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{position:relative;display:inline-block;width:40px;height:24px}.ToggleSwitch.Big.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{width:53px;height:30px}.ToggleSwitch.Big.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{width:22px;height:22px}.ToggleSwitch.Big.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(22px);-ms-transform:translateX(22px);transform:translateX(22px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty.svelte-etk3ty{opacity:0;width:0;height:0}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty{background-color:var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:disabled+.Slider.svelte-etk3ty{opacity:0.1}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:checked+.Slider.svelte-etk3ty:before{-webkit-transform:translateX(16px);-ms-transform:translateX(16px);transform:translateX(16px)}.ToggleSwitch.svelte-etk3ty input.svelte-etk3ty:focus+.Slider.svelte-etk3ty{box-shadow:0 0 1px var(--emw--color-primary, #22B04E)}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty{position:absolute;cursor:pointer;top:0;left:0;right:0;bottom:0;background-color:var(--emw--color-gray-150, #a1a1a1);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.svelte-etk3ty.svelte-etk3ty:before{position:absolute;content:"";height:16px;width:16px;left:4px;bottom:4px;background-color:var(--emw--color-white, #fff);-webkit-transition:0.4s;transition:0.4s}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty{border-radius:34px}.ToggleSwitch.svelte-etk3ty .Slider.Round.svelte-etk3ty.svelte-etk3ty:before{border-radius:50%}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:block;width:100%;margin:50px auto;outline:none;cursor:pointer;background-image:linear-gradient(to bottom, color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, black 20%), var(--emw--color-primary, #22B04E), color-mix(in srgb, var(--emw--color-primary, #22B04E) 80%, white 30%));border:2px solid var(--emw--button-border-color, #0E5924);border-radius:var(--emw--button-border-radius, 10px);padding:10px 20px;font-size:var(--emw--font-size-large, 20px);font-family:var(--emw--button-typography);color:var(--emw--button-text-color, #FFFFFF)}.SaveConsentsButton.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty:disabled{opacity:0.3;cursor:not-allowed}.ConsentErrorContainer.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;align-items:center;border:1px dashed var(--emw--color-error, #ed0909);padding:10px;margin-bottom:10px}.ConsentErrorContainer.svelte-etk3ty circle-exclamation-icon.svelte-etk3ty.svelte-etk3ty{width:15px;fill:var(--emw--color-error, #ed0909)}.ConsentRequired.svelte-etk3ty.svelte-etk3ty.svelte-etk3ty{color:var(--emw--color-error, #ed0909)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox.svelte-etk3ty.svelte-etk3ty{font-family:"Roboto";font-style:normal}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper.svelte-etk3ty.svelte-etk3ty{display:flex;gap:10px;position:relative;align-items:baseline;margin-bottom:30px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__wrapper .checkbox__wrapper--relative.svelte-etk3ty.svelte-etk3ty{position:relative}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__input.svelte-etk3ty.svelte-etk3ty{transform:scale(1.307, 1.307);margin-left:2px;accent-color:var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));width:46px}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label.svelte-etk3ty.svelte-etk3ty{font-style:inherit;font-family:inherit;font-weight:400;font-size:var(--emw--font-size-medium, 16px);color:var(--emw--registration-typography, var(--emw--color-black, #000000));line-height:1.5;cursor:pointer;padding:0}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__label .checkbox__label-text.svelte-etk3ty.svelte-etk3ty{font-size:var(--emw--font-size-medium, 16px)}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__error-message.svelte-etk3ty.svelte-etk3ty{position:absolute;top:calc(100% + 5px);left:0;color:var(--emw--color-error, var(--emw--color-red, #ed0909))}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip-icon.svelte-etk3ty.svelte-etk3ty{width:16px;height:auto}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.svelte-etk3ty.svelte-etk3ty{position:absolute;top:0;right:20px;background-color:var(--emw--color-white, #FFFFFF);border:1px solid var(--emw--color-gray-100, #E6E6E6);color:var(--emw--registration-typography, var(--emw--color-black, #000000));padding:10px;border-radius:5px;opacity:0;transition:opacity 0.3s ease-in-out;z-index:10}.ConsentsContainer.svelte-etk3ty .legacyStyle .checkbox .checkbox__tooltip.visible.svelte-etk3ty.svelte-etk3ty{opacity:1}');}function ht(e,t,r){const n=e.slice();return n[64]=t[r],n}function dt(e,t,r){const n=e.slice();return n[61]=t[r],n[62]=t,n[63]=r,n}function mt(e,t,r){const n=e.slice();return n[64]=t[r],n}function mi(e){let t,r,n=a.ensure_array_like(e[9]),i=[];for(let o=0;o<n.length;o+=1)i[o]=pt(ht(e,n,o));return {c(){t=a.element("div"),r=a.element("form");for(let o=0;o<i.length;o+=1)i[o].c();a.attr(r,"class","checkbox svelte-etk3ty"),a.attr(t,"class","legacyStyle");},m(o,s){a.insert(o,t,s),a.append(t,r);for(let l=0;l<i.length;l+=1)i[l]&&i[l].m(r,null);e[31](r);},p(o,s){if(s[0]&590336){n=a.ensure_array_like(o[9]);let l;for(l=0;l<n.length;l+=1){const d=ht(o,n,l);i[l]?i[l].p(d,s):(i[l]=pt(d),i[l].c(),i[l].m(r,null));}for(;l<i.length;l+=1)i[l].d(1);i.length=n.length;}},d(o){o&&a.detach(t),a.destroy_each(i,o),e[31](null);}}}function pi(e){let t=e[16]("title")||e[16]("description"),r,n,i,o=(e[16]("saveButtonContent")||"Save Consents")+"",s,l,d,h,c,m=t&&gt(e),p=a.ensure_array_like(e[8]),v=[];for(let g=0;g<p.length;g+=1)v[g]=bt(dt(e,p,g));let _=e[6]&&Et(e);return {c(){m&&m.c(),r=a.space();for(let g=0;g<v.length;g+=1)v[g].c();n=a.space(),i=a.element("button"),l=a.space(),_&&_.c(),d=a.empty(),a.attr(i,"class","SaveConsentsButton svelte-etk3ty"),i.disabled=s=!e[14];},m(g,S){m&&m.m(g,S),a.insert(g,r,S);for(let y=0;y<v.length;y+=1)v[y]&&v[y].m(g,S);a.insert(g,n,S),a.insert(g,i,S),i.innerHTML=o,a.insert(g,l,S),_&&_.m(g,S),a.insert(g,d,S),h||(c=a.listen(i,"click",e[17]),h=!0);},p(g,S){if(S[0]&65536&&(t=g[16]("title")||g[16]("description")),t?m?m.p(g,S):(m=gt(g),m.c(),m.m(r.parentNode,r)):m&&(m.d(1),m=null),S[0]&867088){p=a.ensure_array_like(g[8]);let y;for(y=0;y<p.length;y+=1){const k=dt(g,p,y);v[y]?v[y].p(k,S):(v[y]=bt(k),v[y].c(),v[y].m(n.parentNode,n));}for(;y<v.length;y+=1)v[y].d(1);v.length=p.length;}S[0]&65536&&o!==(o=(g[16]("saveButtonContent")||"Save Consents")+"")&&(i.innerHTML=o),S[0]&16384&&s!==(s=!g[14])&&(i.disabled=s),g[6]?_?_.p(g,S):(_=Et(g),_.c(),_.m(d.parentNode,d)):_&&(_.d(1),_=null);},d(g){g&&(a.detach(r),a.detach(n),a.detach(i),a.detach(l),a.detach(d)),m&&m.d(g),a.destroy_each(v,g),_&&_.d(g),h=!1,c();}}}function gi(e){let t,r,n;return {c(){t=a.element("div"),r=a.element("strong"),n=a.text(e[7]),a.attr(r,"class","ErrorMessage svelte-etk3ty"),a.attr(t,"class","ContainerCenter svelte-etk3ty");},m(i,o){a.insert(i,t,o),a.append(t,r),a.append(r,n);},p(i,o){o[0]&128&&a.set_data(n,i[7]);},d(i){i&&a.detach(t);}}}function fi(e){let t;return {c(){t=a.element("general-animation-loading"),a.set_custom_element_data(t,"clientstyling",e[1]),a.set_custom_element_data(t,"clientstylingurl",e[2]),a.set_custom_element_data(t,"mbsource",e[3]);},m(r,n){a.insert(r,t,n);},p(r,n){n[0]&2&&a.set_custom_element_data(t,"clientstyling",r[1]),n[0]&4&&a.set_custom_element_data(t,"clientstylingurl",r[2]),n[0]&8&&a.set_custom_element_data(t,"mbsource",r[3]);},d(r){r&&a.detach(t);}}}function pt(e){let t,r,n,i,o,s,l,d,h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"",c=e[64].mustAccept?" *":"",m,p,v,_,g,S,y,k,C;function A(...E){return e[30](e[64],...E)}return {c(){t=a.element("div"),r=a.element("input"),o=a.space(),s=a.element("label"),l=a.element("div"),d=new a.HtmlTag(!1),m=a.text(c),v=a.space(),_=a.element("small"),S=a.space(),a.attr(r,"class","checkbox__input svelte-etk3ty"),a.attr(r,"type","checkbox"),r.checked=n=e[64].status==="1",a.attr(r,"id",i=`${e[64].tagCode}__input`),d.a=m,a.attr(l,"class","checkbox__label-text svelte-etk3ty"),a.attr(s,"class","checkbox__label svelte-etk3ty"),a.attr(s,"for",p=`${e[64].tagCode}__input`),a.attr(_,"class","checkbox__error-message svelte-etk3ty"),a.attr(_,"id",g="checkBoxError__"+e[64].tagCode),a.attr(t,"class",y="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty");},m(E,P){a.insert(E,t,P),a.append(t,r),a.append(t,o),a.append(t,s),a.append(s,l),d.m(h,l),a.append(l,m),a.append(t,v),a.append(t,_),a.append(t,S),k||(C=a.listen(r,"input",A),k=!0);},p(E,P){e=E,P[0]&512&&n!==(n=e[64].status==="1")&&(r.checked=n),P[0]&512&&i!==(i=`${e[64].tagCode}__input`)&&a.attr(r,"id",i),P[0]&66048&&h!==(h=(e[16](`${e[64].tagCode}__description`)||e[64].tagCode)+"")&&d.p(h),P[0]&512&&c!==(c=e[64].mustAccept?" *":"")&&a.set_data(m,c),P[0]&512&&p!==(p=`${e[64].tagCode}__input`)&&a.attr(s,"for",p),P[0]&512&&g!==(g="checkBoxError__"+e[64].tagCode)&&a.attr(_,"id",g),P[0]&512&&y!==(y="checkbox__wrapper "+e[64].tagCode+"__input svelte-etk3ty")&&a.attr(t,"class",y);},d(E){E&&a.detach(t),k=!1,C();}}}function gt(e){let t,r=e[16]("title"),n,i=e[16]("description"),o=r&&ft(e),s=i&&_t(e);return {c(){t=a.element("div"),o&&o.c(),n=a.space(),s&&s.c(),a.attr(t,"class","PlayerConsentsHeader svelte-etk3ty");},m(l,d){a.insert(l,t,d),o&&o.m(t,null),a.append(t,n),s&&s.m(t,null);},p(l,d){d[0]&65536&&(r=l[16]("title")),r?o?o.p(l,d):(o=ft(l),o.c(),o.m(t,n)):o&&(o.d(1),o=null),d[0]&65536&&(i=l[16]("description")),i?s?s.p(l,d):(s=_t(l),s.c(),s.m(t,null)):s&&(s.d(1),s=null);},d(l){l&&a.detach(t),o&&o.d(),s&&s.d();}}}function ft(e){let t,r=e[16]("title")+"",n;return {c(){t=a.element("h2"),n=a.text(r),a.attr(t,"class","PlayerConsentsTitle");},m(i,o){a.insert(i,t,o),a.append(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("title")+"")&&a.set_data(n,r);},d(i){i&&a.detach(t);}}}function _t(e){let t,r=e[16]("description")+"",n;return {c(){t=a.element("p"),n=a.text(r),a.attr(t,"class","PlayerConsentsDescription");},m(i,o){a.insert(i,t,o),a.append(t,n);},p(i,o){o[0]&65536&&r!==(r=i[16]("description")+"")&&a.set_data(n,r);},d(i){i&&a.detach(t);}}}function yt(e){let t;return {c(){t=a.element("sup"),t.textContent="*",a.attr(t,"class","ConsentRequired svelte-etk3ty");},m(r,n){a.insert(r,t,n);},d(r){r&&a.detach(t);}}}function vt(e){let t,r=(e[16](`${e[64].tagCode}__description`)||e[64].description)+"";return {c(){t=a.element("p"),a.attr(t,"class","ConsentDescription svelte-etk3ty");},m(n,i){a.insert(n,t,i),t.innerHTML=r;},p(n,i){i[0]&66304&&r!==(r=(n[16](`${n[64].tagCode}__description`)||n[64].description)+"")&&(t.innerHTML=r);},d(n){n&&a.detach(t);}}}function kt(e){let t,r,n,i,o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"",s,l,d,h,c,m,p,v,_,g,S,y=e[64].mustAccept===!0&&yt(),k=e[4]==="true"&&vt(e);function C(...A){return e[29](e[64],...A)}return {c(){t=a.element("div"),r=a.element("div"),n=a.element("h4"),i=new a.HtmlTag(!1),s=a.space(),y&&y.c(),l=a.space(),k&&k.c(),d=a.space(),h=a.element("label"),c=a.element("input"),v=a.space(),_=a.element("span"),i.a=s,a.attr(n,"class","ConsentName svelte-etk3ty"),a.attr(r,"class","ConsentContent"),a.attr(c,"type","checkbox"),c.disabled=m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0,c.checked=p=e[13][e[64].tagCode],a.attr(c,"class","svelte-etk3ty"),a.attr(_,"class","Slider Round svelte-etk3ty"),a.attr(h,"class","ToggleSwitch svelte-etk3ty"),a.attr(t,"class","ConsentItem svelte-etk3ty");},m(A,E){a.insert(A,t,E),a.append(t,r),a.append(r,n),i.m(o,n),a.append(n,s),y&&y.m(n,null),a.append(r,l),k&&k.m(r,null),a.append(t,d),a.append(t,h),a.append(h,c),a.append(h,v),a.append(h,_),g||(S=a.listen(c,"input",C),g=!0);},p(A,E){e=A,E[0]&66304&&o!==(o=(e[16](`${e[64].tagCode}__name`)||e[64].friendlyName)+"")&&i.p(o),e[64].mustAccept===!0?y||(y=yt(),y.c(),y.m(n,null)):y&&(y.d(1),y=null),e[4]==="true"?k?k.p(e,E):(k=vt(e),k.c(),k.m(r,null)):k&&(k.d(1),k=null),E[0]&4864&&m!==(m=e[64].mustAccept===!0&&e[12][e[64].tagCode]===!0)&&(c.disabled=m),E[0]&8960&&p!==(p=e[13][e[64].tagCode])&&(c.checked=p);},d(A){A&&a.detach(t),y&&y.d(),k&&k.d(),g=!1,S();}}}function bt(e){let t,r,n,i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"",o,s,l,d,h,c,m,p,v;function _(){e[26].call(l,e[61]);}function g(){return e[27](e[61])}function S(...C){return e[28](e[61],...C)}let y=a.ensure_array_like(e[9].filter(S)),k=[];for(let C=0;C<y.length;C+=1)k[C]=kt(mt(e,y,C));return {c(){t=a.element("div"),r=a.element("div"),n=a.element("h3"),o=a.space(),s=a.element("label"),l=a.element("input"),d=a.space(),h=a.element("span"),c=a.space(),m=a.element("div");for(let C=0;C<k.length;C+=1)k[C].c();a.attr(l,"type","checkbox"),a.attr(l,"class","svelte-etk3ty"),a.attr(h,"class","Slider Round svelte-etk3ty"),a.attr(s,"class","ToggleSwitch Big svelte-etk3ty"),a.attr(r,"class","AccordionHeader svelte-etk3ty"),a.attr(m,"class","AccordionContent svelte-etk3ty"),a.attr(t,"class","AccordionItem svelte-etk3ty");},m(C,A){a.insert(C,t,A),a.append(t,r),a.append(r,n),n.innerHTML=i,a.append(r,o),a.append(r,s),a.append(s,l),l.checked=e[11][e[61].categoryTagCode],a.append(s,d),a.append(s,h),a.append(t,c),a.append(t,m);for(let E=0;E<k.length;E+=1)k[E]&&k[E].m(m,null);p||(v=[a.listen(l,"change",_),a.listen(l,"change",g)],p=!0);},p(C,A){if(e=C,A[0]&65792&&i!==(i=(e[16](`${e[61].categoryTagCode}__category`)||e[61].friendlyName)+"")&&(n.innerHTML=i),A[0]&2304&&(l.checked=e[11][e[61].categoryTagCode]),A[0]&602896){y=a.ensure_array_like(e[9].filter(S));let E;for(E=0;E<y.length;E+=1){const P=mt(e,y,E);k[E]?k[E].p(P,A):(k[E]=kt(P),k[E].c(),k[E].m(m,null));}for(;E<k.length;E+=1)k[E].d(1);k.length=y.length;}},d(C){C&&a.detach(t),a.destroy_each(k,C),p=!1,a.run_all(v);}}}function Et(e){let t,r,n,i,o;return {c(){t=a.element("div"),r=a.element("circle-exclamation-icon"),n=a.space(),i=a.element("strong"),o=a.text(e[6]),a.set_custom_element_data(r,"class","svelte-etk3ty"),a.attr(i,"class","ErrorMessage svelte-etk3ty"),a.attr(t,"class","ConsentErrorContainer svelte-etk3ty");},m(s,l){a.insert(s,t,l),a.append(t,r),a.append(t,n),a.append(t,i),a.append(i,o);},p(s,l){l[0]&64&&a.set_data(o,s[6]);},d(s){s&&a.detach(t);}}}function _i(e){let t,r;function n(s,l){if(s[10])return fi;if(s[7])return gi;if(s[0])return pi;if(!s[0])return mi}let i=n(e),o=i&&i(e);return {c(){t=a.element("div"),r=a.element("div"),o&&o.c(),a.attr(r,"class","ConsentsContainer svelte-etk3ty"),a.attr(t,"class",a.null_to_empty("")+" svelte-etk3ty");},m(s,l){a.insert(s,t,l),a.append(t,r),o&&o.m(r,null),e[32](r);},p(s,l){i===(i=n(s))&&o?o.p(s,l):(o&&o.d(1),o=i&&i(s),o&&(o.c(),o.m(r,null)));},i:a.noop,o:a.noop,d(s){s&&a.detach(t),o&&o.d(),e[32](null);}}}function yi(e,t,r){let n;a.component_subscribe(e,li,u=>r(16,n=u));let{session:i=""}=t,{userid:o=""}=t,{endpoint:s=""}=t,{clientstyling:l=""}=t,{clientstylingurl:d=""}=t,{mbsource:h}=t,{lang:c="en"}=t,{displayconsentdescription:m=""}=t,{translationurl:p=""}=t,{modalconsents:v="false"}=t,_,g,S=!1,y=!1,k="",C="",A="",E="",P=[],D=[],B=[],$=!0,le=!0,j={},ce={},G={},I={},ee,ue,O={none:{key:"0",value:"None"},accepted:{key:"1",value:"Accepted"},expired:{key:"2",value:"Expired"},denied:{key:"3",value:"Denied"},suspended:{key:"4",value:"Suspended"}},he=!1;Object.keys(ut).forEach(u=>{ct(u,ut[u]);});const Zt=()=>{ci(c);},Jt=()=>{let u=new URL(p);fetch(u.href).then(f=>f.json()).then(f=>{Object.keys(f).forEach(M=>{ct(M,f[M]);});}).catch(f=>{console.log(f);});},Qt=()=>{i&&(k=i,y=!0),o&&(C=o);},de=(u,f=!1)=>{f?r(7,E=u):(rr(),r(6,A=u));},te=(u,f,M,b=!1)=>ne(this,null,function*(){try{const x=yield fetch(u,M);if(!x.ok)throw new Error(n(f));const z=yield x.json();return y?z:z.filter(R=>R.showOnRegister===!0)}catch(x){throw de(x instanceof TypeError?n(f):x.message,b),x}}),Yt=()=>ne(this,null,function*(){try{let u=[],f=[];if(y?[u,f]=yield Ve():u=yield Ve(),r(10,$=!1),D=[...u],r(8,P=$t(D).sort((M,b)=>M.categoryTagCode.localeCompare(b.categoryTagCode))),r(11,j=er(P)),ce=U({},j),r(9,B=[...f]),D.forEach(M=>{let b=B.find(x=>x.tagCode===M.tagCode);b||(b=Je(U({},M),{status:O.denied.value}),B.push(b)),b.description=M.description,b.orderNumber=M.orderNumber;}),v==="true"){if(r(9,B=B.filter(M=>M.status===O.expired.value)),B.length!==0)return;de(n("wrongModalConfig"),!0);}tr();}catch(u){throw r(10,$=!1),de(u instanceof TypeError?n("invalidUrl"):u.message,!0),u}}),Ve=()=>ne(this,null,function*(){const u=new URL(`${s}/api/v1/gm/consents`);if(u.searchParams.append("Status","Active"),!y)return yield te(u.href,"fetchConsentsError",{method:"GET"},!0);const f=new URL(`${s}/api/v1/gm/user-consents/${C}`);return yield Promise.all([te(u.href,"fetchConsentsError",{method:"GET"},!0),te(f.href,"fetchPlayerConsentsError",{method:"GET",headers:{"X-SessionId":k,"Content-Type":"application/json"}})])}),Kt=()=>{he=!1;const u=new URL(`${s}/api/v2/gm/legislation/consents`),f={"Content-Type":"application/json",Accept:"application/json"},M={method:"GET",headers:f};fetch(u.href,M).then(b=>b.ok?b.json():(he=!0,b.json().then(x=>(console.error(x),me(x))))).then(b=>{if(!he){if(D=b,localStorage.getItem("playerConsents")){try{r(9,B=JSON.parse(localStorage.getItem("playerConsents")));}catch(x){return console.error(x),me(x)}return}return r(9,B=D.map(x=>({id:x.id,status:O.denied.key,friendlyName:x.friendlyName,tagCode:x.tagCode,selected:null,mustAccept:x.mustAccept}))),localStorage.setItem("playerConsents",JSON.stringify(B)),B}}).catch(b=>(console.error(b),me(b))).finally(()=>{r(10,$=!1);});},$t=u=>{const f=new Map;return u.forEach(M=>{f.has(M.category.categoryTagCode)||f.set(M.category.categoryTagCode,M.category);}),Array.from(f.values())},er=u=>{const f=localStorage.getItem("categoryToggle"+C);if(f===null){const M=u.reduce((b,x)=>(b[x.categoryTagCode]=!1,b),{});return localStorage.setItem("categoryToggle"+C,JSON.stringify(M)),M}else return JSON.parse(f)},tr=()=>{B.forEach(u=>{r(12,G[u.tagCode]=u.status===O.accepted.value,G);}),r(13,I=U({},G));},rr=()=>{r(13,I=U({},G)),r(11,j=U({},ce));},nr=()=>ne(this,null,function*(){if(!le)return;le=!1;const u=[],f=[];if(Object.keys(I).forEach(b=>{const x=B.find(z=>z.tagCode===b);I[b]!==G[b]&&(x?u.push({tagCode:b,status:I[b]?O.accepted.value:O.denied.value}):f.push({tagCode:b,status:I[b]?O.accepted.value:O.denied.value}));}),!y){localStorage.setItem("categoryToggle"+C,JSON.stringify(j)),ce=U({},j),window.postMessage({type:"NewPlayerConsentData",data:JSON.stringify(f)},window.location.href),le=!0;return}const M=new URL(`${s}/api/v1/gm/user-consents/${C}`);try{const b=yield Promise.allSettled([f.length>0&&te(M.href,"updateConsentsError",{method:"POST",headers:{"X-SessionId":k,"Content-Type":"application/json"},body:JSON.stringify({userConsents:f})}),u.length>0&&te(M.href,"updateConsentsError",{method:"PATCH",headers:{"X-SessionId":k,"Content-Type":"application/json"},body:JSON.stringify({userConsents:u})})]);b.forEach((x,z)=>{if(x.status==="rejected"||x.value.ok===!1){const R=z<f.length?f[z]:u[z-f.length];r(13,I[R.tagCode]=G[R.tagCode],I);}}),b.every(x=>x.status==="fulfilled")&&(localStorage.setItem("categoryToggle"+C,JSON.stringify(j)),ce=U({},j),window.postMessage({type:"PlayerConsentUpdated",success:!0},window.location.href),r(12,G=U({},I)));}catch(b){de(b instanceof TypeError?n("saveChangesError"):b.message),window.postMessage({type:"PlayerConsentUpdated",success:!1},window.location.href);}finally{le=!0,r(14,ee=!1);}}),ir=u=>{const f=new URL(`${s}/api/v2/gm/legislation/consents`),M={"Content-Type":"application/json",Accept:"application/json"},b={playerConsents:B,registrationId:u},x={method:"POST",body:JSON.stringify(b),headers:M};fetch(f.href,x).then(z=>{z.ok||(he=!0);}).catch(z=>(console.error(z),me(z))).finally(()=>{r(10,$=!1);});},Xe=u=>{B.filter(f=>f.category.categoryTagCode===u).forEach(f=>{f.status=f.status===O.denied.value?O.accepted.value:O.denied.value,r(13,I[f.tagCode]=j[u]||!1,I);}),r(14,ee=qe());},Se=(u,f,M)=>{const b=B.find(R=>R.id===M),x=f?"value":"key";let z;if(!f&&b.mustAccept){const R=Array.from(ue.children);for(const re of R)if(z=Array.from(re.children).find(gr=>gr.getAttribute("id")===`checkBoxError__${b.tagCode}`),z)break}if(b.status===O.accepted[x]?(b.status=O.denied[x],z&&(z.innerHTML=n("requiredError"))):(b.status=O.accepted[x],z&&(z.innerHTML="")),f){r(13,I[b.tagCode]=!I[b.tagCode],I);const R=B.filter(re=>re.category.categoryTagCode===f.categoryTagCode).every(re=>re.status!==O.denied.value);r(11,j[f.categoryTagCode]=R,j);}ar();},ar=((u,f)=>{let M;return function(...b){const x=this;clearTimeout(M),M=setTimeout(()=>{u.apply(x,b);},f);}})(()=>or(),500),or=()=>{r(14,ee=qe()),i||(window.postMessage({type:"isConsentsValid",isValid:ee}),localStorage.setItem("playerConsents",JSON.stringify(B)));},qe=()=>B.filter(f=>B.some(M=>f.tagCode===M.tagCode&&M.mustAccept&&(f.status===O.denied.key||f.status===O.denied.value))).length===0,me=u=>{window.postMessage({type:"WidgetNotification",data:{type:"error",message:u}},window.location.href);},sr=u=>{u.data&&u.data.type!=="setUpPlayerConsents"||ir(u.data.registerid);};a.onMount(()=>{setTimeout(()=>{r(25,S=!0);},50);const u=f=>sr(f);return window.addEventListener("message",u),()=>{window.emMessageBus&&g&&g.unsubscribe(),window.removeEventListener("message",u);}});function lr(u){j[u.categoryTagCode]=this.checked,r(11,j);}const cr=u=>Xe(u.categoryTagCode),ur=(u,f)=>f.category.categoryTagCode===u.categoryTagCode,hr=(u,f)=>Se(f,u.category,u.id),dr=(u,f)=>Se(f,null,u.id);function mr(u){a.binding_callbacks[u?"unshift":"push"](()=>{ue=u,r(15,ue);});}function pr(u){a.binding_callbacks[u?"unshift":"push"](()=>{_=u,r(5,_);});}return e.$$set=u=>{"session"in u&&r(0,i=u.session),"userid"in u&&r(20,o=u.userid),"endpoint"in u&&r(21,s=u.endpoint),"clientstyling"in u&&r(1,l=u.clientstyling),"clientstylingurl"in u&&r(2,d=u.clientstylingurl),"mbsource"in u&&r(3,h=u.mbsource),"lang"in u&&r(22,c=u.lang),"displayconsentdescription"in u&&r(4,m=u.displayconsentdescription),"translationurl"in u&&r(23,p=u.translationurl),"modalconsents"in u&&r(24,v=u.modalconsents);},e.$$.update=()=>{e.$$.dirty[0]&33554433&&S&&i&&(Qt(),Yt()),e.$$.dirty[0]&1&&(i||Kt()),e.$$.dirty[0]&34&&l&&_&&a.setClientStyling(_,l),e.$$.dirty[0]&36&&d&&_&&a.setClientStylingURL(_,d),e.$$.dirty[0]&40&&_&&a.setStreamStyling(_,`${h}.Style`),e.$$.dirty[0]&4194304&&c&&Zt(),e.$$.dirty[0]&8388608&&p&&Jt();},[i,l,d,h,m,_,A,E,P,B,$,j,G,I,ee,ue,n,nr,Xe,Se,o,s,c,p,v,S,lr,cr,ur,hr,dr,mr,pr]}class Wt extends a.SvelteComponent{constructor(t){super(),a.init(this,t,yi,_i,a.safe_not_equal,{session:0,userid:20,endpoint:21,clientstyling:1,clientstylingurl:2,mbsource:3,lang:22,displayconsentdescription:4,translationurl:23,modalconsents:24},di,[-1,-1,-1]);}get session(){return this.$$.ctx[0]}set session(t){this.$$set({session:t}),a.flush();}get userid(){return this.$$.ctx[20]}set userid(t){this.$$set({userid:t}),a.flush();}get endpoint(){return this.$$.ctx[21]}set endpoint(t){this.$$set({endpoint:t}),a.flush();}get clientstyling(){return this.$$.ctx[1]}set clientstyling(t){this.$$set({clientstyling:t}),a.flush();}get clientstylingurl(){return this.$$.ctx[2]}set clientstylingurl(t){this.$$set({clientstylingurl:t}),a.flush();}get mbsource(){return this.$$.ctx[3]}set mbsource(t){this.$$set({mbsource:t}),a.flush();}get lang(){return this.$$.ctx[22]}set lang(t){this.$$set({lang:t}),a.flush();}get displayconsentdescription(){return this.$$.ctx[4]}set displayconsentdescription(t){this.$$set({displayconsentdescription:t}),a.flush();}get translationurl(){return this.$$.ctx[23]}set translationurl(t){this.$$set({translationurl:t}),a.flush();}get modalconsents(){return this.$$.ctx[24]}set modalconsents(t){this.$$set({modalconsents:t}),a.flush();}}a.create_custom_element(Wt,{session:{},userid:{},endpoint:{},clientstyling:{},clientstylingurl:{},mbsource:{},lang:{},displayconsentdescription:{},translationurl:{},modalconsents:{}},[],[],!0);exports.default=Wt;
13993
+ }(PlayerConsentsBtszdxkn));
13981
13994
 
13982
- if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>PlayerConsentsBpocBWYo).then(({default:t})=>{!customElements.get("player-consents")&&customElements.define("player-consents",t.element);});}
13995
+ if(typeof window!="undefined"){let n=function(t){return function(...s){try{return t.apply(this,s)}catch(e){if(e instanceof DOMException&&e.message.includes("has already been used with this registry")||e.message.includes("Cannot define multiple custom elements with the same tag name"))return !1;throw e}}};customElements.define=n(customElements.define),Promise.resolve().then(()=>PlayerConsentsBtszdxkn).then(({default:t})=>{!customElements.get("player-consents")&&customElements.define("player-consents",t.element);});}
13983
13996
 
13984
13997
  const generalRegistrationCss = "*,\n*::before,\n*::after {\n padding: 0;\n margin: 0;\n box-sizing: border-box;\n}\n\n.registration__form.hidden {\n display: none;\n}\n\n.registration {\n font-family: \"Roboto\";\n font-style: normal;\n font-family: sans-serif;\n display: flex;\n flex-direction: column;\n gap: 24px;\n width: 100%;\n height: 100%;\n container-type: inline-size;\n}\n.registration__wrapper {\n display: flex;\n justify-content: center;\n align-items: center;\n}\n.registration__error-message {\n color: var(--emw--color-error, var(--emw--color-red, #ed0909));\n font-size: var(--emw-font-size-small, 13px);\n display: block;\n justify-content: center;\n text-align: center;\n}\n.registration__loading-message {\n padding-top: 20px;\n text-align: center;\n}\n.registration__form {\n display: grid;\n grid-template-columns: repeat(1, 1fr);\n gap: 40px;\n justify-items: stretch;\n align-content: flex-start;\n overflow: auto;\n width: 100%;\n height: 100%;\n}\n.registration__buttons-wrapper {\n display: flex;\n flex-direction: column;\n justify-content: space-around;\n align-items: center;\n position: relative;\n}\n.registration__button {\n border-radius: 5px;\n background: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n border: 1px solid var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n color: var(--emw--button-typography, var(--emw--color-white, #FFFFFF));\n text-transform: uppercase;\n font-size: 20px;\n height: 44px;\n width: 100%;\n margin: 0px auto;\n padding: 10px 20px;\n font-weight: normal;\n box-shadow: none;\n cursor: pointer;\n}\n.registration__button--disabled {\n background: var(--emw--color-gray-100, #E6E6E6);\n border: 1px solid var(--emw--color-gray-150, #828282);\n pointer-events: none;\n box-shadow: none;\n}\n.registration__button--first-step {\n display: none;\n}\n\n@container (min-width: 450px) {\n .registration__form {\n grid-template-columns: repeat(2, 1fr);\n }\n .registration__buttons-wrapper {\n flex-direction: row-reverse;\n gap: 15px;\n }\n}\n.hide-btag {\n display: none;\n}\n\n.spinner {\n animation: rotate 2s linear infinite;\n z-index: 2;\n position: absolute;\n top: 50%;\n left: 50%;\n margin: -25px 0 0 -25px;\n width: 50px;\n height: 50px;\n}\n.spinner .path {\n stroke: var(--emw--login-color-primary, var(--emw--color-primary, #22B04E));\n stroke-linecap: round;\n animation: dash 1.5s ease-in-out infinite;\n}\n\n.input-description {\n margin-top: 5px;\n font-size: var(--emw-font-size-x-small, 12px);\n}\n\n@keyframes rotate {\n 100% {\n transform: rotate(360deg);\n }\n}\n@keyframes dash {\n 0% {\n stroke-dasharray: 1, 150;\n stroke-dashoffset: 0;\n }\n 50% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -35;\n }\n 100% {\n stroke-dasharray: 90, 150;\n stroke-dashoffset: -124;\n }\n}";
13985
13998
  const GeneralRegistrationStyle0 = generalRegistrationCss;